@feedmepos/mf-report 5.27.54 → 5.28.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.
Files changed (37) hide show
  1. package/dist/{App-C6xpf-Q0.js → App-D_Cnt2_w.js} +69 -68
  2. package/dist/DateRangeSelect-B6QocR7V.js +437 -0
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-BwPZXC_d.js → Default.vue_vue_type_script_setup_true_lang-CjkYcdoD.js} +12 -11
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BpgXiPBY.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DYxl_gjE.js} +182 -181
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CVShUWJC.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-5p7KJx1m.js} +5090 -5716
  6. package/dist/{InsightView-BYW66Wrv.js → InsightView-oBqB-x6Y.js} +17 -15
  7. package/dist/{Integration-DQPJBE-0.js → Integration-D83_ENwH.js} +27 -25
  8. package/dist/{Integrations-BW4H9lUS.js → Integrations-Dd-jSloN.js} +8 -7
  9. package/dist/{Layout-CMlh08aB.js → Layout-PVmjJ6ga.js} +1 -1
  10. package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-PQKRv81p.js +8055 -0
  11. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BUvD1_b0.js → MenuTab.vue_vue_type_script_setup_true_lang-Cnwj0lIB.js} +11 -10
  12. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-TpeQ_Wm1.js → NavigationTab.vue_vue_type_script_setup_true_lang-B2IXNXS_.js} +9636 -17677
  13. package/dist/{OverviewView-BtGpQkBY.js → OverviewView-CAL_PAkw.js} +5 -5
  14. package/dist/{Report-CJ9myNLK.js → Report-C4tRHS9j.js} +27 -25
  15. package/dist/ReportCanvasView-BB90EGgP.js +448 -0
  16. package/dist/{ReportEditor-DtnTBbY1.js → ReportEditor-BHlH0__b.js} +30 -28
  17. package/dist/{ReportView-Ci8nFyI9.js → ReportView-C37-Wgwc.js} +14 -13
  18. package/dist/ReportViewRoute-C1haW0-x.js +18 -0
  19. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js → SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js} +1 -1
  20. package/dist/{Setting-QSiMSAQk.js → Setting-c66iFXKP.js} +5 -5
  21. package/dist/{Template-CAPlAQO9.js → Template-B05_6Klr.js} +10 -9
  22. package/dist/{TileEditor-e7ZCWMU9.js → TileEditor-C-HBoB-E.js} +19 -17
  23. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-B4g3YPzM.js → TilePageStack.vue_vue_type_script_setup_true_lang-DWdOrA-P.js} +3 -3
  24. package/dist/{TransitionFade-DqIazHHG.js → TransitionFade-oszzTdeW.js} +36 -33
  25. package/dist/{_plugin-vue_export-helper-kkiiQoKl.js → _plugin-vue_export-helper-C6QDExPN.js} +276 -291
  26. package/dist/{app-BAgs-zHf.js → app-CSF-ZDAa.js} +670 -567
  27. package/dist/app.js +1 -1
  28. package/dist/global-loader-BuxFfehu.js +19 -0
  29. package/dist/index-CtZE4sab.js +82 -0
  30. package/dist/report-BKfrG5Ry.js +635 -0
  31. package/dist/report-canvas-frame.html +888 -0
  32. package/dist/report-canvas-libs/chart.js-4.js +14 -0
  33. package/dist/report-canvas-libs/fm-ui-1.js +904 -0
  34. package/dist/style.css +1 -1
  35. package/dist/{useRestaurantPermission-ChYMJfXG.js → useRestaurantPermission-BgWDPmEl.js} +4 -4
  36. package/package.json +1 -1
  37. package/dist/DateRangeSelect-DYVOvSCA.js +0 -517
