@hiver/connector-agent 4.3.1 → 4.3.2-addingSenderEmailQueryParamToLinkApi-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/api/linkCard.d.ts +1 -0
- package/api/linkCard.d.ts.map +1 -1
- package/features/write-form/api/index.d.ts +1 -1
- package/features/write-form/api/index.d.ts.map +1 -1
- package/features/write-form/store/slice.d.ts +1 -0
- package/features/write-form/store/slice.d.ts.map +1 -1
- package/index.es.js +526 -525
- package/index.umd.js +67 -67
- package/package.json +1 -1
package/index.es.js
CHANGED
|
@@ -88,17 +88,17 @@ function Bh() {
|
|
|
88
88
|
// with.
|
|
89
89
|
_.$$typeof === T || _.getModuleId !== void 0));
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function R(_, j, Q) {
|
|
92
92
|
var fe = _.displayName;
|
|
93
93
|
if (fe)
|
|
94
94
|
return fe;
|
|
95
95
|
var Fe = j.displayName || j.name || "";
|
|
96
96
|
return Fe !== "" ? Q + "(" + Fe + ")" : Q;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function O(_) {
|
|
99
99
|
return _.displayName || "Context";
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function k(_) {
|
|
102
102
|
if (_ == null)
|
|
103
103
|
return null;
|
|
104
104
|
if (typeof _.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof _ == "function")
|
|
@@ -123,19 +123,19 @@ function Bh() {
|
|
|
123
123
|
switch (_.$$typeof) {
|
|
124
124
|
case l:
|
|
125
125
|
var j = _;
|
|
126
|
-
return
|
|
126
|
+
return O(j) + ".Consumer";
|
|
127
127
|
case s:
|
|
128
128
|
var Q = _;
|
|
129
|
-
return
|
|
129
|
+
return O(Q._context) + ".Provider";
|
|
130
130
|
case c:
|
|
131
|
-
return
|
|
131
|
+
return R(_, _.render, "ForwardRef");
|
|
132
132
|
case h:
|
|
133
133
|
var fe = _.displayName || null;
|
|
134
|
-
return fe !== null ? fe :
|
|
134
|
+
return fe !== null ? fe : k(_.type) || "Memo";
|
|
135
135
|
case g: {
|
|
136
136
|
var Fe = _, Be = Fe._payload, Ee = Fe._init;
|
|
137
137
|
try {
|
|
138
|
-
return
|
|
138
|
+
return k(Ee(Be));
|
|
139
139
|
} catch {
|
|
140
140
|
return null;
|
|
141
141
|
}
|
|
@@ -143,18 +143,18 @@ function Bh() {
|
|
|
143
143
|
}
|
|
144
144
|
return null;
|
|
145
145
|
}
|
|
146
|
-
var
|
|
147
|
-
function
|
|
146
|
+
var V = Object.assign, Z = 0, $, te, Y, X, le, de, M;
|
|
147
|
+
function G() {
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
G.__reactDisabledLog = !0;
|
|
150
150
|
function B() {
|
|
151
151
|
{
|
|
152
152
|
if (Z === 0) {
|
|
153
|
-
$ = console.log, te = console.info, Y = console.warn, X = console.error, le = console.group, de = console.groupCollapsed,
|
|
153
|
+
$ = console.log, te = console.info, Y = console.warn, X = console.error, le = console.group, de = console.groupCollapsed, M = console.groupEnd;
|
|
154
154
|
var _ = {
|
|
155
155
|
configurable: !0,
|
|
156
156
|
enumerable: !0,
|
|
157
|
-
value:
|
|
157
|
+
value: G,
|
|
158
158
|
writable: !0
|
|
159
159
|
};
|
|
160
160
|
Object.defineProperties(console, {
|
|
@@ -179,26 +179,26 @@ function Bh() {
|
|
|
179
179
|
writable: !0
|
|
180
180
|
};
|
|
181
181
|
Object.defineProperties(console, {
|
|
182
|
-
log:
|
|
182
|
+
log: V({}, _, {
|
|
183
183
|
value: $
|
|
184
184
|
}),
|
|
185
|
-
info:
|
|
185
|
+
info: V({}, _, {
|
|
186
186
|
value: te
|
|
187
187
|
}),
|
|
188
|
-
warn:
|
|
188
|
+
warn: V({}, _, {
|
|
189
189
|
value: Y
|
|
190
190
|
}),
|
|
191
|
-
error:
|
|
191
|
+
error: V({}, _, {
|
|
192
192
|
value: X
|
|
193
193
|
}),
|
|
194
|
-
group:
|
|
194
|
+
group: V({}, _, {
|
|
195
195
|
value: le
|
|
196
196
|
}),
|
|
197
|
-
groupCollapsed:
|
|
197
|
+
groupCollapsed: V({}, _, {
|
|
198
198
|
value: de
|
|
199
199
|
}),
|
|
200
|
-
groupEnd:
|
|
201
|
-
value:
|
|
200
|
+
groupEnd: V({}, _, {
|
|
201
|
+
value: M
|
|
202
202
|
})
|
|
203
203
|
});
|
|
204
204
|
}
|
|
@@ -219,13 +219,13 @@ function Bh() {
|
|
|
219
219
|
` + ne + _;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var P = !1, re;
|
|
223
223
|
{
|
|
224
224
|
var xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
225
225
|
re = new xe();
|
|
226
226
|
}
|
|
227
227
|
function H(_, j) {
|
|
228
|
-
if (!_ ||
|
|
228
|
+
if (!_ || P)
|
|
229
229
|
return "";
|
|
230
230
|
{
|
|
231
231
|
var Q = re.get(_);
|
|
@@ -233,7 +233,7 @@ function Bh() {
|
|
|
233
233
|
return Q;
|
|
234
234
|
}
|
|
235
235
|
var fe;
|
|
236
|
-
|
|
236
|
+
P = !0;
|
|
237
237
|
var Fe = Error.prepareStackTrace;
|
|
238
238
|
Error.prepareStackTrace = void 0;
|
|
239
239
|
var Be;
|
|
@@ -290,7 +290,7 @@ function Bh() {
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
} finally {
|
|
293
|
-
|
|
293
|
+
P = !1, K.current = Be, W(), Error.prepareStackTrace = Fe;
|
|
294
294
|
}
|
|
295
295
|
var Er = _ ? _.displayName || _.name : "", Qn = Er ? ie(Er) : "";
|
|
296
296
|
return typeof _ == "function" && re.set(_, Qn), Qn;
|
|
@@ -407,8 +407,8 @@ function Bh() {
|
|
|
407
407
|
}
|
|
408
408
|
function uo(_, j) {
|
|
409
409
|
if (typeof _.ref == "string" && ue.current && j && ue.current.stateNode !== j) {
|
|
410
|
-
var Q =
|
|
411
|
-
xt[Q] || (v('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',
|
|
410
|
+
var Q = k(ue.current.type);
|
|
411
|
+
xt[Q] || (v('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', k(ue.current.type), _.ref), xt[Q] = !0);
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
function Ko(_, j) {
|
|
@@ -496,7 +496,7 @@ function Bh() {
|
|
|
496
496
|
function ni() {
|
|
497
497
|
{
|
|
498
498
|
if (fo.current) {
|
|
499
|
-
var _ =
|
|
499
|
+
var _ = k(fo.current.type);
|
|
500
500
|
if (_)
|
|
501
501
|
return `
|
|
502
502
|
|
|
@@ -531,7 +531,7 @@ Check the top-level render call using <` + Q + ">.");
|
|
|
531
531
|
return;
|
|
532
532
|
Le[Q] = !0;
|
|
533
533
|
var fe = "";
|
|
534
|
-
_ && _._owner && _._owner !== fo.current && (fe = " It was passed a child from " +
|
|
534
|
+
_ && _._owner && _._owner !== fo.current && (fe = " It was passed a child from " + k(_._owner.type) + "."), Tn(_), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Q, fe), Tn(null);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
function Jn(_, j) {
|
|
@@ -568,11 +568,11 @@ Check the top-level render call using <` + Q + ">.");
|
|
|
568
568
|
else
|
|
569
569
|
return;
|
|
570
570
|
if (Q) {
|
|
571
|
-
var fe =
|
|
571
|
+
var fe = k(j);
|
|
572
572
|
Qe(Q, _.props, "prop", fe, _);
|
|
573
573
|
} else if (j.PropTypes !== void 0 && !$n) {
|
|
574
574
|
$n = !0;
|
|
575
|
-
var Fe =
|
|
575
|
+
var Fe = k(j);
|
|
576
576
|
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Fe || "Unknown");
|
|
577
577
|
}
|
|
578
578
|
typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -600,7 +600,7 @@ Check the top-level render call using <` + Q + ">.");
|
|
|
600
600
|
var gt = ri();
|
|
601
601
|
gt ? Ce += gt : Ce += ni();
|
|
602
602
|
var Ye;
|
|
603
|
-
_ === null ? Ye = "null" : Vt(_) ? Ye = "array" : _ !== void 0 && _.$$typeof === t ? (Ye = "<" + (
|
|
603
|
+
_ === null ? Ye = "null" : Vt(_) ? Ye = "array" : _ !== void 0 && _.$$typeof === t ? (Ye = "<" + (k(_.type) || "Unknown") + " />", Ce = " Did you accidentally export a JSX literal instead of a component?") : Ye = typeof _, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ye, Ce);
|
|
604
604
|
}
|
|
605
605
|
var qe = ti(_, j, Q, Fe, Be);
|
|
606
606
|
if (qe == null)
|
|
@@ -619,7 +619,7 @@ Check the top-level render call using <` + Q + ">.");
|
|
|
619
619
|
Jn(Ht, _);
|
|
620
620
|
}
|
|
621
621
|
if (nt.call(j, "key")) {
|
|
622
|
-
var Qn =
|
|
622
|
+
var Qn = k(_), Et = Object.keys(j).filter(function(ph) {
|
|
623
623
|
return ph !== "key";
|
|
624
624
|
}), js = Et.length > 0 ? "{key: someKey, " + Et.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
625
625
|
if (!ho[Qn + js]) {
|
|
@@ -723,8 +723,8 @@ function Gh(e) {
|
|
|
723
723
|
}, E = (A) => {
|
|
724
724
|
f = A == null ? [] : f.filter((T) => T !== A), C();
|
|
725
725
|
}, w = (A) => {
|
|
726
|
-
const { toastId: T, onOpen: L, updateId:
|
|
727
|
-
A.staleId && m.delete(A.staleId), m.set(T, A), f = [...f, A.props.toastId].filter((
|
|
726
|
+
const { toastId: T, onOpen: L, updateId: R, children: O } = A.props, k = R == null;
|
|
727
|
+
A.staleId && m.delete(A.staleId), m.set(T, A), f = [...f, A.props.toastId].filter((V) => V !== A.staleId), C(), g(cl(A, k ? "added" : "updated")), k && Dt(L) && L(Or(O) && O.props);
|
|
728
728
|
};
|
|
729
729
|
return { id: u, props: v, observe: (A) => (x.add(A), () => x.delete(A)), toggle: (A, T) => {
|
|
730
730
|
m.forEach((L) => {
|
|
@@ -733,30 +733,30 @@ function Gh(e) {
|
|
|
733
733
|
}, removeToast: E, toasts: m, clearQueue: () => {
|
|
734
734
|
b -= d.length, d = [];
|
|
735
735
|
}, buildToast: (A, T) => {
|
|
736
|
-
if (((
|
|
737
|
-
let { containerId:
|
|
738
|
-
const K =
|
|
736
|
+
if (((M) => {
|
|
737
|
+
let { containerId: G, toastId: B, updateId: W } = M;
|
|
738
|
+
const K = G ? G !== u : u !== 1, ne = m.has(B) && W == null;
|
|
739
739
|
return K || ne;
|
|
740
740
|
})(T)) return;
|
|
741
|
-
const { toastId: L, updateId:
|
|
741
|
+
const { toastId: L, updateId: R, data: O, staleId: k, delay: V } = T, Z = () => {
|
|
742
742
|
E(L);
|
|
743
|
-
}, $ =
|
|
743
|
+
}, $ = R == null;
|
|
744
744
|
$ && b++;
|
|
745
|
-
const te = { ...v, style: v.toastStyle, key: I++, ...Object.fromEntries(Object.entries(T).filter((
|
|
746
|
-
let [
|
|
745
|
+
const te = { ...v, style: v.toastStyle, key: I++, ...Object.fromEntries(Object.entries(T).filter((M) => {
|
|
746
|
+
let [G, B] = M;
|
|
747
747
|
return B != null;
|
|
748
|
-
})), toastId: L, updateId:
|
|
749
|
-
const
|
|
750
|
-
Dt(
|
|
748
|
+
})), toastId: L, updateId: R, data: O, closeToast: Z, isIn: !1, className: bi(T.className || v.toastClassName), bodyClassName: bi(T.bodyClassName || v.bodyClassName), progressClassName: bi(T.progressClassName || v.progressClassName), autoClose: !T.isLoading && (Y = T.autoClose, X = v.autoClose, Y === !1 || Lo(Y) && Y > 0 ? Y : X), deleteToast() {
|
|
749
|
+
const M = m.get(L), { onClose: G, children: B } = M.props;
|
|
750
|
+
Dt(G) && G(Or(B) && B.props), g(cl(M, "removed")), m.delete(L), b--, b < 0 && (b = 0), d.length > 0 ? w(d.shift()) : C();
|
|
751
751
|
} };
|
|
752
752
|
var Y, X;
|
|
753
753
|
te.closeButton = v.closeButton, T.closeButton === !1 || Ia(T.closeButton) ? te.closeButton = T.closeButton : T.closeButton === !0 && (te.closeButton = !Ia(v.closeButton) || v.closeButton);
|
|
754
754
|
let le = A;
|
|
755
|
-
Or(A) && !fr(A.type) ? le = va(A, { closeToast: Z, toastProps: te, data:
|
|
756
|
-
const de = { content: le, props: te, staleId:
|
|
757
|
-
v.limit && v.limit > 0 && b > v.limit && $ ? d.push(de) : Lo(
|
|
755
|
+
Or(A) && !fr(A.type) ? le = va(A, { closeToast: Z, toastProps: te, data: O }) : Dt(A) && (le = A({ closeToast: Z, toastProps: te, data: O }));
|
|
756
|
+
const de = { content: le, props: te, staleId: k };
|
|
757
|
+
v.limit && v.limit > 0 && b > v.limit && $ ? d.push(de) : Lo(V) ? setTimeout(() => {
|
|
758
758
|
w(de);
|
|
759
|
-
},
|
|
759
|
+
}, V) : w(de);
|
|
760
760
|
}, setProps(A) {
|
|
761
761
|
v = A;
|
|
762
762
|
}, setToggle: (A, T) => {
|
|
@@ -915,18 +915,18 @@ const Uh = typeof window < "u" ? Kr : me, ai = (e) => {
|
|
|
915
915
|
}, spinner: function() {
|
|
916
916
|
return Ae.createElement("div", { className: "Toastify__spinner" });
|
|
917
917
|
} }, zh = (e) => {
|
|
918
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = Hh(e), { closeButton: s, children: l, autoClose: c, onClick: a, type: u, hideProgressBar: h, closeToast: g, transition: I, position: b, className: d, style: f, bodyClassName: p, bodyStyle: v, progressClassName: m, progressStyle: x, updateId: C, role: E, progress: w, rtl: A, toastId: T, deleteToast: L, isIn:
|
|
919
|
-
let { theme:
|
|
920
|
-
const ne = { theme:
|
|
921
|
-
return W === !1 || (Dt(W) ? K = W({ ...ne, isLoading: B }) : Or(W) ? K = va(W, ne) : B ? K = Hs.spinner() : ((ie) => ie in Hs)(
|
|
922
|
-
}(e), Y = !!w || !c, X = { closeToast: g, type: u, theme:
|
|
918
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = Hh(e), { closeButton: s, children: l, autoClose: c, onClick: a, type: u, hideProgressBar: h, closeToast: g, transition: I, position: b, className: d, style: f, bodyClassName: p, bodyStyle: v, progressClassName: m, progressStyle: x, updateId: C, role: E, progress: w, rtl: A, toastId: T, deleteToast: L, isIn: R, isLoading: O, closeOnClick: k, theme: V } = e, Z = Vn("Toastify__toast", `Toastify__toast-theme--${V}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": A }, { "Toastify__toast--close-on-click": k }), $ = Dt(d) ? d({ rtl: A, position: b, type: u, defaultClassName: Z }) : Vn(Z, d), te = function(de) {
|
|
919
|
+
let { theme: M, type: G, isLoading: B, icon: W } = de, K = null;
|
|
920
|
+
const ne = { theme: M, type: G };
|
|
921
|
+
return W === !1 || (Dt(W) ? K = W({ ...ne, isLoading: B }) : Or(W) ? K = va(W, ne) : B ? K = Hs.spinner() : ((ie) => ie in Hs)(G) && (K = Hs[G](ne))), K;
|
|
922
|
+
}(e), Y = !!w || !c, X = { closeToast: g, type: u, theme: V };
|
|
923
923
|
let le = null;
|
|
924
924
|
return s === !1 || (le = Dt(s) ? s(X) : Or(s) ? va(s, X) : function(de) {
|
|
925
|
-
let { closeToast:
|
|
926
|
-
return Ae.createElement("button", { className: `Toastify__close-button Toastify__close-button--${
|
|
927
|
-
W.stopPropagation(),
|
|
925
|
+
let { closeToast: M, theme: G, ariaLabel: B = "close" } = de;
|
|
926
|
+
return Ae.createElement("button", { className: `Toastify__close-button Toastify__close-button--${G}`, type: "button", onClick: (W) => {
|
|
927
|
+
W.stopPropagation(), M(W);
|
|
928
928
|
}, "aria-label": B }, Ae.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, Ae.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
|
-
}(X)), Ae.createElement(I, { isIn:
|
|
929
|
+
}(X)), Ae.createElement(I, { isIn: R, done: L, position: b, preventExitTransition: n, nodeRef: r, playToast: i }, Ae.createElement("div", { id: T, onClick: a, "data-in": R, className: $, ...o, style: f, ref: r }, Ae.createElement("div", { ...R && { role: E }, className: Dt(p) ? p({ type: u }) : Vn("Toastify__toast-body", p), style: v }, te != null && Ae.createElement("div", { className: Vn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !O }) }, te), Ae.createElement("div", null, l)), le, Ae.createElement(Wh, { ...C && !Y ? { key: `pb-${C}` } : {}, rtl: A, theme: V, delay: c, isRunning: t, isIn: R, closeToast: g, hide: h, type: u, style: x, className: m, controlledProgress: Y, progress: w || 0 })));
|
|
930
930
|
}, ds = 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
|
}, $h = us(ds("bounce", !0));
|
|
@@ -3488,21 +3488,21 @@ function af() {
|
|
|
3488
3488
|
var h = function(b, d, f, p, v, m) {
|
|
3489
3489
|
return e(void 0, void 0, void 0, function() {
|
|
3490
3490
|
var x, C, E, w, A, T, L;
|
|
3491
|
-
return t(this, function(
|
|
3492
|
-
switch (
|
|
3491
|
+
return t(this, function(R) {
|
|
3492
|
+
switch (R.label) {
|
|
3493
3493
|
case 0:
|
|
3494
|
-
x = s(b, f, p, v, m),
|
|
3494
|
+
x = s(b, f, p, v, m), R.label = 1;
|
|
3495
3495
|
case 1:
|
|
3496
|
-
return
|
|
3496
|
+
return R.trys.push([1, 3, , 4]), [4, (0, r.performAxiosCall)(x)];
|
|
3497
3497
|
case 2:
|
|
3498
|
-
return C =
|
|
3498
|
+
return C = R.sent(), [2, {
|
|
3499
3499
|
userId: (w = C == null ? void 0 : C.data) === null || w === void 0 ? void 0 : w.user_id,
|
|
3500
3500
|
userGroupId: (A = C == null ? void 0 : C.data) === null || A === void 0 ? void 0 : A.usergroup_id,
|
|
3501
3501
|
atToken: (T = C == null ? void 0 : C.data.at) === null || T === void 0 ? void 0 : T.token,
|
|
3502
3502
|
expiryTime: (L = C == null ? void 0 : C.data.at) === null || L === void 0 ? void 0 : L.expires_at
|
|
3503
3503
|
}];
|
|
3504
3504
|
case 3:
|
|
3505
|
-
throw E =
|
|
3505
|
+
throw E = R.sent(), E;
|
|
3506
3506
|
case 4:
|
|
3507
3507
|
return [2];
|
|
3508
3508
|
}
|
|
@@ -3755,33 +3755,33 @@ function cf() {
|
|
|
3755
3755
|
Object.defineProperty(vo, "__esModule", { value: !0 }), vo.fetchAccessToken = void 0;
|
|
3756
3756
|
var n = af(), r = Xn, o = Oe, i = Is, s, l, c, a = function(b, d, f, p, v, m) {
|
|
3757
3757
|
return m === void 0 && (m = r.APP_UI.DEFAULT), e(void 0, void 0, void 0, function() {
|
|
3758
|
-
var x, C, E, w, A, T, L,
|
|
3759
|
-
return t(this, function(
|
|
3760
|
-
switch (
|
|
3758
|
+
var x, C, E, w, A, T, L, R, O;
|
|
3759
|
+
return t(this, function(k) {
|
|
3760
|
+
switch (k.label) {
|
|
3761
3761
|
case 0:
|
|
3762
|
-
x = 2,
|
|
3762
|
+
x = 2, k.label = 1;
|
|
3763
3763
|
case 1:
|
|
3764
|
-
return
|
|
3764
|
+
return k.trys.push([1, 7, , 12]), console.log("ERROR debug: in login:", m, p), C = void 0, v ? [4, v()] : [3, 3];
|
|
3765
3765
|
case 2:
|
|
3766
|
-
return C =
|
|
3766
|
+
return C = k.sent(), [3, 5];
|
|
3767
3767
|
case 3:
|
|
3768
3768
|
return [4, (0, n.getTenantLoginCode)(r.CONFIG_HIVER, b, d, p, m)];
|
|
3769
3769
|
case 4:
|
|
3770
|
-
C =
|
|
3770
|
+
C = k.sent(), k.label = 5;
|
|
3771
3771
|
case 5:
|
|
3772
3772
|
return [4, (0, n.getLoginToken)(C, r.CONFIG_HIVER, b, p, d.userId, d.usergroupId)];
|
|
3773
3773
|
case 6:
|
|
3774
|
-
return E =
|
|
3774
|
+
return E = k.sent(), w = E.userId, A = E.userGroupId, T = E.atToken, L = E.expiryTime, (0, o.setTokenAndExpiry)(T, L), (0, o.setUserDetails)(w, A), [3, 12];
|
|
3775
3775
|
case 7:
|
|
3776
|
-
|
|
3776
|
+
R = k.sent(), console.log("ERROR debug: in error login:", R, m), O = f, k.label = 8;
|
|
3777
3777
|
case 8:
|
|
3778
|
-
return
|
|
3778
|
+
return O < x ? [4, a(b, d, O + 1, p, v, m)] : [3, 11];
|
|
3779
3779
|
case 9:
|
|
3780
|
-
|
|
3780
|
+
k.sent(), k.label = 10;
|
|
3781
3781
|
case 10:
|
|
3782
|
-
return
|
|
3782
|
+
return O++, [3, 8];
|
|
3783
3783
|
case 11:
|
|
3784
|
-
throw
|
|
3784
|
+
throw R;
|
|
3785
3785
|
case 12:
|
|
3786
3786
|
return [2];
|
|
3787
3787
|
}
|
|
@@ -3807,36 +3807,36 @@ function cf() {
|
|
|
3807
3807
|
});
|
|
3808
3808
|
}, h = function(b, d, f, p, v, m, x, C, E) {
|
|
3809
3809
|
return C === void 0 && (C = "default"), e(void 0, void 0, void 0, function() {
|
|
3810
|
-
var w, A, T, L,
|
|
3810
|
+
var w, A, T, L, R, O, k, V, Z, $, te, Y, X, le;
|
|
3811
3811
|
return t(this, function(de) {
|
|
3812
3812
|
switch (de.label) {
|
|
3813
3813
|
case 0:
|
|
3814
3814
|
return de.trys.push([0, 2, , 12]), console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:", c), [4, (0, n.getAccessToken)(r.CONFIG_HIVER, p, v, m, C)];
|
|
3815
3815
|
case 1:
|
|
3816
|
-
return w = de.sent(), A = w.atToken, T = w.expiryTime, L = w.userId,
|
|
3816
|
+
return w = de.sent(), A = w.atToken, T = w.expiryTime, L = w.userId, R = w.userGroupId, A && T && (0, o.setTokenAndExpiry)(A, T), L && R && (0, o.setUserDetails)(L, R), b = r.INITIAL_RETRY_DELAY, d = r.INITIAL_RETRY_DELAY, f = 0, [3, 12];
|
|
3817
3817
|
case 2:
|
|
3818
|
-
return
|
|
3818
|
+
return O = de.sent(), console.log("ERROR: Heimdall fetch token", O), ((Z = O.response) === null || Z === void 0 ? void 0 : Z.status) === 401 || (($ = O.request) === null || $ === void 0 ? void 0 : $.status) === 401 ? (k = 1, [4, a(p, v, k, m, x, E)]) : [3, 4];
|
|
3819
3819
|
case 3:
|
|
3820
3820
|
return de.sent(), [3, 11];
|
|
3821
3821
|
case 4:
|
|
3822
|
-
return ((te =
|
|
3822
|
+
return ((te = O.response) === null || te === void 0 ? void 0 : te.status) === 409 || ((Y = O.request) === null || Y === void 0 ? void 0 : Y.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), V = { retryDelay: b, configs: p, apiParams: v, appUI: E }, [4, u(d, f, V, m, x)]) : [3, 6];
|
|
3823
3823
|
case 5:
|
|
3824
3824
|
if (de.sent(), f >= r.MAX_CONFLICT_RETRY_DELAY)
|
|
3825
|
-
throw
|
|
3825
|
+
throw O;
|
|
3826
3826
|
return [3, 11];
|
|
3827
3827
|
case 6:
|
|
3828
|
-
if (!(((X =
|
|
3829
|
-
throw console.log("ERROR: Throwing error",
|
|
3828
|
+
if (!(((X = O.response) === null || X === void 0 ? void 0 : X.status) === 422 || ((le = O.request) === null || le === void 0 ? void 0 : le.status) === 422)) return [3, 7];
|
|
3829
|
+
throw console.log("ERROR: Throwing error", O.response.status), O;
|
|
3830
3830
|
case 7:
|
|
3831
|
-
return b <= r.MAX_RETRY_DELAY ? [4, new Promise(function(
|
|
3832
|
-
return setTimeout(
|
|
3831
|
+
return b <= r.MAX_RETRY_DELAY ? [4, new Promise(function(M) {
|
|
3832
|
+
return setTimeout(M, b);
|
|
3833
3833
|
})] : [3, 10];
|
|
3834
3834
|
case 8:
|
|
3835
3835
|
return de.sent(), b *= 2, console.log("Heimdall: Fetch token post doubling retry delay", b), [4, h(b, d, f, p, v, m, x, E)];
|
|
3836
3836
|
case 9:
|
|
3837
3837
|
return de.sent(), [3, 11];
|
|
3838
3838
|
case 10:
|
|
3839
|
-
throw
|
|
3839
|
+
throw O;
|
|
3840
3840
|
case 11:
|
|
3841
3841
|
return [3, 12];
|
|
3842
3842
|
case 12:
|
|
@@ -3867,29 +3867,29 @@ function cf() {
|
|
|
3867
3867
|
}, I = function(b, d, f, p, v, m, x) {
|
|
3868
3868
|
return e(void 0, void 0, void 0, function() {
|
|
3869
3869
|
var C, E, w, A, T, L;
|
|
3870
|
-
return t(this, function(
|
|
3871
|
-
switch (
|
|
3870
|
+
return t(this, function(R) {
|
|
3871
|
+
switch (R.label) {
|
|
3872
3872
|
case 0:
|
|
3873
|
-
s = b, l = d, C = r.INITIAL_RETRY_DELAY, E = r.INITIAL_RETRY_DELAY, w = 0, A = (0, o.getConfig)(s, l), console.log("Instance: Fetch Call"),
|
|
3873
|
+
s = b, l = d, C = r.INITIAL_RETRY_DELAY, E = r.INITIAL_RETRY_DELAY, w = 0, A = (0, o.getConfig)(s, l), console.log("Instance: Fetch Call"), R.label = 1;
|
|
3874
3874
|
case 1:
|
|
3875
|
-
return
|
|
3875
|
+
return R.trys.push([1, 3, , 4]), [4, h(C, E, w, A, f, p, v, m, x)];
|
|
3876
3876
|
case 2:
|
|
3877
|
-
return
|
|
3877
|
+
return R.sent(), console.log("Heimdall: Interval Set on fetch token when fetch token is called:", c), clearInterval(c), c = setInterval(function() {
|
|
3878
3878
|
return g(A, f, r.INITIAL_RETRY_DELAY, r.INITIAL_RETRY_DELAY, 0, p, v, x);
|
|
3879
3879
|
}, r.REFETCH_CHECK_DELAY), T = function() {
|
|
3880
3880
|
return e(void 0, void 0, void 0, function() {
|
|
3881
|
-
return t(this, function(
|
|
3882
|
-
switch (
|
|
3881
|
+
return t(this, function(O) {
|
|
3882
|
+
switch (O.label) {
|
|
3883
3883
|
case 0:
|
|
3884
3884
|
return [4, g(A, f, r.INITIAL_RETRY_DELAY, r.INITIAL_RETRY_DELAY, 0, p, v, x)];
|
|
3885
3885
|
case 1:
|
|
3886
|
-
return
|
|
3886
|
+
return O.sent(), [2];
|
|
3887
3887
|
}
|
|
3888
3888
|
});
|
|
3889
3889
|
});
|
|
3890
3890
|
}, console.log("Heimdall: Interval Set on fetch token:", c), (0, i.subscribeToOnlineEvent)(T), [3, 4];
|
|
3891
3891
|
case 3:
|
|
3892
|
-
return L =
|
|
3892
|
+
return L = R.sent(), console.log("ERROR: Fetching token failed", L), [3, 4];
|
|
3893
3893
|
case 4:
|
|
3894
3894
|
return [2];
|
|
3895
3895
|
}
|
|
@@ -4051,11 +4051,11 @@ function lf() {
|
|
|
4051
4051
|
function b(d, f, p, v, m) {
|
|
4052
4052
|
var x, C;
|
|
4053
4053
|
return m === void 0 && (m = 0), t(this, void 0, void 0, function() {
|
|
4054
|
-
var E, w, A, T, L,
|
|
4055
|
-
return n(this, function(
|
|
4056
|
-
switch (
|
|
4054
|
+
var E, w, A, T, L, R, O;
|
|
4055
|
+
return n(this, function(k) {
|
|
4056
|
+
switch (k.label) {
|
|
4057
4057
|
case 0:
|
|
4058
|
-
if (
|
|
4058
|
+
if (k.trys.push([0, 4, , 5]), !(p.getToken && !(0, o.hasValidToken)(f))) return [3, 2];
|
|
4059
4059
|
if (E = d.appEnv, w = d.tier, !E || !w)
|
|
4060
4060
|
throw Error("appEnv or tier missing : ".concat(E, "/").concat(w));
|
|
4061
4061
|
return "userId" in f && "usergroupId" in f ? (A = {
|
|
@@ -4063,16 +4063,16 @@ function lf() {
|
|
|
4063
4063
|
usergroupId: f.usergroupId
|
|
4064
4064
|
}, [4, I(d, A, v)]) : [3, 2];
|
|
4065
4065
|
case 1:
|
|
4066
|
-
|
|
4066
|
+
k.sent(), k.label = 2;
|
|
4067
4067
|
case 2:
|
|
4068
4068
|
return d.csrfToken && u(f, p), T = d.tenantPlatform === l.TENANT_PLATFORM.HIVERWEB ? l.TENANT_PLATFORM.HIVERWEB : l.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" }), p.getToken && (c = (0, s.getItemFromStorage)("hiverAuthToken") || "", f.headers = e(e({}, f.headers), { Authorization: "Bearer ".concat(c) })), console.log("Performing axios call for:", f), [4, g(f, d.withCredentials)];
|
|
4069
4069
|
case 3:
|
|
4070
|
-
return L =
|
|
4070
|
+
return L = k.sent(), f.onSuccess && f.onSuccess(L), [2, L];
|
|
4071
4071
|
case 4:
|
|
4072
|
-
if (
|
|
4072
|
+
if (R = k.sent(), O = ((x = R.response) === null || x === void 0 ? void 0 : x.status) === 403 || ((C = R.request) === null || C === void 0 ? void 0 : C.status) === 403, m < a && O)
|
|
4073
4073
|
return (0, o.expireToken)(), [2, b(d, f, p, v, m + 1)];
|
|
4074
|
-
if (m >= a &&
|
|
4075
|
-
throw f.onFail && f.onFail(
|
|
4074
|
+
if (m >= a && O || !O)
|
|
4075
|
+
throw f.onFail && f.onFail(R), console.log("ERROR: Reached make Axios", R), R;
|
|
4076
4076
|
return [3, 5];
|
|
4077
4077
|
case 5:
|
|
4078
4078
|
return [2];
|
|
@@ -4669,7 +4669,7 @@ function ff() {
|
|
|
4669
4669
|
});
|
|
4670
4670
|
}, u = function(I, b, d, f, p, v, m) {
|
|
4671
4671
|
return v === void 0 && (v = "default"), e(void 0, void 0, void 0, function() {
|
|
4672
|
-
var x, C, E, w, A, T, L,
|
|
4672
|
+
var x, C, E, w, A, T, L, R, O, k, V, Z, $, te;
|
|
4673
4673
|
return t(this, function(Y) {
|
|
4674
4674
|
switch (Y.label) {
|
|
4675
4675
|
case 0:
|
|
@@ -4677,11 +4677,11 @@ function ff() {
|
|
|
4677
4677
|
case 1:
|
|
4678
4678
|
return x = Y.sent(), C = x.atToken, E = x.expiryTime, w = x.userId, A = x.userGroupId, C && E && (0, o.setTokenAndExpiry)(C, E), w && A && (0, o.setUserDetails)(w, A), I = r.INITIAL_RETRY_DELAY, b = r.INITIAL_RETRY_DELAY, d = 0, [3, 12];
|
|
4679
4679
|
case 2:
|
|
4680
|
-
return T = Y.sent(), console.log("ERROR: Heimdall fetch token", T), ((
|
|
4680
|
+
return T = Y.sent(), console.log("ERROR: Heimdall fetch token", T), ((O = T.response) === null || O === void 0 ? void 0 : O.status) === 401 || ((k = T.request) === null || k === void 0 ? void 0 : k.status) === 401 ? (L = 1, [4, c(f, L, m)]) : [3, 4];
|
|
4681
4681
|
case 3:
|
|
4682
4682
|
return Y.sent(), [3, 11];
|
|
4683
4683
|
case 4:
|
|
4684
|
-
return ((
|
|
4684
|
+
return ((V = T.response) === null || V === void 0 ? void 0 : V.status) === 409 || ((Z = T.request) === null || Z === void 0 ? void 0 : Z.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), R = { retryDelay: I, configs: f, api_params: p, appUI: m }, [4, a(b, d, R)]) : [3, 6];
|
|
4685
4685
|
case 5:
|
|
4686
4686
|
if (Y.sent(), d >= r.MAX_CONFLICT_RETRY_DELAY)
|
|
4687
4687
|
throw T;
|
|
@@ -5962,8 +5962,8 @@ const Yb = N(be)`
|
|
|
5962
5962
|
const A = new IntersectionObserver(
|
|
5963
5963
|
(T) => {
|
|
5964
5964
|
const L = l.current;
|
|
5965
|
-
for (const
|
|
5966
|
-
L == null || L.classList.toggle(Rf,
|
|
5965
|
+
for (const R of T)
|
|
5966
|
+
L == null || L.classList.toggle(Rf, R.intersectionRatio === 0);
|
|
5967
5967
|
},
|
|
5968
5968
|
{
|
|
5969
5969
|
root: w
|
|
@@ -6080,22 +6080,22 @@ function Sv() {
|
|
|
6080
6080
|
value: null
|
|
6081
6081
|
}, b.current = d) : d = b.current;
|
|
6082
6082
|
var f = s(function() {
|
|
6083
|
-
var x = !1, C, E, w = function(
|
|
6083
|
+
var x = !1, C, E, w = function(R) {
|
|
6084
6084
|
if (!x) {
|
|
6085
|
-
x = !0, C =
|
|
6086
|
-
var
|
|
6085
|
+
x = !0, C = R;
|
|
6086
|
+
var O = g(R);
|
|
6087
6087
|
if (I !== void 0 && d.hasValue) {
|
|
6088
|
-
var
|
|
6089
|
-
if (I(
|
|
6090
|
-
return E =
|
|
6088
|
+
var k = d.value;
|
|
6089
|
+
if (I(k, O))
|
|
6090
|
+
return E = k, k;
|
|
6091
6091
|
}
|
|
6092
|
-
return E =
|
|
6092
|
+
return E = O, O;
|
|
6093
6093
|
}
|
|
6094
|
-
var
|
|
6095
|
-
if (n(
|
|
6094
|
+
var V = C, Z = E;
|
|
6095
|
+
if (n(V, R))
|
|
6096
6096
|
return Z;
|
|
6097
|
-
var $ = g(
|
|
6098
|
-
return I !== void 0 && I(Z, $) ? Z : (C =
|
|
6097
|
+
var $ = g(R);
|
|
6098
|
+
return I !== void 0 && I(Z, $) ? Z : (C = R, E = $, $);
|
|
6099
6099
|
}, A = h === void 0 ? null : h, T = function() {
|
|
6100
6100
|
return w(u());
|
|
6101
6101
|
}, L = A === null ? void 0 : function() {
|
|
@@ -7784,8 +7784,8 @@ function Uy({
|
|
|
7784
7784
|
return tu(A, w, {
|
|
7785
7785
|
insert: () => {
|
|
7786
7786
|
const T = {};
|
|
7787
|
-
for (const [L,
|
|
7788
|
-
T[L] = zy(
|
|
7787
|
+
for (const [L, R] of Object.entries(o.selectors ?? {}))
|
|
7788
|
+
T[L] = zy(R, w, f, x);
|
|
7789
7789
|
return T;
|
|
7790
7790
|
}
|
|
7791
7791
|
});
|
|
@@ -8239,23 +8239,23 @@ function nn(e, t) {
|
|
|
8239
8239
|
}
|
|
8240
8240
|
var X3 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
8241
8241
|
function Hc(e) {
|
|
8242
|
-
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, l = e.inputValue, c = e.menuIsOpen, a = e.onChange, u = e.onInputChange, h = e.onMenuClose, g = e.onMenuOpen, I = e.value, b = nn(e, X3), d = J(l !== void 0 ? l : n), f = it(d, 2), p = f[0], v = f[1], m = J(c !== void 0 ? c : o), x = it(m, 2), C = x[0], E = x[1], w = J(I !== void 0 ? I : s), A = it(w, 2), T = A[0], L = A[1],
|
|
8242
|
+
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, l = e.inputValue, c = e.menuIsOpen, a = e.onChange, u = e.onInputChange, h = e.onMenuClose, g = e.onMenuOpen, I = e.value, b = nn(e, X3), d = J(l !== void 0 ? l : n), f = it(d, 2), p = f[0], v = f[1], m = J(c !== void 0 ? c : o), x = it(m, 2), C = x[0], E = x[1], w = J(I !== void 0 ? I : s), A = it(w, 2), T = A[0], L = A[1], R = _e(function(Y, X) {
|
|
8243
8243
|
typeof a == "function" && a(Y, X), L(Y);
|
|
8244
|
-
}, [a]),
|
|
8244
|
+
}, [a]), O = _e(function(Y, X) {
|
|
8245
8245
|
var le;
|
|
8246
8246
|
typeof u == "function" && (le = u(Y, X)), v(le !== void 0 ? le : Y);
|
|
8247
|
-
}, [u]),
|
|
8247
|
+
}, [u]), k = _e(function() {
|
|
8248
8248
|
typeof g == "function" && g(), E(!0);
|
|
8249
|
-
}, [g]),
|
|
8249
|
+
}, [g]), V = _e(function() {
|
|
8250
8250
|
typeof h == "function" && h(), E(!1);
|
|
8251
8251
|
}, [h]), Z = l !== void 0 ? l : p, $ = c !== void 0 ? c : C, te = I !== void 0 ? I : T;
|
|
8252
8252
|
return oe(oe({}, b), {}, {
|
|
8253
8253
|
inputValue: Z,
|
|
8254
8254
|
menuIsOpen: $,
|
|
8255
|
-
onChange:
|
|
8256
|
-
onInputChange:
|
|
8257
|
-
onMenuClose:
|
|
8258
|
-
onMenuOpen:
|
|
8255
|
+
onChange: R,
|
|
8256
|
+
onInputChange: O,
|
|
8257
|
+
onMenuClose: V,
|
|
8258
|
+
onMenuOpen: k,
|
|
8259
8259
|
value: te
|
|
8260
8260
|
});
|
|
8261
8261
|
}
|
|
@@ -9029,7 +9029,7 @@ function DC() {
|
|
|
9029
9029
|
}
|
|
9030
9030
|
}
|
|
9031
9031
|
}
|
|
9032
|
-
var C = c, E = a, w = l, A = s, T = t, L = u,
|
|
9032
|
+
var C = c, E = a, w = l, A = s, T = t, L = u, R = r, O = b, k = I, V = n, Z = i, $ = o, te = h, Y = !1;
|
|
9033
9033
|
function X(H) {
|
|
9034
9034
|
return Y || (Y = !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.")), le(H) || x(H) === c;
|
|
9035
9035
|
}
|
|
@@ -9039,10 +9039,10 @@ function DC() {
|
|
|
9039
9039
|
function de(H) {
|
|
9040
9040
|
return x(H) === l;
|
|
9041
9041
|
}
|
|
9042
|
-
function
|
|
9042
|
+
function M(H) {
|
|
9043
9043
|
return x(H) === s;
|
|
9044
9044
|
}
|
|
9045
|
-
function
|
|
9045
|
+
function G(H) {
|
|
9046
9046
|
return typeof H == "object" && H !== null && H.$$typeof === t;
|
|
9047
9047
|
}
|
|
9048
9048
|
function B(H) {
|
|
@@ -9060,7 +9060,7 @@ function DC() {
|
|
|
9060
9060
|
function ie(H) {
|
|
9061
9061
|
return x(H) === n;
|
|
9062
9062
|
}
|
|
9063
|
-
function
|
|
9063
|
+
function P(H) {
|
|
9064
9064
|
return x(H) === i;
|
|
9065
9065
|
}
|
|
9066
9066
|
function re(H) {
|
|
@@ -9069,7 +9069,7 @@ function DC() {
|
|
|
9069
9069
|
function xe(H) {
|
|
9070
9070
|
return x(H) === h;
|
|
9071
9071
|
}
|
|
9072
|
-
Ne.AsyncMode = C, Ne.ConcurrentMode = E, Ne.ContextConsumer = w, Ne.ContextProvider = A, Ne.Element = T, Ne.ForwardRef = L, Ne.Fragment =
|
|
9072
|
+
Ne.AsyncMode = C, Ne.ConcurrentMode = E, Ne.ContextConsumer = w, Ne.ContextProvider = A, Ne.Element = T, Ne.ForwardRef = L, Ne.Fragment = R, Ne.Lazy = O, Ne.Memo = k, Ne.Portal = V, Ne.Profiler = Z, Ne.StrictMode = $, Ne.Suspense = te, Ne.isAsyncMode = X, Ne.isConcurrentMode = le, Ne.isContextConsumer = de, Ne.isContextProvider = M, Ne.isElement = G, Ne.isForwardRef = B, Ne.isFragment = W, Ne.isLazy = K, Ne.isMemo = ne, Ne.isPortal = ie, Ne.isProfiler = P, Ne.isStrictMode = re, Ne.isSuspense = xe, Ne.isValidElementType = m, Ne.typeOf = x;
|
|
9073
9073
|
}()), Ne;
|
|
9074
9074
|
}
|
|
9075
9075
|
process.env.NODE_ENV === "production" ? qa.exports = FC() : qa.exports = DC();
|
|
@@ -9766,7 +9766,7 @@ function NI(e) {
|
|
|
9766
9766
|
maxHeight: t
|
|
9767
9767
|
};
|
|
9768
9768
|
if (!n || !n.offsetParent) return a;
|
|
9769
|
-
var u = c.getBoundingClientRect(), h = u.height, g = n.getBoundingClientRect(), I = g.bottom, b = g.height, d = g.top, f = n.offsetParent.getBoundingClientRect(), p = f.top, v = s ? window.innerHeight : xI(c), m = D0(c), x = parseInt(getComputedStyle(n).marginBottom, 10), C = parseInt(getComputedStyle(n).marginTop, 10), E = p - C, w = v - d, A = E + m, T = h - m - d, L = I - v + m + x,
|
|
9769
|
+
var u = c.getBoundingClientRect(), h = u.height, g = n.getBoundingClientRect(), I = g.bottom, b = g.height, d = g.top, f = n.offsetParent.getBoundingClientRect(), p = f.top, v = s ? window.innerHeight : xI(c), m = D0(c), x = parseInt(getComputedStyle(n).marginBottom, 10), C = parseInt(getComputedStyle(n).marginTop, 10), E = p - C, w = v - d, A = E + m, T = h - m - d, L = I - v + m + x, R = m + d - C, O = 160;
|
|
9770
9770
|
switch (o) {
|
|
9771
9771
|
case "auto":
|
|
9772
9772
|
case "bottom":
|
|
@@ -9776,23 +9776,23 @@ function NI(e) {
|
|
|
9776
9776
|
maxHeight: t
|
|
9777
9777
|
};
|
|
9778
9778
|
if (T >= b && !s)
|
|
9779
|
-
return i && pi(c, L,
|
|
9779
|
+
return i && pi(c, L, O), {
|
|
9780
9780
|
placement: "bottom",
|
|
9781
9781
|
maxHeight: t
|
|
9782
9782
|
};
|
|
9783
9783
|
if (!s && T >= r || s && w >= r) {
|
|
9784
|
-
i && pi(c, L,
|
|
9785
|
-
var
|
|
9784
|
+
i && pi(c, L, O);
|
|
9785
|
+
var k = s ? w - x : T - x;
|
|
9786
9786
|
return {
|
|
9787
9787
|
placement: "bottom",
|
|
9788
|
-
maxHeight:
|
|
9788
|
+
maxHeight: k
|
|
9789
9789
|
};
|
|
9790
9790
|
}
|
|
9791
9791
|
if (o === "auto" || s) {
|
|
9792
|
-
var
|
|
9793
|
-
return Z >= r && (
|
|
9792
|
+
var V = t, Z = s ? E : A;
|
|
9793
|
+
return Z >= r && (V = Math.min(Z - x - l, t)), {
|
|
9794
9794
|
placement: "top",
|
|
9795
|
-
maxHeight:
|
|
9795
|
+
maxHeight: V
|
|
9796
9796
|
};
|
|
9797
9797
|
}
|
|
9798
9798
|
if (o === "bottom")
|
|
@@ -9808,13 +9808,13 @@ function NI(e) {
|
|
|
9808
9808
|
maxHeight: t
|
|
9809
9809
|
};
|
|
9810
9810
|
if (A >= b && !s)
|
|
9811
|
-
return i && pi(c,
|
|
9811
|
+
return i && pi(c, R, O), {
|
|
9812
9812
|
placement: "top",
|
|
9813
9813
|
maxHeight: t
|
|
9814
9814
|
};
|
|
9815
9815
|
if (!s && A >= r || s && E >= r) {
|
|
9816
9816
|
var $ = t;
|
|
9817
|
-
return (!s && A >= r || s && E >= r) && ($ = s ? E - C : A - C), i && pi(c,
|
|
9817
|
+
return (!s && A >= r || s && E >= r) && ($ = s ? E - C : A - C), i && pi(c, R, O), {
|
|
9818
9818
|
placement: "top",
|
|
9819
9819
|
maxHeight: $
|
|
9820
9820
|
};
|
|
@@ -10547,11 +10547,11 @@ var J5 = process.env.NODE_ENV === "production" ? {
|
|
|
10547
10547
|
if (n && A.onChange) {
|
|
10548
10548
|
var $ = n.option, te = n.options, Y = n.removedValue, X = n.removedValues, le = n.value, de = function(ie) {
|
|
10549
10549
|
return Array.isArray(ie) ? null : ie;
|
|
10550
|
-
},
|
|
10550
|
+
}, M = Y || $ || de(le), G = M ? g(M) : "", B = te || X || void 0, W = B ? B.map(g) : [], K = oe({
|
|
10551
10551
|
// multiSelected items are usually items that have already been selected
|
|
10552
10552
|
// or set by the user as a default value so we assume they are not disabled
|
|
10553
|
-
isDisabled:
|
|
10554
|
-
label:
|
|
10553
|
+
isDisabled: M && d(M, l),
|
|
10554
|
+
label: G,
|
|
10555
10555
|
labels: W
|
|
10556
10556
|
}, n);
|
|
10557
10557
|
Z = A.onChange(K);
|
|
@@ -10573,7 +10573,7 @@ var J5 = process.env.NODE_ENV === "production" ? {
|
|
|
10573
10573
|
Z = A.onFocus(Y);
|
|
10574
10574
|
}
|
|
10575
10575
|
return Z;
|
|
10576
|
-
}, [r, o, g, d, A, i, l, u]),
|
|
10576
|
+
}, [r, o, g, d, A, i, l, u]), R = Me(function() {
|
|
10577
10577
|
var Z = "";
|
|
10578
10578
|
if (p && v.length && !C && A.onFilter) {
|
|
10579
10579
|
var $ = m({
|
|
@@ -10585,7 +10585,7 @@ var J5 = process.env.NODE_ENV === "production" ? {
|
|
|
10585
10585
|
});
|
|
10586
10586
|
}
|
|
10587
10587
|
return Z;
|
|
10588
|
-
}, [i, I, p, A, v, m, C]),
|
|
10588
|
+
}, [i, I, p, A, v, m, C]), O = (n == null ? void 0 : n.action) === "initial-input-focus", k = Me(function() {
|
|
10589
10589
|
var Z = "";
|
|
10590
10590
|
if (A.guidance) {
|
|
10591
10591
|
var $ = o ? "value" : p ? "menu" : "input";
|
|
@@ -10596,27 +10596,27 @@ var J5 = process.env.NODE_ENV === "production" ? {
|
|
|
10596
10596
|
isMulti: b,
|
|
10597
10597
|
isSearchable: f,
|
|
10598
10598
|
tabSelectsValue: x,
|
|
10599
|
-
isInitialFocus:
|
|
10599
|
+
isInitialFocus: O
|
|
10600
10600
|
});
|
|
10601
10601
|
}
|
|
10602
10602
|
return Z;
|
|
10603
|
-
}, [E, r, o, b, d, f, p, A, l, x,
|
|
10603
|
+
}, [E, r, o, b, d, f, p, A, l, x, O]), V = ae(ya, null, ae("span", {
|
|
10604
10604
|
id: "aria-selection"
|
|
10605
10605
|
}, T), ae("span", {
|
|
10606
10606
|
id: "aria-focused"
|
|
10607
10607
|
}, L), ae("span", {
|
|
10608
10608
|
id: "aria-results"
|
|
10609
|
-
},
|
|
10609
|
+
}, R), ae("span", {
|
|
10610
10610
|
id: "aria-guidance"
|
|
10611
|
-
},
|
|
10611
|
+
}, k));
|
|
10612
10612
|
return ae(ya, null, ae(wu, {
|
|
10613
10613
|
id: a
|
|
10614
|
-
},
|
|
10614
|
+
}, O && V), ae(wu, {
|
|
10615
10615
|
"aria-live": w,
|
|
10616
10616
|
"aria-atomic": "false",
|
|
10617
10617
|
"aria-relevant": "additions text",
|
|
10618
10618
|
role: "log"
|
|
10619
|
-
}, s && !
|
|
10619
|
+
}, s && !O && V));
|
|
10620
10620
|
}, ex = K5, nc = [{
|
|
10621
10621
|
base: "A",
|
|
10622
10622
|
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
@@ -11898,7 +11898,7 @@ var ep = function(t) {
|
|
|
11898
11898
|
}), v);
|
|
11899
11899
|
if (f)
|
|
11900
11900
|
return x.map(function(A, T) {
|
|
11901
|
-
var L = A === C,
|
|
11901
|
+
var L = A === C, R = "".concat(o.getOptionLabel(A), "-").concat(o.getOptionValue(A));
|
|
11902
11902
|
return /* @__PURE__ */ F.createElement(s, ce({}, g, {
|
|
11903
11903
|
components: {
|
|
11904
11904
|
Container: l,
|
|
@@ -11907,7 +11907,7 @@ var ep = function(t) {
|
|
|
11907
11907
|
},
|
|
11908
11908
|
isFocused: L,
|
|
11909
11909
|
isDisabled: d,
|
|
11910
|
-
key:
|
|
11910
|
+
key: R,
|
|
11911
11911
|
index: T,
|
|
11912
11912
|
removeProps: {
|
|
11913
11913
|
onClick: function() {
|
|
@@ -11916,8 +11916,8 @@ var ep = function(t) {
|
|
|
11916
11916
|
onTouchEnd: function() {
|
|
11917
11917
|
return o.removeValue(A);
|
|
11918
11918
|
},
|
|
11919
|
-
onMouseDown: function(
|
|
11920
|
-
|
|
11919
|
+
onMouseDown: function(k) {
|
|
11920
|
+
k.preventDefault();
|
|
11921
11921
|
}
|
|
11922
11922
|
},
|
|
11923
11923
|
data: A
|
|
@@ -11991,10 +11991,10 @@ var ep = function(t) {
|
|
|
11991
11991
|
}, {
|
|
11992
11992
|
key: "renderMenu",
|
|
11993
11993
|
value: function() {
|
|
11994
|
-
var o = this, i = this.getComponents(), s = i.Group, l = i.GroupHeading, c = i.Menu, a = i.MenuList, u = i.MenuPortal, h = i.LoadingMessage, g = i.NoOptionsMessage, I = i.Option, b = this.commonProps, d = this.state.focusedOption, f = this.props, p = f.captureMenuScroll, v = f.inputValue, m = f.isLoading, x = f.loadingMessage, C = f.minMenuHeight, E = f.maxMenuHeight, w = f.menuIsOpen, A = f.menuPlacement, T = f.menuPosition, L = f.menuPortalTarget,
|
|
11994
|
+
var o = this, i = this.getComponents(), s = i.Group, l = i.GroupHeading, c = i.Menu, a = i.MenuList, u = i.MenuPortal, h = i.LoadingMessage, g = i.NoOptionsMessage, I = i.Option, b = this.commonProps, d = this.state.focusedOption, f = this.props, p = f.captureMenuScroll, v = f.inputValue, m = f.isLoading, x = f.loadingMessage, C = f.minMenuHeight, E = f.maxMenuHeight, w = f.menuIsOpen, A = f.menuPlacement, T = f.menuPosition, L = f.menuPortalTarget, R = f.menuShouldBlockScroll, O = f.menuShouldScrollIntoView, k = f.noOptionsMessage, V = f.onMenuScrollToTop, Z = f.onMenuScrollToBottom;
|
|
11995
11995
|
if (!w) return null;
|
|
11996
|
-
var $ = function(
|
|
11997
|
-
var W =
|
|
11996
|
+
var $ = function(G, B) {
|
|
11997
|
+
var W = G.type, K = G.data, ne = G.isDisabled, ie = G.isSelected, P = G.label, re = G.value, xe = d === K, H = ne ? void 0 : function() {
|
|
11998
11998
|
return o.onOptionHover(K);
|
|
11999
11999
|
}, He = ne ? void 0 : function() {
|
|
12000
12000
|
return o.selectOption(K);
|
|
@@ -12014,32 +12014,32 @@ var ep = function(t) {
|
|
|
12014
12014
|
isDisabled: ne,
|
|
12015
12015
|
isSelected: ie,
|
|
12016
12016
|
key: Ve,
|
|
12017
|
-
label:
|
|
12017
|
+
label: P,
|
|
12018
12018
|
type: W,
|
|
12019
12019
|
value: re,
|
|
12020
12020
|
isFocused: xe,
|
|
12021
12021
|
innerRef: xe ? o.getFocusedOptionRef : void 0
|
|
12022
|
-
}), o.formatOptionLabel(
|
|
12022
|
+
}), o.formatOptionLabel(G.data, "menu"));
|
|
12023
12023
|
}, te;
|
|
12024
12024
|
if (this.hasOptions())
|
|
12025
|
-
te = this.getCategorizedOptions().map(function(
|
|
12026
|
-
if (
|
|
12027
|
-
var
|
|
12025
|
+
te = this.getCategorizedOptions().map(function(M) {
|
|
12026
|
+
if (M.type === "group") {
|
|
12027
|
+
var G = M.data, B = M.options, W = M.index, K = "".concat(o.getElementId("group"), "-").concat(W), ne = "".concat(K, "-heading");
|
|
12028
12028
|
return /* @__PURE__ */ F.createElement(s, ce({}, b, {
|
|
12029
12029
|
key: K,
|
|
12030
|
-
data:
|
|
12030
|
+
data: G,
|
|
12031
12031
|
options: B,
|
|
12032
12032
|
Heading: l,
|
|
12033
12033
|
headingProps: {
|
|
12034
12034
|
id: ne,
|
|
12035
|
-
data:
|
|
12035
|
+
data: M.data
|
|
12036
12036
|
},
|
|
12037
|
-
label: o.formatGroupLabel(
|
|
12038
|
-
}),
|
|
12037
|
+
label: o.formatGroupLabel(M.data)
|
|
12038
|
+
}), M.options.map(function(ie) {
|
|
12039
12039
|
return $(ie, "".concat(W, "-").concat(ie.index));
|
|
12040
12040
|
}));
|
|
12041
|
-
} else if (
|
|
12042
|
-
return $(
|
|
12041
|
+
} else if (M.type === "option")
|
|
12042
|
+
return $(M, "".concat(M.index));
|
|
12043
12043
|
});
|
|
12044
12044
|
else if (m) {
|
|
12045
12045
|
var Y = x({
|
|
@@ -12048,7 +12048,7 @@ var ep = function(t) {
|
|
|
12048
12048
|
if (Y === null) return null;
|
|
12049
12049
|
te = /* @__PURE__ */ F.createElement(h, b, Y);
|
|
12050
12050
|
} else {
|
|
12051
|
-
var X =
|
|
12051
|
+
var X = k({
|
|
12052
12052
|
inputValue: v
|
|
12053
12053
|
});
|
|
12054
12054
|
if (X === null) return null;
|
|
@@ -12059,11 +12059,11 @@ var ep = function(t) {
|
|
|
12059
12059
|
maxMenuHeight: E,
|
|
12060
12060
|
menuPlacement: A,
|
|
12061
12061
|
menuPosition: T,
|
|
12062
|
-
menuShouldScrollIntoView:
|
|
12063
|
-
}, de = /* @__PURE__ */ F.createElement(MI, ce({}, b, le), function(
|
|
12064
|
-
var
|
|
12062
|
+
menuShouldScrollIntoView: O
|
|
12063
|
+
}, de = /* @__PURE__ */ F.createElement(MI, ce({}, b, le), function(M) {
|
|
12064
|
+
var G = M.ref, B = M.placerProps, W = B.placement, K = B.maxHeight;
|
|
12065
12065
|
return /* @__PURE__ */ F.createElement(c, ce({}, b, le, {
|
|
12066
|
-
innerRef:
|
|
12066
|
+
innerRef: G,
|
|
12067
12067
|
innerProps: {
|
|
12068
12068
|
onMouseDown: o.onMenuMouseDown,
|
|
12069
12069
|
onMouseMove: o.onMenuMouseMove
|
|
@@ -12072,13 +12072,13 @@ var ep = function(t) {
|
|
|
12072
12072
|
placement: W
|
|
12073
12073
|
}), /* @__PURE__ */ F.createElement(px, {
|
|
12074
12074
|
captureEnabled: p,
|
|
12075
|
-
onTopArrive:
|
|
12075
|
+
onTopArrive: V,
|
|
12076
12076
|
onBottomArrive: Z,
|
|
12077
|
-
lockEnabled:
|
|
12077
|
+
lockEnabled: R
|
|
12078
12078
|
}, function(ne) {
|
|
12079
12079
|
return /* @__PURE__ */ F.createElement(a, ce({}, b, {
|
|
12080
|
-
innerRef: function(
|
|
12081
|
-
o.getMenuListRef(
|
|
12080
|
+
innerRef: function(P) {
|
|
12081
|
+
o.getMenuListRef(P), ne(P);
|
|
12082
12082
|
},
|
|
12083
12083
|
innerProps: {
|
|
12084
12084
|
role: "listbox",
|
|
@@ -12202,15 +12202,15 @@ var ep = function(t) {
|
|
|
12202
12202
|
var T = c != null && o !== s ? {
|
|
12203
12203
|
inputIsHidden: c,
|
|
12204
12204
|
inputIsHiddenAfterUpdate: void 0
|
|
12205
|
-
} : {}, L = a,
|
|
12206
|
-
return u && !
|
|
12205
|
+
} : {}, L = a, R = u && h;
|
|
12206
|
+
return u && !R && (L = {
|
|
12207
12207
|
value: Ao(p, v, v[0] || null),
|
|
12208
12208
|
options: v,
|
|
12209
12209
|
action: "initial-input-focus"
|
|
12210
|
-
},
|
|
12210
|
+
}, R = !h), (a == null ? void 0 : a.action) === "initial-input-focus" && (L = null), oe(oe(oe({}, m), T), {}, {
|
|
12211
12211
|
prevProps: o,
|
|
12212
12212
|
ariaSelection: L,
|
|
12213
|
-
prevWasFocused:
|
|
12213
|
+
prevWasFocused: R
|
|
12214
12214
|
});
|
|
12215
12215
|
}
|
|
12216
12216
|
}]), n;
|
|
@@ -12382,8 +12382,8 @@ var sp = /* @__PURE__ */ ((e) => (e.DATE = "DD/MM/YYYY", e))(sp || {}), Zx = ["d
|
|
|
12382
12382
|
function ap(e) {
|
|
12383
12383
|
var t = e.defaultOptions, n = t === void 0 ? !1 : t, r = e.cacheOptions, o = r === void 0 ? !1 : r, i = e.loadOptions;
|
|
12384
12384
|
e.options;
|
|
12385
|
-
var s = e.isLoading, l = s === void 0 ? !1 : s, c = e.onInputChange, a = e.filterOption, u = a === void 0 ? null : a, h = nn(e, Zx), g = h.inputValue, I = ye(void 0), b = ye(!1), d = J(Array.isArray(n) ? n : void 0), f = it(d, 2), p = f[0], v = f[1], m = J(typeof g < "u" ? g : ""), x = it(m, 2), C = x[0], E = x[1], w = J(n === !0), A = it(w, 2), T = A[0], L = A[1],
|
|
12386
|
-
o !== He && (K({}), Ve(o)), n !==
|
|
12385
|
+
var s = e.isLoading, l = s === void 0 ? !1 : s, c = e.onInputChange, a = e.filterOption, u = a === void 0 ? null : a, h = nn(e, Zx), g = h.inputValue, I = ye(void 0), b = ye(!1), d = J(Array.isArray(n) ? n : void 0), f = it(d, 2), p = f[0], v = f[1], m = J(typeof g < "u" ? g : ""), x = it(m, 2), C = x[0], E = x[1], w = J(n === !0), A = it(w, 2), T = A[0], L = A[1], R = J(void 0), O = it(R, 2), k = O[0], V = O[1], Z = J([]), $ = it(Z, 2), te = $[0], Y = $[1], X = J(!1), le = it(X, 2), de = le[0], M = le[1], G = J({}), B = it(G, 2), W = B[0], K = B[1], ne = J(void 0), ie = it(ne, 2), P = ie[0], re = ie[1], xe = J(void 0), H = it(xe, 2), He = H[0], Ve = H[1];
|
|
12386
|
+
o !== He && (K({}), Ve(o)), n !== P && (v(Array.isArray(n) ? n : void 0), re(n)), me(function() {
|
|
12387
12387
|
return b.current = !0, function() {
|
|
12388
12388
|
b.current = !1;
|
|
12389
12389
|
};
|
|
@@ -12403,18 +12403,18 @@ function ap(e) {
|
|
|
12403
12403
|
var nt = _e(function(Ct, lt) {
|
|
12404
12404
|
var Qe = II(Ct, lt, c);
|
|
12405
12405
|
if (!Qe) {
|
|
12406
|
-
I.current = void 0, E(""),
|
|
12406
|
+
I.current = void 0, E(""), V(""), Y([]), L(!1), M(!1);
|
|
12407
12407
|
return;
|
|
12408
12408
|
}
|
|
12409
12409
|
if (o && W[Qe])
|
|
12410
|
-
E(Qe),
|
|
12410
|
+
E(Qe), V(Qe), Y(W[Qe]), L(!1), M(!1);
|
|
12411
12411
|
else {
|
|
12412
12412
|
var _n = I.current = {};
|
|
12413
|
-
E(Qe), L(!0),
|
|
12414
|
-
b && _n === I.current && (I.current = void 0, L(!1),
|
|
12413
|
+
E(Qe), L(!0), M(!k), tt(Qe, function(Vt) {
|
|
12414
|
+
b && _n === I.current && (I.current = void 0, L(!1), V(Qe), Y(Vt || []), M(!1), K(Vt ? oe(oe({}, W), {}, Sr({}, Qe, Vt)) : W));
|
|
12415
12415
|
});
|
|
12416
12416
|
}
|
|
12417
|
-
}, [o, tt,
|
|
12417
|
+
}, [o, tt, k, W, c]), hn = de ? [] : C && k ? te : p || [];
|
|
12418
12418
|
return oe(oe({}, h), {}, {
|
|
12419
12419
|
options: hn,
|
|
12420
12420
|
isLoading: T || l,
|
|
@@ -12457,11 +12457,11 @@ function $x(e) {
|
|
|
12457
12457
|
}) ? u(x, s(x)) : void 0;
|
|
12458
12458
|
}, [s, u, m, p, x, c, I, w]), L = Me(function() {
|
|
12459
12459
|
return (n || !C) && T ? o === "first" ? [T].concat(Rr(I)) : [].concat(Rr(I), [T]) : I;
|
|
12460
|
-
}, [n, o, C, T, I]),
|
|
12461
|
-
if (
|
|
12462
|
-
return b(
|
|
12463
|
-
var
|
|
12464
|
-
if (
|
|
12460
|
+
}, [n, o, C, T, I]), R = _e(function(O, k) {
|
|
12461
|
+
if (k.action !== "select-option")
|
|
12462
|
+
return b(O, k);
|
|
12463
|
+
var V = Array.isArray(O) ? O : [O];
|
|
12464
|
+
if (V[V.length - 1] === T) {
|
|
12465
12465
|
if (h) h(x);
|
|
12466
12466
|
else {
|
|
12467
12467
|
var Z = u(x, x), $ = {
|
|
@@ -12473,11 +12473,11 @@ function $x(e) {
|
|
|
12473
12473
|
}
|
|
12474
12474
|
return;
|
|
12475
12475
|
}
|
|
12476
|
-
b(
|
|
12476
|
+
b(O, k);
|
|
12477
12477
|
}, [u, x, E, A, T, h, b, w]);
|
|
12478
12478
|
return oe(oe({}, d), {}, {
|
|
12479
12479
|
options: L,
|
|
12480
|
-
onChange:
|
|
12480
|
+
onChange: R
|
|
12481
12481
|
});
|
|
12482
12482
|
}
|
|
12483
12483
|
var Yx = /* @__PURE__ */ ss(function(e, t) {
|
|
@@ -12517,46 +12517,46 @@ function tE({ stackIndex: e, isScrollTarget: t, ...n }) {
|
|
|
12517
12517
|
isApiSearchEnabled: I = !1,
|
|
12518
12518
|
isInfiniteScrollable: b = !1,
|
|
12519
12519
|
loadOptionsOnFocus: d = !1
|
|
12520
|
-
} = n, { getValue: f, closeMenuOnScroll: p } = op({ options: r, isMulti: u, isScrollTarget: t }), v = (
|
|
12521
|
-
(
|
|
12522
|
-
if (s(
|
|
12523
|
-
const Z = r.filter(($) => $ && typeof $ == "object" && "label" in $ && typeof $.label == "string" ? $.label.toLowerCase().includes(
|
|
12524
|
-
|
|
12520
|
+
} = n, { getValue: f, closeMenuOnScroll: p } = op({ options: r, isMulti: u, isScrollTarget: t }), v = (O, k, V) => (a.current && a.current.abort("stale data"), a.current = new AbortController(), g == null ? void 0 : g(O, k, V, a.current)), m = qx(
|
|
12521
|
+
(O, k) => {
|
|
12522
|
+
if (s(O), r.length > 0 && !I) {
|
|
12523
|
+
const Z = r.filter(($) => $ && typeof $ == "object" && "label" in $ && typeof $.label == "string" ? $.label.toLowerCase().includes(O.toLowerCase()) : !1);
|
|
12524
|
+
k(Z);
|
|
12525
12525
|
return;
|
|
12526
12526
|
}
|
|
12527
|
-
const
|
|
12528
|
-
|
|
12527
|
+
const V = (Z) => {
|
|
12528
|
+
k(Z), o(Z);
|
|
12529
12529
|
};
|
|
12530
|
-
v == null || v(
|
|
12530
|
+
v == null || v(O, V, !1);
|
|
12531
12531
|
},
|
|
12532
12532
|
300
|
|
12533
|
-
), x = (
|
|
12534
|
-
c(!1), !(
|
|
12535
|
-
}, C = (
|
|
12536
|
-
var
|
|
12537
|
-
(
|
|
12538
|
-
}, E = (
|
|
12539
|
-
var
|
|
12540
|
-
(
|
|
12541
|
-
}, w = (
|
|
12542
|
-
var
|
|
12543
|
-
s(""), (
|
|
12544
|
-
}, A = (
|
|
12545
|
-
var
|
|
12546
|
-
(
|
|
12547
|
-
}, T = (
|
|
12533
|
+
), x = (O, k) => {
|
|
12534
|
+
c(!1), !(k && "isError" in k && k.isError) && o(O);
|
|
12535
|
+
}, C = (O) => {
|
|
12536
|
+
var k;
|
|
12537
|
+
(k = n.onMenuScrollToBottom) == null || k.call(n, O), b && g && !l && (c(!0), v(i, x, !0));
|
|
12538
|
+
}, E = (O, k) => {
|
|
12539
|
+
var V;
|
|
12540
|
+
(V = n.onInputChange) == null || V.call(n, O, k), k.action === "input-change" && I && (s(O), o([]), O || (c(!0), m(O, x)));
|
|
12541
|
+
}, w = (O) => {
|
|
12542
|
+
var k;
|
|
12543
|
+
s(""), (k = n.onBlur) == null || k.call(n, O);
|
|
12544
|
+
}, A = (O) => {
|
|
12545
|
+
var k;
|
|
12546
|
+
(k = n.onFocus) == null || k.call(n, O), !l && d && (o([]), c(!0), v == null || v(i, x, !1));
|
|
12547
|
+
}, T = (O) => (k) => {
|
|
12548
12548
|
var Z;
|
|
12549
|
-
const
|
|
12550
|
-
!n.isMulti &&
|
|
12549
|
+
const V = k.find(($) => $.label === O);
|
|
12550
|
+
!n.isMulti && V && ((Z = n.onChange) == null || Z.call(n, V, {
|
|
12551
12551
|
action: "select-option",
|
|
12552
12552
|
name: n.name,
|
|
12553
|
-
option:
|
|
12554
|
-
})), o(
|
|
12555
|
-
}, L = (
|
|
12556
|
-
c(!0), h == null || h(
|
|
12557
|
-
},
|
|
12553
|
+
option: V
|
|
12554
|
+
})), o(k), c(!1);
|
|
12555
|
+
}, L = (O) => {
|
|
12556
|
+
c(!0), h == null || h(O, T(O));
|
|
12557
|
+
}, R = h ? Jx : Ux;
|
|
12558
12558
|
return /* @__PURE__ */ y.jsx(
|
|
12559
|
-
|
|
12559
|
+
R,
|
|
12560
12560
|
{
|
|
12561
12561
|
...n,
|
|
12562
12562
|
value: n.value ? f(n.value) : null,
|
|
@@ -12792,140 +12792,140 @@ const fE = N(Oh)`
|
|
|
12792
12792
|
onValidationError: b
|
|
12793
12793
|
}) => {
|
|
12794
12794
|
const d = t ?? [], f = (o == null ? void 0 : o.validations) ?? {}, p = ye(), v = ye({}), [m, x] = J({}), { colsLength: C, colsTemplate: E, colWidth: w } = Me(() => {
|
|
12795
|
-
let
|
|
12795
|
+
let M = 0, G = "";
|
|
12796
12796
|
for (const B of r) {
|
|
12797
12797
|
let W = B.cols ? Number(B.cols) : 1;
|
|
12798
|
-
isNaN(W) && (W = 1),
|
|
12798
|
+
isNaN(W) && (W = 1), M += W, G += `${B.cols ?? W}fr `;
|
|
12799
12799
|
}
|
|
12800
|
-
return s || (
|
|
12801
|
-
colsLength:
|
|
12802
|
-
colsTemplate:
|
|
12800
|
+
return s || (M += 0.5, G += "0.5fr"), {
|
|
12801
|
+
colsLength: M,
|
|
12802
|
+
colsTemplate: G.trim(),
|
|
12803
12803
|
colWidth: `${isNaN(l) ? fp : l}px`
|
|
12804
12804
|
};
|
|
12805
12805
|
}, [r, l, s]), { fieldDependency: A, fieldConfigs: T } = Me(() => {
|
|
12806
|
-
const
|
|
12806
|
+
const M = {}, G = {};
|
|
12807
12807
|
for (const B of r) {
|
|
12808
12808
|
if (!B.valueConfig)
|
|
12809
12809
|
continue;
|
|
12810
|
-
|
|
12810
|
+
G[B.name] = B.valueConfig;
|
|
12811
12811
|
const W = B.valueConfig.columnNames;
|
|
12812
12812
|
for (const K of W)
|
|
12813
|
-
|
|
12813
|
+
M[K] || (M[K] = []), M[K].push(B.name);
|
|
12814
12814
|
}
|
|
12815
12815
|
return {
|
|
12816
|
-
fieldDependency:
|
|
12817
|
-
fieldConfigs:
|
|
12816
|
+
fieldDependency: M,
|
|
12817
|
+
fieldConfigs: G
|
|
12818
12818
|
};
|
|
12819
12819
|
}, [r]);
|
|
12820
12820
|
me(() => {
|
|
12821
12821
|
if (t)
|
|
12822
12822
|
return;
|
|
12823
|
-
const
|
|
12824
|
-
for (let
|
|
12823
|
+
const M = [];
|
|
12824
|
+
for (let G = 0; G < i; G++) {
|
|
12825
12825
|
const B = ou();
|
|
12826
|
-
|
|
12826
|
+
M.push({ [nr]: B });
|
|
12827
12827
|
}
|
|
12828
|
-
g(
|
|
12828
|
+
g(M);
|
|
12829
12829
|
}, [t, g, i]);
|
|
12830
12830
|
const L = () => {
|
|
12831
|
-
const
|
|
12832
|
-
return (
|
|
12833
|
-
},
|
|
12834
|
-
const
|
|
12831
|
+
const M = Object.entries(v.current).filter((G) => !!G[1])[0];
|
|
12832
|
+
return (M == null ? void 0 : M[1]) ?? "";
|
|
12833
|
+
}, R = () => {
|
|
12834
|
+
const M = {
|
|
12835
12835
|
[nr]: ou()
|
|
12836
12836
|
};
|
|
12837
|
-
g([...d,
|
|
12838
|
-
},
|
|
12839
|
-
const
|
|
12840
|
-
g(
|
|
12837
|
+
g([...d, M]);
|
|
12838
|
+
}, O = (M) => {
|
|
12839
|
+
const G = d.filter((B) => B[nr] !== M);
|
|
12840
|
+
g(G), x((B) => ({
|
|
12841
12841
|
...B,
|
|
12842
|
-
[
|
|
12842
|
+
[M]: {}
|
|
12843
12843
|
}));
|
|
12844
12844
|
for (const B in v.current)
|
|
12845
|
-
B.startsWith(`${
|
|
12845
|
+
B.startsWith(`${M}.`) && delete v.current[B];
|
|
12846
12846
|
b == null || b(e, L());
|
|
12847
|
-
},
|
|
12848
|
-
const W =
|
|
12847
|
+
}, k = (M, { columnNames: G = [], operationType: B }) => {
|
|
12848
|
+
const W = G.map((K) => M[K]);
|
|
12849
12849
|
return "" + iu(W, B);
|
|
12850
|
-
},
|
|
12851
|
-
const B = d.map((W) =>
|
|
12850
|
+
}, V = (M, G) => {
|
|
12851
|
+
const B = d.map((W) => M !== W[nr] ? W : {
|
|
12852
12852
|
...W,
|
|
12853
|
-
...
|
|
12853
|
+
...G
|
|
12854
12854
|
});
|
|
12855
12855
|
g(B);
|
|
12856
|
-
}, Z = (
|
|
12856
|
+
}, Z = (M, G) => {
|
|
12857
12857
|
const B = d.map((W) => {
|
|
12858
|
-
if (
|
|
12858
|
+
if (M !== W[nr])
|
|
12859
12859
|
return W;
|
|
12860
12860
|
const K = { ...W };
|
|
12861
|
-
for (const ne of
|
|
12861
|
+
for (const ne of G)
|
|
12862
12862
|
delete K[ne];
|
|
12863
12863
|
return K;
|
|
12864
12864
|
});
|
|
12865
12865
|
g(B);
|
|
12866
|
-
}, $ = (
|
|
12866
|
+
}, $ = (M, G, B, W) => {
|
|
12867
12867
|
var ie;
|
|
12868
12868
|
const K = ((ie = W == null ? void 0 : W.target) == null ? void 0 : ie.value) ?? "", ne = {
|
|
12869
12869
|
...B,
|
|
12870
|
-
[
|
|
12870
|
+
[G]: K
|
|
12871
12871
|
};
|
|
12872
|
-
if (A[
|
|
12873
|
-
for (const
|
|
12874
|
-
const re =
|
|
12875
|
-
ne[
|
|
12872
|
+
if (A[G])
|
|
12873
|
+
for (const P of A[G]) {
|
|
12874
|
+
const re = k(ne, T[P]);
|
|
12875
|
+
ne[P] = re;
|
|
12876
12876
|
}
|
|
12877
|
-
|
|
12878
|
-
}, te = (
|
|
12879
|
-
|
|
12880
|
-
}, Y = (
|
|
12877
|
+
V(M, ne);
|
|
12878
|
+
}, te = (M, G, B) => {
|
|
12879
|
+
V(M, { [G]: B });
|
|
12880
|
+
}, Y = (M, G, B, W) => {
|
|
12881
12881
|
if (B && typeof B == "object" && "value" in B && typeof B.value == "string" && typeof W.name < "u") {
|
|
12882
12882
|
const K = "prefillValues" in B && B.prefillValues, ne = {
|
|
12883
|
-
...
|
|
12883
|
+
...G,
|
|
12884
12884
|
[W.name]: B.value,
|
|
12885
12885
|
...K
|
|
12886
12886
|
};
|
|
12887
12887
|
for (const ie in ne)
|
|
12888
12888
|
if (A[ie])
|
|
12889
|
-
for (const
|
|
12890
|
-
const re =
|
|
12891
|
-
ne[
|
|
12889
|
+
for (const P of A[ie]) {
|
|
12890
|
+
const re = k(ne, T[P]);
|
|
12891
|
+
ne[P] = re;
|
|
12892
12892
|
}
|
|
12893
|
-
|
|
12893
|
+
V(M, ne);
|
|
12894
12894
|
}
|
|
12895
|
-
(W == null ? void 0 : W.action) === "clear" && W.name && Z(
|
|
12896
|
-
}, X = (
|
|
12897
|
-
|
|
12898
|
-
}, le = (
|
|
12895
|
+
(W == null ? void 0 : W.action) === "clear" && W.name && Z(M, [W.name]);
|
|
12896
|
+
}, X = (M, G, B) => {
|
|
12897
|
+
V(M, { [G]: (B == null ? void 0 : B.toISOString()) ?? "" });
|
|
12898
|
+
}, le = (M, G, B, W) => {
|
|
12899
12899
|
W && x((K) => {
|
|
12900
|
-
const ne = K[
|
|
12901
|
-
return { ...K, [
|
|
12900
|
+
const ne = K[M] ?? {};
|
|
12901
|
+
return { ...K, [M]: { ...ne, [G]: B } };
|
|
12902
12902
|
}), v.current = {
|
|
12903
12903
|
...v.current,
|
|
12904
|
-
[`${
|
|
12904
|
+
[`${M}.${G}`]: typeof B == "string" ? B : ""
|
|
12905
12905
|
}, b == null || b(e, L());
|
|
12906
|
-
}, de = (
|
|
12906
|
+
}, de = (M) => p.current === M;
|
|
12907
12907
|
return /* @__PURE__ */ y.jsxs(nE, { children: [
|
|
12908
12908
|
/* @__PURE__ */ y.jsx(rE, { ref: p, children: /* @__PURE__ */ y.jsxs(oE, { gridColumns: E, minWidth: `calc( ${C} * ${w} )`, children: [
|
|
12909
|
-
/* @__PURE__ */ y.jsx(sE, { children: r.map(({ name:
|
|
12910
|
-
d.map(({ [nr]:
|
|
12909
|
+
/* @__PURE__ */ y.jsx(sE, { children: r.map(({ name: M, label: G, isRequired: B }) => /* @__PURE__ */ y.jsx(fa, { children: /* @__PURE__ */ y.jsx(dp, { label: G, isRequired: B }) }, M)) }),
|
|
12910
|
+
d.map(({ [nr]: M, ...G }) => /* @__PURE__ */ y.jsxs(lp, { children: [
|
|
12911
12911
|
r.map(({ name: B, key: W, ...K }) => {
|
|
12912
12912
|
var ne;
|
|
12913
|
-
return /* @__PURE__ */ y.jsx(fa, { hasError: !!((ne = m == null ? void 0 : m[
|
|
12913
|
+
return /* @__PURE__ */ y.jsx(fa, { hasError: !!((ne = m == null ? void 0 : m[M]) != null && ne[B]), children: /* @__PURE__ */ y.jsx(
|
|
12914
12914
|
Wo,
|
|
12915
12915
|
{
|
|
12916
12916
|
name: B,
|
|
12917
|
-
value:
|
|
12917
|
+
value: G[B],
|
|
12918
12918
|
...K,
|
|
12919
12919
|
className: so,
|
|
12920
12920
|
label: "",
|
|
12921
12921
|
hideHelperText: !0,
|
|
12922
12922
|
validation: f == null ? void 0 : f[B],
|
|
12923
12923
|
onFocus: I,
|
|
12924
|
-
inputChangeHandler: (ie) => $(
|
|
12925
|
-
checkboxChangeHandler: (...ie) => te(
|
|
12926
|
-
selectChangeHandler: (...ie) => Y(
|
|
12927
|
-
dateChangeHandler: (ie,
|
|
12928
|
-
onValidationError: (...ie) => le(
|
|
12924
|
+
inputChangeHandler: (ie) => $(M, B, G, ie),
|
|
12925
|
+
checkboxChangeHandler: (...ie) => te(M, B, ie[1]),
|
|
12926
|
+
selectChangeHandler: (...ie) => Y(M, G, ...ie),
|
|
12927
|
+
dateChangeHandler: (ie, P) => X(M, ie, P),
|
|
12928
|
+
onValidationError: (...ie) => le(M, ...ie),
|
|
12929
12929
|
fetchConfig: a == null ? void 0 : a[B],
|
|
12930
12930
|
createConfig: u == null ? void 0 : u[B],
|
|
12931
12931
|
isScrollTarget: de,
|
|
@@ -12936,29 +12936,29 @@ const fE = N(Oh)`
|
|
|
12936
12936
|
}
|
|
12937
12937
|
) }, B ?? W);
|
|
12938
12938
|
}),
|
|
12939
|
-
s ? null : /* @__PURE__ */ y.jsx(fa, { children: /* @__PURE__ */ y.jsx(z, { width: "100%", height: "100%", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y.jsx(up, { onClick: () =>
|
|
12940
|
-
] },
|
|
12939
|
+
s ? null : /* @__PURE__ */ y.jsx(fa, { children: /* @__PURE__ */ y.jsx(z, { width: "100%", height: "100%", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y.jsx(up, { onClick: () => O(M), children: /* @__PURE__ */ y.jsx(hE, {}) }) }) })
|
|
12940
|
+
] }, M))
|
|
12941
12941
|
] }) }),
|
|
12942
12942
|
/* @__PURE__ */ y.jsxs(iE, { children: [
|
|
12943
|
-
s ? null : /* @__PURE__ */ y.jsxs(aE, { onClick:
|
|
12943
|
+
s ? null : /* @__PURE__ */ y.jsxs(aE, { onClick: R, children: [
|
|
12944
12944
|
/* @__PURE__ */ y.jsx(cp, {}),
|
|
12945
12945
|
/* @__PURE__ */ y.jsx(pe, { children: "Add Line" })
|
|
12946
12946
|
] }),
|
|
12947
12947
|
c.length ? /* @__PURE__ */ y.jsx(cE, { children: c.map(
|
|
12948
|
-
({ label:
|
|
12949
|
-
/* @__PURE__ */ y.jsx(pe, { fontWeight: 500, children:
|
|
12948
|
+
({ label: M, columnName: G, operationType: B, prefix: W = "", prefixKey: K, suffix: ne = "", suffixKey: ie }) => /* @__PURE__ */ y.jsxs(lE, { children: [
|
|
12949
|
+
/* @__PURE__ */ y.jsx(pe, { fontWeight: 500, children: M }),
|
|
12950
12950
|
/* @__PURE__ */ y.jsxs(pe, { children: [
|
|
12951
12951
|
/* @__PURE__ */ y.jsxs("span", { children: [
|
|
12952
12952
|
n[K] ?? W,
|
|
12953
12953
|
" "
|
|
12954
12954
|
] }),
|
|
12955
12955
|
/* @__PURE__ */ y.jsx("span", { children: iu(
|
|
12956
|
-
d.map((
|
|
12956
|
+
d.map((P) => P[G]),
|
|
12957
12957
|
B
|
|
12958
12958
|
) }),
|
|
12959
12959
|
/* @__PURE__ */ y.jsx("span", { children: n[ie] ?? ne })
|
|
12960
12960
|
] })
|
|
12961
|
-
] },
|
|
12961
|
+
] }, M)
|
|
12962
12962
|
) }) : null
|
|
12963
12963
|
] })
|
|
12964
12964
|
] });
|
|
@@ -13227,59 +13227,59 @@ const gE = N(be)`
|
|
|
13227
13227
|
showGlobalLoader: w = !1,
|
|
13228
13228
|
hideHelperText: A = !1,
|
|
13229
13229
|
meta: { isExpandable: T = v === "table", isExpanded: L = !0 } = {}
|
|
13230
|
-
} = g, [
|
|
13230
|
+
} = g, [R, O] = J(!1), [k, V] = J(""), [Z, $] = J(L);
|
|
13231
13231
|
me(() => {
|
|
13232
|
-
|
|
13233
|
-
}, [
|
|
13234
|
-
const te = (
|
|
13232
|
+
R || Y(g.value, !1);
|
|
13233
|
+
}, [R, g.value]);
|
|
13234
|
+
const te = (P) => {
|
|
13235
13235
|
var re;
|
|
13236
|
-
|
|
13236
|
+
P && !R && O(!0), (re = g.onFocus) == null || re.call(g, P);
|
|
13237
13237
|
};
|
|
13238
|
-
function Y(
|
|
13238
|
+
function Y(P, re = !0, xe) {
|
|
13239
13239
|
let H = "";
|
|
13240
|
-
if ((I != null && I.isRequired || C) && (H =
|
|
13241
|
-
const Ve = I.isRequired(
|
|
13240
|
+
if ((I != null && I.isRequired || C) && (H = P ? "" : Pu, !P && typeof (I == null ? void 0 : I.isRequired) == "function")) {
|
|
13241
|
+
const Ve = I.isRequired(P);
|
|
13242
13242
|
Ve && typeof Ve == "boolean" ? H = Pu : Ve && (H = Ve);
|
|
13243
13243
|
}
|
|
13244
13244
|
let He = { id: d, name: p, label: f };
|
|
13245
|
-
if (g.type === "date" ? He = { ...He, disableFuture: g.disableFuture, disablePast: g.disablePast } : g.type === "number" ? He = { ...He, min: g.min, max: g.max } : g.type === "text" && g.multiline && (He = { ...He, maxCharacters: g.maxCharacters }),
|
|
13246
|
-
const Ve = I.validate(
|
|
13245
|
+
if (g.type === "date" ? He = { ...He, disableFuture: g.disableFuture, disablePast: g.disablePast } : g.type === "number" ? He = { ...He, min: g.min, max: g.max } : g.type === "text" && g.multiline && (He = { ...He, maxCharacters: g.maxCharacters }), P && !H && (I != null && I.validate)) {
|
|
13246
|
+
const Ve = I.validate(P, { ...He, ...xe });
|
|
13247
13247
|
typeof Ve == "boolean" && Ve === !1 ? H = Wx : typeof Ve == "string" && (H = Ve);
|
|
13248
13248
|
}
|
|
13249
|
-
re &&
|
|
13249
|
+
re && V(H), s == null || s(p, H, re);
|
|
13250
13250
|
}
|
|
13251
|
-
const X = (
|
|
13251
|
+
const X = (P) => {
|
|
13252
13252
|
var re;
|
|
13253
|
-
|
|
13254
|
-
}, le = () => A ? null : g.helperText ? /* @__PURE__ */ y.jsx(ju, { children: b }) :
|
|
13255
|
-
|
|
13256
|
-
},
|
|
13257
|
-
|
|
13258
|
-
},
|
|
13259
|
-
c == null || c(
|
|
13260
|
-
}, B = (
|
|
13261
|
-
a == null || a(p,
|
|
13262
|
-
}, W = (
|
|
13263
|
-
u == null || u(p,
|
|
13264
|
-
}, K = (
|
|
13265
|
-
|
|
13266
|
-
}, ne = (
|
|
13253
|
+
R || O(!0), (re = g.onBlur) == null || re.call(g, P), R && m && Y(g.value);
|
|
13254
|
+
}, le = () => A ? null : g.helperText ? /* @__PURE__ */ y.jsx(ju, { children: b }) : R && k ? /* @__PURE__ */ y.jsx(ju, { className: "helper--error", children: k }) : null, de = (P) => {
|
|
13255
|
+
P && !R && O(!0), l == null || l(P), R && x && Y(P.target.value);
|
|
13256
|
+
}, M = (P, re) => {
|
|
13257
|
+
P && !R && O(!0), h == null || h(P, re), R && x && Y(re);
|
|
13258
|
+
}, G = (P, re) => {
|
|
13259
|
+
c == null || c(P, re), P && !R && O(!0), P && typeof P == "object" && "value" in P && R && x && Y(P.value);
|
|
13260
|
+
}, B = (P, re) => {
|
|
13261
|
+
a == null || a(p, P, re), P && !R && O(!0), R && x && Y(P);
|
|
13262
|
+
}, W = (P) => {
|
|
13263
|
+
u == null || u(p, P);
|
|
13264
|
+
}, K = (P, re) => {
|
|
13265
|
+
R && (s == null || s(P, re), V(typeof re == "string" ? re : ""));
|
|
13266
|
+
}, ne = (P) => {
|
|
13267
13267
|
$((re) => !re);
|
|
13268
|
-
}, ie = (
|
|
13268
|
+
}, ie = (P) => {
|
|
13269
13269
|
if (w)
|
|
13270
13270
|
return /* @__PURE__ */ y.jsx(Cc, { variant: "rounded", height: 29.69, animation: "wave" });
|
|
13271
|
-
switch (
|
|
13271
|
+
switch (P.type) {
|
|
13272
13272
|
case "select":
|
|
13273
13273
|
return /* @__PURE__ */ y.jsx(Bu, { children: /* @__PURE__ */ y.jsx(
|
|
13274
13274
|
Ho,
|
|
13275
13275
|
{
|
|
13276
|
-
...
|
|
13276
|
+
...P,
|
|
13277
13277
|
stackIndex: o,
|
|
13278
13278
|
isScrollTarget: i,
|
|
13279
|
-
className: `formField__select ${
|
|
13279
|
+
className: `formField__select ${k && R ? "formField__select--error" : ""} ${P.className || ""}`,
|
|
13280
13280
|
classNamePrefix: "hiverFormField",
|
|
13281
13281
|
onBlur: X,
|
|
13282
|
-
onChange:
|
|
13282
|
+
onChange: G,
|
|
13283
13283
|
onFocus: te,
|
|
13284
13284
|
menuPortalTarget: n
|
|
13285
13285
|
}
|
|
@@ -13288,13 +13288,13 @@ const gE = N(be)`
|
|
|
13288
13288
|
return /* @__PURE__ */ y.jsx(Bu, { children: /* @__PURE__ */ y.jsx(
|
|
13289
13289
|
tE,
|
|
13290
13290
|
{
|
|
13291
|
-
...
|
|
13291
|
+
...P,
|
|
13292
13292
|
stackIndex: o,
|
|
13293
13293
|
isScrollTarget: i,
|
|
13294
|
-
className: `formField__select ${
|
|
13294
|
+
className: `formField__select ${k && R ? "formField__select--error" : ""} ${P.className || ""}`,
|
|
13295
13295
|
classNamePrefix: "hiverFormField",
|
|
13296
13296
|
onBlur: X,
|
|
13297
|
-
onChange:
|
|
13297
|
+
onChange: G,
|
|
13298
13298
|
onFocus: te,
|
|
13299
13299
|
loadOptions: e == null ? void 0 : e.loadOptions,
|
|
13300
13300
|
createOption: t == null ? void 0 : t.createOption,
|
|
@@ -13305,20 +13305,20 @@ const gE = N(be)`
|
|
|
13305
13305
|
return /* @__PURE__ */ y.jsx(
|
|
13306
13306
|
dE,
|
|
13307
13307
|
{
|
|
13308
|
-
...
|
|
13308
|
+
...P,
|
|
13309
13309
|
label: void 0,
|
|
13310
13310
|
onBlur: X,
|
|
13311
13311
|
onFocus: te,
|
|
13312
13312
|
onChange: B,
|
|
13313
|
-
error: !!(
|
|
13313
|
+
error: !!(k && R)
|
|
13314
13314
|
}
|
|
13315
13315
|
);
|
|
13316
13316
|
case "table":
|
|
13317
13317
|
return /* @__PURE__ */ y.jsx(
|
|
13318
13318
|
Ps,
|
|
13319
13319
|
{
|
|
13320
|
-
...
|
|
13321
|
-
value:
|
|
13320
|
+
...P,
|
|
13321
|
+
value: P.value,
|
|
13322
13322
|
onChange: W,
|
|
13323
13323
|
onFocus: te,
|
|
13324
13324
|
onValidationError: K,
|
|
@@ -13328,7 +13328,7 @@ const gE = N(be)`
|
|
|
13328
13328
|
}
|
|
13329
13329
|
);
|
|
13330
13330
|
case "checkbox":
|
|
13331
|
-
return /* @__PURE__ */ y.jsx(pE, { ...
|
|
13331
|
+
return /* @__PURE__ */ y.jsx(pE, { ...P, onChange: M, onFocus: te, onBlur: X });
|
|
13332
13332
|
default:
|
|
13333
13333
|
return /* @__PURE__ */ y.jsx(
|
|
13334
13334
|
vE,
|
|
@@ -13336,18 +13336,18 @@ const gE = N(be)`
|
|
|
13336
13336
|
variant: "outlined",
|
|
13337
13337
|
fullWidth: !0,
|
|
13338
13338
|
id: d,
|
|
13339
|
-
...
|
|
13340
|
-
value:
|
|
13339
|
+
...P,
|
|
13340
|
+
value: P.value,
|
|
13341
13341
|
label: void 0,
|
|
13342
13342
|
onBlur: X,
|
|
13343
13343
|
onChange: de,
|
|
13344
13344
|
onFocus: te,
|
|
13345
|
-
error: !!(
|
|
13345
|
+
error: !!(k && R),
|
|
13346
13346
|
inputProps: {
|
|
13347
|
-
type:
|
|
13348
|
-
min:
|
|
13349
|
-
max:
|
|
13350
|
-
...
|
|
13347
|
+
type: P.type,
|
|
13348
|
+
min: P.min,
|
|
13349
|
+
max: P.max,
|
|
13350
|
+
...P.inputProps
|
|
13351
13351
|
}
|
|
13352
13352
|
}
|
|
13353
13353
|
);
|
|
@@ -13698,9 +13698,9 @@ const gE = N(be)`
|
|
|
13698
13698
|
const d = ((w = I.optionsMap) == null ? void 0 : w[g]) || {}, f = i === d.searchTerm ? d : {}, { options: p = [], hasMore: v = !0, currentPage: m = 0 } = f, { enabled: x, limit: C } = u, E = C || 10;
|
|
13699
13699
|
try {
|
|
13700
13700
|
let L;
|
|
13701
|
-
const
|
|
13702
|
-
if (v && (L = await BE({ fieldName: r, formId: o }, { pagination:
|
|
13703
|
-
throw
|
|
13701
|
+
const R = h == null ? void 0 : h.signal, O = x ? { pageNumber: m + 1, searchTerm: i, limit: E, enabled: x } : null;
|
|
13702
|
+
if (v && (L = await BE({ fieldName: r, formId: o }, { pagination: O || {}, args: c, interfaceId: a })), R != null && R.aborted)
|
|
13703
|
+
throw R.reason;
|
|
13704
13704
|
if (!L || !L.data || !("data" in L.data) || !Array.isArray(L.data.data) || !L.data.data.length) {
|
|
13705
13705
|
const { common: Y } = t(), X = (A = Y.optionsMap) == null ? void 0 : A[g];
|
|
13706
13706
|
return l == null || l(X.options ?? []), {
|
|
@@ -13710,10 +13710,10 @@ const gE = N(be)`
|
|
|
13710
13710
|
hasMore: !1
|
|
13711
13711
|
};
|
|
13712
13712
|
}
|
|
13713
|
-
const
|
|
13713
|
+
const V = L.data.data.map((Y) => b ? {
|
|
13714
13714
|
...Y,
|
|
13715
13715
|
avatarUrl: Y.avatarUrl || x3
|
|
13716
|
-
} : (delete Y.avatarUrl, Y)), Z = [...p, ...
|
|
13716
|
+
} : (delete Y.avatarUrl, Y)), Z = [...p, ...V], $ = x ? V.length >= E : !1, te = c0(Z, (Y) => Y.value);
|
|
13717
13717
|
return l == null || l(te), {
|
|
13718
13718
|
optionsList: te,
|
|
13719
13719
|
fieldName: r,
|
|
@@ -13724,8 +13724,8 @@ const gE = N(be)`
|
|
|
13724
13724
|
key: g
|
|
13725
13725
|
};
|
|
13726
13726
|
} catch (L) {
|
|
13727
|
-
const { common:
|
|
13728
|
-
return l == null || l(
|
|
13727
|
+
const { common: R } = t(), O = ((T = R.optionsMap) == null ? void 0 : T[g]) || {};
|
|
13728
|
+
return l == null || l(O.options ?? []), n(L);
|
|
13729
13729
|
}
|
|
13730
13730
|
},
|
|
13731
13731
|
{
|
|
@@ -13787,10 +13787,10 @@ const gE = N(be)`
|
|
|
13787
13787
|
conversationId: r
|
|
13788
13788
|
}
|
|
13789
13789
|
});
|
|
13790
|
-
}, QE = (e, t, n = "email", r) => {
|
|
13791
|
-
const
|
|
13792
|
-
return
|
|
13793
|
-
url: `${UE.replace(":id", e)}?${
|
|
13790
|
+
}, QE = (e, t, n = "email", r, o) => {
|
|
13791
|
+
const i = new URLSearchParams();
|
|
13792
|
+
return i.append("channel_type", n), o && i.append("senderEmail", o), ht({
|
|
13793
|
+
url: `${UE.replace(":id", e)}?${i.toString()}`,
|
|
13794
13794
|
method: yt.POST,
|
|
13795
13795
|
data: {
|
|
13796
13796
|
externalResourceId: t,
|
|
@@ -14038,14 +14038,15 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14038
14038
|
id: e,
|
|
14039
14039
|
externalResourceId: t,
|
|
14040
14040
|
channelType: n,
|
|
14041
|
-
conversationId: r
|
|
14042
|
-
|
|
14043
|
-
|
|
14041
|
+
conversationId: r,
|
|
14042
|
+
email: o
|
|
14043
|
+
}, { rejectWithValue: i }) => {
|
|
14044
|
+
var s;
|
|
14044
14045
|
try {
|
|
14045
|
-
await QE(e, t, n, r);
|
|
14046
|
-
} catch (
|
|
14047
|
-
return
|
|
14048
|
-
status: (
|
|
14046
|
+
await QE(e, t, n, r, o);
|
|
14047
|
+
} catch (l) {
|
|
14048
|
+
return i({
|
|
14049
|
+
status: (s = l.response) == null ? void 0 : s.status
|
|
14049
14050
|
});
|
|
14050
14051
|
}
|
|
14051
14052
|
}
|
|
@@ -14163,13 +14164,13 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14163
14164
|
isCardLevelError: I,
|
|
14164
14165
|
fieldName: b,
|
|
14165
14166
|
showErrorIcon: d
|
|
14166
|
-
} = e, f = ye(null), p = ye(null), { email: v, currentSmIds: m, conversationId: x, sendTrackingEvent: C, connectorFunctions: E } = $e(Je), w = we(_4), A = w == null ? void 0 : w[g], [T, L] = J(!1),
|
|
14167
|
+
} = e, f = ye(null), p = ye(null), { email: v, currentSmIds: m, conversationId: x, sendTrackingEvent: C, connectorFunctions: E } = $e(Je), w = we(_4), A = w == null ? void 0 : w[g], [T, L] = J(!1), R = Me(() => {
|
|
14167
14168
|
if (n && I) {
|
|
14168
14169
|
const { error_message: X } = Xu(n);
|
|
14169
14170
|
return X;
|
|
14170
14171
|
}
|
|
14171
14172
|
return c ? Af.replace(/{{connector_name}}/g, (a == null ? void 0 : a[0]) || "") : Ml;
|
|
14172
|
-
}, [n, c, a, I]),
|
|
14173
|
+
}, [n, c, a, I]), O = _e(() => {
|
|
14173
14174
|
const X = n || S4(A, a), { error_code: le, error_message: de } = Xu(X);
|
|
14174
14175
|
C == null || C(Om, {
|
|
14175
14176
|
sm_ids: m,
|
|
@@ -14195,17 +14196,17 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14195
14196
|
h == null ? void 0 : h.externalResourceId
|
|
14196
14197
|
]);
|
|
14197
14198
|
me(() => {
|
|
14198
|
-
(n && I || c && A) &&
|
|
14199
|
-
}, [
|
|
14199
|
+
(n && I || c && A) && O();
|
|
14200
|
+
}, [O, A, c, n, I]), me(() => {
|
|
14200
14201
|
const X = r ? p.current : f.current;
|
|
14201
14202
|
if (X) {
|
|
14202
14203
|
const le = X.scrollHeight > X.clientHeight || X.scrollWidth > X.clientWidth;
|
|
14203
14204
|
L(le);
|
|
14204
14205
|
}
|
|
14205
14206
|
}, [t, r]);
|
|
14206
|
-
const
|
|
14207
|
-
let
|
|
14208
|
-
s === "date" &&
|
|
14207
|
+
const k = o == Ba.NOT_FOUND;
|
|
14208
|
+
let V = k ? Ei : t;
|
|
14209
|
+
s === "date" && V && !k && (V = new Date(parseInt(V)).toLocaleDateString(navigator.language));
|
|
14209
14210
|
const Z = !!n || c, $ = () => {
|
|
14210
14211
|
l ? E == null || E.redirectToAdmin() : window.open(db, "_blank");
|
|
14211
14212
|
}, te = () => {
|
|
@@ -14217,13 +14218,13 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14217
14218
|
}, Y = (X) => {
|
|
14218
14219
|
const le = /<>(.*?)<>/g, de = X.split(le);
|
|
14219
14220
|
return /* @__PURE__ */ y.jsx(Ae.Fragment, { children: de.map(
|
|
14220
|
-
(
|
|
14221
|
+
(M, G) => G % 2 === 1 ? /* @__PURE__ */ y.jsx(tv, { variant: "body2", onClick: $, children: M }, G) : M
|
|
14221
14222
|
) });
|
|
14222
14223
|
};
|
|
14223
14224
|
return i ? /* @__PURE__ */ y.jsx(Gn, { variant: "rounded", width: "100%", height: 16, animation: "wave", margin: "4px 0 0 0" }) : Z ? /* @__PURE__ */ y.jsxs(Nf, { gap: "7px", children: [
|
|
14224
14225
|
d ? /* @__PURE__ */ y.jsx(z, { marginTop: "3px", flexShrink: "0", children: /* @__PURE__ */ y.jsx("img", { src: T4, width: "18px", height: "18px" }) }) : null,
|
|
14225
|
-
/* @__PURE__ */ y.jsx(kf, { variant: "body2", children:
|
|
14226
|
-
] }) : /* @__PURE__ */ y.jsx(We, { title: T ?
|
|
14226
|
+
/* @__PURE__ */ y.jsx(kf, { variant: "body2", children: R ? Y(R) : Ml })
|
|
14227
|
+
] }) : /* @__PURE__ */ y.jsx(We, { title: T ? V : null, placement: "bottom", children: r ? /* @__PURE__ */ y.jsx(
|
|
14227
14228
|
Pf,
|
|
14228
14229
|
{
|
|
14229
14230
|
ref: p,
|
|
@@ -14232,9 +14233,9 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14232
14233
|
href: r,
|
|
14233
14234
|
fontSize: "13px",
|
|
14234
14235
|
onClick: te,
|
|
14235
|
-
children:
|
|
14236
|
+
children: V || Ei
|
|
14236
14237
|
}
|
|
14237
|
-
) : /* @__PURE__ */ y.jsx(rv, { ref: f, variant: "body2", children:
|
|
14238
|
+
) : /* @__PURE__ */ y.jsx(rv, { ref: f, variant: "body2", children: V || Ei }) });
|
|
14238
14239
|
}, yp = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_825_73646)'%3e%3cpath%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_825_73646'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", el = ({
|
|
14239
14240
|
shown: e,
|
|
14240
14241
|
setShown: t,
|
|
@@ -14261,21 +14262,21 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14261
14262
|
] })
|
|
14262
14263
|
}
|
|
14263
14264
|
), Cp = (e) => {
|
|
14264
|
-
var
|
|
14265
|
-
const { id: t, cardTitle: n, specificCardData: r, specificConnectorApiStatus: o, isOpen: i, currentCard: s } = e, l = 24, c = (o == null ? void 0 : o[t]) === ee.IDLE, a = (o == null ? void 0 : o[t]) === ee.LOADING, u = (o == null ? void 0 : o[t]) === ee.FAILED, { cardType: h, data: g, cardErrorMessage: I, redirectToAdminTab: b, connectorNames: d } = (r == null ? void 0 : r[t]) || {}, f = h === "flat", [p, v] = J(!1), [m, x] = J(!1), [C, E] = J(!1), [w, A] = J(!1), T = ((
|
|
14265
|
+
var M, G, B;
|
|
14266
|
+
const { id: t, cardTitle: n, specificCardData: r, specificConnectorApiStatus: o, isOpen: i, currentCard: s } = e, l = 24, c = (o == null ? void 0 : o[t]) === ee.IDLE, a = (o == null ? void 0 : o[t]) === ee.LOADING, u = (o == null ? void 0 : o[t]) === ee.FAILED, { cardType: h, data: g, cardErrorMessage: I, redirectToAdminTab: b, connectorNames: d } = (r == null ? void 0 : r[t]) || {}, f = h === "flat", [p, v] = J(!1), [m, x] = J(!1), [C, E] = J(!1), [w, A] = J(!1), T = ((M = g == null ? void 0 : g.listItems) == null ? void 0 : M.statusCode) !== 401, L = Me(() => {
|
|
14266
14267
|
var W, K, ne, ie;
|
|
14267
14268
|
return f && ((W = g == null ? void 0 : g.flatDisplay) != null && W.data) ? g.flatDisplay.data : !f && ((ie = (ne = (K = g == null ? void 0 : g.listItems) == null ? void 0 : K.fields) == null ? void 0 : ne[0]) != null && ie.data) ? g.listItems.fields[0].data : [];
|
|
14268
|
-
}, [f, g]),
|
|
14269
|
+
}, [f, g]), R = Me(() => L == null ? void 0 : L.slice(0, 5), [L]), [O, k] = J([]), V = ye(null), [Z, $] = J(0), te = p ? -180 : 0, Y = f ? !1 : !!((G = g == null ? void 0 : g.listItems) != null && G.errorMessage), X = Y || u || I, le = c && !Y && i && (C || m);
|
|
14269
14270
|
Kr(() => {
|
|
14270
14271
|
var W;
|
|
14271
|
-
(W =
|
|
14272
|
-
}, [o == null ? void 0 : o[t],
|
|
14273
|
-
var ie,
|
|
14274
|
-
const W = ((L == null ? void 0 : L.length) || 0) > 5, K = !f && (((
|
|
14272
|
+
(W = V.current) != null && W.scrollHeight && $(V.current.scrollHeight + l);
|
|
14273
|
+
}, [o == null ? void 0 : o[t], O, V]), me(() => {
|
|
14274
|
+
var ie, P;
|
|
14275
|
+
const W = ((L == null ? void 0 : L.length) || 0) > 5, K = !f && (((P = (ie = g == null ? void 0 : g.listItems) == null ? void 0 : ie.fields) == null ? void 0 : P.length) || 0) > 1;
|
|
14275
14276
|
E(W && !K), x(K);
|
|
14276
14277
|
}, [g, f, L == null ? void 0 : L.length]), me(() => {
|
|
14277
|
-
|
|
14278
|
-
}, [g, p,
|
|
14278
|
+
k(p ? L : R);
|
|
14279
|
+
}, [g, p, R, L]);
|
|
14279
14280
|
const de = () => {
|
|
14280
14281
|
C ? v((W) => !W) : A((W) => !W);
|
|
14281
14282
|
};
|
|
@@ -14289,7 +14290,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14289
14290
|
setShowModal: A
|
|
14290
14291
|
}
|
|
14291
14292
|
) }),
|
|
14292
|
-
/* @__PURE__ */ y.jsx(Kb, { className: i ? "" : "slideUp", height: Z, children: /* @__PURE__ */ y.jsx(z, { ref:
|
|
14293
|
+
/* @__PURE__ */ y.jsx(Kb, { className: i ? "" : "slideUp", height: Z, children: /* @__PURE__ */ y.jsx(z, { ref: V, gap: 1, margin: "12px", children: a && !(O != null && O.length) ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
14293
14294
|
/* @__PURE__ */ y.jsx(Gn, { variant: "rounded", width: "100%", height: 20, animation: "wave" }),
|
|
14294
14295
|
/* @__PURE__ */ y.jsx(Gn, { variant: "rounded", width: "100%", height: 20, animation: "wave" })
|
|
14295
14296
|
] }) : /* @__PURE__ */ y.jsx(y.Fragment, { children: X ? /* @__PURE__ */ y.jsx(be, { margin: "8px 0", children: /* @__PURE__ */ y.jsx(
|
|
@@ -14306,8 +14307,8 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14306
14307
|
currentCard: s,
|
|
14307
14308
|
isCardLevelError: !0
|
|
14308
14309
|
}
|
|
14309
|
-
) }) :
|
|
14310
|
-
const { value: K, label: ne, deepLink: ie, type:
|
|
14310
|
+
) }) : O != null && O.length ? O == null ? void 0 : O.map((W) => {
|
|
14311
|
+
const { value: K, label: ne, deepLink: ie, type: P } = W, re = "errorMessage" in W ? W.errorMessage : null, xe = "statusCode" in W ? W.statusCode : null;
|
|
14311
14312
|
return /* @__PURE__ */ y.jsxs("div", { children: [
|
|
14312
14313
|
/* @__PURE__ */ y.jsx(ev, { variant: "overline", children: ne }),
|
|
14313
14314
|
/* @__PURE__ */ y.jsx(
|
|
@@ -14318,7 +14319,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14318
14319
|
deepLink: ie,
|
|
14319
14320
|
statusCode: xe,
|
|
14320
14321
|
isLoading: a,
|
|
14321
|
-
type:
|
|
14322
|
+
type: P,
|
|
14322
14323
|
cardTitle: n,
|
|
14323
14324
|
currentCard: s,
|
|
14324
14325
|
cardId: t,
|
|
@@ -14506,30 +14507,30 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14506
14507
|
} = e, l = en(), { availableFeatures: c, sendTrackingEvent: a, conversationId: u, currentSmIds: h } = $e(Je), { userGroupId: g } = xn() || {}, [I, b] = J(!!i), [d, f] = J(!1), [p, v] = J(!1), [m, x] = J(!1), { id: C, title: E, externalResourceId: w = "", forms: A = [], logoUrl: T } = t;
|
|
14507
14508
|
let L = C;
|
|
14508
14509
|
w && (L = `${L}_${w}`);
|
|
14509
|
-
const { data:
|
|
14510
|
-
var
|
|
14511
|
-
if (
|
|
14510
|
+
const { data: R, cardType: O, cardErrorMessage: k, connectorNames: V } = (n == null ? void 0 : n[L]) ?? {}, Z = (V == null ? void 0 : V[0]) || "", $ = (o == null ? void 0 : o[L]) === ee.LOADING, te = (o == null ? void 0 : o[L]) === ee.FAILED, Y = !!(ft(c, mf) && w), X = Me(() => {
|
|
14511
|
+
var P, re;
|
|
14512
|
+
if (k || te || !(ft(c, Um) && A.some((xe) => xe.type === "edit")))
|
|
14512
14513
|
return !1;
|
|
14513
|
-
switch (
|
|
14514
|
+
switch (O) {
|
|
14514
14515
|
case "flat":
|
|
14515
|
-
return !!((
|
|
14516
|
+
return !!((R == null ? void 0 : R.flatDisplay.externalResourceId) ?? t.externalResourceId);
|
|
14516
14517
|
case "flat_with_list":
|
|
14517
|
-
return ((
|
|
14518
|
+
return ((P = R == null ? void 0 : R.listItems) == null ? void 0 : P.fields.length) === 1 ? (re = R == null ? void 0 : R.listItems) == null ? void 0 : re.fields.some((xe) => xe.externalResourceId) : !1;
|
|
14518
14519
|
default:
|
|
14519
14520
|
return !1;
|
|
14520
14521
|
}
|
|
14521
|
-
}, [
|
|
14522
|
-
(
|
|
14523
|
-
const re =
|
|
14522
|
+
}, [R, O, c, A, t, k, te]), le = _e(
|
|
14523
|
+
(P = !1) => {
|
|
14524
|
+
const re = P ? Im : Cm;
|
|
14524
14525
|
r && C && u && l(Ro({ id: C, email: r, conversationId: u, externalResourceId: w })).unwrap().then((xe) => {
|
|
14525
14526
|
const H = {
|
|
14526
|
-
...jl(xe, E,
|
|
14527
|
+
...jl(xe, E, P, !0),
|
|
14527
14528
|
sm_ids: h
|
|
14528
14529
|
};
|
|
14529
14530
|
a(re, H);
|
|
14530
14531
|
}).catch((xe) => {
|
|
14531
14532
|
const H = {
|
|
14532
|
-
...jl(xe, E,
|
|
14533
|
+
...jl(xe, E, P, !1),
|
|
14533
14534
|
sm_ids: h
|
|
14534
14535
|
};
|
|
14535
14536
|
a(re, H);
|
|
@@ -14540,35 +14541,35 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14540
14541
|
me(() => {
|
|
14541
14542
|
I && le(!0);
|
|
14542
14543
|
}, [I, le]);
|
|
14543
|
-
const de = (
|
|
14544
|
+
const de = (P, re) => {
|
|
14544
14545
|
var H;
|
|
14545
|
-
|
|
14546
|
+
P == null || P.stopPropagation(), l(Ro({ id: re, email: r, conversationId: u, isRefresh: !0, externalResourceId: w })).unwrap().then(() => {
|
|
14546
14547
|
a(sm, {
|
|
14547
14548
|
id: re
|
|
14548
14549
|
});
|
|
14549
14550
|
});
|
|
14550
|
-
const xe =
|
|
14551
|
+
const xe = P.target.tagName === "BUTTON" ? (H = P.target) == null ? void 0 : H.firstChild : P.target;
|
|
14551
14552
|
xe.className && (xe.className = ""), setTimeout(() => xe.className = "selected", 1);
|
|
14552
|
-
},
|
|
14553
|
-
|
|
14553
|
+
}, M = (P, re) => {
|
|
14554
|
+
P.stopPropagation(), !(n != null && n[re]) && !$ && le(), a(I ? im : om, {
|
|
14554
14555
|
id: re
|
|
14555
14556
|
}), b((xe) => !xe);
|
|
14556
|
-
},
|
|
14557
|
-
|
|
14558
|
-
const re =
|
|
14557
|
+
}, G = (P) => {
|
|
14558
|
+
P.stopPropagation();
|
|
14559
|
+
const re = P.currentTarget.offsetWidth < P.currentTarget.scrollWidth;
|
|
14559
14560
|
f(!!re);
|
|
14560
|
-
}, B = (
|
|
14561
|
+
}, B = (P) => {
|
|
14561
14562
|
var xe, H;
|
|
14562
|
-
|
|
14563
|
+
P.stopPropagation(), a(gf, {
|
|
14563
14564
|
card_title: E,
|
|
14564
14565
|
connector_name: Z,
|
|
14565
14566
|
ug_id: g,
|
|
14566
14567
|
sm_ids: h
|
|
14567
14568
|
});
|
|
14568
14569
|
let re;
|
|
14569
|
-
|
|
14570
|
-
}, W = (
|
|
14571
|
-
|
|
14570
|
+
O === "flat" ? re = (R == null ? void 0 : R.flatDisplay.externalResourceId) ?? t.externalResourceId : O === "flat_with_list" && (re = (H = (xe = R == null ? void 0 : R.listItems) == null ? void 0 : xe.fields[0]) == null ? void 0 : H.externalResourceId), re ? l(Dr({ ...t, externalResourceId: re })) : Ue({ message: Ts, type: Ot });
|
|
14571
|
+
}, W = (P) => {
|
|
14572
|
+
P.stopPropagation(), v(!0);
|
|
14572
14573
|
}, K = () => {
|
|
14573
14574
|
x(!0);
|
|
14574
14575
|
}, ne = () => {
|
|
@@ -14580,7 +14581,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14580
14581
|
disabled: $,
|
|
14581
14582
|
shown: Y,
|
|
14582
14583
|
iconSrc: k4,
|
|
14583
|
-
action: (
|
|
14584
|
+
action: (P) => W(P)
|
|
14584
14585
|
},
|
|
14585
14586
|
{
|
|
14586
14587
|
id: "refresh",
|
|
@@ -14588,7 +14589,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14588
14589
|
disabled: $,
|
|
14589
14590
|
shown: !0,
|
|
14590
14591
|
iconSrc: Ep,
|
|
14591
|
-
action: (
|
|
14592
|
+
action: (P) => de(P, C)
|
|
14592
14593
|
},
|
|
14593
14594
|
{
|
|
14594
14595
|
id: "edit",
|
|
@@ -14596,18 +14597,18 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
|
|
|
14596
14597
|
disabled: $,
|
|
14597
14598
|
shown: X,
|
|
14598
14599
|
iconSrc: P4,
|
|
14599
|
-
action: (
|
|
14600
|
+
action: (P) => B(P)
|
|
14600
14601
|
}
|
|
14601
14602
|
];
|
|
14602
14603
|
return /* @__PURE__ */ y.jsxs(Yb, { "data-testid": `test_${C}`, onMouseEnter: K, onMouseLeave: ne, children: [
|
|
14603
|
-
/* @__PURE__ */ y.jsxs(Jb, { className: I ? "hiver-card-expanded" : "", onClick: (
|
|
14604
|
+
/* @__PURE__ */ y.jsxs(Jb, { className: I ? "hiver-card-expanded" : "", onClick: (P) => M(P, L), children: [
|
|
14604
14605
|
/* @__PURE__ */ y.jsxs(Qb, { children: [
|
|
14605
14606
|
T && /* @__PURE__ */ y.jsx("img", { src: T, alt: E }),
|
|
14606
|
-
/* @__PURE__ */ y.jsx(We, { title: d ? E : "", placement: "bottom", children: /* @__PURE__ */ y.jsx(qb, { variant: "h4", onMouseOver: (
|
|
14607
|
+
/* @__PURE__ */ y.jsx(We, { title: d ? E : "", placement: "bottom", children: /* @__PURE__ */ y.jsx(qb, { variant: "h4", onMouseOver: (P) => G(P), onMouseLeave: (P) => G(P), children: E }) })
|
|
14607
14608
|
] }),
|
|
14608
14609
|
/* @__PURE__ */ y.jsxs(Nf, { children: [
|
|
14609
14610
|
/* @__PURE__ */ y.jsx(Q4, { actions: ie, isHovered: m }),
|
|
14610
|
-
/* @__PURE__ */ y.jsx(We, { title: I ? vf : Dc, placement: "bottom", children: /* @__PURE__ */ y.jsx(Jr, { onClick: (
|
|
14611
|
+
/* @__PURE__ */ y.jsx(We, { title: I ? vf : Dc, placement: "bottom", children: /* @__PURE__ */ y.jsx(Jr, { onClick: (P) => M(P, L), children: /* @__PURE__ */ y.jsx(Mc, { className: I ? "" : "hiver-up" }) }) })
|
|
14611
14612
|
] })
|
|
14612
14613
|
] }),
|
|
14613
14614
|
/* @__PURE__ */ y.jsx(
|
|
@@ -14827,7 +14828,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
14827
14828
|
u.map(({ title: x, items: C, type: E }) => /* @__PURE__ */ y.jsxs(xv, { children: [
|
|
14828
14829
|
/* @__PURE__ */ y.jsx(pe, { variant: "body2_medium", children: x }),
|
|
14829
14830
|
C.map((w) => {
|
|
14830
|
-
const A = E === cb, { deeplink: T, textHtml: L, imageUrl:
|
|
14831
|
+
const A = E === cb, { deeplink: T, textHtml: L, imageUrl: R } = w, O = () => /* @__PURE__ */ y.jsx(
|
|
14831
14832
|
nv,
|
|
14832
14833
|
{
|
|
14833
14834
|
className: A ? "" : "ellipsisClass",
|
|
@@ -14838,18 +14839,18 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
14838
14839
|
}
|
|
14839
14840
|
}
|
|
14840
14841
|
);
|
|
14841
|
-
return /* @__PURE__ */ y.jsx(vv, { component: "ul", children: /* @__PURE__ */ y.jsxs(yv, { component: A ? "li" : "div", marginLeft:
|
|
14842
|
-
|
|
14842
|
+
return /* @__PURE__ */ y.jsx(vv, { component: "ul", children: /* @__PURE__ */ y.jsxs(yv, { component: A ? "li" : "div", marginLeft: R ? "0" : "14px", children: [
|
|
14843
|
+
R ? /* @__PURE__ */ y.jsx("img", { src: R }) : null,
|
|
14843
14844
|
T ? /* @__PURE__ */ y.jsx(
|
|
14844
14845
|
Pf,
|
|
14845
14846
|
{
|
|
14846
14847
|
target: "_blank",
|
|
14847
14848
|
underline: "none",
|
|
14848
|
-
onClick: (
|
|
14849
|
+
onClick: (k) => v(k, T),
|
|
14849
14850
|
fontSize: "13px",
|
|
14850
|
-
children:
|
|
14851
|
+
children: O()
|
|
14851
14852
|
}
|
|
14852
|
-
) :
|
|
14853
|
+
) : O()
|
|
14853
14854
|
] }) }, L);
|
|
14854
14855
|
})
|
|
14855
14856
|
] }, x)),
|
|
@@ -15304,7 +15305,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15304
15305
|
connectors: s
|
|
15305
15306
|
}) => {
|
|
15306
15307
|
var zn;
|
|
15307
|
-
const { userGroupId: l, userId: c } = xn() || {}, [a, u] = J(null), [h, g] = J(!1), I = ye(null), [b, d] = Dp(), f = we(_p), p = we(t ? B4 : wp), v = we(V4), m = we(j4), x = we(W4), C = we(Z4), E = we(X4), w = we(U4), A = we(z4), T = we(Tp), L = m == null ? void 0 : m[(a == null ? void 0 : a.value) ?? ""],
|
|
15308
|
+
const { userGroupId: l, userId: c } = xn() || {}, [a, u] = J(null), [h, g] = J(!1), I = ye(null), [b, d] = Dp(), f = we(_p), p = we(t ? B4 : wp), v = we(V4), m = we(j4), x = we(W4), C = we(Z4), E = we(X4), w = we(U4), A = we(z4), T = we(Tp), L = m == null ? void 0 : m[(a == null ? void 0 : a.value) ?? ""], R = L == null ? void 0 : L.expandedView, { formConfigs: O, formViewConfigs: k } = Me(() => {
|
|
15308
15309
|
if (a && "value" in a && v && v[a.value] && Array.isArray(v[a.value])) {
|
|
15309
15310
|
const Re = v[a.value], st = [
|
|
15310
15311
|
{
|
|
@@ -15314,7 +15315,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15314
15315
|
];
|
|
15315
15316
|
return {
|
|
15316
15317
|
formConfigs: st,
|
|
15317
|
-
formViewConfigs:
|
|
15318
|
+
formViewConfigs: R ? LE(Re, Hu) : st
|
|
15318
15319
|
};
|
|
15319
15320
|
}
|
|
15320
15321
|
const ue = [{ id: "emptyFormId", formFields: [] }];
|
|
@@ -15322,11 +15323,11 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15322
15323
|
formConfigs: ue,
|
|
15323
15324
|
formViewConfigs: ue
|
|
15324
15325
|
};
|
|
15325
|
-
}, [v, a,
|
|
15326
|
+
}, [v, a, R]), V = Me(() => {
|
|
15326
15327
|
var Re;
|
|
15327
|
-
const ue = ((Re =
|
|
15328
|
+
const ue = ((Re = O == null ? void 0 : O[0]) == null ? void 0 : Re.formFields) || [];
|
|
15328
15329
|
return Kc({ formFields: ue });
|
|
15329
|
-
}, [
|
|
15330
|
+
}, [O]), {
|
|
15330
15331
|
setValue: Z,
|
|
15331
15332
|
inputChangeHandler: $,
|
|
15332
15333
|
checkboxChangeHandler: te,
|
|
@@ -15334,22 +15335,22 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15334
15335
|
clearDependentFields: X,
|
|
15335
15336
|
handleValidationError: le,
|
|
15336
15337
|
isErrorInValidations: de
|
|
15337
|
-
} = Np({ state: b, dispatch: d, validations:
|
|
15338
|
-
conversationId:
|
|
15339
|
-
sendTrackingEvent:
|
|
15338
|
+
} = Np({ state: b, dispatch: d, validations: V }), {
|
|
15339
|
+
conversationId: M,
|
|
15340
|
+
sendTrackingEvent: G,
|
|
15340
15341
|
currentSmIds: B,
|
|
15341
15342
|
connectorFunctions: { getFormElement: W, toggleFormElement: K },
|
|
15342
15343
|
stackingContext: ne,
|
|
15343
15344
|
userEmail: ie
|
|
15344
|
-
} = $e(Je), { userGroupId:
|
|
15345
|
-
formFields:
|
|
15346
|
-
formId:
|
|
15345
|
+
} = $e(Je), { userGroupId: P } = xn() || {}, { fetchConfig: re, createConfig: xe } = kp({
|
|
15346
|
+
formFields: O[0].formFields,
|
|
15347
|
+
formId: O[0].id,
|
|
15347
15348
|
formState: b,
|
|
15348
|
-
conversationId:
|
|
15349
|
-
}), H = (zn = f == null ? void 0 : f.forms.find((ue) => ue.type === "edit")) == null ? void 0 : zn.id, { externalResourceId: He } = f ?? {}, Ve = [C, E, A].includes(ee.LOADING), tt = Me(() => !
|
|
15350
|
-
me(() => (
|
|
15351
|
-
|
|
15352
|
-
}), [
|
|
15349
|
+
conversationId: M
|
|
15350
|
+
}), H = (zn = f == null ? void 0 : f.forms.find((ue) => ue.type === "edit")) == null ? void 0 : zn.id, { externalResourceId: He } = f ?? {}, Ve = [C, E, A].includes(ee.LOADING), tt = Me(() => !R || !W ? null : W(), [R, W]), nt = en();
|
|
15351
|
+
me(() => (R && K && K(!0), () => {
|
|
15352
|
+
R && K && K(!1);
|
|
15353
|
+
}), [R, K]), me(() => {
|
|
15353
15354
|
nt(
|
|
15354
15355
|
Zu(
|
|
15355
15356
|
t ? !(w && "values" in w && "values" in b && JSON.stringify($u(b.values)) === JSON.stringify($u(w.values))) : (e == null ? void 0 : e.fields_filled) !== void 0 && e.fields_filled > 0
|
|
@@ -15361,10 +15362,10 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15361
15362
|
a !== null && i((ue) => ({ ...ue, object_type: a.label }));
|
|
15362
15363
|
}, [a, i]), me(() => {
|
|
15363
15364
|
if (b.values) {
|
|
15364
|
-
const ue = hp(
|
|
15365
|
+
const ue = hp(O[0].formFields, b.values);
|
|
15365
15366
|
i((Re) => ({ ...Re, fields_filled: ue }));
|
|
15366
15367
|
}
|
|
15367
|
-
}, [b,
|
|
15368
|
+
}, [b, O, i]), me(() => {
|
|
15368
15369
|
if (n && !t)
|
|
15369
15370
|
return u(n);
|
|
15370
15371
|
p && p.length && u(t && H ? p.find((ue) => ue.value === H) ?? null : (ue) => ue || !m ? ue : p.length === 1 ? p[0] : p.find((st) => !m[st.value].expandedView) ?? null);
|
|
@@ -15374,7 +15375,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15374
15375
|
}, Ct = (ue, Re) => {
|
|
15375
15376
|
Z(ue, Re);
|
|
15376
15377
|
}, lt = (ue, Re, st) => {
|
|
15377
|
-
if (Re.action === "clear" && Re.name && (Z(Re.name, ""), a != null && a.value && X(Re.name, x == null ? void 0 : x[a.value]),
|
|
15378
|
+
if (Re.action === "clear" && Re.name && (Z(Re.name, ""), a != null && a.value && X(Re.name, x == null ? void 0 : x[a.value]), V[Re.name].isRequired && le(Re.name, !0)), ue && typeof ue == "object" && "label" in ue && typeof ue.label == "string" && "value" in ue && (typeof ue.value == "string" || typeof ue.value == "number") && typeof Re.name < "u")
|
|
15378
15379
|
if (Re.name === "form-object")
|
|
15379
15380
|
I.current = { value: ue.value, label: ue.label }, b.values && ue.value !== (a == null ? void 0 : a.value) && (Object.values(b.values).filter((xt) => xt !== "").length > 0 ? g(!0) : hn());
|
|
15380
15381
|
else {
|
|
@@ -15387,13 +15388,13 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15387
15388
|
a != null && a.value && X(Re.name, x == null ? void 0 : x[a.value]);
|
|
15388
15389
|
}
|
|
15389
15390
|
}, Qe = () => {
|
|
15390
|
-
if (!de() && H && (m != null && m[H]) &&
|
|
15391
|
+
if (!de() && H && (m != null && m[H]) && M && He) {
|
|
15391
15392
|
const { connectorName: ue, title: Re } = f;
|
|
15392
|
-
|
|
15393
|
+
G(wm, {
|
|
15393
15394
|
connector_name: ue,
|
|
15394
15395
|
card_title: Re,
|
|
15395
15396
|
sm_ids: B,
|
|
15396
|
-
ug_id:
|
|
15397
|
+
ug_id: P
|
|
15397
15398
|
});
|
|
15398
15399
|
const st = m[H].interfaceDetails;
|
|
15399
15400
|
if (!st || !w)
|
|
@@ -15402,7 +15403,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15402
15403
|
nt(
|
|
15403
15404
|
Fi({
|
|
15404
15405
|
formId: String(H),
|
|
15405
|
-
conversationId:
|
|
15406
|
+
conversationId: M,
|
|
15406
15407
|
args: uo,
|
|
15407
15408
|
previousArgs: gn,
|
|
15408
15409
|
externalResourceId: He,
|
|
@@ -15412,18 +15413,18 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15412
15413
|
}
|
|
15413
15414
|
})
|
|
15414
15415
|
).unwrap().then(() => {
|
|
15415
|
-
|
|
15416
|
+
G(Tm, {
|
|
15416
15417
|
connector_name: ue,
|
|
15417
15418
|
card_title: Re,
|
|
15418
15419
|
sm_ids: B,
|
|
15419
|
-
ug_id:
|
|
15420
|
+
ug_id: P
|
|
15420
15421
|
});
|
|
15421
15422
|
}).finally(() => {
|
|
15422
15423
|
nt(Dr(null));
|
|
15423
15424
|
});
|
|
15424
15425
|
}
|
|
15425
15426
|
}, _n = () => {
|
|
15426
|
-
if (!de() && a && (m != null && m[a.value]) &&
|
|
15427
|
+
if (!de() && a && (m != null && m[a.value]) && M) {
|
|
15427
15428
|
const ue = m == null ? void 0 : m[a.value].interfaceDetails;
|
|
15428
15429
|
if (!ue)
|
|
15429
15430
|
return;
|
|
@@ -15431,7 +15432,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15431
15432
|
nt(
|
|
15432
15433
|
Li({
|
|
15433
15434
|
formId: String(a.value),
|
|
15434
|
-
conversationId:
|
|
15435
|
+
conversationId: M,
|
|
15435
15436
|
args: It,
|
|
15436
15437
|
interfaceId: Re,
|
|
15437
15438
|
successCallback: () => {
|
|
@@ -15439,7 +15440,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15439
15440
|
}
|
|
15440
15441
|
})
|
|
15441
15442
|
).unwrap().then(() => {
|
|
15442
|
-
|
|
15443
|
+
G(hm, {
|
|
15443
15444
|
object_type: a
|
|
15444
15445
|
});
|
|
15445
15446
|
});
|
|
@@ -15465,13 +15466,13 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15465
15466
|
form_object: L == null ? void 0 : L.name
|
|
15466
15467
|
}
|
|
15467
15468
|
}), lo = () => {
|
|
15468
|
-
window.open(xr, "_blank"),
|
|
15469
|
+
window.open(xr, "_blank"), G(Gm, {
|
|
15469
15470
|
sm_ids: B,
|
|
15470
15471
|
ug_id: l,
|
|
15471
15472
|
connector_name: L == null ? void 0 : L.connectorName,
|
|
15472
15473
|
form_object: L == null ? void 0 : L.name
|
|
15473
15474
|
});
|
|
15474
|
-
}, Un = /* @__PURE__ */ y.jsxs(Vp, { className:
|
|
15475
|
+
}, Un = /* @__PURE__ */ y.jsxs(Vp, { className: R ? Mp : "", children: [
|
|
15475
15476
|
/* @__PURE__ */ y.jsx(
|
|
15476
15477
|
Pp,
|
|
15477
15478
|
{
|
|
@@ -15482,7 +15483,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15482
15483
|
buttons: Vt
|
|
15483
15484
|
}
|
|
15484
15485
|
),
|
|
15485
|
-
|
|
15486
|
+
R ? /* @__PURE__ */ y.jsxs(Xw, { children: [
|
|
15486
15487
|
/* @__PURE__ */ y.jsxs(pe, { children: [
|
|
15487
15488
|
t ? "Edit" : "Add",
|
|
15488
15489
|
" to ",
|
|
@@ -15491,7 +15492,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15491
15492
|
/* @__PURE__ */ y.jsx(We, { title: "Close Popup", placement: "bottom", children: /* @__PURE__ */ y.jsx(Xt, { onClick: r, children: /* @__PURE__ */ y.jsx(Uw, { src: yp }) }) })
|
|
15492
15493
|
] }) : null,
|
|
15493
15494
|
/* @__PURE__ */ y.jsxs(jp, { spacing: 3, children: [
|
|
15494
|
-
!t && !
|
|
15495
|
+
!t && !R ? /* @__PURE__ */ y.jsx(
|
|
15495
15496
|
Wo,
|
|
15496
15497
|
{
|
|
15497
15498
|
type: "select",
|
|
@@ -15509,7 +15510,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15509
15510
|
pp,
|
|
15510
15511
|
{
|
|
15511
15512
|
showGlobalLoader: A === ee.LOADING,
|
|
15512
|
-
formConfig:
|
|
15513
|
+
formConfig: k,
|
|
15513
15514
|
selectChangeHandler: lt,
|
|
15514
15515
|
inputChangeHandler: $,
|
|
15515
15516
|
checkboxChangeHandler: te,
|
|
@@ -15521,8 +15522,8 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15521
15522
|
fetchConfig: re,
|
|
15522
15523
|
createConfig: xe,
|
|
15523
15524
|
values: b.values,
|
|
15524
|
-
validations:
|
|
15525
|
-
...
|
|
15525
|
+
validations: V,
|
|
15526
|
+
...R ? {
|
|
15526
15527
|
cols: Hu,
|
|
15527
15528
|
stackIndex: ne.expandedForm
|
|
15528
15529
|
} : null
|
|
@@ -15537,14 +15538,14 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15537
15538
|
disabled: de() || Ve || !T,
|
|
15538
15539
|
onClick: t ? Qe : _n,
|
|
15539
15540
|
size: "small",
|
|
15540
|
-
...
|
|
15541
|
+
...R ? { style: { order: 2 } } : null,
|
|
15541
15542
|
children: t ? ob : rb
|
|
15542
15543
|
}
|
|
15543
15544
|
),
|
|
15544
15545
|
/* @__PURE__ */ y.jsx(Gp, { variant: "outlined", color: "tertiary", size: "small", onClick: r, disabled: Ve, children: kc })
|
|
15545
15546
|
] })
|
|
15546
15547
|
] });
|
|
15547
|
-
return
|
|
15548
|
+
return R && tt ? as(Un, tt) : Un;
|
|
15548
15549
|
}, Bp = N(be)`
|
|
15549
15550
|
box-sizing: border-box;
|
|
15550
15551
|
height: 52px;
|
|
@@ -15613,18 +15614,18 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15613
15614
|
color: ${U.palette.purple.primary};
|
|
15614
15615
|
}
|
|
15615
15616
|
`, $w = ({ setOpenTaskLinking: e, onLinkingSuccess: t }) => {
|
|
15616
|
-
const n = en(), r = we(Op), o = we(Rp), i = we(G4), s = we(Ap), [l, c] = J(!1), [a, u] = J(null), [h, g] = J(""), [I, b] = J({}), { conversationId: d, sendTrackingEvent: f } = $e(Je);
|
|
15617
|
+
const n = en(), r = we(Op), o = we(Rp), i = we(G4), s = we(Ap), [l, c] = J(!1), [a, u] = J(null), [h, g] = J(""), [I, b] = J({}), { conversationId: d, sendTrackingEvent: f, email: p } = $e(Je);
|
|
15617
15618
|
me(() => {
|
|
15618
15619
|
s && s.length && u(s[0]);
|
|
15619
15620
|
}, [s]);
|
|
15620
|
-
const
|
|
15621
|
+
const v = {
|
|
15621
15622
|
externalResourceId: h
|
|
15622
|
-
},
|
|
15623
|
-
!l && a && "value" in a && (f(bm, { object_type: a.label }), n(Fr({ id: String(a == null ? void 0 : a.value), args:
|
|
15623
|
+
}, m = o === ee.LOADING, x = i === ee.LOADING, C = () => {
|
|
15624
|
+
!l && a && "value" in a && (f(bm, { object_type: a.label }), n(Fr({ id: String(a == null ? void 0 : a.value), args: v })).unwrap().catch((O) => {
|
|
15624
15625
|
(O == null ? void 0 : O.status) === 400 ? Ue({ message: Gu, type: Ot }) : Ue({ message: KE, type: Ot });
|
|
15625
15626
|
})), c((O) => !O);
|
|
15626
|
-
},
|
|
15627
|
-
a && "value" in a && d && n(Ni({ id: String(a.value), externalResourceId: h, conversationId: d })).unwrap().then(() => {
|
|
15627
|
+
}, E = () => {
|
|
15628
|
+
a && "value" in a && d && n(Ni({ id: String(a.value), externalResourceId: h, conversationId: d, email: p })).unwrap().then(() => {
|
|
15628
15629
|
f(gm, {
|
|
15629
15630
|
object_type: a.label,
|
|
15630
15631
|
input_type: h
|
|
@@ -15632,20 +15633,20 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15632
15633
|
}).catch((O) => {
|
|
15633
15634
|
(O == null ? void 0 : O.status) === 400 ? Ue({ message: Gu, type: Ot }) : (O == null ? void 0 : O.status) === 409 ? Ue({ message: e4, type: Ot }) : Ue({ message: n4, type: Ot });
|
|
15634
15635
|
});
|
|
15635
|
-
},
|
|
15636
|
+
}, w = () => {
|
|
15636
15637
|
e(!1), c(!1);
|
|
15637
|
-
},
|
|
15638
|
-
O && typeof O == "object" && "label" in O && typeof O.label == "string" && "value" in O && (typeof O.value == "string" || typeof O.value == "number") && typeof
|
|
15639
|
-
},
|
|
15638
|
+
}, A = (O, k) => {
|
|
15639
|
+
O && typeof O == "object" && "label" in O && typeof O.label == "string" && "value" in O && (typeof O.value == "string" || typeof O.value == "number") && typeof k.name < "u" && (u({ value: O.value, label: O.label }), g(""));
|
|
15640
|
+
}, T = (O) => {
|
|
15640
15641
|
O.stopPropagation();
|
|
15641
|
-
const { value:
|
|
15642
|
-
g(
|
|
15643
|
-
},
|
|
15644
|
-
b((
|
|
15645
|
-
...
|
|
15646
|
-
[O]: !!
|
|
15642
|
+
const { value: k } = (O == null ? void 0 : O.target) || {};
|
|
15643
|
+
g(k), c(!1);
|
|
15644
|
+
}, L = (O, k) => {
|
|
15645
|
+
b((V) => ({
|
|
15646
|
+
...V,
|
|
15647
|
+
[O]: !!k
|
|
15647
15648
|
}));
|
|
15648
|
-
},
|
|
15649
|
+
}, R = () => Object.keys(I).filter((k) => I[k]).length > 0;
|
|
15649
15650
|
return /* @__PURE__ */ y.jsxs(Vp, { children: [
|
|
15650
15651
|
/* @__PURE__ */ y.jsxs(jp, { spacing: 3, children: [
|
|
15651
15652
|
/* @__PURE__ */ y.jsx(
|
|
@@ -15656,11 +15657,11 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15656
15657
|
options: s,
|
|
15657
15658
|
value: a,
|
|
15658
15659
|
name: "form-object",
|
|
15659
|
-
selectChangeHandler:
|
|
15660
|
+
selectChangeHandler: A,
|
|
15660
15661
|
label: d4,
|
|
15661
15662
|
labelSpacing: 0.5,
|
|
15662
15663
|
validation: { isRequired: !0 },
|
|
15663
|
-
onValidationError:
|
|
15664
|
+
onValidationError: L
|
|
15664
15665
|
}
|
|
15665
15666
|
),
|
|
15666
15667
|
/* @__PURE__ */ y.jsx(
|
|
@@ -15670,11 +15671,11 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15670
15671
|
placeholder: f4,
|
|
15671
15672
|
value: h,
|
|
15672
15673
|
name: "resourceId",
|
|
15673
|
-
inputChangeHandler:
|
|
15674
|
+
inputChangeHandler: T,
|
|
15674
15675
|
label: p4,
|
|
15675
15676
|
labelSpacing: 0.5,
|
|
15676
15677
|
validation: { isRequired: !0, validate: j3() },
|
|
15677
|
-
onValidationError:
|
|
15678
|
+
onValidationError: L
|
|
15678
15679
|
}
|
|
15679
15680
|
),
|
|
15680
15681
|
l ? /* @__PURE__ */ y.jsx(
|
|
@@ -15683,31 +15684,31 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15683
15684
|
cardData: r,
|
|
15684
15685
|
cardDataApiStatus: o,
|
|
15685
15686
|
objectToLink: String((a == null ? void 0 : a.value) || ""),
|
|
15686
|
-
args:
|
|
15687
|
+
args: v
|
|
15687
15688
|
}
|
|
15688
15689
|
) : null,
|
|
15689
15690
|
/* @__PURE__ */ y.jsx(
|
|
15690
15691
|
Hw,
|
|
15691
15692
|
{
|
|
15692
15693
|
fullWidth: !0,
|
|
15693
|
-
disabled:
|
|
15694
|
+
disabled: R() || m,
|
|
15694
15695
|
color: "tertiary",
|
|
15695
15696
|
variant: "outlined",
|
|
15696
15697
|
size: "small",
|
|
15697
|
-
onClick:
|
|
15698
|
+
onClick: C,
|
|
15698
15699
|
children: l ? Jv : Yv
|
|
15699
15700
|
}
|
|
15700
15701
|
)
|
|
15701
15702
|
] }),
|
|
15702
15703
|
/* @__PURE__ */ y.jsxs(Bp, { children: [
|
|
15703
|
-
/* @__PURE__ */ y.jsx(pt, { onClick:
|
|
15704
|
+
/* @__PURE__ */ y.jsx(pt, { onClick: E, disabled: R() || x, size: "small", children: Cf }),
|
|
15704
15705
|
/* @__PURE__ */ y.jsx(
|
|
15705
15706
|
Gp,
|
|
15706
15707
|
{
|
|
15707
15708
|
color: "tertiary",
|
|
15708
15709
|
variant: "outlined",
|
|
15709
|
-
onClick:
|
|
15710
|
-
disabled:
|
|
15710
|
+
onClick: w,
|
|
15711
|
+
disabled: x,
|
|
15711
15712
|
size: "small",
|
|
15712
15713
|
children: kc
|
|
15713
15714
|
}
|
|
@@ -15908,20 +15909,20 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
|
|
|
15908
15909
|
);
|
|
15909
15910
|
me(() => {
|
|
15910
15911
|
const C = r.values, E = a.id, w = a.formFields;
|
|
15911
|
-
if (Object.values(C).filter((
|
|
15912
|
+
if (Object.values(C).filter((V) => !!V).length < w.length || !s || f()) {
|
|
15912
15913
|
i.current && clearTimeout(i.current);
|
|
15913
15914
|
return;
|
|
15914
15915
|
}
|
|
15915
15916
|
const A = s[e].searchInterfaceDetails;
|
|
15916
15917
|
if (!A)
|
|
15917
15918
|
return;
|
|
15918
|
-
const T = s[e].connectorName, { id: L, args:
|
|
15919
|
+
const T = s[e].connectorName, { id: L, args: R = {} } = A, O = Si(r, R);
|
|
15919
15920
|
v({
|
|
15920
15921
|
id: E,
|
|
15921
15922
|
interfaceId: L,
|
|
15922
15923
|
searchString: t,
|
|
15923
15924
|
connectorName: T,
|
|
15924
|
-
args:
|
|
15925
|
+
args: O
|
|
15925
15926
|
});
|
|
15926
15927
|
}, [r, a, s, e, t, f, v]), me(() => () => {
|
|
15927
15928
|
i.current && clearTimeout(i.current);
|
|
@@ -17436,8 +17437,8 @@ var Ze, Dn, Nn, Vr, Gr, kn, Hr, Wr, bd, V9 = (bd = class {
|
|
|
17436
17437
|
const r = S(this, Ie), o = this.options, i = S(this, bt), s = S(this, lr), l = S(this, Zr), a = t !== r ? t.state : S(this, zo), { state: u } = t;
|
|
17437
17438
|
let h = { ...u }, g = !1, I;
|
|
17438
17439
|
if (n._optimisticResults) {
|
|
17439
|
-
const T = this.hasListeners(), L = !T && sd(t, n),
|
|
17440
|
-
(L ||
|
|
17440
|
+
const T = this.hasListeners(), L = !T && sd(t, n), R = T && ad(t, r, n, o);
|
|
17441
|
+
(L || R) && (h = {
|
|
17441
17442
|
...h,
|
|
17442
17443
|
...Jp(u.data, t.options)
|
|
17443
17444
|
}), n._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
|
|
@@ -17502,21 +17503,21 @@ var Ze, Dn, Nn, Vr, Gr, kn, Hr, Wr, bd, V9 = (bd = class {
|
|
|
17502
17503
|
promise: S(this, Pn)
|
|
17503
17504
|
};
|
|
17504
17505
|
if (this.options.experimental_prefetchInRender) {
|
|
17505
|
-
const T = (
|
|
17506
|
-
w.status === "error" ?
|
|
17506
|
+
const T = (O) => {
|
|
17507
|
+
w.status === "error" ? O.reject(w.error) : w.data !== void 0 && O.resolve(w.data);
|
|
17507
17508
|
}, L = () => {
|
|
17508
|
-
const
|
|
17509
|
-
T(
|
|
17510
|
-
},
|
|
17511
|
-
switch (
|
|
17509
|
+
const O = q(this, Pn, w.promise = lc());
|
|
17510
|
+
T(O);
|
|
17511
|
+
}, R = S(this, Pn);
|
|
17512
|
+
switch (R.status) {
|
|
17512
17513
|
case "pending":
|
|
17513
|
-
t.queryHash === r.queryHash && T(
|
|
17514
|
+
t.queryHash === r.queryHash && T(R);
|
|
17514
17515
|
break;
|
|
17515
17516
|
case "fulfilled":
|
|
17516
|
-
(w.status === "error" || w.data !==
|
|
17517
|
+
(w.status === "error" || w.data !== R.value) && L();
|
|
17517
17518
|
break;
|
|
17518
17519
|
case "rejected":
|
|
17519
|
-
(w.status !== "error" || w.error !==
|
|
17520
|
+
(w.status !== "error" || w.error !== R.reason) && L();
|
|
17520
17521
|
break;
|
|
17521
17522
|
}
|
|
17522
17523
|
}
|
|
@@ -17944,10 +17945,10 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
|
|
|
17944
17945
|
e.value
|
|
17945
17946
|
) : null
|
|
17946
17947
|
] }) : null;
|
|
17947
|
-
}, pA = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.00483%2012.5052C7.73146%2012.7786%207.73146%2013.2218%208.00483%2013.4952C8.2782%2013.7685%208.72141%2013.7685%208.99478%2013.4952L11.9948%2010.4952C12.2681%2010.2218%2012.2681%209.77859%2011.9948%209.50522L8.99478%206.50522C8.72141%206.23185%208.2782%206.23185%208.00483%206.50522C7.73146%206.77859%207.73146%207.2218%208.00483%207.49517L10.5099%2010.0002L8.00483%2012.5052Z'%20fill='%236C7B94'/%3e%3c/svg%3e", hA = async ({ id: e, externalResourceId: t, conversationId: n, channelType: r = "email" }) => {
|
|
17948
|
-
const
|
|
17949
|
-
|
|
17950
|
-
url: `${kE.replace(":id", e)}?${
|
|
17948
|
+
}, pA = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.00483%2012.5052C7.73146%2012.7786%207.73146%2013.2218%208.00483%2013.4952C8.2782%2013.7685%208.72141%2013.7685%208.99478%2013.4952L11.9948%2010.4952C12.2681%2010.2218%2012.2681%209.77859%2011.9948%209.50522L8.99478%206.50522C8.72141%206.23185%208.2782%206.23185%208.00483%206.50522C7.73146%206.77859%207.73146%207.2218%208.00483%207.49517L10.5099%2010.0002L8.00483%2012.5052Z'%20fill='%236C7B94'/%3e%3c/svg%3e", hA = async ({ id: e, externalResourceId: t, conversationId: n, channelType: r = "email", email: o }) => {
|
|
17949
|
+
const i = new URLSearchParams();
|
|
17950
|
+
i.append("channel_type", r), o && i.append("senderEmail", o), await ht({
|
|
17951
|
+
url: `${kE.replace(":id", e)}?${i.toString()}`,
|
|
17951
17952
|
method: yt.POST,
|
|
17952
17953
|
data: {
|
|
17953
17954
|
externalResourceId: t,
|
|
@@ -18139,11 +18140,11 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
|
|
|
18139
18140
|
};
|
|
18140
18141
|
}, _A = ({ isAdmin: e = !1 }) => {
|
|
18141
18142
|
var ri;
|
|
18142
|
-
const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i } = $e(Je), s = en(), { userGroupId: l, userId: c } = xn() || {}, a = ye(!1), u = ye(null), h = ye(null), g = ye(null), [I, b] = J(!1), [d, f] = J(!1), [p, v] = J(!1), [m, x] = J(!1), [C, E] = J(), [w, A] = J(!1), [T, L] = J(null), [
|
|
18143
|
+
const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i } = $e(Je), s = en(), { userGroupId: l, userId: c } = xn() || {}, a = ye(!1), u = ye(null), h = ye(null), g = ye(null), [I, b] = J(!1), [d, f] = J(!1), [p, v] = J(!1), [m, x] = J(!1), [C, E] = J(), [w, A] = J(!1), [T, L] = J(null), [R, O] = J(), [k, V] = J(null), [Z, $] = J(!1), [te, Y] = J(!1), X = we(I4), le = we(x4), de = we(w4), M = we(A4), G = we(E4), B = we(wp), W = we(M4), K = we(Ap), ne = we(_p), ie = we(Tp), P = we(jw), re = ft(o, Wm), xe = ft(o, mf), H = ft(o, Ym), He = ft(o, Qm), Ve = ft(o, qm), tt = ft(o, Km), nt = gb(de), { data: hn, isLoading: Ct } = ih({
|
|
18143
18144
|
senderEmail: t,
|
|
18144
18145
|
conversationId: String(i),
|
|
18145
18146
|
enabled: He && !!t
|
|
18146
|
-
}), { emailHeaders: lt, selectedEmail: Qe } = hn ?? {}, { scrollOnceAfterLoad: _n, resetScrollState: Vt } = AA(h), xr =
|
|
18147
|
+
}), { emailHeaders: lt, selectedEmail: Qe } = hn ?? {}, { scrollOnceAfterLoad: _n, resetScrollState: Vt } = AA(h), xr = G !== ee.LOADING && (!M || !Object.values(M).some((Le) => Le === ee.LOADING)) && X && X.length > 0;
|
|
18147
18148
|
Kr(() => {
|
|
18148
18149
|
var Le;
|
|
18149
18150
|
Z && !I && te && ((Le = g == null ? void 0 : g.current) != null && Le.scrollHeight) && _n(!!xr, "smooth");
|
|
@@ -18161,20 +18162,20 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
|
|
|
18161
18162
|
search_keyword: Le,
|
|
18162
18163
|
sm_ids: n,
|
|
18163
18164
|
connector_name: rt,
|
|
18164
|
-
suggestion_type:
|
|
18165
|
+
suggestion_type: P
|
|
18165
18166
|
});
|
|
18166
18167
|
}, Un = (Le, rt, Ft) => {
|
|
18167
18168
|
!Array.isArray(rt) || !rt.length ? r(Nm, {
|
|
18168
18169
|
search_keyword: Le,
|
|
18169
18170
|
sm_ids: n,
|
|
18170
18171
|
connector_name: Ft,
|
|
18171
|
-
suggestion_type:
|
|
18172
|
+
suggestion_type: P
|
|
18172
18173
|
}) : rt.length && r(km, {
|
|
18173
18174
|
num_of_results: rt.length,
|
|
18174
18175
|
search_keyword: Le,
|
|
18175
18176
|
sm_ids: n,
|
|
18176
18177
|
connector_name: Ft,
|
|
18177
|
-
suggestion_type:
|
|
18178
|
+
suggestion_type: P
|
|
18178
18179
|
});
|
|
18179
18180
|
}, {
|
|
18180
18181
|
mutate: zn,
|
|
@@ -18207,7 +18208,7 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
|
|
|
18207
18208
|
c && ($(await Dd(c)), Y(await v1(c)));
|
|
18208
18209
|
})();
|
|
18209
18210
|
}, [c]), me(() => {
|
|
18210
|
-
Ct ||
|
|
18211
|
+
Ct || O(Qe || t);
|
|
18211
18212
|
}, [t, Qe, Ct]), me(() => {
|
|
18212
18213
|
te && c && y1(c);
|
|
18213
18214
|
}, [te, c]), me(() => {
|
|
@@ -18245,12 +18246,12 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
|
|
|
18245
18246
|
return ((ho = Bs.connectorKey) == null ? void 0 : ho.toLowerCase()) === (Ft == null ? void 0 : Ft.toLowerCase());
|
|
18246
18247
|
}
|
|
18247
18248
|
);
|
|
18248
|
-
Jn && (
|
|
18249
|
+
Jn && (V(Jn), v(!0));
|
|
18249
18250
|
};
|
|
18250
18251
|
return window.addEventListener(ld.OPEN_FORM_VIEW, Le), () => {
|
|
18251
18252
|
window.removeEventListener(ld.OPEN_FORM_VIEW, Le);
|
|
18252
18253
|
};
|
|
18253
|
-
}, [B]), !t.length ||
|
|
18254
|
+
}, [B]), !t.length || G === ee.LOADING)
|
|
18254
18255
|
return /* @__PURE__ */ y.jsx(Aw, {});
|
|
18255
18256
|
const uo = (Le) => {
|
|
18256
18257
|
r(fm, {
|
|
@@ -18263,7 +18264,7 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
|
|
|
18263
18264
|
}, Ms = () => {
|
|
18264
18265
|
x(!0), r(pm);
|
|
18265
18266
|
}, ei = (Le) => {
|
|
18266
|
-
r(Le, C), ie ? A(!0) : (v(!1),
|
|
18267
|
+
r(Le, C), ie ? A(!0) : (v(!1), V(null));
|
|
18267
18268
|
}, ti = (Le) => {
|
|
18268
18269
|
if (ne) {
|
|
18269
18270
|
const { connectorName: rt, title: Ft } = ne;
|
|
@@ -18356,10 +18357,10 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
|
|
|
18356
18357
|
Nw,
|
|
18357
18358
|
{
|
|
18358
18359
|
emailHeaders: lt,
|
|
18359
|
-
selectedEmail:
|
|
18360
|
+
selectedEmail: R,
|
|
18360
18361
|
root: u.current,
|
|
18361
18362
|
isLoading: Ct,
|
|
18362
|
-
setSelectedEmail:
|
|
18363
|
+
setSelectedEmail: O
|
|
18363
18364
|
}
|
|
18364
18365
|
) : null,
|
|
18365
18366
|
re ? /* @__PURE__ */ y.jsx(_w, {}) : null,
|
|
@@ -18370,8 +18371,8 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
|
|
|
18370
18371
|
{
|
|
18371
18372
|
cards: X,
|
|
18372
18373
|
specificCardData: de,
|
|
18373
|
-
email:
|
|
18374
|
-
specificConnectorApiStatus:
|
|
18374
|
+
email: R ?? "",
|
|
18375
|
+
specificConnectorApiStatus: M,
|
|
18375
18376
|
onCardUnlinking: Gt
|
|
18376
18377
|
}
|
|
18377
18378
|
),
|
|
@@ -18418,7 +18419,7 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
|
|
|
18418
18419
|
onCreateSuccess: po,
|
|
18419
18420
|
metaData: C,
|
|
18420
18421
|
setMetaData: E,
|
|
18421
|
-
defaultOption:
|
|
18422
|
+
defaultOption: k,
|
|
18422
18423
|
connectors: nt
|
|
18423
18424
|
}
|
|
18424
18425
|
)
|