@feedmepos/mf-report 5.22.1-remy.1 → 5.22.1-remy.2

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 (26) hide show
  1. package/dist/{App-cuHcpcZw.js → App-DllSHrhi.js} +10 -10
  2. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-BqaTjSqX.js +315 -0
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DMnXUzDy.js} +37 -36
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-BhMWXLug.js → Default.vue_vue_type_script_setup_true_lang-Da4Qj31I.js} +12 -11
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-fzO5gzwh.js → FilterSelector.vue_vue_type_script_setup_true_lang-CrDNlz99.js} +236 -235
  6. package/dist/{InsightView-DJJJmFkl.js → InsightView-D_V8GCdN.js} +17 -16
  7. package/dist/{Integration-D93eQCHy.js → Integration-F1OWPe2v.js} +5 -4
  8. package/dist/{Integrations-jn20KmcD.js → Integrations-6h3Ynyhx.js} +28 -27
  9. package/dist/{Layout-B1jaac85.js → Layout-D4Hl2RVc.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BrCMbeEl.js → MenuTab.vue_vue_type_script_setup_true_lang-BpSxzEVb.js} +9 -9
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BZVeEoDt.js → NavigationTab.vue_vue_type_script_setup_true_lang-DCSjuXmi.js} +98 -97
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js → NoData.vue_vue_type_script_setup_true_lang-CW6oZEnc.js} +1 -1
  13. package/dist/{OverviewView-Cuzw4aLB.js → OverviewView-BAhRRNeA.js} +16 -16
  14. package/dist/{Report-P_a1NjPi.js → Report-MYVRo7SL.js} +8 -9
  15. package/dist/{ReportEditor-CkNtAVi9.js → ReportEditor-DgVHv5lv.js} +9 -8
  16. package/dist/{ReportView-BiF6T_r0.js → ReportView-CI-bWx1T.js} +12 -12
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js → SelectComponent.vue_vue_type_script_setup_true_lang-CiT09OeD.js} +1 -1
  18. package/dist/{Setting-DLnskPxP.js → Setting-cnuWE3wM.js} +7 -6
  19. package/dist/{TileEditor-LFwn_4CK.js → TileEditor-BydbDg_b.js} +18 -17
  20. package/dist/{TransitionFade-12ARL50A.js → TransitionFade-D0ozPmOn.js} +22 -21
  21. package/dist/app-lLf0I618.js +28808 -0
  22. package/dist/app.js +6 -5184
  23. package/dist/vue-i18n-CQAzKJVO.js +2711 -0
  24. package/package.json +1 -1
  25. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-03nmej58.js +0 -19983
  26. package/dist/vue-i18n-BQN8HgvD.js +0 -6457
