@feedmepos/mf-report 5.32.3 → 5.33.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 (40) hide show
  1. package/dist/App-UAlzwh8W.js +358 -0
  2. package/dist/{DateRangeSelect-6ojNsYQf.js → DateRangeSelect-DGymHTm5.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DinIx-4F.js → Default.vue_vue_type_script_setup_true_lang-BAwuWy0R.js} +1 -1
  4. package/dist/{DigestListView-Rv4nvsme.js → DigestListView-eoOXNOE9.js} +3 -3
  5. package/dist/{DigestReaderView-Cy5rWEDn.js → DigestReaderView-CRQ0-vqh.js} +4 -4
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CrRev99v.js → DynamicWidget.vue_vue_type_script_setup_true_lang-rmTQHyLU.js} +7 -7
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CaFtkGgu.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cy021Z5V.js} +753 -753
  8. package/dist/{InsightView-SOS32a9h.js → InsightView-CnAL5JFt.js} +5 -5
  9. package/dist/{Integration-CWo6GL7F.js → Integration-Bb3VR2SI.js} +3 -3
  10. package/dist/{Integrations-T1M6Fbke.js → Integrations-BiUJVHDh.js} +2 -2
  11. package/dist/{Layout-CNhJDEmI.js → Layout-DKpfLtDn.js} +1 -1
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DgFWhBfv.js → LocationSelect.vue_vue_type_script_setup_true_lang-bs8OthZm.js} +1752 -1743
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BltVG4Ta.js → MenuTab.vue_vue_type_script_setup_true_lang-DG6xjZEY.js} +5 -5
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B70bamMw.js → NavigationTab.vue_vue_type_script_setup_true_lang-BjDehTWf.js} +3187 -3187
  15. package/dist/{OverviewView-DM_qaGcz.js → OverviewView-BziKFl9t.js} +5 -5
  16. package/dist/Report-DlvT1bzh.js +722 -0
  17. package/dist/{ReportCanvasView-0680UK2i.js → ReportCanvasView-CMjmwsXO.js} +5 -5
  18. package/dist/{ReportEditor-9gIhhaWp.js → ReportEditor-DZyU_Os7.js} +7 -7
  19. package/dist/{ReportView-B1a3q6Ea.js → ReportView-9qFfZYsM.js} +64 -62
  20. package/dist/{ReportViewRoute-DW-K8Abr.js → ReportViewRoute-DdQof8f9.js} +2 -2
  21. package/dist/{Setting-BikzZySl.js → Setting-CfRLIBY5.js} +3 -3
  22. package/dist/Template-J8TO_oZh.js +557 -0
  23. package/dist/{TileEditor-B21SIE0n.js → TileEditor-DB53kEQW.js} +6 -6
  24. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BH2WdtF-.js → TilePageStack.vue_vue_type_script_setup_true_lang-BPh52iAb.js} +2 -2
  25. package/dist/{TransitionFade-DNtxHJq8.js → TransitionFade-DwTnsmO6.js} +6 -6
  26. package/dist/{app-DSxKqUxD.js → app-DJ8E_G1l.js} +2516 -2448
  27. package/dist/app.js +2 -2
  28. package/dist/assets/{formatChartData.worker-McooHFG-.js → formatChartData.worker-o6kHvamD.js} +4 -4
  29. package/dist/assets/{processTableData.worker-B6m0dNAb.js → processTableData.worker-B7UZDrcg.js} +4 -4
  30. package/dist/{currency-BJiFhFc7.js → currency-6k8Wfqi_.js} +1 -1
  31. package/dist/{index-BdZ-RSDt.js → index-DPXFXAit.js} +15 -15
  32. package/dist/{report-DcuMyUEc.js → report-DUMq52dp.js} +132 -132
  33. package/dist/style.css +1 -1
  34. package/dist/{useDigestFont-DYDD96g_.js → useDigestFont-BD2sKGUr.js} +1 -1
  35. package/dist/{useReportCanvasPanel-6D4KNid_.js → useReportCanvasPanel-BQBD11bU.js} +3 -3
  36. package/dist/{useRestaurantPermission-5C-J7LtV.js → useRestaurantPermission-CrSYU-Wn.js} +1 -1
  37. package/package.json +2 -2
  38. package/dist/App-Ct4zKRmu.js +0 -339
  39. package/dist/Report-BpCqn_xs.js +0 -712
  40. package/dist/Template-DKUNK3A7.js +0 -522
