@feedmepos/mf-report 5.17.3 → 5.18.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/App-C9I2NljG.js +152 -0
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-zm9n1O33.js → BaseDialog.vue_vue_type_script_setup_true_lang-DK6im_EY.js} +5 -5
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BTAGYDCz.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-uiSe3Jon.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-CgYGO4yx.js → Default.vue_vue_type_script_setup_true_lang-BX_Bz8I8.js} +2 -2
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-C8cyy9bU.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CNRtuVTK.js} +5 -5
  6. package/dist/{InsightView-DHJpgIpN.js → InsightView-DV6Nvi6h.js} +5 -5
  7. package/dist/{Integration-1nQoa-4L.js → Integration-CWUSF_o7.js} +2 -2
  8. package/dist/{Integrations-CwUDvDyk.js → Integrations-BOVIAEgw.js} +3 -3
  9. package/dist/{Layout-BGv-nIpA.js → Layout-CTUQOBlj.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-2WVMDoeu.js → MenuTab.vue_vue_type_script_setup_true_lang-DAFwqfMp.js} +6 -6
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-WtoZmgSS.js → NavigationTab.vue_vue_type_script_setup_true_lang-BDA9wTdJ.js} +9599 -9310
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-jqchPoxC.js → NoData.vue_vue_type_script_setup_true_lang-Divo8W18.js} +1 -1
  13. package/dist/{OverviewView-BoCmq1bd.js → OverviewView-BdkNW-E-.js} +5 -5
  14. package/dist/Report-YAviXRm9.js +449 -0
  15. package/dist/{ReportEditor-xcYNm8FC.js → ReportEditor-CMqGCf9p.js} +6 -6
  16. package/dist/ReportView-CyTt0xju.js +252 -0
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DgqTEstg.js → SelectComponent.vue_vue_type_script_setup_true_lang-mR2PeX3S.js} +1 -1
  18. package/dist/{Setting-4tVYcTe9.js → Setting-CxGy_k2J.js} +4 -4
  19. package/dist/{TileEditor-Bf1rvmkB.js → TileEditor-BxXlzNXM.js} +7 -7
  20. package/dist/{TransitionFade-Dqqv1vPC.js → TransitionFade-C0ttcU9I.js} +5 -5
  21. package/dist/app.js +71 -23
  22. package/dist/{helper-DhCLLL6W.js → helper-UCnMF9KV.js} +1 -1
  23. package/dist/{vue-i18n-DFboGk6x.js → vue-i18n-CTLGxUiF.js} +2238 -2224
  24. package/package.json +1 -1
  25. package/dist/App-C0PwmiVf.js +0 -149
  26. package/dist/Report-BM6y_VoL.js +0 -426
  27. package/dist/ReportView-AqpMV-lD.js +0 -192
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.17.3",
3
+ "version": "5.18.0-beta.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,149 +0,0 @@
1
- import { defineComponent as O, resolveComponent as b, createBlock as T, openBlock as c, unref as r, isRef as X, withCtx as S, createElementVNode as D, createVNode as k, toDisplayString as E, createTextVNode as Y, onMounted as z, watch as f, ref as I, computed as N, onBeforeMount as Z, onBeforeUnmount as M, createElementBlock as w, Fragment as ee } from "vue";
2
- import { detectLocale as p, useCoreStore as y } from "@feedmepos/mf-common";
3
- import { u as te, d as C, a as oe, b as re, c as ae, e as ne, f as se, s as le, g as ue } from "./vue-i18n-DFboGk6x.js";
4
- import { storeToRefs as $ } from "pinia";
5
- import { u as ie, a as ce, b as me } from "./BaseDialog.vue_vue_type_script_setup_true_lang-zm9n1O33.js";
6
- import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-WtoZmgSS.js";
7
- import { u as U } from "./message-dialog-UoMWOnil.js";
8
- const fe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, pe = /* @__PURE__ */ O({
9
- __name: "Dialog",
10
- setup(m) {
11
- const { t } = te(), n = U(), { isOpened: a, message: u, title: i } = $(U());
12
- return (d, l) => {
13
- const v = b("FmButton"), g = b("FmDialog");
14
- return c(), T(g, {
15
- modelValue: r(a),
16
- "onUpdate:modelValue": l[0] || (l[0] = (h) => X(a) ? a.value = h : null),
17
- overlay: "",
18
- "close-button": !1
19
- }, {
20
- "dialog-header": S(() => [
21
- Y(E(r(i)), 1)
22
- ]),
23
- default: S(() => [
24
- D("p", fe, E(r(u)), 1)
25
- ]),
26
- "dialog-footer": S(() => [
27
- l[1] || (l[1] = D("div", { class: "grow" }, null, -1)),
28
- k(v, {
29
- label: r(t)("report.common.cancel"),
30
- variant: "tertiary",
31
- onClick: r(n).dismiss
32
- }, null, 8, ["label", "onClick"]),
33
- k(v, {
34
- label: r(t)("report.common.confirm"),
35
- onClick: r(n).confirm
36
- }, null, 8, ["label", "onClick"])
37
- ]),
38
- _: 1
39
- }, 8, ["modelValue"]);
40
- };
41
- }
42
- }), x = I(p());
43
- function ge() {
44
- const m = (t) => {
45
- switch (x.value = t, t) {
46
- case "zh-CN":
47
- C.locale("zh-cn");
48
- break;
49
- default:
50
- C.locale("en");
51
- break;
52
- }
53
- };
54
- return z(() => {
55
- m(p());
56
- }), f(() => p(), m, { deep: !0, immediate: !0 }), {
57
- currentLocale: x
58
- };
59
- }
60
- C.locale(p() === "zh-CN" ? "zh-cn" : "en");
61
- const he = ["src"], _e = ["src"], Fe = /* @__PURE__ */ O({
62
- __name: "App",
63
- setup(m) {
64
- const { businessId: t, token: n, country: a } = $(oe()), { sessionUser: u, currentBusiness: i, currentCountry: d, registerSidebarComponent: l } = y(), { getRestaurantAndWarehouse: v, getBusinessSetting: g } = re(), { getFeatureFlags: h } = ae(), { version: s } = $(ie()), { getSettings: j } = ne(), { promptLoader: A } = se(), J = N(() => `https://portal-v1.feedme.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${a.value.toUpperCase()}&menuOption=business-report&token=${n.value}&v2=true&reportV5Button=true`), G = N(() => `https://report-v4.feedme.cc?businessId=${t.value}&country=${a.value}&token=${n.value}&reportV3Button=true`);
65
- f(
66
- [() => i.value, () => u.value, () => d.value],
67
- () => {
68
- var o, e;
69
- i.value && u.value && d.value && (le(a.value), t.value = ((o = i.value) == null ? void 0 : o.id) ?? "", n.value = ((e = u.value) == null ? void 0 : e.token) ?? "", a.value = d.value ?? "");
70
- },
71
- { immediate: !0 }
72
- );
73
- function F(o) {
74
- if (typeof o.data == "string")
75
- try {
76
- const e = JSON.parse(o.data);
77
- (e == null ? void 0 : e.token) !== "" && (e == null ? void 0 : e.token) !== void 0 && (n.value = e.token);
78
- } catch (e) {
79
- console.error(e);
80
- }
81
- }
82
- function B(o) {
83
- if (typeof o.data == "string")
84
- try {
85
- const e = JSON.parse(o.data);
86
- (e == null ? void 0 : e.v5) === !0 ? s.value = _.value : (e == null ? void 0 : e.v3) === !0 && (s.value = "v3");
87
- } catch (e) {
88
- console.error(e);
89
- }
90
- }
91
- f(s, () => {
92
- ["v3", "v4"].includes(s.value) ? y().hideSidebarToggle(!0) : y().hideSidebarToggle(!1);
93
- }), Z(() => {
94
- l(de);
95
- }), z(() => {
96
- console.log("5.17.3", !0), window.addEventListener("message", F), window.addEventListener("message", B);
97
- });
98
- const L = ce(), R = ve();
99
- M(() => {
100
- window.removeEventListener("message", F), window.removeEventListener("message", B), L.$dispose(), R.$dispose();
101
- });
102
- const { getReports: P, getOverviewReport: H, getReportConfig: V } = L, { getSchema: K } = me(), { fetchSchedules: Q } = R, { init: W } = ue(), _ = I("v5");
103
- return f(
104
- () => t.value,
105
- () => {
106
- t.value !== "" && A(async () => {
107
- await W({
108
- apiKey: "6GhcttsJ9Rj9cTevcdrpin",
109
- url: "https://flag.feedme.farm/api/v1/",
110
- enableAnalytics: !1,
111
- cacheFlags: !1
112
- });
113
- const o = await V();
114
- _.value = o.version, s.value = _.value, await Promise.all([
115
- h(),
116
- V(),
117
- H(),
118
- P(),
119
- K(),
120
- Q(),
121
- g(),
122
- v(),
123
- j()
124
- ]);
125
- });
126
- },
127
- {
128
- immediate: !0
129
- }
130
- ), ge(), (o, e) => {
131
- const q = b("router-view");
132
- return c(), w(ee, null, [
133
- k(pe),
134
- r(s) === "v3" ? (c(), w("iframe", {
135
- key: 0,
136
- class: "bg-white h-full w-full",
137
- src: J.value
138
- }, null, 8, he)) : r(s) === "v4" ? (c(), w("iframe", {
139
- key: 1,
140
- class: "bg-white h-full w-full",
141
- src: G.value
142
- }, null, 8, _e)) : (c(), T(q, { key: 2 }))
143
- ], 64);
144
- };
145
- }
146
- });
147
- export {
148
- Fe as default
149
- };
@@ -1,426 +0,0 @@
1
- import { defineComponent as me, ref as O, watch as W, computed as w, h as f, withModifiers as ue, resolveComponent as x, createBlock as T, openBlock as F, withCtx as i, createVNode as n, createElementVNode as y, unref as e, normalizeStyle as pe, normalizeClass as C, withDirectives as B, createElementBlock as de, Fragment as fe, renderList as ve, toDisplayString as R, createTextVNode as ye, vShow as D } from "vue";
2
- import { storeToRefs as X } from "pinia";
3
- import { a as ge } from "./BaseDialog.vue_vue_type_script_setup_true_lang-zm9n1O33.js";
4
- import { _ as be } from "./Default.vue_vue_type_script_setup_true_lang-CgYGO4yx.js";
5
- import { u as he } from "./message-dialog-UoMWOnil.js";
6
- import { b as xe, f as Ce } from "./vue-i18n-DFboGk6x.js";
7
- import { useSnackbar as _e, useBreakpoints as ke, components as we, FmButtonColorThemeVariant as $e } from "@feedmepos/ui-library";
8
- import { _ as Ie } from "./NoData.vue_vue_type_script_setup_true_lang-jqchPoxC.js";
9
- import { useRouter as Se, useRoute as Fe, onBeforeRouteLeave as Re } from "vue-router";
10
- import { useI18n as Le } from "@feedmepos/mf-common";
11
- import { r as Z } from "./i18n-Cif1I9J2.js";
12
- const Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ze = { class: "w-[343px]" }, Pe = { class: "fm-typo-en-body-md-600" }, Ye = /* @__PURE__ */ me({
13
- __name: "Report",
14
- setup(Ne) {
15
- const { t: r, te: A } = Le(), M = Se(), q = Fe(), p = ge(), { business: ee } = X(xe()), {
16
- reports: d,
17
- categories: $,
18
- pinReport: I,
19
- isOpenAddReportDialog: te,
20
- scrollPositionY: J,
21
- customReportQuota: K,
22
- canCreateCustomReport: oe
23
- } = X(p), { promptMessage: U } = he(), { promptLoader: j } = Ce(), v = _e(), { breakpoints: s } = ke(), g = O();
24
- Re(() => {
25
- g.value && (J.value = g.value.$el.children[0].scrollTop);
26
- }), W(g, () => {
27
- g.value && setTimeout(() => {
28
- g.value.$el.children[0].scrollTop = J.value;
29
- }, 200);
30
- });
31
- const L = w(() => I.value && d.value ? d.value.filter((t) => {
32
- var o;
33
- return (o = I.value) == null ? void 0 : o.includes(t.id);
34
- }) : []);
35
- W(
36
- [() => ee.value],
37
- () => {
38
- p.refreshPinReport();
39
- },
40
- { immediate: !0 }
41
- );
42
- const Y = w(() => L.value.length > 0 ? d.value.filter(
43
- (t) => L.value.findIndex((o) => o.id === t.id) === -1
44
- ) : d.value), { FmButton: re, FmMenu: V, FmMenuItem: _, FmIcon: z, FmChip: P } = we, E = w(() => [
45
- { value: void 0, label: "All" },
46
- ...$.value.map((t) => ({
47
- value: t.id,
48
- label: t.name
49
- }))
50
- ]), b = O(E.value[0]), S = O(""), h = w(() => Y.value.length === 0 || $.value.length === 0 ? [] : [
51
- ...L.value.map((o) => {
52
- const a = $.value.find((c) => c.id === o.category);
53
- return {
54
- name: Z(r, A, o.name, "other"),
55
- categoryId: (a == null ? void 0 : a.id) ?? "",
56
- category: a != null && a.name ? r(`report.category.${a.name}`) : r("report.common.uncategorized"),
57
- reportId: o.id,
58
- editable: o.editable,
59
- pin: !0
60
- };
61
- }).filter((o) => b.value.value && o.categoryId !== b.value.value ? !1 : o.name.toLowerCase().indexOf(S.value.toLowerCase()) !== -1),
62
- ...Y.value.map((o) => {
63
- const a = $.value.find((c) => c.id === o.category);
64
- return {
65
- name: Z(r, A, o.name, "other"),
66
- categoryId: (a == null ? void 0 : a.id) ?? "",
67
- category: a != null && a.name ? r(`report.category.${a.name}`) : r("report.common.uncategorized"),
68
- reportId: o.id,
69
- editable: o.editable,
70
- pin: !1
71
- };
72
- }).filter((o) => b.value.value && o.categoryId !== b.value.value ? !1 : o.name.toLowerCase().indexOf(S.value.toLowerCase()) !== -1)
73
- ]), ae = w(
74
- () => h.value.map((t) => `${t.name}${t.category}`).toString()
75
- ), le = [
76
- {
77
- accessorKey: "name",
78
- header: r("report.common.name"),
79
- enableSorting: !1,
80
- cell: (t) => t.getValue()
81
- },
82
- {
83
- accessorKey: "category",
84
- header: r("report.common.category"),
85
- enableSorting: !1,
86
- meta: {
87
- width: "200px"
88
- },
89
- cell: (t) => f(
90
- P,
91
- {
92
- class: `${t.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`,
93
- compact: !0
94
- },
95
- { default: () => t.getValue() }
96
- )
97
- },
98
- {
99
- accessorKey: "",
100
- id: "Action",
101
- header: r("report.common.actions"),
102
- meta: {
103
- width: "100px"
104
- },
105
- cell: (t) => {
106
- const o = t.row.original, a = o.reportId, c = d.value.find((m) => m.id === a), N = [
107
- {
108
- label: r("report.common.duplicate"),
109
- onClick: () => {
110
- c && G(c);
111
- },
112
- variant: "",
113
- disabled: !1
114
- },
115
- {
116
- label: r("report.common.remove"),
117
- onClick: () => {
118
- c && H(c);
119
- },
120
- variant: "destructive",
121
- disabled: !o.editable
122
- }
123
- ];
124
- return f(
125
- "div",
126
- {
127
- class: `flex ${s.value.lg || s.value.md ? "justify-end" : ""} items-center`
128
- },
129
- {
130
- default: () => [
131
- f(
132
- "button",
133
- {
134
- onClick: ue(() => {
135
- c && Q(c);
136
- }, ["stop"]),
137
- class: `text-fm-color-neutral-gray-400 ${o.pin ? "" : "show-pin"} hover:bg-fm-color-opacity-sm rounded-lg flex items-center justify-center`
138
- },
139
- {
140
- default: () => [
141
- f(
142
- z,
143
- {
144
- name: "keep",
145
- class: "px-12 p-8",
146
- outline: !o.pin,
147
- size: "md"
148
- },
149
- {}
150
- )
151
- ]
152
- }
153
- ),
154
- f(
155
- V,
156
- { stopClickPropagation: !0, shift: !0 },
157
- {
158
- default: () => N.map(
159
- (m) => f(
160
- _,
161
- {
162
- onClick: m.disabled ? {} : m.onClick,
163
- label: m.label,
164
- class: m.disabled ? "text-fm-color-typo-disabled" : m.variant === "destructive" ? "text-fm-color-typo-error" : "",
165
- disabled: m.disabled
166
- },
167
- {
168
- label: () => f("p", m.label)
169
- }
170
- )
171
- ),
172
- "menu-button": () => f(
173
- re,
174
- {
175
- variant: "tertiary",
176
- size: "md",
177
- icon: "more_vert",
178
- iconColor: $e.NeutralGray400
179
- },
180
- {}
181
- )
182
- }
183
- )
184
- ]
185
- }
186
- );
187
- }
188
- }
189
- ];
190
- async function G(t) {
191
- if (await U({
192
- title: r("report.common.duplicate"),
193
- message: r("report.messages.confirmAction", {
194
- action: r("report.common.duplicate"),
195
- name: t.name
196
- })
197
- })) {
198
- const a = JSON.parse(JSON.stringify(t));
199
- a.editable = !0, a.id = "", a.name = `${a.name} ${r("report.common.duplicate")}`, j(async () => {
200
- try {
201
- await p.createOrUpdateReport(a), v.open({
202
- message: `${r("report.messages.duplicateSuccess", { name: a.name })}`,
203
- type: "success"
204
- });
205
- } catch (c) {
206
- v.open({ message: JSON.stringify(c), type: "error" });
207
- }
208
- });
209
- }
210
- }
211
- async function H(t) {
212
- await U({
213
- title: r("report.messages.deleteReport"),
214
- message: r("report.messages.confirmDelete", { name: t.name })
215
- }) && j(async () => {
216
- try {
217
- await p.removeReport(t), v.open({
218
- message: r("report.messages.deleteSuccess", { name: t.name }),
219
- type: "success"
220
- });
221
- } catch (a) {
222
- v.open({ message: JSON.stringify(a), type: "error" });
223
- }
224
- });
225
- }
226
- function ne() {
227
- if (oe.value)
228
- te.value = !0;
229
- else {
230
- let t = `Your current plan only support up to ${K.value} custom reports.`;
231
- K.value === 0 && (t = "Your current plan does not support custom report."), v.open({
232
- message: t,
233
- type: "error"
234
- });
235
- }
236
- }
237
- function Q(t) {
238
- I.value && I.value.includes(t.id) ? (v.open({
239
- message: `${r("report.common.unpin")} ${t.name} ${r("report.common.successful")}`,
240
- type: "success"
241
- }), p.clearPinReport(t.id)) : (v.open({
242
- message: `${r("report.common.pin")} ${t.name} ${r("report.common.successful")}`,
243
- type: "success"
244
- }), p.cachePinReport(t));
245
- }
246
- function se(t) {
247
- b.value = t;
248
- }
249
- return (t, o) => {
250
- const a = x("FmPageHead"), c = x("FmSearch"), N = x("FmForm"), m = x("FmListItem"), ce = x("FmList"), ie = x("FmTable");
251
- return F(), T(be, null, {
252
- default: i(() => [
253
- n(a, {
254
- title: e(r)("report.common.report", 1),
255
- class: "h-[68px]",
256
- actions: [
257
- {
258
- label: `${e(r)("report.view.report.add")}`,
259
- value: "add",
260
- isPrimary: !0,
261
- prependIcon: "add"
262
- }
263
- ],
264
- "onClick:action": o[0] || (o[0] = (l) => ne())
265
- }, null, 8, ["title", "actions"]),
266
- y("div", {
267
- class: C(`overflow-y-hidden flex flex-col gap-8 ${e(s).sm || e(s).xs ? "mb-20" : ""}`),
268
- style: pe({ height: `calc(100% - ${e(s).lg || e(s).md ? 72 : 64}px)` })
269
- }, [
270
- n(N, {
271
- class: C(`flex items-center gap-2 ${e(s).sm || e(s).xs ? "px-3" : "px-24"}`)
272
- }, {
273
- default: i(() => [
274
- n(e(V), null, {
275
- "menu-button": i(() => [
276
- n(e(P), { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, {
277
- default: i(() => [
278
- y("p", null, R(e(r)(`report.category.${b.value.label}`)), 1),
279
- n(e(z), { name: "expand_more" })
280
- ]),
281
- _: 1
282
- })
283
- ]),
284
- default: i(() => [
285
- (F(!0), de(fe, null, ve(E.value, (l, u) => (F(), T(e(_), {
286
- key: u,
287
- label: e(r)(`report.category.${l.label}`),
288
- onClick: () => se(l)
289
- }, null, 8, ["label", "onClick"]))), 128))
290
- ]),
291
- _: 1
292
- }),
293
- y("div", {
294
- class: C(`flex ${e(s).sm || e(s).xs ? "justify-center items-center" : ""}`)
295
- }, [
296
- y("p", Ve, R(e(r)("report.common.results", { count: h.value.length })), 1)
297
- ], 2),
298
- o[3] || (o[3] = y("div", { class: "grow" }, null, -1)),
299
- y("div", ze, [
300
- n(c, {
301
- modelValue: S.value,
302
- "onUpdate:modelValue": o[1] || (o[1] = (l) => S.value = l),
303
- class: C(`${e(s).lg || e(s).md ? "grow" : ""}`)
304
- }, null, 8, ["modelValue", "class"])
305
- ])
306
- ]),
307
- _: 1
308
- }, 8, ["class"]),
309
- B((F(), T(ie, {
310
- key: ae.value,
311
- ref_key: "table",
312
- ref: g,
313
- class: C([e(s).sm || e(s).xs ? "px-0" : "px-24", "report-table"]),
314
- style: { height: "calc(100% - 40px)" },
315
- "column-defs": le,
316
- "row-data": h.value,
317
- "page-size": h.value.length,
318
- "hide-footer": !0,
319
- "row-class-name": "row",
320
- onRowClick: o[2] || (o[2] = (l) => {
321
- e(p).updateCurrentReportId(l.original.reportId), e(M).push({
322
- name: "reportView",
323
- query: e(q).query
324
- });
325
- })
326
- }, {
327
- "list-row": i(({ original: l }) => [
328
- n(ce, {
329
- onClick: () => {
330
- l.reportId && (e(p).updateCurrentReportId(l.reportId), e(M).push({
331
- name: "reportView",
332
- query: e(q).query
333
- }));
334
- }
335
- }, {
336
- default: i(() => [
337
- n(m, {
338
- tag: "label",
339
- label: l.name,
340
- clickable: ""
341
- }, {
342
- append: i(() => [
343
- n(e(P), {
344
- class: C(
345
- l.category !== "Uncategorized" ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
346
- ),
347
- compact: !0
348
- }, {
349
- default: i(() => [
350
- y("p", Pe, R(l.category), 1)
351
- ]),
352
- _: 2
353
- }, 1032, ["class"]),
354
- n(e(V), {
355
- placement: "left",
356
- "stop-click-propagation": !0
357
- }, {
358
- "menu-button": i(() => [
359
- n(e(z), {
360
- name: "more_vert",
361
- class: "btn-color"
362
- })
363
- ]),
364
- default: i(() => [
365
- n(e(_), {
366
- label: l.pin ? "Unpin" : "Pin",
367
- onClick: () => {
368
- const u = e(d).find(
369
- (k) => k.id === l.reportId
370
- );
371
- u && Q(u);
372
- }
373
- }, null, 8, ["label", "onClick"]),
374
- n(e(_), {
375
- label: e(r)("report.common.duplicate"),
376
- onClick: () => {
377
- const u = e(d).find(
378
- (k) => k.id === l.reportId
379
- );
380
- u && G(u);
381
- }
382
- }, null, 8, ["label", "onClick"]),
383
- B(n(e(_), {
384
- label: e(r)("report.common.delete"),
385
- class: "text-fm-color-typo-error",
386
- onClick: () => {
387
- const u = e(d).find(
388
- (k) => k.id === l.reportId
389
- );
390
- u && H(u);
391
- }
392
- }, {
393
- label: i(() => [
394
- ye(R(e(r)("report.common.delete")), 1)
395
- ]),
396
- _: 2
397
- }, 1032, ["label", "onClick"]), [
398
- [D, l.editable]
399
- ])
400
- ]),
401
- _: 2
402
- }, 1024)
403
- ]),
404
- _: 2
405
- }, 1032, ["label"])
406
- ]),
407
- _: 2
408
- }, 1032, ["onClick"])
409
- ]),
410
- _: 1
411
- }, 8, ["class", "row-data", "page-size"])), [
412
- [D, h.value.length > 0]
413
- ]),
414
- B(n(Ie, null, null, 512), [
415
- [D, h.value.length === 0]
416
- ])
417
- ], 6)
418
- ]),
419
- _: 1
420
- });
421
- };
422
- }
423
- });
424
- export {
425
- Ye as default
426
- };