@feedmepos/mf-report 5.21.29 → 5.21.30-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-CFAv2cOj.js +278 -0
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-QzLGWBvd.js → BaseDialog.vue_vue_type_script_setup_true_lang-BHDUNZTW.js} +2 -2
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CS10GX8d.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DNyvFLmW.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-oPfgV8Ba.js → Default.vue_vue_type_script_setup_true_lang-BngCq1oN.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-B2jdNYHG.js → FilterSelector.vue_vue_type_script_setup_true_lang-couq_dUJ.js} +5 -5
- package/dist/{InsightView-B3zeWLpB.js → InsightView-ICPiE8SX.js} +5 -5
- package/dist/{Integration-DAfyew-m.js → Integration-Xi1LTYf-.js} +28 -28
- package/dist/{Integrations-SXV9M3b-.js → Integrations-BQT5pOBg.js} +3 -3
- package/dist/{Layout-BfhdHhdb.js → Layout-DUxsrloe.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CwzcLrSB.js → MenuTab.vue_vue_type_script_setup_true_lang-BbLrho8e.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-M3kgeSAQ.js → NavigationTab.vue_vue_type_script_setup_true_lang-CW6iYOsZ.js} +4 -4
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DDKbpI_N.js → NoData.vue_vue_type_script_setup_true_lang-9qsPvAZJ.js} +1 -1
- package/dist/{OverviewView-Ds4s9oxp.js → OverviewView-Cfndl9st.js} +5 -5
- package/dist/{Report-CDyfJ8O3.js → Report-BMGDPM1m.js} +4 -4
- package/dist/{ReportEditor-BFF57S9g.js → ReportEditor-pxReQ1bH.js} +6 -6
- package/dist/{ReportView-C_noR8lh.js → ReportView-C-fIIMa3.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BhWCLEfp.js → SelectComponent.vue_vue_type_script_setup_true_lang-BzzBdgnw.js} +1 -1
- package/dist/{Setting-8zch0HnP.js → Setting-BKQ0B3Hk.js} +4 -4
- package/dist/{TileEditor-BeianCEO.js → TileEditor-CQTvQwgo.js} +7 -7
- package/dist/{TransitionFade-B1etHHO2.js → TransitionFade-Bb4GLqqB.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/{vue-i18n-D1iec8Wy.js → vue-i18n-BdbYuMnB.js} +1 -1
- package/package.json +1 -1
- package/dist/App-BLqhPMTN.js +0 -278
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { defineComponent as se, resolveComponent as V, createBlock as ie, openBlock as R, unref as c, isRef as Oe, withCtx as z, createElementVNode as M, createVNode as W, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as A, computed as te, onBeforeMount as Ce, onBeforeUnmount as Ee, createElementBlock as Q, Fragment as ke } from "vue";
|
|
2
|
+
import { detectLocale as N, useCoreStore as j } from "@feedmepos/mf-common";
|
|
3
|
+
import { u as Ae, d as u, a as Ne, b as ne, c as Te, e as Be, f as Fe, s as $e, g as xe } from "./vue-i18n-BdbYuMnB.js";
|
|
4
|
+
import { storeToRefs as L } from "pinia";
|
|
5
|
+
import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BHDUNZTW.js";
|
|
6
|
+
import { u as ze, _ as Qe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CW6iYOsZ.js";
|
|
7
|
+
import { u as ae } from "./message-dialog-UoMWOnil.js";
|
|
8
|
+
import { useRoute as je, useRouter as Ve } from "vue-router";
|
|
9
|
+
const We = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Pe = /* @__PURE__ */ se({
|
|
10
|
+
__name: "Dialog",
|
|
11
|
+
setup(_) {
|
|
12
|
+
const { t: i } = Ae(), l = ae(), { isOpened: d, message: S, title: D } = L(ae());
|
|
13
|
+
return (f, g) => {
|
|
14
|
+
const b = V("FmButton"), T = V("FmDialog");
|
|
15
|
+
return R(), ie(T, {
|
|
16
|
+
modelValue: c(d),
|
|
17
|
+
"onUpdate:modelValue": g[0] || (g[0] = (B) => Oe(d) ? d.value = B : null),
|
|
18
|
+
overlay: "",
|
|
19
|
+
"close-button": !1
|
|
20
|
+
}, {
|
|
21
|
+
"dialog-header": z(() => [
|
|
22
|
+
we(ee(c(D)), 1)
|
|
23
|
+
]),
|
|
24
|
+
default: z(() => [
|
|
25
|
+
M("p", We, ee(c(S)), 1)
|
|
26
|
+
]),
|
|
27
|
+
"dialog-footer": z(() => [
|
|
28
|
+
g[1] || (g[1] = M("div", { class: "grow" }, null, -1)),
|
|
29
|
+
W(b, {
|
|
30
|
+
label: c(i)("report.common.cancel"),
|
|
31
|
+
variant: "tertiary",
|
|
32
|
+
onClick: c(l).dismiss
|
|
33
|
+
}, null, 8, ["label", "onClick"]),
|
|
34
|
+
W(b, {
|
|
35
|
+
label: c(i)("report.common.confirm"),
|
|
36
|
+
onClick: c(l).confirm
|
|
37
|
+
}, null, 8, ["label", "onClick"])
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
}, 8, ["modelValue"]);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}), oe = A(N());
|
|
44
|
+
function Ge() {
|
|
45
|
+
const _ = (i) => {
|
|
46
|
+
switch (oe.value = i, i) {
|
|
47
|
+
case "zh-CN":
|
|
48
|
+
u.locale("zh-cn");
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
u.locale("en");
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return ue(() => {
|
|
56
|
+
_(N());
|
|
57
|
+
}), q(() => N(), _, { deep: !0, immediate: !0 }), {
|
|
58
|
+
currentLocale: oe
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
u.locale(N() === "zh-CN" ? "zh-cn" : "en");
|
|
62
|
+
const Ke = ["src"], He = ["src"], it = /* @__PURE__ */ se({
|
|
63
|
+
__name: "App",
|
|
64
|
+
setup(_) {
|
|
65
|
+
const { businessId: i, token: l, country: d } = L(Ne()), { sessionUser: S, currentBusiness: D, currentCountry: f, registerSidebarComponent: g } = j(), { getRestaurantAndWarehouse: b, getBusinessSetting: T, beginBusinessLoad: B, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: m } = L(re()), { getSettings: le } = Be(), { promptLoader: fe } = Fe(), n = je(), F = Ve(), h = Je(), P = ze(), r = ne(), me = re(), { suppressReportRouteSync: O } = L(me), pe = te(() => `https://portal-v1.feedmedev.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${d.value.toUpperCase()}&menuOption=business-report&token=${l.value}&v2=true&reportV5Button=true`), ge = te(() => `https://report-v4.feedmedev.cc?businessId=${i.value}&country=${d.value}&token=${l.value}&reportV3Button=true`);
|
|
66
|
+
q(
|
|
67
|
+
[() => D.value, () => S.value, () => f.value],
|
|
68
|
+
() => {
|
|
69
|
+
var t, a;
|
|
70
|
+
const e = ((t = D.value) == null ? void 0 : t.id) ?? "";
|
|
71
|
+
if (D.value && S.value && f.value) {
|
|
72
|
+
$e(f.value), i.value !== e && (i.value = e);
|
|
73
|
+
let s = !1;
|
|
74
|
+
d.value !== f.value && (s = !0), l.value = ((a = S.value) == null ? void 0 : a.token) ?? "", d.value = f.value ?? "", (n.query.businessId !== i.value || s) && F.replace({
|
|
75
|
+
name: n.name,
|
|
76
|
+
params: n.params,
|
|
77
|
+
query: {
|
|
78
|
+
...n.query,
|
|
79
|
+
businessId: i.value,
|
|
80
|
+
country: f.value,
|
|
81
|
+
isAllLocation: "true",
|
|
82
|
+
locationIds: void 0
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{ immediate: !0 }
|
|
88
|
+
);
|
|
89
|
+
function G(e) {
|
|
90
|
+
if (typeof e.data == "string")
|
|
91
|
+
try {
|
|
92
|
+
const t = JSON.parse(e.data);
|
|
93
|
+
(t == null ? void 0 : t.token) !== "" && (t == null ? void 0 : t.token) !== void 0 && (l.value = t.token);
|
|
94
|
+
} catch (t) {
|
|
95
|
+
console.error(t);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function K(e) {
|
|
99
|
+
if (typeof e.data == "string")
|
|
100
|
+
try {
|
|
101
|
+
const t = JSON.parse(e.data);
|
|
102
|
+
(t == null ? void 0 : t.v5) === !0 ? m.value = $.value : (t == null ? void 0 : t.v3) === !0 && (m.value = "v3");
|
|
103
|
+
} catch (t) {
|
|
104
|
+
console.error(t);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
q(m, () => {
|
|
108
|
+
["v3", "v4"].includes(m.value) ? j().hideSidebarToggle(!0) : j().hideSidebarToggle(!1);
|
|
109
|
+
}), Ce(() => {
|
|
110
|
+
g(Qe);
|
|
111
|
+
}), ue(() => {
|
|
112
|
+
console.log("5.21.30-beta.0", !0), window.addEventListener("message", G), window.addEventListener("message", K);
|
|
113
|
+
}), Ee(() => {
|
|
114
|
+
window.removeEventListener("message", G), window.removeEventListener("message", K), h.$dispose(), P.$dispose();
|
|
115
|
+
});
|
|
116
|
+
const { getReports: ye, getOverviewReport: ve, getReportConfig: H, currentReportId: X } = h, { currentReportId: Se, reports: De } = L(h), { getSchema: he } = Ue(), { fetchSchedules: Ie } = P, { init: Re } = xe(), $ = A("v5"), w = A(!1), x = A(!0);
|
|
117
|
+
function qe(e) {
|
|
118
|
+
try {
|
|
119
|
+
return decodeURIComponent(e);
|
|
120
|
+
} catch {
|
|
121
|
+
return e;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function C(e) {
|
|
125
|
+
if (typeof e != "string" || e.length === 0) return;
|
|
126
|
+
const t = e.includes("%") ? [e, qe(e)] : [e];
|
|
127
|
+
for (const a of t)
|
|
128
|
+
try {
|
|
129
|
+
const s = JSON.parse(a);
|
|
130
|
+
if (typeof s == "string")
|
|
131
|
+
try {
|
|
132
|
+
return JSON.parse(s);
|
|
133
|
+
} catch {
|
|
134
|
+
return s;
|
|
135
|
+
}
|
|
136
|
+
return s;
|
|
137
|
+
} catch {
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function Y(e) {
|
|
141
|
+
if (!e || typeof e != "object") return !1;
|
|
142
|
+
const t = e;
|
|
143
|
+
return typeof t.hour == "number" && typeof t.minute == "number";
|
|
144
|
+
}
|
|
145
|
+
function Le() {
|
|
146
|
+
const e = n.query.startDate ? u(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? u(n.query.endDate).endOf("day").toISOString() : void 0, a = typeof n.query.timeStart == "string", s = typeof n.query.timeEnd == "string", p = C(n.query.timeStart), I = C(n.query.timeEnd), E = Y(p) ? p : null, k = Y(I) ? I : null, J = n.query.compareStartDate ? u(n.query.compareStartDate).startOf("day").toISOString() : void 0, U = n.query.compareEndDate ? u(n.query.compareEndDate).endOf("day").toISOString() : void 0, Z = n.query.isAllLocation === "true";
|
|
147
|
+
let y = [];
|
|
148
|
+
if (Z)
|
|
149
|
+
y = r.selectedLocationIds;
|
|
150
|
+
else {
|
|
151
|
+
const o = C(n.query.locationIds);
|
|
152
|
+
y = Array.isArray(o) ? o : [];
|
|
153
|
+
}
|
|
154
|
+
let v = n.query.reportId || X;
|
|
155
|
+
if (De.value.find((o) => o.id === v) || (v = X), v && v !== h.currentReportId && h.updateCurrentReportId(v), e || t) {
|
|
156
|
+
const o = r.dateRange;
|
|
157
|
+
(o.startDate !== e || o.endDate !== t) && r.setDateRange({ startDate: e, endDate: t });
|
|
158
|
+
}
|
|
159
|
+
if (a || s) {
|
|
160
|
+
const o = r.timeRange;
|
|
161
|
+
(o.start !== E || o.end !== k) && r.setTimeRange({ start: E, end: k });
|
|
162
|
+
}
|
|
163
|
+
if (J || U) {
|
|
164
|
+
const o = r.compareDateRange;
|
|
165
|
+
(o.startDate !== J || o.endDate !== U) && r.setCompareDateRange({
|
|
166
|
+
startDate: J,
|
|
167
|
+
endDate: U
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
if (!Z && Array.isArray(y)) {
|
|
171
|
+
const o = r.selectedLocationIds;
|
|
172
|
+
o.length === y.length && o.every((_e, be) => _e === y[be]) || r.setSelectedLocationIds(y);
|
|
173
|
+
}
|
|
174
|
+
return {
|
|
175
|
+
// TODO: this returned value can used for getBusinessSetting
|
|
176
|
+
reportId: v,
|
|
177
|
+
startDate: n.query.startDate,
|
|
178
|
+
endDate: n.query.endDate,
|
|
179
|
+
timeStart: n.query.timeStart,
|
|
180
|
+
timeEnd: n.query.timeEnd,
|
|
181
|
+
compareStartDate: n.query.compareStartDate,
|
|
182
|
+
compareEndDate: n.query.compareEndDate,
|
|
183
|
+
locationIds: typeof n.query.locationIds == "string" ? n.query.locationIds : void 0,
|
|
184
|
+
isAllLocation: n.query.isAllLocation
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
return q(
|
|
188
|
+
() => i.value,
|
|
189
|
+
async (e) => {
|
|
190
|
+
e !== "" && (w.value = !1, B(e), x.value || (r.setSelectedLocationIds([]), F.replace({
|
|
191
|
+
name: n.name,
|
|
192
|
+
params: n.params,
|
|
193
|
+
query: {
|
|
194
|
+
...n.query,
|
|
195
|
+
locationIds: void 0,
|
|
196
|
+
isAllLocation: "true"
|
|
197
|
+
}
|
|
198
|
+
})), O.value !== void 0 && (O.value = !0), await fe(async () => {
|
|
199
|
+
await Re({
|
|
200
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
201
|
+
url: "https://flag.feedme.farm/api/v1/",
|
|
202
|
+
enableAnalytics: !1,
|
|
203
|
+
cacheFlags: !1
|
|
204
|
+
});
|
|
205
|
+
const t = await H();
|
|
206
|
+
$.value = t.version, m.value = $.value, await Promise.all([
|
|
207
|
+
de(),
|
|
208
|
+
H(),
|
|
209
|
+
ve(),
|
|
210
|
+
ye(),
|
|
211
|
+
he(),
|
|
212
|
+
Ie(),
|
|
213
|
+
b(
|
|
214
|
+
(() => {
|
|
215
|
+
const a = C(n.query.locationIds);
|
|
216
|
+
return Array.isArray(a) ? a : void 0;
|
|
217
|
+
})()
|
|
218
|
+
),
|
|
219
|
+
le()
|
|
220
|
+
]), await T(), Le(), ce(e);
|
|
221
|
+
}), w.value = !0, x.value && (x.value = !1));
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
immediate: !0
|
|
225
|
+
}
|
|
226
|
+
), q(
|
|
227
|
+
() => (w.value, {
|
|
228
|
+
reportId: Se.value,
|
|
229
|
+
selectedLocationIds: r.selectedLocationIds,
|
|
230
|
+
dateRange: r.dateRange,
|
|
231
|
+
timeRange: r.timeRange,
|
|
232
|
+
compareDateRange: r.compareDateRange
|
|
233
|
+
}),
|
|
234
|
+
(e) => {
|
|
235
|
+
if (!w.value || !e.reportId) return;
|
|
236
|
+
if (O.value) {
|
|
237
|
+
O.value = !1;
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
const t = e.selectedLocationIds, a = e.dateRange, s = e.timeRange, p = e.compareDateRange, I = {
|
|
241
|
+
...n.query,
|
|
242
|
+
reportId: e.reportId,
|
|
243
|
+
startDate: a.startDate ? u(a.startDate).startOf("day").toISOString() : void 0,
|
|
244
|
+
endDate: a.endDate ? u(a.endDate).endOf("day").toISOString() : void 0,
|
|
245
|
+
compareStartDate: p.startDate ? u(p.startDate).startOf("day").toISOString() : void 0,
|
|
246
|
+
compareEndDate: p.endDate ? u(p.endDate).endOf("day").toISOString() : void 0,
|
|
247
|
+
timeStart: s.start ? JSON.stringify(s.start) : void 0,
|
|
248
|
+
timeEnd: s.end ? JSON.stringify(s.end) : void 0,
|
|
249
|
+
locationIds: t.length === r.locations.length ? void 0 : t.length > 0 ? JSON.stringify(t) : void 0,
|
|
250
|
+
isAllLocation: String(t.length === r.locations.length)
|
|
251
|
+
}, E = JSON.stringify(n.query), k = JSON.stringify(I);
|
|
252
|
+
E !== k && F.replace({
|
|
253
|
+
name: n.name,
|
|
254
|
+
params: n.params,
|
|
255
|
+
query: I
|
|
256
|
+
});
|
|
257
|
+
},
|
|
258
|
+
{ deep: !0 }
|
|
259
|
+
), Ge(), (e, t) => {
|
|
260
|
+
const a = V("router-view");
|
|
261
|
+
return R(), Q(ke, null, [
|
|
262
|
+
W(Pe),
|
|
263
|
+
c(m) === "v3" ? (R(), Q("iframe", {
|
|
264
|
+
key: 0,
|
|
265
|
+
class: "bg-white h-full w-full",
|
|
266
|
+
src: pe.value
|
|
267
|
+
}, null, 8, Ke)) : c(m) === "v4" ? (R(), Q("iframe", {
|
|
268
|
+
key: 1,
|
|
269
|
+
class: "bg-white h-full w-full",
|
|
270
|
+
src: ge.value
|
|
271
|
+
}, null, 8, He)) : (R(), ie(a, { key: 2 }))
|
|
272
|
+
], 64);
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
export {
|
|
277
|
+
it as default
|
|
278
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as m0, F as y0, w as g0, b as k0, c as Ce, v as be, e as Fe, d as h0, r as K0, m as Ie, u as Me } from "./vue-i18n-
|
|
1
|
+
import { a as m0, F as y0, w as g0, b as k0, c as Ce, v as be, e as Fe, d as h0, r as K0, m as Ie, u as Me } from "./vue-i18n-BdbYuMnB.js";
|
|
2
2
|
import { storeToRefs as p0, defineStore as B0 } from "pinia";
|
|
3
3
|
import { ref as s0, computed as C0, watch as U0, h as Re, defineComponent as _e, mergeModels as N0, useModel as z0, resolveComponent as A0, createElementBlock as V0, openBlock as P0, createVNode as S0, withCtx as b0, createElementVNode as E0, createCommentVNode as xe, Fragment as re, renderList as Le, createBlock as De, createTextVNode as de, withDirectives as Oe, toDisplayString as T0, unref as $0, vShow as we, renderSlot as ve } from "vue";
|
|
4
4
|
import { useSnackbar as ce, components as Pe } from "@feedmepos/ui-library";
|
|
5
5
|
import { useRouter as Be } from "vue-router";
|
|
6
6
|
import { detectLocale as F0 } from "@feedmepos/mf-common";
|
|
7
|
-
import { c as Je, a as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { c as Je, a as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DNyvFLmW.js";
|
|
8
8
|
function pe(T) {
|
|
9
9
|
throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as E, resolveComponent as S, createBlock as y, openBlock as D, withCtx as I, createCommentVNode as M, createElementVNode as R, toDisplayString as A, renderSlot as U, mergeModels as C, useModel as b, ref as k, watch as O, createElementBlock as B, unref as f, createVNode as z } from "vue";
|
|
2
|
-
import { d as r, m as W, t as q, u as G, b as H, U as K, C as L } from "./vue-i18n-
|
|
2
|
+
import { d as r, m as W, t as q, u as G, b as H, U as K, C as L } from "./vue-i18n-BdbYuMnB.js";
|
|
3
3
|
import { detectLocale as F } from "@feedmepos/mf-common";
|
|
4
4
|
import { storeToRefs as J } from "pinia";
|
|
5
5
|
var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, 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-CW6iYOsZ.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
|
-
import { u as q, f as w } from "./vue-i18n-
|
|
5
|
+
import { u as q, f as w } from "./vue-i18n-BdbYuMnB.js";
|
|
6
6
|
import { useRoute as B } from "vue-router";
|
|
7
7
|
const $ = {
|
|
8
8
|
key: 1,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as T, defineComponent as Te, mergeModels as We, useModel as ze, ref as v, onMounted as Ie, nextTick as Se, watch as me, resolveComponent as B, createElementBlock as ne, openBlock as M, Fragment as xe, renderSlot as Ne, createVNode as q, normalizeStyle as Ee, unref as s, createElementVNode as X, toDisplayString as De, withCtx as ie, createBlock as de, createCommentVNode as ke, normalizeClass as Ze, h as rt, renderList as ut, toRaw as xl, markRaw as Sl, createTextVNode as yt, onUnmounted as Ut, resolveDynamicComponent as Cl, withDirectives as kl, vShow as Tl, withModifiers as ht } from "vue";
|
|
2
|
-
import { W as A, e as lt, f as _l, S as qe, v as it, g as Fl, h as ft, i as Yt, q as Gt, R as Ke, j as Ll, D as Re, c as ge, C as Ce, a as Rl, b as Dl, _ as Vl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as at, b as tt, a as Ft, d as Je, i as $l } from "./vue-i18n-
|
|
4
|
-
import { d as bt, _ as El, a as zl, b as Al, c as Ml } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { W as A, e as lt, f as _l, S as qe, v as it, g as Fl, h as ft, i as Yt, q as Gt, R as Ke, j as Ll, D as Re, c as ge, C as Ce, a as Rl, b as Dl, _ as Vl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BHDUNZTW.js";
|
|
3
|
+
import { u as at, b as tt, a as Ft, d as Je, i as $l } from "./vue-i18n-BdbYuMnB.js";
|
|
4
|
+
import { d as bt, _ as El, a as zl, b as Al, c as Ml } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DNyvFLmW.js";
|
|
5
5
|
import { storeToRefs as Ve, defineStore as Xt } from "pinia";
|
|
6
6
|
import { useBreakpoints as jt, useSnackbar as Lt, components as Wl } from "@feedmepos/ui-library";
|
|
7
|
-
import { _ as Il } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as Il } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BzzBdgnw.js";
|
|
8
8
|
import { r as Ue } from "./i18n-7InkCBCc.js";
|
|
9
|
-
import { _ as wt } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as wt } from "./NoData.vue_vue_type_script_setup_true_lang-9qsPvAZJ.js";
|
|
10
10
|
var xt = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(xt || {}), Be = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Be || {}), St = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(St || {}), Ct = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Ct || {}), kt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(kt || {}), Tt = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Tt || {}), _t = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(_t || {});
|
|
11
11
|
A.Circular, A.Table, A.BarChart, A.LineChart, A.StackBarChart, A.StackLineChart, A.Scorecard, A.Spacer;
|
|
12
12
|
const Nl = [
|
|
@@ -2,13 +2,13 @@ var Zo = Object.defineProperty;
|
|
|
2
2
|
var Jo = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var k = (i, t, e) => Jo(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Qo, createElementBlock as U, openBlock as I, createElementVNode as R, renderSlot as Un, toDisplayString as lt, resolveDirective as Xn, createCommentVNode as St, Fragment as Ii, renderList as zi, createBlock as Ht, withDirectives as Ge, resolveDynamicComponent as es, unref as G, withCtx as Yt, createVNode as et, normalizeClass as Ze, resolveComponent as Me, useModel as ta, createTextVNode as ea, isRef as ki, nextTick as ia } from "vue";
|
|
5
|
-
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-BngCq1oN.js";
|
|
6
|
+
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DNyvFLmW.js";
|
|
7
|
+
import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-BdbYuMnB.js";
|
|
8
8
|
import { storeToRefs as Jn } from "pinia";
|
|
9
9
|
import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
|
|
10
|
-
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-9qsPvAZJ.js";
|
|
11
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CW6iYOsZ.js";
|
|
12
12
|
import { useCoreStore as ha } from "@feedmepos/mf-common";
|
|
13
13
|
function da({ start: i, end: t }) {
|
|
14
14
|
return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as J, mergeModels as
|
|
1
|
+
import { defineComponent as J, mergeModels as Se, useModel as te, computed as q, resolveComponent as A, createElementBlock as U, openBlock as _, createElementVNode as t, createCommentVNode as L, normalizeClass as Ie, Fragment as ke, createBlock as j, withCtx as xe, toDisplayString as C, renderList as De, createVNode as l, unref as d, h as k, normalizeStyle as tt, createTextVNode as ot, ref as z, onUnmounted as Re, watch as Ce, isRef as Te, resolveDynamicComponent as Fe, mergeProps as Qe, onMounted as Ge } from "vue";
|
|
2
2
|
import { useRouter as be, useRoute as at } from "vue-router";
|
|
3
|
-
import { u as oe, I as he, d as
|
|
3
|
+
import { u as oe, I as he, d as Ae, z as lt, A as nt, e as Ve, f as Pe, b as we, B as ve, E as st, o as rt, y as Me, G as je, H as Ke, J as Le, K as ze, L as it, M as dt, N as mt, O as qe, c as Ze, P as pt, Q as ut, R as ct, S as ft, T as gt } from "./vue-i18n-BdbYuMnB.js";
|
|
4
4
|
import { u as Oe } from "./message-dialog-UoMWOnil.js";
|
|
5
5
|
import { useSnackbar as _e } from "@feedmepos/ui-library";
|
|
6
6
|
import { storeToRefs as Ee } from "pinia";
|
|
7
|
-
import { _ as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DNyvFLmW.js";
|
|
8
8
|
const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, yt = { class: "w-[100%]" }, xt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, bt = { class: "w-[100%] flex flex-row gap-[4px]" }, wt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, _t = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, ht = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "w-[24px] flex items-center"
|
|
11
11
|
}, B = /* @__PURE__ */ J({
|
|
12
12
|
__name: "MappingField",
|
|
13
|
-
props: /* @__PURE__ */
|
|
13
|
+
props: /* @__PURE__ */ Se({
|
|
14
14
|
removable: {
|
|
15
15
|
type: Boolean,
|
|
16
16
|
default: !1
|
|
@@ -35,7 +35,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
35
35
|
modelValue: { required: !0 },
|
|
36
36
|
modelModifiers: {}
|
|
37
37
|
}),
|
|
38
|
-
emits: /* @__PURE__ */
|
|
38
|
+
emits: /* @__PURE__ */ Se(["remove"], ["update:modelValue"]),
|
|
39
39
|
setup(g, { emit: a }) {
|
|
40
40
|
const e = te(g, "modelValue"), i = g, x = q(
|
|
41
41
|
() => Object.keys(i.options).map((F) => {
|
|
@@ -162,7 +162,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
162
162
|
class: "flex flex-col w-[100%] justify-start"
|
|
163
163
|
}, It = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, Ut = { class: "w-[100%]" }, Rt = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Pt = { class: "flex flex-col w-[100%] justify-between" }, Mt = { class: "text-nowrap w-[50%] overflow-hidden text-ellipsis font-semibold" }, jt = { class: "w-[100%]" }, Ue = /* @__PURE__ */ J({
|
|
164
164
|
__name: "UploadSection",
|
|
165
|
-
props: /* @__PURE__ */
|
|
165
|
+
props: /* @__PURE__ */ Se({
|
|
166
166
|
label: {
|
|
167
167
|
type: String,
|
|
168
168
|
default: "upload"
|
|
@@ -210,7 +210,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
210
210
|
{
|
|
211
211
|
accessorKey: "createdAt",
|
|
212
212
|
header: () => k("p", { class: "min-w-[70px] text-nowrap text-ellipsis" }, "Logged At"),
|
|
213
|
-
cell: (b) =>
|
|
213
|
+
cell: (b) => Ae(b.getValue()).format("YYYY-MM-DD HH:mm:ss")
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
// use an existing key but render full cron info from the row
|
|
@@ -223,19 +223,19 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
223
223
|
const V = [
|
|
224
224
|
{
|
|
225
225
|
label: "Last Upload",
|
|
226
|
-
value: p != null && p.lastUploadDate ?
|
|
226
|
+
value: p != null && p.lastUploadDate ? Ae(p.lastUploadDate).format("YYYY-MM-DD HH:mm:ss") : "-"
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
label: "Heartbeat",
|
|
230
|
-
value: p != null && p.restaurantHeartBeat ?
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
label: "Start",
|
|
234
|
-
value: p != null && p.startDate ? Se(p.startDate).format("YYYY-MM-DD HH:mm:ss") : "-"
|
|
230
|
+
value: p != null && p.restaurantHeartBeat ? Ae(p.restaurantHeartBeat).format("YYYY-MM-DD HH:mm:ss") : "-"
|
|
235
231
|
},
|
|
232
|
+
// {
|
|
233
|
+
// label: "Start",
|
|
234
|
+
// value: row?.startDate ? dayjs(row.startDate).format("YYYY-MM-DD HH:mm:ss") : "-"
|
|
235
|
+
// },
|
|
236
236
|
{
|
|
237
237
|
label: "Failed At",
|
|
238
|
-
value: p != null && p.processingDate ?
|
|
238
|
+
value: p != null && p.processingDate ? Ae(p.processingDate).format("YYYY-MM-DD HH:mm:ss") : "-"
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
label: "Pending Days",
|
|
@@ -299,7 +299,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
299
299
|
t("div", kt, [
|
|
300
300
|
t("div", Ct, C(d(a)("report.integration.auto", { label: g.label })), 1),
|
|
301
301
|
t("div", $t, [
|
|
302
|
-
g.label == "upload" ? (_(), U("div", St, C(d(a)("report.integration.lastUploadDate")) + ": " + C(g.lastUploadDate ? d(
|
|
302
|
+
g.label == "upload" ? (_(), U("div", St, C(d(a)("report.integration.lastUploadDate")) + ": " + C(g.lastUploadDate ? d(Ae)(g.lastUploadDate).format("MMMM D, YYYY h:mm A") : d(a)("report.integration.noData.title")), 1)) : L("", !0),
|
|
303
303
|
l(u, {
|
|
304
304
|
header: "Cron Job Error Log",
|
|
305
305
|
"dismiss-away": "",
|
|
@@ -377,7 +377,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
377
377
|
t("div", jt, [
|
|
378
378
|
l(f, {
|
|
379
379
|
class: "gap-[0px]",
|
|
380
|
-
"model-value": d(
|
|
380
|
+
"model-value": d(Ae)().hour(((v = e.value.triggerTime) == null ? void 0 : v.hour) ?? 0).minute(((h = e.value.triggerTime) == null ? void 0 : h.minute) ?? 0).format("HH:mm"),
|
|
381
381
|
"onUpdate:modelValue": p[3] || (p[3] = (r) => {
|
|
382
382
|
r && (e.value.triggerTime.hour = Number(r.split(":")[0]), e.value.triggerTime.minute = Number(r.split(":")[1]));
|
|
383
383
|
})
|
|
@@ -408,7 +408,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
408
408
|
class: "w-[24px] flex items-center"
|
|
409
409
|
}, et = /* @__PURE__ */ J({
|
|
410
410
|
__name: "MappingDropdown",
|
|
411
|
-
props: /* @__PURE__ */
|
|
411
|
+
props: /* @__PURE__ */ Se({
|
|
412
412
|
removable: {
|
|
413
413
|
type: Boolean,
|
|
414
414
|
default: !1
|
|
@@ -433,7 +433,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
433
433
|
modelValue: { required: !0 },
|
|
434
434
|
modelModifiers: {}
|
|
435
435
|
}),
|
|
436
|
-
emits: /* @__PURE__ */
|
|
436
|
+
emits: /* @__PURE__ */ Se(["remove"], ["update:modelValue"]),
|
|
437
437
|
setup(g, { emit: a }) {
|
|
438
438
|
const e = te(g, "modelValue"), i = g, x = q(
|
|
439
439
|
() => Object.keys(i.options).map((b) => {
|
|
@@ -590,7 +590,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
590
590
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
591
591
|
}, ko = /* @__PURE__ */ J({
|
|
592
592
|
__name: "Setting",
|
|
593
|
-
props: /* @__PURE__ */
|
|
593
|
+
props: /* @__PURE__ */ Se({
|
|
594
594
|
tenantOptions: {
|
|
595
595
|
type: Object,
|
|
596
596
|
required: !0
|
|
@@ -1421,7 +1421,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1421
1421
|
class: "flex flex-col h-full"
|
|
1422
1422
|
}, Uo = { class: "flex flex-col gap-16 pb-[24px]" }, Ro = { class: "flex flex-row justify-between items-center gap-2" }, Po = { class: "fm-typo-en-title-sm-800" }, Mo = { class: "flex flex-row gap-2 items-center" }, jo = { class: "relative group cursor-pointer" }, Lo = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Oo = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Eo = { class: "w-[90%] flex flex-col gap-24" }, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Yo = { class: "flex flex-col justify-between" }, qo = { class: "w-[25%] font-semibold" }, Ho = { class: "flex-grow" }, zo = { class: "flex flex-col justify-between" }, Qo = { class: "w-[25%] font-semibold" }, Go = { class: "flex-grow" }, Xo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm-800" }, Jo = { class: "flex flex-col max-w-[100%]" }, Zo = { class: "w-[25%] font-semibold" }, ea = { class: "flex-grow" }, ta = { class: "flex flex-col max-w-[100%]" }, oa = { class: "w-[25%] font-semibold" }, aa = { class: "flex flex-col max-w-[100%]" }, la = { class: "w-[25%] font-semibold" }, na = { class: "flex flex-col max-w-[100%]" }, sa = { class: "flex flex-col gap-16" }, ra = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ia = { class: "flex flex-col gap-16 pt-3 pb-3" }, da = { class: "flex flex-row items-center gap-5" }, ma = { class: "fm-typo-en-title-sm-800" }, pa = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ua = { class: "flex flex-row items-center justify-between gap-x-16" }, ca = { class: "fm-typo-en-title-sm-800" }, fa = { class: "flex flex-row items-center justify-between gap-x-16" }, ga = { class: "fm-typo-en-title-sm-800" }, va = { class: "flex flex-row items-center justify-between gap-x-16" }, ya = { class: "fm-typo-en-title-sm-800" }, xa = { class: "flex flex-row items-center justify-between gap-x-16" }, ba = { class: "fm-typo-en-title-sm-800" }, wa = /* @__PURE__ */ J({
|
|
1423
1423
|
__name: "Setting",
|
|
1424
|
-
props: /* @__PURE__ */
|
|
1424
|
+
props: /* @__PURE__ */ Se({
|
|
1425
1425
|
errorLogs: {}
|
|
1426
1426
|
}, {
|
|
1427
1427
|
modelValue: { required: !0 },
|
|
@@ -2130,7 +2130,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2130
2130
|
class: "flex flex-col h-full"
|
|
2131
2131
|
}, Ka = { class: "flex flex-col gap-16 pb-[24px]" }, Ta = { class: "flex flex-row justify-between items-center gap-2" }, Fa = { class: "flex flex-row gap-2 items-center" }, Na = { class: "relative group cursor-pointer" }, Ia = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Ua = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Ra = { class: "w-[90%] flex flex-col gap-24" }, Pa = { class: "flex flex-col gap-16" }, Ma = { class: "fm-typo-en-title-sm-800" }, ja = { class: "flex flex-col max-w-[100%]" }, La = { class: "w-[25%] font-semibold" }, Oa = { class: "flex-grow" }, Ea = { class: "flex flex-col max-w-[100%]" }, Ba = { class: "w-[25%] font-semibold" }, Ya = { class: "flex flex-col max-w-[100%]" }, qa = { class: "w-[25%] font-semibold" }, Ha = { class: "flex flex-col gap-16" }, za = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Qa = { class: "flex flex-col gap-16 pt-3 pb-3" }, Ga = { class: "flex flex-row items-center gap-5" }, Xa = { class: "fm-typo-en-title-sm-800" }, Wa = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ja = { class: "flex flex-row items-center justify-between gap-x-16" }, Za = { class: "fm-typo-en-title-sm-800" }, el = { class: "flex flex-row items-center justify-between gap-x-16" }, tl = { class: "fm-typo-en-title-sm-800" }, ol = { class: "flex flex-row items-center justify-between gap-x-16" }, al = { class: "fm-typo-en-title-sm-800" }, ll = { class: "flex flex-row items-center justify-between gap-x-16" }, nl = { class: "fm-typo-en-title-sm-800" }, sl = /* @__PURE__ */ J({
|
|
2132
2132
|
__name: "Setting",
|
|
2133
|
-
props: /* @__PURE__ */
|
|
2133
|
+
props: /* @__PURE__ */ Se({
|
|
2134
2134
|
errorLogs: {}
|
|
2135
2135
|
}, {
|
|
2136
2136
|
modelValue: { required: !0 },
|
|
@@ -3533,7 +3533,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3533
3533
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
3534
3534
|
}, as = /* @__PURE__ */ J({
|
|
3535
3535
|
__name: "Setting",
|
|
3536
|
-
props: /* @__PURE__ */
|
|
3536
|
+
props: /* @__PURE__ */ Se({
|
|
3537
3537
|
retrievedMethods: {
|
|
3538
3538
|
type: Object,
|
|
3539
3539
|
required: !0
|
|
@@ -4332,7 +4332,7 @@ const rs = [
|
|
|
4332
4332
|
}
|
|
4333
4333
|
}), cs = { class: "h-full relative flex flex-col" }, fs = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, gs = /* @__PURE__ */ J({
|
|
4334
4334
|
__name: "Biztory",
|
|
4335
|
-
props: /* @__PURE__ */
|
|
4335
|
+
props: /* @__PURE__ */ Se({
|
|
4336
4336
|
errorLogs: {}
|
|
4337
4337
|
}, {
|
|
4338
4338
|
modelValue: { required: !0 },
|
|
@@ -4752,7 +4752,7 @@ const rs = [
|
|
|
4752
4752
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
4753
4753
|
}, Dr = { class: "flex flex-col gap-16" }, Kr = { class: "fm-typo-en-title-sm-800" }, Tr = { class: "flex flex-row items-center w-[100%] justify-start" }, Fr = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Nr = { class: "flex flex-row items-center w-[100%] justify-start" }, Ir = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Ur = { class: "flex flex-row items-center w-[100%] justify-start" }, Rr = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Pr = { class: "flex flex-col gap-16 pt-3 pb-3" }, Mr = { class: "flex flex-row items-center gap-5" }, jr = { class: "fm-typo-en-title-sm-800" }, Lr = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Or = { class: "flex flex-row items-center justify-between gap-x-16" }, Er = { class: "fm-typo-en-title-sm-800" }, Br = { class: "flex flex-row items-center justify-between gap-x-16" }, Yr = { class: "fm-typo-en-title-sm-800" }, qr = { class: "flex flex-row items-center justify-between gap-x-16" }, Hr = { class: "fm-typo-en-title-sm-800" }, zr = { class: "flex flex-row items-center justify-between gap-x-16" }, Qr = { class: "fm-typo-en-title-sm-800" }, Gr = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Xr = /* @__PURE__ */ J({
|
|
4754
4754
|
__name: "Setting",
|
|
4755
|
-
props: /* @__PURE__ */
|
|
4755
|
+
props: /* @__PURE__ */ Se({
|
|
4756
4756
|
retrievedDebtors: {
|
|
4757
4757
|
type: Object,
|
|
4758
4758
|
required: !0
|
|
@@ -5960,7 +5960,7 @@ const Jr = [
|
|
|
5960
5960
|
}), i = q(() => e.value.invoices.reduce((o, s) => {
|
|
5961
5961
|
for (const n of s._items)
|
|
5962
5962
|
o.push({
|
|
5963
|
-
rDate:
|
|
5963
|
+
rDate: Ae(s.rDate).format("D-MMM-YY"),
|
|
5964
5964
|
rNo: s.rNo,
|
|
5965
5965
|
debtorCode: s.debtorCode,
|
|
5966
5966
|
debtorName: s.debtorName,
|
|
@@ -6011,7 +6011,7 @@ const Jr = [
|
|
|
6011
6011
|
}, [])), T = q(() => e.value.creditNotes.reduce((o, s) => {
|
|
6012
6012
|
for (const n of s._items)
|
|
6013
6013
|
o.push({
|
|
6014
|
-
rDate:
|
|
6014
|
+
rDate: Ae(s.rDate).format("D-MMM-YY"),
|
|
6015
6015
|
rNo: s.rNo,
|
|
6016
6016
|
debtorCode: s.debtorCode,
|
|
6017
6017
|
debtorName: s.debtorName,
|
|
@@ -6035,7 +6035,7 @@ const Jr = [
|
|
|
6035
6035
|
}, [])), K = q(() => e.value.purchaseOrders.reduce((o, s) => {
|
|
6036
6036
|
for (const n of s._skus)
|
|
6037
6037
|
o.push({
|
|
6038
|
-
_date:
|
|
6038
|
+
_date: Ae(s._date).format("D-MMM-YY"),
|
|
6039
6039
|
_no: s._no,
|
|
6040
6040
|
code: n.code,
|
|
6041
6041
|
particular: n.particular,
|
|
@@ -6048,7 +6048,7 @@ const Jr = [
|
|
|
6048
6048
|
o.push({
|
|
6049
6049
|
poNo: s.poNo,
|
|
6050
6050
|
rNo: s.rNo,
|
|
6051
|
-
rDate:
|
|
6051
|
+
rDate: Ae(s.rDate).format("D-MMM-YY"),
|
|
6052
6052
|
debtorCode: s.debtorCode,
|
|
6053
6053
|
debtorName: s.debtorName,
|
|
6054
6054
|
salesType: s.salesType,
|