@feedmepos/mf-report 5.4.15-beta.1 → 5.4.15-beta.3

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.
Files changed (45) hide show
  1. package/dist/App-DufL3Y8h.js +152 -0
  2. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DLDk5l4R.js +162 -0
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-Bxuyjrkr.js → Default.vue_vue_type_script_setup_true_lang-DVLxkOOQ.js} +2 -2
  4. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-C29g9w6o.js +999 -0
  5. package/dist/{InsightView-D78TK2E8.js → InsightView-tyeJBlRm.js} +1051 -1049
  6. package/dist/Integration-ILSIf-OL.js +3695 -0
  7. package/dist/Integrations-DwgNrM3U.js +334 -0
  8. package/dist/{Layout-DERpCrQk.js → Layout-Bw1oh6Q-.js} +1 -1
  9. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DurYBXa5.js → LocationSelect.vue_vue_type_script_setup_true_lang-BFj4d-UF.js} +1861 -1859
  10. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-DzZeasAK.js +277 -0
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-C8yzWDXs.js → NavigationTab.vue_vue_type_script_setup_true_lang-_eC_tMk_.js} +5526 -5482
  12. package/dist/NoData.vue_vue_type_script_setup_true_lang-BtQobm-7.js +31 -0
  13. package/dist/OverviewView-Dl8oOobn.js +61 -0
  14. package/dist/Report-BqD8KVZ8.js +424 -0
  15. package/dist/ReportEditor-DkzFUgbO.js +532 -0
  16. package/dist/ReportView-DpWZHV0o.js +169 -0
  17. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-C3VG1mi_.js +104 -0
  18. package/dist/Setting-CYrg_50p.js +320 -0
  19. package/dist/TileEditor-CDrzLbqc.js +2320 -0
  20. package/dist/{TransitionFade-BLDfpF7R.js → TransitionFade-D19wC3tb.js} +225 -220
  21. package/dist/app.js +915 -27
  22. package/dist/{global-loader-CMC9fgBi.js → global-loader-C3JC7z-H.js} +4966 -2240
  23. package/dist/index-9IDzTnHw.js +147 -0
  24. package/dist/{report-schema-G0x3CoJb.js → report-schema-1zQJbLyB.js} +4 -4
  25. package/dist/style.css +1 -1
  26. package/dist/timeFormat-CjNvJMgk.js +9 -0
  27. package/dist/{v4-DF7wffYN.js → v4-D29FkHfi.js} +2666 -1927
  28. package/package.json +1 -1
  29. package/dist/App-mcSgbcVY.js +0 -133
  30. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DPuhMR6i.js +0 -160
  31. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-B6IzlHmr.js +0 -996
  32. package/dist/HeaderTab.vue_vue_type_script_setup_true_lang-B5VBDNwX.js +0 -19
  33. package/dist/Integration-Cm6_YEEE.js +0 -3554
  34. package/dist/Integrations-WWnSho0Q.js +0 -334
  35. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-h87kWy1E.js +0 -261
  36. package/dist/NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js +0 -30
  37. package/dist/OverviewView-D7zAR7_7.js +0 -60
  38. package/dist/Report-BnX5amn0.js +0 -409
  39. package/dist/ReportEditor-DW7uWg_a.js +0 -530
  40. package/dist/ReportView-xSaJA5F6.js +0 -166
  41. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-DBI9op0g.js +0 -103
  42. package/dist/Setting-D8JspXTN.js +0 -326
  43. package/dist/TileEditor-DQ8C5I_M.js +0 -2301
  44. package/dist/index-SmIkb24L.js +0 -143
  45. package/dist/timeFormat-BF-F4Rnt.js +0 -9
