@feedmepos/mf-report 5.4.8 → 5.4.9

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 (30) hide show
  1. package/dist/App-kcBxi_q1.js +133 -0
  2. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-MQNSV-xg.js +59 -0
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-UFE8dqQT.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-pLx3gB7Y.js} +47 -45
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-2KbsvIja.js → Default.vue_vue_type_script_setup_true_lang-1lLJDGcu.js} +9 -8
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-qHXYaBLd.js → DynamicWidget.vue_vue_type_script_setup_true_lang-yMu4zk2g.js} +11 -8
  6. package/dist/{InsightView-m2mp2Vwn.js → InsightView-GIj2fwLa.js} +9 -8
  7. package/dist/{Integration-v7Vx19wK.js → Integration-YTGIj4Ae.js} +31 -29
  8. package/dist/{Integrations-5bMwLGDG.js → Integrations-drS5pVEz.js} +27 -25
  9. package/dist/{Layout-OsxZkd-c.js → Layout-G0qypnQY.js} +1 -1
  10. package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-PJJaEOeS.js +7994 -0
  11. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-rG63dKPQ.js → MenuTab.vue_vue_type_script_setup_true_lang-UHwO2Vm5.js} +39 -35
  12. package/dist/NavigationTab.vue_vue_type_script_setup_true_lang-LsUKLCAW.js +26885 -0
  13. package/dist/{OverviewView-bcZDNzyp.js → OverviewView-1MQAX-5G.js} +4 -4
  14. package/dist/{Report-QoZGgCFl.js → Report-WYkPEjUh.js} +47 -45
  15. package/dist/{ReportEditor-4XSyHMDr.js → ReportEditor-6EAPap-S.js} +17 -15
  16. package/dist/{ReportView-sA3IRxvk.js → ReportView-aky03f2y.js} +36 -33
  17. package/dist/{Setting-ciEdGVzI.js → Setting-IV26Ng45.js} +36 -34
  18. package/dist/{TileEditor-oIzGozIp.js → TileEditor-Qn4ZRR39.js} +20 -15
  19. package/dist/{TransitionFade-u0ffhMND.js → TransitionFade-_dSKw899.js} +65 -62
  20. package/dist/_plugin-vue_export-helper-hUChTQA_.js +9 -0
  21. package/dist/app.js +85 -3
  22. package/dist/global-loader-hSpvBPX1.js +3265 -0
  23. package/dist/index-JAqUtp7I.js +143 -0
  24. package/dist/message-dialog-yXvmoAPz.js +20 -0
  25. package/dist/report-schema-IBXDBT4U.js +31 -0
  26. package/dist/{timeFormat-KhCrm7K_.js → timeFormat-yx3JOmGm.js} +1 -1
  27. package/dist/v4-Ihuna0O0.js +17578 -0
  28. package/package.json +6 -4
  29. package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-CXdNe2NF.js +0 -84
  30. package/dist/app-hTKIk5PV.js +0 -48128
@@ -1,9 +1,11 @@
1
1
  import { defineComponent as M, mergeModels as Ve, useModel as L, computed as R, resolveComponent as V, openBlock as u, createElementBlock as k, createElementVNode as l, normalizeClass as De, Fragment as K, renderList as j, createVNode as o, createBlock as T, withCtx as ue, toDisplayString as me, createCommentVNode as Y, unref as H, ref as P, watch as re, isRef as pe, h as F, resolveDynamicComponent as de, onMounted as Ce } from "vue";
2
2
  import { useRouter as oe, useRoute as Se } from "vue-router";
3
- import { I as le, w as Ue, d as Fe, j as ce, c as fe, b as ve, a as ne, x as Te, y as Ie, z as Ne, t as ge, A as ye, B as xe, E as $e, G as ae, H as ke } from "./app-hTKIk5PV.js";
3
+ import { I as le, f as Ue, c as ce, d as fe, a as ne, o as Fe, p as Te, k as Ie, n as ve, q as ge, r as ye, s as $e, A as ae, t as ke } from "./global-loader-hSpvBPX1.js";
4
+ import { u as xe } from "./message-dialog-yXvmoAPz.js";
4
5
  import { useSnackbar as se } from "@feedmepos/ui-library";
5
6
  import { storeToRefs as be } from "pinia";