@@ -0,0 +1,437 @@
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-CSF-ZDAa.js";
3
+ import { detectLocale as X } from "@feedmepos/mf-common";
4
+ import { u as he, _ as Ce } from "./_plugin-vue_export-helper-C6QDExPN.js";
5
+ import { storeToRefs as be } from "pinia";
6
+ import { useSnackbar as Re } from "@feedmepos/ui-library";
7
+ var $ = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))($ || {}), Me = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(Me || {});
8
+ function ze(e, n = 100) {
9
+ let l = null;
10
+ const f = function(...D) {
11
+ return l && clearTimeout(l), new Promise((d) => {
12
+ l = setTimeout(() => {
13
+ l = null;
14
+ const h = e(...D);
15
+ d(h);
16
+ }, n);
17
+ });
18
+ };
19
+ return f.cancel = () => {
20
+ l && (clearTimeout(l), l = null);
21
+ }, f;
22
+ }
23
+ function Se() {
24
+ return [...Array(12).keys()].map((e) => u().month(e).format("MMM"));
25
+ }
26
+ function Le(e, n, l = "") {
27
+ const f = (r) => /^[\x00-\x7F]*$/.test(r) ? " " : "", D = (r) => /^每年/.test(r), d = (r) => /^每周|^每週/.test(r), h = (r) => /^每月/.test(r);
28
+ switch (e.type) {
29
+ case $.Day:
30
+ return n("report.schedule.everyDay");
31
+ case $.Week: {
32
+ const r = n("report.schedule.everyWeek"), y = d(r);
33
+ let s = `${r}${f(r)}`;
34
+ const p = [
35
+ n("report.days.sunday"),
36
+ n("report.days.monday"),
37
+ n("report.days.tuesday"),
38
+ n("report.days.wednesday"),
39
+ n("report.days.thursday"),
40
+ n("report.days.friday"),
41
+ n("report.days.saturday")
42
+ ];
43
+ if (e.days)
44
+ for (let m = 0; m < e.days.length; m++) {
45
+ const T = y ? p[e.days[m]].replace(/^[周週]/, "") : p[e.days[m]];
46
+ s = s + T + (m !== e.days.length - 1 ? "," : "");
47
+ }
48
+ return s;
49
+ }
50
+ case $.Month: {
51
+ const r = n("report.schedule.everyMonth"), y = h(r);
52
+ let s = `${r}${f(r)}`;
53
+ return e.days && (s = s + (y ? e.days.map((p) => `${p}日`).join(",") : e.days.join(","))), s;
54
+ }
55
+ case $.Year: {
56
+ if (!e.months && !e.days)
57
+ return n("report.schedule.customDate");
58
+ const r = n("report.schedule.everyYear"), y = D(r);
59
+ let s = `${r}${y ? " " : f(r)}`;
60
+ if (e.months) {
61
+ const p = Se();
62
+ s = s + e.months.map((m) => p[m - 1]).join(",");
63
+ }
64
+ return e.months && e.days && (s = y ? `${s} 的 ` : `${s} ${n("report.common.and")} `), e.days && (s = s + (y ? e.days.map((p) => `${p}日`).join(",") : e.days.join(","))), s;
65
+ }
66
+ default:
67
+ return l;
68
+ }
69
+ }
70
+ function Z(e = {
71
+ startDate: null,
72
+ endDate: null,
73
+ locale: "en-US",
74
+ timezone: void 0
75
+ }) {
76
+ if (!e.startDate || !e.endDate)
77
+ return "No comparison";
78
+ let n = u().subtract(1, "day").endOf("day"), l = u().endOf("day");
79
+ return e.startDate && (n = e.timezone ? u(e.startDate).tz(e.timezone).locale(e.locale) : u(e.startDate).locale(e.locale)), e.endDate && (l = e.timezone ? u(e.endDate).tz(e.timezone).locale(e.locale) : u(e.endDate).locale(e.locale)), n.format("YYYY") !== l.format("YYYY") ? `${n.format("DD MMM YYYY")} - ${l.format("DD MMM YYYY")}` : `${n.format("DD MMM")} - ${l.format("DD MMM YYYY")}`;
80
+ }
81
+ function Ue(e = {
82
+ startTime: null,
83
+ endTime: null,
84
+ locale: "en-US"
85
+ }) {
86
+ const n = "hh:mmA", { startTime: l, endTime: f, locale: D } = e;
87
+ if (!l || !f) return "";
88
+ const d = u().set("hour", l.hour).set("minute", l.minute).locale(D), h = u().set("hour", f.hour).set("minute", f.minute).locale(D);
89
+ return `${d.format(n)}-${h.format(n)}`;
90
+ }
91
+ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, $e = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, Te = { class: "whitespace-nowrap flex-none" }, _ = /* @__PURE__ */ te({
92
+ __name: "FilterChip",
93
+ props: {
94
+ label: {
95
+ type: String,
96
+ default: ""
97
+ },
98
+ leftIcon: {
99
+ type: String,
100
+ default: ""
101
+ },
102
+ rightIcon: {
103
+ type: String,
104
+ default: ""
105
+ },
106
+ trailingIcon: {
107
+ type: String,
108
+ default: ""
109
+ },
110
+ loading: {
111
+ type: Boolean,
112
+ default: !1
113
+ }
114
+ },
115
+ setup(e) {
116
+ const n = e;
117
+ return (l, f) => {
118
+ const D = A("FmIcon"), d = A("FmCircularProgress"), h = A("FmChip");
119
+ return C(), b(h, {
120
+ "aria-busy": n.loading,
121
+ class: ce([
122
+ "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-[400px] flex items-center gap-1 transition-opacity",
123
+ n.loading && "opacity-80"
124
+ ])
125
+ }, {
126
+ default: U(() => [
127
+ e.leftIcon ? (C(), b(D, {
128
+ key: 0,
129
+ name: n.leftIcon,
130
+ size: "sm",
131
+ outline: "",
132
+ class: "flex-none"
133
+ }, null, 8, ["name"])) : E("", !0),
134
+ I("div", Ye, [
135
+ I("span", $e, me(n.label), 1),
136
+ e.rightIcon ? (C(), b(D, {
137
+ key: 0,
138
+ name: e.rightIcon,
139
+ size: "sm",
140
+ outline: "",
141
+ class: "flex-none"
142
+ }, null, 8, ["name"])) : E("", !0),
143
+ I("span", Te, [
144
+ fe(l.$slots, "default")
145
+ ]),
146
+ n.loading ? (C(), b(d, {
147
+ key: 1,
148
+ size: "md",
149
+ class: "flex-none scale-75"
150
+ })) : e.trailingIcon ? (C(), b(D, {
151
+ key: 2,
152
+ name: e.trailingIcon,
153
+ size: "sm",
154
+ outline: "",
155
+ class: "flex-none"
156
+ }, null, 8, ["name"])) : E("", !0)
157
+ ])
158
+ ]),
159
+ _: 3
160
+ }, 8, ["aria-busy", "class"]);
161
+ };
162
+ }
163
+ }), we = { class: "flex gap-2 items-center" }, S = "YYYY-MM-DD", ee = ".fm-calendar__cell[id]", xe = ".fm-calendar__cell__button", ke = /* @__PURE__ */ te({
164
+ __name: "DateRangeSelect",
165
+ props: /* @__PURE__ */ K({
166
+ compare: {
167
+ type: Boolean,
168
+ default: !1
169
+ },
170
+ datePredefinedRanges: {
171
+ type: Array,
172
+ default: () => ve()
173
+ },
174
+ label: {
175
+ type: String,
176
+ required: !1,
177
+ default: null
178
+ },
179
+ removable: {
180
+ type: Boolean,
181
+ required: !1,
182
+ default: !1
183
+ },
184
+ minDate: {
185
+ type: String,
186
+ required: !1,
187
+ default: void 0
188
+ }
189
+ }, {
190
+ compareType: {
191
+ type: String,
192
+ default: P.PRECEDING_PERIOD
193
+ },
194
+ compareTypeModifiers: {},
195
+ dateRange: {
196
+ type: Object,
197
+ default: () => ({
198
+ startDate: void 0,
199
+ endDate: void 0
200
+ })
201
+ },
202
+ dateRangeModifiers: {},
203
+ compareDateRange: {
204
+ type: Object,
205
+ default: () => ({
206
+ startDate: void 0,
207
+ endDate: void 0
208
+ })
209
+ },
210
+ compareDateRangeModifiers: {}
211
+ }),
212
+ emits: /* @__PURE__ */ K(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
213
+ setup(e, { emit: n }) {
214
+ const { t: l, locale: f } = he(), D = Re();
215
+ function d(t) {
216
+ return t ? t.includes("T") ? u(t).tz(p.value).format(S) : u(t).format(S) : null;
217
+ }
218
+ const h = n, r = z(e, "compareType"), y = z(e, "dateRange"), s = z(e, "compareDateRange"), { timezone: p } = be(ge());
219
+ let m = null, T = 0, R = null;
220
+ const w = /* @__PURE__ */ new Set(), N = O(!1), B = O(!1), x = L(
221
+ () => N.value || B.value
222
+ ), V = L(
223
+ () => e.minDate ? l("report.messages.noPermissionDateAccess", { date: e.minDate }) : ""
224
+ );
225
+ function j(t) {
226
+ return !!(e.minDate && u(t).isBefore(u(e.minDate, S), "day"));
227
+ }
228
+ function ae() {
229
+ const t = Date.now();
230
+ t - T < 1e3 || (T = t, D == null || D.open({
231
+ type: "error",
232
+ message: V.value
233
+ }));
234
+ }
235
+ function ne(t) {
236
+ return t instanceof HTMLElement && t.matches(ee) ? [t] : "querySelectorAll" in t ? Array.from(t.querySelectorAll(ee)) : [];
237
+ }
238
+ function re(t = document) {
239
+ e.minDate && ne(t).forEach((a) => {
240
+ const i = u(a.id), o = i.isValid() && j(i), v = a.querySelector(xe);
241
+ a.classList.toggle("report-date-access-disabled", o), v && (v.setAttribute("aria-disabled", String(o)), v.title = o ? V.value : "");
242
+ });
243
+ }
244
+ function q(t = [document]) {
245
+ !e.minDate || !x.value || (t.forEach((a) => w.add(a)), R === null && (R = window.requestAnimationFrame(() => {
246
+ R = null;
247
+ const a = Array.from(w);
248
+ w.clear(), a.length || a.push(document), a.forEach((i) => re(i));
249
+ })));
250
+ }
251
+ function W() {
252
+ m == null || m.disconnect(), m = null, R !== null && (window.cancelAnimationFrame(R), R = null), w.clear();
253
+ }
254
+ function oe() {
255
+ m || !e.minDate || !x.value || (m = new MutationObserver((t) => {
256
+ const a = /* @__PURE__ */ new Set();
257
+ t.forEach((i) => {
258
+ a.add(i.target), i.addedNodes.forEach((o) => {
259
+ o instanceof HTMLElement && a.add(o);
260
+ });
261
+ }), q(Array.from(a));
262
+ }), m.observe(document.body, { childList: !0, subtree: !0 }));
263
+ }
264
+ function F() {
265
+ if (!e.minDate || !x.value) {
266
+ W();
267
+ return;
268
+ }
269
+ oe(), q();
270
+ }
271
+ function H(t, a = !0) {
272
+ return t && (j(u(t, S)) ? (a && ae(), e.minDate) : t);
273
+ }
274
+ function G(t, a = {}) {
275
+ const i = a.notify ?? !0;
276
+ let o = H(t.startDate, i), v = H(t.endDate, i);
277
+ return o && v && u(o, S).isAfter(u(v, S), "day") && (o = e.minDate ?? v, v = o), { startDate: o, endDate: v };
278
+ }
279
+ function k(t, a) {
280
+ return t.startDate === a.startDate && t.endDate === a.endDate;
281
+ }
282
+ const c = O({
283
+ startDate: d(y.value.startDate),
284
+ endDate: d(y.value.endDate)
285
+ }), g = O({
286
+ startDate: s.value.startDate ? d(s.value.startDate) : null,
287
+ endDate: s.value.endDate ? d(s.value.endDate) : null
288
+ });
289
+ M(
290
+ [() => c.value],
291
+ () => {
292
+ const t = G(c.value);
293
+ if (!k(t, c.value)) {
294
+ c.value = t;
295
+ return;
296
+ }
297
+ c.value.endDate || (c.value.endDate = c.value.startDate);
298
+ const a = {
299
+ startDate: u.tz(c.value.startDate, p.value).startOf("day").utc().toISOString(),
300
+ endDate: u.tz(c.value.endDate, p.value).endOf("day").utc().toISOString()
301
+ };
302
+ y.value = a, h("update", a);
303
+ },
304
+ { deep: !0 }
305
+ ), M([() => g.value], () => {
306
+ const t = G(g.value, {
307
+ notify: r.value === P.CUSTOM
308
+ });
309
+ if (!k(t, g.value)) {
310
+ g.value = t;
311
+ return;
312
+ }
313
+ const a = g.value.startDate, i = g.value.endDate, o = a ? u(
314
+ a instanceof Date ? a : u(a).toDate()
315
+ ).startOf("day").tz(p.value, !0).toISOString() : void 0, v = i ? u(i instanceof Date ? i : u(i).toDate()).tz(p.value, !0).endOf("day").toISOString() : void 0;
316
+ s.value = {
317
+ startDate: o,
318
+ endDate: v
319
+ };
320
+ }), M(
321
+ () => y.value,
322
+ () => {
323
+ const t = {
324
+ startDate: d(y.value.startDate),
325
+ endDate: d(y.value.endDate)
326
+ };
327
+ k(t, c.value) || (c.value = t);
328
+ },
329
+ { deep: !0 }
330
+ ), M(
331
+ () => s.value,
332
+ () => {
333
+ const t = {
334
+ startDate: d(s.value.startDate),
335
+ endDate: d(s.value.endDate)
336
+ };
337
+ k(t, g.value) || (g.value = t);
338
+ },
339
+ { deep: !0 }
340
+ ), M(
341
+ () => e.minDate,
342
+ async () => {
343
+ await J(), F();
344
+ }
345
+ ), M(
346
+ () => x.value,
347
+ async () => {
348
+ await J(), F();
349
+ }
350
+ ), De(() => {
351
+ F();
352
+ }), ye(() => {
353
+ W();
354
+ });
355
+ function le(t) {
356
+ r.value = t;
357
+ }
358
+ function se(t) {
359
+ N.value = t;
360
+ }
361
+ function ue(t) {
362
+ B.value = t;
363
+ }
364
+ function ie(t) {
365
+ h("chip-closed", t);
366
+ }
367
+ const de = L(() => {
368
+ const t = X(), a = t.startsWith("zh") ? "" : " ", i = l("report.common.comparedTo"), o = Z({
369
+ startDate: g.value.startDate ?? null,
370
+ endDate: g.value.endDate ?? null,
371
+ locale: t
372
+ });
373
+ return r.value === P.NO_COMPARISON ? `${i}: ${l(`report.compare.${r.value}`)}` : r.value === P.CUSTOM ? `${i}: ${o}` : `${i}${a}${l(`report.compare.${r.value}`).toLowerCase()}: ${o}`;
374
+ });
375
+ return (t, a) => {
376
+ const i = A("FmSimpleDateRangePicker");
377
+ return C(), pe("div", we, [
378
+ (C(), b(i, {
379
+ key: `date-picker-${Y(f)}`,
380
+ modelValue: c.value,
381
+ "onUpdate:modelValue": a[1] || (a[1] = (o) => c.value = o),
382
+ "show-predefined-range": "",
383
+ min: e.minDate,
384
+ "predefined-range": e.datePredefinedRanges.map((o) => ({
385
+ ...o,
386
+ label: Y(l)(`report.date.${o.label}`)
387
+ })),
388
+ class: "w-2/6",
389
+ onPopoverChanged: se
390
+ }, {
391
+ "trigger-button": U(() => [
392
+ Q(_, {
393
+ "left-icon": e.label ? "filter_alt" : "calendar_month",
394
+ label: e.label ?? Y(Z)({
395
+ startDate: c.value.startDate ?? "",
396
+ endDate: c.value.endDate ?? "",
397
+ locale: Y(X)()
398
+ }),
399
+ removable: e.removable,
400
+ onChipClosed: a[0] || (a[0] = (o) => ie(!0))
401
+ }, null, 8, ["left-icon", "label", "removable"])
402
+ ]),
403
+ _: 1
404
+ }, 8, ["modelValue", "min", "predefined-range"])),
405
+ e.compare ? (C(), b(i, {
406
+ key: `compare-date-picker-${Y(f)}`,
407
+ modelValue: g.value,
408
+ "onUpdate:modelValue": a[2] || (a[2] = (o) => g.value = o),
409
+ "compare-type": r.value,
410
+ "onUpdate:compareType": a[3] || (a[3] = (o) => r.value = o),
411
+ "show-predefined-range": "",
412
+ min: e.minDate,
413
+ "compare-target": c.value,
414
+ "default-compare-type": r.value,
415
+ onPopoverChanged: ue,
416
+ onSelectComparison: le
417
+ }, {
418
+ "trigger-button": U(() => [
419
+ Q(_, { label: de.value }, null, 8, ["label"])
420
+ ]),
421
+ _: 1
422
+ }, 8, ["modelValue", "compare-type", "min", "compare-target", "default-compare-type"])) : E("", !0)
423
+ ]);
424
+ };
425
+ }
426
+ }), Ne = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-e0ce1b3c"]]);
427
+ export {
428
+ $ as C,
429
+ Ne as D,
430
+ _,
431
+ Me as a,
432
+ Le as b,
433
+ Ue as c,
434
+ ze as d,
435
+ Z as e,
436
+ Se as g
437
+ };
@@ -1,29 +1,30 @@
1
- import { defineComponent as u, computed as p, resolveComponent as f, 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-TpeQ_Wm1.js";
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-B2IXNXS_.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { u as q, a as w } from "./_plugin-vue_export-helper-kkiiQoKl.js";
6
- import { useRoute as B } from "vue-router";
5
+ import { u as q } from "./global-loader-BuxFfehu.js";
6
+ import { useRoute as w } from "vue-router";
7
+ import { u as B } from "./_plugin-vue_export-helper-C6QDExPN.js";
7
8
  const $ = {
8
9
  key: 1,
9
10
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
10
- }, N = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, P = /* @__PURE__ */ u({
11
+ }, N = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, R = /* @__PURE__ */ u({
11
12
  __name: "Default",
12
13
  setup(S) {
13
- const { t: l } = q(), { breakpoints: r } = b(), { isLoading: c } = C(w()), o = B(), a = p(() => !o.query.token);
14
+ const { t: l } = B(), { breakpoints: s } = b(), { isLoading: c } = C(q()), o = w(), a = p(() => !o.query.token);
14
15
  return (m, z) => {
15
16
  const i = f("FmCircularProgress");
16
- return t(), s("div", {
17
- class: d(`${e(r).lg || e(r).md ? "flex w-full" : ""} bg-fm-color-neutral-white`),
17
+ return t(), r("div", {
18
+ class: d(`${e(s).lg || e(s).md ? "flex w-full" : ""} bg-fm-color-neutral-white`),
18
19
  style: n({
19
20
  height: `calc(100vh - ${e(o).query.token && e(o).query.businessId ? "0" : "64"}px)`
20
21
  })
21
22
  }, [
22
23
  a.value ? _("", !0) : (t(), y(v, { key: 0 })),
23
- e(c) ? (t(), s("div", $, [
24
+ e(c) ? (t(), r("div", $, [
24
25
  h(i, { size: "xl" }),
25
26
  k("span", N, g(e(l)("report.common.isLoading")), 1)
26
- ])) : (t(), s("div", {
27
+ ])) : (t(), r("div", {
27
28
  key: 2,
28
29
  class: "w-full flex flex-col",
29
30
  style: n({
@@ -37,5 +38,5 @@ const $ = {
37
38
  }
38
39
  });
39
40
  export {
40
- P as _
41
+ R as _
41
42
  };