@@ -4,11 +4,12 @@ var ml = (e, r, t) => F5(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { defineComponent as $t, computed as nt, useModel as pn, ref as Ve, watch as ra, resolveComponent as me, createBlock as Ze, unref as q, openBlock as ne, withCtx as qe, createElementVNode as _, createVNode as J, toDisplayString as Ge, withDirectives as Un, createElementBlock as Fe, Fragment as vt, renderList as Bt, vShow as Ui, createTextVNode as jr, mergeModels as Kn, createCommentVNode as dt, normalizeClass as Jn, onMounted as i0, withKeys as qh, withModifiers as Yn, isRef as qn, vModelText as Wh, normalizeStyle as s0, renderSlot as jh, mergeProps as N5, nextTick as L5, resolveDynamicComponent as Td, createSlots as M5 } from "vue";
5
5
  import { useRouter as Uh, useRoute as Yh } from "vue-router";
6
6
  import { storeToRefs as xr, defineStore as l0 } from "pinia";
7
- import { a as Zs, k as Cd, l as R5, h as Ll, R as ln, j as o0, m as f0, _ as c0, d as B5, v as X5, i as z5, r as H5, n as wn, o as q5, u as W5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-03nmej58.js";
8
- import { useBreakpoints as oo, components as yi, useSnackbar as ss, useDialog as j5, useDialogChild as U5, FmButtonVariant as Ed } from "@feedmepos/ui-library";
9
- import { u as Ka, k as u0, l as fo, a as Ja, F as _a, r as co, d as ct, m as ls, t as Y5, b as Pi, q as uo, n as Z5, o as G5, e as Q5, v as gl, w as Zh, x as K5, p as J5 } from "./vue-i18n-BQN8HgvD.js";
10
- import { _ as Pd, a as _5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js";
11
- import { C as fa, g as $5, e as Gh, a as e8, _ as Qh } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js";
7
+ import { g as Zs, y as o0, z as oo, u as Ka, F as Ja, A as fo, B as Cd, E as R5, d as ct, G as ss, H as B5, a as Pi, q as co, t as X5, I as z5, J as H5, e as q5, K as gl, L as W5, M as Zh, R as wn, N as j5, O as U5, c as Y5, p as Z5 } from "./app-lLf0I618.js";
8
+ import { useBreakpoints as uo, components as yi, useSnackbar as ls, useDialog as G5, useDialogChild as Q5, FmButtonVariant as Ed } from "@feedmepos/ui-library";
9
+ import { u as _a } from "./vue-i18n-CQAzKJVO.js";
10
+ import { _ as Pd, a as K5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CiT09OeD.js";
11
+ import { C as fa, g as J5, e as Gh, a as _5, _ as Qh } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DMnXUzDy.js";
12
+ import { P as Ll, R as ln, g as f0, b as c0, _ as u0, a as $5, v as e8 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BqaTjSqX.js";
12
13
  import { detectLocale as t8, useCoreStore as r8 } from "@feedmepos/mf-common";
13
14
  const a8 = { class: "flex flex-col" }, n8 = { class: "fm-typo-en-title-sm-600" }, i8 = { class: "grow" }, s8 = { class: "flex flex-col gap-8" }, l8 = { class: "flex flex-col w-full" }, o8 = { class: "flex flex-col gap-5 p-6" }, f8 = { class: "flex" }, Sd = {
14
15
  // sales: [
@@ -126,7 +127,7 @@ const a8 = { class: "flex flex-col" }, n8 = { class: "fm-typo-en-title-sm-600" }
126
127
  },
127
128
  emits: ["update:modelValue"],
128
129
  setup(e) {
129
- const { t: r } = Ka(), { breakpoints: t } = oo(), a = Zs(), { editingReport: n, categories: s } = xr(a), l = nt(
130
+ const { t: r } = _a(), { breakpoints: t } = uo(), a = Zs(), { editingReport: n, categories: s } = xr(a), l = nt(
130
131
  () => s.value.map((C) => ({
131
132
  label: r(`report.category.${C.name}`),
132
133
  value: C
@@ -312,7 +313,7 @@ var Kh = { exports: {} };
312
313
  (function(e, r) {
313
314
  (function(t, a) {
314
315
  e.exports = a();
315
- })(fo, function() {
316
+ })(oo, function() {
316
317
  var t = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, a = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, s = /\d\d/, l = /\d\d?/, f = /\d*[^-_:/,()\s\d]+/, c = {}, u = function(y) {
317
318
  return (y = +y) + (y > 68 ? 1900 : 2e3);
318
319
  }, h = function(y) {
@@ -430,45 +431,45 @@ var Kh = { exports: {} };
430
431
  });
431
432
  })(Kh);
432
433
  var d8 = Kh.exports;
433
- const d0 = /* @__PURE__ */ u0(d8), h8 = () => {
434
- const { businessId: e } = xr(Ja()), r = {
435
- fetchType: _a.Get,
434
+ const d0 = /* @__PURE__ */ o0(d8), h8 = () => {
435
+ const { businessId: e } = xr(Ka()), r = {
436
+ fetchType: Ja.Get,
436
437
  url: `${e.value}/schedule`
437
438
  };
438
- return co.fetch(r);
439
+ return fo.fetch(r);
439
440
  }, A8 = (e) => {
440
- const { businessId: r } = xr(Ja()), { currentReportId: t } = Zs();
441
+ const { businessId: r } = xr(Ka()), { currentReportId: t } = Zs();
441
442
  e.reportId = t, e.businessId = r.value;
442
443
  const a = {
443
- fetchType: _a.Post,
444
+ fetchType: Ja.Post,
444
445
  url: `${r}/schedule/`,
445
446
  data: {
446
447
  ...e
447
448
  }
448
449
  };
449
- return co.fetch(a);
450
+ return fo.fetch(a);
450
451
  }, p8 = (e) => {
451
- const { businessId: r } = xr(Ja()), { currentReportId: t } = Zs();
452
+ const { businessId: r } = xr(Ka()), { currentReportId: t } = Zs();
452
453
  e.reportId = t, e.businessId = r.value;
453
454
  const a = {
454
- fetchType: _a.Put,
455
+ fetchType: Ja.Put,
455
456
  url: `${r.value}/schedule/${e._id}`,
456
457
  data: {
457
458
  ...e
458
459
  }
459
460
  };
460
- return co.fetch(a);
461
+ return fo.fetch(a);
461
462
  }, v8 = (e) => {
462
- const { businessId: r } = xr(Ja()), { currentReportId: t } = Zs();
463
+ const { businessId: r } = xr(Ka()), { currentReportId: t } = Zs();
463
464
  e.reportId = t, e.businessId = r.value;
464
465
  const a = {
465
- fetchType: _a.Delete,
466
+ fetchType: Ja.Delete,
466
467
  url: `${r.value}/schedule/${e._id}`
467
468
  };
468
- return co.fetch(a);
469
+ return fo.fetch(a);
469
470
  }, m8 = (e, r, t) => {
470
- const { businessId: a } = xr(Ja()), n = {
471
- fetchType: _a.Post,
471
+ const { businessId: a } = xr(Ka()), n = {
472
+ fetchType: Ja.Post,
472
473
  url: `${a.value}/email`,
473
474
  data: {
474
475
  dates: t,
@@ -476,7 +477,7 @@ const d0 = /* @__PURE__ */ u0(d8), h8 = () => {
476
477
  id: e
477
478
  }
478
479
  };
479
- return co.fetch(n);
480
+ return fo.fetch(n);
480
481
  }, g8 = "mf-reportschedule-store", Gf = l0(g8, () => {
481
482
  const e = Ve([]), { currentReportId: r } = xr(Zs()), t = Ve(!1);
482
483
  async function a() {
@@ -516,13 +517,13 @@ const d0 = /* @__PURE__ */ u0(d8), h8 = () => {
516
517
  }),
517
518
  emits: /* @__PURE__ */ Kn(["isOpen"], ["update:modelValue"]),
518
519
  setup(e, { emit: r }) {
519
- const { t } = Ka(), a = pn(e, "modelValue"), n = e, s = r, l = Ve(""), f = Ve(""), c = Ve({
520
+ const { t } = _a(), a = pn(e, "modelValue"), n = e, s = r, l = Ve(""), f = Ve(""), c = Ve({
520
521
  repeat: a.value.type,
521
522
  every: 1,
522
523
  // particular date
523
524
  month: a.value.months ?? [1],
524
525
  day: a.value.days ?? [1]
525
- }), u = Object.entries(fa).map(([C, k]) => ({ label: t(`report.cycle.${C}`), value: k })), h = nt(() => $5().map((k, D) => ({ label: k, value: D + 1 }))), A = nt(() => Array(31).fill(void 0).map((k, D) => ({ label: `${D + 1}`, value: D + 1 }))), m = [
526
+ }), u = Object.entries(fa).map(([C, k]) => ({ label: t(`report.cycle.${C}`), value: k })), h = nt(() => J5().map((k, D) => ({ label: k, value: D + 1 }))), A = nt(() => Array(31).fill(void 0).map((k, D) => ({ label: `${D + 1}`, value: D + 1 }))), m = [
526
527
  { label: t("report.days.sunday"), value: 0 },
527
528
  { label: t("report.days.monday"), value: 1 },
528
529
  { label: t("report.days.tuesday"), value: 2 },
@@ -742,8 +743,8 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
742
743
  },
743
744
  emits: ["isOpen"],
744
745
  setup(e, { emit: r }) {
745
- ct.extend(d0), ct.extend(ls), ct.extend(Y5);
746
- const { t } = Ka(), { locations: a, defaultDateSetting: n, restaurants: s, warehouses: l, timezone: f } = xr(Pi()), c = Gf(), {
746
+ ct.extend(d0), ct.extend(ss), ct.extend(B5);
747
+ const { t } = _a(), { locations: a, defaultDateSetting: n, restaurants: s, warehouses: l, timezone: f } = xr(Pi()), c = Gf(), {
747
748
  fetchEmailRecipients: u,
748
749
  handleEmailRecipientDeletion: h,
749
750
  handleFocus: A,
@@ -757,7 +758,7 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
757
758
  filteredEmailLists: k,
758
759
  showDropdown: D,
759
760
  initSelectedList: V
760
- } = _h(), F = ss(), P = e, W = r, { FmForm: H } = yi, te = Ve(), Y = Ve(JSON.parse(JSON.stringify(P.schedule))), U = nt(
761
+ } = _h(), F = ls(), P = e, W = r, { FmForm: H } = yi, te = Ve(), Y = Ve(JSON.parse(JSON.stringify(P.schedule))), U = nt(
761
762
  () => ve.value.filter((ce) => s.value.some((Se) => Se.id === ce))
762
763
  ), ue = nt(
763
764
  () => ve.value.filter((ce) => l.value.some((Se) => Se.id === ce))
@@ -1044,7 +1045,7 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1044
1045
  modelValue: Y.value.exportFileTypes,
1045
1046
  "onUpdate:modelValue": Se[8] || (Se[8] = (Pt) => Y.value.exportFileTypes = Pt),
1046
1047
  value: Ie,
1047
- label: q(o0)(Ie)
1048
+ label: q(f0)(Ie)
1048
1049
  }, null, 8, ["modelValue", "value", "label"]),
1049
1050
  Y.value.exportFileTypes.includes(Ie) && Ie === q(ln).PDF ? (ne(), Fe("div", F8, [
1050
1051
  (ne(!0), Fe(vt, null, Bt(Object.values(q(Ll)), (Pt) => (ne(), Ze(Nt, {
@@ -1052,7 +1053,7 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1052
1053
  modelValue: Be.value,
1053
1054
  "onUpdate:modelValue": Se[9] || (Se[9] = (wt) => Be.value = wt),
1054
1055
  value: Pt,
1055
- label: q(t)(q(f0)(Pt)),
1056
+ label: q(t)(q(c0)(Pt)),
1056
1057
  class: "px-4"
1057
1058
  }, null, 8, ["modelValue", "value", "label"]))), 128))
1058
1059
  ])) : dt("", !0)
@@ -1100,7 +1101,7 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1100
1101
  _("div", q8, [
1101
1102
  _("div", W8, [
1102
1103
  _("p", null, Ge(q(t)("report.input.timeRange")), 1),
1103
- J(c0, {
1104
+ J(u0, {
1104
1105
  "time-range": G.value,
1105
1106
  "onUpdate:timeRange": Se[12] || (Se[12] = (Ie) => G.value = Ie),
1106
1107
  "select-time-default": j.value,
@@ -1209,8 +1210,8 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1209
1210
  },
1210
1211
  emits: ["isOpen"],
1211
1212
  setup(e, { emit: r }) {
1212
- const t = ss();
1213
- ct.extend(d0), ct.extend(ls);
1213
+ const t = ls();
1214
+ ct.extend(d0), ct.extend(ss);
1214
1215
  const a = e, n = r, { FmForm: s } = yi, l = Ve(), f = Ve({
1215
1216
  email: a.schedule.emails,
1216
1217
  date: ct().startOf("day").utc().format("YYYY-MM-DD")
@@ -1299,7 +1300,7 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1299
1300
  schedule: {}
1300
1301
  },
1301
1302
  setup(e) {
1302
- const { t: r } = Ka(), t = e, a = ss(), n = nt(() => {
1303
+ const { t: r } = _a(), t = e, a = ls(), n = nt(() => {
1303
1304
  var m;
1304
1305
  return Gh((m = t.schedule) == null ? void 0 : m.option, r);
1305
1306
  }), s = Ve(t.schedule.isActive), l = Ve(!1), f = Ve(!1), c = Ve(!1), u = Gf();
@@ -1354,7 +1355,7 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1354
1355
  schedule: t.schedule,
1355
1356
  onIsOpen: v[1] || (v[1] = (D) => f.value = D)
1356
1357
  }, null, 8, ["is-open", "schedule"]),
1357
- J(B5, {
1358
+ J($5, {
1358
1359
  modelValue: c.value,
1359
1360
  "onUpdate:modelValue": v[2] || (v[2] = (D) => c.value = D),
1360
1361
  title: q(r)("report.schedule.deleteSchedule"),
@@ -1389,7 +1390,7 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1389
1390
  ]),
1390
1391
  default: qe(() => [
1391
1392
  (ne(), Fe(vt, null, Bt(A, (D, V) => J(y, {
1392
- key: `${V}-${q(X5)()}`,
1393
+ key: `${V}-${q(e8)()}`,
1393
1394
  onClick: async () => await D.onClick()
1394
1395
  }, {
1395
1396
  label: qe(() => [
@@ -1410,7 +1411,7 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1410
1411
  });
1411
1412
  };
1412
1413
  }
1413
- }), f7 = /* @__PURE__ */ _5(o7, [["__scopeId", "data-v-1284dd51"]]), c7 = {
1414
+ }), f7 = /* @__PURE__ */ K5(o7, [["__scopeId", "data-v-1284dd51"]]), c7 = {
1414
1415
  key: 0,
1415
1416
  class: "flex flex-col gap-2"
1416
1417
  }, u7 = { class: "w-full flex flex-row" }, d7 = /* @__PURE__ */ $t({
@@ -1422,7 +1423,7 @@ const x8 = { class: "relative" }, T8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1422
1423
  emits: ["update:modelValue"],
1423
1424
  setup(e) {
1424
1425
  ct.extend(d0);
1425
- const { t: r } = Ka(), { currentReportScheduler: t, isOpenScheduleDialog: a } = xr(Gf()), n = pn(e, "modelValue"), s = Ve(!1);
1426
+ const { t: r } = _a(), { currentReportScheduler: t, isOpenScheduleDialog: a } = xr(Gf()), n = pn(e, "modelValue"), s = Ve(!1);
1426
1427
  return (l, f) => {
1427
1428
  const c = me("FmButton"), u = me("FmDialog");
1428
1429
  return ne(), Ze(u, {
@@ -25449,51 +25450,51 @@ var ji = {
25449
25450
  SHEET_VERY_HIDDEN: 2
25450
25451
  }
25451
25452
  };
25452
- ct.extend(ls);
25453
+ ct.extend(ss);
25453
25454
  function uD(e) {
25454
- const { businessId: r } = Ja(), t = {
25455
- fetchType: _a.Get,
25455
+ const { businessId: r } = Ka(), t = {
25456
+ fetchType: Ja.Get,
25456
25457
  url: `/accounting-setting/${r}/${e}`
25457
25458
  };
25458
- return uo.fetch(t);
25459
+ return co.fetch(t);
25459
25460
  }
25460
25461
  function dD() {
25461
- const { businessId: e } = Ja(), r = {
25462
- fetchType: _a.Get,
25462
+ const { businessId: e } = Ka(), r = {
25463
+ fetchType: Ja.Get,
25463
25464
  url: `/accounting-setting/${e}`
25464
25465
  };
25465
- return uo.fetch(r);
25466
+ return co.fetch(r);
25466
25467
  }
25467
25468
  function hD(e, r) {
25468
- const { businessId: t } = Ja(), a = {
25469
- fetchType: _a.Put,
25469
+ const { businessId: t } = Ka(), a = {
25470
+ fetchType: Ja.Put,
25470
25471
  url: `/accounting-setting/${t}/${e}`,
25471
25472
  data: {
25472
25473
  businessId: t,
25473
25474
  ...r
25474
25475
  }
25475
25476
  };
25476
- return uo.fetch(a);
25477
+ return co.fetch(a);
25477
25478
  }
25478
25479
  async function AD(e) {
25479
- const { businessId: r } = Ja(), { selectedLocationIds: t, dateRange: a } = Pi(), n = ct(a.endDate).diff(a.startDate, "day"), l = {
25480
+ const { businessId: r } = Ka(), { selectedLocationIds: t, dateRange: a } = Pi(), n = ct(a.endDate).diff(a.startDate, "day"), l = {
25480
25481
  dates: [...new Array(n + 1)].map(
25481
25482
  (c, u) => ct(a.startDate).add(u, "day").utc().toISOString()
25482
25483
  ),
25483
25484
  locationIds: [...t]
25484
25485
  }, f = {
25485
- fetchType: _a.Post,
25486
+ fetchType: Ja.Post,
25486
25487
  url: `/${r}/${e}/accounting/api`,
25487
25488
  data: l,
25488
25489
  requestConfig: {
25489
25490
  timeout: 1e3 * 60 * 3
25490
25491
  }
25491
25492
  };
25492
- await uo.fetch(f);
25493
+ await co.fetch(f);
25493
25494
  }
25494
25495
  async function pD(e, r) {
25495
25496
  var p, y;
25496
- const { businessId: t } = Ja(), {
25497
+ const { businessId: t } = Ka(), {
25497
25498
  selectedRestaurantIds: a,
25498
25499
  selectedWarehouseIds: n,
25499
25500
  selectedLocationIds: s,
@@ -25523,10 +25524,10 @@ async function pD(e, r) {
25523
25524
  warehouseIds: n,
25524
25525
  rounding: r
25525
25526
  }, m = {
25526
- fetchType: _a.Post,
25527
+ fetchType: Ja.Post,
25527
25528
  url: `/${t}/${e}/accounting`,
25528
25529
  data: A
25529
- }, w = (await uo.fetch(m)).map(async (b) => {
25530
+ }, w = (await co.fetch(m)).map(async (b) => {
25530
25531
  const C = ji.book_new();
25531
25532
  for (const k of b.sheets)
25532
25533
  ji.book_append_sheet(
@@ -29294,7 +29295,7 @@ const rV = { class: "flex flex-col gap-8 py-8" }, aV = { class: "pt-16 pb-8 flex
29294
29295
  })) : []
29295
29296
  ), a = nt(
29296
29297
  () => r.attributes.find((u) => u.key === l.value.property)
29297
- ), { emitData: n, emitAction: s } = U5(), l = Ve({ ...r.modelValue }), f = Ve(
29298
+ ), { emitData: n, emitAction: s } = Q5(), l = Ve({ ...r.modelValue }), f = Ve(
29298
29299
  r.modelValue.value && Array.isArray(r.modelValue.value) ? r.modelValue.value.join(`
29299
29300
  `) : ""
29300
29301
  );
@@ -29373,7 +29374,7 @@ const rV = { class: "flex flex-col gap-8 py-8" }, aV = { class: "pt-16 pb-8 flex
29373
29374
  },
29374
29375
  emits: ["update:model-value", "hide:sheet"],
29375
29376
  setup(e, { emit: r }) {
29376
- const t = e, a = Ve(t.modelValue), n = Ve(!1), s = r, l = j5();
29377
+ const t = e, a = Ve(t.modelValue), n = Ve(!1), s = r, l = G5();
29377
29378
  function f(u, h) {
29378
29379
  l.open({
29379
29380
  title: u.property,
@@ -29614,7 +29615,7 @@ const rV = { class: "flex flex-col gap-8 py-8" }, aV = { class: "pt-16 pb-8 flex
29614
29615
  }),
29615
29616
  emits: /* @__PURE__ */ Kn(["update:value"], ["update:modelValue"]),
29616
29617
  setup(e, { expose: r, emit: t }) {
29617
- const { breakpoints: a } = oo(), n = pn(e, "modelValue"), s = e, l = Ve(null), f = Ve(null);
29618
+ const { breakpoints: a } = uo(), n = pn(e, "modelValue"), s = e, l = Ve(null), f = Ve(null);
29618
29619
  function c(u) {
29619
29620
  var h, A;
29620
29621
  a.value.lg || a.value.md ? (h = l.value) == null || h.togglePropertyMenu(u) : (a.value.xs || a.value.sm) && ((A = f.value) == null || A.togglePropertySheet(u));
@@ -33405,7 +33406,7 @@ const CV = { class: "flex flex-wrap gap-2 items-start sm:flex-col lg:flex-row" }
33405
33406
  }),
33406
33407
  emits: ["update:modelValue"],
33407
33408
  setup(e) {
33408
- const { t: r } = Ka(), t = pn(e, "modelValue"), a = Ve([...t.value]), n = Ve(null), s = nt(() => {
33409
+ const { t: r } = _a(), t = pn(e, "modelValue"), a = Ve([...t.value]), n = Ve(null), s = nt(() => {
33409
33410
  var V;
33410
33411
  return t.value.length === 1 ? (V = e.options.find((F) => F.id === t.value[0])) == null ? void 0 : V.name : t.value.length > 1 ? `${t.value.length} ${r("report.common.selected")}` : "";
33411
33412
  }), l = Ve(""), { restaurants: f } = Pi(), c = nt(
@@ -33480,7 +33481,7 @@ const CV = { class: "flex flex-wrap gap-2 items-start sm:flex-col lg:flex-row" }
33480
33481
  onMenuChanged: k
33481
33482
  }, {
33482
33483
  "menu-button": qe(() => [
33483
- J(e8, {
33484
+ J(_5, {
33484
33485
  "left-icon": "storefront",
33485
33486
  "right-icon": "expand_more",
33486
33487
  label: s.value
@@ -33573,7 +33574,7 @@ const CV = { class: "flex flex-wrap gap-2 items-start sm:flex-col lg:flex-row" }
33573
33574
  },
33574
33575
  emits: ["update:modelValue"],
33575
33576
  setup(e) {
33576
- const { t: r } = Ka(), { FmForm: t } = yi, a = Ve(), n = pn(e, "modelValue"), s = Ve(ln.EXCEL), l = Ve(Ll.PORTRAIT), f = Ve(!1), c = ss(), u = Pi(), {
33577
+ const { t: r } = _a(), { FmForm: t } = yi, a = Ve(), n = pn(e, "modelValue"), s = Ve(ln.EXCEL), l = Ve(Ll.PORTRAIT), f = Ve(!1), c = ls(), u = Pi(), {
33577
33578
  locations: h,
33578
33579
  selectedLocationIds: A,
33579
33580
  dateRange: m,
@@ -33593,7 +33594,7 @@ const CV = { class: "flex flex-wrap gap-2 items-start sm:flex-col lg:flex-row" }
33593
33594
  async function V() {
33594
33595
  f.value = !0;
33595
33596
  try {
33596
- await z5({
33597
+ await X5({
33597
33598
  reportType: s.value,
33598
33599
  index: void 0,
33599
33600
  orientationTypes: [l.value],
@@ -33637,7 +33638,7 @@ const CV = { class: "flex flex-wrap gap-2 items-start sm:flex-col lg:flex-row" }
33637
33638
  (ne(!0), Fe(vt, null, Bt(Object.values(q(ln)), (le, ye) => (ne(), Ze(H, {
33638
33639
  key: ye,
33639
33640
  value: le,
33640
- label: q(o0)(le)
33641
+ label: q(f0)(le)
33641
33642
  }, null, 8, ["value", "label"]))), 128))
33642
33643
  ]),
33643
33644
  _: 1
@@ -33652,7 +33653,7 @@ const CV = { class: "flex flex-wrap gap-2 items-start sm:flex-col lg:flex-row" }
33652
33653
  (ne(!0), Fe(vt, null, Bt(Object.values(q(Ll)), (le) => (ne(), Ze(H, {
33653
33654
  key: le,
33654
33655
  value: le,
33655
- label: q(r)(q(f0)(le))
33656
+ label: q(r)(q(c0)(le))
33656
33657
  }, null, 8, ["value", "label"]))), 128))
33657
33658
  ]),
33658
33659
  _: 1
@@ -33681,7 +33682,7 @@ const CV = { class: "flex flex-wrap gap-2 items-start sm:flex-col lg:flex-row" }
33681
33682
  "date-range": p.value,
33682
33683
  "onUpdate:dateRange": W[4] || (W[4] = (le) => p.value = le)
33683
33684
  }, null, 8, ["date-range"]),
33684
- J(c0, {
33685
+ J(u0, {
33685
33686
  "time-range": y.value,
33686
33687
  "onUpdate:timeRange": W[5] || (W[5] = (le) => y.value = le),
33687
33688
  "default-date-range": q(w).timeOptions
@@ -33716,7 +33717,7 @@ var zV = { exports: {} };
33716
33717
  (function(e, r) {
33717
33718
  (function(t, a) {
33718
33719
  e.exports = a();
33719
- })(fo, function() {
33720
+ })(oo, function() {
33720
33721
  return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t) {
33721
33722
  var a = ["th", "st", "nd", "rd"], n = t % 100;
33722
33723
  return "[" + t + (a[(n - 20) % 10] || a[n] || a[0]) + "]";
@@ -33726,8 +33727,8 @@ var zV = { exports: {} };
33726
33727
  var HV = { exports: {} };
33727
33728
  (function(e, r) {
33728
33729
  (function(t, a) {
33729
- e.exports = a(Z5);
33730
- })(fo, function(t) {
33730
+ e.exports = a(z5);
33731
+ })(oo, function(t) {
33731
33732
  function a(l) {
33732
33733
  return l && typeof l == "object" && "default" in l ? l : { default: l };
33733
33734
  }
@@ -33740,7 +33741,7 @@ var HV = { exports: {} };
33740
33741
  return n.default.locale(s, null, !0), s;
33741
33742
  });
33742
33743
  })(HV);
33743
- ct.extend(ls);
33744
+ ct.extend(ss);
33744
33745
  class zh {
33745
33746
  constructor(r) {
33746
33747
  ml(this, "type");
@@ -33882,7 +33883,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
33882
33883
  }),
33883
33884
  emits: ["update:modelValue"],
33884
33885
  setup(e) {
33885
- ct.extend(ls);
33886
+ ct.extend(ss);
33886
33887
  const r = pn(e, "modelValue"), t = e;
33887
33888
  return (a, n) => {
33888
33889
  var h, A, m, v;
@@ -33976,8 +33977,8 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
33976
33977
  }),
33977
33978
  emits: ["update:modelValue"],
33978
33979
  setup(e) {
33979
- ct.extend(ls);
33980
- const { t: r } = Ka(), t = pn(e, "modelValue"), a = e;
33980
+ ct.extend(ss);
33981
+ const { t: r } = _a(), t = pn(e, "modelValue"), a = e;
33981
33982
  return (n, s) => {
33982
33983
  var A, m, v, w;
33983
33984
  const l = me("FmSwitch"), f = me("FmSelect"), c = me("FmTimePicker"), u = me("FmDatePicker"), h = me("FmTextField");
@@ -34053,10 +34054,10 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34053
34054
  }),
34054
34055
  emits: ["update:modelValue"],
34055
34056
  setup(e) {
34056
- ct.extend(ls);
34057
- const { t: r } = Ka(), t = pn(e, "modelValue"), a = e;
34057
+ ct.extend(ss);
34058
+ const { t: r } = _a(), t = pn(e, "modelValue"), a = e;
34058
34059
  async function n() {
34059
- const s = await G5(a.reportId);
34060
+ const s = await H5(a.reportId);
34060
34061
  window.open(s.redirect, "_blank");
34061
34062
  }
34062
34063
  return (s, l) => {
@@ -34121,7 +34122,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34121
34122
  }
34122
34123
  },
34123
34124
  setup(e) {
34124
- const r = e, { breakpoints: t } = oo();
34125
+ const r = e, { breakpoints: t } = uo();
34125
34126
  return (a, n) => {
34126
34127
  const s = me("FmButton");
34127
34128
  return ne(), Fe("div", {
@@ -34151,7 +34152,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34151
34152
  }),
34152
34153
  emits: ["update:modelValue"],
34153
34154
  setup(e) {
34154
- const { breakpoints: r } = oo(), { availableFlagKeys: t } = xr(Q5()), { t: a } = Ka(), n = pn(e, "modelValue"), s = e, l = [
34155
+ const { breakpoints: r } = uo(), { availableFlagKeys: t } = xr(q5()), { t: a } = _a(), n = pn(e, "modelValue"), s = e, l = [
34155
34156
  {
34156
34157
  value: br.AutoCount,
34157
34158
  flag: gl.report_portal_integration_autocount_export
@@ -34178,7 +34179,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34178
34179
  }), ve), [])), c = Ve(null), u = Ve(!1), h = nt(() => {
34179
34180
  var ve;
34180
34181
  return (ve = c.value) == null ? void 0 : ve.type;
34181
- }), A = ss(), { locations: m } = xr(Pi()), v = nt(
34182
+ }), A = ls(), { locations: m } = xr(Pi()), v = nt(
34182
34183
  () => ![br.NetSuite, br.Bukku, br.Xero].includes(
34183
34184
  h.value
34184
34185
  )
@@ -34397,7 +34398,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34397
34398
  }), Sv = "report-jobs", nF = async (e) => {
34398
34399
  try {
34399
34400
  return await Zh.fetch({
34400
- fetchType: _a.Get,
34401
+ fetchType: Ja.Get,
34401
34402
  url: `${e}/${Sv}`
34402
34403
  });
34403
34404
  } catch {
@@ -34405,9 +34406,9 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34405
34406
  }
34406
34407
  }, iF = async (e) => {
34407
34408
  try {
34408
- const r = To(), { businessId: t } = Ja();
34409
+ const r = To(), { businessId: t } = Ka();
34409
34410
  await Zh.fetch({
34410
- fetchType: _a.Post,
34411
+ fetchType: Ja.Post,
34411
34412
  url: `${t}/${Sv}/${e}/cancel`,
34412
34413
  data: { businessId: t }
34413
34414
  }), await r.getJobs();
@@ -34419,12 +34420,12 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34419
34420
  const r = To();
34420
34421
  if (!r.jobs.find((a) => a._id === e))
34421
34422
  throw new Error(`Job with ID ${e} not found in jobStore`);
34422
- await H5(e), await r.getJobs();
34423
+ await W5(e), await r.getJobs();
34423
34424
  } catch (r) {
34424
34425
  throw console.error("Error resending job:", r), r;
34425
34426
  }
34426
34427
  }, lF = "mf-reportjob-store", To = l0(lF, () => {
34427
- const { businessId: e } = Ja(), r = Ve([]), t = Ve(!1), a = Ve(null);
34428
+ const { businessId: e } = Ka(), r = Ve([]), t = Ve(!1), a = Ve(null);
34428
34429
  async function n() {
34429
34430
  r.value = await nF(e);
34430
34431
  }
@@ -34460,7 +34461,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34460
34461
  },
34461
34462
  emits: ["update:modelValue"],
34462
34463
  setup(e) {
34463
- const { FmForm: r, FmChip: t } = yi, { t: a } = Ka(), n = Ve(), s = pn(e, "modelValue"), l = Ve([]), f = Ve([]), c = ss(), u = Ve(""), h = Ve(!1), A = Pi(), { defaultDateSetting: m } = xr(A), {
34464
+ const { FmForm: r, FmChip: t } = yi, { t: a } = _a(), n = Ve(), s = pn(e, "modelValue"), l = Ve([]), f = Ve([]), c = ls(), u = Ve(""), h = Ve(!1), A = Pi(), { defaultDateSetting: m } = xr(A), {
34464
34465
  fetchEmailRecipients: v,
34465
34466
  handleEmailRecipientDeletion: w,
34466
34467
  handleFocus: p,
@@ -34517,7 +34518,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34517
34518
  c.open({
34518
34519
  message: a("report.messages.generatingReport"),
34519
34520
  type: "success"
34520
- }), s.value = !1, ee.value = !0, await q5({
34521
+ }), s.value = !1, ee.value = !0, await j5({
34521
34522
  emails: Be.value,
34522
34523
  types: l.value,
34523
34524
  dateRange: ue.value,
@@ -34619,7 +34620,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34619
34620
  modelValue: l.value,
34620
34621
  "onUpdate:modelValue": z[5] || (z[5] = (Ke) => l.value = Ke),
34621
34622
  value: fe,
34622
- label: q(o0)(fe)
34623
+ label: q(f0)(fe)
34623
34624
  }, null, 8, ["modelValue", "value", "label"]),
34624
34625
  l.value.includes(fe) && fe === q(ln).PDF ? (ne(), Fe("div", kF, [
34625
34626
  (ne(!0), Fe(vt, null, Bt(Object.values(q(Ll)), (Ke) => (ne(), Ze(Te, {
@@ -34627,7 +34628,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34627
34628
  modelValue: f.value,
34628
34629
  "onUpdate:modelValue": z[6] || (z[6] = (B) => f.value = B),
34629
34630
  value: Ke,
34630
- label: q(a)(q(f0)(Ke)),
34631
+ label: q(a)(q(c0)(Ke)),
34631
34632
  class: "px-4"
34632
34633
  }, null, 8, ["modelValue", "value", "label"]))), 128))
34633
34634
  ])) : dt("", !0)
@@ -34672,7 +34673,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34672
34673
  "date-range": ue.value,
34673
34674
  "onUpdate:dateRange": z[10] || (z[10] = (fe) => ue.value = fe)
34674
34675
  }, null, 8, ["date-range"]),
34675
- J(c0, {
34676
+ J(u0, {
34676
34677
  "time-range": le.value,
34677
34678
  "onUpdate:timeRange": z[11] || (z[11] = (fe) => le.value = fe),
34678
34679
  "default-date-range": q(m).timeOptions
@@ -34821,7 +34822,7 @@ var Ov = { exports: {} };
34821
34822
  (function(e, r) {
34822
34823
  (function(t, a) {
34823
34824
  e.exports = a();
34824
- })(fo, function() {
34825
+ })(oo, function() {
34825
34826
  return function(t, a, n) {
34826
34827
  a.prototype.isToday = function() {
34827
34828
  var s = "YYYY-MM-DD", l = n();
@@ -34831,12 +34832,12 @@ var Ov = { exports: {} };
34831
34832
  });
34832
34833
  })(Ov);
34833
34834
  var fN = Ov.exports;
34834
- const cN = /* @__PURE__ */ u0(fN);
34835
+ const cN = /* @__PURE__ */ o0(fN);
34835
34836
  var Dv = { exports: {} };
34836
34837
  (function(e, r) {
34837
34838
  (function(t, a) {
34838
34839
  e.exports = a();
34839
- })(fo, function() {
34840
+ })(oo, function() {
34840
34841
  return function(t, a, n) {
34841
34842
  a.prototype.isYesterday = function() {
34842
34843
  var s = "YYYY-MM-DD", l = n().subtract(1, "day");
@@ -34846,7 +34847,7 @@ var Dv = { exports: {} };
34846
34847
  });
34847
34848
  })(Dv);
34848
34849
  var uN = Dv.exports;
34849
- const dN = /* @__PURE__ */ u0(uN), hN = {
34850
+ const dN = /* @__PURE__ */ o0(uN), hN = {
34850
34851
  key: 0,
34851
34852
  class: "h-full flex flex-col gap-[30px] items-center justify-center text-center"
34852
34853
  }, AN = { class: "flex items-center justify-center" }, pN = ["src"], vN = {
@@ -34856,7 +34857,7 @@ const dN = /* @__PURE__ */ u0(uN), hN = {
34856
34857
  __name: "ReportJobs",
34857
34858
  setup(e) {
34858
34859
  ct.extend(cN), ct.extend(dN);
34859
- const r = To(), { isOpenJobDialog: t, jobs: a } = xr(r), n = ss();
34860
+ const r = To(), { isOpenJobDialog: t, jobs: a } = xr(r), n = ls();
34860
34861
  function s(v) {
34861
34862
  const w = ct(v).local(), p = w.format("DD MMM YYYY");
34862
34863
  return w.isToday() ? `Today, ${p}` : w.isYesterday() ? `Yesterday, ${p}` : p;
@@ -34871,7 +34872,7 @@ const dN = /* @__PURE__ */ u0(uN), hN = {
34871
34872
  }, v.push(y)), y.jobs.push({
34872
34873
  title: `${w.reportName} (${A(w.dateRange)})`,
34873
34874
  icon: f(w.status),
34874
- status: K5(w.status),
34875
+ status: U5(w.status),
34875
34876
  isLoading: w.status === wn.generating,
34876
34877
  actions: h(w),
34877
34878
  time: m(w.createdAt),
@@ -34971,10 +34972,10 @@ const dN = /* @__PURE__ */ u0(uN), hN = {
34971
34972
  }
34972
34973
  });
34973
34974
  var Iv = /* @__PURE__ */ ((e) => (e.report_insight_click_insight_card = "report_insight_click_insight_card", e.report_insight_click_insight_page = "report_insight_click_insight_page", e))(Iv || {});
34974
- const gN = { class: "flex gap-2 py-16" }, yN = { class: "fm-typo-en-title-md-400" }, DN = /* @__PURE__ */ $t({
34975
+ const gN = { class: "flex gap-2 py-16" }, yN = { class: "fm-typo-en-title-md-400" }, IN = /* @__PURE__ */ $t({
34975
34976
  __name: "NavigationTab",
34976
34977
  setup(e) {
34977
- const { t: r } = Ka(), t = Uh(), a = Yh(), { breakpoints: n } = oo(), { navigationTabs: s, selectedNavigationTab: l, version: f } = xr(W5()), {
34978
+ const { t: r } = _a(), t = Uh(), a = Yh(), { breakpoints: n } = uo(), { navigationTabs: s, selectedNavigationTab: l, version: f } = xr(Y5()), {
34978
34979
  isOpenDownloadDialog: c,
34979
34980
  currentReportId: u,
34980
34981
  currentReport: h,
@@ -35040,7 +35041,7 @@ const gN = { class: "flex gap-2 py-16" }, yN = { class: "fm-typo-en-title-md-400
35040
35041
  name: "menu",
35041
35042
  size: "md"
35042
35043
  }),
35043
- _("p", yN, Ge(q(J5)(q(l) ?? "")), 1)
35044
+ _("p", yN, Ge(q(Z5)(q(l) ?? "")), 1)
35044
35045
  ])
35045
35046
  ]),
35046
35047
  default: qe(() => [
@@ -35092,7 +35093,7 @@ const gN = { class: "flex gap-2 py-16" }, yN = { class: "fm-typo-en-title-md-400
35092
35093
  });
35093
35094
  export {
35094
35095
  Iv as G,
35095
- DN as _,
35096
+ IN as _,
35096
35097
  Pv as a,
35097
35098
  To as b,
35098
35099
  mD as c,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as o, resolveComponent as d, createElementBlock as r, openBlock as a, renderSlot as f, createVNode as g, withCtx as _, createCommentVNode as y, createElementVNode as l, toDisplayString as n } from "vue";
2
- import { u as h } from "./vue-i18n-BQN8HgvD.js";
2
+ import { u as h } from "./vue-i18n-CQAzKJVO.js";
3
3
  const v = { class: "flex flex-col h-full" }, D = ["src"], T = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, b = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, F = /* @__PURE__ */ u({
4
4
  __name: "NoData",
5
5
  props: {