@feedmepos/mf-report 5.31.3 → 5.32.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App-o4z-EAO1.js +339 -0
- package/dist/{DateRangeSelect-kBTiWzl8.js → DateRangeSelect-DO3T_rQs.js} +18 -18
- package/dist/{Default.vue_vue_type_script_setup_true_lang-QJJFd-aD.js → Default.vue_vue_type_script_setup_true_lang-CW_VllVL.js} +1 -1
- package/dist/DigestListView-DG-vojKl.js +637 -0
- package/dist/DigestReaderView-bRfEYtZA.js +507 -0
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-dhMaJAWF.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Bfmd5eMI.js} +173 -173
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Odt_cfjt.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-vy0FZKv0.js} +154 -154
- package/dist/{InsightView-CoyqETUU.js → InsightView-sLKiFc_-.js} +16 -16
- package/dist/{Integration-nK20FSKv.js → Integration-CZn5gvF8.js} +3 -3
- package/dist/{Integrations-B2zhjy-7.js → Integrations-I0rHAfPo.js} +2 -2
- package/dist/{Layout-Dl7UP2Mh.js → Layout-DPEfiH3f.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DroCP4X4.js → LocationSelect.vue_vue_type_script_setup_true_lang-DFQ943gj.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Es9KEHbl.js → MenuTab.vue_vue_type_script_setup_true_lang-BjJcvN_z.js} +9 -9
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BohRRfew.js → NavigationTab.vue_vue_type_script_setup_true_lang-zUF-G98m.js} +6 -6
- package/dist/{OverviewView-_5c2H2MT.js → OverviewView-CJS82eII.js} +5 -5
- package/dist/{Report-2w23PAp1.js → Report-DDYgnr3v.js} +30 -30
- package/dist/ReportCanvasView-m_qW7QgV.js +966 -0
- package/dist/{ReportEditor-Bd6WesQn.js → ReportEditor-CrMd2q2a.js} +7 -7
- package/dist/{ReportView-DlYt2nTi.js → ReportView-CKLzDw5j.js} +6 -6
- package/dist/{ReportViewRoute-37OLAHAq.js → ReportViewRoute-BrLi7iXr.js} +2 -2
- package/dist/{Setting-PmW3vgf2.js → Setting-BUmSYXCO.js} +3 -3
- package/dist/{Template-DkTDUZL3.js → Template-CljYVpCi.js} +18 -18
- package/dist/{TileEditor-B_X1Z1IF.js → TileEditor-3fV8xOVc.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Dj9ImYdH.js → TilePageStack.vue_vue_type_script_setup_true_lang-Biwl30EU.js} +2 -2
- package/dist/{TransitionFade-k7vzRKon.js → TransitionFade-BUSdiKFH.js} +5 -5
- package/dist/{app-DOyssexi.js → app-BXVd3ce-.js} +3354 -2967
- package/dist/app.js +4 -4
- package/dist/assets/{formatChartData.worker-R9EGYsk6.js → formatChartData.worker-BprlZnJs.js} +80 -58
- package/dist/assets/{processTableData.worker-CxpDa0tB.js → processTableData.worker-D5GSFMnH.js} +83 -61
- package/dist/{currency-Dzf-h7uE.js → currency-C6h0cwip.js} +1 -1
- package/dist/{index-uhMfapU4.js → index-BoeJLw2U.js} +1279 -1244
- package/dist/{report-D1hOlAxl.js → report-DG-20Pq8.js} +18 -18
- package/dist/report-canvas-libs/components-1.js +1126 -71
- package/dist/report-canvas-libs/geo-outlines-1.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useDigestFont-Gf1l5qYq.js +205 -0
- package/dist/{ReportCanvasView-C0WPmew5.js → useReportCanvasPanel-CquUHqIK.js} +2933 -3477
- package/dist/{useRestaurantPermission-DdscVgP6.js → useRestaurantPermission-BNu9cN13.js} +1 -1
- package/package.json +1 -1
- package/dist/App-CAzuIycx.js +0 -339
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { defineComponent as me, resolveComponent as X, createBlock as pe, openBlock as A, unref as d, isRef as xe, withCtx as K, createElementVNode as ae, createVNode as Z, toDisplayString as re, createTextVNode as Je, onMounted as fe, watch as C, ref as Q, computed as se, onBeforeMount as Qe, onBeforeUnmount as Ue, createElementBlock as G, Fragment as je } from "vue";
|
|
2
|
+
import { detectLocale as U, useCoreStore as H } from "@feedmepos/mf-common";
|
|
3
|
+
import { d as V, u as Pe, a as ie, b as We, c as ce, e as Ke, f as Ge, g as He, h as Xe, i as ue, t as Ze, z as Ve, j as Ye } from "./app-BXVd3ce-.js";
|
|
4
|
+
import { storeToRefs as k } from "pinia";
|
|
5
|
+
import { u as Me } from "./global-loader-BuxFfehu.js";
|
|
6
|
+
import { u as et, a as tt } from "./report-DG-20Pq8.js";
|
|
7
|
+
import { u as nt, _ as ot } from "./NavigationTab.vue_vue_type_script_setup_true_lang-zUF-G98m.js";
|
|
8
|
+
import { u as de } from "./message-dialog-UoMWOnil.js";
|
|
9
|
+
import { u as at } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
10
|
+
import { useRoute as rt, useRouter as st } from "vue-router";
|
|
11
|
+
const it = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, ct = /* @__PURE__ */ me({
|
|
12
|
+
__name: "Dialog",
|
|
13
|
+
setup(q) {
|
|
14
|
+
const { t: c } = at(), g = de(), { isOpened: y, message: E, title: L } = k(de());
|
|
15
|
+
return (T, _) => {
|
|
16
|
+
const z = X("FmButton"), j = X("FmDialog");
|
|
17
|
+
return A(), pe(j, {
|
|
18
|
+
modelValue: d(y),
|
|
19
|
+
"onUpdate:modelValue": _[0] || (_[0] = (P) => xe(y) ? y.value = P : null),
|
|
20
|
+
overlay: "",
|
|
21
|
+
"close-button": !1,
|
|
22
|
+
"z-index": 3e3
|
|
23
|
+
}, {
|
|
24
|
+
"dialog-header": K(() => [
|
|
25
|
+
Je(re(d(L)), 1)
|
|
26
|
+
]),
|
|
27
|
+
default: K(() => [
|
|
28
|
+
ae("p", it, re(d(E)), 1)
|
|
29
|
+
]),
|
|
30
|
+
"dialog-footer": K(() => [
|
|
31
|
+
_[1] || (_[1] = ae("div", { class: "grow" }, null, -1)),
|
|
32
|
+
Z(z, {
|
|
33
|
+
label: d(c)("report.common.cancel"),
|
|
34
|
+
variant: "tertiary",
|
|
35
|
+
onClick: d(g).dismiss
|
|
36
|
+
}, null, 8, ["label", "onClick"]),
|
|
37
|
+
Z(z, {
|
|
38
|
+
label: d(c)("report.common.confirm"),
|
|
39
|
+
onClick: d(g).confirm
|
|
40
|
+
}, null, 8, ["label", "onClick"])
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["modelValue"]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}), le = Q(U());
|
|
47
|
+
function ut() {
|
|
48
|
+
const q = (c) => {
|
|
49
|
+
switch (le.value = c, c) {
|
|
50
|
+
case "zh-CN":
|
|
51
|
+
V.locale("zh-cn");
|
|
52
|
+
break;
|
|
53
|
+
default:
|
|
54
|
+
V.locale("en");
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return fe(() => {
|
|
59
|
+
q(U());
|
|
60
|
+
}), C(() => U(), q, { deep: !0, immediate: !0 }), {
|
|
61
|
+
currentLocale: le
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
V.locale(U() === "zh-CN" ? "zh-cn" : "en");
|
|
65
|
+
const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
|
|
66
|
+
__name: "App",
|
|
67
|
+
setup(q) {
|
|
68
|
+
const { businessId: c, token: g, country: y } = k(Pe()), { sessionUser: E, currentBusiness: L, currentCountry: T, registerSidebarComponent: _ } = H(), {
|
|
69
|
+
getRestaurantAndWarehouse: z,
|
|
70
|
+
getBusinessSetting: j,
|
|
71
|
+
beginBusinessLoad: P,
|
|
72
|
+
completeBusinessLoad: ge,
|
|
73
|
+
resetTimezoneContext: ye
|
|
74
|
+
} = ie(), ve = We(), { getFeatureFlags: Se } = ve, { version: v } = k(ce()), { getSettings: De } = Ke(), { loadHasDigest: he } = Ge(), { isAdmin: Ie } = He(), { promptLoader: _e } = Me(), n = rt(), N = st(), b = et(), Y = nt(), r = ie(), B = ce(), { suppressReportRouteSync: F } = k(B), { getReports: Re, getOverviewReport: Ee, getReportConfig: Le, currentReportId: M } = b, { currentReportId: be, reports: we } = k(b), { getSchema: Ae } = tt(), { fetchSchedules: Ce } = Y, { init: ke } = Xe(), W = Q("v5"), O = Q(!1), $ = Q(!0), qe = se(() => `https://portal-v1.feedmedev.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${y.value.toUpperCase()}&menuOption=business-report&token=${g.value}&v2=true&reportV5Button=true`), Te = se(() => `https://report-v4.feedmedev.cc?businessId=${c.value}&country=${y.value}&token=${g.value}&reportV3Button=true`);
|
|
75
|
+
C(
|
|
76
|
+
[() => L.value, () => E.value, () => T.value],
|
|
77
|
+
() => {
|
|
78
|
+
var e, o;
|
|
79
|
+
const t = ((e = L.value) == null ? void 0 : e.id) ?? "";
|
|
80
|
+
L.value && E.value && T.value && (c.value !== t && (c.value = t), g.value = ((o = E.value) == null ? void 0 : o.token) ?? "", y.value = T.value ?? "");
|
|
81
|
+
},
|
|
82
|
+
{ immediate: !0 }
|
|
83
|
+
);
|
|
84
|
+
function ee(t) {
|
|
85
|
+
if (typeof t.data == "string")
|
|
86
|
+
try {
|
|
87
|
+
const e = JSON.parse(t.data);
|
|
88
|
+
(e == null ? void 0 : e.token) !== "" && (e == null ? void 0 : e.token) !== void 0 && (g.value = e.token);
|
|
89
|
+
} catch (e) {
|
|
90
|
+
console.error(e);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function te(t) {
|
|
94
|
+
if (typeof t.data == "string")
|
|
95
|
+
try {
|
|
96
|
+
const e = JSON.parse(t.data);
|
|
97
|
+
(e == null ? void 0 : e.v5) === !0 ? v.value = W.value : (e == null ? void 0 : e.v3) === !0 && (v.value = "v3");
|
|
98
|
+
} catch (e) {
|
|
99
|
+
console.error(e);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
C(v, () => {
|
|
103
|
+
["v3", "v4"].includes(v.value) ? H().hideSidebarToggle(!0) : H().hideSidebarToggle(!1);
|
|
104
|
+
}), Qe(() => {
|
|
105
|
+
_(ot);
|
|
106
|
+
}), fe(() => {
|
|
107
|
+
console.log("5.32.0-beta.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
|
|
108
|
+
}), Ue(() => {
|
|
109
|
+
window.removeEventListener("message", ee), window.removeEventListener("message", te), b.$dispose(), Y.$dispose();
|
|
110
|
+
});
|
|
111
|
+
function ze(t) {
|
|
112
|
+
try {
|
|
113
|
+
return decodeURIComponent(t);
|
|
114
|
+
} catch {
|
|
115
|
+
return t;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function x(t) {
|
|
119
|
+
if (typeof t != "string" || t.length === 0) return;
|
|
120
|
+
const e = t.includes("%") ? [t, ze(t)] : [t];
|
|
121
|
+
for (const o of e)
|
|
122
|
+
try {
|
|
123
|
+
const a = JSON.parse(o);
|
|
124
|
+
if (typeof a == "string")
|
|
125
|
+
try {
|
|
126
|
+
return JSON.parse(a);
|
|
127
|
+
} catch {
|
|
128
|
+
return a;
|
|
129
|
+
}
|
|
130
|
+
return a;
|
|
131
|
+
} catch {
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
function ne(t) {
|
|
135
|
+
if (!t || typeof t != "object") return !1;
|
|
136
|
+
const e = t;
|
|
137
|
+
return typeof e.hour == "number" && typeof e.minute == "number";
|
|
138
|
+
}
|
|
139
|
+
function l(t, e, o) {
|
|
140
|
+
if (typeof t != "string" || t.length === 0) return;
|
|
141
|
+
const a = Ze(t, o);
|
|
142
|
+
return e === "start" ? Ve(a, o) : Ye(a, o);
|
|
143
|
+
}
|
|
144
|
+
function Ne(t = n.query) {
|
|
145
|
+
const e = t, o = r.timezone, a = 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
|
+
let f = [];
|
|
147
|
+
if (J)
|
|
148
|
+
f = r.selectedLocationIds ?? [];
|
|
149
|
+
else {
|
|
150
|
+
const s = x(e.locationIds);
|
|
151
|
+
f = Array.isArray(s) ? s : [];
|
|
152
|
+
}
|
|
153
|
+
let I = e.reportId || M;
|
|
154
|
+
if (we.value.find((s) => s.id === I) || (I = M), I && I !== b.currentReportId && b.updateCurrentReportId(I), a || m) {
|
|
155
|
+
const s = r.dateRange;
|
|
156
|
+
(s.startDate !== a || s.endDate !== m) && r.setDateRange({ startDate: a, endDate: m });
|
|
157
|
+
}
|
|
158
|
+
if (i || S) {
|
|
159
|
+
const s = r.timeRange;
|
|
160
|
+
(s.start !== w || s.end !== p) && r.setTimeRange({ start: w, end: p });
|
|
161
|
+
}
|
|
162
|
+
if (R || u) {
|
|
163
|
+
const s = r.compareDateRange;
|
|
164
|
+
(s.startDate !== R || s.endDate !== u) && r.setCompareDateRange({
|
|
165
|
+
startDate: R,
|
|
166
|
+
endDate: u
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
if (!J) {
|
|
170
|
+
const s = r.selectedLocationIds;
|
|
171
|
+
s.length === f.length && s.every((Oe, $e) => Oe === f[$e]) || r.setSelectedLocationIds(f);
|
|
172
|
+
}
|
|
173
|
+
return {
|
|
174
|
+
// TODO: this returned value can used for getBusinessSetting
|
|
175
|
+
reportId: I,
|
|
176
|
+
startDate: e.startDate,
|
|
177
|
+
endDate: e.endDate,
|
|
178
|
+
timeStart: e.timeStart,
|
|
179
|
+
timeEnd: e.timeEnd,
|
|
180
|
+
compareStartDate: e.compareStartDate,
|
|
181
|
+
compareEndDate: e.compareEndDate,
|
|
182
|
+
locationIds: typeof e.locationIds == "string" ? e.locationIds : void 0,
|
|
183
|
+
isAllLocation: e.isAllLocation
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
return C(
|
|
187
|
+
() => c.value,
|
|
188
|
+
async (t, e) => {
|
|
189
|
+
if (t !== "") {
|
|
190
|
+
O.value = !1, P(t);
|
|
191
|
+
const o = "mf-report-prev-business-id", a = (() => {
|
|
192
|
+
try {
|
|
193
|
+
return sessionStorage.getItem(o);
|
|
194
|
+
} catch {
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
})(), m = !!a && a !== t;
|
|
198
|
+
let i = { ...n.query }, S = !1;
|
|
199
|
+
if (!$.value || e !== void 0 || m) {
|
|
200
|
+
ye(), r.setSelectedLocationIds([]);
|
|
201
|
+
const {
|
|
202
|
+
locationIds: D,
|
|
203
|
+
startDate: h,
|
|
204
|
+
endDate: w,
|
|
205
|
+
timeStart: p,
|
|
206
|
+
timeEnd: R,
|
|
207
|
+
compareStartDate: u,
|
|
208
|
+
compareEndDate: J,
|
|
209
|
+
...f
|
|
210
|
+
} = n.query;
|
|
211
|
+
i = {
|
|
212
|
+
...f,
|
|
213
|
+
isAllLocation: "true"
|
|
214
|
+
}, S = !0, await N.replace({
|
|
215
|
+
name: n.name,
|
|
216
|
+
params: n.params,
|
|
217
|
+
query: i
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
F.value !== void 0 && (F.value = !0), await _e(async () => {
|
|
221
|
+
await ke({
|
|
222
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
223
|
+
url: "https://flag.feedme.farm/api/v1/",
|
|
224
|
+
enableAnalytics: !1,
|
|
225
|
+
cacheFlags: !1
|
|
226
|
+
});
|
|
227
|
+
const D = await Le();
|
|
228
|
+
W.value = D.version, v.value = W.value, await Se(), n.name === "template" && !B.canAccessTemplate() && await N.replace({
|
|
229
|
+
name: "reports",
|
|
230
|
+
query: n.query
|
|
231
|
+
});
|
|
232
|
+
const h = B.canAccess(
|
|
233
|
+
ue.report_accessOverview
|
|
234
|
+
), w = B.canAccess(
|
|
235
|
+
ue.report_accessIntegration
|
|
236
|
+
), p = [
|
|
237
|
+
Ae(),
|
|
238
|
+
Ce(),
|
|
239
|
+
Re(),
|
|
240
|
+
z(
|
|
241
|
+
(() => {
|
|
242
|
+
const u = x(i.locationIds);
|
|
243
|
+
return Array.isArray(u) ? u : void 0;
|
|
244
|
+
})()
|
|
245
|
+
)
|
|
246
|
+
];
|
|
247
|
+
h && p.push(Ee()), w && p.push(De()), Ie.value && p.push(he());
|
|
248
|
+
const R = await Promise.allSettled(p);
|
|
249
|
+
for (const u of R)
|
|
250
|
+
u.status === "rejected" && console.log(u.reason);
|
|
251
|
+
if (await j(), Ne(i), S) {
|
|
252
|
+
const {
|
|
253
|
+
locationIds: u,
|
|
254
|
+
startDate: J,
|
|
255
|
+
endDate: f,
|
|
256
|
+
timeStart: I,
|
|
257
|
+
timeEnd: Be,
|
|
258
|
+
compareStartDate: s,
|
|
259
|
+
compareEndDate: Fe,
|
|
260
|
+
...oe
|
|
261
|
+
} = n.query;
|
|
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 N.replace({
|
|
263
|
+
name: n.name,
|
|
264
|
+
params: n.params,
|
|
265
|
+
query: {
|
|
266
|
+
...oe,
|
|
267
|
+
isAllLocation: "true"
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
ge(t);
|
|
272
|
+
try {
|
|
273
|
+
sessionStorage.setItem(o, t);
|
|
274
|
+
} catch {
|
|
275
|
+
}
|
|
276
|
+
}), O.value = !0, $.value && ($.value = !1);
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
immediate: !0
|
|
281
|
+
}
|
|
282
|
+
), C(
|
|
283
|
+
() => (O.value, {
|
|
284
|
+
reportId: be.value,
|
|
285
|
+
selectedLocationIds: r.selectedLocationIds,
|
|
286
|
+
dateRange: r.dateRange,
|
|
287
|
+
timeRange: r.timeRange,
|
|
288
|
+
compareDateRange: r.compareDateRange,
|
|
289
|
+
timezone: r.timezone
|
|
290
|
+
}),
|
|
291
|
+
(t) => {
|
|
292
|
+
if (!O.value || !t.reportId || $.value) return;
|
|
293
|
+
if (F.value) {
|
|
294
|
+
F.value = !1;
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
const e = t.selectedLocationIds, o = t.dateRange, a = t.timeRange, m = t.compareDateRange, i = {
|
|
298
|
+
...n.query,
|
|
299
|
+
reportId: t.reportId,
|
|
300
|
+
startDate: l(o.startDate, "start", t.timezone),
|
|
301
|
+
endDate: l(o.endDate, "end", t.timezone),
|
|
302
|
+
compareStartDate: l(
|
|
303
|
+
m.startDate,
|
|
304
|
+
"start",
|
|
305
|
+
t.timezone
|
|
306
|
+
),
|
|
307
|
+
compareEndDate: l(m.endDate, "end", t.timezone),
|
|
308
|
+
timeStart: a.start ? JSON.stringify(a.start) : void 0,
|
|
309
|
+
timeEnd: a.end ? JSON.stringify(a.end) : void 0
|
|
310
|
+
}, S = e.length === r.locations.length;
|
|
311
|
+
i.isAllLocation = String(S), S ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
|
|
312
|
+
const D = JSON.stringify(n.query), h = JSON.stringify(i);
|
|
313
|
+
D !== h && N.replace({
|
|
314
|
+
name: n.name,
|
|
315
|
+
params: n.params,
|
|
316
|
+
query: i
|
|
317
|
+
});
|
|
318
|
+
},
|
|
319
|
+
{ deep: !0 }
|
|
320
|
+
), ut(), (t, e) => {
|
|
321
|
+
const o = X("router-view");
|
|
322
|
+
return A(), G(je, null, [
|
|
323
|
+
Z(ct),
|
|
324
|
+
d(v) === "v3" ? (A(), G("iframe", {
|
|
325
|
+
key: 0,
|
|
326
|
+
class: "bg-white h-full w-full",
|
|
327
|
+
src: qe.value
|
|
328
|
+
}, null, 8, dt)) : d(v) === "v4" ? (A(), G("iframe", {
|
|
329
|
+
key: 1,
|
|
330
|
+
class: "bg-white h-full w-full",
|
|
331
|
+
src: Te.value
|
|
332
|
+
}, null, 8, lt)) : (A(), pe(o, { key: 2 }))
|
|
333
|
+
], 64);
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
export {
|
|
338
|
+
_t as default
|
|
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, j as Q, z as X, C as E, p as Ce, t as be } from "./app-BXVd3ce-.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";
|
|
@@ -88,7 +88,7 @@ function Ve(e = {
|
|
|
88
88
|
const d = i().set("hour", l.hour).set("minute", l.minute).locale(D), h = i().set("hour", f.hour).set("minute", f.minute).locale(D);
|
|
89
89
|
return `${d.format(n)}-${h.format(n)}`;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, xe = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, ke = { class: "whitespace-nowrap flex-none" }, te = /* @__PURE__ */ ne({
|
|
92
92
|
__name: "FilterChip",
|
|
93
93
|
props: {
|
|
94
94
|
label: {
|
|
@@ -131,8 +131,8 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
131
131
|
outline: "",
|
|
132
132
|
class: "flex-none"
|
|
133
133
|
}, null, 8, ["name"])) : F("", !0),
|
|
134
|
-
I("div",
|
|
135
|
-
I("span",
|
|
134
|
+
I("div", we, [
|
|
135
|
+
I("span", xe, De(n.label), 1),
|
|
136
136
|
e.rightIcon ? (C(), b(D, {
|
|
137
137
|
key: 0,
|
|
138
138
|
name: e.rightIcon,
|
|
@@ -140,7 +140,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
140
140
|
outline: "",
|
|
141
141
|
class: "flex-none"
|
|
142
142
|
}, null, 8, ["name"])) : F("", !0),
|
|
143
|
-
I("span",
|
|
143
|
+
I("span", ke, [
|
|
144
144
|
ye(l.$slots, "default")
|
|
145
145
|
]),
|
|
146
146
|
n.loading ? (C(), b(d, {
|
|
@@ -217,7 +217,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
217
217
|
}
|
|
218
218
|
const h = n, r = L(e, "compareType"), y = L(e, "dateRange"), s = L(e, "compareDateRange"), { timezone: p } = Ye(he());
|
|
219
219
|
let m = null, T = 0, R = null;
|
|
220
|
-
const
|
|
220
|
+
const w = /* @__PURE__ */ new Set(), N = P(!1), B = P(!1), x = z(
|
|
221
221
|
() => N.value || B.value
|
|
222
222
|
), V = z(
|
|
223
223
|
() => e.minDate ? l("report.messages.noPermissionDateAccess", { date: e.minDate }) : ""
|
|
@@ -242,17 +242,17 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
function q(t = [document]) {
|
|
245
|
-
!e.minDate || !
|
|
245
|
+
!e.minDate || !x.value || (t.forEach((a) => w.add(a)), R === null && (R = window.requestAnimationFrame(() => {
|
|
246
246
|
R = null;
|
|
247
|
-
const a = Array.from(
|
|
248
|
-
|
|
247
|
+
const a = Array.from(w);
|
|
248
|
+
w.clear(), a.length || a.push(document), a.forEach((u) => le(u));
|
|
249
249
|
})));
|
|
250
250
|
}
|
|
251
251
|
function W() {
|
|
252
|
-
m == null || m.disconnect(), m = null, R !== null && (window.cancelAnimationFrame(R), R = null),
|
|
252
|
+
m == null || m.disconnect(), m = null, R !== null && (window.cancelAnimationFrame(R), R = null), w.clear();
|
|
253
253
|
}
|
|
254
254
|
function se() {
|
|
255
|
-
m || !e.minDate || !
|
|
255
|
+
m || !e.minDate || !x.value || (m = new MutationObserver((t) => {
|
|
256
256
|
const a = /* @__PURE__ */ new Set();
|
|
257
257
|
t.forEach((u) => {
|
|
258
258
|
a.add(u.target), u.addedNodes.forEach((o) => {
|
|
@@ -262,7 +262,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
262
262
|
}), m.observe(document.body, { childList: !0, subtree: !0 }));
|
|
263
263
|
}
|
|
264
264
|
function O() {
|
|
265
|
-
if (!e.minDate || !
|
|
265
|
+
if (!e.minDate || !x.value) {
|
|
266
266
|
W();
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
@@ -276,7 +276,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
276
276
|
let o = H(t.startDate, u), g = H(t.endDate, u);
|
|
277
277
|
return o && g && i(o, Y).isAfter(i(g, Y), "day") && (o = e.minDate ?? g, g = o), { startDate: o, endDate: g };
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function k(t, a) {
|
|
280
280
|
return t.startDate === a.startDate && t.endDate === a.endDate;
|
|
281
281
|
}
|
|
282
282
|
const c = P({
|
|
@@ -290,7 +290,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
290
290
|
[() => c.value],
|
|
291
291
|
() => {
|
|
292
292
|
const t = G(c.value);
|
|
293
|
-
if (!
|
|
293
|
+
if (!k(t, c.value)) {
|
|
294
294
|
c.value = t;
|
|
295
295
|
return;
|
|
296
296
|
}
|
|
@@ -306,7 +306,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
306
306
|
const t = G(v.value, {
|
|
307
307
|
notify: r.value === E.CUSTOM
|
|
308
308
|
});
|
|
309
|
-
if (!
|
|
309
|
+
if (!k(t, v.value)) {
|
|
310
310
|
v.value = t;
|
|
311
311
|
return;
|
|
312
312
|
}
|
|
@@ -332,7 +332,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
332
332
|
startDate: d(y.value.startDate),
|
|
333
333
|
endDate: d(y.value.endDate)
|
|
334
334
|
};
|
|
335
|
-
|
|
335
|
+
k(t, c.value) || (c.value = t);
|
|
336
336
|
},
|
|
337
337
|
{ deep: !0 }
|
|
338
338
|
), M(
|
|
@@ -342,7 +342,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
342
342
|
startDate: d(s.value.startDate),
|
|
343
343
|
endDate: d(s.value.endDate)
|
|
344
344
|
};
|
|
345
|
-
|
|
345
|
+
k(t, v.value) || (v.value = t);
|
|
346
346
|
},
|
|
347
347
|
{ deep: !0 }
|
|
348
348
|
), M(
|
|
@@ -351,7 +351,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
351
351
|
await Z(), O();
|
|
352
352
|
}
|
|
353
353
|
), M(
|
|
354
|
-
() =>
|
|
354
|
+
() => x.value,
|
|
355
355
|
async () => {
|
|
356
356
|
await Z(), O();
|
|
357
357
|
}
|
|
@@ -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-zUF-G98m.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";
|