@@ -0,0 +1,31 @@
1
+ import { defineComponent as m, computed as s, resolveComponent as p, createElementBlock as f, openBlock as u, renderSlot as d, createVNode as _, withCtx as g, createElementVNode as o, toDisplayString as r } from "vue";
2
+ import { u as y } from "./global-loader-C3JC7z-H.js";
3
+ const x = { class: "flex flex-col h-full" }, D = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, T = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, v = /* @__PURE__ */ m({
4
+ __name: "NoData",
5
+ props: {
6
+ title: { default: "report.messages.noData" },
7
+ subTitle: { default: "report.messages.adjustFiltersOrSelectADifferentTimeRange" }
8
+ },
9
+ setup(a) {
10
+ const { t } = y(), e = a, l = s(() => e.title === "report.messages.noData" ? t("report.messages.noData") : e.title), n = s(() => e.subTitle === "report.messages.adjustFiltersOrSelectADifferentTimeRange" ? t("report.messages.adjustFiltersOrSelectADifferentTimeRange") : e.subTitle);
11
+ return (c, h) => {
12
+ const i = p("FmCard");
13
+ return u(), f("div", x, [
14
+ d(c.$slots, "menu"),
15
+ _(i, {
16
+ class: "p-24 h-full flex flex-col gap-2 items-center justify-center",
17
+ variant: "flat"
18
+ }, {
19
+ default: g(() => [
20
+ o("p", D, r(l.value), 1),
21
+ o("p", T, r(n.value), 1)
22
+ ]),
23
+ _: 1
24
+ })
25
+ ]);
26
+ };
27
+ }
28
+ });
29
+ export {
30
+ v as _
31
+ };
@@ -0,0 +1,61 @@
1
+ import { defineComponent as g, computed as w, resolveComponent as k, createBlock as a, openBlock as t, withCtx as $, createVNode as d, createElementVNode as y, unref as e, normalizeStyle as C, normalizeClass as u, createElementBlock as _, Fragment as h, renderList as B } from "vue";
2
+ import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-C29g9w6o.js";
3
+ import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-DVLxkOOQ.js";
4
+ import { a as P } from "./v4-D29FkHfi.js";
5
+ import { storeToRefs as R } from "pinia";
6
+ import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-BtQobm-7.js";
7
+ import { useBreakpoints as V } from "@feedmepos/ui-library";
8
+ import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-DzZeasAK.js";
9
+ import { useI18n as D } from "@feedmepos/mf-common";
10
+ const G = /* @__PURE__ */ g({
11
+ __name: "OverviewView",
12
+ setup(E) {
13
+ const { t: l } = D(), f = P(), { breakpoints: o } = V(), { isOpenDownloadDialog: v, overviewReport: r } = R(f), s = w(() => {
14
+ var n;
15
+ return ((n = r.value) == null ? void 0 : n.tiles) || [];
16
+ });
17
+ return (n, i) => {
18
+ const x = k("FmPageHead");
19
+ return t(), a(F, null, {
20
+ default: $(() => {
21
+ var m;
22
+ return [
23
+ d(x, {
24
+ title: e(l)("report.view.overview.title", { name: (m = e(r)) == null ? void 0 : m.name }),
25
+ class: "h-[68px]",
26
+ actions: [
27
+ {
28
+ label: e(l)("report.common.download"),
29
+ value: "download",
30
+ isPrimary: !0,
31
+ prependIcon: "download"
32
+ }
33
+ ],
34
+ "onClick:action": i[0] || (i[0] = (p) => v.value = !0)
35
+ }, null, 8, ["title", "actions"]),
36
+ y("div", {
37
+ class: u(`flex flex-col gap-2 ${e(o).sm || e(o).xs ? "mb-20" : ""}`),
38
+ style: C({ height: `calc(100% - ${e(o).lg || e(o).md ? 72 : 64}px)` })
39
+ }, [
40
+ d(z),
41
+ s.value.length > 0 && e(r) ? (t(), _("div", {
42
+ key: 0,
43
+ class: u(["grid grid-cols-12", e(o).sm || e(o).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"])
44
+ }, [
45
+ (t(!0), _(h, null, B(s.value, (p, c) => (t(), a(b, {
46
+ key: `widget_${e(r).id}_${c}`,
47
+ "model-value": p,
48
+ index: c
49
+ }, null, 8, ["model-value", "index"]))), 128))
50
+ ], 2)) : (t(), a(S, { key: 1 }))
51
+ ], 6)
52
+ ];
53
+ }),
54
+ _: 1
55
+ });
56
+ };
57
+ }
58
+ });
59
+ export {
60
+ G as default
61
+ };
@@ -0,0 +1,424 @@
1
+ import { defineComponent as ce, ref as O, watch as Q, computed as k, h as f, withModifiers as me, resolveComponent as C, createBlock as T, openBlock as F, withCtx as m, createVNode as n, createElementVNode as y, unref as t, normalizeStyle as ie, normalizeClass as _, withDirectives as B, createElementBlock as ue, Fragment as pe, renderList as de, toDisplayString as S, createTextVNode as fe, vShow as D } from "vue";
2
+ import { storeToRefs as W } from "pinia";
3
+ import { a as ve } from "./v4-D29FkHfi.js";
4
+ import { _ as ye } from "./Default.vue_vue_type_script_setup_true_lang-DVLxkOOQ.js";
5
+ import { u as be } from "./message-dialog-UoMWOnil.js";
6
+ import { b as ge, f as xe } from "./global-loader-C3JC7z-H.js";
7
+ import { useSnackbar as Ce, useBreakpoints as _e, components as he, FmButtonColorThemeVariant as $e } from "@feedmepos/ui-library";
8
+ import { _ as ke } from "./NoData.vue_vue_type_script_setup_true_lang-BtQobm-7.js";
9
+ import { useRouter as we, useRoute as Ie, onBeforeRouteLeave as Re } from "vue-router";
10
+ import { useI18n as Fe } from "@feedmepos/mf-common";
11
+ const Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = { class: "w-[343px]" }, Ve = { class: "fm-typo-en-body-md-600" }, Je = /* @__PURE__ */ ce({
12
+ __name: "Report",
13
+ setup(ze) {
14
+ const { t: r } = Fe(), M = we(), U = Ie(), p = ve(), { business: X } = W(ge()), {
15
+ reports: d,
16
+ categories: w,
17
+ pinReport: I,
18
+ isOpenAddReportDialog: Z,
19
+ scrollPositionY: q,
20
+ customReportQuota: A,
21
+ canCreateCustomReport: ee
22
+ } = W(p), { promptMessage: J } = be(), { promptLoader: K } = xe(), v = Ce(), { breakpoints: s } = _e(), b = O();
23
+ Re(() => {
24
+ b.value && (q.value = b.value.$el.children[0].scrollTop);
25
+ }), Q(b, () => {
26
+ b.value && setTimeout(() => {
27
+ b.value.$el.children[0].scrollTop = q.value;
28
+ }, 200);
29
+ });
30
+ const L = k(() => I.value && d.value ? d.value.filter((o) => {
31
+ var e;
32
+ return (e = I.value) == null ? void 0 : e.includes(o.id);
33
+ }) : []);
34
+ Q(
35
+ [() => X.value],
36
+ () => {
37
+ p.refreshPinReport();
38
+ },
39
+ { immediate: !0 }
40
+ );
41
+ const j = k(() => L.value.length > 0 ? d.value.filter(
42
+ (o) => L.value.findIndex((e) => e.id === o.id) === -1
43
+ ) : d.value), { FmButton: te, FmMenu: V, FmMenuItem: h, FmIcon: z, FmChip: P } = he, Y = k(() => [
44
+ { value: void 0, label: "All" },
45
+ ...w.value.map((o) => ({
46
+ value: o.id,
47
+ label: o.name
48
+ }))
49
+ ]), g = O(Y.value[0]), R = O(""), x = k(() => j.value.length === 0 || w.value.length === 0 ? [] : [
50
+ ...L.value.map((e) => {
51
+ const a = w.value.find((c) => c.id === e.category);
52
+ return {
53
+ name: e.editable ? e.name : r(`report.dynamic.${e.name}`),
54
+ categoryId: (a == null ? void 0 : a.id) ?? "",
55
+ category: a != null && a.name ? r(`report.category.${a.name}`) : r("report.common.Uncategorized"),
56
+ reportId: e.id,
57
+ editable: e.editable,
58
+ pin: !0
59
+ };
60
+ }).filter((e) => g.value.value && e.categoryId !== g.value.value ? !1 : e.name.toLowerCase().indexOf(R.value.toLowerCase()) !== -1),
61
+ ...j.value.map((e) => {
62
+ const a = w.value.find((c) => c.id === e.category);
63
+ return {
64
+ name: e.editable ? e.name : r(`report.dynamic.${e.name}`),
65
+ categoryId: (a == null ? void 0 : a.id) ?? "",
66
+ category: a != null && a.name ? r(`report.category.${a.name}`) : r("report.common.uncategorized"),
67
+ reportId: e.id,
68
+ editable: e.editable,
69
+ pin: !1
70
+ };
71
+ }).filter((e) => g.value.value && e.categoryId !== g.value.value ? !1 : e.name.toLowerCase().indexOf(R.value.toLowerCase()) !== -1)
72
+ ]), oe = k(
73
+ () => x.value.map((o) => `${o.name}${o.category}`).toString()
74
+ ), re = [
75
+ {
76
+ accessorKey: "name",
77
+ header: r("report.common.name"),
78
+ enableSorting: !1,
79
+ cell: (o) => o.getValue()
80
+ },
81
+ {
82
+ accessorKey: "category",
83
+ header: r("report.common.category"),
84
+ enableSorting: !1,
85
+ meta: {
86
+ width: "200px"
87
+ },
88
+ cell: (o) => f(
89
+ P,
90
+ {
91
+ class: `${o.getValue() !== r("report.common.uncategorized") ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"} fm-typo-en-body-sm-600`,
92
+ compact: !0
93
+ },
94
+ { default: () => o.getValue() }
95
+ )
96
+ },
97
+ {
98
+ accessorKey: "",
99
+ id: "Action",
100
+ header: r("report.common.actions"),
101
+ meta: {
102
+ width: "100px"
103
+ },
104
+ cell: (o) => {
105
+ const e = o.row.original, a = e.reportId, c = d.value.find((i) => i.id === a), N = [
106
+ {
107
+ label: r("report.common.duplicate"),
108
+ onClick: () => {
109
+ c && E(c);
110
+ },
111
+ variant: "",
112
+ disabled: !1
113
+ },
114
+ {
115
+ label: r("report.common.remove"),
116
+ onClick: () => {
117
+ c && G(c);
118
+ },
119
+ variant: "destructive",
120
+ disabled: !e.editable
121
+ }
122
+ ];
123
+ return f(
124
+ "div",
125
+ {
126
+ class: `flex ${s.value.lg || s.value.md ? "justify-end" : ""} items-center`
127
+ },
128
+ {
129
+ default: () => [
130
+ f(
131
+ "button",
132
+ {
133
+ onClick: me(() => {
134
+ c && H(c);
135
+ }, ["stop"]),
136
+ class: `text-fm-color-neutral-gray-400 ${e.pin ? "" : "show-pin"} hover:bg-fm-color-opacity-sm rounded-lg flex items-center justify-center`
137
+ },
138
+ {
139
+ default: () => [
140
+ f(
141
+ z,
142
+ {
143
+ name: "keep",
144
+ class: "px-12 p-8",
145
+ outline: !e.pin,
146
+ size: "md"
147
+ },
148
+ {}
149
+ )
150
+ ]
151
+ }
152
+ ),
153
+ f(
154
+ V,
155
+ { stopClickPropagation: !0, shift: !0 },
156
+ {
157
+ default: () => N.map(
158
+ (i) => f(
159
+ h,
160
+ {
161
+ onClick: i.disabled ? {} : i.onClick,
162
+ label: i.label,
163
+ class: i.disabled ? "text-fm-color-typo-disabled" : i.variant === "destructive" ? "text-fm-color-typo-error" : "",
164
+ disabled: i.disabled
165
+ },
166
+ {
167
+ label: () => f("p", i.label)
168
+ }
169
+ )
170
+ ),
171
+ "menu-button": () => f(
172
+ te,
173
+ {
174
+ variant: "tertiary",
175
+ size: "md",
176
+ icon: "more_vert",
177
+ iconColor: $e.NeutralGray400
178
+ },
179
+ {}
180
+ )
181
+ }
182
+ )
183
+ ]
184
+ }
185
+ );
186
+ }
187
+ }
188
+ ];
189
+ async function E(o) {
190
+ if (await J({
191
+ title: r("report.common.duplicateReport"),
192
+ message: r("report.common.confirmDuplicate", { name: o.name })
193
+ })) {
194
+ const a = JSON.parse(JSON.stringify(o));
195
+ a.editable = !0, a.id = "", a.name = `${a.name} ${r("report.common.duplicate")}`, K(async () => {
196
+ try {
197
+ await p.createOrUpdateReport(a), v.open({
198
+ message: `${r("report.common.duplicate")} ${a.name} ${r(
199
+ "report.common.successful"
200
+ )}`,
201
+ type: "success"
202
+ });
203
+ } catch (c) {
204
+ v.open({ message: JSON.stringify(c), type: "error" });
205
+ }
206
+ });
207
+ }
208
+ }
209
+ async function G(o) {
210
+ await J({
211
+ title: r("report.common.deleteReport"),
212
+ message: r("report.common.confirmDelete", { name: o.name })
213
+ }) && K(async () => {
214
+ try {
215
+ await p.removeReport(o), v.open({
216
+ message: `${r("report.common.delete")} ${o.name} ${r("report.common.successful")}`,
217
+ type: "success"
218
+ });
219
+ } catch (a) {
220
+ v.open({ message: JSON.stringify(a), type: "error" });
221
+ }
222
+ });
223
+ }
224
+ function ae() {
225
+ if (ee.value)
226
+ Z.value = !0;
227
+ else {
228
+ let o = `Your current plan only support up to ${A.value} custom reports.`;
229
+ A.value === 0 && (o = "Your current plan does not support custom report."), v.open({
230
+ message: o,
231
+ type: "error"
232
+ });
233
+ }
234
+ }
235
+ function H(o) {
236
+ I.value && I.value.includes(o.id) ? (v.open({
237
+ message: `${r("report.common.unpin")} ${o.name} ${r("report.common.successful")}`,
238
+ type: "success"
239
+ }), p.clearPinReport(o.id)) : (v.open({
240
+ message: `${r("report.common.pin")} ${o.name} ${r("report.common.successful")}`,
241
+ type: "success"
242
+ }), p.cachePinReport(o));
243
+ }
244
+ function le(o) {
245
+ g.value = o;
246
+ }
247
+ return (o, e) => {
248
+ const a = C("FmPageHead"), c = C("FmSearch"), N = C("FmForm"), i = C("FmListItem"), ne = C("FmList"), se = C("FmTable");
249
+ return F(), T(ye, null, {
250
+ default: m(() => [
251
+ n(a, {
252
+ title: t(r)("report.common.report", 1),
253
+ class: "h-[68px]",
254
+ actions: [
255
+ {
256
+ label: `${t(r)("report.view.report.add")}`,
257
+ value: "add",
258
+ isPrimary: !0,
259
+ prependIcon: "add"
260
+ }
261
+ ],
262
+ "onClick:action": e[0] || (e[0] = (l) => ae())
263
+ }, null, 8, ["title", "actions"]),
264
+ y("div", {
265
+ class: _(`overflow-y-hidden flex flex-col gap-8 ${t(s).sm || t(s).xs ? "mb-20" : ""}`),
266
+ style: ie({ height: `calc(100% - ${t(s).lg || t(s).md ? 72 : 64}px)` })
267
+ }, [
268
+ n(N, {
269
+ class: _(`flex items-center gap-2 ${t(s).sm || t(s).xs ? "px-3" : "px-24"}`)
270
+ }, {
271
+ default: m(() => [
272
+ n(t(V), null, {
273
+ "menu-button": m(() => [
274
+ n(t(P), { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, {
275
+ default: m(() => [
276
+ y("p", null, S(t(r)(`report.category.${g.value.label}`)), 1),
277
+ n(t(z), { name: "expand_more" })
278
+ ]),
279
+ _: 1
280
+ })
281
+ ]),
282
+ default: m(() => [
283
+ (F(!0), ue(pe, null, de(Y.value, (l, u) => (F(), T(t(h), {
284
+ key: u,
285
+ label: t(r)(`report.category.${l.label}`),
286
+ onClick: () => le(l)
287
+ }, null, 8, ["label", "onClick"]))), 128))
288
+ ]),
289
+ _: 1
290
+ }),
291
+ y("div", {
292
+ class: _(`flex ${t(s).sm || t(s).xs ? "justify-center items-center" : ""}`)
293
+ }, [
294
+ y("p", Se, S(t(r)("report.common.results", { count: x.value.length })), 1)
295
+ ], 2),
296
+ e[3] || (e[3] = y("div", { class: "grow" }, null, -1)),
297
+ y("div", Le, [
298
+ n(c, {
299
+ modelValue: R.value,
300
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => R.value = l),
301
+ class: _(`${t(s).lg || t(s).md ? "grow" : ""}`)
302
+ }, null, 8, ["modelValue", "class"])
303
+ ])
304
+ ]),
305
+ _: 1
306
+ }, 8, ["class"]),
307
+ B((F(), T(se, {
308
+ key: oe.value,
309
+ ref_key: "table",
310
+ ref: b,
311
+ class: _([t(s).sm || t(s).xs ? "px-0" : "px-24", "report-table"]),
312
+ style: { height: "calc(100% - 40px)" },
313
+ "column-defs": re,
314
+ "row-data": x.value,
315
+ "page-size": x.value.length,
316
+ "hide-footer": !0,
317
+ "row-class-name": "row",
318
+ onRowClick: e[2] || (e[2] = (l) => {
319
+ t(p).updateCurrentReportId(l.original.reportId), t(M).push({
320
+ name: "reportView",
321
+ query: t(U).query
322
+ });
323
+ })
324
+ }, {
325
+ "list-row": m(({ original: l }) => [
326
+ n(ne, {
327
+ onClick: () => {
328
+ l.reportId && (t(p).updateCurrentReportId(l.reportId), t(M).push({
329
+ name: "reportView",
330
+ query: t(U).query
331
+ }));
332
+ }
333
+ }, {
334
+ default: m(() => [
335
+ n(i, {
336
+ tag: "label",
337
+ label: l.name,
338
+ clickable: ""
339
+ }, {
340
+ append: m(() => [
341
+ n(t(P), {
342
+ class: _(
343
+ l.category !== "Uncategorized" ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
344
+ ),
345
+ compact: !0
346
+ }, {
347
+ default: m(() => [
348
+ y("p", Ve, S(l.category), 1)
349
+ ]),
350
+ _: 2
351
+ }, 1032, ["class"]),
352
+ n(t(V), {
353
+ placement: "left",
354
+ "stop-click-propagation": !0
355
+ }, {
356
+ "menu-button": m(() => [
357
+ n(t(z), {
358
+ name: "more_vert",
359
+ class: "btn-color"
360
+ })
361
+ ]),
362
+ default: m(() => [
363
+ n(t(h), {
364
+ label: l.pin ? "Unpin" : "Pin",
365
+ onClick: () => {
366
+ const u = t(d).find(
367
+ ($) => $.id === l.reportId
368
+ );
369
+ u && H(u);
370
+ }
371
+ }, null, 8, ["label", "onClick"]),
372
+ n(t(h), {
373
+ label: t(r)("report.common.duplicate"),
374
+ onClick: () => {
375
+ const u = t(d).find(
376
+ ($) => $.id === l.reportId
377
+ );
378
+ u && E(u);
379
+ }
380
+ }, null, 8, ["label", "onClick"]),
381
+ B(n(t(h), {
382
+ label: t(r)("report.common.delete"),
383
+ class: "text-fm-color-typo-error",
384
+ onClick: () => {
385
+ const u = t(d).find(
386
+ ($) => $.id === l.reportId
387
+ );
388
+ u && G(u);
389
+ }
390
+ }, {
391
+ label: m(() => [
392
+ fe(S(t(r)("report.common.delete")), 1)
393
+ ]),
394
+ _: 2
395
+ }, 1032, ["label", "onClick"]), [
396
+ [D, l.editable]
397
+ ])
398
+ ]),
399
+ _: 2
400
+ }, 1024)
401
+ ]),
402
+ _: 2
403
+ }, 1032, ["label"])
404
+ ]),
405
+ _: 2
406
+ }, 1032, ["onClick"])
407
+ ]),
408
+ _: 1
409
+ }, 8, ["class", "row-data", "page-size"])), [
410
+ [D, x.value.length > 0]
411
+ ]),
412
+ B(n(ke, null, null, 512), [
413
+ [D, x.value.length === 0]
414
+ ])
415
+ ], 6)
416
+ ]),
417
+ _: 1
418
+ });
419
+ };
420
+ }
421
+ });
422
+ export {
423
+ Je as default
424
+ };