customer-module-frontend 3.1.2-beta.3 → 3.1.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/customer-module.css +1 -1
- package/dist/customer-module.js +2743 -2724
- package/dist/customer-module.js.map +1 -1
- package/dist/hui/customer-module.css +1 -1
- package/dist/hui/customer-module.js +710 -672
- package/dist/hui/customer-module.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as n, jsxs as d, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import * as D from "react";
|
|
3
|
-
import bt, { createContext as
|
|
3
|
+
import bt, { createContext as fs, forwardRef as ho, useState as _, useCallback as te, useImperativeHandle as po, Children as fo, isValidElement as go, Fragment as Co, useRef as R, useEffect as F, useMemo as j, useLayoutEffect as tt, useContext as vo, StrictMode as bo } from "react";
|
|
4
4
|
import { HiverThemeProviderUnStyled as xo, TablePagination as wo, Tabs as yo, Box as Ao, Typography as Eo, Popover as No } from "@hiver/hiver-ui-kit";
|
|
5
|
-
import { Tab as
|
|
6
|
-
import { ArrowLeft as Lo, XClose as
|
|
5
|
+
import { Tab as gs, Input as Kt, Modal as Qn, Table as ze, Dropdown as Jt, Toast as So, Button as ko, Avatar as To, IconButton as qn, Breadcrumbs as _o, Tooltip as Mo, Tag as Io } from "@hiver/hiver-ui-kit/v2";
|
|
6
|
+
import { ArrowLeft as Lo, XClose as $t, Calendar as Oo, ChevronSelectorVertical as Do, ChevronUp as Fo, ChevronDown as Po, Plus as Bo, Columns03 as Ro, SearchMd as Ho, Rows03 as jo, Download01 as Vo, Activity as Uo, Settings01 as zo, FilterFunnel01 as Wo, InfoCircle as Xo, UploadCloud01 as Qo, Upload01 as qo, User01 as Go, Briefcase02 as Yo } from "@hiver/hiver-ui-kit/icons";
|
|
7
7
|
import { DesktopDatePicker as Zo } from "@mui/x-date-pickers/DesktopDatePicker/index.js";
|
|
8
8
|
import { LocalizationProvider as Ko } from "@mui/x-date-pickers/LocalizationProvider/index.js";
|
|
9
9
|
import { AdapterMoment as Jo } from "@mui/x-date-pickers/AdapterMoment/index.js";
|
|
10
10
|
import { create as We, useStore as $o, createStore as er } from "zustand";
|
|
11
11
|
import { createPortal as Ze } from "react-dom";
|
|
12
|
-
import
|
|
12
|
+
import en, { isAxiosError as Ut, AxiosError as pt } from "axios";
|
|
13
13
|
import tr from "universal-cookie";
|
|
14
14
|
import { createRoot as nr } from "react-dom/client";
|
|
15
15
|
import { useLocation as st, useNavigate as Re, Outlet as cr, useSearchParams as sr, useParams as He, Routes as ar, Route as Fe, Navigate as or, MemoryRouter as rr } from "react-router-dom";
|
|
16
|
-
import { useQueryClient as _e, useQuery as Ne, useMutation as xe, useInfiniteQuery as
|
|
17
|
-
const
|
|
16
|
+
import { useQueryClient as _e, useQuery as Ne, useMutation as xe, useInfiniteQuery as zt, QueryClient as lr, QueryClientProvider as ir } from "@tanstack/react-query";
|
|
17
|
+
const Cs = {
|
|
18
18
|
palette: {
|
|
19
19
|
primary: {
|
|
20
20
|
main: "#000",
|
|
@@ -23,10 +23,10 @@ const gs = {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
const mr = xo, dr =
|
|
26
|
+
const mr = xo, dr = fs(Cs);
|
|
27
27
|
function ur({
|
|
28
28
|
children: e,
|
|
29
|
-
theme: t =
|
|
29
|
+
theme: t = Cs,
|
|
30
30
|
mode: c = "light",
|
|
31
31
|
darkAuto: s = !1
|
|
32
32
|
}) {
|
|
@@ -39,7 +39,7 @@ const hr = yo, pr = {
|
|
|
39
39
|
"&:not(.MuiTabs-vertical) .MuiTab-root.MuiButtonBase-root": {
|
|
40
40
|
borderBottom: 0
|
|
41
41
|
}
|
|
42
|
-
}, fr =
|
|
42
|
+
}, fr = gs.Item, tn = (e) => {
|
|
43
43
|
const {
|
|
44
44
|
value: t,
|
|
45
45
|
onTabChange: c,
|
|
@@ -80,7 +80,7 @@ const hr = yo, pr = {
|
|
|
80
80
|
))
|
|
81
81
|
] });
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
gs.Item;
|
|
84
84
|
const gr = {
|
|
85
85
|
contained: "primary_old",
|
|
86
86
|
outlined: "secondary",
|
|
@@ -157,7 +157,7 @@ const gr = {
|
|
|
157
157
|
children: E()
|
|
158
158
|
}
|
|
159
159
|
);
|
|
160
|
-
}, wr = { small: "sm", medium: "md" }, yr =
|
|
160
|
+
}, wr = { small: "sm", medium: "md" }, yr = Kt.Text;
|
|
161
161
|
function Ar(e) {
|
|
162
162
|
return typeof e == "string" ? /* @__PURE__ */ n("img", { src: e, alt: "", "aria-hidden": "true" }) : e;
|
|
163
163
|
}
|
|
@@ -231,11 +231,11 @@ const $e = (e) => {
|
|
|
231
231
|
return { vertical: "top", horizontal: "right" };
|
|
232
232
|
}
|
|
233
233
|
}, Sr = So;
|
|
234
|
-
let
|
|
235
|
-
const
|
|
234
|
+
let wc = 0;
|
|
235
|
+
const vs = ho(
|
|
236
236
|
({ position: e = "top-right", className: t }, c) => {
|
|
237
237
|
const [s, a] = _(null), o = te((l) => {
|
|
238
|
-
|
|
238
|
+
wc += 1, a({ ...l, key: wc });
|
|
239
239
|
}, []);
|
|
240
240
|
if (po(
|
|
241
241
|
c,
|
|
@@ -306,14 +306,14 @@ const Cs = ho(
|
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
308
|
);
|
|
309
|
-
|
|
309
|
+
vs.displayName = "Toast";
|
|
310
310
|
const kr = {
|
|
311
311
|
xs: 444,
|
|
312
312
|
sm: 600,
|
|
313
313
|
md: 900,
|
|
314
314
|
lg: 1200,
|
|
315
315
|
xl: 1536
|
|
316
|
-
}, Tr =
|
|
316
|
+
}, Tr = Qn.Container, _r = Qn.Body, Mr = Qn.Footer, fn = Ao, Ir = Eo, yc = qn, bs = (e) => {
|
|
317
317
|
const {
|
|
318
318
|
children: t,
|
|
319
319
|
className: c,
|
|
@@ -338,14 +338,14 @@ const kr = {
|
|
|
338
338
|
}, y = () => {
|
|
339
339
|
r && r({}, "backdropClick");
|
|
340
340
|
}, w = m ? "100vw" : l ? "100%" : i === !1 ? void 0 : kr[i], E = () => g === "confirmation" && h ? /* @__PURE__ */ d(
|
|
341
|
-
|
|
341
|
+
fn,
|
|
342
342
|
{
|
|
343
343
|
className: "omni-dialog-header-confirmation",
|
|
344
344
|
sx: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%", gap: 1 },
|
|
345
345
|
children: [
|
|
346
|
-
/* @__PURE__ */ d(
|
|
346
|
+
/* @__PURE__ */ d(fn, { sx: { display: "flex", alignItems: "center", gap: 1.25, minWidth: 0 }, children: [
|
|
347
347
|
C && /* @__PURE__ */ n(
|
|
348
|
-
|
|
348
|
+
yc,
|
|
349
349
|
{
|
|
350
350
|
variant: "ghost",
|
|
351
351
|
size: "xs",
|
|
@@ -366,14 +366,14 @@ const kr = {
|
|
|
366
366
|
)
|
|
367
367
|
] }),
|
|
368
368
|
f && /* @__PURE__ */ n(
|
|
369
|
-
|
|
369
|
+
yc,
|
|
370
370
|
{
|
|
371
371
|
variant: "ghost",
|
|
372
372
|
size: "xs",
|
|
373
373
|
className: "omni-dialog-close-button",
|
|
374
374
|
"aria-label": "Close",
|
|
375
375
|
onClick: y,
|
|
376
|
-
children: /* @__PURE__ */ n(
|
|
376
|
+
children: /* @__PURE__ */ n($t, {})
|
|
377
377
|
}
|
|
378
378
|
)
|
|
379
379
|
]
|
|
@@ -394,7 +394,7 @@ const kr = {
|
|
|
394
394
|
},
|
|
395
395
|
children: [
|
|
396
396
|
h && /* @__PURE__ */ n(
|
|
397
|
-
|
|
397
|
+
fn,
|
|
398
398
|
{
|
|
399
399
|
sx: {
|
|
400
400
|
display: "flex",
|
|
@@ -462,33 +462,33 @@ const Pr = (e) => {
|
|
|
462
462
|
children: e
|
|
463
463
|
}
|
|
464
464
|
);
|
|
465
|
-
const
|
|
465
|
+
const Ac = ze, Hr = (e) => e.some((t) => t.style?.width !== void 0), Ec = ze.Container, jr = (e, t) => e ? {
|
|
466
466
|
overflowY: "auto",
|
|
467
467
|
...t && t !== "flex" ? { maxHeight: t } : {}
|
|
468
|
-
} : void 0, Vr = ze.Header, Ur = ze.Body,
|
|
468
|
+
} : void 0, Vr = ze.Header, Ur = ze.Body, gn = ze.Row, zr = ze.HeaderCell, Nc = ze.BodyCell, Wr = { "& > .MuiBox-root": { minHeight: "55px" } }, Sc = {
|
|
469
469
|
title: {
|
|
470
470
|
// `div`, not the default `<p>`: `body` renderers return block content (CMF's chip column).
|
|
471
471
|
component: "div",
|
|
472
472
|
// The kit clips without an ellipsis; HiG body cells are regular, not the kit's medium.
|
|
473
473
|
sx: { textOverflow: "ellipsis", fontWeight: 400 }
|
|
474
474
|
}
|
|
475
|
-
},
|
|
475
|
+
}, kc = "hui-datatable", Xr = "hui-datatable__header-cell", Tc = "hui-datatable__row", _c = "hui-datatable__cell", Tt = (...e) => e.filter(Boolean).join(" "), Mc = (e) => ({
|
|
476
476
|
style: e.style
|
|
477
|
-
}),
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
}), xs = () => null;
|
|
478
|
+
xs.displayName = "Column";
|
|
479
|
+
function ws(e) {
|
|
480
480
|
return fo.toArray(e).filter(go).flatMap(
|
|
481
|
-
(t) => t.type === Co ?
|
|
481
|
+
(t) => t.type === Co ? ws(t.props.children) : [t]
|
|
482
482
|
);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
if (e.type ===
|
|
484
|
+
function Qr(e) {
|
|
485
|
+
if (e.type === xs)
|
|
486
486
|
return !0;
|
|
487
487
|
const t = e.type;
|
|
488
488
|
return t?.displayName === "Column" || t?.type?.displayName === "Column";
|
|
489
489
|
}
|
|
490
490
|
function qr(e) {
|
|
491
|
-
const t =
|
|
491
|
+
const t = ws(e), c = t.filter(Qr);
|
|
492
492
|
return t.length > 0 && c.length === 0 && (`${t.length}`, void 0), c.map((s, a) => {
|
|
493
493
|
const { field: o, header: r, ...l } = s.props;
|
|
494
494
|
return {
|
|
@@ -519,14 +519,14 @@ function at(e) {
|
|
|
519
519
|
}, w = (N) => {
|
|
520
520
|
x(parseInt(N.target.value, 10)), f(0);
|
|
521
521
|
}, E = i && v ? o.slice(C * v, C * v + v) : o, A = a && a.length > 0 ? a : qr(t);
|
|
522
|
-
return A.length === 0 ? /* @__PURE__ */ n(
|
|
522
|
+
return A.length === 0 ? /* @__PURE__ */ n(Ec, { className: Tt(kc, c), style: s, sx: b, children: /* @__PURE__ */ n(Ac, { style: r, children: t }) }) : /* @__PURE__ */ d(Ec, { className: Tt(kc, c), style: s, sx: b, children: [
|
|
523
523
|
/* @__PURE__ */ d(
|
|
524
|
-
|
|
524
|
+
Ac,
|
|
525
525
|
{
|
|
526
526
|
style: r,
|
|
527
527
|
sx: Hr(A) ? { tableLayout: "fixed" } : void 0,
|
|
528
528
|
children: [
|
|
529
|
-
/* @__PURE__ */ n(Vr, { children: /* @__PURE__ */ n(
|
|
529
|
+
/* @__PURE__ */ n(Vr, { children: /* @__PURE__ */ n(gn, { children: A.map((N) => /* @__PURE__ */ n(
|
|
530
530
|
zr,
|
|
531
531
|
{
|
|
532
532
|
color: "gray",
|
|
@@ -546,38 +546,38 @@ function at(e) {
|
|
|
546
546
|
"&&": { borderBottom: 0, paddingBottom: "13px" },
|
|
547
547
|
boxShadow: (S) => `inset 0 -1px 0 ${S.palette?.border?.neutral?.subtle ?? "#eeeeee"}`
|
|
548
548
|
},
|
|
549
|
-
...
|
|
550
|
-
className: Tt(
|
|
549
|
+
...Mc(N),
|
|
550
|
+
className: Tt(Xr, N.className)
|
|
551
551
|
},
|
|
552
552
|
N.id
|
|
553
553
|
)) }) }),
|
|
554
554
|
/* @__PURE__ */ d(Ur, { children: [
|
|
555
|
-
o.length === 0 && h ? /* @__PURE__ */ n(
|
|
556
|
-
|
|
555
|
+
o.length === 0 && h ? /* @__PURE__ */ n(gn, { className: Tc, children: /* @__PURE__ */ n(
|
|
556
|
+
Nc,
|
|
557
557
|
{
|
|
558
|
-
className:
|
|
558
|
+
className: _c,
|
|
559
559
|
colSpan: A.length,
|
|
560
|
-
slotProps:
|
|
560
|
+
slotProps: Sc,
|
|
561
561
|
label: typeof h == "function" ? h() : h
|
|
562
562
|
}
|
|
563
563
|
) }) : null,
|
|
564
564
|
E.map((N, S) => /* @__PURE__ */ n(
|
|
565
|
-
|
|
565
|
+
gn,
|
|
566
566
|
{
|
|
567
|
-
className:
|
|
567
|
+
className: Tc,
|
|
568
568
|
onClick: (M) => u && u({ originalEvent: M, data: N, index: S }),
|
|
569
569
|
sx: u ? { cursor: "pointer" } : void 0,
|
|
570
570
|
children: A.map((M) => {
|
|
571
571
|
const k = M.field || M.id, V = N[k], L = M.body ? typeof M.body == "function" ? M.body(N) : M.body : V;
|
|
572
572
|
return /* @__PURE__ */ n(
|
|
573
|
-
|
|
573
|
+
Nc,
|
|
574
574
|
{
|
|
575
575
|
variant: "text",
|
|
576
576
|
sx: Wr,
|
|
577
577
|
label: L,
|
|
578
|
-
slotProps:
|
|
579
|
-
...
|
|
580
|
-
className: Tt(
|
|
578
|
+
slotProps: Sc,
|
|
579
|
+
...Mc(M),
|
|
580
|
+
className: Tt(_c, M.className)
|
|
581
581
|
},
|
|
582
582
|
M.id
|
|
583
583
|
);
|
|
@@ -603,8 +603,8 @@ function at(e) {
|
|
|
603
603
|
)
|
|
604
604
|
] });
|
|
605
605
|
}
|
|
606
|
-
const Gr =
|
|
607
|
-
function
|
|
606
|
+
const Gr = Jt.Field, Yr = Jt.Menu, Zr = No, Kr = ["Enter", " ", "ArrowDown", "ArrowUp"];
|
|
607
|
+
function ys({
|
|
608
608
|
value: e,
|
|
609
609
|
placeholder: t,
|
|
610
610
|
disabled: c = !1,
|
|
@@ -688,11 +688,11 @@ function ws({
|
|
|
688
688
|
)
|
|
689
689
|
] });
|
|
690
690
|
}
|
|
691
|
-
const
|
|
692
|
-
function
|
|
691
|
+
const jt = (e) => String(e);
|
|
692
|
+
function As(e, t, c) {
|
|
693
693
|
return e.findIndex((s) => Object.is(s[t], c));
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Es(e, t, c) {
|
|
696
696
|
const s = /* @__PURE__ */ new Set();
|
|
697
697
|
for (const a of t) {
|
|
698
698
|
const o = a[c];
|
|
@@ -701,10 +701,10 @@ function As(e, t, c) {
|
|
|
701
701
|
s.add(o);
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function Ic(e, t) {
|
|
705
705
|
return t ? typeof t == "function" ? t(e) : !!e[t] : !1;
|
|
706
706
|
}
|
|
707
|
-
const
|
|
707
|
+
const Lc = Jt.ListItem, Ns = (e) => {
|
|
708
708
|
const {
|
|
709
709
|
value: t,
|
|
710
710
|
options: c = [],
|
|
@@ -728,9 +728,9 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
728
728
|
panelFooterTemplate: w,
|
|
729
729
|
helperText: E
|
|
730
730
|
} = e;
|
|
731
|
-
|
|
732
|
-
const A =
|
|
733
|
-
if (
|
|
731
|
+
Es("Select", c, a);
|
|
732
|
+
const A = As(c, a, t), N = A === -1 ? void 0 : c[A], S = (k, V) => {
|
|
733
|
+
if (Ic(k, y)) return;
|
|
734
734
|
const L = k[a];
|
|
735
735
|
b?.({
|
|
736
736
|
originalEvent: V,
|
|
@@ -739,7 +739,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
739
739
|
});
|
|
740
740
|
}, M = x ? x(N) : N ? String(N[s] ?? "") : void 0;
|
|
741
741
|
return /* @__PURE__ */ n(
|
|
742
|
-
|
|
742
|
+
ys,
|
|
743
743
|
{
|
|
744
744
|
value: M,
|
|
745
745
|
placeholder: o,
|
|
@@ -753,22 +753,22 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
753
753
|
appendTo: g,
|
|
754
754
|
onShow: C,
|
|
755
755
|
onHide: f,
|
|
756
|
-
footer: w == null ? void 0 : ({ close: k }) => /* @__PURE__ */ n(
|
|
756
|
+
footer: w == null ? void 0 : ({ close: k }) => /* @__PURE__ */ n(Lc, { onClick: k, children: typeof w == "function" ? w(e, k) : w }),
|
|
757
757
|
children: ({ close: k }) => c.map((V, L) => /* @__PURE__ */ n(
|
|
758
|
-
|
|
758
|
+
Lc,
|
|
759
759
|
{
|
|
760
760
|
selected: L === A,
|
|
761
|
-
disabled:
|
|
761
|
+
disabled: Ic(V, y),
|
|
762
762
|
onClick: (O) => {
|
|
763
763
|
S(V, O), k();
|
|
764
764
|
},
|
|
765
765
|
children: v ? v(V) : String(V[s] ?? "")
|
|
766
766
|
},
|
|
767
|
-
|
|
767
|
+
jt(L)
|
|
768
768
|
))
|
|
769
769
|
}
|
|
770
770
|
);
|
|
771
|
-
}, Jr = "?", $r =
|
|
771
|
+
}, Jr = "?", $r = Jt.ListItem, el = Io, tl = (e) => {
|
|
772
772
|
const {
|
|
773
773
|
value: t,
|
|
774
774
|
options: c = [],
|
|
@@ -789,11 +789,11 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
789
789
|
onHide: v,
|
|
790
790
|
itemTemplate: x
|
|
791
791
|
} = e;
|
|
792
|
-
|
|
793
|
-
const y = new Map(c.map((L, O) => [
|
|
794
|
-
const T =
|
|
792
|
+
Es("MultiSelect", c, a);
|
|
793
|
+
const y = new Map(c.map((L, O) => [jt(O), L])), w = /* @__PURE__ */ new Map(), E = (Array.isArray(t) ? t : []).map((L, O) => {
|
|
794
|
+
const T = As(c, a, L);
|
|
795
795
|
if (T !== -1)
|
|
796
|
-
return
|
|
796
|
+
return jt(T);
|
|
797
797
|
const z = `${Jr}${O}`;
|
|
798
798
|
return w.set(z, L), z;
|
|
799
799
|
}), A = (L) => {
|
|
@@ -828,7 +828,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
828
828
|
L
|
|
829
829
|
));
|
|
830
830
|
return /* @__PURE__ */ n(
|
|
831
|
-
|
|
831
|
+
ys,
|
|
832
832
|
{
|
|
833
833
|
value: V,
|
|
834
834
|
placeholder: r,
|
|
@@ -842,7 +842,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
842
842
|
onShow: f,
|
|
843
843
|
onHide: v,
|
|
844
844
|
children: () => c.map((L, O) => {
|
|
845
|
-
const T =
|
|
845
|
+
const T = jt(O), z = E.includes(T);
|
|
846
846
|
return /* @__PURE__ */ n(
|
|
847
847
|
$r,
|
|
848
848
|
{
|
|
@@ -857,7 +857,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
857
857
|
})
|
|
858
858
|
}
|
|
859
859
|
);
|
|
860
|
-
}, nl =
|
|
860
|
+
}, nl = Kt.TextArea, cl = (e) => {
|
|
861
861
|
const {
|
|
862
862
|
value: t,
|
|
863
863
|
defaultValue: c,
|
|
@@ -898,7 +898,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
898
898
|
onFocus: v
|
|
899
899
|
}
|
|
900
900
|
);
|
|
901
|
-
}, sl =
|
|
901
|
+
}, sl = Kt.Text, al = qn, ol = "MMM D, YYYY", rl = Mo, ll = { "& input": { cursor: "pointer" } }, il = { "&& .MuiInputAdornment-root .MuiInputAdornment-root": { paddingLeft: "2px" } }, Mn = {
|
|
902
902
|
"&&": {
|
|
903
903
|
width: 32,
|
|
904
904
|
height: 32,
|
|
@@ -974,7 +974,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
974
974
|
"aria-hidden": !y,
|
|
975
975
|
onClick: M,
|
|
976
976
|
onMouseDown: (O) => O.preventDefault(),
|
|
977
|
-
children: /* @__PURE__ */ n(
|
|
977
|
+
children: /* @__PURE__ */ n($t, { "aria-hidden": "true" })
|
|
978
978
|
}
|
|
979
979
|
) }) : null, L = {
|
|
980
980
|
...C ? {} : ll,
|
|
@@ -1052,7 +1052,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1052
1052
|
p?.error || p?.disabled || o?.(h);
|
|
1053
1053
|
}, u = s || a.split(/\s+/).includes("p-invalid");
|
|
1054
1054
|
return /* @__PURE__ */ n(
|
|
1055
|
-
|
|
1055
|
+
Ns,
|
|
1056
1056
|
{
|
|
1057
1057
|
...l,
|
|
1058
1058
|
options: r,
|
|
@@ -1062,7 +1062,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1062
1062
|
onChange: m
|
|
1063
1063
|
}
|
|
1064
1064
|
);
|
|
1065
|
-
}, xl = ze.Toolbar,
|
|
1065
|
+
}, xl = ze.Toolbar, Ss = ({
|
|
1066
1066
|
title: e,
|
|
1067
1067
|
badge: t,
|
|
1068
1068
|
supportingText: c,
|
|
@@ -1079,7 +1079,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1079
1079
|
className: a,
|
|
1080
1080
|
style: o
|
|
1081
1081
|
}
|
|
1082
|
-
), wl =
|
|
1082
|
+
), wl = Kt.Search, yl = ({
|
|
1083
1083
|
value: e,
|
|
1084
1084
|
onChange: t,
|
|
1085
1085
|
onClear: c,
|
|
@@ -1145,7 +1145,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1145
1145
|
"/src/assets/cf-config.svg": () => Promise.resolve().then(() => j6).then((e) => e.default),
|
|
1146
1146
|
"/src/assets/channel-sms.svg": () => Promise.resolve().then(() => U6).then((e) => e.default),
|
|
1147
1147
|
"/src/assets/chat.svg": () => Promise.resolve().then(() => W6).then((e) => e.default),
|
|
1148
|
-
"/src/assets/chev_Arrow_Right-light.svg": () => Promise.resolve().then(() =>
|
|
1148
|
+
"/src/assets/chev_Arrow_Right-light.svg": () => Promise.resolve().then(() => Q6).then((e) => e.default),
|
|
1149
1149
|
"/src/assets/chev_arrow_left.svg": () => Promise.resolve().then(() => G6).then((e) => e.default),
|
|
1150
1150
|
"/src/assets/chev_arrow_right.svg": () => Promise.resolve().then(() => Z6).then((e) => e.default),
|
|
1151
1151
|
"/src/assets/chevron.svg": () => Promise.resolve().then(() => J6).then((e) => e.default),
|
|
@@ -1172,7 +1172,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1172
1172
|
"/src/assets/external_link.svg": () => Promise.resolve().then(() => ju).then((e) => e.default),
|
|
1173
1173
|
"/src/assets/field_boolean.svg": () => Promise.resolve().then(() => Uu).then((e) => e.default),
|
|
1174
1174
|
"/src/assets/field_date.svg": () => Promise.resolve().then(() => Wu).then((e) => e.default),
|
|
1175
|
-
"/src/assets/field_dropdown.svg": () => Promise.resolve().then(() =>
|
|
1175
|
+
"/src/assets/field_dropdown.svg": () => Promise.resolve().then(() => Qu).then((e) => e.default),
|
|
1176
1176
|
"/src/assets/field_input.svg": () => Promise.resolve().then(() => Gu).then((e) => e.default),
|
|
1177
1177
|
"/src/assets/field_number.svg": () => Promise.resolve().then(() => Zu).then((e) => e.default),
|
|
1178
1178
|
"/src/assets/field_url.svg": () => Promise.resolve().then(() => Ju).then((e) => e.default),
|
|
@@ -1199,7 +1199,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1199
1199
|
"/src/assets/insights/sentiment_face_neutral.svg": () => Promise.resolve().then(() => j4).then((e) => e.default),
|
|
1200
1200
|
"/src/assets/insights/sentiment_face_positive.svg": () => Promise.resolve().then(() => U4).then((e) => e.default),
|
|
1201
1201
|
"/src/assets/insights/sentiment_smiley.svg": () => Promise.resolve().then(() => W4).then((e) => e.default),
|
|
1202
|
-
"/src/assets/insights/thumb_down.svg": () => Promise.resolve().then(() =>
|
|
1202
|
+
"/src/assets/insights/thumb_down.svg": () => Promise.resolve().then(() => Q4).then((e) => e.default),
|
|
1203
1203
|
"/src/assets/insights/thumb_down_filled.svg": () => Promise.resolve().then(() => G4).then((e) => e.default),
|
|
1204
1204
|
"/src/assets/insights/thumb_up.svg": () => Promise.resolve().then(() => Z4).then((e) => e.default),
|
|
1205
1205
|
"/src/assets/insights/thumb_up_filled.svg": () => Promise.resolve().then(() => J4).then((e) => e.default),
|
|
@@ -1226,7 +1226,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1226
1226
|
"/src/assets/status-snoozed.svg": () => Promise.resolve().then(() => j5).then((e) => e.default),
|
|
1227
1227
|
"/src/assets/status_open.svg": () => Promise.resolve().then(() => U5).then((e) => e.default),
|
|
1228
1228
|
"/src/assets/text_icon.svg": () => Promise.resolve().then(() => W5).then((e) => e.default),
|
|
1229
|
-
"/src/assets/ticket.svg": () => Promise.resolve().then(() =>
|
|
1229
|
+
"/src/assets/ticket.svg": () => Promise.resolve().then(() => Q5).then((e) => e.default),
|
|
1230
1230
|
"/src/assets/toggle_icon.svg": () => Promise.resolve().then(() => G5).then((e) => e.default),
|
|
1231
1231
|
"/src/assets/trash.svg": () => Promise.resolve().then(() => Z5).then((e) => e.default),
|
|
1232
1232
|
"/src/assets/user.svg": () => Promise.resolve().then(() => J5).then((e) => e.default),
|
|
@@ -1241,7 +1241,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1241
1241
|
"#0f172a": "#d1d2d5",
|
|
1242
1242
|
"#1e293b": "#d1d2d5",
|
|
1243
1243
|
"#276cf0": "#3b6ce8"
|
|
1244
|
-
}, Sl = /fill="(?:#334155|#64758b|#475569|#94a3b8|#0f172a|#1e293b)"/gi,
|
|
1244
|
+
}, Sl = /fill="(?:#334155|#64758b|#475569|#94a3b8|#0f172a|#1e293b)"/gi, q = ({
|
|
1245
1245
|
name: e,
|
|
1246
1246
|
size: t = 16,
|
|
1247
1247
|
type: c = "active",
|
|
@@ -1369,7 +1369,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1369
1369
|
red: "red",
|
|
1370
1370
|
orange: "orange",
|
|
1371
1371
|
yellow: "lime"
|
|
1372
|
-
}, Ol = (e) => e.replace(/[\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F1E0}-\u{1F1FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}]/gu, ""),
|
|
1372
|
+
}, Ol = (e) => e.replace(/[\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F1E0}-\u{1F1FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}]/gu, ""), ks = (e, t = 1) => !e || typeof e != "string" ? "@" : Ol(e).split(/[ -]/).map((s) => s.charAt(0).toUpperCase()).join("").replace(/[^A-Z]/g, "").substring(0, t) || "@", xt = ({
|
|
1373
1373
|
name: e,
|
|
1374
1374
|
size: t = "default",
|
|
1375
1375
|
className: c,
|
|
@@ -1378,7 +1378,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1378
1378
|
letterCount: o = 1
|
|
1379
1379
|
}) => {
|
|
1380
1380
|
const r = j(
|
|
1381
|
-
() =>
|
|
1381
|
+
() => ks(a || e, o),
|
|
1382
1382
|
[e, a, o]
|
|
1383
1383
|
), l = a || e, i = j(
|
|
1384
1384
|
() => s ? null : Yn(l),
|
|
@@ -1514,7 +1514,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1514
1514
|
children: g
|
|
1515
1515
|
}
|
|
1516
1516
|
) : /* @__PURE__ */ n(J, { children: g });
|
|
1517
|
-
}, K = (...e) => e.flatMap((c) => c ? c.trim().split(/\s+/) : []).filter((c) => !!c).join(" "),
|
|
1517
|
+
}, K = (...e) => e.flatMap((c) => c ? c.trim().split(/\s+/) : []).filter((c) => !!c).join(" "), nn = ({ name: e, size: t = 16, className: c, style: s }) => {
|
|
1518
1518
|
const a = {
|
|
1519
1519
|
width: t,
|
|
1520
1520
|
height: t,
|
|
@@ -1583,14 +1583,14 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1583
1583
|
)
|
|
1584
1584
|
}
|
|
1585
1585
|
);
|
|
1586
|
-
},
|
|
1586
|
+
}, Ts = {
|
|
1587
1587
|
HOT_SESSION: "hot_d_session_info",
|
|
1588
1588
|
SESSION: "session"
|
|
1589
|
-
},
|
|
1589
|
+
}, _s = new tr(), Dl = () => _s.get(Ts.HOT_SESSION), Fl = () => _s.get(Ts.SESSION), Pl = {
|
|
1590
1590
|
message_preview: (e) => e.message_preview ?? null,
|
|
1591
1591
|
created_at: (e) => e.created_at ?? e.timestamp ?? null,
|
|
1592
1592
|
sm_details: (e) => e.sm_details ?? []
|
|
1593
|
-
},
|
|
1593
|
+
}, Oc = ["inbox_conversation_id", "has_access", "channel"], Bl = ["channel_type", "contact"], Rl = (e) => e === "company" ? [...Oc, ...Bl] : Oc, Hl = (e) => typeof e == "object" && e !== null && !Array.isArray(e), jl = (e, t, c) => {
|
|
1594
1594
|
if (!Hl(e)) return e;
|
|
1595
1595
|
for (const a of Rl(t))
|
|
1596
1596
|
a in e || console.warn("[customer-module] conversation field missing", {
|
|
@@ -1640,37 +1640,37 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1640
1640
|
}, Ul = {
|
|
1641
1641
|
"/v1/contacts": "contacts",
|
|
1642
1642
|
"/v1/companies": "companies"
|
|
1643
|
-
},
|
|
1643
|
+
}, Ms = (e) => e.startsWith(":"), Ln = (e) => e.split(/[?#]/)[0].replace(/\/+$/, "").split("/"), zl = (e, t) => {
|
|
1644
1644
|
const c = Ln(e), s = Ln(t);
|
|
1645
1645
|
return c.length !== s.length ? !1 : c.every(
|
|
1646
|
-
(a, o) =>
|
|
1646
|
+
(a, o) => Ms(a) || a === s[o]
|
|
1647
1647
|
);
|
|
1648
|
-
},
|
|
1648
|
+
}, Dc = (e) => Ln(e).filter((t) => !Ms(t)).length, Is = (e) => {
|
|
1649
1649
|
const t = Object.keys(Zn).filter(
|
|
1650
1650
|
(s) => zl(s, e)
|
|
1651
1651
|
);
|
|
1652
1652
|
if (t.length < 2) return t;
|
|
1653
|
-
const c = Math.max(...t.map(
|
|
1654
|
-
return t.filter((s) =>
|
|
1653
|
+
const c = Math.max(...t.map(Dc));
|
|
1654
|
+
return t.filter((s) => Dc(s) === c);
|
|
1655
1655
|
}, Wl = (e) => {
|
|
1656
|
-
const t =
|
|
1656
|
+
const t = Is(e);
|
|
1657
1657
|
return t.length !== 1 ? null : Zn[t[0]];
|
|
1658
|
-
},
|
|
1659
|
-
const t =
|
|
1658
|
+
}, Xl = (e) => {
|
|
1659
|
+
const t = Is(e).find((c) => Zn[c] === "A");
|
|
1660
1660
|
return t ? Ul[t] ?? null : null;
|
|
1661
|
-
},
|
|
1661
|
+
}, Ls = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Ql = (e) => Ls(e) && "status" in e && "data" in e, ql = (e) => Ls(e) && "results" in e, Os = (e) => ({
|
|
1662
1662
|
status: "success",
|
|
1663
1663
|
message: null,
|
|
1664
1664
|
data: e
|
|
1665
1665
|
}), Gl = (e, t) => {
|
|
1666
1666
|
const { results: c, total_results: s, page_number: a, ...o } = e;
|
|
1667
|
-
return
|
|
1667
|
+
return Os({
|
|
1668
1668
|
[t]: c,
|
|
1669
1669
|
total: s,
|
|
1670
1670
|
page: a,
|
|
1671
1671
|
...o
|
|
1672
1672
|
});
|
|
1673
|
-
},
|
|
1673
|
+
}, Fc = (e, t, c) => {
|
|
1674
1674
|
console.warn("[customer-module] envelope normaliser fell through", {
|
|
1675
1675
|
route: e,
|
|
1676
1676
|
group: t,
|
|
@@ -1679,11 +1679,11 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1679
1679
|
}, Yl = (e) => e ? /\bjson\b/i.test(e) : !0, Zl = ({ path: e, method: t, status: c, contentType: s, body: a }) => {
|
|
1680
1680
|
if (!Yl(s)) return a;
|
|
1681
1681
|
const o = Wl(e);
|
|
1682
|
-
if (o !== "A" && o !== "B" || t.toUpperCase() !== "GET" ||
|
|
1682
|
+
if (o !== "A" && o !== "B" || t.toUpperCase() !== "GET" || Ql(a)) return a;
|
|
1683
1683
|
if (!ql(a))
|
|
1684
|
-
return
|
|
1684
|
+
return Fc(e, o, c), a;
|
|
1685
1685
|
if (o === "B")
|
|
1686
|
-
return
|
|
1686
|
+
return Os({
|
|
1687
1687
|
...a,
|
|
1688
1688
|
results: Vl(
|
|
1689
1689
|
a.results,
|
|
@@ -1691,8 +1691,8 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1691
1691
|
e
|
|
1692
1692
|
)
|
|
1693
1693
|
});
|
|
1694
|
-
const r =
|
|
1695
|
-
return r ? Gl(a, r) : (
|
|
1694
|
+
const r = Xl(e);
|
|
1695
|
+
return r ? Gl(a, r) : (Fc(e, o, c), a);
|
|
1696
1696
|
}, Kl = (e) => {
|
|
1697
1697
|
if (!e || typeof e != "object") return;
|
|
1698
1698
|
const t = {};
|
|
@@ -1711,7 +1711,7 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1711
1711
|
try {
|
|
1712
1712
|
a = await e(t.url ?? "", s);
|
|
1713
1713
|
} catch (l) {
|
|
1714
|
-
throw
|
|
1714
|
+
throw Ut(l) ? l : new pt(
|
|
1715
1715
|
l instanceof Error ? l.message : "Host transport failed",
|
|
1716
1716
|
pt.ERR_NETWORK,
|
|
1717
1717
|
t,
|
|
@@ -1729,13 +1729,13 @@ const Ic = Kt.ListItem, Es = (e) => {
|
|
|
1729
1729
|
o
|
|
1730
1730
|
);
|
|
1731
1731
|
return o;
|
|
1732
|
-
},
|
|
1732
|
+
}, G = en.create({
|
|
1733
1733
|
baseURL: "",
|
|
1734
1734
|
headers: {
|
|
1735
1735
|
"Content-Type": "application/json"
|
|
1736
1736
|
}
|
|
1737
1737
|
});
|
|
1738
|
-
|
|
1738
|
+
G.interceptors.request.use(
|
|
1739
1739
|
(e) => {
|
|
1740
1740
|
const t = P.getState().config, c = P.getState().callbacks?.cmApiCallback;
|
|
1741
1741
|
c && (e.adapter = Jl(c), e.transformRequest = [(a) => a]), e.meta?.getParams && (e.params = {
|
|
@@ -1776,8 +1776,8 @@ const $l = (e, t) => {
|
|
|
1776
1776
|
if (!t || t.status !== 401) return !1;
|
|
1777
1777
|
const c = t.data;
|
|
1778
1778
|
return typeof c == "object" && c !== null && "state" in c ? c.state === "not_loggedin" : !0;
|
|
1779
|
-
},
|
|
1780
|
-
|
|
1779
|
+
}, Wt = (e) => e?.response?.status ?? null;
|
|
1780
|
+
G.interceptors.response.use(
|
|
1781
1781
|
(e) => (P.getState().config?.platform !== "GMAIL" || (e.data = Zl({
|
|
1782
1782
|
path: e.config?.url ?? "",
|
|
1783
1783
|
method: e.config?.method ?? "get",
|
|
@@ -1787,7 +1787,7 @@ q.interceptors.response.use(
|
|
|
1787
1787
|
})), e),
|
|
1788
1788
|
(e) => (ei(e) && (e.isAuthError = !0), Promise.reject(e))
|
|
1789
1789
|
);
|
|
1790
|
-
const ti = async (e, t) => (await
|
|
1790
|
+
const ti = async (e, t) => (await G.patch(
|
|
1791
1791
|
`/v1/conversations/${e}/primary-contact?channel=email`,
|
|
1792
1792
|
t
|
|
1793
1793
|
)).data, ni = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M14%2014L11.1%2011.1M12.6667%207.33333C12.6667%2010.2789%2010.2789%2012.6667%207.33333%2012.6667C4.38781%2012.6667%202%2010.2789%202%207.33333C2%204.38781%204.38781%202%207.33333%202C10.2789%202%2012.6667%204.38781%2012.6667%207.33333Z'%20stroke='%2364758B'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", ot = () => P((t) => t.callbacks), ce = {
|
|
@@ -1821,7 +1821,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1821
1821
|
INSIGHTS_DETAILED: "/v1/accounts/:company_id/insights",
|
|
1822
1822
|
INSIGHTS_HEALTH_FEEDBACK: "/v1/accounts/:company_id/insights/health/feedback",
|
|
1823
1823
|
INSIGHTS_SIGNAL_CONVERSATIONS: "/v1/accounts/:company_id/insights/:type/contributors"
|
|
1824
|
-
},
|
|
1824
|
+
}, Xt = async (e) => (await G.get(ce.CONTACTS, {
|
|
1825
1825
|
params: {
|
|
1826
1826
|
text: e?.text,
|
|
1827
1827
|
page_number: e?.page_number ?? 1,
|
|
@@ -1833,9 +1833,9 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1833
1833
|
has_conversations: e?.has_conversations,
|
|
1834
1834
|
has_email: e?.has_email
|
|
1835
1835
|
}
|
|
1836
|
-
})).data,
|
|
1836
|
+
})).data, Ds = async (e) => (await G.post(ce.CONTACTS_WITH_FILTERS, e)).data, Fs = async (e) => (await G.get(
|
|
1837
1837
|
`/v1/contacts/${e}/summary`
|
|
1838
|
-
)).data, On = async (e, t) => (await
|
|
1838
|
+
)).data, On = async (e, t) => (await G.get(
|
|
1839
1839
|
`/v1/contacts/${e}/conversations`,
|
|
1840
1840
|
{
|
|
1841
1841
|
params: {
|
|
@@ -1848,7 +1848,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1848
1848
|
date_to: t?.date_to
|
|
1849
1849
|
}
|
|
1850
1850
|
}
|
|
1851
|
-
)).data, ci = async (e, t) => (await
|
|
1851
|
+
)).data, ci = async (e, t) => (await G.get(
|
|
1852
1852
|
`/v1/contacts/${e}/activity`,
|
|
1853
1853
|
{
|
|
1854
1854
|
params: {
|
|
@@ -1857,8 +1857,8 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1857
1857
|
activity_type: t?.activity_type
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
)).data,
|
|
1861
|
-
const s = (await
|
|
1860
|
+
)).data, Ps = async (e, t) => {
|
|
1861
|
+
const s = (await G.put(
|
|
1862
1862
|
`/v1/contacts/${e}`,
|
|
1863
1863
|
t
|
|
1864
1864
|
)).data;
|
|
@@ -1868,7 +1868,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1868
1868
|
data: s
|
|
1869
1869
|
};
|
|
1870
1870
|
}, si = async (e) => {
|
|
1871
|
-
const c = (await
|
|
1871
|
+
const c = (await G.post(
|
|
1872
1872
|
"/v1/contacts",
|
|
1873
1873
|
e
|
|
1874
1874
|
)).data;
|
|
@@ -1877,14 +1877,14 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1877
1877
|
message: null,
|
|
1878
1878
|
data: c
|
|
1879
1879
|
};
|
|
1880
|
-
},
|
|
1880
|
+
}, Bs = async (e) => {
|
|
1881
1881
|
const t = () => {
|
|
1882
1882
|
const s = new URLSearchParams();
|
|
1883
1883
|
return e.forEach((a) => {
|
|
1884
1884
|
s.append("emails", a);
|
|
1885
1885
|
}), s.toString();
|
|
1886
1886
|
};
|
|
1887
|
-
return (await
|
|
1887
|
+
return (await G.get("/v1/search", {
|
|
1888
1888
|
params: {},
|
|
1889
1889
|
paramsSerializer: t
|
|
1890
1890
|
})).data;
|
|
@@ -1893,12 +1893,12 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1893
1893
|
createContact: si,
|
|
1894
1894
|
getContactActivity: ci,
|
|
1895
1895
|
getContactConversations: On,
|
|
1896
|
-
getContactSummary:
|
|
1897
|
-
getContacts:
|
|
1898
|
-
getContactsWithFilters:
|
|
1899
|
-
searchContactsByEmails:
|
|
1900
|
-
updateContact:
|
|
1901
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1896
|
+
getContactSummary: Fs,
|
|
1897
|
+
getContacts: Xt,
|
|
1898
|
+
getContactsWithFilters: Ds,
|
|
1899
|
+
searchContactsByEmails: Bs,
|
|
1900
|
+
updateContact: Ps
|
|
1901
|
+
}, Symbol.toStringTag, { value: "Module" })), Pc = (e, t, c) => t !== void 0 && typeof c == "number" ? { companyContactTotals: { ...e.companyContactTotals, [t]: c } } : {}, Ce = We((e, t) => ({
|
|
1902
1902
|
data: null,
|
|
1903
1903
|
isLoading: !1,
|
|
1904
1904
|
error: null,
|
|
@@ -1914,16 +1914,16 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1914
1914
|
fetchContacts: async (c) => {
|
|
1915
1915
|
e({ isLoading: !0, error: null, errorStatus: null, data: null });
|
|
1916
1916
|
try {
|
|
1917
|
-
const s = await
|
|
1917
|
+
const s = await Xt(c);
|
|
1918
1918
|
e((a) => ({
|
|
1919
1919
|
data: s.data,
|
|
1920
1920
|
isLoading: !1,
|
|
1921
|
-
...
|
|
1921
|
+
...Pc(a, c?.company_id, s.data?.total)
|
|
1922
1922
|
}));
|
|
1923
1923
|
} catch (s) {
|
|
1924
1924
|
e({
|
|
1925
1925
|
error: s instanceof Error ? s.message : "Failed to fetch contacts",
|
|
1926
|
-
errorStatus:
|
|
1926
|
+
errorStatus: Wt(s),
|
|
1927
1927
|
isLoading: !1
|
|
1928
1928
|
});
|
|
1929
1929
|
}
|
|
@@ -1938,7 +1938,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1938
1938
|
}
|
|
1939
1939
|
e({ isLoading: !0, error: null, errorStatus: null });
|
|
1940
1940
|
try {
|
|
1941
|
-
const o = (s.data?.page ?? 0) + 1, r = await
|
|
1941
|
+
const o = (s.data?.page ?? 0) + 1, r = await Xt({ ...c, page_number: o });
|
|
1942
1942
|
e((l) => {
|
|
1943
1943
|
if (!l.data)
|
|
1944
1944
|
return { data: r.data, isLoading: !1 };
|
|
@@ -1949,13 +1949,13 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1949
1949
|
contacts: [...i, ...m]
|
|
1950
1950
|
},
|
|
1951
1951
|
isLoading: !1,
|
|
1952
|
-
...
|
|
1952
|
+
...Pc(l, c?.company_id, r.data?.total)
|
|
1953
1953
|
};
|
|
1954
1954
|
});
|
|
1955
1955
|
} catch (a) {
|
|
1956
1956
|
e({
|
|
1957
1957
|
error: a instanceof Error ? a.message : "Failed to fetch contacts",
|
|
1958
|
-
errorStatus:
|
|
1958
|
+
errorStatus: Wt(a),
|
|
1959
1959
|
isLoading: !1
|
|
1960
1960
|
});
|
|
1961
1961
|
}
|
|
@@ -1967,7 +1967,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
1967
1967
|
summaryErrors: { ...s.summaryErrors, [c]: null }
|
|
1968
1968
|
}));
|
|
1969
1969
|
try {
|
|
1970
|
-
const s = await
|
|
1970
|
+
const s = await Fs(c);
|
|
1971
1971
|
e((a) => ({
|
|
1972
1972
|
summaries: { ...a.summaries, [c]: s.data },
|
|
1973
1973
|
summaryLoading: { ...a.summaryLoading, [c]: !1 }
|
|
@@ -2069,7 +2069,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2069
2069
|
setData: (c) => e({ data: c }),
|
|
2070
2070
|
searchContactsByEmails: async (c) => {
|
|
2071
2071
|
try {
|
|
2072
|
-
const s = c.slice(0, 10), a = await
|
|
2072
|
+
const s = c.slice(0, 10), a = await Bs(s);
|
|
2073
2073
|
if (a && typeof a == "object" && "data" in a) {
|
|
2074
2074
|
const r = a.data?.results || [], l = {};
|
|
2075
2075
|
r.forEach((i) => {
|
|
@@ -2143,12 +2143,12 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2143
2143
|
F(() => {
|
|
2144
2144
|
if (k && c && Array.isArray(c)) {
|
|
2145
2145
|
const Y = c.filter((B) => {
|
|
2146
|
-
const
|
|
2147
|
-
return !B.name &&
|
|
2146
|
+
const Q = B.email;
|
|
2147
|
+
return !B.name && Q && !p[Q] && !M.current.has(Q);
|
|
2148
2148
|
}).map((B) => B.email);
|
|
2149
2149
|
if (Y.length > 0) {
|
|
2150
2150
|
const B = Y.slice(0, 10);
|
|
2151
|
-
B.forEach((
|
|
2151
|
+
B.forEach((Q) => M.current.add(Q)), h(B);
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
2154
2154
|
}, [k, c, h]);
|
|
@@ -2159,12 +2159,12 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2159
2159
|
}, O = () => {
|
|
2160
2160
|
b(!1), S(!1), f("add-primary-contact"), x(""), w(null);
|
|
2161
2161
|
}, T = s ? u[s]?.email : null, ee = j(() => !c || !Array.isArray(c) ? [] : c.map((Y, B) => {
|
|
2162
|
-
const
|
|
2162
|
+
const Q = Y.email || "", ye = Y.name || (Q ? p[Q] : "") || "";
|
|
2163
2163
|
return {
|
|
2164
|
-
id:
|
|
2164
|
+
id: Q || `contact-${B}`,
|
|
2165
2165
|
name: ye,
|
|
2166
|
-
email:
|
|
2167
|
-
isSelected: T ?
|
|
2166
|
+
email: Q,
|
|
2167
|
+
isSelected: T ? Q === T : !1
|
|
2168
2168
|
};
|
|
2169
2169
|
}), [c, T, p]).filter(
|
|
2170
2170
|
(Y) => Y.name.toLowerCase().includes(v.toLowerCase()) || Y.email.toLowerCase().includes(v.toLowerCase())
|
|
@@ -2180,12 +2180,12 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2180
2180
|
const Y = await ti(t, {
|
|
2181
2181
|
email: y.email,
|
|
2182
2182
|
name: y.name
|
|
2183
|
-
}), B = Y.data.new_primary_contact.id,
|
|
2183
|
+
}), B = Y.data.new_primary_contact.id, Q = Y.data.new_primary_contact.name, ye = Y.data.new_primary_contact.email;
|
|
2184
2184
|
if (await m(B), s && s === B) {
|
|
2185
2185
|
const re = u[s];
|
|
2186
2186
|
re && i(s, {
|
|
2187
2187
|
...re,
|
|
2188
|
-
name:
|
|
2188
|
+
name: Q,
|
|
2189
2189
|
email: ye
|
|
2190
2190
|
});
|
|
2191
2191
|
}
|
|
@@ -2280,7 +2280,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2280
2280
|
}
|
|
2281
2281
|
` }),
|
|
2282
2282
|
/* @__PURE__ */ n(
|
|
2283
|
-
|
|
2283
|
+
bs,
|
|
2284
2284
|
{
|
|
2285
2285
|
showBackButton: C === "primary-contact-confirmation",
|
|
2286
2286
|
showCloseButton: C === "add-primary-contact",
|
|
@@ -2323,7 +2323,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2323
2323
|
)
|
|
2324
2324
|
] })
|
|
2325
2325
|
] }),
|
|
2326
|
-
e.isSelected && /* @__PURE__ */ n("div", { className: "cm:overflow-clip cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5", children: /* @__PURE__ */ n(
|
|
2326
|
+
e.isSelected && /* @__PURE__ */ n("div", { className: "cm:overflow-clip cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5", children: /* @__PURE__ */ n(nn, { name: "check", size: 14, className: "cm:text-primary-text-default cm:text-sm cm:pr-2" }) })
|
|
2327
2327
|
]
|
|
2328
2328
|
}
|
|
2329
2329
|
), li = "data:image/svg+xml,%3csvg%20width='100'%20height='94'%20viewBox='0%200%20100%2094'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='0.551665'%20d='M10.959%2049.9883H32.8768V62.4883H10.959V49.9883Z'%20fill='%23B3D0E8'/%3e%3cpath%20opacity='0.551665'%20d='M67.209%2049.9883H89.1268V62.4883H67.209V49.9883Z'%20fill='%23B3D0E8'/%3e%3cpath%20opacity='0.8'%20d='M11%200H89V12H11V0Z'%20fill='%23B3D0E8'/%3e%3cpath%20opacity='0.551665'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M89.1263%2065.5742V82.7831H67.2085V65.5742H89.1263ZM78.1674%2074.9609H75.0363C74.1717%2074.9609%2073.4707%2075.6613%2073.4707%2076.5254C73.4707%2077.3894%2074.1717%2078.0898%2075.0363%2078.0898H78.1674C79.032%2078.0898%2079.733%2077.3894%2079.733%2076.5254C79.733%2075.6613%2079.032%2074.9609%2078.1674%2074.9609Z'%20fill='%23D3E5F3'/%3e%3cpath%20d='M0%2089.8633H100V93.0311H0V89.8633Z'%20fill='%23D5E5F2'/%3e%3cpath%20opacity='0.551665'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M32.8763%2065.5742V82.7831H10.9585V65.5742H32.8763ZM25.0485%2074.9609H21.9174C21.0528%2074.9609%2020.3518%2075.6613%2020.3518%2076.5254C20.3518%2077.3894%2021.0528%2078.0898%2021.9174%2078.0898H25.0485C25.9131%2078.0898%2026.6141%2077.3894%2026.6141%2076.5254C26.6141%2075.6613%2025.9131%2074.9609%2025.0485%2074.9609Z'%20fill='%23D3E5F3'/%3e%3cpath%20opacity='0.8'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M93.5164%2014.7714C93.2315%2014.311%2092.7284%2014.031%2092.1868%2014.0312H7.8132C7.27162%2014.031%206.76853%2014.311%206.48365%2014.7713C6.19876%2015.2316%206.1727%2015.8066%206.41479%2016.2907L10.9381%2025.3301V46.8223H32.8128V40.5764C32.8214%2032.8186%2039.1122%2026.5317%2046.875%2026.5231H53.1249C60.8877%2026.5317%2067.1786%2032.8186%2067.1872%2040.5764V46.8223H89.0618V25.3301L93.5852%2016.2907C93.8273%2015.8066%2093.8013%2015.2317%2093.5164%2014.7714ZM25.0004%2029.6462H21.8755C21.0125%2029.6462%2020.313%2028.9471%2020.313%2028.0848C20.313%2027.2224%2021.0125%2026.5233%2021.8755%2026.5233H25.0004C25.8633%2026.5233%2026.5629%2027.2224%2026.5629%2028.0848C26.5629%2028.9471%2025.8633%2029.6462%2025.0004%2029.6462ZM78.1245%2026.5233H74.9996C74.1366%2026.5233%2073.4371%2027.2224%2073.4371%2028.0848C73.4371%2028.9471%2074.1366%2029.6462%2074.9996%2029.6462H78.1245C78.9874%2029.6462%2079.687%2028.9471%2079.687%2028.0848C79.687%2027.2224%2078.9874%2026.5233%2078.1245%2026.5233ZM74.9996%2043.6994H73.4371C72.5742%2043.6994%2071.8746%2043.0003%2071.8746%2042.1379C71.8746%2041.2755%2072.5742%2040.5764%2073.4371%2040.5764H74.9996C75.8625%2040.5764%2076.562%2041.2755%2076.562%2042.1379C76.562%2043.0003%2075.8625%2043.6994%2074.9996%2043.6994ZM79.687%2043.6994H81.2495C82.1124%2043.6994%2082.8119%2043.0003%2082.8119%2042.1379C82.8119%2041.2755%2082.1124%2040.5764%2081.2495%2040.5764H79.687C78.8241%2040.5764%2078.1245%2041.2755%2078.1245%2042.1379C78.1245%2043.0003%2078.8241%2043.6994%2079.687%2043.6994Z'%20fill='%23B3D0E8'/%3e%3crect%20x='2'%20y='14.0312'%20width='9'%20height='30'%20fill='white'/%3e%3crect%20x='89'%20y='14.0312'%20width='9'%20height='30'%20fill='white'/%3e%3c/svg%3e", _t = "https://cdn.hiverhq.com/channels/default_bot_images", Ue = {
|
|
@@ -2331,7 +2331,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2331
2331
|
hiverBee2: `${_t}/Hiver_Bee_2.png`,
|
|
2332
2332
|
importAnimation: `${_t}/import-animation.gif`,
|
|
2333
2333
|
successState: `${_t}/success-state.gif`
|
|
2334
|
-
},
|
|
2334
|
+
}, Xe = ({ title: e, subcopy: t, icon: c = "hiver-bee", iconContent: s, contentClassName: a }) => {
|
|
2335
2335
|
const o = P((i) => i.theme === "dark"), r = c === "india-gate" ? li : Ue.hiverBee, l = s && o && s === Ue.hiverBee2 ? Ue.hiverBee : s;
|
|
2336
2336
|
return /* @__PURE__ */ n("div", { className: "cm:flex cm:flex-1 cm:flex-col cm:items-center cm:justify-center cm:w-full cm:min-h-[400px] cm:py-8", children: /* @__PURE__ */ d("div", { className: `cm:flex cm:flex-1 cm:flex-col cm:items-center cm:justify-center cm:gap-3 ${a || ""}`, children: [
|
|
2337
2337
|
/* @__PURE__ */ n("div", { className: "cm:h-[93.031px] cm:w-[100px] cm:shrink-0", children: /* @__PURE__ */ n(
|
|
@@ -2352,10 +2352,10 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2352
2352
|
/* @__PURE__ */ n("div", { className: "cm:absolute cm:inset-0 cm:border-2 cm:border-transparent cm:border-t-slate-icons-subtle cm:rounded-full cm:animate-spin" })
|
|
2353
2353
|
] }) }), ii = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.94%208.84c0%20.81-.66%201.47-1.47%201.47S0%209.65%200%208.84s.66-1.47%201.47-1.47h1.47v1.47Zm.74%200c0-.81.66-1.47%201.47-1.47s1.47.66%201.47%201.47v3.69c0%20.81-.66%201.47-1.47%201.47s-1.47-.66-1.47-1.47V8.84Z'%20fill='%23E01E5A'/%3e%3cpath%20d='M5.16%202.94c-.81%200-1.47-.66-1.47-1.47S4.35%200%205.16%200s1.47.66%201.47%201.47v1.47H5.16Zm0%20.74c.81%200%201.47.66%201.47%201.47s-.66%201.47-1.47%201.47H1.47C.66%206.63%200%205.97%200%205.16s.66-1.47%201.47-1.47h3.69Z'%20fill='%2336C5F0'/%3e%3cpath%20d='M11.06%205.16c0-.81.66-1.47%201.47-1.47S14%204.35%2014%205.16s-.66%201.47-1.47%201.47h-1.47V5.16Zm-.74%200c0%20.81-.66%201.47-1.47%201.47s-1.47-.66-1.47-1.47V1.47C7.38.66%208.04%200%208.85%200s1.47.66%201.47%201.47v3.69Z'%20fill='%232EB67D'/%3e%3cpath%20d='M8.85%2011.06c.81%200%201.47.66%201.47%201.47S9.66%2014%208.85%2014s-1.47-.66-1.47-1.47v-1.47h1.47Zm0-.74c-.81%200-1.47-.66-1.47-1.47s.66-1.47%201.47-1.47h3.69c.81%200%201.47.66%201.47%201.47s-.66%201.47-1.47%201.47H8.85Z'%20fill='%23ECB22E'/%3e%3c/svg%3e", mi = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%200C3.13406%200%200%203.13406%200%207C0%208.27186%200.339306%209.46458%200.932167%2010.4924L0%2014L3.6365%2013.1404C4.63478%2013.6883%205.78083%2014%207%2014C10.8659%2014%2014%2010.8659%2014%207C14%203.13406%2010.8659%200%207%200ZM7%2012.7462C5.83003%2012.7462%204.74192%2012.3966%203.83406%2011.796L1.68564%2012.3431L2.28822%2010.2896C1.63625%209.35764%201.25378%208.22344%201.25378%206.99981C1.25378%203.82628%203.82647%201.25358%207%201.25358C10.1735%201.25358%2012.7462%203.82628%2012.7462%206.99981C12.7462%2010.1733%2010.1735%2012.746%207%2012.746V12.7462Z'%20fill='%23475569'/%3e%3cpath%20d='M8.64015%207.92402L10.3338%208.7224C10.4115%208.75896%2010.4613%208.8379%2010.4543%208.92346C10.436%209.14629%2010.3466%209.59293%209.94623%209.99329C8.81612%2011.1234%206.7867%209.84474%206.70407%209.79535C6.20493%209.52721%205.73068%209.16846%205.28093%208.7189C4.83137%208.26935%204.47243%207.7949%204.20429%207.29577C4.1547%207.21332%202.87604%205.1839%204.00634%204.0536C4.4067%203.65324%204.85334%203.56379%205.07618%203.54552C5.16193%203.53852%205.24068%203.58829%205.27723%203.66607L6.07582%205.35968C6.11354%205.43979%206.09701%205.53507%206.0344%205.59768L5.4392%206.19288C5.31048%206.3216%205.27276%206.52207%205.36143%206.68113C5.57862%207.0706%205.87068%207.44568%206.20901%207.79082C6.55415%208.12915%206.92923%208.4214%207.3187%208.6384C7.47776%208.72707%207.67804%208.68935%207.80695%208.56063L8.40215%207.96543C8.46476%207.90282%208.56004%207.8861%208.64015%207.92402Z'%20fill='%23475569'/%3e%3c/svg%3e", di = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.45835%207.00065H3.43117C3.83087%207.00065%204.19627%207.22646%204.37502%207.58398C4.55377%207.94151%204.91917%208.16732%205.31887%208.16732H8.68119C9.08089%208.16732%209.44629%207.94151%209.62502%207.58398C9.80375%207.22646%2010.1692%207.00065%2010.5689%207.00065H12.5417M5.23051%202.33398H8.7695C9.39769%202.33398%209.71176%202.33398%209.98908%202.42963C10.2343%202.51421%2010.4577%202.65225%2010.643%202.83376C10.8525%203.039%2010.993%203.31993%2011.2739%203.88178L12.5377%206.40944C12.648%206.62994%2012.7031%206.74019%2012.742%206.85569C12.7765%206.95836%2012.8014%207.06394%2012.8164%207.17116C12.8334%207.29185%2012.8334%207.41511%2012.8334%207.66162V8.86732C12.8334%209.84743%2012.8334%2010.3374%2012.6426%2010.7118C12.4748%2011.0411%2012.2071%2011.3088%2011.8779%2011.4766C11.5035%2011.6673%2011.0135%2011.6673%2010.0334%2011.6673H3.96669C2.98659%2011.6673%202.49655%2011.6673%202.1222%2011.4766C1.79292%2011.3088%201.5252%2011.0411%201.35743%2010.7118C1.16669%2010.3374%201.16669%209.84743%201.16669%208.86732V7.66162C1.16669%207.41511%201.16669%207.29185%201.18359%207.17116C1.1986%207.06394%201.22353%206.95836%201.25805%206.85569C1.29692%206.74019%201.35205%206.62994%201.46229%206.40944L2.72612%203.88178C3.00705%203.31993%203.14751%203.039%203.35707%202.83376C3.54239%202.65225%203.76573%202.51421%204.01096%202.42963C4.28825%202.33398%204.60234%202.33398%205.23051%202.33398Z'%20stroke='%23FFFFFF'%20stroke-width='1.1'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", ui = "#64758B", hi = "var(--cm-color-charcoal-icon-secondary)", rt = () => P((t) => t.theme === "dark") ? hi : ui, pi = ({ iconSize: e }) => {
|
|
2354
2354
|
const t = rt();
|
|
2355
|
-
return /* @__PURE__ */ n(
|
|
2355
|
+
return /* @__PURE__ */ n(q, { name: "conversation", size: 14, color: t, className: e });
|
|
2356
2356
|
}, fi = ({ iconSize: e }) => {
|
|
2357
2357
|
const t = rt();
|
|
2358
|
-
return /* @__PURE__ */ n(
|
|
2358
|
+
return /* @__PURE__ */ n(q, { name: "email", size: 14, color: t, className: e });
|
|
2359
2359
|
}, gi = ({ iconSize: e }) => /* @__PURE__ */ n(
|
|
2360
2360
|
"img",
|
|
2361
2361
|
{
|
|
@@ -2372,16 +2372,16 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2372
2372
|
}
|
|
2373
2373
|
), vi = ({ iconSize: e }) => {
|
|
2374
2374
|
const t = rt();
|
|
2375
|
-
return /* @__PURE__ */ n(
|
|
2375
|
+
return /* @__PURE__ */ n(q, { name: "ticket", size: 14, color: t, className: e });
|
|
2376
2376
|
}, bi = ({ iconSize: e }) => {
|
|
2377
2377
|
const t = rt();
|
|
2378
|
-
return /* @__PURE__ */ n(
|
|
2378
|
+
return /* @__PURE__ */ n(q, { name: "phone", size: 14, color: t, className: e });
|
|
2379
2379
|
}, xi = ({ iconSize: e }) => {
|
|
2380
2380
|
const t = rt();
|
|
2381
|
-
return /* @__PURE__ */ n(
|
|
2381
|
+
return /* @__PURE__ */ n(q, { name: "channel-sms", size: 14, color: t, className: e });
|
|
2382
2382
|
}, wi = ({ iconSize: e }) => {
|
|
2383
2383
|
const t = rt();
|
|
2384
|
-
return /* @__PURE__ */ n(
|
|
2384
|
+
return /* @__PURE__ */ n(q, { name: "sm_inboxs", size: 14, color: t, className: e });
|
|
2385
2385
|
}, yi = ({ iconSize: e }) => /* @__PURE__ */ n(
|
|
2386
2386
|
"img",
|
|
2387
2387
|
{
|
|
@@ -2390,7 +2390,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2390
2390
|
className: e
|
|
2391
2391
|
}
|
|
2392
2392
|
), Ai = ({ iconSize: e, icon: t, color: c }) => /* @__PURE__ */ n(
|
|
2393
|
-
|
|
2393
|
+
q,
|
|
2394
2394
|
{
|
|
2395
2395
|
name: t,
|
|
2396
2396
|
size: 14,
|
|
@@ -2474,7 +2474,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2474
2474
|
maxWidth: "cm:max-w-90",
|
|
2475
2475
|
dividerHeight: "cm:h-3"
|
|
2476
2476
|
}
|
|
2477
|
-
}, ki = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("g", { clipPath: "url(#clip0_815_38495)" }, /* @__PURE__ */ D.createElement("path", { d: "M12.25 5.25001V1.75001M12.25 1.75001H8.75M12.25 1.75001L7 7M5.83333 1.75H4.55C3.56991 1.75 3.07986 1.75 2.70552 1.94074C2.37623 2.10852 2.10852 2.37623 1.94074 2.70552C1.75 3.07986 1.75 3.56991 1.75 4.55V9.45C1.75 10.4301 1.75 10.9201 1.94074 11.2945C2.10852 11.6238 2.37623 11.8915 2.70552 12.0592C3.07986 12.25 3.56991 12.25 4.55 12.25H9.45C10.4301 12.25 10.9201 12.25 11.2945 12.0592C11.6238 11.8915 11.8915 11.6238 12.0592 11.2945C12.25 10.9201 12.25 10.4301 12.25 9.45V8.16667", stroke: "currentColor", strokeWidth: 1.1375, strokeLinecap: "round", strokeLinejoin: "round" })), /* @__PURE__ */ D.createElement("defs", null, /* @__PURE__ */ D.createElement("clipPath", { id: "clip0_815_38495" }, /* @__PURE__ */ D.createElement("rect", { width: 14, height: 14, fill: "white" })))),
|
|
2477
|
+
}, ki = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("g", { clipPath: "url(#clip0_815_38495)" }, /* @__PURE__ */ D.createElement("path", { d: "M12.25 5.25001V1.75001M12.25 1.75001H8.75M12.25 1.75001L7 7M5.83333 1.75H4.55C3.56991 1.75 3.07986 1.75 2.70552 1.94074C2.37623 2.10852 2.10852 2.37623 1.94074 2.70552C1.75 3.07986 1.75 3.56991 1.75 4.55V9.45C1.75 10.4301 1.75 10.9201 1.94074 11.2945C2.10852 11.6238 2.37623 11.8915 2.70552 12.0592C3.07986 12.25 3.56991 12.25 4.55 12.25H9.45C10.4301 12.25 10.9201 12.25 11.2945 12.0592C11.6238 11.8915 11.8915 11.6238 12.0592 11.2945C12.25 10.9201 12.25 10.4301 12.25 9.45V8.16667", stroke: "currentColor", strokeWidth: 1.1375, strokeLinecap: "round", strokeLinejoin: "round" })), /* @__PURE__ */ D.createElement("defs", null, /* @__PURE__ */ D.createElement("clipPath", { id: "clip0_815_38495" }, /* @__PURE__ */ D.createElement("rect", { width: 14, height: 14, fill: "white" })))), Bc = (e, t) => {
|
|
2478
2478
|
const c = Math.floor(Math.random() * (t - e + 1)) + e, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
|
|
2479
2479
|
let a = "";
|
|
2480
2480
|
for (let o = 0; o < c; o++)
|
|
@@ -2497,7 +2497,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2497
2497
|
if (e.isMissedCall) return "Missed Call";
|
|
2498
2498
|
const c = e.callState === "completed" ? _i(e.durationSeconds) : e.callState === "in-progress" ? "In progress" : "Ringing";
|
|
2499
2499
|
return `${t} · ${c}`;
|
|
2500
|
-
}, Mt = ({ dividerHeight: e }) => /* @__PURE__ */ n("div", { className: `${e} cm:w-px cm:bg-slate-border-light cm:shrink-0` }),
|
|
2500
|
+
}, Mt = ({ dividerHeight: e }) => /* @__PURE__ */ n("div", { className: `${e} cm:w-px cm:bg-slate-border-light cm:shrink-0` }), cn = ({
|
|
2501
2501
|
hasAccess: e = !0,
|
|
2502
2502
|
type: t,
|
|
2503
2503
|
status: c,
|
|
@@ -2519,8 +2519,8 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2519
2519
|
messagePreview: r,
|
|
2520
2520
|
timestamp: o
|
|
2521
2521
|
} : {
|
|
2522
|
-
subject: l ||
|
|
2523
|
-
messagePreview: r ||
|
|
2522
|
+
subject: l || Bc(10, 30),
|
|
2523
|
+
messagePreview: r || Bc(30, 50),
|
|
2524
2524
|
timestamp: o || Ti()
|
|
2525
2525
|
}, [e, l, r, o]), E = u && u.length > 0 ? u : i || m ? [{ sm_name: i || "", assignee: m?.name, sm_id: 0, status: c }] : [], A = E.length > 0 ? E[0] : null, N = E.length > 1 ? E.length - 1 : 0, S = E.length > 1 ? E.slice(1) : [], M = e, k = !e && (t === "slack" || t === "voice"), V = (T) => {
|
|
2526
2526
|
if (!M) {
|
|
@@ -2708,7 +2708,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2708
2708
|
}
|
|
2709
2709
|
)
|
|
2710
2710
|
] });
|
|
2711
|
-
},
|
|
2711
|
+
}, sn = ({
|
|
2712
2712
|
size: e = "default",
|
|
2713
2713
|
type: t = "email"
|
|
2714
2714
|
}) => {
|
|
@@ -2762,7 +2762,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2762
2762
|
/* @__PURE__ */ n("p", { className: "cm:text-sm cm:font-normal cm:leading-5 cm:text-slate-text-subtle cm:text-center", children: t })
|
|
2763
2763
|
] })
|
|
2764
2764
|
] }) });
|
|
2765
|
-
}, Kn = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='70'%20height='68'%20viewBox='0%200%2070%2068'%20fill='none'%3e%3cpath%20d='M46.5343%2021.0848C59.3159%2020.8896%2069.7481%2030.9495%2069.9956%2043.7301C70.0319%2045.6066%2069.8443%2047.433%2069.458%2049.1849C68.8036%2052.1513%2068.4147%2055.1699%2068.4147%2058.2077V64.0795C68.4147%2064.9791%2067.6854%2065.7083%2066.7858%2065.7083H60.914C57.8763%2065.7083%2054.8576%2066.0973%2051.8913%2066.7516C50.1395%2067.138%2048.3131%2067.3256%2046.4366%2067.2892C33.6561%2067.0419%2023.5962%2056.61%2023.7912%2043.8287C23.9814%2031.3531%2034.0589%2021.2754%2046.5343%2021.0848Z'%20fill='url(%23paint0_linear_2165_2741)'/%3e%3cpath%20d='M46.5343%2021.0848C59.3159%2020.8896%2069.7481%2030.9495%2069.9956%2043.7301C70.0319%2045.6066%2069.8443%2047.433%2069.458%2049.1849C68.8036%2052.1513%2068.4147%2055.1699%2068.4147%2058.2077V64.0795C68.4147%2064.9791%2067.6854%2065.7083%2066.7858%2065.7083H60.914C57.8763%2065.7083%2054.8576%2066.0973%2051.8913%2066.7516C50.1395%2067.138%2048.3131%2067.3256%2046.4366%2067.2892C33.6561%2067.0419%2023.5962%2056.61%2023.7912%2043.8287C23.9814%2031.3531%2034.0589%2021.2754%2046.5343%2021.0848Z'%20fill='url(%23paint1_linear_2165_2741)'/%3e%3cpath%20d='M28.5877%200.00340525C13.0162%20-0.234485%200.306983%2012.0211%200.00538116%2027.5915C-0.038779%2029.8773%200.189678%2032.1026%200.660537%2034.2368C1.45761%2037.8506%201.93147%2041.5282%201.93147%2045.229V52.3824C1.93147%2053.4783%202.81987%2054.3669%203.91595%2054.3669H11.0693C14.77%2054.3669%2018.4476%2054.8407%2022.0615%2055.6378C24.1957%2056.1085%2026.4209%2056.3371%2028.7067%2056.2928C44.2768%2055.9914%2056.5324%2043.2825%2056.2951%2027.7114C56.0632%2012.5128%2043.7861%200.235417%2028.5877%200.00340525Z'%20fill='url(%23paint2_linear_2165_2741)'/%3e%3cpath%20d='M18.0733%2026.6412C17.2781%2025.7962%2016.1526%2025.2656%2014.9006%2025.2656C12.4925%2025.2656%2010.5405%2027.2177%2010.5405%2029.6257C10.5405%2030.8777%2011.0709%2032.0031%2011.916%2032.7984L21.3214%2042.2038C22.1167%2043.0488%2023.2422%2043.5794%2024.4941%2043.5794C26.9021%2043.5794%2028.8542%2041.6273%2028.8542%2039.2193C28.8542%2037.9673%2028.3236%2036.8419%2027.4787%2036.0466L18.0733%2026.6412Z'%20fill='url(%23paint3_linear_2165_2741)'/%3e%3ccircle%20cx='14.9006'%20cy='29.6257'%20r='4.3601'%20fill='white'/%3e%3cpath%20d='M30.4039%2026.6412C29.6087%2025.7962%2028.4833%2025.2656%2027.2312%2025.2656C24.8232%2025.2656%2022.8711%2027.2177%2022.8711%2029.6257C22.8711%2030.8777%2023.4016%2032.0031%2024.2466%2032.7984L33.6521%2042.2038C34.4473%2043.0488%2035.5728%2043.5794%2036.8247%2043.5794C39.2328%2043.5794%2041.1848%2041.6273%2041.1848%2039.2193C41.1848%2037.9673%2040.6542%2036.8419%2039.8093%2036.0466L30.4039%2026.6412Z'%20fill='url(%23paint4_linear_2165_2741)'/%3e%3ccircle%20cx='27.2314'%20cy='29.6257'%20r='4.3601'%20fill='white'/%3e%3cpath%20d='M42.7344%2026.6412C41.9392%2025.7962%2040.8138%2025.2656%2039.5617%2025.2656C37.1537%2025.2656%2035.2016%2027.2177%2035.2016%2029.6257C35.2016%2030.8777%2035.7322%2032.0031%2036.5771%2032.7984L45.9826%2042.2038C46.7778%2043.0488%2047.9033%2043.5794%2049.1552%2043.5794C51.5633%2043.5794%2053.5153%2041.6273%2053.5153%2039.2193C53.5153%2037.9673%2052.9847%2036.8419%2052.1398%2036.0466L42.7344%2026.6412Z'%20fill='url(%23paint5_linear_2165_2741)'/%3e%3ccircle%20cx='39.5625'%20cy='29.6257'%20r='4.3601'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2165_2741'%20x1='25.2684'%20y1='56.4867'%20x2='59.1916'%20y2='90.4099'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A7F3CE'/%3e%3cstop%20offset='1'%20stop-color='%2361DB99'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2165_2741'%20x1='60.5383'%20y1='43.4248'%20x2='46.1296'%20y2='29.0175'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2361DB99'%20stop-opacity='0.01'/%3e%3cstop%20offset='1'%20stop-color='%23009E74'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2165_2741'%20x1='12.8809'%20y1='49.8579'%20x2='56.2985'%20y2='49.8579'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFABC'/%3e%3cstop%20offset='1'%20stop-color='%23FFA650'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2165_2741'%20x1='32.3463'%20y1='35.529'%20x2='22.2372'%20y2='24.4146'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFABC'%20stop-opacity='0.01'/%3e%3cstop%20offset='1'%20stop-color='%23FFA650'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_2165_2741'%20x1='44.6769'%20y1='35.529'%20x2='34.5678'%20y2='24.4146'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFABC'%20stop-opacity='0.01'/%3e%3cstop%20offset='1'%20stop-color='%23FFA650'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_2165_2741'%20x1='57.0074'%20y1='35.529'%20x2='46.8983'%20y2='24.4146'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFABC'%20stop-opacity='0.01'/%3e%3cstop%20offset='1'%20stop-color='%23FFA650'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Dn = async (e) => (await
|
|
2765
|
+
}, Kn = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='70'%20height='68'%20viewBox='0%200%2070%2068'%20fill='none'%3e%3cpath%20d='M46.5343%2021.0848C59.3159%2020.8896%2069.7481%2030.9495%2069.9956%2043.7301C70.0319%2045.6066%2069.8443%2047.433%2069.458%2049.1849C68.8036%2052.1513%2068.4147%2055.1699%2068.4147%2058.2077V64.0795C68.4147%2064.9791%2067.6854%2065.7083%2066.7858%2065.7083H60.914C57.8763%2065.7083%2054.8576%2066.0973%2051.8913%2066.7516C50.1395%2067.138%2048.3131%2067.3256%2046.4366%2067.2892C33.6561%2067.0419%2023.5962%2056.61%2023.7912%2043.8287C23.9814%2031.3531%2034.0589%2021.2754%2046.5343%2021.0848Z'%20fill='url(%23paint0_linear_2165_2741)'/%3e%3cpath%20d='M46.5343%2021.0848C59.3159%2020.8896%2069.7481%2030.9495%2069.9956%2043.7301C70.0319%2045.6066%2069.8443%2047.433%2069.458%2049.1849C68.8036%2052.1513%2068.4147%2055.1699%2068.4147%2058.2077V64.0795C68.4147%2064.9791%2067.6854%2065.7083%2066.7858%2065.7083H60.914C57.8763%2065.7083%2054.8576%2066.0973%2051.8913%2066.7516C50.1395%2067.138%2048.3131%2067.3256%2046.4366%2067.2892C33.6561%2067.0419%2023.5962%2056.61%2023.7912%2043.8287C23.9814%2031.3531%2034.0589%2021.2754%2046.5343%2021.0848Z'%20fill='url(%23paint1_linear_2165_2741)'/%3e%3cpath%20d='M28.5877%200.00340525C13.0162%20-0.234485%200.306983%2012.0211%200.00538116%2027.5915C-0.038779%2029.8773%200.189678%2032.1026%200.660537%2034.2368C1.45761%2037.8506%201.93147%2041.5282%201.93147%2045.229V52.3824C1.93147%2053.4783%202.81987%2054.3669%203.91595%2054.3669H11.0693C14.77%2054.3669%2018.4476%2054.8407%2022.0615%2055.6378C24.1957%2056.1085%2026.4209%2056.3371%2028.7067%2056.2928C44.2768%2055.9914%2056.5324%2043.2825%2056.2951%2027.7114C56.0632%2012.5128%2043.7861%200.235417%2028.5877%200.00340525Z'%20fill='url(%23paint2_linear_2165_2741)'/%3e%3cpath%20d='M18.0733%2026.6412C17.2781%2025.7962%2016.1526%2025.2656%2014.9006%2025.2656C12.4925%2025.2656%2010.5405%2027.2177%2010.5405%2029.6257C10.5405%2030.8777%2011.0709%2032.0031%2011.916%2032.7984L21.3214%2042.2038C22.1167%2043.0488%2023.2422%2043.5794%2024.4941%2043.5794C26.9021%2043.5794%2028.8542%2041.6273%2028.8542%2039.2193C28.8542%2037.9673%2028.3236%2036.8419%2027.4787%2036.0466L18.0733%2026.6412Z'%20fill='url(%23paint3_linear_2165_2741)'/%3e%3ccircle%20cx='14.9006'%20cy='29.6257'%20r='4.3601'%20fill='white'/%3e%3cpath%20d='M30.4039%2026.6412C29.6087%2025.7962%2028.4833%2025.2656%2027.2312%2025.2656C24.8232%2025.2656%2022.8711%2027.2177%2022.8711%2029.6257C22.8711%2030.8777%2023.4016%2032.0031%2024.2466%2032.7984L33.6521%2042.2038C34.4473%2043.0488%2035.5728%2043.5794%2036.8247%2043.5794C39.2328%2043.5794%2041.1848%2041.6273%2041.1848%2039.2193C41.1848%2037.9673%2040.6542%2036.8419%2039.8093%2036.0466L30.4039%2026.6412Z'%20fill='url(%23paint4_linear_2165_2741)'/%3e%3ccircle%20cx='27.2314'%20cy='29.6257'%20r='4.3601'%20fill='white'/%3e%3cpath%20d='M42.7344%2026.6412C41.9392%2025.7962%2040.8138%2025.2656%2039.5617%2025.2656C37.1537%2025.2656%2035.2016%2027.2177%2035.2016%2029.6257C35.2016%2030.8777%2035.7322%2032.0031%2036.5771%2032.7984L45.9826%2042.2038C46.7778%2043.0488%2047.9033%2043.5794%2049.1552%2043.5794C51.5633%2043.5794%2053.5153%2041.6273%2053.5153%2039.2193C53.5153%2037.9673%2052.9847%2036.8419%2052.1398%2036.0466L42.7344%2026.6412Z'%20fill='url(%23paint5_linear_2165_2741)'/%3e%3ccircle%20cx='39.5625'%20cy='29.6257'%20r='4.3601'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2165_2741'%20x1='25.2684'%20y1='56.4867'%20x2='59.1916'%20y2='90.4099'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A7F3CE'/%3e%3cstop%20offset='1'%20stop-color='%2361DB99'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2165_2741'%20x1='60.5383'%20y1='43.4248'%20x2='46.1296'%20y2='29.0175'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2361DB99'%20stop-opacity='0.01'/%3e%3cstop%20offset='1'%20stop-color='%23009E74'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2165_2741'%20x1='12.8809'%20y1='49.8579'%20x2='56.2985'%20y2='49.8579'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFABC'/%3e%3cstop%20offset='1'%20stop-color='%23FFA650'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2165_2741'%20x1='32.3463'%20y1='35.529'%20x2='22.2372'%20y2='24.4146'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFABC'%20stop-opacity='0.01'/%3e%3cstop%20offset='1'%20stop-color='%23FFA650'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_2165_2741'%20x1='44.6769'%20y1='35.529'%20x2='34.5678'%20y2='24.4146'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFABC'%20stop-opacity='0.01'/%3e%3cstop%20offset='1'%20stop-color='%23FFA650'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_2165_2741'%20x1='57.0074'%20y1='35.529'%20x2='46.8983'%20y2='24.4146'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFABC'%20stop-opacity='0.01'/%3e%3cstop%20offset='1'%20stop-color='%23FFA650'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Dn = async (e) => (await G.get(ce.COMPANIES, {
|
|
2766
2766
|
params: {
|
|
2767
2767
|
text: e?.text,
|
|
2768
2768
|
page_number: e?.page_number ?? 1,
|
|
@@ -2773,14 +2773,14 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2773
2773
|
has_conversations: e?.has_conversations,
|
|
2774
2774
|
filter_by: e?.filter_by
|
|
2775
2775
|
}
|
|
2776
|
-
})).data, Oi = async (e, t) => (await
|
|
2776
|
+
})).data, Oi = async (e, t) => (await G.post(
|
|
2777
2777
|
ce.COMPANIES_WITH_FILTERS,
|
|
2778
2778
|
e,
|
|
2779
2779
|
// Keep the At Risk tab applied when custom-field filters are active too.
|
|
2780
2780
|
{ params: t ? { filter_by: t } : void 0 }
|
|
2781
|
-
)).data, Di = async (e) => (await
|
|
2781
|
+
)).data, Di = async (e) => (await G.get(
|
|
2782
2782
|
`/v1/companies/${e}/summary`
|
|
2783
|
-
)).data,
|
|
2783
|
+
)).data, Rc = async (e, t) => (await G.get(
|
|
2784
2784
|
`/v1/companies/${e}/conversations`,
|
|
2785
2785
|
{
|
|
2786
2786
|
params: {
|
|
@@ -2812,7 +2812,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2812
2812
|
} catch (s) {
|
|
2813
2813
|
e({
|
|
2814
2814
|
error: s instanceof Error ? s.message : "Failed to fetch companies",
|
|
2815
|
-
errorStatus:
|
|
2815
|
+
errorStatus: Wt(s),
|
|
2816
2816
|
isLoading: !1
|
|
2817
2817
|
});
|
|
2818
2818
|
}
|
|
@@ -2843,7 +2843,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2843
2843
|
} catch (a) {
|
|
2844
2844
|
e({
|
|
2845
2845
|
error: a instanceof Error ? a.message : "Failed to fetch companies",
|
|
2846
|
-
errorStatus:
|
|
2846
|
+
errorStatus: Wt(a),
|
|
2847
2847
|
isLoading: !1
|
|
2848
2848
|
});
|
|
2849
2849
|
}
|
|
@@ -2876,7 +2876,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2876
2876
|
conversationsErrors: { ...a.conversationsErrors, [c]: null }
|
|
2877
2877
|
}));
|
|
2878
2878
|
try {
|
|
2879
|
-
const a = await
|
|
2879
|
+
const a = await Rc(c, s);
|
|
2880
2880
|
e((o) => ({
|
|
2881
2881
|
conversations: { ...o.conversations, [c]: a.data },
|
|
2882
2882
|
conversationsLoading: { ...o.conversationsLoading, [c]: !1 }
|
|
@@ -2906,7 +2906,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2906
2906
|
conversationsErrors: { ...r.conversationsErrors, [c]: null }
|
|
2907
2907
|
}));
|
|
2908
2908
|
try {
|
|
2909
|
-
const l = (o?.page_number ?? 0) + 1, i = await
|
|
2909
|
+
const l = (o?.page_number ?? 0) + 1, i = await Rc(c, { ...s, page_number: l });
|
|
2910
2910
|
e((m) => {
|
|
2911
2911
|
if (!m.conversations[c])
|
|
2912
2912
|
return {
|
|
@@ -2998,27 +2998,27 @@ const ti = async (e, t) => (await q.patch(
|
|
|
2998
2998
|
return isNaN(t.getTime()) ? "-" : At(t);
|
|
2999
2999
|
}, Bi = {
|
|
3000
3000
|
SPACE: 4
|
|
3001
|
-
}, Ri = (e) => e === Bi.SPACE || typeof e == "string" && e.toLowerCase() === "space",
|
|
3001
|
+
}, Ri = (e) => e === Bi.SPACE || typeof e == "string" && e.toLowerCase() === "space", Rs = "Unknown", Hs = (e) => !e || e.trim() === "", Ee = (e) => !e || typeof e == "string" && e.trim() === "" ? "-" : e, js = (e, t) => Hs(e) && Ri(t) ? Rs : e ?? "", Hi = (e) => Hs(e) ? Rs : e, ji = (e) => e < 1024 ? `${e}B` : e < 1024 * 1024 ? `${Math.round(e / 1024)}KB` : `${(e / (1024 * 1024)).toFixed(1)}MB`, Vi = () => P.getState().features?.[se.VOICE_ENABLED] ?? !1, Vs = () => P.getState().features?.[se.SLACK_CUSTOMER_MODULE_ENABLED] ?? !1, Us = () => P.getState().features?.[se.SMS_CUSTOMER_MODULE_ENABLED] ?? !1, zs = (e) => ({
|
|
3002
3002
|
direction: e.direction,
|
|
3003
3003
|
callState: e.call_state,
|
|
3004
3004
|
durationSeconds: e.duration_seconds,
|
|
3005
3005
|
customerPhoneNumber: e.customer_phone_number,
|
|
3006
3006
|
isMissedCall: e.is_missed_call ?? !1,
|
|
3007
3007
|
voicemailAvailable: e.voicemail_available ?? !1
|
|
3008
|
-
}),
|
|
3008
|
+
}), Ws = (e, t, c) => {
|
|
3009
3009
|
if (c || t === "voice")
|
|
3010
3010
|
return "voice";
|
|
3011
3011
|
if (!e)
|
|
3012
3012
|
return "email";
|
|
3013
3013
|
const s = e.toLowerCase();
|
|
3014
3014
|
return s === "email" ? "email" : s === "slack" || s === "space" && t === "slack" ? "slack" : s === "whatsapp" || s === "space" && t === "whatsapp" ? "whatsapp" : s === "sms" || s === "space" && t === "sms" ? "sms" : "chat";
|
|
3015
|
-
},
|
|
3015
|
+
}, Xs = (e, t, c) => {
|
|
3016
3016
|
const s = Vi(), a = e.inbox_type === "voice" || !!e.voice;
|
|
3017
|
-
if (!s && a || !
|
|
3017
|
+
if (!s && a || !Vs() && e.inbox_type === "slack" || !Us() && e.inbox_type === "sms") return null;
|
|
3018
3018
|
const o = e.sm_details || [], r = o[0], l = o.length > 0 ? o[o.length - 1] : null, i = s && !!e.voice;
|
|
3019
3019
|
return {
|
|
3020
3020
|
hasAccess: e.has_access,
|
|
3021
|
-
type:
|
|
3021
|
+
type: Ws(e.channel, e.inbox_type, i),
|
|
3022
3022
|
status: l?.status,
|
|
3023
3023
|
// The card's sender line sits beside the channel icon. A voice contact is only a phone
|
|
3024
3024
|
// number until someone names it, which left that line blank — icon, divider, status, and
|
|
@@ -3039,7 +3039,7 @@ const ti = async (e, t) => (await q.patch(
|
|
|
3039
3039
|
issueType: e.issue_type,
|
|
3040
3040
|
conversationId: e.inbox_conversation_id,
|
|
3041
3041
|
permaLink: e.permalink,
|
|
3042
|
-
...i && { voice:
|
|
3042
|
+
...i && { voice: zs(e.voice) },
|
|
3043
3043
|
...i && { conversation: e }
|
|
3044
3044
|
};
|
|
3045
3045
|
}, Ui = (e) => {
|
|
@@ -3069,11 +3069,11 @@ const ti = async (e, t) => (await q.patch(
|
|
|
3069
3069
|
permaLink: Ui(e.permalink)
|
|
3070
3070
|
};
|
|
3071
3071
|
}, Qs = (e) => {
|
|
3072
|
-
if (e.inbox_type === "voice" || !!e.voice || !
|
|
3072
|
+
if (e.inbox_type === "voice" || !!e.voice || !Vs() && e.inbox_type === "slack" || !Us() && e.inbox_type === "sms") return null;
|
|
3073
3073
|
const c = e.sm_details || [], s = c[0], a = c.length > 0 ? c[c.length - 1] : null, o = !!e.voice, r = e.created_at || e.timestamp;
|
|
3074
3074
|
return {
|
|
3075
3075
|
hasAccess: e.has_access,
|
|
3076
|
-
type:
|
|
3076
|
+
type: Ws(e.channel, e.inbox_type, o),
|
|
3077
3077
|
status: a?.status,
|
|
3078
3078
|
senderName: e.contact?.name || e.contact?.email || void 0,
|
|
3079
3079
|
timestamp: r ? $n(r) : void 0,
|
|
@@ -3090,11 +3090,11 @@ const ti = async (e, t) => (await q.patch(
|
|
|
3090
3090
|
issueType: e.issue_type,
|
|
3091
3091
|
conversationId: e.inbox_conversation_id,
|
|
3092
3092
|
permaLink: e.permalink,
|
|
3093
|
-
...o && { voice:
|
|
3093
|
+
...o && { voice: zs(e.voice) },
|
|
3094
3094
|
...o && { conversation: e }
|
|
3095
3095
|
};
|
|
3096
3096
|
};
|
|
3097
|
-
function
|
|
3097
|
+
function qs({
|
|
3098
3098
|
rootElement: e,
|
|
3099
3099
|
onIntersect: t,
|
|
3100
3100
|
threshold: c = 200,
|
|
@@ -3232,7 +3232,7 @@ function ec({
|
|
|
3232
3232
|
}
|
|
3233
3233
|
}
|
|
3234
3234
|
}, [p, s, c, a]);
|
|
3235
|
-
return
|
|
3235
|
+
return qs({
|
|
3236
3236
|
rootElement: i || e.current,
|
|
3237
3237
|
sentinelElement: u,
|
|
3238
3238
|
onIntersect: b,
|
|
@@ -3257,7 +3257,7 @@ function ec({
|
|
|
3257
3257
|
isLoadingMore: p
|
|
3258
3258
|
};
|
|
3259
3259
|
}
|
|
3260
|
-
const ae = "Company", Ge = "Companies", le = "company", Te = "companies",
|
|
3260
|
+
const ae = "Company", Ge = "Companies", le = "company", Te = "companies", Gs = ({
|
|
3261
3261
|
entityType: e,
|
|
3262
3262
|
entityId: t,
|
|
3263
3263
|
conversationId: c,
|
|
@@ -3272,10 +3272,10 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3272
3272
|
if (!h || !h.results) return !1;
|
|
3273
3273
|
const { total_results: y, page_number: w, page_size: E } = h;
|
|
3274
3274
|
return w * E < y;
|
|
3275
|
-
}, [h]), v = j(() => r ? (m?.results ?? []).map((y) =>
|
|
3275
|
+
}, [h]), v = j(() => r ? (m?.results ?? []).map((y) => Xs(y, C)).filter((y) => y !== null) : (u?.results ?? []).map((y) => Qs(y)).filter((y) => y !== null), [r, m, u, C]), x = j(() => {
|
|
3276
3276
|
if (!f) return [];
|
|
3277
3277
|
const w = v[0]?.type || "email";
|
|
3278
|
-
return Array.from({ length: 3 }, (E, A) => /* @__PURE__ */ n("div", { "data-conversation-shimmer": !0, children: /* @__PURE__ */ n(
|
|
3278
|
+
return Array.from({ length: 3 }, (E, A) => /* @__PURE__ */ n("div", { "data-conversation-shimmer": !0, children: /* @__PURE__ */ n(sn, { size: "small", type: w }) }, `shimmer-${A}`));
|
|
3279
3279
|
}, [f, v]);
|
|
3280
3280
|
return ec({
|
|
3281
3281
|
wrapperRef: o,
|
|
@@ -3300,7 +3300,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3300
3300
|
className: `cm:flex cm:flex-col cm:gap-2 cm:px-4${a ? ` ${a}` : ""}`,
|
|
3301
3301
|
children: [
|
|
3302
3302
|
v.map((y) => /* @__PURE__ */ n(
|
|
3303
|
-
|
|
3303
|
+
cn,
|
|
3304
3304
|
{
|
|
3305
3305
|
size: "small",
|
|
3306
3306
|
...y
|
|
@@ -3311,7 +3311,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3311
3311
|
]
|
|
3312
3312
|
}
|
|
3313
3313
|
);
|
|
3314
|
-
},
|
|
3314
|
+
}, Xi = () => /* @__PURE__ */ n(q, { name: "field_input", size: 14, color: "#334155" }), Qi = () => /* @__PURE__ */ n(q, { name: "field_date", size: 14, color: "#334155" }), qi = () => /* @__PURE__ */ n(q, { name: "field_number", size: 14, color: "#334155" }), Gi = () => /* @__PURE__ */ n(q, { name: "field_url", size: 14, color: "#334155" }), Yi = () => /* @__PURE__ */ n(q, { name: "field_boolean", size: 14, color: "#334155" }), Zi = () => /* @__PURE__ */ n(q, { name: "field_dropdown", size: 14, color: "#334155" }), U = {
|
|
3315
3315
|
COMPANY: "company",
|
|
3316
3316
|
CONTACT: "contact"
|
|
3317
3317
|
}, Ki = {
|
|
@@ -3324,21 +3324,21 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3324
3324
|
DROPDOWN: "DROPDOWN",
|
|
3325
3325
|
CHIP: "CHIP",
|
|
3326
3326
|
BOOLEAN: "BOOLEAN"
|
|
3327
|
-
},
|
|
3327
|
+
}, Hc = {
|
|
3328
3328
|
HIVER: "hiver"
|
|
3329
3329
|
}, Ji = [
|
|
3330
|
-
{ label: "Text", value: W.TEXT, getIcon:
|
|
3330
|
+
{ label: "Text", value: W.TEXT, getIcon: Xi },
|
|
3331
3331
|
{ label: "Number", value: W.NUMBER, getIcon: qi },
|
|
3332
3332
|
{ label: "Dropdown", value: W.DROPDOWN, getIcon: Zi },
|
|
3333
|
-
{ label: "Date", value: W.DATE, getIcon:
|
|
3333
|
+
{ label: "Date", value: W.DATE, getIcon: Qi },
|
|
3334
3334
|
{ label: "Url", value: W.URL, getIcon: Gi },
|
|
3335
3335
|
{ label: "Yes or no", value: W.BOOLEAN, getIcon: Yi }
|
|
3336
|
-
],
|
|
3336
|
+
], jc = {
|
|
3337
3337
|
type: W.TEXT,
|
|
3338
3338
|
dropdown_values: [],
|
|
3339
3339
|
display_name: "",
|
|
3340
3340
|
description: ""
|
|
3341
|
-
},
|
|
3341
|
+
}, Ys = [
|
|
3342
3342
|
{ label: "Yes", value: !0 },
|
|
3343
3343
|
{ label: "No", value: !1 }
|
|
3344
3344
|
], $i = ({
|
|
@@ -3396,7 +3396,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3396
3396
|
),
|
|
3397
3397
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:gap-1", children: [
|
|
3398
3398
|
b && /* @__PURE__ */ n(
|
|
3399
|
-
|
|
3399
|
+
Cn,
|
|
3400
3400
|
{
|
|
3401
3401
|
icon: "at_the_rate",
|
|
3402
3402
|
label: "Email",
|
|
@@ -3404,7 +3404,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3404
3404
|
}
|
|
3405
3405
|
),
|
|
3406
3406
|
C && /* @__PURE__ */ n(
|
|
3407
|
-
|
|
3407
|
+
Cn,
|
|
3408
3408
|
{
|
|
3409
3409
|
icon: "phone",
|
|
3410
3410
|
label: "Phone",
|
|
@@ -3412,7 +3412,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3412
3412
|
}
|
|
3413
3413
|
),
|
|
3414
3414
|
f && /* @__PURE__ */ n(
|
|
3415
|
-
|
|
3415
|
+
Cn,
|
|
3416
3416
|
{
|
|
3417
3417
|
icon: "accounts",
|
|
3418
3418
|
label: ae,
|
|
@@ -3429,7 +3429,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3429
3429
|
g
|
|
3430
3430
|
] }),
|
|
3431
3431
|
/* @__PURE__ */ n(
|
|
3432
|
-
|
|
3432
|
+
Gs,
|
|
3433
3433
|
{
|
|
3434
3434
|
entityType: "contact",
|
|
3435
3435
|
entityId: s,
|
|
@@ -3439,7 +3439,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3439
3439
|
)
|
|
3440
3440
|
] })
|
|
3441
3441
|
] }) : /* @__PURE__ */ n("div", { className: "cm:flex cm:flex-1 cm:flex-col cm:w-full cm:h-full cm:min-h-0 cm:overflow-hidden", style: { marginTop: "-40px" }, children: /* @__PURE__ */ n(
|
|
3442
|
-
|
|
3442
|
+
Xe,
|
|
3443
3443
|
{
|
|
3444
3444
|
title: "No contact",
|
|
3445
3445
|
subcopy: "There are no contacts info to display",
|
|
@@ -3447,9 +3447,9 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3447
3447
|
contentClassName: ""
|
|
3448
3448
|
}
|
|
3449
3449
|
) });
|
|
3450
|
-
},
|
|
3450
|
+
}, Cn = ({ icon: e, label: t, value: c }) => /* @__PURE__ */ d("div", { className: "cm:flex cm:gap-3 cm:items-center cm:h-[38px]", children: [
|
|
3451
3451
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:gap-2 cm:items-center cm:shrink-0 cm:w-27", children: [
|
|
3452
|
-
/* @__PURE__ */ n(
|
|
3452
|
+
/* @__PURE__ */ n(q, { name: e, size: 14, color: "#64758b" }),
|
|
3453
3453
|
/* @__PURE__ */ n("span", { className: "cm:text-sm cm:text-slate-text-subtle cm:leading-5", children: t })
|
|
3454
3454
|
] }),
|
|
3455
3455
|
/* @__PURE__ */ n(
|
|
@@ -3477,12 +3477,12 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3477
3477
|
return a ? /* @__PURE__ */ n("div", { className: "cm:flex cm:items-center cm:justify-center cm:w-full cm:h-full", children: /* @__PURE__ */ n(we, {}) }) : s ? /* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:gap-3 cm:w-full cm:pb-6", children: [
|
|
3478
3478
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:gap-4 cm:px-4 cm:pt-6 cm:pb-4 cm:shrink-0", children: [
|
|
3479
3479
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:gap-3 cm:items-center", children: [
|
|
3480
|
-
/* @__PURE__ */ n("div", { className: "cm:w-7 cm:h-7 cm:rounded-full cm:flex cm:items-center cm:justify-center cm:shrink-0 cm:bg-slate-100", children: /* @__PURE__ */ n(
|
|
3480
|
+
/* @__PURE__ */ n("div", { className: "cm:w-7 cm:h-7 cm:rounded-full cm:flex cm:items-center cm:justify-center cm:shrink-0 cm:bg-slate-100", children: /* @__PURE__ */ n(q, { name: "buildings", size: 14, color: "#94A3B8" }) }),
|
|
3481
3481
|
/* @__PURE__ */ n("h3", { className: "cm:text-base cm:font-medium cm:text-slate-text-title cm:leading-5", children: r })
|
|
3482
3482
|
] }),
|
|
3483
3483
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:gap-1", children: [
|
|
3484
3484
|
l && /* @__PURE__ */ n(
|
|
3485
|
-
|
|
3485
|
+
Vc,
|
|
3486
3486
|
{
|
|
3487
3487
|
icon: "domain",
|
|
3488
3488
|
label: "Domain",
|
|
@@ -3490,7 +3490,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3490
3490
|
}
|
|
3491
3491
|
),
|
|
3492
3492
|
/* @__PURE__ */ n(
|
|
3493
|
-
|
|
3493
|
+
Vc,
|
|
3494
3494
|
{
|
|
3495
3495
|
icon: "contacts",
|
|
3496
3496
|
label: "Contact",
|
|
@@ -3507,7 +3507,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3507
3507
|
r
|
|
3508
3508
|
] }),
|
|
3509
3509
|
/* @__PURE__ */ n(
|
|
3510
|
-
|
|
3510
|
+
Gs,
|
|
3511
3511
|
{
|
|
3512
3512
|
entityType: "company",
|
|
3513
3513
|
entityId: e,
|
|
@@ -3517,16 +3517,16 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3517
3517
|
)
|
|
3518
3518
|
] })
|
|
3519
3519
|
] }) : /* @__PURE__ */ n("div", { className: "cm:flex cm:flex-1 cm:flex-col cm:w-full cm:h-full cm:min-h-0 cm:overflow-hidden", style: { marginTop: "-40px" }, children: /* @__PURE__ */ n(
|
|
3520
|
-
|
|
3520
|
+
Xe,
|
|
3521
3521
|
{
|
|
3522
3522
|
title: `No ${le}`,
|
|
3523
3523
|
subcopy: `There are no ${Te} info to display`,
|
|
3524
3524
|
icon: "hiver-bee"
|
|
3525
3525
|
}
|
|
3526
3526
|
) });
|
|
3527
|
-
},
|
|
3527
|
+
}, Vc = ({ icon: e, label: t, value: c }) => /* @__PURE__ */ d("div", { className: "cm:flex cm:gap-3 cm:items-center cm:h-[38px]", children: [
|
|
3528
3528
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:gap-2 cm:items-center cm:min-w-[90px] cm:shrink-0 cm:w-27", children: [
|
|
3529
|
-
/* @__PURE__ */ n(
|
|
3529
|
+
/* @__PURE__ */ n(q, { name: e, size: 14, color: "#64758b" }),
|
|
3530
3530
|
/* @__PURE__ */ n("span", { className: "cm:text-sm cm:text-slate-text-subtle cm:leading-5", children: t })
|
|
3531
3531
|
] }),
|
|
3532
3532
|
/* @__PURE__ */ n(
|
|
@@ -3601,7 +3601,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3601
3601
|
}
|
|
3602
3602
|
` }),
|
|
3603
3603
|
/* @__PURE__ */ n(
|
|
3604
|
-
|
|
3604
|
+
tn,
|
|
3605
3605
|
{
|
|
3606
3606
|
value: a,
|
|
3607
3607
|
onTabChange: (u) => o(u.index),
|
|
@@ -3615,7 +3615,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3615
3615
|
inset: "0",
|
|
3616
3616
|
zIndex: "9999",
|
|
3617
3617
|
pointerEvents: "none"
|
|
3618
|
-
},
|
|
3618
|
+
}, Zs = () => {
|
|
3619
3619
|
const e = P((o) => o.setMeta), t = P((o) => o.theme), c = te((o) => {
|
|
3620
3620
|
o && e({ globalMountElement: o });
|
|
3621
3621
|
}, [e]), s = /* @__PURE__ */ n(
|
|
@@ -3702,11 +3702,11 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3702
3702
|
label: "Healthy",
|
|
3703
3703
|
className: "cm:bg-green-50 cm:text-green-700"
|
|
3704
3704
|
}
|
|
3705
|
-
},
|
|
3705
|
+
}, Ks = 90, o1 = {
|
|
3706
3706
|
negative: "#B81717",
|
|
3707
3707
|
positive: "#1B6F41",
|
|
3708
3708
|
neutral: "#64758B"
|
|
3709
|
-
}, r1 = "#334155",
|
|
3709
|
+
}, r1 = "#334155", Uc = "What affects health score", l1 = `Insights are based on conversations with this ${le} from the last 90 days.`, i1 = (e) => ce.INSIGHTS_DETAILED.replace(":company_id", String(e)), m1 = (e) => e ? e.charAt(0).toUpperCase() + e.slice(1) : "", d1 = (e) => {
|
|
3710
3710
|
if (!e || !e.insights)
|
|
3711
3711
|
return {
|
|
3712
3712
|
company_id: e?.company_id ?? 0,
|
|
@@ -3746,8 +3746,8 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3746
3746
|
health: c
|
|
3747
3747
|
}
|
|
3748
3748
|
};
|
|
3749
|
-
},
|
|
3750
|
-
const c = await
|
|
3749
|
+
}, Js = (e) => ce.INSIGHTS_HEALTH_FEEDBACK.replace(":company_id", String(e)), zc = async (e, t) => {
|
|
3750
|
+
const c = await G.get(
|
|
3751
3751
|
i1(e),
|
|
3752
3752
|
{ params: t ? { window: t } : void 0 }
|
|
3753
3753
|
);
|
|
@@ -3757,7 +3757,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3757
3757
|
":company_id",
|
|
3758
3758
|
String(e)
|
|
3759
3759
|
).replace(":type", t);
|
|
3760
|
-
return (await
|
|
3760
|
+
return (await G.get(
|
|
3761
3761
|
a,
|
|
3762
3762
|
{
|
|
3763
3763
|
params: {
|
|
@@ -3768,10 +3768,10 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3768
3768
|
}
|
|
3769
3769
|
}
|
|
3770
3770
|
)).data;
|
|
3771
|
-
}, h1 = async (e) => (await
|
|
3772
|
-
|
|
3773
|
-
)).data, p1 = async (e, t) => (await
|
|
3774
|
-
|
|
3771
|
+
}, h1 = async (e) => (await G.get(
|
|
3772
|
+
Js(e)
|
|
3773
|
+
)).data, p1 = async (e, t) => (await G.post(
|
|
3774
|
+
Js(e),
|
|
3775
3775
|
t
|
|
3776
3776
|
)).data, ve = We((e, t) => ({
|
|
3777
3777
|
detailed: {},
|
|
@@ -3796,9 +3796,9 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3796
3796
|
detailedErrors: { ...s.detailedErrors, [c]: !1 }
|
|
3797
3797
|
}));
|
|
3798
3798
|
try {
|
|
3799
|
-
const s = await
|
|
3799
|
+
const s = await zc(
|
|
3800
3800
|
c,
|
|
3801
|
-
|
|
3801
|
+
Ks
|
|
3802
3802
|
), a = s.data?.insights, o = s.data?.insufficient_data ?? !1;
|
|
3803
3803
|
e((r) => ({
|
|
3804
3804
|
detailed: a ? { ...r.detailed, [c]: a } : r.detailed,
|
|
@@ -3839,7 +3839,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3839
3839
|
sentimentLoading: { ...a.sentimentLoading, [c]: !0 }
|
|
3840
3840
|
}));
|
|
3841
3841
|
try {
|
|
3842
|
-
const o = (await
|
|
3842
|
+
const o = (await zc(c, s)).data?.insights?.sentiment;
|
|
3843
3843
|
return e((r) => ({
|
|
3844
3844
|
sentimentByWindow: o ? {
|
|
3845
3845
|
...r.sentimentByWindow,
|
|
@@ -3917,7 +3917,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3917
3917
|
if (!s) return null;
|
|
3918
3918
|
const { summary: a } = e, o = e.summary_links?.[0]?.text, r = o ? a.indexOf(o) : -1;
|
|
3919
3919
|
return /* @__PURE__ */ d("div", { className: "cm:flex cm:w-full cm:items-start cm:gap-3", children: [
|
|
3920
|
-
/* @__PURE__ */ n("span", { className: "cm:flex cm:size-6 cm:shrink-0 cm:items-center cm:justify-center cm:rounded-[4.8px]", children: /* @__PURE__ */ n(
|
|
3920
|
+
/* @__PURE__ */ n("span", { className: "cm:flex cm:size-6 cm:shrink-0 cm:items-center cm:justify-center cm:rounded-[4.8px]", children: /* @__PURE__ */ n(q, { name: s.icon, folder: s.folder, size: 14, color: "#64758B" }) }),
|
|
3921
3921
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:min-w-0 cm:flex-1 cm:flex-col cm:gap-0.5", children: [
|
|
3922
3922
|
/* @__PURE__ */ n("p", { className: "cm:text-[13px] cm:leading-[18px] cm:font-medium cm:text-slate-text-body", children: s.title }),
|
|
3923
3923
|
/* @__PURE__ */ n("p", { className: "cm:text-[13px] cm:leading-[19px] cm:text-slate-text-subtle cm:break-words", children: o && r !== -1 ? /* @__PURE__ */ d(J, { children: [
|
|
@@ -3944,7 +3944,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3944
3944
|
] }) : a })
|
|
3945
3945
|
] })
|
|
3946
3946
|
] });
|
|
3947
|
-
},
|
|
3947
|
+
}, Wc = 260, Xc = 12, g1 = () => {
|
|
3948
3948
|
const [e, t] = _(!1), [c, s] = _({ top: 0, left: 0 }), a = R(null), o = R(null), r = P(
|
|
3949
3949
|
(i) => i.meta.globalMountElement
|
|
3950
3950
|
);
|
|
@@ -3965,20 +3965,20 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3965
3965
|
{
|
|
3966
3966
|
ref: a,
|
|
3967
3967
|
type: "button",
|
|
3968
|
-
"aria-label":
|
|
3968
|
+
"aria-label": Uc,
|
|
3969
3969
|
"aria-expanded": e,
|
|
3970
3970
|
className: "cm:flex cm:cursor-pointer cm:items-center cm:border-0 cm:bg-transparent cm:p-0",
|
|
3971
3971
|
onClick: () => {
|
|
3972
3972
|
if (!e && a.current) {
|
|
3973
3973
|
const i = a.current.getBoundingClientRect(), m = Math.max(
|
|
3974
|
-
|
|
3975
|
-
Math.min(i.left, window.innerWidth -
|
|
3974
|
+
Xc,
|
|
3975
|
+
Math.min(i.left, window.innerWidth - Wc - Xc)
|
|
3976
3976
|
);
|
|
3977
3977
|
s({ top: i.bottom + 8, left: m });
|
|
3978
3978
|
}
|
|
3979
3979
|
t((i) => !i);
|
|
3980
3980
|
},
|
|
3981
|
-
children: /* @__PURE__ */ n(
|
|
3981
|
+
children: /* @__PURE__ */ n(q, { name: "info", size: 14, color: "#64758B" })
|
|
3982
3982
|
}
|
|
3983
3983
|
),
|
|
3984
3984
|
e && r && Ze(
|
|
@@ -3990,12 +3990,12 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
3990
3990
|
style: {
|
|
3991
3991
|
top: c.top,
|
|
3992
3992
|
left: c.left,
|
|
3993
|
-
width:
|
|
3993
|
+
width: Wc,
|
|
3994
3994
|
zIndex: 9999
|
|
3995
3995
|
},
|
|
3996
3996
|
children: [
|
|
3997
3997
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:gap-1", children: [
|
|
3998
|
-
/* @__PURE__ */ n("p", { className: "cm:text-[12px] cm:leading-4 cm:font-medium cm:text-slate-text-body", children:
|
|
3998
|
+
/* @__PURE__ */ n("p", { className: "cm:text-[12px] cm:leading-4 cm:font-medium cm:text-slate-text-body", children: Uc }),
|
|
3999
3999
|
/* @__PURE__ */ n("p", { className: "cm:text-[12px] cm:leading-[18px] cm:text-slate-text-subtle", children: l1 })
|
|
4000
4000
|
] }),
|
|
4001
4001
|
/* @__PURE__ */ n("div", { className: "cm:h-px cm:w-full cm:bg-[#E2E8F0]" }),
|
|
@@ -4004,7 +4004,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4004
4004
|
return /* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col", children: [
|
|
4005
4005
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-2.5", children: [
|
|
4006
4006
|
/* @__PURE__ */ n("span", { className: "cm:flex cm:size-6 cm:shrink-0 cm:items-center cm:justify-center", children: /* @__PURE__ */ n(
|
|
4007
|
-
|
|
4007
|
+
q,
|
|
4008
4008
|
{
|
|
4009
4009
|
name: m.icon,
|
|
4010
4010
|
folder: m.folder,
|
|
@@ -4024,9 +4024,9 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4024
4024
|
)
|
|
4025
4025
|
] });
|
|
4026
4026
|
}, Qt = ({ isLoading: e, label: t, ...c }) => /* @__PURE__ */ n(Be, { ...c, children: e ? /* @__PURE__ */ d("span", { className: "cm:inline-flex cm:items-center cm:gap-2", children: [
|
|
4027
|
-
/* @__PURE__ */ n(
|
|
4027
|
+
/* @__PURE__ */ n(nn, { name: "spinner" }),
|
|
4028
4028
|
t
|
|
4029
|
-
] }) : t }),
|
|
4029
|
+
] }) : t }), tc = ({
|
|
4030
4030
|
className: e = "",
|
|
4031
4031
|
rows: t = 4,
|
|
4032
4032
|
autoResize: c = !1,
|
|
@@ -4073,7 +4073,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4073
4073
|
);
|
|
4074
4074
|
}) }),
|
|
4075
4075
|
/* @__PURE__ */ n(
|
|
4076
|
-
|
|
4076
|
+
tc,
|
|
4077
4077
|
{
|
|
4078
4078
|
rows: 4,
|
|
4079
4079
|
placeholder: "Add any details (optional)",
|
|
@@ -4110,7 +4110,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4110
4110
|
)
|
|
4111
4111
|
] })
|
|
4112
4112
|
] });
|
|
4113
|
-
}, v1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("path", { d: "M4.08268 12.8327V6.41602M1.16602 7.58268V11.666C1.16602 12.3104 1.68835 12.8327 2.33268 12.8327H10.1646C11.0284 12.8327 11.763 12.2025 11.8943 11.3488L12.5225 7.26547C12.6856 6.20537 11.8654 5.24935 10.7929 5.24935H8.74935C8.42717 5.24935 8.16602 4.98818 8.16602 4.66602V2.60442C8.16602 1.81001 7.52202 1.16602 6.72763 1.16602C6.53811 1.16602 6.36643 1.27761 6.28949 1.45075L4.23665 6.06957C4.14302 6.28027 3.93412 6.41602 3.70359 6.41602H2.33268C1.68835 6.41602 1.16602 6.93833 1.16602 7.58268Z", stroke: "currentColor", strokeWidth: 1.1, strokeLinecap: "round", strokeLinejoin: "round" })), b1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("path", { d: "M1.16602 11.666V7.58268C1.16602 6.93833 1.68835 6.41602 2.33268 6.41602H3.70359C3.93412 6.41602 4.14302 6.28027 4.23665 6.06957L6.28949 1.45075C6.36643 1.27761 6.53811 1.16602 6.72763 1.16602C7.52202 1.16602 8.16602 1.81001 8.16602 2.60442V4.66602C8.16602 4.98818 8.42717 5.24935 8.74935 5.24935H10.7929C11.8654 5.24935 12.6856 6.20537 12.5225 7.26547L11.8943 11.3488C11.763 12.2025 11.0284 12.8327 10.1646 12.8327H4.08268H2.33268C1.68835 12.8327 1.16602 12.3104 1.16602 11.666Z", fill: "currentColor" }), /* @__PURE__ */ D.createElement("path", { d: "M4.08268 12.8327V6.41602M1.16602 7.58268V11.666C1.16602 12.3104 1.68835 12.8327 2.33268 12.8327H10.1646C11.0284 12.8327 11.763 12.2025 11.8943 11.3488L12.5225 7.26547C12.6856 6.20537 11.8654 5.24935 10.7929 5.24935H8.74935C8.42717 5.24935 8.16602 4.98818 8.16602 4.66602V2.60442C8.16602 1.81001 7.52202 1.16602 6.72763 1.16602C6.53811 1.16602 6.36643 1.27761 6.28949 1.45075L4.23665 6.06957C4.14302 6.28027 3.93412 6.41602 3.70359 6.41602H2.33268C1.68835 6.41602 1.16602 6.93833 1.16602 7.58268Z", stroke: "white", strokeWidth: 1.16667, strokeLinecap: "round", strokeLinejoin: "round" })), x1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("g", { transform: "rotate(180 7 7)" }, /* @__PURE__ */ D.createElement("path", { d: "M4.08268 12.8327V6.41602M1.16602 7.58268V11.666C1.16602 12.3104 1.68835 12.8327 2.33268 12.8327H10.1646C11.0284 12.8327 11.763 12.2025 11.8943 11.3488L12.5225 7.26547C12.6856 6.20537 11.8654 5.24935 10.7929 5.24935H8.74935C8.42717 5.24935 8.16602 4.98818 8.16602 4.66602V2.60442C8.16602 1.81001 7.52202 1.16602 6.72763 1.16602C6.53811 1.16602 6.36643 1.27761 6.28949 1.45075L4.23665 6.06957C4.14302 6.28027 3.93412 6.41602 3.70359 6.41602H2.33268C1.68835 6.41602 1.16602 6.93833 1.16602 7.58268Z", stroke: "currentColor", strokeWidth: 1.1, strokeLinecap: "round", strokeLinejoin: "round" }))),
|
|
4113
|
+
}, v1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("path", { d: "M4.08268 12.8327V6.41602M1.16602 7.58268V11.666C1.16602 12.3104 1.68835 12.8327 2.33268 12.8327H10.1646C11.0284 12.8327 11.763 12.2025 11.8943 11.3488L12.5225 7.26547C12.6856 6.20537 11.8654 5.24935 10.7929 5.24935H8.74935C8.42717 5.24935 8.16602 4.98818 8.16602 4.66602V2.60442C8.16602 1.81001 7.52202 1.16602 6.72763 1.16602C6.53811 1.16602 6.36643 1.27761 6.28949 1.45075L4.23665 6.06957C4.14302 6.28027 3.93412 6.41602 3.70359 6.41602H2.33268C1.68835 6.41602 1.16602 6.93833 1.16602 7.58268Z", stroke: "currentColor", strokeWidth: 1.1, strokeLinecap: "round", strokeLinejoin: "round" })), b1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("path", { d: "M1.16602 11.666V7.58268C1.16602 6.93833 1.68835 6.41602 2.33268 6.41602H3.70359C3.93412 6.41602 4.14302 6.28027 4.23665 6.06957L6.28949 1.45075C6.36643 1.27761 6.53811 1.16602 6.72763 1.16602C7.52202 1.16602 8.16602 1.81001 8.16602 2.60442V4.66602C8.16602 4.98818 8.42717 5.24935 8.74935 5.24935H10.7929C11.8654 5.24935 12.6856 6.20537 12.5225 7.26547L11.8943 11.3488C11.763 12.2025 11.0284 12.8327 10.1646 12.8327H4.08268H2.33268C1.68835 12.8327 1.16602 12.3104 1.16602 11.666Z", fill: "currentColor" }), /* @__PURE__ */ D.createElement("path", { d: "M4.08268 12.8327V6.41602M1.16602 7.58268V11.666C1.16602 12.3104 1.68835 12.8327 2.33268 12.8327H10.1646C11.0284 12.8327 11.763 12.2025 11.8943 11.3488L12.5225 7.26547C12.6856 6.20537 11.8654 5.24935 10.7929 5.24935H8.74935C8.42717 5.24935 8.16602 4.98818 8.16602 4.66602V2.60442C8.16602 1.81001 7.52202 1.16602 6.72763 1.16602C6.53811 1.16602 6.36643 1.27761 6.28949 1.45075L4.23665 6.06957C4.14302 6.28027 3.93412 6.41602 3.70359 6.41602H2.33268C1.68835 6.41602 1.16602 6.93833 1.16602 7.58268Z", stroke: "white", strokeWidth: 1.16667, strokeLinecap: "round", strokeLinejoin: "round" })), x1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("g", { transform: "rotate(180 7 7)" }, /* @__PURE__ */ D.createElement("path", { d: "M4.08268 12.8327V6.41602M1.16602 7.58268V11.666C1.16602 12.3104 1.68835 12.8327 2.33268 12.8327H10.1646C11.0284 12.8327 11.763 12.2025 11.8943 11.3488L12.5225 7.26547C12.6856 6.20537 11.8654 5.24935 10.7929 5.24935H8.74935C8.42717 5.24935 8.16602 4.98818 8.16602 4.66602V2.60442C8.16602 1.81001 7.52202 1.16602 6.72763 1.16602C6.53811 1.16602 6.36643 1.27761 6.28949 1.45075L4.23665 6.06957C4.14302 6.28027 3.93412 6.41602 3.70359 6.41602H2.33268C1.68835 6.41602 1.16602 6.93833 1.16602 7.58268Z", stroke: "currentColor", strokeWidth: 1.1, strokeLinecap: "round", strokeLinejoin: "round" }))), qc = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("g", { transform: "rotate(180 7 7)" }, /* @__PURE__ */ D.createElement("path", { d: "M1.16602 11.666V7.58268C1.16602 6.93833 1.68835 6.41602 2.33268 6.41602H3.70359C3.93412 6.41602 4.14302 6.28027 4.23665 6.06957L6.28949 1.45075C6.36643 1.27761 6.53811 1.16602 6.72763 1.16602C7.52202 1.16602 8.16602 1.81001 8.16602 2.60442V4.66602C8.16602 4.98818 8.42717 5.24935 8.74935 5.24935H10.7929C11.8654 5.24935 12.6856 6.20537 12.5225 7.26547L11.8943 11.3488C11.763 12.2025 11.0284 12.8327 10.1646 12.8327H4.08268H2.33268C1.68835 12.8327 1.16602 12.3104 1.16602 11.666Z", fill: "currentColor" }), /* @__PURE__ */ D.createElement("path", { d: "M4.08268 12.8327V6.41602M1.16602 7.58268V11.666C1.16602 12.3104 1.68835 12.8327 2.33268 12.8327H10.1646C11.0284 12.8327 11.763 12.2025 11.8943 11.3488L12.5225 7.26547C12.6856 6.20537 11.8654 5.24935 10.7929 5.24935H8.74935C8.42717 5.24935 8.16602 4.98818 8.16602 4.66602V2.60442C8.16602 1.81001 7.52202 1.16602 6.72763 1.16602C6.53811 1.16602 6.36643 1.27761 6.28949 1.45075L4.23665 6.06957C4.14302 6.28027 3.93412 6.41602 3.70359 6.41602H2.33268C1.68835 6.41602 1.16602 6.93833 1.16602 7.58268Z", stroke: "white", strokeWidth: 1.16667, strokeLinecap: "round", strokeLinejoin: "round" }))), Gc = "cm:flex cm:size-6 cm:shrink-0 cm:cursor-pointer cm:items-center cm:justify-center cm:rounded cm:border cm:border-slate-border-mild cm:bg-white cm:p-0.5 cm:hover:bg-slate-surface-subtle", w1 = ({
|
|
4114
4114
|
companyId: e,
|
|
4115
4115
|
healthBadge: t
|
|
4116
4116
|
}) => {
|
|
@@ -4164,7 +4164,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4164
4164
|
type: "button",
|
|
4165
4165
|
"aria-label": "Score is accurate",
|
|
4166
4166
|
"aria-pressed": i === 1,
|
|
4167
|
-
className:
|
|
4167
|
+
className: Gc,
|
|
4168
4168
|
onClick: u,
|
|
4169
4169
|
children: i === 1 ? /* @__PURE__ */ n(
|
|
4170
4170
|
b1,
|
|
@@ -4189,10 +4189,10 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4189
4189
|
type: "button",
|
|
4190
4190
|
"aria-label": "Score is not accurate",
|
|
4191
4191
|
"aria-pressed": i === -1,
|
|
4192
|
-
className: K(
|
|
4192
|
+
className: K(Gc),
|
|
4193
4193
|
onClick: h,
|
|
4194
4194
|
children: i === -1 ? /* @__PURE__ */ n(
|
|
4195
|
-
|
|
4195
|
+
qc,
|
|
4196
4196
|
{
|
|
4197
4197
|
width: 14,
|
|
4198
4198
|
height: 14,
|
|
@@ -4202,7 +4202,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4202
4202
|
// Reason form open but not submitted yet — filled slate thumb
|
|
4203
4203
|
// signals the pending down-vote.
|
|
4204
4204
|
/* @__PURE__ */ n(
|
|
4205
|
-
|
|
4205
|
+
qc,
|
|
4206
4206
|
{
|
|
4207
4207
|
width: 14,
|
|
4208
4208
|
height: 14,
|
|
@@ -4282,7 +4282,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4282
4282
|
signalLinkAtBottom: s = !1
|
|
4283
4283
|
}) => {
|
|
4284
4284
|
const a = ve(
|
|
4285
|
-
(m) => m.selectedWindows[e] ?? t.window?.days ??
|
|
4285
|
+
(m) => m.selectedWindows[e] ?? t.window?.days ?? Ks
|
|
4286
4286
|
);
|
|
4287
4287
|
ve(
|
|
4288
4288
|
(m) => m.setSelectedWindow
|
|
@@ -4454,7 +4454,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4454
4454
|
className: "cm:text-[#334155]"
|
|
4455
4455
|
}
|
|
4456
4456
|
) : V && /* @__PURE__ */ n(
|
|
4457
|
-
|
|
4457
|
+
q,
|
|
4458
4458
|
{
|
|
4459
4459
|
name: V.icon,
|
|
4460
4460
|
folder: V.folder,
|
|
@@ -4502,7 +4502,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4502
4502
|
"aria-label": "Close",
|
|
4503
4503
|
className: "cm:flex cm:size-6 cm:shrink-0 cm:cursor-pointer cm:items-center cm:justify-center cm:rounded cm:border-0 cm:bg-transparent cm:hover:bg-slate-surface-subtle-150",
|
|
4504
4504
|
onClick: c,
|
|
4505
|
-
children: /* @__PURE__ */ n(
|
|
4505
|
+
children: /* @__PURE__ */ n(q, { name: "close", size: 16, color: "#334155" })
|
|
4506
4506
|
}
|
|
4507
4507
|
)
|
|
4508
4508
|
] }),
|
|
@@ -4519,13 +4519,13 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4519
4519
|
" linked to this signal"
|
|
4520
4520
|
] }),
|
|
4521
4521
|
s.map((L) => /* @__PURE__ */ n(
|
|
4522
|
-
|
|
4522
|
+
cn,
|
|
4523
4523
|
{
|
|
4524
4524
|
...Wi(L)
|
|
4525
4525
|
},
|
|
4526
4526
|
L.conversation_id
|
|
4527
4527
|
)),
|
|
4528
|
-
l && Array.from({ length: s.length ? 2 : 4 }, (L, O) => /* @__PURE__ */ n(
|
|
4528
|
+
l && Array.from({ length: s.length ? 2 : 4 }, (L, O) => /* @__PURE__ */ n(sn, { type: "email" }, `shimmer-${O}`)),
|
|
4529
4529
|
m && /* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:items-center cm:gap-2 cm:py-3", children: [
|
|
4530
4530
|
/* @__PURE__ */ n("p", { className: "cm:text-[13px] cm:text-slate-text-subtle", children: "Couldn't load conversations." }),
|
|
4531
4531
|
/* @__PURE__ */ n(
|
|
@@ -4636,11 +4636,11 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4636
4636
|
}
|
|
4637
4637
|
}
|
|
4638
4638
|
return /* @__PURE__ */ d(J, { children: [
|
|
4639
|
-
a && /* @__PURE__ */ n(
|
|
4639
|
+
a && /* @__PURE__ */ n(Zs, {}),
|
|
4640
4640
|
C,
|
|
4641
4641
|
/* @__PURE__ */ n(k1, { companyId: e })
|
|
4642
4642
|
] });
|
|
4643
|
-
}, _1 = async (e) => (await
|
|
4643
|
+
}, _1 = async (e) => (await G.get("/v1/search", {
|
|
4644
4644
|
params: {
|
|
4645
4645
|
text: e?.text ?? "",
|
|
4646
4646
|
page_number: e?.page_number ?? 1,
|
|
@@ -4700,7 +4700,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4700
4700
|
/* @__PURE__ */ n("path", { d: "M9 6C9.55228 6 10 5.55228 10 5C10 4.44772 9.55228 4 9 4C8.44772 4 8 4.44772 8 5C8 5.55228 8.44772 6 9 6Z", ...Ke }),
|
|
4701
4701
|
/* @__PURE__ */ n("path", { d: "M9 13C9.55228 13 10 12.5523 10 12C10 11.4477 9.55228 11 9 11C8.44772 11 8 11.4477 8 12C8 12.5523 8.44772 13 9 13Z", ...Ke }),
|
|
4702
4702
|
/* @__PURE__ */ n("path", { d: "M9 20C9.55228 20 10 19.5523 10 19C10 18.4477 9.55228 18 9 18C8.44772 18 8 18.4477 8 19C8 19.5523 8.44772 20 9 20Z", ...Ke })
|
|
4703
|
-
] }), tc = (e) => /* @__PURE__ */ D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", ...e }, /* @__PURE__ */ D.createElement("rect", { id: "image 8", width: 24, height: 25, fill: "url(#pattern0_1_730)" }), /* @__PURE__ */ D.createElement("defs", null, /* @__PURE__ */ D.createElement("pattern", { id: "pattern0_1_730", patternContentUnits: "objectBoundingBox", width: 1, height: 1 }, /* @__PURE__ */ D.createElement("use", { xlinkHref: "#image0_1_730", transform: "translate(0.0416667) scale(0.00345238 0.00335571)" })), /* @__PURE__ */ D.createElement("image", { id: "image0_1_730", "data-name": "image.png", width: 700, height: 298, preserveAspectRatio: "none", xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAEqCAYAAAD3bYOAAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACvKADAAQAAAABAAABKgAAAAAQe/iwAAA9JUlEQVR4Ae2dT4wcx5WnI6q6aULAWr2wDtTIY5dICdIYC6jkw9iAF3ATGF8WuxB7fNs9sHmbvZjkZfayAJvAXMYXUnPZubF58N5mu4XZ2yzA1mGA8VxUBgYeLSRSJe/I5sGGWxrAoEl25b6XXdmqrq4/mVkRmRGZX0JUVWZGvnjxRVbXr16+iLCGrXUEkr03e8Y8649M0jPWvmWN6SX6/njLXse75lDeHFpjh/qa2GRoRubTjukM7NbHB3KMDQIQgAAEIAABCARNQLQOW9MJqMAdmadXrLXfF2G7Ke3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7r8w1indoAAAAASUVORK5CYII=" }))), Gc = "#FFCF54", O1 = "#404040", D1 = 1.7 * 16 / 24, F1 = 0.666667, P1 = "M5.33333 14V4.66667C5.33333 4.04669 5.33333 3.7367 5.40148 3.48236C5.58642 2.79218 6.12551 2.25308 6.8157 2.06815C7.07003 2 7.38002 2 8 2C8.61998 2 8.92997 2 9.1843 2.06815C9.87449 2.25308 10.4136 2.79218 10.5985 3.48236C10.6667 3.7367 10.6667 4.04669 10.6667 4.66667V14M3.46667 14H12.5333C13.2801 14 13.6534 14 13.9387 13.8547C14.1895 13.7268 14.3935 13.5229 14.5213 13.272C14.6667 12.9868 14.6667 12.6134 14.6667 11.8667V6.8C14.6667 6.05326 14.6667 5.6799 14.5213 5.39468C14.3935 5.1438 14.1895 4.93982 13.9387 4.81199C13.6534 4.66667 13.2801 4.66667 12.5333 4.66667H3.46667C2.71993 4.66667 2.34656 4.66667 2.06135 4.81199C1.81046 4.93982 1.60649 5.1438 1.47866 5.39468C1.33333 5.6799 1.33333 6.05326 1.33333 6.8V11.8667C1.33333 12.6134 1.33333 12.9868 1.47866 13.272C1.60649 13.5229 1.81046 13.7268 2.06135 13.8547C2.34656 14 2.71993 14 3.46667 14Z", B1 = "M13.3333 14C13.3333 13.0696 13.3333 12.6044 13.2185 12.2259C12.96 11.3736 12.293 10.7067 11.4408 10.4482C11.0622 10.3333 10.597 10.3333 9.66666 10.3333H6.33334C5.40296 10.3333 4.93777 10.3333 4.55924 10.4482C3.70697 10.7067 3.04003 11.3736 2.78149 12.2259C2.66667 12.6044 2.66667 13.0696 2.66667 14M11 5C11 6.65685 9.65685 8 8 8C6.34315 8 5 6.65685 5 5C5 3.34315 6.34315 2 8 2C9.65685 2 11 3.34315 11 5Z", R1 = "M2.66675 12.3544C2.66675 11.2499 3.56218 10.3544 4.66675 10.3544H11.3335C12.4381 10.3544 13.3335 11.2499 13.3335 12.3544V14.2684H2.66675V12.3544Z", nc = ({
|
|
4703
|
+
] }), nc = (e) => /* @__PURE__ */ D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", ...e }, /* @__PURE__ */ D.createElement("rect", { id: "image 8", width: 24, height: 25, fill: "url(#pattern0_1_730)" }), /* @__PURE__ */ D.createElement("defs", null, /* @__PURE__ */ D.createElement("pattern", { id: "pattern0_1_730", patternContentUnits: "objectBoundingBox", width: 1, height: 1 }, /* @__PURE__ */ D.createElement("use", { xlinkHref: "#image0_1_730", transform: "translate(0.0416667) scale(0.00345238 0.00335571)" })), /* @__PURE__ */ D.createElement("image", { id: "image0_1_730", "data-name": "image.png", width: 700, height: 298, preserveAspectRatio: "none", xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAEqCAYAAAD3bYOAAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACvKADAAQAAAABAAABKgAAAAAQe/iwAAA9JUlEQVR4Ae2dT4wcx5WnI6q6aULAWr2wDtTIY5dICdIYC6jkw9iAF3ATGF8WuxB7fNs9sHmbvZjkZfayAJvAXMYXUnPZubF58N5mu4XZ2yzA1mGA8VxUBgYeLSRSJe/I5sGGWxrAoEl25b6XXdmqrq4/mVkRmRGZX0JUVWZGvnjxRVbXr16+iLCGrXUEkr03e8Y8649M0jPWvmWN6SX6/njLXse75lDeHFpjh/qa2GRoRubTjukM7NbHB3KMDQIQgAAEIAABCARNQLQOW9MJqMAdmadXrLXfF2G7Ke3dcNVmEcIHIoIHnVHnPQSwK6rYgQAEIAABCEDAJQEEr0uaAdlK9nobptO5niR2cyxyq/BOosF2v5PY+4jfKnBTBwQgAAEIQAACeQggePNQiqhMsvfapkRcb1UocufRGYrYvt016wd268PhvEIchwAEIAABCEAAAr4JIHh9E67I/vO9S9sda64GIHRntNjudpL12wjfGWg4BAEIQAACEICAdwIIXu+I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exlpDmXJnb2OacbOMuEIBCAAAQhAAAJnCSB4zzKp5Mh4meLrUtlGJRU2qBKWA25QZ9IUCEAAAhCAQAUEELwVQJ5XBfm988jMPc5ywHPRcAICEIAABCAAgXkEELzzyFR4XIWvLFP8QKrsVVhtTFUxzVhMvYWvEIAABCAAgcAIIHgD6hDye2d1ht3tJEcyzdjwcNZZjkEAAhCAAAQgAIFlBBC8ywhVfF6jvbJM8XbHmlYvU8w0YxXfeFQHAQhAAAIQaDABBG+gndvi/N7D8XLAu4F2DW5BAAIQgAAEIBAZAQRv4B3WojQH8nQDvxdxDwIQgAAEIBArAQRvJD33dO/ija41Oo1ZLxKXc7vJNGO5UVEQAhCAAAQgAIESBBC8JaDVdUnT0hzk5hscJZ2b61sfH9TFlHohAAEIQAACEGg+AQRvhH08nsZsT1zvR+i+usxywJF2HG5DAAIQgAAEYiSA4I2x18Y+x5jfy3LAEd9wuA4BCEAAAhCIlACCN9KOm3Q7hvxezdN9LukL57Y+Gkz6znsIQAACEIAABCDgmwCC1zfhiuwf5/d2N61NdP7eXkXVLq2G+XSXIqIABCAAAQhAAAKeCSB4PQOuw7ymOsjCFVcTk2zWUb/UyRRjNYGnWghAAAIQgAAEzhJA8J5l0pgjWdS3IvE7lPzc94zp7DPrQmNuIRoCAQhAAAIQaAQBBG8junF5I0T8bhyZ7qZGfbvWviWvOsPDxvIr55YYGsnLNUnys445t2+3PpR9NghAAAIQgAAEIBAeAQRveH1SmUcqgp+btb41SU//pRVb+81JB0ZJ8nlHUhQSY4dy/LBr1mXQ2ZNDuzU8nCzHewhAAAIQgAAEIBAqgf8PYa7r8w1indoAAAAASUVORK5CYII=" }))), Yc = "#FFCF54", O1 = "#404040", D1 = 1.7 * 16 / 24, F1 = 0.666667, P1 = "M5.33333 14V4.66667C5.33333 4.04669 5.33333 3.7367 5.40148 3.48236C5.58642 2.79218 6.12551 2.25308 6.8157 2.06815C7.07003 2 7.38002 2 8 2C8.61998 2 8.92997 2 9.1843 2.06815C9.87449 2.25308 10.4136 2.79218 10.5985 3.48236C10.6667 3.7367 10.6667 4.04669 10.6667 4.66667V14M3.46667 14H12.5333C13.2801 14 13.6534 14 13.9387 13.8547C14.1895 13.7268 14.3935 13.5229 14.5213 13.272C14.6667 12.9868 14.6667 12.6134 14.6667 11.8667V6.8C14.6667 6.05326 14.6667 5.6799 14.5213 5.39468C14.3935 5.1438 14.1895 4.93982 13.9387 4.81199C13.6534 4.66667 13.2801 4.66667 12.5333 4.66667H3.46667C2.71993 4.66667 2.34656 4.66667 2.06135 4.81199C1.81046 4.93982 1.60649 5.1438 1.47866 5.39468C1.33333 5.6799 1.33333 6.05326 1.33333 6.8V11.8667C1.33333 12.6134 1.33333 12.9868 1.47866 13.272C1.60649 13.5229 1.81046 13.7268 2.06135 13.8547C2.34656 14 2.71993 14 3.46667 14Z", B1 = "M13.3333 14C13.3333 13.0696 13.3333 12.6044 13.2185 12.2259C12.96 11.3736 12.293 10.7067 11.4408 10.4482C11.0622 10.3333 10.597 10.3333 9.66666 10.3333H6.33334C5.40296 10.3333 4.93777 10.3333 4.55924 10.4482C3.70697 10.7067 3.04003 11.3736 2.78149 12.2259C2.66667 12.6044 2.66667 13.0696 2.66667 14M11 5C11 6.65685 9.65685 8 8 8C6.34315 8 5 6.65685 5 5C5 3.34315 6.34315 2 8 2C9.65685 2 11 3.34315 11 5Z", R1 = "M2.66675 12.3544C2.66675 11.2499 3.56218 10.3544 4.66675 10.3544H11.3335C12.4381 10.3544 13.3335 11.2499 13.3335 12.3544V14.2684H2.66675V12.3544Z", cc = ({
|
|
4704
4704
|
entity: e,
|
|
4705
4705
|
active: t = !1,
|
|
4706
4706
|
size: c = 16,
|
|
@@ -4727,9 +4727,9 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4727
4727
|
width: "6",
|
|
4728
4728
|
height: "9",
|
|
4729
4729
|
rx: F1,
|
|
4730
|
-
fill:
|
|
4730
|
+
fill: Yc
|
|
4731
4731
|
}
|
|
4732
|
-
) : /* @__PURE__ */ n("path", { d: R1, fill:
|
|
4732
|
+
) : /* @__PURE__ */ n("path", { d: R1, fill: Yc })),
|
|
4733
4733
|
/* @__PURE__ */ n(
|
|
4734
4734
|
"path",
|
|
4735
4735
|
{
|
|
@@ -4743,7 +4743,7 @@ const ae = "Company", Ge = "Companies", le = "company", Te = "companies", qs = (
|
|
|
4743
4743
|
]
|
|
4744
4744
|
}
|
|
4745
4745
|
);
|
|
4746
|
-
}, H1 = "cm-side-nav",
|
|
4746
|
+
}, H1 = "cm-side-nav", Zc = [
|
|
4747
4747
|
{ label: Ge, entity: "company", path: "/accounts" },
|
|
4748
4748
|
{ label: "Contacts", entity: "contact", path: "/contacts" }
|
|
4749
4749
|
];
|
|
@@ -4757,7 +4757,7 @@ function ta() {
|
|
|
4757
4757
|
}, r = {
|
|
4758
4758
|
company: "/accounts",
|
|
4759
4759
|
contact: "/contacts"
|
|
4760
|
-
}, l = e.pathname.startsWith("/custom-fields/") ? e.pathname.split("/")[2] : void 0, i = l && r[l] || e.pathname, m =
|
|
4760
|
+
}, l = e.pathname.startsWith("/custom-fields/") ? e.pathname.split("/")[2] : void 0, i = l && r[l] || e.pathname, m = Zc.findIndex(
|
|
4761
4761
|
(h) => i.startsWith(h.path)
|
|
4762
4762
|
), u = (h) => h === m;
|
|
4763
4763
|
return s ? null : /* @__PURE__ */ d(
|
|
@@ -4817,7 +4817,7 @@ function ta() {
|
|
|
4817
4817
|
` }),
|
|
4818
4818
|
/* @__PURE__ */ d("div", { className: "cm-side-nav__header cm:flex cm:items-center cm:justify-between cm:gap-3 cm:px-4 cm:shrink-0", children: [
|
|
4819
4819
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-3 cm:min-w-0", children: [
|
|
4820
|
-
/* @__PURE__ */ n(
|
|
4820
|
+
/* @__PURE__ */ n(nc, { className: "cm-side-nav__mark" }),
|
|
4821
4821
|
/* @__PURE__ */ d("div", { className: "cm-side-nav__brand", children: [
|
|
4822
4822
|
/* @__PURE__ */ n("span", { className: "cm-side-nav__eyebrow cm:truncate", children: "Hiver" }),
|
|
4823
4823
|
/* @__PURE__ */ n("span", { className: "cm-side-nav__title cm:truncate", children: "Customers" })
|
|
@@ -4830,11 +4830,11 @@ function ta() {
|
|
|
4830
4830
|
"aria-label": "Hide navigation",
|
|
4831
4831
|
onClick: o,
|
|
4832
4832
|
className: "cm-side-nav__btn cm:shrink-0 cm:flex cm:items-center cm:cursor-pointer cm:bg-transparent cm:p-1",
|
|
4833
|
-
children: /* @__PURE__ */ n(
|
|
4833
|
+
children: /* @__PURE__ */ n($t, { className: "cm-side-nav__close" })
|
|
4834
4834
|
}
|
|
4835
4835
|
)
|
|
4836
4836
|
] }),
|
|
4837
|
-
/* @__PURE__ */ n("div", { className: "cm-side-nav__items", children:
|
|
4837
|
+
/* @__PURE__ */ n("div", { className: "cm-side-nav__items", children: Zc.map((h, p) => /* @__PURE__ */ d(
|
|
4838
4838
|
"button",
|
|
4839
4839
|
{
|
|
4840
4840
|
type: "button",
|
|
@@ -4843,7 +4843,7 @@ function ta() {
|
|
|
4843
4843
|
className: `cm-side-nav__btn cm-side-nav__item cm:flex cm:items-center cm:gap-2 cm:w-full cm:rounded-lg cm:cursor-pointer cm:text-left cm:text-sm cm:leading-5 ${u(p) ? "cm-side-nav__item--active cm:font-medium" : "cm:bg-transparent cm:font-normal"}`,
|
|
4844
4844
|
children: [
|
|
4845
4845
|
/* @__PURE__ */ n(
|
|
4846
|
-
|
|
4846
|
+
cc,
|
|
4847
4847
|
{
|
|
4848
4848
|
entity: h.entity,
|
|
4849
4849
|
active: u(p),
|
|
@@ -4959,7 +4959,7 @@ function U1() {
|
|
|
4959
4959
|
] }) })
|
|
4960
4960
|
] });
|
|
4961
4961
|
}
|
|
4962
|
-
function
|
|
4962
|
+
function sc({
|
|
4963
4963
|
wrapperRef: e,
|
|
4964
4964
|
tableData: t,
|
|
4965
4965
|
isLoading: c,
|
|
@@ -5025,7 +5025,7 @@ function cc({
|
|
|
5025
5025
|
}
|
|
5026
5026
|
}
|
|
5027
5027
|
}, [p, s, c, a]);
|
|
5028
|
-
return
|
|
5028
|
+
return qs({
|
|
5029
5029
|
rootElement: i || e.current,
|
|
5030
5030
|
sentinelElement: u,
|
|
5031
5031
|
onIntersect: b,
|
|
@@ -5053,7 +5053,7 @@ function cc({
|
|
|
5053
5053
|
function ca({ entityLabel: e, onRetry: t }) {
|
|
5054
5054
|
return /* @__PURE__ */ d("div", { className: "cm:px-12 cm:flex cm:flex-col cm:flex-1", children: [
|
|
5055
5055
|
/* @__PURE__ */ n(
|
|
5056
|
-
|
|
5056
|
+
Xe,
|
|
5057
5057
|
{
|
|
5058
5058
|
title: `Couldn't load ${e}`,
|
|
5059
5059
|
subcopy: "Something went wrong on our side. Try again in a moment."
|
|
@@ -5070,14 +5070,14 @@ function ca({ entityLabel: e, onRetry: t }) {
|
|
|
5070
5070
|
) })
|
|
5071
5071
|
] });
|
|
5072
5072
|
}
|
|
5073
|
-
const z1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("circle", { cx: 10, cy: 10, r: 10, fill: "#8CC8B5" }), /* @__PURE__ */ D.createElement("circle", { cx: 6.9, cy: 8.1, r: 0.95, fill: "#2F5147" }), /* @__PURE__ */ D.createElement("circle", { cx: 13.1, cy: 8.1, r: 0.95, fill: "#2F5147" }), /* @__PURE__ */ D.createElement("path", { d: "M6.7 12.2C7.5 13.35 8.65 14 10 14C11.35 14 12.5 13.35 13.3 12.2", stroke: "#2F5147", strokeWidth: 1.2, strokeLinecap: "round" })), W1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 20, height: 20, viewBox: "-1 -1 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("circle", { cx: 10, cy: 10, r: 10, fill: "#F0AFA3" }), /* @__PURE__ */ D.createElement("path", { d: "M5.7 6.7L8 7.6M14.3 6.7L12 7.6", stroke: "#5C2E28", strokeWidth: 1.1, strokeLinecap: "round" }), /* @__PURE__ */ D.createElement("circle", { cx: 6.9, cy: 9.4, r: 0.95, fill: "#5C2E28" }), /* @__PURE__ */ D.createElement("circle", { cx: 13.1, cy: 9.4, r: 0.95, fill: "#5C2E28" }), /* @__PURE__ */ D.createElement("path", { d: "M6.7 14C7.5 12.85 8.65 12.2 10 12.2C11.35 12.2 12.5 12.85 13.3 14", stroke: "#5C2E28", strokeWidth: 1.2, strokeLinecap: "round" })),
|
|
5073
|
+
const z1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("circle", { cx: 10, cy: 10, r: 10, fill: "#8CC8B5" }), /* @__PURE__ */ D.createElement("circle", { cx: 6.9, cy: 8.1, r: 0.95, fill: "#2F5147" }), /* @__PURE__ */ D.createElement("circle", { cx: 13.1, cy: 8.1, r: 0.95, fill: "#2F5147" }), /* @__PURE__ */ D.createElement("path", { d: "M6.7 12.2C7.5 13.35 8.65 14 10 14C11.35 14 12.5 13.35 13.3 12.2", stroke: "#2F5147", strokeWidth: 1.2, strokeLinecap: "round" })), W1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 20, height: 20, viewBox: "-1 -1 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("circle", { cx: 10, cy: 10, r: 10, fill: "#F0AFA3" }), /* @__PURE__ */ D.createElement("path", { d: "M5.7 6.7L8 7.6M14.3 6.7L12 7.6", stroke: "#5C2E28", strokeWidth: 1.1, strokeLinecap: "round" }), /* @__PURE__ */ D.createElement("circle", { cx: 6.9, cy: 9.4, r: 0.95, fill: "#5C2E28" }), /* @__PURE__ */ D.createElement("circle", { cx: 13.1, cy: 9.4, r: 0.95, fill: "#5C2E28" }), /* @__PURE__ */ D.createElement("path", { d: "M6.7 14C7.5 12.85 8.65 12.2 10 12.2C11.35 12.2 12.5 12.85 13.3 14", stroke: "#5C2E28", strokeWidth: 1.2, strokeLinecap: "round" })), X1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("circle", { cx: 10, cy: 10, r: 10, fill: "#EFDD82" }), /* @__PURE__ */ D.createElement("circle", { cx: 6.9, cy: 8.3, r: 0.95, fill: "#5C4F1E" }), /* @__PURE__ */ D.createElement("circle", { cx: 13.1, cy: 8.3, r: 0.95, fill: "#5C4F1E" }), /* @__PURE__ */ D.createElement("path", { d: "M7 12.8H13", stroke: "#5C4F1E", strokeWidth: 1.2, strokeLinecap: "round" })), Q1 = {
|
|
5074
5074
|
positive: { Icon: z1, label: "Positive" },
|
|
5075
|
-
neutral: { Icon:
|
|
5075
|
+
neutral: { Icon: X1, label: "Neutral" },
|
|
5076
5076
|
negative: { Icon: W1, label: "Negative" }
|
|
5077
5077
|
}, sa = ({
|
|
5078
5078
|
sentiment: e
|
|
5079
5079
|
}) => {
|
|
5080
|
-
const t = e ?
|
|
5080
|
+
const t = e ? Q1[e] : null;
|
|
5081
5081
|
if (!t)
|
|
5082
5082
|
return /* @__PURE__ */ n("span", { className: "cm:text-slate-text-subtle", children: "-" });
|
|
5083
5083
|
const { Icon: c, label: s } = t;
|
|
@@ -5106,10 +5106,10 @@ const z1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 20, height: 20
|
|
|
5106
5106
|
}
|
|
5107
5107
|
)
|
|
5108
5108
|
}
|
|
5109
|
-
),
|
|
5109
|
+
), vn = () => /* @__PURE__ */ n("div", { className: "cm:h-4 cm:bg-gray-200 cm:rounded cm:w-3/4 cm:animate-pulse" }), q1 = ({ name: e, health: t, sentiment: c }) => /* @__PURE__ */ d("span", { className: "cm:inline-flex cm:min-w-0 cm:items-center cm:gap-1.5", children: [
|
|
5110
5110
|
/* @__PURE__ */ n(ue, { text: e, className: "text-slate-900" }),
|
|
5111
5111
|
/* @__PURE__ */ n(aa, { health: t, sentiment: c })
|
|
5112
|
-
] }), G1 = ({ domain: e }) => /* @__PURE__ */ n(ue, { text: e, className: "text-slate-900" }),
|
|
5112
|
+
] }), G1 = ({ domain: e }) => /* @__PURE__ */ n(ue, { text: e, className: "text-slate-900" }), Kc = [
|
|
5113
5113
|
{
|
|
5114
5114
|
id: "name",
|
|
5115
5115
|
field: "nameDisplay",
|
|
@@ -5127,7 +5127,7 @@ const z1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 20, height: 20
|
|
|
5127
5127
|
};
|
|
5128
5128
|
function Z1({ ciEnabled: e = !1 } = {}) {
|
|
5129
5129
|
const t = Re(), c = j(
|
|
5130
|
-
() => e ? [...
|
|
5130
|
+
() => e ? [...Kc, Y1] : Kc,
|
|
5131
5131
|
[e]
|
|
5132
5132
|
), { data: s, isLoading: a, error: o, errorStatus: r, fetchCompanies: l, fetchNextPage: i } = be(), m = R(null), u = P((y) => y.callbacks), [h, p] = _(!0);
|
|
5133
5133
|
F(() => {
|
|
@@ -5175,9 +5175,9 @@ function Z1({ ciEnabled: e = !1 } = {}) {
|
|
|
5175
5175
|
id: `shimmer-${A}`,
|
|
5176
5176
|
name: "",
|
|
5177
5177
|
domain: "",
|
|
5178
|
-
nameDisplay: /* @__PURE__ */ n(
|
|
5179
|
-
domainDisplay: /* @__PURE__ */ n(
|
|
5180
|
-
...e ? { accountSentimentDisplay: /* @__PURE__ */ n(
|
|
5178
|
+
nameDisplay: /* @__PURE__ */ n(vn, {}),
|
|
5179
|
+
domainDisplay: /* @__PURE__ */ n(vn, {}),
|
|
5180
|
+
...e ? { accountSentimentDisplay: /* @__PURE__ */ n(vn, {}) } : {},
|
|
5181
5181
|
isShimmerRow: !0,
|
|
5182
5182
|
isNoDataRow: !0
|
|
5183
5183
|
}));
|
|
@@ -5185,7 +5185,7 @@ function Z1({ ciEnabled: e = !1 } = {}) {
|
|
|
5185
5185
|
}
|
|
5186
5186
|
return y;
|
|
5187
5187
|
}, [s, g, e]), C = j(() => !a && (!s || !s.companies || s.companies.length === 0), [a, s]);
|
|
5188
|
-
|
|
5188
|
+
sc({
|
|
5189
5189
|
wrapperRef: m,
|
|
5190
5190
|
tableData: b,
|
|
5191
5191
|
isLoading: a,
|
|
@@ -5205,7 +5205,7 @@ function Z1({ ciEnabled: e = !1 } = {}) {
|
|
|
5205
5205
|
return /* @__PURE__ */ n("div", { className: "cm:flex cm:items-center cm:justify-center cm:w-full cm:h-full", children: /* @__PURE__ */ n(we, {}) });
|
|
5206
5206
|
const x = (s?.companies?.length ?? 0) > 0;
|
|
5207
5207
|
return (r !== null || o) && !x ? /* @__PURE__ */ n(ca, { entityLabel: Te, onRetry: f }) : C || b.length === 0 ? /* @__PURE__ */ n("div", { className: "cm:px-12 cm:flex cm:flex-col cm:flex-1", children: /* @__PURE__ */ n(
|
|
5208
|
-
|
|
5208
|
+
Xe,
|
|
5209
5209
|
{
|
|
5210
5210
|
title: `No ${Te} yet`,
|
|
5211
5211
|
subcopy: `${Ge} will start showing up here when new conversations are created.`
|
|
@@ -5306,7 +5306,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5306
5306
|
}, t);
|
|
5307
5307
|
return () => clearTimeout(a);
|
|
5308
5308
|
}, [e, t]), c;
|
|
5309
|
-
}, Nt = () => P.getState().callbacks?.cfApiCallback,
|
|
5309
|
+
}, Nt = () => P.getState().callbacks?.cfApiCallback, an = async ({ entity_type: e, scope: t = Ki.ACCOUNT }) => {
|
|
5310
5310
|
const c = Nt(), s = P.getState().config;
|
|
5311
5311
|
return (await c(ce.GET_CUSTOM_FIELDS, {
|
|
5312
5312
|
method: "GET",
|
|
@@ -5330,15 +5330,15 @@ const J1 = 180, ra = (e) => {
|
|
|
5330
5330
|
EXCLUDED_DOMAINS: "excluded-domains",
|
|
5331
5331
|
EXPORT_ACTIVE_JOB: "export-active-job",
|
|
5332
5332
|
EXPORT_JOB: "export-job"
|
|
5333
|
-
}, fe = $1,
|
|
5333
|
+
}, fe = $1, ac = ({ entity_type: e }) => {
|
|
5334
5334
|
const t = _e();
|
|
5335
5335
|
return { ...Ne({
|
|
5336
5336
|
queryKey: [fe.CUSTOM_FIELDS_LIST, e],
|
|
5337
|
-
queryFn: async () => (await
|
|
5337
|
+
queryFn: async () => (await an({ entity_type: e })).account_custom_fields.find((r) => r.entity_type === e)?.custom_fields ?? []
|
|
5338
5338
|
}), updateData: (a) => {
|
|
5339
5339
|
t.setQueryData([fe.CUSTOM_FIELDS_LIST, e], (o) => o ? o.map((r) => r?.cf_id === a.cf_id ? a : r) : []);
|
|
5340
5340
|
} };
|
|
5341
|
-
}, em = async () => (await
|
|
5341
|
+
}, em = async () => (await G(ce.EXCLUDED_DOMAINS, {
|
|
5342
5342
|
method: "GET"
|
|
5343
5343
|
})).data?.domains || [], tm = (e = !0) => Ne({
|
|
5344
5344
|
queryKey: [fe.EXCLUDED_DOMAINS],
|
|
@@ -5386,7 +5386,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5386
5386
|
),
|
|
5387
5387
|
i
|
|
5388
5388
|
);
|
|
5389
|
-
}, ia = (e) => /* @__PURE__ */ D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 60, height: 60, viewBox: "0 0 60 60", ...e }, /* @__PURE__ */ D.createElement("path", { d: "M0 0 C0.99 0.33 1.98 0.66 3 1 C3.495 15.355 3.495 15.355 4 30 C6.97 27.03 9.94 24.06 13 21 C14.32 20.67 15.64 20.34 17 20 C17.91796875 22.046875 17.91796875 22.046875 18 25 C16.11608783 27.76233457 13.7361895 29.96161932 11.3125 32.25 C10.3544043 33.20519531 10.3544043 33.20519531 9.37695312 34.1796875 C3.89977088 39.50393911 3.89977088 39.50393911 0 40 C-1.859375 38.84765625 -1.859375 38.84765625 -3.75 37.0625 C-4.43449219 36.41667969 -5.11898438 35.77085938 -5.82421875 35.10546875 C-6.54222656 34.41066406 -7.26023437 33.71585938 -8 33 C-8.76957031 32.31550781 -9.53914063 31.63101563 -10.33203125 30.92578125 C-11.06808594 30.24902344 -11.80414063 29.57226562 -12.5625 28.875 C-13.24441406 28.25367187 -13.92632813 27.63234375 -14.62890625 26.9921875 C-16 25 -16 25 -15.71484375 22.2578125 C-15.47894531 21.51273438 -15.24304687 20.76765625 -15 20 C-10.95838045 21.34484714 -8.61321846 23.0505162 -5.6875 26.125 C-4.99011719 26.84945313 -4.29273438 27.57390625 -3.57421875 28.3203125 C-3.05472656 28.87460937 -2.53523438 29.42890625 -2 30 C-1.97494385 29.12674072 -1.9498877 28.25348145 -1.92407227 27.35375977 C-1.82912291 24.12397448 -1.72987971 20.89435846 -1.62768555 17.66479492 C-1.58428566 16.26510801 -1.54261436 14.86536641 -1.50268555 13.46557617 C-1.44510555 11.45738505 -1.38086 9.44938851 -1.31640625 7.44140625 C-1.27974854 6.23170166 -1.24309082 5.02199707 -1.20532227 3.77563477 C-1 1 -1 1 0 0 Z ", fill: "currentColor", transform: "translate(29,5)" }), /* @__PURE__ */ D.createElement("path", { d: "M0 0 C0.85049423 0.00222061 1.70098846 0.00444122 2.57725525 0.00672913 C4.01863609 0.00684242 4.01863609 0.00684242 5.48913574 0.00695801 C7.05630592 0.01469994 7.05630592 0.01469994 8.65513611 0.02259827 C9.71913132 0.02401321 10.78312653 0.02542816 11.87936401 0.02688599 C15.29293069 0.03250388 18.70643286 0.04505941 22.11997986 0.05775452 C24.42792162 0.06276721 26.73586441 0.06733052 29.04380798 0.07142639 C34.71505412 0.08247912 40.38626238 0.09923465 46.05747986 0.12025452 C46.61997986 2.05775452 46.61997986 2.05775452 47.05747986 4.12025452 C46.05747986 5.12025452 46.05747986 5.12025452 44.11495972 5.24050903 C43.26446548 5.23828842 42.41397125 5.23606781 41.53770447 5.23377991 C40.09632362 5.23366661 40.09632362 5.23366661 38.62582397 5.23355103 C37.58104385 5.22838974 36.53626373 5.22322845 35.45982361 5.21791077 C34.3958284 5.21649582 33.33183319 5.21508087 32.2355957 5.21362305 C28.82202903 5.20800515 25.40852686 5.19544963 21.99497986 5.18275452 C19.68703809 5.17774182 17.37909531 5.17317852 15.07115173 5.16908264 C9.39990559 5.15802991 3.72869733 5.14127438 -1.94252014 5.12025452 C-2.50502014 3.18275452 -2.50502014 3.18275452 -2.94252014 1.12025452 C-1.94252014 0.12025452 -1.94252014 0.12025452 0 0 Z ", fill: "currentColor", transform: "translate(7.9425201416015625,49.87974548339844)" })), nm = Wo, cm = Ro, sm = jo,
|
|
5389
|
+
}, ia = (e) => /* @__PURE__ */ D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 60, height: 60, viewBox: "0 0 60 60", ...e }, /* @__PURE__ */ D.createElement("path", { d: "M0 0 C0.99 0.33 1.98 0.66 3 1 C3.495 15.355 3.495 15.355 4 30 C6.97 27.03 9.94 24.06 13 21 C14.32 20.67 15.64 20.34 17 20 C17.91796875 22.046875 17.91796875 22.046875 18 25 C16.11608783 27.76233457 13.7361895 29.96161932 11.3125 32.25 C10.3544043 33.20519531 10.3544043 33.20519531 9.37695312 34.1796875 C3.89977088 39.50393911 3.89977088 39.50393911 0 40 C-1.859375 38.84765625 -1.859375 38.84765625 -3.75 37.0625 C-4.43449219 36.41667969 -5.11898438 35.77085938 -5.82421875 35.10546875 C-6.54222656 34.41066406 -7.26023437 33.71585938 -8 33 C-8.76957031 32.31550781 -9.53914063 31.63101563 -10.33203125 30.92578125 C-11.06808594 30.24902344 -11.80414063 29.57226562 -12.5625 28.875 C-13.24441406 28.25367187 -13.92632813 27.63234375 -14.62890625 26.9921875 C-16 25 -16 25 -15.71484375 22.2578125 C-15.47894531 21.51273438 -15.24304687 20.76765625 -15 20 C-10.95838045 21.34484714 -8.61321846 23.0505162 -5.6875 26.125 C-4.99011719 26.84945313 -4.29273438 27.57390625 -3.57421875 28.3203125 C-3.05472656 28.87460937 -2.53523438 29.42890625 -2 30 C-1.97494385 29.12674072 -1.9498877 28.25348145 -1.92407227 27.35375977 C-1.82912291 24.12397448 -1.72987971 20.89435846 -1.62768555 17.66479492 C-1.58428566 16.26510801 -1.54261436 14.86536641 -1.50268555 13.46557617 C-1.44510555 11.45738505 -1.38086 9.44938851 -1.31640625 7.44140625 C-1.27974854 6.23170166 -1.24309082 5.02199707 -1.20532227 3.77563477 C-1 1 -1 1 0 0 Z ", fill: "currentColor", transform: "translate(29,5)" }), /* @__PURE__ */ D.createElement("path", { d: "M0 0 C0.85049423 0.00222061 1.70098846 0.00444122 2.57725525 0.00672913 C4.01863609 0.00684242 4.01863609 0.00684242 5.48913574 0.00695801 C7.05630592 0.01469994 7.05630592 0.01469994 8.65513611 0.02259827 C9.71913132 0.02401321 10.78312653 0.02542816 11.87936401 0.02688599 C15.29293069 0.03250388 18.70643286 0.04505941 22.11997986 0.05775452 C24.42792162 0.06276721 26.73586441 0.06733052 29.04380798 0.07142639 C34.71505412 0.08247912 40.38626238 0.09923465 46.05747986 0.12025452 C46.61997986 2.05775452 46.61997986 2.05775452 47.05747986 4.12025452 C46.05747986 5.12025452 46.05747986 5.12025452 44.11495972 5.24050903 C43.26446548 5.23828842 42.41397125 5.23606781 41.53770447 5.23377991 C40.09632362 5.23366661 40.09632362 5.23366661 38.62582397 5.23355103 C37.58104385 5.22838974 36.53626373 5.22322845 35.45982361 5.21791077 C34.3958284 5.21649582 33.33183319 5.21508087 32.2355957 5.21362305 C28.82202903 5.20800515 25.40852686 5.19544963 21.99497986 5.18275452 C19.68703809 5.17774182 17.37909531 5.17317852 15.07115173 5.16908264 C9.39990559 5.15802991 3.72869733 5.14127438 -1.94252014 5.12025452 C-2.50502014 3.18275452 -2.50502014 3.18275452 -2.94252014 1.12025452 C-1.94252014 0.12025452 -1.94252014 0.12025452 0 0 Z ", fill: "currentColor", transform: "translate(7.9425201416015625,49.87974548339844)" })), nm = Wo, cm = Ro, sm = jo, Jc = Vo, am = zo, ma = Uo, om = Ho, rm = L1, lm = Xo, im = Qo, oc = Bo, rc = $t, $c = Do, mm = Fo, dm = Po, it = ({
|
|
5390
5390
|
title: e,
|
|
5391
5391
|
onClose: t,
|
|
5392
5392
|
className: c = "",
|
|
@@ -5412,7 +5412,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5412
5412
|
"aria-label": "Close",
|
|
5413
5413
|
onClick: t,
|
|
5414
5414
|
className: "cm:flex cm:h-8 cm:w-8 cm:items-center cm:justify-center cm:rounded-md cm:bg-transparent cm:border-0 cm:cursor-pointer cm:text-slate-icons-subtle cm:hover:bg-[#F1F5F9]",
|
|
5415
|
-
children: /* @__PURE__ */ n(
|
|
5415
|
+
children: /* @__PURE__ */ n(rc, { width: 16, height: 16 })
|
|
5416
5416
|
}
|
|
5417
5417
|
)
|
|
5418
5418
|
]
|
|
@@ -5434,7 +5434,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5434
5434
|
t
|
|
5435
5435
|
]
|
|
5436
5436
|
}
|
|
5437
|
-
),
|
|
5437
|
+
), on = ({ className: e = "", maxLength: t, error: c = !1, onChange: s, onBlur: a, ...o }) => {
|
|
5438
5438
|
const r = (m) => {
|
|
5439
5439
|
const u = m.target.value.length;
|
|
5440
5440
|
t && u > t && u >= (o.value?.length ?? 0) || s?.(m);
|
|
@@ -5509,7 +5509,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5509
5509
|
}
|
|
5510
5510
|
` }),
|
|
5511
5511
|
/* @__PURE__ */ n(
|
|
5512
|
-
|
|
5512
|
+
Ns,
|
|
5513
5513
|
{
|
|
5514
5514
|
...t,
|
|
5515
5515
|
className: K("cm:w-full cm:text-[14px]! cm:[& span]:text-[14px]!", e),
|
|
@@ -5575,7 +5575,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5575
5575
|
"aria-label": `Remove ${e}`,
|
|
5576
5576
|
className: "cm:flex cm:items-center cm:justify-center cm:cursor-pointer cm:opacity-50 cm:hover:opacity-100 cm:transition-opacity disabled:cm:cursor-not-allowed",
|
|
5577
5577
|
children: /* @__PURE__ */ n(
|
|
5578
|
-
|
|
5578
|
+
q,
|
|
5579
5579
|
{
|
|
5580
5580
|
name: "close",
|
|
5581
5581
|
size: 14,
|
|
@@ -5703,13 +5703,13 @@ const J1 = 180, ra = (e) => {
|
|
|
5703
5703
|
}, wm = (e) => typeof e == "string" ? e.trim() === "" : Array.isArray(e) ? e.length === 0 : !e, ym = ["number", "string", "boolean"], Am = (e, t) => ym.includes(typeof e) ? e !== t : !1, Em = (e, t) => !Array.isArray(e) || !Array.isArray(t) || e.length !== t.length ? !0 : e.some((c, s) => c !== t[s]), Nm = (e) => (t, c) => !Array.isArray(t) || !Array.isArray(c) || t.length !== c.length ? !0 : t.some((s, a) => {
|
|
5704
5704
|
const o = c[a];
|
|
5705
5705
|
return e.some((r) => s?.[r] !== o?.[r]);
|
|
5706
|
-
}),
|
|
5706
|
+
}), es = (e, t) => {
|
|
5707
5707
|
if (!t) return !1;
|
|
5708
5708
|
if (t?.isRequired && wm(e))
|
|
5709
5709
|
return "This field is required";
|
|
5710
5710
|
const c = typeof e == "string" ? e.length : 0;
|
|
5711
5711
|
return t?.maxLength && c > t.maxLength ? `This field must be less than ${t.maxLength} characters` : t?.custom ? t.custom(e) : !1;
|
|
5712
|
-
},
|
|
5712
|
+
}, lc = (e) => {
|
|
5713
5713
|
const t = e;
|
|
5714
5714
|
if (!t.some((s) => !!s.display_name)) return "At least one option is required";
|
|
5715
5715
|
const c = /* @__PURE__ */ new Set();
|
|
@@ -5816,6 +5816,16 @@ const J1 = 180, ra = (e) => {
|
|
|
5816
5816
|
isRequired: !1
|
|
5817
5817
|
// custom: phoneValidation, phone currently validated from backend
|
|
5818
5818
|
}
|
|
5819
|
+
},
|
|
5820
|
+
{
|
|
5821
|
+
name: "notes",
|
|
5822
|
+
label: "Note",
|
|
5823
|
+
type: W.TEXT,
|
|
5824
|
+
placeholder: "Add a note",
|
|
5825
|
+
multiline: !0,
|
|
5826
|
+
validations: {
|
|
5827
|
+
isRequired: !1
|
|
5828
|
+
}
|
|
5819
5829
|
}
|
|
5820
5830
|
], Dm = {
|
|
5821
5831
|
[U.COMPANY]: da,
|
|
@@ -5889,7 +5899,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5889
5899
|
], Pm = {
|
|
5890
5900
|
[U.COMPANY]: ha,
|
|
5891
5901
|
[U.CONTACT]: pa
|
|
5892
|
-
}, fa =
|
|
5902
|
+
}, fa = fs(null), ke = (e) => {
|
|
5893
5903
|
const t = vo(fa);
|
|
5894
5904
|
if (!t)
|
|
5895
5905
|
throw new Error("FormProvider not found");
|
|
@@ -5902,7 +5912,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5902
5912
|
}, Rm = (e) => Array.isArray(e) ? e.length > 0 : e != null && e !== "", et = ({ name: e, label: t, info: c, disabledTooltip: s, validations: a, checkDiff: o, validateOnMount: r = !0, renderField: l }) => {
|
|
5903
5913
|
const i = R(!1), m = j(() => Bm(300), []), u = ke((k) => k.values[e]), h = ke((k) => k.initialData[e]), p = ke((k) => k.errors), g = ke((k) => k.onChange), b = ke((k) => k.onTouch), C = ke((k) => k.onError), f = ke((k) => k.setDiff), v = ke((k) => k.touched), x = p?.[e], y = v?.[e], w = !!x && y, E = (k) => {
|
|
5904
5914
|
f(e, (o ?? Am)(k, h)), m(() => {
|
|
5905
|
-
const L =
|
|
5915
|
+
const L = es(k, a);
|
|
5906
5916
|
C(e, L || void 0);
|
|
5907
5917
|
});
|
|
5908
5918
|
}, A = (k) => {
|
|
@@ -5914,7 +5924,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5914
5924
|
};
|
|
5915
5925
|
F(() => {
|
|
5916
5926
|
if (i.current || !r) return;
|
|
5917
|
-
const k =
|
|
5927
|
+
const k = es(u, a);
|
|
5918
5928
|
C(e, k || void 0), k && Rm(h) && b(e), i.current = !0;
|
|
5919
5929
|
}, [e, u, h, a, r, C, b]);
|
|
5920
5930
|
const M = a?.isRequired ?? !1;
|
|
@@ -5927,7 +5937,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5927
5937
|
w && /* @__PURE__ */ n("span", { className: "cm:text-error cm:text-xs cm:font-normal cm:leading-[18px]", children: x }),
|
|
5928
5938
|
!w && c && /* @__PURE__ */ n("span", { className: "cm:text-xs cm:font-normal cm:text-[#94a3b8] cm:leading-[18px]", children: c })
|
|
5929
5939
|
] });
|
|
5930
|
-
},
|
|
5940
|
+
}, rn = ({ children: e, className: t = "" }) => /* @__PURE__ */ n(
|
|
5931
5941
|
"footer",
|
|
5932
5942
|
{
|
|
5933
5943
|
className: `cm:flex cm:items-center cm:justify-end cm:gap-3 cm:px-7 cm:py-4 cm:border-t cm:border-[#edf1f6] cm:shrink-0 cm:bg-white ${t}`,
|
|
@@ -5962,7 +5972,7 @@ const J1 = 180, ra = (e) => {
|
|
|
5962
5972
|
...e,
|
|
5963
5973
|
className: K("cm:h-[36px] cm:min-h-[unset]! cm:pl-[32px]! cm:pr-[32px]! cm:pt-0! cm:pb-0! cm:font-normal!", e.className)
|
|
5964
5974
|
}
|
|
5965
|
-
),
|
|
5975
|
+
), ic = () => {
|
|
5966
5976
|
const e = ke((a) => a.values), t = ke((a) => Object.values(a.errors || {}).filter(Boolean).length > 0), c = ke((a) => Object.values(a.diffs || {}).filter(Boolean).length > 0), s = ke((a) => a.setErrors);
|
|
5967
5977
|
return {
|
|
5968
5978
|
formData: e,
|
|
@@ -5971,8 +5981,8 @@ const J1 = 180, ra = (e) => {
|
|
|
5971
5981
|
setErrors: s
|
|
5972
5982
|
};
|
|
5973
5983
|
}, Hm = ({ isEdit: e, entityType: t, isLoading: c, onSubmit: s, onCancel: a }) => {
|
|
5974
|
-
const { formData: o, hasChanged: r, hasError: l } =
|
|
5975
|
-
return /* @__PURE__ */ d(
|
|
5984
|
+
const { formData: o, hasChanged: r, hasError: l } = ic(), i = e ? "EDIT" : "CREATE", m = Pn.FOOTER[i][t];
|
|
5985
|
+
return /* @__PURE__ */ d(rn, { children: [
|
|
5976
5986
|
/* @__PURE__ */ n(
|
|
5977
5987
|
mt,
|
|
5978
5988
|
{
|
|
@@ -6008,11 +6018,11 @@ const J1 = 180, ra = (e) => {
|
|
|
6008
6018
|
},
|
|
6009
6019
|
setTouched: (c) => t({ touched: c })
|
|
6010
6020
|
})
|
|
6011
|
-
),
|
|
6021
|
+
), mc = ({ children: e, initialData: t }) => {
|
|
6012
6022
|
const [c] = _(() => jm(t));
|
|
6013
6023
|
return /* @__PURE__ */ n(fa.Provider, { value: c, children: e });
|
|
6014
|
-
}, Vm = ({ initialData: e, entityId: t, children: c }) => /* @__PURE__ */ n(
|
|
6015
|
-
const c = await
|
|
6024
|
+
}, Vm = ({ initialData: e, entityId: t, children: c }) => /* @__PURE__ */ n(mc, { initialData: e ?? {}, children: c }, t), dc = async () => (await G.get("/v1/crm/configs")).data, Um = async (e, t) => {
|
|
6025
|
+
const c = await G.get(`/v1/crm/${e}/${t}/fields`);
|
|
6016
6026
|
return {
|
|
6017
6027
|
...c.data,
|
|
6018
6028
|
data: c.data.data.map((a) => ({
|
|
@@ -6024,18 +6034,18 @@ const J1 = 180, ra = (e) => {
|
|
|
6024
6034
|
is_required: a.is_required ?? !1
|
|
6025
6035
|
}))
|
|
6026
6036
|
};
|
|
6027
|
-
}, zm = async (e) => (await
|
|
6037
|
+
}, zm = async (e) => (await G.patch("/v1/crm/configs", e), !0), Wm = async (e) => (await G.post("/v1/crm/configs", e), !0), Xm = async (e, t, c) => (await G.put(
|
|
6028
6038
|
`/v1/crm/configs/${e}/mappings/${t}`,
|
|
6029
6039
|
c
|
|
6030
|
-
), !0),
|
|
6040
|
+
), !0), Qm = async (e, t) => (await G.delete(
|
|
6031
6041
|
`/v1/crm/configs/${e}`,
|
|
6032
6042
|
{ params: t }
|
|
6033
|
-
)).data, qm = async (e) => (await
|
|
6043
|
+
)).data, qm = async (e) => (await G.get(
|
|
6034
6044
|
"/v1/crm/sync/runs",
|
|
6035
6045
|
{ params: e }
|
|
6036
|
-
)).data, Gm = async (e) => (await
|
|
6046
|
+
)).data, Gm = async (e) => (await G.get(
|
|
6037
6047
|
`/v1/crm/sync/runs/${e}/failure-file`
|
|
6038
|
-
)).data, Ym = async () => (await
|
|
6048
|
+
)).data, Ym = async () => (await G.get(
|
|
6039
6049
|
"/v1/crm/sync/status"
|
|
6040
6050
|
)).data, ga = async (e, t, c = "full") => {
|
|
6041
6051
|
const s = {
|
|
@@ -6043,13 +6053,13 @@ const J1 = 180, ra = (e) => {
|
|
|
6043
6053
|
sync_mode: c,
|
|
6044
6054
|
entity_type: t
|
|
6045
6055
|
};
|
|
6046
|
-
return (await
|
|
6056
|
+
return (await G.post(
|
|
6047
6057
|
"/v1/crm/sync",
|
|
6048
6058
|
s
|
|
6049
6059
|
)).data;
|
|
6050
6060
|
}, kt = ["crmConfigs"], Zm = 2e3, Km = 1e4, Jm = 1.2, Ca = (e) => !!e?.data.some((t) => t.status === "disconnecting"), Lt = /* @__PURE__ */ new WeakMap(), dt = (e = !0) => Ne({
|
|
6051
6061
|
queryKey: kt,
|
|
6052
|
-
queryFn:
|
|
6062
|
+
queryFn: dc,
|
|
6053
6063
|
enabled: e,
|
|
6054
6064
|
staleTime: 6e4,
|
|
6055
6065
|
refetchOnWindowFocus: !1,
|
|
@@ -6123,7 +6133,7 @@ const J1 = 180, ra = (e) => {
|
|
|
6123
6133
|
const c = t ? ut(ce.EDIT_COMPANY, { entity_id: String(t) }) : ce.COMPANIES, s = {
|
|
6124
6134
|
...e
|
|
6125
6135
|
};
|
|
6126
|
-
return (await
|
|
6136
|
+
return (await G(c, {
|
|
6127
6137
|
method: t ? "PUT" : "POST",
|
|
6128
6138
|
data: s
|
|
6129
6139
|
})).status === 200;
|
|
@@ -6160,7 +6170,7 @@ const J1 = 180, ra = (e) => {
|
|
|
6160
6170
|
...e,
|
|
6161
6171
|
email_id: e.email
|
|
6162
6172
|
}, s = t ? ut(ce.EDIT_CONTACT, { entity_id: String(t) }) : ce.CONTACTS;
|
|
6163
|
-
return (await
|
|
6173
|
+
return (await G(s, {
|
|
6164
6174
|
method: t ? "PUT" : "POST",
|
|
6165
6175
|
data: c
|
|
6166
6176
|
})).status === 200;
|
|
@@ -6204,13 +6214,13 @@ const J1 = 180, ra = (e) => {
|
|
|
6204
6214
|
for (const c of e)
|
|
6205
6215
|
!Array.isArray(c.values) || c.values.length === 0 || (t[c.custom_field_id] = c.values);
|
|
6206
6216
|
return t;
|
|
6207
|
-
},
|
|
6208
|
-
const [s, a] = _(() =>
|
|
6209
|
-
return e !== o && (r(e),
|
|
6217
|
+
}, ln = (e) => e === U.COMPANY ? le : "contact", d0 = /^-?(\d+\.?\d*)?$/, u0 = /^-?\d+(\.\d+)?$/, ts = (e) => e == null || typeof e == "number" && Number.isNaN(e) ? "" : String(e), ns = (e) => e === "" ? "" : u0.test(e) ? Number(e) : e, h0 = ({ value: e, onChange: t, ...c }) => {
|
|
6218
|
+
const [s, a] = _(() => ts(e)), [o, r] = _(e);
|
|
6219
|
+
return e !== o && (r(e), ns(s) !== e && a(ts(e))), /* @__PURE__ */ n(on, { ...c, type: "text", inputMode: "decimal", value: s, onChange: (i) => {
|
|
6210
6220
|
const m = i.target.value.trim();
|
|
6211
|
-
d0.test(m) && (a(m), t?.(
|
|
6221
|
+
d0.test(m) && (a(m), t?.(ns(m)));
|
|
6212
6222
|
} });
|
|
6213
|
-
},
|
|
6223
|
+
}, mn = (e) => {
|
|
6214
6224
|
const t = la(e.open, 200);
|
|
6215
6225
|
return e.open ? /* @__PURE__ */ n(Vm, { initialData: e.initialData, entityId: e.entityId, children: /* @__PURE__ */ n(p0, { ...e, open: t }) }) : null;
|
|
6216
6226
|
}, p0 = ({ open: e, entityId: t, entityType: c, onClose: s, onSuccess: a }) => {
|
|
@@ -6223,7 +6233,7 @@ const J1 = 180, ra = (e) => {
|
|
|
6223
6233
|
if (!S || typeof S != "string") return "";
|
|
6224
6234
|
const M = S[0].toUpperCase() + S.slice(1);
|
|
6225
6235
|
return Om.replace("{{CRM}}", M);
|
|
6226
|
-
}, [r]), m = Dm[c], { data: u } =
|
|
6236
|
+
}, [r]), m = Dm[c], { data: u } = ac({ entity_type: c }), { data: h } = tm(!!e && c === U.COMPANY), { setErrors: p } = ic(), g = (N) => {
|
|
6227
6237
|
const S = N.custom_fields_errors, M = Object.fromEntries(S.map((k) => [k.cf_id, k.reason]));
|
|
6228
6238
|
p(M);
|
|
6229
6239
|
}, b = a0({
|
|
@@ -6274,7 +6284,7 @@ const J1 = 180, ra = (e) => {
|
|
|
6274
6284
|
value: S.value,
|
|
6275
6285
|
disabled: N.disabled,
|
|
6276
6286
|
onChange: (M) => S.onChange(M.target.value),
|
|
6277
|
-
options:
|
|
6287
|
+
options: Ys
|
|
6278
6288
|
}
|
|
6279
6289
|
) : N.type === W.DATE ? /* @__PURE__ */ n(
|
|
6280
6290
|
pm,
|
|
@@ -6306,8 +6316,19 @@ const J1 = 180, ra = (e) => {
|
|
|
6306
6316
|
onChange: (M) => S.onChange(M),
|
|
6307
6317
|
onBlur: S.onBlur
|
|
6308
6318
|
}
|
|
6319
|
+
) : N.multiline ? /* @__PURE__ */ n(
|
|
6320
|
+
tc,
|
|
6321
|
+
{
|
|
6322
|
+
placeholder: N.placeholder,
|
|
6323
|
+
value: S.value ?? "",
|
|
6324
|
+
error: S.hasError,
|
|
6325
|
+
disabled: N.disabled,
|
|
6326
|
+
maxLength: N.validations?.maxLength,
|
|
6327
|
+
onChange: (M) => S.onChange(M.target.value),
|
|
6328
|
+
onBlur: S.onBlur
|
|
6329
|
+
}
|
|
6309
6330
|
) : /* @__PURE__ */ n(
|
|
6310
|
-
|
|
6331
|
+
on,
|
|
6311
6332
|
{
|
|
6312
6333
|
placeholder: N.placeholder,
|
|
6313
6334
|
value: S.value,
|
|
@@ -6336,10 +6357,10 @@ const J1 = 180, ra = (e) => {
|
|
|
6336
6357
|
CUSTOM_FIELDS: "/custom-fields/:entityType",
|
|
6337
6358
|
ACCOUNTS: "/accounts",
|
|
6338
6359
|
CONTACTS: "/contacts"
|
|
6339
|
-
},
|
|
6360
|
+
}, qt = "tab", Ve = {
|
|
6340
6361
|
ALL: "all",
|
|
6341
6362
|
AT_RISK: "at-risk"
|
|
6342
|
-
},
|
|
6363
|
+
}, uc = ({ open: e, children: t, tooltip: c, disabled: s = !1, className: a, onClick: o }) => (
|
|
6343
6364
|
// shrink-0 on the Tooltip trigger: it is the flex item, and shrinking it overlapped the icons.
|
|
6344
6365
|
/* @__PURE__ */ n(ge, { content: c, triggerClassName: "cm:flex cm:shrink-0", children: /* @__PURE__ */ n(
|
|
6345
6366
|
"button",
|
|
@@ -6358,11 +6379,11 @@ const J1 = 180, ra = (e) => {
|
|
|
6358
6379
|
}
|
|
6359
6380
|
) })
|
|
6360
6381
|
), f0 = ({ entityType: e, className: t }) => {
|
|
6361
|
-
const c = Re(), s =
|
|
6382
|
+
const c = Re(), s = ln(e), a = () => {
|
|
6362
6383
|
c(ut(qe.CUSTOM_FIELDS, { entityType: e }));
|
|
6363
6384
|
};
|
|
6364
6385
|
return /* @__PURE__ */ n(
|
|
6365
|
-
|
|
6386
|
+
uc,
|
|
6366
6387
|
{
|
|
6367
6388
|
open: !1,
|
|
6368
6389
|
tooltip: `Manage ${s} fields`,
|
|
@@ -6371,7 +6392,7 @@ const J1 = 180, ra = (e) => {
|
|
|
6371
6392
|
children: /* @__PURE__ */ n(sm, { className: "cm:w-4 cm:h-4" })
|
|
6372
6393
|
}
|
|
6373
6394
|
);
|
|
6374
|
-
}, va = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("rect", { width: 14, height: 14, fill: "white", fillOpacity: 0.01 }), /* @__PURE__ */ D.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.8327 7.00001C12.8327 10.2217 10.221 12.8333 6.99935 12.8333C3.77769 12.8333 1.16602 10.2217 1.16602 7.00001C1.16602 3.77834 3.77769 1.16667 6.99935 1.16667C10.221 1.16667 12.8327 3.77834 12.8327 7.00001ZM5.47242 6.45687C5.54359 6.48745 5.60795 6.53189 5.66176 6.5876L6.41601 7.34185L8.33693 5.42093C8.39074 5.36522 8.45511 5.32078 8.52628 5.29021C8.59745 5.25964 8.67399 5.24354 8.75145 5.24287C8.8289 5.2422 8.90571 5.25696 8.9774 5.28629C9.04909 5.31562 9.11422 5.35893 9.16899 5.4137C9.22377 5.46847 9.26708 5.5336 9.29641 5.60529C9.32574 5.67698 9.3405 5.7538 9.33983 5.83125C9.33915 5.90871 9.32306 5.98525 9.29249 6.05642C9.26192 6.12759 9.21748 6.19196 9.16176 6.24577L6.82843 8.5791C6.71904 8.68846 6.57069 8.74989 6.41601 8.74989C6.26133 8.74989 6.11299 8.68846 6.0036 8.5791L4.83693 7.41243C4.78122 7.35862 4.73678 7.29426 4.7062 7.22309C4.67563 7.15192 4.65954 7.07537 4.65887 6.99792C4.6582 6.92046 4.67295 6.84365 4.70229 6.77196C4.73162 6.70027 4.77493 6.63514 4.8297 6.58037C4.88447 6.5256 4.9496 6.48229 5.02129 6.45295C5.09298 6.42362 5.16979 6.40886 5.24725 6.40954C5.3247 6.41021 5.40125 6.4263 5.47242 6.45687Z", fill: "#1B6F41" })), ba = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("path", { d: "M5.25 10.5L8.75 7L5.25 3.5", stroke: "currentColor", strokeWidth: 1.1, strokeLinecap: "round", strokeLinejoin: "round" })),
|
|
6395
|
+
}, va = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("rect", { width: 14, height: 14, fill: "white", fillOpacity: 0.01 }), /* @__PURE__ */ D.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.8327 7.00001C12.8327 10.2217 10.221 12.8333 6.99935 12.8333C3.77769 12.8333 1.16602 10.2217 1.16602 7.00001C1.16602 3.77834 3.77769 1.16667 6.99935 1.16667C10.221 1.16667 12.8327 3.77834 12.8327 7.00001ZM5.47242 6.45687C5.54359 6.48745 5.60795 6.53189 5.66176 6.5876L6.41601 7.34185L8.33693 5.42093C8.39074 5.36522 8.45511 5.32078 8.52628 5.29021C8.59745 5.25964 8.67399 5.24354 8.75145 5.24287C8.8289 5.2422 8.90571 5.25696 8.9774 5.28629C9.04909 5.31562 9.11422 5.35893 9.16899 5.4137C9.22377 5.46847 9.26708 5.5336 9.29641 5.60529C9.32574 5.67698 9.3405 5.7538 9.33983 5.83125C9.33915 5.90871 9.32306 5.98525 9.29249 6.05642C9.26192 6.12759 9.21748 6.19196 9.16176 6.24577L6.82843 8.5791C6.71904 8.68846 6.57069 8.74989 6.41601 8.74989C6.26133 8.74989 6.11299 8.68846 6.0036 8.5791L4.83693 7.41243C4.78122 7.35862 4.73678 7.29426 4.7062 7.22309C4.67563 7.15192 4.65954 7.07537 4.65887 6.99792C4.6582 6.92046 4.67295 6.84365 4.70229 6.77196C4.73162 6.70027 4.77493 6.63514 4.8297 6.58037C4.88447 6.5256 4.9496 6.48229 5.02129 6.45295C5.09298 6.42362 5.16979 6.40886 5.24725 6.40954C5.3247 6.41021 5.40125 6.4263 5.47242 6.45687Z", fill: "#1B6F41" })), ba = (e) => /* @__PURE__ */ D.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("path", { d: "M5.25 10.5L8.75 7L5.25 3.5", stroke: "currentColor", strokeWidth: 1.1, strokeLinecap: "round", strokeLinejoin: "round" })), Gt = ({ active: e, onClick: t, icon: c, label: s }) => /* @__PURE__ */ d(
|
|
6375
6396
|
"button",
|
|
6376
6397
|
{
|
|
6377
6398
|
type: "button",
|
|
@@ -6393,7 +6414,7 @@ const J1 = 180, ra = (e) => {
|
|
|
6393
6414
|
COMMITTING: "committing",
|
|
6394
6415
|
QUEUED: "queued",
|
|
6395
6416
|
ERROR: "error"
|
|
6396
|
-
},
|
|
6417
|
+
}, cs = {
|
|
6397
6418
|
file: null,
|
|
6398
6419
|
jobId: null,
|
|
6399
6420
|
uploadProgress: 0,
|
|
@@ -6402,7 +6423,7 @@ const J1 = 180, ra = (e) => {
|
|
|
6402
6423
|
validationErrorDetail: null,
|
|
6403
6424
|
error: null
|
|
6404
6425
|
}, Ct = We((e) => ({
|
|
6405
|
-
...
|
|
6426
|
+
...cs,
|
|
6406
6427
|
setFile: (t) => e({ file: t }),
|
|
6407
6428
|
setJobId: (t) => e({ jobId: t }),
|
|
6408
6429
|
setUploadProgress: (t) => e({ uploadProgress: t }),
|
|
@@ -6410,29 +6431,29 @@ const J1 = 180, ra = (e) => {
|
|
|
6410
6431
|
setValidationResult: (t) => e({ validationResult: t }),
|
|
6411
6432
|
setValidationErrorDetail: (t) => e({ validationErrorDetail: t }),
|
|
6412
6433
|
setError: (t) => e({ error: t }),
|
|
6413
|
-
reset: () => e(
|
|
6414
|
-
})), g0 = async (e) => (await
|
|
6434
|
+
reset: () => e(cs)
|
|
6435
|
+
})), g0 = async (e) => (await G.get(
|
|
6415
6436
|
`${ce.IMPORT_SAMPLE_CSV}/${e}`,
|
|
6416
6437
|
{ responseType: "blob" }
|
|
6417
|
-
)).data, C0 = async (e) => (await
|
|
6438
|
+
)).data, C0 = async (e) => (await G.post(
|
|
6418
6439
|
ce.IMPORT_PRESIGNED_UPLOAD,
|
|
6419
6440
|
e
|
|
6420
6441
|
)).data, v0 = async (e, t) => {
|
|
6421
6442
|
const c = ce.IMPORT_VALIDATE.replace(":job_id", e);
|
|
6422
|
-
return (await
|
|
6443
|
+
return (await G.post(c, {
|
|
6423
6444
|
entity_type: t
|
|
6424
6445
|
})).data;
|
|
6425
6446
|
}, b0 = async (e, t) => {
|
|
6426
6447
|
const c = ce.IMPORT_COMMIT.replace(":job_id", e);
|
|
6427
|
-
return (await
|
|
6448
|
+
return (await G.post(c, {
|
|
6428
6449
|
entity_type: t
|
|
6429
6450
|
})).data;
|
|
6430
|
-
}, x0 = async (e, t = 1, c = 20) => (await
|
|
6451
|
+
}, x0 = async (e, t = 1, c = 20) => (await G.get(
|
|
6431
6452
|
ce.IMPORT_JOBS_LIST,
|
|
6432
6453
|
{ params: { entity_type: e, page: t, page_size: c } }
|
|
6433
6454
|
)).data, w0 = async (e) => {
|
|
6434
6455
|
const t = ce.IMPORT_JOB_FAILURE_FILE.replace(":job_id", e);
|
|
6435
|
-
return (await
|
|
6456
|
+
return (await G.get(t)).data;
|
|
6436
6457
|
}, y0 = (e, t, c) => new Promise((s, a) => {
|
|
6437
6458
|
const o = new XMLHttpRequest();
|
|
6438
6459
|
o.open("PUT", e), o.setRequestHeader("Content-Type", "text/csv"), c && o.upload.addEventListener("progress", (r) => {
|
|
@@ -6477,7 +6498,7 @@ const J1 = 180, ra = (e) => {
|
|
|
6477
6498
|
s(100), o(f.data), a(ie.VALIDATED);
|
|
6478
6499
|
},
|
|
6479
6500
|
onError: (f) => {
|
|
6480
|
-
if (s(100),
|
|
6501
|
+
if (s(100), Ut(f))
|
|
6481
6502
|
if (f.response?.status === 422) {
|
|
6482
6503
|
const v = f.response.data?.detail;
|
|
6483
6504
|
N0(v) && r(v), l("Validation failed: missing mandatory column(s).");
|
|
@@ -6518,7 +6539,7 @@ const J1 = 180, ra = (e) => {
|
|
|
6518
6539
|
},
|
|
6519
6540
|
onError: (f) => {
|
|
6520
6541
|
let v;
|
|
6521
|
-
|
|
6542
|
+
Ut(f) ? f.response?.status === 409 ? v = "Another import for this entity type is already in progress. Please wait for it to complete." : f.response?.status === 404 ? v = "Import session expired. Please re-upload your CSV file." : f.response?.status === 503 ? v = "CSV import is currently not enabled for your account. Please contact support to enable this feature." : v = f.message : v = "Failed to submit import. Please try again.", l(v), m?.("error", v), a(ie.ERROR);
|
|
6522
6543
|
}
|
|
6523
6544
|
});
|
|
6524
6545
|
return { startUpload: g, startCommit: b };
|
|
@@ -6602,7 +6623,7 @@ const I0 = ({
|
|
|
6602
6623
|
className: `cm:flex-shrink-0 cm:text-slate-400
|
|
6603
6624
|
cm:hover:text-slate-600 cm:cursor-pointer`,
|
|
6604
6625
|
"aria-label": "Remove file",
|
|
6605
|
-
children: /* @__PURE__ */ n(
|
|
6626
|
+
children: /* @__PURE__ */ n(rc, { width: 14, height: 14 })
|
|
6606
6627
|
}
|
|
6607
6628
|
)
|
|
6608
6629
|
] }),
|
|
@@ -6789,7 +6810,7 @@ const I0 = ({
|
|
|
6789
6810
|
status: e,
|
|
6790
6811
|
onCancel: t,
|
|
6791
6812
|
onImport: c
|
|
6792
|
-
}) => /* @__PURE__ */ d(
|
|
6813
|
+
}) => /* @__PURE__ */ d(rn, { children: [
|
|
6793
6814
|
/* @__PURE__ */ n(mt, { label: "Cancel", onClick: t }),
|
|
6794
6815
|
/* @__PURE__ */ n(
|
|
6795
6816
|
Ye,
|
|
@@ -6833,7 +6854,7 @@ const I0 = ({
|
|
|
6833
6854
|
s(!1);
|
|
6834
6855
|
}
|
|
6835
6856
|
}
|
|
6836
|
-
}, y =
|
|
6857
|
+
}, y = ln(e), w = e === U.COMPANY ? "name and domains" : "name and email";
|
|
6837
6858
|
return /* @__PURE__ */ d(J, { children: [
|
|
6838
6859
|
/* @__PURE__ */ d("div", { className: "cm:flex-1 cm:overflow-y-auto cm:p-[40px] cm:flex cm:flex-col cm:gap-5", children: [
|
|
6839
6860
|
/* @__PURE__ */ d("div", { className: "cm-info-banner cm-csv-banner cm:rounded-lg cm:border cm:border-[0.5px] cm:border-[#506dff] cm:bg-[#f5f7ff] cm:p-5 cm:h-[165px] cm:flex cm:flex-col cm:gap-3", children: [
|
|
@@ -6859,7 +6880,7 @@ const I0 = ({
|
|
|
6859
6880
|
children: [
|
|
6860
6881
|
c ? "Downloading…" : "Download sample CSV",
|
|
6861
6882
|
/* @__PURE__ */ n(
|
|
6862
|
-
|
|
6883
|
+
q,
|
|
6863
6884
|
{
|
|
6864
6885
|
name: "external_link",
|
|
6865
6886
|
size: 12,
|
|
@@ -6939,7 +6960,7 @@ const I0 = ({
|
|
|
6939
6960
|
labelClass: "cm:text-slate-500",
|
|
6940
6961
|
icon: /* @__PURE__ */ n(V0, { width: 16, height: 16, "aria-label": "In Progress" })
|
|
6941
6962
|
}
|
|
6942
|
-
},
|
|
6963
|
+
}, X0 = (e) => {
|
|
6943
6964
|
const t = wt(e);
|
|
6944
6965
|
return At(t) + " · " + // '24h' uses hourCycle 'h23' so midnight renders as 00:xx (not 24:xx) with
|
|
6945
6966
|
// zero-padded hours; '12h' keeps hour12 (byte-identical to before).
|
|
@@ -6947,7 +6968,7 @@ const I0 = ({
|
|
|
6947
6968
|
"en-US",
|
|
6948
6969
|
Jn() ? { hour: "2-digit", minute: "2-digit", hourCycle: "h23" } : { hour: "numeric", minute: "2-digit", hour12: !0 }
|
|
6949
6970
|
);
|
|
6950
|
-
},
|
|
6971
|
+
}, Q0 = ({ item: e }) => {
|
|
6951
6972
|
const [t, c] = _(!1), s = W0[e.status] ?? z0;
|
|
6952
6973
|
return /* @__PURE__ */ d("div", { className: "cm:py-4 cm:px-1", children: [
|
|
6953
6974
|
/* @__PURE__ */ d(
|
|
@@ -6966,7 +6987,7 @@ const I0 = ({
|
|
|
6966
6987
|
children: s.label
|
|
6967
6988
|
}
|
|
6968
6989
|
),
|
|
6969
|
-
/* @__PURE__ */ n("span", { className: "cm:text-xs cm:text-slate-500 cm:flex-shrink-0", children:
|
|
6990
|
+
/* @__PURE__ */ n("span", { className: "cm:text-xs cm:text-slate-500 cm:flex-shrink-0", children: X0(e?.timestamp) })
|
|
6970
6991
|
] }),
|
|
6971
6992
|
/* @__PURE__ */ n("p", { className: "cm:text-sm cm:text-slate-500 cm:mt-0.5", children: e?.description })
|
|
6972
6993
|
] }, s.label),
|
|
@@ -7004,7 +7025,7 @@ const I0 = ({
|
|
|
7004
7025
|
cm:disabled:hover:bg-slate-50`,
|
|
7005
7026
|
children: [
|
|
7006
7027
|
/* @__PURE__ */ n(
|
|
7007
|
-
|
|
7028
|
+
q,
|
|
7008
7029
|
{
|
|
7009
7030
|
name: "chev_arrow_left",
|
|
7010
7031
|
size: 12,
|
|
@@ -7037,7 +7058,7 @@ const I0 = ({
|
|
|
7037
7058
|
children: [
|
|
7038
7059
|
"Next",
|
|
7039
7060
|
/* @__PURE__ */ n(
|
|
7040
|
-
|
|
7061
|
+
q,
|
|
7041
7062
|
{
|
|
7042
7063
|
name: "chev_arrow_right",
|
|
7043
7064
|
size: 12,
|
|
@@ -7059,7 +7080,7 @@ const I0 = ({
|
|
|
7059
7080
|
/* @__PURE__ */ n("div", { className: "cm:h-3 cm:w-3/4 cm:bg-slate-200 cm:animate-pulse cm:rounded" })
|
|
7060
7081
|
] })
|
|
7061
7082
|
] }, e)) }), Y0 = () => /* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:items-center cm:justify-center cm:py-16 cm:gap-2", children: [
|
|
7062
|
-
/* @__PURE__ */ n(
|
|
7083
|
+
/* @__PURE__ */ n(q, { name: "activity_icon", size: 14, color: "#64758B" }),
|
|
7063
7084
|
/* @__PURE__ */ n("p", { className: "cm:text-sm cm:text-slate-400", children: "No activity yet" })
|
|
7064
7085
|
] }), ya = ({
|
|
7065
7086
|
items: e,
|
|
@@ -7069,7 +7090,7 @@ const I0 = ({
|
|
|
7069
7090
|
pagination: a
|
|
7070
7091
|
}) => t ? /* @__PURE__ */ n(G0, {}) : e.length === 0 ? /* @__PURE__ */ n(J, { children: s ?? /* @__PURE__ */ n(Y0, {}) }) : /* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col", children: [
|
|
7071
7092
|
/* @__PURE__ */ n("div", { className: c ? "cm:opacity-60 cm:pointer-events-none" : "", children: e.map((o, r) => /* @__PURE__ */ d("div", { children: [
|
|
7072
|
-
/* @__PURE__ */ n(
|
|
7093
|
+
/* @__PURE__ */ n(Q0, { item: o }),
|
|
7073
7094
|
r < e.length - 1 && /* @__PURE__ */ n("div", { className: "cm:border-t cm:border-slate-100 cm:mx-1" })
|
|
7074
7095
|
] }, `${o.id}-${r}`)) }),
|
|
7075
7096
|
a && /* @__PURE__ */ n(
|
|
@@ -7203,7 +7224,7 @@ const I0 = ({
|
|
|
7203
7224
|
),
|
|
7204
7225
|
o && /* @__PURE__ */ d(xa, { children: [
|
|
7205
7226
|
/* @__PURE__ */ n(
|
|
7206
|
-
|
|
7227
|
+
Gt,
|
|
7207
7228
|
{
|
|
7208
7229
|
active: s === "upload",
|
|
7209
7230
|
onClick: () => a("upload"),
|
|
@@ -7212,7 +7233,7 @@ const I0 = ({
|
|
|
7212
7233
|
}
|
|
7213
7234
|
),
|
|
7214
7235
|
/* @__PURE__ */ n(
|
|
7215
|
-
|
|
7236
|
+
Gt,
|
|
7216
7237
|
{
|
|
7217
7238
|
active: s === "activity",
|
|
7218
7239
|
onClick: () => a("activity"),
|
|
@@ -7326,10 +7347,10 @@ const I0 = ({
|
|
|
7326
7347
|
boolean: "toggle_icon",
|
|
7327
7348
|
toggle: "toggle_icon",
|
|
7328
7349
|
checkbox: "toggle_icon"
|
|
7329
|
-
},
|
|
7350
|
+
}, dn = ({ type: e, className: t = "" }) => {
|
|
7330
7351
|
const c = ad[e.toLowerCase()] ?? "text_icon";
|
|
7331
7352
|
return /* @__PURE__ */ n(
|
|
7332
|
-
|
|
7353
|
+
q,
|
|
7333
7354
|
{
|
|
7334
7355
|
name: c,
|
|
7335
7356
|
size: 12,
|
|
@@ -7454,11 +7475,11 @@ const I0 = ({
|
|
|
7454
7475
|
E
|
|
7455
7476
|
)
|
|
7456
7477
|
] });
|
|
7457
|
-
}, ka = (e) => /* @__PURE__ */ D.createElement("svg", { width: 12, height: 12, viewBox: "0 0 14 14", fill: "none", ...e }, /* @__PURE__ */ D.createElement("circle", { cx: 7, cy: 7, r: 5.5, fill: "#ef4444" }), /* @__PURE__ */ D.createElement("rect", { x: 3.8, y: 6.4, width: 6.4, height: 1.2, rx: 0.6, fill: "white" })),
|
|
7478
|
+
}, ka = (e) => /* @__PURE__ */ D.createElement("svg", { width: 12, height: 12, viewBox: "0 0 14 14", fill: "none", ...e }, /* @__PURE__ */ D.createElement("circle", { cx: 7, cy: 7, r: 5.5, fill: "#ef4444" }), /* @__PURE__ */ D.createElement("rect", { x: 3.8, y: 6.4, width: 6.4, height: 1.2, rx: 0.6, fill: "white" })), bn = (e) => {
|
|
7458
7479
|
const t = !!(e.error && !e.disabled);
|
|
7459
7480
|
if (e.type === "create")
|
|
7460
7481
|
return /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-2 cm:w-full cm:py-0.5", children: [
|
|
7461
|
-
/* @__PURE__ */ n(
|
|
7482
|
+
/* @__PURE__ */ n(oc, { width: 12, height: 12, className: "cm:flex-shrink-0" }),
|
|
7462
7483
|
/* @__PURE__ */ n("span", { className: "cm:flex-1 cm:text-sm cm:font-medium cm:text-slate-700", children: e.label })
|
|
7463
7484
|
] });
|
|
7464
7485
|
const c = e.disabled || t, s = /* @__PURE__ */ d(
|
|
@@ -7467,7 +7488,7 @@ const I0 = ({
|
|
|
7467
7488
|
className: `cm:flex cm:items-center cm:gap-2 cm:w-full cm:py-0.5${c ? " cm:opacity-50" : ""}`,
|
|
7468
7489
|
style: c ? { pointerEvents: "auto", cursor: "not-allowed" } : void 0,
|
|
7469
7490
|
children: [
|
|
7470
|
-
/* @__PURE__ */ n(
|
|
7491
|
+
/* @__PURE__ */ n(dn, { type: e.type }),
|
|
7471
7492
|
/* @__PURE__ */ n(
|
|
7472
7493
|
"span",
|
|
7473
7494
|
{
|
|
@@ -7732,7 +7753,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
7732
7753
|
const E = w === f;
|
|
7733
7754
|
return /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-2 cm:w-full", children: [
|
|
7734
7755
|
/* @__PURE__ */ n(
|
|
7735
|
-
|
|
7756
|
+
on,
|
|
7736
7757
|
{
|
|
7737
7758
|
value: y[t],
|
|
7738
7759
|
placeholder: r,
|
|
@@ -7764,19 +7785,19 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
7764
7785
|
}
|
|
7765
7786
|
}
|
|
7766
7787
|
) });
|
|
7767
|
-
}, Ma = () => typeof window < "u" && window.crypto && window.crypto.randomUUID ? window.crypto.randomUUID() : Date.now().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15), Ia = (e) => e.fieldType === W.DROPDOWN &&
|
|
7788
|
+
}, Ma = () => typeof window < "u" && window.crypto && window.crypto.randomUUID ? window.crypto.randomUUID() : Date.now().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15), Ia = (e) => e.fieldType === W.DROPDOWN && lc(e.dropdownValues ?? []) !== !1, dd = [
|
|
7768
7789
|
{ label: "Text", value: "TEXT", iconType: "text" },
|
|
7769
7790
|
{ label: "Number", value: "NUMBER", iconType: "number" },
|
|
7770
7791
|
{ label: "Date", value: "DATE", iconType: "date" },
|
|
7771
7792
|
{ label: "Dropdown", value: "DROPDOWN", iconType: "dropdown" },
|
|
7772
7793
|
{ label: "URL", value: "URL", iconType: "url" },
|
|
7773
7794
|
{ label: "Boolean", value: "BOOLEAN", iconType: "boolean" }
|
|
7774
|
-
], ud = { dropdown_values: [] }, hd = () => ({ display_name: "", __id: Ma() }), pd = ({ onChange: e }) => /* @__PURE__ */ n(
|
|
7795
|
+
], ud = { dropdown_values: [] }, hd = () => ({ display_name: "", __id: Ma() }), pd = ({ onChange: e }) => /* @__PURE__ */ n(mc, { initialData: ud, children: /* @__PURE__ */ n(
|
|
7775
7796
|
et,
|
|
7776
7797
|
{
|
|
7777
7798
|
name: "dropdown_values",
|
|
7778
7799
|
label: "Field values",
|
|
7779
|
-
validations: { isRequired: !0, custom:
|
|
7800
|
+
validations: { isRequired: !0, custom: lc },
|
|
7780
7801
|
renderField: (t) => /* @__PURE__ */ n(
|
|
7781
7802
|
_a,
|
|
7782
7803
|
{
|
|
@@ -7793,12 +7814,12 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
7793
7814
|
}
|
|
7794
7815
|
)
|
|
7795
7816
|
}
|
|
7796
|
-
) }),
|
|
7817
|
+
) }), ss = ({
|
|
7797
7818
|
hideError: e = !1,
|
|
7798
7819
|
...t
|
|
7799
7820
|
}) => {
|
|
7800
7821
|
const c = !!(t.error && !e), s = /* @__PURE__ */ d("div", { className: `cm:flex cm:items-center cm:gap-2 cm:w-full cm:py-0.5 ${c ? "cm:opacity-50" : ""}`, style: c ? { pointerEvents: "auto", cursor: "not-allowed" } : void 0, children: [
|
|
7801
|
-
/* @__PURE__ */ n(
|
|
7822
|
+
/* @__PURE__ */ n(dn, { type: t.iconType }),
|
|
7802
7823
|
/* @__PURE__ */ n("span", { className: `cm:flex-1 cm:text-sm cm:text-slate-700 ${c ? "cm:text-slate-400" : "cm:text-slate-700"}`, children: t.label }),
|
|
7803
7824
|
c && /* @__PURE__ */ n("span", { className: "cm:flex cm:shrink-0", children: /* @__PURE__ */ n(ka, {}) })
|
|
7804
7825
|
] });
|
|
@@ -7852,8 +7873,8 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
7852
7873
|
optionValue: "value",
|
|
7853
7874
|
optionLabel: "label",
|
|
7854
7875
|
onChange: (m) => a(m.value),
|
|
7855
|
-
itemTemplate: (m) => /* @__PURE__ */ n(
|
|
7856
|
-
valueTemplate: (m) => m ? /* @__PURE__ */ n(
|
|
7876
|
+
itemTemplate: (m) => /* @__PURE__ */ n(ss, { ...m }),
|
|
7877
|
+
valueTemplate: (m) => m ? /* @__PURE__ */ n(ss, { ...m, hideError: !0 }) : null
|
|
7857
7878
|
}
|
|
7858
7879
|
),
|
|
7859
7880
|
t && /* @__PURE__ */ n("span", { className: "cm:text-xs cm:text-[#9A3412] cm:font-normal", children: "Data type format mismatch" })
|
|
@@ -7881,7 +7902,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
7881
7902
|
] })
|
|
7882
7903
|
] })
|
|
7883
7904
|
] }) });
|
|
7884
|
-
},
|
|
7905
|
+
}, Qe = {
|
|
7885
7906
|
text: "Text",
|
|
7886
7907
|
string: "Text",
|
|
7887
7908
|
number: "Number",
|
|
@@ -7917,7 +7938,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
7917
7938
|
crm_field_key: t.crm_field_key,
|
|
7918
7939
|
crmFieldType: t.type,
|
|
7919
7940
|
crmLabel: t.display_name,
|
|
7920
|
-
crmTypeLabel:
|
|
7941
|
+
crmTypeLabel: Qe[(t.type ?? "").toLowerCase()] ?? t.type,
|
|
7921
7942
|
default_hiver_field: t.default_hiver_field,
|
|
7922
7943
|
hiver_field_types: (t.hiver_field_types ?? []).map((s) => (s ?? "").toLowerCase()),
|
|
7923
7944
|
hiverFieldKey: null,
|
|
@@ -7941,7 +7962,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
7941
7962
|
crm_field_key: b.crm_field_key,
|
|
7942
7963
|
crmFieldType: b.type,
|
|
7943
7964
|
crmLabel: b.display_name,
|
|
7944
|
-
crmTypeLabel:
|
|
7965
|
+
crmTypeLabel: Qe[(b.type ?? "").toLowerCase()] ?? b.type,
|
|
7945
7966
|
default_hiver_field: b.default_hiver_field,
|
|
7946
7967
|
hiver_field_types: (b.hiver_field_types ?? []).map((C) => (C ?? "").toLowerCase()),
|
|
7947
7968
|
hiverFieldKey: p.cf_id,
|
|
@@ -7971,9 +7992,9 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
7971
7992
|
refetchOnWindowFocus: !1,
|
|
7972
7993
|
queryFn: async () => {
|
|
7973
7994
|
const [f, v, x] = await Promise.all([
|
|
7974
|
-
|
|
7995
|
+
dc(),
|
|
7975
7996
|
Um(c, t),
|
|
7976
|
-
|
|
7997
|
+
an({ entity_type: t })
|
|
7977
7998
|
]), y = v.data, w = La(x, t);
|
|
7978
7999
|
return {
|
|
7979
8000
|
rows: bd(
|
|
@@ -8068,7 +8089,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8068
8089
|
crm_config_not_found_or_inactive: (e) => `No active CRM config found. Please reconnect ${e} and try again.`,
|
|
8069
8090
|
crm_config_disconnecting: (e) => `${e} is disconnecting, please reconnect and try again.`
|
|
8070
8091
|
}, Vn = (e, t) => {
|
|
8071
|
-
if (
|
|
8092
|
+
if (!en.isAxiosError(e)) return null;
|
|
8072
8093
|
const c = e.response?.data?.detail?.error;
|
|
8073
8094
|
return typeof c != "string" ? null : Sd[c]?.(t) ?? null;
|
|
8074
8095
|
}, Pa = async ({ payload: e, entity_type: t }) => {
|
|
@@ -8104,7 +8125,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8104
8125
|
});
|
|
8105
8126
|
if (!a)
|
|
8106
8127
|
return { createdField: a, hiverCFRes: null };
|
|
8107
|
-
const o = await
|
|
8128
|
+
const o = await an({ entity_type: s });
|
|
8108
8129
|
return { createdField: a, hiverCFRes: o };
|
|
8109
8130
|
}
|
|
8110
8131
|
}), Td = () => xe({
|
|
@@ -8112,7 +8133,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8112
8133
|
crmProvider: e,
|
|
8113
8134
|
entityType: t,
|
|
8114
8135
|
fieldMappings: c
|
|
8115
|
-
}) => await
|
|
8136
|
+
}) => await Xm(e, t, {
|
|
8116
8137
|
field_mappings: c
|
|
8117
8138
|
}) ? (await ga(e, t), !0) : !1
|
|
8118
8139
|
}), Ba = ({
|
|
@@ -8138,19 +8159,19 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8138
8159
|
e || (x(!1), S(null), O.current = 0);
|
|
8139
8160
|
}, [e]);
|
|
8140
8161
|
const z = (I, H) => {
|
|
8141
|
-
const
|
|
8142
|
-
return `'${
|
|
8162
|
+
const X = I.crmTypeLabel || Qe[I.crmFieldType.toLowerCase()] || I.crmFieldType, Z = Qe[H] ?? H;
|
|
8163
|
+
return `'${X}' type cannot be stored as '${Z}' — incompatible`;
|
|
8143
8164
|
}, ee = (I) => {
|
|
8144
8165
|
if (!I.hiverFieldKey) return;
|
|
8145
8166
|
const H = u.find(
|
|
8146
|
-
(
|
|
8167
|
+
(X) => X.value === I.hiverFieldKey
|
|
8147
8168
|
);
|
|
8148
8169
|
if (!(!H || I.hiver_field_types.length === 0 || I.hiver_field_types.includes(H.type)))
|
|
8149
8170
|
return z(I, H.type);
|
|
8150
8171
|
}, $ = (I, H) => {
|
|
8151
|
-
const
|
|
8152
|
-
if (!(I.hiver_field_types.length === 0 || I.hiver_field_types.includes(
|
|
8153
|
-
return z(I,
|
|
8172
|
+
const X = H.toLowerCase();
|
|
8173
|
+
if (!(I.hiver_field_types.length === 0 || I.hiver_field_types.includes(X)))
|
|
8174
|
+
return z(I, X);
|
|
8154
8175
|
}, he = (I) => {
|
|
8155
8176
|
const H = new Set(
|
|
8156
8177
|
i.filter((Z) => Z.id !== I.id).map((Z) => Z.hiverFieldKey).filter((Z) => Z != null)
|
|
@@ -8171,50 +8192,50 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8171
8192
|
}
|
|
8172
8193
|
];
|
|
8173
8194
|
}, pe = (I) => {
|
|
8174
|
-
const H = he(I),
|
|
8195
|
+
const H = he(I), X = I.hiverFieldKey ?? `__auto_created_${I.id}`;
|
|
8175
8196
|
return H.some(
|
|
8176
|
-
(Ie) => Ie.value ===
|
|
8177
|
-
) ? { options: H, value:
|
|
8197
|
+
(Ie) => Ie.value === X
|
|
8198
|
+
) ? { options: H, value: X } : {
|
|
8178
8199
|
options: [
|
|
8179
8200
|
{
|
|
8180
|
-
label: gd(I.default_hiver_field) || String(
|
|
8181
|
-
value:
|
|
8201
|
+
label: gd(I.default_hiver_field) || String(X),
|
|
8202
|
+
value: X,
|
|
8182
8203
|
type: I.hiver_field_types[0] ?? I.crmFieldType.toLowerCase()
|
|
8183
8204
|
},
|
|
8184
8205
|
...H
|
|
8185
8206
|
],
|
|
8186
|
-
value:
|
|
8207
|
+
value: X
|
|
8187
8208
|
};
|
|
8188
|
-
}, Me = (I) => I ? /* @__PURE__ */ n(
|
|
8209
|
+
}, Me = (I) => I ? /* @__PURE__ */ n(bn, { ...I }) : null, Y = (I, H) => {
|
|
8189
8210
|
m(
|
|
8190
|
-
(
|
|
8211
|
+
(X) => X.map((Z) => Z.id === I ? { ...Z, hiverFieldKey: H } : Z)
|
|
8191
8212
|
);
|
|
8192
8213
|
}, B = (I, H) => {
|
|
8193
8214
|
if (H === "__create_new__") {
|
|
8194
|
-
f((
|
|
8195
|
-
...
|
|
8215
|
+
f((X) => ({
|
|
8216
|
+
...X,
|
|
8196
8217
|
[I]: { name: "", fieldType: "TEXT", isLoading: !1 }
|
|
8197
8218
|
})), m(
|
|
8198
|
-
(
|
|
8219
|
+
(X) => X.map((Z) => Z.id === I ? { ...Z, hiverFieldKey: null } : Z)
|
|
8199
8220
|
);
|
|
8200
8221
|
return;
|
|
8201
8222
|
}
|
|
8202
8223
|
Y(I, H);
|
|
8203
|
-
},
|
|
8224
|
+
}, Q = async (I) => {
|
|
8204
8225
|
const H = C[I];
|
|
8205
8226
|
if (!(!H || !H.name.trim() || Ia(H))) {
|
|
8206
|
-
f((
|
|
8207
|
-
...
|
|
8227
|
+
f((X) => ({
|
|
8228
|
+
...X,
|
|
8208
8229
|
[I]: { ...H, isLoading: !0 }
|
|
8209
8230
|
}));
|
|
8210
8231
|
try {
|
|
8211
|
-
const { createdField:
|
|
8232
|
+
const { createdField: X, hiverCFRes: Z } = await V.mutateAsync({
|
|
8212
8233
|
name: H.name.trim(),
|
|
8213
8234
|
fieldType: H.fieldType,
|
|
8214
8235
|
dropdownValues: H.dropdownValues,
|
|
8215
8236
|
entityType: a
|
|
8216
8237
|
});
|
|
8217
|
-
if (!
|
|
8238
|
+
if (!X || !Z) {
|
|
8218
8239
|
f((De) => ({
|
|
8219
8240
|
...De,
|
|
8220
8241
|
[I]: { ...H, isLoading: !1 }
|
|
@@ -8223,11 +8244,11 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8223
8244
|
}
|
|
8224
8245
|
const Ie = La(Z, a);
|
|
8225
8246
|
h(Ie);
|
|
8226
|
-
const ht = Ie.find((De) => String(De.value) === String(
|
|
8247
|
+
const ht = Ie.find((De) => String(De.value) === String(X.cf_id) ? !0 : De.label === H.name.trim());
|
|
8227
8248
|
ht && Y(I, ht.value), O.current += 1, f((De) => ({ ...De, [I]: null }));
|
|
8228
8249
|
} catch {
|
|
8229
|
-
f((
|
|
8230
|
-
...
|
|
8250
|
+
f((X) => ({
|
|
8251
|
+
...X,
|
|
8231
8252
|
[I]: { ...H, isLoading: !1 }
|
|
8232
8253
|
})), k("Failed to create field. Please try again.");
|
|
8233
8254
|
}
|
|
@@ -8235,20 +8256,20 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8235
8256
|
}, ye = async () => {
|
|
8236
8257
|
w(!0), A(null);
|
|
8237
8258
|
try {
|
|
8238
|
-
const I = i.filter((
|
|
8239
|
-
cf_id:
|
|
8240
|
-
crm_field_key:
|
|
8241
|
-
crm_field_label:
|
|
8242
|
-
crm_field_type:
|
|
8243
|
-
default_hiver_field:
|
|
8259
|
+
const I = i.filter((X) => X.hiverFieldKey != null || X.default_hiver_field != null).map((X) => ({
|
|
8260
|
+
cf_id: X.hiverFieldKey ?? null,
|
|
8261
|
+
crm_field_key: X.crm_field_key,
|
|
8262
|
+
crm_field_label: X.crmLabel,
|
|
8263
|
+
crm_field_type: X.crmFieldType,
|
|
8264
|
+
default_hiver_field: X.default_hiver_field
|
|
8244
8265
|
}));
|
|
8245
8266
|
if (!await L.mutateAsync({
|
|
8246
8267
|
crmProvider: o,
|
|
8247
8268
|
entityType: a,
|
|
8248
8269
|
fieldMappings: I
|
|
8249
8270
|
})) {
|
|
8250
|
-
const
|
|
8251
|
-
A(
|
|
8271
|
+
const X = "Failed to save field mappings. Please try again.";
|
|
8272
|
+
A(X), k(X);
|
|
8252
8273
|
return;
|
|
8253
8274
|
}
|
|
8254
8275
|
S({
|
|
@@ -8259,10 +8280,10 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8259
8280
|
);
|
|
8260
8281
|
} catch (I) {
|
|
8261
8282
|
let H = "Something went wrong. Please try again.";
|
|
8262
|
-
const
|
|
8263
|
-
if (
|
|
8264
|
-
H =
|
|
8265
|
-
else if (
|
|
8283
|
+
const X = Vn(I, r);
|
|
8284
|
+
if (X)
|
|
8285
|
+
H = X;
|
|
8286
|
+
else if (en.isAxiosError(I)) {
|
|
8266
8287
|
const Z = I.response?.status;
|
|
8267
8288
|
Z === 404 ? H = `No active CRM config found. Please reconnect ${r} and try again.` : Z === 409 ? H = "A sync is already running for this entity. Please wait for it to finish." : Z === 422 && (H = "Invalid field mapping. Check your selections and ensure you have 100 or fewer mappings.");
|
|
8268
8289
|
}
|
|
@@ -8273,20 +8294,20 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8273
8294
|
}, re = (I) => {
|
|
8274
8295
|
f((H) => ({ ...H, [I]: null }));
|
|
8275
8296
|
}, oe = (I) => {
|
|
8276
|
-
m((H) => H.filter((
|
|
8297
|
+
m((H) => H.filter((X) => X.id !== I));
|
|
8277
8298
|
}, Se = (I) => {
|
|
8278
8299
|
const H = Oa(
|
|
8279
8300
|
I.default_hiver_field,
|
|
8280
8301
|
u
|
|
8281
8302
|
);
|
|
8282
|
-
m((
|
|
8283
|
-
...
|
|
8303
|
+
m((X) => [
|
|
8304
|
+
...X,
|
|
8284
8305
|
{
|
|
8285
8306
|
id: String(T.current++),
|
|
8286
8307
|
crm_field_key: I.crm_field_key,
|
|
8287
8308
|
crmFieldType: I.type,
|
|
8288
8309
|
crmLabel: I.display_name,
|
|
8289
|
-
crmTypeLabel:
|
|
8310
|
+
crmTypeLabel: Qe[(I.type ?? "").toLowerCase()] ?? I.type,
|
|
8290
8311
|
default_hiver_field: I.default_hiver_field,
|
|
8291
8312
|
hiver_field_types: (I.hiver_field_types ?? []).map(
|
|
8292
8313
|
(Z) => (Z ?? "").toLowerCase()
|
|
@@ -8298,8 +8319,8 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8298
8319
|
]);
|
|
8299
8320
|
}, de = (I) => {
|
|
8300
8321
|
if (!I.crmTypeLabel) return "";
|
|
8301
|
-
const H = u.find((
|
|
8302
|
-
return H ? `${I.crmTypeLabel} > ${
|
|
8322
|
+
const H = u.find((X) => X.value === I.hiverFieldKey);
|
|
8323
|
+
return H ? `${I.crmTypeLabel} > ${Qe[H.type] ?? H.type}` : I.crmTypeLabel;
|
|
8303
8324
|
};
|
|
8304
8325
|
return /* @__PURE__ */ n(lt, { open: e, onClose: t, position: "right", width: 680, children: /* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:h-full", children: [
|
|
8305
8326
|
/* @__PURE__ */ n(
|
|
@@ -8346,7 +8367,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8346
8367
|
/* @__PURE__ */ n("div", { className: "cm:h-11" }),
|
|
8347
8368
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:h-11 cm:items-center cm:gap-2 cm:pl-4 cm:pr-4", children: [
|
|
8348
8369
|
/* @__PURE__ */ n("span", { className: "cm:flex cm:h-5 cm:w-5 cm:items-center cm:justify-center cm:rounded-[3px] cm:bg-[#EDF1F6] cm:overflow-hidden cm:flex-shrink-0", children: /* @__PURE__ */ n(
|
|
8349
|
-
|
|
8370
|
+
nc,
|
|
8350
8371
|
{
|
|
8351
8372
|
width: 14,
|
|
8352
8373
|
height: 14,
|
|
@@ -8357,7 +8378,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8357
8378
|
] })
|
|
8358
8379
|
] }),
|
|
8359
8380
|
/* @__PURE__ */ n("div", { children: i.map((I, H) => {
|
|
8360
|
-
const
|
|
8381
|
+
const X = de(I), Z = C[I.id] ?? null, Ie = I.default_hiver_field != null, ht = Ie ? pe(I) : null, De = ee(I), xc = !!De, io = H < i.length - 1, mo = Z ? $(
|
|
8361
8382
|
I,
|
|
8362
8383
|
Z.fieldType
|
|
8363
8384
|
) : void 0;
|
|
@@ -8369,7 +8390,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8369
8390
|
/* @__PURE__ */ d("div", { className: "cm:grid cm:grid-cols-[27.9%_22%_50.1%] cm:items-stretch cm:min-h-14", children: [
|
|
8370
8391
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:min-h-14 cm:flex-col cm:justify-center cm:items-start cm:pl-5 cm:pr-3 cm:py-[9px]", children: [
|
|
8371
8392
|
/* @__PURE__ */ n("span", { className: "cm:text-sm cm:font-normal cm:leading-5 cm:text-slate-700", children: I.crmLabel }),
|
|
8372
|
-
|
|
8393
|
+
X && /* @__PURE__ */ n("div", { className: "cm:flex cm:items-center cm:gap-1 cm:mt-0.5", children: X.split(" > ").map((Ae, Le, uo) => /* @__PURE__ */ d(
|
|
8373
8394
|
"div",
|
|
8374
8395
|
{
|
|
8375
8396
|
className: "cm:flex cm:items-center cm:gap-1",
|
|
@@ -8412,7 +8433,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8412
8433
|
optionValue: "value",
|
|
8413
8434
|
optionDisabled: "disabled",
|
|
8414
8435
|
placeholder: "Select a field",
|
|
8415
|
-
itemTemplate:
|
|
8436
|
+
itemTemplate: bn,
|
|
8416
8437
|
valueTemplate: Me,
|
|
8417
8438
|
disabled: !0
|
|
8418
8439
|
}
|
|
@@ -8429,8 +8450,8 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8429
8450
|
Ae.value
|
|
8430
8451
|
),
|
|
8431
8452
|
placeholder: "Select a field",
|
|
8432
|
-
itemTemplate:
|
|
8433
|
-
invalid:
|
|
8453
|
+
itemTemplate: bn,
|
|
8454
|
+
invalid: xc,
|
|
8434
8455
|
errorMessage: De
|
|
8435
8456
|
}
|
|
8436
8457
|
),
|
|
@@ -8452,7 +8473,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8452
8473
|
}
|
|
8453
8474
|
) })
|
|
8454
8475
|
] }),
|
|
8455
|
-
|
|
8476
|
+
xc && !Ie && /* @__PURE__ */ n("span", { className: "cm:text-xs cm:text-[#9A3412] cm:font-normal", children: "Data type format mismatch" })
|
|
8456
8477
|
]
|
|
8457
8478
|
}
|
|
8458
8479
|
)
|
|
@@ -8475,7 +8496,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8475
8496
|
...Le,
|
|
8476
8497
|
[I.id]: { ...Le[I.id], dropdownValues: Ae }
|
|
8477
8498
|
})),
|
|
8478
|
-
onCreate: () =>
|
|
8499
|
+
onCreate: () => Q(I.id),
|
|
8479
8500
|
onCancel: () => re(I.id)
|
|
8480
8501
|
}
|
|
8481
8502
|
)
|
|
@@ -8498,7 +8519,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8498
8519
|
onSelect: Se,
|
|
8499
8520
|
renderItem: (I, H) => /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-3 cm:px-4 cm:py-2.5", children: [
|
|
8500
8521
|
/* @__PURE__ */ n(
|
|
8501
|
-
|
|
8522
|
+
dn,
|
|
8502
8523
|
{
|
|
8503
8524
|
type: (I.type ?? "").toLowerCase(),
|
|
8504
8525
|
className: "cm:flex-shrink-0"
|
|
@@ -8512,7 +8533,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8512
8533
|
children: I.display_name
|
|
8513
8534
|
}
|
|
8514
8535
|
),
|
|
8515
|
-
/* @__PURE__ */ n("span", { className: "cm:text-xs cm:text-slate-500", children:
|
|
8536
|
+
/* @__PURE__ */ n("span", { className: "cm:text-xs cm:text-slate-500", children: Qe[(I.type ?? "").toLowerCase()] ?? I.type })
|
|
8516
8537
|
] })
|
|
8517
8538
|
] }),
|
|
8518
8539
|
emptyMessage: "No fields found"
|
|
@@ -8520,7 +8541,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8520
8541
|
)
|
|
8521
8542
|
] })
|
|
8522
8543
|
] }) }),
|
|
8523
|
-
/* @__PURE__ */ n(
|
|
8544
|
+
/* @__PURE__ */ n(rn, { children: v ? /* @__PURE__ */ n(Ye, { label: "Exit", onClick: c }) : /* @__PURE__ */ d(J, { children: [
|
|
8524
8545
|
E && /* @__PURE__ */ n("span", { className: "cm:text-xs cm:text-red-500 cm:mr-auto", children: E }),
|
|
8525
8546
|
/* @__PURE__ */ n(mt, { label: "Cancel", onClick: t }),
|
|
8526
8547
|
/* @__PURE__ */ n(
|
|
@@ -8533,12 +8554,12 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8533
8554
|
)
|
|
8534
8555
|
] }) })
|
|
8535
8556
|
] }) });
|
|
8536
|
-
}, Ra = (e) => e !== null && typeof e == "object" && "data" in e && !Array.isArray(e) ? e.data : e,
|
|
8557
|
+
}, Ra = (e) => e !== null && typeof e == "object" && "data" in e && !Array.isArray(e) ? e.data : e, un = () => {
|
|
8537
8558
|
const e = P.getState().callbacks?.connectorApiCallback;
|
|
8538
8559
|
if (!e) throw new Error("connectorApiCallback is not configured");
|
|
8539
8560
|
return e;
|
|
8540
|
-
},
|
|
8541
|
-
const t = await
|
|
8561
|
+
}, hc = (e) => e.isAvailableForSync, Ha = async () => {
|
|
8562
|
+
const t = await un()(
|
|
8542
8563
|
"/v1/api/customer-module/crm-connectors",
|
|
8543
8564
|
{ method: "GET" }
|
|
8544
8565
|
);
|
|
@@ -8546,12 +8567,12 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8546
8567
|
t.data
|
|
8547
8568
|
);
|
|
8548
8569
|
}, _d = async (e, t) => {
|
|
8549
|
-
const c =
|
|
8570
|
+
const c = un(), s = t === "ug" ? `/v1/api/connectors/${e}` : `/v1/api/template/${e}`, a = await c(s, { method: "GET" });
|
|
8550
8571
|
return Ra(
|
|
8551
8572
|
a.data
|
|
8552
8573
|
);
|
|
8553
8574
|
}, Md = async (e, t, c, s) => {
|
|
8554
|
-
const a =
|
|
8575
|
+
const a = un(), {
|
|
8555
8576
|
authType: o,
|
|
8556
8577
|
clientId: r,
|
|
8557
8578
|
clientSecret: l,
|
|
@@ -8580,7 +8601,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8580
8601
|
method: C,
|
|
8581
8602
|
data: f
|
|
8582
8603
|
})).data;
|
|
8583
|
-
}, Id = async (e) => (await
|
|
8604
|
+
}, Id = async (e) => (await un()(
|
|
8584
8605
|
`/v1/api/connectors/${e}/status`,
|
|
8585
8606
|
{ method: "GET" }
|
|
8586
8607
|
)).data, Ld = 1e3, Od = ({
|
|
@@ -8597,7 +8618,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8597
8618
|
refetchIntervalInBackground: !0,
|
|
8598
8619
|
refetchOnWindowFocus: !1,
|
|
8599
8620
|
retry: !1
|
|
8600
|
-
}), ct = ["crmConnectors"],
|
|
8621
|
+
}), ct = ["crmConnectors"], pc = (e = !0) => {
|
|
8601
8622
|
const t = P(
|
|
8602
8623
|
(c) => !!c.callbacks?.connectorApiCallback
|
|
8603
8624
|
);
|
|
@@ -8659,11 +8680,11 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8659
8680
|
ciConnectorId: s?.ci_connector_id ?? a?.id ?? null
|
|
8660
8681
|
};
|
|
8661
8682
|
}, Bd = (e = !0) => {
|
|
8662
|
-
const t =
|
|
8683
|
+
const t = pc(e), c = dt(e), s = _e(), a = Ca(c.data), o = R(a);
|
|
8663
8684
|
F(() => {
|
|
8664
8685
|
o.current && !a && s.invalidateQueries({ queryKey: ct }), o.current = a;
|
|
8665
8686
|
}, [a, s]);
|
|
8666
|
-
const r = (t.data ?? []).filter(
|
|
8687
|
+
const r = (t.data ?? []).filter(hc), l = c.data?.data ?? [], i = r.reduce((m, u) => (m[u.type] = Pd(u, l), m), {});
|
|
8667
8688
|
return {
|
|
8668
8689
|
providers: r,
|
|
8669
8690
|
connectionsByType: i,
|
|
@@ -8683,8 +8704,8 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8683
8704
|
queryFn: async () => {
|
|
8684
8705
|
const [s, a] = await Promise.all([
|
|
8685
8706
|
Ha(),
|
|
8686
|
-
|
|
8687
|
-
]), o = a.data.find((m) => m.crm_provider === t) ?? null, r = s.filter(
|
|
8707
|
+
dc()
|
|
8708
|
+
]), o = a.data.find((m) => m.crm_provider === t) ?? null, r = s.filter(hc), l = r.find((m) => m.type === t), i = l ? ja(l.connectors, o) : null;
|
|
8688
8709
|
return i?.isAuthenticated ? {
|
|
8689
8710
|
config: o,
|
|
8690
8711
|
loginAction: {
|
|
@@ -8762,8 +8783,8 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8762
8783
|
S.current = null;
|
|
8763
8784
|
try {
|
|
8764
8785
|
B && !B.closed && B.close(), window.focus();
|
|
8765
|
-
} catch (
|
|
8766
|
-
console.warn("[CrmConnectStep] Failed to close OAuth window:",
|
|
8786
|
+
} catch (Q) {
|
|
8787
|
+
console.warn("[CrmConnectStep] Failed to close OAuth window:", Q);
|
|
8767
8788
|
}
|
|
8768
8789
|
}, []), { refetch: O } = x, T = te(() => {
|
|
8769
8790
|
m.invalidateQueries({ queryKey: ct }), O();
|
|
@@ -8821,12 +8842,12 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8821
8842
|
await V(B.connectorId), g("success"), u(`${a} authorisation successful`);
|
|
8822
8843
|
return;
|
|
8823
8844
|
}
|
|
8824
|
-
const { id:
|
|
8825
|
-
S.current = window.open(ye, "_blank"), C(
|
|
8845
|
+
const { id: Q, authorizationUrl: ye } = await w.mutateAsync(B);
|
|
8846
|
+
S.current = window.open(ye, "_blank"), C(Q), g("polling"), u(`${a} authorisation started`);
|
|
8826
8847
|
} catch (B) {
|
|
8827
8848
|
console.error(`[CrmConnectStep] ${a} connect failed:`, B);
|
|
8828
|
-
const
|
|
8829
|
-
g("error"), v(
|
|
8849
|
+
const Q = `Failed to initiate ${a} login. Please try again.`;
|
|
8850
|
+
g("error"), v(Q), h(Q);
|
|
8830
8851
|
}
|
|
8831
8852
|
}, [
|
|
8832
8853
|
a,
|
|
@@ -8968,7 +8989,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
8968
8989
|
mutationFn: ({
|
|
8969
8990
|
crmProvider: t,
|
|
8970
8991
|
retainData: c
|
|
8971
|
-
}) =>
|
|
8992
|
+
}) => Qm(t, { retain_data: c }),
|
|
8972
8993
|
onSuccess: async () => {
|
|
8973
8994
|
await Promise.all([
|
|
8974
8995
|
e.invalidateQueries({ queryKey: kt }),
|
|
@@ -9035,7 +9056,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9035
9056
|
}
|
|
9036
9057
|
)
|
|
9037
9058
|
}
|
|
9038
|
-
),
|
|
9059
|
+
), Xd = ({
|
|
9039
9060
|
open: e,
|
|
9040
9061
|
onClose: t,
|
|
9041
9062
|
onConfirm: c,
|
|
@@ -9097,7 +9118,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9097
9118
|
disabled: a,
|
|
9098
9119
|
"aria-label": "Close",
|
|
9099
9120
|
className: "cm:flex cm:items-center cm:justify-center cm:w-6 cm:h-6 cm:p-0 cm:rounded-md cm:hover:bg-slate-200 cm:transition-colors cm:cursor-pointer cm:border-0 cm:bg-transparent cm:disabled:opacity-50",
|
|
9100
|
-
children: /* @__PURE__ */ n(
|
|
9121
|
+
children: /* @__PURE__ */ n(rc, { width: 14, height: 14, className: "cm:text-slate-500" })
|
|
9101
9122
|
}
|
|
9102
9123
|
)
|
|
9103
9124
|
] }),
|
|
@@ -9155,7 +9176,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9155
9176
|
cm:cursor-pointer cm:hover:bg-red-700 cm:transition-colors cm:disabled:opacity-50
|
|
9156
9177
|
cm:disabled:cursor-not-allowed`,
|
|
9157
9178
|
children: [
|
|
9158
|
-
a && /* @__PURE__ */ n(
|
|
9179
|
+
a && /* @__PURE__ */ n(nn, { name: "spinner", size: 12, className: "cm:text-xs" }),
|
|
9159
9180
|
a ? "Disconnecting…" : "Disconnect"
|
|
9160
9181
|
]
|
|
9161
9182
|
}
|
|
@@ -9168,7 +9189,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9168
9189
|
]
|
|
9169
9190
|
}
|
|
9170
9191
|
) : null;
|
|
9171
|
-
},
|
|
9192
|
+
}, Qd = {
|
|
9172
9193
|
company: /* @__PURE__ */ n(Yo, { width: 18, height: 18, "aria-hidden": "true" }),
|
|
9173
9194
|
contact: /* @__PURE__ */ n(Go, { width: 18, height: 18, "aria-hidden": "true" })
|
|
9174
9195
|
}, qd = ({
|
|
@@ -9180,7 +9201,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9180
9201
|
onSync: o
|
|
9181
9202
|
}) => /* @__PURE__ */ d("div", { className: "cm-crm-card cm-crm-card--row", children: [
|
|
9182
9203
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-3 cm:min-w-0", children: [
|
|
9183
|
-
/* @__PURE__ */ n("div", { className: "cm-crm-icon-tile", children:
|
|
9204
|
+
/* @__PURE__ */ n("div", { className: "cm-crm-icon-tile", children: Qd[e] }),
|
|
9184
9205
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:min-w-0", children: [
|
|
9185
9206
|
/* @__PURE__ */ n("span", { className: "cm:text-[15px] cm:font-medium cm:text-slate-700", children: t }),
|
|
9186
9207
|
/* @__PURE__ */ n("span", { className: "cm:text-[13px] cm:text-slate-500 cm:mt-0.5", children: c ? s : a })
|
|
@@ -9429,7 +9450,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9429
9450
|
)
|
|
9430
9451
|
}
|
|
9431
9452
|
);
|
|
9432
|
-
}, c2 = 2e3, s2 = 3e4, a2 = 1.5,
|
|
9453
|
+
}, c2 = 2e3, s2 = 3e4, a2 = 1.5, xn = (e) => e.status === "running" || e.status === "queued", o2 = ({
|
|
9433
9454
|
enabled: e = !0,
|
|
9434
9455
|
baseInterval: t = c2,
|
|
9435
9456
|
maxInterval: c = s2,
|
|
@@ -9442,7 +9463,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9442
9463
|
refetchOnWindowFocus: !1,
|
|
9443
9464
|
retry: !1,
|
|
9444
9465
|
refetchInterval: (l) => {
|
|
9445
|
-
if (!(l.state.data?.data ?? []).some(
|
|
9466
|
+
if (!(l.state.data?.data ?? []).some(xn)) return !1;
|
|
9446
9467
|
const u = Math.max(0, l.state.dataUpdateCount - 1);
|
|
9447
9468
|
return Math.min(t * s ** u, c);
|
|
9448
9469
|
},
|
|
@@ -9450,7 +9471,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9450
9471
|
}), o = j(() => a.data?.data ?? [], [a.data]), r = j(() => {
|
|
9451
9472
|
const l = {};
|
|
9452
9473
|
for (const i of o)
|
|
9453
|
-
l[i.entity_type] = l[i.entity_type] ||
|
|
9474
|
+
l[i.entity_type] = l[i.entity_type] || xn(i);
|
|
9454
9475
|
return l;
|
|
9455
9476
|
}, [o]);
|
|
9456
9477
|
return {
|
|
@@ -9458,7 +9479,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9458
9479
|
/** Raw status entries from the latest response. */
|
|
9459
9480
|
entries: o,
|
|
9460
9481
|
/** Whether any entity_type is currently syncing. */
|
|
9461
|
-
isSyncing: o.some(
|
|
9482
|
+
isSyncing: o.some(xn),
|
|
9462
9483
|
/** Whether a `contact` sync is currently running. */
|
|
9463
9484
|
contactSyncing: !!r.contact,
|
|
9464
9485
|
/** Whether a `company` sync is currently running. */
|
|
@@ -9522,7 +9543,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9522
9543
|
),
|
|
9523
9544
|
/* @__PURE__ */ d(xa, { children: [
|
|
9524
9545
|
/* @__PURE__ */ n(
|
|
9525
|
-
|
|
9546
|
+
Gt,
|
|
9526
9547
|
{
|
|
9527
9548
|
active: l === "settings",
|
|
9528
9549
|
onClick: () => i("settings"),
|
|
@@ -9531,7 +9552,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9531
9552
|
}
|
|
9532
9553
|
),
|
|
9533
9554
|
/* @__PURE__ */ n(
|
|
9534
|
-
|
|
9555
|
+
Gt,
|
|
9535
9556
|
{
|
|
9536
9557
|
active: l === "activity",
|
|
9537
9558
|
onClick: () => i("activity"),
|
|
@@ -9555,7 +9576,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9555
9576
|
} catch (ee) {
|
|
9556
9577
|
let $ = "Failed to trigger sync. Please try again.";
|
|
9557
9578
|
const he = Vn(ee, s);
|
|
9558
|
-
he ? $ = he :
|
|
9579
|
+
he ? $ = he : en.isAxiosError(ee) && ee.response?.status === 404 && ($ = `No active CRM config found. Please reconnect ${s}.`), x($), w($);
|
|
9559
9580
|
} finally {
|
|
9560
9581
|
p(!1);
|
|
9561
9582
|
}
|
|
@@ -9586,7 +9607,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9586
9607
|
}
|
|
9587
9608
|
),
|
|
9588
9609
|
/* @__PURE__ */ n(
|
|
9589
|
-
|
|
9610
|
+
Xd,
|
|
9590
9611
|
{
|
|
9591
9612
|
open: C,
|
|
9592
9613
|
onClose: () => f(!1),
|
|
@@ -9606,7 +9627,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9606
9627
|
}
|
|
9607
9628
|
)
|
|
9608
9629
|
] });
|
|
9609
|
-
},
|
|
9630
|
+
}, wn = ({ src: e, name: t, size: c }) => e ? /* @__PURE__ */ n(
|
|
9610
9631
|
"img",
|
|
9611
9632
|
{
|
|
9612
9633
|
src: e,
|
|
@@ -9671,7 +9692,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9671
9692
|
if (t.isDisconnecting) return `${e} is disconnecting`;
|
|
9672
9693
|
if (c)
|
|
9673
9694
|
return `Disable ${c} to connect ${e}`;
|
|
9674
|
-
},
|
|
9695
|
+
}, as = ({
|
|
9675
9696
|
icon: e,
|
|
9676
9697
|
label: t,
|
|
9677
9698
|
description: c,
|
|
@@ -9741,7 +9762,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9741
9762
|
size: "small",
|
|
9742
9763
|
onClick: () => r((A) => !A),
|
|
9743
9764
|
className: void 0,
|
|
9744
|
-
icon: /* @__PURE__ */ n(
|
|
9765
|
+
icon: /* @__PURE__ */ n(Jc, { width: 16, height: 16, "aria-hidden": "true" }),
|
|
9745
9766
|
label: "Import"
|
|
9746
9767
|
}
|
|
9747
9768
|
),
|
|
@@ -9760,9 +9781,9 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9760
9781
|
(k) => k.type !== A.type && s[k.type]?.locksOtherCrm
|
|
9761
9782
|
), M = v === A.type;
|
|
9762
9783
|
return /* @__PURE__ */ n(
|
|
9763
|
-
|
|
9784
|
+
as,
|
|
9764
9785
|
{
|
|
9765
|
-
icon: /* @__PURE__ */ n(
|
|
9786
|
+
icon: /* @__PURE__ */ n(wn, { src: A.logo, name: A.name, size: 24 }),
|
|
9766
9787
|
label: A.name,
|
|
9767
9788
|
description: M ? "Sync in progress — importing your data" : `Sync ${f} from ${A.name}`,
|
|
9768
9789
|
badge: N.badge,
|
|
@@ -9783,9 +9804,9 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9783
9804
|
] }),
|
|
9784
9805
|
/* @__PURE__ */ n("p", { className: "cm-import-sync-heading cm:text-xs cm:font-medium cm:text-slate-500 cm:tracking-wider cm:mb-3", children: "Import via spreadsheet" }),
|
|
9785
9806
|
/* @__PURE__ */ n("div", { className: "cm:flex cm:flex-col cm:gap-4", children: /* @__PURE__ */ n(
|
|
9786
|
-
|
|
9807
|
+
as,
|
|
9787
9808
|
{
|
|
9788
|
-
icon: /* @__PURE__ */ n(
|
|
9809
|
+
icon: /* @__PURE__ */ n(Jc, { className: "cm-import-sync-option__glyph", width: 20, height: 20 }),
|
|
9789
9810
|
label: "Import CSV",
|
|
9790
9811
|
description: "Upload a .CSV file",
|
|
9791
9812
|
disabled: C,
|
|
@@ -9812,7 +9833,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9812
9833
|
entityType: e,
|
|
9813
9834
|
crmProvider: y.type,
|
|
9814
9835
|
crmName: y.name,
|
|
9815
|
-
crmLogo: /* @__PURE__ */ n(
|
|
9836
|
+
crmLogo: /* @__PURE__ */ n(wn, { src: y.logo, name: y.name, size: 32 }),
|
|
9816
9837
|
isSyncInProgress: E
|
|
9817
9838
|
}
|
|
9818
9839
|
),
|
|
@@ -9824,7 +9845,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9824
9845
|
entityType: e,
|
|
9825
9846
|
crmType: y.type,
|
|
9826
9847
|
crmName: y.name,
|
|
9827
|
-
crmLogo: /* @__PURE__ */ n(
|
|
9848
|
+
crmLogo: /* @__PURE__ */ n(wn, { src: y.logo, name: y.name, size: 32 }),
|
|
9828
9849
|
crmIllustration: y.illustration ? /* @__PURE__ */ n(
|
|
9829
9850
|
"img",
|
|
9830
9851
|
{
|
|
@@ -9840,19 +9861,19 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9840
9861
|
)
|
|
9841
9862
|
] });
|
|
9842
9863
|
}, g2 = async (e) => {
|
|
9843
|
-
const t = await
|
|
9864
|
+
const t = await G.post(
|
|
9844
9865
|
ce.EXPORT_JOBS,
|
|
9845
9866
|
{ entity_type: e }
|
|
9846
9867
|
);
|
|
9847
9868
|
return { httpStatus: t.status, data: t.data.data };
|
|
9848
9869
|
}, C2 = async (e) => {
|
|
9849
9870
|
const t = ce.EXPORT_JOB.replace(":job_id", e);
|
|
9850
|
-
return (await
|
|
9871
|
+
return (await G.get(t)).data.data;
|
|
9851
9872
|
}, v2 = async (e) => {
|
|
9852
9873
|
const t = ce.EXPORT_JOB_DOWNLOAD.replace(":job_id", e);
|
|
9853
|
-
return (await
|
|
9854
|
-
},
|
|
9855
|
-
if (!
|
|
9874
|
+
return (await G.get(t)).data.data;
|
|
9875
|
+
}, yn = (e) => {
|
|
9876
|
+
if (!Ut(e)) return null;
|
|
9856
9877
|
const t = e.response?.data, c = t?.detail;
|
|
9857
9878
|
if (c && typeof c == "object" && !Array.isArray(c)) {
|
|
9858
9879
|
const a = c.code;
|
|
@@ -9865,7 +9886,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9865
9886
|
t.style.display = "none", t.src = e, document.body.appendChild(t), setTimeout(() => {
|
|
9866
9887
|
t.remove();
|
|
9867
9888
|
}, b2);
|
|
9868
|
-
},
|
|
9889
|
+
}, Vt = {
|
|
9869
9890
|
IDLE: "idle",
|
|
9870
9891
|
PREPARING: "preparing"
|
|
9871
9892
|
}, Oe = {
|
|
@@ -9938,7 +9959,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
9938
9959
|
try {
|
|
9939
9960
|
A = await v2(w.job_id);
|
|
9940
9961
|
} catch (S) {
|
|
9941
|
-
const M =
|
|
9962
|
+
const M = yn(S);
|
|
9942
9963
|
if (o(ne.EXPORT_FAILED, {
|
|
9943
9964
|
reason: "download_url_failed",
|
|
9944
9965
|
error_code: M,
|
|
@@ -10001,7 +10022,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10001
10022
|
g(w, "job_status_failed", C.error_code);
|
|
10002
10023
|
return;
|
|
10003
10024
|
}
|
|
10004
|
-
const E = f ?
|
|
10025
|
+
const E = f ? yn(f) : null;
|
|
10005
10026
|
E && y2.has(E) && g(w, "status_endpoint_error", E);
|
|
10006
10027
|
}, [
|
|
10007
10028
|
l,
|
|
@@ -10052,7 +10073,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10052
10073
|
m({ jobId: w.data.job_id, startedAt: Date.now() });
|
|
10053
10074
|
},
|
|
10054
10075
|
onError: (w) => {
|
|
10055
|
-
const E =
|
|
10076
|
+
const E = yn(w);
|
|
10056
10077
|
if (E === vt.IN_PROGRESS) {
|
|
10057
10078
|
o(ne.EXPORT_BLOCKED_DUPLICATE), s(Oe.DUPLICATE_TOAST);
|
|
10058
10079
|
return;
|
|
@@ -10063,14 +10084,14 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10063
10084
|
}
|
|
10064
10085
|
s(Oe.FAILED_TOAST, p);
|
|
10065
10086
|
}
|
|
10066
|
-
}), x = v.isPending || i ?
|
|
10087
|
+
}), x = v.isPending || i ? Vt.PREPARING : Vt.IDLE, y = te(() => {
|
|
10067
10088
|
o(ne.EXPORT_STARTED, { filters_active: !1 }), v.mutate();
|
|
10068
10089
|
}, [v, o]);
|
|
10069
10090
|
return F(() => {
|
|
10070
10091
|
h.current = y;
|
|
10071
10092
|
}, [y]), {
|
|
10072
10093
|
phase: x,
|
|
10073
|
-
isBusy: x ===
|
|
10094
|
+
isBusy: x === Vt.PREPARING,
|
|
10074
10095
|
startExport: y
|
|
10075
10096
|
};
|
|
10076
10097
|
}, E2 = ({ entityType: e, className: t }) => {
|
|
@@ -10090,20 +10111,20 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10090
10111
|
t
|
|
10091
10112
|
),
|
|
10092
10113
|
children: [
|
|
10093
|
-
/* @__PURE__ */ n(
|
|
10094
|
-
c ===
|
|
10114
|
+
/* @__PURE__ */ n(q, { name: "export", size: 12, color: "#334155" }),
|
|
10115
|
+
c === Vt.PREPARING ? Oe.PREPARING_LABEL : Oe.IDLE_LABEL
|
|
10095
10116
|
]
|
|
10096
10117
|
}
|
|
10097
10118
|
);
|
|
10098
|
-
},
|
|
10119
|
+
}, An = {
|
|
10099
10120
|
checked: "cm:rounded-[4px] cm:border-0 cm:bg-[#171717]",
|
|
10100
10121
|
checkedDisabled: "cm:rounded-[4px] cm:border-0 cm:bg-[#737373]",
|
|
10101
10122
|
unchecked: "cm:rounded-[4px] cm:border cm:border-[#d4d4d4] cm:bg-white"
|
|
10102
|
-
}, N2 = 14,
|
|
10123
|
+
}, N2 = 14, Yt = 0.68, S2 = ({ size: e }) => /* @__PURE__ */ n(
|
|
10103
10124
|
"svg",
|
|
10104
10125
|
{
|
|
10105
|
-
width: Math.round(e *
|
|
10106
|
-
height: Math.round(e *
|
|
10126
|
+
width: Math.round(e * Yt),
|
|
10127
|
+
height: Math.round(e * Yt),
|
|
10107
10128
|
viewBox: "0 0 14 14",
|
|
10108
10129
|
fill: "none",
|
|
10109
10130
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10122,8 +10143,8 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10122
10143
|
), k2 = ({ size: e }) => /* @__PURE__ */ n(
|
|
10123
10144
|
"svg",
|
|
10124
10145
|
{
|
|
10125
|
-
width: Math.round(e *
|
|
10126
|
-
height: Math.round(e *
|
|
10146
|
+
width: Math.round(e * Yt),
|
|
10147
|
+
height: Math.round(e * Yt),
|
|
10127
10148
|
viewBox: "0 0 14 14",
|
|
10128
10149
|
fill: "none",
|
|
10129
10150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10138,7 +10159,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10138
10159
|
}
|
|
10139
10160
|
)
|
|
10140
10161
|
}
|
|
10141
|
-
),
|
|
10162
|
+
), hn = ({
|
|
10142
10163
|
checked: e,
|
|
10143
10164
|
disabled: t = !1,
|
|
10144
10165
|
size: c = N2,
|
|
@@ -10178,10 +10199,10 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10178
10199
|
!1,
|
|
10179
10200
|
r ? K(
|
|
10180
10201
|
"cm-checkbox--checked",
|
|
10181
|
-
t ?
|
|
10202
|
+
t ? An.checkedDisabled : An.checked
|
|
10182
10203
|
) : K(
|
|
10183
10204
|
"cm-checkbox--unchecked",
|
|
10184
|
-
|
|
10205
|
+
An.unchecked
|
|
10185
10206
|
),
|
|
10186
10207
|
t && "cm-checkbox--disabled"
|
|
10187
10208
|
),
|
|
@@ -10290,7 +10311,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10290
10311
|
color: inherit !important;
|
|
10291
10312
|
}
|
|
10292
10313
|
` });
|
|
10293
|
-
},
|
|
10314
|
+
}, os = (e, t, c) => typeof e == "function" ? e(c) : c[e ?? t], _2 = ({
|
|
10294
10315
|
className: e = "",
|
|
10295
10316
|
panelClassName: t,
|
|
10296
10317
|
display: c = "chip",
|
|
@@ -10312,10 +10333,10 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10312
10333
|
optionLabel: a,
|
|
10313
10334
|
optionValue: o,
|
|
10314
10335
|
itemTemplate: s ?? ((p) => {
|
|
10315
|
-
const g =
|
|
10336
|
+
const g = os(o, "value", p), b = os(a, "label", p), C = u.includes(g);
|
|
10316
10337
|
return /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-3 cm:w-full", children: [
|
|
10317
10338
|
/* @__PURE__ */ n(
|
|
10318
|
-
|
|
10339
|
+
hn,
|
|
10319
10340
|
{
|
|
10320
10341
|
checked: C,
|
|
10321
10342
|
size: 16,
|
|
@@ -10339,7 +10360,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10339
10360
|
] });
|
|
10340
10361
|
}, M2 = (e) => e.id ?? e.value, I2 = (e) => e.display_name ?? e.value ?? "", L2 = ({ field: e, value: t, onChange: c }) => {
|
|
10341
10362
|
const s = j(
|
|
10342
|
-
() => e.type === W.BOOLEAN ?
|
|
10363
|
+
() => e.type === W.BOOLEAN ? Ys : (e.dropdown_values ?? []).map((o) => ({
|
|
10343
10364
|
label: I2(o),
|
|
10344
10365
|
value: M2(o)
|
|
10345
10366
|
})),
|
|
@@ -10411,7 +10432,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10411
10432
|
}
|
|
10412
10433
|
);
|
|
10413
10434
|
}, P2 = ({ open: e, disabled: t, disableMessage: c, hasActiveFilters: s, onClick: a }) => /* @__PURE__ */ d(
|
|
10414
|
-
|
|
10435
|
+
uc,
|
|
10415
10436
|
{
|
|
10416
10437
|
open: e,
|
|
10417
10438
|
disabled: t,
|
|
@@ -10470,7 +10491,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10470
10491
|
)
|
|
10471
10492
|
] });
|
|
10472
10493
|
}, j2 = ({ entityType: e }) => {
|
|
10473
|
-
const { data: t = [] } =
|
|
10494
|
+
const { data: t = [] } = ac({ entity_type: e }), c = nt((o) => o[e]?.filters ?? []), s = nt((o) => o.setFilters);
|
|
10474
10495
|
return /* @__PURE__ */ n(H2, { fields: t, defaultValue: c, onChange: (o) => {
|
|
10475
10496
|
s(e, o);
|
|
10476
10497
|
} });
|
|
@@ -10504,31 +10525,31 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10504
10525
|
ariaLabel: `Search ${s}`
|
|
10505
10526
|
}
|
|
10506
10527
|
);
|
|
10507
|
-
},
|
|
10528
|
+
}, En = (e, t) => /* @__PURE__ */ n("div", { className: e, children: t }), za = ({ total: e, entityType: t, rightNode: c, extraActions: s, showExport: a = !0 }) => {
|
|
10508
10529
|
U.COMPANY;
|
|
10509
|
-
const o = me(se.CUSTOM_FIELDS_M2_ENABLED), r = me(se.IS_ADMIN), l = me(se.EXPORT_ENABLED), i =
|
|
10530
|
+
const o = me(se.CUSTOM_FIELDS_M2_ENABLED), r = me(se.IS_ADMIN), l = me(se.EXPORT_ENABLED), i = En("cm-toolbar-actions", /* @__PURE__ */ d(J, { children: [
|
|
10510
10531
|
/* @__PURE__ */ n(V2, { entityType: t }),
|
|
10511
|
-
|
|
10532
|
+
En("cm-toolbar-icon-group", /* @__PURE__ */ d(J, { children: [
|
|
10512
10533
|
/* @__PURE__ */ n(j2, { entityType: t }),
|
|
10513
10534
|
s,
|
|
10514
10535
|
r && /* @__PURE__ */ n(f0, { entityType: t }),
|
|
10515
10536
|
r && !1
|
|
10516
10537
|
] })),
|
|
10517
|
-
|
|
10538
|
+
En("cm-toolbar-button-group", /* @__PURE__ */ d(J, { children: [
|
|
10518
10539
|
r && l && a && /* @__PURE__ */ n(E2, { entityType: t }),
|
|
10519
10540
|
o && r && /* @__PURE__ */ n(f2, { entityType: t }),
|
|
10520
10541
|
c
|
|
10521
10542
|
] }))
|
|
10522
10543
|
] }));
|
|
10523
10544
|
return /* @__PURE__ */ n(
|
|
10524
|
-
|
|
10545
|
+
Ss,
|
|
10525
10546
|
{
|
|
10526
10547
|
className: "cm-listing-toolbar",
|
|
10527
10548
|
title: `${t === U.COMPANY ? Ge : "Contacts"} (${e ?? 0})`,
|
|
10528
10549
|
actions: i
|
|
10529
10550
|
}
|
|
10530
10551
|
);
|
|
10531
|
-
}, Dt = ["asc", "desc", null],
|
|
10552
|
+
}, Dt = ["asc", "desc", null], Zt = We((e, t) => ({
|
|
10532
10553
|
[U.COMPANY]: {
|
|
10533
10554
|
order: null
|
|
10534
10555
|
},
|
|
@@ -10550,7 +10571,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10550
10571
|
const s = c ? e.custom_field_id : e.field;
|
|
10551
10572
|
return t !== s ? null : e.order;
|
|
10552
10573
|
}, Wa = ({ title: e, entityType: t, field: c, isCF: s }) => {
|
|
10553
|
-
const a =
|
|
10574
|
+
const a = Zt((u) => u[t]), r = Zt((u) => u.setSort)(t), l = U2(a)(c, s);
|
|
10554
10575
|
return /* @__PURE__ */ d(
|
|
10555
10576
|
"div",
|
|
10556
10577
|
{
|
|
@@ -10568,8 +10589,8 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10568
10589
|
children: [
|
|
10569
10590
|
!l && // Kit draws both chevrons as one path; the lower half is a clipped copy in the disabled tone.
|
|
10570
10591
|
/* @__PURE__ */ d("span", { className: "cm-sort-neutral", children: [
|
|
10571
|
-
/* @__PURE__ */ n(
|
|
10572
|
-
/* @__PURE__ */ n(
|
|
10592
|
+
/* @__PURE__ */ n($c, { className: "cm-sort-neutral__upper" }),
|
|
10593
|
+
/* @__PURE__ */ n($c, { "aria-hidden": "true", className: "cm-sort-neutral__lower" })
|
|
10573
10594
|
] }),
|
|
10574
10595
|
l === "asc" && /* @__PURE__ */ n(mm, {}),
|
|
10575
10596
|
l === "desc" && /* @__PURE__ */ n(dm, {})
|
|
@@ -10579,28 +10600,28 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10579
10600
|
]
|
|
10580
10601
|
}
|
|
10581
10602
|
);
|
|
10582
|
-
}, z2 = { total: 0, page: 0, page_size: 0 }, W2 = { total_results: 0, page_number: 0, page_size: 0 },
|
|
10603
|
+
}, z2 = { total: 0, page: 0, page_size: 0 }, W2 = { total_results: 0, page_number: 0, page_size: 0 }, X2 = (e) => {
|
|
10583
10604
|
const { total: t, page: c = 0, page_size: s } = e?.data ?? z2;
|
|
10584
10605
|
return c * s < t ? c + 1 : void 0;
|
|
10585
|
-
}, Ft = (e) => !!e?.data && "results" in e.data,
|
|
10606
|
+
}, Ft = (e) => !!e?.data && "results" in e.data, Q2 = (e) => {
|
|
10586
10607
|
const { total_results: t, page_number: c = 0, page_size: s } = e?.data ?? W2;
|
|
10587
10608
|
return c * s < t ? c + 1 : void 0;
|
|
10588
10609
|
}, q2 = (e, t = !0) => {
|
|
10589
|
-
const c = nt((v) => v.company.filters), s =
|
|
10610
|
+
const c = nt((v) => v.company.filters), s = Zt((v) => v[U.COMPANY]), a = Array.isArray(c) && c.length > 0, o = (s.field || s.custom_field_id) && s.order ? {
|
|
10590
10611
|
...s,
|
|
10591
10612
|
by: s.field ? "native" : "cf"
|
|
10592
|
-
} : null, r =
|
|
10613
|
+
} : null, r = zt({
|
|
10593
10614
|
queryKey: [fe.COMPANIES_WITH_FILTERS, c, s, e?.filter_by, e?.text],
|
|
10594
10615
|
queryFn: ({ pageParam: v }) => Oi({ filters: c, sort: o, page_size: 20, page_number: v, ...e?.text ? { text: e.text } : {} }, e?.filter_by),
|
|
10595
|
-
getNextPageParam:
|
|
10616
|
+
getNextPageParam: Q2,
|
|
10596
10617
|
initialPageParam: 1,
|
|
10597
10618
|
enabled: t && a,
|
|
10598
10619
|
refetchOnMount: !0,
|
|
10599
10620
|
gcTime: 0
|
|
10600
|
-
}), l = s.custom_field_id ? `cf:${s.custom_field_id}` : s.field, i = s.order ?? void 0, m =
|
|
10621
|
+
}), l = s.custom_field_id ? `cf:${s.custom_field_id}` : s.field, i = s.order ?? void 0, m = zt({
|
|
10601
10622
|
queryKey: [fe.COMPANIES, e, s],
|
|
10602
10623
|
queryFn: ({ pageParam: v }) => Dn({ ...e, page_number: v, sort: l, order: i }),
|
|
10603
|
-
getNextPageParam:
|
|
10624
|
+
getNextPageParam: X2,
|
|
10604
10625
|
initialPageParam: 1,
|
|
10605
10626
|
enabled: t && !a,
|
|
10606
10627
|
refetchOnMount: !0,
|
|
@@ -10625,7 +10646,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10625
10646
|
),
|
|
10626
10647
|
children: /* @__PURE__ */ n(ue, { text: e, className: "cm:truncate" })
|
|
10627
10648
|
}
|
|
10628
|
-
), Y2 = 2,
|
|
10649
|
+
), Y2 = 2, Xa = ({
|
|
10629
10650
|
values: e,
|
|
10630
10651
|
maxVisible: t = Y2,
|
|
10631
10652
|
className: c,
|
|
@@ -10667,13 +10688,13 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10667
10688
|
]
|
|
10668
10689
|
}
|
|
10669
10690
|
);
|
|
10670
|
-
}, Pe = ({ nodeRef: e }) => /* @__PURE__ */ n("div", { className: "cm:h-4 cm:bg-gray-200 cm:rounded cm:w-3/4 cm:animate-pulse", ref: e }), Z2 = async ({ entity_type: e }) => (await
|
|
10691
|
+
}, Pe = ({ nodeRef: e }) => /* @__PURE__ */ n("div", { className: "cm:h-4 cm:bg-gray-200 cm:rounded cm:w-3/4 cm:animate-pulse", ref: e }), Z2 = async ({ entity_type: e }) => (await G.get(ce.VIEW_CUSTOM_FIELDS, {
|
|
10671
10692
|
params: {
|
|
10672
10693
|
entity_type: e
|
|
10673
10694
|
}
|
|
10674
|
-
})).data.data,
|
|
10695
|
+
})).data.data, Qa = async ({ entity_type: e, visible_items: t }) => {
|
|
10675
10696
|
try {
|
|
10676
|
-
return (await
|
|
10697
|
+
return (await G.put(ce.VIEW_CUSTOM_FIELDS, {
|
|
10677
10698
|
entity_type: e,
|
|
10678
10699
|
visible_items: t
|
|
10679
10700
|
})).status === 200;
|
|
@@ -10690,7 +10711,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10690
10711
|
style: { width: "180px" },
|
|
10691
10712
|
body: s
|
|
10692
10713
|
};
|
|
10693
|
-
}),
|
|
10714
|
+
}), pn = (e) => (t) => {
|
|
10694
10715
|
if (!Array.isArray(t)) return {};
|
|
10695
10716
|
const c = {};
|
|
10696
10717
|
for (const s of t) {
|
|
@@ -10714,7 +10735,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10714
10735
|
}, $2 = async ({ entity_type: e, defaultColumns: t, extraColumns: c = [] }) => {
|
|
10715
10736
|
const [s, a] = await Promise.all([
|
|
10716
10737
|
Z2({ entity_type: e }),
|
|
10717
|
-
|
|
10738
|
+
an({ entity_type: e })
|
|
10718
10739
|
]), o = a.account_custom_fields.find((g) => g.entity_type === e)?.custom_fields ?? [], r = K2(o), i = [...t.map((g) => ({ ...g, locked: !0, visible: !0 })), ...r, ...c], m = s.visible_items;
|
|
10719
10740
|
if (!m?.length) return i;
|
|
10720
10741
|
const u = {};
|
|
@@ -10757,7 +10778,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10757
10778
|
size: "small",
|
|
10758
10779
|
onClick: c,
|
|
10759
10780
|
className: t,
|
|
10760
|
-
icon: /* @__PURE__ */ n(
|
|
10781
|
+
icon: /* @__PURE__ */ n(oc, { width: 16, height: 16, "aria-hidden": "true" }),
|
|
10761
10782
|
label: c3[e]
|
|
10762
10783
|
}
|
|
10763
10784
|
), s3 = ({
|
|
@@ -10767,7 +10788,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10767
10788
|
}) => /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:justify-between cm:px-4 cm:py-3 cm:border-b cm:border-slate-border-mild", children: [
|
|
10768
10789
|
/* @__PURE__ */ n("span", { className: "cm:text-sm cm:font-medium cm:text-slate-text-title", children: "Table preferences" }),
|
|
10769
10790
|
/* @__PURE__ */ n(
|
|
10770
|
-
|
|
10791
|
+
hn,
|
|
10771
10792
|
{
|
|
10772
10793
|
checked: e,
|
|
10773
10794
|
disabled: c,
|
|
@@ -10780,7 +10801,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10780
10801
|
const c = !!e.visible, s = !!e.locked;
|
|
10781
10802
|
return /* @__PURE__ */ d("div", { className: "cm-pref-row cm:flex cm:items-center cm:gap-3 cm:py-[10px] cm:px-3 cm:min-h-[40px]", children: [
|
|
10782
10803
|
/* @__PURE__ */ n(
|
|
10783
|
-
|
|
10804
|
+
hn,
|
|
10784
10805
|
{
|
|
10785
10806
|
checked: c,
|
|
10786
10807
|
disabled: s,
|
|
@@ -10845,7 +10866,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10845
10866
|
}
|
|
10846
10867
|
);
|
|
10847
10868
|
}, l3 = ({ open: e, onClick: t }) => /* @__PURE__ */ n(
|
|
10848
|
-
|
|
10869
|
+
uc,
|
|
10849
10870
|
{
|
|
10850
10871
|
open: e,
|
|
10851
10872
|
tooltip: "Table preferences",
|
|
@@ -10913,7 +10934,7 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10913
10934
|
reorderPreferences: u,
|
|
10914
10935
|
setAllVisible: h
|
|
10915
10936
|
};
|
|
10916
|
-
}, i3 =
|
|
10937
|
+
}, i3 = pn((e) => /* @__PURE__ */ n(Ka, { field: e })), m3 = pn(() => /* @__PURE__ */ n(Pe, {})), d3 = {
|
|
10917
10938
|
id: "account_sentiment",
|
|
10918
10939
|
field: "accountSentimentDisplay",
|
|
10919
10940
|
label: `${ae} Sentiment`,
|
|
@@ -10924,8 +10945,8 @@ const md = (e) => /* @__PURE__ */ D.createElement("svg", { width: 16, height: 16
|
|
|
10924
10945
|
}, u3 = ({ name: e, health: t, sentiment: c }) => /* @__PURE__ */ d("span", { className: "cm:inline-flex cm:min-w-0 cm:items-center cm:gap-1.5", children: [
|
|
10925
10946
|
/* @__PURE__ */ n(ue, { text: e, className: "cm:text-slate-900" }),
|
|
10926
10947
|
/* @__PURE__ */ n(aa, { health: t, sentiment: c })
|
|
10927
|
-
] }), h3 = ({ domains: e, fallback: t }) => e.length ? /* @__PURE__ */ n(
|
|
10928
|
-
function
|
|
10948
|
+
] }), h3 = ({ domains: e, fallback: t }) => e.length ? /* @__PURE__ */ n(Xa, { values: e, maxVisible: 2 }) : /* @__PURE__ */ n(ue, { text: t, className: "cm:text-slate-900" });
|
|
10949
|
+
function Nn({ filterBy: e, tabs: t, ciEnabled: c = !1, onAtRiskCount: s, onAllCount: a } = {}) {
|
|
10929
10950
|
const o = Re(), { search: r } = st(), [l, i] = _(!1), m = Ja(U.COMPANY), u = j(
|
|
10930
10951
|
() => e || m ? { ...e ? { filter_by: e } : {}, ...m ? { text: m } : {} } : void 0,
|
|
10931
10952
|
[e, m]
|
|
@@ -10956,7 +10977,7 @@ function En({ filterBy: e, tabs: t, ciEnabled: c = !1, onAtRiskCount: s, onAllCo
|
|
|
10956
10977
|
extraColumns: c ? [d3] : []
|
|
10957
10978
|
}), S = P((oe) => oe.callbacks), M = async (oe) => {
|
|
10958
10979
|
const Se = oe.map((I) => qa(I.id, I.visible ?? !1));
|
|
10959
|
-
await
|
|
10980
|
+
await Qa({ entity_type: U.COMPANY, visible_items: Se }) && N();
|
|
10960
10981
|
}, {
|
|
10961
10982
|
preferences: k,
|
|
10962
10983
|
togglePreference: V,
|
|
@@ -11018,7 +11039,7 @@ function En({ filterBy: e, tabs: t, ciEnabled: c = !1, onAtRiskCount: s, onAllCo
|
|
|
11018
11039
|
return oe;
|
|
11019
11040
|
}, [h, v, x, E, c]), Me = () => {
|
|
11020
11041
|
i(!1), f();
|
|
11021
|
-
}, B = nt((oe) => oe.company.filters.length > 0) || !!m,
|
|
11042
|
+
}, B = nt((oe) => oe.company.filters.length > 0) || !!m, Q = !T && (!h || h.length === 0), ye = (oe) => {
|
|
11022
11043
|
const Se = oe.data;
|
|
11023
11044
|
if (!Se.isNoDataRow) {
|
|
11024
11045
|
if (S?.sendGainsightEvent?.(ne.ACCOUNT_ROW_CLICKED), e === "at_risk") {
|
|
@@ -11037,8 +11058,8 @@ function En({ filterBy: e, tabs: t, ciEnabled: c = !1, onAtRiskCount: s, onAllCo
|
|
|
11037
11058
|
}
|
|
11038
11059
|
o({ pathname: `/accounts/${Se.id}`, search: r });
|
|
11039
11060
|
}
|
|
11040
|
-
}, re = () => T && !z.length ? /* @__PURE__ */ n("div", { className: "cm:flex cm:items-center cm:justify-center cm:w-full cm:h-full", children: /* @__PURE__ */ n(we, {}) }) :
|
|
11041
|
-
|
|
11061
|
+
}, re = () => T && !z.length ? /* @__PURE__ */ n("div", { className: "cm:flex cm:items-center cm:justify-center cm:w-full cm:h-full", children: /* @__PURE__ */ n(we, {}) }) : Q ? /* @__PURE__ */ n("div", { className: "cm-listing-empty cm:px-12 cm:flex cm:flex-col cm:flex-1", children: /* @__PURE__ */ n(
|
|
11062
|
+
Xe,
|
|
11042
11063
|
{
|
|
11043
11064
|
title: B ? `No ${Te} found` : `No ${Te} yet`,
|
|
11044
11065
|
iconContent: Ue.hiverBee2,
|
|
@@ -11102,7 +11123,7 @@ function En({ filterBy: e, tabs: t, ciEnabled: c = !1, onAtRiskCount: s, onAllCo
|
|
|
11102
11123
|
re()
|
|
11103
11124
|
] }),
|
|
11104
11125
|
/* @__PURE__ */ n(
|
|
11105
|
-
|
|
11126
|
+
mn,
|
|
11106
11127
|
{
|
|
11107
11128
|
open: l,
|
|
11108
11129
|
onClose: () => i(!1),
|
|
@@ -11112,10 +11133,10 @@ function En({ filterBy: e, tabs: t, ciEnabled: c = !1, onAtRiskCount: s, onAllCo
|
|
|
11112
11133
|
)
|
|
11113
11134
|
] });
|
|
11114
11135
|
}
|
|
11115
|
-
const
|
|
11136
|
+
const rs = (e) => (t) => {
|
|
11116
11137
|
const c = new URLSearchParams(t);
|
|
11117
|
-
return e === Ve.AT_RISK ? c.set(
|
|
11118
|
-
},
|
|
11138
|
+
return e === Ve.AT_RISK ? c.set(qt, e) : c.delete(qt), c;
|
|
11139
|
+
}, ls = ({ count: e, active: t }) => typeof e == "number" ? /* @__PURE__ */ n(
|
|
11119
11140
|
"span",
|
|
11120
11141
|
{
|
|
11121
11142
|
className: K(
|
|
@@ -11125,11 +11146,11 @@ const os = (e) => (t) => {
|
|
|
11125
11146
|
children: e
|
|
11126
11147
|
}
|
|
11127
11148
|
) : null, p3 = () => {
|
|
11128
|
-
const e = P((f) => f.callbacks), t = me(se.CUSTOM_FIELDS_ENABLED), c = me(se.CUSTOMER_INTELLIGENCE_ENABLED), [s, a] = sr(), o = s.get(
|
|
11149
|
+
const e = P((f) => f.callbacks), t = me(se.CUSTOM_FIELDS_ENABLED), c = me(se.CUSTOMER_INTELLIGENCE_ENABLED), [s, a] = sr(), o = s.get(qt) === Ve.AT_RISK ? Ve.AT_RISK : Ve.ALL, r = s.has(qt), [l, i] = _(void 0), [m, u] = _(void 0), h = l !== 0, p = o === Ve.AT_RISK && h ? 1 : 0, g = [
|
|
11129
11150
|
{
|
|
11130
11151
|
label: /* @__PURE__ */ d("span", { className: "cm:inline-flex cm:items-center", children: [
|
|
11131
11152
|
"All",
|
|
11132
|
-
/* @__PURE__ */ n(
|
|
11153
|
+
/* @__PURE__ */ n(ls, { count: m, active: p === 0 })
|
|
11133
11154
|
] }),
|
|
11134
11155
|
content: ""
|
|
11135
11156
|
},
|
|
@@ -11137,7 +11158,7 @@ const os = (e) => (t) => {
|
|
|
11137
11158
|
{
|
|
11138
11159
|
label: /* @__PURE__ */ d("span", { className: "cm:inline-flex cm:items-center", children: [
|
|
11139
11160
|
"At Risk",
|
|
11140
|
-
/* @__PURE__ */ n(
|
|
11161
|
+
/* @__PURE__ */ n(ls, { count: l, active: p === 1 })
|
|
11141
11162
|
] }),
|
|
11142
11163
|
content: ""
|
|
11143
11164
|
}
|
|
@@ -11148,19 +11169,19 @@ const os = (e) => (t) => {
|
|
|
11148
11169
|
ne.CUSTOMER_INTELLIGENCE_AT_RISK_TAB_OPENED,
|
|
11149
11170
|
{ at_risk_account_count: l, source: "customer_module" }
|
|
11150
11171
|
), a(
|
|
11151
|
-
|
|
11172
|
+
rs(v === 1 ? Ve.AT_RISK : Ve.ALL),
|
|
11152
11173
|
// Replace, not push — pushing stacks a history entry per toggle.
|
|
11153
11174
|
{ replace: !0 }
|
|
11154
11175
|
);
|
|
11155
11176
|
};
|
|
11156
11177
|
if (F(() => {
|
|
11157
|
-
h || !r || a(
|
|
11178
|
+
h || !r || a(rs(Ve.ALL), { replace: !0 });
|
|
11158
11179
|
}, [h, r, a]), F(() => {
|
|
11159
11180
|
e?.sendGainsightEvent && e.sendGainsightEvent(ne.ACCOUNT_LIST_VIEWED);
|
|
11160
11181
|
}, [e]), !t)
|
|
11161
11182
|
return /* @__PURE__ */ n("div", { className: "cm:w-full cm:flex cm:flex-col cm:flex-1 cm:basis-0 cm:min-h-0", children: /* @__PURE__ */ n(Z1, { ciEnabled: c }) });
|
|
11162
11183
|
if (!c)
|
|
11163
|
-
return /* @__PURE__ */ n("div", { className: "cm:w-full cm:flex cm:flex-col cm:flex-1 cm:basis-0 cm:min-h-0", children: /* @__PURE__ */ n(
|
|
11184
|
+
return /* @__PURE__ */ n("div", { className: "cm:w-full cm:flex cm:flex-col cm:flex-1 cm:basis-0 cm:min-h-0", children: /* @__PURE__ */ n(Nn, { ciEnabled: !1 }) });
|
|
11164
11185
|
const C = /* @__PURE__ */ d(J, { children: [
|
|
11165
11186
|
/* @__PURE__ */ n(St, { children: `
|
|
11166
11187
|
.omni-tabs-primereact li:first-child {
|
|
@@ -11170,11 +11191,11 @@ const os = (e) => (t) => {
|
|
|
11170
11191
|
padding: 14px 4px !important;
|
|
11171
11192
|
}
|
|
11172
11193
|
` }),
|
|
11173
|
-
/* @__PURE__ */ n(
|
|
11194
|
+
/* @__PURE__ */ n(tn, { value: p, onTabChange: b, items: g })
|
|
11174
11195
|
] });
|
|
11175
11196
|
return /* @__PURE__ */ d("div", { className: "cm:w-full cm:flex cm:flex-col cm:flex-1 cm:basis-0 cm:min-h-0", children: [
|
|
11176
11197
|
p === 0 && /* @__PURE__ */ n(
|
|
11177
|
-
|
|
11198
|
+
Nn,
|
|
11178
11199
|
{
|
|
11179
11200
|
ciEnabled: !0,
|
|
11180
11201
|
tabs: C,
|
|
@@ -11183,7 +11204,7 @@ const os = (e) => (t) => {
|
|
|
11183
11204
|
}
|
|
11184
11205
|
),
|
|
11185
11206
|
p === 1 && /* @__PURE__ */ n(
|
|
11186
|
-
|
|
11207
|
+
Nn,
|
|
11187
11208
|
{
|
|
11188
11209
|
ciEnabled: !0,
|
|
11189
11210
|
filterBy: "at_risk",
|
|
@@ -11193,7 +11214,7 @@ const os = (e) => (t) => {
|
|
|
11193
11214
|
}
|
|
11194
11215
|
)
|
|
11195
11216
|
] });
|
|
11196
|
-
},
|
|
11217
|
+
}, fc = (e) => e != null && e.trim() !== "" && e.trim() !== "-", f3 = (e, t, c) => c && !!t?.onPhoneClick && fc(e), g3 = (e, t, c) => c && !!t?.onSmsClick && fc(e), no = (e, { voiceEnabled: t, smsEnabled: c }) => t && !!e?.onPhoneClick || c && !!e?.onSmsClick, C3 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_960_14978)'%3e%3cpath%20d='M6.41666%202.33314H3.96666C2.98656%202.33314%202.49652%202.33314%202.12217%202.52388C1.79289%202.69166%201.52517%202.95938%201.35739%203.28866C1.16666%203.663%201.16666%204.15305%201.16666%205.13314V10.0332C1.16666%2011.0132%201.16666%2011.5033%201.35739%2011.8776C1.52517%2012.2069%201.79289%2012.4746%202.12217%2012.6424C2.49652%2012.8331%202.98656%2012.8331%203.96666%2012.8331H8.86666C9.84677%2012.8331%2010.3368%2012.8331%2010.7112%2012.6424C11.0404%2012.4746%2011.3081%2012.2069%2011.4759%2011.8776C11.6667%2011.5033%2011.6667%2011.0132%2011.6667%2010.0332V7.58315M4.66664%209.33315H5.64346C5.92881%209.33315%206.0715%209.33315%206.20578%209.30089C6.32478%209.27231%206.43859%209.22518%206.54301%209.16124C6.66072%209.08908%206.76164%208.98817%206.96341%208.78639L12.5417%203.20814C13.0249%202.72489%2013.0249%201.94139%2012.5417%201.45814C12.0584%200.974894%2011.2749%200.974888%2010.7917%201.45814L5.21337%207.03639C5.0116%207.23817%204.91071%207.33908%204.83856%207.4568C4.7746%207.56122%204.72746%207.67497%204.69887%207.79403C4.66664%207.92831%204.66664%208.07099%204.66664%208.35636V9.33315Z'%20stroke='%230C3E9D'%20stroke-width='1.1'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_960_14978'%3e%3crect%20width='14'%20height='14'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Sn = 160, Pt = 8, v3 = 150, b3 = 200, is = "cm:flex cm:w-full cm:items-center cm:gap-2 cm:border-0 cm:bg-transparent cm:px-3 cm:py-2 cm:text-left cm:text-[13px] cm:leading-[18px] cm:font-normal cm:text-slate-text-body", x3 = ({
|
|
11197
11218
|
phone: e,
|
|
11198
11219
|
contactId: t,
|
|
11199
11220
|
contactName: c,
|
|
@@ -11215,7 +11236,7 @@ const os = (e) => (t) => {
|
|
|
11215
11236
|
if (!m || !h.current || !p.current) return;
|
|
11216
11237
|
const S = h.current.getBoundingClientRect(), M = p.current.getBoundingClientRect(), k = Math.max(
|
|
11217
11238
|
Pt,
|
|
11218
|
-
Math.min(S.right -
|
|
11239
|
+
Math.min(S.right - Sn, window.innerWidth - Sn - Pt)
|
|
11219
11240
|
);
|
|
11220
11241
|
let V = S.bottom + 4;
|
|
11221
11242
|
V + M.height > window.innerHeight - Pt && (V = S.top - M.height - 4), p.current.style.top = `${Math.max(Pt, V)}px`, p.current.style.left = `${k}px`;
|
|
@@ -11230,7 +11251,7 @@ const os = (e) => (t) => {
|
|
|
11230
11251
|
return document.addEventListener("mousedown", M), document.addEventListener("keydown", k), window.addEventListener("resize", S), window.addEventListener("scroll", S, !0), () => {
|
|
11231
11252
|
document.removeEventListener("mousedown", M), document.removeEventListener("keydown", k), window.removeEventListener("resize", S), window.removeEventListener("scroll", S, !0);
|
|
11232
11253
|
};
|
|
11233
|
-
}, [m]), !
|
|
11254
|
+
}, [m]), !fc(e) || !y && !w) return null;
|
|
11234
11255
|
const E = { phoneNumber: e, contactId: t, contactName: c, accountId: s, source: "contactList" }, A = (S) => {
|
|
11235
11256
|
S.stopPropagation(), u(!1), a?.sendGainsightEvent?.(ne.PHONE_NUMBER_CLICKED), a?.onPhoneClick?.(E);
|
|
11236
11257
|
}, N = (S) => {
|
|
@@ -11251,7 +11272,7 @@ const os = (e) => (t) => {
|
|
|
11251
11272
|
S.stopPropagation(), C(), f(), u((M) => !M);
|
|
11252
11273
|
},
|
|
11253
11274
|
className: "cm-row-actions-btn",
|
|
11254
|
-
children: /* @__PURE__ */ n(
|
|
11275
|
+
children: /* @__PURE__ */ n(q, { name: "kebab", size: 14, color: "#475569" })
|
|
11255
11276
|
}
|
|
11256
11277
|
),
|
|
11257
11278
|
m && !!o && Ze(
|
|
@@ -11265,7 +11286,7 @@ const os = (e) => (t) => {
|
|
|
11265
11286
|
onMouseEnter: f,
|
|
11266
11287
|
onMouseLeave: x,
|
|
11267
11288
|
className: "cm:pointer-events-auto cm:fixed cm:flex cm:flex-col cm:rounded-lg cm:border cm:border-slate-border-mild cm:bg-white cm:py-1 cm:shadow-lg",
|
|
11268
|
-
style: { width:
|
|
11289
|
+
style: { width: Sn, zIndex: 9998, top: 0, left: 0 },
|
|
11269
11290
|
children: [
|
|
11270
11291
|
y && /* @__PURE__ */ d(
|
|
11271
11292
|
"button",
|
|
@@ -11273,9 +11294,9 @@ const os = (e) => (t) => {
|
|
|
11273
11294
|
type: "button",
|
|
11274
11295
|
role: "menuitem",
|
|
11275
11296
|
onClick: A,
|
|
11276
|
-
className: `${
|
|
11297
|
+
className: `${is} cm:cursor-pointer cm:hover:bg-slate-surface-subtle`,
|
|
11277
11298
|
children: [
|
|
11278
|
-
/* @__PURE__ */ n(
|
|
11299
|
+
/* @__PURE__ */ n(q, { name: "phone", size: 14, color: "#64758b" }),
|
|
11279
11300
|
"Call"
|
|
11280
11301
|
]
|
|
11281
11302
|
}
|
|
@@ -11286,9 +11307,9 @@ const os = (e) => (t) => {
|
|
|
11286
11307
|
type: "button",
|
|
11287
11308
|
role: "menuitem",
|
|
11288
11309
|
onClick: N,
|
|
11289
|
-
className: `${
|
|
11310
|
+
className: `${is} cm:cursor-pointer cm:hover:bg-slate-surface-subtle`,
|
|
11290
11311
|
children: [
|
|
11291
|
-
/* @__PURE__ */ n(
|
|
11312
|
+
/* @__PURE__ */ n(q, { name: "channel-sms", size: 14, color: "#64758b" }),
|
|
11292
11313
|
"Send SMS"
|
|
11293
11314
|
]
|
|
11294
11315
|
}
|
|
@@ -11299,19 +11320,19 @@ const os = (e) => (t) => {
|
|
|
11299
11320
|
o
|
|
11300
11321
|
)
|
|
11301
11322
|
] });
|
|
11302
|
-
},
|
|
11323
|
+
}, gc = ({
|
|
11303
11324
|
name: e,
|
|
11304
11325
|
channelType: t,
|
|
11305
11326
|
avatarSize: c = "default",
|
|
11306
11327
|
containerClassName: s = "cm:flex cm:items-center cm:gap-2 cm:min-w-0",
|
|
11307
11328
|
textClassName: a = "cm:text-sm cm:text-slate-900 cm:truncate"
|
|
11308
11329
|
}) => {
|
|
11309
|
-
const o =
|
|
11330
|
+
const o = js(e, t);
|
|
11310
11331
|
return /* @__PURE__ */ d("div", { className: s, children: [
|
|
11311
11332
|
/* @__PURE__ */ n(
|
|
11312
11333
|
Rr,
|
|
11313
11334
|
{
|
|
11314
|
-
label:
|
|
11335
|
+
label: ks(o),
|
|
11315
11336
|
color: Ll[Yn(o)],
|
|
11316
11337
|
size: "xs"
|
|
11317
11338
|
}
|
|
@@ -11324,7 +11345,7 @@ const os = (e) => (t) => {
|
|
|
11324
11345
|
}
|
|
11325
11346
|
)
|
|
11326
11347
|
] });
|
|
11327
|
-
},
|
|
11348
|
+
}, Cc = ({
|
|
11328
11349
|
email: e,
|
|
11329
11350
|
onCompose: t,
|
|
11330
11351
|
baseClassName: c = "cm:text-sm cm:truncate cm:block",
|
|
@@ -11382,7 +11403,7 @@ const os = (e) => (t) => {
|
|
|
11382
11403
|
]
|
|
11383
11404
|
}
|
|
11384
11405
|
);
|
|
11385
|
-
},
|
|
11406
|
+
}, vc = ({
|
|
11386
11407
|
phone: e,
|
|
11387
11408
|
className: t = "cm:text-slate-900",
|
|
11388
11409
|
style: c = { color: "var(--cm-color-slate-text-body)" },
|
|
@@ -11406,7 +11427,7 @@ const os = (e) => (t) => {
|
|
|
11406
11427
|
className: "text-slate-900"
|
|
11407
11428
|
}
|
|
11408
11429
|
);
|
|
11409
|
-
},
|
|
11430
|
+
}, ms = [
|
|
11410
11431
|
{
|
|
11411
11432
|
id: "name",
|
|
11412
11433
|
field: "nameDisplay",
|
|
@@ -11430,7 +11451,7 @@ const os = (e) => (t) => {
|
|
|
11430
11451
|
field: "phoneCallDisplay",
|
|
11431
11452
|
label: "",
|
|
11432
11453
|
style: { width: "60px" }
|
|
11433
|
-
},
|
|
11454
|
+
}, ds = {
|
|
11434
11455
|
id: "account",
|
|
11435
11456
|
field: "accountDisplay",
|
|
11436
11457
|
label: ae,
|
|
@@ -11448,7 +11469,7 @@ function A3() {
|
|
|
11448
11469
|
} = Ce(), l = Re(), i = R(null), m = P((S) => S.callbacks), u = me(se.VOICE_ENABLED), h = me(se.SMS_ENABLED), p = me(se.OUTBOUND_CALLS_ENABLED), [g, b] = _(!0), C = R(!1), f = no(m, {
|
|
11449
11470
|
voiceEnabled: u && p,
|
|
11450
11471
|
smsEnabled: h
|
|
11451
|
-
}), v = j(() => f ? [...
|
|
11472
|
+
}), v = j(() => f ? [...ms, y3, ds] : [...ms, ds], [f]);
|
|
11452
11473
|
F(() => {
|
|
11453
11474
|
C.current || (r(null), b(!0), C.current = !0, a().finally(() => {
|
|
11454
11475
|
b(!1);
|
|
@@ -11466,9 +11487,9 @@ function A3() {
|
|
|
11466
11487
|
m?.onCompose?.(k);
|
|
11467
11488
|
}, M = e.contacts.map((k) => ({
|
|
11468
11489
|
...k,
|
|
11469
|
-
nameDisplay: /* @__PURE__ */ n(
|
|
11470
|
-
emailDisplay: /* @__PURE__ */ n(
|
|
11471
|
-
phoneDisplay: /* @__PURE__ */ n(
|
|
11490
|
+
nameDisplay: /* @__PURE__ */ n(gc, { name: k.name, channelType: k.channel_type }),
|
|
11491
|
+
emailDisplay: /* @__PURE__ */ n(Cc, { email: k.email, onCompose: S }),
|
|
11492
|
+
phoneDisplay: /* @__PURE__ */ n(vc, { phone: k.phone_number || "" }),
|
|
11472
11493
|
...f && { phoneCallDisplay: /* @__PURE__ */ n(co, { phone: k.phone_number, contactId: k.id, contactName: k.name, accountId: k.company?.id }) },
|
|
11473
11494
|
accountDisplay: /* @__PURE__ */ n(w3, { account: k.company?.name || "" }),
|
|
11474
11495
|
isNoDataRow: !1
|
|
@@ -11493,7 +11514,7 @@ function A3() {
|
|
|
11493
11514
|
}
|
|
11494
11515
|
return M;
|
|
11495
11516
|
}, [e, t, x, m, f]), w = j(() => !t && (!e || !e.contacts || e.contacts.length === 0), [t, e]);
|
|
11496
|
-
|
|
11517
|
+
sc({
|
|
11497
11518
|
wrapperRef: i,
|
|
11498
11519
|
tableData: y,
|
|
11499
11520
|
isLoading: t,
|
|
@@ -11513,7 +11534,7 @@ function A3() {
|
|
|
11513
11534
|
return /* @__PURE__ */ n("div", { className: "cm:flex cm:items-center cm:justify-center cm:w-full cm:h-full", children: /* @__PURE__ */ n(we, {}) });
|
|
11514
11535
|
const N = (e?.contacts?.length ?? 0) > 0;
|
|
11515
11536
|
return (s !== null || c) && !N ? /* @__PURE__ */ n(ca, { entityLabel: "contacts", onRetry: E }) : w || y.length === 0 ? /* @__PURE__ */ n("div", { className: "cm:px-12 cm:flex cm:flex-col cm:flex-1", children: /* @__PURE__ */ n(
|
|
11516
|
-
|
|
11537
|
+
Xe,
|
|
11517
11538
|
{
|
|
11518
11539
|
title: "No contacts found",
|
|
11519
11540
|
subcopy: "Contacts will start showing up here when new conversations are created."
|
|
@@ -11599,33 +11620,33 @@ const E3 = { total: 0, page: 0, page_size: 0 }, N3 = { total_results: 0, page_nu
|
|
|
11599
11620
|
}, k3 = (e) => {
|
|
11600
11621
|
const { total_results: t, page_number: c = 0, page_size: s } = e?.data ?? N3;
|
|
11601
11622
|
return c * s < t ? c + 1 : void 0;
|
|
11602
|
-
},
|
|
11603
|
-
const c = nt((C) => C.contact.filters), s = Array.isArray(c) && c.length > 0, a =
|
|
11623
|
+
}, us = (e) => !!e?.data && "results" in e.data, T3 = (e, t = !0) => {
|
|
11624
|
+
const c = nt((C) => C.contact.filters), s = Array.isArray(c) && c.length > 0, a = Zt((C) => C[U.CONTACT]), o = (a.field || a.custom_field_id) && a.order ? {
|
|
11604
11625
|
...a,
|
|
11605
11626
|
by: a.field ? "native" : "cf"
|
|
11606
|
-
} : null, r =
|
|
11627
|
+
} : null, r = zt({
|
|
11607
11628
|
queryKey: [fe.CONTACTS_WITH_FILTERS, c, a, e?.text],
|
|
11608
|
-
queryFn: ({ pageParam: C }) =>
|
|
11629
|
+
queryFn: ({ pageParam: C }) => Ds({ filters: c, sort: o, page_size: 20, page_number: C, ...e?.text ? { text: e.text } : {} }),
|
|
11609
11630
|
getNextPageParam: k3,
|
|
11610
11631
|
initialPageParam: 1,
|
|
11611
11632
|
enabled: t && s,
|
|
11612
11633
|
refetchOnMount: !0,
|
|
11613
11634
|
gcTime: 0
|
|
11614
|
-
}), l = a.custom_field_id ? `cf:${a.custom_field_id}` : a.field, i = a.order ?? void 0, m =
|
|
11635
|
+
}), l = a.custom_field_id ? `cf:${a.custom_field_id}` : a.field, i = a.order ?? void 0, m = zt({
|
|
11615
11636
|
queryKey: [fe.CONTACTS, e, a],
|
|
11616
|
-
queryFn: ({ pageParam: C }) =>
|
|
11637
|
+
queryFn: ({ pageParam: C }) => Xt({ ...e, page_number: C, sort: l, order: i }),
|
|
11617
11638
|
getNextPageParam: S3,
|
|
11618
11639
|
initialPageParam: 1,
|
|
11619
11640
|
enabled: t && !s,
|
|
11620
11641
|
refetchOnMount: !0,
|
|
11621
11642
|
gcTime: 0
|
|
11622
|
-
}), { data: u, ...h } = s ? r : m, p = u?.pages.flatMap((C) =>
|
|
11643
|
+
}), { data: u, ...h } = s ? r : m, p = u?.pages.flatMap((C) => us(C) ? C.data.results ?? [] : C?.data?.contacts ?? []) ?? [], g = u?.pages[0], b = us(g) ? g?.data?.total_results ?? 0 : g?.data?.total ?? 0;
|
|
11623
11644
|
return {
|
|
11624
11645
|
contacts: p,
|
|
11625
11646
|
total: b,
|
|
11626
11647
|
...h
|
|
11627
11648
|
};
|
|
11628
|
-
}, _3 =
|
|
11649
|
+
}, _3 = pn((e) => /* @__PURE__ */ n(Ka, { field: e })), M3 = pn(() => /* @__PURE__ */ n(Pe, {})), I3 = {
|
|
11629
11650
|
id: "phoneCall",
|
|
11630
11651
|
field: "phoneCallDisplay",
|
|
11631
11652
|
label: "",
|
|
@@ -11658,22 +11679,22 @@ function O3() {
|
|
|
11658
11679
|
voiceEnabled: C && v,
|
|
11659
11680
|
smsEnabled: f
|
|
11660
11681
|
}), { data: y = [], refetch: w } = Ya({ entity_type: U.CONTACT, defaultColumns: pa }), E = async (B) => {
|
|
11661
|
-
const
|
|
11662
|
-
await
|
|
11682
|
+
const Q = B.map((re) => qa(re.id, re.visible ?? !1));
|
|
11683
|
+
await Qa({ entity_type: U.CONTACT, visible_items: Q }) && w();
|
|
11663
11684
|
}, {
|
|
11664
11685
|
preferences: A,
|
|
11665
11686
|
togglePreference: N,
|
|
11666
11687
|
reorderPreferences: S,
|
|
11667
11688
|
setAllVisible: M
|
|
11668
11689
|
} = to({ items: y, savePreferences: E }), k = r || A.length === 0, V = j(() => {
|
|
11669
|
-
let B = A.filter((
|
|
11690
|
+
let B = A.filter((Q) => Q?.visible);
|
|
11670
11691
|
if (x) {
|
|
11671
|
-
const
|
|
11672
|
-
|
|
11692
|
+
const Q = B.findIndex((ye) => ye.id === "phone");
|
|
11693
|
+
Q !== -1 && (B = [...B], B.splice(Q + 1, 0, I3));
|
|
11673
11694
|
}
|
|
11674
|
-
return B.map((
|
|
11675
|
-
...
|
|
11676
|
-
label: /* @__PURE__ */ n(Wa, { title:
|
|
11695
|
+
return B.map((Q) => Q.id === "phoneCall" ? Q : {
|
|
11696
|
+
...Q,
|
|
11697
|
+
label: /* @__PURE__ */ n(Wa, { title: Q.label, entityType: U.CONTACT, field: Q.sortId || Q.id, isCF: !Q.locked })
|
|
11677
11698
|
});
|
|
11678
11699
|
}, [A, x]), { columns: L, containerRef: O } = ra(V), T = te((B) => {
|
|
11679
11700
|
h(B), O(B);
|
|
@@ -11682,11 +11703,11 @@ function O3() {
|
|
|
11682
11703
|
return [];
|
|
11683
11704
|
const B = (re) => {
|
|
11684
11705
|
b?.onCompose?.(re);
|
|
11685
|
-
},
|
|
11706
|
+
}, Q = a.map((re) => ({
|
|
11686
11707
|
...re,
|
|
11687
|
-
nameDisplay: /* @__PURE__ */ n(
|
|
11688
|
-
emailDisplay: /* @__PURE__ */ n(
|
|
11689
|
-
phoneDisplay: /* @__PURE__ */ n(
|
|
11708
|
+
nameDisplay: /* @__PURE__ */ n(gc, { name: re.name, channelType: re.channel_type }),
|
|
11709
|
+
emailDisplay: /* @__PURE__ */ n(Cc, { email: re.email, onCompose: B }),
|
|
11710
|
+
phoneDisplay: /* @__PURE__ */ n(vc, { phone: Ee(re.phone_number) }),
|
|
11690
11711
|
...x && { phoneCallDisplay: /* @__PURE__ */ n(co, { phone: re.phone_number, contactId: re.id, contactName: re.name, accountId: re.company?.id }) },
|
|
11691
11712
|
accountDisplay: /* @__PURE__ */ n(L3, { account: Ee(re.company?.name) }),
|
|
11692
11713
|
isNoDataRow: !1,
|
|
@@ -11709,16 +11730,16 @@ function O3() {
|
|
|
11709
11730
|
// Make them non-clickable
|
|
11710
11731
|
...M3(ye)
|
|
11711
11732
|
}));
|
|
11712
|
-
return [...
|
|
11733
|
+
return [...Q, ...re];
|
|
11713
11734
|
}
|
|
11714
|
-
return
|
|
11735
|
+
return Q;
|
|
11715
11736
|
}, [a, k, i, m, b, x, p]), ee = () => {
|
|
11716
11737
|
t(!1), l();
|
|
11717
11738
|
}, he = nt((B) => B.contact.filters.length > 0) || !!c, pe = !k && !z?.length, Me = (B) => {
|
|
11718
|
-
const
|
|
11719
|
-
|
|
11739
|
+
const Q = B.data;
|
|
11740
|
+
Q.isNoDataRow || (b?.sendGainsightEvent?.(ne.CONTACT_ROW_CLICKED), g(`/contacts/${Q.id}`));
|
|
11720
11741
|
}, Y = () => k && !V.length ? /* @__PURE__ */ n("div", { className: "cm:flex cm:items-center cm:justify-center cm:w-full cm:h-full", children: /* @__PURE__ */ n(we, {}) }) : pe ? /* @__PURE__ */ n("div", { className: "cm-listing-empty cm:px-12 cm:flex cm:flex-col cm:flex-1", children: /* @__PURE__ */ n(
|
|
11721
|
-
|
|
11742
|
+
Xe,
|
|
11722
11743
|
{
|
|
11723
11744
|
title: he ? "No contacts found" : "No contacts yet",
|
|
11724
11745
|
iconContent: Ue.hiverBee2,
|
|
@@ -11778,7 +11799,7 @@ function O3() {
|
|
|
11778
11799
|
Y()
|
|
11779
11800
|
] }),
|
|
11780
11801
|
/* @__PURE__ */ n(
|
|
11781
|
-
|
|
11802
|
+
mn,
|
|
11782
11803
|
{
|
|
11783
11804
|
open: e,
|
|
11784
11805
|
onClose: () => t(!1),
|
|
@@ -11825,7 +11846,7 @@ const D3 = () => {
|
|
|
11825
11846
|
}, [c]), l = j(() => c?.results ? c.results.map((m) => Qs(m)).filter((m) => m !== null) : [], [c]), i = j(() => {
|
|
11826
11847
|
if (!r) return [];
|
|
11827
11848
|
const m = l[0], u = m?.size || "default", h = m?.type || "email";
|
|
11828
|
-
return Array.from({ length: 3 }, (p, g) => /* @__PURE__ */ n("div", { "data-conversation-shimmer": !0, children: /* @__PURE__ */ n(
|
|
11849
|
+
return Array.from({ length: 3 }, (p, g) => /* @__PURE__ */ n("div", { "data-conversation-shimmer": !0, children: /* @__PURE__ */ n(sn, { size: u, type: h }) }, `shimmer-${g}`));
|
|
11829
11850
|
}, [r, l]);
|
|
11830
11851
|
return ec({
|
|
11831
11852
|
wrapperRef: t,
|
|
@@ -11854,7 +11875,7 @@ const D3 = () => {
|
|
|
11854
11875
|
style: { maxHeight: "calc(var(--cm-container-height, 100vh) - 220px)" },
|
|
11855
11876
|
children: [
|
|
11856
11877
|
l.map((m) => /* @__PURE__ */ n(
|
|
11857
|
-
|
|
11878
|
+
cn,
|
|
11858
11879
|
{
|
|
11859
11880
|
...m
|
|
11860
11881
|
},
|
|
@@ -11901,7 +11922,7 @@ const D3 = () => {
|
|
|
11901
11922
|
method: "POST",
|
|
11902
11923
|
data: s
|
|
11903
11924
|
})).data.data[0];
|
|
11904
|
-
},
|
|
11925
|
+
}, bc = ({ entity_type: e, entity_ids: t, enabled: c }) => Ne({
|
|
11905
11926
|
queryKey: [fe.ENTITY_SUMMARY, e, t],
|
|
11906
11927
|
queryFn: () => P3({ entity_type: e, entity_ids: t }),
|
|
11907
11928
|
enabled: c
|
|
@@ -11915,7 +11936,7 @@ const D3 = () => {
|
|
|
11915
11936
|
CHIP: "field_input"
|
|
11916
11937
|
}, R3 = (e) => /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:relative cm:shrink-0 cm:w-full", children: [
|
|
11917
11938
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:gap-2 cm:items-center cm:relative cm:shrink-0 cm:w-[100px]", children: [
|
|
11918
|
-
/* @__PURE__ */ n("div", { className: "cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5 cm:flex cm:items-center cm:justify-center", children: /* @__PURE__ */ n(
|
|
11939
|
+
/* @__PURE__ */ n("div", { className: "cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5 cm:flex cm:items-center cm:justify-center", children: /* @__PURE__ */ n(q, { name: B3[e.type ?? W.TEXT], size: 14, color: "#64758B" }) }),
|
|
11919
11940
|
/* @__PURE__ */ n(
|
|
11920
11941
|
"p",
|
|
11921
11942
|
{
|
|
@@ -11927,7 +11948,7 @@ const D3 = () => {
|
|
|
11927
11948
|
] }),
|
|
11928
11949
|
/* @__PURE__ */ n("div", { className: "cm:flex-1 cm:flex cm:gap-2 cm:h-full cm:items-center cm:min-w-0 cm:px-1 cm:py-0 cm:relative cm:shrink-0", children: /* @__PURE__ */ n("p", { className: "cm:font-medium cm:leading-5 cm:text-sm cm:text-slate-text-title cm:min-w-0 cm:truncate", children: Ga(e) }) })
|
|
11929
11950
|
] }), H3 = "cm:gap-5", oo = ({ entityType: e, entityId: t }) => {
|
|
11930
|
-
const [c, s] = _(!0), { data: a } =
|
|
11951
|
+
const [c, s] = _(!0), { data: a } = bc({ entity_type: e, entity_ids: [t], enabled: !!t }), o = a?.custom_fields ?? [], r = () => s((l) => !l);
|
|
11931
11952
|
return o.length === 0 ? null : /* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:gap-5 cm:items-stretch cm:relative cm:min-h-0 cm:w-full cm:border-t cm:border-slate-border-mild cm:pt-5", children: [
|
|
11932
11953
|
/* @__PURE__ */ d(
|
|
11933
11954
|
"button",
|
|
@@ -11938,7 +11959,7 @@ const D3 = () => {
|
|
|
11938
11959
|
className: "cm:flex cm:gap-2 cm:items-center cm:relative cm:shrink-0 cm:w-full cm:bg-transparent cm:border-0 cm:p-0 cm:cursor-pointer cm:text-left",
|
|
11939
11960
|
children: [
|
|
11940
11961
|
/* @__PURE__ */ n(
|
|
11941
|
-
|
|
11962
|
+
nn,
|
|
11942
11963
|
{
|
|
11943
11964
|
name: c ? "chevron-down" : "chevron-right",
|
|
11944
11965
|
size: 12,
|
|
@@ -11958,10 +11979,10 @@ const D3 = () => {
|
|
|
11958
11979
|
l.cf_id
|
|
11959
11980
|
)) })
|
|
11960
11981
|
] });
|
|
11961
|
-
},
|
|
11962
|
-
/* @__PURE__ */ d("div", { className: `cm:flex cm:gap-2 cm:items-center cm:relative cm:shrink-0 ${
|
|
11982
|
+
}, hs = "cm:w-[100px]", kn = ({ icon: e, label: t, value: c }) => /* @__PURE__ */ n("div", { className: "cm:flex cm:flex-col cm:items-start cm:relative cm:shrink-1 cm:w-full", children: /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:relative cm:shrink-0 cm:w-full", children: [
|
|
11983
|
+
/* @__PURE__ */ d("div", { className: `cm:flex cm:gap-2 cm:items-center cm:relative cm:shrink-0 ${hs}`, children: [
|
|
11963
11984
|
/* @__PURE__ */ n("div", { className: "cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5 cm:flex cm:items-center cm:justify-center", children: e }),
|
|
11964
|
-
/* @__PURE__ */ n("p", { className: `cm:font-normal cm:leading-5 cm:text-sm cm:text-slate-text-subtle ${
|
|
11985
|
+
/* @__PURE__ */ n("p", { className: `cm:font-normal cm:leading-5 cm:text-sm cm:text-slate-text-subtle ${hs}`, children: t })
|
|
11965
11986
|
] }),
|
|
11966
11987
|
/* @__PURE__ */ n("div", { className: "cm:flex-1 cm:flex cm:gap-2 cm:h-full cm:items-center cm:min-w-0 cm:px-1 cm:py-0 cm:relative cm:shrink-0", children: /* @__PURE__ */ n("div", { className: "cm:font-medium cm:leading-5 cm:text-sm cm:text-slate-text-title cm:min-w-0 cm:max-w-full", children: c }) })
|
|
11967
11988
|
] }) }), j3 = () => {
|
|
@@ -11984,25 +12005,25 @@ const D3 = () => {
|
|
|
11984
12005
|
" not found"
|
|
11985
12006
|
] }) }) : !e || !a ? null : /* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:gap-[20px] cm:items-stretch cm:relative cm:min-h-0 cm:w-full", children: [
|
|
11986
12007
|
a && /* @__PURE__ */ n("div", { className: "cm:flex cm:gap-3 cm:items-center cm:relative cm:w-full", children: /* @__PURE__ */ n(
|
|
11987
|
-
|
|
12008
|
+
kn,
|
|
11988
12009
|
{
|
|
11989
|
-
icon: /* @__PURE__ */ n(
|
|
12010
|
+
icon: /* @__PURE__ */ n(q, { name: "accounts", size: 14, color: "#64758B" }),
|
|
11990
12011
|
label: ae,
|
|
11991
12012
|
value: a.generated_name || a.name || "-"
|
|
11992
12013
|
}
|
|
11993
12014
|
) }),
|
|
11994
12015
|
/* @__PURE__ */ n(
|
|
11995
|
-
|
|
12016
|
+
kn,
|
|
11996
12017
|
{
|
|
11997
|
-
icon: /* @__PURE__ */ n(
|
|
12018
|
+
icon: /* @__PURE__ */ n(q, { name: "domain", size: 14, color: "#64758B" }),
|
|
11998
12019
|
label: "Domain",
|
|
11999
|
-
value: s ? /* @__PURE__ */ n(
|
|
12020
|
+
value: s ? /* @__PURE__ */ n(Xa, { values: u, maxVisible: 1 }) : m
|
|
12000
12021
|
}
|
|
12001
12022
|
),
|
|
12002
12023
|
/* @__PURE__ */ n(
|
|
12003
|
-
|
|
12024
|
+
kn,
|
|
12004
12025
|
{
|
|
12005
|
-
icon: /* @__PURE__ */ n(
|
|
12026
|
+
icon: /* @__PURE__ */ n(q, { name: "contacts", size: 14, color: "#64758B" }),
|
|
12006
12027
|
label: "Contacts",
|
|
12007
12028
|
value: i
|
|
12008
12029
|
}
|
|
@@ -12010,7 +12031,7 @@ const D3 = () => {
|
|
|
12010
12031
|
/* @__PURE__ */ n(oo, { entityType: "company", entityId: a.id })
|
|
12011
12032
|
] });
|
|
12012
12033
|
}, ro = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_960_6836)'%3e%3cg%20clip-path='url(%23clip1_960_6836)'%3e%3cpath%20d='M1.67773%2010.5663C1.70453%2010.3251%201.71793%2010.2045%201.75442%2010.0918C1.7868%209.99178%201.83254%209.89664%201.89041%209.80885C1.95564%209.70992%202.04144%209.62417%202.21305%209.45255L9.91672%201.74887C10.5611%201.10454%2011.6057%201.10454%2012.2501%201.74887C12.8944%202.39321%2012.8944%203.43788%2012.2501%204.08221L4.54638%2011.7859C4.37477%2011.9575%204.28897%2012.0432%204.19006%2012.1085C4.1023%2012.1664%204.00713%2012.2121%203.90712%2012.2445C3.79439%2012.281%203.67379%2012.2944%203.43259%2012.3212L1.45837%2012.5405L1.67773%2010.5663Z'%20stroke='%23334155'%20stroke-width='1.1'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_960_6836'%3e%3crect%20width='14'%20height='14'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_960_6836'%3e%3crect%20width='14'%20height='14'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", V3 = () => {
|
|
12013
|
-
const [e, t] = _(!1), { accountId: c } = He(), s = c ? parseInt(c, 10) : void 0, a = ot(), { summaries: o, fetchCompanySummary: r } = be(), l = j(() => c ? o[parseInt(c, 10)] : void 0, [c, o]), i = _e(), m = me(se.CUSTOM_FIELDS_ENABLED), { data: u, isLoading: h } =
|
|
12034
|
+
const [e, t] = _(!1), { accountId: c } = He(), s = c ? parseInt(c, 10) : void 0, a = ot(), { summaries: o, fetchCompanySummary: r } = be(), l = j(() => c ? o[parseInt(c, 10)] : void 0, [c, o]), i = _e(), m = me(se.CUSTOM_FIELDS_ENABLED), { data: u, isLoading: h } = bc({ entity_type: U.COMPANY, entity_ids: [s], enabled: m && !!s }), p = j(() => {
|
|
12014
12035
|
if (!l) return {};
|
|
12015
12036
|
const b = {
|
|
12016
12037
|
name: l.generated_name,
|
|
@@ -12039,7 +12060,7 @@ const D3 = () => {
|
|
|
12039
12060
|
}
|
|
12040
12061
|
) }),
|
|
12041
12062
|
/* @__PURE__ */ n(
|
|
12042
|
-
|
|
12063
|
+
mn,
|
|
12043
12064
|
{
|
|
12044
12065
|
open: e,
|
|
12045
12066
|
onClose: () => t(!1),
|
|
@@ -12051,7 +12072,7 @@ const D3 = () => {
|
|
|
12051
12072
|
s
|
|
12052
12073
|
)
|
|
12053
12074
|
] });
|
|
12054
|
-
},
|
|
12075
|
+
}, Tn = () => /* @__PURE__ */ n("div", { className: "cm:h-4 cm:bg-gray-200 cm:rounded cm:w-3/4 cm:animate-pulse" }), U3 = () => {
|
|
12055
12076
|
const { fetchContacts: e, fetchNextPage: t, data: c, isLoading: s } = Ce(), a = R(null), [o, r] = _(!0), { accountId: l } = He(), i = Re(), { search: m } = st(), { callbacks: u } = P();
|
|
12056
12077
|
F(() => {
|
|
12057
12078
|
if (l) {
|
|
@@ -12078,7 +12099,7 @@ const D3 = () => {
|
|
|
12078
12099
|
}, v = h.map((x) => ({
|
|
12079
12100
|
...x,
|
|
12080
12101
|
nameDisplay: /* @__PURE__ */ n(
|
|
12081
|
-
|
|
12102
|
+
gc,
|
|
12082
12103
|
{
|
|
12083
12104
|
name: x.name,
|
|
12084
12105
|
channelType: x.channel_type,
|
|
@@ -12088,7 +12109,7 @@ const D3 = () => {
|
|
|
12088
12109
|
}
|
|
12089
12110
|
),
|
|
12090
12111
|
emailDisplay: /* @__PURE__ */ n(
|
|
12091
|
-
|
|
12112
|
+
Cc,
|
|
12092
12113
|
{
|
|
12093
12114
|
email: x.email,
|
|
12094
12115
|
onCompose: f,
|
|
@@ -12097,7 +12118,7 @@ const D3 = () => {
|
|
|
12097
12118
|
}
|
|
12098
12119
|
),
|
|
12099
12120
|
phoneDisplay: /* @__PURE__ */ n(
|
|
12100
|
-
|
|
12121
|
+
vc,
|
|
12101
12122
|
{
|
|
12102
12123
|
phone: x.phone_number || "",
|
|
12103
12124
|
className: "cm:font-medium cm:text-slate-text-body",
|
|
@@ -12112,9 +12133,9 @@ const D3 = () => {
|
|
|
12112
12133
|
name: "",
|
|
12113
12134
|
email: "",
|
|
12114
12135
|
phone_number: "",
|
|
12115
|
-
nameDisplay: /* @__PURE__ */ n(
|
|
12116
|
-
emailDisplay: /* @__PURE__ */ n(
|
|
12117
|
-
phoneDisplay: /* @__PURE__ */ n(
|
|
12136
|
+
nameDisplay: /* @__PURE__ */ n(Tn, {}),
|
|
12137
|
+
emailDisplay: /* @__PURE__ */ n(Tn, {}),
|
|
12138
|
+
phoneDisplay: /* @__PURE__ */ n(Tn, {}),
|
|
12118
12139
|
isShimmerRow: !0,
|
|
12119
12140
|
isNoDataRow: !0
|
|
12120
12141
|
// Make them non-clickable
|
|
@@ -12123,7 +12144,7 @@ const D3 = () => {
|
|
|
12123
12144
|
}
|
|
12124
12145
|
return v;
|
|
12125
12146
|
}, [h, u, p, s, c]);
|
|
12126
|
-
|
|
12147
|
+
sc({
|
|
12127
12148
|
wrapperRef: a,
|
|
12128
12149
|
tableData: g,
|
|
12129
12150
|
isLoading: s,
|
|
@@ -12253,7 +12274,7 @@ const D3 = () => {
|
|
|
12253
12274
|
], l = r.map((m, u) => ({
|
|
12254
12275
|
label: /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-2", children: [
|
|
12255
12276
|
/* @__PURE__ */ n(
|
|
12256
|
-
|
|
12277
|
+
q,
|
|
12257
12278
|
{
|
|
12258
12279
|
name: m.icon,
|
|
12259
12280
|
size: 14,
|
|
@@ -12284,7 +12305,7 @@ const D3 = () => {
|
|
|
12284
12305
|
{
|
|
12285
12306
|
id: "cm-account-details-sidepanel",
|
|
12286
12307
|
header: /* @__PURE__ */ d("div", { className: "cm:flex cm:gap-2 cm:items-center cm:justify-start cm:px-0 cm:rounded-[6px] cm:shrink-0 cm:w-full", children: [
|
|
12287
|
-
/* @__PURE__ */ n("div", { className: "cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5", children: /* @__PURE__ */ n(
|
|
12308
|
+
/* @__PURE__ */ n("div", { className: "cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5", children: /* @__PURE__ */ n(cc, { entity: U.COMPANY, size: 14 }) }),
|
|
12288
12309
|
/* @__PURE__ */ d("p", { className: "cm:font-medium cm:leading-5 cm:text-sm cm:text-slate-text-body cm:whitespace-nowrap", children: [
|
|
12289
12310
|
ae,
|
|
12290
12311
|
" details"
|
|
@@ -12295,7 +12316,7 @@ const D3 = () => {
|
|
|
12295
12316
|
}
|
|
12296
12317
|
),
|
|
12297
12318
|
/* @__PURE__ */ d(so, { children: [
|
|
12298
|
-
/* @__PURE__ */ n(
|
|
12319
|
+
/* @__PURE__ */ n(tn, { value: a, onTabChange: i, items: l }),
|
|
12299
12320
|
r[a]?.render()
|
|
12300
12321
|
] })
|
|
12301
12322
|
] });
|
|
@@ -12320,11 +12341,11 @@ const D3 = () => {
|
|
|
12320
12341
|
}, [c]), i = j(() => {
|
|
12321
12342
|
if (!c?.results) return [];
|
|
12322
12343
|
const u = r?.name;
|
|
12323
|
-
return c.results.map((h) =>
|
|
12344
|
+
return c.results.map((h) => Xs(h, u)).filter((h) => h !== null);
|
|
12324
12345
|
}, [c, r]), m = j(() => {
|
|
12325
12346
|
if (!l) return [];
|
|
12326
12347
|
const u = i[0], h = u?.size || "default", p = u?.type || "email";
|
|
12327
|
-
return Array.from({ length: 3 }, (g, b) => /* @__PURE__ */ n("div", { "data-conversation-shimmer": !0, children: /* @__PURE__ */ n(
|
|
12348
|
+
return Array.from({ length: 3 }, (g, b) => /* @__PURE__ */ n("div", { "data-conversation-shimmer": !0, children: /* @__PURE__ */ n(sn, { size: h, type: p }) }, `shimmer-${b}`));
|
|
12328
12349
|
}, [l, i]);
|
|
12329
12350
|
return ec({
|
|
12330
12351
|
wrapperRef: t,
|
|
@@ -12353,7 +12374,7 @@ const D3 = () => {
|
|
|
12353
12374
|
style: { maxHeight: "calc(var(--cm-container-height, 100vh) - 220px)" },
|
|
12354
12375
|
children: [
|
|
12355
12376
|
i.map((u) => /* @__PURE__ */ n(
|
|
12356
|
-
|
|
12377
|
+
cn,
|
|
12357
12378
|
{
|
|
12358
12379
|
...u
|
|
12359
12380
|
},
|
|
@@ -12363,7 +12384,7 @@ const D3 = () => {
|
|
|
12363
12384
|
]
|
|
12364
12385
|
}
|
|
12365
12386
|
);
|
|
12366
|
-
},
|
|
12387
|
+
}, X3 = ({ contact: e, open: t = !1, onClose: c }) => {
|
|
12367
12388
|
const { updateContactSummary: s, updateContactInList: a, fetchContactSummary: o } = Ce(), r = P((S) => S.callbacks), l = P((S) => S.theme === "dark"), [i, m] = _(t), [u, h] = _({
|
|
12368
12389
|
name: e?.name || "",
|
|
12369
12390
|
email: e?.email || "",
|
|
@@ -12407,7 +12428,7 @@ const D3 = () => {
|
|
|
12407
12428
|
if (!(!y() || !e)) {
|
|
12408
12429
|
C(!0);
|
|
12409
12430
|
try {
|
|
12410
|
-
const S = await
|
|
12431
|
+
const S = await Ps(e.id, {
|
|
12411
12432
|
name: u.name.trim(),
|
|
12412
12433
|
phone_number: u.phone_number.trim()
|
|
12413
12434
|
}), M = S.data;
|
|
@@ -12540,7 +12561,7 @@ const D3 = () => {
|
|
|
12540
12561
|
}
|
|
12541
12562
|
` }),
|
|
12542
12563
|
/* @__PURE__ */ n(
|
|
12543
|
-
|
|
12564
|
+
bs,
|
|
12544
12565
|
{
|
|
12545
12566
|
showBackButton: !1,
|
|
12546
12567
|
showCloseButton: !0,
|
|
@@ -12578,23 +12599,30 @@ const D3 = () => {
|
|
|
12578
12599
|
children: N()
|
|
12579
12600
|
}
|
|
12580
12601
|
),
|
|
12581
|
-
/* @__PURE__ */ n(
|
|
12602
|
+
/* @__PURE__ */ n(vs, { ref: f, position: "bottom-left" })
|
|
12582
12603
|
] });
|
|
12583
|
-
},
|
|
12604
|
+
}, Rt = ({
|
|
12584
12605
|
icon: e,
|
|
12585
12606
|
label: t,
|
|
12586
12607
|
value: c,
|
|
12587
12608
|
valueColor: s = "default",
|
|
12588
12609
|
onClick: a,
|
|
12589
|
-
showComposeIconOnHover: o = !1
|
|
12610
|
+
showComposeIconOnHover: o = !1,
|
|
12611
|
+
multiline: r = !1
|
|
12590
12612
|
}) => {
|
|
12591
|
-
const [
|
|
12592
|
-
return /* @__PURE__ */
|
|
12613
|
+
const [l, i] = _(!1);
|
|
12614
|
+
return r ? /* @__PURE__ */ d("div", { className: "cm:flex cm:items-start cm:relative cm:shrink-0 cm:w-full", children: [
|
|
12615
|
+
/* @__PURE__ */ d("div", { className: "cm:flex cm:gap-2 cm:items-center cm:relative cm:shrink-0 cm:w-[90px]", children: [
|
|
12616
|
+
/* @__PURE__ */ n("div", { className: "cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5 cm:flex cm:items-center cm:justify-center", children: e }),
|
|
12617
|
+
/* @__PURE__ */ n("p", { className: "cm:font-normal cm:leading-5 cm:text-sm cm:text-left cm:text-slate-text-subtle cm:w-[90px]", children: t })
|
|
12618
|
+
] }),
|
|
12619
|
+
/* @__PURE__ */ n("p", { className: "cm:flex-1 cm:min-w-0 cm:px-1 cm:font-medium cm:leading-5 cm:text-sm cm:text-slate-text-title cm:whitespace-pre-wrap cm:break-words", children: c })
|
|
12620
|
+
] }) : /* @__PURE__ */ n(
|
|
12593
12621
|
"div",
|
|
12594
12622
|
{
|
|
12595
12623
|
className: "cm:flex cm:flex-col cm:items-start cm:relative cm:shrink-0 cm:w-full",
|
|
12596
|
-
onMouseEnter: () =>
|
|
12597
|
-
onMouseLeave: () =>
|
|
12624
|
+
onMouseEnter: () => i(!0),
|
|
12625
|
+
onMouseLeave: () => i(!1),
|
|
12598
12626
|
children: /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:relative cm:shrink-0 cm:w-full", children: [
|
|
12599
12627
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:gap-2 cm:items-center cm:relative cm:shrink-0 cm:w-[90px]", children: [
|
|
12600
12628
|
/* @__PURE__ */ n("div", { className: "cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5 cm:flex cm:items-center cm:justify-center", children: e }),
|
|
@@ -12609,22 +12637,22 @@ const D3 = () => {
|
|
|
12609
12637
|
children: /* @__PURE__ */ n("p", { onClick: a, children: c })
|
|
12610
12638
|
}
|
|
12611
12639
|
),
|
|
12612
|
-
o &&
|
|
12640
|
+
o && l && a && /* @__PURE__ */ n(
|
|
12613
12641
|
"button",
|
|
12614
12642
|
{
|
|
12615
|
-
onClick: (
|
|
12616
|
-
|
|
12643
|
+
onClick: (m) => {
|
|
12644
|
+
m.stopPropagation(), a();
|
|
12617
12645
|
},
|
|
12618
12646
|
className: "cm:flex cm:items-center cm:justify-center cm:shrink-0 cm:cursor-pointer",
|
|
12619
12647
|
"aria-label": "Compose email",
|
|
12620
|
-
children: /* @__PURE__ */ n(
|
|
12648
|
+
children: /* @__PURE__ */ n(q, { name: "compose_mail", size: 14, color: "#64758B" })
|
|
12621
12649
|
}
|
|
12622
12650
|
)
|
|
12623
12651
|
] })
|
|
12624
12652
|
] })
|
|
12625
12653
|
}
|
|
12626
12654
|
);
|
|
12627
|
-
},
|
|
12655
|
+
}, Q3 = ({ isHovered: e = !1 }) => {
|
|
12628
12656
|
const {
|
|
12629
12657
|
fetchContactSummary: t,
|
|
12630
12658
|
summaries: c
|
|
@@ -12648,7 +12676,7 @@ const D3 = () => {
|
|
|
12648
12676
|
return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("p", { className: "cm:text-sm cm:text-slate-text-subtle", children: "Contact not found" }) });
|
|
12649
12677
|
if (!r || !l)
|
|
12650
12678
|
return null;
|
|
12651
|
-
const p =
|
|
12679
|
+
const p = js(l.name, l.channel_type);
|
|
12652
12680
|
return /* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:gap-[20px] cm:items-stretch cm:relative cm:min-h-0 cm:w-full", children: [
|
|
12653
12681
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:justify-between cm:px-0 cm:rounded-[6px] cm:shrink-0", children: [
|
|
12654
12682
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:gap-3 cm:items-center cm:relative cm:w-full", children: [
|
|
@@ -12663,20 +12691,20 @@ const D3 = () => {
|
|
|
12663
12691
|
),
|
|
12664
12692
|
/* @__PURE__ */ n("p", { className: "cm:font-medium cm:leading-5 cm:text-sm cm:text-slate-text-title cm:whitespace-nowrap", children: p })
|
|
12665
12693
|
] }),
|
|
12666
|
-
!s && e && /* @__PURE__ */ n(
|
|
12694
|
+
!s && e && /* @__PURE__ */ n(X3, { contact: l })
|
|
12667
12695
|
] }),
|
|
12668
12696
|
u && /* @__PURE__ */ n(
|
|
12669
|
-
|
|
12697
|
+
Rt,
|
|
12670
12698
|
{
|
|
12671
|
-
icon: /* @__PURE__ */ n(
|
|
12699
|
+
icon: /* @__PURE__ */ n(q, { name: "accounts", size: 14, color: "#64758B" }),
|
|
12672
12700
|
label: ae,
|
|
12673
12701
|
value: u.generated_name || u.name || "-"
|
|
12674
12702
|
}
|
|
12675
12703
|
),
|
|
12676
12704
|
/* @__PURE__ */ n(
|
|
12677
|
-
|
|
12705
|
+
Rt,
|
|
12678
12706
|
{
|
|
12679
|
-
icon: /* @__PURE__ */ n(
|
|
12707
|
+
icon: /* @__PURE__ */ n(q, { name: "at_the_rate", size: 14, color: "#64758B" }),
|
|
12680
12708
|
label: "Email",
|
|
12681
12709
|
value: l.email || "-",
|
|
12682
12710
|
valueColor: l.email && o ? "primary" : "default",
|
|
@@ -12685,23 +12713,33 @@ const D3 = () => {
|
|
|
12685
12713
|
}
|
|
12686
12714
|
),
|
|
12687
12715
|
/* @__PURE__ */ n(
|
|
12688
|
-
|
|
12716
|
+
Rt,
|
|
12689
12717
|
{
|
|
12690
|
-
icon: /* @__PURE__ */ n(
|
|
12718
|
+
icon: /* @__PURE__ */ n(q, { name: "phone", size: 14, color: "#64758B" }),
|
|
12691
12719
|
label: "Phone",
|
|
12692
12720
|
value: l.phone_number || "-"
|
|
12693
12721
|
}
|
|
12694
12722
|
),
|
|
12723
|
+
/* @__PURE__ */ n(
|
|
12724
|
+
Rt,
|
|
12725
|
+
{
|
|
12726
|
+
icon: /* @__PURE__ */ n(q, { name: "details", size: 14, color: "#64758B" }),
|
|
12727
|
+
label: "Note",
|
|
12728
|
+
value: l.notes?.trim() || "-",
|
|
12729
|
+
multiline: !0
|
|
12730
|
+
}
|
|
12731
|
+
),
|
|
12695
12732
|
/* @__PURE__ */ n(oo, { entityType: "contact", entityId: l.id })
|
|
12696
12733
|
] });
|
|
12697
12734
|
}, q3 = () => {
|
|
12698
|
-
const [e, t] = _(!1), { contactId: c } = He(), s = c ? parseInt(c, 10) : void 0, a = ot(), { summaries: o, fetchContactSummary: r } = Ce(), l = c ? o[parseInt(c, 10)] : void 0, i = _e(), m = me(se.CUSTOM_FIELDS_ENABLED), { data: u, isLoading: h } =
|
|
12735
|
+
const [e, t] = _(!1), { contactId: c } = He(), s = c ? parseInt(c, 10) : void 0, a = ot(), { summaries: o, fetchContactSummary: r } = Ce(), l = c ? o[parseInt(c, 10)] : void 0, i = _e(), m = me(se.CUSTOM_FIELDS_ENABLED), { data: u, isLoading: h } = bc({ entity_type: U.CONTACT, entity_ids: [s], enabled: m && !!s }), p = j(() => {
|
|
12699
12736
|
if (!l) return {};
|
|
12700
12737
|
const b = {
|
|
12701
12738
|
name: l.name,
|
|
12702
12739
|
email: l.email,
|
|
12703
12740
|
phone_number: Je(l.phone_number || "")
|
|
12704
12741
|
};
|
|
12742
|
+
b.notes = l.notes ?? "";
|
|
12705
12743
|
for (const C of u?.custom_fields ?? [])
|
|
12706
12744
|
b[String(C.cf_id)] = C.type === W.DROPDOWN ? C.value_id : C.value;
|
|
12707
12745
|
return b;
|
|
@@ -12720,11 +12758,11 @@ const D3 = () => {
|
|
|
12720
12758
|
onClick: () => {
|
|
12721
12759
|
a?.sendGainsightEvent?.(ne.CONTACT_EDIT_USED), t(!0);
|
|
12722
12760
|
},
|
|
12723
|
-
children: /* @__PURE__ */ n(
|
|
12761
|
+
children: /* @__PURE__ */ n(q, { name: "edit", size: 14, color: "#334155" })
|
|
12724
12762
|
}
|
|
12725
12763
|
) }),
|
|
12726
12764
|
/* @__PURE__ */ n(
|
|
12727
|
-
|
|
12765
|
+
mn,
|
|
12728
12766
|
{
|
|
12729
12767
|
open: e,
|
|
12730
12768
|
onClose: () => t(!1),
|
|
@@ -12736,11 +12774,11 @@ const D3 = () => {
|
|
|
12736
12774
|
s
|
|
12737
12775
|
)
|
|
12738
12776
|
] });
|
|
12739
|
-
},
|
|
12777
|
+
}, ps = () => {
|
|
12740
12778
|
const [e, t] = _(0), c = [
|
|
12741
12779
|
{
|
|
12742
12780
|
label: /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-2", children: [
|
|
12743
|
-
/* @__PURE__ */ n(
|
|
12781
|
+
/* @__PURE__ */ n(q, { name: "message", size: 14, type: "active", color: "#0F172A" }),
|
|
12744
12782
|
"Conversations"
|
|
12745
12783
|
] }),
|
|
12746
12784
|
content: "",
|
|
@@ -12766,15 +12804,15 @@ const D3 = () => {
|
|
|
12766
12804
|
{
|
|
12767
12805
|
id: "cm-contact-details-sidepanel",
|
|
12768
12806
|
header: /* @__PURE__ */ d("div", { className: "cm:flex cm:gap-2 cm:h-8 cm:items-center cm:justify-start cm:px-0 cm:py-1 cm:rounded-[6px] cm:shrink-0 cm:w-full", children: [
|
|
12769
|
-
/* @__PURE__ */ n("div", { className: "cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5", children: /* @__PURE__ */ n(
|
|
12807
|
+
/* @__PURE__ */ n("div", { className: "cm:relative cm:shrink-0 cm:w-3.5 cm:h-3.5", children: /* @__PURE__ */ n(cc, { entity: U.CONTACT, size: 14 }) }),
|
|
12770
12808
|
/* @__PURE__ */ n("p", { className: "cm:font-medium cm:leading-5 cm:text-sm cm:text-slate-text-body cm:whitespace-nowrap", children: "Contact details" }),
|
|
12771
12809
|
/* @__PURE__ */ n(q3, {})
|
|
12772
12810
|
] }),
|
|
12773
|
-
children: /* @__PURE__ */ n(
|
|
12811
|
+
children: /* @__PURE__ */ n(Q3, {})
|
|
12774
12812
|
}
|
|
12775
12813
|
),
|
|
12776
12814
|
/* @__PURE__ */ d(so, { children: [
|
|
12777
|
-
/* @__PURE__ */ n(
|
|
12815
|
+
/* @__PURE__ */ n(tn, { value: e, onTabChange: s, items: c }),
|
|
12778
12816
|
e === 0 && /* @__PURE__ */ n(W3, {})
|
|
12779
12817
|
] })
|
|
12780
12818
|
] });
|
|
@@ -12808,10 +12846,10 @@ const D3 = () => {
|
|
|
12808
12846
|
}
|
|
12809
12847
|
});
|
|
12810
12848
|
}, K3 = ({ isEdit: e, isLoading: t, entityName: c, hasChanges: s, onSubmit: a, onCancel: o }) => {
|
|
12811
|
-
const { formData: r, hasChanged: l, hasError: i } =
|
|
12849
|
+
const { formData: r, hasChanged: l, hasError: i } = ic(), m = () => {
|
|
12812
12850
|
a(r);
|
|
12813
12851
|
}, u = e && !l && !s || i || t;
|
|
12814
|
-
return /* @__PURE__ */ d(
|
|
12852
|
+
return /* @__PURE__ */ d(rn, { children: [
|
|
12815
12853
|
/* @__PURE__ */ n(
|
|
12816
12854
|
mt,
|
|
12817
12855
|
{
|
|
@@ -12834,7 +12872,7 @@ const D3 = () => {
|
|
|
12834
12872
|
crmType: e,
|
|
12835
12873
|
entityType: t
|
|
12836
12874
|
});
|
|
12837
|
-
return !!(await
|
|
12875
|
+
return !!(await G.put(s, {
|
|
12838
12876
|
field_mappings: c
|
|
12839
12877
|
})).data;
|
|
12840
12878
|
}, $3 = ({ successMessage: e = "Mapping updated", onSuccess: t } = {}) => {
|
|
@@ -12918,7 +12956,7 @@ const D3 = () => {
|
|
|
12918
12956
|
itemTemplate: t6,
|
|
12919
12957
|
valueTemplate: n6
|
|
12920
12958
|
}
|
|
12921
|
-
),
|
|
12959
|
+
), Xn = (e) => {
|
|
12922
12960
|
switch (e) {
|
|
12923
12961
|
case W.TEXT:
|
|
12924
12962
|
return "Text";
|
|
@@ -12947,10 +12985,10 @@ const D3 = () => {
|
|
|
12947
12985
|
const s = (c[0] ?? "").toUpperCase();
|
|
12948
12986
|
return {
|
|
12949
12987
|
disabled: !0,
|
|
12950
|
-
disabledMessage: `'${
|
|
12988
|
+
disabledMessage: `'${Xn(s)}' is incompatible with '${Xn(t)}' - cannot be mapped`
|
|
12951
12989
|
};
|
|
12952
12990
|
}, a6 = ({ customField: e, fieldType: t, entityType: c, currentMapping: s, onAddMapping: a, onRemoveMapping: o }) => {
|
|
12953
|
-
const { crmProvider: r, connected: l, entityMappings: i } = lo({ customField: e, entityType: c }), { data: m } =
|
|
12991
|
+
const { crmProvider: r, connected: l, entityMappings: i } = lo({ customField: e, entityType: c }), { data: m } = pc(!!r), { crmFields: u } = Da({
|
|
12954
12992
|
open: !!r && !s,
|
|
12955
12993
|
entityType: c,
|
|
12956
12994
|
crmProvider: r
|
|
@@ -13004,7 +13042,7 @@ const D3 = () => {
|
|
|
13004
13042
|
dropdownHeight: "320px",
|
|
13005
13043
|
getItemTooltip: (C) => C.disabledMessage,
|
|
13006
13044
|
renderItem: (C, f) => /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-3 cm:px-4 cm:py-2.5", children: [
|
|
13007
|
-
/* @__PURE__ */ n(
|
|
13045
|
+
/* @__PURE__ */ n(dn, { type: (C.type ?? "").toLowerCase(), className: "cm:flex-shrink-0" }),
|
|
13008
13046
|
/* @__PURE__ */ d("div", { className: "cm:flex cm:flex-col cm:min-w-0", children: [
|
|
13009
13047
|
/* @__PURE__ */ n(
|
|
13010
13048
|
"span",
|
|
@@ -13054,7 +13092,7 @@ const D3 = () => {
|
|
|
13054
13092
|
label: "Name",
|
|
13055
13093
|
validations: { isRequired: !0, maxLength: 50 },
|
|
13056
13094
|
renderField: (m) => /* @__PURE__ */ n(
|
|
13057
|
-
|
|
13095
|
+
on,
|
|
13058
13096
|
{
|
|
13059
13097
|
placeholder: "Enter a name",
|
|
13060
13098
|
value: m.value,
|
|
@@ -13072,7 +13110,7 @@ const D3 = () => {
|
|
|
13072
13110
|
name: "description",
|
|
13073
13111
|
label: "Description",
|
|
13074
13112
|
renderField: (m) => /* @__PURE__ */ n(
|
|
13075
|
-
|
|
13113
|
+
tc,
|
|
13076
13114
|
{
|
|
13077
13115
|
placeholder: `Add a description for this ${e} field`,
|
|
13078
13116
|
value: m.value,
|
|
@@ -13091,7 +13129,7 @@ const D3 = () => {
|
|
|
13091
13129
|
label: "Field values",
|
|
13092
13130
|
validations: {
|
|
13093
13131
|
isRequired: !0,
|
|
13094
|
-
custom:
|
|
13132
|
+
custom: lc
|
|
13095
13133
|
},
|
|
13096
13134
|
checkDiff: r6,
|
|
13097
13135
|
renderField: (m) => {
|
|
@@ -13129,18 +13167,18 @@ const D3 = () => {
|
|
|
13129
13167
|
if (e.open)
|
|
13130
13168
|
return /* @__PURE__ */ n(m6, { ...e, delayedOpen: t });
|
|
13131
13169
|
}, m6 = ({ open: e, delayedOpen: t, customField: c, entityType: s, onClose: a, onSuccess: o }) => {
|
|
13132
|
-
const r = !!c, l =
|
|
13170
|
+
const r = !!c, l = ln(s), { actionMapping: i, currentMapping: m, updateMapping: u, onAddMapping: h, onRemoveMapping: p } = lo({ customField: c, entityType: s, onSuccess: o }), g = (w) => {
|
|
13133
13171
|
u(c || w);
|
|
13134
13172
|
}, { mutate: b, isPending: C } = Z3({
|
|
13135
13173
|
entityType: s,
|
|
13136
13174
|
cf_id: c?.cf_id,
|
|
13137
13175
|
onSuccess: g
|
|
13138
|
-
}), [f, v] = _(
|
|
13176
|
+
}), [f, v] = _(jc.type), x = j(() => c ? {
|
|
13139
13177
|
type: c.type,
|
|
13140
13178
|
display_name: c.display_name,
|
|
13141
13179
|
description: c.description,
|
|
13142
13180
|
dropdown_values: c.dropdown_values ?? []
|
|
13143
|
-
} : { ...
|
|
13181
|
+
} : { ...jc, type: f }, [c, f]), y = (w) => {
|
|
13144
13182
|
c?.cf_id ? b({
|
|
13145
13183
|
payload: {
|
|
13146
13184
|
...w,
|
|
@@ -13173,7 +13211,7 @@ const D3 = () => {
|
|
|
13173
13211
|
onClose: a
|
|
13174
13212
|
}
|
|
13175
13213
|
),
|
|
13176
|
-
/* @__PURE__ */ d(
|
|
13214
|
+
/* @__PURE__ */ d(mc, { initialData: x, children: [
|
|
13177
13215
|
/* @__PURE__ */ n(
|
|
13178
13216
|
l6,
|
|
13179
13217
|
{
|
|
@@ -13240,10 +13278,10 @@ const D3 = () => {
|
|
|
13240
13278
|
toggleFields: t
|
|
13241
13279
|
};
|
|
13242
13280
|
}, p6 = ({
|
|
13243
|
-
source: e =
|
|
13281
|
+
source: e = Hc.HIVER,
|
|
13244
13282
|
connectorId: t
|
|
13245
13283
|
}) => {
|
|
13246
|
-
const { data: c } =
|
|
13284
|
+
const { data: c } = pc(!!t), { data: s } = dt(!!t), a = t ? c?.filter(hc).find((l) => l.connectors.some((i) => i.id === t))?.type ?? s?.data.find((l) => l.ci_connector_id === t)?.crm_provider : void 0, o = a ? c?.find((l) => l.type === a) : void 0;
|
|
13247
13285
|
if (o?.logo)
|
|
13248
13286
|
return /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-2", children: [
|
|
13249
13287
|
/* @__PURE__ */ n(
|
|
@@ -13256,7 +13294,7 @@ const D3 = () => {
|
|
|
13256
13294
|
),
|
|
13257
13295
|
/* @__PURE__ */ n("span", { className: "cm:text-sm cm:text-slate-text-body", children: o.name })
|
|
13258
13296
|
] });
|
|
13259
|
-
const r = e ===
|
|
13297
|
+
const r = e === Hc.HIVER ? /* @__PURE__ */ n(nc, {}) : null;
|
|
13260
13298
|
return /* @__PURE__ */ d("div", { className: "cm:flex cm:items-center cm:gap-2", children: [
|
|
13261
13299
|
/* @__PURE__ */ n(
|
|
13262
13300
|
"div",
|
|
@@ -13268,24 +13306,24 @@ const D3 = () => {
|
|
|
13268
13306
|
/* @__PURE__ */ n("span", { className: "cm:text-sm cm:text-slate-text-body capitalize-first", children: e })
|
|
13269
13307
|
] });
|
|
13270
13308
|
}, f6 = ({ checked: e, disabled: t = !1, onClick: c }) => /* @__PURE__ */ n(
|
|
13271
|
-
|
|
13309
|
+
hn,
|
|
13272
13310
|
{
|
|
13273
13311
|
checked: e,
|
|
13274
13312
|
disabled: t,
|
|
13275
13313
|
size: 16,
|
|
13276
13314
|
onClick: c
|
|
13277
13315
|
}
|
|
13278
|
-
), g6 = ({ type: e }) => /* @__PURE__ */ n(ue, { text:
|
|
13316
|
+
), g6 = ({ type: e }) => /* @__PURE__ */ n(ue, { text: Xn(e), className: "cm:text-[#334155] cm:font-normal" }), C6 = ({ onClick: e }) => /* @__PURE__ */ n(ge, { content: "Edit", tooltipClassName: "cm:text-white cm:text-sm cm:font-medium cm:leading-5 cm:whitespace-nowrap", children: /* @__PURE__ */ n(
|
|
13279
13317
|
"button",
|
|
13280
13318
|
{
|
|
13281
13319
|
type: "button",
|
|
13282
13320
|
"aria-label": "Edit custom field",
|
|
13283
13321
|
onClick: e,
|
|
13284
13322
|
className: "cm-cf-edit-action cell-actions cm:w-7 cm:h-7 cm:p-0 cm:border cm:border-slate-border-light cm:rounded-md cm:bg-white cm:hover:bg-slate-surface-subtle-100 cm:flex cm:items-center cm:justify-center cm:cursor-pointer cm:transition-[background-color,border-color,box-shadow] cm:opacity-0",
|
|
13285
|
-
children: /* @__PURE__ */ n(
|
|
13323
|
+
children: /* @__PURE__ */ n(q, { name: "edit", size: 14, color: "#334155" })
|
|
13286
13324
|
}
|
|
13287
|
-
) }),
|
|
13288
|
-
const [t, c] = _(""), [s, a] = _(!1), [o, r] = _(), l = e === "company" ? ae : "Contact", i =
|
|
13325
|
+
) }), Ht = (e) => !("_no_actions" in e), v6 = (e) => !!e._crmLocked, b6 = ({ entity_type: e = "company" }) => {
|
|
13326
|
+
const [t, c] = _(""), [s, a] = _(!1), [o, r] = _(), l = e === "company" ? ae : "Contact", i = ln(e), { data: m, isLoading: u, isFetching: h, refetch: p, updateData: g } = ac({ entity_type: e }), { data: b } = dt(), C = b?.data, f = j(() => !Array.isArray(C) || !C.length ? void 0 : C.find((z) => e === U.COMPANY ? z.company_sync_enabled : z.contact_sync_enabled)?.ci_connector_id, [C, e]), v = (T) => {
|
|
13289
13327
|
g(T), p();
|
|
13290
13328
|
}, { mutate: x, isPending: y, toggleFields: w } = h6({
|
|
13291
13329
|
onSuccess: v
|
|
@@ -13319,11 +13357,11 @@ const D3 = () => {
|
|
|
13319
13357
|
fieldNameDisplay: /* @__PURE__ */ n(ue, { text: T.display_name, className: "cm:text-[#334155] cm:font-normal" }),
|
|
13320
13358
|
typeDisplay: /* @__PURE__ */ n(g6, { type: T.type }),
|
|
13321
13359
|
descriptionDisplay: /* @__PURE__ */ n(ue, { text: T.description, className: "cm:text-[#334155] cm:font-normal" }),
|
|
13322
|
-
dataSourceDisplay: /* @__PURE__ */ n(p6, { connectorId: v6(T) ? f :
|
|
13323
|
-
showInHiverPanelDisplay: /* @__PURE__ */ n(f6, { disabled: E && !!w[T.cf_id] || !
|
|
13324
|
-
|
|
13360
|
+
dataSourceDisplay: /* @__PURE__ */ n(p6, { connectorId: v6(T) ? f : Ht(T) ? T.connector_id : void 0 }),
|
|
13361
|
+
showInHiverPanelDisplay: /* @__PURE__ */ n(f6, { disabled: E && !!w[T.cf_id] || !Ht(T), checked: !!T.visibility?.includes("customer_panel"), onClick: () => {
|
|
13362
|
+
Ht(T) && x({ customField: T });
|
|
13325
13363
|
} }),
|
|
13326
|
-
actionsDisplay:
|
|
13364
|
+
actionsDisplay: Ht(T) ? /* @__PURE__ */ n(C6, { onClick: () => {
|
|
13327
13365
|
r(T), a(!0);
|
|
13328
13366
|
} }) : null
|
|
13329
13367
|
})),
|
|
@@ -13409,7 +13447,7 @@ const D3 = () => {
|
|
|
13409
13447
|
` }),
|
|
13410
13448
|
/* @__PURE__ */ d("div", { className: "cf-card cm:w-full cm:flex-1 cm:basis-0 cm:flex cm:flex-col cm:min-h-0", children: [
|
|
13411
13449
|
/* @__PURE__ */ n(
|
|
13412
|
-
|
|
13450
|
+
Ss,
|
|
13413
13451
|
{
|
|
13414
13452
|
className: "cm-listing-toolbar cm-cf-toolbar",
|
|
13415
13453
|
title: `${l} fields`,
|
|
@@ -13429,7 +13467,7 @@ const D3 = () => {
|
|
|
13429
13467
|
size: "small",
|
|
13430
13468
|
className: "cm-cf-add-action",
|
|
13431
13469
|
onClick: () => a(!0),
|
|
13432
|
-
icon: /* @__PURE__ */ n(
|
|
13470
|
+
icon: /* @__PURE__ */ n(oc, { width: 16, height: 16, "aria-hidden": "true" }),
|
|
13433
13471
|
label: `Add ${i} field`
|
|
13434
13472
|
}
|
|
13435
13473
|
)
|
|
@@ -13447,7 +13485,7 @@ const D3 = () => {
|
|
|
13447
13485
|
},
|
|
13448
13486
|
k
|
|
13449
13487
|
) }) : /* @__PURE__ */ n("div", { className: "cm-cf-empty cm:flex cm:flex-col cm:flex-1", children: /* @__PURE__ */ n(
|
|
13450
|
-
|
|
13488
|
+
Xe,
|
|
13451
13489
|
{
|
|
13452
13490
|
title: `No ${i} fields found`,
|
|
13453
13491
|
iconContent: Ue.hiverBee2
|
|
@@ -13469,7 +13507,7 @@ const D3 = () => {
|
|
|
13469
13507
|
const { entityType: e } = He(), t = Re(), c = e === U.COMPANY ? Ge : "Contacts", s = e === U.COMPANY ? qe.ACCOUNTS : qe.CONTACTS, a = e === U.COMPANY ? "accounts" : "contacts", o = e === U.COMPANY ? le : "contact", r = [
|
|
13470
13508
|
{
|
|
13471
13509
|
label: c,
|
|
13472
|
-
icon: /* @__PURE__ */ n(
|
|
13510
|
+
icon: /* @__PURE__ */ n(q, { name: a, size: 14, color: "currentColor" }),
|
|
13473
13511
|
command: () => t(s)
|
|
13474
13512
|
},
|
|
13475
13513
|
{ label: `Manage ${o} fields` }
|
|
@@ -13507,12 +13545,12 @@ function y6() {
|
|
|
13507
13545
|
/* @__PURE__ */ n(Fe, { path: qe.ACCOUNTS, element: /* @__PURE__ */ n(p3, {}) }),
|
|
13508
13546
|
/* @__PURE__ */ n(Fe, { path: qe.CONTACTS, element: /* @__PURE__ */ n(D3, {}) }),
|
|
13509
13547
|
/* @__PURE__ */ n(Fe, { path: "/accounts/:accountId", element: /* @__PURE__ */ n(z3, {}) }),
|
|
13510
|
-
/* @__PURE__ */ n(Fe, { path: "/accounts/:accountId/contacts/:contactId", element: /* @__PURE__ */ n(
|
|
13511
|
-
/* @__PURE__ */ n(Fe, { path: "/contacts/:contactId", element: /* @__PURE__ */ n(
|
|
13548
|
+
/* @__PURE__ */ n(Fe, { path: "/accounts/:accountId/contacts/:contactId", element: /* @__PURE__ */ n(ps, {}) }),
|
|
13549
|
+
/* @__PURE__ */ n(Fe, { path: "/contacts/:contactId", element: /* @__PURE__ */ n(ps, {}) })
|
|
13512
13550
|
] }),
|
|
13513
13551
|
/* @__PURE__ */ n(Fe, { path: qe.CUSTOM_FIELDS, element: /* @__PURE__ */ n(x6, {}) })
|
|
13514
13552
|
] }),
|
|
13515
|
-
/* @__PURE__ */ n(
|
|
13553
|
+
/* @__PURE__ */ n(Zs, {})
|
|
13516
13554
|
] }) });
|
|
13517
13555
|
}
|
|
13518
13556
|
const y7 = {
|
|
@@ -13643,12 +13681,12 @@ const A6 = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="h
|
|
|
13643
13681
|
</svg>`, W6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13644
13682
|
__proto__: null,
|
|
13645
13683
|
default: z6
|
|
13646
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
13684
|
+
}, Symbol.toStringTag, { value: "Module" })), X6 = `<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13647
13685
|
<path d="M5.25 10.5L8.75 7L5.25 3.5" stroke="currentColor" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
|
|
13648
13686
|
</svg>
|
|
13649
|
-
`,
|
|
13687
|
+
`, Q6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13650
13688
|
__proto__: null,
|
|
13651
|
-
default:
|
|
13689
|
+
default: X6
|
|
13652
13690
|
}, Symbol.toStringTag, { value: "Module" })), q6 = `<svg width="14" height="14" stroke="#091E42" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13653
13691
|
<path d="M8.75 3.5L5.25 7L8.75 10.5" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
|
|
13654
13692
|
</svg>
|
|
@@ -13867,13 +13905,13 @@ const A6 = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="h
|
|
|
13867
13905
|
</svg>`, Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13868
13906
|
__proto__: null,
|
|
13869
13907
|
default: zu
|
|
13870
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
13908
|
+
}, Symbol.toStringTag, { value: "Module" })), Xu = `<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
|
|
13871
13909
|
<path d="M4.66667 6L7 8.33333L9.33333 6M4.55 12.25H9.45C10.4301 12.25 10.9201 12.25 11.2945 12.0592C11.6238 11.8915 11.8915 11.6238 12.0592 11.2945C12.25 10.9201 12.25 10.4301 12.25 9.45V4.55C12.25 3.56991 12.25 3.07986 12.0592 2.70552C11.8915 2.37623 11.6238 2.10852 11.2945 1.94074C10.9201 1.75 10.4301 1.75 9.45 1.75H4.55C3.56991 1.75 3.07986 1.75 2.70552 1.94074C2.37623 2.10852 2.10852 2.37623 1.94074 2.70552C1.75 3.07986 1.75 3.56991 1.75 4.55V9.45C1.75 10.4301 1.75 10.9201 1.94074 11.2945C2.10852 11.6238 2.37623 11.8915 2.70552 12.0592C3.07986 12.25 3.56991 12.25 4.55 12.25Z" stroke="#334155" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
|
|
13872
13910
|
</svg>
|
|
13873
13911
|
|
|
13874
|
-
`,
|
|
13912
|
+
`, Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13875
13913
|
__proto__: null,
|
|
13876
|
-
default:
|
|
13914
|
+
default: Xu
|
|
13877
13915
|
}, Symbol.toStringTag, { value: "Module" })), qu = `<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
|
|
13878
13916
|
<path d="M2.33301 4.08331C2.33301 3.53972 2.33301 3.26792 2.42181 3.05351C2.54023 2.76765 2.76735 2.54053 3.05321 2.42212C3.26761 2.33331 3.53941 2.33331 4.08301 2.33331H9.91634C10.46 2.33331 10.7317 2.33331 10.9462 2.42212C11.232 2.54053 11.4591 2.76765 11.5776 3.05351C11.6663 3.26792 11.6663 3.53972 11.6663 4.08331M5.24967 11.6666H8.74967M6.99967 2.33331V11.6666" stroke="#334155" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
|
|
13879
13917
|
</svg>`, Gu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -14064,14 +14102,14 @@ const A6 = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="h
|
|
|
14064
14102
|
`, W4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14065
14103
|
__proto__: null,
|
|
14066
14104
|
default: z4
|
|
14067
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
14105
|
+
}, Symbol.toStringTag, { value: "Module" })), X4 = `<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14068
14106
|
<g transform="rotate(180 7 7)">
|
|
14069
14107
|
<path d="M4.08268 12.8327V6.41602M1.16602 7.58268V11.666C1.16602 12.3104 1.68835 12.8327 2.33268 12.8327H10.1646C11.0284 12.8327 11.763 12.2025 11.8943 11.3488L12.5225 7.26547C12.6856 6.20537 11.8654 5.24935 10.7929 5.24935H8.74935C8.42717 5.24935 8.16602 4.98818 8.16602 4.66602V2.60442C8.16602 1.81001 7.52202 1.16602 6.72763 1.16602C6.53811 1.16602 6.36643 1.27761 6.28949 1.45075L4.23665 6.06957C4.14302 6.28027 3.93412 6.41602 3.70359 6.41602H2.33268C1.68835 6.41602 1.16602 6.93833 1.16602 7.58268Z" stroke="currentColor" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14070
14108
|
</g>
|
|
14071
14109
|
</svg>
|
|
14072
|
-
`,
|
|
14110
|
+
`, Q4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14073
14111
|
__proto__: null,
|
|
14074
|
-
default:
|
|
14112
|
+
default: X4
|
|
14075
14113
|
}, Symbol.toStringTag, { value: "Module" })), q4 = `<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14076
14114
|
<g transform="rotate(180 7 7)">
|
|
14077
14115
|
<path d="M1.16602 11.666V7.58268C1.16602 6.93833 1.68835 6.41602 2.33268 6.41602H3.70359C3.93412 6.41602 4.14302 6.28027 4.23665 6.06957L6.28949 1.45075C6.36643 1.27761 6.53811 1.16602 6.72763 1.16602C7.52202 1.16602 8.16602 1.81001 8.16602 2.60442V4.66602C8.16602 4.98818 8.42717 5.24935 8.74935 5.24935H10.7929C11.8654 5.24935 12.6856 6.20537 12.5225 7.26547L11.8943 11.3488C11.763 12.2025 11.0284 12.8327 10.1646 12.8327H4.08268H2.33268C1.68835 12.8327 1.16602 12.3104 1.16602 11.666Z" fill="currentColor"/>
|
|
@@ -14232,13 +14270,13 @@ const A6 = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="h
|
|
|
14232
14270
|
`, W5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14233
14271
|
__proto__: null,
|
|
14234
14272
|
default: z5
|
|
14235
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
14273
|
+
}, Symbol.toStringTag, { value: "Module" })), X5 = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14236
14274
|
<path d="M14.0026 2C14.3708 2 14.6693 2.29847 14.6693 2.66667V6.33333C13.7488 6.33333 13.0026 7.07954 13.0026 8.00001C13.0026 8.92047 13.7488 9.66667 14.6693 9.66667V13.3333C14.6693 13.7015 14.3708 14 14.0026 14H2.0026C1.63442 14 1.33594 13.7015 1.33594 13.3333V9.66667C2.25641 9.66667 3.0026 8.92047 3.0026 8.00001C3.0026 7.07954 2.25641 6.33333 1.33594 6.33333V2.66667C1.33594 2.29847 1.63442 2 2.0026 2H14.0026ZM13.336 3.33333H2.66927V5.312L2.7732 5.36605C3.66558 5.85403 4.28279 6.78234 4.33267 7.85881L4.33594 8.00001C4.33594 9.13614 3.70438 10.1247 2.7732 10.6339L2.66927 10.6873V12.6667H13.336V10.6873L13.232 10.6339C12.3396 10.1459 11.7224 9.21767 11.6726 8.14121L11.6693 8.00001C11.6693 6.86387 12.3008 5.87525 13.232 5.36605L13.336 5.312V3.33333Z" fill="#334155"/>
|
|
14237
14275
|
<circle cx="8" cy="8" r="1.5" fill="#334155"/>
|
|
14238
14276
|
</svg>
|
|
14239
|
-
`,
|
|
14277
|
+
`, Q5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14240
14278
|
__proto__: null,
|
|
14241
|
-
default:
|
|
14279
|
+
default: X5
|
|
14242
14280
|
}, Symbol.toStringTag, { value: "Module" })), q5 = `<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14243
14281
|
<path d="M1.16699 7C1.16699 5.067 2.73399 3.5 4.66699 3.5H9.33366C11.2667 3.5 12.8337 5.067 12.8337 7C12.8337 8.93299 11.2667 10.5 9.33366 10.5H4.66699C2.73399 10.5 1.16699 8.93299 1.16699 7Z" stroke="#334155" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14244
14282
|
<path d="M4.66634 8.45835C5.47176 8.45835 6.12467 7.80543 6.12467 7.00002C6.12467 6.19461 5.47176 5.54169 4.66634 5.54169C3.86093 5.54169 3.20801 6.19461 3.20801 7.00002C3.20801 7.80543 3.86093 8.45835 4.66634 8.45835Z" stroke="#334155" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -14292,7 +14330,7 @@ const A6 = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="h
|
|
|
14292
14330
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14293
14331
|
export {
|
|
14294
14332
|
y7 as API_METHODS,
|
|
14295
|
-
|
|
14333
|
+
Gs as ConversationList,
|
|
14296
14334
|
T1 as CustomerIntelligencePanel,
|
|
14297
14335
|
U as ENTITY_TYPES,
|
|
14298
14336
|
se as FEATURES,
|