@feedmepos/mf-report 5.32.0 → 5.32.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-DmCGLjX7.js → App-BJuFjdIP.js} +53 -53
- package/dist/{DateRangeSelect-ByNkTDjz.js → DateRangeSelect-_e6gSn9J.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-B0KI2grl.js → Default.vue_vue_type_script_setup_true_lang-OXDWW29A.js} +1 -1
- package/dist/{DigestListView-De9tIPMS.js → DigestListView-DWPN27s3.js} +27 -27
- package/dist/{DigestReaderView-DO_nmqE8.js → DigestReaderView-BXevYmJS.js} +4 -4
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BCrF_c93.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CTUvUuIF.js} +6 -6
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CqSpNI7C.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CXfWtseh.js} +4 -4
- package/dist/{InsightView-C-CwTtk_.js → InsightView-DPRL3Nqh.js} +16 -16
- package/dist/{Integration-BRNvT1Bi.js → Integration-sF35hPvK.js} +3 -3
- package/dist/{Integrations-apd0BYi4.js → Integrations-Cz13kRKM.js} +2 -2
- package/dist/{Layout-CAcG75jm.js → Layout-CYQ_dsMP.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-D77iP1So.js → LocationSelect.vue_vue_type_script_setup_true_lang-1awtDPcK.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-0FI-8jfq.js → MenuTab.vue_vue_type_script_setup_true_lang-JtEvRQ3L.js} +9 -9
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-caeBZJMd.js → NavigationTab.vue_vue_type_script_setup_true_lang-D8bfnS4L.js} +5 -5
- package/dist/{OverviewView-DT4wH9BY.js → OverviewView-CM1bJX6E.js} +5 -5
- package/dist/{Report-DC5SaVnn.js → Report-BiXRgrAO.js} +39 -39
- package/dist/{ReportCanvasView-DKSSW9vS.js → ReportCanvasView-Bt2gOYfq.js} +5 -5
- package/dist/{ReportEditor-pv17FE6d.js → ReportEditor-BhDN43WO.js} +7 -7
- package/dist/{ReportView-hu8o7gHa.js → ReportView-aL9HVcRy.js} +11 -11
- package/dist/{ReportViewRoute-Dv72tGDa.js → ReportViewRoute-DzhAOsZI.js} +2 -2
- package/dist/{Setting-B98DTITn.js → Setting-DbZWDMvI.js} +3 -3
- package/dist/{Template-CaVg_yFH.js → Template-p0ysKIeV.js} +30 -30
- package/dist/{TileEditor-HXcsJvnS.js → TileEditor-2X9qf54T.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-B9kTXx-f.js → TilePageStack.vue_vue_type_script_setup_true_lang-BofHN1Dq.js} +2 -2
- package/dist/{TransitionFade-CIv_c2SU.js → TransitionFade-BfATkHz9.js} +5 -5
- package/dist/{app-DvNjldW6.js → app-DfeWh8B1.js} +2011 -2024
- package/dist/app.js +1 -1
- package/dist/{currency-DkfeAufo.js → currency-Cyqw_pmX.js} +1 -1
- package/dist/{index-BfS1DQsO.js → index-CASt9TkJ.js} +1 -1
- package/dist/{report-BYoPJJLO.js → report-FbmUzxrA.js} +1 -1
- package/dist/{useDigestFont-qj5lGRy-.js → useDigestFont-mCEZapeC.js} +1 -1
- package/dist/{useReportCanvasPanel-BJTLOzd9.js → useReportCanvasPanel-epC6qK7l.js} +3 -3
- package/dist/{useRestaurantPermission-Cy0Wr066.js → useRestaurantPermission-OuUzR6qE.js} +1 -1
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as me, resolveComponent as Z, createBlock as pe, openBlock as A, unref as d, isRef as
|
|
1
|
+
import { defineComponent as me, resolveComponent as Z, createBlock as pe, openBlock as A, unref as d, isRef as $e, withCtx as H, createElementVNode as re, createVNode as V, toDisplayString as ae, createTextVNode as xe, onMounted as fe, watch as C, ref as Q, computed as se, onBeforeMount as Je, onBeforeUnmount as Qe, createElementBlock as K, Fragment as Ue } from "vue";
|
|
2
2
|
import { detectLocale as U, useCoreStore as W } from "@feedmepos/mf-common";
|
|
3
|
-
import { d as X, u as
|
|
3
|
+
import { d as X, u as je, a as ie, b as Pe, c as ce, e as Ge, f as He, g as Ke, h as ue, t as We, z as Ze, i as Ve } from "./app-DfeWh8B1.js";
|
|
4
4
|
import { storeToRefs as k } from "pinia";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
5
|
+
import { u as Xe } from "./global-loader-BuxFfehu.js";
|
|
6
|
+
import { u as Ye, a as Me } from "./report-FbmUzxrA.js";
|
|
7
|
+
import { u as et, _ as tt } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D8bfnS4L.js";
|
|
8
8
|
import { u as de } from "./message-dialog-UoMWOnil.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { useRoute as
|
|
11
|
-
const
|
|
9
|
+
import { u as nt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
10
|
+
import { useRoute as ot, useRouter as rt } from "vue-router";
|
|
11
|
+
const at = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, st = /* @__PURE__ */ me({
|
|
12
12
|
__name: "Dialog",
|
|
13
13
|
setup(q) {
|
|
14
|
-
const { t: c } =
|
|
15
|
-
return (T,
|
|
14
|
+
const { t: c } = nt(), g = de(), { isOpened: y, message: L, title: E } = k(de());
|
|
15
|
+
return (T, _) => {
|
|
16
16
|
const z = Z("FmButton"), j = Z("FmDialog");
|
|
17
17
|
return A(), pe(j, {
|
|
18
18
|
modelValue: d(y),
|
|
19
|
-
"onUpdate:modelValue":
|
|
19
|
+
"onUpdate:modelValue": _[0] || (_[0] = (P) => $e(y) ? y.value = P : null),
|
|
20
20
|
overlay: "",
|
|
21
21
|
"close-button": !1,
|
|
22
22
|
"z-index": 3e3
|
|
23
23
|
}, {
|
|
24
24
|
"dialog-header": H(() => [
|
|
25
|
-
|
|
25
|
+
xe(ae(d(E)), 1)
|
|
26
26
|
]),
|
|
27
27
|
default: H(() => [
|
|
28
|
-
re("p",
|
|
28
|
+
re("p", at, ae(d(L)), 1)
|
|
29
29
|
]),
|
|
30
30
|
"dialog-footer": H(() => [
|
|
31
|
-
|
|
31
|
+
_[1] || (_[1] = re("div", { class: "grow" }, null, -1)),
|
|
32
32
|
V(z, {
|
|
33
33
|
label: d(c)("report.common.cancel"),
|
|
34
34
|
variant: "tertiary",
|
|
@@ -44,7 +44,7 @@ const it = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, ct
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
}), le = Q(U());
|
|
47
|
-
function
|
|
47
|
+
function it() {
|
|
48
48
|
const q = (c) => {
|
|
49
49
|
switch (le.value = c, c) {
|
|
50
50
|
case "zh-CN":
|
|
@@ -62,16 +62,16 @@ function ut() {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
X.locale(U() === "zh-CN" ? "zh-cn" : "en");
|
|
65
|
-
const
|
|
65
|
+
const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
66
66
|
__name: "App",
|
|
67
67
|
setup(q) {
|
|
68
|
-
const { businessId: c, token: g, country: y } = k(
|
|
68
|
+
const { businessId: c, token: g, country: y } = k(je()), { sessionUser: L, currentBusiness: E, currentCountry: T, registerSidebarComponent: _ } = W(), {
|
|
69
69
|
getRestaurantAndWarehouse: z,
|
|
70
70
|
getBusinessSetting: j,
|
|
71
71
|
beginBusinessLoad: P,
|
|
72
72
|
completeBusinessLoad: ge,
|
|
73
73
|
resetTimezoneContext: ye
|
|
74
|
-
} = ie(), ve =
|
|
74
|
+
} = ie(), ve = Pe(), { getFeatureFlags: Se } = ve, { version: v } = k(ce()), { getSettings: De } = Ge(), { loadHasDigest: he } = He(), { promptLoader: Ie } = Xe(), n = ot(), B = rt(), b = Ye(), Y = et(), a = ie(), F = ce(), { suppressReportRouteSync: N } = k(F), { getReports: _e, getOverviewReport: Re, getReportConfig: Le, currentReportId: M } = b, { currentReportId: Ee, reports: be } = k(b), { getSchema: we } = Me(), { fetchSchedules: Ae } = Y, { init: Ce } = Ke(), G = Q("v5"), O = Q(!1), $ = Q(!0), ke = se(() => `https://portal-v1.feedme.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${y.value.toUpperCase()}&menuOption=business-report&token=${g.value}&v2=true&reportV5Button=true`), qe = se(() => `https://report-v4.feedme.cc?businessId=${c.value}&country=${y.value}&token=${g.value}&reportV3Button=true`);
|
|
75
75
|
C(
|
|
76
76
|
[() => E.value, () => L.value, () => T.value],
|
|
77
77
|
() => {
|
|
@@ -101,14 +101,14 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
101
101
|
}
|
|
102
102
|
C(v, () => {
|
|
103
103
|
["v3", "v4"].includes(v.value) ? W().hideSidebarToggle(!0) : W().hideSidebarToggle(!1);
|
|
104
|
-
}),
|
|
105
|
-
|
|
104
|
+
}), Je(() => {
|
|
105
|
+
_(tt);
|
|
106
106
|
}), fe(() => {
|
|
107
|
-
console.log("5.32.
|
|
108
|
-
}),
|
|
107
|
+
console.log("5.32.1", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
|
|
108
|
+
}), Qe(() => {
|
|
109
109
|
window.removeEventListener("message", ee), window.removeEventListener("message", te), b.$dispose(), Y.$dispose();
|
|
110
110
|
});
|
|
111
|
-
function
|
|
111
|
+
function Te(t) {
|
|
112
112
|
try {
|
|
113
113
|
return decodeURIComponent(t);
|
|
114
114
|
} catch {
|
|
@@ -117,7 +117,7 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
117
117
|
}
|
|
118
118
|
function x(t) {
|
|
119
119
|
if (typeof t != "string" || t.length === 0) return;
|
|
120
|
-
const e = t.includes("%") ? [t,
|
|
120
|
+
const e = t.includes("%") ? [t, Te(t)] : [t];
|
|
121
121
|
for (const o of e)
|
|
122
122
|
try {
|
|
123
123
|
const r = JSON.parse(o);
|
|
@@ -138,11 +138,11 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
138
138
|
}
|
|
139
139
|
function l(t, e, o) {
|
|
140
140
|
if (typeof t != "string" || t.length === 0) return;
|
|
141
|
-
const r =
|
|
142
|
-
return e === "start" ?
|
|
141
|
+
const r = We(t, o);
|
|
142
|
+
return e === "start" ? Ze(r, o) : Ve(r, o);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
const e = t, o = a.timezone, r = l(e.startDate, "start", o), m = l(e.endDate, "end", o), i = typeof e.timeStart == "string", S = typeof e.timeEnd == "string", D = x(e.timeStart), h = x(e.timeEnd), w = ne(D) ? D : null, p = ne(h) ? h : null,
|
|
144
|
+
function ze(t = n.query) {
|
|
145
|
+
const e = t, o = a.timezone, r = l(e.startDate, "start", o), m = l(e.endDate, "end", o), i = typeof e.timeStart == "string", S = typeof e.timeEnd == "string", D = x(e.timeStart), h = x(e.timeEnd), w = ne(D) ? D : null, p = ne(h) ? h : null, R = l(e.compareStartDate, "start", o), u = l(e.compareEndDate, "end", o), J = e.isAllLocation === "true" || e.isAllLocation === void 0;
|
|
146
146
|
let f = [];
|
|
147
147
|
if (J)
|
|
148
148
|
f = a.selectedLocationIds ?? [];
|
|
@@ -151,7 +151,7 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
151
151
|
f = Array.isArray(s) ? s : [];
|
|
152
152
|
}
|
|
153
153
|
let I = e.reportId || M;
|
|
154
|
-
if (
|
|
154
|
+
if (be.value.find((s) => s.id === I) || (I = M), I && I !== b.currentReportId && b.updateCurrentReportId(I), r || m) {
|
|
155
155
|
const s = a.dateRange;
|
|
156
156
|
(s.startDate !== r || s.endDate !== m) && a.setDateRange({ startDate: r, endDate: m });
|
|
157
157
|
}
|
|
@@ -159,16 +159,16 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
159
159
|
const s = a.timeRange;
|
|
160
160
|
(s.start !== w || s.end !== p) && a.setTimeRange({ start: w, end: p });
|
|
161
161
|
}
|
|
162
|
-
if (
|
|
162
|
+
if (R || u) {
|
|
163
163
|
const s = a.compareDateRange;
|
|
164
|
-
(s.startDate !==
|
|
165
|
-
startDate:
|
|
164
|
+
(s.startDate !== R || s.endDate !== u) && a.setCompareDateRange({
|
|
165
|
+
startDate: R,
|
|
166
166
|
endDate: u
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
if (!J) {
|
|
170
170
|
const s = a.selectedLocationIds;
|
|
171
|
-
s.length === f.length && s.every((
|
|
171
|
+
s.length === f.length && s.every((Ne, Oe) => Ne === f[Oe]) || a.setSelectedLocationIds(f);
|
|
172
172
|
}
|
|
173
173
|
return {
|
|
174
174
|
// TODO: this returned value can used for getBusinessSetting
|
|
@@ -203,7 +203,7 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
203
203
|
startDate: h,
|
|
204
204
|
endDate: w,
|
|
205
205
|
timeStart: p,
|
|
206
|
-
timeEnd:
|
|
206
|
+
timeEnd: R,
|
|
207
207
|
compareStartDate: u,
|
|
208
208
|
compareEndDate: J,
|
|
209
209
|
...f
|
|
@@ -217,14 +217,14 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
217
217
|
query: i
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
N.value !== void 0 && (N.value = !0), await
|
|
221
|
-
await
|
|
220
|
+
N.value !== void 0 && (N.value = !0), await Ie(async () => {
|
|
221
|
+
await Ce({
|
|
222
222
|
apiKey: "6GhcttsJ9Rj9cTevcdrpin",
|
|
223
223
|
url: "https://flag.feedme.farm/api/v1/",
|
|
224
224
|
enableAnalytics: !1,
|
|
225
225
|
cacheFlags: !1
|
|
226
226
|
});
|
|
227
|
-
const D = await
|
|
227
|
+
const D = await Le();
|
|
228
228
|
G.value = D.version, v.value = G.value, await Se(), n.name === "template" && !F.canAccessTemplate() && await B.replace({
|
|
229
229
|
name: "reports",
|
|
230
230
|
query: n.query
|
|
@@ -234,8 +234,8 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
234
234
|
), w = F.canAccess(
|
|
235
235
|
ue.report_accessIntegration
|
|
236
236
|
), p = [
|
|
237
|
+
we(),
|
|
237
238
|
Ae(),
|
|
238
|
-
Ce(),
|
|
239
239
|
_e(),
|
|
240
240
|
z(
|
|
241
241
|
(() => {
|
|
@@ -244,19 +244,19 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
244
244
|
})()
|
|
245
245
|
)
|
|
246
246
|
];
|
|
247
|
-
h && p.push(
|
|
248
|
-
const
|
|
249
|
-
for (const u of
|
|
247
|
+
h && p.push(Re()), w && p.push(De()), p.push(he());
|
|
248
|
+
const R = await Promise.allSettled(p);
|
|
249
|
+
for (const u of R)
|
|
250
250
|
u.status === "rejected" && console.log(u.reason);
|
|
251
|
-
if (await j(),
|
|
251
|
+
if (await j(), ze(i), S) {
|
|
252
252
|
const {
|
|
253
253
|
locationIds: u,
|
|
254
254
|
startDate: J,
|
|
255
255
|
endDate: f,
|
|
256
256
|
timeStart: I,
|
|
257
|
-
timeEnd:
|
|
257
|
+
timeEnd: Be,
|
|
258
258
|
compareStartDate: s,
|
|
259
|
-
compareEndDate:
|
|
259
|
+
compareEndDate: Fe,
|
|
260
260
|
...oe
|
|
261
261
|
} = n.query;
|
|
262
262
|
(n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await B.replace({
|
|
@@ -281,7 +281,7 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
281
281
|
}
|
|
282
282
|
), C(
|
|
283
283
|
() => (O.value, {
|
|
284
|
-
reportId:
|
|
284
|
+
reportId: Ee.value,
|
|
285
285
|
selectedLocationIds: a.selectedLocationIds,
|
|
286
286
|
dateRange: a.dateRange,
|
|
287
287
|
timeRange: a.timeRange,
|
|
@@ -317,23 +317,23 @@ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
|
|
|
317
317
|
});
|
|
318
318
|
},
|
|
319
319
|
{ deep: !0 }
|
|
320
|
-
),
|
|
320
|
+
), it(), (t, e) => {
|
|
321
321
|
const o = Z("router-view");
|
|
322
|
-
return A(), K(
|
|
323
|
-
V(
|
|
322
|
+
return A(), K(Ue, null, [
|
|
323
|
+
V(st),
|
|
324
324
|
d(v) === "v3" ? (A(), K("iframe", {
|
|
325
325
|
key: 0,
|
|
326
326
|
class: "bg-white h-full w-full",
|
|
327
|
-
src:
|
|
328
|
-
}, null, 8,
|
|
327
|
+
src: ke.value
|
|
328
|
+
}, null, 8, ct)) : d(v) === "v4" ? (A(), K("iframe", {
|
|
329
329
|
key: 1,
|
|
330
330
|
class: "bg-white h-full w-full",
|
|
331
|
-
src:
|
|
332
|
-
}, null, 8,
|
|
331
|
+
src: qe.value
|
|
332
|
+
}, null, 8, ut)) : (A(), pe(o, { key: 2 }))
|
|
333
333
|
], 64);
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
export {
|
|
338
|
-
|
|
338
|
+
ht as default
|
|
339
339
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ne, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as fe, withCtx as U, createCommentVNode as F, createElementVNode as I, toDisplayString as De, renderSlot as ye, mergeModels as K, useModel as L, ref as P, computed as z, watch as M, nextTick as Z, onMounted as pe, onBeforeUnmount as ve, createElementBlock as ge, unref as $, createVNode as J } from "vue";
|
|
2
|
-
import { d as i, a as he,
|
|
2
|
+
import { d as i, a as he, i as Q, z as X, C as E, p as Ce, t as be } from "./app-DfeWh8B1.js";
|
|
3
3
|
import { detectLocale as _ } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as Re, _ as Me } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
5
5
|
import { storeToRefs as Ye } from "pinia";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as r, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
|
|
2
|
-
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D8bfnS4L.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
5
|
import { u as q } from "./global-loader-BuxFfehu.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as ve, ref as C, watch as Le, onBeforeUnmount as Ce, computed as u, createElementBlock as r, openBlock as o, normalizeClass as H, createElementVNode as v, createCommentVNode as m, renderSlot as Re, createTextVNode as Te, toDisplayString as y, unref as x, Fragment as w, renderList as q, resolveComponent as he, createBlock as oe, withCtx as le, createVNode as Z, createSlots as
|
|
1
|
+
import { defineComponent as ve, ref as C, watch as Le, onBeforeUnmount as Ce, computed as u, createElementBlock as r, openBlock as o, normalizeClass as H, createElementVNode as v, createCommentVNode as m, renderSlot as Re, createTextVNode as Te, toDisplayString as y, unref as x, Fragment as w, renderList as q, resolveComponent as he, createBlock as oe, withCtx as le, createVNode as Z, createSlots as je, onMounted as Ee, onUnmounted as qe } from "vue";
|
|
2
2
|
import { storeToRefs as Ie } from "pinia";
|
|
3
3
|
import { useI18n as fe } from "@feedmepos/mf-common";
|
|
4
4
|
import { useBreakpoints as Se } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Oe } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as Oe } from "./Default.vue_vue_type_script_setup_true_lang-OXDWW29A.js";
|
|
6
6
|
import { _ as we } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
7
7
|
import { useRoute as Ne } from "vue-router";
|
|
8
|
-
import { c as Pe, d as Be, u as Ae, a as He, n as Xe, _ as ze, D as Ye } from "./useDigestFont-
|
|
8
|
+
import { c as Pe, d as Be, u as Ae, a as He, n as Xe, _ as ze, D as Ye } from "./useDigestFont-mCEZapeC.js";
|
|
9
9
|
import { _ as ge } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
10
|
-
import {
|
|
10
|
+
import { j as Ue, f as We, A as Ze, k as be, r as Ge, l as Ke } from "./app-DfeWh8B1.js";
|
|
11
11
|
const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "digest-kind" }, et = ["viewBox", "height", "aria-label"], tt = ["x2", "y1", "y2"], st = ["d"], at = ["d"], ot = ["d"], nt = ["x", "y", "width", "height"], rt = ["x", "y"], lt = ["x", "y", "width", "height"], it = ["x1", "x2", "y1", "y2"], ut = ["cx", "cy"], dt = ["x", "y", "text-anchor"], ct = ["x"], ht = ["x", "y"], vt = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "flex items-start gap-8",
|
|
@@ -77,13 +77,13 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
77
77
|
}), T = u(() => {
|
|
78
78
|
var e;
|
|
79
79
|
return ((e = n.cover) == null ? void 0 : e.x.length) ?? 0;
|
|
80
|
-
}), G = u(() => T.value > 1 ? (B.value - W * 2) / (T.value - 1) : 0),
|
|
80
|
+
}), G = u(() => T.value > 1 ? (B.value - W * 2) / (T.value - 1) : 0), j = (e) => T.value > 1 ? W + e * G.value : B.value / 2;
|
|
81
81
|
function K(e) {
|
|
82
82
|
let s = "M";
|
|
83
83
|
return e.map((t, i) => {
|
|
84
84
|
if (t === null)
|
|
85
85
|
return s = "M", "";
|
|
86
|
-
const a = `${s}${
|
|
86
|
+
const a = `${s}${j(i).toFixed(1)},${D.value(t).toFixed(1)}`;
|
|
87
87
|
return s = "L", a;
|
|
88
88
|
}).join(" ");
|
|
89
89
|
}
|
|
@@ -97,7 +97,7 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
97
97
|
const e = ((t = n.cover) == null ? void 0 : t.kind) === "line" ? (i = n.cover.series[0]) == null ? void 0 : i.values : void 0;
|
|
98
98
|
if (!e || e.some((a) => a === null) || e.length < 2) return "";
|
|
99
99
|
const s = (k.value - _.value).toFixed(1);
|
|
100
|
-
return `${K(e)} L${
|
|
100
|
+
return `${K(e)} L${j(e.length - 1).toFixed(1)},${s} L${j(0).toFixed(1)},${s} Z`;
|
|
101
101
|
}), S = u(() => (B.value - W * 2) / Math.max(T.value, 1)), X = u(() => {
|
|
102
102
|
var e;
|
|
103
103
|
return Math.min(((e = n.cover) == null ? void 0 : e.series.length) ?? 0, 2);
|
|
@@ -129,7 +129,7 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
129
129
|
}).format(i), c = t === "ratio" || t === "percent" ? "%" : "";
|
|
130
130
|
return `${s ? "" : e < 0 ? "−" : "+"}${a}${c}`;
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const E = u(() => {
|
|
133
133
|
const e = V.value, s = S.value * 0.6, t = R.value.map((a, c) => {
|
|
134
134
|
const d = D.value(a.total ? e : a.from), h = D.value(a.to), g = W + c * S.value + (S.value - s) / 2;
|
|
135
135
|
return {
|
|
@@ -151,7 +151,7 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
151
151
|
var xe;
|
|
152
152
|
const d = (xe = e.series[a.series]) == null ? void 0 : xe.values[a.at];
|
|
153
153
|
if (d == null || !s && a.series >= X.value) return [];
|
|
154
|
-
const h = s ?
|
|
154
|
+
const h = s ? j(a.at) : ee(a.at, a.series) + Q.value / 2, g = D.value(d), $ = h > B.value * 0.8 ? "end" : h < B.value * 0.2 ? "start" : "middle", z = te(a.label), Y = $ === "end" ? h - z : $ === "start" ? h : h - z / 2, ue = !s && d < 0, U = s ? Math.max(g - 12, 16) : ue ? g + 14 : g - 6, pe = ue ? 14 : -14, De = (de) => de >= 12 && de <= k.value - _.value && !t.some((ce) => Y < ce.x1 && Y + z > ce.x0 && Math.abs(de - ce.y) < 14), ye = [U, U + pe, U + pe * 2], _e = D.value(0) + (ue ? -6 : 14), L = (s ? n.hero ? [...ye, g + 22, g + 36] : [U] : [...n.hero ? ye : [U], _e]).find(De);
|
|
155
155
|
L !== void 0 && t.push({ x0: Y, x1: Y + z, y: L });
|
|
156
156
|
const ke = s ? 6 : 2, Fe = L === void 0 || L === U || !s && L === _e ? void 0 : L < g ? [g - ke, L + 3] : [g + ke, L - 11];
|
|
157
157
|
return [
|
|
@@ -183,7 +183,7 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
183
183
|
const e = n.cover;
|
|
184
184
|
if (!n.hero || !e) return [];
|
|
185
185
|
const s = e.kind !== "line", t = Math.ceil(e.x.length / mt), i = e.x.length - 1, a = (s ? S.value : G.value) * t, c = e.x.map((d, h) => ({
|
|
186
|
-
x: s ? W + h * S.value + S.value / 2 :
|
|
186
|
+
x: s ? W + h * S.value + S.value / 2 : j(h),
|
|
187
187
|
lines: A(Pe(e, h, N.value), a, s),
|
|
188
188
|
marked: (e.marks ?? []).some((g) => g.at === h)
|
|
189
189
|
})).filter((d, h) => (i - h) % t === 0);
|
|
@@ -252,7 +252,7 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
252
252
|
d: J.value[0],
|
|
253
253
|
class: "line"
|
|
254
254
|
}, null, 8, ot)) : m("", !0)
|
|
255
|
-
], 64)) : e.cover.kind === "waterfall" ? (o(!0), r(w, { key: 1 }, q(
|
|
255
|
+
], 64)) : e.cover.kind === "waterfall" ? (o(!0), r(w, { key: 1 }, q(E.value, (t) => (o(), r(w, {
|
|
256
256
|
key: t.key
|
|
257
257
|
}, [
|
|
258
258
|
v("rect", {
|
|
@@ -390,7 +390,7 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
390
390
|
quote: k.value,
|
|
391
391
|
dark: f.hero || !f.card.read,
|
|
392
392
|
hero: M.value
|
|
393
|
-
},
|
|
393
|
+
}, je({ _: 2 }, [
|
|
394
394
|
f.card.read ? void 0 : {
|
|
395
395
|
name: "badge",
|
|
396
396
|
fn: le(() => [
|
|
@@ -455,10 +455,10 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
455
455
|
key: 0,
|
|
456
456
|
class: "mx-24 mt-24 flex flex-col gap-12",
|
|
457
457
|
"aria-labelledby": "digest-new-heading"
|
|
458
|
-
},
|
|
458
|
+
}, jt = {
|
|
459
459
|
id: "digest-new-heading",
|
|
460
460
|
class: "fm-typo-en-title-sm-600"
|
|
461
|
-
},
|
|
461
|
+
}, Et = {
|
|
462
462
|
key: 1,
|
|
463
463
|
class: "mx-24 mt-[40px] flex flex-col gap-12",
|
|
464
464
|
"aria-labelledby": "digest-earlier-heading"
|
|
@@ -475,21 +475,21 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
475
475
|
Ae();
|
|
476
476
|
const _ = C([]), k = C(), O = C(!0), f = C(!1), F = C(""), R = C(!1), b = C(), V = C("");
|
|
477
477
|
let D;
|
|
478
|
-
const T = (l) => l instanceof Error ? l.message : String(l), G = (l) => l instanceof Ze && l.status === 403,
|
|
478
|
+
const T = (l) => l instanceof Error ? l.message : String(l), G = (l) => l instanceof Ze && l.status === 403, j = u(() => _.value[0]), K = u(() => _.value.slice(1)), J = u(
|
|
479
479
|
() => {
|
|
480
480
|
var l;
|
|
481
481
|
return (l = B.value) != null && l.scheduled ? He(Xe(/* @__PURE__ */ new Date()), N.value) : "";
|
|
482
482
|
}
|
|
483
483
|
), re = u(
|
|
484
484
|
() => {
|
|
485
|
-
var l,
|
|
486
|
-
return ((l = b.value) == null ? void 0 : l.status) === "requested" || ((
|
|
485
|
+
var l, E;
|
|
486
|
+
return ((l = b.value) == null ? void 0 : l.status) === "requested" || ((E = b.value) == null ? void 0 : E.status) === "running";
|
|
487
487
|
}
|
|
488
488
|
), S = u(() => {
|
|
489
489
|
const l = b.value;
|
|
490
490
|
if (!l) return "";
|
|
491
|
-
const
|
|
492
|
-
week: Be(l.weekStart,
|
|
491
|
+
const E = new Date(Date.parse(`${l.weekStart}T00:00:00Z`) + 6 * 864e5).toISOString().slice(0, 10), te = {
|
|
492
|
+
week: Be(l.weekStart, E, N.value),
|
|
493
493
|
failure: (l.failure ?? "").split(`
|
|
494
494
|
`)[0].slice(0, 160)
|
|
495
495
|
};
|
|
@@ -519,7 +519,7 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
|
|
522
|
+
Ee(async () => {
|
|
523
523
|
await Promise.all([
|
|
524
524
|
X(),
|
|
525
525
|
M.loadSubscription().catch((l) => {
|
|
@@ -532,8 +532,8 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
532
532
|
if (l) {
|
|
533
533
|
try {
|
|
534
534
|
b.value = await Ke(l.id);
|
|
535
|
-
} catch (
|
|
536
|
-
V.value = T(
|
|
535
|
+
} catch (E) {
|
|
536
|
+
V.value = T(E);
|
|
537
537
|
return;
|
|
538
538
|
}
|
|
539
539
|
if (re.value) {
|
|
@@ -553,7 +553,7 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
553
553
|
}
|
|
554
554
|
return qe(() => {
|
|
555
555
|
D && clearTimeout(D);
|
|
556
|
-
}), (l,
|
|
556
|
+
}), (l, E) => {
|
|
557
557
|
const te = he("FmButton"), ie = he("FmPageHead");
|
|
558
558
|
return o(), oe(Oe, null, {
|
|
559
559
|
default: le(() => [
|
|
@@ -598,14 +598,14 @@ const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "
|
|
|
598
598
|
title: x(p)("reportV5.digest.emptyTitle"),
|
|
599
599
|
"sub-title": x(p)("reportV5.digest.emptyBody")
|
|
600
600
|
}, null, 8, ["title", "sub-title"])) : _.value.length ? (o(), r(w, { key: 2 }, [
|
|
601
|
-
|
|
602
|
-
v("h2",
|
|
601
|
+
j.value ? (o(), r("section", Tt, [
|
|
602
|
+
v("h2", jt, y(x(p)(j.value.read ? "reportV5.digest.latest" : "reportV5.digest.newForYou")), 1),
|
|
603
603
|
Z($e, {
|
|
604
|
-
card:
|
|
604
|
+
card: j.value,
|
|
605
605
|
hero: ""
|
|
606
606
|
}, null, 8, ["card"])
|
|
607
607
|
])) : m("", !0),
|
|
608
|
-
K.value.length ? (o(), r("section",
|
|
608
|
+
K.value.length ? (o(), r("section", Et, [
|
|
609
609
|
v("h2", qt, y(x(p)("reportV5.digest.earlier")), 1),
|
|
610
610
|
v("div", It, [
|
|
611
611
|
(o(!0), r(w, null, q(K.value, (A) => (o(), oe($e, {
|
|
@@ -2,11 +2,11 @@ import { defineComponent as be, ref as h, watch as W, onMounted as _e, nextTick
|
|
|
2
2
|
import { useRoute as mt, useRouter as ft } from "vue-router";
|
|
3
3
|
import { useI18n as xe } from "@feedmepos/mf-common";
|
|
4
4
|
import { useBreakpoints as vt } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as gt } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as gt } from "./Default.vue_vue_type_script_setup_true_lang-OXDWW29A.js";
|
|
6
6
|
import { _ as ke } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
7
|
-
import { u as ht, a as kt, R as wt, b as yt, c as bt, d as _t, e as xt } from "./useReportCanvasPanel-
|
|
8
|
-
import { b as St, d as Ct, a as Vt, _ as Rt, D as Tt } from "./useDigestFont-
|
|
9
|
-
import { f as Et, m as It, n as At, A as we } from "./app-
|
|
7
|
+
import { u as ht, a as kt, R as wt, b as yt, c as bt, d as _t, e as xt } from "./useReportCanvasPanel-epC6qK7l.js";
|
|
8
|
+
import { b as St, d as Ct, a as Vt, _ as Rt, D as Tt } from "./useDigestFont-mCEZapeC.js";
|
|
9
|
+
import { f as Et, m as It, n as At, A as we } from "./app-DfeWh8B1.js";
|
|
10
10
|
import { _ as Mt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
11
11
|
const Pt = ["srcdoc", "title"], Bt = /* @__PURE__ */ be({
|
|
12
12
|
__name: "DigestCanvasFrame",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as jt, onBeforeUnmount as Eo, resolveComponent as be, createBlock as ye, openBlock as G, Transition as Ya, withCtx as Re, createElementBlock as pe, createCommentVNode as we, createElementVNode as Q, unref as l, normalizeStyle as Ve, withModifiers as Cn, toDisplayString as Me, createVNode as Ce, Fragment as Ye, renderList as St, normalizeClass as Fe, nextTick as Go, mergeModels as ot, useModel as at, renderSlot as gt, h as Pt, createSlots as Xa, resolveDynamicComponent as jo, markRaw as So, toRaw as Ea, createTextVNode as Ga, onUnmounted as Yn, provide as ja, inject as qa, withDirectives as Ja, vShow as Za } from "vue";
|
|
2
|
-
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as Ln, ae as xn, a as _n, af as or } from "./app-
|
|
4
|
-
import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-
|
|
5
|
-
import { c as Dn, w as Et } from "./currency-
|
|
6
|
-
import { d as Xn } from "./DateRangeSelect-
|
|
2
|
+
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CXfWtseh.js";
|
|
3
|
+
import { u as Ln, ae as xn, a as _n, af as or } from "./app-DfeWh8B1.js";
|
|
4
|
+
import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-FbmUzxrA.js";
|
|
5
|
+
import { c as Dn, w as Et } from "./currency-Cyqw_pmX.js";
|
|
6
|
+
import { d as Xn } from "./DateRangeSelect-_e6gSn9J.js";
|
|
7
7
|
import { storeToRefs as At } from "pinia";
|
|
8
8
|
import { detectLocale as oo } from "@feedmepos/mf-common";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-CASt9TkJ.js";
|
|
10
10
|
import { C as En, t as ir } from "./chart-BywXiz4O.js";
|
|
11
11
|
import { useBreakpoints as qt, useSnackbar as Sn, components as ur } from "@feedmepos/ui-library";
|
|
12
12
|
import { u as kt, _ as Jo } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as ve, computed as ge, defineComponent as yt, mergeModels as lt, useModel as ft, watch as Ie, resolveComponent as ee, createElementBlock as fe, openBlock as J, createVNode as P, withCtx as ue, createElementVNode as Q, createCommentVNode as bt, Fragment as Le, renderList as ht, createBlock as we, unref as D, createTextVNode as nt, withDirectives as xl, toDisplayString as he, vShow as Al, renderSlot as qt, normalizeStyle as Gl, normalizeClass as Et, withModifiers as dt } from "vue";
|
|
2
|
-
import { c as Qt, _ as Kt, D as El, e as Ll } from "./DateRangeSelect-
|
|
3
|
-
import { e as gt } from "./index-
|
|
4
|
-
import { d as E, u as ke, c as je, a as Me, F as Oe, ag as St, v as Ae,
|
|
5
|
-
import { b as B, C as W, Q as tt, u as Pe, o as Ge, p as Ue, D as be, a as Wl, x as Mt, W as Pt, A as Ul, S as Bt } from "./report-
|
|
2
|
+
import { c as Qt, _ as Kt, D as El, e as Ll } from "./DateRangeSelect-_e6gSn9J.js";
|
|
3
|
+
import { e as gt } from "./index-CASt9TkJ.js";
|
|
4
|
+
import { d as E, u as ke, c as je, a as Me, F as Oe, ag as St, v as Ae, h as Ml, j as Pl, z as Bl, i as zl, t as Lt } from "./app-DfeWh8B1.js";
|
|
5
|
+
import { b as B, C as W, Q as tt, u as Pe, o as Ge, p as Ue, D as be, a as Wl, x as Mt, W as Pt, A as Ul, S as Bt } from "./report-FbmUzxrA.js";
|
|
6
6
|
import { defineStore as Ft, storeToRefs as re } from "pinia";
|
|
7
7
|
import { detectLocale as xe } from "@feedmepos/mf-common";
|
|
8
8
|
import { u as Jt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ref as I, defineComponent as S, watch as P, computed as $, onMounted as de, createElementBlock as r, openBlock as o, createElementVNode as s, renderSlot as J, toDisplayString as C, resolveDirective as K, createCommentVNode as D, Fragment as
|
|
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,
|
|
1
|
+
import { ref as I, defineComponent as S, watch as P, computed as $, onMounted as de, createElementBlock as r, openBlock as o, createElementVNode as s, renderSlot as J, toDisplayString as C, resolveDirective as K, createCommentVNode as D, Fragment as z, renderList as N, createBlock as R, withDirectives as T, resolveDynamicComponent as U, unref as m, withCtx as B, createVNode as p, 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-OXDWW29A.js";
|
|
3
|
+
import { D as ge } from "./DateRangeSelect-_e6gSn9J.js";
|
|
4
|
+
import { d as E, u as Q, F as ee, q as te, a as pe, j as ve, h as H, o as he, p as ye, s as we } from "./app-DfeWh8B1.js";
|
|
5
5
|
import { storeToRefs as ae } from "pinia";
|
|
6
6
|
import { C as le, r as xe } from "./chart-BywXiz4O.js";
|
|
7
7
|
import { components as Y, useSnackbar as be } from "@feedmepos/ui-library";
|
|
8
8
|
import { u as se } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
9
9
|
import { c as X } from "./index-CtZE4sab.js";
|
|
10
10
|
import { _ as Ce } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
11
|
-
import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-1awtDPcK.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-D8bfnS4L.js";
|
|
14
14
|
function Ae({ start: e, end: t }) {
|
|
15
15
|
return `${E(t).format("DD MMM")}, ${E(t).format("YYYY")}`;
|
|
16
16
|
}
|
|
@@ -152,7 +152,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
152
152
|
])
|
|
153
153
|
]));
|
|
154
154
|
}
|
|
155
|
-
}), Me = ["width", "height"], Le = ["fill"], Te = ["fill"], We = ["stroke"],
|
|
155
|
+
}), Me = ["width", "height"], Le = ["fill"], Te = ["fill"], We = ["stroke"], je = ["stroke"], oe = /* @__PURE__ */ S({
|
|
156
156
|
__name: "SparkIcon",
|
|
157
157
|
props: {
|
|
158
158
|
size: {
|
|
@@ -194,10 +194,10 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
194
194
|
"stroke-width": "1.5",
|
|
195
195
|
"stroke-linecap": "round",
|
|
196
196
|
"stroke-linejoin": "round"
|
|
197
|
-
}, null, 8,
|
|
197
|
+
}, null, 8, je)
|
|
198
198
|
], 8, Me));
|
|
199
199
|
}
|
|
200
|
-
}),
|
|
200
|
+
}), ze = { class: "flex flex-col gap-16" }, Ne = { class: "fm-typo-en-title-sm-600" }, Ee = { class: "flex justify-center items-center" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ye = {
|
|
201
201
|
key: 0,
|
|
202
202
|
class: "rounded-lg p-2"
|
|
203
203
|
}, Ze = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary text-wrap" }, qe = { key: 0 }, He = {
|
|
@@ -242,14 +242,14 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
242
242
|
const { FmTooltip: w } = Y;
|
|
243
243
|
return (d, i) => {
|
|
244
244
|
const k = K("wave");
|
|
245
|
-
return o(), r("div",
|
|
245
|
+
return o(), r("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), r(
|
|
252
|
+
(o(!0), r(z, null, N(l.items, (g, c) => (o(), r("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
|
}, [
|
|
@@ -277,7 +277,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
277
277
|
])) : D("", !0)
|
|
278
278
|
], 512),
|
|
279
279
|
e.items.length > 1 ? (o(), r("div", He, [
|
|
280
|
-
(o(!0), r(
|
|
280
|
+
(o(!0), r(z, null, N(e.items, (g, c) => (o(), r("span", {
|
|
281
281
|
key: `carousel_${c}`,
|
|
282
282
|
class: W([
|
|
283
283
|
"w-[11px] h-[11px] rounded-lg cursor-pointer",
|
|
@@ -634,7 +634,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
634
634
|
p(ke, {
|
|
635
635
|
modelValue: m(d),
|
|
636
636
|
"onUpdate:modelValue": [
|
|
637
|
-
v[0] || (v[0] = (F) =>
|
|
637
|
+
v[0] || (v[0] = (F) => j(d) ? d.value = F : null),
|
|
638
638
|
V
|
|
639
639
|
],
|
|
640
640
|
options: m(w)
|
|
@@ -642,11 +642,11 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
642
642
|
p(ge, {
|
|
643
643
|
"date-range": m(l),
|
|
644
644
|
"onUpdate:dateRange": [
|
|
645
|
-
v[1] || (v[1] = (F) =>
|
|
645
|
+
v[1] || (v[1] = (F) => j(l) ? l.value = F : null),
|
|
646
646
|
V
|
|
647
647
|
],
|
|
648
648
|
"compare-date-range": m(n),
|
|
649
|
-
"onUpdate:compareDateRange": v[2] || (v[2] = (F) =>
|
|
649
|
+
"onUpdate:compareDateRange": v[2] || (v[2] = (F) => j(n) ? n.value = F : null),
|
|
650
650
|
"date-predefined-ranges": L.value,
|
|
651
651
|
"min-date": (Z = x.value) == null ? void 0 : Z.minDate,
|
|
652
652
|
compare: !1
|
|
@@ -657,7 +657,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
|
|
|
657
657
|
p(re, { size: "xl" })
|
|
658
658
|
])) : (o(), r("div", pt, [
|
|
659
659
|
c.value.length > 0 ? (o(), r("div", vt, [
|
|
660
|
-
(o(!0), r(
|
|
660
|
+
(o(!0), r(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
1
|
import { defineComponent as ve, mergeModels as ke, useModel as be, computed as X, resolveComponent as T, createElementBlock as R, openBlock as x, createElementVNode as t, createCommentVNode as q, normalizeClass as Ye, Fragment as $e, renderList as qe, createBlock as ae, normalizeStyle as st, createVNode as l, withCtx as Ce, renderSlot as It, toDisplayString as C, unref as n, h, createTextVNode as $t, ref as se, onUnmounted as Xe, watch as De, isRef as ze, 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 { J as Se, K as it, d as Fe, L as Nt, e as Ee, a as Te, M as _e, N as Vt, O as Ft, E as ce, H as Je, P as Qe, Q as He, R as Ze, S as pt, T as Kt, U as Mt, V as Ut, W as Rt, X as Pt, Y as ut, b as ft, Z as Ot, _ as Lt, B as jt, I as Be, $ as Et, a0 as Bt, a1 as Yt } from "./app-
|
|
3
|
+
import { J as Se, K as it, d as Fe, L as Nt, e as Ee, a as Te, M as _e, N as Vt, O as Ft, E as ce, H as Je, P as Qe, Q as He, R as Ze, S as pt, T as Kt, U as Mt, V as Ut, W as Rt, X as Pt, Y as ut, b as ft, Z as Ot, _ as Lt, B as jt, I as Be, $ as Et, a0 as Bt, a1 as Yt } from "./app-DfeWh8B1.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
8
|
import { u as we, _ as qt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
9
|
-
import { u as We, h as Ae } from "./useRestaurantPermission-
|
|
9
|
+
import { u as We, h as Ae } from "./useRestaurantPermission-OuUzR6qE.js";
|
|
10
10
|
import { storeToRefs as ot } from "pinia";
|
|
11
|
-
import { D as at } from "./DateRangeSelect-
|
|
11
|
+
import { D as at } from "./DateRangeSelect-_e6gSn9J.js";
|
|
12
12
|
const Ht = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, zt = { 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"
|