@@ -0,0 +1,557 @@
1
+ import { defineComponent as pe, computed as d, resolveComponent as v, createElementBlock as G, openBlock as g, renderSlot as Re, createVNode as s, withCtx as m, createCommentVNode as B, createElementVNode as n, toDisplayString as c, ref as y, h as p, onMounted as Pe, createBlock as F, unref as l, normalizeStyle as ze, normalizeClass as V, withDirectives as ne, Fragment as De, renderList as Ne, withModifiers as me, vShow as ie } from "vue";
2
+ import { a as Be } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
3
+ import { u as de } from "./_plugin-vue_export-helper-C6QDExPN.js";
4
+ import { _ as Me } from "./Default.vue_vue_type_script_setup_true_lang-BAwuWy0R.js";
5
+ import { u as Ue } from "./global-loader-BuxFfehu.js";
6
+ import { u as Ee } from "./message-dialog-UoMWOnil.js";
7
+ import { u as He } from "./report-DUMq52dp.js";
8
+ import { r as ce } from "./i18n-DbyciK4x.js";
9
+ import { useBreakpoints as Ke, useSnackbar as je, components as Oe, FmButtonColorThemeVariant as Ae } from "@feedmepos/ui-library";
10
+ import { useRouter as qe, useRoute as Ge } from "vue-router";
11
+ import { storeToRefs as ue } from "pinia";
12
+ import { j as Je, u as Qe } from "./app-DJ8E_G1l.js";
13
+ const We = { class: "flex flex-col h-full" }, Xe = ["src"], Ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ze = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, et = /* @__PURE__ */ pe({
14
+ __name: "NoTemplate",
15
+ props: {
16
+ title: { default: "report.view.template.noTemplates" },
17
+ subTitle: { default: "report.view.template.noTemplatesHint" },
18
+ svgPath: { default: "" }
19
+ },
20
+ setup(J) {
21
+ const { t: w, te: x } = de(), b = J;
22
+ function i(f) {
23
+ return x(f) ? w(f) : f;
24
+ }
25
+ const t = d(() => i(b.title)), k = d(() => i(b.subTitle));
26
+ return (f, Q) => {
27
+ const u = v("FmCard");
28
+ return g(), G("div", We, [
29
+ Re(f.$slots, "menu"),
30
+ s(u, {
31
+ class: "p-24 h-full flex flex-col gap-2 items-center justify-center",
32
+ variant: "flat"
33
+ }, {
34
+ default: m(() => [
35
+ f.svgPath ? (g(), G("img", {
36
+ key: 0,
37
+ src: f.svgPath,
38
+ alt: "No data illustration",
39
+ class: "mb-4 w-80 h-80"
40
+ }, null, 8, Xe)) : B("", !0),
41
+ n("p", Ye, c(t.value), 1),
42
+ n("p", Ze, c(k.value), 1)
43
+ ]),
44
+ _: 1
45
+ })
46
+ ]);
47
+ };
48
+ }
49
+ }), tt = { class: "flex items-center gap-2" }, ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, lt = { class: "w-[343px]" }, at = { class: "flex items-center gap-2" }, rt = { class: "fm-typo-en-body-sm-600" }, st = { class: "fm-typo-en-body-sm-600" }, nt = { class: "fm-typo-en-body-md-600" }, mt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, it = { class: "fm-typo-en-title-sm-600" }, ct = { class: "flex flex-col gap-3" }, ut = { class: "flex flex-col gap-1" }, pt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, dt = { class: "flex flex-col gap-1" }, ft = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, kt = /* @__PURE__ */ pe({
50
+ __name: "Template",
51
+ setup(J) {
52
+ const w = He(), { isAdmin: x, canManageTemplate: b } = Je(), { breakpoints: i } = Ke(), { t, te: k } = de(), f = qe(), Q = Ge(), u = je(), { promptLoader: W } = Ue(), { promptMessage: X } = Ee(), { FmButton: M, FmMenu: U, FmMenuItem: S, FmIcon: E, FmChip: C, FmSearch: fe, FmTooltip: ye } = Oe, { editingReport: ve, reportTemplates: ge, categories: be } = ue(w), { isFoodCourt: _e } = ue(Qe()), H = d(() => be.value ?? []), Y = d(() => ge.value ?? []), K = d(() => [
53
+ {
54
+ label: t("report.common.all"),
55
+ value: void 0
56
+ },
57
+ ...H.value.map((o) => ({
58
+ label: j(o.name),
59
+ value: o.id
60
+ }))
61
+ ]), z = y(void 0), xe = d(
62
+ () => {
63
+ var o, e;
64
+ return ((o = K.value.find((a) => a.value === z.value)) == null ? void 0 : o.label) ?? ((e = K.value[0]) == null ? void 0 : e.label) ?? "";
65
+ }
66
+ ), D = y(!1), $ = y(null), h = y(""), L = y(""), I = y(""), R = y(!1), P = y(!1), Ce = d(() => [
67
+ {
68
+ label: t("report.common.uncategorized"),
69
+ value: ""
70
+ },
71
+ ...H.value.map((o) => ({
72
+ label: j(o.name),
73
+ value: o.id
74
+ }))
75
+ ]), N = y(""), T = d(() => {
76
+ const o = N.value.toLowerCase(), e = t("report.common.uncategorized");
77
+ return Y.value.map((a) => {
78
+ const _ = H.value.find((A) => A.id === a.category);
79
+ return {
80
+ id: a.id,
81
+ name: ce(t, k, ee(a), "other"),
82
+ description: ce(t, k, a.description || "", "other"),
83
+ categoryId: a.category || "",
84
+ categoryLabel: _ ? j(_.name) : e,
85
+ isOwner: a.isOwner ?? !1,
86
+ isInternal: a.isInternal ?? !1,
87
+ isSupportFoodCourt: a.isSupportFoodCourt ?? !1
88
+ };
89
+ }).filter((a) => z.value && a.categoryId !== z.value ? !1 : !N.value.trim() || a.name.toLowerCase().includes(o) || a.description.toLowerCase().includes(o));
90
+ }), we = d(
91
+ () => T.value.map(
92
+ (o) => `${o.id}${o.name}${o.categoryLabel}${o.isInternal}${o.isSupportFoodCourt}`
93
+ ).join("")
94
+ ), he = d(() => [
95
+ {
96
+ accessorKey: "name",
97
+ header: t("report.common.name"),
98
+ enableSorting: !1,
99
+ cell: (o) => {
100
+ const e = o.row.original;
101
+ return p("div", { class: "flex items-center gap-2" }, [
102
+ p("span", o.getValue()),
103
+ ...e.isInternal ? [Te()] : [],
104
+ ...Z(e) ? [Fe()] : []
105
+ ]);
106
+ }
107
+ },
108
+ {
109
+ accessorKey: "categoryLabel",
110
+ header: t("report.common.category"),
111
+ enableSorting: !1,
112
+ meta: {
113
+ width: "100px"
114
+ },
115
+ cell: (o) => p(
116
+ C,
117
+ {
118
+ class: `${o.getValue() !== t("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`,
119
+ compact: !0
120
+ },
121
+ { default: () => o.getValue() }
122
+ )
123
+ },
124
+ {
125
+ accessorKey: "description",
126
+ header: t("report.common.description"),
127
+ enableSorting: !1,
128
+ cell: (o) => p("span", o.getValue())
129
+ },
130
+ {
131
+ accessorKey: "",
132
+ id: "Action",
133
+ header: "",
134
+ meta: {
135
+ width: "0px"
136
+ },
137
+ cell: (o) => {
138
+ const e = o.row.original, a = !b(e);
139
+ return p(
140
+ "div",
141
+ {
142
+ class: `flex ${i.value.lg || i.value.md ? "justify-end" : ""} items-center`
143
+ },
144
+ {
145
+ default: () => x.value ? [
146
+ p(
147
+ U,
148
+ {
149
+ stopClickPropagation: !0,
150
+ shift: !0,
151
+ disabled: a
152
+ },
153
+ {
154
+ default: () => [
155
+ p(S, {
156
+ label: t("report.common.edit"),
157
+ disabled: a,
158
+ onClick: () => oe(e.id)
159
+ }),
160
+ p(S, {
161
+ label: t("report.common.delete"),
162
+ disabled: a,
163
+ onClick: () => le(e.id)
164
+ })
165
+ ],
166
+ "menu-button": () => p(M, {
167
+ variant: "tertiary",
168
+ size: "md",
169
+ icon: "more_vert",
170
+ iconColor: Ae.NeutralGray400,
171
+ disabled: a
172
+ })
173
+ }
174
+ )
175
+ ] : []
176
+ }
177
+ );
178
+ }
179
+ }
180
+ ]);
181
+ function Te() {
182
+ return p(
183
+ C,
184
+ {
185
+ class: "bg-fm-color-system-warning-100 text-fm-color-typo-warning fm-typo-en-body-sm-600",
186
+ compact: !0
187
+ },
188
+ { default: () => t("report.view.template.internal") }
189
+ );
190
+ }
191
+ function Z(o) {
192
+ return x.value && !_e.value && o.isSupportFoodCourt;
193
+ }
194
+ function Fe() {
195
+ return p(
196
+ C,
197
+ {
198
+ class: "bg-fm-color-system-success-100 text-fm-color-typo-success fm-typo-en-body-sm-600",
199
+ compact: !0
200
+ },
201
+ { default: () => t("reportV5.template.foodCourt") }
202
+ );
203
+ }
204
+ function j(o) {
205
+ const e = `report.category.${o}`;
206
+ return k(e) ? t(e) : o;
207
+ }
208
+ function Ve(o) {
209
+ return o.id;
210
+ }
211
+ function ee(o) {
212
+ return o.name;
213
+ }
214
+ function ke(o) {
215
+ z.value = o;
216
+ }
217
+ function O(o) {
218
+ return Y.value.find((e) => Ve(e) === o);
219
+ }
220
+ function te(o) {
221
+ const e = O(o);
222
+ if (!e) return;
223
+ const a = {
224
+ ...e.report,
225
+ id: "",
226
+ isDefault: !1,
227
+ editable: !0
228
+ }, _ = ee(e);
229
+ a.name = `${_} duplicate`, ve.value = a, f.push({
230
+ name: "reportEditor",
231
+ query: Q.query
232
+ });
233
+ }
234
+ function oe(o) {
235
+ if (!x.value) {
236
+ u.open({ message: t("report.messages.noPermission"), type: "error" });
237
+ return;
238
+ }
239
+ const e = O(o);
240
+ if (!e) return;
241
+ if (!b(e)) {
242
+ u.open({ message: t("report.messages.noPermission"), type: "error" });
243
+ return;
244
+ }
245
+ const a = JSON.parse(JSON.stringify(e));
246
+ $.value = a, h.value = a.name || "", L.value = a.description || "", I.value = a.category || "", R.value = a.isInternal ?? !1, P.value = a.isSupportFoodCourt ?? !1, D.value = !0;
247
+ }
248
+ async function le(o) {
249
+ if (!x.value) {
250
+ u.open({ message: t("report.messages.noPermission"), type: "error" });
251
+ return;
252
+ }
253
+ const e = O(o);
254
+ if (!e) return;
255
+ if (!b(e)) {
256
+ u.open({ message: t("report.messages.noPermission"), type: "error" });
257
+ return;
258
+ }
259
+ await X({
260
+ title: t("report.messages.deleteTemplate"),
261
+ message: t("report.messages.confirmDelete", { name: e.name })
262
+ }) && await W(async () => {
263
+ await w.removeReportTemplates(e), u.open({
264
+ message: t("report.messages.deleteSuccess", { name: e.name }),
265
+ type: "success"
266
+ });
267
+ });
268
+ }
269
+ function ae() {
270
+ D.value = !1, $.value = null, h.value = "", L.value = "", I.value = "", R.value = !1, P.value = !1;
271
+ }
272
+ async function Se() {
273
+ if (!x.value) {
274
+ u.open({ message: t("report.messages.noPermission"), type: "error" });
275
+ return;
276
+ }
277
+ if (!$.value) return;
278
+ if (!b($.value)) {
279
+ u.open({ message: t("report.messages.noPermission"), type: "error" });
280
+ return;
281
+ }
282
+ const o = t("report.common.update"), e = {
283
+ ...$.value,
284
+ name: h.value,
285
+ description: L.value,
286
+ category: I.value,
287
+ isInternal: R.value,
288
+ isSupportFoodCourt: P.value
289
+ };
290
+ if (await X({
291
+ title: o,
292
+ message: t("report.messages.confirmAction", {
293
+ action: o,
294
+ name: e.name
295
+ })
296
+ }))
297
+ try {
298
+ await W(async () => {
299
+ await w.updateReportTemplate(e);
300
+ }), u.open({
301
+ message: t("report.messages.saveSuccess"),
302
+ type: "success"
303
+ }), ae();
304
+ } catch (_) {
305
+ console.error(_), u.open({
306
+ message: t("report.messages.failedToAction", { action: t("report.common.update") }),
307
+ type: "error"
308
+ });
309
+ }
310
+ }
311
+ return Pe(async () => {
312
+ await w.getReportTemplates();
313
+ }), (o, e) => {
314
+ const a = v("FmPageHead"), _ = v("FmForm"), A = v("FmListItem"), $e = v("FmList"), Le = v("FmTable"), re = v("FmTextField"), se = v("FmSwitch"), Ie = v("FmDialog");
315
+ return g(), F(Me, null, {
316
+ default: m(() => [
317
+ s(a, {
318
+ title: l(t)("report.view.template.title"),
319
+ class: "h-[68px] fm-typo-en-title-md-600"
320
+ }, {
321
+ title: m(() => [
322
+ n("div", tt, [
323
+ n("p", null, c(l(t)("report.view.template.title")), 1),
324
+ s(l(ye), {
325
+ content: l(t)("report.view.template.sharedTooltip"),
326
+ placement: "bottom",
327
+ "z-index": 2e3
328
+ }, {
329
+ default: m(() => [
330
+ s(l(E), {
331
+ name: "info",
332
+ size: "md",
333
+ color: "primary"
334
+ })
335
+ ]),
336
+ _: 1
337
+ }, 8, ["content"])
338
+ ])
339
+ ]),
340
+ _: 1
341
+ }, 8, ["title"]),
342
+ n("div", {
343
+ class: V(`overflow-y-hidden flex flex-col gap-8 ${l(i).sm || l(i).xs ? "mb-20" : ""}`),
344
+ style: ze({ height: `calc(100% - ${l(i).lg || l(i).md ? 72 : 64}px)` })
345
+ }, [
346
+ s(_, {
347
+ class: V(`flex items-center gap-2 ${l(i).sm || l(i).xs ? "px-3" : "px-24"}`)
348
+ }, {
349
+ default: m(() => [
350
+ s(l(U), null, {
351
+ "menu-button": m(() => [
352
+ s(l(C), { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, {
353
+ default: m(() => [
354
+ n("p", null, c(xe.value), 1),
355
+ s(l(E), { name: "expand_more" })
356
+ ]),
357
+ _: 1
358
+ })
359
+ ]),
360
+ default: m(() => [
361
+ (g(!0), G(De, null, Ne(K.value, (r, q) => (g(), F(l(S), {
362
+ key: q,
363
+ label: r.label,
364
+ onClick: () => ke(r.value)
365
+ }, null, 8, ["label", "onClick"]))), 128))
366
+ ]),
367
+ _: 1
368
+ }),
369
+ n("div", {
370
+ class: V(`flex ${l(i).sm || l(i).xs ? "justify-center items-center" : ""}`)
371
+ }, [
372
+ n("p", ot, c(l(t)("report.common.results", { count: T.value.length })), 1)
373
+ ], 2),
374
+ e[8] || (e[8] = n("div", { class: "grow" }, null, -1)),
375
+ n("div", lt, [
376
+ s(l(fe), {
377
+ modelValue: N.value,
378
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => N.value = r),
379
+ class: V(`${l(i).lg || l(i).md ? "grow" : ""}`)
380
+ }, null, 8, ["modelValue", "class"])
381
+ ])
382
+ ]),
383
+ _: 1
384
+ }, 8, ["class"]),
385
+ ne((g(), F(Le, {
386
+ key: we.value,
387
+ ref: "table",
388
+ class: V([l(i).sm || l(i).xs ? "px-0" : "px-24", "report-table"]),
389
+ style: { height: "calc(100% - 40px)" },
390
+ "column-defs": he.value,
391
+ "row-data": T.value,
392
+ "page-size": T.value.length,
393
+ "hide-footer": !0,
394
+ "row-class-name": "row",
395
+ onRowClick: e[1] || (e[1] = (r) => te(r.original.id))
396
+ }, {
397
+ "list-row": m(({ original: r }) => [
398
+ s($e, {
399
+ onClick: () => te(r.id)
400
+ }, {
401
+ default: m(() => [
402
+ s(A, {
403
+ tag: "label",
404
+ label: r.name,
405
+ clickable: ""
406
+ }, {
407
+ append: m(() => [
408
+ n("div", at, [
409
+ r.isInternal ? (g(), F(l(C), {
410
+ key: 0,
411
+ class: "bg-fm-color-system-warning-100 text-fm-color-typo-warning",
412
+ compact: !0
413
+ }, {
414
+ default: m(() => [
415
+ n("p", rt, c(l(t)("report.view.template.internal")), 1)
416
+ ]),
417
+ _: 1
418
+ })) : B("", !0),
419
+ Z(r) ? (g(), F(l(C), {
420
+ key: 1,
421
+ class: "bg-fm-color-system-success-100 text-fm-color-typo-success",
422
+ compact: !0
423
+ }, {
424
+ default: m(() => [
425
+ n("p", st, c(l(t)("reportV5.template.foodCourt")), 1)
426
+ ]),
427
+ _: 1
428
+ })) : B("", !0),
429
+ s(l(C), {
430
+ class: V(
431
+ r.categoryLabel !== l(t)("report.common.uncategorized") ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
432
+ ),
433
+ compact: !0
434
+ }, {
435
+ default: m(() => [
436
+ n("p", nt, c(r.categoryLabel), 1)
437
+ ]),
438
+ _: 2
439
+ }, 1032, ["class"]),
440
+ l(b)(r) ? (g(), F(l(U), {
441
+ key: 2,
442
+ placement: "left",
443
+ "stop-click-propagation": !0
444
+ }, {
445
+ "menu-button": m(() => [
446
+ s(l(E), { name: "more_vert" })
447
+ ]),
448
+ default: m(() => [
449
+ s(l(S), {
450
+ label: l(t)("report.common.edit"),
451
+ onClick: me((q) => oe(r.id), ["stop"])
452
+ }, null, 8, ["label", "onClick"]),
453
+ s(l(S), {
454
+ label: l(t)("report.common.delete"),
455
+ class: "text-fm-color-typo-error",
456
+ onClick: me((q) => le(r.id), ["stop"])
457
+ }, null, 8, ["label", "onClick"])
458
+ ]),
459
+ _: 2
460
+ }, 1024)) : B("", !0)
461
+ ])
462
+ ]),
463
+ "sub-label": m(() => [
464
+ n("p", mt, c(r.description), 1)
465
+ ]),
466
+ _: 2
467
+ }, 1032, ["label"])
468
+ ]),
469
+ _: 2
470
+ }, 1032, ["onClick"])
471
+ ]),
472
+ _: 1
473
+ }, 8, ["class", "column-defs", "row-data", "page-size"])), [
474
+ [ie, T.value.length > 0]
475
+ ]),
476
+ ne(s(et, {
477
+ title: "report.view.template.noTemplates",
478
+ "sub-title": "report.view.template.noTemplatesHint"
479
+ }, null, 512), [
480
+ [ie, T.value.length === 0]
481
+ ])
482
+ ], 6),
483
+ s(Ie, {
484
+ modelValue: D.value,
485
+ "onUpdate:modelValue": e[7] || (e[7] = (r) => D.value = r),
486
+ overlay: !0,
487
+ "dismiss-away": !0
488
+ }, {
489
+ "dialog-header": m(() => [
490
+ n("p", it, c(l(t)("report.common.edit")), 1)
491
+ ]),
492
+ default: m(() => [
493
+ n("div", ct, [
494
+ s(re, {
495
+ modelValue: h.value,
496
+ "onUpdate:modelValue": e[2] || (e[2] = (r) => h.value = r),
497
+ label: l(t)("report.common.name"),
498
+ placeholder: l(t)("report.view.report.enter")
499
+ }, null, 8, ["modelValue", "label", "placeholder"]),
500
+ s(re, {
501
+ modelValue: L.value,
502
+ "onUpdate:modelValue": e[3] || (e[3] = (r) => L.value = r),
503
+ label: l(t)("report.common.description"),
504
+ placeholder: l(t)("report.common.description")
505
+ }, null, 8, ["modelValue", "label", "placeholder"]),
506
+ s(Be, {
507
+ modelValue: I.value,
508
+ "onUpdate:modelValue": e[4] || (e[4] = (r) => I.value = r),
509
+ label: l(t)("report.common.category"),
510
+ items: Ce.value,
511
+ "disable-search": !0
512
+ }, null, 8, ["modelValue", "label", "items"]),
513
+ n("div", ut, [
514
+ s(se, {
515
+ modelValue: R.value,
516
+ "onUpdate:modelValue": e[5] || (e[5] = (r) => R.value = r),
517
+ label: l(t)("report.view.template.internal"),
518
+ "label-placement": "right"
519
+ }, null, 8, ["modelValue", "label"]),
520
+ n("p", pt, c(l(t)("report.view.template.internalHint")), 1)
521
+ ]),
522
+ n("div", dt, [
523
+ s(se, {
524
+ modelValue: P.value,
525
+ "onUpdate:modelValue": e[6] || (e[6] = (r) => P.value = r),
526
+ label: l(t)("reportV5.template.foodCourt"),
527
+ "label-placement": "right"
528
+ }, null, 8, ["modelValue", "label"]),
529
+ n("p", ft, c(l(t)("reportV5.template.foodCourtHint")), 1)
530
+ ])
531
+ ])
532
+ ]),
533
+ "dialog-footer": m(() => [
534
+ e[9] || (e[9] = n("div", { class: "grow" }, null, -1)),
535
+ s(l(M), {
536
+ label: l(t)("report.common.cancel"),
537
+ variant: "tertiary",
538
+ onClick: ae
539
+ }, null, 8, ["label"]),
540
+ s(l(M), {
541
+ label: l(t)("report.common.save"),
542
+ variant: "primary",
543
+ disabled: h.value.trim() === "",
544
+ onClick: Se
545
+ }, null, 8, ["label", "disabled"])
546
+ ]),
547
+ _: 1
548
+ }, 8, ["modelValue"])
549
+ ]),
550
+ _: 1
551
+ });
552
+ };
553
+ }
554
+ });
555
+ export {
556
+ kt as default
557
+ };
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as de, mergeModels as ve, useModel as ge, computed as x, ref as ae, resolveComponent as A, createElementBlock as W, openBlock as m, createVNode as u, createElementVNode as b, unref as l, withCtx as ee, toDisplayString as Y, Fragment as me, renderList as $e, withModifiers as he, createTextVNode as Xe, watch as ke, createCommentVNode as z, createBlock as I, renderSlot as kl, onBeforeUnmount as rl, resolveDynamicComponent as Fl, normalizeClass as Ve, withDirectives as Fe, vShow as Te, onMounted as Vl, withKeys as vl, vModelText as Wl, normalizeStyle as il, isRef as Xl } from "vue";
2
2
  import { useRoute as Hl, useRouter as ql } from "vue-router";
