@databrainhq/plugin 0.17.9-beta.33 → 0.17.9-beta.34
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/{Accordion-BdGcYoH_.mjs → Accordion-DtzU-kv3.mjs} +1 -1
- package/dist/{Chart-D3fn0ghg.mjs → Chart-BKjKglnR.mjs} +760 -760
- package/dist/{CreateGlobalFilter-8t6GSGyT.mjs → CreateGlobalFilter-COJr9pxx.mjs} +195 -195
- package/dist/{CreateMetricV2-BJoSn42i.mjs → CreateMetricV2-CfcDgw3E.mjs} +146 -146
- package/dist/{DraggableItem-CzPHM5Ek.mjs → DraggableItem-B8IW0_no.mjs} +139 -139
- package/dist/{HorizontalStackTable-DNBbrIFn.mjs → HorizontalStackTable-BgTor_KQ.mjs} +48 -48
- package/dist/{ManageMetricsV2-1fBC-FFm.mjs → ManageMetricsV2-DM8gofxF.mjs} +3 -3
- package/dist/{MetricCardV2-D7p6yAv5.mjs → MetricCardV2-Ff__3yWl.mjs} +146 -146
- package/dist/{NoDataFound-1gLzunO6.mjs → NoDataFound-Ifpvns9-.mjs} +1 -1
- package/dist/{NoDataState-rNtw1p0V.mjs → NoDataState-DPVhHP6M.mjs} +2 -2
- package/dist/{Panel-DQXH8IBE.mjs → Panel-BUwtA4r-.mjs} +1 -1
- package/dist/{PivotTableV2-DfzyY9RC.mjs → PivotTableV2-DQU2H33d.mjs} +2 -2
- package/dist/{PivotTableV3-B97O3ZLD.mjs → PivotTableV3-BLp5-cQr.mjs} +4 -4
- package/dist/{Portal-DE_CdG2S.mjs → Portal-BP2ivXF8.mjs} +2480 -2388
- package/dist/{RadioButton-BOkJ0ZLZ.mjs → RadioButton-oGBMxhHq.mjs} +2 -2
- package/dist/{ScheduleEmail-BpdnxS9q.mjs → ScheduleEmail-CiO6PMLd.mjs} +517 -517
- package/dist/{SearchMetricData-sBWIMhvT.mjs → SearchMetricData-C4stwNY9.mjs} +1272 -1272
- package/dist/{SortPanel-CNjSmhPX.mjs → SortPanel-Cy82r5dX.mjs} +1332 -1332
- package/dist/{Table-ODMPh1l7.mjs → Table-Cg4EZCAG.mjs} +296 -296
- package/dist/{TagInputField-DYDsUtvi.mjs → TagInputField-DuY_whs7.mjs} +9 -9
- package/dist/{TextAreaField-D4VprIA4.mjs → TextAreaField-D5O-kEVL.mjs} +297 -297
- package/dist/{TimeSeriesSettings-BTj3ofRS.mjs → TimeSeriesSettings-TXu0_07R.mjs} +11 -11
- package/dist/{arrayToCsvString-D9T6ms_d.mjs → arrayToCsvString-Bj2E5XgM.mjs} +1 -1
- package/dist/{cardActions-BLBLsjcd.mjs → cardActions-BPRHHm2G.mjs} +21 -7
- package/dist/{cardQueryError-tZcXyRqS.mjs → cardQueryError-DFKFCfFx.mjs} +1274 -1274
- package/dist/{charts-CY0Vq7Bn.mjs → charts-C2loGjFP.mjs} +3 -3
- package/dist/{chevron-down-mMC3ps2h.mjs → chevron-down-BWD1dxqC.mjs} +6 -6
- package/dist/{conditionalFormatting-LaI9Vca7.mjs → conditionalFormatting-Ca-leGbK.mjs} +1 -1
- package/dist/{contrast-Clo5ZlPI.mjs → contrast-EppiiunY.mjs} +117 -112
- package/dist/{createGlobalFilter.module-CWkuVq9m.mjs → createGlobalFilter.module-B3yI7_04.mjs} +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/{echarts-mz_HZpET.mjs → echarts-CsSfDZ5q.mjs} +2 -2
- package/dist/{metric.mutation-B8OUNYhj.mjs → metric.mutation-hYspHj1p.mjs} +1 -1
- package/dist/{option-ywDB8mz_.mjs → option-B1zeYJnm.mjs} +1 -1
- package/dist/{permissions-Rp1874rG.mjs → permissions-Bc9NDT2w.mjs} +359 -359
- package/dist/{pluginV3Request-CK6p_HfU.mjs → pluginV3Request-DFy6TETh.mjs} +1 -1
- package/dist/{renderer-DEc5om01.mjs → renderer-Bk8GbA94.mjs} +2 -2
- package/dist/{theme-CU-AvQm_.mjs → theme-BA-MvZE0.mjs} +1 -1
- package/dist/{timeseries-BBiiZaG9.mjs → timeseries-kGhqoQ6V.mjs} +1948 -1942
- package/dist/{toTasteAppearance-BnmM-nar.mjs → toTasteAppearance-CGUd4zvZ.mjs} +1 -1
- package/dist/{useGuesTokenUsageLog-CTqOyx82.mjs → useGuesTokenUsageLog-CVeQacbL.mjs} +1 -1
- package/dist/{usePublishArchivedMetrics-BsHt2ki1.mjs → usePublishArchivedMetrics-BGEBFLub.mjs} +2 -2
- package/dist/{useQuery-B_9KK0aG.mjs → useQuery-CNVFkkjT.mjs} +1 -1
- package/dist/webcomponents.es.js +3942 -3939
- package/dist/webcomponents.umd.js +184 -184
- package/package.json +2 -2
|
@@ -2,25 +2,25 @@ import "react";
|
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
4
|
import { s as e } from "./cardStates-DiUMQ7_o.mjs";
|
|
5
|
-
import { At as t } from "./pluginV3Request-
|
|
6
|
-
import { K as n, et as r, ot as i } from "./metric.mutation-
|
|
7
|
-
import { Ca as a, Ct as o,
|
|
8
|
-
import { a as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { useEffect as
|
|
16
|
-
import { Fragment as
|
|
5
|
+
import { At as t } from "./pluginV3Request-DFy6TETh.mjs";
|
|
6
|
+
import { K as n, et as r, ot as i } from "./metric.mutation-hYspHj1p.mjs";
|
|
7
|
+
import { Ca as a, Ct as o, Da as s, Ha as c, J as l, K as u, L as d, N as f, St as p, T as m, Ua as h, Xa as g, a as _, at as v, ba as y, da as b, dt as x, hr as S, ht as C, la as w, m as T, mr as E, mt as D, o as O, p as k, q as A, tt as ee, u as te, wa as j, xt as M, zn as N } from "./Portal-BP2ivXF8.mjs";
|
|
8
|
+
import { a as ne, c as P, d as re, g as ie, i as ae, l as oe, n as se, o as ce, t as le, u as ue } from "./TagInputField-DuY_whs7.mjs";
|
|
9
|
+
import { t as de } from "./NoDataFound-Ifpvns9-.mjs";
|
|
10
|
+
import { t as fe } from "./No_data-BIO-IPxg.mjs";
|
|
11
|
+
import { t as pe } from "./Panel-BUwtA4r-.mjs";
|
|
12
|
+
import { t as me } from "./Switch-CqsadJBs.mjs";
|
|
13
|
+
import { t as F } from "./Loader-CHJMbWv0.mjs";
|
|
14
|
+
import { t as I } from "./list.module-DmT9azvq.mjs";
|
|
15
|
+
import { useEffect as L, useMemo as R, useRef as z, useState as B } from "react";
|
|
16
|
+
import { Fragment as V, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
17
17
|
//#region src/components/List/ListV2.tsx
|
|
18
|
-
var
|
|
19
|
-
let [
|
|
20
|
-
if (
|
|
18
|
+
var W = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: o = 5, isDataLoading: s = !1, showLogo: c, isShowOptions: l, setValue: u, currentPage: d = 1, isEnableScrollToTop: f, isDisableMoreOption: p, isEnableSelectAll: m, onSelectAll: v, onDeselectAll: y, isAllSelected: b, parent: x, extraValues: C, extraHeaderText: w, onTourClick: D, onRowClick: O, onRowHover: k, onMouseOut: A, buttonContent: ee, noDataSubHeading: j, isDatasourceList: M, stateKey: N, onCreate: ne, isDemoDatasource: P, isOpenInNewTab: re }) => {
|
|
19
|
+
let [ie, ae] = B(o), [oe, se] = B(""), [ce, le] = B(""), ue = (e) => {
|
|
20
|
+
if (x) switch (x) {
|
|
21
21
|
case "DASHBOARD":
|
|
22
|
-
case "DASHBOARD_CREATE": return `/externalDashboard/${e.id}/?wid=${
|
|
23
|
-
case "METRIC": return `/metric/${e?.metric?.id}/?wid=${e?.workspaceId}${
|
|
22
|
+
case "DASHBOARD_CREATE": return `/externalDashboard/${e.id}/?wid=${C?.workspaceId}${C?.dataMartId ? `&dmId=${C?.dataMartId}` : ""}${e?.createdBy ? `&createdByClient=${e?.createdBy}` : ""}`;
|
|
23
|
+
case "METRIC": return `/metric/${e?.metric?.id}/?wid=${e?.workspaceId}${C?.dataMartId ? `&dmId=${C?.dataMartId}` : ""}${e?.dashboardId ? `&dashboardId=${e?.dashboardId}` : ""}&client=${e?.metric?.clientId}&parent=homepage&isPublished=${e?.isPublished}`;
|
|
24
24
|
case "DATASOURCE": return `/integration/${e.integrationId}?id=${e.id}`;
|
|
25
25
|
case "DATAAPP": return `embedInfo/${e.id}`;
|
|
26
26
|
case "DASHBOARD_EMBED_ACCESS": return e?.embedType === "dashboard" ? `embedAccessControl/${e?.id}?dataAppId=${e?.dataAppId}&wid=${e?.workspaceId}` : null;
|
|
@@ -30,142 +30,142 @@ var H = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data
|
|
|
30
30
|
default: return null;
|
|
31
31
|
}
|
|
32
32
|
return null;
|
|
33
|
-
},
|
|
34
|
-
return
|
|
35
|
-
|
|
33
|
+
}, de = z(null);
|
|
34
|
+
return L(() => {
|
|
35
|
+
f && d && de.current && de.current.scrollTo({
|
|
36
36
|
top: 0,
|
|
37
37
|
behavior: "auto"
|
|
38
38
|
});
|
|
39
|
-
}, [
|
|
40
|
-
ref:
|
|
41
|
-
className: `${
|
|
39
|
+
}, [d]), /* @__PURE__ */ H(V, { children: /* @__PURE__ */ U("div", {
|
|
40
|
+
ref: de,
|
|
41
|
+
className: `${I[`container-${n}`]} ${a}`,
|
|
42
42
|
children: [
|
|
43
|
-
s ? /* @__PURE__ */
|
|
43
|
+
s ? /* @__PURE__ */ H("div", {
|
|
44
44
|
className: "dbn:my-5 dbn:w-full dbn:flex dbn:items-center dbn:justify-end",
|
|
45
|
-
children: /* @__PURE__ */
|
|
45
|
+
children: /* @__PURE__ */ H(_, {
|
|
46
46
|
variant: "table",
|
|
47
47
|
tableRows: 4
|
|
48
48
|
})
|
|
49
49
|
}) : null,
|
|
50
|
-
!s && t.length === 0 && !
|
|
51
|
-
className:
|
|
52
|
-
children: [/* @__PURE__ */
|
|
53
|
-
src:
|
|
50
|
+
!s && t.length === 0 && !N ? /* @__PURE__ */ U("div", {
|
|
51
|
+
className: I.noData,
|
|
52
|
+
children: [/* @__PURE__ */ H("img", {
|
|
53
|
+
src: fe,
|
|
54
54
|
alt: "no-data",
|
|
55
55
|
width: "200px",
|
|
56
56
|
height: "200px"
|
|
57
|
-
}), /* @__PURE__ */
|
|
58
|
-
className:
|
|
57
|
+
}), /* @__PURE__ */ U("div", {
|
|
58
|
+
className: I.heading,
|
|
59
59
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ H(g, {
|
|
61
61
|
variant: "heading-5",
|
|
62
62
|
children: r
|
|
63
63
|
}),
|
|
64
|
-
|
|
64
|
+
j ? /* @__PURE__ */ H(g, {
|
|
65
65
|
variant: "body-text-3",
|
|
66
|
-
children:
|
|
66
|
+
children: j
|
|
67
67
|
}) : null,
|
|
68
|
-
|
|
68
|
+
ee
|
|
69
69
|
]
|
|
70
70
|
})]
|
|
71
71
|
}) : null,
|
|
72
|
-
!s && (t.length ||
|
|
73
|
-
className: `${
|
|
74
|
-
children: [/* @__PURE__ */
|
|
75
|
-
className: `${
|
|
76
|
-
children: /* @__PURE__ */
|
|
72
|
+
!s && (t.length || N) ? /* @__PURE__ */ U("table", {
|
|
73
|
+
className: `${I.table} ${t.length > 0 ? "" : "dbn:h-0"}`,
|
|
74
|
+
children: [/* @__PURE__ */ H("thead", {
|
|
75
|
+
className: `${I[`headers-${n}`]} ${t.length === 0 ? I[`headers-${n}-nodata`] : ""} dbn:z-50`,
|
|
76
|
+
children: /* @__PURE__ */ H("tr", { children: e?.map((t, n) => /* @__PURE__ */ U("th", {
|
|
77
77
|
colSpan: t.colSpan,
|
|
78
|
-
className: `${w ?
|
|
79
|
-
children: [/* @__PURE__ */
|
|
80
|
-
className: `${
|
|
81
|
-
children: [n === 0 &&
|
|
78
|
+
className: `${w ? I.headerCol2 : I.headerCol} ${t.columnKey?.toLowerCase() === "actions" ? "dbn:w-[250px]" : ""}`,
|
|
79
|
+
children: [/* @__PURE__ */ U("span", {
|
|
80
|
+
className: `${m && n === 0 ? "dbn:flex dbn:gap-2" : ""}`,
|
|
81
|
+
children: [n === 0 && m ? /* @__PURE__ */ H(te, {
|
|
82
82
|
id: `${t?.name?.replaceAll(" ", "-")?.toLowerCase()}-header-checkbox`,
|
|
83
83
|
onChange: (e) => {
|
|
84
|
-
e.target.checked ?
|
|
84
|
+
e.target.checked ? v?.() : y?.();
|
|
85
85
|
},
|
|
86
|
-
checked:
|
|
87
|
-
}) : null, /* @__PURE__ */
|
|
86
|
+
checked: b
|
|
87
|
+
}) : null, /* @__PURE__ */ H(g, {
|
|
88
88
|
variant: "sec-heading-6",
|
|
89
89
|
color: "gray",
|
|
90
90
|
children: t.headerCell || t.name
|
|
91
91
|
})]
|
|
92
|
-
}), n === e.length - 1 && w ? /* @__PURE__ */
|
|
92
|
+
}), n === e.length - 1 && w ? /* @__PURE__ */ H(g, {
|
|
93
93
|
variant: "body-text-3",
|
|
94
94
|
color: "cta",
|
|
95
95
|
children: w
|
|
96
96
|
}) : null]
|
|
97
97
|
}, t.name)) })
|
|
98
|
-
}), /* @__PURE__ */
|
|
99
|
-
className:
|
|
100
|
-
children: (
|
|
98
|
+
}), /* @__PURE__ */ H("tbody", {
|
|
99
|
+
className: I.body,
|
|
100
|
+
children: (p ? t : t.slice(0, ie))?.map((t, r) => /* @__PURE__ */ H("tr", {
|
|
101
101
|
"data-testid": `row-${t?.name ?? t?.metric?.name ?? t?.companyRole?.name ?? t?.email?.split("@")?.[0]}`,
|
|
102
|
-
className: `${
|
|
102
|
+
className: `${I[`row-${n}`]} ${x || D || k || O ? "dbn:cursor-pointer" : ""}`,
|
|
103
103
|
onClick: (e) => {
|
|
104
|
-
|
|
104
|
+
D && D(t), O && O(t);
|
|
105
105
|
},
|
|
106
106
|
onContextMenu: (e) => {
|
|
107
|
-
let n =
|
|
108
|
-
n &&
|
|
107
|
+
let n = ue(t);
|
|
108
|
+
n && re && (e.preventDefault(), window.open(n, "_blank"));
|
|
109
109
|
},
|
|
110
110
|
"data-test-title": "table-rows",
|
|
111
|
-
onMouseOver: () =>
|
|
112
|
-
onMouseOut: () =>
|
|
111
|
+
onMouseOver: () => k?.(t),
|
|
112
|
+
onMouseOut: () => A?.(),
|
|
113
113
|
children: e?.map((r, i) => {
|
|
114
114
|
let a = r.columnKey === "invitationToken" && !!t[r.columnKey];
|
|
115
|
-
return /* @__PURE__ */
|
|
115
|
+
return /* @__PURE__ */ H("td", {
|
|
116
116
|
colSpan: r.colSpan,
|
|
117
|
-
className: `${
|
|
118
|
-
children: /* @__PURE__ */
|
|
119
|
-
className:
|
|
120
|
-
children: i === 0 &&
|
|
117
|
+
className: `${I.col} ${I[`col-${n}`]}`,
|
|
118
|
+
children: /* @__PURE__ */ H("div", {
|
|
119
|
+
className: I[`col-${n}-cell`],
|
|
120
|
+
children: i === 0 && c || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */ U("div", {
|
|
121
121
|
className: "dbn:flex dbn:gap-2",
|
|
122
|
-
children: [(t?.type || t?.dbName) && /* @__PURE__ */
|
|
122
|
+
children: [(t?.type || t?.dbName) && /* @__PURE__ */ H(S, {
|
|
123
123
|
name: r.columnKey?.toLowerCase() === "type" ? t.type?.toString() : t.dbName?.toString()?.toLowerCase(),
|
|
124
124
|
width: 20
|
|
125
125
|
}), r.columnKey?.toLowerCase() === "name" && (t.name === null || t.name === void 0) && t.dbName?.toString()?.toLowerCase() === "awss3" ? "Demo Datasource" : (r.columnCell ? r.columnCell(t) : t[r.columnKey]) || "-"]
|
|
126
|
-
}) : /* @__PURE__ */
|
|
126
|
+
}) : /* @__PURE__ */ U("div", {
|
|
127
127
|
className: "dbn:w-full dbn:flex dbn:items-center dbn:justify-between",
|
|
128
|
-
children: [(r.columnCell ? r.columnCell(t) : a ? /* @__PURE__ */ V
|
|
128
|
+
children: [(r.columnCell ? r.columnCell(t) : a ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(g, {
|
|
129
129
|
variant: "body-text-2",
|
|
130
130
|
className: "dbn:text-xs",
|
|
131
131
|
children: "XXXX"
|
|
132
|
-
}), /* @__PURE__ */
|
|
132
|
+
}), /* @__PURE__ */ H(h, {
|
|
133
133
|
"data-testid": "invitation-copy",
|
|
134
134
|
variant: "tertiary",
|
|
135
135
|
type: "button",
|
|
136
136
|
onClick: () => {
|
|
137
|
-
navigator.clipboard.writeText(t[r.columnKey]),
|
|
137
|
+
navigator.clipboard.writeText(t[r.columnKey]), se(t[r.columnKey]), setTimeout(() => se(""), 1700);
|
|
138
138
|
},
|
|
139
|
-
leftIcon: /* @__PURE__ */
|
|
139
|
+
leftIcon: /* @__PURE__ */ H(E, {
|
|
140
140
|
name: "copy",
|
|
141
141
|
size: "xs"
|
|
142
142
|
}),
|
|
143
143
|
className: "dbn:p-0 dbn:pl-1 dbn:text-xs dbn:gap-1",
|
|
144
|
-
children:
|
|
145
|
-
})] }) : t[r.columnKey]) || "-", i === e.length - 1 &&
|
|
146
|
-
buttonContent: /* @__PURE__ */
|
|
144
|
+
children: oe === t[r.columnKey] ? "Copied" : "Copy"
|
|
145
|
+
})] }) : t[r.columnKey]) || "-", i === e.length - 1 && l ? /* @__PURE__ */ U(T, {
|
|
146
|
+
buttonContent: /* @__PURE__ */ H(h, {
|
|
147
147
|
variant: "popover",
|
|
148
|
-
leftIcon: /* @__PURE__ */
|
|
148
|
+
leftIcon: /* @__PURE__ */ H(E, { name: "kebab-menu-vertical" })
|
|
149
149
|
}),
|
|
150
150
|
menuWidth: "120px",
|
|
151
151
|
position: "bottom",
|
|
152
|
-
children: [/* @__PURE__ */
|
|
152
|
+
children: [/* @__PURE__ */ H(h, {
|
|
153
153
|
variant: "popover",
|
|
154
154
|
className: "dbn:p-2 dbn:flex dbn:justify-start dbn:w-full dbn:hover:bg-gray",
|
|
155
|
-
onClick: () =>
|
|
155
|
+
onClick: () => u?.({
|
|
156
156
|
action: "edit",
|
|
157
157
|
id: t.id
|
|
158
158
|
}),
|
|
159
|
-
leftIcon: /* @__PURE__ */
|
|
159
|
+
leftIcon: /* @__PURE__ */ H(E, { name: "pencil-simple" }),
|
|
160
160
|
children: "Edit"
|
|
161
|
-
}), /* @__PURE__ */
|
|
161
|
+
}), /* @__PURE__ */ H(h, {
|
|
162
162
|
variant: "popover",
|
|
163
163
|
className: "dbn:p-2 dbn:flex dbn:justify-start dbn:w-full dbn:hover:bg-gray",
|
|
164
|
-
onClick: () =>
|
|
164
|
+
onClick: () => u?.({
|
|
165
165
|
action: "delete",
|
|
166
166
|
id: t.id
|
|
167
167
|
}),
|
|
168
|
-
leftIcon: /* @__PURE__ */
|
|
168
|
+
leftIcon: /* @__PURE__ */ H(E, { name: "delete" }),
|
|
169
169
|
children: "Delete"
|
|
170
170
|
})]
|
|
171
171
|
}) : null]
|
|
@@ -176,18 +176,18 @@ var H = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data
|
|
|
176
176
|
}, `row-${r}`))
|
|
177
177
|
})]
|
|
178
178
|
}) : null,
|
|
179
|
-
t.length >
|
|
180
|
-
className:
|
|
181
|
-
children: /* @__PURE__ */
|
|
179
|
+
t.length > ie && !p ? /* @__PURE__ */ H("div", {
|
|
180
|
+
className: I.loadMore,
|
|
181
|
+
children: /* @__PURE__ */ U(h, {
|
|
182
182
|
type: "button",
|
|
183
183
|
variant: "tertiary",
|
|
184
|
-
onClick: () =>
|
|
185
|
-
children: [/* @__PURE__ */
|
|
184
|
+
onClick: () => ae((e) => e + o),
|
|
185
|
+
children: [/* @__PURE__ */ H(E, { name: "arrow-down" }), /* @__PURE__ */ H("span", { children: i })]
|
|
186
186
|
})
|
|
187
187
|
}) : null
|
|
188
188
|
]
|
|
189
189
|
}) });
|
|
190
|
-
},
|
|
190
|
+
}, he = (e, t = !0) => e.filter((e) => !t || !e.isAppFilter), G = (e) => {
|
|
191
191
|
let t = /* @__PURE__ */ new Date();
|
|
192
192
|
if (!e) return t;
|
|
193
193
|
try {
|
|
@@ -195,11 +195,11 @@ var H = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data
|
|
|
195
195
|
} catch {
|
|
196
196
|
return t;
|
|
197
197
|
}
|
|
198
|
-
},
|
|
198
|
+
}, ge = (e, t) => {
|
|
199
199
|
let n = 0;
|
|
200
200
|
for (let r = 0; r < e.length; r++) if (e[r] >= t) return n = r, n;
|
|
201
201
|
return n;
|
|
202
|
-
},
|
|
202
|
+
}, _e = (e) => {
|
|
203
203
|
let t = /* @__PURE__ */ new Date(), n = t.getMonth(), r = t.getFullYear();
|
|
204
204
|
return (e?.map((e) => {
|
|
205
205
|
switch (e?.value) {
|
|
@@ -213,8 +213,8 @@ var H = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data
|
|
|
213
213
|
default: return null;
|
|
214
214
|
}
|
|
215
215
|
})).filter((e) => e).sort((e, t) => e - t);
|
|
216
|
-
},
|
|
217
|
-
let t =
|
|
216
|
+
}, K = (e) => {
|
|
217
|
+
let t = G(e.timezone);
|
|
218
218
|
t.setMinutes(t.getMinutes() + 1);
|
|
219
219
|
let n = null;
|
|
220
220
|
switch (e.frequency) {
|
|
@@ -233,7 +233,7 @@ var H = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data
|
|
|
233
233
|
break;
|
|
234
234
|
}
|
|
235
235
|
case "Monthly": {
|
|
236
|
-
let r = e.newDate ?
|
|
236
|
+
let r = e.newDate ? _e(e.newDate) : e.date?.map((e) => parseInt(e.value, 10)), i = null;
|
|
237
237
|
r.forEach((e) => {
|
|
238
238
|
let n = new Date(t.getFullYear(), t.getMonth(), e);
|
|
239
239
|
n < t && n.setMonth(t.getMonth()), (!i || n < i) && (i = n);
|
|
@@ -252,7 +252,7 @@ var H = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data
|
|
|
252
252
|
Object.keys(e.weekDays).filter((t) => e.weekDays[t]).includes(s[t.getDay()].value) && (n.getHours() > t.getHours() || n.getHours() === t.getHours() && n.getMinutes() > t.getMinutes()) && n.setDate(t.getDate());
|
|
253
253
|
break;
|
|
254
254
|
case "Monthly": {
|
|
255
|
-
let r = e.newDate ?
|
|
255
|
+
let r = e.newDate ? _e(e.newDate) : e.date?.map((e) => parseInt(e.value, 10)).sort((e, t) => e - t), i = ge(r, t.getDate());
|
|
256
256
|
n.setDate(r[i]), n.getDate() <= t.getDate() && (n.getHours() < t.getHours() || n.getHours() === t.getHours() && n.getMinutes() <= t.getMinutes()) && n.setDate(r[(i + 1) % r.length]), n.getMonth() === t.getMonth() && n.getDate() <= t.getDate() && (n.getHours() < t.getHours() || n.getHours() === t.getHours() && n.getMinutes() <= t.getMinutes()) && (n.setMonth(n.getMonth() + 1), n.setDate(r[0])), n.getMonth() === t.getMonth() && n.getDate() < t.getDate() && n.setMonth(n.getMonth() + 1);
|
|
257
257
|
break;
|
|
258
258
|
}
|
|
@@ -260,11 +260,11 @@ var H = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data
|
|
|
260
260
|
}
|
|
261
261
|
let r = n ? n.getMonth() + 1 : void 0;
|
|
262
262
|
return `${n?.getDate()}/${r}/${n?.getFullYear()}, ${n?.toLocaleTimeString()}`;
|
|
263
|
-
},
|
|
263
|
+
}, ve = (e, t) => ({
|
|
264
264
|
...e,
|
|
265
265
|
...t ? { createdByIdentifier: t } : {}
|
|
266
266
|
});
|
|
267
|
-
function
|
|
267
|
+
function q(t, a, o) {
|
|
268
268
|
let s = i(o), c = e(o), l = [c?.details?.reason, c?.code].find((e) => typeof e == "string" && /^[A-Z][A-Z0-9_]{0,63}$/.test(e));
|
|
269
269
|
r("schedule-report-failed", {
|
|
270
270
|
action: t,
|
|
@@ -277,7 +277,7 @@ function G(t, a, o) {
|
|
|
277
277
|
...s
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function J(e, t, r) {
|
|
281
281
|
n(e === "create" ? "schedule_report.created" : "schedule_report.updated", {
|
|
282
282
|
frequency: t?.frequency,
|
|
283
283
|
chart_count: Array.isArray(t?.charts) ? t.charts.length : 0,
|
|
@@ -287,82 +287,82 @@ function K(e, t, r) {
|
|
|
287
287
|
is_internal: r
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
var
|
|
290
|
+
var Y = {
|
|
291
291
|
time: "PM",
|
|
292
292
|
timezone: "Asia/Kolkata",
|
|
293
293
|
frequency: "Daily",
|
|
294
294
|
minutes: "00"
|
|
295
|
-
},
|
|
295
|
+
}, ye = (e) => {
|
|
296
296
|
let t = e?.timeConfigurations?.charts;
|
|
297
297
|
return Array.isArray(t) && t.length ? t : e?.scheduleEmailReportCharts?.map((e) => e?.externalMetricId || e?.externalMetric?.id || e?.externalMetric?.externalMetricId)?.filter(Boolean) || [];
|
|
298
|
-
},
|
|
299
|
-
let { register:
|
|
298
|
+
}, be = ({ onCancel: e, getInternalToken: t, scheduleReportConfig: n, externalDashboardId: i, sharingSettingsId: a, onComplete: o, clientState: s, createdByIdentifier: l }) => {
|
|
299
|
+
let { register: u, handleSubmit: d, watch: f, control: m, setValue: h, getValues: g, reset: _, formState: { errors: y } } = p(), { data: b, token: x } = c(), S = l ?? b?.userIdentifier, C = R(() => {
|
|
300
300
|
if (n) return n;
|
|
301
301
|
}, [n]);
|
|
302
|
-
|
|
303
|
-
C ?
|
|
302
|
+
L(() => {
|
|
303
|
+
C ? _({
|
|
304
304
|
...C?.timeConfigurations,
|
|
305
|
-
charts:
|
|
305
|
+
charts: ye(C),
|
|
306
306
|
minutes: C?.timeConfigurations?.minutes ?? "00"
|
|
307
|
-
}) : (
|
|
307
|
+
}) : (h("time", Y.time), h("timezone", Y.timezone), h("frequency", Y.frequency), h("minutes", Y.minutes), h("subject", ""), h("downloadFileFormat", w?.[0]?.value));
|
|
308
308
|
}, [C]);
|
|
309
|
-
let [
|
|
310
|
-
if (!e?.charts?.length && !n) return
|
|
311
|
-
if (!e?.emails?.length) return
|
|
312
|
-
if (e?.frequency === "Weekly" && !Object?.values({ ...e?.weekDays }).includes(!0)) return
|
|
313
|
-
if (e?.frequency === "Monthly" && !e?.newDate?.length) return
|
|
314
|
-
if (e?.frequency === "oneTime" && !e?.oneTimeDate?.startDate) return
|
|
309
|
+
let [T, E] = B(!1), [D, O] = B(""), [k, A] = B(!1), [te, j] = B(!1), M = v(), N = ee(), ne = (e, t, n) => {
|
|
310
|
+
if (!e?.charts?.length && !n) return O("please select at least one chart to share"), E(!1), A(!1), !1;
|
|
311
|
+
if (!e?.emails?.length) return O("please add at least one email address"), E(!1), A(!1), !1;
|
|
312
|
+
if (e?.frequency === "Weekly" && !Object?.values({ ...e?.weekDays }).includes(!0)) return O("please select atleast one day"), E(!1), A(!1), !1;
|
|
313
|
+
if (e?.frequency === "Monthly" && !e?.newDate?.length) return O("please select at least one date option"), E(!1), A(!1), !1;
|
|
314
|
+
if (e?.frequency === "oneTime" && !e?.oneTimeDate?.startDate) return O("please select date for one time schedule"), E(!1), A(!1), !1;
|
|
315
315
|
if (e?.frequency === "oneTime") {
|
|
316
316
|
let t = e?.oneTimeDate?.startDate;
|
|
317
317
|
if (!t) return !1;
|
|
318
318
|
let n = typeof t == "string" ? new Date(t) : new Date(t.getTime());
|
|
319
|
-
if (isNaN(n.getTime())) return
|
|
319
|
+
if (isNaN(n.getTime())) return O("invalid date selected"), E(!1), A(!1), !1;
|
|
320
320
|
let r = Number(e?.hours);
|
|
321
|
-
if (Number.isNaN(r) || r < 1 || r > 12) return
|
|
321
|
+
if (Number.isNaN(r) || r < 1 || r > 12) return O("invalid hour"), E(!1), A(!1), !1;
|
|
322
322
|
let i = Number(`${e?.minutes ?? "0"}`.trim() || "0");
|
|
323
|
-
if (Number.isNaN(i) || i < 0 || i > 59) return
|
|
323
|
+
if (Number.isNaN(i) || i < 0 || i > 59) return O("invalid minutes"), E(!1), A(!1), !1;
|
|
324
324
|
let a = e?.time === "PM" && r !== 12 ? r + 12 : e?.time === "AM" && r === 12 ? 0 : r, o = new Date(n.getTime());
|
|
325
|
-
if (o.setHours(a, i, 0, 0), o.getTime() <= Date.now()) return
|
|
325
|
+
if (o.setHours(a, i, 0, 0), o.getTime() <= Date.now()) return O("please select valid time for one time schedule"), E(!1), A(!1), !1;
|
|
326
326
|
}
|
|
327
|
-
return t ? s?.isRequiredClient && !s?.clients?.length ? (
|
|
328
|
-
},
|
|
329
|
-
if (e?.frequency === "Weekly" && !Object?.values({ ...e?.weekDays }).includes(!0)) return
|
|
330
|
-
if (e?.frequency === "Monthly" && !e?.newDate?.length) return
|
|
331
|
-
if (e?.frequency === "oneTime" && !e?.oneTimeDate?.startDate) return
|
|
327
|
+
return t ? s?.isRequiredClient && !s?.clients?.length ? (O("please select at least one client"), E(!1), A(!1), !1) : !0 : (O("invalid time configurations"), E(!1), A(!1), !1);
|
|
328
|
+
}, P = (e) => {
|
|
329
|
+
if (e?.frequency === "Weekly" && !Object?.values({ ...e?.weekDays }).includes(!0)) return O("please select atleast one day"), E(!1), A(!1), !1;
|
|
330
|
+
if (e?.frequency === "Monthly" && !e?.newDate?.length) return O("please select at least one date option"), E(!1), A(!1), !1;
|
|
331
|
+
if (e?.frequency === "oneTime" && !e?.oneTimeDate?.startDate) return O("please select date for one time schedule"), E(!1), A(!1), !1;
|
|
332
332
|
if (e?.frequency === "oneTime") {
|
|
333
333
|
let t = e?.oneTimeDate?.startDate;
|
|
334
334
|
if (!t) return !1;
|
|
335
335
|
let n = typeof t == "string" ? new Date(t) : new Date(t.getTime());
|
|
336
|
-
if (isNaN(n.getTime())) return
|
|
336
|
+
if (isNaN(n.getTime())) return O("invalid date selected"), E(!1), A(!1), !1;
|
|
337
337
|
let r = Number(e?.hours);
|
|
338
|
-
if (Number.isNaN(r) || r < 1 || r > 12) return
|
|
338
|
+
if (Number.isNaN(r) || r < 1 || r > 12) return O("invalid hour"), E(!1), A(!1), !1;
|
|
339
339
|
let i = Number(`${e?.minutes ?? "0"}`.trim() || "0");
|
|
340
|
-
if (Number.isNaN(i) || i < 0 || i > 59) return
|
|
340
|
+
if (Number.isNaN(i) || i < 0 || i > 59) return O("invalid minutes"), E(!1), A(!1), !1;
|
|
341
341
|
let a = e?.time === "PM" && r !== 12 ? r + 12 : e?.time === "AM" && r === 12 ? 0 : r, o = new Date(n.getTime());
|
|
342
|
-
if (o.setHours(a, i, 0, 0), o.getTime() <= Date.now()) return
|
|
342
|
+
if (o.setHours(a, i, 0, 0), o.getTime() <= Date.now()) return O("please select valid time for one time schedule"), E(!1), A(!1), !1;
|
|
343
343
|
}
|
|
344
344
|
return !0;
|
|
345
|
-
},
|
|
346
|
-
|
|
347
|
-
let { subject: c, emails: l, frequency: u, weekDays: d, date: f, hours: p, time: m, timezone: h, newDate:
|
|
345
|
+
}, re = async (n) => {
|
|
346
|
+
O(""), E(!0), A(!1), n.minutes = `${n?.minutes ?? ""}`.trim() ? `${n?.minutes}`.padStart(2, "0") : "00";
|
|
347
|
+
let { subject: c, emails: l, frequency: u, weekDays: d, date: f, hours: p, time: m, timezone: h, newDate: g, isDownloadFile: _, downloadFileFormat: v } = n, y = await t?.(C?.guestToken, !!s?.isDisableClient);
|
|
348
348
|
if (r("schedule-report-start", {
|
|
349
349
|
action: C ? "update" : "create",
|
|
350
350
|
frequency: u,
|
|
351
351
|
chartCount: n?.charts?.length ?? 0,
|
|
352
352
|
emailCount: Array.isArray(l) ? l.length : 0,
|
|
353
353
|
subjectLength: `${c ?? ""}`.length,
|
|
354
|
-
hasInternalToken: !!
|
|
355
|
-
isDownloadFile: !!
|
|
356
|
-
downloadFileFormat:
|
|
354
|
+
hasInternalToken: !!y,
|
|
355
|
+
isDownloadFile: !!_,
|
|
356
|
+
downloadFileFormat: v,
|
|
357
357
|
clientCount: s?.clients?.length ?? 0
|
|
358
|
-
}), !
|
|
358
|
+
}), !P(n)) {
|
|
359
359
|
r("schedule-report-blocked", {
|
|
360
360
|
gate: "dates",
|
|
361
361
|
frequency: u
|
|
362
362
|
});
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
|
-
let
|
|
365
|
+
let w = K({
|
|
366
366
|
date: f,
|
|
367
367
|
frequency: u,
|
|
368
368
|
hours: p,
|
|
@@ -370,35 +370,35 @@ var q = {
|
|
|
370
370
|
time: m,
|
|
371
371
|
timezone: h,
|
|
372
372
|
weekDays: d,
|
|
373
|
-
newDate:
|
|
373
|
+
newDate: g,
|
|
374
374
|
oneTimeDate: n?.oneTimeDate
|
|
375
375
|
});
|
|
376
|
-
if (!
|
|
376
|
+
if (!ne(n, w, !!y)) {
|
|
377
377
|
r("schedule-report-blocked", {
|
|
378
378
|
gate: "settings",
|
|
379
379
|
frequency: u,
|
|
380
|
-
hasNextScheduledAt: !!
|
|
380
|
+
hasNextScheduledAt: !!w
|
|
381
381
|
});
|
|
382
382
|
return;
|
|
383
383
|
}
|
|
384
|
-
let
|
|
385
|
-
C ?
|
|
384
|
+
let T = n?.charts?.map((e) => ({ externalMetricId: e }));
|
|
385
|
+
C ? N?.mutate({
|
|
386
386
|
id: C?.id,
|
|
387
|
-
token:
|
|
387
|
+
token: y || x
|
|
388
388
|
}, {
|
|
389
389
|
onSuccess(t) {
|
|
390
|
-
t?.delete_scheduleEmailReports_by_pk?.id ?
|
|
391
|
-
data:
|
|
390
|
+
t?.delete_scheduleEmailReports_by_pk?.id ? M.mutate({
|
|
391
|
+
data: ve({
|
|
392
392
|
embedId: b?.embedDataAppId || null,
|
|
393
393
|
emails: l,
|
|
394
394
|
externalDashboardId: i || b?.externalDashboard?.id,
|
|
395
|
-
data:
|
|
396
|
-
guestToken:
|
|
397
|
-
nextScheduledAt:
|
|
395
|
+
data: T,
|
|
396
|
+
guestToken: y || x,
|
|
397
|
+
nextScheduledAt: w,
|
|
398
398
|
sharingSettingsId: a || b?.sharingSettingsId,
|
|
399
399
|
subject: c,
|
|
400
|
-
isDownloadFile:
|
|
401
|
-
downloadFileFormat:
|
|
400
|
+
isDownloadFile: _,
|
|
401
|
+
downloadFileFormat: v,
|
|
402
402
|
timeConfigurations: {
|
|
403
403
|
...n,
|
|
404
404
|
clients: s?.clients || [],
|
|
@@ -406,33 +406,33 @@ var q = {
|
|
|
406
406
|
isSelectAll: n?.isSelectAll,
|
|
407
407
|
isShowViewDashboardBtn: n?.isShowViewDashboardBtn
|
|
408
408
|
},
|
|
409
|
-
isInternal: !!
|
|
409
|
+
isInternal: !!y
|
|
410
410
|
}, S),
|
|
411
|
-
token:
|
|
411
|
+
token: y || x
|
|
412
412
|
}, {
|
|
413
413
|
onSuccess(t) {
|
|
414
|
-
t?.insert_scheduleEmailReports_one?.id ? (r("schedule-report-success", { action: "update" }),
|
|
414
|
+
t?.insert_scheduleEmailReports_one?.id ? (r("schedule-report-success", { action: "update" }), J("update", n, !!y), O(""), E(!1), A(!0), o?.(), e()) : (q("update", "save_unexpected_response"), O("Unable to update the schedule. Please try again."), E(!1), A(!1));
|
|
415
415
|
},
|
|
416
416
|
onError(e) {
|
|
417
|
-
|
|
417
|
+
q("update", "save_failed", e), O("Unable to update the schedule. Please try again later."), E(!1), A(!1);
|
|
418
418
|
}
|
|
419
|
-
}) : (
|
|
419
|
+
}) : (q("update", "delete_unexpected_response"), O("Unable to update the schedule. Could not remove the existing schedule."), E(!1), A(!1));
|
|
420
420
|
},
|
|
421
421
|
onError(e) {
|
|
422
|
-
|
|
422
|
+
q("update", "delete_failed", e), O("Unable to update the schedule. Please try again later."), E(!1), A(!1);
|
|
423
423
|
}
|
|
424
|
-
}) :
|
|
425
|
-
data:
|
|
424
|
+
}) : M.mutate({
|
|
425
|
+
data: ve({
|
|
426
426
|
embedId: b?.embedDataAppId || null,
|
|
427
427
|
emails: l,
|
|
428
428
|
externalDashboardId: i || b?.externalDashboard?.id,
|
|
429
|
-
data:
|
|
430
|
-
guestToken:
|
|
431
|
-
nextScheduledAt:
|
|
429
|
+
data: T,
|
|
430
|
+
guestToken: y || x,
|
|
431
|
+
nextScheduledAt: w,
|
|
432
432
|
sharingSettingsId: a || b?.sharingSettingsId,
|
|
433
433
|
subject: c,
|
|
434
|
-
isDownloadFile:
|
|
435
|
-
downloadFileFormat:
|
|
434
|
+
isDownloadFile: _,
|
|
435
|
+
downloadFileFormat: v,
|
|
436
436
|
timeConfigurations: {
|
|
437
437
|
...n,
|
|
438
438
|
clients: s?.clients || [],
|
|
@@ -440,57 +440,57 @@ var q = {
|
|
|
440
440
|
isSelectAll: n?.isSelectAll,
|
|
441
441
|
isShowViewDashboardBtn: n?.isShowViewDashboardBtn
|
|
442
442
|
},
|
|
443
|
-
isInternal: !!
|
|
443
|
+
isInternal: !!y
|
|
444
444
|
}, S),
|
|
445
|
-
token:
|
|
445
|
+
token: y || x
|
|
446
446
|
}, {
|
|
447
447
|
onSuccess(t) {
|
|
448
|
-
t?.insert_scheduleEmailReports_one?.id ? (r("schedule-report-success", { action: "create" }),
|
|
448
|
+
t?.insert_scheduleEmailReports_one?.id ? (r("schedule-report-success", { action: "create" }), J("create", n, !!y), O(""), E(!1), A(!0), o?.(), e()) : (q("create", "save_unexpected_response"), O("Unable to create the schedule. Please try again."), E(!1), A(!1));
|
|
449
449
|
},
|
|
450
450
|
onError(e) {
|
|
451
|
-
|
|
451
|
+
q("create", "save_failed", e), O("Unable to create the schedule. Please try again later."), E(!1), A(!1);
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
454
|
};
|
|
455
455
|
return {
|
|
456
|
-
register:
|
|
457
|
-
handleSubmit:
|
|
458
|
-
watch:
|
|
459
|
-
control:
|
|
460
|
-
setValue:
|
|
461
|
-
getValues:
|
|
462
|
-
reset:
|
|
456
|
+
register: u,
|
|
457
|
+
handleSubmit: d,
|
|
458
|
+
watch: f,
|
|
459
|
+
control: m,
|
|
460
|
+
setValue: h,
|
|
461
|
+
getValues: g,
|
|
462
|
+
reset: _,
|
|
463
463
|
dashboardName: "",
|
|
464
|
-
onSave:
|
|
464
|
+
onSave: d(async (e) => {
|
|
465
465
|
try {
|
|
466
|
-
await
|
|
466
|
+
await re(e);
|
|
467
467
|
} catch (e) {
|
|
468
468
|
let t = C ? "update" : "create";
|
|
469
|
-
|
|
469
|
+
q(t, "unhandled", e), O(t === "update" ? "Unable to update the schedule. Please try again later." : "Unable to create the schedule. Please try again later."), E(!1), A(!1);
|
|
470
470
|
}
|
|
471
471
|
}),
|
|
472
|
-
isLoading:
|
|
473
|
-
isSuccess:
|
|
474
|
-
error:
|
|
472
|
+
isLoading: T,
|
|
473
|
+
isSuccess: k,
|
|
474
|
+
error: D,
|
|
475
475
|
scheduleReportConfig: C,
|
|
476
|
-
onDelete:
|
|
476
|
+
onDelete: d(async () => {
|
|
477
477
|
let n = await t?.(C?.guestToken);
|
|
478
|
-
|
|
478
|
+
O(""), E(!0), j(!1), A(!1), N.mutate({
|
|
479
479
|
id: C?.id,
|
|
480
480
|
token: n || x
|
|
481
481
|
}, {
|
|
482
482
|
onSuccess(t) {
|
|
483
|
-
t?.delete_scheduleEmailReports_by_pk?.id ? (r("schedule-report-success", { action: "delete" }),
|
|
483
|
+
t?.delete_scheduleEmailReports_by_pk?.id ? (r("schedule-report-success", { action: "delete" }), O(""), E(!1), _(), j(!0), o?.(), e()) : (q("delete", "delete_unexpected_response"), O("Unable to delete the schedule. Please try again."), E(!1), j(!1));
|
|
484
484
|
},
|
|
485
485
|
onError(e) {
|
|
486
|
-
|
|
486
|
+
q("delete", "delete_failed", e), O("Unable to delete the schedule. Please try again later."), E(!1), j(!1);
|
|
487
487
|
}
|
|
488
488
|
});
|
|
489
489
|
}),
|
|
490
|
-
isDeleted:
|
|
491
|
-
errors:
|
|
490
|
+
isDeleted: te,
|
|
491
|
+
errors: y
|
|
492
492
|
};
|
|
493
|
-
},
|
|
493
|
+
}, X = {
|
|
494
494
|
formWrapper: "_formWrapper_rutu9_8",
|
|
495
495
|
"form-primary-text": "_form-primary-text_rutu9_12",
|
|
496
496
|
"week-days-container": "_week-days-container_rutu9_16",
|
|
@@ -505,25 +505,25 @@ var q = {
|
|
|
505
505
|
"field-width": "_field-width_rutu9_48",
|
|
506
506
|
"time-dropdown-field": "_time-dropdown-field_rutu9_52",
|
|
507
507
|
"success-text": "_success-text_rutu9_56"
|
|
508
|
-
},
|
|
508
|
+
}, xe = (e) => e?.length ? e.flatMap((e) => e.columns?.map((t) => ({
|
|
509
509
|
...t,
|
|
510
510
|
_tableName: e.tableName
|
|
511
|
-
})) || []) : [],
|
|
512
|
-
let { control:
|
|
511
|
+
})) || []) : [], Se = (e, t, n) => he(e, !!t).filter((e) => C(e, n)), Ce = ({ onCancel: e, getInternalToken: t, scheduleReportConfig: n, chartOptions: r, externalDashboardId: i, sharingSettingsId: p, onComplete: _, clientDropDown: v, clientState: S, isEmbed: T, dashboardFilters: ee, workspaceId: te, datasourceId: ie, encryptedClientId: de, companyTenancyType: fe, clientColumnType: pe }) => {
|
|
512
|
+
let { control: F, register: I, setValue: z, watch: W, onSave: he, isLoading: G, error: ge, isSuccess: _e, scheduleReportConfig: K, onDelete: ve, isDeleted: q, errors: J } = be({
|
|
513
513
|
onCancel: e,
|
|
514
514
|
getInternalToken: t,
|
|
515
515
|
scheduleReportConfig: n,
|
|
516
516
|
externalDashboardId: i,
|
|
517
|
-
sharingSettingsId:
|
|
517
|
+
sharingSettingsId: p,
|
|
518
518
|
onComplete: _,
|
|
519
519
|
clientState: S
|
|
520
|
-
}), { data:
|
|
521
|
-
tenancyLevel:
|
|
520
|
+
}), { data: Y, token: ye } = c(), Ce = te || Y?.workspace?.id || "", we = ie || Y?.datasourceId || "", Te = de || "", Ee = fe || Y?.companyTenancyType, De = pe || Y?.clientColumnType, Z = R(() => S?.isDisableClient ? [] : S?.clients || [], [S?.clients, S?.isDisableClient]), Q = R(() => Z.map((e) => e.value).filter((e) => e != null && e !== ""), [Z]), Oe = D({
|
|
521
|
+
tenancyLevel: Ee,
|
|
522
522
|
isDisableClient: S?.isDisableClient === !0,
|
|
523
|
-
selectedClientCount:
|
|
524
|
-
}),
|
|
525
|
-
let e =
|
|
526
|
-
if (!e?.length ||
|
|
523
|
+
selectedClientCount: Z.length
|
|
524
|
+
}), ke = R(() => {
|
|
525
|
+
let e = ee || Y?.externalDashboard?.filters, t = Z[0]?.value;
|
|
526
|
+
if (!e?.length || Ee !== "DATABASE" || Z.length !== 1 || !t) return e;
|
|
527
527
|
let n = (e) => {
|
|
528
528
|
let n = e || "", r = n.lastIndexOf("."), i = r >= 0 ? n.slice(r + 1) : n;
|
|
529
529
|
return i ? `${t}.${i}` : n;
|
|
@@ -541,51 +541,51 @@ var q = {
|
|
|
541
541
|
}))
|
|
542
542
|
}));
|
|
543
543
|
}, [
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
]), [
|
|
544
|
+
ee,
|
|
545
|
+
Y?.externalDashboard?.filters,
|
|
546
|
+
Ee,
|
|
547
|
+
Z
|
|
548
|
+
]), [Ae, je] = B(!0), [Me, Ne] = B(!0), [Pe, Fe] = B(!0), [Ie, Le] = B(!1), [Re, ze] = B({
|
|
549
549
|
showDelete: !1,
|
|
550
550
|
deleteFunction: () => {}
|
|
551
|
-
}), [
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
]),
|
|
551
|
+
}), [Be, Ve] = B(""), $ = R(() => xe(ke), [ke]), He = R(() => Se($, T, Q), [
|
|
552
|
+
$,
|
|
553
|
+
T,
|
|
554
|
+
Q
|
|
555
|
+
]), Ue = R(() => He.map((e) => ({
|
|
556
556
|
value: e.label || e.name,
|
|
557
557
|
label: e.label || e.name
|
|
558
|
-
})), [
|
|
559
|
-
if (!
|
|
560
|
-
let e =
|
|
558
|
+
})), [He]), We = W("selectedFilterNames") || [], Ge = W("scheduleFilters") || {}, [Ke, qe] = B([]), [Je, Ye] = B(!1), Xe = R(() => {
|
|
559
|
+
if (!We.length) return [];
|
|
560
|
+
let e = ke;
|
|
561
561
|
return e?.length ? e.map((e) => ({
|
|
562
562
|
...e,
|
|
563
|
-
columns: (e?.columns || []).filter((e) =>
|
|
563
|
+
columns: (e?.columns || []).filter((e) => We.some((t) => t.value === (e.label || e.name))).map((e) => ({
|
|
564
564
|
...e,
|
|
565
565
|
isShowHorizontal: !0
|
|
566
566
|
}))
|
|
567
567
|
})).filter((e) => e.columns.length > 0) : [];
|
|
568
|
-
}, [
|
|
569
|
-
|
|
570
|
-
if (
|
|
568
|
+
}, [We, ke]);
|
|
569
|
+
L(() => {
|
|
570
|
+
if (!Je) return;
|
|
571
571
|
let e = {};
|
|
572
|
-
|
|
572
|
+
Ke.forEach((t) => {
|
|
573
573
|
if (!t.value || Array.isArray(t.value) && !t.value.length || t.value === "*") return;
|
|
574
574
|
let n = t.label || t.column;
|
|
575
|
-
t.as === "date" || t.as === "number" ? e[n] = t.value : Array.isArray(t.value) ? e[n] = t.value.map((e) => typeof e == "string" ?
|
|
576
|
-
}),
|
|
575
|
+
t.as === "date" || t.as === "number" ? e[n] = t.value : Array.isArray(t.value) ? e[n] = t.value.map((e) => typeof e == "string" ? N(e) : e) : typeof t.value == "string" ? e[n] = N(t.value) : e[n] = t.value;
|
|
576
|
+
}), z("scheduleFilters", e);
|
|
577
577
|
}, [
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
]),
|
|
582
|
-
let e =
|
|
583
|
-
if (!
|
|
578
|
+
Ke,
|
|
579
|
+
Je,
|
|
580
|
+
z
|
|
581
|
+
]), L(() => {
|
|
582
|
+
let e = W("scheduleFilters");
|
|
583
|
+
if (!Ke.length && e && Object.keys(e).length && $.length) {
|
|
584
584
|
let t = [];
|
|
585
585
|
for (let [n, r] of Object.entries(e)) {
|
|
586
586
|
if (r == null) continue;
|
|
587
|
-
let e =
|
|
588
|
-
e &&
|
|
587
|
+
let e = $.find((e) => (e.label || e.name) === n);
|
|
588
|
+
e && C(e, Q) && t.push({
|
|
589
589
|
column: e.name,
|
|
590
590
|
operator: e.as === "date" || e.as === "number" ? "BETWEEN" : e.filterVariant?.value || "IN",
|
|
591
591
|
value: r,
|
|
@@ -597,51 +597,51 @@ var q = {
|
|
|
597
597
|
filterVariant: e.filterVariant
|
|
598
598
|
});
|
|
599
599
|
}
|
|
600
|
-
t.length &&
|
|
600
|
+
t.length && qe(t);
|
|
601
601
|
}
|
|
602
602
|
Ye(!0);
|
|
603
603
|
}, [
|
|
604
|
-
|
|
604
|
+
Ke.length,
|
|
605
|
+
$,
|
|
605
606
|
Q,
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
if (!$) return;
|
|
607
|
+
W
|
|
608
|
+
]), L(() => {
|
|
609
|
+
if (!Je) return;
|
|
610
610
|
let e = (e) => {
|
|
611
611
|
if (!e) return !0;
|
|
612
|
-
let t =
|
|
613
|
-
return t ?
|
|
614
|
-
}, t =
|
|
615
|
-
n.length !== t.length &&
|
|
616
|
-
let r =
|
|
612
|
+
let t = $.find((t) => (t.label || t.name) === e);
|
|
613
|
+
return t ? C(t, Q) : !1;
|
|
614
|
+
}, t = W("selectedFilterNames") || [], n = t.filter((t) => e(t.value));
|
|
615
|
+
n.length !== t.length && z("selectedFilterNames", n);
|
|
616
|
+
let r = W("scheduleFilters") || {}, i = {}, a = !1;
|
|
617
617
|
Object.entries(r).forEach(([t, n]) => {
|
|
618
618
|
e(t) ? i[t] = n : a = !0;
|
|
619
|
-
}), a &&
|
|
619
|
+
}), a && z("scheduleFilters", i), qe((t) => {
|
|
620
620
|
let n = t.filter((t) => e(t.label || t.column));
|
|
621
621
|
return n.length === t.length ? t : n;
|
|
622
622
|
});
|
|
623
623
|
}, [
|
|
624
|
-
Q,
|
|
625
624
|
$,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
(
|
|
632
|
-
|
|
633
|
-
|
|
625
|
+
Je,
|
|
626
|
+
Q,
|
|
627
|
+
z,
|
|
628
|
+
W
|
|
629
|
+
]), L(() => {
|
|
630
|
+
if (!Je || Oe) return;
|
|
631
|
+
(W("selectedFilterNames") || []).length && z("selectedFilterNames", []);
|
|
632
|
+
let e = W("scheduleFilters") || {};
|
|
633
|
+
Object.keys(e).length && z("scheduleFilters", {}), qe((e) => e.length ? [] : e);
|
|
634
634
|
}, [
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
635
|
+
Oe,
|
|
636
|
+
Je,
|
|
637
|
+
z,
|
|
638
|
+
W
|
|
639
639
|
]);
|
|
640
640
|
let Ze = (e) => e.map(({ value: e, label: t }) => ({
|
|
641
641
|
value: e,
|
|
642
642
|
label: t
|
|
643
643
|
})), Qe = (e, t, n) => {
|
|
644
|
-
let r =
|
|
644
|
+
let r = W(e) || n, i = t.find((e) => e.value === r) ?? t.find((e) => e.value === n);
|
|
645
645
|
return {
|
|
646
646
|
current: r,
|
|
647
647
|
selectedOption: i ? {
|
|
@@ -653,79 +653,79 @@ var q = {
|
|
|
653
653
|
},
|
|
654
654
|
hint: i?.hint
|
|
655
655
|
};
|
|
656
|
-
}, $e = Qe("orientation",
|
|
657
|
-
return /* @__PURE__ */
|
|
656
|
+
}, $e = Qe("orientation", P, oe.orientation), et = Qe("density", ce, oe.density), tt = Qe("tableMode", ue, oe.tableMode), nt = Qe("deliveryMode", ne, ae);
|
|
657
|
+
return /* @__PURE__ */ H(V, { children: /* @__PURE__ */ U("form", {
|
|
658
658
|
className: "dbn:w-full",
|
|
659
659
|
style: { height: "calc(100% - 44px)" },
|
|
660
|
-
onSubmit:
|
|
660
|
+
onSubmit: he,
|
|
661
661
|
children: [
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
className:
|
|
664
|
-
children: /* @__PURE__ */
|
|
662
|
+
/* @__PURE__ */ H("div", {
|
|
663
|
+
className: X.formWrapper,
|
|
664
|
+
children: /* @__PURE__ */ U("div", {
|
|
665
665
|
className: "dbn:flex dbn:flex-col dbn:px-5 dbn:w-full dbn:h-full dbn:gap-4",
|
|
666
666
|
children: [
|
|
667
|
-
/* @__PURE__ */
|
|
667
|
+
/* @__PURE__ */ H(h, {
|
|
668
668
|
variant: "popover",
|
|
669
|
-
leftIcon: /* @__PURE__ */
|
|
670
|
-
className:
|
|
671
|
-
children: /* @__PURE__ */
|
|
669
|
+
leftIcon: /* @__PURE__ */ H("span", {
|
|
670
|
+
className: Ae ? "" : "dbn:-rotate-90",
|
|
671
|
+
children: /* @__PURE__ */ H(E, { name: "caret-down-fill" })
|
|
672
672
|
}),
|
|
673
|
-
onClick: () =>
|
|
673
|
+
onClick: () => je(!Ae),
|
|
674
674
|
children: "General"
|
|
675
675
|
}),
|
|
676
|
-
|
|
676
|
+
Ae && /* @__PURE__ */ U(k, {
|
|
677
677
|
direction: "col",
|
|
678
678
|
className: "dbn:gap-2 dbn:border-b dbn:border-secondary dbn:pb-5",
|
|
679
|
-
children: [/* @__PURE__ */
|
|
679
|
+
children: [/* @__PURE__ */ H(l, {
|
|
680
680
|
label: "Subject Line",
|
|
681
681
|
placeholder: "e.g. Monthly dashboard report",
|
|
682
|
-
register:
|
|
683
|
-
error:
|
|
682
|
+
register: I("subject", se),
|
|
683
|
+
error: J.subject?.message,
|
|
684
684
|
isImportant: !0
|
|
685
|
-
}), /* @__PURE__ */
|
|
686
|
-
control:
|
|
685
|
+
}), /* @__PURE__ */ H(le, {
|
|
686
|
+
control: F,
|
|
687
687
|
type: "text",
|
|
688
688
|
label: "Send to",
|
|
689
689
|
placeholder: "Enter email addresses",
|
|
690
|
-
register:
|
|
691
|
-
error:
|
|
690
|
+
register: I("emails", { validate: (e) => e && e.length > 0 || "At least one email is required" }),
|
|
691
|
+
error: J.emails?.message,
|
|
692
692
|
onChange: () => {
|
|
693
|
-
|
|
693
|
+
J?.emails && (J.emails.message = "");
|
|
694
694
|
},
|
|
695
|
-
onChangeTags: (e) =>
|
|
696
|
-
defaultTagValue: n?.timeConfigurations?.emails ||
|
|
695
|
+
onChangeTags: (e) => z("emails", e),
|
|
696
|
+
defaultTagValue: n?.timeConfigurations?.emails || K?.timeConfigurations?.emails,
|
|
697
697
|
width: "",
|
|
698
698
|
regexStr: RegExp("^(?![.])[a-zA-Z0-9._%+-]+(?<![.])@(?:(?!-)[a-zA-Z](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$", ""),
|
|
699
699
|
tagType: "Email address",
|
|
700
|
-
tagError:
|
|
701
|
-
setTagError:
|
|
700
|
+
tagError: Be,
|
|
701
|
+
setTagError: Ve,
|
|
702
702
|
isImportant: !0
|
|
703
703
|
})]
|
|
704
704
|
}),
|
|
705
|
-
/* @__PURE__ */
|
|
705
|
+
/* @__PURE__ */ H(h, {
|
|
706
706
|
variant: "popover",
|
|
707
|
-
leftIcon: /* @__PURE__ */
|
|
708
|
-
className:
|
|
709
|
-
children: /* @__PURE__ */
|
|
707
|
+
leftIcon: /* @__PURE__ */ H("span", {
|
|
708
|
+
className: Me ? "" : "dbn:-rotate-90",
|
|
709
|
+
children: /* @__PURE__ */ H(E, { name: "caret-down-fill" })
|
|
710
710
|
}),
|
|
711
|
-
onClick: () =>
|
|
711
|
+
onClick: () => Ne(!Me),
|
|
712
712
|
children: "Report Content Settings"
|
|
713
713
|
}),
|
|
714
|
-
|
|
714
|
+
Me && /* @__PURE__ */ U(k, {
|
|
715
715
|
direction: "col",
|
|
716
716
|
className: "dbn:gap-2 dbn:border-b dbn:border-secondary dbn:pb-5",
|
|
717
717
|
children: [
|
|
718
718
|
" ",
|
|
719
|
-
/* @__PURE__ */
|
|
720
|
-
control:
|
|
719
|
+
/* @__PURE__ */ H(M, {
|
|
720
|
+
control: F,
|
|
721
721
|
name: "charts",
|
|
722
722
|
rules: { validate: (e) => e && e.length > 0 ? !0 : "Please select at least one chart" },
|
|
723
|
-
render: ({ field: e }) => /* @__PURE__ */ V
|
|
723
|
+
render: ({ field: e }) => /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(m, {
|
|
724
724
|
label: "Charts to Attach",
|
|
725
725
|
selectedOption: r.filter((t) => e.value?.some((e) => e === t.value)),
|
|
726
726
|
options: r,
|
|
727
727
|
onChange: (t) => {
|
|
728
|
-
|
|
728
|
+
z("isSelectAll", t?.length === r?.length), e.onChange(t?.map((e) => e.value || []));
|
|
729
729
|
},
|
|
730
730
|
buttonWidth: "100%",
|
|
731
731
|
menuWidth: "100%",
|
|
@@ -733,60 +733,60 @@ var q = {
|
|
|
733
733
|
isSelectAllEnabled: !0,
|
|
734
734
|
useSemanticSelectAll: !1,
|
|
735
735
|
isImportant: !0
|
|
736
|
-
}),
|
|
736
|
+
}), J.charts?.message && /* @__PURE__ */ H(g, {
|
|
737
737
|
variant: "body-text-2",
|
|
738
738
|
color: "alert",
|
|
739
|
-
children: `${
|
|
739
|
+
children: `${J.charts.message}`
|
|
740
740
|
})] })
|
|
741
741
|
}),
|
|
742
|
-
!v && (S?.isDisableClient ||
|
|
742
|
+
!v && (S?.isDisableClient || K?.timeConfigurations?.isDisableClient || Y?.isAllClient) && /* @__PURE__ */ H(g, {
|
|
743
743
|
variant: "body-text-3",
|
|
744
744
|
color: "warning",
|
|
745
745
|
children: "Recipients see data for all clients."
|
|
746
746
|
}),
|
|
747
747
|
v,
|
|
748
|
-
t && /* @__PURE__ */
|
|
748
|
+
t && /* @__PURE__ */ U(k, {
|
|
749
749
|
className: "dbn:gap-2",
|
|
750
750
|
alignItems: "center",
|
|
751
|
-
children: [/* @__PURE__ */
|
|
751
|
+
children: [/* @__PURE__ */ H(me, {
|
|
752
752
|
onChange: (e) => {
|
|
753
|
-
|
|
753
|
+
z("isShowViewDashboardBtn", e);
|
|
754
754
|
},
|
|
755
|
-
enabled: !!
|
|
755
|
+
enabled: !!W("isShowViewDashboardBtn"),
|
|
756
756
|
placeholder: "Include 'View Full Dashboard' Button",
|
|
757
757
|
name: "enableDashboardView"
|
|
758
|
-
}), /* @__PURE__ */
|
|
758
|
+
}), /* @__PURE__ */ H(d, {
|
|
759
759
|
text: "Adds a ‘View Full Dashboard’ button in the email, allowing recipients to access metrics in detail.",
|
|
760
760
|
position: "bottom",
|
|
761
761
|
isSingleLineTxt: !1,
|
|
762
|
-
children: /* @__PURE__ */
|
|
762
|
+
children: /* @__PURE__ */ H(E, { name: "info" })
|
|
763
763
|
})]
|
|
764
764
|
}),
|
|
765
|
-
/* @__PURE__ */
|
|
765
|
+
/* @__PURE__ */ U(k, {
|
|
766
766
|
className: "dbn:gap-2",
|
|
767
767
|
alignItems: "center",
|
|
768
|
-
children: [/* @__PURE__ */
|
|
768
|
+
children: [/* @__PURE__ */ H(me, {
|
|
769
769
|
onChange: (e) => {
|
|
770
|
-
|
|
770
|
+
z("isDownloadFile", e);
|
|
771
771
|
},
|
|
772
|
-
enabled: !!
|
|
772
|
+
enabled: !!W("isDownloadFile"),
|
|
773
773
|
placeholder: "Share Download file",
|
|
774
774
|
name: "isDownloadFile"
|
|
775
|
-
}), /* @__PURE__ */
|
|
775
|
+
}), /* @__PURE__ */ H(d, {
|
|
776
776
|
text: "Share the files in the email, allowing recipients to download.",
|
|
777
777
|
position: "bottom",
|
|
778
778
|
isSingleLineTxt: !1,
|
|
779
|
-
children: /* @__PURE__ */
|
|
779
|
+
children: /* @__PURE__ */ H(E, { name: "info" })
|
|
780
780
|
})]
|
|
781
781
|
}),
|
|
782
|
-
!!
|
|
783
|
-
control:
|
|
782
|
+
!!W("isDownloadFile") && /* @__PURE__ */ H(M, {
|
|
783
|
+
control: F,
|
|
784
784
|
name: "downloadFileFormat",
|
|
785
785
|
rules: { validate: (e) => e ? !0 : "Please select file format" },
|
|
786
|
-
render: ({ field: e }) => /* @__PURE__ */ V
|
|
786
|
+
render: ({ field: e }) => /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(f, {
|
|
787
787
|
label: "Download File Format",
|
|
788
|
-
selectedOption:
|
|
789
|
-
options:
|
|
788
|
+
selectedOption: w.find((t) => e.value === t.value) || w[0],
|
|
789
|
+
options: w,
|
|
790
790
|
onChange: (t) => {
|
|
791
791
|
e.onChange(t?.value);
|
|
792
792
|
},
|
|
@@ -794,43 +794,43 @@ var q = {
|
|
|
794
794
|
menuWidth: "100%",
|
|
795
795
|
isSearchEnabled: !0,
|
|
796
796
|
isImportant: !0
|
|
797
|
-
}),
|
|
797
|
+
}), J?.downloadFileFormat?.message && /* @__PURE__ */ H(g, {
|
|
798
798
|
variant: "body-text-2",
|
|
799
799
|
color: "alert",
|
|
800
|
-
children: `${
|
|
800
|
+
children: `${J?.downloadFileFormat?.message}`
|
|
801
801
|
})] })
|
|
802
802
|
}),
|
|
803
|
-
|
|
803
|
+
Ue.length > 0 && Oe && /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(m, {
|
|
804
804
|
label: "Filters",
|
|
805
|
-
options:
|
|
806
|
-
selectedOption:
|
|
805
|
+
options: Ue,
|
|
806
|
+
selectedOption: We,
|
|
807
807
|
onChange: (e) => {
|
|
808
|
-
|
|
809
|
-
let t = { ...
|
|
808
|
+
z("selectedFilterNames", e || []);
|
|
809
|
+
let t = { ...Ge }, n = (e || []).map((e) => e.value);
|
|
810
810
|
Object.keys(t).forEach((e) => {
|
|
811
811
|
n.includes(e) || delete t[e];
|
|
812
|
-
}),
|
|
812
|
+
}), z("scheduleFilters", t);
|
|
813
813
|
},
|
|
814
814
|
buttonWidth: "100%",
|
|
815
815
|
menuWidth: "100%",
|
|
816
816
|
isSearchEnabled: !0
|
|
817
|
-
}), Xe.length > 0 && /* @__PURE__ */
|
|
818
|
-
appliedfilters:
|
|
819
|
-
setAppliedFilters:
|
|
817
|
+
}), Xe.length > 0 && /* @__PURE__ */ H(x, {
|
|
818
|
+
appliedfilters: Ke,
|
|
819
|
+
setAppliedFilters: qe,
|
|
820
820
|
filters: Xe,
|
|
821
821
|
internal: {
|
|
822
822
|
isInternal: !0,
|
|
823
|
-
workspaceId:
|
|
823
|
+
workspaceId: Ce
|
|
824
824
|
},
|
|
825
|
-
datasourceId:
|
|
826
|
-
token:
|
|
827
|
-
encryptedClientId:
|
|
828
|
-
clientId:
|
|
829
|
-
clientScopeValues:
|
|
830
|
-
isAllClient: S?.isDisableClient ? !0 : !
|
|
831
|
-
isFrontendApp: !
|
|
832
|
-
tenancyLevel:
|
|
833
|
-
clientColumnType:
|
|
825
|
+
datasourceId: we,
|
|
826
|
+
token: ye || "",
|
|
827
|
+
encryptedClientId: Te,
|
|
828
|
+
clientId: Z[0]?.value ?? Y?.clientId,
|
|
829
|
+
clientScopeValues: Q,
|
|
830
|
+
isAllClient: S?.isDisableClient ? !0 : !Z.length && Y?.isAllClient,
|
|
831
|
+
isFrontendApp: !T,
|
|
832
|
+
tenancyLevel: Ee || "TABLE",
|
|
833
|
+
clientColumnType: De || "STRING",
|
|
834
834
|
theme: {
|
|
835
835
|
width: "100%",
|
|
836
836
|
variant: "static",
|
|
@@ -848,88 +848,88 @@ var q = {
|
|
|
848
848
|
})] })
|
|
849
849
|
]
|
|
850
850
|
}),
|
|
851
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ H(h, {
|
|
852
852
|
type: "button",
|
|
853
853
|
variant: "popover",
|
|
854
|
-
leftIcon: /* @__PURE__ */
|
|
855
|
-
className:
|
|
856
|
-
children: /* @__PURE__ */
|
|
854
|
+
leftIcon: /* @__PURE__ */ H("span", {
|
|
855
|
+
className: Ie ? "" : "dbn:-rotate-90",
|
|
856
|
+
children: /* @__PURE__ */ H(E, { name: "caret-down-fill" })
|
|
857
857
|
}),
|
|
858
858
|
"data-testid": "schedule-page-setup-toggle",
|
|
859
|
-
onClick: () =>
|
|
859
|
+
onClick: () => Le(!Ie),
|
|
860
860
|
children: "Page Setup & Delivery"
|
|
861
861
|
}),
|
|
862
|
-
|
|
862
|
+
Ie && /* @__PURE__ */ U(k, {
|
|
863
863
|
direction: "col",
|
|
864
864
|
className: "dbn:gap-3 dbn:border-b dbn:border-secondary dbn:pb-5",
|
|
865
865
|
children: [
|
|
866
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ U(k, {
|
|
867
867
|
direction: "col",
|
|
868
868
|
className: "dbn:gap-1",
|
|
869
|
-
children: [/* @__PURE__ */
|
|
869
|
+
children: [/* @__PURE__ */ H(f, {
|
|
870
870
|
label: "Orientation",
|
|
871
871
|
selectedOption: $e.selectedOption,
|
|
872
|
-
options: Ze(
|
|
873
|
-
onChange: (e) =>
|
|
872
|
+
options: Ze(P),
|
|
873
|
+
onChange: (e) => z("orientation", e?.value),
|
|
874
874
|
buttonWidth: "100%",
|
|
875
875
|
menuWidth: "100%"
|
|
876
|
-
}), /* @__PURE__ */
|
|
876
|
+
}), /* @__PURE__ */ H(g, {
|
|
877
877
|
variant: "small-text",
|
|
878
878
|
color: "gray",
|
|
879
879
|
children: $e.hint
|
|
880
880
|
})]
|
|
881
881
|
}),
|
|
882
|
-
/* @__PURE__ */
|
|
882
|
+
/* @__PURE__ */ U(k, {
|
|
883
883
|
direction: "col",
|
|
884
884
|
className: "dbn:gap-1",
|
|
885
|
-
children: [/* @__PURE__ */
|
|
885
|
+
children: [/* @__PURE__ */ H(f, {
|
|
886
886
|
label: "Cards per page",
|
|
887
887
|
selectedOption: et.selectedOption,
|
|
888
|
-
options: Ze(
|
|
889
|
-
onChange: (e) =>
|
|
888
|
+
options: Ze(ce),
|
|
889
|
+
onChange: (e) => z("density", e?.value),
|
|
890
890
|
buttonWidth: "100%",
|
|
891
891
|
menuWidth: "100%"
|
|
892
|
-
}), /* @__PURE__ */
|
|
892
|
+
}), /* @__PURE__ */ H(g, {
|
|
893
893
|
variant: "small-text",
|
|
894
894
|
color: "gray",
|
|
895
895
|
children: et.hint
|
|
896
896
|
})]
|
|
897
897
|
}),
|
|
898
|
-
/* @__PURE__ */
|
|
898
|
+
/* @__PURE__ */ U(k, {
|
|
899
899
|
direction: "col",
|
|
900
900
|
className: "dbn:gap-1",
|
|
901
|
-
children: [/* @__PURE__ */
|
|
901
|
+
children: [/* @__PURE__ */ H(f, {
|
|
902
902
|
label: "Long tables",
|
|
903
903
|
selectedOption: tt.selectedOption,
|
|
904
|
-
options: Ze(
|
|
905
|
-
onChange: (e) =>
|
|
904
|
+
options: Ze(ue),
|
|
905
|
+
onChange: (e) => z("tableMode", e?.value),
|
|
906
906
|
buttonWidth: "100%",
|
|
907
907
|
menuWidth: "100%"
|
|
908
|
-
}), /* @__PURE__ */
|
|
908
|
+
}), /* @__PURE__ */ H(g, {
|
|
909
909
|
variant: "small-text",
|
|
910
910
|
color: "gray",
|
|
911
911
|
children: tt.hint
|
|
912
912
|
})]
|
|
913
913
|
}),
|
|
914
|
-
tt.current === "paginate" && /* @__PURE__ */
|
|
914
|
+
tt.current === "paginate" && /* @__PURE__ */ H(l, {
|
|
915
915
|
type: "number",
|
|
916
916
|
label: "Rows per table",
|
|
917
917
|
"data-testid": "schedule-row-cap",
|
|
918
918
|
min: 1,
|
|
919
919
|
max: 5e3,
|
|
920
|
-
register:
|
|
920
|
+
register: I("tableRowCap", { setValueAs: (e) => `${e ?? ""}`.trim() === "" ? void 0 : re(Number(e)) })
|
|
921
921
|
}),
|
|
922
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ U(k, {
|
|
923
923
|
direction: "col",
|
|
924
924
|
className: "dbn:gap-1",
|
|
925
|
-
children: [/* @__PURE__ */
|
|
925
|
+
children: [/* @__PURE__ */ H(f, {
|
|
926
926
|
label: "Deliver as",
|
|
927
927
|
selectedOption: nt.selectedOption,
|
|
928
|
-
options: Ze(
|
|
929
|
-
onChange: (e) =>
|
|
928
|
+
options: Ze(ne),
|
|
929
|
+
onChange: (e) => z("deliveryMode", e?.value),
|
|
930
930
|
buttonWidth: "100%",
|
|
931
931
|
menuWidth: "100%"
|
|
932
|
-
}), /* @__PURE__ */
|
|
932
|
+
}), /* @__PURE__ */ H(g, {
|
|
933
933
|
variant: "small-text",
|
|
934
934
|
color: "gray",
|
|
935
935
|
children: nt.hint
|
|
@@ -937,26 +937,26 @@ var q = {
|
|
|
937
937
|
})
|
|
938
938
|
]
|
|
939
939
|
}),
|
|
940
|
-
/* @__PURE__ */
|
|
940
|
+
/* @__PURE__ */ H(h, {
|
|
941
941
|
variant: "popover",
|
|
942
|
-
leftIcon: /* @__PURE__ */
|
|
943
|
-
className:
|
|
944
|
-
children: /* @__PURE__ */
|
|
942
|
+
leftIcon: /* @__PURE__ */ H("span", {
|
|
943
|
+
className: Pe ? "" : "dbn:-rotate-90",
|
|
944
|
+
children: /* @__PURE__ */ H(E, { name: "caret-down-fill" })
|
|
945
945
|
}),
|
|
946
|
-
onClick: () =>
|
|
946
|
+
onClick: () => Fe(!Pe),
|
|
947
947
|
children: "Schedule Settings"
|
|
948
948
|
}),
|
|
949
|
-
|
|
949
|
+
Pe && /* @__PURE__ */ U(k, {
|
|
950
950
|
direction: "col",
|
|
951
951
|
className: "dbn:gap-2 dbn:pb-5",
|
|
952
952
|
children: [
|
|
953
953
|
" ",
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
control:
|
|
954
|
+
/* @__PURE__ */ H(M, {
|
|
955
|
+
control: F,
|
|
956
956
|
name: "frequency",
|
|
957
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
957
|
+
render: ({ field: e }) => /* @__PURE__ */ H(f, {
|
|
958
958
|
label: "Frequency of emails",
|
|
959
|
-
options:
|
|
959
|
+
options: b,
|
|
960
960
|
selectedOption: {
|
|
961
961
|
value: e.value,
|
|
962
962
|
label: e.value
|
|
@@ -968,79 +968,79 @@ var q = {
|
|
|
968
968
|
})
|
|
969
969
|
}),
|
|
970
970
|
(() => {
|
|
971
|
-
let e =
|
|
972
|
-
return e === "oneTime" ? /* @__PURE__ */
|
|
971
|
+
let e = W()?.frequency;
|
|
972
|
+
return e === "oneTime" ? /* @__PURE__ */ H(O, {
|
|
973
973
|
label: "Date",
|
|
974
974
|
isEnableSingleDate: !0,
|
|
975
975
|
minDate: /* @__PURE__ */ new Date(),
|
|
976
976
|
isImportant: !0,
|
|
977
|
-
onChange: (e) =>
|
|
978
|
-
defaultValues:
|
|
979
|
-
startDate: new Date(
|
|
980
|
-
endDate: new Date(
|
|
977
|
+
onChange: (e) => z("oneTimeDate", e),
|
|
978
|
+
defaultValues: W()?.oneTimeDate?.startDate ? {
|
|
979
|
+
startDate: new Date(W()?.oneTimeDate?.startDate),
|
|
980
|
+
endDate: new Date(W()?.oneTimeDate?.startDate),
|
|
981
981
|
timeGrainValue: "between"
|
|
982
982
|
} : void 0
|
|
983
|
-
}) : e === "Monthly" ? /* @__PURE__ */
|
|
983
|
+
}) : e === "Monthly" ? /* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(m, {
|
|
984
984
|
label: "Send on",
|
|
985
|
-
options:
|
|
986
|
-
selectedOption:
|
|
985
|
+
options: y,
|
|
986
|
+
selectedOption: W("newDate")?.length ? W("newDate") : [],
|
|
987
987
|
onChange: (e) => {
|
|
988
|
-
|
|
988
|
+
z("newDate", e);
|
|
989
989
|
},
|
|
990
990
|
buttonWidth: "100%",
|
|
991
991
|
menuWidth: "100%"
|
|
992
|
-
}) }) : e === "Daily" ? null : /* @__PURE__ */
|
|
992
|
+
}) }) : e === "Daily" ? null : /* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(m, {
|
|
993
993
|
label: "Send on",
|
|
994
994
|
options: s,
|
|
995
|
-
selectedOption: s?.filter((e) =>
|
|
995
|
+
selectedOption: s?.filter((e) => W("weekDays")?.[e.value]),
|
|
996
996
|
onChange: (e) => {
|
|
997
997
|
e?.length ? s?.forEach((t) => {
|
|
998
|
-
|
|
998
|
+
z(`weekDays.${t.value}`, e?.some((e) => t.value === e?.value));
|
|
999
999
|
}) : s?.forEach((e) => {
|
|
1000
|
-
|
|
1000
|
+
z(`weekDays.${e.value}`, !1);
|
|
1001
1001
|
});
|
|
1002
1002
|
},
|
|
1003
1003
|
buttonWidth: "100%",
|
|
1004
1004
|
menuWidth: "100%"
|
|
1005
1005
|
}) });
|
|
1006
1006
|
})(),
|
|
1007
|
-
/* @__PURE__ */
|
|
1008
|
-
className:
|
|
1009
|
-
children: [/* @__PURE__ */
|
|
1007
|
+
/* @__PURE__ */ U("div", {
|
|
1008
|
+
className: X["schedule-time"],
|
|
1009
|
+
children: [/* @__PURE__ */ U(g, {
|
|
1010
1010
|
variant: "input-label",
|
|
1011
|
-
children: ["Scheduled Time", /* @__PURE__ */
|
|
1011
|
+
children: ["Scheduled Time", /* @__PURE__ */ H("span", {
|
|
1012
1012
|
className: "dbn:text-alert",
|
|
1013
1013
|
children: "*"
|
|
1014
1014
|
})]
|
|
1015
|
-
}), /* @__PURE__ */
|
|
1016
|
-
className:
|
|
1015
|
+
}), /* @__PURE__ */ U("div", {
|
|
1016
|
+
className: X["time-element"],
|
|
1017
1017
|
"data-testid": "schedule-time",
|
|
1018
1018
|
children: [
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
className:
|
|
1021
|
-
children: /* @__PURE__ */
|
|
1019
|
+
/* @__PURE__ */ H("div", {
|
|
1020
|
+
className: X["time-hour-field"],
|
|
1021
|
+
children: /* @__PURE__ */ H(l, {
|
|
1022
1022
|
type: "number",
|
|
1023
1023
|
min: 1,
|
|
1024
1024
|
max: 12,
|
|
1025
1025
|
step: 1,
|
|
1026
|
-
register:
|
|
1026
|
+
register: I("hours", se),
|
|
1027
1027
|
defaultValue: 5,
|
|
1028
|
-
error:
|
|
1028
|
+
error: J.hours?.message,
|
|
1029
1029
|
id: "hours"
|
|
1030
1030
|
})
|
|
1031
1031
|
}),
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
-
className:
|
|
1032
|
+
/* @__PURE__ */ H("span", {
|
|
1033
|
+
className: X["time-separator"],
|
|
1034
1034
|
children: ":"
|
|
1035
1035
|
}),
|
|
1036
|
-
/* @__PURE__ */
|
|
1037
|
-
className:
|
|
1038
|
-
children: /* @__PURE__ */
|
|
1036
|
+
/* @__PURE__ */ H("div", {
|
|
1037
|
+
className: X["time-minute-field"],
|
|
1038
|
+
children: /* @__PURE__ */ H(l, {
|
|
1039
1039
|
type: "number",
|
|
1040
1040
|
min: 0,
|
|
1041
1041
|
max: 59,
|
|
1042
1042
|
step: 1,
|
|
1043
|
-
register:
|
|
1043
|
+
register: I("minutes", {
|
|
1044
1044
|
setValueAs: (e) => {
|
|
1045
1045
|
let t = `${e ?? ""}`.trim();
|
|
1046
1046
|
return t ? t.padStart(2, "0") : "00";
|
|
@@ -1051,17 +1051,17 @@ var q = {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
}),
|
|
1053
1053
|
defaultValue: 0,
|
|
1054
|
-
error:
|
|
1054
|
+
error: J.minutes?.message,
|
|
1055
1055
|
id: "minutes"
|
|
1056
1056
|
})
|
|
1057
1057
|
}),
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
control:
|
|
1058
|
+
/* @__PURE__ */ H(M, {
|
|
1059
|
+
control: F,
|
|
1060
1060
|
name: "time",
|
|
1061
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
1062
|
-
className:
|
|
1063
|
-
children: /* @__PURE__ */
|
|
1064
|
-
options:
|
|
1061
|
+
render: ({ field: e }) => /* @__PURE__ */ H("div", {
|
|
1062
|
+
className: X["time-dropdown-field"],
|
|
1063
|
+
children: /* @__PURE__ */ H(f, {
|
|
1064
|
+
options: a,
|
|
1065
1065
|
selectedOption: {
|
|
1066
1066
|
value: e.value,
|
|
1067
1067
|
label: e.value
|
|
@@ -1073,13 +1073,13 @@ var q = {
|
|
|
1073
1073
|
})
|
|
1074
1074
|
})
|
|
1075
1075
|
}),
|
|
1076
|
-
/* @__PURE__ */
|
|
1077
|
-
control:
|
|
1076
|
+
/* @__PURE__ */ H(M, {
|
|
1077
|
+
control: F,
|
|
1078
1078
|
name: "timezone",
|
|
1079
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
1080
|
-
className:
|
|
1081
|
-
children: /* @__PURE__ */
|
|
1082
|
-
options:
|
|
1079
|
+
render: ({ field: e }) => /* @__PURE__ */ H("div", {
|
|
1080
|
+
className: X["time-dropdown-field"],
|
|
1081
|
+
children: /* @__PURE__ */ H(f, {
|
|
1082
|
+
options: j,
|
|
1083
1083
|
selectedOption: {
|
|
1084
1084
|
value: e.value,
|
|
1085
1085
|
label: e.value
|
|
@@ -1096,13 +1096,13 @@ var q = {
|
|
|
1096
1096
|
})
|
|
1097
1097
|
]
|
|
1098
1098
|
}),
|
|
1099
|
-
|
|
1100
|
-
|
|
1099
|
+
ge && /* @__PURE__ */ H(o, { message: ge }),
|
|
1100
|
+
_e && /* @__PURE__ */ H(g, {
|
|
1101
1101
|
variant: "body-text-2",
|
|
1102
1102
|
color: "success",
|
|
1103
1103
|
children: "Scheduled successfully!"
|
|
1104
1104
|
}),
|
|
1105
|
-
|
|
1105
|
+
q && /* @__PURE__ */ H(g, {
|
|
1106
1106
|
variant: "body-text-2",
|
|
1107
1107
|
color: "success",
|
|
1108
1108
|
children: "Deleted successfully!"
|
|
@@ -1110,83 +1110,83 @@ var q = {
|
|
|
1110
1110
|
]
|
|
1111
1111
|
})
|
|
1112
1112
|
}),
|
|
1113
|
-
t && /* @__PURE__ */
|
|
1113
|
+
t && /* @__PURE__ */ H(k, {
|
|
1114
1114
|
direction: "row",
|
|
1115
1115
|
justify: "end",
|
|
1116
1116
|
className: "dbn:w-full dbn:border-t dbn:border-secondary dbn:py-3 dbn:h-[60px] dbn:px-5 dbn:items-center",
|
|
1117
|
-
children: /* @__PURE__ */
|
|
1117
|
+
children: /* @__PURE__ */ U(k, {
|
|
1118
1118
|
className: "dbn:gap-2",
|
|
1119
|
-
children: [n ||
|
|
1119
|
+
children: [n || K ? /* @__PURE__ */ H(h, {
|
|
1120
1120
|
type: "button",
|
|
1121
1121
|
variant: "secondary",
|
|
1122
1122
|
onClick: () => {
|
|
1123
|
-
|
|
1123
|
+
ze({
|
|
1124
1124
|
showDelete: !0,
|
|
1125
|
-
deleteFunction:
|
|
1125
|
+
deleteFunction: ve
|
|
1126
1126
|
});
|
|
1127
1127
|
},
|
|
1128
|
-
isDisabled:
|
|
1128
|
+
isDisabled: G,
|
|
1129
1129
|
className: "dbn:bg-gray dbn:border-secondary cta-secondary",
|
|
1130
1130
|
children: "Delete"
|
|
1131
|
-
}) : /* @__PURE__ */
|
|
1131
|
+
}) : /* @__PURE__ */ H(h, {
|
|
1132
1132
|
type: "reset",
|
|
1133
1133
|
variant: "tab",
|
|
1134
1134
|
onClick: () => e(),
|
|
1135
|
-
isDisabled:
|
|
1135
|
+
isDisabled: G,
|
|
1136
1136
|
className: "cta-secondary",
|
|
1137
1137
|
children: "Cancel"
|
|
1138
|
-
}), /* @__PURE__ */
|
|
1138
|
+
}), /* @__PURE__ */ H(h, {
|
|
1139
1139
|
variant: "primary",
|
|
1140
1140
|
type: "submit",
|
|
1141
|
-
isDisabled:
|
|
1141
|
+
isDisabled: G || !!Be,
|
|
1142
1142
|
className: "cta-primary",
|
|
1143
|
-
children: n ||
|
|
1143
|
+
children: n || K ? "Update" : "Save"
|
|
1144
1144
|
})]
|
|
1145
1145
|
})
|
|
1146
1146
|
}),
|
|
1147
|
-
!t && /* @__PURE__ */
|
|
1147
|
+
!t && /* @__PURE__ */ U(u, { children: [n || K ? /* @__PURE__ */ H(h, {
|
|
1148
1148
|
type: "button",
|
|
1149
1149
|
variant: "secondary",
|
|
1150
1150
|
onClick: () => {
|
|
1151
|
-
|
|
1151
|
+
ze({
|
|
1152
1152
|
showDelete: !0,
|
|
1153
|
-
deleteFunction:
|
|
1153
|
+
deleteFunction: ve
|
|
1154
1154
|
});
|
|
1155
1155
|
},
|
|
1156
|
-
isDisabled:
|
|
1156
|
+
isDisabled: G,
|
|
1157
1157
|
className: "cta-secondary",
|
|
1158
1158
|
children: "Delete"
|
|
1159
|
-
}) : /* @__PURE__ */
|
|
1159
|
+
}) : /* @__PURE__ */ H(h, {
|
|
1160
1160
|
type: "reset",
|
|
1161
1161
|
variant: "tab",
|
|
1162
1162
|
onClick: () => e(),
|
|
1163
|
-
isDisabled:
|
|
1163
|
+
isDisabled: G,
|
|
1164
1164
|
className: "cta-secondary",
|
|
1165
1165
|
children: "Cancel"
|
|
1166
|
-
}), /* @__PURE__ */
|
|
1166
|
+
}), /* @__PURE__ */ H(h, {
|
|
1167
1167
|
variant: "primary",
|
|
1168
1168
|
type: "submit",
|
|
1169
|
-
isDisabled:
|
|
1169
|
+
isDisabled: G,
|
|
1170
1170
|
className: "cta-primary",
|
|
1171
|
-
children: n ||
|
|
1171
|
+
children: n || K ? "Update" : "Save"
|
|
1172
1172
|
})] }),
|
|
1173
|
-
/* @__PURE__ */
|
|
1174
|
-
customHeader: /* @__PURE__ */
|
|
1173
|
+
/* @__PURE__ */ U(A, {
|
|
1174
|
+
customHeader: /* @__PURE__ */ U("div", {
|
|
1175
1175
|
className: "dbn:w-full dbn:flex dbn:items-center dbn:justify-between",
|
|
1176
|
-
children: [/* @__PURE__ */
|
|
1176
|
+
children: [/* @__PURE__ */ U("div", {
|
|
1177
1177
|
className: "dbn:flex dbn:items-center dbn:gap-2",
|
|
1178
|
-
children: [/* @__PURE__ */
|
|
1178
|
+
children: [/* @__PURE__ */ H(E, {
|
|
1179
1179
|
name: "delete",
|
|
1180
1180
|
color: "alert"
|
|
1181
1181
|
}), "Irreversible action"]
|
|
1182
|
-
}), /* @__PURE__ */
|
|
1182
|
+
}), /* @__PURE__ */ H(h, {
|
|
1183
1183
|
variant: "tertiary",
|
|
1184
1184
|
type: "button",
|
|
1185
|
-
onClick: () =>
|
|
1185
|
+
onClick: () => ze({
|
|
1186
1186
|
showDelete: !1,
|
|
1187
1187
|
deleteFunction: () => {}
|
|
1188
1188
|
}),
|
|
1189
|
-
leftIcon: /* @__PURE__ */
|
|
1189
|
+
leftIcon: /* @__PURE__ */ H(E, {
|
|
1190
1190
|
name: "cross",
|
|
1191
1191
|
size: "sm"
|
|
1192
1192
|
}),
|
|
@@ -1197,42 +1197,42 @@ var q = {
|
|
|
1197
1197
|
})]
|
|
1198
1198
|
}),
|
|
1199
1199
|
size: "sm",
|
|
1200
|
-
isOpen:
|
|
1201
|
-
onClose: () =>
|
|
1200
|
+
isOpen: Re.showDelete,
|
|
1201
|
+
onClose: () => ze({
|
|
1202
1202
|
showDelete: !1,
|
|
1203
1203
|
deleteFunction: () => {}
|
|
1204
1204
|
}),
|
|
1205
|
-
children: [/* @__PURE__ */
|
|
1205
|
+
children: [/* @__PURE__ */ H("div", {
|
|
1206
1206
|
className: "dbn:pt-4 dbn:pb-8 dbn:pl-6",
|
|
1207
|
-
children: /* @__PURE__ */
|
|
1207
|
+
children: /* @__PURE__ */ H(k, {
|
|
1208
1208
|
justify: "start",
|
|
1209
1209
|
alignItems: "center",
|
|
1210
1210
|
className: "dbn:gap-2",
|
|
1211
|
-
children: /* @__PURE__ */
|
|
1211
|
+
children: /* @__PURE__ */ H(g, {
|
|
1212
1212
|
variant: "body-text-2",
|
|
1213
1213
|
children: "Are you sure you want to delete this schedule?"
|
|
1214
1214
|
})
|
|
1215
1215
|
})
|
|
1216
|
-
}), /* @__PURE__ */
|
|
1216
|
+
}), /* @__PURE__ */ H(u, {
|
|
1217
1217
|
className: "dbn:justify-between",
|
|
1218
|
-
children: /* @__PURE__ */
|
|
1218
|
+
children: /* @__PURE__ */ U("div", {
|
|
1219
1219
|
className: "dbn:ml-auto dbn:flex dbn:gap-4",
|
|
1220
|
-
children: [/* @__PURE__ */
|
|
1220
|
+
children: [/* @__PURE__ */ H(h, {
|
|
1221
1221
|
type: "reset",
|
|
1222
1222
|
size: "small",
|
|
1223
1223
|
variant: "tab",
|
|
1224
|
-
onClick: () =>
|
|
1224
|
+
onClick: () => ze({
|
|
1225
1225
|
showDelete: !1,
|
|
1226
1226
|
deleteFunction: () => {}
|
|
1227
1227
|
}),
|
|
1228
1228
|
className: "cta-secondary",
|
|
1229
1229
|
children: "Cancel"
|
|
1230
|
-
}), /* @__PURE__ */
|
|
1230
|
+
}), /* @__PURE__ */ H(h, {
|
|
1231
1231
|
type: "button",
|
|
1232
1232
|
size: "small",
|
|
1233
1233
|
variant: "primary",
|
|
1234
1234
|
onClick: () => {
|
|
1235
|
-
|
|
1235
|
+
Re.deleteFunction(), ze({
|
|
1236
1236
|
showDelete: !1,
|
|
1237
1237
|
deleteFunction: () => {}
|
|
1238
1238
|
});
|
|
@@ -1245,18 +1245,18 @@ var q = {
|
|
|
1245
1245
|
})
|
|
1246
1246
|
]
|
|
1247
1247
|
}) });
|
|
1248
|
-
},
|
|
1249
|
-
let { token:
|
|
1248
|
+
}, we = ({ props: { chartOptions: e, getInternalToken: n, externalDashboardId: r, sharingSettingsId: i, onComplete: a, isShowSettings: o, setShowSettings: s, onServerEvent: l, isEmbed: d } }) => {
|
|
1249
|
+
let { token: f, data: p } = c(), [m, _] = B(), [v, y] = B(!1), [b, x] = B({
|
|
1250
1250
|
isShowDelete: !1,
|
|
1251
1251
|
deleteRowId: ""
|
|
1252
|
-
}),
|
|
1252
|
+
}), S = () => x({
|
|
1253
1253
|
isShowDelete: !1,
|
|
1254
1254
|
deleteRowId: ""
|
|
1255
|
-
}), { mutate:
|
|
1255
|
+
}), { mutate: C } = ee(), w = R(() => [
|
|
1256
1256
|
{
|
|
1257
1257
|
name: "REPORT TITLE",
|
|
1258
1258
|
columnKey: "name",
|
|
1259
|
-
columnCell: (e) => /* @__PURE__ */
|
|
1259
|
+
columnCell: (e) => /* @__PURE__ */ H("div", {
|
|
1260
1260
|
className: "dbn:w-[120px] dbn:truncate",
|
|
1261
1261
|
title: e?.subject,
|
|
1262
1262
|
children: e?.subject
|
|
@@ -1265,12 +1265,12 @@ var q = {
|
|
|
1265
1265
|
{
|
|
1266
1266
|
name: "RECIPIENT",
|
|
1267
1267
|
columnKey: "isAuthenticated",
|
|
1268
|
-
columnCell: (e) => /* @__PURE__ */
|
|
1268
|
+
columnCell: (e) => /* @__PURE__ */ U("div", {
|
|
1269
1269
|
className: "dbn:w-[180px] dbn:flex dbn:gap-0.5 dbn:items-center",
|
|
1270
|
-
children: [/* @__PURE__ */
|
|
1270
|
+
children: [/* @__PURE__ */ H("span", {
|
|
1271
1271
|
className: `dbn:truncate dbn:bg-[#DBEAFE] dbn:rounded-md dbn:py-1 dbn:px-2 dbn:text-xs dbn:font-medium ${e?.emails?.length > 1 ? "dbn:max-w-[150px]" : "dbn:max-w-[180px]"}`,
|
|
1272
1272
|
children: e?.emails?.[0]
|
|
1273
|
-
}), e?.emails?.length > 1 ? /* @__PURE__ */
|
|
1273
|
+
}), e?.emails?.length > 1 ? /* @__PURE__ */ H("span", {
|
|
1274
1274
|
className: "dbn:w-auto dbn:bg-[#DBEAFE] dbn:rounded-md dbn:py-1 dbn:px-2 dbn:text-xs dbn:font-medium",
|
|
1275
1275
|
children: `+${e?.emails?.length - 1}`
|
|
1276
1276
|
}) : null]
|
|
@@ -1280,30 +1280,30 @@ var q = {
|
|
|
1280
1280
|
name: "SCHEDULED FOR",
|
|
1281
1281
|
columnKey: "delete",
|
|
1282
1282
|
columnCell: (e) => {
|
|
1283
|
-
let t = "", n =
|
|
1283
|
+
let t = "", n = j?.find((t) => t?.value === e?.timeConfigurations?.timezone)?.label;
|
|
1284
1284
|
if (e?.timeConfigurations?.frequency === "Weekly") {
|
|
1285
1285
|
let r = e?.timeConfigurations?.weekDays, i = Object.keys(r).filter((e) => r[e]);
|
|
1286
1286
|
t = `${i?.length ? `Every ${i?.join(", ")}, ` : ""}${e?.timeConfigurations?.hours ? `${e?.timeConfigurations?.hours}:${`${e?.timeConfigurations?.minutes ?? "0"}`.padStart(2, "0")} ${e?.timeConfigurations?.time}` : ""} ${n}`;
|
|
1287
1287
|
}
|
|
1288
|
-
return e?.timeConfigurations?.frequency === "Monthly" && (t = `Every Month, ${e?.timeConfigurations?.hours ? `${e?.timeConfigurations?.hours}:${`${e?.timeConfigurations?.minutes ?? "0"}`.padStart(2, "0")} ${e?.timeConfigurations?.time}` : ""} ${n}`), e?.timeConfigurations?.frequency === "Daily" && (t = `Daily, ${e?.timeConfigurations?.hours ? `${e?.timeConfigurations?.hours}:${`${e?.timeConfigurations?.minutes ?? "0"}`.padStart(2, "0")} ${e?.timeConfigurations?.time}` : ""} ${n}`), e?.timeConfigurations?.frequency === "oneTime" && (t = `${new Date(e?.timeConfigurations?.oneTimeDate?.startDate).toDateString().slice(4)}, ${e?.timeConfigurations?.hours ? `${e?.timeConfigurations?.hours}:${`${e?.timeConfigurations?.minutes ?? "0"}`.padStart(2, "0")} ${e?.timeConfigurations?.time}` : ""} ${n}`), /* @__PURE__ */
|
|
1288
|
+
return e?.timeConfigurations?.frequency === "Monthly" && (t = `Every Month, ${e?.timeConfigurations?.hours ? `${e?.timeConfigurations?.hours}:${`${e?.timeConfigurations?.minutes ?? "0"}`.padStart(2, "0")} ${e?.timeConfigurations?.time}` : ""} ${n}`), e?.timeConfigurations?.frequency === "Daily" && (t = `Daily, ${e?.timeConfigurations?.hours ? `${e?.timeConfigurations?.hours}:${`${e?.timeConfigurations?.minutes ?? "0"}`.padStart(2, "0")} ${e?.timeConfigurations?.time}` : ""} ${n}`), e?.timeConfigurations?.frequency === "oneTime" && (t = `${new Date(e?.timeConfigurations?.oneTimeDate?.startDate).toDateString().slice(4)}, ${e?.timeConfigurations?.hours ? `${e?.timeConfigurations?.hours}:${`${e?.timeConfigurations?.minutes ?? "0"}`.padStart(2, "0")} ${e?.timeConfigurations?.time}` : ""} ${n}`), /* @__PURE__ */ U("div", {
|
|
1289
1289
|
className: "dbn:w-[180px] dbn:flex dbn:gap-2",
|
|
1290
|
-
children: [/* @__PURE__ */
|
|
1290
|
+
children: [/* @__PURE__ */ H("span", {
|
|
1291
1291
|
className: "dbn:w-[170px] dbn:truncate",
|
|
1292
1292
|
title: t,
|
|
1293
1293
|
children: t
|
|
1294
|
-
}), /* @__PURE__ */
|
|
1294
|
+
}), /* @__PURE__ */ H("div", {
|
|
1295
1295
|
role: "button",
|
|
1296
1296
|
tabIndex: 0,
|
|
1297
1297
|
onKeyDown: () => {},
|
|
1298
1298
|
onClick: (e) => e.stopPropagation(),
|
|
1299
|
-
children: /* @__PURE__ */
|
|
1300
|
-
buttonContent: /* @__PURE__ */
|
|
1299
|
+
children: /* @__PURE__ */ H(T, {
|
|
1300
|
+
buttonContent: /* @__PURE__ */ H(h, {
|
|
1301
1301
|
variant: "popover",
|
|
1302
|
-
children: /* @__PURE__ */
|
|
1302
|
+
children: /* @__PURE__ */ H(E, { name: "kebab-menu-horizontal" })
|
|
1303
1303
|
}),
|
|
1304
1304
|
position: "bottom",
|
|
1305
1305
|
tabMenu: !0,
|
|
1306
|
-
children: /* @__PURE__ */
|
|
1306
|
+
children: /* @__PURE__ */ H(h, {
|
|
1307
1307
|
variant: "tertiary",
|
|
1308
1308
|
className: "dbn:text-alert dn-p-5 dbn:justify-start dbn:hover:bg-gray",
|
|
1309
1309
|
onClick: () => x({
|
|
@@ -1320,58 +1320,58 @@ var q = {
|
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
], [
|
|
1323
|
+
], [C, a]), { data: D, isLoading: O, refetch: te, isFetching: M } = ie(f || "", r || "", p?.embedDataAppId || null), N = b.emails?.length || 0, ne = R(() => {
|
|
1324
1324
|
let e = b.subject?.trim(), t = e ? `"${e}"` : "this schedule";
|
|
1325
|
-
return
|
|
1326
|
-
}, [b.subject,
|
|
1327
|
-
return /* @__PURE__ */ V
|
|
1328
|
-
isOpen:
|
|
1325
|
+
return N ? `Delete ${t}? ${N} ${N === 1 ? "recipient" : "recipients"} stop receiving this report, and it cannot be restored.` : `Delete ${t}? It stops being sent, and it cannot be restored.`;
|
|
1326
|
+
}, [b.subject, N]), P = R(() => D?.scheduleEmailReports?.length && D?.scheduleEmailReports || [], [D]);
|
|
1327
|
+
return /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(pe, {
|
|
1328
|
+
isOpen: o,
|
|
1329
1329
|
onClose: () => {
|
|
1330
|
-
|
|
1330
|
+
l?.(t), s(!1);
|
|
1331
1331
|
},
|
|
1332
1332
|
hideHeader: !0,
|
|
1333
1333
|
size: "wide",
|
|
1334
1334
|
side: "right",
|
|
1335
1335
|
hideFooter: !0,
|
|
1336
|
-
icon: /* @__PURE__ */
|
|
1336
|
+
icon: /* @__PURE__ */ H(E, { name: "schedule" }),
|
|
1337
1337
|
dataTestTitle: "schedulePanel",
|
|
1338
|
-
children: /* @__PURE__ */
|
|
1338
|
+
children: /* @__PURE__ */ U(k, {
|
|
1339
1339
|
className: "dbn:pt-5 dbn:gap-2 dbn:w-full dbn:h-full",
|
|
1340
1340
|
direction: "col",
|
|
1341
1341
|
children: [
|
|
1342
|
-
/* @__PURE__ */
|
|
1342
|
+
/* @__PURE__ */ U(k, {
|
|
1343
1343
|
className: "dbn:w-full dbn:px-5",
|
|
1344
1344
|
alignItems: "center",
|
|
1345
1345
|
justify: "between",
|
|
1346
|
-
children: [/* @__PURE__ */
|
|
1346
|
+
children: [/* @__PURE__ */ U(k, {
|
|
1347
1347
|
className: "dbn:gap-1.5",
|
|
1348
1348
|
alignItems: "start",
|
|
1349
1349
|
direction: "col",
|
|
1350
|
-
children: [/* @__PURE__ */
|
|
1350
|
+
children: [/* @__PURE__ */ U(k, {
|
|
1351
1351
|
className: "dbn:gap-2",
|
|
1352
1352
|
alignItems: "center",
|
|
1353
|
-
children: [v ? /* @__PURE__ */
|
|
1353
|
+
children: [v ? /* @__PURE__ */ H(h, {
|
|
1354
1354
|
variant: "tab",
|
|
1355
|
-
leftIcon: /* @__PURE__ */
|
|
1355
|
+
leftIcon: /* @__PURE__ */ H(E, { name: "arrow-left" }),
|
|
1356
1356
|
onClick: () => {
|
|
1357
1357
|
y(!1);
|
|
1358
1358
|
},
|
|
1359
1359
|
className: "cta-tertiary"
|
|
1360
|
-
}) : /* @__PURE__ */
|
|
1360
|
+
}) : /* @__PURE__ */ H(E, { name: "schedule" }), /* @__PURE__ */ H(g, {
|
|
1361
1361
|
variant: "heading-4",
|
|
1362
1362
|
children: v ? "Create a Schedule" : "Report Scheduler"
|
|
1363
1363
|
})]
|
|
1364
|
-
}), v ? null : /* @__PURE__ */
|
|
1364
|
+
}), v ? null : /* @__PURE__ */ H(g, {
|
|
1365
1365
|
variant: "body-text-3",
|
|
1366
1366
|
color: "gray",
|
|
1367
1367
|
children: "Manage report schedules for this dashboard."
|
|
1368
1368
|
})]
|
|
1369
|
-
}), v ? null : /* @__PURE__ */
|
|
1369
|
+
}), v ? null : /* @__PURE__ */ U(k, {
|
|
1370
1370
|
className: "dbn:gap-4",
|
|
1371
1371
|
alignItems: "center",
|
|
1372
|
-
children: [
|
|
1372
|
+
children: [P.length > 0 ? /* @__PURE__ */ H(h, {
|
|
1373
1373
|
variant: "secondary",
|
|
1374
|
-
leftIcon: /* @__PURE__ */
|
|
1374
|
+
leftIcon: /* @__PURE__ */ H(E, {
|
|
1375
1375
|
name: "plus",
|
|
1376
1376
|
size: "sm"
|
|
1377
1377
|
}),
|
|
@@ -1379,44 +1379,44 @@ var q = {
|
|
|
1379
1379
|
_(void 0), y(!0);
|
|
1380
1380
|
},
|
|
1381
1381
|
size: "small",
|
|
1382
|
-
isDisabled:
|
|
1382
|
+
isDisabled: O || M,
|
|
1383
1383
|
className: "cta-secondary",
|
|
1384
1384
|
children: "Schedule"
|
|
1385
|
-
}) : null, /* @__PURE__ */
|
|
1385
|
+
}) : null, /* @__PURE__ */ H(h, {
|
|
1386
1386
|
variant: "popover",
|
|
1387
|
-
leftIcon: /* @__PURE__ */
|
|
1387
|
+
leftIcon: /* @__PURE__ */ H(E, {
|
|
1388
1388
|
name: "cross",
|
|
1389
1389
|
size: "xs"
|
|
1390
1390
|
}),
|
|
1391
1391
|
onClick: () => {
|
|
1392
|
-
_(void 0), y(!1),
|
|
1392
|
+
_(void 0), y(!1), s(!1);
|
|
1393
1393
|
}
|
|
1394
1394
|
})]
|
|
1395
1395
|
})]
|
|
1396
1396
|
}),
|
|
1397
|
-
v ? null : /* @__PURE__ */
|
|
1397
|
+
v ? null : /* @__PURE__ */ H("div", {
|
|
1398
1398
|
className: "dbn:w-full dbn:h-full dbn:p-5",
|
|
1399
|
-
children:
|
|
1399
|
+
children: O || M ? /* @__PURE__ */ H("div", {
|
|
1400
1400
|
className: "dbn:w-full dbn:h-full dbn:flex dbn:items-center dbn:justify-center",
|
|
1401
|
-
children: /* @__PURE__ */
|
|
1402
|
-
}) :
|
|
1401
|
+
children: /* @__PURE__ */ H(F, {})
|
|
1402
|
+
}) : P?.length ? /* @__PURE__ */ H("div", {
|
|
1403
1403
|
className: "dbn:max-w-full dbn:w-auto",
|
|
1404
|
-
children: /* @__PURE__ */
|
|
1405
|
-
data:
|
|
1406
|
-
headers:
|
|
1404
|
+
children: /* @__PURE__ */ H(W, {
|
|
1405
|
+
data: P,
|
|
1406
|
+
headers: w,
|
|
1407
1407
|
onRowClick: (e) => {
|
|
1408
1408
|
_(e), y(!0);
|
|
1409
1409
|
}
|
|
1410
1410
|
})
|
|
1411
|
-
}) : /* @__PURE__ */
|
|
1411
|
+
}) : /* @__PURE__ */ H("div", {
|
|
1412
1412
|
className: "dbn:w-full dbn:h-full dbn:border dbn:border-secondary dbn:flex dbn:items-center dbn:justify-center",
|
|
1413
|
-
children: /* @__PURE__ */
|
|
1413
|
+
children: /* @__PURE__ */ H(de, {
|
|
1414
1414
|
message: "No schedules created yet.",
|
|
1415
1415
|
subText: "Set up a schedule to automatically send your reports.",
|
|
1416
1416
|
isNoReports: !0,
|
|
1417
|
-
children: /* @__PURE__ */
|
|
1417
|
+
children: /* @__PURE__ */ H(h, {
|
|
1418
1418
|
variant: "primary",
|
|
1419
|
-
leftIcon: /* @__PURE__ */
|
|
1419
|
+
leftIcon: /* @__PURE__ */ H(E, {
|
|
1420
1420
|
name: "plus",
|
|
1421
1421
|
size: "sm"
|
|
1422
1422
|
}),
|
|
@@ -1430,36 +1430,36 @@ var q = {
|
|
|
1430
1430
|
})
|
|
1431
1431
|
})
|
|
1432
1432
|
}),
|
|
1433
|
-
v && /* @__PURE__ */
|
|
1433
|
+
v && /* @__PURE__ */ H(Ce, {
|
|
1434
1434
|
onCancel: () => {
|
|
1435
|
-
|
|
1435
|
+
l?.("EXIT_SCHEDULED_REPORT_MODE"), s(!1);
|
|
1436
1436
|
},
|
|
1437
1437
|
chartOptions: e,
|
|
1438
1438
|
getInternalToken: n,
|
|
1439
|
-
scheduleReportConfig:
|
|
1439
|
+
scheduleReportConfig: m,
|
|
1440
1440
|
externalDashboardId: r,
|
|
1441
1441
|
sharingSettingsId: i,
|
|
1442
1442
|
onComplete: () => {
|
|
1443
|
-
|
|
1443
|
+
a?.(), s(!1), y(!1), _(void 0), te();
|
|
1444
1444
|
},
|
|
1445
|
-
isEmbed:
|
|
1445
|
+
isEmbed: d
|
|
1446
1446
|
})
|
|
1447
1447
|
]
|
|
1448
1448
|
})
|
|
1449
|
-
}), /* @__PURE__ */
|
|
1450
|
-
customHeader: /* @__PURE__ */
|
|
1449
|
+
}), /* @__PURE__ */ U(A, {
|
|
1450
|
+
customHeader: /* @__PURE__ */ U("div", {
|
|
1451
1451
|
className: "dbn:w-full dbn:flex dbn:items-center dbn:justify-between",
|
|
1452
|
-
children: [/* @__PURE__ */
|
|
1452
|
+
children: [/* @__PURE__ */ U("div", {
|
|
1453
1453
|
className: "dbn:flex dbn:items-center dbn:gap-2",
|
|
1454
|
-
children: [/* @__PURE__ */
|
|
1454
|
+
children: [/* @__PURE__ */ H(E, {
|
|
1455
1455
|
name: "delete",
|
|
1456
1456
|
color: "alert"
|
|
1457
1457
|
}), "Irreversible action"]
|
|
1458
|
-
}), /* @__PURE__ */
|
|
1458
|
+
}), /* @__PURE__ */ H(h, {
|
|
1459
1459
|
variant: "tertiary",
|
|
1460
1460
|
type: "button",
|
|
1461
|
-
onClick:
|
|
1462
|
-
leftIcon: /* @__PURE__ */
|
|
1461
|
+
onClick: S,
|
|
1462
|
+
leftIcon: /* @__PURE__ */ H(E, {
|
|
1463
1463
|
name: "cross",
|
|
1464
1464
|
size: "sm"
|
|
1465
1465
|
}),
|
|
@@ -1471,44 +1471,44 @@ var q = {
|
|
|
1471
1471
|
}),
|
|
1472
1472
|
size: "sm",
|
|
1473
1473
|
isOpen: b?.isShowDelete,
|
|
1474
|
-
onClose:
|
|
1475
|
-
children: [/* @__PURE__ */
|
|
1474
|
+
onClose: S,
|
|
1475
|
+
children: [/* @__PURE__ */ H("div", {
|
|
1476
1476
|
className: "dbn:pt-4 dbn:pb-8 dbn:pl-6 dbn:pr-6",
|
|
1477
|
-
children: /* @__PURE__ */
|
|
1477
|
+
children: /* @__PURE__ */ U(k, {
|
|
1478
1478
|
justify: "start",
|
|
1479
1479
|
alignItems: "start",
|
|
1480
1480
|
className: "dbn:gap-2 dbn:flex-col",
|
|
1481
|
-
children: [/* @__PURE__ */
|
|
1481
|
+
children: [/* @__PURE__ */ H(g, {
|
|
1482
1482
|
variant: "body-text-2",
|
|
1483
|
-
children:
|
|
1484
|
-
}),
|
|
1483
|
+
children: ne
|
|
1484
|
+
}), N > 0 && N <= 5 ? /* @__PURE__ */ H(g, {
|
|
1485
1485
|
variant: "body-text-3",
|
|
1486
1486
|
color: "sec-text",
|
|
1487
1487
|
children: (b.emails || []).join(", ")
|
|
1488
1488
|
}) : null]
|
|
1489
1489
|
})
|
|
1490
|
-
}), /* @__PURE__ */
|
|
1490
|
+
}), /* @__PURE__ */ H(u, {
|
|
1491
1491
|
className: "dbn:justify-between",
|
|
1492
|
-
children: /* @__PURE__ */
|
|
1492
|
+
children: /* @__PURE__ */ U("div", {
|
|
1493
1493
|
className: "dbn:ml-auto dbn:flex dbn:gap-4",
|
|
1494
|
-
children: [/* @__PURE__ */
|
|
1494
|
+
children: [/* @__PURE__ */ H(h, {
|
|
1495
1495
|
type: "reset",
|
|
1496
1496
|
size: "small",
|
|
1497
1497
|
variant: "tab",
|
|
1498
|
-
onClick:
|
|
1498
|
+
onClick: S,
|
|
1499
1499
|
className: "cta-secondary",
|
|
1500
1500
|
children: "Cancel"
|
|
1501
|
-
}), /* @__PURE__ */
|
|
1501
|
+
}), /* @__PURE__ */ H(h, {
|
|
1502
1502
|
type: "button",
|
|
1503
1503
|
size: "small",
|
|
1504
1504
|
variant: "primary",
|
|
1505
1505
|
onClick: () => {
|
|
1506
|
-
|
|
1506
|
+
C({
|
|
1507
1507
|
id: b?.deleteRowId,
|
|
1508
|
-
token:
|
|
1508
|
+
token: f
|
|
1509
1509
|
}, { onSuccess() {
|
|
1510
|
-
|
|
1511
|
-
} }),
|
|
1510
|
+
te(), a?.(), s(!1), S();
|
|
1511
|
+
} }), S();
|
|
1512
1512
|
},
|
|
1513
1513
|
className: "dbn:bg-alert dbn:hover:bg-discard-hover cta-primary",
|
|
1514
1514
|
children: "Delete"
|
|
@@ -1518,4 +1518,4 @@ var q = {
|
|
|
1518
1518
|
})] });
|
|
1519
1519
|
};
|
|
1520
1520
|
//#endregion
|
|
1521
|
-
export {
|
|
1521
|
+
export { we as ScheduleEmail, we as default };
|