6
- import { _ as we } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-UFE8dqQT.js";
7
+ import { _ as we } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-pLx3gB7Y.js";
8
+ import { s as Ne } from "./index-JAqUtp7I.js";
7
9
  const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, Pe = {
8
10
  key: 0,
9
11
  class: "w-[50%]"
@@ -156,11 +158,11 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
156
158
  ])) : Y("", !0),
157
159
  l("div", Ee, [
158
160
  l("div", He, [
159
- l("div", Ye, me(H(Ue)(C.label)) + " time ", 1),
161
+ l("div", Ye, me(H(Ne)(C.label)) + " time ", 1),
160
162
  l("div", qe, [
161
163
  o(i, {
162
164
  class: "gap-[0px]",
163
- "model-value": H(Fe)().hour(((D = e.value.triggerTime) == null ? void 0 : D.hour) ?? 0).minute(((s = e.value.triggerTime) == null ? void 0 : s.minute) ?? 0).format("HH:mm"),
165
+ "model-value": H(Ue)().hour(((D = e.value.triggerTime) == null ? void 0 : D.hour) ?? 0).minute(((s = e.value.triggerTime) == null ? void 0 : s.minute) ?? 0).format("HH:mm"),
164
166
  "onUpdate:modelValue": f[2] || (f[2] = (c) => {
165
167
  c && (e.value.triggerTime.hour = Number(c.split(":")[0]), e.value.triggerTime.minute = Number(c.split(":")[1]));
166
168
  })
@@ -200,7 +202,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
200
202
  },
201
203
  emits: ["update:modelValue"],
202
204
  setup(C) {
203
- const e = L(C, "modelValue"), x = se(), h = ce(), f = oe(), { promptLoader: y } = fe(), { promptMessage: $ } = ve(), { restaurants: i } = ne(), D = P(!1), s = R(
205
+ const e = L(C, "modelValue"), x = se(), h = ce(), f = oe(), { promptLoader: y } = fe(), { promptMessage: $ } = xe(), { restaurants: i } = ne(), D = P(!1), s = R(
204
206
  () => i.map((p) => ({ label: p.name, value: p.id }))
205
207
  ), c = P([]), v = R(() => {
206
208
  var p, d;
@@ -218,7 +220,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
218
220
  );
219
221
  const r = P(0);
220
222
  async function w() {
221
- e.value._id && (c.value = (await Te(e.value._id)).map((p) => ({
223
+ e.value._id && (c.value = (await Fe(e.value._id)).map((p) => ({
222
224
  value: p.id,
223
225
  label: p.name
224
226
  })));
@@ -231,10 +233,10 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
231
233
  await $({
232
234
  message: `Confirm disconnect ${(N = (d = e.value.platform) == null ? void 0 : d.tenant) == null ? void 0 : N.name}`,
233
235
  title: "Disconnect Xero"
234
- }) && (await Ie(e.value._id), await h.getSettings(), c.value = []);
236
+ }) && (await Te(e.value._id), await h.getSettings(), c.value = []);
235
237
  else if (e.value._id)
236
238
  try {
237
- const I = await Ne(e.value._id);
239
+ const I = await Ie(e.value._id);
238
240
  D.value = !0;
239
241
  const O = setInterval(async () => {
240
242
  var A;
@@ -258,7 +260,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
258
260
  title: "Delete"
259
261
  }) && await y(async () => {
260
262
  try {
261
- await ge(e.value._id), await h.getSettings(), f.back();
263
+ await ve(e.value._id), await h.getSettings(), f.back();
262
264
  } catch (d) {
263
265
  x.open({ type: "error", message: d.message });
264
266
  }
@@ -267,7 +269,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
267
269
  async function m() {
268
270
  await y(async () => {
269
271
  try {
270
- await ye(e.value._id, e.value), await h.getSettings();
272
+ await ge(e.value._id, e.value), await h.getSettings();
271
273
  } catch (p) {
272
274
  x.open({ type: "error", message: p.message });
273
275
  }
@@ -556,7 +558,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
556
558
  async () => {
557
559
  if (f.value._id)
558
560
  try {
559
- y.value = !0, e.value = await xe(f.value._id);
561
+ y.value = !0, e.value = await ye(f.value._id);
560
562
  } catch (s) {
561
563
  $.open({ message: s.message, type: "error" });
562
564
  } finally {
@@ -673,7 +675,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
673
675
  },
674
676
  emits: ["update:modelValue"],
675
677
  setup(C) {
676
- const e = L(C, "modelValue"), x = se(), h = ce(), f = oe(), { promptLoader: y } = fe(), { promptMessage: $ } = ve(), { restaurants: i } = ne(), D = R(
678
+ const e = L(C, "modelValue"), x = se(), h = ce(), f = oe(), { promptLoader: y } = fe(), { promptMessage: $ } = xe(), { restaurants: i } = ne(), D = R(
677
679
  () => i.map((m) => ({ label: m.name, value: m.id }))
678
680
  );
679
681
  async function s() {
@@ -682,7 +684,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
682
684
  title: "Delete"
683
685
  }) && await y(async () => {
684
686
  try {
685
- await ge(e.value._id), await h.getSettings(), f.back();
687
+ await ve(e.value._id), await h.getSettings(), f.back();
686
688
  } catch (t) {
687
689
  x.open({ type: "error", message: t.message });
688
690
  }
@@ -691,7 +693,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
691
693
  async function c() {
692
694
  await y(async () => {
693
695
  try {
694
- await ye(e.value._id, e.value), await h.getSettings();
696
+ await ge(e.value._id, e.value), await h.getSettings();
695
697
  } catch (m) {
696
698
  x.open({ type: "error", message: m.message });
697
699
  }
@@ -1139,7 +1141,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1139
1141
  async () => {
1140
1142
  if (f.value._id)
1141
1143
  try {
1142
- y.value = !0, e.value = await xe(f.value._id);
1144
+ y.value = !0, e.value = await ye(f.value._id);
1143
1145
  } catch (s) {
1144
1146
  $.open({ message: s.message, type: "error" });
1145
1147
  } finally {
@@ -1256,7 +1258,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1256
1258
  },
1257
1259
  emits: ["update:modelValue"],
1258
1260
  setup(C) {
1259
- const e = L(C, "modelValue"), x = se(), h = ce(), f = oe(), { promptLoader: y } = fe(), { promptMessage: $ } = ve(), { restaurants: i } = ne(), D = R(
1261
+ const e = L(C, "modelValue"), x = se(), h = ce(), f = oe(), { promptLoader: y } = fe(), { promptMessage: $ } = xe(), { restaurants: i } = ne(), D = R(
1260
1262
  () => i.map((m) => ({ label: m.name, value: m.id }))
1261
1263
  );
1262
1264
  async function s() {
@@ -1265,7 +1267,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1265
1267
  title: "Delete"
1266
1268
  }) && await y(async () => {
1267
1269
  try {
1268
- await ge(e.value._id), await h.getSettings(), f.back();
1270
+ await ve(e.value._id), await h.getSettings(), f.back();
1269
1271
  } catch (t) {
1270
1272
  x.open({ type: "error", message: t.message });
1271
1273
  }
@@ -1274,7 +1276,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1274
1276
  async function c() {
1275
1277
  await y(async () => {
1276
1278
  try {
1277
- await ye(e.value._id, e.value), await h.getSettings();
1279
+ await ge(e.value._id, e.value), await h.getSettings();
1278
1280
  } catch (m) {
1279
1281
  x.open({ type: "error", message: m.message });
1280
1282
  }
@@ -1640,7 +1642,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1640
1642
  async () => {
1641
1643
  if (f.value._id)
1642
1644
  try {
1643
- y.value = !0, e.value = await xe(f.value._id);
1645
+ y.value = !0, e.value = await ye(f.value._id);
1644
1646
  } catch (s) {
1645
1647
  $.open({ message: s.message, type: "error" });
1646
1648
  } finally {
@@ -1757,7 +1759,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1757
1759
  },
1758
1760
  emits: ["update:modelValue"],
1759
1761
  setup(C) {
1760
- const e = L(C, "modelValue"), x = se(), h = ce(), f = oe(), { promptLoader: y } = fe(), { promptMessage: $ } = ve(), { restaurants: i } = ne(), D = R(
1762
+ const e = L(C, "modelValue"), x = se(), h = ce(), f = oe(), { promptLoader: y } = fe(), { promptMessage: $ } = xe(), { restaurants: i } = ne(), D = R(
1761
1763
  () => i.map((m) => ({ label: m.name, value: m.id }))
1762
1764
  );
1763
1765
  async function s() {
@@ -1766,7 +1768,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1766
1768
  title: "Delete"
1767
1769
  }) && await y(async () => {
1768
1770
  try {
1769
- await ge(e.value._id), await h.getSettings(), f.back();
1771
+ await ve(e.value._id), await h.getSettings(), f.back();
1770
1772
  } catch (t) {
1771
1773
  x.open({ type: "error", message: t.message });
1772
1774
  }
@@ -1775,7 +1777,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1775
1777
  async function c() {
1776
1778
  await y(async () => {
1777
1779
  try {
1778
- await ye(e.value._id, e.value), await h.getSettings();
1780
+ await ge(e.value._id, e.value), await h.getSettings();
1779
1781
  } catch (m) {
1780
1782
  x.open({ type: "error", message: m.message });
1781
1783
  }
@@ -2156,7 +2158,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2156
2158
  async () => {
2157
2159
  if (f.value._id)
2158
2160
  try {
2159
- y.value = !0, e.value = await xe(f.value._id);
2161
+ y.value = !0, e.value = await ye(f.value._id);
2160
2162
  } catch (s) {
2161
2163
  $.open({ message: s.message, type: "error" });
2162
2164
  } finally {
@@ -2273,7 +2275,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2273
2275
  },
2274
2276
  emits: ["update:modelValue"],
2275
2277
  setup(C) {
2276
- const e = L(C, "modelValue"), x = se(), h = ce(), f = oe(), { promptLoader: y } = fe(), { promptMessage: $ } = ve(), { restaurants: i } = ne(), D = R(
2278
+ const e = L(C, "modelValue"), x = se(), h = ce(), f = oe(), { promptLoader: y } = fe(), { promptMessage: $ } = xe(), { restaurants: i } = ne(), D = R(
2277
2279
  () => i.map((w) => ({ label: w.name, value: w.id }))
2278
2280
  );
2279
2281
  async function s() {
@@ -2282,7 +2284,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2282
2284
  title: "Delete"
2283
2285
  }) && await y(async () => {
2284
2286
  try {
2285
- await ge(e.value._id), await h.getSettings(), f.back();
2287
+ await ve(e.value._id), await h.getSettings(), f.back();
2286
2288
  } catch (a) {
2287
2289
  x.open({ type: "error", message: a.message });
2288
2290
  }
@@ -2291,7 +2293,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2291
2293
  async function c() {
2292
2294
  await y(async () => {
2293
2295
  try {
2294
- await ye(e.value._id, e.value), await h.getSettings();
2296
+ await ge(e.value._id, e.value), await h.getSettings();
2295
2297
  } catch (w) {
2296
2298
  x.open({ type: "error", message: w.message });
2297
2299
  }
@@ -2435,7 +2437,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2435
2437
  async () => {
2436
2438
  if (h.value._id)
2437
2439
  try {
2438
- f.value = !0, e.value = await xe(h.value._id);
2440
+ f.value = !0, e.value = await ye(h.value._id);
2439
2441
  } catch (D) {
2440
2442
  y.open({ message: D.message, type: "error" });
2441
2443
  } finally {
@@ -2541,7 +2543,7 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2541
2543
  ]);
2542
2544
  };
2543
2545
  }
2544
- }), wa = { class: "px-24 h-full relative" }, Ca = /* @__PURE__ */ M({
2546
+ }), wa = { class: "px-24 h-full relative" }, Ua = /* @__PURE__ */ M({
2545
2547
  __name: "Integration",
2546
2548
  setup(C) {
2547
2549
  const e = P(void 0), { params: x } = Se(), h = ce(), f = P();
@@ -2581,5 +2583,5 @@ const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2581
2583
  }
2582
2584
  });
2583
2585
  export {
2584
- Ca as default
2586
+ Ua as default
2585
2587
  };
@@ -1,10 +1,12 @@
1
- import { defineComponent as P, mergeModels as L, useModel as U, computed as R, resolveComponent as v, unref as x, openBlock as w, createBlock as h, withCtx as k, createElementVNode as r, createVNode as s, createTextVNode as W, ref as T, createElementBlock as z, Fragment as Y, h as c } from "vue";
1
+ import { defineComponent as P, mergeModels as W, useModel as U, computed as R, resolveComponent as v, unref as x, openBlock as w, createBlock as h, withCtx as k, createElementVNode as r, createVNode as s, createTextVNode as j, ref as T, createElementBlock as z, Fragment as Y, h as c } from "vue";
2
2
  import { useRouter as J, useRoute as Q } from "vue-router";
3
- import { I as q, j as D, c as X, b as Z, s as $, t as ee, m as oe } from "./app-hTKIk5PV.js";
4
- import { useBreakpoints as E, useSnackbar as ae, FmButtonColorThemeVariant as S, components as te } from "@feedmepos/ui-library";
5
- import { _ as le } from "./SelectComponent.vue_vue_type_script_setup_true_lang-6i3u0Axg.js";
3
+ import { I as q, c as D, d as X, m as $, n as Z } from "./global-loader-hSpvBPX1.js";
4
+ import { useBreakpoints as E, useSnackbar as ee, FmButtonColorThemeVariant as S, components as oe } from "@feedmepos/ui-library";
5
+ import { _ as ae } from "./SelectComponent.vue_vue_type_script_setup_true_lang-6i3u0Axg.js";
6
6
  import { storeToRefs as G } from "pinia";
7
- import { _ as ne } from "./NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js";
7
+ import { u as te } from "./message-dialog-yXvmoAPz.js";
8
+ import { _ as le } from "./NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js";
9
+ import { _ as ne } from "./_plugin-vue_export-helper-hUChTQA_.js";
8
10
  const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex gap-2 overflow-hidden" }, ie = { class: "flex flex-col w-full" }, me = { class: "flex flex-col gap-5 p-6" }, ue = { class: "flex" }, de = /* @__PURE__ */ P({
9
11
  __name: "AddIntegrationDialog",
10
12
  props: {
@@ -15,15 +17,15 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
15
17
  },
16
18
  formModifiers: {}
17
19
  },
18
- emits: /* @__PURE__ */ L(["confirm"], ["update:modelValue", "update:form"]),
19
- setup(A, { emit: V }) {
20
- const u = U(A, "modelValue"), n = U(A, "form"), { breakpoints: _ } = E(), { options: C } = G(D()), y = R(
20
+ emits: /* @__PURE__ */ W(["confirm"], ["update:modelValue", "update:form"]),
21
+ setup(A, { emit: _ }) {
22
+ const u = U(A, "modelValue"), n = U(A, "form"), { breakpoints: V } = E(), { options: C } = G(D()), y = R(
21
23
  () => C.value.map((i) => ({
22
24
  label: i.name,
23
25
  value: i.platform,
24
26
  sublabel: i.type
25
27
  }))
26
- ), p = V;
28
+ ), p = _;
27
29
  function f() {
28
30
  u.value = !1;
29
31
  }
@@ -32,7 +34,7 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
32
34
  }
33
35
  return (i, e) => {
34
36
  const F = v("FmTextField"), B = v("FmSelect"), b = v("FmButton"), I = v("FmDialog"), N = v("FmBottomSheet");
35
- return x(_).lg || x(_).md ? (w(), h(I, {
37
+ return x(V).lg || x(V).md ? (w(), h(I, {
36
38
  key: 0,
37
39
  modelValue: u.value,
38
40
  "onUpdate:modelValue": e[2] || (e[2] = (l) => u.value = l),
@@ -80,7 +82,7 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
80
82
  "onUpdate:modelValue": e[5] || (e[5] = (l) => u.value = l)
81
83
  }, {
82
84
  "bottom-sheet-header": k(() => e[8] || (e[8] = [
83
- W("Integration")
85
+ j("Integration")
84
86
  ])),
85
87
  default: k(() => [
86
88
  r("div", se, [
@@ -92,7 +94,7 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
92
94
  label: "Name",
93
95
  placeholder: "Enter a name"
94
96
  }, null, 8, ["modelValue"]),
95
- s(le, {
97
+ s(ae, {
96
98
  modelValue: n.value.platform,
97
99
  "onUpdate:modelValue": e[4] || (e[4] = (l) => n.value.platform = l),
98
100
  label: "Integration",
@@ -122,8 +124,8 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
122
124
  }), ce = { class: "gap-24 px-24 py-16 h-full" }, pe = /* @__PURE__ */ P({
123
125
  __name: "Integrations",
124
126
  setup(A) {
125
- const V = J(), u = Q(), { settings: n, options: _, disabled: C } = G(D()), { getSettings: y } = D(), p = ae(), { promptLoader: f } = X(), g = T(!1), i = T({ name: "", platform: q.AutoCount }), e = R(() => n.value.reduce((o, a) => {
126
- const d = _.value.find((t) => t.platform === a.platform.name);
127
+ const _ = J(), u = Q(), { settings: n, options: V, disabled: C } = G(D()), { getSettings: y } = D(), p = ee(), { promptLoader: f } = X(), g = T(!1), i = T({ name: "", platform: q.AutoCount }), e = R(() => n.value.reduce((o, a) => {
128
+ const d = V.value.find((t) => t.platform === a.platform.name);
127
129
  return d && o.push({
128
130
  id: a._id,
129
131
  name: a.name,
@@ -146,7 +148,7 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
146
148
  name: i.value.platform
147
149
  }
148
150
  });
149
- await y(), g.value = !1, V.push({
151
+ await y(), g.value = !1, _.push({
150
152
  name: "integration",
151
153
  params: { id: o._id },
152
154
  query: u.query
@@ -156,15 +158,15 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
156
158
  }
157
159
  });
158
160
  }
159
- const { promptMessage: b } = Z();
161
+ const { promptMessage: b } = te();
160
162
  async function I(o) {
161
- o === "new" ? g.value = !0 : o ? V.push({
163
+ o === "new" ? g.value = !0 : o ? _.push({
162
164
  name: "integration",
163
165
  params: { id: o },
164
166
  query: u.query
165
167
  }) : p.open({ type: "error", message: "Invalid integration" });
166
168
  }
167
- const { FmButton: N, FmMenu: l, FmMenuItem: K, FmIcon: fe, FmChip: O } = te, { breakpoints: M } = E(), j = [
169
+ const { FmButton: N, FmMenu: l, FmMenuItem: K, FmIcon: fe, FmChip: O } = oe, { breakpoints: M } = E(), H = [
168
170
  {
169
171
  accessorKey: "name",
170
172
  header: "Name",
@@ -228,7 +230,7 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
228
230
  title: "Delete"
229
231
  }) && await f(async () => {
230
232
  try {
231
- await ee(a.id), await F();
233
+ await Z(a.id), await F();
232
234
  } catch (m) {
233
235
  p.open({ type: "error", message: m.message });
234
236
  }
@@ -279,7 +281,7 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
279
281
  }
280
282
  }
281
283
  ];
282
- function H(o) {
284
+ function L(o) {
283
285
  C.value ? p.open({ message: "Your current plan does not support integrations.", type: "error" }) : o === "create" && I("new");
284
286
  }
285
287
  return (o, a) => {
@@ -305,19 +307,19 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
305
307
  prependIcon: "add"
306
308
  }
307
309
  ],
308
- "onClick:action": H
310
+ "onClick:action": L
309
311
  }, null, 8, ["actions"]),
310
312
  r("div", ce, [
311
313
  e.value.length > 0 ? (w(), h(t, {
312
314
  key: 0,
313
315
  ref: "table",
314
316
  "row-data": e.value,
315
- "column-defs": j,
317
+ "column-defs": H,
316
318
  "shrink-at": !1,
317
319
  onRowClick: a[2] || (a[2] = (m) => {
318
320
  I(m.original.id);
319
321
  })
320
- }, null, 8, ["row-data"])) : (w(), h(ne, {
322
+ }, null, 8, ["row-data"])) : (w(), h(le, {
321
323
  key: 1,
322
324
  title: "No integration",
323
325
  "sub-title": "No integration can be found"
@@ -326,7 +328,7 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
326
328
  ], 64);
327
329
  };
328
330
  }
329
- }), we = /* @__PURE__ */ oe(pe, [["__scopeId", "data-v-af4dc7b5"]]);
331
+ }), Ve = /* @__PURE__ */ ne(pe, [["__scopeId", "data-v-af4dc7b5"]]);
330
332
  export {
331
- we as default
333
+ Ve as default
332
334
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, resolveComponent as t, openBlock as r, createBlock as n, withCtx as _, createVNode as c } from "vue";
2
- import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-2KbsvIja.js";
2
+ import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-1lLJDGcu.js";
3
3
  const f = /* @__PURE__ */ o({
4
4
  __name: "Layout",
5
5
  setup(m) {