3
- import { u as ul, f as dl, h as We, F as Ne, d as He, S as sl, a as Gl, W as Jl, T as Yl, c as Kl, b as fl } from "./TransitionFade-DNtxHJq8.js";
4
- import { W as J, a as Sl, D as Ye, S as gl, C as Zl, u as _l, P as yl, F as Pe, c as Le, o as Ql, k as et } from "./report-DcuMyUEc.js";
3
+ import { u as ul, f as dl, h as We, F as Ne, d as He, S as sl, a as Gl, W as Jl, T as Yl, c as Kl, b as fl } from "./TransitionFade-DwTnsmO6.js";
4
+ import { W as J, a as Sl, D as Ye, S as gl, C as Zl, u as _l, P as yl, F as Pe, c as Le, o as Ql, k as et } from "./report-DUMq52dp.js";
5
5
  import { storeToRefs as Re } from "pinia";
6
6
  import { u as Tl } from "./message-dialog-UoMWOnil.js";
7
7
  import { useSnackbar as lt, useBreakpoints as $l, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
8
- import { h as tt, g as xe, R as bl, d as ot, e as at, a as nt, L as Ae, b as ol, S as re, c as fe, f as al, j as hl, _ as Dl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CrRev99v.js";
9
- import { a as qe, _ as it } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CaFtkGgu.js";
8
+ import { h as tt, g as xe, R as bl, d as ot, e as at, a as nt, L as Ae, b as ol, S as re, c as fe, f as al, j as hl, _ as Dl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-rmTQHyLU.js";
9
+ import { a as qe, _ as it } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cy021Z5V.js";
10
10
  import { a as be, _ as Ul } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
11
11
  import { u as pe, _ as Bl } from "./_plugin-vue_export-helper-C6QDExPN.js";
12
12
  import { r as ue } from "./i18n-DbyciK4x.js";
13
13
  import { a as je } from "./index-CtZE4sab.js";
14
- import { d as Ke } from "./DateRangeSelect-6ojNsYQf.js";
15
- import { a as st, t as wl, i as rt, z as ut } from "./app-DSxKqUxD.js";
14
+ import { d as Ke } from "./DateRangeSelect-DGymHTm5.js";
15
+ import { a as st, t as wl, i as rt, z as ut } from "./app-DJ8E_G1l.js";
16
16
  const ll = [
17
17
  {
18
18
  type: J.Circular,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as R, reactive as J, resolveComponent as B, createElementBlock as d, openBlock as n, Fragment as I, renderList as P, createBlock as V, createCommentVNode as y, unref as oe, normalizeStyle as w, normalizeClass as l, withCtx as C, createVNode as u, createElementVNode as $, toDisplayString as T, mergeProps as ne, createSlots as ie, withDirectives as G, vShow as L, ref as de, watch as se } from "vue";
2
2
  import { u as X } from "./_plugin-vue_export-helper-C6QDExPN.js";
3
- import { k as ae, _ as O, l as ce, m as le, n as ue, t as pe, p as me } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CrRev99v.js";
4
- import { i as fe, F as D, W as ye } from "./report-DcuMyUEc.js";
3
+ import { k as ae, _ as O, l as ce, m as le, n as ue, t as pe, p as me } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-rmTQHyLU.js";
4
+ import { i as fe, F as D, W as ye } from "./report-DUMq52dp.js";
5
5
  import { useBreakpoints as he } from "@feedmepos/ui-library";
6
6
  import { r as Y } from "./i18n-DbyciK4x.js";
7
7
  const _e = {
@@ -4,15 +4,15 @@ import { useCoreStore as po } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as In } from "pinia";
5
5
  import { useRoute as mo } from "vue-router";
6
6
  import { u as Lt, _ as an } from "./_plugin-vue_export-helper-C6QDExPN.js";
7
- import { W as xe, Q as ho, b as Ge } from "./report-DcuMyUEc.js";
7
+ import { W as xe, Q as ho, b as Ge } from "./report-DUMq52dp.js";
8
8
  import { p as go, a as On } from "./index-CtZE4sab.js";
9
- import { d as Sn } from "./DateRangeSelect-6ojNsYQf.js";
10
- import { u as vo, F as bo, v as yo, d as Ut } from "./app-DSxKqUxD.js";
11
- import { I as rt, b as Cn, c as Rn, g as Eo, a as _o } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CaFtkGgu.js";
9
+ import { d as Sn } from "./DateRangeSelect-DGymHTm5.js";
10
+ import { u as vo, F as bo, w as yo, d as Ut } from "./app-DJ8E_G1l.js";
11
+ import { I as rt, b as Cn, c as Rn, g as Eo, a as _o } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cy021Z5V.js";
12
12
  import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
13
13
  import { r as fn } from "./i18n-DbyciK4x.js";
14
14
  import { useSnackbar as To } from "@feedmepos/ui-library";
15
- import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CrRev99v.js";
15
+ import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-rmTQHyLU.js";
16
16
  const wo = {
17
17
  key: 0,
18
18
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
@@ -2716,7 +2716,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2716
2716
  };
2717
2717
  }
2718
2718
  }), zr = async (t, e, n = []) => {
2719
- const { businessId: o } = In(vo());
2719
+ const { scopePath: o } = In(vo());
2720
2720
  if (!t || !t.trim())
2721
2721
  return { valid: !1, queryDatasource: e, error: { message: "Formula is empty" } };
2722
2722
  if (!o.value)