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

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