@feedmepos/mf-report 5.33.3 → 5.34.1-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.
- package/dist/{App-BgRqim5d.js → App-BdSGNJ3L.js} +114 -113
- package/dist/{DateRangeSelect-XyU5XG5c.js → DateRangeSelect-Cre6UJLD.js} +67 -67
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CC7fE3F8.js → Default.vue_vue_type_script_setup_true_lang-CvM5oewZ.js} +3 -3
- package/dist/DigestListView-BuB4JOlT.js +876 -0
- package/dist/{DigestReaderView-DSNoAESE.js → DigestReaderView-DdpTY1Ax.js} +63 -63
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CsDiXGUk.js → DynamicWidget.vue_vue_type_script_setup_true_lang-4qBcakJs.js} +733 -733
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-D7Rsh-uY.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BL3kxHFR.js} +526 -526
- package/dist/{InsightView-CF8mQJha.js → InsightView-CZOStmyJ.js} +88 -88
- package/dist/{Integration-QMdYwTwW.js → Integration-BC-DWRpD.js} +1983 -1967
- package/dist/{Integrations-Dbx1ScOv.js → Integrations-ibKrdipe.js} +10 -10
- package/dist/{Layout-CgiplBHM.js → Layout-D0W7xdty.js} +3 -3
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-zW8JA7j3.js → LocationSelect.vue_vue_type_script_setup_true_lang-CJCSJkT_.js} +306 -306
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B0q9V1x8.js → MenuTab.vue_vue_type_script_setup_true_lang-DnPC8AcN.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BVWZ8vTw.js → NavigationTab.vue_vue_type_script_setup_true_lang-CKaMBQka.js} +12784 -11760
- package/dist/{OverviewView-BbZ8WkLb.js → OverviewView-AOwgvPBq.js} +7 -7
- package/dist/{Report-BYi0pPZs.js → Report-Bs5sy1OF.js} +12 -12
- package/dist/{ReportCanvasView-CfFtVomc.js → ReportCanvasView-CYai96pI.js} +426 -426
- package/dist/{ReportEditor-BLEkGUVR.js → ReportEditor-BbsLe4B7.js} +32 -32
- package/dist/{ReportView-TG78Krm2.js → ReportView-B5Fqspyn.js} +13 -13
- package/dist/{ReportViewRoute-BUADf4Cr.js → ReportViewRoute-D2wI79x9.js} +5 -5
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js +137 -0
- package/dist/{Setting-Curkhv9_.js → Setting-DdYXi5qR.js} +6 -6
- package/dist/{Template-BN_ds698.js → Template-YEa1E6oz.js} +80 -80
- package/dist/{TileEditor-Cfb0uXGr.js → TileEditor-CnmEhIab.js} +1566 -1566
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-1FKwWbpC.js → TilePageStack.vue_vue_type_script_setup_true_lang-CqWXV57r.js} +82 -82
- package/dist/{TransitionFade-D0_ZoB-O.js → TransitionFade-BmItOXFf.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-LKjvcmXa.js → app-BmNusIzI.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-DAk-bsf8.js +12 -0
- package/dist/index-6T_rmIM_.js +24722 -0
- package/dist/{report-Ci2ElGpp.js → report-NKl3Yb5J.js} +23 -23
- package/dist/style.css +1 -1
- package/dist/{useDigestFont-BxXC7U3d.js → useDigestFont-Bxq6g3WO.js} +80 -80
- package/dist/{useReportCanvasPanel-BjmRiMSh.js → useReportCanvasPanel-BN-Gq7Uj.js} +975 -976
- package/dist/{useRestaurantPermission-DX52YBfA.js → useRestaurantPermission-D8b3oI0-.js} +2 -2
- package/package.json +11 -11
- package/dist/DigestListView-Bqp4LA1w.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-DFN_8rRJ.js +0 -12
- package/dist/index-xdTpLFHc.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-CvM5oewZ.js";
|
|
3
|
+
import { D as ge } from "./DateRangeSelect-Cre6UJLD.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-BmNusIzI.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-CJCSJkT_.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-CKaMBQka.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)
|