@feedmepos/mf-report 5.33.3-beta.0 → 5.34.0-beta.1
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/{App-GzjtZ_d7.js → App-DyrakazI.js} +98 -97
- package/dist/{DateRangeSelect-CfV_WX9B.js → DateRangeSelect-D5SGi6ca.js} +67 -67
- package/dist/{Default.vue_vue_type_script_setup_true_lang-Y9S0SZ7o.js → Default.vue_vue_type_script_setup_true_lang-DsTRZa_6.js} +3 -3
- package/dist/DigestListView-BnkDRa7x.js +876 -0
- package/dist/{DigestReaderView-C1aKtovl.js → DigestReaderView-ByISB4qT.js} +63 -63
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CH2pf4XK.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BKNNtuyG.js} +733 -733
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DJ-LIqFg.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DHrnVaog.js} +526 -526
- package/dist/{InsightView-O5pzXY-g.js → InsightView-CUBTqwTI.js} +88 -88
- package/dist/{Integration-DHtuuAEx.js → Integration-WDbqUebw.js} +30 -30
- package/dist/{Integrations-xK1WbyH5.js → Integrations-C5_nERZt.js} +10 -10
- package/dist/{Layout-QoN7zexW.js → Layout-BqzoK8Mg.js} +3 -3
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DEeDj0JI.js → LocationSelect.vue_vue_type_script_setup_true_lang-kvdk_gEw.js} +306 -306
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-tmHI7t6B.js → MenuTab.vue_vue_type_script_setup_true_lang-B8uHS4bV.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DNrIAtGk.js → NavigationTab.vue_vue_type_script_setup_true_lang-CpexikuB.js} +12784 -11760
- package/dist/{OverviewView-CcqkLuon.js → OverviewView-mOEI9DAV.js} +7 -7
- package/dist/{Report-CcGTeCCn.js → Report-DmbTzjbj.js} +12 -12
- package/dist/{ReportCanvasView-C7CJq01e.js → ReportCanvasView-BqZ38Tsk.js} +426 -426
- package/dist/{ReportEditor-Vu592FeV.js → ReportEditor-8oAVfFdY.js} +32 -32
- package/dist/{ReportView-D-J7pmp5.js → ReportView-B6nE3qwV.js} +13 -13
- package/dist/{ReportViewRoute-TSaFpVVj.js → ReportViewRoute-DqXbM93B.js} +5 -5
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js +137 -0
- package/dist/{Setting-tUrQLnqy.js → Setting-C01x-O-V.js} +6 -6
- package/dist/{Template-DRdVU80G.js → Template-VyBWHUXE.js} +80 -80
- package/dist/{TileEditor-CIR7d_cP.js → TileEditor-DICyBR1o.js} +1566 -1566
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BtHZMHPR.js → TilePageStack.vue_vue_type_script_setup_true_lang-Dyaao76o.js} +82 -82
- package/dist/{TransitionFade-7EvXhuHo.js → TransitionFade-kXCDPEMQ.js} +170 -170
- package/dist/{XeroRedirect-CuTrP62C.js → XeroRedirect-D4sHbZe7.js} +3 -3
- package/dist/_plugin-vue_export-helper-Bx7s49ra.js +2828 -0
- package/dist/{app-1dD87x1L.js → app-BQDKX7NB.js} +5688 -13890
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-DvK7K5ca.js → formatChartData.worker-Cpgnh20a.js} +62 -62
- package/dist/assets/{processTableData.worker-C3l4iUXL.js → processTableData.worker-B7I6PElJ.js} +64 -64
- package/dist/{chart-BywXiz4O.js → chart-DU0N9V2o.js} +7 -4
- package/dist/currency-8SmajsvB.js +12 -0
- package/dist/index-BQ8NJuCA.js +24722 -0
- package/dist/{report-B547gOvv.js → report-CcXsPATD.js} +23 -23
- package/dist/style.css +1 -1
- package/dist/{useDigestFont-CVDCu0Is.js → useDigestFont-CjZZOIRM.js} +80 -80
- package/dist/{useReportCanvasPanel-DLt-AkFQ.js → useReportCanvasPanel-dWlB_xvo.js} +975 -976
- package/dist/{useRestaurantPermission-BtRjWi-p.js → useRestaurantPermission-D3G7ET0Z.js} +2 -2
- package/package.json +11 -11
- package/dist/DigestListView-DJQikkEC.js +0 -876
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js +0 -137
- package/dist/_plugin-vue_export-helper-C6QDExPN.js +0 -2718
- package/dist/currency-BXCfWg4A.js +0 -12
- package/dist/index-B_yQyaGT.js +0 -25511
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ref as I, defineComponent as S, watch as P, computed as $, onMounted as de,
|
|
2
|
-
import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { D as ge } from "./DateRangeSelect-
|
|
4
|
-
import { d as E, u as Q, F as ee, q as te, a as pe, j as ve, h as H, p as he, s as ye, v as
|
|
1
|
+
import { ref as I, defineComponent as S, watch as P, computed as $, onMounted as de, openBlock as o, createElementBlock as i, createElementVNode as s, renderSlot as J, toDisplayString as C, resolveDirective as K, Fragment as z, renderList as N, createBlock as R, resolveDynamicComponent as U, unref as m, withCtx as B, withDirectives as T, createVNode as p, createCommentVNode as D, normalizeClass as W, resolveComponent as M, useModel as ce, createTextVNode as ue, isRef as j, nextTick as fe } from "vue";
|
|
2
|
+
import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-DsTRZa_6.js";
|
|
3
|
+
import { D as ge } from "./DateRangeSelect-D5SGi6ca.js";
|
|
4
|
+
import { d as E, u as Q, F as ee, q as te, a as pe, j as ve, h as H, p as he, s as ye, v as xe } from "./app-BQDKX7NB.js";
|
|
5
5
|
import { storeToRefs as ae } from "pinia";
|
|
6
|
-
import { C as le, r as
|
|
6
|
+
import { C as le, r as we } from "./chart-DU0N9V2o.js";
|
|
7
7
|
import { components as Y, useSnackbar as be } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as se } from "./_plugin-vue_export-helper-
|
|
8
|
+
import { u as se } from "./_plugin-vue_export-helper-Bx7s49ra.js";
|
|
9
9
|
import { c as X } from "./index-CtZE4sab.js";
|
|
10
|
-
import { _ as Ce } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as Ce } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
|
|
11
|
+
import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-kvdk_gEw.js";
|
|
12
12
|
import { useCoreStore as _e } from "@feedmepos/mf-common";
|
|
13
|
-
import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CpexikuB.js";
|
|
14
14
|
function Ae({ start: e, end: t }) {
|
|
15
15
|
return `${E(t).format("DD MMM")}, ${E(t).format("YYYY")}`;
|
|
16
16
|
}
|
|
@@ -38,7 +38,7 @@ const De = async (e) => {
|
|
|
38
38
|
};
|
|
39
39
|
return te.fetch(a);
|
|
40
40
|
};
|
|
41
|
-
le.register(...
|
|
41
|
+
le.register(...we);
|
|
42
42
|
const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "flex flex-col gap-8" }, Be = { class: "fm-color-typo-primary fm-typo-en-body-lg-400" }, Ve = { class: "fm-color-typo-secondary fm-typo-en-body-md-400" }, Se = { class: "grow" }, Pe = /* @__PURE__ */ S({
|
|
43
43
|
__name: "LineChart",
|
|
44
44
|
props: {
|
|
@@ -65,28 +65,28 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
65
65
|
() => t.legend
|
|
66
66
|
],
|
|
67
67
|
() => {
|
|
68
|
-
l && l.config.options && (l.destroy(),
|
|
68
|
+
l && l.config.options && (l.destroy(), r());
|
|
69
69
|
}
|
|
70
70
|
);
|
|
71
|
-
const n = $(() => t.transpose ? "y" : "x"),
|
|
71
|
+
const n = $(() => t.transpose ? "y" : "x"), x = $(() => ({
|
|
72
72
|
labels: t.xAxis.categories,
|
|
73
|
-
datasets: t.datasets.map((
|
|
74
|
-
...
|
|
75
|
-
borderDash:
|
|
76
|
-
tension:
|
|
73
|
+
datasets: t.datasets.map((d) => ({
|
|
74
|
+
...d,
|
|
75
|
+
borderDash: d.dash ? [5, 5] : void 0,
|
|
76
|
+
tension: d.tension || 0.1
|
|
77
77
|
}))
|
|
78
78
|
}));
|
|
79
79
|
P(
|
|
80
|
-
|
|
80
|
+
x,
|
|
81
81
|
() => {
|
|
82
|
-
l && (l.data =
|
|
82
|
+
l && (l.data = x.value, l.update());
|
|
83
83
|
},
|
|
84
84
|
{ deep: !0 }
|
|
85
85
|
);
|
|
86
|
-
function
|
|
86
|
+
function r() {
|
|
87
87
|
a.value && (l = new le(a.value, {
|
|
88
88
|
type: "line",
|
|
89
|
-
data:
|
|
89
|
+
data: x.value,
|
|
90
90
|
options: {
|
|
91
91
|
plugins: {
|
|
92
92
|
legend: t.legend || {
|
|
@@ -137,12 +137,12 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
137
137
|
}));
|
|
138
138
|
}
|
|
139
139
|
return de(() => {
|
|
140
|
-
|
|
141
|
-
}), (
|
|
140
|
+
r();
|
|
141
|
+
}), (d, k) => (o(), i("div", Re, [
|
|
142
142
|
s("div", Ie, [
|
|
143
|
-
J(
|
|
144
|
-
s("div", Be, C(
|
|
145
|
-
s("div", Ve, C(
|
|
143
|
+
J(d.$slots, "title"),
|
|
144
|
+
s("div", Be, C(e.name), 1),
|
|
145
|
+
s("div", Ve, C(e.paragraph), 1)
|
|
146
146
|
]),
|
|
147
147
|
s("div", Se, [
|
|
148
148
|
s("canvas", {
|
|
@@ -166,7 +166,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
166
166
|
},
|
|
167
167
|
setup(e) {
|
|
168
168
|
const t = e, a = $(() => `${t.size}px`);
|
|
169
|
-
return (l, n) => (o(),
|
|
169
|
+
return (l, n) => (o(), i("svg", {
|
|
170
170
|
width: a.value,
|
|
171
171
|
height: a.value,
|
|
172
172
|
viewBox: "0 0 24 24",
|
|
@@ -217,44 +217,44 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
217
217
|
},
|
|
218
218
|
setup(e) {
|
|
219
219
|
const t = I(0), a = I(), l = e;
|
|
220
|
-
function n(
|
|
221
|
-
var
|
|
220
|
+
function n(r) {
|
|
221
|
+
var d;
|
|
222
222
|
if (a.value) {
|
|
223
|
-
const k = (((
|
|
224
|
-
a.value.scrollLeft = k *
|
|
223
|
+
const k = (((d = a.value) == null ? void 0 : d.scrollWidth) ?? 1) / l.items.length;
|
|
224
|
+
a.value.scrollLeft = k * r;
|
|
225
225
|
}
|
|
226
|
-
t.value =
|
|
226
|
+
t.value = r;
|
|
227
227
|
}
|
|
228
228
|
P(
|
|
229
229
|
() => a.value,
|
|
230
230
|
() => {
|
|
231
|
-
var
|
|
231
|
+
var r;
|
|
232
232
|
if (a.value) {
|
|
233
|
-
const
|
|
233
|
+
const d = ((((r = a.value) == null ? void 0 : r.scrollWidth) ?? 1) - 400) / l.items.length;
|
|
234
234
|
a.value.addEventListener("scroll", () => {
|
|
235
235
|
var g;
|
|
236
|
-
const k = Math.floor((((g = a.value) == null ? void 0 : g.scrollLeft) ?? 1) /
|
|
236
|
+
const k = Math.floor((((g = a.value) == null ? void 0 : g.scrollLeft) ?? 1) / d);
|
|
237
237
|
t.value = k;
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
);
|
|
242
|
-
const { FmTooltip:
|
|
243
|
-
return (
|
|
242
|
+
const { FmTooltip: x } = Y;
|
|
243
|
+
return (r, d) => {
|
|
244
244
|
const k = K("wave");
|
|
245
|
-
return o(),
|
|
245
|
+
return o(), i("div", ze, [
|
|
246
246
|
s("p", Ne, C(l.title), 1),
|
|
247
247
|
s("div", {
|
|
248
248
|
ref_key: "scroll",
|
|
249
249
|
ref: a,
|
|
250
250
|
class: "flex gap-8 overflow-x-scroll snap-x snap-mandatory w-full scrollbar-hide"
|
|
251
251
|
}, [
|
|
252
|
-
(o(!0),
|
|
252
|
+
(o(!0), i(z, null, N(l.items, (g, c) => (o(), i("div", {
|
|
253
253
|
key: `reason_${c}`,
|
|
254
254
|
class: "min-w-[368px] border rounded-lg p-16 snap-always snap-center flex gap-8 flex-col"
|
|
255
255
|
}, [
|
|
256
256
|
s("div", Ee, [
|
|
257
|
-
(o(), R(U(g.defination ? m(
|
|
257
|
+
(o(), R(U(g.defination ? m(x) : "div"), {
|
|
258
258
|
content: g.defination,
|
|
259
259
|
"z-index": 100
|
|
260
260
|
}, {
|
|
@@ -263,8 +263,8 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
263
263
|
]),
|
|
264
264
|
_: 2
|
|
265
265
|
}, 1032, ["content"])),
|
|
266
|
-
|
|
267
|
-
g.header === "Introduce Kid-Friendly Menu Items" ? T((o(),
|
|
266
|
+
d[0] || (d[0] = s("div", { class: "grow" }, null, -1)),
|
|
267
|
+
g.header === "Introduce Kid-Friendly Menu Items" ? T((o(), i("button", Ye, [
|
|
268
268
|
p(oe, { size: 22 })
|
|
269
269
|
])), [
|
|
270
270
|
[k, !0]
|
|
@@ -272,12 +272,12 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
272
272
|
]),
|
|
273
273
|
s("p", Ze, C(g.subLabel), 1)
|
|
274
274
|
]))), 128)),
|
|
275
|
-
l.items.length === 0 ? (o(),
|
|
275
|
+
l.items.length === 0 ? (o(), i("div", qe, [
|
|
276
276
|
s("p", null, "No " + C(l.title.toLowerCase()) + " at the moment", 1)
|
|
277
277
|
])) : D("", !0)
|
|
278
278
|
], 512),
|
|
279
|
-
e.items.length > 1 ? (o(),
|
|
280
|
-
(o(!0),
|
|
279
|
+
e.items.length > 1 ? (o(), i("div", He, [
|
|
280
|
+
(o(!0), i(z, null, N(e.items, (g, c) => (o(), i("span", {
|
|
281
281
|
key: `carousel_${c}`,
|
|
282
282
|
class: W([
|
|
283
283
|
"w-[11px] h-[11px] rounded-lg cursor-pointer",
|
|
@@ -316,17 +316,17 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
316
316
|
emits: ["click-feedback"],
|
|
317
317
|
setup(e, { emit: t }) {
|
|
318
318
|
const { t: a } = se(), l = $(() => e.widget.data.isAnomaly > 0 ? "bg-fm-color-system-success-100 text-fm-color-typo-success" : e.widget.data.isAnomaly < 0 ? "bg-fm-color-system-error-100 text-fm-color-typo-error" : ""), n = t;
|
|
319
|
-
function
|
|
319
|
+
function x(u) {
|
|
320
320
|
u === e.widget.feedback.reaction ? n("click-feedback", null) : n("click-feedback", u);
|
|
321
321
|
}
|
|
322
|
-
const
|
|
322
|
+
const r = $(() => {
|
|
323
323
|
const u = "rgb(66, 133, 244)";
|
|
324
324
|
let f = u;
|
|
325
325
|
return e.widget.data.isAnomaly > 0 ? f = "#1F7735" : e.widget.data.isAnomaly < 0 && (f = "#99231D"), [
|
|
326
326
|
{
|
|
327
327
|
label: "Anomaly",
|
|
328
328
|
data: e.widget.data.actualValues.map(
|
|
329
|
-
(h,
|
|
329
|
+
(h, w) => w >= e.widget.data.actualValues.length - 2 ? h : null
|
|
330
330
|
),
|
|
331
331
|
fill: !1,
|
|
332
332
|
borderColor: f,
|
|
@@ -340,7 +340,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
340
340
|
{
|
|
341
341
|
label: "Actual",
|
|
342
342
|
data: e.widget.data.actualValues.map(
|
|
343
|
-
(h,
|
|
343
|
+
(h, w) => w !== e.widget.data.actualValues.length - 1 ? h : null
|
|
344
344
|
),
|
|
345
345
|
fill: !1,
|
|
346
346
|
borderColor: u,
|
|
@@ -369,7 +369,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
369
369
|
borderColor: "white"
|
|
370
370
|
}
|
|
371
371
|
];
|
|
372
|
-
}),
|
|
372
|
+
}), d = $(
|
|
373
373
|
() => e.widget.data.labels.map((u) => {
|
|
374
374
|
const f = E(u), A = [f.format("DD MMM")], h = f.format("d");
|
|
375
375
|
return (h === "6" || h === "0") && A.push(f.format("ddd")), A;
|
|
@@ -387,16 +387,16 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
}, g = $(() => ({ categories:
|
|
390
|
+
}, g = $(() => ({ categories: d.value }));
|
|
391
391
|
$(() => X(e.widget.category));
|
|
392
392
|
const c = $(() => "The total money earned from all customer purchases, including sales, service charges, rounding, and delivery fees, minus any discounts. Revenue = gross sales - discounts + SST + service charge + rounding + delivery fee"), { FmTooltip: _ } = Y;
|
|
393
393
|
return (u, f) => {
|
|
394
394
|
var L, V;
|
|
395
|
-
const A = M("FmChip"), h = M("FmIcon"),
|
|
396
|
-
return o(),
|
|
395
|
+
const A = M("FmChip"), h = M("FmIcon"), w = K("wave");
|
|
396
|
+
return o(), i("div", {
|
|
397
397
|
class: W(["flex flex-col gap-40 overflow-y-scroll relative scrollbar-hide", e.detail ? "max-w-[515px]" : "max-w-[368px]"])
|
|
398
398
|
}, [
|
|
399
|
-
T((o(),
|
|
399
|
+
T((o(), i("div", {
|
|
400
400
|
variant: "outlined",
|
|
401
401
|
class: W(["flex flex-col p-16 gap-16 relative border rounded-lg", e.detail ? "" : "cursor-pointer"])
|
|
402
402
|
}, [
|
|
@@ -431,19 +431,19 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
431
431
|
s("div", at, C(m(Ae)(e.widget.dateRange)), 1)
|
|
432
432
|
])
|
|
433
433
|
]),
|
|
434
|
-
e.detail ? (o(),
|
|
434
|
+
e.detail ? (o(), i("div", lt, [
|
|
435
435
|
p(Pe, {
|
|
436
|
-
datasets:
|
|
436
|
+
datasets: r.value,
|
|
437
437
|
"x-axis": g.value,
|
|
438
438
|
legend: k,
|
|
439
439
|
"maintain-aspect-ratio": !1
|
|
440
440
|
}, null, 8, ["datasets", "x-axis"])
|
|
441
441
|
])) : D("", !0),
|
|
442
|
-
e.detail ? (o(),
|
|
442
|
+
e.detail ? (o(), i("div", st, C(e.widget.description), 1)) : D("", !0)
|
|
443
443
|
], 2)), [
|
|
444
|
-
[
|
|
444
|
+
[w, !e.detail]
|
|
445
445
|
]),
|
|
446
|
-
e.detail && e.widget.data.isAnomaly < 0 ? (o(),
|
|
446
|
+
e.detail && e.widget.data.isAnomaly < 0 ? (o(), i("div", ot, [
|
|
447
447
|
p(G, {
|
|
448
448
|
title: m(a)("report.view.insight.reason"),
|
|
449
449
|
items: (L = e.widget.data.recommendations) == null ? void 0 : L.map((b) => ({
|
|
@@ -461,7 +461,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
461
461
|
}))
|
|
462
462
|
}, null, 8, ["title", "items"])
|
|
463
463
|
])) : D("", !0),
|
|
464
|
-
e.detail ? (o(),
|
|
464
|
+
e.detail ? (o(), i("div", nt, [
|
|
465
465
|
s("div", it, C(m(a)("report.view.insight.feedback.question")), 1),
|
|
466
466
|
s("div", rt, [
|
|
467
467
|
T(p(h, {
|
|
@@ -469,18 +469,18 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
469
469
|
name: "thumb_up",
|
|
470
470
|
size: "md",
|
|
471
471
|
outline: e.widget.feedback.reaction !== !0,
|
|
472
|
-
onClick: f[0] || (f[0] = () =>
|
|
472
|
+
onClick: f[0] || (f[0] = () => x(!0))
|
|
473
473
|
}, null, 8, ["outline"]), [
|
|
474
|
-
[
|
|
474
|
+
[w, !0]
|
|
475
475
|
]),
|
|
476
476
|
T(p(h, {
|
|
477
477
|
class: "cursor-pointer p-4 icon-btn",
|
|
478
478
|
name: "thumb_down",
|
|
479
479
|
size: "md",
|
|
480
480
|
outline: e.widget.feedback.reaction !== !1,
|
|
481
|
-
onClick: f[1] || (f[1] = () =>
|
|
481
|
+
onClick: f[1] || (f[1] = () => x(!1))
|
|
482
482
|
}, null, 8, ["outline"]), [
|
|
483
|
-
[
|
|
483
|
+
[w, !0]
|
|
484
484
|
])
|
|
485
485
|
])
|
|
486
486
|
])) : D("", !0)
|
|
@@ -497,24 +497,24 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
497
497
|
setup(e) {
|
|
498
498
|
const t = ce(e, "modelValue"), { FmSideSheet: a } = Y;
|
|
499
499
|
return (l, n) => {
|
|
500
|
-
const
|
|
500
|
+
const x = M("FmButton");
|
|
501
501
|
return o(), R(U(m(a)), {
|
|
502
502
|
modelValue: t.value,
|
|
503
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
503
|
+
"onUpdate:modelValue": n[1] || (n[1] = (r) => t.value = r),
|
|
504
504
|
"fullscreen-size": "sm",
|
|
505
505
|
"dismiss-away": !0,
|
|
506
506
|
"max-width": 512
|
|
507
507
|
}, {
|
|
508
|
-
"side-sheet-header": B(() => n[2] || (n[2] = [
|
|
509
|
-
ue("Insight")
|
|
510
|
-
])),
|
|
508
|
+
"side-sheet-header": B(() => [...n[2] || (n[2] = [
|
|
509
|
+
ue("Insight", -1)
|
|
510
|
+
])]),
|
|
511
511
|
"top-sheet-header": B(() => [
|
|
512
512
|
s("div", dt, [
|
|
513
513
|
n[3] || (n[3] = s("p", null, "Insight", -1)),
|
|
514
|
-
p(
|
|
514
|
+
p(x, {
|
|
515
515
|
icon: "close",
|
|
516
516
|
variant: "tertiary",
|
|
517
|
-
onClick: n[0] || (n[0] = (
|
|
517
|
+
onClick: n[0] || (n[0] = (r) => t.value = !1)
|
|
518
518
|
})
|
|
519
519
|
])
|
|
520
520
|
]),
|
|
@@ -540,22 +540,22 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
540
540
|
const { t } = se(), a = _e(), {
|
|
541
541
|
dateRange: l,
|
|
542
542
|
compareDateRange: n,
|
|
543
|
-
locations:
|
|
544
|
-
selectedLocationIds:
|
|
545
|
-
selectedRestaurantIds:
|
|
543
|
+
locations: x,
|
|
544
|
+
selectedLocationIds: r,
|
|
545
|
+
selectedRestaurantIds: d,
|
|
546
546
|
business: k,
|
|
547
547
|
timezone: g
|
|
548
|
-
} = ae(pe()), c = I([]), _ = I(null), u = I(!1), f = be(), { canReadPageDateRange: A, getPageAccessWindow: h } = ve(),
|
|
548
|
+
} = ae(pe()), c = I([]), _ = I(null), u = I(!1), f = be(), { canReadPageDateRange: A, getPageAccessWindow: h } = ve(), w = $(
|
|
549
549
|
() => h(H.report_accessInsight, g.value)
|
|
550
550
|
), L = $(
|
|
551
|
-
() => he(ye(),
|
|
551
|
+
() => he(ye(), w.value)
|
|
552
552
|
);
|
|
553
553
|
P(
|
|
554
|
-
[
|
|
554
|
+
[w, l, g],
|
|
555
555
|
() => {
|
|
556
|
-
const y =
|
|
556
|
+
const y = xe(
|
|
557
557
|
l.value,
|
|
558
|
-
|
|
558
|
+
w.value,
|
|
559
559
|
g.value
|
|
560
560
|
);
|
|
561
561
|
y && (y.startDate !== l.value.startDate || y.endDate !== l.value.endDate) && (l.value = y);
|
|
@@ -570,14 +570,14 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
570
570
|
);
|
|
571
571
|
async function V() {
|
|
572
572
|
try {
|
|
573
|
-
u.value = !0,
|
|
573
|
+
u.value = !0, d.value.length === 0 ? c.value = [] : A(
|
|
574
574
|
H.report_accessInsight,
|
|
575
575
|
l.value,
|
|
576
576
|
g.value
|
|
577
577
|
) ? c.value = await De({
|
|
578
578
|
start: l.value.startDate,
|
|
579
579
|
end: l.value.endDate,
|
|
580
|
-
restaurantIds:
|
|
580
|
+
restaurantIds: d.value
|
|
581
581
|
}) : c.value = [];
|
|
582
582
|
} catch (y) {
|
|
583
583
|
f.open({ message: y, type: "error" }), c.value = [];
|
|
@@ -632,12 +632,12 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
632
632
|
s("div", ft, [
|
|
633
633
|
s("div", mt, [
|
|
634
634
|
p(ke, {
|
|
635
|
-
modelValue: m(
|
|
635
|
+
modelValue: m(r),
|
|
636
636
|
"onUpdate:modelValue": [
|
|
637
|
-
v[0] || (v[0] = (F) => j(
|
|
637
|
+
v[0] || (v[0] = (F) => j(r) ? r.value = F : null),
|
|
638
638
|
V
|
|
639
639
|
],
|
|
640
|
-
options: m(
|
|
640
|
+
options: m(x)
|
|
641
641
|
}, null, 8, ["modelValue", "options"]),
|
|
642
642
|
p(ge, {
|
|
643
643
|
"date-range": m(l),
|
|
@@ -648,16 +648,16 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
648
648
|
"compare-date-range": m(n),
|
|
649
649
|
"onUpdate:compareDateRange": v[2] || (v[2] = (F) => j(n) ? n.value = F : null),
|
|
650
650
|
"date-predefined-ranges": L.value,
|
|
651
|
-
"min-date": (Z =
|
|
651
|
+
"min-date": (Z = w.value) == null ? void 0 : Z.minDate,
|
|
652
652
|
compare: !1
|
|
653
653
|
}, null, 8, ["date-range", "compare-date-range", "date-predefined-ranges", "min-date"])
|
|
654
654
|
])
|
|
655
655
|
]),
|
|
656
|
-
u.value ? (o(),
|
|
656
|
+
u.value ? (o(), i("div", gt, [
|
|
657
657
|
p(re, { size: "xl" })
|
|
658
|
-
])) : (o(),
|
|
659
|
-
c.value.length > 0 ? (o(),
|
|
660
|
-
(o(!0),
|
|
658
|
+
])) : (o(), i("div", pt, [
|
|
659
|
+
c.value.length > 0 ? (o(), i("div", vt, [
|
|
660
|
+
(o(!0), i(z, null, N(c.value, (F, q) => (o(), R(O, {
|
|
661
661
|
key: q,
|
|
662
662
|
widget: F,
|
|
663
663
|
onClick: () => b(q)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as ve,
|
|
1
|
+
import { defineComponent as ve, useModel as be, computed as X, resolveComponent as T, openBlock as x, createElementBlock as R, createElementVNode as t, normalizeClass as Ye, Fragment as $e, renderList as qe, normalizeStyle as st, createVNode as l, createBlock as ae, withCtx as Ce, toDisplayString as C, renderSlot as It, createCommentVNode as q, mergeModels as ke, unref as n, h, createTextVNode as $t, ref as se, onUnmounted as Xe, watch as De, isRef as He, resolveDynamicComponent as Ge, mergeProps as dt, onMounted as ct, withKeys as nt, withModifiers as mt, nextTick as kt } from "vue";
|
|
2
2
|
import { useRouter as Ie, useRoute as Tt } from "vue-router";
|
|
3
|
-
import { K as Se, L as it, d as Fe, M as Nt, e as Ee, a as Te, N as _e, O as Vt, P as Ft, G as ce, J as Je, Q as Qe, R as ze, S as Ze, T as pt, U as Kt, V as Mt, W as Ut, X as Rt, Y as Pt, Z as ut, b as ft, _ as Ot, $ as Lt, E as jt, I as Be, a0 as Et, a1 as Bt, a2 as Yt } from "./app-
|
|
3
|
+
import { K as Se, L as it, d as Fe, M as Nt, e as Ee, a as Te, N as _e, O as Vt, P as Ft, G as ce, J as Je, Q as Qe, R as ze, S as Ze, T as pt, U as Kt, V as Mt, W as Ut, X as Rt, Y as Pt, Z as ut, b as ft, _ as Ot, $ as Lt, E as jt, I as Be, a0 as Et, a1 as Bt, a2 as Yt } from "./app-BQDKX7NB.js";
|
|
4
4
|
import { u as et } from "./global-loader-BuxFfehu.js";
|
|
5
5
|
import { u as tt } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { useSnackbar as Ne } from "@feedmepos/ui-library";
|
|
7
7
|
import { s as St } from "./index-CtZE4sab.js";
|
|
8
|
-
import { u as we, _ as qt } from "./_plugin-vue_export-helper-
|
|
9
|
-
import { u as We, h as Ae } from "./useRestaurantPermission-
|
|
8
|
+
import { u as we, _ as qt } from "./_plugin-vue_export-helper-Bx7s49ra.js";
|
|
9
|
+
import { u as We, h as Ae } from "./useRestaurantPermission-D3G7ET0Z.js";
|
|
10
10
|
import { storeToRefs as ot } from "pinia";
|
|
11
|
-
import { D as at } from "./DateRangeSelect-
|
|
11
|
+
import { D as at } from "./DateRangeSelect-D5SGi6ca.js";
|
|
12
12
|
const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, Ht = { class: "w-[100%] overflow-hidden" }, Gt = { class: "inline-flex max-w-full items-center gap-2 align-top" }, Qt = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Wt = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "w-[24px] flex items-center"
|
|
@@ -396,9 +396,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
396
396
|
l(u, {
|
|
397
397
|
content: p.lastUploadDate ? n(o)("report.integration.startSyncDateLocked") : n(o)("report.integration.startSyncDateHint")
|
|
398
398
|
}, {
|
|
399
|
-
default: Ce(() => s[10] || (s[10] = [
|
|
399
|
+
default: Ce(() => [...s[10] || (s[10] = [
|
|
400
400
|
t("span", { class: "cursor-pointer text-fm-color-typo-secondary select-none" }, "ⓘ", -1)
|
|
401
|
-
])),
|
|
401
|
+
])]),
|
|
402
402
|
_: 1
|
|
403
403
|
}, 8, ["content"])
|
|
404
404
|
]),
|
|
@@ -772,7 +772,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
772
772
|
$t(C(S), 1)
|
|
773
773
|
], 64)) : q("", !0)
|
|
774
774
|
], 4))), 128)),
|
|
775
|
-
|
|
775
|
+
m.removable ? (x(), R("div", Lo)) : q("", !0)
|
|
776
776
|
], 2),
|
|
777
777
|
!e.fieldsOptions || !Object.values(e.fieldsOptions).some((S) => S.dropdownOptions) ? (x(), ae(ie, {
|
|
778
778
|
key: `item-${f}`,
|
|
@@ -1613,9 +1613,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1613
1613
|
style: { paddingLeft: "0px", paddingRight: "0px" },
|
|
1614
1614
|
"onClick:back": d[0] || (d[0] = (w) => n(S).push({ name: "integrations" }))
|
|
1615
1615
|
}, {
|
|
1616
|
-
description: Ce(() => d[3] || (d[3] = [
|
|
1616
|
+
description: Ce(() => [...d[3] || (d[3] = [
|
|
1617
1617
|
t("div", null, null, -1)
|
|
1618
|
-
])),
|
|
1618
|
+
])]),
|
|
1619
1619
|
_: 1
|
|
1620
1620
|
}, 8, ["title"]),
|
|
1621
1621
|
l(s, {
|
|
@@ -2115,7 +2115,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2115
2115
|
"onUpdate:modelValue": D[12] || (D[12] = (W) => o.value.platform = W),
|
|
2116
2116
|
label: "upload",
|
|
2117
2117
|
"last-upload-date": (le = o.value.platform) == null ? void 0 : le.lastUploadDate,
|
|
2118
|
-
"error-logs":
|
|
2118
|
+
"error-logs": m.errorLogs,
|
|
2119
2119
|
"integration-id": o.value._id
|
|
2120
2120
|
}, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
|
|
2121
2121
|
l(ne, { style: { margin: 0 } }),
|
|
@@ -2549,9 +2549,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2549
2549
|
style: { paddingLeft: "0px", paddingRight: "0px" },
|
|
2550
2550
|
"onClick:back": V[0] || (V[0] = (d) => n(f).push({ name: "integrations" }))
|
|
2551
2551
|
}, {
|
|
2552
|
-
description: Ce(() => V[3] || (V[3] = [
|
|
2552
|
+
description: Ce(() => [...V[3] || (V[3] = [
|
|
2553
2553
|
t("div", null, null, -1)
|
|
2554
|
-
])),
|
|
2554
|
+
])]),
|
|
2555
2555
|
_: 1
|
|
2556
2556
|
}, 8, ["title"]),
|
|
2557
2557
|
l(K, {
|
|
@@ -2989,7 +2989,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2989
2989
|
"onUpdate:modelValue": _[10] || (_[10] = (ee) => e.value.platform = ee),
|
|
2990
2990
|
label: n(o)("report.input.email"),
|
|
2991
2991
|
"last-upload-date": (Pe = e.value.platform) == null ? void 0 : Pe.lastUploadDate,
|
|
2992
|
-
"error-logs":
|
|
2992
|
+
"error-logs": m.errorLogs,
|
|
2993
2993
|
"integration-id": e.value._id,
|
|
2994
2994
|
"is-auto-email-mode": !0
|
|
2995
2995
|
}, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
|
|
@@ -3827,9 +3827,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3827
3827
|
style: { paddingLeft: "0px", paddingRight: "0px" },
|
|
3828
3828
|
"onClick:back": f[0] || (f[0] = ($) => n(N).push({ name: "integrations" }))
|
|
3829
3829
|
}, {
|
|
3830
|
-
description: Ce(() => f[3] || (f[3] = [
|
|
3830
|
+
description: Ce(() => [...f[3] || (f[3] = [
|
|
3831
3831
|
t("div", null, null, -1)
|
|
3832
|
-
])),
|
|
3832
|
+
])]),
|
|
3833
3833
|
_: 1
|
|
3834
3834
|
}, 8, ["title"]),
|
|
3835
3835
|
l(A, {
|
|
@@ -4182,7 +4182,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4182
4182
|
"onUpdate:modelValue": a[13] || (a[13] = (I) => e.value.platform = I),
|
|
4183
4183
|
label: "email",
|
|
4184
4184
|
"last-upload-date": (k = e.value.platform) == null ? void 0 : k.lastUploadDate,
|
|
4185
|
-
"error-logs":
|
|
4185
|
+
"error-logs": m.errorLogs,
|
|
4186
4186
|
"integration-id": e.value._id,
|
|
4187
4187
|
"is-auto-email-mode": !0
|
|
4188
4188
|
}, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
|
|
@@ -4716,9 +4716,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4716
4716
|
style: { paddingLeft: "0px", paddingRight: "0px" },
|
|
4717
4717
|
"onClick:back": f[0] || (f[0] = ($) => n(N).push({ name: "integrations" }))
|
|
4718
4718
|
}, {
|
|
4719
|
-
description: Ce(() => f[3] || (f[3] = [
|
|
4719
|
+
description: Ce(() => [...f[3] || (f[3] = [
|
|
4720
4720
|
t("div", null, null, -1)
|
|
4721
|
-
])),
|
|
4721
|
+
])]),
|
|
4722
4722
|
_: 1
|
|
4723
4723
|
}, 8, ["title"]),
|
|
4724
4724
|
l(A, {
|
|
@@ -5651,9 +5651,9 @@ const di = [
|
|
|
5651
5651
|
style: { paddingLeft: "0px", paddingRight: "0px" },
|
|
5652
5652
|
"onClick:back": v[0] || (v[0] = (a) => n(N).push({ name: "integrations" }))
|
|
5653
5653
|
}, {
|
|
5654
|
-
description: Ce(() => v[3] || (v[3] = [
|
|
5654
|
+
description: Ce(() => [...v[3] || (v[3] = [
|
|
5655
5655
|
t("div", null, null, -1)
|
|
5656
|
-
])),
|
|
5656
|
+
])]),
|
|
5657
5657
|
_: 1
|
|
5658
5658
|
}, 8, ["title"]),
|
|
5659
5659
|
l(r, {
|
|
@@ -5820,7 +5820,7 @@ const di = [
|
|
|
5820
5820
|
"onUpdate:modelValue": r[2] || (r[2] = (pe) => e.value.platform = pe),
|
|
5821
5821
|
label: n(o)("report.input.email"),
|
|
5822
5822
|
"last-upload-date": (z = e.value.platform) == null ? void 0 : z.lastUploadDate,
|
|
5823
|
-
"error-logs":
|
|
5823
|
+
"error-logs": m.errorLogs,
|
|
5824
5824
|
"integration-id": e.value._id,
|
|
5825
5825
|
"is-auto-email-mode": !0
|
|
5826
5826
|
}, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
|
|
@@ -5988,9 +5988,9 @@ const di = [
|
|
|
5988
5988
|
style: { paddingLeft: "0px", paddingRight: "0px" },
|
|
5989
5989
|
"onClick:back": f[0] || (f[0] = ($) => n(N).push({ name: "integrations" }))
|
|
5990
5990
|
}, {
|
|
5991
|
-
description: Ce(() => f[3] || (f[3] = [
|
|
5991
|
+
description: Ce(() => [...f[3] || (f[3] = [
|
|
5992
5992
|
t("div", null, null, -1)
|
|
5993
|
-
])),
|
|
5993
|
+
])]),
|
|
5994
5994
|
_: 1
|
|
5995
5995
|
}, 8, ["title"]),
|
|
5996
5996
|
l(A, {
|
|
@@ -7364,9 +7364,9 @@ const vp = [
|
|
|
7364
7364
|
style: { paddingLeft: "0px", paddingRight: "0px" },
|
|
7365
7365
|
"onClick:back": c[0] || (c[0] = (i) => n(N).push({ name: "integrations" }))
|
|
7366
7366
|
}, {
|
|
7367
|
-
description: Ce(() => c[3] || (c[3] = [
|
|
7367
|
+
description: Ce(() => [...c[3] || (c[3] = [
|
|
7368
7368
|
t("div", null, null, -1)
|
|
7369
|
-
])),
|
|
7369
|
+
])]),
|
|
7370
7370
|
_: 1
|
|
7371
7371
|
}, 8, ["title"]),
|
|
7372
7372
|
l(d, {
|
|
@@ -8213,9 +8213,9 @@ const vp = [
|
|
|
8213
8213
|
style: { paddingLeft: "0px", paddingRight: "0px" },
|
|
8214
8214
|
"onClick:back": M[0] || (M[0] = (V) => n(F).push({ name: "integrations" }))
|
|
8215
8215
|
}, {
|
|
8216
|
-
description: Ce(() => M[3] || (M[3] = [
|
|
8216
|
+
description: Ce(() => [...M[3] || (M[3] = [
|
|
8217
8217
|
t("div", null, null, -1)
|
|
8218
|
-
])),
|
|
8218
|
+
])]),
|
|
8219
8219
|
_: 1
|
|
8220
8220
|
}, 8, ["title"]),
|
|
8221
8221
|
l(S, {
|
|
@@ -8723,9 +8723,9 @@ const vp = [
|
|
|
8723
8723
|
style: { paddingLeft: "0px", paddingRight: "0px" },
|
|
8724
8724
|
"onClick:back": f[0] || (f[0] = (c) => n(N).push({ name: "integrations" }))
|
|
8725
8725
|
}, {
|
|
8726
|
-
description: Ce(() => f[3] || (f[3] = [
|
|
8726
|
+
description: Ce(() => [...f[3] || (f[3] = [
|
|
8727
8727
|
t("div", null, null, -1)
|
|
8728
|
-
])),
|
|
8728
|
+
])]),
|
|
8729
8729
|
_: 1
|
|
8730
8730
|
}, 8, ["title"]),
|
|
8731
8731
|
l(A, {
|