@hiver/connector-agent 4.14.0-userauth2-beta.0 → 4.14.0-userauth3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.es.js
CHANGED
|
@@ -14,7 +14,7 @@ var Pi = (e, t, n, r) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import * as S from "react";
|
|
17
|
-
import je, { useState as G, useRef as pe, useSyncExternalStore as u1, useLayoutEffect as ro, useEffect as oe, isValidElement as po, cloneElement as fc, createContext as yl, useContext as
|
|
17
|
+
import je, { useState as G, useRef as pe, useSyncExternalStore as u1, useLayoutEffect as ro, useEffect as oe, isValidElement as po, cloneElement as fc, createContext as yl, useContext as De, useCallback as _e, forwardRef as Ws, useMemo as he, Component as X2, Fragment as pc, useReducer as Y2, memo as d1, Suspense as Cl } from "react";
|
|
18
18
|
import J2, { createPortal as br } from "react-dom";
|
|
19
19
|
import { keyframes as El, styled as A, Stack as N, theme as M, IconButton as it, Typography as Y, Box as Q, Tooltip as Ce, Button as Oe, icons as Qe, Menu as q2, MenuItem as uo, ListItemIcon as K2, brandIcons as f1, Grid as Q2, Link as Oi, Skeleton as wl, TableHead as eg, TableCell as Us, TableRow as p1, palette as tg, Icon as h1, DatePicker as ng, DateTextField as rg, InputAdornment as og, Checkbox as Il, TextField as _l, tooltipClasses as Yr, ListSubheader as Ki, InputBase as ig, CircularProgress as fi, FormControl as Zs, Select as Al, Paper as Sl, Popper as sg, ClickAwayListener as g1, Dialog as m1, TableContainer as ag, Table as cg, TableBody as lg, HiverProvider as $s, RadioGroup as b1, FormControlLabel as x1, Radio as v1, OutlinedInput as y1, Switch as C1, createTheme as ug, ThemeProvider as dg } from "@hiver/hiver-ui-kit";
|
|
20
20
|
var ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, hc = { exports: {} }, Xo = {};
|
|
@@ -71,8 +71,8 @@ function pg() {
|
|
|
71
71
|
}
|
|
72
72
|
function y(L, Z, te) {
|
|
73
73
|
{
|
|
74
|
-
var le = g.ReactDebugCurrentFrame,
|
|
75
|
-
|
|
74
|
+
var le = g.ReactDebugCurrentFrame, ke = le.getStackAddendum();
|
|
75
|
+
ke !== "" && (Z += "%s", te = te.concat([ke]));
|
|
76
76
|
var Ne = te.map(function(Le) {
|
|
77
77
|
return String(Le);
|
|
78
78
|
});
|
|
@@ -81,7 +81,7 @@ function pg() {
|
|
|
81
81
|
}
|
|
82
82
|
var E = !1, C = !1, w = !1, _ = !1, I = !1, T;
|
|
83
83
|
T = Symbol.for("react.module.reference");
|
|
84
|
-
function
|
|
84
|
+
function D(L) {
|
|
85
85
|
return !!(typeof L == "string" || typeof L == "function" || L === r || L === i || I || L === o || L === u || L === d || _ || L === v || E || C || w || typeof L == "object" && L !== null && (L.$$typeof === b || L.$$typeof === p || L.$$typeof === s || L.$$typeof === a || L.$$typeof === c || // This needs to include all possible module reference object
|
|
86
86
|
// types supported by any Flight configuration anywhere since
|
|
87
87
|
// we don't know which Flight build this will end up being used
|
|
@@ -92,8 +92,8 @@ function pg() {
|
|
|
92
92
|
var le = L.displayName;
|
|
93
93
|
if (le)
|
|
94
94
|
return le;
|
|
95
|
-
var
|
|
96
|
-
return
|
|
95
|
+
var ke = Z.displayName || Z.name || "";
|
|
96
|
+
return ke !== "" ? te + "(" + ke + ")" : te;
|
|
97
97
|
}
|
|
98
98
|
function O(L) {
|
|
99
99
|
return L.displayName || "Context";
|
|
@@ -133,7 +133,7 @@ function pg() {
|
|
|
133
133
|
var le = L.displayName || null;
|
|
134
134
|
return le !== null ? le : j(L.type) || "Memo";
|
|
135
135
|
case b: {
|
|
136
|
-
var
|
|
136
|
+
var ke = L, Ne = ke._payload, Le = ke._init;
|
|
137
137
|
try {
|
|
138
138
|
return j(Le(Ne));
|
|
139
139
|
} catch {
|
|
@@ -147,7 +147,7 @@ function pg() {
|
|
|
147
147
|
function K() {
|
|
148
148
|
}
|
|
149
149
|
K.__reactDisabledLog = !0;
|
|
150
|
-
function
|
|
150
|
+
function k() {
|
|
151
151
|
{
|
|
152
152
|
if (W === 0) {
|
|
153
153
|
q = console.log, $ = console.info, U = console.warn, J = console.error, ne = console.group, ie = console.groupCollapsed, H = console.groupEnd;
|
|
@@ -211,8 +211,8 @@ function pg() {
|
|
|
211
211
|
if (ae === void 0)
|
|
212
212
|
try {
|
|
213
213
|
throw Error();
|
|
214
|
-
} catch (
|
|
215
|
-
var le =
|
|
214
|
+
} catch (ke) {
|
|
215
|
+
var le = ke.stack.trim().match(/\n( *(at )?)/);
|
|
216
216
|
ae = le && le[1] || "";
|
|
217
217
|
}
|
|
218
218
|
return `
|
|
@@ -234,10 +234,10 @@ function pg() {
|
|
|
234
234
|
}
|
|
235
235
|
var le;
|
|
236
236
|
P = !0;
|
|
237
|
-
var
|
|
237
|
+
var ke = Error.prepareStackTrace;
|
|
238
238
|
Error.prepareStackTrace = void 0;
|
|
239
239
|
var Ne;
|
|
240
|
-
Ne = ee.current, ee.current = null,
|
|
240
|
+
Ne = ee.current, ee.current = null, k();
|
|
241
241
|
try {
|
|
242
242
|
if (Z) {
|
|
243
243
|
var Le = function() {
|
|
@@ -290,7 +290,7 @@ function pg() {
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
} finally {
|
|
293
|
-
P = !1, ee.current = Ne, X(), Error.prepareStackTrace =
|
|
293
|
+
P = !1, ee.current = Ne, X(), Error.prepareStackTrace = ke;
|
|
294
294
|
}
|
|
295
295
|
var Nn = L ? L.displayName || L.name : "", ue = Nn ? fe(Nn) : "";
|
|
296
296
|
return typeof L == "function" && ce.set(L, ue), ue;
|
|
@@ -322,9 +322,9 @@ function pg() {
|
|
|
322
322
|
case p:
|
|
323
323
|
return et(L.type, Z, te);
|
|
324
324
|
case b: {
|
|
325
|
-
var le = L,
|
|
325
|
+
var le = L, ke = le._payload, Ne = le._init;
|
|
326
326
|
try {
|
|
327
|
-
return et(Ne(
|
|
327
|
+
return et(Ne(ke), Z, te);
|
|
328
328
|
} catch {
|
|
329
329
|
}
|
|
330
330
|
}
|
|
@@ -339,7 +339,7 @@ function pg() {
|
|
|
339
339
|
} else
|
|
340
340
|
ut.setExtraStackFrame(null);
|
|
341
341
|
}
|
|
342
|
-
function at(L, Z, te, le,
|
|
342
|
+
function at(L, Z, te, le, ke) {
|
|
343
343
|
{
|
|
344
344
|
var Ne = Function.call.bind(sn);
|
|
345
345
|
for (var Le in L)
|
|
@@ -354,7 +354,7 @@ function pg() {
|
|
|
354
354
|
} catch (tt) {
|
|
355
355
|
Re = tt;
|
|
356
356
|
}
|
|
357
|
-
Re && !(Re instanceof Error) && (xt(
|
|
357
|
+
Re && !(Re instanceof Error) && (xt(ke), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", le || "React class", te, Le, typeof Re), xt(null)), Re instanceof Error && !(Re.message in yn) && (yn[Re.message] = !0, xt(ke), x("Failed %s type: %s", te, Re.message), xt(null));
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
}
|
|
@@ -387,7 +387,7 @@ function pg() {
|
|
|
387
387
|
ref: !0,
|
|
388
388
|
__self: !0,
|
|
389
389
|
__source: !0
|
|
390
|
-
}, Ir,
|
|
390
|
+
}, Ir, kn, qt;
|
|
391
391
|
qt = {};
|
|
392
392
|
function Zo(L) {
|
|
393
393
|
if (sn.call(L, "ref")) {
|
|
@@ -411,7 +411,7 @@ function pg() {
|
|
|
411
411
|
qt[te] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(_t.current.type), L.ref), qt[te] = !0);
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Dn(L, Z) {
|
|
415
415
|
{
|
|
416
416
|
var te = function() {
|
|
417
417
|
Ir || (Ir = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Z));
|
|
@@ -425,7 +425,7 @@ function pg() {
|
|
|
425
425
|
function oo(L, Z) {
|
|
426
426
|
{
|
|
427
427
|
var te = function() {
|
|
428
|
-
|
|
428
|
+
kn || (kn = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Z));
|
|
429
429
|
};
|
|
430
430
|
te.isReactWarning = !0, Object.defineProperty(L, "ref", {
|
|
431
431
|
get: te,
|
|
@@ -433,7 +433,7 @@ function pg() {
|
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
var Qt = function(L, Z, te, le,
|
|
436
|
+
var Qt = function(L, Z, te, le, ke, Ne, Le) {
|
|
437
437
|
var Re = {
|
|
438
438
|
// This tag allows us to uniquely identify this as a React Element
|
|
439
439
|
$$typeof: t,
|
|
@@ -459,13 +459,13 @@ function pg() {
|
|
|
459
459
|
configurable: !1,
|
|
460
460
|
enumerable: !1,
|
|
461
461
|
writable: !1,
|
|
462
|
-
value:
|
|
462
|
+
value: ke
|
|
463
463
|
}), Object.freeze && (Object.freeze(Re.props), Object.freeze(Re)), Re;
|
|
464
464
|
};
|
|
465
|
-
function io(L, Z, te, le,
|
|
465
|
+
function io(L, Z, te, le, ke) {
|
|
466
466
|
{
|
|
467
467
|
var Ne, Le = {}, Re = null, yt = null;
|
|
468
|
-
te !== void 0 && (Jn(te), Re = "" + te), Kt(Z) && (Jn(Z.key), Re = "" + Z.key), Zo(Z) && (yt = Z.ref, qn(Z,
|
|
468
|
+
te !== void 0 && (Jn(te), Re = "" + te), Kt(Z) && (Jn(Z.key), Re = "" + Z.key), Zo(Z) && (yt = Z.ref, qn(Z, ke));
|
|
469
469
|
for (Ne in Z)
|
|
470
470
|
sn.call(Z, Ne) && !Fn.hasOwnProperty(Ne) && (Le[Ne] = Z[Ne]);
|
|
471
471
|
if (L && L.defaultProps) {
|
|
@@ -475,9 +475,9 @@ function pg() {
|
|
|
475
475
|
}
|
|
476
476
|
if (Re || yt) {
|
|
477
477
|
var nt = typeof L == "function" ? L.displayName || L.name || "Unknown" : L;
|
|
478
|
-
Re &&
|
|
478
|
+
Re && Dn(Le, nt), yt && oo(Le, nt);
|
|
479
479
|
}
|
|
480
|
-
return Qt(L, Re, yt,
|
|
480
|
+
return Qt(L, Re, yt, ke, le, _t.current, Le);
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
var Kn = g.ReactCurrentOwner, Qn = g.ReactDebugCurrentFrame;
|
|
@@ -546,9 +546,9 @@ Check the top-level render call using <` + te + ">.");
|
|
|
546
546
|
else if (_r(L))
|
|
547
547
|
L._store && (L._store.validated = !0);
|
|
548
548
|
else if (L) {
|
|
549
|
-
var
|
|
550
|
-
if (typeof
|
|
551
|
-
for (var Ne =
|
|
549
|
+
var ke = f(L);
|
|
550
|
+
if (typeof ke == "function" && ke !== L.entries)
|
|
551
|
+
for (var Ne = ke.call(L), Le; !(Le = Ne.next()).done; )
|
|
552
552
|
_r(Le.value) && Sr(Le.value, Z);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
@@ -572,8 +572,8 @@ Check the top-level render call using <` + te + ">.");
|
|
|
572
572
|
at(te, L.props, "prop", le, L);
|
|
573
573
|
} else if (Z.PropTypes !== void 0 && !er) {
|
|
574
574
|
er = !0;
|
|
575
|
-
var
|
|
576
|
-
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
575
|
+
var ke = j(Z);
|
|
576
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ke || "Unknown");
|
|
577
577
|
}
|
|
578
578
|
typeof Z.getDefaultProps == "function" && !Z.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
579
579
|
}
|
|
@@ -591,9 +591,9 @@ Check the top-level render call using <` + te + ">.");
|
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
var Ee = {};
|
|
594
|
-
function ct(L, Z, te, le,
|
|
594
|
+
function ct(L, Z, te, le, ke, Ne) {
|
|
595
595
|
{
|
|
596
|
-
var Le =
|
|
596
|
+
var Le = D(L);
|
|
597
597
|
if (!Le) {
|
|
598
598
|
var Re = "";
|
|
599
599
|
(L === void 0 || typeof L == "object" && L !== null && Object.keys(L).length === 0) && (Re += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -602,7 +602,7 @@ Check the top-level render call using <` + te + ">.");
|
|
|
602
602
|
var tt;
|
|
603
603
|
L === null ? tt = "null" : Jt(L) ? tt = "array" : L !== void 0 && L.$$typeof === t ? (tt = "<" + (j(L.type) || "Unknown") + " />", Re = " Did you accidentally export a JSX literal instead of a component?") : tt = typeof L, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", tt, Re);
|
|
604
604
|
}
|
|
605
|
-
var nt = io(L, Z, te,
|
|
605
|
+
var nt = io(L, Z, te, ke, Ne);
|
|
606
606
|
if (nt == null)
|
|
607
607
|
return nt;
|
|
608
608
|
if (Le) {
|
|
@@ -723,31 +723,31 @@ function mg(e) {
|
|
|
723
723
|
}, w = (I) => {
|
|
724
724
|
f = I == null ? [] : f.filter((T) => T !== I), C();
|
|
725
725
|
}, _ = (I) => {
|
|
726
|
-
const { toastId: T, onOpen:
|
|
727
|
-
I.staleId && y.delete(I.staleId), y.set(T, I), f = [...f, I.props.toastId].filter((V) => V !== I.staleId), C(), b(yu(I, j ? "added" : "updated")), j && Gt(
|
|
726
|
+
const { toastId: T, onOpen: D, updateId: F, children: O } = I.props, j = F == null;
|
|
727
|
+
I.staleId && y.delete(I.staleId), y.set(T, I), f = [...f, I.props.toastId].filter((V) => V !== I.staleId), C(), b(yu(I, j ? "added" : "updated")), j && Gt(D) && D(po(O) && O.props);
|
|
728
728
|
};
|
|
729
729
|
return { id: d, props: x, observe: (I) => (E.add(I), () => E.delete(I)), toggle: (I, T) => {
|
|
730
|
-
y.forEach((
|
|
731
|
-
T != null && T !==
|
|
730
|
+
y.forEach((D) => {
|
|
731
|
+
T != null && T !== D.props.toastId || Gt(D.toggle) && D.toggle(I);
|
|
732
732
|
});
|
|
733
733
|
}, removeToast: w, toasts: y, clearQueue: () => {
|
|
734
734
|
m -= h.length, h = [];
|
|
735
735
|
}, buildToast: (I, T) => {
|
|
736
736
|
if (((H) => {
|
|
737
|
-
let { containerId: K, toastId:
|
|
738
|
-
const ee = K ? K !== d : d !== 1, ae = y.has(
|
|
737
|
+
let { containerId: K, toastId: k, updateId: X } = H;
|
|
738
|
+
const ee = K ? K !== d : d !== 1, ae = y.has(k) && X == null;
|
|
739
739
|
return ee || ae;
|
|
740
740
|
})(T)) return;
|
|
741
|
-
const { toastId:
|
|
742
|
-
w(
|
|
741
|
+
const { toastId: D, updateId: F, data: O, staleId: j, delay: V } = T, W = () => {
|
|
742
|
+
w(D);
|
|
743
743
|
}, q = F == null;
|
|
744
744
|
q && m++;
|
|
745
745
|
const $ = { ...x, style: x.toastStyle, key: v++, ...Object.fromEntries(Object.entries(T).filter((H) => {
|
|
746
|
-
let [K,
|
|
747
|
-
return
|
|
748
|
-
})), toastId:
|
|
749
|
-
const H = y.get(
|
|
750
|
-
Gt(K) && K(po(
|
|
746
|
+
let [K, k] = H;
|
|
747
|
+
return k != null;
|
|
748
|
+
})), toastId: D, updateId: F, data: O, closeToast: W, isIn: !1, className: Qi(T.className || x.toastClassName), bodyClassName: Qi(T.bodyClassName || x.bodyClassName), progressClassName: Qi(T.progressClassName || x.progressClassName), autoClose: !T.isLoading && (U = T.autoClose, J = x.autoClose, U === !1 || pi(U) && U > 0 ? U : J), deleteToast() {
|
|
749
|
+
const H = y.get(D), { onClose: K, children: k } = H.props;
|
|
750
|
+
Gt(K) && K(po(k) && k.props), b(yu(H, "removed")), y.delete(D), m--, m < 0 && (m = 0), h.length > 0 ? _(h.shift()) : C();
|
|
751
751
|
} };
|
|
752
752
|
var U, J;
|
|
753
753
|
$.closeButton = x.closeButton, T.closeButton === !1 || gc(T.closeButton) ? $.closeButton = T.closeButton : T.closeButton === !0 && ($.closeButton = !gc(x.closeButton) || x.closeButton);
|
|
@@ -915,18 +915,18 @@ const Cg = typeof window < "u" ? ro : oe, Bi = (e) => {
|
|
|
915
915
|
}, spinner: function() {
|
|
916
916
|
return je.createElement("div", { className: "Toastify__spinner" });
|
|
917
917
|
} }, Eg = (e) => {
|
|
918
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = bg(e), { closeButton: s, children: a, autoClose: c, onClick: u, type: d, hideProgressBar: p, closeToast: b, transition: v, position: m, className: h, style: f, bodyClassName: g, bodyStyle: x, progressClassName: y, progressStyle: E, updateId: C, role: w, progress: _, rtl: I, toastId: T, deleteToast:
|
|
919
|
-
let { theme: H, type: K, isLoading:
|
|
918
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = bg(e), { closeButton: s, children: a, autoClose: c, onClick: u, type: d, hideProgressBar: p, closeToast: b, transition: v, position: m, className: h, style: f, bodyClassName: g, bodyStyle: x, progressClassName: y, progressStyle: E, updateId: C, role: w, progress: _, rtl: I, toastId: T, deleteToast: D, isIn: F, isLoading: O, closeOnClick: j, theme: V } = e, W = pr("Toastify__toast", `Toastify__toast-theme--${V}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": j }), q = Gt(h) ? h({ rtl: I, position: m, type: d, defaultClassName: W }) : pr(W, h), $ = function(ie) {
|
|
919
|
+
let { theme: H, type: K, isLoading: k, icon: X } = ie, ee = null;
|
|
920
920
|
const ae = { theme: H, type: K };
|
|
921
|
-
return X === !1 || (Gt(X) ? ee = X({ ...ae, isLoading:
|
|
921
|
+
return X === !1 || (Gt(X) ? ee = X({ ...ae, isLoading: k }) : po(X) ? ee = fc(X, ae) : k ? ee = Sa.spinner() : ((fe) => fe in Sa)(K) && (ee = Sa[K](ae))), ee;
|
|
922
922
|
}(e), U = !!_ || !c, J = { closeToast: b, type: d, theme: V };
|
|
923
923
|
let ne = null;
|
|
924
924
|
return s === !1 || (ne = Gt(s) ? s(J) : po(s) ? fc(s, J) : function(ie) {
|
|
925
|
-
let { closeToast: H, theme: K, ariaLabel:
|
|
925
|
+
let { closeToast: H, theme: K, ariaLabel: k = "close" } = ie;
|
|
926
926
|
return je.createElement("button", { className: `Toastify__close-button Toastify__close-button--${K}`, type: "button", onClick: (X) => {
|
|
927
927
|
X.stopPropagation(), H(X);
|
|
928
|
-
}, "aria-label":
|
|
929
|
-
}(J)), je.createElement(v, { isIn: F, done:
|
|
928
|
+
}, "aria-label": k }, je.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, je.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
929
|
+
}(J)), je.createElement(v, { isIn: F, done: D, position: m, preventExitTransition: n, nodeRef: r, playToast: i }, je.createElement("div", { id: T, onClick: u, "data-in": F, className: q, ...o, style: f, ref: r }, je.createElement("div", { ...F && { role: w }, className: Gt(g) ? g({ type: d }) : pr("Toastify__toast-body", g), style: x }, $ != null && je.createElement("div", { className: pr("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !O }) }, $), je.createElement("div", null, a)), ne, je.createElement(xg, { ...C && !U ? { key: `pb-${C}` } : {}, rtl: I, theme: V, delay: c, isRunning: t, isIn: F, closeToast: b, hide: p, type: d, style: E, className: y, controlledProgress: U, progress: _ || 0 })));
|
|
930
930
|
}, Xs = function(e, t) {
|
|
931
931
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
932
932
|
}, wg = zs(Xs("bounce", !0));
|
|
@@ -1370,7 +1370,7 @@ var pt = Fg(), Mr, Q0, F1 = (Q0 = class {
|
|
|
1370
1370
|
clearGcTimeout() {
|
|
1371
1371
|
R(this, Mr) && (clearTimeout(R(this, Mr)), re(this, Mr, void 0));
|
|
1372
1372
|
}
|
|
1373
|
-
}, Mr = new WeakMap(), Q0), Eo, wo, tn, Br, It, Si, Vr, dn, Pn, e1,
|
|
1373
|
+
}, Mr = new WeakMap(), Q0), Eo, wo, tn, Br, It, Si, Vr, dn, Pn, e1, kg = (e1 = class extends F1 {
|
|
1374
1374
|
constructor(t) {
|
|
1375
1375
|
super();
|
|
1376
1376
|
ge(this, dn);
|
|
@@ -1381,7 +1381,7 @@ var pt = Fg(), Mr, Q0, F1 = (Q0 = class {
|
|
|
1381
1381
|
ge(this, It);
|
|
1382
1382
|
ge(this, Si);
|
|
1383
1383
|
ge(this, Vr);
|
|
1384
|
-
re(this, Vr, !1), re(this, Si, t.defaultOptions), this.setOptions(t.options), this.observers = [], re(this, Br, t.client), re(this, tn, R(this, Br).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, re(this, Eo,
|
|
1384
|
+
re(this, Vr, !1), re(this, Si, t.defaultOptions), this.setOptions(t.options), this.observers = [], re(this, Br, t.client), re(this, tn, R(this, Br).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, re(this, Eo, Dg(this.options)), this.state = t.state ?? R(this, Eo), this.scheduleGc();
|
|
1385
1385
|
}
|
|
1386
1386
|
get meta() {
|
|
1387
1387
|
return this.options.meta;
|
|
@@ -1579,7 +1579,7 @@ var pt = Fg(), Mr, Q0, F1 = (Q0 = class {
|
|
|
1579
1579
|
case "fetch":
|
|
1580
1580
|
return {
|
|
1581
1581
|
...r,
|
|
1582
|
-
...
|
|
1582
|
+
...k1(r.data, this.options),
|
|
1583
1583
|
fetchMeta: t.meta ?? null
|
|
1584
1584
|
};
|
|
1585
1585
|
case "success":
|
|
@@ -1627,7 +1627,7 @@ var pt = Fg(), Mr, Q0, F1 = (Q0 = class {
|
|
|
1627
1627
|
}), R(this, tn).notify({ query: this, type: "updated", action: t });
|
|
1628
1628
|
});
|
|
1629
1629
|
}, e1);
|
|
1630
|
-
function
|
|
1630
|
+
function k1(e, t) {
|
|
1631
1631
|
return {
|
|
1632
1632
|
fetchFailureCount: 0,
|
|
1633
1633
|
fetchFailureReason: null,
|
|
@@ -1638,7 +1638,7 @@ function D1(e, t) {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
};
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function Dg(e) {
|
|
1642
1642
|
const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
1643
1643
|
return {
|
|
1644
1644
|
data: t,
|
|
@@ -1664,7 +1664,7 @@ var En, t1, Ng = (t1 = class extends Mo {
|
|
|
1664
1664
|
build(t, n, r) {
|
|
1665
1665
|
const o = n.queryKey, i = n.queryHash ?? Tl(o, n);
|
|
1666
1666
|
let s = this.get(i);
|
|
1667
|
-
return s || (s = new
|
|
1667
|
+
return s || (s = new kg({
|
|
1668
1668
|
client: t,
|
|
1669
1669
|
queryKey: o,
|
|
1670
1670
|
queryHash: i,
|
|
@@ -1734,7 +1734,7 @@ var En, t1, Ng = (t1 = class extends Mo {
|
|
|
1734
1734
|
ge(this, wn);
|
|
1735
1735
|
ge(this, St);
|
|
1736
1736
|
ge(this, Gr);
|
|
1737
|
-
this.mutationId = t.mutationId, re(this, St, t.mutationCache), re(this, wn, []), this.state = t.state ||
|
|
1737
|
+
this.mutationId = t.mutationId, re(this, St, t.mutationCache), re(this, wn, []), this.state = t.state || D1(), this.setOptions(t.options), this.scheduleGc();
|
|
1738
1738
|
}
|
|
1739
1739
|
setOptions(t) {
|
|
1740
1740
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -1911,7 +1911,7 @@ var En, t1, Ng = (t1 = class extends Mo {
|
|
|
1911
1911
|
});
|
|
1912
1912
|
});
|
|
1913
1913
|
}, n1);
|
|
1914
|
-
function
|
|
1914
|
+
function D1() {
|
|
1915
1915
|
return {
|
|
1916
1916
|
context: void 0,
|
|
1917
1917
|
data: void 0,
|
|
@@ -2425,10 +2425,10 @@ var rt, sr, ar, Io, _o, cr, Ao, So, o1, Vg = (o1 = class {
|
|
|
2425
2425
|
const r = R(this, Pe), o = this.options, i = R(this, Tt), s = R(this, Hr), a = R(this, To), u = t !== r ? t.state : R(this, Li), { state: d } = t;
|
|
2426
2426
|
let p = { ...d }, b = !1, v;
|
|
2427
2427
|
if (n._optimisticResults) {
|
|
2428
|
-
const T = this.hasListeners(),
|
|
2429
|
-
(
|
|
2428
|
+
const T = this.hasListeners(), D = !T && Au(t, n), F = T && Su(t, r, n, o);
|
|
2429
|
+
(D || F) && (p = {
|
|
2430
2430
|
...p,
|
|
2431
|
-
...
|
|
2431
|
+
...k1(d.data, t.options)
|
|
2432
2432
|
}), n._optimisticResults === "isRestoring" && (p.fetchStatus = "idle");
|
|
2433
2433
|
}
|
|
2434
2434
|
let { error: m, errorUpdatedAt: h, status: f } = p;
|
|
@@ -2453,8 +2453,8 @@ var rt, sr, ar, Io, _o, cr, Ao, So, o1, Vg = (o1 = class {
|
|
|
2453
2453
|
) : n.placeholderData, n.select && T !== void 0)
|
|
2454
2454
|
try {
|
|
2455
2455
|
T = n.select(T), re(this, _n, null);
|
|
2456
|
-
} catch (
|
|
2457
|
-
re(this, _n,
|
|
2456
|
+
} catch (D) {
|
|
2457
|
+
re(this, _n, D);
|
|
2458
2458
|
}
|
|
2459
2459
|
T !== void 0 && (f = "success", v = yc(
|
|
2460
2460
|
i == null ? void 0 : i.data,
|
|
@@ -2493,7 +2493,7 @@ var rt, sr, ar, Io, _o, cr, Ao, So, o1, Vg = (o1 = class {
|
|
|
2493
2493
|
if (this.options.experimental_prefetchInRender) {
|
|
2494
2494
|
const T = (O) => {
|
|
2495
2495
|
_.status === "error" ? O.reject(_.error) : _.data !== void 0 && O.resolve(_.data);
|
|
2496
|
-
},
|
|
2496
|
+
}, D = () => {
|
|
2497
2497
|
const O = re(this, lr, _.promise = Cc());
|
|
2498
2498
|
T(O);
|
|
2499
2499
|
}, F = R(this, lr);
|
|
@@ -2502,10 +2502,10 @@ var rt, sr, ar, Io, _o, cr, Ao, So, o1, Vg = (o1 = class {
|
|
|
2502
2502
|
t.queryHash === r.queryHash && T(F);
|
|
2503
2503
|
break;
|
|
2504
2504
|
case "fulfilled":
|
|
2505
|
-
(_.status === "error" || _.data !== F.value) &&
|
|
2505
|
+
(_.status === "error" || _.data !== F.value) && D();
|
|
2506
2506
|
break;
|
|
2507
2507
|
case "rejected":
|
|
2508
|
-
(_.status !== "error" || _.error !== F.reason) &&
|
|
2508
|
+
(_.status !== "error" || _.error !== F.reason) && D();
|
|
2509
2509
|
break;
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
@@ -2698,7 +2698,7 @@ var Wg = class extends j1 {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
}, dr = new WeakMap(), fr = new WeakMap(), Ft = new WeakMap(), Vn = new WeakMap(), Hn = new WeakSet(), es = function() {
|
|
2700
2700
|
var r;
|
|
2701
|
-
const n = ((r = R(this, Ft)) == null ? void 0 : r.state) ??
|
|
2701
|
+
const n = ((r = R(this, Ft)) == null ? void 0 : r.state) ?? D1();
|
|
2702
2702
|
re(this, fr, {
|
|
2703
2703
|
...n,
|
|
2704
2704
|
isPending: n.status === "pending",
|
|
@@ -2870,7 +2870,7 @@ function nm(e, t) {
|
|
|
2870
2870
|
Wg
|
|
2871
2871
|
);
|
|
2872
2872
|
}
|
|
2873
|
-
const
|
|
2873
|
+
const kc = (e, t) => t.some((n) => e instanceof n);
|
|
2874
2874
|
let Lu, Ru;
|
|
2875
2875
|
function rm() {
|
|
2876
2876
|
return Lu || (Lu = [
|
|
@@ -2888,7 +2888,7 @@ function om() {
|
|
|
2888
2888
|
IDBCursor.prototype.continuePrimaryKey
|
|
2889
2889
|
]);
|
|
2890
2890
|
}
|
|
2891
|
-
const
|
|
2891
|
+
const Dc = /* @__PURE__ */ new WeakMap(), La = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap();
|
|
2892
2892
|
function im(e) {
|
|
2893
2893
|
const t = new Promise((n, r) => {
|
|
2894
2894
|
const o = () => {
|
|
@@ -2903,7 +2903,7 @@ function im(e) {
|
|
|
2903
2903
|
return Js.set(t, e), t;
|
|
2904
2904
|
}
|
|
2905
2905
|
function sm(e) {
|
|
2906
|
-
if (
|
|
2906
|
+
if (Dc.has(e))
|
|
2907
2907
|
return;
|
|
2908
2908
|
const t = new Promise((n, r) => {
|
|
2909
2909
|
const o = () => {
|
|
@@ -2915,13 +2915,13 @@ function sm(e) {
|
|
|
2915
2915
|
};
|
|
2916
2916
|
e.addEventListener("complete", i), e.addEventListener("error", s), e.addEventListener("abort", s);
|
|
2917
2917
|
});
|
|
2918
|
-
|
|
2918
|
+
Dc.set(e, t);
|
|
2919
2919
|
}
|
|
2920
2920
|
let Nc = {
|
|
2921
2921
|
get(e, t, n) {
|
|
2922
2922
|
if (e instanceof IDBTransaction) {
|
|
2923
2923
|
if (t === "done")
|
|
2924
|
-
return
|
|
2924
|
+
return Dc.get(e);
|
|
2925
2925
|
if (t === "store")
|
|
2926
2926
|
return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
|
|
2927
2927
|
}
|
|
@@ -2945,7 +2945,7 @@ function am(e) {
|
|
|
2945
2945
|
};
|
|
2946
2946
|
}
|
|
2947
2947
|
function cm(e) {
|
|
2948
|
-
return typeof e == "function" ? am(e) : (e instanceof IDBTransaction && sm(e),
|
|
2948
|
+
return typeof e == "function" ? am(e) : (e instanceof IDBTransaction && sm(e), kc(e, rm()) ? new Proxy(e, Nc) : e);
|
|
2949
2949
|
}
|
|
2950
2950
|
function $r(e) {
|
|
2951
2951
|
if (e instanceof IDBRequest)
|
|
@@ -3016,16 +3016,16 @@ async function* hm(...e) {
|
|
|
3016
3016
|
for (W1.set(n, t), Js.set(n, jc(t)); t; )
|
|
3017
3017
|
yield n, t = await (Pc.get(n) || t.continue()), Pc.delete(n);
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3020
|
-
return t === Symbol.asyncIterator &&
|
|
3019
|
+
function ku(e, t) {
|
|
3020
|
+
return t === Symbol.asyncIterator && kc(e, [IDBIndex, IDBObjectStore, IDBCursor]) || t === "iterate" && kc(e, [IDBIndex, IDBObjectStore]);
|
|
3021
3021
|
}
|
|
3022
3022
|
H1((e) => ({
|
|
3023
3023
|
...e,
|
|
3024
3024
|
get(t, n, r) {
|
|
3025
|
-
return
|
|
3025
|
+
return ku(t, n) ? hm : e.get(t, n, r);
|
|
3026
3026
|
},
|
|
3027
3027
|
has(t, n) {
|
|
3028
|
-
return
|
|
3028
|
+
return ku(t, n) || e.has(t, n);
|
|
3029
3029
|
}
|
|
3030
3030
|
}));
|
|
3031
3031
|
const gm = "connector-db", mm = 1, qs = {
|
|
@@ -3124,7 +3124,7 @@ const xr = async () => {
|
|
|
3124
3124
|
} catch (n) {
|
|
3125
3125
|
console.error("Error updating feedback submission date:", n);
|
|
3126
3126
|
}
|
|
3127
|
-
},
|
|
3127
|
+
}, Du = async (e, t) => {
|
|
3128
3128
|
if (!e) return;
|
|
3129
3129
|
const n = await xr();
|
|
3130
3130
|
if (n)
|
|
@@ -3156,7 +3156,7 @@ const xr = async () => {
|
|
|
3156
3156
|
e && await Cm(e);
|
|
3157
3157
|
}, PO = async (e, t) => {
|
|
3158
3158
|
const n = await Ks(e);
|
|
3159
|
-
t ? n !== !1 && await
|
|
3159
|
+
t ? n !== !1 && await Du(e, t) : await Du(e, void 0);
|
|
3160
3160
|
}, Im = async (e) => await vm(e) && await Z1(e), _m = async (e) => {
|
|
3161
3161
|
await Em(e);
|
|
3162
3162
|
};
|
|
@@ -3183,7 +3183,7 @@ const Lm = ea("string"), Ut = ea("function"), X1 = ea("number"), ta = (e) => e !
|
|
|
3183
3183
|
return !1;
|
|
3184
3184
|
const t = Fl(e);
|
|
3185
3185
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
3186
|
-
}, Om = bn("Date"), Fm = bn("File"),
|
|
3186
|
+
}, Om = bn("Date"), Fm = bn("File"), km = bn("Blob"), Dm = bn("FileList"), Nm = (e) => ta(e) && Ut(e.pipe), jm = (e) => {
|
|
3187
3187
|
let t;
|
|
3188
3188
|
return e && (typeof FormData == "function" && e instanceof FormData || Ut(e.append) && ((t = Qs(e)) === "formdata" || // detect form-data instance
|
|
3189
3189
|
t === "object" && Ut(e.toString) && e.toString() === "[object FormData]"));
|
|
@@ -3354,13 +3354,13 @@ var B = {
|
|
|
3354
3354
|
isUndefined: vi,
|
|
3355
3355
|
isDate: Om,
|
|
3356
3356
|
isFile: Fm,
|
|
3357
|
-
isBlob:
|
|
3357
|
+
isBlob: km,
|
|
3358
3358
|
isRegExp: e3,
|
|
3359
3359
|
isFunction: Ut,
|
|
3360
3360
|
isStream: Nm,
|
|
3361
3361
|
isURLSearchParams: Pm,
|
|
3362
3362
|
isTypedArray: Ym,
|
|
3363
|
-
isFileList:
|
|
3363
|
+
isFileList: Dm,
|
|
3364
3364
|
forEach: Fi,
|
|
3365
3365
|
merge: Vc,
|
|
3366
3366
|
extend: Wm,
|
|
@@ -3539,10 +3539,10 @@ function Mu(e) {
|
|
|
3539
3539
|
return t[r];
|
|
3540
3540
|
});
|
|
3541
3541
|
}
|
|
3542
|
-
function
|
|
3542
|
+
function kl(e, t) {
|
|
3543
3543
|
this._pairs = [], e && na(e, this, t);
|
|
3544
3544
|
}
|
|
3545
|
-
const rf =
|
|
3545
|
+
const rf = kl.prototype;
|
|
3546
3546
|
rf.append = function(t, n) {
|
|
3547
3547
|
this._pairs.push([t, n]);
|
|
3548
3548
|
};
|
|
@@ -3562,7 +3562,7 @@ function of(e, t, n) {
|
|
|
3562
3562
|
return e;
|
|
3563
3563
|
const r = n && n.encode || h3, o = n && n.serialize;
|
|
3564
3564
|
let i;
|
|
3565
|
-
if (o ? i = o(t, n) : i = B.isURLSearchParams(t) ? t.toString() : new
|
|
3565
|
+
if (o ? i = o(t, n) : i = B.isURLSearchParams(t) ? t.toString() : new kl(t, n).toString(r), i) {
|
|
3566
3566
|
const s = e.indexOf("#");
|
|
3567
3567
|
s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
3568
3568
|
}
|
|
@@ -3626,7 +3626,7 @@ var Bu = g3, sf = {
|
|
|
3626
3626
|
silentJSONParsing: !0,
|
|
3627
3627
|
forcedJSONParsing: !0,
|
|
3628
3628
|
clarifyTimeoutError: !1
|
|
3629
|
-
}, m3 = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
3629
|
+
}, m3 = typeof URLSearchParams < "u" ? URLSearchParams : kl, b3 = typeof FormData < "u" ? FormData : null, x3 = typeof Blob < "u" ? Blob : null, v3 = {
|
|
3630
3630
|
isBrowser: !0,
|
|
3631
3631
|
classes: {
|
|
3632
3632
|
URLSearchParams: m3,
|
|
@@ -3635,11 +3635,11 @@ var Bu = g3, sf = {
|
|
|
3635
3635
|
},
|
|
3636
3636
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
3637
3637
|
};
|
|
3638
|
-
const
|
|
3639
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", E3 =
|
|
3638
|
+
const Dl = typeof window < "u" && typeof document < "u", Hc = typeof navigator == "object" && navigator || void 0, y3 = Dl && (!Hc || ["ReactNative", "NativeScript", "NS"].indexOf(Hc.product) < 0), C3 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
3639
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", E3 = Dl && window.location.href || "http://localhost";
|
|
3640
3640
|
var w3 = /* @__PURE__ */ Object.freeze({
|
|
3641
3641
|
__proto__: null,
|
|
3642
|
-
hasBrowserEnv:
|
|
3642
|
+
hasBrowserEnv: Dl,
|
|
3643
3643
|
hasStandardBrowserWebWorkerEnv: C3,
|
|
3644
3644
|
hasStandardBrowserEnv: y3,
|
|
3645
3645
|
navigator: Hc,
|
|
@@ -3817,7 +3817,7 @@ function Fa(e, t, n, r, o) {
|
|
|
3817
3817
|
function F3(e) {
|
|
3818
3818
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
3819
3819
|
}
|
|
3820
|
-
function
|
|
3820
|
+
function k3(e, t) {
|
|
3821
3821
|
const n = B.toCamelCase(" " + t);
|
|
3822
3822
|
["get", "set", "has"].forEach((r) => {
|
|
3823
3823
|
Object.defineProperty(e, r + n, {
|
|
@@ -3941,7 +3941,7 @@ class ra {
|
|
|
3941
3941
|
}).accessors, o = this.prototype;
|
|
3942
3942
|
function i(s) {
|
|
3943
3943
|
const a = Jo(s);
|
|
3944
|
-
r[a] || (
|
|
3944
|
+
r[a] || (k3(o, s), r[a] = !0);
|
|
3945
3945
|
}
|
|
3946
3946
|
return B.isArray(t) ? t.forEach(i) : i(t), this;
|
|
3947
3947
|
}
|
|
@@ -3958,7 +3958,7 @@ B.reduceDescriptors(ra.prototype, ({ value: e }, t) => {
|
|
|
3958
3958
|
});
|
|
3959
3959
|
B.freezeMethods(ra);
|
|
3960
3960
|
var hn = ra;
|
|
3961
|
-
function
|
|
3961
|
+
function ka(e, t) {
|
|
3962
3962
|
const n = this || jl, r = t || n, o = hn.from(r.headers);
|
|
3963
3963
|
let i = r.data;
|
|
3964
3964
|
return B.forEach(e, function(a) {
|
|
@@ -3984,7 +3984,7 @@ function lf(e, t, n) {
|
|
|
3984
3984
|
n
|
|
3985
3985
|
));
|
|
3986
3986
|
}
|
|
3987
|
-
function
|
|
3987
|
+
function D3(e) {
|
|
3988
3988
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
3989
3989
|
return t && t[1] || "";
|
|
3990
3990
|
}
|
|
@@ -4248,7 +4248,7 @@ var H3 = G3 && function(e) {
|
|
|
4248
4248
|
}), B.isUndefined(o.withCredentials) || (f.withCredentials = !!o.withCredentials), a && a !== "json" && (f.responseType = o.responseType), u && ([b, m] = _s(u, !0), f.addEventListener("progress", b)), c && f.upload && ([p, v] = _s(c), f.upload.addEventListener("progress", p), f.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (d = (y) => {
|
|
4249
4249
|
f && (r(!y || y.type ? new Vo(null, e, f) : y), f.abort(), f = null);
|
|
4250
4250
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
4251
|
-
const x =
|
|
4251
|
+
const x = D3(o.url);
|
|
4252
4252
|
if (x && Mt.protocols.indexOf(x) === -1) {
|
|
4253
4253
|
r(new Ie("Unsupported protocol " + x + ":", Ie.ERR_BAD_REQUEST, e));
|
|
4254
4254
|
return;
|
|
@@ -4514,22 +4514,22 @@ var hf = {
|
|
|
4514
4514
|
},
|
|
4515
4515
|
adapters: Uc
|
|
4516
4516
|
};
|
|
4517
|
-
function
|
|
4517
|
+
function Da(e) {
|
|
4518
4518
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
4519
4519
|
throw new Vo(null, e);
|
|
4520
4520
|
}
|
|
4521
4521
|
function zu(e) {
|
|
4522
|
-
return
|
|
4522
|
+
return Da(e), e.headers = hn.from(e.headers), e.data = ka.call(
|
|
4523
4523
|
e,
|
|
4524
4524
|
e.transformRequest
|
|
4525
4525
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), hf.getAdapter(e.adapter || jl.adapter)(e).then(function(r) {
|
|
4526
|
-
return
|
|
4526
|
+
return Da(e), r.data = ka.call(
|
|
4527
4527
|
e,
|
|
4528
4528
|
e.transformResponse,
|
|
4529
4529
|
r
|
|
4530
4530
|
), r.headers = hn.from(r.headers), r;
|
|
4531
4531
|
}, function(r) {
|
|
4532
|
-
return cf(r) || (
|
|
4532
|
+
return cf(r) || (Da(e), r && r.response && (r.response.data = ka.call(
|
|
4533
4533
|
e,
|
|
4534
4534
|
e.transformResponse,
|
|
4535
4535
|
r.response
|
|
@@ -4914,9 +4914,9 @@ var bf = ft, We = {}, vr = {};
|
|
|
4914
4914
|
t[t.WEB = 0] = "WEB", t[t.MOBILE = 1] = "MOBILE";
|
|
4915
4915
|
}(e.PLATFORM || (e.PLATFORM = {}));
|
|
4916
4916
|
})(vr);
|
|
4917
|
-
var
|
|
4918
|
-
Object.defineProperty(
|
|
4919
|
-
|
|
4917
|
+
var Dt = {};
|
|
4918
|
+
Object.defineProperty(Dt, "__esModule", { value: !0 });
|
|
4919
|
+
Dt.getProdHqConfig = Dt.getProdApiConfig = Dt.getSitHqConfig = Dt.getSitApiConfig = Dt.getDevHqConfig = Dt.getDevApiConfig = void 0;
|
|
4920
4920
|
var Go = {
|
|
4921
4921
|
heimdallTokenFetch: "/v1/token/get",
|
|
4922
4922
|
heimdallLogin: "/v1/login/code",
|
|
@@ -4931,7 +4931,7 @@ var Go = {
|
|
|
4931
4931
|
apiEndpoints: Go
|
|
4932
4932
|
};
|
|
4933
4933
|
};
|
|
4934
|
-
|
|
4934
|
+
Dt.getDevApiConfig = i4;
|
|
4935
4935
|
var s4 = function() {
|
|
4936
4936
|
return {
|
|
4937
4937
|
v2Url: "https://v2dev.hiver.space",
|
|
@@ -4940,7 +4940,7 @@ var s4 = function() {
|
|
|
4940
4940
|
apiEndpoints: Go
|
|
4941
4941
|
};
|
|
4942
4942
|
};
|
|
4943
|
-
|
|
4943
|
+
Dt.getDevHqConfig = s4;
|
|
4944
4944
|
var a4 = function(e) {
|
|
4945
4945
|
return {
|
|
4946
4946
|
v2Url: "https://v2".concat(e, ".hiver.space"),
|
|
@@ -4949,7 +4949,7 @@ var a4 = function(e) {
|
|
|
4949
4949
|
apiEndpoints: Go
|
|
4950
4950
|
};
|
|
4951
4951
|
};
|
|
4952
|
-
|
|
4952
|
+
Dt.getSitApiConfig = a4;
|
|
4953
4953
|
var c4 = function(e) {
|
|
4954
4954
|
return {
|
|
4955
4955
|
v2Url: "https://v2".concat(e, ".hiver.space"),
|
|
@@ -4958,7 +4958,7 @@ var c4 = function(e) {
|
|
|
4958
4958
|
apiEndpoints: Go
|
|
4959
4959
|
};
|
|
4960
4960
|
};
|
|
4961
|
-
|
|
4961
|
+
Dt.getSitHqConfig = c4;
|
|
4962
4962
|
var l4 = function() {
|
|
4963
4963
|
return {
|
|
4964
4964
|
v2Url: "https://v2.hiverhq.com",
|
|
@@ -4967,7 +4967,7 @@ var l4 = function() {
|
|
|
4967
4967
|
apiEndpoints: Go
|
|
4968
4968
|
};
|
|
4969
4969
|
};
|
|
4970
|
-
|
|
4970
|
+
Dt.getProdApiConfig = l4;
|
|
4971
4971
|
var u4 = function() {
|
|
4972
4972
|
return {
|
|
4973
4973
|
v2Url: "https://v2.hiverhq.com",
|
|
@@ -4976,7 +4976,7 @@ var u4 = function() {
|
|
|
4976
4976
|
apiEndpoints: Go
|
|
4977
4977
|
};
|
|
4978
4978
|
};
|
|
4979
|
-
|
|
4979
|
+
Dt.getProdHqConfig = u4;
|
|
4980
4980
|
var Tn = {}, Ln = {};
|
|
4981
4981
|
Object.defineProperty(Ln, "__esModule", { value: !0 });
|
|
4982
4982
|
Ln.removeValue = Ln.getValue = Ln.setValue = void 0;
|
|
@@ -4995,35 +4995,35 @@ function p4(e) {
|
|
|
4995
4995
|
Ln.removeValue = p4;
|
|
4996
4996
|
Object.defineProperty(Tn, "__esModule", { value: !0 });
|
|
4997
4997
|
Tn.removeItemFromStorage = Tn.setItemInStorage = Tn.getItemFromStorage = void 0;
|
|
4998
|
-
var Fo = vr,
|
|
4999
|
-
switch (t === void 0 && (t = (0,
|
|
4998
|
+
var Fo = vr, ko = Ln, h4 = function(e, t) {
|
|
4999
|
+
switch (t === void 0 && (t = (0, ko.getValue)("PLATFORM")), t) {
|
|
5000
5000
|
case Fo.PLATFORM.WEB:
|
|
5001
5001
|
return sessionStorage.getItem(e);
|
|
5002
5002
|
case Fo.PLATFORM.MOBILE:
|
|
5003
|
-
return (0,
|
|
5003
|
+
return (0, ko.getValue)(e);
|
|
5004
5004
|
default:
|
|
5005
5005
|
throw Error("Invalid PLATFORM ".concat(t));
|
|
5006
5006
|
}
|
|
5007
5007
|
};
|
|
5008
5008
|
Tn.getItemFromStorage = h4;
|
|
5009
5009
|
var g4 = function(e, t, n) {
|
|
5010
|
-
switch (n === void 0 && (n = (0,
|
|
5010
|
+
switch (n === void 0 && (n = (0, ko.getValue)("PLATFORM")), n) {
|
|
5011
5011
|
case Fo.PLATFORM.WEB:
|
|
5012
5012
|
return sessionStorage.setItem(e, t);
|
|
5013
5013
|
case Fo.PLATFORM.MOBILE:
|
|
5014
|
-
return (0,
|
|
5014
|
+
return (0, ko.setValue)(e, t);
|
|
5015
5015
|
default:
|
|
5016
5016
|
throw Error("Invalid PLATFORM ".concat(n));
|
|
5017
5017
|
}
|
|
5018
5018
|
};
|
|
5019
5019
|
Tn.setItemInStorage = g4;
|
|
5020
5020
|
var m4 = function(e, t) {
|
|
5021
|
-
switch (t === void 0 && (t = (0,
|
|
5021
|
+
switch (t === void 0 && (t = (0, ko.getValue)("PLATFORM")), t) {
|
|
5022
5022
|
case Fo.PLATFORM.WEB:
|
|
5023
5023
|
sessionStorage.removeItem(e);
|
|
5024
5024
|
break;
|
|
5025
5025
|
case Fo.PLATFORM.MOBILE:
|
|
5026
|
-
(0,
|
|
5026
|
+
(0, ko.removeValue)(e);
|
|
5027
5027
|
break;
|
|
5028
5028
|
default:
|
|
5029
5029
|
throw Error("Invalid PLATFORM ".concat(t));
|
|
@@ -5118,7 +5118,7 @@ var b4 = ye && ye.__awaiter || function(e, t, n, r) {
|
|
|
5118
5118
|
};
|
|
5119
5119
|
Object.defineProperty(We, "__esModule", { value: !0 });
|
|
5120
5120
|
We.expireToken = We.invalidateToken = We.validateToken = We.validateAccount = We.getConfig = We.introduceDelay = We.isTokenInExpiryWindow = We.getStoredAuthData = We.setUserDetails = We.getRefreshInterval = We.setTokenAndExpiry = We.getRandomDelay = We.hasValidToken = void 0;
|
|
5121
|
-
var Gn = vr, ao =
|
|
5121
|
+
var Gn = vr, ao = Dt, Ht = Tn, Vl = function() {
|
|
5122
5122
|
var e = /* @__PURE__ */ new Date(), t = new Date(e.getTime() + e.getTimezoneOffset() * 6e4);
|
|
5123
5123
|
return t;
|
|
5124
5124
|
}, Gl = function(e) {
|
|
@@ -5363,14 +5363,14 @@ function vf() {
|
|
|
5363
5363
|
}, d = function(m, h, f, g, x) {
|
|
5364
5364
|
return e(void 0, void 0, void 0, function() {
|
|
5365
5365
|
var y, E, C, w, _, I, T;
|
|
5366
|
-
return t(this, function(
|
|
5367
|
-
switch (
|
|
5366
|
+
return t(this, function(D) {
|
|
5367
|
+
switch (D.label) {
|
|
5368
5368
|
case 0:
|
|
5369
|
-
console.log("GETTOKEN tenantPlatform -> ", g),
|
|
5369
|
+
console.log("GETTOKEN tenantPlatform -> ", g), D.label = 1;
|
|
5370
5370
|
case 1:
|
|
5371
|
-
return
|
|
5371
|
+
return D.trys.push([1, 5, , 6]), !(0, o.validateToken)(f) || (0, o.invalidateToken)(f) ? (console.log("HEIMDALL: No valid token, fetching token"), y = i(h, f, g, x), [4, (0, r.performAxiosCall)(y)]) : [3, 3];
|
|
5372
5372
|
case 2:
|
|
5373
|
-
return E =
|
|
5373
|
+
return E = D.sent(), [2, {
|
|
5374
5374
|
atToken: (w = E == null ? void 0 : E.data.at) === null || w === void 0 ? void 0 : w.token,
|
|
5375
5375
|
expiryTime: (_ = E == null ? void 0 : E.data.at) === null || _ === void 0 ? void 0 : _.expires_at,
|
|
5376
5376
|
userId: (I = E == null ? void 0 : E.data) === null || I === void 0 ? void 0 : I.user_id,
|
|
@@ -5381,7 +5381,7 @@ function vf() {
|
|
|
5381
5381
|
case 4:
|
|
5382
5382
|
return [3, 6];
|
|
5383
5383
|
case 5:
|
|
5384
|
-
throw C =
|
|
5384
|
+
throw C = D.sent(), C;
|
|
5385
5385
|
case 6:
|
|
5386
5386
|
return [2];
|
|
5387
5387
|
}
|
|
@@ -5391,7 +5391,7 @@ function vf() {
|
|
|
5391
5391
|
un.getAccessToken = d;
|
|
5392
5392
|
var p = function(m, h, f, g, x, y) {
|
|
5393
5393
|
return e(void 0, void 0, void 0, function() {
|
|
5394
|
-
var E, C, w, _, I, T,
|
|
5394
|
+
var E, C, w, _, I, T, D;
|
|
5395
5395
|
return t(this, function(F) {
|
|
5396
5396
|
switch (F.label) {
|
|
5397
5397
|
case 0:
|
|
@@ -5403,7 +5403,7 @@ function vf() {
|
|
|
5403
5403
|
userId: (_ = C == null ? void 0 : C.data) === null || _ === void 0 ? void 0 : _.user_id,
|
|
5404
5404
|
userGroupId: (I = C == null ? void 0 : C.data) === null || I === void 0 ? void 0 : I.usergroup_id,
|
|
5405
5405
|
atToken: (T = C == null ? void 0 : C.data.at) === null || T === void 0 ? void 0 : T.token,
|
|
5406
|
-
expiryTime: (
|
|
5406
|
+
expiryTime: (D = C == null ? void 0 : C.data.at) === null || D === void 0 ? void 0 : D.expires_at
|
|
5407
5407
|
}];
|
|
5408
5408
|
case 3:
|
|
5409
5409
|
throw w = F.sent(), w;
|
|
@@ -5543,7 +5543,7 @@ var ia = {}, R4 = ye && ye.__awaiter || function(e, t, n, r) {
|
|
|
5543
5543
|
};
|
|
5544
5544
|
Object.defineProperty(ia, "__esModule", { value: !0 });
|
|
5545
5545
|
ia.subscribeToOnlineEvent = void 0;
|
|
5546
|
-
var Ju = vr, F4 = Ln,
|
|
5546
|
+
var Ju = vr, F4 = Ln, k4 = function(e, t) {
|
|
5547
5547
|
switch (t === void 0 && (t = (0, F4.getValue)("PLATFORM")), console.log("Online status detected. Fetching token..."), t) {
|
|
5548
5548
|
case Ju.PLATFORM.WEB:
|
|
5549
5549
|
return window.addEventListener("online", function() {
|
|
@@ -5565,7 +5565,7 @@ var Ju = vr, F4 = Ln, D4 = function(e, t) {
|
|
|
5565
5565
|
throw Error("Invalid PLATFORM ".concat(t));
|
|
5566
5566
|
}
|
|
5567
5567
|
};
|
|
5568
|
-
ia.subscribeToOnlineEvent =
|
|
5568
|
+
ia.subscribeToOnlineEvent = k4;
|
|
5569
5569
|
var qu;
|
|
5570
5570
|
function yf() {
|
|
5571
5571
|
if (qu) return qo;
|
|
@@ -5659,7 +5659,7 @@ function yf() {
|
|
|
5659
5659
|
Object.defineProperty(qo, "__esModule", { value: !0 }), qo.fetchAccessToken = void 0;
|
|
5660
5660
|
var n = vf(), r = vr, o = We, i = ia, s, a, c, u = function(m, h, f, g, x, y) {
|
|
5661
5661
|
return y === void 0 && (y = r.APP_UI.DEFAULT), e(void 0, void 0, void 0, function() {
|
|
5662
|
-
var E, C, w, _, I, T,
|
|
5662
|
+
var E, C, w, _, I, T, D, F, O;
|
|
5663
5663
|
return t(this, function(j) {
|
|
5664
5664
|
switch (j.label) {
|
|
5665
5665
|
case 0:
|
|
@@ -5675,7 +5675,7 @@ function yf() {
|
|
|
5675
5675
|
case 5:
|
|
5676
5676
|
return [4, (0, n.getLoginToken)(C, r.CONFIG_HIVER, m, g, h.userId, h.usergroupId)];
|
|
5677
5677
|
case 6:
|
|
5678
|
-
return w = j.sent(), _ = w.userId, I = w.userGroupId, T = w.atToken,
|
|
5678
|
+
return w = j.sent(), _ = w.userId, I = w.userGroupId, T = w.atToken, D = w.expiryTime, (0, o.setTokenAndExpiry)(T, D), (0, o.setUserDetails)(_, I), [3, 12];
|
|
5679
5679
|
case 7:
|
|
5680
5680
|
F = j.sent(), console.log("ERROR debug: in error login:", F, y), O = f, j.label = 8;
|
|
5681
5681
|
case 8:
|
|
@@ -5711,13 +5711,13 @@ function yf() {
|
|
|
5711
5711
|
});
|
|
5712
5712
|
}, p = function(m, h, f, g, x, y, E, C, w) {
|
|
5713
5713
|
return C === void 0 && (C = "default"), e(void 0, void 0, void 0, function() {
|
|
5714
|
-
var _, I, T,
|
|
5714
|
+
var _, I, T, D, F, O, j, V, W, q, $, U, J, ne;
|
|
5715
5715
|
return t(this, function(ie) {
|
|
5716
5716
|
switch (ie.label) {
|
|
5717
5717
|
case 0:
|
|
5718
5718
|
return ie.trys.push([0, 2, , 12]), console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:", c), [4, (0, n.getAccessToken)(r.CONFIG_HIVER, g, x, y, C)];
|
|
5719
5719
|
case 1:
|
|
5720
|
-
return _ = ie.sent(), I = _.atToken, T = _.expiryTime,
|
|
5720
|
+
return _ = ie.sent(), I = _.atToken, T = _.expiryTime, D = _.userId, F = _.userGroupId, I && T && (0, o.setTokenAndExpiry)(I, T), D && F && (0, o.setUserDetails)(D, F), m = r.INITIAL_RETRY_DELAY, h = r.INITIAL_RETRY_DELAY, f = 0, [3, 12];
|
|
5721
5721
|
case 2:
|
|
5722
5722
|
return O = ie.sent(), console.log("ERROR: Heimdall fetch token", O), ((W = O.response) === null || W === void 0 ? void 0 : W.status) === 401 || ((q = O.request) === null || q === void 0 ? void 0 : q.status) === 401 ? (j = 1, [4, u(g, x, j, y, E, w)]) : [3, 4];
|
|
5723
5723
|
case 3:
|
|
@@ -5770,7 +5770,7 @@ function yf() {
|
|
|
5770
5770
|
});
|
|
5771
5771
|
}, v = function(m, h, f, g, x, y, E) {
|
|
5772
5772
|
return e(void 0, void 0, void 0, function() {
|
|
5773
|
-
var C, w, _, I, T,
|
|
5773
|
+
var C, w, _, I, T, D;
|
|
5774
5774
|
return t(this, function(F) {
|
|
5775
5775
|
switch (F.label) {
|
|
5776
5776
|
case 0:
|
|
@@ -5793,7 +5793,7 @@ function yf() {
|
|
|
5793
5793
|
});
|
|
5794
5794
|
}, console.log("Heimdall: Interval Set on fetch token:", c), (0, i.subscribeToOnlineEvent)(T), [3, 4];
|
|
5795
5795
|
case 3:
|
|
5796
|
-
return
|
|
5796
|
+
return D = F.sent(), console.log("ERROR: Fetching token failed", D), [3, 4];
|
|
5797
5797
|
case 4:
|
|
5798
5798
|
return [2];
|
|
5799
5799
|
}
|
|
@@ -5824,15 +5824,15 @@ function Cf() {
|
|
|
5824
5824
|
function w(T) {
|
|
5825
5825
|
try {
|
|
5826
5826
|
I(x.next(T));
|
|
5827
|
-
} catch (
|
|
5828
|
-
C(
|
|
5827
|
+
} catch (D) {
|
|
5828
|
+
C(D);
|
|
5829
5829
|
}
|
|
5830
5830
|
}
|
|
5831
5831
|
function _(T) {
|
|
5832
5832
|
try {
|
|
5833
5833
|
I(x.throw(T));
|
|
5834
|
-
} catch (
|
|
5835
|
-
C(
|
|
5834
|
+
} catch (D) {
|
|
5835
|
+
C(D);
|
|
5836
5836
|
}
|
|
5837
5837
|
}
|
|
5838
5838
|
function I(T) {
|
|
@@ -5955,7 +5955,7 @@ function Cf() {
|
|
|
5955
5955
|
function m(h, f, g, x, y) {
|
|
5956
5956
|
var E, C;
|
|
5957
5957
|
return y === void 0 && (y = 0), t(this, void 0, void 0, function() {
|
|
5958
|
-
var w, _, I, T,
|
|
5958
|
+
var w, _, I, T, D, F, O;
|
|
5959
5959
|
return n(this, function(j) {
|
|
5960
5960
|
switch (j.label) {
|
|
5961
5961
|
case 0:
|
|
@@ -5971,7 +5971,7 @@ function Cf() {
|
|
|
5971
5971
|
case 2:
|
|
5972
5972
|
return h.csrfToken && d(f, g), T = h.tenantPlatform === a.TENANT_PLATFORM.HIVERWEB ? a.TENANT_PLATFORM.HIVERWEB : a.TENANT_PLATFORM.GMAIL, f.headers = e(e({}, f.headers), { "x-hiver-tenant": T, "x-hiver-userid": (0, s.getItemFromStorage)("hiverAuthUserId") || "0", "x-hiver-usergroupid": (0, s.getItemFromStorage)("hiverAuthUserGroupId") || "0" }), g.getToken && (c = (0, s.getItemFromStorage)("hiverAuthToken") || "", f.headers = e(e({}, f.headers), { Authorization: "Bearer ".concat(c) })), console.log("Performing axios call for:", f), [4, b(f, h.withCredentials)];
|
|
5973
5973
|
case 3:
|
|
5974
|
-
return
|
|
5974
|
+
return D = j.sent(), f.onSuccess && f.onSuccess(D), [2, D];
|
|
5975
5975
|
case 4:
|
|
5976
5976
|
if (F = j.sent(), O = ((E = F.response) === null || E === void 0 ? void 0 : E.status) === 403 || ((C = F.request) === null || C === void 0 ? void 0 : C.status) === 403, y < u && O)
|
|
5977
5977
|
return (0, o.expireToken)(), [2, m(h, f, g, x, y + 1)];
|
|
@@ -6018,14 +6018,14 @@ var Ho = {
|
|
|
6018
6018
|
heimdallTokenFetch: "/v1/token/get",
|
|
6019
6019
|
heimdallLogin: "/v1/login/code",
|
|
6020
6020
|
v2Login: "/api/auth/login/code"
|
|
6021
|
-
},
|
|
6021
|
+
}, D4 = function() {
|
|
6022
6022
|
return {
|
|
6023
6023
|
v2Url: "https://v2dev.hiver.space",
|
|
6024
6024
|
heimdallUrl: "https://dev.hiver.space/api/heimdall-api",
|
|
6025
6025
|
apiEndpoints: Ho
|
|
6026
6026
|
};
|
|
6027
6027
|
};
|
|
6028
|
-
Nt.getDevApiConfig =
|
|
6028
|
+
Nt.getDevApiConfig = D4;
|
|
6029
6029
|
var N4 = function() {
|
|
6030
6030
|
return {
|
|
6031
6031
|
v2Url: "https://v2dev.hiver.space",
|
|
@@ -6573,7 +6573,7 @@ function If() {
|
|
|
6573
6573
|
});
|
|
6574
6574
|
}, d = function(v, m, h, f, g, x, y) {
|
|
6575
6575
|
return x === void 0 && (x = "default"), e(void 0, void 0, void 0, function() {
|
|
6576
|
-
var E, C, w, _, I, T,
|
|
6576
|
+
var E, C, w, _, I, T, D, F, O, j, V, W, q, $;
|
|
6577
6577
|
return t(this, function(U) {
|
|
6578
6578
|
switch (U.label) {
|
|
6579
6579
|
case 0:
|
|
@@ -6581,7 +6581,7 @@ function If() {
|
|
|
6581
6581
|
case 1:
|
|
6582
6582
|
return E = U.sent(), C = E.atToken, w = E.expiryTime, _ = E.userId, I = E.userGroupId, C && w && (0, o.setTokenAndExpiry)(C, w), _ && I && (0, o.setUserDetails)(_, I), v = r.INITIAL_RETRY_DELAY, m = r.INITIAL_RETRY_DELAY, h = 0, [3, 12];
|
|
6583
6583
|
case 2:
|
|
6584
|
-
return T = U.sent(), console.log("ERROR: Heimdall fetch token", T), ((O = T.response) === null || O === void 0 ? void 0 : O.status) === 401 || ((j = T.request) === null || j === void 0 ? void 0 : j.status) === 401 ? (
|
|
6584
|
+
return T = U.sent(), console.log("ERROR: Heimdall fetch token", T), ((O = T.response) === null || O === void 0 ? void 0 : O.status) === 401 || ((j = T.request) === null || j === void 0 ? void 0 : j.status) === 401 ? (D = 1, [4, c(f, D, y)]) : [3, 4];
|
|
6585
6585
|
case 3:
|
|
6586
6586
|
return U.sent(), [3, 11];
|
|
6587
6587
|
case 4:
|
|
@@ -7062,7 +7062,7 @@ const en = {
|
|
|
7062
7062
|
isHiverApiDomain: !0
|
|
7063
7063
|
},
|
|
7064
7064
|
withCredentials: !0
|
|
7065
|
-
}), Q4 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 17, height: 17, viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_1180_840)" }, /* @__PURE__ */ S.createElement("path", { d: "M5.16667 10.12H9.83333V11.4533H5.16667V10.12ZM5.16667 7.45329H11.8333V8.78662H5.16667V7.45329ZM5.16667 4.78662H11.8333V6.11995H5.16667V4.78662ZM13.1667 2.11995H10.38C10.1 1.34662 9.36667 0.786621 8.5 0.786621C7.63333 0.786621 6.9 1.34662 6.62 2.11995H3.83333C3.74 2.11995 3.65333 2.12662 3.56667 2.14662C3.30667 2.19995 3.07333 2.33329 2.89333 2.51329C2.77333 2.63329 2.67333 2.77995 2.60667 2.93995C2.54 3.09329 2.5 3.26662 2.5 3.45329V12.7866C2.5 12.9666 2.54 13.1466 2.60667 13.3066C2.67333 13.4666 2.77333 13.6066 2.89333 13.7333C3.07333 13.9133 3.30667 14.0466 3.56667 14.1C3.65333 14.1133 3.74 14.12 3.83333 14.12H13.1667C13.9 14.12 14.5 13.52 14.5 12.7866V3.45329C14.5 2.71995 13.9 2.11995 13.1667 2.11995ZM8.5 1.95329C8.77333 1.95329 9 2.17995 9 2.45329C9 2.72662 8.77333 2.95329 8.5 2.95329C8.22667 2.95329 8 2.72662 8 2.45329C8 2.17995 8.22667 1.95329 8.5 1.95329ZM13.1667 12.7866H3.83333V3.45329H13.1667V12.7866Z", fill: "#343C45" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_1180_840" }, /* @__PURE__ */ S.createElement("rect", { width: 16, height: 16, fill: "white", transform: "translate(0.5 0.120117)" })))), e5 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 24, height: 22, viewBox: "0 0 24 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("rect", { x: 3.63636, y: 2.27393, width: 15.2727, height: 17.2308, rx: 2.90909, fill: "#F6C035" }), /* @__PURE__ */ S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22.4621 12.0506C22.1745 11.7669 21.7845 11.6074 21.3779 11.6074C20.9712 11.6074 20.5812 11.7669 20.2937 12.0506L19.9323 12.4079L22.4626 14.9057L22.8235 14.549C22.9659 14.4084 23.0789 14.2415 23.156 14.0578C23.2331 13.8741 23.2727 13.6773 23.2727 13.4784C23.2727 13.2796 23.2331 13.0827 23.156 12.8991C23.0789 12.7154 22.9659 12.5485 22.8235 12.4079L22.4621 12.0506ZM21.7393 15.6192L19.209 13.1214L14.5624 17.7088C14.4607 17.8092 14.3897 17.9358 14.3574 18.0742L13.8314 20.3222C13.8118 20.4056 13.814 20.4927 13.8379 20.575C13.8618 20.6574 13.9065 20.7324 13.9679 20.793C14.0293 20.8535 14.1052 20.8977 14.1887 20.9213C14.2721 20.9448 14.3603 20.9471 14.4448 20.9277L16.7226 20.409C16.8626 20.377 16.9906 20.3069 17.0922 20.2066L21.7393 15.6192Z", fill: "#FFE298" }), /* @__PURE__ */ S.createElement("rect", { x: 6.54546, y: 6.58154, width: 10.1818, height: 1.4359, rx: 0.717949, fill: "#FFDC83" }), /* @__PURE__ */ S.createElement("rect", { x: 6.54546, y: 10.1714, width: 10.1818, height: 1.4359, rx: 0.717949, fill: "#FFDC83" }), /* @__PURE__ */ S.createElement("rect", { x: 6.54546, y: 13.7612, width: 6.54545, height: 1.4359, rx: 0.717949, fill: "#FFDC83" })), t5 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_825_73646)" }, /* @__PURE__ */ S.createElement("path", { d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z", fill: "#6F7C90" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_825_73646" }, /* @__PURE__ */ S.createElement("rect", { width: 24, height: 24, fill: "white" })))), n5 = "Rate your experience with Hiver Apps", r5 = "Share feedback on Apps", o5 = "Got any feedback?", Af = "https://txeep2wshyx.typeform.com/to/RuOwF9SG", i5 = "https://txeep2wshyx.typeform.com/to/Tfa8IrCd", s5 = "https://cdn.hiverhq.com/chat-support/hiver-chat.html", a5 = "enable_connectors_clicked", c5 = "learn_more_clicked", l5 = "connector_card_expand_clicked", u5 = "connector_card_collapsed_clicked", d5 = "connector_card_refresh_clicked", f5 = "connector_cards_loaded", p5 = "connector_whats_new_card_viewed", h5 = "connector_whats_new_explore_now_clicked", g5 = "connector_whats_new_learn_more_clicked", m5 = "connector_whats_new_dismissed", b5 = "connector_create_new_object_clicked", x5 = "connector_link_new_object_clicked", v5 = "connector_new_object_created_by_form", y5 = "connector_new_object_linked_by_form", C5 = "connector_object_unlinked_by_form", E5 = "connector_link_preview_clicked", w5 = "connector_create_panel_cancel_clicked", nd = "connector_create_panel_back_clicked", I5 = "card_loaded_on_click", _5 = "card_loaded", A5 = "schedule_call_clicked", S5 = "schedule_call_cross_clicked", Sf = "CONNECTOR_EDIT_CLICKED", T5 = "CONNECTOR_EDIT_REQUEST_SEND", L5 = "CONNECTOR_EDIT_CANCELLED", rd = "CONNECTOR_EDIT_BACK_CLICKED", R5 = "CONNECTOR_EDIT_SUCCESS", O5 = "connector_video_clicked", F5 = "connector_card_error", zc = "got_any_feedback_clicked",
|
|
7065
|
+
}), Q4 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 17, height: 17, viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_1180_840)" }, /* @__PURE__ */ S.createElement("path", { d: "M5.16667 10.12H9.83333V11.4533H5.16667V10.12ZM5.16667 7.45329H11.8333V8.78662H5.16667V7.45329ZM5.16667 4.78662H11.8333V6.11995H5.16667V4.78662ZM13.1667 2.11995H10.38C10.1 1.34662 9.36667 0.786621 8.5 0.786621C7.63333 0.786621 6.9 1.34662 6.62 2.11995H3.83333C3.74 2.11995 3.65333 2.12662 3.56667 2.14662C3.30667 2.19995 3.07333 2.33329 2.89333 2.51329C2.77333 2.63329 2.67333 2.77995 2.60667 2.93995C2.54 3.09329 2.5 3.26662 2.5 3.45329V12.7866C2.5 12.9666 2.54 13.1466 2.60667 13.3066C2.67333 13.4666 2.77333 13.6066 2.89333 13.7333C3.07333 13.9133 3.30667 14.0466 3.56667 14.1C3.65333 14.1133 3.74 14.12 3.83333 14.12H13.1667C13.9 14.12 14.5 13.52 14.5 12.7866V3.45329C14.5 2.71995 13.9 2.11995 13.1667 2.11995ZM8.5 1.95329C8.77333 1.95329 9 2.17995 9 2.45329C9 2.72662 8.77333 2.95329 8.5 2.95329C8.22667 2.95329 8 2.72662 8 2.45329C8 2.17995 8.22667 1.95329 8.5 1.95329ZM13.1667 12.7866H3.83333V3.45329H13.1667V12.7866Z", fill: "#343C45" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_1180_840" }, /* @__PURE__ */ S.createElement("rect", { width: 16, height: 16, fill: "white", transform: "translate(0.5 0.120117)" })))), e5 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 24, height: 22, viewBox: "0 0 24 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("rect", { x: 3.63636, y: 2.27393, width: 15.2727, height: 17.2308, rx: 2.90909, fill: "#F6C035" }), /* @__PURE__ */ S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22.4621 12.0506C22.1745 11.7669 21.7845 11.6074 21.3779 11.6074C20.9712 11.6074 20.5812 11.7669 20.2937 12.0506L19.9323 12.4079L22.4626 14.9057L22.8235 14.549C22.9659 14.4084 23.0789 14.2415 23.156 14.0578C23.2331 13.8741 23.2727 13.6773 23.2727 13.4784C23.2727 13.2796 23.2331 13.0827 23.156 12.8991C23.0789 12.7154 22.9659 12.5485 22.8235 12.4079L22.4621 12.0506ZM21.7393 15.6192L19.209 13.1214L14.5624 17.7088C14.4607 17.8092 14.3897 17.9358 14.3574 18.0742L13.8314 20.3222C13.8118 20.4056 13.814 20.4927 13.8379 20.575C13.8618 20.6574 13.9065 20.7324 13.9679 20.793C14.0293 20.8535 14.1052 20.8977 14.1887 20.9213C14.2721 20.9448 14.3603 20.9471 14.4448 20.9277L16.7226 20.409C16.8626 20.377 16.9906 20.3069 17.0922 20.2066L21.7393 15.6192Z", fill: "#FFE298" }), /* @__PURE__ */ S.createElement("rect", { x: 6.54546, y: 6.58154, width: 10.1818, height: 1.4359, rx: 0.717949, fill: "#FFDC83" }), /* @__PURE__ */ S.createElement("rect", { x: 6.54546, y: 10.1714, width: 10.1818, height: 1.4359, rx: 0.717949, fill: "#FFDC83" }), /* @__PURE__ */ S.createElement("rect", { x: 6.54546, y: 13.7612, width: 6.54545, height: 1.4359, rx: 0.717949, fill: "#FFDC83" })), t5 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_825_73646)" }, /* @__PURE__ */ S.createElement("path", { d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z", fill: "#6F7C90" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_825_73646" }, /* @__PURE__ */ S.createElement("rect", { width: 24, height: 24, fill: "white" })))), n5 = "Rate your experience with Hiver Apps", r5 = "Share feedback on Apps", o5 = "Got any feedback?", Af = "https://txeep2wshyx.typeform.com/to/RuOwF9SG", i5 = "https://txeep2wshyx.typeform.com/to/Tfa8IrCd", s5 = "https://cdn.hiverhq.com/chat-support/hiver-chat.html", a5 = "enable_connectors_clicked", c5 = "learn_more_clicked", l5 = "connector_card_expand_clicked", u5 = "connector_card_collapsed_clicked", d5 = "connector_card_refresh_clicked", f5 = "connector_cards_loaded", p5 = "connector_whats_new_card_viewed", h5 = "connector_whats_new_explore_now_clicked", g5 = "connector_whats_new_learn_more_clicked", m5 = "connector_whats_new_dismissed", b5 = "connector_create_new_object_clicked", x5 = "connector_link_new_object_clicked", v5 = "connector_new_object_created_by_form", y5 = "connector_new_object_linked_by_form", C5 = "connector_object_unlinked_by_form", E5 = "connector_link_preview_clicked", w5 = "connector_create_panel_cancel_clicked", nd = "connector_create_panel_back_clicked", I5 = "card_loaded_on_click", _5 = "card_loaded", A5 = "schedule_call_clicked", S5 = "schedule_call_cross_clicked", Sf = "CONNECTOR_EDIT_CLICKED", T5 = "CONNECTOR_EDIT_REQUEST_SEND", L5 = "CONNECTOR_EDIT_CANCELLED", rd = "CONNECTOR_EDIT_BACK_CLICKED", R5 = "CONNECTOR_EDIT_SUCCESS", O5 = "connector_video_clicked", F5 = "connector_card_error", zc = "got_any_feedback_clicked", k5 = "connector_deeplink_clicked", D5 = "search_bar_tapped", N5 = "search_suggestions_selected", j5 = "search_initiated", P5 = "no_results_found", M5 = "search_results_found", B5 = "search_result_selected", V5 = "search_result_linked", G5 = "feedback_closed_clicked", H5 = "help_btn_clicked", W5 = "connector_chat_support_clicked", U5 = "add_custom_field_clicked", Z5 = "add_custom_field_success", $5 = "update_custom_field_success", od = "clicked_on_lookup_config", z5 = "clicked_on_lookup_field", X5 = "saved_lookup_config", Y5 = "settings_defaults_modal_opened", J5 = "defaults_configuration_saved", q5 = {
|
|
7066
7066
|
userEmail: "",
|
|
7067
7067
|
email: "",
|
|
7068
7068
|
baseUrls: {},
|
|
@@ -7078,7 +7078,7 @@ const en = {
|
|
|
7078
7078
|
stackingContext: {}
|
|
7079
7079
|
}, Ke = yl(q5), is = "hiver_connectors", Xc = {
|
|
7080
7080
|
NOT_FOUND: 404
|
|
7081
|
-
}, K5 = "ftr-connector-blue-dot", Tf = "ftr-connectors-write-flow", Q5 = "ftr-connectors-enhancements", eb = "ftr-connector-schedule-call-agent", tb = "ftr-connectors-edit", nb = "enableAllConnectorFtr", rb = "ftr-cards-open-state", ob = "ftr-connectors-global-search", ib = "ftr-connectors-smart-suggestions", sb = "ftr-connectors-email-selection", ab = "ftr-connector-agent-feedback", sa = "ftr-connector-unified-view", cb = "ftr-connectors-expanded-form", id = "ftr-apps-lookup-revamp", lb = "ftr-ci-configurable-fields", sd = "Please refresh and try again", ub = "No data available", ss = "-", Lf = "Refresh", Rf = "Minimize", Wl = "Expand", Of = "Connectors", Ul = "Apps", db = "Collapse", fb = "Close", Ff = "Link", pb = "Create", hb = "Update",
|
|
7081
|
+
}, K5 = "ftr-connector-blue-dot", Tf = "ftr-connectors-write-flow", Q5 = "ftr-connectors-enhancements", eb = "ftr-connector-schedule-call-agent", tb = "ftr-connectors-edit", nb = "enableAllConnectorFtr", rb = "ftr-cards-open-state", ob = "ftr-connectors-global-search", ib = "ftr-connectors-smart-suggestions", sb = "ftr-connectors-email-selection", ab = "ftr-connector-agent-feedback", sa = "ftr-connector-unified-view", cb = "ftr-connectors-expanded-form", id = "ftr-apps-lookup-revamp", lb = "ftr-ci-configurable-fields", sd = "Please refresh and try again", ub = "No data available", ss = "-", Lf = "Refresh", Rf = "Minimize", Wl = "Expand", Of = "Connectors", Ul = "Apps", db = "Collapse", fb = "Close", Ff = "Link", pb = "Create", hb = "Update", kf = "Unlink", Df = "Edit", Zl = "Cancel", $l = "Create new object", Nf = "Link existing object", gb = "Are you sure you want to unlink this object?", mb = "The object will be removed from this conversation for all users. However the object will still be available on {{connectorName}} if you'd like to link it back in the future.", bb = "Edit card", xb = "bullet_list", vb = "Expanded", yb = "Collapsed", jf = "Something is wrong with the {{connector_name}} Connector setup. Please check our help guide <>here<>.", Pf = "UNKNOWN_ERROR", Cb = "https://help.hiverhq.com/custom-connectors/common-connector-errors", ad = {
|
|
7082
7082
|
MAIN_BUTTON: "main_button",
|
|
7083
7083
|
ICON: "create_icon"
|
|
7084
7084
|
}, Eb = " Add custom field", zl = (e) => {
|
|
@@ -7240,12 +7240,12 @@ const Ab = (e) => /* @__PURE__ */ S.createElement("svg", { width: 20, height: 21
|
|
|
7240
7240
|
position: absolute;
|
|
7241
7241
|
right: -8px;
|
|
7242
7242
|
top: -5px;
|
|
7243
|
-
`,
|
|
7243
|
+
`, kb = A(N)`
|
|
7244
7244
|
margin-top: 8px;
|
|
7245
7245
|
flex-direction: row;
|
|
7246
7246
|
flex-wrap: wrap;
|
|
7247
7247
|
gap: 12px;
|
|
7248
|
-
`,
|
|
7248
|
+
`, Db = A(N)`
|
|
7249
7249
|
width: 20px;
|
|
7250
7250
|
height: 20px;
|
|
7251
7251
|
cursor: pointer;
|
|
@@ -7279,10 +7279,10 @@ const Ab = (e) => /* @__PURE__ */ S.createElement("svg", { width: 20, height: 21
|
|
|
7279
7279
|
}, c = () => {
|
|
7280
7280
|
o(0);
|
|
7281
7281
|
};
|
|
7282
|
-
return /* @__PURE__ */ l.jsx(
|
|
7282
|
+
return /* @__PURE__ */ l.jsx(kb, { onMouseLeave: c, children: Array.from({ length: n }, (u, d) => {
|
|
7283
7283
|
const p = d < i;
|
|
7284
7284
|
return /* @__PURE__ */ l.jsx(
|
|
7285
|
-
|
|
7285
|
+
Db,
|
|
7286
7286
|
{
|
|
7287
7287
|
onClick: () => s(d + 1),
|
|
7288
7288
|
onMouseEnter: () => a(d + 1),
|
|
@@ -7315,7 +7315,7 @@ const Ab = (e) => /* @__PURE__ */ S.createElement("svg", { width: 20, height: 21
|
|
|
7315
7315
|
);
|
|
7316
7316
|
}) });
|
|
7317
7317
|
}, Pb = ({ connectors: e, expanded: t = !1 }) => {
|
|
7318
|
-
const { currentSmIds: n, sendTrackingEvent: r, userEmail: o } =
|
|
7318
|
+
const { currentSmIds: n, sendTrackingEvent: r, userEmail: o } = De(Ke), { userGroupId: i, userId: s } = rn() || {}, a = Yc({
|
|
7319
7319
|
url: Af,
|
|
7320
7320
|
params: {
|
|
7321
7321
|
email: o,
|
|
@@ -7424,7 +7424,7 @@ const Ab = (e) => /* @__PURE__ */ S.createElement("svg", { width: 20, height: 21
|
|
|
7424
7424
|
`, Xb = A(Y)`
|
|
7425
7425
|
color: ${M.palette.gray.gray2};
|
|
7426
7426
|
`, Yb = () => {
|
|
7427
|
-
const { availableFeatures: e, sendTrackingEvent: t, isAdmin: n } =
|
|
7427
|
+
const { availableFeatures: e, sendTrackingEvent: t, isAdmin: n } = De(Ke), [r, o] = G(() => !(localStorage.getItem(Pa) === "true") && mt(e, eb));
|
|
7428
7428
|
oe(() => {
|
|
7429
7429
|
localStorage.getItem(Pa) === "true" && o(!1);
|
|
7430
7430
|
}, []);
|
|
@@ -7451,7 +7451,7 @@ const Ab = (e) => /* @__PURE__ */ S.createElement("svg", { width: 20, height: 21
|
|
|
7451
7451
|
] }) })
|
|
7452
7452
|
] });
|
|
7453
7453
|
}, Jb = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4649_80352'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='21'%3e%3crect%20y='0.320312'%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4649_80352)'%3e%3cpath%20d='M9.16797%2014.4873H10.8346V11.154H14.168V9.4873H10.8346V6.15397H9.16797V9.4873H5.83464V11.154H9.16797V14.4873ZM10.0013%2018.654C8.84852%2018.654%207.76519%2018.4352%206.7513%2017.9977C5.73741%2017.5602%204.85547%2016.9665%204.10547%2016.2165C3.35547%2015.4665%202.76172%2014.5845%202.32422%2013.5706C1.88672%2012.5567%201.66797%2011.4734%201.66797%2010.3206C1.66797%209.16786%201.88672%208.08453%202.32422%207.07064C2.76172%206.05675%203.35547%205.1748%204.10547%204.4248C4.85547%203.6748%205.73741%203.08105%206.7513%202.64355C7.76519%202.20605%208.84852%201.9873%2010.0013%201.9873C11.1541%201.9873%2012.2374%202.20605%2013.2513%202.64355C14.2652%203.08105%2015.1471%203.6748%2015.8971%204.4248C16.6471%205.1748%2017.2409%206.05675%2017.6784%207.07064C18.1159%208.08453%2018.3346%209.16786%2018.3346%2010.3206C18.3346%2011.4734%2018.1159%2012.5567%2017.6784%2013.5706C17.2409%2014.5845%2016.6471%2015.4665%2015.8971%2016.2165C15.1471%2016.9665%2014.2652%2017.5602%2013.2513%2017.9977C12.2374%2018.4352%2011.1541%2018.654%2010.0013%2018.654ZM10.0013%2016.9873C11.8624%2016.9873%2013.4388%2016.3415%2014.7305%2015.0498C16.0221%2013.7581%2016.668%2012.1817%2016.668%2010.3206C16.668%208.45953%2016.0221%206.88314%2014.7305%205.59147C13.4388%204.2998%2011.8624%203.65397%2010.0013%203.65397C8.14019%203.65397%206.5638%204.2998%205.27214%205.59147C3.98047%206.88314%203.33464%208.45953%203.33464%2010.3206C3.33464%2012.1817%203.98047%2013.7581%205.27214%2015.0498C6.5638%2016.3415%208.14019%2016.9873%2010.0013%2016.9873Z'%20fill='%234D596C'/%3e%3c/g%3e%3c/svg%3e", Vf = (e) => /* @__PURE__ */ S.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M15.505 1.84634C15.1241 1.46545 14.6074 1.25146 14.0688 1.25146C13.5301 1.25146 13.0134 1.46545 12.6325 1.84634L10.6244 3.85447C10.6108 3.3249 10.391 2.82156 10.0116 2.45179C9.63228 2.08203 9.12349 1.87508 8.59375 1.87509H3.90625C3.36753 1.87509 2.85087 2.0891 2.46994 2.47003C2.08901 2.85097 1.875 3.36762 1.875 3.90634V16.0938C1.875 16.6326 2.08901 17.1492 2.46994 17.5302C2.85087 17.9111 3.36753 18.1251 3.90625 18.1251H16.0938C16.6325 18.1251 17.1491 17.9111 17.5301 17.5302C17.911 17.1492 18.125 16.6326 18.125 16.0938V11.4063C18.125 10.8775 17.9189 10.3696 17.5503 9.99039C17.1817 9.6112 16.6798 9.39069 16.1512 9.37572L18.1569 7.37072C18.5378 6.98979 18.7518 6.47316 18.7518 5.93447C18.7518 5.39578 18.5378 4.87915 18.1569 4.49822L15.505 1.84634ZM11.985 9.37509H10.625V8.01509L11.985 9.37509ZM13.5162 2.73009C13.5888 2.65753 13.6749 2.59996 13.7697 2.56069C13.8645 2.52141 13.9661 2.5012 14.0688 2.5012C14.1714 2.5012 14.273 2.52141 14.3678 2.56069C14.4626 2.59996 14.5487 2.65753 14.6212 2.73009L17.2725 5.38197C17.3451 5.45452 17.4026 5.54065 17.4419 5.63545C17.4812 5.73025 17.5014 5.83186 17.5014 5.93447C17.5014 6.03708 17.4812 6.13869 17.4419 6.23349C17.4026 6.32829 17.3451 6.41442 17.2725 6.48697L14.6212 9.13822C14.5487 9.21079 14.4626 9.26835 14.3678 9.30763C14.273 9.3469 14.1714 9.36711 14.0688 9.36711C13.9661 9.36711 13.8645 9.3469 13.7697 9.30763C13.6749 9.26835 13.5888 9.21079 13.5162 9.13822L10.8644 6.48697C10.7918 6.41442 10.7342 6.32829 10.695 6.23349C10.6557 6.13869 10.6355 6.03708 10.6355 5.93447C10.6355 5.83186 10.6557 5.73025 10.695 5.63545C10.7342 5.54065 10.7918 5.45452 10.8644 5.38197L13.5162 2.73009ZM9.375 3.90634V9.37509H3.125V3.90634C3.125 3.47509 3.475 3.12509 3.90625 3.12509H8.59375C9.025 3.12509 9.375 3.47509 9.375 3.90634ZM3.125 16.0938V10.6251H9.375V16.8751H3.90625C3.475 16.8751 3.125 16.5251 3.125 16.0938ZM10.625 10.6251H16.0938C16.525 10.6251 16.875 10.9751 16.875 11.4063V16.0938C16.875 16.5251 16.525 16.8751 16.0938 16.8751H10.625V10.6251Z", fill: "#3E4C5A" }), /* @__PURE__ */ S.createElement("rect", { x: 10.877, y: 5.90918, width: 4.54545, height: 4.54545, rx: 1, transform: "rotate(-45 10.877 5.90918)", fill: "#FFE250" }), /* @__PURE__ */ S.createElement("path", { d: "M3.77344 12.2727C3.77344 11.7204 4.22115 11.2727 4.77344 11.2727H7.77344C8.32572 11.2727 8.77344 11.7204 8.77344 12.2727V15.2727C8.77344 15.825 8.32572 16.2727 7.77344 16.2727H4.77344C4.22115 16.2727 3.77344 15.825 3.77344 15.2727L3.77344 12.2727Z", fill: "#FFE250" })), qb = "data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1012_80924)'%3e%3cpath%20d='M9.66663%2015.1202H11.3333V13.4535H9.66663V15.1202ZM10.5%201.78687C5.89996%201.78687%202.16663%205.5202%202.16663%2010.1202C2.16663%2014.7202%205.89996%2018.4535%2010.5%2018.4535C15.1%2018.4535%2018.8333%2014.7202%2018.8333%2010.1202C18.8333%205.5202%2015.1%201.78687%2010.5%201.78687ZM10.5%2016.7869C6.82496%2016.7869%203.83329%2013.7952%203.83329%2010.1202C3.83329%206.4452%206.82496%203.45353%2010.5%203.45353C14.175%203.45353%2017.1666%206.4452%2017.1666%2010.1202C17.1666%2013.7952%2014.175%2016.7869%2010.5%2016.7869ZM10.5%205.1202C8.65829%205.1202%207.16663%206.61187%207.16663%208.45353H8.83329C8.83329%207.53687%209.58329%206.78687%2010.5%206.78687C11.4166%206.78687%2012.1666%207.53687%2012.1666%208.45353C12.1666%2010.1202%209.66663%209.91187%209.66663%2012.6202H11.3333C11.3333%2010.7452%2013.8333%2010.5369%2013.8333%208.45353C13.8333%206.61187%2012.3416%205.1202%2010.5%205.1202Z'%20fill='%234D596C'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1012_80924'%3e%3crect%20width='20'%20height='20'%20fill='white'%20transform='translate(0.5%200.120117)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Kb = (e) => /* @__PURE__ */ S.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_1329_1727)" }, /* @__PURE__ */ S.createElement("path", { d: "M15 1.5H3C2.175 1.5 1.5 2.175 1.5 3V16.5L4.5 13.5H15C15.825 13.5 16.5 12.825 16.5 12V3C16.5 2.175 15.825 1.5 15 1.5ZM15 12H4.5L3 13.5V3H15V12ZM5.25 6.75H6.75V8.25H5.25V6.75ZM8.25 6.75H9.75V8.25H8.25V6.75ZM11.25 6.75H12.75V8.25H11.25V6.75Z", fill: "#6F7C90" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_1329_1727" }, /* @__PURE__ */ S.createElement("rect", { width: 18, height: 18, fill: "white" })))), Qb = (e) => /* @__PURE__ */ S.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_1329_1720)" }, /* @__PURE__ */ S.createElement("path", { d: "M16.5 6.93L11.1075 6.465L9 1.5L6.8925 6.4725L1.5 6.93L5.595 10.4775L4.365 15.75L9 12.9525L13.635 15.75L12.4125 10.4775L16.5 6.93ZM9 11.55L6.18 13.2525L6.93 10.0425L4.44 7.8825L7.725 7.5975L9 4.575L10.2825 7.605L13.5675 7.89L11.0775 10.05L11.8275 13.26L9 11.55Z", fill: "#6F7C90" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_1329_1720" }, /* @__PURE__ */ S.createElement("rect", { width: 18, height: 18, fill: "white" })))), e9 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.3462%208.73757C14.0406%208.43198%2013.5451%208.43198%2013.2395%208.73757C12.9339%209.04316%2012.9339%209.53863%2013.2395%209.84422L14.3462%208.73757ZM15.2392%2010.7372L15.7925%2010.1839L15.2392%2010.7372ZM16.2377%2013.1478L15.4552%2013.1478L16.2377%2013.1478ZM15.2392%2015.5584L14.6859%2015.0051L15.2392%2015.5584ZM10.418%2015.5584L9.86469%2016.1118L10.418%2015.5584ZM9.52499%2013.5588C9.2194%2013.2532%208.72393%2013.2532%208.41834%2013.5588C8.11275%2013.8643%208.11275%2014.3598%208.41834%2014.6654L9.52499%2013.5588ZM5.52477%2011.7731C5.83036%2012.0787%206.32583%2012.0787%206.63142%2011.7731C6.93701%2011.4675%206.93701%2010.972%206.63142%2010.6665L5.52477%2011.7731ZM9.45292%204.95224L10.0062%204.39892L9.45292%204.95224ZM10.346%206.95192C10.6515%207.25752%2011.147%207.25752%2011.4526%206.95192C11.7582%206.64633%2011.7582%206.15087%2011.4526%205.84527L10.346%206.95192ZM13.2395%209.84422L14.6859%2011.2906L15.7925%2010.1839L14.3462%208.73757L13.2395%209.84422ZM14.6859%2011.2906C15.1785%2011.7832%2015.4552%2012.4512%2015.4552%2013.1478L17.0202%2013.1478C17.0202%2012.0362%2016.5786%2010.97%2015.7925%2010.1839L14.6859%2011.2906ZM15.4552%2013.1478C15.4552%2013.8445%2015.1785%2014.5125%2014.6859%2015.0051L15.7925%2016.1118C16.5786%2015.3257%2017.0202%2014.2595%2017.0202%2013.1478L15.4552%2013.1478ZM14.6859%2015.0051C13.6601%2016.0308%2011.9971%2016.0308%2010.9713%2015.0051L9.86469%2016.1118C11.5016%2017.7487%2014.1556%2017.7487%2015.7925%2016.1118L14.6859%2015.0051ZM10.9713%2015.0051L9.52499%2013.5588L8.41834%2014.6654L9.86469%2016.1118L10.9713%2015.0051ZM6.63142%2010.6665L5.18507%209.2201L4.07842%2010.3268L5.52477%2011.7731L6.63142%2010.6665ZM5.18507%209.2201C4.69249%208.72752%204.41576%208.05944%204.41576%207.36283H2.85072C2.85072%208.47452%203.29234%209.54067%204.07842%2010.3268L5.18507%209.2201ZM4.41576%207.36283C4.41576%206.66622%204.69249%205.99815%205.18507%205.50557L4.07842%204.39892C3.29234%205.185%202.85072%206.25115%202.85072%207.36283H4.41576ZM5.18507%205.50557C6.21081%204.47983%207.87386%204.47983%208.8996%205.50557L10.0062%204.39892C8.36932%202.76199%205.71534%202.76199%204.07842%204.39892L5.18507%205.50557ZM8.8996%205.50557L10.346%206.95192L11.4526%205.84527L10.0062%204.39892L8.8996%205.50557Z'%20fill='%234D596C'/%3e%3crect%20x='6.36328'%20y='7.91895'%20width='1.66667'%20height='8.33333'%20rx='0.833333'%20transform='rotate(-45%206.36328%207.91895)'%20fill='%234D596C'/%3e%3c/svg%3e", Gf = () => {
|
|
7454
|
-
const { connectorId: e, store: t } =
|
|
7454
|
+
const { connectorId: e, store: t } = De(Ke), [n, r] = G(!e), [o, i] = G("");
|
|
7455
7455
|
return oe(() => {
|
|
7456
7456
|
if (t && e) {
|
|
7457
7457
|
const s = t.subscribe((a) => {
|
|
@@ -7643,7 +7643,7 @@ const i9 = A(Q)`
|
|
|
7643
7643
|
`, hr = A(wl)`
|
|
7644
7644
|
display: block;
|
|
7645
7645
|
margin: ${(e) => e.margin ? e.margin : 0};
|
|
7646
|
-
`,
|
|
7646
|
+
`, Do = A(it)`
|
|
7647
7647
|
${(e) => e.disabled ? "opacity: 0.5;" : ""}
|
|
7648
7648
|
width: 32px;
|
|
7649
7649
|
height: 32px;
|
|
@@ -7805,14 +7805,14 @@ const i9 = A(Q)`
|
|
|
7805
7805
|
&:last-child {
|
|
7806
7806
|
margin-bottom: 16px;
|
|
7807
7807
|
}
|
|
7808
|
-
`,
|
|
7808
|
+
`, k9 = A(Y)`
|
|
7809
7809
|
white-space: nowrap;
|
|
7810
7810
|
overflow: hidden;
|
|
7811
7811
|
text-overflow: ellipsis;
|
|
7812
7812
|
max-width: 100%;
|
|
7813
7813
|
height: 100%;
|
|
7814
7814
|
color: ${M.palette.gray.gray2};
|
|
7815
|
-
`,
|
|
7815
|
+
`, D9 = A(N)`
|
|
7816
7816
|
padding: 8px 16px;
|
|
7817
7817
|
color: ${M.palette.gray.black};
|
|
7818
7818
|
`, N9 = A(Y)`
|
|
@@ -7831,7 +7831,7 @@ const i9 = A(Q)`
|
|
|
7831
7831
|
handleCreateNewObject: i,
|
|
7832
7832
|
handleLinkNewObject: s
|
|
7833
7833
|
}) => {
|
|
7834
|
-
const a = pe(null), c = pe(null), [u, d] = G(null), p = !!u, { connectorName: b, connectorId: v, isReady: m } = Gf(), { availableFeatures: h, sendTrackingEvent: f, currentSmIds: g, userEmail: x } =
|
|
7834
|
+
const a = pe(null), c = pe(null), [u, d] = G(null), p = !!u, { connectorName: b, connectorId: v, isReady: m } = Gf(), { availableFeatures: h, sendTrackingEvent: f, currentSmIds: g, userEmail: x } = De(Ke), { userGroupId: y, userId: E } = rn() || {}, C = mt(h, sa), w = [
|
|
7835
7835
|
{
|
|
7836
7836
|
id: "rate-experience",
|
|
7837
7837
|
label: "Rate your experience",
|
|
@@ -7871,8 +7871,8 @@ const i9 = A(Q)`
|
|
|
7871
7871
|
}
|
|
7872
7872
|
}
|
|
7873
7873
|
], _ = _e((T) => {
|
|
7874
|
-
const
|
|
7875
|
-
if (!T || !
|
|
7874
|
+
const D = document.getElementById("connector-agent-container");
|
|
7875
|
+
if (!T || !D)
|
|
7876
7876
|
return;
|
|
7877
7877
|
c.current && c.current.disconnect();
|
|
7878
7878
|
const F = new IntersectionObserver(
|
|
@@ -7882,7 +7882,7 @@ const i9 = A(Q)`
|
|
|
7882
7882
|
j == null || j.classList.toggle(Hf, V.intersectionRatio === 0);
|
|
7883
7883
|
},
|
|
7884
7884
|
{
|
|
7885
|
-
root:
|
|
7885
|
+
root: D
|
|
7886
7886
|
}
|
|
7887
7887
|
);
|
|
7888
7888
|
F.observe(T), c.current = F;
|
|
@@ -8014,10 +8014,10 @@ function M9() {
|
|
|
8014
8014
|
return v !== void 0 && v(W, q) ? W : (C = F, w = q, q);
|
|
8015
8015
|
}, I = p === void 0 ? null : p, T = function() {
|
|
8016
8016
|
return _(d());
|
|
8017
|
-
},
|
|
8017
|
+
}, D = I === null ? void 0 : function() {
|
|
8018
8018
|
return _(I());
|
|
8019
8019
|
};
|
|
8020
|
-
return [T,
|
|
8020
|
+
return [T, D];
|
|
8021
8021
|
}, [d, p, b, v]), g = f[0], x = f[1], y = r(u, g, x);
|
|
8022
8022
|
return i(function() {
|
|
8023
8023
|
h.hasValue = !0, h.value = y;
|
|
@@ -8298,7 +8298,7 @@ var a6 = typeof Symbol == "function" && Symbol.observable || "@@observable", bd
|
|
|
8298
8298
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Ga()}`,
|
|
8299
8299
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Ga()}`
|
|
8300
8300
|
}, zr = c6;
|
|
8301
|
-
function
|
|
8301
|
+
function ki(e) {
|
|
8302
8302
|
if (typeof e != "object" || e === null)
|
|
8303
8303
|
return !1;
|
|
8304
8304
|
let t = e;
|
|
@@ -8389,7 +8389,7 @@ function qf(e, t, n) {
|
|
|
8389
8389
|
};
|
|
8390
8390
|
}
|
|
8391
8391
|
function b(f) {
|
|
8392
|
-
if (!
|
|
8392
|
+
if (!ki(f))
|
|
8393
8393
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(7) : `Actions must be plain objects. Instead, the actual type was: '${rr(f)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
|
|
8394
8394
|
if (typeof f.type > "u")
|
|
8395
8395
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
@@ -8461,7 +8461,7 @@ function p6(e, t, n, r) {
|
|
|
8461
8461
|
const o = Object.keys(t), i = n && n.type === zr.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
8462
8462
|
if (o.length === 0)
|
|
8463
8463
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
8464
|
-
if (!
|
|
8464
|
+
if (!ki(e))
|
|
8465
8465
|
return `The ${i} has unexpected type of "${rr(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;
|
|
8466
8466
|
const s = Object.keys(e).filter((a) => !t.hasOwnProperty(a) && !r[a]);
|
|
8467
8467
|
if (s.forEach((a) => {
|
|
@@ -8537,7 +8537,7 @@ function g6(...e) {
|
|
|
8537
8537
|
};
|
|
8538
8538
|
}
|
|
8539
8539
|
function Qf(e) {
|
|
8540
|
-
return
|
|
8540
|
+
return ki(e) && "type" in e && typeof e.type == "string";
|
|
8541
8541
|
}
|
|
8542
8542
|
var ep = Symbol.for("immer-nothing"), vd = Symbol.for("immer-draftable"), zt = Symbol.for("immer-state"), m6 = process.env.NODE_ENV !== "production" ? [
|
|
8543
8543
|
// All error codes, starting by 0:
|
|
@@ -8622,7 +8622,7 @@ function ca(e) {
|
|
|
8622
8622
|
function la(e) {
|
|
8623
8623
|
return e instanceof Set;
|
|
8624
8624
|
}
|
|
8625
|
-
function
|
|
8625
|
+
function Dr(e) {
|
|
8626
8626
|
return e.copy_ || e.base_;
|
|
8627
8627
|
}
|
|
8628
8628
|
function Kc(e, t) {
|
|
@@ -8791,24 +8791,24 @@ var Kl = {
|
|
|
8791
8791
|
get(e, t) {
|
|
8792
8792
|
if (t === zt)
|
|
8793
8793
|
return e;
|
|
8794
|
-
const n =
|
|
8794
|
+
const n = Dr(e);
|
|
8795
8795
|
if (!qc(n, t))
|
|
8796
8796
|
return I6(e, n, t);
|
|
8797
8797
|
const r = n[t];
|
|
8798
8798
|
return e.finalized_ || !Wn(r) ? r : r === Ha(e.base_, t) ? (Wa(e), e.copy_[t] = nl(r, e)) : r;
|
|
8799
8799
|
},
|
|
8800
8800
|
has(e, t) {
|
|
8801
|
-
return t in
|
|
8801
|
+
return t in Dr(e);
|
|
8802
8802
|
},
|
|
8803
8803
|
ownKeys(e) {
|
|
8804
|
-
return Reflect.ownKeys(
|
|
8804
|
+
return Reflect.ownKeys(Dr(e));
|
|
8805
8805
|
},
|
|
8806
8806
|
set(e, t, n) {
|
|
8807
|
-
const r = op(
|
|
8807
|
+
const r = op(Dr(e), t);
|
|
8808
8808
|
if (r != null && r.set)
|
|
8809
8809
|
return r.set.call(e.draft_, n), !0;
|
|
8810
8810
|
if (!e.modified_) {
|
|
8811
|
-
const o = Ha(
|
|
8811
|
+
const o = Ha(Dr(e), t), i = o == null ? void 0 : o[zt];
|
|
8812
8812
|
if (i && i.base_ === n)
|
|
8813
8813
|
return e.copy_[t] = n, e.assigned_[t] = !1, !0;
|
|
8814
8814
|
if (x6(n, o) && (n !== void 0 || qc(e.base_, t)))
|
|
@@ -8825,7 +8825,7 @@ var Kl = {
|
|
|
8825
8825
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
8826
8826
|
// the same guarantee in ES5 mode.
|
|
8827
8827
|
getOwnPropertyDescriptor(e, t) {
|
|
8828
|
-
const n =
|
|
8828
|
+
const n = Dr(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
8829
8829
|
return r && {
|
|
8830
8830
|
writable: !0,
|
|
8831
8831
|
configurable: e.type_ !== 1 || t !== "length",
|
|
@@ -8856,7 +8856,7 @@ Ci.set = function(e, t, n) {
|
|
|
8856
8856
|
};
|
|
8857
8857
|
function Ha(e, t) {
|
|
8858
8858
|
const n = e[zt];
|
|
8859
|
-
return (n ?
|
|
8859
|
+
return (n ? Dr(n) : e)[t];
|
|
8860
8860
|
}
|
|
8861
8861
|
function I6(e, t, n) {
|
|
8862
8862
|
var o;
|
|
@@ -9095,10 +9095,10 @@ function _d(e, t, n) {
|
|
|
9095
9095
|
const r = n.insert(t, e);
|
|
9096
9096
|
return e.set(t, r), r;
|
|
9097
9097
|
}
|
|
9098
|
-
function
|
|
9098
|
+
function k6(e) {
|
|
9099
9099
|
return typeof e != "object" || e == null || Object.isFrozen(e);
|
|
9100
9100
|
}
|
|
9101
|
-
function
|
|
9101
|
+
function D6(e, t, n) {
|
|
9102
9102
|
const r = dp(e, t, n);
|
|
9103
9103
|
return {
|
|
9104
9104
|
detectMutations() {
|
|
@@ -9166,11 +9166,11 @@ function N6(e = {}) {
|
|
|
9166
9166
|
return a == null ? b : a.call(this, p, b);
|
|
9167
9167
|
};
|
|
9168
9168
|
}, {
|
|
9169
|
-
isImmutable: r =
|
|
9169
|
+
isImmutable: r = k6,
|
|
9170
9170
|
ignoredPaths: o,
|
|
9171
9171
|
warnAfter: i = 32
|
|
9172
9172
|
} = e;
|
|
9173
|
-
const s =
|
|
9173
|
+
const s = D6.bind(null, r, o);
|
|
9174
9174
|
return ({
|
|
9175
9175
|
getState: a
|
|
9176
9176
|
}) => {
|
|
@@ -9192,7 +9192,7 @@ function N6(e = {}) {
|
|
|
9192
9192
|
}
|
|
9193
9193
|
function pp(e) {
|
|
9194
9194
|
const t = typeof e;
|
|
9195
|
-
return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) ||
|
|
9195
|
+
return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || ki(e);
|
|
9196
9196
|
}
|
|
9197
9197
|
function rl(e, t = "", n = pp, r, o = [], i) {
|
|
9198
9198
|
let s;
|
|
@@ -9344,7 +9344,7 @@ function H6(e) {
|
|
|
9344
9344
|
let a;
|
|
9345
9345
|
if (typeof n == "function")
|
|
9346
9346
|
a = n;
|
|
9347
|
-
else if (
|
|
9347
|
+
else if (ki(n))
|
|
9348
9348
|
a = Kf(n);
|
|
9349
9349
|
else
|
|
9350
9350
|
throw new Error(process.env.NODE_ENV === "production" ? Ye(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
|
|
@@ -9700,8 +9700,8 @@ function tx({
|
|
|
9700
9700
|
return _d(I, _, {
|
|
9701
9701
|
insert: () => {
|
|
9702
9702
|
const T = {};
|
|
9703
|
-
for (const [
|
|
9704
|
-
T[
|
|
9703
|
+
for (const [D, F] of Object.entries(o.selectors ?? {}))
|
|
9704
|
+
T[D] = nx(F, _, f, E);
|
|
9705
9705
|
return T;
|
|
9706
9706
|
}
|
|
9707
9707
|
});
|
|
@@ -9926,7 +9926,7 @@ const Sd = {
|
|
|
9926
9926
|
DELETE: "DELETE",
|
|
9927
9927
|
PATCH: "PATCH",
|
|
9928
9928
|
PUT: "PUT"
|
|
9929
|
-
}, Cx = "Required Field", Ex = "Invalid date", yp = /^https:\/\/([a-z0-9-]+(\.[a-z0-9-]+)+)(:[0-9]{1,5})?(\/[^\s/]*)*$/i, wx = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Cp = "Please enter a valid URL", Ix = "Please enter valid ID", _x = "Please enter valid input", Ax = "URL must start with https://", Sx = "URL should not end with a slash", Tx = "Invalid email address", Lx = "Email must be a string", Td = "Invalid date", Rx = "Date cannot be in the past", Ox = "Date cannot be in the future", Fx = "Invalid number",
|
|
9929
|
+
}, Cx = "Required Field", Ex = "Invalid date", yp = /^https:\/\/([a-z0-9-]+(\.[a-z0-9-]+)+)(:[0-9]{1,5})?(\/[^\s/]*)*$/i, wx = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Cp = "Please enter a valid URL", Ix = "Please enter valid ID", _x = "Please enter valid input", Ax = "URL must start with https://", Sx = "URL should not end with a slash", Tx = "Invalid email address", Lx = "Email must be a string", Td = "Invalid date", Rx = "Date cannot be in the past", Ox = "Date cannot be in the future", Fx = "Invalid number", kx = "Invalid text", VO = async (e) => {
|
|
9930
9930
|
const t = new URLSearchParams(), { inboxIds: n, channelType: r, conversationId: o, fetchAuthenticatedConnectors: i } = e || {};
|
|
9931
9931
|
return n == null || n.forEach((a) => {
|
|
9932
9932
|
t.append("inbox_ids", a);
|
|
@@ -9940,7 +9940,7 @@ const Sd = {
|
|
|
9940
9940
|
url: `${yx}?${t.toString()}`,
|
|
9941
9941
|
method: vp.GET
|
|
9942
9942
|
});
|
|
9943
|
-
},
|
|
9943
|
+
}, Dx = "/v1/api/connectors/ug", Ep = async (e) => {
|
|
9944
9944
|
const t = new URLSearchParams();
|
|
9945
9945
|
for (const [i, s] of Object.entries(e || {}))
|
|
9946
9946
|
if (Array.isArray(s))
|
|
@@ -9952,7 +9952,7 @@ const Sd = {
|
|
|
9952
9952
|
t.append(i, s);
|
|
9953
9953
|
}
|
|
9954
9954
|
t.append("onlyEnabledAuthenticated", "true"), t.append("minimal", "true");
|
|
9955
|
-
const n =
|
|
9955
|
+
const n = Dx + `?${t.toString()}`, r = await Fe({
|
|
9956
9956
|
url: n,
|
|
9957
9957
|
method: vp.GET
|
|
9958
9958
|
}), o = r == null ? void 0 : r.data;
|
|
@@ -10152,7 +10152,7 @@ const Wx = {
|
|
|
10152
10152
|
const r = n.limit;
|
|
10153
10153
|
return r !== void 0 && t.length > r ? e || `Maximum characters allowed are ${r}` : !0;
|
|
10154
10154
|
}
|
|
10155
|
-
return e ||
|
|
10155
|
+
return e || kx;
|
|
10156
10156
|
}, Kx = (e) => (t) => typeof t == "string" ? t.startsWith("https:") ? yp.test(t) ? !0 : e || Cp : t.trim().length > 0 ? !0 : e || Ix : e || _x, Qx = ["async-select", "select", "multi-select"], Sp = (e, t = !1) => {
|
|
10157
10157
|
const n = {};
|
|
10158
10158
|
for (const r in e) {
|
|
@@ -10316,8 +10316,8 @@ function vn(e, t) {
|
|
|
10316
10316
|
}
|
|
10317
10317
|
var av = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
10318
10318
|
function eu(e) {
|
|
10319
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, o = r === void 0 ? !1 : r, i = e.defaultValue, s = i === void 0 ? null : i, a = e.inputValue, c = e.menuIsOpen, u = e.onChange, d = e.onInputChange, p = e.onMenuClose, b = e.onMenuOpen, v = e.value, m = vn(e, av), h = G(a !== void 0 ? a : n), f = gt(h, 2), g = f[0], x = f[1], y = G(c !== void 0 ? c : o), E = gt(y, 2), C = E[0], w = E[1], _ = G(v !== void 0 ? v : s), I = gt(_, 2), T = I[0],
|
|
10320
|
-
typeof u == "function" && u(U, J),
|
|
10319
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, o = r === void 0 ? !1 : r, i = e.defaultValue, s = i === void 0 ? null : i, a = e.inputValue, c = e.menuIsOpen, u = e.onChange, d = e.onInputChange, p = e.onMenuClose, b = e.onMenuOpen, v = e.value, m = vn(e, av), h = G(a !== void 0 ? a : n), f = gt(h, 2), g = f[0], x = f[1], y = G(c !== void 0 ? c : o), E = gt(y, 2), C = E[0], w = E[1], _ = G(v !== void 0 ? v : s), I = gt(_, 2), T = I[0], D = I[1], F = _e(function(U, J) {
|
|
10320
|
+
typeof u == "function" && u(U, J), D(U);
|
|
10321
10321
|
}, [u]), O = _e(function(U, J) {
|
|
10322
10322
|
var ne;
|
|
10323
10323
|
typeof d == "function" && (ne = d(U, J)), x(ne !== void 0 ? ne : U);
|
|
@@ -10348,14 +10348,14 @@ function be() {
|
|
|
10348
10348
|
function cv(e, t) {
|
|
10349
10349
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
10350
10350
|
}
|
|
10351
|
-
function
|
|
10351
|
+
function kd(e, t) {
|
|
10352
10352
|
for (var n = 0; n < t.length; n++) {
|
|
10353
10353
|
var r = t[n];
|
|
10354
10354
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Tp(r.key), r);
|
|
10355
10355
|
}
|
|
10356
10356
|
}
|
|
10357
10357
|
function lv(e, t, n) {
|
|
10358
|
-
return t &&
|
|
10358
|
+
return t && kd(e.prototype, t), n && kd(e, n), Object.defineProperty(e, "prototype", {
|
|
10359
10359
|
writable: !1
|
|
10360
10360
|
}), e;
|
|
10361
10361
|
}
|
|
@@ -10376,10 +10376,10 @@ function uv(e, t) {
|
|
|
10376
10376
|
writable: !1
|
|
10377
10377
|
}), t && sl(e, t);
|
|
10378
10378
|
}
|
|
10379
|
-
function
|
|
10380
|
-
return
|
|
10379
|
+
function ks(e) {
|
|
10380
|
+
return ks = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
10381
10381
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
10382
|
-
},
|
|
10382
|
+
}, ks(e);
|
|
10383
10383
|
}
|
|
10384
10384
|
function Rp() {
|
|
10385
10385
|
try {
|
|
@@ -10403,9 +10403,9 @@ function fv(e, t) {
|
|
|
10403
10403
|
function pv(e) {
|
|
10404
10404
|
var t = Rp();
|
|
10405
10405
|
return function() {
|
|
10406
|
-
var n, r =
|
|
10406
|
+
var n, r = ks(e);
|
|
10407
10407
|
if (t) {
|
|
10408
|
-
var o =
|
|
10408
|
+
var o = ks(this).constructor;
|
|
10409
10409
|
n = Reflect.construct(r, arguments, o);
|
|
10410
10410
|
} else n = r.apply(this, arguments);
|
|
10411
10411
|
return fv(this, n);
|
|
@@ -10465,11 +10465,11 @@ var yv = /* @__PURE__ */ function() {
|
|
|
10465
10465
|
return (o = r.parentNode) == null ? void 0 : o.removeChild(r);
|
|
10466
10466
|
}), this.tags = [], this.ctr = 0;
|
|
10467
10467
|
}, e;
|
|
10468
|
-
}(), wt = "-ms-",
|
|
10468
|
+
}(), wt = "-ms-", Ds = "-moz-", Ge = "-webkit-", Op = "comm", tu = "rule", nu = "decl", Cv = "@import", Fp = "@keyframes", Ev = "@layer", wv = Math.abs, fa = String.fromCharCode, Iv = Object.assign;
|
|
10469
10469
|
function _v(e, t) {
|
|
10470
10470
|
return Et(e, 0) ^ 45 ? (((t << 2 ^ Et(e, 0)) << 2 ^ Et(e, 1)) << 2 ^ Et(e, 2)) << 2 ^ Et(e, 3) : 0;
|
|
10471
10471
|
}
|
|
10472
|
-
function
|
|
10472
|
+
function kp(e) {
|
|
10473
10473
|
return e.trim();
|
|
10474
10474
|
}
|
|
10475
10475
|
function Av(e, t) {
|
|
@@ -10499,7 +10499,7 @@ function Ui(e, t) {
|
|
|
10499
10499
|
function Sv(e, t) {
|
|
10500
10500
|
return e.map(t).join("");
|
|
10501
10501
|
}
|
|
10502
|
-
var pa = 1, jo = 1,
|
|
10502
|
+
var pa = 1, jo = 1, Dp = 0, Bt = 0, dt = 0, Wo = "";
|
|
10503
10503
|
function ha(e, t, n, r, o, i, s) {
|
|
10504
10504
|
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: pa, column: jo, length: s, return: "" };
|
|
10505
10505
|
}
|
|
@@ -10513,7 +10513,7 @@ function Lv() {
|
|
|
10513
10513
|
return dt = Bt > 0 ? Et(Wo, --Bt) : 0, jo--, dt === 10 && (jo = 1, pa--), dt;
|
|
10514
10514
|
}
|
|
10515
10515
|
function Zt() {
|
|
10516
|
-
return dt = Bt <
|
|
10516
|
+
return dt = Bt < Dp ? Et(Wo, Bt++) : 0, jo++, dt === 10 && (jo = 1, pa++), dt;
|
|
10517
10517
|
}
|
|
10518
10518
|
function Rn() {
|
|
10519
10519
|
return Et(Wo, Bt);
|
|
@@ -10521,7 +10521,7 @@ function Rn() {
|
|
|
10521
10521
|
function as() {
|
|
10522
10522
|
return Bt;
|
|
10523
10523
|
}
|
|
10524
|
-
function
|
|
10524
|
+
function Di(e, t) {
|
|
10525
10525
|
return wi(Wo, e, t);
|
|
10526
10526
|
}
|
|
10527
10527
|
function Ii(e) {
|
|
@@ -10557,13 +10557,13 @@ function Ii(e) {
|
|
|
10557
10557
|
return 0;
|
|
10558
10558
|
}
|
|
10559
10559
|
function Np(e) {
|
|
10560
|
-
return pa = jo = 1,
|
|
10560
|
+
return pa = jo = 1, Dp = An(Wo = e), Bt = 0, [];
|
|
10561
10561
|
}
|
|
10562
10562
|
function jp(e) {
|
|
10563
10563
|
return Wo = "", e;
|
|
10564
10564
|
}
|
|
10565
10565
|
function cs(e) {
|
|
10566
|
-
return
|
|
10566
|
+
return kp(Di(Bt - 1, cl(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
10567
10567
|
}
|
|
10568
10568
|
function Rv(e) {
|
|
10569
10569
|
for (; (dt = Rn()) && dt < 33; )
|
|
@@ -10573,7 +10573,7 @@ function Rv(e) {
|
|
|
10573
10573
|
function Ov(e, t) {
|
|
10574
10574
|
for (; --t && Zt() && !(dt < 48 || dt > 102 || dt > 57 && dt < 65 || dt > 70 && dt < 97); )
|
|
10575
10575
|
;
|
|
10576
|
-
return
|
|
10576
|
+
return Di(e, as() + (t < 6 && Rn() == 32 && Zt() == 32));
|
|
10577
10577
|
}
|
|
10578
10578
|
function cl(e) {
|
|
10579
10579
|
for (; Zt(); )
|
|
@@ -10597,14 +10597,14 @@ function Fv(e, t) {
|
|
|
10597
10597
|
for (; Zt() && e + dt !== 57; )
|
|
10598
10598
|
if (e + dt === 84 && Rn() === 47)
|
|
10599
10599
|
break;
|
|
10600
|
-
return "/*" +
|
|
10600
|
+
return "/*" + Di(t, Bt - 1) + "*" + fa(e === 47 ? e : Zt());
|
|
10601
10601
|
}
|
|
10602
|
-
function
|
|
10602
|
+
function kv(e) {
|
|
10603
10603
|
for (; !Ii(Rn()); )
|
|
10604
10604
|
Zt();
|
|
10605
|
-
return
|
|
10605
|
+
return Di(e, Bt);
|
|
10606
10606
|
}
|
|
10607
|
-
function
|
|
10607
|
+
function Dv(e) {
|
|
10608
10608
|
return jp(ls("", null, null, null, [""], e = Np(e), 0, [0], e));
|
|
10609
10609
|
}
|
|
10610
10610
|
function ls(e, t, n, r, o, i, s, a, c) {
|
|
@@ -10654,7 +10654,7 @@ function ls(e, t, n, r, o, i, s, a, c) {
|
|
|
10654
10654
|
case 59:
|
|
10655
10655
|
_ += ";";
|
|
10656
10656
|
default:
|
|
10657
|
-
if (Ui(w =
|
|
10657
|
+
if (Ui(w = Dd(_, t, n, u, d, o, a, y, E = [], C = [], p), i), x === 123)
|
|
10658
10658
|
if (d === 0)
|
|
10659
10659
|
ls(_, t, w, w, E, i, p, a, C);
|
|
10660
10660
|
else
|
|
@@ -10663,7 +10663,7 @@ function ls(e, t, n, r, o, i, s, a, c) {
|
|
|
10663
10663
|
case 108:
|
|
10664
10664
|
case 109:
|
|
10665
10665
|
case 115:
|
|
10666
|
-
ls(e, w, w, r && Ui(
|
|
10666
|
+
ls(e, w, w, r && Ui(Dd(e, w, w, 0, 0, o, a, y, o, E = [], p), C), o, C, p, a, r ? E : C);
|
|
10667
10667
|
break;
|
|
10668
10668
|
default:
|
|
10669
10669
|
ls(_, w, w, w, [""], C, 0, a, C);
|
|
@@ -10688,7 +10688,7 @@ function ls(e, t, n, r, o, i, s, a, c) {
|
|
|
10688
10688
|
a[u++] = (An(_) - 1) * g, g = 1;
|
|
10689
10689
|
break;
|
|
10690
10690
|
case 64:
|
|
10691
|
-
Rn() === 45 && (_ += cs(Zt())), b = Rn(), d = p = An(y = _ +=
|
|
10691
|
+
Rn() === 45 && (_ += cs(Zt())), b = Rn(), d = p = An(y = _ += kv(as())), x++;
|
|
10692
10692
|
break;
|
|
10693
10693
|
case 45:
|
|
10694
10694
|
m === 45 && An(_) == 2 && (h = 0);
|
|
@@ -10696,10 +10696,10 @@ function ls(e, t, n, r, o, i, s, a, c) {
|
|
|
10696
10696
|
}
|
|
10697
10697
|
return i;
|
|
10698
10698
|
}
|
|
10699
|
-
function
|
|
10699
|
+
function Dd(e, t, n, r, o, i, s, a, c, u, d) {
|
|
10700
10700
|
for (var p = o - 1, b = o === 0 ? i : [""], v = ru(b), m = 0, h = 0, f = 0; m < r; ++m)
|
|
10701
10701
|
for (var g = 0, x = wi(e, p + 1, p = wv(h = s[m])), y = e; g < v; ++g)
|
|
10702
|
-
(y =
|
|
10702
|
+
(y = kp(h > 0 ? b[g] + " " + x : He(x, /&\f/g, b[g]))) && (c[f++] = y);
|
|
10703
10703
|
return ha(e, t, n, o === 0 ? tu : a, c, u, d);
|
|
10704
10704
|
}
|
|
10705
10705
|
function Nv(e, t, n) {
|
|
@@ -10751,7 +10751,7 @@ function Bv(e) {
|
|
|
10751
10751
|
var Vv = function(t, n, r) {
|
|
10752
10752
|
for (var o = 0, i = 0; o = i, i = Rn(), o === 38 && i === 12 && (n[r] = 1), !Ii(i); )
|
|
10753
10753
|
Zt();
|
|
10754
|
-
return
|
|
10754
|
+
return Di(t, Bt);
|
|
10755
10755
|
}, Gv = function(t, n) {
|
|
10756
10756
|
var r = -1, o = 44;
|
|
10757
10757
|
do
|
|
@@ -10830,7 +10830,7 @@ function Pp(e, t) {
|
|
|
10830
10830
|
case 4810:
|
|
10831
10831
|
case 6968:
|
|
10832
10832
|
case 2756:
|
|
10833
|
-
return Ge + e +
|
|
10833
|
+
return Ge + e + Ds + e + wt + e + e;
|
|
10834
10834
|
case 6828:
|
|
10835
10835
|
case 4268:
|
|
10836
10836
|
return Ge + e + wt + e + e;
|
|
@@ -10878,7 +10878,7 @@ function Pp(e, t) {
|
|
|
10878
10878
|
case 109:
|
|
10879
10879
|
if (Et(e, t + 4) !== 45) break;
|
|
10880
10880
|
case 102:
|
|
10881
|
-
return He(e, /(.+:)(.+)-([^]+)/, "$1" + Ge + "$2-$3$1" +
|
|
10881
|
+
return He(e, /(.+:)(.+)-([^]+)/, "$1" + Ge + "$2-$3$1" + Ds + (Et(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
10882
10882
|
case 115:
|
|
10883
10883
|
return ~al(e, "stretch") ? Pp(He(e, "stretch", "fill-available"), t) + e : e;
|
|
10884
10884
|
}
|
|
@@ -10921,13 +10921,13 @@ var Zv = function(t, n, r, o) {
|
|
|
10921
10921
|
case ":read-only":
|
|
10922
10922
|
case ":read-write":
|
|
10923
10923
|
return mo([ei(t, {
|
|
10924
|
-
props: [He(i, /:(read-\w+)/, ":" +
|
|
10924
|
+
props: [He(i, /:(read-\w+)/, ":" + Ds + "$1")]
|
|
10925
10925
|
})], o);
|
|
10926
10926
|
case "::placeholder":
|
|
10927
10927
|
return mo([ei(t, {
|
|
10928
10928
|
props: [He(i, /:(plac\w+)/, ":" + Ge + "input-$1")]
|
|
10929
10929
|
}), ei(t, {
|
|
10930
|
-
props: [He(i, /:(plac\w+)/, ":" +
|
|
10930
|
+
props: [He(i, /:(plac\w+)/, ":" + Ds + "$1")]
|
|
10931
10931
|
}), ei(t, {
|
|
10932
10932
|
props: [He(i, /:(plac\w+)/, wt + "input-$1")]
|
|
10933
10933
|
})], o);
|
|
@@ -10960,7 +10960,7 @@ var Zv = function(t, n, r, o) {
|
|
|
10960
10960
|
var d, p = [jv, Mv(function(h) {
|
|
10961
10961
|
d.insert(h);
|
|
10962
10962
|
})], b = Pv(u.concat(o, p)), v = function(f) {
|
|
10963
|
-
return mo(
|
|
10963
|
+
return mo(Dv(f), b);
|
|
10964
10964
|
};
|
|
10965
10965
|
c = function(f, g, x, y) {
|
|
10966
10966
|
d = x, v(f ? f + "{" + g.styles + "}" : g.styles), y && (m.inserted[g.name] = !0);
|
|
@@ -11106,7 +11106,7 @@ function Yv() {
|
|
|
11106
11106
|
}
|
|
11107
11107
|
}
|
|
11108
11108
|
}
|
|
11109
|
-
var C = c, w = u, _ = a, I = s, T = t,
|
|
11109
|
+
var C = c, w = u, _ = a, I = s, T = t, D = d, F = r, O = m, j = v, V = n, W = i, q = o, $ = p, U = !1;
|
|
11110
11110
|
function J(z) {
|
|
11111
11111
|
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ne(z) || E(z) === c;
|
|
11112
11112
|
}
|
|
@@ -11122,7 +11122,7 @@ function Yv() {
|
|
|
11122
11122
|
function K(z) {
|
|
11123
11123
|
return typeof z == "object" && z !== null && z.$$typeof === t;
|
|
11124
11124
|
}
|
|
11125
|
-
function
|
|
11125
|
+
function k(z) {
|
|
11126
11126
|
return E(z) === d;
|
|
11127
11127
|
}
|
|
11128
11128
|
function X(z) {
|
|
@@ -11146,7 +11146,7 @@ function Yv() {
|
|
|
11146
11146
|
function Te(z) {
|
|
11147
11147
|
return E(z) === p;
|
|
11148
11148
|
}
|
|
11149
|
-
$e.AsyncMode = C, $e.ConcurrentMode = w, $e.ContextConsumer = _, $e.ContextProvider = I, $e.Element = T, $e.ForwardRef =
|
|
11149
|
+
$e.AsyncMode = C, $e.ConcurrentMode = w, $e.ContextConsumer = _, $e.ContextProvider = I, $e.Element = T, $e.ForwardRef = D, $e.Fragment = F, $e.Lazy = O, $e.Memo = j, $e.Portal = V, $e.Profiler = W, $e.StrictMode = q, $e.Suspense = $, $e.isAsyncMode = J, $e.isConcurrentMode = ne, $e.isContextConsumer = ie, $e.isContextProvider = H, $e.isElement = K, $e.isForwardRef = k, $e.isFragment = X, $e.isLazy = ee, $e.isMemo = ae, $e.isPortal = fe, $e.isProfiler = P, $e.isStrictMode = ce, $e.isSuspense = Te, $e.isValidElementType = y, $e.typeOf = E;
|
|
11150
11150
|
}()), $e;
|
|
11151
11151
|
}
|
|
11152
11152
|
process.env.NODE_ENV === "production" ? ll.exports = Xv() : ll.exports = Yv();
|
|
@@ -11404,7 +11404,7 @@ var ly = function(t) {
|
|
|
11404
11404
|
Wp.Provider;
|
|
11405
11405
|
var py = function(t) {
|
|
11406
11406
|
return /* @__PURE__ */ Ws(function(n, r) {
|
|
11407
|
-
var o =
|
|
11407
|
+
var o = De(Wp);
|
|
11408
11408
|
return t(n, o, r);
|
|
11409
11409
|
});
|
|
11410
11410
|
}, hy = /* @__PURE__ */ S.createContext({}), ou = {}.hasOwnProperty, ul = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", gy = function(t, n) {
|
|
@@ -11670,7 +11670,7 @@ function Fy(e, t) {
|
|
|
11670
11670
|
}
|
|
11671
11671
|
return s(!0), i;
|
|
11672
11672
|
}
|
|
11673
|
-
function
|
|
11673
|
+
function ky(e, t, n, r) {
|
|
11674
11674
|
r === void 0 && (r = {});
|
|
11675
11675
|
const {
|
|
11676
11676
|
ancestorScroll: o = !0,
|
|
@@ -11706,7 +11706,7 @@ function Dy(e, t, n, r) {
|
|
|
11706
11706
|
}), p == null || p(), (g = v) == null || g.disconnect(), v = null, c && cancelAnimationFrame(m);
|
|
11707
11707
|
};
|
|
11708
11708
|
}
|
|
11709
|
-
var fl = ro,
|
|
11709
|
+
var fl = ro, Dy = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ms = function() {
|
|
11710
11710
|
};
|
|
11711
11711
|
function Ny(e, t) {
|
|
11712
11712
|
return t ? t[0] === "-" ? e + t : e + "__" + t : e;
|
|
@@ -11728,7 +11728,7 @@ var Bs = function(t) {
|
|
|
11728
11728
|
return $y(t) ? t.filter(Boolean) : to(t) === "object" && t !== null ? [t] : [];
|
|
11729
11729
|
}, Yp = function(t) {
|
|
11730
11730
|
t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
|
|
11731
|
-
var n = vn(t,
|
|
11731
|
+
var n = vn(t, Dy);
|
|
11732
11732
|
return de({}, n);
|
|
11733
11733
|
}, st = function(t, n, r) {
|
|
11734
11734
|
var o = t.cx, i = t.getStyles, s = t.getClassNames, a = t.className;
|
|
@@ -11843,7 +11843,7 @@ function Jy(e) {
|
|
|
11843
11843
|
maxHeight: t
|
|
11844
11844
|
};
|
|
11845
11845
|
if (!n || !n.offsetParent) return u;
|
|
11846
|
-
var d = c.getBoundingClientRect(), p = d.height, b = n.getBoundingClientRect(), v = b.bottom, m = b.height, h = b.top, f = n.offsetParent.getBoundingClientRect(), g = f.top, x = s ? window.innerHeight : My(c), y = Jp(c), E = parseInt(getComputedStyle(n).marginBottom, 10), C = parseInt(getComputedStyle(n).marginTop, 10), w = g - C, _ = x - h, I = w + y, T = p - y - h,
|
|
11846
|
+
var d = c.getBoundingClientRect(), p = d.height, b = n.getBoundingClientRect(), v = b.bottom, m = b.height, h = b.top, f = n.offsetParent.getBoundingClientRect(), g = f.top, x = s ? window.innerHeight : My(c), y = Jp(c), E = parseInt(getComputedStyle(n).marginBottom, 10), C = parseInt(getComputedStyle(n).marginTop, 10), w = g - C, _ = x - h, I = w + y, T = p - y - h, D = v - x + y + E, F = y + h - C, O = 160;
|
|
11847
11847
|
switch (o) {
|
|
11848
11848
|
case "auto":
|
|
11849
11849
|
case "bottom":
|
|
@@ -11853,12 +11853,12 @@ function Jy(e) {
|
|
|
11853
11853
|
maxHeight: t
|
|
11854
11854
|
};
|
|
11855
11855
|
if (T >= m && !s)
|
|
11856
|
-
return i && $i(c,
|
|
11856
|
+
return i && $i(c, D, O), {
|
|
11857
11857
|
placement: "bottom",
|
|
11858
11858
|
maxHeight: t
|
|
11859
11859
|
};
|
|
11860
11860
|
if (!s && T >= r || s && _ >= r) {
|
|
11861
|
-
i && $i(c,
|
|
11861
|
+
i && $i(c, D, O);
|
|
11862
11862
|
var j = s ? _ - E : T - E;
|
|
11863
11863
|
return {
|
|
11864
11864
|
placement: "bottom",
|
|
@@ -11873,7 +11873,7 @@ function Jy(e) {
|
|
|
11873
11873
|
};
|
|
11874
11874
|
}
|
|
11875
11875
|
if (o === "bottom")
|
|
11876
|
-
return i && Vs(c,
|
|
11876
|
+
return i && Vs(c, D), {
|
|
11877
11877
|
placement: "bottom",
|
|
11878
11878
|
maxHeight: t
|
|
11879
11879
|
};
|
|
@@ -11926,7 +11926,7 @@ var Kp = function(t) {
|
|
|
11926
11926
|
marginTop: a.menuGutter
|
|
11927
11927
|
});
|
|
11928
11928
|
}, Qp = /* @__PURE__ */ yl(null), Qy = function(t) {
|
|
11929
|
-
var n = t.children, r = t.minMenuHeight, o = t.maxMenuHeight, i = t.menuPlacement, s = t.menuPosition, a = t.menuShouldScrollIntoView, c = t.theme, u =
|
|
11929
|
+
var n = t.children, r = t.minMenuHeight, o = t.maxMenuHeight, i = t.menuPlacement, s = t.menuPosition, a = t.menuShouldScrollIntoView, c = t.theme, u = De(Qp) || {}, d = u.setPortalPlacement, p = pe(null), b = G(o), v = gt(b, 2), m = v[0], h = v[1], f = G(null), g = gt(f, 2), x = g[0], y = g[1], E = c.spacing.controlHeight;
|
|
11930
11930
|
return fl(function() {
|
|
11931
11931
|
var C = p.current;
|
|
11932
11932
|
if (C) {
|
|
@@ -12028,7 +12028,7 @@ var Kp = function(t) {
|
|
|
12028
12028
|
y();
|
|
12029
12029
|
}, [y]);
|
|
12030
12030
|
var E = _e(function() {
|
|
12031
|
-
typeof u.current == "function" && (u.current(), u.current = null), o && c.current && (u.current =
|
|
12031
|
+
typeof u.current == "function" && (u.current(), u.current = null), o && c.current && (u.current = ky(o, c.current, y, {
|
|
12032
12032
|
elementResize: "ResizeObserver" in window
|
|
12033
12033
|
}));
|
|
12034
12034
|
}, [o, y]);
|
|
@@ -12261,13 +12261,13 @@ var v8 = process.env.NODE_ENV === "production" ? {
|
|
|
12261
12261
|
}), s, {
|
|
12262
12262
|
"aria-disabled": r || void 0
|
|
12263
12263
|
}), n);
|
|
12264
|
-
}, O8 = R8, F8 = ["data"],
|
|
12264
|
+
}, O8 = R8, F8 = ["data"], k8 = function(t, n) {
|
|
12265
12265
|
var r = t.theme.spacing;
|
|
12266
12266
|
return n ? {} : {
|
|
12267
12267
|
paddingBottom: r.baseUnit * 2,
|
|
12268
12268
|
paddingTop: r.baseUnit * 2
|
|
12269
12269
|
};
|
|
12270
|
-
},
|
|
12270
|
+
}, D8 = function(t) {
|
|
12271
12271
|
var n = t.children, r = t.cx, o = t.getStyles, i = t.getClassNames, s = t.Heading, a = t.headingProps, c = t.innerProps, u = t.label, d = t.theme, p = t.selectProps;
|
|
12272
12272
|
return me("div", be({}, st(t, "group", {
|
|
12273
12273
|
group: !0
|
|
@@ -12300,7 +12300,7 @@ var v8 = process.env.NODE_ENV === "production" ? {
|
|
|
12300
12300
|
return me("div", be({}, st(t, "groupHeading", {
|
|
12301
12301
|
"group-heading": !0
|
|
12302
12302
|
}), r));
|
|
12303
|
-
}, P8 =
|
|
12303
|
+
}, P8 = D8, M8 = ["innerRef", "isDisabled", "isHidden", "inputClassName"], B8 = function(t, n) {
|
|
12304
12304
|
var r = t.isDisabled, o = t.value, i = t.theme, s = i.spacing, a = i.colors;
|
|
12305
12305
|
return de(de({
|
|
12306
12306
|
visibility: r ? "hidden" : "visible",
|
|
@@ -12624,7 +12624,7 @@ var f7 = process.env.NODE_ENV === "production" ? {
|
|
|
12624
12624
|
if (n && I.onChange) {
|
|
12625
12625
|
var q = n.option, $ = n.options, U = n.removedValue, J = n.removedValues, ne = n.value, ie = function(fe) {
|
|
12626
12626
|
return Array.isArray(fe) ? null : fe;
|
|
12627
|
-
}, H = U || q || ie(ne), K = H ? b(H) : "",
|
|
12627
|
+
}, H = U || q || ie(ne), K = H ? b(H) : "", k = $ || J || void 0, X = k ? k.map(b) : [], ee = de({
|
|
12628
12628
|
// multiSelected items are usually items that have already been selected
|
|
12629
12629
|
// or set by the user as a default value so we assume they are not disabled
|
|
12630
12630
|
isDisabled: H && h(H, a),
|
|
@@ -12634,7 +12634,7 @@ var f7 = process.env.NODE_ENV === "production" ? {
|
|
|
12634
12634
|
W = I.onChange(ee);
|
|
12635
12635
|
}
|
|
12636
12636
|
return W;
|
|
12637
|
-
}, [n, I, h, a, b]),
|
|
12637
|
+
}, [n, I, h, a, b]), D = he(function() {
|
|
12638
12638
|
var W = "", q = r || o, $ = !!(r && a && a.includes(r));
|
|
12639
12639
|
if (q && I.onFocus) {
|
|
12640
12640
|
var U = {
|
|
@@ -12681,7 +12681,7 @@ var f7 = process.env.NODE_ENV === "production" ? {
|
|
|
12681
12681
|
id: "aria-selection"
|
|
12682
12682
|
}, T), me("span", {
|
|
12683
12683
|
id: "aria-focused"
|
|
12684
|
-
},
|
|
12684
|
+
}, D), me("span", {
|
|
12685
12685
|
id: "aria-results"
|
|
12686
12686
|
}, F), me("span", {
|
|
12687
12687
|
id: "aria-guidance"
|
|
@@ -13154,12 +13154,12 @@ var O7 = process.env.NODE_ENV === "production" ? {
|
|
|
13154
13154
|
onChange: function() {
|
|
13155
13155
|
}
|
|
13156
13156
|
});
|
|
13157
|
-
},
|
|
13157
|
+
}, k7 = F7;
|
|
13158
13158
|
function uu(e) {
|
|
13159
13159
|
var t;
|
|
13160
13160
|
return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
|
|
13161
13161
|
}
|
|
13162
|
-
function
|
|
13162
|
+
function D7() {
|
|
13163
13163
|
return uu(/^iPhone/i);
|
|
13164
13164
|
}
|
|
13165
13165
|
function ch() {
|
|
@@ -13170,7 +13170,7 @@ function N7() {
|
|
|
13170
13170
|
ch() && navigator.maxTouchPoints > 1;
|
|
13171
13171
|
}
|
|
13172
13172
|
function j7() {
|
|
13173
|
-
return
|
|
13173
|
+
return D7() || N7();
|
|
13174
13174
|
}
|
|
13175
13175
|
function P7() {
|
|
13176
13176
|
return ch() || j7();
|
|
@@ -13188,7 +13188,7 @@ var M7 = function(t) {
|
|
|
13188
13188
|
container: u8,
|
|
13189
13189
|
control: L8,
|
|
13190
13190
|
dropdownIndicator: y8,
|
|
13191
|
-
group:
|
|
13191
|
+
group: k8,
|
|
13192
13192
|
groupHeading: N8,
|
|
13193
13193
|
indicatorsContainer: h8,
|
|
13194
13194
|
indicatorSeparator: I8,
|
|
@@ -13975,14 +13975,14 @@ var bh = function(t) {
|
|
|
13975
13975
|
}), x);
|
|
13976
13976
|
if (f)
|
|
13977
13977
|
return E.map(function(I, T) {
|
|
13978
|
-
var
|
|
13978
|
+
var D = I === C, F = "".concat(o.getOptionLabel(I), "-").concat(o.getOptionValue(I));
|
|
13979
13979
|
return /* @__PURE__ */ S.createElement(s, be({}, b, {
|
|
13980
13980
|
components: {
|
|
13981
13981
|
Container: a,
|
|
13982
13982
|
Label: c,
|
|
13983
13983
|
Remove: u
|
|
13984
13984
|
},
|
|
13985
|
-
isFocused:
|
|
13985
|
+
isFocused: D,
|
|
13986
13986
|
isDisabled: h,
|
|
13987
13987
|
key: F,
|
|
13988
13988
|
index: T,
|
|
@@ -14068,14 +14068,14 @@ var bh = function(t) {
|
|
|
14068
14068
|
}, {
|
|
14069
14069
|
key: "renderMenu",
|
|
14070
14070
|
value: function() {
|
|
14071
|
-
var o = this, i = this.getComponents(), s = i.Group, a = i.GroupHeading, c = i.Menu, u = i.MenuList, d = i.MenuPortal, p = i.LoadingMessage, b = i.NoOptionsMessage, v = i.Option, m = this.commonProps, h = this.state.focusedOption, f = this.props, g = f.captureMenuScroll, x = f.inputValue, y = f.isLoading, E = f.loadingMessage, C = f.minMenuHeight, w = f.maxMenuHeight, _ = f.menuIsOpen, I = f.menuPlacement, T = f.menuPosition,
|
|
14071
|
+
var o = this, i = this.getComponents(), s = i.Group, a = i.GroupHeading, c = i.Menu, u = i.MenuList, d = i.MenuPortal, p = i.LoadingMessage, b = i.NoOptionsMessage, v = i.Option, m = this.commonProps, h = this.state.focusedOption, f = this.props, g = f.captureMenuScroll, x = f.inputValue, y = f.isLoading, E = f.loadingMessage, C = f.minMenuHeight, w = f.maxMenuHeight, _ = f.menuIsOpen, I = f.menuPlacement, T = f.menuPosition, D = f.menuPortalTarget, F = f.menuShouldBlockScroll, O = f.menuShouldScrollIntoView, j = f.noOptionsMessage, V = f.onMenuScrollToTop, W = f.onMenuScrollToBottom;
|
|
14072
14072
|
if (!_) return null;
|
|
14073
|
-
var q = function(K,
|
|
14073
|
+
var q = function(K, k) {
|
|
14074
14074
|
var X = K.type, ee = K.data, ae = K.isDisabled, fe = K.isSelected, P = K.label, ce = K.value, Te = h === ee, z = ae ? void 0 : function() {
|
|
14075
14075
|
return o.onOptionHover(ee);
|
|
14076
14076
|
}, Me = ae ? void 0 : function() {
|
|
14077
14077
|
return o.selectOption(ee);
|
|
14078
|
-
}, Je = "".concat(o.getElementId("option"), "-").concat(
|
|
14078
|
+
}, Je = "".concat(o.getElementId("option"), "-").concat(k), et = {
|
|
14079
14079
|
id: Je,
|
|
14080
14080
|
onClick: Me,
|
|
14081
14081
|
onMouseMove: z,
|
|
@@ -14101,11 +14101,11 @@ var bh = function(t) {
|
|
|
14101
14101
|
if (this.hasOptions())
|
|
14102
14102
|
$ = this.getCategorizedOptions().map(function(H) {
|
|
14103
14103
|
if (H.type === "group") {
|
|
14104
|
-
var K = H.data,
|
|
14104
|
+
var K = H.data, k = H.options, X = H.index, ee = "".concat(o.getElementId("group"), "-").concat(X), ae = "".concat(ee, "-heading");
|
|
14105
14105
|
return /* @__PURE__ */ S.createElement(s, be({}, m, {
|
|
14106
14106
|
key: ee,
|
|
14107
14107
|
data: K,
|
|
14108
|
-
options:
|
|
14108
|
+
options: k,
|
|
14109
14109
|
Heading: a,
|
|
14110
14110
|
headingProps: {
|
|
14111
14111
|
id: ae,
|
|
@@ -14138,7 +14138,7 @@ var bh = function(t) {
|
|
|
14138
14138
|
menuPosition: T,
|
|
14139
14139
|
menuShouldScrollIntoView: O
|
|
14140
14140
|
}, ie = /* @__PURE__ */ S.createElement(Qy, be({}, m, ne), function(H) {
|
|
14141
|
-
var K = H.ref,
|
|
14141
|
+
var K = H.ref, k = H.placerProps, X = k.placement, ee = k.maxHeight;
|
|
14142
14142
|
return /* @__PURE__ */ S.createElement(c, be({}, m, ne, {
|
|
14143
14143
|
innerRef: K,
|
|
14144
14144
|
innerProps: {
|
|
@@ -14168,8 +14168,8 @@ var bh = function(t) {
|
|
|
14168
14168
|
}), $);
|
|
14169
14169
|
}));
|
|
14170
14170
|
});
|
|
14171
|
-
return
|
|
14172
|
-
appendTo:
|
|
14171
|
+
return D || T === "fixed" ? /* @__PURE__ */ S.createElement(d, be({}, m, {
|
|
14172
|
+
appendTo: D,
|
|
14173
14173
|
controlElement: this.controlRef,
|
|
14174
14174
|
menuPlacement: I,
|
|
14175
14175
|
menuPosition: T
|
|
@@ -14180,7 +14180,7 @@ var bh = function(t) {
|
|
|
14180
14180
|
value: function() {
|
|
14181
14181
|
var o = this, i = this.props, s = i.delimiter, a = i.isDisabled, c = i.isMulti, u = i.name, d = i.required, p = this.state.selectValue;
|
|
14182
14182
|
if (d && !this.hasValue() && !a)
|
|
14183
|
-
return /* @__PURE__ */ S.createElement(
|
|
14183
|
+
return /* @__PURE__ */ S.createElement(k7, {
|
|
14184
14184
|
name: u,
|
|
14185
14185
|
onFocus: this.onValueInputFocus
|
|
14186
14186
|
});
|
|
@@ -14279,14 +14279,14 @@ var bh = function(t) {
|
|
|
14279
14279
|
var T = c != null && o !== s ? {
|
|
14280
14280
|
inputIsHidden: c,
|
|
14281
14281
|
inputIsHiddenAfterUpdate: void 0
|
|
14282
|
-
} : {},
|
|
14283
|
-
return d && !F && (
|
|
14282
|
+
} : {}, D = u, F = d && p;
|
|
14283
|
+
return d && !F && (D = {
|
|
14284
14284
|
value: si(g, x, x[0] || null),
|
|
14285
14285
|
options: x,
|
|
14286
14286
|
action: "initial-input-focus"
|
|
14287
|
-
}, F = !p), (u == null ? void 0 : u.action) === "initial-input-focus" && (
|
|
14287
|
+
}, F = !p), (u == null ? void 0 : u.action) === "initial-input-focus" && (D = null), de(de(de({}, y), T), {}, {
|
|
14288
14288
|
prevProps: o,
|
|
14289
|
-
ariaSelection:
|
|
14289
|
+
ariaSelection: D,
|
|
14290
14290
|
prevWasFocused: F
|
|
14291
14291
|
});
|
|
14292
14292
|
}
|
|
@@ -14462,7 +14462,7 @@ var wh = /* @__PURE__ */ ((e) => (e.DATE = "DD/MM/YYYY", e))(wh || {}), sC = ["d
|
|
|
14462
14462
|
function Ih(e) {
|
|
14463
14463
|
var t = e.defaultOptions, n = t === void 0 ? !1 : t, r = e.cacheOptions, o = r === void 0 ? !1 : r, i = e.loadOptions;
|
|
14464
14464
|
e.options;
|
|
14465
|
-
var s = e.isLoading, a = s === void 0 ? !1 : s, c = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, p = vn(e, sC), b = p.inputValue, v = pe(void 0), m = pe(!1), h = G(Array.isArray(n) ? n : void 0), f = gt(h, 2), g = f[0], x = f[1], y = G(typeof b < "u" ? b : ""), E = gt(y, 2), C = E[0], w = E[1], _ = G(n === !0), I = gt(_, 2), T = I[0],
|
|
14465
|
+
var s = e.isLoading, a = s === void 0 ? !1 : s, c = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, p = vn(e, sC), b = p.inputValue, v = pe(void 0), m = pe(!1), h = G(Array.isArray(n) ? n : void 0), f = gt(h, 2), g = f[0], x = f[1], y = G(typeof b < "u" ? b : ""), E = gt(y, 2), C = E[0], w = E[1], _ = G(n === !0), I = gt(_, 2), T = I[0], D = I[1], F = G(void 0), O = gt(F, 2), j = O[0], V = O[1], W = G([]), q = gt(W, 2), $ = q[0], U = q[1], J = G(!1), ne = gt(J, 2), ie = ne[0], H = ne[1], K = G({}), k = gt(K, 2), X = k[0], ee = k[1], ae = G(void 0), fe = gt(ae, 2), P = fe[0], ce = fe[1], Te = G(void 0), z = gt(Te, 2), Me = z[0], Je = z[1];
|
|
14466
14466
|
o !== Me && (ee({}), Je(o)), n !== P && (x(Array.isArray(n) ? n : void 0), ce(n)), oe(function() {
|
|
14467
14467
|
return m.current = !0, function() {
|
|
14468
14468
|
m.current = !1;
|
|
@@ -14477,21 +14477,21 @@ function Ih(e) {
|
|
|
14477
14477
|
}, [i]);
|
|
14478
14478
|
oe(function() {
|
|
14479
14479
|
n === !0 && et(C, function(ut) {
|
|
14480
|
-
m.current && (x(ut || []),
|
|
14480
|
+
m.current && (x(ut || []), D(!!v.current));
|
|
14481
14481
|
});
|
|
14482
14482
|
}, []);
|
|
14483
14483
|
var sn = _e(function(ut, xt) {
|
|
14484
14484
|
var at = Py(ut, xt, c);
|
|
14485
14485
|
if (!at) {
|
|
14486
|
-
v.current = void 0, w(""), V(""), U([]),
|
|
14486
|
+
v.current = void 0, w(""), V(""), U([]), D(!1), H(!1);
|
|
14487
14487
|
return;
|
|
14488
14488
|
}
|
|
14489
14489
|
if (o && X[at])
|
|
14490
|
-
w(at), V(at), U(X[at]),
|
|
14490
|
+
w(at), V(at), U(X[at]), D(!1), H(!1);
|
|
14491
14491
|
else {
|
|
14492
14492
|
var wr = v.current = {};
|
|
14493
|
-
w(at),
|
|
14494
|
-
m && wr === v.current && (v.current = void 0,
|
|
14493
|
+
w(at), D(!0), H(!j), et(at, function(Jt) {
|
|
14494
|
+
m && wr === v.current && (v.current = void 0, D(!1), V(at), U(Jt || []), H(!1), ee(Jt ? de(de({}, X), {}, fo({}, at, Jt)) : X));
|
|
14495
14495
|
});
|
|
14496
14496
|
}
|
|
14497
14497
|
}, [o, et, j, X, c]), yn = ie ? [] : C && j ? $ : g || [];
|
|
@@ -14535,7 +14535,7 @@ function uC(e) {
|
|
|
14535
14535
|
getOptionValue: g,
|
|
14536
14536
|
getOptionLabel: y
|
|
14537
14537
|
}) ? d(E, s(E)) : void 0;
|
|
14538
|
-
}, [s, d, y, g, E, c, v, _]),
|
|
14538
|
+
}, [s, d, y, g, E, c, v, _]), D = he(function() {
|
|
14539
14539
|
return (n || !C) && T ? o === "first" ? [T].concat(go(v)) : [].concat(go(v), [T]) : v;
|
|
14540
14540
|
}, [n, o, C, T, v]), F = _e(function(O, j) {
|
|
14541
14541
|
if (j.action !== "select-option")
|
|
@@ -14556,7 +14556,7 @@ function uC(e) {
|
|
|
14556
14556
|
m(O, j);
|
|
14557
14557
|
}, [d, E, w, I, T, p, m, _]);
|
|
14558
14558
|
return de(de({}, h), {}, {
|
|
14559
|
-
options:
|
|
14559
|
+
options: D,
|
|
14560
14560
|
onChange: F
|
|
14561
14561
|
});
|
|
14562
14562
|
}
|
|
@@ -14632,7 +14632,7 @@ function mC({ stackIndex: e, isScrollTarget: t, ...n }) {
|
|
|
14632
14632
|
name: n.name,
|
|
14633
14633
|
option: W
|
|
14634
14634
|
})), o(V), c(!1);
|
|
14635
|
-
},
|
|
14635
|
+
}, D = (j) => {
|
|
14636
14636
|
c(!0), p == null || p(j, T(j));
|
|
14637
14637
|
}, F = () => {
|
|
14638
14638
|
c(!0), x == null || x(i, E, !1);
|
|
@@ -14664,7 +14664,7 @@ function mC({ stackIndex: e, isScrollTarget: t, ...n }) {
|
|
|
14664
14664
|
formatCreateLabel: gC,
|
|
14665
14665
|
createOptionPosition: "first",
|
|
14666
14666
|
allowCreateWhileLoading: !1,
|
|
14667
|
-
onCreateOption:
|
|
14667
|
+
onCreateOption: D,
|
|
14668
14668
|
options: r
|
|
14669
14669
|
} : null
|
|
14670
14670
|
}
|
|
@@ -14877,9 +14877,9 @@ const SC = A(Il)`
|
|
|
14877
14877
|
}) => {
|
|
14878
14878
|
const h = t ?? [], f = (o == null ? void 0 : o.validations) ?? {}, g = pe(), x = pe({}), [y, E] = G({}), { colsLength: C, colsTemplate: w, colWidth: _ } = he(() => {
|
|
14879
14879
|
let H = 0, K = "";
|
|
14880
|
-
for (const
|
|
14881
|
-
let X =
|
|
14882
|
-
isNaN(X) && (X = 1), H += X, K += `${
|
|
14880
|
+
for (const k of r) {
|
|
14881
|
+
let X = k.cols ? Number(k.cols) : 1;
|
|
14882
|
+
isNaN(X) && (X = 1), H += X, K += `${k.cols ?? X}fr `;
|
|
14883
14883
|
}
|
|
14884
14884
|
return s || (H += 0.5, K += "0.5fr"), {
|
|
14885
14885
|
colsLength: H,
|
|
@@ -14888,13 +14888,13 @@ const SC = A(Il)`
|
|
|
14888
14888
|
};
|
|
14889
14889
|
}, [r, a, s]), { fieldDependency: I, fieldConfigs: T } = he(() => {
|
|
14890
14890
|
const H = {}, K = {};
|
|
14891
|
-
for (const
|
|
14892
|
-
if (!
|
|
14891
|
+
for (const k of r) {
|
|
14892
|
+
if (!k.valueConfig)
|
|
14893
14893
|
continue;
|
|
14894
|
-
K[
|
|
14895
|
-
const X =
|
|
14894
|
+
K[k.name] = k.valueConfig;
|
|
14895
|
+
const X = k.valueConfig.columnNames;
|
|
14896
14896
|
for (const ee of X)
|
|
14897
|
-
H[ee] || (H[ee] = []), H[ee].push(
|
|
14897
|
+
H[ee] || (H[ee] = []), H[ee].push(k.name);
|
|
14898
14898
|
}
|
|
14899
14899
|
return {
|
|
14900
14900
|
fieldDependency: H,
|
|
@@ -14906,12 +14906,12 @@ const SC = A(Il)`
|
|
|
14906
14906
|
return;
|
|
14907
14907
|
const H = [];
|
|
14908
14908
|
for (let K = 0; K < i; K++) {
|
|
14909
|
-
const
|
|
14910
|
-
H.push({ [Nr]:
|
|
14909
|
+
const k = Ld();
|
|
14910
|
+
H.push({ [Nr]: k });
|
|
14911
14911
|
}
|
|
14912
14912
|
b(H);
|
|
14913
14913
|
}, [t, b, i]);
|
|
14914
|
-
const
|
|
14914
|
+
const D = () => {
|
|
14915
14915
|
const H = Object.entries(x.current).filter((K) => !!K[1])[0];
|
|
14916
14916
|
return (H == null ? void 0 : H[1]) ?? "";
|
|
14917
14917
|
}, F = () => {
|
|
@@ -14920,25 +14920,25 @@ const SC = A(Il)`
|
|
|
14920
14920
|
};
|
|
14921
14921
|
b([...h, H]);
|
|
14922
14922
|
}, O = (H) => {
|
|
14923
|
-
const K = h.filter((
|
|
14924
|
-
b(K), E((
|
|
14925
|
-
...
|
|
14923
|
+
const K = h.filter((k) => k[Nr] !== H);
|
|
14924
|
+
b(K), E((k) => ({
|
|
14925
|
+
...k,
|
|
14926
14926
|
[H]: {}
|
|
14927
14927
|
}));
|
|
14928
|
-
for (const
|
|
14929
|
-
|
|
14930
|
-
m == null || m(e,
|
|
14931
|
-
}, j = (H, { columnNames: K = [], operationType:
|
|
14928
|
+
for (const k in x.current)
|
|
14929
|
+
k.startsWith(`${H}.`) && delete x.current[k];
|
|
14930
|
+
m == null || m(e, D());
|
|
14931
|
+
}, j = (H, { columnNames: K = [], operationType: k }) => {
|
|
14932
14932
|
const X = K.map((ee) => H[ee]);
|
|
14933
|
-
return "" + Rd(X,
|
|
14933
|
+
return "" + Rd(X, k);
|
|
14934
14934
|
}, V = (H, K) => {
|
|
14935
|
-
const
|
|
14935
|
+
const k = h.map((X) => H !== X[Nr] ? X : {
|
|
14936
14936
|
...X,
|
|
14937
14937
|
...K
|
|
14938
14938
|
});
|
|
14939
|
-
b(
|
|
14939
|
+
b(k);
|
|
14940
14940
|
}, W = (H, K) => {
|
|
14941
|
-
const
|
|
14941
|
+
const k = h.map((X) => {
|
|
14942
14942
|
if (H !== X[Nr])
|
|
14943
14943
|
return X;
|
|
14944
14944
|
const ee = { ...X };
|
|
@@ -14946,11 +14946,11 @@ const SC = A(Il)`
|
|
|
14946
14946
|
delete ee[ae];
|
|
14947
14947
|
return ee;
|
|
14948
14948
|
});
|
|
14949
|
-
b(
|
|
14950
|
-
}, q = (H, K,
|
|
14949
|
+
b(k);
|
|
14950
|
+
}, q = (H, K, k, X) => {
|
|
14951
14951
|
var fe;
|
|
14952
14952
|
const ee = ((fe = X == null ? void 0 : X.target) == null ? void 0 : fe.value) ?? "", ae = {
|
|
14953
|
-
...
|
|
14953
|
+
...k,
|
|
14954
14954
|
[K]: ee
|
|
14955
14955
|
};
|
|
14956
14956
|
if (I[K])
|
|
@@ -14959,13 +14959,13 @@ const SC = A(Il)`
|
|
|
14959
14959
|
ae[P] = ce;
|
|
14960
14960
|
}
|
|
14961
14961
|
V(H, ae);
|
|
14962
|
-
}, $ = (H, K,
|
|
14963
|
-
V(H, { [K]:
|
|
14964
|
-
}, U = (H, K,
|
|
14965
|
-
if (
|
|
14966
|
-
const ee = "prefillValues" in
|
|
14962
|
+
}, $ = (H, K, k) => {
|
|
14963
|
+
V(H, { [K]: k });
|
|
14964
|
+
}, U = (H, K, k, X) => {
|
|
14965
|
+
if (k && typeof k == "object" && "value" in k && typeof k.value == "string" && typeof X.name < "u") {
|
|
14966
|
+
const ee = "prefillValues" in k && k.prefillValues, ae = {
|
|
14967
14967
|
...K,
|
|
14968
|
-
[X.name]:
|
|
14968
|
+
[X.name]: k.value,
|
|
14969
14969
|
...ee
|
|
14970
14970
|
};
|
|
14971
14971
|
for (const fe in ae)
|
|
@@ -14977,48 +14977,48 @@ const SC = A(Il)`
|
|
|
14977
14977
|
V(H, ae);
|
|
14978
14978
|
}
|
|
14979
14979
|
(X == null ? void 0 : X.action) === "clear" && X.name && W(H, [X.name]);
|
|
14980
|
-
}, J = (H, K,
|
|
14981
|
-
V(H, { [K]: (
|
|
14982
|
-
}, ne = (H, K,
|
|
14980
|
+
}, J = (H, K, k) => {
|
|
14981
|
+
V(H, { [K]: (k == null ? void 0 : k.toISOString()) ?? "" });
|
|
14982
|
+
}, ne = (H, K, k, X) => {
|
|
14983
14983
|
X && E((ee) => {
|
|
14984
14984
|
const ae = ee[H] ?? {};
|
|
14985
|
-
return { ...ee, [H]: { ...ae, [K]:
|
|
14985
|
+
return { ...ee, [H]: { ...ae, [K]: k } };
|
|
14986
14986
|
}), x.current = {
|
|
14987
14987
|
...x.current,
|
|
14988
|
-
[`${H}.${K}`]: typeof
|
|
14989
|
-
}, m == null || m(e,
|
|
14988
|
+
[`${H}.${K}`]: typeof k == "string" ? k : ""
|
|
14989
|
+
}, m == null || m(e, D());
|
|
14990
14990
|
}, ie = (H) => g.current === H;
|
|
14991
14991
|
return /* @__PURE__ */ l.jsxs(bC, { children: [
|
|
14992
14992
|
/* @__PURE__ */ l.jsx(xC, { ref: g, children: /* @__PURE__ */ l.jsxs(vC, { gridColumns: w, minWidth: `calc( ${C} * ${_} )`, children: [
|
|
14993
|
-
/* @__PURE__ */ l.jsx(CC, { children: r.map(({ name: H, label: K, isRequired:
|
|
14993
|
+
/* @__PURE__ */ l.jsx(CC, { children: r.map(({ name: H, label: K, isRequired: k }) => /* @__PURE__ */ l.jsx(ec, { children: /* @__PURE__ */ l.jsx(Lh, { label: K, isRequired: k }) }, H)) }),
|
|
14994
14994
|
h.map(({ [Nr]: H, ...K }) => /* @__PURE__ */ l.jsxs(Sh, { children: [
|
|
14995
|
-
r.map(({ name:
|
|
14995
|
+
r.map(({ name: k, key: X, ...ee }) => {
|
|
14996
14996
|
var ae;
|
|
14997
|
-
return /* @__PURE__ */ l.jsx(ec, { hasError: !!((ae = y == null ? void 0 : y[H]) != null && ae[
|
|
14997
|
+
return /* @__PURE__ */ l.jsx(ec, { hasError: !!((ae = y == null ? void 0 : y[H]) != null && ae[k]), children: /* @__PURE__ */ l.jsx(
|
|
14998
14998
|
no,
|
|
14999
14999
|
{
|
|
15000
|
-
name:
|
|
15001
|
-
value: K[
|
|
15000
|
+
name: k,
|
|
15001
|
+
value: K[k],
|
|
15002
15002
|
...ee,
|
|
15003
15003
|
className: Uo,
|
|
15004
15004
|
label: "",
|
|
15005
15005
|
hideHelperText: !0,
|
|
15006
|
-
validation: f == null ? void 0 : f[
|
|
15006
|
+
validation: f == null ? void 0 : f[k],
|
|
15007
15007
|
onFocus: v,
|
|
15008
|
-
inputChangeHandler: (fe) => q(H,
|
|
15009
|
-
checkboxChangeHandler: (...fe) => $(H,
|
|
15008
|
+
inputChangeHandler: (fe) => q(H, k, K, fe),
|
|
15009
|
+
checkboxChangeHandler: (...fe) => $(H, k, fe[1]),
|
|
15010
15010
|
selectChangeHandler: (...fe) => U(H, K, ...fe),
|
|
15011
15011
|
dateChangeHandler: (fe, P) => J(H, fe, P),
|
|
15012
15012
|
onValidationError: (...fe) => ne(H, ...fe),
|
|
15013
|
-
fetchConfig: u == null ? void 0 : u[
|
|
15014
|
-
createConfig: d == null ? void 0 : d[
|
|
15013
|
+
fetchConfig: u == null ? void 0 : u[k],
|
|
15014
|
+
createConfig: d == null ? void 0 : d[k],
|
|
15015
15015
|
isScrollTarget: ie,
|
|
15016
15016
|
...p ? {
|
|
15017
15017
|
menuPortalTarget: document.body,
|
|
15018
15018
|
stackIndex: p
|
|
15019
15019
|
} : null
|
|
15020
15020
|
}
|
|
15021
|
-
) },
|
|
15021
|
+
) }, k ?? X);
|
|
15022
15022
|
}),
|
|
15023
15023
|
s ? null : /* @__PURE__ */ l.jsx(ec, { children: /* @__PURE__ */ l.jsx(N, { width: "100%", height: "100%", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ l.jsx(Th, { onClick: () => O(H), children: /* @__PURE__ */ l.jsx(LC, {}) }) }) })
|
|
15024
15024
|
] }, H))
|
|
@@ -15029,7 +15029,7 @@ const SC = A(Il)`
|
|
|
15029
15029
|
/* @__PURE__ */ l.jsx(Y, { children: "Add Line" })
|
|
15030
15030
|
] }),
|
|
15031
15031
|
c.length ? /* @__PURE__ */ l.jsx(wC, { children: c.map(
|
|
15032
|
-
({ label: H, columnName: K, operationType:
|
|
15032
|
+
({ label: H, columnName: K, operationType: k, prefix: X = "", prefixKey: ee, suffix: ae = "", suffixKey: fe }) => /* @__PURE__ */ l.jsxs(IC, { children: [
|
|
15033
15033
|
/* @__PURE__ */ l.jsx(Y, { fontWeight: 500, children: H }),
|
|
15034
15034
|
/* @__PURE__ */ l.jsxs(Y, { children: [
|
|
15035
15035
|
/* @__PURE__ */ l.jsxs("span", { children: [
|
|
@@ -15038,7 +15038,7 @@ const SC = A(Il)`
|
|
|
15038
15038
|
] }),
|
|
15039
15039
|
/* @__PURE__ */ l.jsx("span", { children: Rd(
|
|
15040
15040
|
h.map((P) => P[K]),
|
|
15041
|
-
|
|
15041
|
+
k
|
|
15042
15042
|
) }),
|
|
15043
15043
|
/* @__PURE__ */ l.jsx("span", { children: n[fe] ?? ae })
|
|
15044
15044
|
] })
|
|
@@ -15079,7 +15079,7 @@ const RC = A(Q)`
|
|
|
15079
15079
|
r.currentTarget && r.currentTarget.blur(), r.stopPropagation();
|
|
15080
15080
|
};
|
|
15081
15081
|
return /* @__PURE__ */ l.jsx(RC, { children: /* @__PURE__ */ l.jsx(OC, { ...t, inputProps: { onWheel: n, ...e } }) });
|
|
15082
|
-
},
|
|
15082
|
+
}, kC = A(FC)`
|
|
15083
15083
|
& .MuiFormHelperText-root {
|
|
15084
15084
|
position: absolute;
|
|
15085
15085
|
bottom: -24px;
|
|
@@ -15219,7 +15219,7 @@ const RC = A(Q)`
|
|
|
15219
15219
|
&.helper--error {
|
|
15220
15220
|
color: #d32f2f;
|
|
15221
15221
|
}
|
|
15222
|
-
`,
|
|
15222
|
+
`, DC = A(Q)`
|
|
15223
15223
|
width: 100%;
|
|
15224
15224
|
position: relative;
|
|
15225
15225
|
& .MuiInputBase-root {
|
|
@@ -15311,8 +15311,8 @@ const RC = A(Q)`
|
|
|
15311
15311
|
labelSpacing: w = 1,
|
|
15312
15312
|
showGlobalLoader: _ = !1,
|
|
15313
15313
|
hideHelperText: I = !1,
|
|
15314
|
-
meta: { isExpandable: T = x === "table", isExpanded:
|
|
15315
|
-
} = b, [F, O] = G(!1), [j, V] = G(""), [W, q] = G(
|
|
15314
|
+
meta: { isExpandable: T = x === "table", isExpanded: D = !0 } = {}
|
|
15315
|
+
} = b, [F, O] = G(!1), [j, V] = G(""), [W, q] = G(D);
|
|
15316
15316
|
oe(() => {
|
|
15317
15317
|
F || U(b.value, !1);
|
|
15318
15318
|
}, [F, b.value]);
|
|
@@ -15342,7 +15342,7 @@ const RC = A(Q)`
|
|
|
15342
15342
|
P && !F && O(!0), p == null || p(P, ce), F && E && U(ce);
|
|
15343
15343
|
}, K = (P, ce) => {
|
|
15344
15344
|
c == null || c(P, ce), P && !F && O(!0), P && typeof P == "object" && "value" in P && F && E && U(P.value);
|
|
15345
|
-
},
|
|
15345
|
+
}, k = (P, ce) => {
|
|
15346
15346
|
u == null || u(g, P, ce), P && !F && O(!0), F && E && U(P);
|
|
15347
15347
|
}, X = (P) => {
|
|
15348
15348
|
d == null || d(g, P);
|
|
@@ -15394,7 +15394,7 @@ const RC = A(Q)`
|
|
|
15394
15394
|
label: void 0,
|
|
15395
15395
|
onBlur: J,
|
|
15396
15396
|
onFocus: $,
|
|
15397
|
-
onChange:
|
|
15397
|
+
onChange: k,
|
|
15398
15398
|
error: !!(j && F)
|
|
15399
15399
|
}
|
|
15400
15400
|
);
|
|
@@ -15416,7 +15416,7 @@ const RC = A(Q)`
|
|
|
15416
15416
|
return /* @__PURE__ */ l.jsx(TC, { ...P, onChange: H, onFocus: $, onBlur: J });
|
|
15417
15417
|
default:
|
|
15418
15418
|
return /* @__PURE__ */ l.jsx(
|
|
15419
|
-
|
|
15419
|
+
kC,
|
|
15420
15420
|
{
|
|
15421
15421
|
variant: "outlined",
|
|
15422
15422
|
fullWidth: !0,
|
|
@@ -15459,7 +15459,7 @@ const RC = A(Q)`
|
|
|
15459
15459
|
}
|
|
15460
15460
|
}
|
|
15461
15461
|
),
|
|
15462
|
-
/* @__PURE__ */ l.jsxs(
|
|
15462
|
+
/* @__PURE__ */ l.jsxs(DC, { className: "input-wrapper", children: [
|
|
15463
15463
|
/* @__PURE__ */ l.jsx(Ce, { title: b.toolTipTitle, arrow: !0, placement: "right-end", disableHoverListener: !0, children: fe(b) }),
|
|
15464
15464
|
r != null && r.icon ? /* @__PURE__ */ l.jsx(Ce, { title: r.toolTipText, placement: "bottom", children: /* @__PURE__ */ l.jsx(PC, { className: "form--sideIcon", children: r == null ? void 0 : r.icon }) }) : null
|
|
15465
15465
|
] }),
|
|
@@ -15578,8 +15578,8 @@ const RC = A(Q)`
|
|
|
15578
15578
|
function ZC(e) {
|
|
15579
15579
|
return !!e.interfaceDetails || !!e.searchInterfaceDetails;
|
|
15580
15580
|
}
|
|
15581
|
-
const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e,
|
|
15582
|
-
if (!e || !
|
|
15581
|
+
const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, kh = (e) => typeof e == "string" && e.startsWith("{{") && e.endsWith("}}") && e.includes("."), $C = (e) => {
|
|
15582
|
+
if (!e || !kh(e.value)) return null;
|
|
15583
15583
|
const t = String(e.value).replace(/\{|\}/g, "").split("."), n = e.label.split(".");
|
|
15584
15584
|
return {
|
|
15585
15585
|
name: n[0],
|
|
@@ -15589,7 +15589,7 @@ const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, D
|
|
|
15589
15589
|
value: t[1]
|
|
15590
15590
|
}
|
|
15591
15591
|
};
|
|
15592
|
-
},
|
|
15592
|
+
}, Dh = (e) => e ? {
|
|
15593
15593
|
label: `${e.name} > ${e.option.label}`,
|
|
15594
15594
|
value: `{{${e.name}.${e.option.label}}}`
|
|
15595
15595
|
} : null, zC = /\{\{([^}]*)\}\}/g, XC = /^[^{^}]+$/, YC = "Invalid variable format. Please check inserted variables.", JC = "Variable open brackets present. Please remove open brackets", qC = (e) => {
|
|
@@ -16223,7 +16223,7 @@ const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, D
|
|
|
16223
16223
|
}
|
|
16224
16224
|
), OE = 1600, FE = {
|
|
16225
16225
|
POPPER: 3e3
|
|
16226
|
-
},
|
|
16226
|
+
}, kE = A(N)`
|
|
16227
16227
|
flex-direction: column;
|
|
16228
16228
|
align-items: flex-start;
|
|
16229
16229
|
box-shadow: 0px 3px 15px 0px #00000040;
|
|
@@ -16262,7 +16262,7 @@ const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, D
|
|
|
16262
16262
|
overflow: hidden;
|
|
16263
16263
|
text-overflow: ellipsis;
|
|
16264
16264
|
white-space: nowrap;
|
|
16265
|
-
`,
|
|
16265
|
+
`, DE = A(Q)`
|
|
16266
16266
|
box-sizing: border-box;
|
|
16267
16267
|
background-color: white;
|
|
16268
16268
|
border: 1px solid #d6dde8;
|
|
@@ -16324,10 +16324,10 @@ const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, D
|
|
|
16324
16324
|
i(((f = h == null ? void 0 : h.target) == null ? void 0 : f.value) || "");
|
|
16325
16325
|
}, b = (h) => {
|
|
16326
16326
|
if (!h) return;
|
|
16327
|
-
const f =
|
|
16327
|
+
const f = Dh(h);
|
|
16328
16328
|
r({ title: (f == null ? void 0 : f.label) || "", value: f == null ? void 0 : f.value });
|
|
16329
16329
|
}, v = n && n.length > 0, m = !!a && Array.isArray(a == null ? void 0 : a.options) && a.options.length > 0;
|
|
16330
|
-
return /* @__PURE__ */ l.jsxs(
|
|
16330
|
+
return /* @__PURE__ */ l.jsxs(kE, { children: [
|
|
16331
16331
|
/* @__PURE__ */ l.jsx(
|
|
16332
16332
|
jE,
|
|
16333
16333
|
{
|
|
@@ -16379,7 +16379,7 @@ const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, D
|
|
|
16379
16379
|
const t = () => {
|
|
16380
16380
|
e((n) => !n);
|
|
16381
16381
|
};
|
|
16382
|
-
return /* @__PURE__ */ l.jsx(
|
|
16382
|
+
return /* @__PURE__ */ l.jsx(DE, { onClick: t, tabIndex: 0, children: /* @__PURE__ */ l.jsx(Qe.Add, { sx: { fontSize: "12px", color: "#4d596c" } }) });
|
|
16383
16383
|
}, VE = ({ name: e, variables: t, customFields: n, onOptionClick: r }) => {
|
|
16384
16384
|
const [o, i] = G(!1), s = (a) => {
|
|
16385
16385
|
i(!1), r(a);
|
|
@@ -16508,7 +16508,7 @@ const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, D
|
|
|
16508
16508
|
optionsProps: _,
|
|
16509
16509
|
observerProps: I,
|
|
16510
16510
|
filteredOptions: T,
|
|
16511
|
-
paginationEnabled:
|
|
16511
|
+
paginationEnabled: D,
|
|
16512
16512
|
labelsMap: F,
|
|
16513
16513
|
setSearch: O
|
|
16514
16514
|
} = Nh({
|
|
@@ -16519,7 +16519,7 @@ const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, D
|
|
|
16519
16519
|
hasApiSearch: c,
|
|
16520
16520
|
fetchOptions: d
|
|
16521
16521
|
}), { parentRef: j } = I, V = (J) => {
|
|
16522
|
-
const ne =
|
|
16522
|
+
const ne = Dh(J);
|
|
16523
16523
|
ne && (p(ne), y(), v(!1));
|
|
16524
16524
|
}, W = (J) => {
|
|
16525
16525
|
const ne = String(J.target.value);
|
|
@@ -16541,7 +16541,7 @@ const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, D
|
|
|
16541
16541
|
};
|
|
16542
16542
|
return oe(() => {
|
|
16543
16543
|
if (!(t != null && t.value) || !b) return;
|
|
16544
|
-
const J =
|
|
16544
|
+
const J = kh(t.value) ? "custom" : "options";
|
|
16545
16545
|
h(J);
|
|
16546
16546
|
}, [t, b]), /* @__PURE__ */ l.jsxs(Zs, { fullWidth: !0, sx: yE, className: a, children: [
|
|
16547
16547
|
/* @__PURE__ */ l.jsxs(
|
|
@@ -16599,7 +16599,7 @@ const hl = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, D
|
|
|
16599
16599
|
selectedValue: C,
|
|
16600
16600
|
search: w,
|
|
16601
16601
|
searchPlaceholder: r,
|
|
16602
|
-
paginationEnabled:
|
|
16602
|
+
paginationEnabled: D,
|
|
16603
16603
|
filteredOptions: T,
|
|
16604
16604
|
observerProps: I,
|
|
16605
16605
|
optionsProps: _,
|
|
@@ -16848,7 +16848,7 @@ const sw = ({
|
|
|
16848
16848
|
if (!Array.isArray(r) || !r.length) return [];
|
|
16849
16849
|
const W = /* @__PURE__ */ new Set();
|
|
16850
16850
|
return r.filter(($) => W.has($.name) ? !1 : (W.add($.name), !0)).sort(($, U) => $.priority - U.priority);
|
|
16851
|
-
}, [r]),
|
|
16851
|
+
}, [r]), D = ({ name: W, value: q }) => {
|
|
16852
16852
|
C(($) => {
|
|
16853
16853
|
const U = { ...$ };
|
|
16854
16854
|
return q ? U[W] = q : delete U[W], U;
|
|
@@ -16948,7 +16948,7 @@ const sw = ({
|
|
|
16948
16948
|
errors: E,
|
|
16949
16949
|
checkMandatory: p,
|
|
16950
16950
|
customFieldsInDropdown: v,
|
|
16951
|
-
setError:
|
|
16951
|
+
setError: D,
|
|
16952
16952
|
fetchOptions: m,
|
|
16953
16953
|
setFormValues: y,
|
|
16954
16954
|
onFieldChange: g
|
|
@@ -17254,11 +17254,11 @@ const sw = ({
|
|
|
17254
17254
|
s.meta && "showAvatar" in s.meta && typeof s.meta.showAvatar == "boolean" && (m = s.meta.showAvatar);
|
|
17255
17255
|
const h = ((_ = v.optionsMap) == null ? void 0 : _[b]) || {}, f = !e.isScrollToBottomEvent && (!h || i !== h.searchTerm), g = f ? [] : h.options || [], x = f ? !0 : h.hasMore ?? !0, y = f ? 0 : h.currentPage ?? 0, { enabled: E, limit: C } = d, w = C || 10;
|
|
17256
17256
|
try {
|
|
17257
|
-
let
|
|
17257
|
+
let D;
|
|
17258
17258
|
const F = p == null ? void 0 : p.signal, O = E ? { pageNumber: y + 1, searchTerm: i, limit: w, enabled: E } : null;
|
|
17259
|
-
if (x && (
|
|
17259
|
+
if (x && (D = await Hh({ fieldName: r, formId: o }, { pagination: O || {}, args: c, interfaceId: u })), F != null && F.aborted)
|
|
17260
17260
|
throw F.reason;
|
|
17261
|
-
if (!
|
|
17261
|
+
if (!D || !D.data || !("data" in D.data) || !Array.isArray(D.data.data) || !D.data.data.length) {
|
|
17262
17262
|
const { common: U } = t(), J = (I = U.optionsMap) == null ? void 0 : I[b];
|
|
17263
17263
|
return a == null || a(J.options ?? []), {
|
|
17264
17264
|
...J,
|
|
@@ -17267,7 +17267,7 @@ const sw = ({
|
|
|
17267
17267
|
hasMore: !1
|
|
17268
17268
|
};
|
|
17269
17269
|
}
|
|
17270
|
-
const V =
|
|
17270
|
+
const V = D.data.data.map((U) => m ? {
|
|
17271
17271
|
...U,
|
|
17272
17272
|
avatarUrl: U.avatarUrl || ww
|
|
17273
17273
|
} : (delete U.avatarUrl, U)), W = [...g, ...V], q = E ? V.length >= w : !1, $ = wp(W, (U) => U.value);
|
|
@@ -17280,9 +17280,9 @@ const sw = ({
|
|
|
17280
17280
|
hasMore: q,
|
|
17281
17281
|
key: b
|
|
17282
17282
|
};
|
|
17283
|
-
} catch (
|
|
17283
|
+
} catch (D) {
|
|
17284
17284
|
const { common: F } = t(), O = ((T = F.optionsMap) == null ? void 0 : T[b]) || {};
|
|
17285
|
-
return a == null || a(O.options ?? []), n(
|
|
17285
|
+
return a == null || a(O.options ?? []), n(D);
|
|
17286
17286
|
}
|
|
17287
17287
|
},
|
|
17288
17288
|
{
|
|
@@ -17317,7 +17317,7 @@ const sw = ({
|
|
|
17317
17317
|
});
|
|
17318
17318
|
}
|
|
17319
17319
|
}
|
|
17320
|
-
), { resetState: GO, resetPreviewCardData: Iw, setSelectedSuggestionType: _w } = Wh.actions, Aw = Wh.reducer, Cr = "/v1/api", Sw = `${Cr}/connectors/forms/list`, Tw = `${Cr}/connectors/cards/:id/unlink`, Lw = `${Cr}/connectors/forms/:id/link`, Rw = `${Cr}/connectors/form/:formId`, Ow = `${Cr}/connectors/forms/:formId/data`, Fw = `${Cr}/connectors/forms/:formId/get_forms_custom_fields`, Uh = `${Cr}/connectors/forms/:formId/defaults`,
|
|
17320
|
+
), { resetState: GO, resetPreviewCardData: Iw, setSelectedSuggestionType: _w } = Wh.actions, Aw = Wh.reducer, Cr = "/v1/api", Sw = `${Cr}/connectors/forms/list`, Tw = `${Cr}/connectors/cards/:id/unlink`, Lw = `${Cr}/connectors/forms/:id/link`, Rw = `${Cr}/connectors/form/:formId`, Ow = `${Cr}/connectors/forms/:formId/data`, Fw = `${Cr}/connectors/forms/:formId/get_forms_custom_fields`, Uh = `${Cr}/connectors/forms/:formId/defaults`, kw = `${Cr}/connectors/forms/:formId/default-values`, Dw = ({
|
|
17321
17321
|
inboxIds: e,
|
|
17322
17322
|
channelType: t,
|
|
17323
17323
|
conversationId: n,
|
|
@@ -17503,7 +17503,7 @@ Do you want to continue?`, Yw = "Select an object to create", Jw = "Select an ob
|
|
|
17503
17503
|
}), fs = xn(
|
|
17504
17504
|
"writeCapability/fetchObjectList",
|
|
17505
17505
|
async (e) => {
|
|
17506
|
-
const { inboxIds: t, channelType: n, conversationId: r, isExpandedFormEnabled: o, connectorId: i } = e, s = await
|
|
17506
|
+
const { inboxIds: t, channelType: n, conversationId: r, isExpandedFormEnabled: o, connectorId: i } = e, s = await Dw({ inboxIds: t, channelType: n, conversationId: r, connectorId: i });
|
|
17507
17507
|
if (!s || !s.data || !("formsList" in s.data) || !Array.isArray(s.data.formsList))
|
|
17508
17508
|
return {
|
|
17509
17509
|
createObjectList: [],
|
|
@@ -17667,7 +17667,7 @@ Do you want to continue?`, Yw = "Select an object to create", Jw = "Select an ob
|
|
|
17667
17667
|
};
|
|
17668
17668
|
}, [e]), [n, o];
|
|
17669
17669
|
}, sI = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.8016%2011.709L12.3416%205.16893L11.4298%204.25712L4.88979%2010.7972V11.709H5.8016ZM6.33618%2012.9987H3.6001V10.2626L10.9739%202.88875C11.0948%202.76786%2011.2588%202.69995%2011.4298%202.69995C11.6008%202.69995%2011.7648%202.76786%2011.8857%202.88875L13.71%204.71302C13.8309%204.83395%2013.8988%204.99794%2013.8988%205.16893C13.8988%205.33992%2013.8309%205.50391%2013.71%205.62484L6.33618%2012.9987ZM3.6001%2014.2884H15.2073V15.578H3.6001V14.2884Z'%20fill='%236C7B94'/%3e%3c/svg%3e", aI = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
17670
|
-
const o = Yt(), { sendTrackingEvent: i, currentSmIds: s } =
|
|
17670
|
+
const o = Yt(), { sendTrackingEvent: i, currentSmIds: s } = De(Ke), { userGroupId: a } = rn() || {}, [c, u] = iI(), { isScrolling: d, isVertical: p } = c, b = d && p, v = he(() => (e == null ? void 0 : e[0].data.map((g) => g.label)) || [], [e]), m = he(() => e.map((g) => {
|
|
17671
17671
|
const x = {
|
|
17672
17672
|
cells: {},
|
|
17673
17673
|
externalResourceId: g.externalResourceId
|
|
@@ -17698,7 +17698,7 @@ Do you want to continue?`, Yw = "Select an object to create", Jw = "Select an ob
|
|
|
17698
17698
|
] }) }),
|
|
17699
17699
|
/* @__PURE__ */ l.jsx(lg, { children: m.map((g, x) => /* @__PURE__ */ l.jsxs(b9, { children: [
|
|
17700
17700
|
Object.values(g.cells).map((y, E) => h(y, E)),
|
|
17701
|
-
/* @__PURE__ */ l.jsx(v9, { children: !b && g.externalResourceId && /* @__PURE__ */ l.jsx(Ce, { title:
|
|
17701
|
+
/* @__PURE__ */ l.jsx(v9, { children: !b && g.externalResourceId && /* @__PURE__ */ l.jsx(Ce, { title: Df, placement: "bottom", children: /* @__PURE__ */ l.jsx(it, { className: "row-edit", onClick: () => f(g.externalResourceId), children: /* @__PURE__ */ l.jsx("img", { src: sI }) }) }) })
|
|
17702
17702
|
] }, `id_${x}`)) })
|
|
17703
17703
|
] }) })
|
|
17704
17704
|
] });
|
|
@@ -17763,7 +17763,7 @@ const y0 = (e) => {
|
|
|
17763
17763
|
isCardLevelError: v,
|
|
17764
17764
|
fieldName: m,
|
|
17765
17765
|
showErrorIcon: h
|
|
17766
|
-
} = e, f = pe(null), g = pe(null), { email: x, currentSmIds: y, conversationId: E, sendTrackingEvent: C, connectorFunctions: w } =
|
|
17766
|
+
} = e, f = pe(null), g = pe(null), { email: x, currentSmIds: y, conversationId: E, sendTrackingEvent: C, connectorFunctions: w } = De(Ke), _ = Se(fI), I = _ == null ? void 0 : _[b], [T, D] = G(!1), F = he(() => {
|
|
17767
17767
|
if (n && v) {
|
|
17768
17768
|
const { error_message: J } = v0(n);
|
|
17769
17769
|
return J;
|
|
@@ -17800,7 +17800,7 @@ const y0 = (e) => {
|
|
|
17800
17800
|
const J = r ? g.current : f.current;
|
|
17801
17801
|
if (J) {
|
|
17802
17802
|
const ne = J.scrollHeight > J.clientHeight || J.scrollWidth > J.clientWidth;
|
|
17803
|
-
|
|
17803
|
+
D(ne);
|
|
17804
17804
|
}
|
|
17805
17805
|
}, [t, r]);
|
|
17806
17806
|
const j = o == Xc.NOT_FOUND;
|
|
@@ -17809,7 +17809,7 @@ const y0 = (e) => {
|
|
|
17809
17809
|
const W = !!n || c, q = () => {
|
|
17810
17810
|
a ? w == null || w.redirectToAdmin() : window.open(Cb, "_blank");
|
|
17811
17811
|
}, $ = () => {
|
|
17812
|
-
C == null || C(
|
|
17812
|
+
C == null || C(k5, {
|
|
17813
17813
|
sm_ids: y,
|
|
17814
17814
|
card_title: d,
|
|
17815
17815
|
field_name: m
|
|
@@ -17863,21 +17863,21 @@ const y0 = (e) => {
|
|
|
17863
17863
|
] })
|
|
17864
17864
|
}
|
|
17865
17865
|
), Kh = (e) => {
|
|
17866
|
-
var H, K,
|
|
17867
|
-
const { id: t, cardTitle: n, specificCardData: r, specificConnectorApiStatus: o, isOpen: i, currentCard: s } = e, a = 24, c = (o == null ? void 0 : o[t]) === se.IDLE, u = (o == null ? void 0 : o[t]) === se.LOADING, d = (o == null ? void 0 : o[t]) === se.FAILED, { cardType: p, data: b, cardErrorMessage: v, redirectToAdminTab: m, connectorNames: h } = (r == null ? void 0 : r[t]) || {}, f = p === "flat", [g, x] = G(!1), [y, E] = G(!1), [C, w] = G(!1), [_, I] = G(!1), T = ((H = b == null ? void 0 : b.listItems) == null ? void 0 : H.statusCode) !== 401,
|
|
17866
|
+
var H, K, k;
|
|
17867
|
+
const { id: t, cardTitle: n, specificCardData: r, specificConnectorApiStatus: o, isOpen: i, currentCard: s } = e, a = 24, c = (o == null ? void 0 : o[t]) === se.IDLE, u = (o == null ? void 0 : o[t]) === se.LOADING, d = (o == null ? void 0 : o[t]) === se.FAILED, { cardType: p, data: b, cardErrorMessage: v, redirectToAdminTab: m, connectorNames: h } = (r == null ? void 0 : r[t]) || {}, f = p === "flat", [g, x] = G(!1), [y, E] = G(!1), [C, w] = G(!1), [_, I] = G(!1), T = ((H = b == null ? void 0 : b.listItems) == null ? void 0 : H.statusCode) !== 401, D = he(() => {
|
|
17868
17868
|
var X, ee, ae, fe;
|
|
17869
17869
|
return f && ((X = b == null ? void 0 : b.flatDisplay) != null && X.data) ? b.flatDisplay.data : !f && ((fe = (ae = (ee = b == null ? void 0 : b.listItems) == null ? void 0 : ee.fields) == null ? void 0 : ae[0]) != null && fe.data) ? b.listItems.fields[0].data : [];
|
|
17870
|
-
}, [f, b]), F = he(() =>
|
|
17870
|
+
}, [f, b]), F = he(() => D == null ? void 0 : D.slice(0, 5), [D]), [O, j] = G([]), V = pe(null), [W, q] = G(0), $ = g ? -180 : 0, U = f ? !1 : !!((K = b == null ? void 0 : b.listItems) != null && K.errorMessage), J = U || d || v, ne = c && !U && i && (C || y);
|
|
17871
17871
|
ro(() => {
|
|
17872
17872
|
var X;
|
|
17873
17873
|
(X = V.current) != null && X.scrollHeight && q(V.current.scrollHeight + a);
|
|
17874
17874
|
}, [o == null ? void 0 : o[t], O, V]), oe(() => {
|
|
17875
17875
|
var fe, P;
|
|
17876
|
-
const X = ((
|
|
17876
|
+
const X = ((D == null ? void 0 : D.length) || 0) > 5, ee = !f && (((P = (fe = b == null ? void 0 : b.listItems) == null ? void 0 : fe.fields) == null ? void 0 : P.length) || 0) > 1;
|
|
17877
17877
|
w(X && !ee), E(ee);
|
|
17878
|
-
}, [b, f,
|
|
17879
|
-
j(g ?
|
|
17880
|
-
}, [b, g, F,
|
|
17878
|
+
}, [b, f, D == null ? void 0 : D.length]), oe(() => {
|
|
17879
|
+
j(g ? D : F);
|
|
17880
|
+
}, [b, g, F, D]);
|
|
17881
17881
|
const ie = () => {
|
|
17882
17882
|
C ? x((X) => !X) : I((X) => !X);
|
|
17883
17883
|
};
|
|
@@ -17885,7 +17885,7 @@ const y0 = (e) => {
|
|
|
17885
17885
|
/* @__PURE__ */ l.jsx(mr, { shown: _, setShown: I, showCloseButton: !0, borderRadius: 12, children: /* @__PURE__ */ l.jsx(
|
|
17886
17886
|
aI,
|
|
17887
17887
|
{
|
|
17888
|
-
data: ((
|
|
17888
|
+
data: ((k = b == null ? void 0 : b.listItems) == null ? void 0 : k.fields) || [],
|
|
17889
17889
|
title: n,
|
|
17890
17890
|
currentCard: s,
|
|
17891
17891
|
setShowModal: I
|
|
@@ -18054,7 +18054,7 @@ const y0 = (e) => {
|
|
|
18054
18054
|
});
|
|
18055
18055
|
}
|
|
18056
18056
|
}
|
|
18057
|
-
), _I = Qh.reducer, C0 = Qh.actions, e2 = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.76618%202.23341C8.79952%201.26675%207.47285%200.666748%205.99952%200.666748C3.05285%200.666748%200.672852%203.05341%200.672852%206.00008C0.672852%208.94675%203.05285%2011.3334%205.99952%2011.3334C8.48619%2011.3334%2010.5595%209.63341%2011.1529%207.33341H9.76618C9.21952%208.88675%207.73952%2010.0001%205.99952%2010.0001C3.79285%2010.0001%201.99952%208.20675%201.99952%206.00008C1.99952%203.79341%203.79285%202.00008%205.99952%202.00008C7.10618%202.00008%208.09285%202.46008%208.81285%203.18675L6.66618%205.33341H11.3329V0.666748L9.76618%202.23341Z'%20fill='%236C7B94'/%3e%3c/svg%3e", AI = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.4587%206.7528C11.2244%206.51848%2010.8445%206.51848%2010.6102%206.7528C10.3759%206.98711%2010.3759%207.36701%2010.6102%207.60132L11.4587%206.7528ZM12.1916%208.33414L12.6158%207.90988L12.1916%208.33414ZM8.33462%2012.1911L8.75888%2011.7668L8.33462%2012.1911ZM7.6018%2010.6097C7.36748%2010.3754%206.98758%2010.3754%206.75327%2010.6097C6.51895%2010.8441%206.51895%2011.224%206.75327%2011.4583L7.6018%2010.6097ZM4.43911%209.14411C4.67343%209.37842%205.05333%209.37842%205.28764%209.14411C5.52196%208.9098%205.52196%208.5299%205.28764%208.29558L4.43911%209.14411ZM3.70629%207.56276L4.13056%207.1385L3.70629%207.56276ZM7.56324%203.70582L7.9875%203.28155L7.56324%203.70582ZM8.29606%205.28716C8.53037%205.52148%208.91027%205.52148%209.14459%205.28716C9.3789%205.05285%209.3789%204.67295%209.14459%204.43864L8.29606%205.28716ZM10.6102%207.60132L11.7673%208.75841L12.6158%207.90988L11.4587%206.7528L10.6102%207.60132ZM11.7673%208.75841C12.1662%209.15735%2012.3904%209.69843%2012.3904%2010.2626L13.5904%2010.2626C13.5904%209.38017%2013.2398%208.53387%2012.6158%207.90988L11.7673%208.75841ZM12.3904%2010.2626C12.3904%2010.8268%2012.1662%2011.3679%2011.7673%2011.7668L12.6158%2012.6154C13.2398%2011.9914%2013.5904%2011.1451%2013.5904%2010.2626L12.3904%2010.2626ZM11.7673%2011.7668C10.9365%2012.5976%209.58963%2012.5976%208.75888%2011.7668L7.91035%2012.6154C9.20973%2013.9147%2011.3164%2013.9147%2012.6158%2012.6154L11.7673%2011.7668ZM8.75888%2011.7668L7.6018%2010.6097L6.75327%2011.4583L7.91035%2012.6154L8.75888%2011.7668ZM5.28764%208.29558L4.13056%207.1385L3.28203%207.98703L4.43911%209.14411L5.28764%208.29558ZM4.13056%207.1385C3.73162%206.73956%203.50749%206.19848%203.50749%205.63429L2.30749%205.63429C2.30749%206.51674%202.65804%207.36304%203.28203%207.98703L4.13056%207.1385ZM3.50749%205.63429C3.50749%205.0701%203.73162%204.52902%204.13056%204.13008L3.28203%203.28155C2.65804%203.90554%202.30749%204.75184%202.30749%205.63429L3.50749%205.63429ZM4.13056%204.13008C4.96131%203.29933%206.30822%203.29933%207.13897%204.13008L7.9875%203.28155C6.68812%201.98217%204.58141%201.98217%203.28203%203.28155L4.13056%204.13008ZM7.13897%204.13008L8.29606%205.28716L9.14459%204.43864L7.9875%203.28155L7.13897%204.13008Z'%20fill='%236C7B94'/%3e%3crect%20x='5.08887'%20y='6.0791'%20width='1.33333'%20height='6.66667'%20rx='0.666667'%20transform='rotate(-45%205.08887%206.0791)'%20fill='%236C7B94'/%3e%3cpath%20d='M5.59961%2014.3998V12.7998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.7998%205.59961H14.3998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.40039%2011.2002H4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2002%202.40039V4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", SI = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_5908_39767)'%3e%3cpath%20d='M9.37333%206.01333L9.98667%206.62667L3.94667%2012.6667H3.33333V12.0533L9.37333%206.01333ZM11.7733%202C11.6067%202%2011.4333%202.06667%2011.3067%202.19333L10.0867%203.41333L12.5867%205.91333L13.8067%204.69333C14.0667%204.43333%2014.0667%204.01333%2013.8067%203.75333L12.2467%202.19333C12.1133%202.06%2011.9467%202%2011.7733%202ZM9.37333%204.12667L2%2011.5V14H4.5L11.8733%206.62667L9.37333%204.12667Z'%20fill='%236C7B94'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_5908_39767'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", t2 = (e) => e.write.createObjectList, TI = (e) => e.write.createObjectConnectorNamesList, n2 = (e) => e.write.linkObjectList, LI = (e) => e.write.editObjectList, RI = (e) => e.write.objectDict, OI = (e) => e.write.formFields, FI = (e) => e.write.linkCardApiStatus,
|
|
18057
|
+
), _I = Qh.reducer, C0 = Qh.actions, e2 = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.76618%202.23341C8.79952%201.26675%207.47285%200.666748%205.99952%200.666748C3.05285%200.666748%200.672852%203.05341%200.672852%206.00008C0.672852%208.94675%203.05285%2011.3334%205.99952%2011.3334C8.48619%2011.3334%2010.5595%209.63341%2011.1529%207.33341H9.76618C9.21952%208.88675%207.73952%2010.0001%205.99952%2010.0001C3.79285%2010.0001%201.99952%208.20675%201.99952%206.00008C1.99952%203.79341%203.79285%202.00008%205.99952%202.00008C7.10618%202.00008%208.09285%202.46008%208.81285%203.18675L6.66618%205.33341H11.3329V0.666748L9.76618%202.23341Z'%20fill='%236C7B94'/%3e%3c/svg%3e", AI = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.4587%206.7528C11.2244%206.51848%2010.8445%206.51848%2010.6102%206.7528C10.3759%206.98711%2010.3759%207.36701%2010.6102%207.60132L11.4587%206.7528ZM12.1916%208.33414L12.6158%207.90988L12.1916%208.33414ZM8.33462%2012.1911L8.75888%2011.7668L8.33462%2012.1911ZM7.6018%2010.6097C7.36748%2010.3754%206.98758%2010.3754%206.75327%2010.6097C6.51895%2010.8441%206.51895%2011.224%206.75327%2011.4583L7.6018%2010.6097ZM4.43911%209.14411C4.67343%209.37842%205.05333%209.37842%205.28764%209.14411C5.52196%208.9098%205.52196%208.5299%205.28764%208.29558L4.43911%209.14411ZM3.70629%207.56276L4.13056%207.1385L3.70629%207.56276ZM7.56324%203.70582L7.9875%203.28155L7.56324%203.70582ZM8.29606%205.28716C8.53037%205.52148%208.91027%205.52148%209.14459%205.28716C9.3789%205.05285%209.3789%204.67295%209.14459%204.43864L8.29606%205.28716ZM10.6102%207.60132L11.7673%208.75841L12.6158%207.90988L11.4587%206.7528L10.6102%207.60132ZM11.7673%208.75841C12.1662%209.15735%2012.3904%209.69843%2012.3904%2010.2626L13.5904%2010.2626C13.5904%209.38017%2013.2398%208.53387%2012.6158%207.90988L11.7673%208.75841ZM12.3904%2010.2626C12.3904%2010.8268%2012.1662%2011.3679%2011.7673%2011.7668L12.6158%2012.6154C13.2398%2011.9914%2013.5904%2011.1451%2013.5904%2010.2626L12.3904%2010.2626ZM11.7673%2011.7668C10.9365%2012.5976%209.58963%2012.5976%208.75888%2011.7668L7.91035%2012.6154C9.20973%2013.9147%2011.3164%2013.9147%2012.6158%2012.6154L11.7673%2011.7668ZM8.75888%2011.7668L7.6018%2010.6097L6.75327%2011.4583L7.91035%2012.6154L8.75888%2011.7668ZM5.28764%208.29558L4.13056%207.1385L3.28203%207.98703L4.43911%209.14411L5.28764%208.29558ZM4.13056%207.1385C3.73162%206.73956%203.50749%206.19848%203.50749%205.63429L2.30749%205.63429C2.30749%206.51674%202.65804%207.36304%203.28203%207.98703L4.13056%207.1385ZM3.50749%205.63429C3.50749%205.0701%203.73162%204.52902%204.13056%204.13008L3.28203%203.28155C2.65804%203.90554%202.30749%204.75184%202.30749%205.63429L3.50749%205.63429ZM4.13056%204.13008C4.96131%203.29933%206.30822%203.29933%207.13897%204.13008L7.9875%203.28155C6.68812%201.98217%204.58141%201.98217%203.28203%203.28155L4.13056%204.13008ZM7.13897%204.13008L8.29606%205.28716L9.14459%204.43864L7.9875%203.28155L7.13897%204.13008Z'%20fill='%236C7B94'/%3e%3crect%20x='5.08887'%20y='6.0791'%20width='1.33333'%20height='6.66667'%20rx='0.666667'%20transform='rotate(-45%205.08887%206.0791)'%20fill='%236C7B94'/%3e%3cpath%20d='M5.59961%2014.3998V12.7998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.7998%205.59961H14.3998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.40039%2011.2002H4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2002%202.40039V4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", SI = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_5908_39767)'%3e%3cpath%20d='M9.37333%206.01333L9.98667%206.62667L3.94667%2012.6667H3.33333V12.0533L9.37333%206.01333ZM11.7733%202C11.6067%202%2011.4333%202.06667%2011.3067%202.19333L10.0867%203.41333L12.5867%205.91333L13.8067%204.69333C14.0667%204.43333%2014.0667%204.01333%2013.8067%203.75333L12.2467%202.19333C12.1133%202.06%2011.9467%202%2011.7733%202ZM9.37333%204.12667L2%2011.5V14H4.5L11.8733%206.62667L9.37333%204.12667Z'%20fill='%236C7B94'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_5908_39767'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", t2 = (e) => e.write.createObjectList, TI = (e) => e.write.createObjectConnectorNamesList, n2 = (e) => e.write.linkObjectList, LI = (e) => e.write.editObjectList, RI = (e) => e.write.objectDict, OI = (e) => e.write.formFields, FI = (e) => e.write.linkCardApiStatus, kI = (e) => e.write.unlinkCardApiStatus, DI = (e) => e.write.dependentFieldsMap, NI = (e) => e.write.createFormApiStatus, jI = (e) => e.write.updateFormApiStatus, PI = (e) => e.write.currentResourceDetails, MI = (e) => e.write.currentResourceDetailsApiStatus, r2 = (e) => e.write.currentCardInEdit, o2 = (e) => e.write.hasUnsavedChanges, BI = (e) => typeof e == "string" ? /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/.test(e) : typeof e == "object" && "_isValid" in e, E0 = (e) => Object.keys(e).sort((n, r) => r.localeCompare(n)).reduce((n, r) => {
|
|
18058
18058
|
var o;
|
|
18059
18059
|
return (typeof e[r] == "string" || typeof e[r] == "object" && e[r] !== null) && BI(e[r]) ? n[r] = (o = /* @__PURE__ */ new Date(`${e[r]}`)) == null ? void 0 : o.toString() : n[r] = e[r], n;
|
|
18060
18060
|
}, {}), w0 = (e, t) => JSON.stringify(E0(e)) === JSON.stringify(E0(t)), VI = (e) => mb.replace("{{connectorName}}", e), GI = ({
|
|
@@ -18066,7 +18066,7 @@ const y0 = (e) => {
|
|
|
18066
18066
|
conversationId: i,
|
|
18067
18067
|
connectorName: s
|
|
18068
18068
|
}) => {
|
|
18069
|
-
const a = Yt(), { sendTrackingEvent: c } =
|
|
18069
|
+
const a = Yt(), { sendTrackingEvent: c } = De(Ke), d = Se(kI) === se.LOADING, p = () => {
|
|
18070
18070
|
i && o && a(gs({ id: n, conversationId: i, externalResourceId: o })).unwrap().then(() => {
|
|
18071
18071
|
c(C5, {
|
|
18072
18072
|
connector_name: s,
|
|
@@ -18087,7 +18087,7 @@ const y0 = (e) => {
|
|
|
18087
18087
|
/* @__PURE__ */ l.jsx(Y, { variant: "body2", children: VI(s) }),
|
|
18088
18088
|
/* @__PURE__ */ l.jsxs(N, { direction: "row", gap: "8px", marginTop: "20px", justifyContent: "flex-end", children: [
|
|
18089
18089
|
/* @__PURE__ */ l.jsx(Oe, { variant: "text", onClick: () => t(!1), children: Zl }),
|
|
18090
|
-
/* @__PURE__ */ l.jsx(Oe, { disabled: d, color: "error", onClick: p, children:
|
|
18090
|
+
/* @__PURE__ */ l.jsx(Oe, { disabled: d, color: "error", onClick: p, children: kf })
|
|
18091
18091
|
] })
|
|
18092
18092
|
] }) });
|
|
18093
18093
|
}, HI = ({ actions: e, isHovered: t = !1 }) => {
|
|
@@ -18096,8 +18096,8 @@ const y0 = (e) => {
|
|
|
18096
18096
|
return null;
|
|
18097
18097
|
const o = r[r.length - 1], i = r.slice(0, -1), s = t ? (i.length + 1) * 32 : 32;
|
|
18098
18098
|
return /* @__PURE__ */ l.jsxs(h9, { width: s, isHovered: t, children: [
|
|
18099
|
-
/* @__PURE__ */ l.jsx("div", { className: "hidden-actions", children: i.map(({ id: a, disabled: c, label: u, iconSrc: d, action: p }) => /* @__PURE__ */ l.jsx(Ce, { title: u, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
18100
|
-
o && /* @__PURE__ */ l.jsx(Ce, { title: o.label, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
18099
|
+
/* @__PURE__ */ l.jsx("div", { className: "hidden-actions", children: i.map(({ id: a, disabled: c, label: u, iconSrc: d, action: p }) => /* @__PURE__ */ l.jsx(Ce, { title: u, placement: "bottom", children: /* @__PURE__ */ l.jsx(Do, { onClick: p, disabled: c, children: /* @__PURE__ */ l.jsx("img", { src: d }) }) }, a)) }),
|
|
18100
|
+
o && /* @__PURE__ */ l.jsx(Ce, { title: o.label, placement: "bottom", children: /* @__PURE__ */ l.jsx(Do, { onClick: o.action, disabled: o.disabled, children: /* @__PURE__ */ l.jsx("img", { src: o.iconSrc }) }) }, o.id)
|
|
18101
18101
|
] });
|
|
18102
18102
|
}, I0 = (e) => {
|
|
18103
18103
|
const {
|
|
@@ -18107,10 +18107,10 @@ const y0 = (e) => {
|
|
|
18107
18107
|
specificConnectorApiStatus: o,
|
|
18108
18108
|
defaultOpenState: i = !1,
|
|
18109
18109
|
onCardUnlinking: s
|
|
18110
|
-
} = e, a = Yt(), { availableFeatures: c, sendTrackingEvent: u, conversationId: d, currentSmIds: p } =
|
|
18111
|
-
let
|
|
18112
|
-
_ && (
|
|
18113
|
-
const { data: F, cardType: O, cardErrorMessage: j, connectorNames: V } = (n == null ? void 0 : n[
|
|
18110
|
+
} = e, a = Yt(), { availableFeatures: c, sendTrackingEvent: u, conversationId: d, currentSmIds: p } = De(Ke), { userGroupId: b } = rn() || {}, [v, m] = G(!!i), [h, f] = G(!1), [g, x] = G(!1), [y, E] = G(!1), { id: C, title: w, externalResourceId: _ = "", forms: I = [], logoUrl: T } = t;
|
|
18111
|
+
let D = C;
|
|
18112
|
+
_ && (D = `${D}_${_}`);
|
|
18113
|
+
const { data: F, cardType: O, cardErrorMessage: j, connectorNames: V } = (n == null ? void 0 : n[D]) ?? {}, W = (V == null ? void 0 : V[0]) || "", q = (o == null ? void 0 : o[D]) === se.LOADING, $ = (o == null ? void 0 : o[D]) === se.FAILED, U = !!(mt(c, Tf) && _), J = he(() => {
|
|
18114
18114
|
var P, ce;
|
|
18115
18115
|
if (j || $ || !(mt(c, tb) && I.some((Te) => Te.type === "edit")))
|
|
18116
18116
|
return !1;
|
|
@@ -18161,7 +18161,7 @@ const y0 = (e) => {
|
|
|
18161
18161
|
P.stopPropagation();
|
|
18162
18162
|
const ce = P.currentTarget.offsetWidth < P.currentTarget.scrollWidth;
|
|
18163
18163
|
f(!!ce);
|
|
18164
|
-
},
|
|
18164
|
+
}, k = (P) => {
|
|
18165
18165
|
var Te, z;
|
|
18166
18166
|
P.stopPropagation(), u(Sf, {
|
|
18167
18167
|
card_title: w,
|
|
@@ -18180,7 +18180,7 @@ const y0 = (e) => {
|
|
|
18180
18180
|
}, fe = [
|
|
18181
18181
|
{
|
|
18182
18182
|
id: "unlink",
|
|
18183
|
-
label:
|
|
18183
|
+
label: kf,
|
|
18184
18184
|
disabled: q,
|
|
18185
18185
|
shown: U,
|
|
18186
18186
|
iconSrc: AI,
|
|
@@ -18196,15 +18196,15 @@ const y0 = (e) => {
|
|
|
18196
18196
|
},
|
|
18197
18197
|
{
|
|
18198
18198
|
id: "edit",
|
|
18199
|
-
label:
|
|
18199
|
+
label: Df,
|
|
18200
18200
|
disabled: q,
|
|
18201
18201
|
shown: J,
|
|
18202
18202
|
iconSrc: SI,
|
|
18203
|
-
action: (P) =>
|
|
18203
|
+
action: (P) => k(P)
|
|
18204
18204
|
}
|
|
18205
18205
|
];
|
|
18206
18206
|
return /* @__PURE__ */ l.jsxs(i9, { "data-testid": `test_${C}`, onMouseEnter: ee, onMouseLeave: ae, children: [
|
|
18207
|
-
/* @__PURE__ */ l.jsxs(s9, { className: v ? "hiver-card-expanded" : "", onClick: (P) => H(P,
|
|
18207
|
+
/* @__PURE__ */ l.jsxs(s9, { className: v ? "hiver-card-expanded" : "", onClick: (P) => H(P, D), children: [
|
|
18208
18208
|
/* @__PURE__ */ l.jsxs(a9, { children: [
|
|
18209
18209
|
T && /* @__PURE__ */ l.jsx("img", { src: T, alt: w }),
|
|
18210
18210
|
/* @__PURE__ */ l.jsx(Ce, { title: h ? w : "", placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
@@ -18219,13 +18219,13 @@ const y0 = (e) => {
|
|
|
18219
18219
|
] }),
|
|
18220
18220
|
/* @__PURE__ */ l.jsxs(Zf, { children: [
|
|
18221
18221
|
/* @__PURE__ */ l.jsx(HI, { actions: fe, isHovered: y }),
|
|
18222
|
-
/* @__PURE__ */ l.jsx(Ce, { title: v ? Rf : Wl, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
18222
|
+
/* @__PURE__ */ l.jsx(Ce, { title: v ? Rf : Wl, placement: "bottom", children: /* @__PURE__ */ l.jsx(Do, { onClick: (P) => H(P, D), children: /* @__PURE__ */ l.jsx(Xl, { className: v ? "" : "hiver-up" }) }) })
|
|
18223
18223
|
] })
|
|
18224
18224
|
] }),
|
|
18225
18225
|
/* @__PURE__ */ l.jsx(
|
|
18226
18226
|
Kh,
|
|
18227
18227
|
{
|
|
18228
|
-
id:
|
|
18228
|
+
id: D,
|
|
18229
18229
|
cardTitle: t.title,
|
|
18230
18230
|
currentCard: t,
|
|
18231
18231
|
specificCardData: n,
|
|
@@ -18265,15 +18265,14 @@ const y0 = (e) => {
|
|
|
18265
18265
|
* adopt the server's view.
|
|
18266
18266
|
*/
|
|
18267
18267
|
userAuthStatusReceived(e, t) {
|
|
18268
|
-
|
|
18269
|
-
|
|
18270
|
-
e.byConnectorId[n] = {
|
|
18268
|
+
const { connectorId: n, state: r, reason: o, externalUserId: i } = t.payload, s = e.byConnectorId[n];
|
|
18269
|
+
(s == null ? void 0 : s.state) === "in_progress" && (r === "disconnected" || r === "unknown") || (e.byConnectorId[n] = {
|
|
18271
18270
|
state: r,
|
|
18272
18271
|
reason: o,
|
|
18273
18272
|
externalUserId: i,
|
|
18274
|
-
connectUrl:
|
|
18273
|
+
connectUrl: s == null ? void 0 : s.connectUrl,
|
|
18275
18274
|
lastChecked: Date.now()
|
|
18276
|
-
};
|
|
18275
|
+
});
|
|
18277
18276
|
},
|
|
18278
18277
|
/**
|
|
18279
18278
|
* Fired from the bifrost 412 interceptor. Carries the connect URL
|
|
@@ -18339,7 +18338,7 @@ function e_(e, t = {}) {
|
|
|
18339
18338
|
}, [o.state]), $t({
|
|
18340
18339
|
queryKey: ["userAuthStatus", e],
|
|
18341
18340
|
queryFn: async () => {
|
|
18342
|
-
const p = await i2(e), b = (p == null ? void 0 : p.data) ?? p;
|
|
18341
|
+
const p = await i2(e), b = (p == null ? void 0 : p.data) ?? p, v = b.state === "connected" || b.state === "reauth_required" || b.state === "workspace_mismatch";
|
|
18343
18342
|
return n(
|
|
18344
18343
|
a2({
|
|
18345
18344
|
connectorId: e,
|
|
@@ -18347,7 +18346,7 @@ function e_(e, t = {}) {
|
|
|
18347
18346
|
reason: b.reason,
|
|
18348
18347
|
externalUserId: b.external_user_id
|
|
18349
18348
|
})
|
|
18350
|
-
),
|
|
18349
|
+
), v && (c.current && !c.current.closed && c.current.close(), c.current = null), b.state === "connected" && !u.current && (u.current = !0, i == null || i()), b;
|
|
18351
18350
|
},
|
|
18352
18351
|
enabled: o.state === "in_progress",
|
|
18353
18352
|
refetchInterval: o.state === "in_progress" ? KI : !1,
|
|
@@ -18372,19 +18371,15 @@ function e_(e, t = {}) {
|
|
|
18372
18371
|
if (!s.current) {
|
|
18373
18372
|
s.current = !0, n(XI({ connectorId: e }));
|
|
18374
18373
|
try {
|
|
18375
|
-
|
|
18376
|
-
if (!
|
|
18377
|
-
const g = await UI(e);
|
|
18378
|
-
p = ((g == null ? void 0 : g.data) ?? g).auth_url;
|
|
18379
|
-
}
|
|
18380
|
-
if (!p)
|
|
18374
|
+
const p = await UI(e), b = (p == null ? void 0 : p.data) ?? p, v = b == null ? void 0 : b.auth_url;
|
|
18375
|
+
if (!v)
|
|
18381
18376
|
throw new Error("No auth_url returned from /user-auth/start");
|
|
18382
|
-
const
|
|
18383
|
-
|
|
18377
|
+
const m = 600, h = 700, f = window.screen.width / 2 - m / 2, g = window.screen.height / 2 - h / 2, x = window.open(
|
|
18378
|
+
v,
|
|
18384
18379
|
"user_auth_popup",
|
|
18385
|
-
`width=${
|
|
18380
|
+
`width=${m},height=${h},left=${f},top=${g},menubar=no,toolbar=no`
|
|
18386
18381
|
);
|
|
18387
|
-
c.current =
|
|
18382
|
+
c.current = x, x || n(
|
|
18388
18383
|
rc({
|
|
18389
18384
|
connectorId: e,
|
|
18390
18385
|
reason: "popup_blocked"
|
|
@@ -18401,7 +18396,7 @@ function e_(e, t = {}) {
|
|
|
18401
18396
|
s.current = !1, r.invalidateQueries({ queryKey: ["userAuthStatus", e] });
|
|
18402
18397
|
}
|
|
18403
18398
|
}
|
|
18404
|
-
}, [e, n,
|
|
18399
|
+
}, [e, n, r]);
|
|
18405
18400
|
return {
|
|
18406
18401
|
entry: o,
|
|
18407
18402
|
state: o.state,
|
|
@@ -18623,24 +18618,23 @@ const s_ = A(Oe)`
|
|
|
18623
18618
|
specificConnectorApiStatus: r,
|
|
18624
18619
|
onCardUnlinking: o
|
|
18625
18620
|
}) => {
|
|
18626
|
-
const { availableFeatures: i } =
|
|
18627
|
-
return e.forEach((
|
|
18628
|
-
|
|
18629
|
-
}), /* @__PURE__ */ l.jsx(Q, { sx: { flexGrow: 1, display: "flex", flexDirection: "column" }, children: e.map((
|
|
18630
|
-
const
|
|
18631
|
-
|
|
18632
|
-
return b && (v = `${v}_${b}`), /* @__PURE__ */ l.jsx("div", { style: { display: "contents" }, children: /* @__PURE__ */ l.jsx(
|
|
18621
|
+
const { availableFeatures: i } = De(Ke), a = mt(i, rb) ? u_ : 1, c = (d) => d.externalResourceId ? `${d.id}_${d.externalResourceId}` : d.id, u = /* @__PURE__ */ new Map();
|
|
18622
|
+
return e.forEach((d) => {
|
|
18623
|
+
d.userAuthEnabled && d.connectorId && !u.has(d.connectorId) && u.set(d.connectorId, c(d));
|
|
18624
|
+
}), /* @__PURE__ */ l.jsx(Q, { sx: { flexGrow: 1, display: "flex", flexDirection: "column" }, children: e.map((d, p) => {
|
|
18625
|
+
const b = c(d);
|
|
18626
|
+
return /* @__PURE__ */ l.jsx("div", { style: { display: "contents" }, children: /* @__PURE__ */ l.jsx(
|
|
18633
18627
|
l_,
|
|
18634
18628
|
{
|
|
18635
|
-
card:
|
|
18629
|
+
card: d,
|
|
18636
18630
|
specificCardData: n,
|
|
18637
18631
|
email: t ?? "",
|
|
18638
|
-
defaultOpenState:
|
|
18632
|
+
defaultOpenState: p < a,
|
|
18639
18633
|
specificConnectorApiStatus: r,
|
|
18640
18634
|
onCardUnlinking: o,
|
|
18641
|
-
isPrimaryUserAuthCard: !
|
|
18635
|
+
isPrimaryUserAuthCard: !d.connectorId || u.get(d.connectorId) === b
|
|
18642
18636
|
}
|
|
18643
|
-
) },
|
|
18637
|
+
) }, b);
|
|
18644
18638
|
}) });
|
|
18645
18639
|
}, l2 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.86993 0.652446C7.56922 0.248711 8.43078 0.248711 9.13007 0.652446L13.7981 3.34755C14.4974 3.75129 14.9282 4.49742 14.9282 5.30489V10.6951C14.9282 11.5026 14.4974 12.2487 13.7981 12.6524L9.13007 15.3476C8.43078 15.7513 7.56922 15.7513 6.86993 15.3476L2.20187 12.6524C1.50258 12.2487 1.0718 11.5026 1.0718 10.6951V5.30489C1.0718 4.49742 1.50258 3.75129 2.20187 3.34755L6.86993 0.652446Z", fill: "#FFD122" }), /* @__PURE__ */ S.createElement("g", { filter: "url(#filter0_d_360_39563)" }, /* @__PURE__ */ S.createElement("path", { d: "M5.83154 4.43359V4.43359C6.84296 4.43359 7.66287 5.25351 7.66287 6.26492V11.5179V11.5179C6.65146 11.5179 5.83154 10.698 5.83154 9.68661V4.43359Z", fill: "white" })), /* @__PURE__ */ S.createElement("g", { filter: "url(#filter1_d_360_39563)" }, /* @__PURE__ */ S.createElement("path", { d: "M8.57812 7.66211V7.66211C9.58954 7.66211 10.4095 8.48202 10.4095 9.49343V11.7103V11.7103C9.39804 11.7103 8.57812 10.8904 8.57812 9.87898V7.66211Z", fill: "white" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("filter", { id: "filter0_d_360_39563", x: 4.76488, y: 3.36693, width: 3.96488, height: 9.21732, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ S.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ S.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ S.createElement("feOffset", null), /* @__PURE__ */ S.createElement("feGaussianBlur", { stdDeviation: 0.533333 }), /* @__PURE__ */ S.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.114019 0" }), /* @__PURE__ */ S.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_360_39563" }), /* @__PURE__ */ S.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_360_39563", result: "shape" })), /* @__PURE__ */ S.createElement("filter", { id: "filter1_d_360_39563", x: 7.51146, y: 6.59544, width: 3.96488, height: 6.18216, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ S.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ S.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ S.createElement("feOffset", null), /* @__PURE__ */ S.createElement("feGaussianBlur", { stdDeviation: 0.533333 }), /* @__PURE__ */ S.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.114019 0" }), /* @__PURE__ */ S.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_360_39563" }), /* @__PURE__ */ S.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_360_39563", result: "shape" })))), f_ = ({ color: e = "#5C6470", size: t = 26 }) => /* @__PURE__ */ l.jsxs("svg", { width: t, height: t, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": !0, children: [
|
|
18646
18640
|
/* @__PURE__ */ l.jsx("path", { d: "M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3z", fill: e }),
|
|
@@ -18748,18 +18742,18 @@ const h_ = "Bring your favourite tools into Hiver", g_ = "Plugin image", m_ = "I
|
|
|
18748
18742
|
background-color: #e3dfff;
|
|
18749
18743
|
border: 1px solid ${M.palette.purple.primary};
|
|
18750
18744
|
}
|
|
18751
|
-
`,
|
|
18745
|
+
`, k_ = A(N)`
|
|
18752
18746
|
margin-top: 16px;
|
|
18753
18747
|
justify-content: center;
|
|
18754
18748
|
align-items: center;
|
|
18755
18749
|
gap: 8px;
|
|
18756
|
-
`,
|
|
18750
|
+
`, D_ = A(Qe.InfoOutlined)`
|
|
18757
18751
|
width: 18px;
|
|
18758
18752
|
color: ${M.palette.gray.gray3};
|
|
18759
18753
|
`, N_ = A(Y)`
|
|
18760
18754
|
color: ${M.palette.gray.gray3};
|
|
18761
18755
|
`, j_ = "https://cdn.hiverhq.com/connectors-module/assets/PlugIn.svg", P_ = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_HIVER_CDN_URL: "https://cdn.hiverhq.com/", VITE_MY_ENV_VAR: "myVariable From Agent" }, { VITE_HIVER_CDN_URL: M_ } = P_, S0 = ({ isAdmin: e = !0, hideHeading: t = !1 }) => {
|
|
18762
|
-
const { sendTrackingEvent: n, availableFeatures: r, connectorFunctions: o, connectorId: i } =
|
|
18756
|
+
const { sendTrackingEvent: n, availableFeatures: r, connectorFunctions: o, connectorId: i } = De(Ke), s = mt(r, Q5), a = mt(r, sa), c = (b) => {
|
|
18763
18757
|
b.stopPropagation(), n(a5), i ? o == null || o.redirectToAdmin(i, { isEdit: !0, tabIndex: 2 }) : o == null || o.redirectToAdmin();
|
|
18764
18758
|
}, u = (b) => {
|
|
18765
18759
|
b.stopPropagation(), n(c5), window.open(C_, "_blank");
|
|
@@ -18794,14 +18788,14 @@ const h_ = "Bring your favourite tools into Hiver", g_ = "Plugin image", m_ = "I
|
|
|
18794
18788
|
}
|
|
18795
18789
|
) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
18796
18790
|
/* @__PURE__ */ l.jsx(A0, { onClick: u, children: y_ }),
|
|
18797
|
-
/* @__PURE__ */ l.jsxs(
|
|
18798
|
-
/* @__PURE__ */ l.jsx(
|
|
18791
|
+
/* @__PURE__ */ l.jsxs(k_, { direction: "row", children: [
|
|
18792
|
+
/* @__PURE__ */ l.jsx(D_, {}),
|
|
18799
18793
|
/* @__PURE__ */ l.jsx(N_, { variant: "caption", children: E_ })
|
|
18800
18794
|
] })
|
|
18801
18795
|
] })
|
|
18802
18796
|
] });
|
|
18803
18797
|
}, B_ = () => {
|
|
18804
|
-
const { availableFeatures: e } =
|
|
18798
|
+
const { availableFeatures: e } = De(Ke), t = mt(e, sa), { connectorName: n, connectorId: r, isReady: o } = Gf();
|
|
18805
18799
|
return o ? /* @__PURE__ */ l.jsxs(Uf, { children: [
|
|
18806
18800
|
/* @__PURE__ */ l.jsx(
|
|
18807
18801
|
N,
|
|
@@ -18826,7 +18820,7 @@ const h_ = "Bring your favourite tools into Hiver", g_ = "Plugin image", m_ = "I
|
|
|
18826
18820
|
] })
|
|
18827
18821
|
] }) : null;
|
|
18828
18822
|
}, V_ = () => {
|
|
18829
|
-
const { metaData: e, sendTrackingEvent: t, isAdmin: n, connectorFunctions: r } =
|
|
18823
|
+
const { metaData: e, sendTrackingEvent: t, isAdmin: n, connectorFunctions: r } = De(Ke), [o, i] = G(!1), s = pe(null), [a, c] = G(0), { templateUpdates: u } = e || {}, { sections: d = [], actionButtons: p = [], title: b } = u || {}, { version: v = "" } = u || {}, m = Ib(v), h = he(
|
|
18830
18824
|
() => wb(v),
|
|
18831
18825
|
[v]
|
|
18832
18826
|
), f = he(() => (p == null ? void 0 : p.filter(({ isAdminPanelLink: E }) => !(!n && E))) ?? [], [p, n]);
|
|
@@ -18856,21 +18850,21 @@ const h_ = "Bring your favourite tools into Hiver", g_ = "Plugin image", m_ = "I
|
|
|
18856
18850
|
/* @__PURE__ */ l.jsx(w9, { variant: "h3", children: b }),
|
|
18857
18851
|
/* @__PURE__ */ l.jsxs(Q, { children: [
|
|
18858
18852
|
o ? /* @__PURE__ */ l.jsx(Ce, { title: fb, placement: "bottom", children: /* @__PURE__ */ l.jsx(it, { onClick: y, children: /* @__PURE__ */ l.jsx(Qe.Close, { sx: { height: "16px", width: "16px", opacity: "0.8" } }) }) }) : null,
|
|
18859
|
-
/* @__PURE__ */ l.jsx(Ce, { title: o ? db : Wl, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
18853
|
+
/* @__PURE__ */ l.jsx(Ce, { title: o ? db : Wl, placement: "bottom", children: /* @__PURE__ */ l.jsx(Do, { onClick: g, children: /* @__PURE__ */ l.jsx(Xl, { className: o ? "" : "hiver-up" }) }) })
|
|
18860
18854
|
] })
|
|
18861
18855
|
] }),
|
|
18862
18856
|
/* @__PURE__ */ l.jsx(A9, { className: o ? "slideDown" : "slideUp", ref: s, height: a, children: /* @__PURE__ */ l.jsxs(S9, { children: [
|
|
18863
18857
|
d.map(({ title: E, items: C, type: w }) => /* @__PURE__ */ l.jsxs(F9, { children: [
|
|
18864
18858
|
/* @__PURE__ */ l.jsx(Y, { variant: "body2_medium", children: E }),
|
|
18865
18859
|
C.map((_) => {
|
|
18866
|
-
const I = w === xb, { deeplink: T, textHtml:
|
|
18860
|
+
const I = w === xb, { deeplink: T, textHtml: D, imageUrl: F } = _, O = () => /* @__PURE__ */ l.jsx(
|
|
18867
18861
|
f9,
|
|
18868
18862
|
{
|
|
18869
18863
|
className: I ? "" : "ellipsisClass",
|
|
18870
18864
|
component: "div",
|
|
18871
18865
|
variant: "body2",
|
|
18872
18866
|
dangerouslySetInnerHTML: {
|
|
18873
|
-
__html:
|
|
18867
|
+
__html: D
|
|
18874
18868
|
}
|
|
18875
18869
|
}
|
|
18876
18870
|
);
|
|
@@ -18886,7 +18880,7 @@ const h_ = "Bring your favourite tools into Hiver", g_ = "Plugin image", m_ = "I
|
|
|
18886
18880
|
children: O()
|
|
18887
18881
|
}
|
|
18888
18882
|
) : O()
|
|
18889
|
-
] }) },
|
|
18883
|
+
] }) }, D);
|
|
18890
18884
|
})
|
|
18891
18885
|
] }, E)),
|
|
18892
18886
|
/* @__PURE__ */ l.jsx(N, { flexDirection: "row", gap: "8px", marginBottom: "11.5px", children: f.map(({ text: E, link: C, isAdminPanelLink: w }) => /* @__PURE__ */ l.jsx(R9, { variant: w ? "contained" : "text", children: /* @__PURE__ */ l.jsx(O9, { variant: "caption", onClick: (_) => x(_, C, w, !0), children: E }) }, E)) })
|
|
@@ -18905,9 +18899,9 @@ const h_ = "Bring your favourite tools into Hiver", g_ = "Plugin image", m_ = "I
|
|
|
18905
18899
|
}, [e]), { textRef: t, isOverflow: n };
|
|
18906
18900
|
}, W_ = (e) => {
|
|
18907
18901
|
const { textRef: t, isOverflow: n } = u2(e.data.label);
|
|
18908
|
-
return /* @__PURE__ */ l.jsx(Ce, { title: n ? e.data.value : null, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
18902
|
+
return /* @__PURE__ */ l.jsx(Ce, { title: n ? e.data.value : null, placement: "bottom", children: /* @__PURE__ */ l.jsx(k9, { ref: t, variant: "body_sm_regular", paddingTop: n ? "5px" : "0px", children: e.data.label }) });
|
|
18909
18903
|
}, U_ = (e) => /* @__PURE__ */ l.jsxs(On.MenuList, { ...e, children: [
|
|
18910
|
-
/* @__PURE__ */ l.jsx(
|
|
18904
|
+
/* @__PURE__ */ l.jsx(D9, { children: /* @__PURE__ */ l.jsx(Y, { variant: "body_sm_medium", children: s6 }) }),
|
|
18911
18905
|
e.children
|
|
18912
18906
|
] }), Z_ = (e) => {
|
|
18913
18907
|
const { isSelected: t } = e, { textRef: n, isOverflow: r } = u2(e.data.label);
|
|
@@ -18963,7 +18957,7 @@ const h_ = "Bring your favourite tools into Hiver", g_ = "Plugin image", m_ = "I
|
|
|
18963
18957
|
maxHeight: "160px"
|
|
18964
18958
|
})
|
|
18965
18959
|
}, Y_ = ({ selectedEmail: e, emailHeaders: t, root: n, isLoading: r, setSelectedEmail: o }) => {
|
|
18966
|
-
const { conversationId: i } =
|
|
18960
|
+
const { conversationId: i } = De(Ke), s = t ? Object.entries(t).map(([c]) => ({
|
|
18967
18961
|
value: c,
|
|
18968
18962
|
label: c
|
|
18969
18963
|
})) : e ? [{ value: e, label: e }] : [];
|
|
@@ -19098,8 +19092,8 @@ const J_ = A(Sl)`
|
|
|
19098
19092
|
) })
|
|
19099
19093
|
] }),
|
|
19100
19094
|
/* @__PURE__ */ l.jsxs(N, { direction: "row", alignItems: "center", children: [
|
|
19101
|
-
a ? /* @__PURE__ */ l.jsx(Ce, { title: Lf, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
19102
|
-
/* @__PURE__ */ l.jsx(Ce, { title: a ? Rf : Wl, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
19095
|
+
a ? /* @__PURE__ */ l.jsx(Ce, { title: Lf, placement: "bottom", children: /* @__PURE__ */ l.jsx(Do, { onClick: (h) => m(h), children: /* @__PURE__ */ l.jsx("img", { src: e2 }) }) }) : null,
|
|
19096
|
+
/* @__PURE__ */ l.jsx(Ce, { title: a ? Rf : Wl, placement: "bottom", children: /* @__PURE__ */ l.jsx(Do, { onClick: () => c((h) => !h), children: /* @__PURE__ */ l.jsx(Xl, { className: a ? "" : "hiver-up" }) }) })
|
|
19103
19097
|
] })
|
|
19104
19098
|
] }),
|
|
19105
19099
|
/* @__PURE__ */ l.jsx(
|
|
@@ -19116,7 +19110,7 @@ const J_ = A(Sl)`
|
|
|
19116
19110
|
}, h2 = {
|
|
19117
19111
|
values: {},
|
|
19118
19112
|
errors: {}
|
|
19119
|
-
},
|
|
19113
|
+
}, kt = {
|
|
19120
19114
|
SET_FIELD_VALUE: "SET_FIELD_VALUE",
|
|
19121
19115
|
CLEAR_ERROR: "CLEAR_ERROR",
|
|
19122
19116
|
SET_FIELD_ERROR: "SET_FIELD_ERROR",
|
|
@@ -19127,7 +19121,7 @@ const J_ = A(Sl)`
|
|
|
19127
19121
|
}, iA = (e, t) => {
|
|
19128
19122
|
const { type: n, payload: r } = t;
|
|
19129
19123
|
switch (n) {
|
|
19130
|
-
case
|
|
19124
|
+
case kt.SET_FIELD_VALUE: {
|
|
19131
19125
|
if (!(r != null && r.value)) return e;
|
|
19132
19126
|
const { name: o, value: i } = r.value;
|
|
19133
19127
|
return {
|
|
@@ -19138,7 +19132,7 @@ const J_ = A(Sl)`
|
|
|
19138
19132
|
}
|
|
19139
19133
|
};
|
|
19140
19134
|
}
|
|
19141
|
-
case
|
|
19135
|
+
case kt.SET_FIELD_ERROR: {
|
|
19142
19136
|
if (!(r != null && r.value)) return e;
|
|
19143
19137
|
const { name: o, value: i } = r.value;
|
|
19144
19138
|
return typeof i == "boolean" || typeof i == "string" ? {
|
|
@@ -19149,7 +19143,7 @@ const J_ = A(Sl)`
|
|
|
19149
19143
|
}
|
|
19150
19144
|
} : e;
|
|
19151
19145
|
}
|
|
19152
|
-
case
|
|
19146
|
+
case kt.CLEAR_ERROR: {
|
|
19153
19147
|
if (!(r != null && r.value)) return e;
|
|
19154
19148
|
const { name: o } = r.value;
|
|
19155
19149
|
return {
|
|
@@ -19160,7 +19154,7 @@ const J_ = A(Sl)`
|
|
|
19160
19154
|
}
|
|
19161
19155
|
};
|
|
19162
19156
|
}
|
|
19163
|
-
case
|
|
19157
|
+
case kt.SET_FIELDS: {
|
|
19164
19158
|
if (!(r != null && r.values)) return e;
|
|
19165
19159
|
const { values: o } = r;
|
|
19166
19160
|
return {
|
|
@@ -19168,7 +19162,7 @@ const J_ = A(Sl)`
|
|
|
19168
19162
|
values: o
|
|
19169
19163
|
};
|
|
19170
19164
|
}
|
|
19171
|
-
case
|
|
19165
|
+
case kt.SET_FORM_DEFAULTS: {
|
|
19172
19166
|
if (!(r != null && r.values)) return e;
|
|
19173
19167
|
const { values: o } = r, i = { ...e.errors };
|
|
19174
19168
|
for (const s in o ?? {})
|
|
@@ -19182,7 +19176,7 @@ const J_ = A(Sl)`
|
|
|
19182
19176
|
}
|
|
19183
19177
|
};
|
|
19184
19178
|
}
|
|
19185
|
-
case
|
|
19179
|
+
case kt.CLEAR_FIELDS: {
|
|
19186
19180
|
const { fieldNames: o } = r ?? {};
|
|
19187
19181
|
if (!Array.isArray(o)) return e;
|
|
19188
19182
|
const i = { ...e.values }, s = { ...e.errors };
|
|
@@ -19194,16 +19188,16 @@ const J_ = A(Sl)`
|
|
|
19194
19188
|
errors: s
|
|
19195
19189
|
};
|
|
19196
19190
|
}
|
|
19197
|
-
case
|
|
19191
|
+
case kt.RESET_STATE:
|
|
19198
19192
|
return h2;
|
|
19199
19193
|
}
|
|
19200
19194
|
return e;
|
|
19201
19195
|
}, g2 = () => Y2(iA, h2), m2 = ({ state: e, dispatch: t, validations: n, dynamicFields: r }) => {
|
|
19202
19196
|
const o = e.errors, i = (v, m) => {
|
|
19203
|
-
t({ type:
|
|
19197
|
+
t({ type: kt.SET_FIELD_VALUE, payload: { value: { value: m, name: v } } });
|
|
19204
19198
|
}, s = _e(
|
|
19205
19199
|
(v) => {
|
|
19206
|
-
t({ type:
|
|
19200
|
+
t({ type: kt.SET_FORM_DEFAULTS, payload: { values: v } });
|
|
19207
19201
|
},
|
|
19208
19202
|
[t]
|
|
19209
19203
|
), a = _e(() => Object.keys(o).filter((m) => !!o[m]).length > 0, [o]), c = (v) => {
|
|
@@ -19217,7 +19211,7 @@ const J_ = A(Sl)`
|
|
|
19217
19211
|
}, d = (v, m) => {
|
|
19218
19212
|
i(v, m || "");
|
|
19219
19213
|
}, p = (v, m) => {
|
|
19220
|
-
e.errors[v] !== m && t({ type:
|
|
19214
|
+
e.errors[v] !== m && t({ type: kt.SET_FIELD_ERROR, payload: { value: { name: v, value: m } } });
|
|
19221
19215
|
}, b = (v, m) => {
|
|
19222
19216
|
if (m) {
|
|
19223
19217
|
const h = m[v];
|
|
@@ -19231,7 +19225,7 @@ const J_ = A(Sl)`
|
|
|
19231
19225
|
if (Array.isArray(r))
|
|
19232
19226
|
return () => {
|
|
19233
19227
|
const v = r.map((m) => m.name);
|
|
19234
|
-
t({ type:
|
|
19228
|
+
t({ type: kt.CLEAR_FIELDS, payload: { fieldNames: v } });
|
|
19235
19229
|
};
|
|
19236
19230
|
}, [r, t]), {
|
|
19237
19231
|
setValue: i,
|
|
@@ -19398,7 +19392,7 @@ const J_ = A(Sl)`
|
|
|
19398
19392
|
for (const s of n)
|
|
19399
19393
|
r.append("inbox_id", String(s));
|
|
19400
19394
|
const o = await Fe({
|
|
19401
|
-
url: bt(
|
|
19395
|
+
url: bt(kw, { formId: e }) + "?" + r.toString(),
|
|
19402
19396
|
method: Ve.GET
|
|
19403
19397
|
}), i = o == null ? void 0 : o.data;
|
|
19404
19398
|
if (!i.enabled) throw new Error("Form default values are not enabled");
|
|
@@ -19482,7 +19476,7 @@ const J_ = A(Sl)`
|
|
|
19482
19476
|
onSuccess: d,
|
|
19483
19477
|
onClose: p
|
|
19484
19478
|
}) => {
|
|
19485
|
-
const [b, v] = G({}), { conversationId: m, currentSmIds: h } =
|
|
19479
|
+
const [b, v] = G({}), { conversationId: m, currentSmIds: h } = De(Ke), { data: f } = Hx({
|
|
19486
19480
|
formId: n,
|
|
19487
19481
|
formData: b,
|
|
19488
19482
|
argsMap: a ?? {},
|
|
@@ -19499,28 +19493,28 @@ const J_ = A(Sl)`
|
|
|
19499
19493
|
formId: n,
|
|
19500
19494
|
conversationId: m,
|
|
19501
19495
|
inboxIds: h,
|
|
19502
|
-
onSuccess: (
|
|
19503
|
-
y.current = !0, d == null || d(
|
|
19496
|
+
onSuccess: (D) => {
|
|
19497
|
+
y.current = !0, d == null || d(D);
|
|
19504
19498
|
}
|
|
19505
19499
|
}), w = he(() => f != null && f.length ? [...r, ...f] : r, [r, f]);
|
|
19506
19500
|
oe(() => {
|
|
19507
19501
|
g && v(g);
|
|
19508
19502
|
}, [g]);
|
|
19509
|
-
const _ = (
|
|
19503
|
+
const _ = (D) => {
|
|
19510
19504
|
const F = w.map((j) => ({
|
|
19511
19505
|
name: j.name,
|
|
19512
19506
|
type: j.isMultiSelect ? "multi-select" : j.type
|
|
19513
|
-
})), O = ev(
|
|
19507
|
+
})), O = ev(D, F);
|
|
19514
19508
|
E(O);
|
|
19515
|
-
}, I = async ({ args:
|
|
19509
|
+
}, I = async ({ args: D, pagination: F }, { formId: O, fieldName: j }) => {
|
|
19516
19510
|
const V = await Hh(
|
|
19517
19511
|
{ formId: O, fieldName: j },
|
|
19518
|
-
{ pagination: F, args:
|
|
19512
|
+
{ pagination: F, args: D }
|
|
19519
19513
|
), W = Array.isArray(V == null ? void 0 : V.data.data) ? V.data.data : [];
|
|
19520
19514
|
return { options: W, hasMore: !!W.length };
|
|
19521
|
-
}, T = (
|
|
19522
|
-
const F = Ip(
|
|
19523
|
-
v((j) => ({ ...j, [
|
|
19515
|
+
}, T = (D) => {
|
|
19516
|
+
const F = Ip(D.value) ? D.value.value : D.value, O = F && D.type === "multi-select" ? [F] : F;
|
|
19517
|
+
v((j) => ({ ...j, [D.name]: O }));
|
|
19524
19518
|
};
|
|
19525
19519
|
return /* @__PURE__ */ l.jsx(
|
|
19526
19520
|
sw,
|
|
@@ -19679,23 +19673,23 @@ const gA = A(N)`
|
|
|
19679
19673
|
currentSmIds: C,
|
|
19680
19674
|
connectorFunctions: { redirectToAdmin: w, getFormElement: _, toggleFormElement: I },
|
|
19681
19675
|
stackingContext: T,
|
|
19682
|
-
isAdmin:
|
|
19676
|
+
isAdmin: D,
|
|
19683
19677
|
variables: F
|
|
19684
|
-
} =
|
|
19685
|
-
u == null || u(
|
|
19686
|
-
const X = mt(y, lb), ee = (
|
|
19678
|
+
} = De(Ke), [O, j] = g2(), V = Se(r2), W = Se(t ? LI : t2), q = Se(OI), $ = Se(RI), U = Se(DI), J = Se(NI), ne = Se(jI), ie = Se(PI), H = Se(MI), K = Se(o2), k = $ == null ? void 0 : $[(p == null ? void 0 : p.value) ?? ""];
|
|
19679
|
+
u == null || u(k);
|
|
19680
|
+
const X = mt(y, lb), ee = (k == null ? void 0 : k.hasCustomFields) ?? !1, { customFieldsArgsPresent: ae, customFieldsArgs: fe } = he(() => {
|
|
19687
19681
|
if (!ee) return { customFieldsArgsPresent: !1, customFieldsArgs: {} };
|
|
19688
|
-
const xe = Object.values((
|
|
19682
|
+
const xe = Object.values((k == null ? void 0 : k.customFieldsArgs) ?? {}).every(
|
|
19689
19683
|
(vt) => !!O.values[vt]
|
|
19690
19684
|
);
|
|
19691
19685
|
if (!xe) return { customFieldsArgsPresent: !1, customFieldsArgs: {} };
|
|
19692
|
-
const Ee = (
|
|
19686
|
+
const Ee = (k == null ? void 0 : k.customFieldsArgs) ?? {}, ct = ai(O, Ee);
|
|
19693
19687
|
return { customFieldsArgsPresent: xe, customFieldsArgs: ct };
|
|
19694
|
-
}, [ee, O,
|
|
19688
|
+
}, [ee, O, k == null ? void 0 : k.customFieldsArgs]), P = ee && ae && X, { data: ce } = pA({
|
|
19695
19689
|
formId: String(p == null ? void 0 : p.value),
|
|
19696
19690
|
args: fe,
|
|
19697
19691
|
enabled: P
|
|
19698
|
-
}), Te = he(() => P ? ce ?? [] : [], [P, ce]), z =
|
|
19692
|
+
}), Te = he(() => P ? ce ?? [] : [], [P, ce]), z = k == null ? void 0 : k.expandedView, { formConfigs: Me, formViewConfigs: Je } = he(() => {
|
|
19699
19693
|
if (p && "value" in p && q && q[p.value] && Array.isArray(q[p.value])) {
|
|
19700
19694
|
const Ee = [...q[p.value], ...Te], ct = [
|
|
19701
19695
|
{
|
|
@@ -19734,19 +19728,19 @@ const gA = A(N)`
|
|
|
19734
19728
|
formId: Jn,
|
|
19735
19729
|
conversationId: x,
|
|
19736
19730
|
inboxIds: C,
|
|
19737
|
-
enabled: !t && !!
|
|
19731
|
+
enabled: !t && !!D
|
|
19738
19732
|
});
|
|
19739
19733
|
oe(() => {
|
|
19740
19734
|
_t && xt(_t);
|
|
19741
19735
|
}, [_t, xt]), oe(() => {
|
|
19742
19736
|
p && (c == null || c(p.value));
|
|
19743
19737
|
}, [p, c]);
|
|
19744
|
-
const { userGroupId:
|
|
19738
|
+
const { userGroupId: kn } = rn() || {}, { fetchConfig: qt, createConfig: Zo } = b2({
|
|
19745
19739
|
formFields: Me[0].formFields,
|
|
19746
19740
|
formId: Me[0].id,
|
|
19747
19741
|
formState: O,
|
|
19748
19742
|
conversationId: x
|
|
19749
|
-
}), Kt = (Lr = V == null ? void 0 : V.forms.find((xe) => xe.type === "edit")) == null ? void 0 : Lr.id, { externalResourceId: qn } = V ?? {},
|
|
19743
|
+
}), Kt = (Lr = V == null ? void 0 : V.forms.find((xe) => xe.type === "edit")) == null ? void 0 : Lr.id, { externalResourceId: qn } = V ?? {}, Dn = [J, ne, H].includes(se.LOADING), oo = he(() => !z || !_ ? null : _(), [z, _]), Qt = Yt();
|
|
19750
19744
|
oe(() => (z && I && I(!0), () => {
|
|
19751
19745
|
z && I && I(!1);
|
|
19752
19746
|
}), [z, I]), oe(() => {
|
|
@@ -19755,8 +19749,8 @@ const gA = A(N)`
|
|
|
19755
19749
|
t ? !(ie && "values" in ie && "values" in O && w0(O.values, ie.values)) : (e == null ? void 0 : e.fields_filled) !== void 0 && e.fields_filled > 0
|
|
19756
19750
|
)
|
|
19757
19751
|
);
|
|
19758
|
-
}, [t, e, ie, O, Qt]), oe(() => (t && ie && j({ type:
|
|
19759
|
-
j({ type:
|
|
19752
|
+
}, [t, e, ie, O, Qt]), oe(() => (t && ie && j({ type: kt.SET_FIELDS, payload: ie }), () => {
|
|
19753
|
+
j({ type: kt.SET_FIELDS, payload: { values: {} } });
|
|
19760
19754
|
}), [t, j, ie]), oe(() => {
|
|
19761
19755
|
p !== null && s((xe) => ({ ...xe, object_type: p.label }));
|
|
19762
19756
|
}, [p, s]), oe(() => {
|
|
@@ -19770,7 +19764,7 @@ const gA = A(N)`
|
|
|
19770
19764
|
W && W.length && b(t && Kt ? W.find((xe) => xe.value === Kt) ?? null : (xe) => xe || !$ ? xe : W.length === 1 ? W[0] : W.find((ct) => !$[ct.value].expandedView) ?? null);
|
|
19771
19765
|
}, [W, $, t, Kt, n]);
|
|
19772
19766
|
const io = () => {
|
|
19773
|
-
b(g.current), m(!1), j({ type:
|
|
19767
|
+
b(g.current), m(!1), j({ type: kt.RESET_STATE });
|
|
19774
19768
|
}, Kn = (xe, Ee) => {
|
|
19775
19769
|
ut(xe, Ee);
|
|
19776
19770
|
}, Qn = (xe, Ee, ct) => {
|
|
@@ -19796,7 +19790,7 @@ const gA = A(N)`
|
|
|
19796
19790
|
connector_name: xe,
|
|
19797
19791
|
card_title: Ee,
|
|
19798
19792
|
sm_ids: C,
|
|
19799
|
-
ug_id:
|
|
19793
|
+
ug_id: kn
|
|
19800
19794
|
});
|
|
19801
19795
|
const ct = $[Kt].interfaceDetails;
|
|
19802
19796
|
if (!ct || !ie)
|
|
@@ -19815,19 +19809,19 @@ const gA = A(N)`
|
|
|
19815
19809
|
}
|
|
19816
19810
|
})
|
|
19817
19811
|
).unwrap().then(() => {
|
|
19818
|
-
var
|
|
19812
|
+
var ke;
|
|
19819
19813
|
E(R5, {
|
|
19820
19814
|
connector_name: xe,
|
|
19821
19815
|
card_title: Ee,
|
|
19822
19816
|
sm_ids: C,
|
|
19823
|
-
ug_id:
|
|
19817
|
+
ug_id: kn
|
|
19824
19818
|
});
|
|
19825
|
-
const Z = ((
|
|
19819
|
+
const Z = ((ke = Me[0].formFields) == null ? void 0 : ke.filter((Ne) => Ne.isFieldCustom)) ?? [], te = Z.length > 0, le = Z.some((Ne) => O.values[Ne.name]);
|
|
19826
19820
|
E($5, {
|
|
19827
19821
|
sm_ids: C,
|
|
19828
19822
|
ug_id: d,
|
|
19829
|
-
connector_name:
|
|
19830
|
-
form_object:
|
|
19823
|
+
connector_name: k == null ? void 0 : k.connectorName,
|
|
19824
|
+
form_object: k == null ? void 0 : k.name,
|
|
19831
19825
|
object_type: p == null ? void 0 : p.label,
|
|
19832
19826
|
has_custom_fields: te,
|
|
19833
19827
|
custom_fields_used: le
|
|
@@ -19857,14 +19851,14 @@ const gA = A(N)`
|
|
|
19857
19851
|
E(v5, {
|
|
19858
19852
|
object_type: p
|
|
19859
19853
|
});
|
|
19860
|
-
const Vt = ((te = Me[0].formFields) == null ? void 0 : te.filter((le) => le.isFieldCustom)) ?? [], cn = Vt.length > 0, Rt = Vt.some((le) => O.values[le.name]), Z = Object.entries(_t ?? {}).filter(([le,
|
|
19861
|
-
if (O.values[le] ===
|
|
19854
|
+
const Vt = ((te = Me[0].formFields) == null ? void 0 : te.filter((le) => le.isFieldCustom)) ?? [], cn = Vt.length > 0, Rt = Vt.some((le) => O.values[le.name]), Z = Object.entries(_t ?? {}).filter(([le, ke]) => {
|
|
19855
|
+
if (O.values[le] === ke) return !0;
|
|
19862
19856
|
}).map(([le]) => le);
|
|
19863
19857
|
E(Z5, {
|
|
19864
19858
|
sm_ids: C,
|
|
19865
19859
|
ug_id: d,
|
|
19866
|
-
connector_name:
|
|
19867
|
-
form_object:
|
|
19860
|
+
connector_name: k == null ? void 0 : k.connectorName,
|
|
19861
|
+
form_object: k == null ? void 0 : k.name,
|
|
19868
19862
|
object_type: p == null ? void 0 : p.label,
|
|
19869
19863
|
has_custom_fields: cn,
|
|
19870
19864
|
custom_fields_used: Rt,
|
|
@@ -19883,22 +19877,22 @@ const gA = A(N)`
|
|
|
19883
19877
|
action: io
|
|
19884
19878
|
}
|
|
19885
19879
|
], so = () => {
|
|
19886
|
-
w(
|
|
19880
|
+
w(k == null ? void 0 : k.connectorId, { isEdit: !0, tabIndex: 2, editCard: (k == null ? void 0 : k.cardId) ?? "" }), E(U5, {
|
|
19887
19881
|
sm_ids: C,
|
|
19888
19882
|
ug_id: d,
|
|
19889
|
-
connector_name:
|
|
19890
|
-
form_object:
|
|
19883
|
+
connector_name: k == null ? void 0 : k.connectorName,
|
|
19884
|
+
form_object: k == null ? void 0 : k.name
|
|
19891
19885
|
});
|
|
19892
19886
|
}, $o = ({ data: xe }) => {
|
|
19893
19887
|
Ir.current = !0, a == null || a(!1);
|
|
19894
19888
|
const { fields_configured_count: Ee, has_system_variable: ct } = tv(xe);
|
|
19895
19889
|
E(J5, {
|
|
19896
|
-
app_name:
|
|
19897
|
-
object_type:
|
|
19890
|
+
app_name: k == null ? void 0 : k.connectorName,
|
|
19891
|
+
object_type: k == null ? void 0 : k.name,
|
|
19898
19892
|
fields_configured_count: Ee,
|
|
19899
19893
|
has_system_variable: ct
|
|
19900
19894
|
});
|
|
19901
|
-
}, Ar =
|
|
19895
|
+
}, Ar = D && X && (k == null ? void 0 : k.cardAccessMode) === "read_write", zo = !h && (C == null ? void 0 : C.length) > 1 && Object.keys(_t ?? {}).length > 0, Sr = /* @__PURE__ */ l.jsxs(S2, { className: z ? w2 : "", children: [
|
|
19902
19896
|
a && /* @__PURE__ */ l.jsx(
|
|
19903
19897
|
dA,
|
|
19904
19898
|
{
|
|
@@ -19906,11 +19900,11 @@ const gA = A(N)`
|
|
|
19906
19900
|
isEdit: t,
|
|
19907
19901
|
fields: sn,
|
|
19908
19902
|
variables: F ?? [],
|
|
19909
|
-
title: (
|
|
19910
|
-
connectorLogo: (
|
|
19903
|
+
title: (k == null ? void 0 : k.name) || "Pre-fill fields",
|
|
19904
|
+
connectorLogo: (k == null ? void 0 : k.logoUrl) ?? "",
|
|
19911
19905
|
formId: Jn,
|
|
19912
|
-
customFormArgsEnabled: (
|
|
19913
|
-
customFormArgsMap: (
|
|
19906
|
+
customFormArgsEnabled: (k == null ? void 0 : k.hasCustomFields) ?? !1,
|
|
19907
|
+
customFormArgsMap: (k == null ? void 0 : k.customFieldsArgs) ?? void 0,
|
|
19914
19908
|
onSuccess: $o,
|
|
19915
19909
|
onClose: () => a == null ? void 0 : a(!1)
|
|
19916
19910
|
}
|
|
@@ -19918,7 +19912,7 @@ const gA = A(N)`
|
|
|
19918
19912
|
Fn ? /* @__PURE__ */ l.jsx(
|
|
19919
19913
|
xA,
|
|
19920
19914
|
{
|
|
19921
|
-
appName: (
|
|
19915
|
+
appName: (k == null ? void 0 : k.connectorName) ?? "App",
|
|
19922
19916
|
onPrimaryClick: () => {
|
|
19923
19917
|
a == null || a(!0);
|
|
19924
19918
|
}
|
|
@@ -19938,7 +19932,7 @@ const gA = A(N)`
|
|
|
19938
19932
|
/* @__PURE__ */ l.jsxs(Y, { variant: "body_sm_medium", children: [
|
|
19939
19933
|
t ? "Edit" : "Add",
|
|
19940
19934
|
" to ",
|
|
19941
|
-
|
|
19935
|
+
k.connectorName
|
|
19942
19936
|
] }),
|
|
19943
19937
|
/* @__PURE__ */ l.jsx(Ce, { title: "Close Popup", placement: "bottom", children: /* @__PURE__ */ l.jsx(it, { onClick: o, children: /* @__PURE__ */ l.jsx(CA, { src: qh }) }) })
|
|
19944
19938
|
] }) : null,
|
|
@@ -19990,14 +19984,14 @@ const gA = A(N)`
|
|
|
19990
19984
|
/* @__PURE__ */ l.jsx(
|
|
19991
19985
|
Oe,
|
|
19992
19986
|
{
|
|
19993
|
-
disabled: Yn() ||
|
|
19987
|
+
disabled: Yn() || Dn || !K,
|
|
19994
19988
|
onClick: t ? an : er,
|
|
19995
19989
|
size: "small",
|
|
19996
19990
|
...z ? { style: { order: 2 } } : null,
|
|
19997
19991
|
children: t ? hb : pb
|
|
19998
19992
|
}
|
|
19999
19993
|
),
|
|
20000
|
-
/* @__PURE__ */ l.jsx(T2, { variant: "outlined", color: "tertiary", size: "small", onClick: o, disabled:
|
|
19994
|
+
/* @__PURE__ */ l.jsx(T2, { variant: "outlined", color: "tertiary", size: "small", onClick: o, disabled: Dn, children: Zl })
|
|
20001
19995
|
] })
|
|
20002
19996
|
] });
|
|
20003
19997
|
return z && oo ? br(Sr, oo) : Sr;
|
|
@@ -20089,7 +20083,7 @@ const EA = A(I2)`
|
|
|
20089
20083
|
fill: ${M.palette.purple.primary} !important;
|
|
20090
20084
|
}
|
|
20091
20085
|
`, wA = ({ setOpenTaskLinking: e, onLinkingSuccess: t }) => {
|
|
20092
|
-
const n = Yt(), r = Se(d2), o = Se(f2), i = Se(FI), s = Se(n2), [a, c] = G(!1), [u, d] = G(null), [p, b] = G(""), [v, m] = G({}), { conversationId: h, sendTrackingEvent: f, email: g } =
|
|
20086
|
+
const n = Yt(), r = Se(d2), o = Se(f2), i = Se(FI), s = Se(n2), [a, c] = G(!1), [u, d] = G(null), [p, b] = G(""), [v, m] = G({}), { conversationId: h, sendTrackingEvent: f, email: g } = De(Ke);
|
|
20093
20087
|
oe(() => {
|
|
20094
20088
|
s && s.length && d(s[0]);
|
|
20095
20089
|
}, [s]);
|
|
@@ -20116,7 +20110,7 @@ const EA = A(I2)`
|
|
|
20116
20110
|
O.stopPropagation();
|
|
20117
20111
|
const { value: j } = (O == null ? void 0 : O.target) || {};
|
|
20118
20112
|
b(j), c(!1);
|
|
20119
|
-
},
|
|
20113
|
+
}, D = (O, j) => {
|
|
20120
20114
|
m((V) => ({
|
|
20121
20115
|
...V,
|
|
20122
20116
|
[O]: !!j
|
|
@@ -20136,7 +20130,7 @@ const EA = A(I2)`
|
|
|
20136
20130
|
label: Jw,
|
|
20137
20131
|
labelSpacing: 0.5,
|
|
20138
20132
|
validation: { isRequired: !0 },
|
|
20139
|
-
onValidationError:
|
|
20133
|
+
onValidationError: D
|
|
20140
20134
|
}
|
|
20141
20135
|
),
|
|
20142
20136
|
/* @__PURE__ */ l.jsx(
|
|
@@ -20150,7 +20144,7 @@ const EA = A(I2)`
|
|
|
20150
20144
|
label: Kw,
|
|
20151
20145
|
labelSpacing: 0.5,
|
|
20152
20146
|
validation: { isRequired: !0, validate: Kx() },
|
|
20153
|
-
onValidationError:
|
|
20147
|
+
onValidationError: D
|
|
20154
20148
|
}
|
|
20155
20149
|
),
|
|
20156
20150
|
a ? /* @__PURE__ */ l.jsx(
|
|
@@ -20252,7 +20246,7 @@ const EA = A(I2)`
|
|
|
20252
20246
|
/* @__PURE__ */ l.jsx("span", { className: "content__btn", children: Nf })
|
|
20253
20247
|
] }) : null
|
|
20254
20248
|
] })
|
|
20255
|
-
] }), RA = (e) => e.write.searchObjectList, L2 = (e) => e.write.objectDict, OA = (e) => e.write.formFields, FA = (e) => e.write.dependentFieldsMap,
|
|
20249
|
+
] }), RA = (e) => e.write.searchObjectList, L2 = (e) => e.write.objectDict, OA = (e) => e.write.formFields, FA = (e) => e.write.dependentFieldsMap, kA = "Search in Connectors", DA = "Search in Apps", NA = "Start typing to search..", jA = "Smart search suggestions", PA = ":count result:countSuffix found for :searchObject in :connectorName", MA = "Back to search results", BA = "No search results found", R2 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "#97A3B7", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("g", { id: "icons/Actions/Search" }, /* @__PURE__ */ S.createElement("path", { id: "Shape", fillRule: "evenodd", clipRule: "evenodd", d: "M8.57633 7.54717H8.03431L7.8422 7.36192C8.51458 6.57976 8.91938 5.56432 8.91938 4.45969C8.91938 1.99657 6.92281 0 4.45969 0C1.99657 0 0 1.99657 0 4.45969C0 6.92281 1.99657 8.91938 4.45969 8.91938C5.56432 8.91938 6.57976 8.51458 7.36192 7.8422L7.54717 8.03431V8.57633L10.9777 12L12 10.9777L8.57633 7.54717ZM4.45969 7.54717C2.75129 7.54717 1.37221 6.1681 1.37221 4.45969C1.37221 2.75129 2.75129 1.37221 4.45969 1.37221C6.1681 1.37221 7.54717 2.75129 7.54717 4.45969C7.54717 6.1681 6.1681 7.54717 4.45969 7.54717Z" }))), VA = A(N)`
|
|
20256
20250
|
flex-flow: row nowrap;
|
|
20257
20251
|
align-items: center;
|
|
20258
20252
|
column-gap: 12px;
|
|
@@ -20274,7 +20268,7 @@ const EA = A(I2)`
|
|
|
20274
20268
|
isSelected: n = !1,
|
|
20275
20269
|
onSelect: r
|
|
20276
20270
|
}) => {
|
|
20277
|
-
const o = Yt(), { sendTrackingEvent: i, currentSmIds: s } =
|
|
20271
|
+
const o = Yt(), { sendTrackingEvent: i, currentSmIds: s } = De(Ke), { label: a, description: c, avatarUrl: u, connectorName: d } = e, p = () => {
|
|
20278
20272
|
i(N5, {
|
|
20279
20273
|
suggestion_type: t,
|
|
20280
20274
|
search_keyword: a,
|
|
@@ -20335,13 +20329,13 @@ const EA = A(I2)`
|
|
|
20335
20329
|
NoOptionsMessage: a,
|
|
20336
20330
|
menuOpen: c
|
|
20337
20331
|
}) => {
|
|
20338
|
-
const { availableFeatures: u, sendTrackingEvent: d, currentSmIds: p } =
|
|
20332
|
+
const { availableFeatures: u, sendTrackingEvent: d, currentSmIds: p } = De(Ke), b = mt(u, sa), v = (f, { action: g }) => {
|
|
20339
20333
|
g === "input-change" && (i(f), f || s());
|
|
20340
20334
|
}, m = (f) => {
|
|
20341
20335
|
o(f), f || (i(""), s());
|
|
20342
20336
|
}, h = () => {
|
|
20343
20337
|
const f = [...new Set(e.map((g) => g.connectorName))];
|
|
20344
|
-
d(
|
|
20338
|
+
d(D5, {
|
|
20345
20339
|
connector_names: f,
|
|
20346
20340
|
sm_ids: p
|
|
20347
20341
|
});
|
|
@@ -20354,7 +20348,7 @@ const EA = A(I2)`
|
|
|
20354
20348
|
value: t,
|
|
20355
20349
|
inputValue: n,
|
|
20356
20350
|
options: n ? e : [],
|
|
20357
|
-
placeholder: b ?
|
|
20351
|
+
placeholder: b ? DA : kA,
|
|
20358
20352
|
isSearchable: !0,
|
|
20359
20353
|
filterOption: null,
|
|
20360
20354
|
styles: $A,
|
|
@@ -20413,10 +20407,10 @@ const EA = A(I2)`
|
|
|
20413
20407
|
const I = s[e].searchInterfaceDetails;
|
|
20414
20408
|
if (!I)
|
|
20415
20409
|
return;
|
|
20416
|
-
const T = s[e].connectorName, { id:
|
|
20410
|
+
const T = s[e].connectorName, { id: D, args: F = {} } = I, O = ai(r, F);
|
|
20417
20411
|
x({
|
|
20418
20412
|
id: w,
|
|
20419
|
-
interfaceId:
|
|
20413
|
+
interfaceId: D,
|
|
20420
20414
|
searchString: t,
|
|
20421
20415
|
connectorName: T,
|
|
20422
20416
|
args: O
|
|
@@ -20517,7 +20511,7 @@ const EA = A(I2)`
|
|
|
20517
20511
|
queryFn: () => nS({ conversationId: e, senderEmail: t }),
|
|
20518
20512
|
refetchOnMount: !1,
|
|
20519
20513
|
enabled: n
|
|
20520
|
-
}),
|
|
20514
|
+
}), k2 = "/v1/api", rS = `${k2}/connectors/forms/:formId/search`, oS = `${k2}/connectors/conversation/:conversationId/smart-suggestions`, iS = (e) => {
|
|
20521
20515
|
if (e.status !== "completed") return e;
|
|
20522
20516
|
const t = e.smart_suggestions ?? [], n = [];
|
|
20523
20517
|
for (const r of t)
|
|
@@ -20562,7 +20556,7 @@ const EA = A(I2)`
|
|
|
20562
20556
|
fetchSearchResults: r,
|
|
20563
20557
|
onReset: o
|
|
20564
20558
|
}) => {
|
|
20565
|
-
const [i, s] = G(""), { conversationId: a, email: c, availableFeatures: u } =
|
|
20559
|
+
const [i, s] = G(""), { conversationId: a, email: c, availableFeatures: u } = De(Ke), d = Se(RA), p = Se(L2), b = mt(u, ib), { sortedObjectList: v, updatePriority: m } = JA({ objectList: d }), { data: h } = cS({
|
|
20566
20560
|
enabled: b && !!a,
|
|
20567
20561
|
conversationId: String(a),
|
|
20568
20562
|
senderEmail: c
|
|
@@ -20639,7 +20633,7 @@ const EA = A(I2)`
|
|
|
20639
20633
|
onBack: o,
|
|
20640
20634
|
onLink: i
|
|
20641
20635
|
}) => {
|
|
20642
|
-
const s = Yt(), { conversationId: a, currentSmIds: c, sendTrackingEvent: u, email: d } =
|
|
20636
|
+
const s = Yt(), { conversationId: a, currentSmIds: c, sendTrackingEvent: u, email: d } = De(Ke), p = Se(d2), b = Se(f2), { mutate: v, isPending: m } = fS({ onSuccess: i }), h = b === se.LOADING, f = {
|
|
20643
20637
|
externalResourceId: e
|
|
20644
20638
|
};
|
|
20645
20639
|
oe(() => {
|
|
@@ -20677,7 +20671,7 @@ const EA = A(I2)`
|
|
|
20677
20671
|
/* @__PURE__ */ l.jsx(N, { alignItems: "flex-end", children: /* @__PURE__ */ l.jsx(Oe, { size: "small", disabled: h || m, onClick: g, children: Ff }) })
|
|
20678
20672
|
] })
|
|
20679
20673
|
] });
|
|
20680
|
-
},
|
|
20674
|
+
}, D2 = A(N)`
|
|
20681
20675
|
padding: 12px 12px 12px 11px;
|
|
20682
20676
|
border: 1px solid ${M.palette.gray.gray5};
|
|
20683
20677
|
border-radius: 8px;
|
|
@@ -20697,7 +20691,7 @@ const EA = A(I2)`
|
|
|
20697
20691
|
/* @__PURE__ */ l.jsx("img", { src: mS, width: 124, height: 107 }),
|
|
20698
20692
|
/* @__PURE__ */ l.jsx(Y, { variant: "body2", color: M.palette.gray.gray3, children: BA })
|
|
20699
20693
|
] }), xS = ({ searchResults: e, selectedObject: t, onReset: n, fetchCards: r }) => {
|
|
20700
|
-
const o = Yt(), { sendTrackingEvent: i, currentSmIds: s } =
|
|
20694
|
+
const o = Yt(), { sendTrackingEvent: i, currentSmIds: s } = De(Ke), [a, c] = G(null), u = bt(PA, {
|
|
20701
20695
|
count: e.length.toString(),
|
|
20702
20696
|
countSuffix: e.length > 1 ? "s" : "",
|
|
20703
20697
|
searchObject: t.objectName,
|
|
@@ -20721,7 +20715,7 @@ const EA = A(I2)`
|
|
|
20721
20715
|
};
|
|
20722
20716
|
return e.length ? a ? /* @__PURE__ */ l.jsx(gS, { meta: a, onBack: p, onLink: b }) : /* @__PURE__ */ l.jsxs(N, { gap: "14px", marginTop: "12px", children: [
|
|
20723
20717
|
/* @__PURE__ */ l.jsx(Y, { variant: "body2", children: u }),
|
|
20724
|
-
/* @__PURE__ */ l.jsx(N, { gap: "17px", children: e == null ? void 0 : e.map(({ externalResourceId: v, name: m, description: h }) => /* @__PURE__ */ l.jsxs(
|
|
20718
|
+
/* @__PURE__ */ l.jsx(N, { gap: "17px", children: e == null ? void 0 : e.map(({ externalResourceId: v, name: m, description: h }) => /* @__PURE__ */ l.jsxs(D2, { onClick: () => d(v, m), direction: "row", children: [
|
|
20725
20719
|
/* @__PURE__ */ l.jsxs(N, { flexGrow: 1, children: [
|
|
20726
20720
|
/* @__PURE__ */ l.jsx(Y, { variant: "body2", color: M.palette.gray.gray1, children: m }),
|
|
20727
20721
|
/* @__PURE__ */ l.jsx(Y, { variant: "caption", color: M.palette.gray.gray3, children: h })
|
|
@@ -20734,7 +20728,7 @@ const EA = A(I2)`
|
|
|
20734
20728
|
margin: ${(e) => e.margin ? e.margin : 0};
|
|
20735
20729
|
`, vS = () => /* @__PURE__ */ l.jsxs(N, { marginTop: "12px", children: [
|
|
20736
20730
|
/* @__PURE__ */ l.jsx(ac, { variant: "rounded", width: "50%", height: "16px", animation: "wave", margin: "0 0 18px 0" }),
|
|
20737
|
-
/* @__PURE__ */ l.jsx(N, { gap: "17px", children: /* @__PURE__ */ l.jsxs(
|
|
20731
|
+
/* @__PURE__ */ l.jsx(N, { gap: "17px", children: /* @__PURE__ */ l.jsxs(D2, { gap: "8px", disableHover: !0, children: [
|
|
20738
20732
|
/* @__PURE__ */ l.jsx(ac, { variant: "rounded", width: "30%", height: "16px", animation: "wave" }),
|
|
20739
20733
|
/* @__PURE__ */ l.jsx(ac, { variant: "rounded", width: "70%", height: "16px", animation: "wave" })
|
|
20740
20734
|
] }) })
|
|
@@ -20825,12 +20819,12 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
20825
20819
|
borderRadius: "8px",
|
|
20826
20820
|
fontWeight: 400,
|
|
20827
20821
|
"& .MuiOutlinedInput-notchedOutline": { borderColor: "#ECEFF6" }
|
|
20828
|
-
}, RS = { border: `1px solid ${M.palette.gray.gray5}`, borderRadius: "8px", padding: "12px" },
|
|
20822
|
+
}, RS = { border: `1px solid ${M.palette.gray.gray5}`, borderRadius: "8px", padding: "12px" }, k0 = { flex: 1, height: "1px", backgroundColor: M.palette.gray.gray6 }, OS = { flexShrink: 0, border: `1px solid ${M.palette.gray.gray6}`, borderRadius: "15px" }, FS = {
|
|
20829
20823
|
border: `1px solid ${M.palette.gray.gray6}`,
|
|
20830
20824
|
backgroundColor: M.palette.gray.gray6a,
|
|
20831
20825
|
borderRadius: "8px",
|
|
20832
20826
|
padding: "8px 10px"
|
|
20833
|
-
},
|
|
20827
|
+
}, kS = d1(function({
|
|
20834
20828
|
connector: t,
|
|
20835
20829
|
selectedHiverParam: n,
|
|
20836
20830
|
onChange: r,
|
|
@@ -20868,7 +20862,7 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
20868
20862
|
children: (t.presets ?? []).map((c) => /* @__PURE__ */ l.jsx(uo, { value: c.hiverParam, sx: { fontSize: "14px" }, children: c.label }, c.hiverParam))
|
|
20869
20863
|
}
|
|
20870
20864
|
),
|
|
20871
|
-
/* @__PURE__ */ l.jsx(Q, { sx:
|
|
20865
|
+
/* @__PURE__ */ l.jsx(Q, { sx: k0 }),
|
|
20872
20866
|
/* @__PURE__ */ l.jsxs(N, { direction: "row", alignItems: "center", gap: "4px", padding: "4px 12px", sx: OS, children: [
|
|
20873
20867
|
t.logo && /* @__PURE__ */ l.jsx("img", { src: t.logo, width: 16, height: 16, alt: t.connectorName }),
|
|
20874
20868
|
/* @__PURE__ */ l.jsxs(Y, { variant: "body2", color: M.palette.gray.gray3, children: [
|
|
@@ -20877,16 +20871,16 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
20877
20871
|
"'s"
|
|
20878
20872
|
] })
|
|
20879
20873
|
] }),
|
|
20880
|
-
/* @__PURE__ */ l.jsx(Q, { sx:
|
|
20874
|
+
/* @__PURE__ */ l.jsx(Q, { sx: k0 }),
|
|
20881
20875
|
/* @__PURE__ */ l.jsx(Q, { sx: FS, children: /* @__PURE__ */ l.jsx(Y, { variant: "body2", fontSize: 14, children: i }) })
|
|
20882
20876
|
] });
|
|
20883
|
-
}),
|
|
20877
|
+
}), DS = d1(function({
|
|
20884
20878
|
open: t,
|
|
20885
20879
|
onClose: n,
|
|
20886
20880
|
connectors: r,
|
|
20887
20881
|
onSaveSuccess: o
|
|
20888
20882
|
}) {
|
|
20889
|
-
const { sendTrackingEvent: i } =
|
|
20883
|
+
const { sendTrackingEvent: i } = De(Ke), [s, a] = G({});
|
|
20890
20884
|
oe(() => {
|
|
20891
20885
|
if (t && r.length > 0) {
|
|
20892
20886
|
const m = {};
|
|
@@ -20940,7 +20934,7 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
20940
20934
|
var h;
|
|
20941
20935
|
return ((h = m.presets) == null ? void 0 : h.length) > 1;
|
|
20942
20936
|
}).map((m) => /* @__PURE__ */ l.jsx(
|
|
20943
|
-
|
|
20937
|
+
kS,
|
|
20944
20938
|
{
|
|
20945
20939
|
connector: m,
|
|
20946
20940
|
selectedHiverParam: s[m.connectorId] ?? m.hiverParam,
|
|
@@ -20955,7 +20949,7 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
20955
20949
|
] })
|
|
20956
20950
|
] }) });
|
|
20957
20951
|
}), NS = ({ enabled: e, ...t }) => {
|
|
20958
|
-
const { actionQueue: n } =
|
|
20952
|
+
const { actionQueue: n } = De(Ke);
|
|
20959
20953
|
n && e && n.register(t), oe(() => {
|
|
20960
20954
|
if (n)
|
|
20961
20955
|
return () => {
|
|
@@ -20964,17 +20958,17 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
20964
20958
|
}, [n, e]);
|
|
20965
20959
|
}, jS = ({ isAdmin: e = !1 }) => {
|
|
20966
20960
|
var At, Nn;
|
|
20967
|
-
const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i, connectorId: s } =
|
|
20961
|
+
const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i, connectorId: s } = De(Ke), a = Yt(), { userGroupId: c, userId: u } = rn() || {}, d = pe(!1), p = pe(null), b = pe(null), v = pe(null), [m, h] = G({}), [f, g] = G(!1), [x, y] = G(!1), [E, C] = G(!1), [w, _] = G(!1), [I, T] = G(), [D, F] = G(!1), [O, j] = G(null), [V, W] = G(), [q, $] = G(null), [U, J] = G(!1), [ne, ie] = G(!1), [H, K] = G(!1), [k, X] = G(!1), [ee, ae] = G(void 0), fe = pe(), P = Se(Xh), ce = Se(cI), Te = Se(uI), z = Se(dI), Me = Se(pI), Je = Se(lI), et = Se(t2), sn = Se(TI), yn = Se(n2), ut = Se(r2), xt = Se(o2), at = Se(eA), wr = mt(o, K5), Jt = mt(o, Tf), zn = mt(o, ob), Xn = mt(o, sb), Yn = mt(o, ab), Jn = mt(o, cb), _t = (At = rn()) == null ? void 0 : At.tenantPlatform, Fn = mt(
|
|
20968
20962
|
o,
|
|
20969
20963
|
_t === "HIVERWEB" ? `hot-${id}` : id
|
|
20970
20964
|
), { data: Ir } = $t({
|
|
20971
20965
|
queryKey: ["connectors", "enabledAuthenticated"],
|
|
20972
20966
|
queryFn: () => Ep(),
|
|
20973
20967
|
enabled: Fn && e
|
|
20974
|
-
}),
|
|
20975
|
-
queryKey: ["lookup", "bulk",
|
|
20976
|
-
queryFn: () => SS(
|
|
20977
|
-
enabled:
|
|
20968
|
+
}), kn = he(() => (Ir ?? []).map((ue) => ue.id), [Ir]), { data: qt, isSuccess: Zo } = $t({
|
|
20969
|
+
queryKey: ["lookup", "bulk", kn.join(",")],
|
|
20970
|
+
queryFn: () => SS(kn),
|
|
20971
|
+
enabled: kn.length > 0 && Fn && e,
|
|
20978
20972
|
refetchOnMount: !1
|
|
20979
20973
|
}), Kt = Zo && ((qt == null ? void 0 : qt.connectors) ?? []).some((ue) => {
|
|
20980
20974
|
var we;
|
|
@@ -20985,7 +20979,7 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
20985
20979
|
openCreateForm: () => C(!0),
|
|
20986
20980
|
enabled: ce
|
|
20987
20981
|
});
|
|
20988
|
-
const qn = he(() => !P || !P.length ? null : bI(P, Te, z), [P, Te, z]),
|
|
20982
|
+
const qn = he(() => !P || !P.length ? null : bI(P, Te, z), [P, Te, z]), Dn = _b(Te), { data: oo, isLoading: Qt } = F2({
|
|
20989
20983
|
senderEmail: t,
|
|
20990
20984
|
conversationId: String(i),
|
|
20991
20985
|
enabled: Xn && !!t
|
|
@@ -21155,7 +21149,7 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
21155
21149
|
C(!1), a(xo(null)), T(void 0), F(!1);
|
|
21156
21150
|
}, le = () => {
|
|
21157
21151
|
Ee(), C(!1), y(!1), a(C0.clearConnectorList());
|
|
21158
|
-
},
|
|
21152
|
+
}, ke = [
|
|
21159
21153
|
{
|
|
21160
21154
|
label: "Go back",
|
|
21161
21155
|
variant: "text",
|
|
@@ -21193,18 +21187,18 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
21193
21187
|
/* @__PURE__ */ l.jsx(
|
|
21194
21188
|
E2,
|
|
21195
21189
|
{
|
|
21196
|
-
shown:
|
|
21190
|
+
shown: D,
|
|
21197
21191
|
setShown: F,
|
|
21198
21192
|
title: zw,
|
|
21199
21193
|
description: Xw,
|
|
21200
|
-
buttons:
|
|
21194
|
+
buttons: ke
|
|
21201
21195
|
}
|
|
21202
21196
|
),
|
|
21203
21197
|
/* @__PURE__ */ l.jsx(o9, { onWheel: () => g(!0), ref: v, children: ce ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
21204
21198
|
/* @__PURE__ */ l.jsx(
|
|
21205
21199
|
j9,
|
|
21206
21200
|
{
|
|
21207
|
-
connectors:
|
|
21201
|
+
connectors: Dn,
|
|
21208
21202
|
isWriteFlowEnabled: Jt,
|
|
21209
21203
|
haveCreateObjects: Ne,
|
|
21210
21204
|
haveLinkObjects: Le,
|
|
@@ -21257,7 +21251,7 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
21257
21251
|
metaData: I,
|
|
21258
21252
|
setMetaData: T,
|
|
21259
21253
|
defaultOption: q,
|
|
21260
|
-
connectors:
|
|
21254
|
+
connectors: Dn,
|
|
21261
21255
|
mapFormOpen: H,
|
|
21262
21256
|
setMapFormOpen: K,
|
|
21263
21257
|
setCreateFormId: ae,
|
|
@@ -21280,7 +21274,7 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
21280
21274
|
onCreateSuccess: le,
|
|
21281
21275
|
metaData: I,
|
|
21282
21276
|
setMetaData: T,
|
|
21283
|
-
connectors:
|
|
21277
|
+
connectors: Dn
|
|
21284
21278
|
}
|
|
21285
21279
|
)
|
|
21286
21280
|
}
|
|
@@ -21351,7 +21345,7 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
21351
21345
|
onCardUnlinking: Ee
|
|
21352
21346
|
}
|
|
21353
21347
|
),
|
|
21354
|
-
/* @__PURE__ */ l.jsx("div", { ref: b, children: Yn ? /* @__PURE__ */ l.jsx(Pb, { connectors:
|
|
21348
|
+
/* @__PURE__ */ l.jsx("div", { ref: b, children: Yn ? /* @__PURE__ */ l.jsx(Pb, { connectors: Dn, expanded: U }) : null })
|
|
21355
21349
|
] }, "cards-list"),
|
|
21356
21350
|
/* @__PURE__ */ l.jsx(Mn, { condition: !(P != null && P.length) && Jt, children: yt() }, "create-banner")
|
|
21357
21351
|
] })
|
|
@@ -21360,9 +21354,9 @@ const xl = /* @__PURE__ */ new Set(), yS = (e, t) => {
|
|
|
21360
21354
|
] }) : /* @__PURE__ */ l.jsx(S0, { isAdmin: e }) }),
|
|
21361
21355
|
!ce && /* @__PURE__ */ l.jsx(Yb, {}),
|
|
21362
21356
|
Fn && /* @__PURE__ */ l.jsx(
|
|
21363
|
-
|
|
21357
|
+
DS,
|
|
21364
21358
|
{
|
|
21365
|
-
open:
|
|
21359
|
+
open: k,
|
|
21366
21360
|
onClose: () => X(!1),
|
|
21367
21361
|
connectors: (qt == null ? void 0 : qt.connectors) ?? [],
|
|
21368
21362
|
onSaveSuccess: ct
|
|
@@ -22678,7 +22672,7 @@ const XS = "Everything looks good", YS = "Something is not working", JS = "Share
|
|
|
22678
22672
|
justify-content: flex-end;
|
|
22679
22673
|
margin-top: 30px;
|
|
22680
22674
|
gap: 8px;
|
|
22681
|
-
`,
|
|
22675
|
+
`, D0 = ({ onCancel: e, onSubmit: t, isLoading: n, showOptions: r = !0, title: o }) => {
|
|
22682
22676
|
const [i, s] = G(""), [a, c] = G(""), u = (m) => {
|
|
22683
22677
|
s(m.target.value);
|
|
22684
22678
|
}, d = (m) => {
|
|
@@ -22852,13 +22846,13 @@ const XS = "Everything looks good", YS = "Something is not working", JS = "Share
|
|
|
22852
22846
|
var J, ne, ie;
|
|
22853
22847
|
const U = (ie = (ne = (J = e == null ? void 0 : e.cardData) == null ? void 0 : J.data) == null ? void 0 : ne.flatDetails) == null ? void 0 : ie.data;
|
|
22854
22848
|
if (U) {
|
|
22855
|
-
const H = U.sort((K,
|
|
22849
|
+
const H = U.sort((K, k) => K.priority - k.priority);
|
|
22856
22850
|
h(H), c(Cn.OBJECT_HOVERED, I);
|
|
22857
22851
|
}
|
|
22858
22852
|
}, [e, c, I]), !m || m.length === 0) return null;
|
|
22859
22853
|
const T = () => {
|
|
22860
22854
|
d(!0), c(Cn.FEEDBACK_OPTION_CLICKED, I);
|
|
22861
|
-
},
|
|
22855
|
+
}, D = () => {
|
|
22862
22856
|
v(!0), c(Cn.NEGATIVE_FEEDBACK_CLICKED, I);
|
|
22863
22857
|
}, F = (U) => {
|
|
22864
22858
|
const J = {
|
|
@@ -22934,13 +22928,13 @@ const XS = "Everything looks good", YS = "Something is not working", JS = "Share
|
|
|
22934
22928
|
] }) }),
|
|
22935
22929
|
/* @__PURE__ */ l.jsxs(N, { flexDirection: "row", alignItems: "center", children: [
|
|
22936
22930
|
/* @__PURE__ */ l.jsx(ri, { arrow: !0, title: XS, placement: "top", children: /* @__PURE__ */ l.jsx(it, { size: "small", disabled: g, onClick: O, children: /* @__PURE__ */ l.jsx(P2, {}) }) }),
|
|
22937
|
-
/* @__PURE__ */ l.jsx(ri, { arrow: !0, title: YS, placement: "top", children: /* @__PURE__ */ l.jsx(it, { size: "small", disabled: g, onClick:
|
|
22931
|
+
/* @__PURE__ */ l.jsx(ri, { arrow: !0, title: YS, placement: "top", children: /* @__PURE__ */ l.jsx(it, { size: "small", disabled: g, onClick: D, children: /* @__PURE__ */ l.jsx(M2, {}) }) }),
|
|
22938
22932
|
/* @__PURE__ */ l.jsx(ri, { arrow: !0, title: JS, placement: "top", children: /* @__PURE__ */ l.jsx(it, { onClick: T, size: "small", disabled: g, children: /* @__PURE__ */ l.jsx(ET, {}) }) })
|
|
22939
22933
|
] })
|
|
22940
22934
|
] })
|
|
22941
22935
|
] }),
|
|
22942
22936
|
/* @__PURE__ */ l.jsx(mr, { shown: u, setShown: d, borderRadius: 12, sx: { zIndex: 15002 }, children: /* @__PURE__ */ l.jsx(
|
|
22943
|
-
|
|
22937
|
+
D0,
|
|
22944
22938
|
{
|
|
22945
22939
|
onCancel: () => d(!1),
|
|
22946
22940
|
onSubmit: F,
|
|
@@ -22950,7 +22944,7 @@ const XS = "Everything looks good", YS = "Something is not working", JS = "Share
|
|
|
22950
22944
|
}
|
|
22951
22945
|
) }),
|
|
22952
22946
|
/* @__PURE__ */ l.jsx(mr, { shown: b, setShown: v, borderRadius: 12, sx: { zIndex: 15002 }, children: /* @__PURE__ */ l.jsx(
|
|
22953
|
-
|
|
22947
|
+
D0,
|
|
22954
22948
|
{
|
|
22955
22949
|
onCancel: () => v(!1),
|
|
22956
22950
|
onSubmit: j,
|
|
@@ -22983,8 +22977,8 @@ function AT({ elements: e, title: t, onKeyChange: n }) {
|
|
|
22983
22977
|
oe(() => {
|
|
22984
22978
|
if (e && e.length > 0) {
|
|
22985
22979
|
const C = (I) => {
|
|
22986
|
-
const T = I.currentTarget,
|
|
22987
|
-
d(F), c(
|
|
22980
|
+
const T = I.currentTarget, D = T.textContent || "", F = j0(T);
|
|
22981
|
+
d(F), c(D), n && n(D), s(T), o(!0);
|
|
22988
22982
|
}, w = () => {
|
|
22989
22983
|
if (r && i) {
|
|
22990
22984
|
const I = j0(i);
|
|
@@ -22992,16 +22986,16 @@ function AT({ elements: e, title: t, onKeyChange: n }) {
|
|
|
22992
22986
|
}
|
|
22993
22987
|
}, _ = (I) => {
|
|
22994
22988
|
if (m.current = { x: I.clientX, y: I.clientY }, !r || p) return;
|
|
22995
|
-
const T = I.clientX,
|
|
22989
|
+
const T = I.clientX, D = I.clientY;
|
|
22996
22990
|
let F = !1;
|
|
22997
22991
|
for (const O of e)
|
|
22998
|
-
if (N0(T,
|
|
22992
|
+
if (N0(T, D, O.getBoundingClientRect())) {
|
|
22999
22993
|
F = !0;
|
|
23000
22994
|
break;
|
|
23001
22995
|
}
|
|
23002
22996
|
if (!F) {
|
|
23003
22997
|
const O = document.querySelector(`.${Yr.tooltip}`);
|
|
23004
|
-
O && N0(T,
|
|
22998
|
+
O && N0(T, D, O.getBoundingClientRect()) && (F = !0);
|
|
23005
22999
|
}
|
|
23006
23000
|
F || (o(!1), s(null));
|
|
23007
23001
|
};
|
|
@@ -23196,7 +23190,7 @@ const RT = (e) => {
|
|
|
23196
23190
|
}, B2 = (e) => {
|
|
23197
23191
|
const { emailLogSettings: t, messageLogStatus: n, selectedEntities: r, autoLogEnabled: o } = e;
|
|
23198
23192
|
return t.connectorStatus === Hs.UNAUTHENTICATED ? ve.UNAUTHENTICATED : n.pending > 0 ? ve.PENDING : n.failed ? ve.ERROR : r.length === 0 ? ve.NOT_LOGGED : o ? ve.LOGGED : ve.PAUSED;
|
|
23199
|
-
}, vl = (e) => /* @__PURE__ */ S.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "#D24B58", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M6.3335 8.99967H7.66683V10.333H6.3335V8.99967ZM6.3335 3.66634H7.66683V7.66634H6.3335V3.66634ZM6.9935 0.333008C3.3135 0.333008 0.333496 3.31967 0.333496 6.99967C0.333496 10.6797 3.3135 13.6663 6.9935 13.6663C10.6802 13.6663 13.6668 10.6797 13.6668 6.99967C13.6668 3.31967 10.6802 0.333008 6.9935 0.333008ZM7.00016 12.333C4.0535 12.333 1.66683 9.94634 1.66683 6.99967C1.66683 4.05301 4.0535 1.66634 7.00016 1.66634C9.94683 1.66634 12.3335 4.05301 12.3335 6.99967C12.3335 9.94634 9.94683 12.333 7.00016 12.333Z" })), OT = (e) => /* @__PURE__ */ S.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 12, height: 10, viewBox: "0 0 12 10", fill: "none", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M4.0001 8.0299L1.2201 5.2499L0.273438 6.1899L4.0001 9.91656L12.0001 1.91656L11.0601 0.976562L4.0001 8.0299Z", fill: "white" })), FT = (e) => /* @__PURE__ */ S.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 19, height: 18, viewBox: "0 0 19 18", fill: "#6F7C90", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_532_206243)" }, /* @__PURE__ */ S.createElement("path", { d: "M9.94092 3V0.75L6.94092 3.75L9.94092 6.75V4.5C12.4234 4.5 14.4409 6.5175 14.4409 9C14.4409 9.7575 14.2534 10.4775 13.9159 11.1L15.0109 12.195C15.5959 11.2725 15.9409 10.1775 15.9409 9C15.9409 5.685 13.2559 3 9.94092 3ZM9.94092 13.5C7.45842 13.5 5.44092 11.4825 5.44092 9C5.44092 8.2425 5.62842 7.5225 5.96592 6.9L4.87092 5.805C4.28592 6.7275 3.94092 7.8225 3.94092 9C3.94092 12.315 6.62592 15 9.94092 15V17.25L12.9409 14.25L9.94092 11.25V13.5Z" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_532_206243" }, /* @__PURE__ */ S.createElement("rect", { width: 18, height: 18, fill: "white", transform: "translate(0.940918)" })))),
|
|
23193
|
+
}, vl = (e) => /* @__PURE__ */ S.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "#D24B58", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M6.3335 8.99967H7.66683V10.333H6.3335V8.99967ZM6.3335 3.66634H7.66683V7.66634H6.3335V3.66634ZM6.9935 0.333008C3.3135 0.333008 0.333496 3.31967 0.333496 6.99967C0.333496 10.6797 3.3135 13.6663 6.9935 13.6663C10.6802 13.6663 13.6668 10.6797 13.6668 6.99967C13.6668 3.31967 10.6802 0.333008 6.9935 0.333008ZM7.00016 12.333C4.0535 12.333 1.66683 9.94634 1.66683 6.99967C1.66683 4.05301 4.0535 1.66634 7.00016 1.66634C9.94683 1.66634 12.3335 4.05301 12.3335 6.99967C12.3335 9.94634 9.94683 12.333 7.00016 12.333Z" })), OT = (e) => /* @__PURE__ */ S.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 12, height: 10, viewBox: "0 0 12 10", fill: "none", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M4.0001 8.0299L1.2201 5.2499L0.273438 6.1899L4.0001 9.91656L12.0001 1.91656L11.0601 0.976562L4.0001 8.0299Z", fill: "white" })), FT = (e) => /* @__PURE__ */ S.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 19, height: 18, viewBox: "0 0 19 18", fill: "#6F7C90", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_532_206243)" }, /* @__PURE__ */ S.createElement("path", { d: "M9.94092 3V0.75L6.94092 3.75L9.94092 6.75V4.5C12.4234 4.5 14.4409 6.5175 14.4409 9C14.4409 9.7575 14.2534 10.4775 13.9159 11.1L15.0109 12.195C15.5959 11.2725 15.9409 10.1775 15.9409 9C15.9409 5.685 13.2559 3 9.94092 3ZM9.94092 13.5C7.45842 13.5 5.44092 11.4825 5.44092 9C5.44092 8.2425 5.62842 7.5225 5.96592 6.9L4.87092 5.805C4.28592 6.7275 3.94092 7.8225 3.94092 9C3.94092 12.315 6.62592 15 9.94092 15V17.25L12.9409 14.25L9.94092 11.25V13.5Z" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_532_206243" }, /* @__PURE__ */ S.createElement("rect", { width: 18, height: 18, fill: "white", transform: "translate(0.940918)" })))), kT = (e) => /* @__PURE__ */ S.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_1_11813)" }, /* @__PURE__ */ S.createElement("path", { d: "M9.05859 0C4.09059 0 0.0585938 4.032 0.0585938 9C0.0585938 13.968 4.09059 18 9.05859 18C14.0266 18 18.0586 13.968 18.0586 9C18.0586 4.032 14.0266 0 9.05859 0ZM8.15859 12.6H6.35859V5.4H8.15859V12.6ZM11.7586 12.6H9.95859V5.4H11.7586V12.6Z", fill: "#F2A579" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_1_11813" }, /* @__PURE__ */ S.createElement("rect", { width: 18, height: 18, fill: "white" })))), _a = El`
|
|
23200
23194
|
from {
|
|
23201
23195
|
transform: rotate(0deg);
|
|
23202
23196
|
}
|
|
@@ -23209,7 +23203,7 @@ const RT = (e) => {
|
|
|
23209
23203
|
border-radius: 50%;
|
|
23210
23204
|
justify-content: center;
|
|
23211
23205
|
align-items: center;
|
|
23212
|
-
`,
|
|
23206
|
+
`, DT = A(hu)`
|
|
23213
23207
|
background-color: #ffe250;
|
|
23214
23208
|
`, NT = A(hu)`
|
|
23215
23209
|
background-color: #00bc7e;
|
|
@@ -23218,12 +23212,12 @@ const RT = (e) => {
|
|
|
23218
23212
|
animation-fill-mode: backwards;
|
|
23219
23213
|
animation-direction: reverse;
|
|
23220
23214
|
`, PT = {
|
|
23221
|
-
[ve.NOT_LOGGED]: /* @__PURE__ */ l.jsx(
|
|
23215
|
+
[ve.NOT_LOGGED]: /* @__PURE__ */ l.jsx(DT, { children: /* @__PURE__ */ l.jsx(I2, {}) }),
|
|
23222
23216
|
[ve.PENDING]: /* @__PURE__ */ l.jsx(jT, { children: /* @__PURE__ */ l.jsx(FT, {}) }),
|
|
23223
23217
|
[ve.LOGGED]: /* @__PURE__ */ l.jsx(NT, { children: /* @__PURE__ */ l.jsx(OT, {}) }),
|
|
23224
23218
|
[ve.ERROR]: /* @__PURE__ */ l.jsx(vl, { width: 16, height: 16 }),
|
|
23225
23219
|
[ve.UNAUTHENTICATED]: /* @__PURE__ */ l.jsx(vl, { width: 16, height: 16 }),
|
|
23226
|
-
[ve.PAUSED]: /* @__PURE__ */ l.jsx(
|
|
23220
|
+
[ve.PAUSED]: /* @__PURE__ */ l.jsx(kT, { width: 16, height: 16 })
|
|
23227
23221
|
}, V2 = A(Y)`
|
|
23228
23222
|
font-size: 13px;
|
|
23229
23223
|
line-height: 24px;
|
|
@@ -23355,7 +23349,7 @@ const RT = (e) => {
|
|
|
23355
23349
|
justify-content: flex-end;
|
|
23356
23350
|
column-gap: 8px;
|
|
23357
23351
|
`, G0 = Ei(), bL = ({ onContinue: e, connectorName: t }) => {
|
|
23358
|
-
const { connectorFunctions: n } =
|
|
23352
|
+
const { connectorFunctions: n } = De(on), r = n == null ? void 0 : n.sendTrackingEvent;
|
|
23359
23353
|
return oe(() => {
|
|
23360
23354
|
const o = G0.getItem(B0);
|
|
23361
23355
|
if (!r || !t || o === "true")
|
|
@@ -23413,7 +23407,7 @@ const RT = (e) => {
|
|
|
23413
23407
|
margin-top: 20px;
|
|
23414
23408
|
width: 100%;
|
|
23415
23409
|
`, _L = (e) => /* @__PURE__ */ S.createElement("svg", { width: 58, height: 26, viewBox: "0 0 58 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M8.9082 1.37598C10.221 0.614497 11.8414 0.614651 13.1543 1.37598L19.9619 5.32422C21.2668 6.08111 22.0702 7.47589 22.0703 8.98438V16.916C22.0703 18.4247 21.2669 19.8192 19.9619 20.5762L13.1543 24.5244C11.8414 25.2858 10.2211 25.2859 8.9082 24.5244L2.10156 20.5762C0.796567 19.8192 -0.00683594 18.4247 -0.00683594 16.916V8.98438C-0.00668786 7.47589 0.796688 6.08111 2.10156 5.32422L8.9082 1.37598ZM11.9531 15.9727C11.9531 17.5841 13.2597 18.8906 14.8711 18.8906V15.3281C14.871 13.7167 13.5645 12.4102 11.9531 12.4102V15.9727ZM7.57617 15.6641C7.57619 17.2755 8.88271 18.582 10.4941 18.582V10.1592C10.4939 8.54793 9.18748 7.24219 7.57617 7.24219V15.6641Z", fill: "#D0D8E3" }), /* @__PURE__ */ S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M27.4643 7.74676V11.8643C27.8476 11.0201 28.9238 10.6646 29.6462 10.6646C31.4006 10.6646 32.4325 11.8199 32.4325 13.7898V17.0335C32.4325 17.4482 32.0935 17.8037 31.6512 17.8037C31.2384 17.8037 30.914 17.4482 30.914 17.0335V13.8787C30.914 12.7975 30.2359 12.1606 29.3808 12.1606C28.511 12.1606 27.4643 12.6493 27.4643 14.012V17.0335C27.4643 17.4482 27.1252 17.8037 26.6829 17.8037C26.2701 17.8037 25.9458 17.4482 25.9458 17.0335V7.74676C25.9458 7.33204 26.2849 6.97656 26.7272 6.97656C27.1399 6.97656 27.4643 7.33204 27.4643 7.74676ZM33.6052 8.01336C33.6052 7.46534 34.0769 7.05062 34.6224 7.05062C35.1826 7.05062 35.6249 7.46534 35.6249 8.01336C35.6249 8.56139 35.1826 8.97611 34.6224 8.97611C34.0769 8.97611 33.6052 8.56139 33.6052 8.01336ZM35.389 17.0335C35.389 17.4482 35.0499 17.8037 34.6077 17.8037C34.1949 17.8037 33.8705 17.4482 33.8705 17.0335V11.5089C33.8705 11.0941 34.1949 10.7387 34.6077 10.7387C35.0499 10.7387 35.389 11.0941 35.389 11.5089V17.0335ZM42.7241 11.7014L40.4685 17.1076C40.2915 17.5371 39.9967 17.8037 39.5544 17.8037H39.466C39.0237 17.8037 38.7141 17.5371 38.5372 17.1076L36.2963 11.7014C36.1341 11.3163 36.3848 10.8275 36.7976 10.7535C37.1956 10.6794 37.5642 10.872 37.7116 11.2571L39.5102 15.7894L41.3088 11.2571C41.4562 10.872 41.8248 10.6794 42.2228 10.7535C42.6356 10.8275 42.8862 11.3163 42.7241 11.7014ZM44.6044 13.701H48.5996C48.4522 12.6197 47.6708 11.9976 46.6388 11.9976C45.5774 11.9976 44.7518 12.6345 44.6044 13.701ZM50.0886 14.1157C50.0886 14.5156 49.7643 14.8118 49.3957 14.8118H44.6044C44.7518 15.8782 45.6069 16.5447 46.7125 16.5447C47.4349 16.5447 47.8477 16.293 48.349 15.8782C48.5996 15.6709 49.0124 15.5672 49.322 15.819C49.6021 16.0412 49.6168 16.5003 49.3515 16.7817C48.6586 17.5075 47.6561 17.8778 46.6388 17.8778C44.6781 17.8778 43.1006 16.4411 43.1006 14.249C43.1006 12.0569 44.6781 10.6646 46.6388 10.6646C48.5554 10.6646 50.0296 11.9976 50.0886 14.1157ZM54.4162 12.1013C53.1188 12.1013 52.5733 13.4047 52.5733 15.2413V17.0335C52.5733 17.4482 52.2343 17.8037 51.792 17.8037C51.3792 17.8037 51.0548 17.4482 51.0548 17.0335V11.5089C51.0548 11.0941 51.3792 10.7387 51.792 10.7387C52.2343 10.7387 52.5733 11.0941 52.5733 11.5089V12.3975C52.9272 11.1682 53.6053 10.6646 54.4604 10.6646C54.6815 10.6646 54.9027 10.6794 55.1091 10.7239C55.4924 10.8127 55.743 11.1978 55.6545 11.5977C55.5218 12.2642 54.8584 12.1013 54.4162 12.1013Z", fill: "#D0D8E3" })), AL = ({ isAdmin: e, connectorId: t, connectorName: n, close: r }) => {
|
|
23416
|
-
const o = e ? zT : XT, { connectorFunctions: i } =
|
|
23410
|
+
const o = e ? zT : XT, { connectorFunctions: i } = De(on), s = i == null ? void 0 : i.redirectToAdmin, a = () => {
|
|
23417
23411
|
r(), s == null || s(t);
|
|
23418
23412
|
};
|
|
23419
23413
|
return /* @__PURE__ */ l.jsxs(CL, { children: [
|
|
@@ -23455,7 +23449,7 @@ const RT = (e) => {
|
|
|
23455
23449
|
retry: o,
|
|
23456
23450
|
renderEntities: i
|
|
23457
23451
|
}) => {
|
|
23458
|
-
const { connectorFunctions: s } =
|
|
23452
|
+
const { connectorFunctions: s } = De(on), a = s == null ? void 0 : s.sendTrackingEvent, [c, u] = G(() => localStorage.getItem(M0) === "true"), [d, p] = G(!1), { connectorId: b, connectorName: v, connectorStatus: m } = n ?? {}, h = t || m !== Hs.DISABLED, f = m === Hs.UNAUTHENTICATED, g = r === ve.PENDING, x = () => {
|
|
23459
23453
|
localStorage.setItem(M0, "true"), u(!0), p(!0), a == null || a(Pt.email_logging_intro_popup_continue_clicked, { app_name: v });
|
|
23460
23454
|
};
|
|
23461
23455
|
return c ? f ? /* @__PURE__ */ l.jsx(SL, { connectorId: b, connectorName: v, isAdmin: t, isAuthenticated: !1, children: e }) : o ? /* @__PURE__ */ l.jsx(Ce, { title: JT, children: e }) : g ? /* @__PURE__ */ l.jsx(Ce, { title: YT.replace(":connectorName", v), children: e }) : i ? /* @__PURE__ */ l.jsx(WT, { defaultOpen: d, renderTooltip: i, children: e }) : /* @__PURE__ */ l.jsx(l.Fragment, { children: e }) : /* @__PURE__ */ l.jsx(xL, { onContinue: h ? x : void 0, connectorName: v, children: e });
|
|
@@ -23464,7 +23458,7 @@ const RT = (e) => {
|
|
|
23464
23458
|
}, maskUnits: "userSpaceOnUse", x: 46, y: 14, width: 60, height: 79 }, /* @__PURE__ */ S.createElement("path", { d: "M47.223 43.6373C44.4928 30.7926 52.6922 18.1666 65.5368 15.4364C78.3815 12.7062 91.0075 20.9055 93.7377 33.7502L105.079 87.1053L84.1844 91.5466C70.0346 94.5542 56.1258 85.5217 53.1182 71.3719L47.223 43.6373Z", fill: "white" })), /* @__PURE__ */ S.createElement("g", { mask: "url(#mask0_8481_102191)" }, /* @__PURE__ */ S.createElement("ellipse", { cx: 63.7775, cy: 46.8684, rx: 1.48152, ry: 1.39438, transform: "rotate(-12 63.7775 46.8684)", fill: "#435C71" }), /* @__PURE__ */ S.createElement("rect", { x: 47.4368, y: 59.3203, width: 53.657, height: 13.2235, transform: "rotate(-12 47.4368 59.3203)", fill: "url(#paint2_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("rect", { x: 51.1907, y: 76.9824, width: 53.657, height: 10.4263, transform: "rotate(-12 51.1907 76.9824)", fill: "url(#paint3_linear_8481_102191)" })), /* @__PURE__ */ S.createElement("path", { opacity: 0.883952, d: "M113.939 51.0679C114.775 55 112.265 58.865 108.333 59.7008L107.842 59.8052C103.639 60.6986 99.5073 58.0155 98.6139 53.8123L97.205 47.1837L105.307 45.4616C109.239 44.6259 113.104 47.1359 113.939 51.0679Z", fill: "url(#paint4_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M68.7215 66.4138C67.1801 64.8725 67.6745 62.2062 69.587 61.1603C72.4457 59.5969 76.2861 57.1773 79.3785 54.0849C82.4099 51.0535 84.752 47.3461 86.2775 44.5465C87.3388 42.5989 90.0598 42.0819 91.6282 43.6503C92.4782 44.5003 92.758 45.7623 92.2604 46.8566C91.0829 49.4466 88.5191 54.344 84.4346 58.4285C80.2853 62.5778 74.8639 65.591 72.0553 66.9952C70.9363 67.5548 69.6062 67.2985 68.7215 66.4138Z", fill: "url(#paint5_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("rect", { x: 48.7264, y: 33.7744, width: 11.2108, height: 11.2108, rx: 5.59457, transform: "rotate(-12 48.7264 33.7744)", fill: "url(#paint6_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("rect", { x: 50.0175, y: 35.8193, width: 4.0158, height: 3.84848, rx: 1.92424, transform: "rotate(-12 50.0175 35.8193)", fill: "#435C71" }), /* @__PURE__ */ S.createElement("rect", { x: 59.2875, y: 31.5723, width: 11.2108, height: 11.2108, rx: 5.59457, transform: "rotate(-12 59.2875 31.5723)", fill: "#FFFEFE" }), /* @__PURE__ */ S.createElement("path", { opacity: 0.883952, d: "M111.25 38.5376C110.415 34.6055 106.55 32.0955 102.618 32.9313L102.127 33.0356C97.9234 33.9291 95.2403 38.0607 96.1337 42.2639L97.5426 48.8925L105.644 47.1705C109.576 46.3347 112.086 42.4696 111.25 38.5376Z", fill: "url(#paint7_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("rect", { x: 60.0181, y: 33.8037, width: 3.84848, height: 3.84848, rx: 1.90724, transform: "rotate(-12 60.0181 33.8037)", fill: "#435C71" }), /* @__PURE__ */ S.createElement("path", { d: "M36.9246 59.1604C36.4487 60.717 34.7371 61.6271 33.1805 61.1512C32.3613 60.9007 31.7241 60.3475 31.3259 59.5987L25.2059 46.7983C24.9784 46.3703 25.1286 45.8788 25.5566 45.6513L28.338 44.1724C28.7659 43.9449 29.2574 44.0951 29.4849 44.5231L36.6496 56.8367C37.0728 57.5036 37.15 58.423 36.9246 59.1604Z", fill: "#FFDF9F" }), /* @__PURE__ */ S.createElement("rect", { x: 27.9973, y: 44.333, width: 2.39869, height: 3.59807, transform: "rotate(152 27.9973 44.333)", fill: "#FF9090" }), /* @__PURE__ */ S.createElement("path", { d: "M26.6628 44.3769L26.9472 44.9118L28.0169 44.343L26.3106 41.1338L24.171 42.2714L25.0243 43.876C25.6661 43.5347 26.3215 43.7351 26.6628 44.3769Z", fill: "#FFB19F" }), /* @__PURE__ */ S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.26386 27.248C9.3428 20.4481 16.5101 16.6372 23.31 18.7161C30.11 20.7951 33.9209 27.9624 31.8419 34.7623C29.763 41.5622 22.5956 45.3731 15.7958 43.2942C8.99587 41.2152 5.18493 34.0479 7.26386 27.248ZM9.72157 27.9983C8.06843 33.4055 11.1399 39.1821 16.5471 40.8352C21.9543 42.4884 27.7309 39.4168 29.384 34.0096C31.0372 28.6024 27.9657 22.8258 22.5585 21.1727C17.1513 19.5196 11.3747 22.5911 9.72157 27.9983Z", fill: "#FFE69F" }), /* @__PURE__ */ S.createElement("circle", { opacity: 0.414016, cx: 19.5529, cy: 31.0039, r: 10.2804, transform: "rotate(17 19.5529 31.0039)", fill: "#BBDEFC" }), /* @__PURE__ */ S.createElement("path", { d: "M14.3685 30.6746C15.7299 27.6867 18.9391 25.9803 22.1776 26.5225L22.2595 26.5475C23.7024 26.8095 24.3854 24.8682 23.1497 24.2218C22.3806 23.8074 21.5613 23.557 20.717 23.3884C17.3715 22.9031 14.0553 24.6664 12.6939 27.6543C12.2796 28.4235 12.0859 29.3497 12.0244 30.1372C11.8444 31.6051 13.8607 32.0424 14.4503 30.6997C14.3434 30.7566 14.3685 30.6746 14.3685 30.6746Z", fill: "#F6FBFF" }), /* @__PURE__ */ S.createElement("path", { d: "M10.2904 29.0679C11.9436 23.6607 17.7202 20.5893 23.1274 22.2424C25.6671 23.0189 27.5785 24.6783 28.9301 26.704C27.7539 24.1048 25.508 22.0744 22.5586 21.1727C17.1514 19.5196 11.3748 22.591 9.72165 27.9982C8.81993 30.9476 9.32924 33.97 10.7444 36.3735C9.82081 34.1203 9.51395 31.6077 10.2904 29.0679Z", fill: "#ADCBE7" }), /* @__PURE__ */ S.createElement("path", { opacity: 0.406087, d: "M36.4864 56.8021L36.1373 56.2691C36.3845 56.8563 36.428 57.5516 36.2372 58.1754C35.9273 59.189 34.5593 59.1971 34.0713 58.2806L28.3787 47.5877C28.0534 46.9767 27.3508 46.7619 26.7395 47.0866L25.7206 47.6277L31.4395 59.3516C31.7648 59.9627 32.27 60.5434 32.8706 60.8123C33.7054 61.1528 34.6593 61.1034 35.3726 60.7247C36.0858 60.3459 36.6602 59.5837 36.8444 58.7021C37.0351 58.0783 36.8117 57.4132 36.4864 56.8021Z", fill: "white" }), /* @__PURE__ */ S.createElement("path", { d: "M29.8826 48.4977C29.8006 48.4726 29.6368 48.4225 29.5799 48.3155L28.1579 45.6411C28.0442 45.4272 28.1193 45.1814 28.3332 45.0677C28.5472 44.9539 28.7929 45.0291 28.9067 45.243L30.3287 47.9174C30.4424 48.1313 30.3673 48.3771 30.1534 48.4908C30.1284 48.5728 29.9645 48.5227 29.8826 48.4977Z", fill: "#FFF5EB" }), /* @__PURE__ */ S.createElement("ellipse", { cx: 29.2637, cy: 54.631, rx: 1.50593, ry: 3.17918, transform: "rotate(-23 29.2637 54.631)", fill: "#FFC478" }), /* @__PURE__ */ S.createElement("ellipse", { cx: 34.0592, cy: 52.4078, rx: 0.920288, ry: 1.67325, transform: "rotate(106 34.0592 52.4078)", fill: "#FFC478" }), /* @__PURE__ */ S.createElement("path", { d: "M89.1282 19.2055L68.2257 26.8725L45.9197 28.3898L44.4929 16.4082C44.3371 13.798 47.5283 11.4502 50.9859 11.6309L65.1429 12.369L67.3969 12.4869C68.5309 12.5463 69.7066 12.3289 70.7522 11.8627L78.6899 8.34726C81.725 6.99992 85.3012 7.87475 86.2125 10.1876L89.1282 19.2055Z", fill: "url(#paint8_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("path", { opacity: 0.479771, d: "M88.6262 19.0953L68.3101 26.5288L65.3314 12.5149L67.5211 12.6263C68.6228 12.6824 69.7652 12.471 70.7816 12.0192L78.4972 8.61266C81.4474 7.30707 84.9208 8.14856 85.8036 10.3829L88.6262 19.0953Z", fill: "#ADCBE7" }), /* @__PURE__ */ S.createElement("path", { d: "M91.6332 26.6212L46.9517 36.1186L46.0387 28.4438L89.2535 19.2582L91.6332 26.6212Z", fill: "#717DAD" }), /* @__PURE__ */ S.createElement("path", { d: "M102.961 24.2033C103.125 24.9722 102.371 25.7829 101.278 26.015L37.9675 39.4722C36.8754 39.7043 35.8568 39.2704 35.6933 38.5015C35.5301 37.7336 36.284 36.922 37.3761 36.6898L100.687 23.2327C101.779 23.0005 102.798 23.4354 102.961 24.2033Z", fill: "#9ED1FF" }), /* @__PURE__ */ S.createElement("path", { d: "M102.703 24.1718C102.838 24.805 102.067 25.5045 100.983 25.7349L69.5583 32.4144L69.0712 30.123L100.496 23.4436C101.58 23.2131 102.569 23.5394 102.703 24.1718Z", fill: "#78AFE1" }), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("linearGradient", { id: "paint0_linear_8481_102191", x1: 32.2665, y1: 59.6553, x2: 59.0518, y2: 60.5906, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#FFFDE0" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#FFB362" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint1_linear_8481_102191", x1: 67.3434, y1: 85.966, x2: 103.216, y2: 78.3411, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#FFFABC" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#FFA650" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint2_linear_8481_102191", x1: 51.4347, y1: 74.8197, x2: 91.1539, y2: 74.8197, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#A3C1FF" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#4243FF" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint3_linear_8481_102191", x1: 55.1887, y1: 89.2031, x2: 94.9078, y2: 89.2031, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#A3C1FF" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#4243FF" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint4_linear_8481_102191", x1: 94.5023, y1: 53.1799, x2: 106.762, y2: 58.7056, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#FF9498" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#FFD671" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint5_linear_8481_102191", x1: 74.9906, y1: 66.9871, x2: 94.9778, y2: 46.9999, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#FFFDE0" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#FFB362" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint6_linear_8481_102191", x1: 50.5805, y1: 44.0581, x2: 59.9372, y2: 44.0581, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "white" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#E3EEF3" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint7_linear_8481_102191", x1: 88.4187, y1: 43.3906, x2: 99.3981, y2: 25.1833, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#FF9498" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#FFD671" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint8_linear_8481_102191", x1: 56.4985, y1: 29.5482, x2: 100.532, y2: 20.1885, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#ECF7FF" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#C2E0FF" })))), gu = ({ message: e }) => /* @__PURE__ */ l.jsxs(N, { justifyContent: "center", alignItems: "center", height: "100%", "data-section": "empty", children: [
|
|
23465
23459
|
/* @__PURE__ */ l.jsx(LL, { width: 124, height: 107, className: "empty-illustration" }),
|
|
23466
23460
|
/* @__PURE__ */ l.jsx(Y, { variant: "body2", color: M.palette.gray.gray3, children: e })
|
|
23467
|
-
] }), Er = "/v1/api", RL = `${Er}/connector/conversation/:conversationId/email_log_status`, OL = `${Er}/connector/conversation/:conversationId/entity_recommendations`, FL = `${Er}/connector/conversation/:conversationId/retry_emails_log`,
|
|
23461
|
+
] }), Er = "/v1/api", RL = `${Er}/connector/conversation/:conversationId/email_log_status`, OL = `${Er}/connector/conversation/:conversationId/entity_recommendations`, FL = `${Er}/connector/conversation/:conversationId/retry_emails_log`, kL = `${Er}/connector/conversation/:conversationId/validate_entity`, DL = `${Er}/connectors/forms/:formId/search`, NL = `${Er}/connector/conversation/:conversationId/log_emails`, jL = `${Er}/connector/feedback/conversation/:conversationId`, PL = `${Er}/connector/conversation/:conversationId/log_emails`, ML = async ({
|
|
23468
23462
|
payload: e,
|
|
23469
23463
|
entity: t,
|
|
23470
23464
|
conversationId: n
|
|
@@ -23475,7 +23469,7 @@ const RT = (e) => {
|
|
|
23475
23469
|
if (!n)
|
|
23476
23470
|
throw new Error("Conversation ID is required to validate entity");
|
|
23477
23471
|
const r = await Fe({
|
|
23478
|
-
url: bt(
|
|
23472
|
+
url: bt(kL, { conversationId: n }),
|
|
23479
23473
|
data: e,
|
|
23480
23474
|
method: Ve.POST
|
|
23481
23475
|
}), o = r == null ? void 0 : r.data;
|
|
@@ -23535,7 +23529,7 @@ const RT = (e) => {
|
|
|
23535
23529
|
margin-left: auto;
|
|
23536
23530
|
flex-shrink: 0;
|
|
23537
23531
|
`, UL = ({ connectorName: e, entity: t, checked: n, disabled: r, setCheckedEntities: o }) => {
|
|
23538
|
-
const { conversationId: i, connectorFunctions: s } =
|
|
23532
|
+
const { conversationId: i, connectorFunctions: s } = De(on), a = s == null ? void 0 : s.sendTrackingEvent, { displayValue: c, entityType: u, cardId: d } = t, p = (g) => {
|
|
23539
23533
|
o == null || o((x) => ({ ...x, [u + c]: g })), a == null || a(Pt.email_logging_smart_suggestion_selected, {
|
|
23540
23534
|
app_name: e,
|
|
23541
23535
|
object_key_selected: c
|
|
@@ -23712,7 +23706,7 @@ const $L = A(N)`
|
|
|
23712
23706
|
/* @__PURE__ */ l.jsx(G2, {})
|
|
23713
23707
|
] }, n);
|
|
23714
23708
|
}, oR = ({ connectorName: e, results: t, formId: n, searchObject: r, addEntity: o }) => {
|
|
23715
|
-
const i = t.length, { connectorFunctions: s } =
|
|
23709
|
+
const i = t.length, { connectorFunctions: s } = De(on), a = s == null ? void 0 : s.sendTrackingEvent;
|
|
23716
23710
|
if (!(t != null && t.length))
|
|
23717
23711
|
return /* @__PURE__ */ l.jsx(gu, { message: "No results found" });
|
|
23718
23712
|
const c = (u) => {
|
|
@@ -23825,7 +23819,7 @@ const $L = A(N)`
|
|
|
23825
23819
|
}
|
|
23826
23820
|
}
|
|
23827
23821
|
`, pR = ({ checkedEntities: e, close: t, connectorName: n, connectorId: r }) => {
|
|
23828
|
-
const { conversationId: o, connectorFunctions: i } =
|
|
23822
|
+
const { conversationId: o, connectorFunctions: i } = De(on), { refetch: s } = Ni({ conversationId: o }), a = i == null ? void 0 : i.sendTrackingEvent, c = () => {
|
|
23829
23823
|
s(), t();
|
|
23830
23824
|
const m = Object.values(e), h = m.map((g) => g.displayValue).join(", "), f = Array.from(new Set(m.map((g) => g == null ? void 0 : g.entityType)));
|
|
23831
23825
|
a == null || a(Pt.email_logging_log_config_saved, {
|
|
@@ -24004,7 +23998,7 @@ const CR = A(N)`
|
|
|
24004
23998
|
padding: 6px;
|
|
24005
23999
|
border-radius: 6px;
|
|
24006
24000
|
`, wR = () => {
|
|
24007
|
-
const { conversationId: e, tenant: t } =
|
|
24001
|
+
const { conversationId: e, tenant: t } = De(on), [n, r] = G(!1), o = t === "HIVERWEB" ? sL : iL, i = () => {
|
|
24008
24002
|
r(!1);
|
|
24009
24003
|
}, { mutate: s, isPending: a } = yR({
|
|
24010
24004
|
onSuccess: i
|
|
@@ -24089,7 +24083,7 @@ const CR = A(N)`
|
|
|
24089
24083
|
if (!e)
|
|
24090
24084
|
throw new Error("Form ID is required to fetch search entities");
|
|
24091
24085
|
const r = await Fe({
|
|
24092
|
-
url: bt(
|
|
24086
|
+
url: bt(DL, { formId: e }),
|
|
24093
24087
|
data: { search_string: n, args: {} },
|
|
24094
24088
|
method: Ve.POST
|
|
24095
24089
|
}), o = r == null ? void 0 : r.data;
|
|
@@ -24133,12 +24127,12 @@ const CR = A(N)`
|
|
|
24133
24127
|
column-gap: 8px;
|
|
24134
24128
|
padding: 12px 16px;
|
|
24135
24129
|
background-color: #f6f8fc;
|
|
24136
|
-
`,
|
|
24130
|
+
`, kR = A(N)`
|
|
24137
24131
|
flex-flow: row nowrap;
|
|
24138
24132
|
justify-content: flex-start;
|
|
24139
24133
|
align-items: center;
|
|
24140
24134
|
column-gap: 8px;
|
|
24141
|
-
`,
|
|
24135
|
+
`, DR = A(N)`
|
|
24142
24136
|
flex-flow: row nowrap;
|
|
24143
24137
|
justify-content: flex-end;
|
|
24144
24138
|
align-items: center;
|
|
@@ -24224,8 +24218,8 @@ const CR = A(N)`
|
|
|
24224
24218
|
height: 14px;
|
|
24225
24219
|
fill: #4d596c;
|
|
24226
24220
|
animation: ${_a} 1s linear infinite;
|
|
24227
|
-
`,
|
|
24228
|
-
const { emailLogSettings: n, autoLogEnabled: r, selectedEntities: o, formList: i } = e, { connectorName: s, connectorId: a, logoUrl: c } = n ?? {}, u = (o == null ? void 0 : o.length) > 0, [d, p] = G(""), [b, v] = G([]), [m, h] = G({}), { conversationId: f, connectorFunctions: g, tenant: x } =
|
|
24221
|
+
`, kr = Po.CaseView, H2 = ({ emailLogStatus: e, close: t }) => {
|
|
24222
|
+
const { emailLogSettings: n, autoLogEnabled: r, selectedEntities: o, formList: i } = e, { connectorName: s, connectorId: a, logoUrl: c } = n ?? {}, u = (o == null ? void 0 : o.length) > 0, [d, p] = G(""), [b, v] = G([]), [m, h] = G({}), { conversationId: f, connectorFunctions: g, tenant: x } = De(on), y = g == null ? void 0 : g.sendTrackingEvent, {
|
|
24229
24223
|
data: E,
|
|
24230
24224
|
isError: C,
|
|
24231
24225
|
isLoading: w
|
|
@@ -24236,42 +24230,42 @@ const CR = A(N)`
|
|
|
24236
24230
|
});
|
|
24237
24231
|
}, {
|
|
24238
24232
|
mutate: T,
|
|
24239
|
-
data:
|
|
24233
|
+
data: D,
|
|
24240
24234
|
isPending: F,
|
|
24241
24235
|
isIdle: O,
|
|
24242
24236
|
reset: j
|
|
24243
24237
|
} = TR({ onSuccess: I }), { mutate: V, isPending: W } = RR({
|
|
24244
24238
|
onSuccess: _
|
|
24245
|
-
}), { results: q = [], ...$ } =
|
|
24246
|
-
const
|
|
24239
|
+
}), { results: q = [], ...$ } = D ?? {}, U = he(() => {
|
|
24240
|
+
const k = {}, X = [];
|
|
24247
24241
|
for (const ee of b) {
|
|
24248
24242
|
const ae = ee.entityType + ee.displayValue;
|
|
24249
|
-
|
|
24243
|
+
k[ae] || X.push(ee), k[ae] = ee;
|
|
24250
24244
|
}
|
|
24251
24245
|
for (const ee of E ?? []) {
|
|
24252
24246
|
const ae = ee.entityType + ee.displayValue;
|
|
24253
|
-
|
|
24247
|
+
k[ae] || X.push(ee), k[ae] = ee;
|
|
24254
24248
|
}
|
|
24255
24249
|
return X;
|
|
24256
|
-
}, [E, b]), J = (
|
|
24257
|
-
p(
|
|
24258
|
-
}, ne = (
|
|
24259
|
-
const { entityType: X, displayValue: ee } =
|
|
24260
|
-
h((ae) => ({ ...ae, [X + ee]:
|
|
24250
|
+
}, [E, b]), J = (k) => {
|
|
24251
|
+
p(k.target.value), O || j();
|
|
24252
|
+
}, ne = (k) => {
|
|
24253
|
+
const { entityType: X, displayValue: ee } = k;
|
|
24254
|
+
h((ae) => ({ ...ae, [X + ee]: k })), v((ae) => [k, ...ae]), p(""), j();
|
|
24261
24255
|
}, ie = () => {
|
|
24262
24256
|
y == null || y(Pt.email_logging_search_initiated, { app_name: s });
|
|
24263
24257
|
}, H = () => {
|
|
24264
24258
|
V({ payload: { autoLogEnabled: !r }, conversationId: f });
|
|
24265
|
-
const
|
|
24266
|
-
y == null || y(
|
|
24259
|
+
const k = r ? Pt.email_logging_auto_log_disabled : Pt.email_logging_auto_log_enabled;
|
|
24260
|
+
y == null || y(k, { app_name: s });
|
|
24267
24261
|
}, K = w || F;
|
|
24268
24262
|
return /* @__PURE__ */ l.jsxs(OR, { "data-tenant": x ?? "GMAIL", "data-section": "root", children: [
|
|
24269
24263
|
/* @__PURE__ */ l.jsxs(FR, { "data-section": "header", children: [
|
|
24270
|
-
/* @__PURE__ */ l.jsxs(
|
|
24264
|
+
/* @__PURE__ */ l.jsxs(kR, { children: [
|
|
24271
24265
|
/* @__PURE__ */ l.jsx(NR, { children: /* @__PURE__ */ l.jsx(jR, { src: c, alt: "connector" }) }),
|
|
24272
24266
|
/* @__PURE__ */ l.jsx(Y, { children: "Sync conversation" })
|
|
24273
24267
|
] }),
|
|
24274
|
-
/* @__PURE__ */ l.jsxs(
|
|
24268
|
+
/* @__PURE__ */ l.jsxs(DR, { children: [
|
|
24275
24269
|
W ? /* @__PURE__ */ l.jsx(WR, {}) : null,
|
|
24276
24270
|
u ? /* @__PURE__ */ l.jsx(
|
|
24277
24271
|
Ce,
|
|
@@ -24293,11 +24287,11 @@ const CR = A(N)`
|
|
|
24293
24287
|
] })
|
|
24294
24288
|
] }),
|
|
24295
24289
|
/* @__PURE__ */ l.jsx(PR, { children: /* @__PURE__ */ l.jsxs(Po, { children: [
|
|
24296
|
-
/* @__PURE__ */ l.jsxs(
|
|
24290
|
+
/* @__PURE__ */ l.jsxs(kr, { condition: u, children: [
|
|
24297
24291
|
/* @__PURE__ */ l.jsx($0, { children: /* @__PURE__ */ l.jsx(z0, { "data-section": "scrollable", children: /* @__PURE__ */ l.jsx(W0, { connectorName: s, entities: o, disabled: !0 }) }) }),
|
|
24298
24292
|
/* @__PURE__ */ l.jsx(wR, {})
|
|
24299
24293
|
] }, "disabled-view"),
|
|
24300
|
-
/* @__PURE__ */ l.jsxs(
|
|
24294
|
+
/* @__PURE__ */ l.jsxs(kr, { fallback: !0, children: [
|
|
24301
24295
|
/* @__PURE__ */ l.jsx(MR, { "data-section": "searchbox", children: /* @__PURE__ */ l.jsx(
|
|
24302
24296
|
BR,
|
|
24303
24297
|
{
|
|
@@ -24311,8 +24305,8 @@ const CR = A(N)`
|
|
|
24311
24305
|
}
|
|
24312
24306
|
) }),
|
|
24313
24307
|
/* @__PURE__ */ l.jsx($0, { children: /* @__PURE__ */ l.jsx(z0, { "data-section": "scrollable", children: /* @__PURE__ */ l.jsxs(Po, { children: [
|
|
24314
|
-
/* @__PURE__ */ l.jsx(
|
|
24315
|
-
/* @__PURE__ */ l.jsx(
|
|
24308
|
+
/* @__PURE__ */ l.jsx(kr, { condition: K, children: /* @__PURE__ */ l.jsx(aR, { message: F ? "Searching..." : "Loading..." }) }, "loading"),
|
|
24309
|
+
/* @__PURE__ */ l.jsx(kr, { condition: d === "" && U.length > 0, children: /* @__PURE__ */ l.jsx(
|
|
24316
24310
|
W0,
|
|
24317
24311
|
{
|
|
24318
24312
|
connectorName: s,
|
|
@@ -24321,7 +24315,7 @@ const CR = A(N)`
|
|
|
24321
24315
|
entities: U ?? []
|
|
24322
24316
|
}
|
|
24323
24317
|
) }, "entity-suggestions"),
|
|
24324
|
-
/* @__PURE__ */ l.jsx(
|
|
24318
|
+
/* @__PURE__ */ l.jsx(kr, { condition: !!d && O, children: /* @__PURE__ */ l.jsx(
|
|
24325
24319
|
QL,
|
|
24326
24320
|
{
|
|
24327
24321
|
searchText: d,
|
|
@@ -24330,7 +24324,7 @@ const CR = A(N)`
|
|
|
24330
24324
|
onSearch: T
|
|
24331
24325
|
}
|
|
24332
24326
|
) }, "search-options"),
|
|
24333
|
-
/* @__PURE__ */ l.jsx(
|
|
24327
|
+
/* @__PURE__ */ l.jsx(kr, { condition: !!d && !O, children: /* @__PURE__ */ l.jsx(
|
|
24334
24328
|
oR,
|
|
24335
24329
|
{
|
|
24336
24330
|
connectorName: s,
|
|
@@ -24339,7 +24333,7 @@ const CR = A(N)`
|
|
|
24339
24333
|
addEntity: ne
|
|
24340
24334
|
}
|
|
24341
24335
|
) }, "search-results"),
|
|
24342
|
-
/* @__PURE__ */ l.jsx(
|
|
24336
|
+
/* @__PURE__ */ l.jsx(kr, { condition: !U.length && C, children: /* @__PURE__ */ l.jsx(gu, { message: $n }) }, "error")
|
|
24343
24337
|
] }) }) }),
|
|
24344
24338
|
d ? null : /* @__PURE__ */ l.jsx(
|
|
24345
24339
|
pR,
|
|
@@ -24392,7 +24386,7 @@ const CR = A(N)`
|
|
|
24392
24386
|
ve.NOT_LOGGED,
|
|
24393
24387
|
ve.PAUSED
|
|
24394
24388
|
], XR = [ve.LOGGED, ve.PAUSED], YR = ({ status: e, emailLogStatus: t }) => {
|
|
24395
|
-
const { isAdmin: n, conversationId: r, connectorFunctions: o } =
|
|
24389
|
+
const { isAdmin: n, conversationId: r, connectorFunctions: o } = De(on), i = o == null ? void 0 : o.sendTrackingEvent, { refetch: s } = Ni({ conversationId: r }), { mutate: a, isPending: c } = W2({ onSuccess: s }), u = PT[e], d = VT[e], p = BT[e], { emailLogSettings: b, messageLogStatus: v } = t, { connectorName: m } = b ?? {}, { logged: h, total: f } = v ?? {}, g = XR.includes(e) && f ? ` (${h}/${f})` : "", x = e === ve.ERROR, y = zR.includes(e), E = ({ close: w }) => /* @__PURE__ */ l.jsx(H2, { close: w, emailLogStatus: t }), C = () => {
|
|
24396
24390
|
a({ conversationId: r }), i == null || i(Pt.email_logging_failed_clicked, { app_name: m });
|
|
24397
24391
|
};
|
|
24398
24392
|
return /* @__PURE__ */ l.jsx(
|
|
@@ -24428,7 +24422,7 @@ const CR = A(N)`
|
|
|
24428
24422
|
);
|
|
24429
24423
|
}, JR = ({ observer: e }) => {
|
|
24430
24424
|
var v;
|
|
24431
|
-
const [t, n] = G({}), [r, o] = G({}), [i, s] = G({}), { conversationId: a } =
|
|
24425
|
+
const [t, n] = G({}), [r, o] = G({}), [i, s] = G({}), { conversationId: a } = De(on), { data: c } = Ni({ conversationId: a }), u = (v = c == null ? void 0 : c.emailLogSettings) == null ? void 0 : v.enabled, d = (m) => {
|
|
24432
24426
|
n((h) => ({ ...h, ...m }));
|
|
24433
24427
|
}, p = (m) => {
|
|
24434
24428
|
o((h) => ({ ...h, ...m }));
|
|
@@ -25394,7 +25388,7 @@ const aO = A("div")`
|
|
|
25394
25388
|
] });
|
|
25395
25389
|
}, Y0 = 288, bO = 405, xO = 4, vO = ({ onVisibilityChange: e } = {}) => {
|
|
25396
25390
|
var E, C;
|
|
25397
|
-
const { conversationId: t, connectorFunctions: n } =
|
|
25391
|
+
const { conversationId: t, connectorFunctions: n } = De(on), { data: r, refetch: o } = Ni({ conversationId: t }), i = Zn(), [s, a] = G(!1), c = pe(null), u = pe(null), [d, p] = G({ top: 0, left: 0 }), b = !!t && !!((E = r == null ? void 0 : r.emailLogSettings) != null && E.enabled);
|
|
25398
25392
|
oe(() => {
|
|
25399
25393
|
e == null || e(b);
|
|
25400
25394
|
}, [b, e]);
|
|
@@ -25420,9 +25414,9 @@ const aO = A("div")`
|
|
|
25420
25414
|
}, [s]), oe(() => {
|
|
25421
25415
|
if (!s) return;
|
|
25422
25416
|
const w = (_) => {
|
|
25423
|
-
var T,
|
|
25417
|
+
var T, D;
|
|
25424
25418
|
const I = _.target;
|
|
25425
|
-
(T = c.current) != null && T.contains(I) || (
|
|
25419
|
+
(T = c.current) != null && T.contains(I) || (D = u.current) != null && D.contains(I) || a(!1);
|
|
25426
25420
|
};
|
|
25427
25421
|
return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
|
|
25428
25422
|
}, [s]);
|