@feedmepos/mf-report 5.30.4-beta.0 → 5.31.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-Bp2T86pd.js → App-CnVD_aRe.js} +4 -4
- package/dist/{DateRangeSelect-COoxXj-r.js → DateRangeSelect-DpKNUuKx.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DCU8ehY7.js → Default.vue_vue_type_script_setup_true_lang-I4NO9UOX.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-N5cxTr5h.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Dz10heLt.js} +7 -7
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-B4uPv0Pp.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BRu0JrvS.js} +80 -80
- package/dist/{InsightView-EI3MZTiZ.js → InsightView-C8WZt__5.js} +5 -5
- package/dist/{Integration--zhnuAYf.js → Integration-C5tSrNLw.js} +3 -3
- package/dist/{Integrations-Cg2zVFJc.js → Integrations-C83LbzmE.js} +2 -2
- package/dist/{Layout-Ci4Zbsz6.js → Layout-Biqg7zFF.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-BnHDHWXN.js → LocationSelect.vue_vue_type_script_setup_true_lang-CS8NUqdN.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D4T_HYLY.js → MenuTab.vue_vue_type_script_setup_true_lang-Cfjoz1T0.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-C_GyUaKD.js → NavigationTab.vue_vue_type_script_setup_true_lang-B1_zlEav.js} +5 -5
- package/dist/{OverviewView-BbsFvXn5.js → OverviewView-CVaPccdT.js} +5 -5
- package/dist/{Report-CSvPRLxX.js → Report-rXclWVVt.js} +3 -3
- package/dist/{ReportCanvasView-7_7iDDMo.js → ReportCanvasView-C0dNeRU3.js} +2381 -1835
- package/dist/{ReportEditor-6VS6VVVo.js → ReportEditor-DXeVzgZe.js} +7 -7
- package/dist/{ReportView-D-FE2uvk.js → ReportView-BeJJj3gB.js} +6 -6
- package/dist/{ReportViewRoute-P3kY1pgh.js → ReportViewRoute-C-9WBFR_.js} +2 -2
- package/dist/{Setting-BTGjs8ef.js → Setting-C3vOe-Kl.js} +3 -3
- package/dist/{Template-BFsmogCz.js → Template-CDu1xXgE.js} +3 -3
- package/dist/{TileEditor-B1mD41so.js → TileEditor-BGUEYc-A.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BxMJxsRs.js → TilePageStack.vue_vue_type_script_setup_true_lang-CanQQED6.js} +2 -2
- package/dist/{TransitionFade-DyVbdV16.js → TransitionFade-9mEtczb7.js} +5 -5
- package/dist/{app-DL6B8kX0.js → app-BIYwuRB4.js} +295 -27
- package/dist/app.js +1 -1
- package/dist/assets/formatChartData.worker-DdA-N536.js +507 -0
- package/dist/assets/processTableData.worker-B69y8rv8.js +507 -0
- package/dist/{currency-IE26CkEv.js → currency-BFVpOgJk.js} +1 -1
- package/dist/{index-C4HJJRwa.js → index-Cnj0Kacp.js} +5221 -5171
- package/dist/{report-DUmqY1C-.js → report-DjGCG50y.js} +1 -1
- package/dist/report-canvas-libs/components-1.js +181 -47
- package/dist/report-canvas-libs/fm-ui-1.js +43 -22
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-D4W9mFY1.js → useRestaurantPermission-BV526HlW.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/formatChartData.worker-t4_wCRf0.js +0 -507
- package/dist/assets/processTableData.worker-JSjN8c44.js +0 -507
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as me, resolveComponent as V, createBlock as pe, openBlock as A, unref as l, isRef as Fe, withCtx as G, createElementVNode as oe, createVNode as Y, toDisplayString as ae, createTextVNode as $e, onMounted as fe, watch as C, ref as U, computed as se, onBeforeMount as xe, onBeforeUnmount as Je, createElementBlock as H, Fragment as Qe } from "vue";
|
|
2
2
|
import { detectLocale as j, useCoreStore as X } from "@feedmepos/mf-common";
|
|
3
|
-
import { d as q, u as Ue, a as ie, b as je, c as ce, e as We, f as Ke, g as de } from "./app-
|
|
3
|
+
import { d as q, u as Ue, a as ie, b as je, c as ce, e as We, f as Ke, g as de } from "./app-BIYwuRB4.js";
|
|
4
4
|
import { storeToRefs as k } from "pinia";
|
|
5
5
|
import { u as Pe } from "./global-loader-BuxFfehu.js";
|
|
6
|
-
import { u as Ge, a as He } from "./report-
|
|
7
|
-
import { u as Xe, _ as Ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as Ge, a as He } from "./report-DjGCG50y.js";
|
|
7
|
+
import { u as Xe, _ as Ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B1_zlEav.js";
|
|
8
8
|
import { u as ue } from "./message-dialog-UoMWOnil.js";
|
|
9
9
|
import { u as Ye } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
10
10
|
import { useRoute as Ze, useRouter as Me } from "vue-router";
|
|
@@ -104,7 +104,7 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
|
|
|
104
104
|
}), xe(() => {
|
|
105
105
|
_(Ve);
|
|
106
106
|
}), fe(() => {
|
|
107
|
-
console.log("5.
|
|
107
|
+
console.log("5.31.0-beta.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
|
|
108
108
|
}), Je(() => {
|
|
109
109
|
window.removeEventListener("message", ee), window.removeEventListener("message", te), b.$dispose(), Z.$dispose();
|
|
110
110
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as te, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as ce, withCtx as U, createCommentVNode as E, createElementVNode as I, toDisplayString as me, renderSlot as fe, mergeModels as K, useModel as z, ref as O, computed as L, watch as M, nextTick as J, onMounted as De, onBeforeUnmount as ye, createElementBlock as pe, unref as Y, createVNode as Q } from "vue";
|
|
2
|
-
import { d as u, a as ge, C as P, j as ve } from "./app-
|
|
2
|
+
import { d as u, a as ge, C as P, j as ve } from "./app-BIYwuRB4.js";
|
|
3
3
|
import { detectLocale as X } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as he, _ as Ce } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
5
5
|
import { storeToRefs as be } 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-B1_zlEav.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,12 +1,12 @@
|
|
|
1
1
|
import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as Gt, onBeforeUnmount as Eo, resolveComponent as be, createBlock as ye, openBlock as j, 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 jo, mergeModels as ot, useModel as at, renderSlot as gt, h as Pt, createSlots as Xa, resolveDynamicComponent as Go, markRaw as So, toRaw as Ea, createTextVNode as ja, onUnmounted as Yn, provide as Ga, 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,
|
|
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-BRu0JrvS.js";
|
|
3
|
+
import { u as Ln, a0 as xn, a as _n, a1 as or } from "./app-BIYwuRB4.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-DjGCG50y.js";
|
|
5
|
+
import { c as Dn, w as Et } from "./currency-BFVpOgJk.js";
|
|
6
|
+
import { d as Xn } from "./DateRangeSelect-DpKNUuKx.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-Cnj0Kacp.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";
|
|
@@ -3227,7 +3227,7 @@ function fs(e, t) {
|
|
|
3227
3227
|
const n = be("FmMenuDivider");
|
|
3228
3228
|
return j(), ye(n);
|
|
3229
3229
|
}
|
|
3230
|
-
const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-
|
|
3230
|
+
const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-B69y8rv8.js", gs = { class: "flex h-full flex-col" }, hs = { class: "my-4 shrink-0" }, vs = {
|
|
3231
3231
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3232
3232
|
style: { backgroundColor: "#f9f9f9" }
|
|
3233
3233
|
}, ys = { class: "font-bold" }, bs = { class: "text-fm-color-neutral-gray-300" }, Cs = /* @__PURE__ */ ze({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ref as he, computed as Se, defineComponent as yt, mergeModels as lt, useModel as ft, watch as Ie, resolveComponent as ee, createElementBlock as pe, openBlock as J, createVNode as P, withCtx as ie, createElementVNode as j, createCommentVNode as bt, Fragment as Le, renderList as ht, createBlock as we, unref as T, createTextVNode as nt, withDirectives as $l, toDisplayString as be, vShow as xl, renderSlot as qt, normalizeStyle as Al, normalizeClass as Et, withModifiers as dt } from "vue";
|
|
2
|
-
import { c as jt, _ as Qt, D as Gl, e as El } from "./DateRangeSelect-
|
|
3
|
-
import { e as St } from "./index-
|
|
4
|
-
import { d as I, u as Oe, c as qe, a as Me, F as ke,
|
|
5
|
-
import { b as B, C as W, Q as tt, u as Pe, o as Ge, p as Ue, D as fe, a as Pl, x as Lt, W as Mt, A as Bl, S as Pt } from "./report-
|
|
2
|
+
import { c as jt, _ as Qt, D as Gl, e as El } from "./DateRangeSelect-DpKNUuKx.js";
|
|
3
|
+
import { e as St } from "./index-Cnj0Kacp.js";
|
|
4
|
+
import { d as I, u as Oe, c as qe, a as Me, F as ke, a2 as gt, r as Ae, g as Ll, h as Ml } from "./app-BIYwuRB4.js";
|
|
5
|
+
import { b as B, C as W, Q as tt, u as Pe, o as Ge, p as Ue, D as fe, a as Pl, x as Lt, W as Mt, A as Bl, S as Pt } from "./report-DjGCG50y.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 Kt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
9
9
|
import { _ as zl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
10
10
|
var Jt = /* @__PURE__ */ ((l) => (l.generating = "GENERATING", l.completed = "COMPLETED", l.failed = "FAILED", l.canceled = "CANCELLED", l))(Jt || {});
|
|
11
|
-
const Wl = "/assets/formatChartData.worker-
|
|
11
|
+
const Wl = "/assets/formatChartData.worker-DdA-N536.js", mt = /* @__PURE__ */ new Map();
|
|
12
12
|
function Bt(l) {
|
|
13
13
|
return new Worker(l, { type: "module" });
|
|
14
14
|
}
|
|
@@ -169,8 +169,8 @@ function zt({
|
|
|
169
169
|
return u.option === B.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [m ? "-1" : Ht];
|
|
170
170
|
}
|
|
171
171
|
function i(u, m) {
|
|
172
|
-
const v = typeof u == "number" ? u : Number(u),
|
|
173
|
-
return Number.isFinite(v) && Number.isFinite(
|
|
172
|
+
const v = typeof u == "number" ? u : Number(u), C = typeof m == "number" ? m : Number(m);
|
|
173
|
+
return Number.isFinite(v) && Number.isFinite(C) ? v - C : typeof u == "string" && typeof m == "string" ? u.localeCompare(m) : null;
|
|
174
174
|
}
|
|
175
175
|
function F(u, m) {
|
|
176
176
|
if (u.length === 0 || m.length === 0) return null;
|
|
@@ -184,32 +184,32 @@ function zt({
|
|
|
184
184
|
}
|
|
185
185
|
function ae(u, m) {
|
|
186
186
|
if (u.length < 2 || m.length < 2) return null;
|
|
187
|
-
const v = i(u[0], m[0]),
|
|
188
|
-
if (v == null ||
|
|
189
|
-
const _ = v >= 0 ? u[0] : m[0], O =
|
|
187
|
+
const v = i(u[0], m[0]), C = i(u[1], m[1]);
|
|
188
|
+
if (v == null || C == null) return null;
|
|
189
|
+
const _ = v >= 0 ? u[0] : m[0], O = C <= 0 ? u[1] : m[1];
|
|
190
190
|
return i(_, O) == null ? null : [_, O];
|
|
191
191
|
}
|
|
192
192
|
function k(u, m) {
|
|
193
|
-
const v = We(u.values),
|
|
193
|
+
const v = We(u.values), C = We(m.values);
|
|
194
194
|
switch (m.operator) {
|
|
195
195
|
case W.Equal: {
|
|
196
|
-
const _ = new Set(
|
|
196
|
+
const _ = new Set(C), O = v.filter((E) => _.has(E));
|
|
197
197
|
return O.length ? O : h(u);
|
|
198
198
|
}
|
|
199
199
|
case W.NotEqual:
|
|
200
200
|
case W.NotLike:
|
|
201
201
|
return We([
|
|
202
202
|
...v,
|
|
203
|
-
...
|
|
203
|
+
...C
|
|
204
204
|
]);
|
|
205
205
|
case W.GreaterThan:
|
|
206
206
|
case W.GreaterThanOrEqual:
|
|
207
|
-
return F(v,
|
|
207
|
+
return F(v, C);
|
|
208
208
|
case W.LessThan:
|
|
209
209
|
case W.LessThanOrEqual:
|
|
210
|
-
return z(v,
|
|
210
|
+
return z(v, C);
|
|
211
211
|
case W.Between:
|
|
212
|
-
return ae(v,
|
|
212
|
+
return ae(v, C);
|
|
213
213
|
default:
|
|
214
214
|
return null;
|
|
215
215
|
}
|
|
@@ -225,9 +225,9 @@ function zt({
|
|
|
225
225
|
d.push(m);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
-
const
|
|
228
|
+
const C = Jl(m), _ = r.get(C);
|
|
229
229
|
if (!_) {
|
|
230
|
-
r.set(
|
|
230
|
+
r.set(C, m);
|
|
231
231
|
return;
|
|
232
232
|
}
|
|
233
233
|
const O = k(_, m);
|
|
@@ -235,7 +235,7 @@ function zt({
|
|
|
235
235
|
d.push(m);
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
|
-
_.values = O, r.set(
|
|
238
|
+
_.values = O, r.set(C, _);
|
|
239
239
|
};
|
|
240
240
|
return l.forEach(D), S.forEach(D), [...Array.from(r.values()), ...d];
|
|
241
241
|
}
|
|
@@ -361,7 +361,7 @@ const ln = async ({
|
|
|
361
361
|
editingReport: ae,
|
|
362
362
|
currentReport: z
|
|
363
363
|
}), v = Ke(D), {
|
|
364
|
-
selectedRestaurantIds:
|
|
364
|
+
selectedRestaurantIds: C,
|
|
365
365
|
selectedWarehouseIds: _,
|
|
366
366
|
selectedLocationIds: O,
|
|
367
367
|
dateRange: E,
|
|
@@ -382,7 +382,7 @@ const ln = async ({
|
|
|
382
382
|
timezone: te
|
|
383
383
|
}))
|
|
384
384
|
return null;
|
|
385
|
-
const H = (r == null ? void 0 : r.filter((oe) => X.some((se) => se.id === oe))) ??
|
|
385
|
+
const H = (r == null ? void 0 : r.filter((oe) => X.some((se) => se.id === oe))) ?? C, ne = (r == null ? void 0 : r.filter((oe) => le.some((se) => se.id === oe))) ?? _, L = je(l, Y, s ?? ""), R = {
|
|
386
386
|
fetchType: ke.Post,
|
|
387
387
|
url: h ? `/${F.value}/v2/query/page` : `/${F.value}/v2/query`,
|
|
388
388
|
data: {
|
|
@@ -426,7 +426,7 @@ const ln = async ({
|
|
|
426
426
|
overviewReport: h,
|
|
427
427
|
editingReport: S,
|
|
428
428
|
currentReport: f
|
|
429
|
-
}), ae = Ke(i), { restaurants: k, warehouses: D, dateRange: u, compareDateRange: m, timeRange: v, timezone:
|
|
429
|
+
}), ae = Ke(i), { restaurants: k, warehouses: D, dateRange: u, compareDateRange: m, timeRange: v, timezone: C } = Me(), { globalFilters: _ } = Ge();
|
|
430
430
|
if (k.length === 0 && D.length === 0)
|
|
431
431
|
return { totalBytesProcessed: 0 };
|
|
432
432
|
const O = r ?? u, E = d ?? m;
|
|
@@ -435,7 +435,7 @@ const ln = async ({
|
|
|
435
435
|
pageSubject: ae,
|
|
436
436
|
dateRange: O,
|
|
437
437
|
compareDateRange: E,
|
|
438
|
-
timezone:
|
|
438
|
+
timezone: C
|
|
439
439
|
}))
|
|
440
440
|
return { totalBytesProcessed: 0 };
|
|
441
441
|
const Q = k.map((Y) => Y.id), U = D.map((Y) => Y.id), te = je(l, _, s ?? ""), X = {
|
|
@@ -446,13 +446,13 @@ const ln = async ({
|
|
|
446
446
|
dateRange: [O.startDate, O.endDate],
|
|
447
447
|
compareDateRange: E.startDate && E.endDate ? [E.startDate, E.endDate] : void 0,
|
|
448
448
|
timeRange: [
|
|
449
|
-
I().tz(
|
|
450
|
-
I().tz(
|
|
449
|
+
I().tz(C).hour(Number((le = v.start) == null ? void 0 : le.hour)).minute(Number((w = v.start) == null ? void 0 : w.minute)).toISOString(),
|
|
450
|
+
I().tz(C).hour(Number(($ = v.end) == null ? void 0 : $.hour)).minute(Number((K = v.end) == null ? void 0 : K.minute)).endOf("minutes").toISOString()
|
|
451
451
|
],
|
|
452
452
|
businessIds: p.value ? [p.value] : [],
|
|
453
453
|
restaurantIds: Q,
|
|
454
454
|
warehouseIds: U,
|
|
455
|
-
timezone:
|
|
455
|
+
timezone: C,
|
|
456
456
|
skipStringSpaceGrouping: !1,
|
|
457
457
|
reportId: z == null ? void 0 : z.id,
|
|
458
458
|
queryDatasource: tt.BigQuery
|
|
@@ -482,7 +482,7 @@ const ln = async ({
|
|
|
482
482
|
overviewReport: D,
|
|
483
483
|
editingReport: k,
|
|
484
484
|
currentReport: ae
|
|
485
|
-
}),
|
|
485
|
+
}), C = Ke(u);
|
|
486
486
|
if (vt(v))
|
|
487
487
|
return ln({
|
|
488
488
|
widget: l,
|
|
@@ -512,7 +512,7 @@ const ln = async ({
|
|
|
512
512
|
const K = p ?? Q, Y = d ?? te, H = f ?? $;
|
|
513
513
|
if (!Qe({
|
|
514
514
|
report: v,
|
|
515
|
-
pageSubject:
|
|
515
|
+
pageSubject: C,
|
|
516
516
|
dateRange: K,
|
|
517
517
|
compareDateRange: U,
|
|
518
518
|
timezone: X
|
|
@@ -565,7 +565,7 @@ const ln = async ({
|
|
|
565
565
|
dateRange: f,
|
|
566
566
|
globalFilters: S
|
|
567
567
|
}) => {
|
|
568
|
-
const { businessId: h } = re(Oe()), i = Me(), { compareDateRange: F } = re(i), { restaurants: z, warehouses: ae, timezone: k } = i, { globalFilters: D } = Ge(), { currentReport: u, overviewReport: m } = Pe(), { selectedNavigationTab: v } = qe(), { getTileSorts:
|
|
568
|
+
const { businessId: h } = re(Oe()), i = Me(), { compareDateRange: F } = re(i), { restaurants: z, warehouses: ae, timezone: k } = i, { globalFilters: D } = Ge(), { currentReport: u, overviewReport: m } = Pe(), { selectedNavigationTab: v } = qe(), { getTileSorts: C } = Yt(), { getTileSearch: _ } = Kl();
|
|
569
569
|
let O = u == null ? void 0 : u.id, E = Ue(u == null ? void 0 : u.tiles);
|
|
570
570
|
v === "overview" && m && (O = m == null ? void 0 : m.id, E = Ue(m == null ? void 0 : m.tiles));
|
|
571
571
|
const Q = v === "overview" && m ? m : u, U = Ke(v);
|
|
@@ -607,7 +607,7 @@ const ln = async ({
|
|
|
607
607
|
index: n || L,
|
|
608
608
|
drillDimension: null,
|
|
609
609
|
...Zt(ne),
|
|
610
|
-
globalSorts:
|
|
610
|
+
globalSorts: C(n ?? L)
|
|
611
611
|
};
|
|
612
612
|
})
|
|
613
613
|
],
|
|
@@ -632,7 +632,7 @@ const ln = async ({
|
|
|
632
632
|
isCombinedLocationLayout: f,
|
|
633
633
|
globalFilters: S
|
|
634
634
|
}) => {
|
|
635
|
-
const { businessId: h } = re(Oe()), { currentReport: i, overviewReport: F } = Pe(), { selectedNavigationTab: z } = qe(), ae = Me(), { compareDateRange: k } = re(ae), { restaurants: D, warehouses: u, timezone: m } = ae, { globalFilters: v } = Ge(), { getTileSorts:
|
|
635
|
+
const { businessId: h } = re(Oe()), { currentReport: i, overviewReport: F } = Pe(), { selectedNavigationTab: z } = qe(), ae = Me(), { compareDateRange: k } = re(ae), { restaurants: D, warehouses: u, timezone: m } = ae, { globalFilters: v } = Ge(), { getTileSorts: C } = Yt();
|
|
636
636
|
if (l.length === 0) {
|
|
637
637
|
console.error("No email addresses provided.");
|
|
638
638
|
return;
|
|
@@ -680,7 +680,7 @@ const ln = async ({
|
|
|
680
680
|
index: $,
|
|
681
681
|
drillDimension: null,
|
|
682
682
|
...Zt(w),
|
|
683
|
-
globalSorts:
|
|
683
|
+
globalSorts: C($)
|
|
684
684
|
};
|
|
685
685
|
}),
|
|
686
686
|
reportId: _,
|
|
@@ -819,8 +819,8 @@ const on = { class: "px-24 py-16 rounded-lg shadow-light-300" }, un = { class: "
|
|
|
819
819
|
if (d.value) {
|
|
820
820
|
const D = l.defaultDateRange.findIndex(
|
|
821
821
|
(u) => {
|
|
822
|
-
var m, v,
|
|
823
|
-
return u.startTime.hour === ((m = d.value.start) == null ? void 0 : m.hour) && u.startTime.minute === ((v = d.value.start) == null ? void 0 : v.minute) && u.endTime.hour === ((
|
|
822
|
+
var m, v, C, _;
|
|
823
|
+
return u.startTime.hour === ((m = d.value.start) == null ? void 0 : m.hour) && u.startTime.minute === ((v = d.value.start) == null ? void 0 : v.minute) && u.endTime.hour === ((C = d.value.end) == null ? void 0 : C.hour) && u.endTime.minute === ((_ = d.value.end) == null ? void 0 : _.minute);
|
|
824
824
|
}
|
|
825
825
|
) + 1;
|
|
826
826
|
D !== 0 ? f.value = D : f.value = l.defaultDateRange.length + 1;
|
|
@@ -838,7 +838,7 @@ const on = { class: "px-24 py-16 rounded-lg shadow-light-300" }, un = { class: "
|
|
|
838
838
|
locale: r.value
|
|
839
839
|
}));
|
|
840
840
|
return (D, u) => {
|
|
841
|
-
const m = ee("FmChip"), v = ee("FmRadio"),
|
|
841
|
+
const m = ee("FmChip"), v = ee("FmRadio"), C = ee("FmMenuDivider"), _ = ee("FmRadioGroup"), O = ee("FmTimeInput"), E = ee("FmButton"), Q = ee("FmPopover");
|
|
842
842
|
return J(), pe("div", null, [
|
|
843
843
|
P(Q, {
|
|
844
844
|
"show-popover": z.value,
|
|
@@ -883,7 +883,7 @@ const on = { class: "px-24 py-16 rounded-lg shadow-light-300" }, un = { class: "
|
|
|
883
883
|
]),
|
|
884
884
|
_: 2
|
|
885
885
|
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
886
|
-
P(
|
|
886
|
+
P(C),
|
|
887
887
|
P(v, {
|
|
888
888
|
key: "range_custom",
|
|
889
889
|
label: T(s)("report.common.custom"),
|
|
@@ -1183,7 +1183,7 @@ function pt({
|
|
|
1183
1183
|
const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-flex max-w-[460px]" }, gn = {
|
|
1184
1184
|
key: 0,
|
|
1185
1185
|
class: "flex justify-center my-2"
|
|
1186
|
-
}, Fn = { class: "px-2 pb-8" }, wn = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Dn = { class: "px-2 pb-8" }, Tn = { class: "flex items-start w-full" }, Vn = ["onClick"],
|
|
1186
|
+
}, Fn = { class: "px-2 pb-8" }, wn = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Dn = { class: "px-2 pb-8" }, Tn = { class: "flex items-start w-full" }, Vn = ["onClick"], Nn = { class: "fm-typo-en-body-md-400" }, Cn = { key: 0 }, On = { class: "px-12 py-3" }, kn = { class: "flex items-center justify-between" }, _n = { class: "text-xs max-w-[200px]" }, Rn = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Ce = "__EMPTY__", Fe = "__NO_SELECTION__", Hn = /* @__PURE__ */ yt({
|
|
1187
1187
|
__name: "GlobalFilterSelect",
|
|
1188
1188
|
props: {
|
|
1189
1189
|
globalFilterId: {},
|
|
@@ -1203,7 +1203,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1203
1203
|
setIncludeUnavailable: u,
|
|
1204
1204
|
getGlobalFilterKey: m,
|
|
1205
1205
|
isMenuOpen: v,
|
|
1206
|
-
getGlobalFilterLabel:
|
|
1206
|
+
getGlobalFilterLabel: C,
|
|
1207
1207
|
incrementAppliedTilesFiltersVersion: _
|
|
1208
1208
|
} = Ge();
|
|
1209
1209
|
const O = Se(() => s("report.input.empty")), E = ["NULL", "", " "];
|
|
@@ -1245,9 +1245,9 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1245
1245
|
}
|
|
1246
1246
|
function De(e) {
|
|
1247
1247
|
const t = e.some(
|
|
1248
|
-
(a) => a ===
|
|
1248
|
+
(a) => a === Ce || a === "NULL" || typeof a == "string" && (a === "" || a === " ")
|
|
1249
1249
|
), o = e.flatMap(
|
|
1250
|
-
(a) => a ===
|
|
1250
|
+
(a) => a === Ce ? [...E] : [a]
|
|
1251
1251
|
);
|
|
1252
1252
|
return t ? Array.from(/* @__PURE__ */ new Set([...o, ...E])) : Array.from(new Set(o));
|
|
1253
1253
|
}
|
|
@@ -1320,7 +1320,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1320
1320
|
return e.includes(Fe);
|
|
1321
1321
|
}
|
|
1322
1322
|
function Tt(e) {
|
|
1323
|
-
return e ===
|
|
1323
|
+
return e === Ce || String(e ?? "").trim() === "";
|
|
1324
1324
|
}
|
|
1325
1325
|
function rt(e) {
|
|
1326
1326
|
return [...e].sort((t, o) => {
|
|
@@ -1393,15 +1393,15 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1393
1393
|
if (rl(e, t))
|
|
1394
1394
|
return [];
|
|
1395
1395
|
if (!e.keepSelection || n.isDialogGlobalFilter)
|
|
1396
|
-
return a.length ? a : b ? [
|
|
1396
|
+
return a.length ? a : b ? [Ce] : [];
|
|
1397
1397
|
if (!it(e))
|
|
1398
|
-
return a.length ? a : b ? [
|
|
1398
|
+
return a.length ? a : b ? [Ce] : [];
|
|
1399
1399
|
const V = new Set(
|
|
1400
1400
|
(e.options || []).filter((M) => M.available !== !1).map((M) => M.value)
|
|
1401
1401
|
), y = o.filter(
|
|
1402
1402
|
(M) => V.has(M)
|
|
1403
1403
|
), A = De(y);
|
|
1404
|
-
return A.length ? A : b ? [
|
|
1404
|
+
return A.length ? A : b ? [Ce] : [];
|
|
1405
1405
|
}
|
|
1406
1406
|
function Ye(e) {
|
|
1407
1407
|
const t = Y.value[e.id];
|
|
@@ -1450,7 +1450,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1450
1450
|
globalFilter: e,
|
|
1451
1451
|
search: a.search,
|
|
1452
1452
|
options: a.options,
|
|
1453
|
-
type:
|
|
1453
|
+
type: Ct(e),
|
|
1454
1454
|
selectedValues: b,
|
|
1455
1455
|
visibleCount: a.visibleCount,
|
|
1456
1456
|
keepSelection: a.keepSelection,
|
|
@@ -1519,9 +1519,9 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1519
1519
|
vl();
|
|
1520
1520
|
}
|
|
1521
1521
|
);
|
|
1522
|
-
function
|
|
1522
|
+
function Nt(e, t) {
|
|
1523
1523
|
var o;
|
|
1524
|
-
return t === !0 ? s("report.common.yes") || "Yes" : t === !1 ? s("report.common.no") || "No" : String(t).trim() === "" || t ===
|
|
1524
|
+
return t === !0 ? s("report.common.yes") || "Yes" : t === !1 ? s("report.common.no") || "No" : String(t).trim() === "" || t === Ce ? O.value : e.type === fe.Timestamp && e.globalFilter.option !== B.DateTime && e.globalFilter.option !== B.TimeOfDay ? ((o = pt({
|
|
1525
1525
|
dimensionOption: e.globalFilter.option,
|
|
1526
1526
|
t: s
|
|
1527
1527
|
}).find((b) => String(b.value) === String(t))) == null ? void 0 : o.label) ?? String(t) : String(t);
|
|
@@ -1531,12 +1531,12 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1531
1531
|
if (!e.options.length) return;
|
|
1532
1532
|
const t = e.options.map((o) => ({
|
|
1533
1533
|
...o,
|
|
1534
|
-
label:
|
|
1534
|
+
label: Nt(e, o.value)
|
|
1535
1535
|
}));
|
|
1536
1536
|
e.options = Vt(e) ? rt(t) : t;
|
|
1537
1537
|
});
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1539
|
+
function Ct(e) {
|
|
1540
1540
|
var o;
|
|
1541
1541
|
const t = (o = z.value.find((a) => a.name === e.schemaName)) == null ? void 0 : o.fields.find((a) => a.name === e.name);
|
|
1542
1542
|
return t == null ? void 0 : t.type;
|
|
@@ -1553,14 +1553,14 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1553
1553
|
(_e) => _e.schemaName === a && _e.name === o
|
|
1554
1554
|
), q = (G.joinDatasources ?? []).some(
|
|
1555
1555
|
(_e) => (_e.dimensions ?? []).some((ze) => ze.schemaName === a && ze.name === o)
|
|
1556
|
-
),
|
|
1557
|
-
return c || q ||
|
|
1556
|
+
), N = (G.schemaNames ?? []).includes(a);
|
|
1557
|
+
return c || q || N;
|
|
1558
1558
|
});
|
|
1559
1559
|
if (!b.length) return [];
|
|
1560
1560
|
const V = (x, G) => {
|
|
1561
|
-
const c = /* @__PURE__ */ new Map(), q = (
|
|
1562
|
-
const ce = `${
|
|
1563
|
-
g ? [W.Like, W.NotLike].includes(
|
|
1561
|
+
const c = /* @__PURE__ */ new Map(), q = (N) => {
|
|
1562
|
+
const ce = `${N.schemaName}:${N.name}:${N.operator}:${N.option ?? ""}:${N.dataFormula ?? ""}`, g = c.get(ce);
|
|
1563
|
+
g ? [W.Like, W.NotLike].includes(N.operator) ? g.values = Array.from(/* @__PURE__ */ new Set([...g.values ?? [], ...N.values ?? []])) : c.set(ce, { ...N }) : c.set(ce, { ...N });
|
|
1564
1564
|
};
|
|
1565
1565
|
return x.forEach(q), G.forEach(q), Array.from(c.values());
|
|
1566
1566
|
}, y = (x) => {
|
|
@@ -1581,19 +1581,19 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1581
1581
|
var ze, Gt;
|
|
1582
1582
|
const c = (ze = G == null ? void 0 : G.widget) == null ? void 0 : ze.config;
|
|
1583
1583
|
if (!c) return x;
|
|
1584
|
-
const q = y(c),
|
|
1584
|
+
const q = y(c), N = (c.dimensions ?? []).some((Ne) => Ne.schemaName === a) || (c.schemaNames ?? []).includes(a), ce = V(
|
|
1585
1585
|
c.filters ?? [],
|
|
1586
|
-
(e.filters ?? []).filter((
|
|
1586
|
+
(e.filters ?? []).filter((Ne) => {
|
|
1587
1587
|
var Re;
|
|
1588
|
-
return (Re = c.schemaNames) == null ? void 0 : Re.includes(
|
|
1588
|
+
return (Re = c.schemaNames) == null ? void 0 : Re.includes(Ne.schemaName);
|
|
1589
1589
|
})
|
|
1590
1590
|
), g = (Gt = c.joinDatasources) == null ? void 0 : Gt.find(
|
|
1591
|
-
(
|
|
1591
|
+
(Ne) => (Ne.schemaNames ?? []).includes(a) || (Ne.dimensions ?? []).some((Re) => Re.schemaName === a)
|
|
1592
1592
|
), _e = V(
|
|
1593
1593
|
(g == null ? void 0 : g.filters) ?? [],
|
|
1594
|
-
(e.filters ?? []).filter((
|
|
1594
|
+
(e.filters ?? []).filter((Ne) => {
|
|
1595
1595
|
var Re;
|
|
1596
|
-
return (Re = g == null ? void 0 : g.schemaNames) == null ? void 0 : Re.includes(
|
|
1596
|
+
return (Re = g == null ? void 0 : g.schemaNames) == null ? void 0 : Re.includes(Ne.schemaName);
|
|
1597
1597
|
})
|
|
1598
1598
|
);
|
|
1599
1599
|
return x.push({
|
|
@@ -1602,10 +1602,10 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1602
1602
|
config: {
|
|
1603
1603
|
schemaNames: c.schemaNames,
|
|
1604
1604
|
schemas: c.schemas,
|
|
1605
|
-
dimensions:
|
|
1605
|
+
dimensions: N ? [q] : [],
|
|
1606
1606
|
filters: ce,
|
|
1607
|
-
sorts:
|
|
1608
|
-
joinDatasources: !
|
|
1607
|
+
sorts: N ? [{ name: o, schemaName: a, type: Pt.Asc, aggregation: null, dimensionOption: null }] : [],
|
|
1608
|
+
joinDatasources: !N && g ? [
|
|
1609
1609
|
{
|
|
1610
1610
|
...g,
|
|
1611
1611
|
dimensions: [q],
|
|
@@ -1678,7 +1678,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1678
1678
|
return n.isDialogGlobalFilter && ue.value && ((e = d.value) != null && e.id) ? d.value.id : H.value;
|
|
1679
1679
|
}
|
|
1680
1680
|
function Ze(e) {
|
|
1681
|
-
return String(e ?? "").trim() === "" ?
|
|
1681
|
+
return String(e ?? "").trim() === "" ? Ce : String(e);
|
|
1682
1682
|
}
|
|
1683
1683
|
function wl(e) {
|
|
1684
1684
|
var t, o;
|
|
@@ -1697,7 +1697,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1697
1697
|
if (!t.length) return;
|
|
1698
1698
|
const o = new Set(e.options.map((b) => b.value)), a = t.filter((b) => !o.has(b)).map((b) => ({
|
|
1699
1699
|
value: b,
|
|
1700
|
-
label:
|
|
1700
|
+
label: Nt(e, b),
|
|
1701
1701
|
available: !1
|
|
1702
1702
|
}));
|
|
1703
1703
|
if (a.length) {
|
|
@@ -1729,7 +1729,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1729
1729
|
tl(e);
|
|
1730
1730
|
return;
|
|
1731
1731
|
}
|
|
1732
|
-
if (!(!e.type && (e.type =
|
|
1732
|
+
if (!(!e.type && (e.type = Ct(e.globalFilter), !e.type))) {
|
|
1733
1733
|
if (Be(e.globalFilter)) {
|
|
1734
1734
|
e.options = wl(e.globalFilter), Ye(e);
|
|
1735
1735
|
return;
|
|
@@ -1746,7 +1746,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1746
1746
|
for (const c of a) {
|
|
1747
1747
|
if (t.aborted) return;
|
|
1748
1748
|
if (b) {
|
|
1749
|
-
const
|
|
1749
|
+
const N = await nn({
|
|
1750
1750
|
widget: c,
|
|
1751
1751
|
signal: t,
|
|
1752
1752
|
scopedLocationIds: n.locationIds,
|
|
@@ -1754,7 +1754,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1754
1754
|
scopedDateRange: n.dateRange,
|
|
1755
1755
|
scopedGlobalFilters: n.globalFilters
|
|
1756
1756
|
});
|
|
1757
|
-
(
|
|
1757
|
+
(N == null ? void 0 : N.type) === Mt.Table && V.push(...N.rows.map((ce) => {
|
|
1758
1758
|
var g;
|
|
1759
1759
|
return ((g = ce.cells) == null ? void 0 : g[0]) ?? " ";
|
|
1760
1760
|
}));
|
|
@@ -1836,15 +1836,15 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1836
1836
|
selectedValues: [...a]
|
|
1837
1837
|
}), se(e.globalFilter);
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function Nl(e) {
|
|
1840
1840
|
const t = Ee(e);
|
|
1841
1841
|
return `${s("report.section.filter.selectAll")} (${t.length}/${e.options.length})`;
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function Cl() {
|
|
1844
1844
|
return s("report.section.filter.search");
|
|
1845
1845
|
}
|
|
1846
1846
|
function et(e) {
|
|
1847
|
-
const t =
|
|
1847
|
+
const t = C(e.globalFilter), o = e.options.length > 0 ? "(0 selected)" : "";
|
|
1848
1848
|
if (e.type === fe.Timestamp && !Be(e.globalFilter)) {
|
|
1849
1849
|
const y = me(e), A = y.length === 2;
|
|
1850
1850
|
if (e.globalFilter.option === B.DateTime)
|
|
@@ -1866,7 +1866,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1866
1866
|
const M = pt({
|
|
1867
1867
|
dimensionOption: e.globalFilter.option,
|
|
1868
1868
|
t: s
|
|
1869
|
-
}), x = new Map(M.map((
|
|
1869
|
+
}), x = new Map(M.map((N) => [String(N.value), N.label])), c = Ee(e).map((N) => x.get(String(N)) ?? String(N)), q = c.map((N) => N.length > 20 ? `${N.slice(0, 20)}…` : N).join(", ");
|
|
1870
1870
|
return c.length ? {
|
|
1871
1871
|
preview: `${t}: ${q}`,
|
|
1872
1872
|
suffix: `(${c.length} selected)`
|
|
@@ -1934,7 +1934,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1934
1934
|
class: "w-full",
|
|
1935
1935
|
label: et(c).preview,
|
|
1936
1936
|
removable: me(c).length === 2,
|
|
1937
|
-
onUpdate: (
|
|
1937
|
+
onUpdate: (N) => xt(c, N),
|
|
1938
1938
|
onChipClosed: () => xt(c, null)
|
|
1939
1939
|
}, null, 8, ["date-range", "label", "removable", "onUpdate", "onChipClosed"])) : c.globalFilter.option === T(B).TimeOfDay && !Be(c.globalFilter) ? (J(), we(hn, {
|
|
1940
1940
|
key: 1,
|
|
@@ -1951,7 +1951,7 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1951
1951
|
class: "w-full",
|
|
1952
1952
|
label: et(c).preview,
|
|
1953
1953
|
removable: me(c).length === 2,
|
|
1954
|
-
onUpdate: (
|
|
1954
|
+
onUpdate: (N) => At(c, N),
|
|
1955
1955
|
onChipClosed: () => At(c, null)
|
|
1956
1956
|
}, null, 8, ["time-range", "label", "removable", "onUpdate", "onChipClosed"])) : (J(), we(G, {
|
|
1957
1957
|
key: 2,
|
|
@@ -1975,10 +1975,10 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1975
1975
|
}, 1032, ["loading", "label"])
|
|
1976
1976
|
])
|
|
1977
1977
|
]),
|
|
1978
|
-
"menu-wrapper": ie(({ maxHeight:
|
|
1978
|
+
"menu-wrapper": ie(({ maxHeight: N, width: ce }) => [
|
|
1979
1979
|
j("div", {
|
|
1980
1980
|
class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
|
|
1981
|
-
style: Al({ maxHeight: `${
|
|
1981
|
+
style: Al({ maxHeight: `${N}px`, width: ce })
|
|
1982
1982
|
}, [
|
|
1983
1983
|
ve(c) ? (J(), pe("div", gn, [
|
|
1984
1984
|
P(o)
|
|
@@ -1989,14 +1989,14 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
1989
1989
|
"onUpdate:modelValue": [(g) => c.search = g, (g) => Fl(c, g)],
|
|
1990
1990
|
type: "text",
|
|
1991
1991
|
"prepend-icon": "search",
|
|
1992
|
-
placeholder:
|
|
1992
|
+
placeholder: Cl(),
|
|
1993
1993
|
class: "border px-2 pb-8 text-sm mb-1 rounded"
|
|
1994
1994
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
1995
1995
|
]),
|
|
1996
1996
|
j("div", wn, [
|
|
1997
1997
|
j("div", Dn, [
|
|
1998
1998
|
P(b, {
|
|
1999
|
-
label:
|
|
1999
|
+
label: Nl(c),
|
|
2000
2000
|
"has-checkbox": !0,
|
|
2001
2001
|
"model-value": Ot(c),
|
|
2002
2002
|
indeterminate: !0,
|
|
@@ -2056,10 +2056,10 @@ const yn = { class: "flex flex-row flex-wrap gap-2" }, Sn = { class: "inline-fle
|
|
|
2056
2056
|
size: "md",
|
|
2057
2057
|
class: ""
|
|
2058
2058
|
}, null, 8, ["name"]),
|
|
2059
|
-
j("span",
|
|
2059
|
+
j("span", Nn, be(T(s)("report.section.filter.advanced")), 1)
|
|
2060
2060
|
], 8, Vn),
|
|
2061
2061
|
P(A),
|
|
2062
|
-
c.showAdvanced ? (J(), pe("div",
|
|
2062
|
+
c.showAdvanced ? (J(), pe("div", Cn, [
|
|
2063
2063
|
j("div", On, [
|
|
2064
2064
|
j("div", kn, [
|
|
2065
2065
|
P(M, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
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-
|
|
3
|
-
import { D as ge } from "./DateRangeSelect-
|
|
4
|
-
import { d as E, u as Q, F as ee, q as te, a as pe, h as ve, g as H, i as he, j as ye, k as we } from "./app-
|
|
2
|
+
import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-I4NO9UOX.js";
|
|
3
|
+
import { D as ge } from "./DateRangeSelect-DpKNUuKx.js";
|
|
4
|
+
import { d as E, u as Q, F as ee, q as te, a as pe, h as ve, g as H, i as he, j as ye, k as we } from "./app-BIYwuRB4.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-CS8NUqdN.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-B1_zlEav.js";
|
|
14
14
|
function Ae({ start: e, end: t }) {
|
|
15
15
|
return `${E(t).format("DD MMM")}, ${E(t).format("YYYY")}`;
|
|
16
16
|
}
|
|
@@ -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 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 { A as Se, v as it, d as Fe, w as Nt, e as Ee, a as Te, x as _e, y as Vt, z as Ft, o as ce, t as Je, B as Qe, E as ze, G as Ze, H as pt, J as Kt, K as Mt, L as Ut, M as Rt, N as Pt, O as ut, b as ft, P as Ot, Q as Lt, n as jt, I as Be, R as Et, S as Bt, T as Yt } from "./app-
|
|
3
|
+
import { A as Se, v as it, d as Fe, w as Nt, e as Ee, a as Te, x as _e, y as Vt, z as Ft, o as ce, t as Je, B as Qe, E as ze, G as Ze, H as pt, J as Kt, K as Mt, L as Ut, M as Rt, N as Pt, O as ut, b as ft, P as Ot, Q as Lt, n as jt, I as Be, R as Et, S as Bt, T as Yt } from "./app-BIYwuRB4.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-BV526HlW.js";
|
|
10
10
|
import { storeToRefs as ot } from "pinia";
|
|
11
|
-
import { D as at } from "./DateRangeSelect-
|
|
11
|
+
import { D as at } from "./DateRangeSelect-DpKNUuKx.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"
|