@feedmepos/mf-settings 0.0.50-beta.1 → 0.0.50-prod

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.
@@ -1,10 +1,10 @@
1
1
  import { unref as n, defineComponent as A, openBlock as v, createElementBlock as y, ref as f, watch as $, computed as j, watchEffect as G, onBeforeUnmount as P, resolveComponent as h, createVNode as g, withCtx as W, createElementVNode as s, toDisplayString as b, Fragment as z, renderList as R, normalizeClass as Z, createBlock as q, createCommentVNode as Q } from "vue";
2
2
  import { useCoreStore as Y, useI18n as J, CountryOptions as K } from "@feedmepos/mf-common";
3
3
  import { _ as X, r as ee } from "./rules-c9fa22f8.js";
4
- import { b as w } from "./business-9a4e5bd7.js";
4
+ import { b as w } from "./business-93826a8c.js";
5
5
  import "./index-f1e5e565.js";
6
6
  import { useSnackbar as te } from "@feedmepos/ui-library";
7
- import { u as se, F as ne } from "./loading-84215dce.js";
7
+ import { u as se, F as ne } from "./loading-6ee8ebc9.js";
8
8
  import { useRouter as oe } from "vue-router";
9
9
  import "pinia";
10
10
  function L(r) {
@@ -6,7 +6,7 @@ import { l as q, c as V, d as ze, a as Sc, e as Ei, b as Yf } from "./index-f1e5
6
6
  import { c as Qg, a as zd } from "./index-1eb3cc0a.js";
7
7
  import { d as Xg, _ as hc, u as Zg, a as xg } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js";
8
8
  import { useSnackbar as ml, components as so, useDialogChild as ep, useDialog as Kf, useBreakpoints as tp } from "@feedmepos/ui-library";
9
- import { g as Gn, r as la, b as Fd, u as Oc } from "./loading-84215dce.js";
9
+ import { g as Gn, r as la, b as Fd, u as Oc } from "./loading-6ee8ebc9.js";
10
10
  import { useCoreStore as gl, useI18n as Tc } from "@feedmepos/mf-common";
11
11
  import { c as Hf, _ as np, a as C$ } from "./createForm-681e977a.js";
12
12
  import "pinia";
@@ -3,12 +3,12 @@ import { useCoreStore as wo, useI18n as Do } from "@feedmepos/mf-common";
3
3
  import { useDialog as Po, useSnackbar as xo, components as Ym, useBreakpoints as Xm, FmButtonVariant as qm } from "@feedmepos/ui-library";
4
4
  import { c as Ci, _ as Jm, a as Zm } from "./createForm-681e977a.js";
5
5
  import { _ as Qm, c as zm } from "./actionButton-cc6bcf01.js";
6
- import { u as Fo } from "./loading-84215dce.js";
6
+ import { u as Fo } from "./loading-6ee8ebc9.js";
7
7
  import { c as br } from "./index-f1e5e565.js";
8
8
  import { defineStore as jm } from "pinia";
9
- import { b as es } from "./business-9a4e5bd7.js";
9
+ import { b as es } from "./business-93826a8c.js";
10
10
  import "@vue/devtools-api";
11
- import { _ as eE } from "./app-abfabbcf.js";
11
+ import { _ as eE } from "./app-bd3cfc9c.js";
12
12
  import "@feedmepos/mf-mdm";
13
13
  import "vue-router";
14
14
  import "@feedmepos/mf-e-invoice";
@@ -0,0 +1,27 @@
1
+ import { defineComponent as o, computed as n, resolveComponent as d, openBlock as s, createElementBlock as c, createVNode as m } from "vue";
2
+ import { useCoreStore as u, FeedMeAuth as i } from "@feedmepos/mf-common";
3
+ const l = {
4
+ key: 0,
5
+ class: "w-full h-full flex items-center justify-center"
6
+ }, p = ["src"], h = /* @__PURE__ */ o({
7
+ __name: "TemplateBuilder",
8
+ setup(f) {
9
+ const e = u(), t = n(() => {
10
+ var r;
11
+ return e.currentBusiness.value ? `https://print-template-builder.feedme.cc//#/receipt-info?businessId=${(r = e.currentBusiness.value) == null ? void 0 : r.id}&country=${e.currentCountry.value}&token=${i.token}` : "";
12
+ });
13
+ return (r, b) => {
14
+ const a = d("FmCircularProgress");
15
+ return t.value ? (s(), c("iframe", {
16
+ key: 1,
17
+ class: "w-full h-full",
18
+ src: t.value
19
+ }, null, 8, p)) : (s(), c("div", l, [
20
+ m(a, { size: "lg" })
21
+ ]));
22
+ };
23
+ }
24
+ });
25
+ export {
26
+ h as default
27
+ };
@@ -1,54 +1,56 @@
1
- import { FmApp as p, routers as g, i18nMessages as l } from "@feedmepos/mf-mdm";
2
- import { ref as d, watch as b, nextTick as v, onMounted as h, onBeforeUnmount as _, defineComponent as c, computed as y, openBlock as u, createElementBlock as f, normalizeStyle as R, renderSlot as w, resolveComponent as L, createBlock as C, withCtx as U, createElementVNode as q, createVNode as A, defineAsyncComponent as T } from "vue";
1
+ import { FmApp as b, routers as v, i18nMessages as d } from "@feedmepos/mf-mdm";
2
+ import { ref as m, watch as c, nextTick as u, onMounted as h, onBeforeUnmount as _, defineComponent as p, computed as y, openBlock as g, createElementBlock as f, normalizeStyle as R, renderSlot as w, resolveComponent as L, createBlock as C, withCtx as U, createElementVNode as q, createVNode as A, defineAsyncComponent as T } from "vue";
3
3
  import { useBreakpoints as k } from "@feedmepos/ui-library";
4
4
  import "vue-router";
5
5
  import { FmApp as F, routers as x } from "@feedmepos/mf-e-invoice";
6
6
  import { withPermission as S } from "@feedmepos/mf-common";
7
- function $(e) {
8
- const n = d({ top: 0, bottom: 0, left: 0, right: 0 });
9
- function a() {
7
+ function $(e, o) {
8
+ const n = m({ top: 0, bottom: 0, left: 0, right: 0 });
9
+ function t() {
10
10
  if (e.value) {
11
- const t = e.value.getBoundingClientRect();
11
+ const a = e.value.getBoundingClientRect();
12
12
  n.value = {
13
- top: t.top,
14
- bottom: t.bottom,
15
- left: t.left,
16
- right: t.right
13
+ top: a.top,
14
+ bottom: a.bottom,
15
+ left: a.left,
16
+ right: a.right
17
17
  };
18
18
  }
19
19
  }
20
- return b(e, async (t) => {
21
- t && (await v(), a());
20
+ return c(o, async () => {
21
+ await u(), t();
22
+ }), c(e, async (a) => {
23
+ a && (await u(), t());
22
24
  }), h(() => {
23
- window.addEventListener("resize", a);
25
+ window.addEventListener("resize", t);
24
26
  }), _(() => {
25
- window.removeEventListener("resize", a);
27
+ window.removeEventListener("resize", t);
26
28
  }), n;
27
29
  }
28
- const I = /* @__PURE__ */ c({
30
+ const I = /* @__PURE__ */ p({
29
31
  __name: "FullWrapper",
30
32
  setup(e) {
31
- const n = k(), a = d(null), t = $(a), m = y(() => {
32
- var r;
33
- const s = n.isAtMost("sm") ? 56 : 0;
33
+ const o = k(), n = m(null), t = $(n), a = y(() => {
34
+ var l;
35
+ const r = o.isAtMost("sm") ? 56 : 0;
34
36
  return {
35
- height: `calc(100dvh - ${((r = t.value) == null ? void 0 : r.top) + 24 + s}px)`
37
+ height: `calc(100dvh - ${((l = t.value) == null ? void 0 : l.top) + 24 + r}px)`
36
38
  };
37
39
  });
38
- return (o, s) => (u(), f("div", {
40
+ return (s, r) => (g(), f("div", {
39
41
  ref_key: "wrapper",
40
- ref: a,
41
- style: R(m.value)
42
+ ref: n,
43
+ style: R(a.value)
42
44
  }, [
43
- w(o.$slots, "default")
45
+ w(s.$slots, "default")
44
46
  ], 4));
45
47
  }
46
- }), N = { class: "flex justify-center items-center h-full w-full" }, P = /* @__PURE__ */ c({
48
+ }), N = { class: "flex justify-center items-center h-full w-full" }, P = /* @__PURE__ */ p({
47
49
  __name: "PageLoading",
48
50
  setup(e) {
49
- return (n, a) => {
51
+ return (o, n) => {
50
52
  const t = L("FmCircularProgress");
51
- return u(), C(I, null, {
53
+ return g(), C(I, null, {
52
54
  default: U(() => [
53
55
  q("div", N, [
54
56
  A(t, { size: "xl" })
@@ -696,7 +698,7 @@ const I = /* @__PURE__ */ c({
696
698
  {
697
699
  path: "/business",
698
700
  name: "$settings-my-business",
699
- component: i(() => import("./Business-416835ab.js")),
701
+ component: i(() => import("./Business-edf5bd92.js")),
700
702
  meta: {
701
703
  i18nKey: "settings.business.title"
702
704
  }
@@ -704,7 +706,7 @@ const I = /* @__PURE__ */ c({
704
706
  {
705
707
  path: "/create-business",
706
708
  name: "$settings-create-business",
707
- component: i(() => import("./CreateBusiness-138ac258.js")),
709
+ component: i(() => import("./CreateBusiness-ec365db8.js")),
708
710
  meta: {
709
711
  hideNavigation: !0
710
712
  }
@@ -712,7 +714,7 @@ const I = /* @__PURE__ */ c({
712
714
  {
713
715
  path: "/foodcourt",
714
716
  name: "$settings-food-court",
715
- component: i(() => import("./FoodCourt-561cd7e3.js")),
717
+ component: i(() => import("./FoodCourt-652c44f9.js")),
716
718
  meta: {
717
719
  i18nKey: "settings.food_court.list.title"
718
720
  }
@@ -720,8 +722,8 @@ const I = /* @__PURE__ */ c({
720
722
  {
721
723
  path: "/devices",
722
724
  name: "$settings-device",
723
- component: p,
724
- children: g.map((e) => ({ ...e, path: `/device${e.path}` })),
725
+ component: b,
726
+ children: v.map((e) => ({ ...e, path: `/device${e.path}` })),
725
727
  meta: {
726
728
  i18nKey: "settings.device.title"
727
729
  }
@@ -729,7 +731,7 @@ const I = /* @__PURE__ */ c({
729
731
  {
730
732
  path: "/template-builder",
731
733
  name: "$settings-template-builder",
732
- component: i(() => import("./TemplateBuilder-54a34178.js")),
734
+ component: i(() => import("./TemplateBuilder-3e34e9e8.js")),
733
735
  meta: {
734
736
  i18nKey: "settings.templateBuilder.title"
735
737
  }
@@ -754,7 +756,7 @@ const I = /* @__PURE__ */ c({
754
756
  {
755
757
  path: "/tagging",
756
758
  name: "$settings-tagging",
757
- component: S(i(() => import("./Tagging-b746a5f3.js"))),
759
+ component: S(i(() => import("./Tagging-798e2bb7.js"))),
758
760
  meta: {
759
761
  i18nKey: "settings.tagging.title",
760
762
  validationManifest: {
@@ -763,14 +765,14 @@ const I = /* @__PURE__ */ c({
763
765
  hideNavigation: !0
764
766
  }
765
767
  }
766
- ], Q = i(() => import("./App-22eddb78.js")), Y = {
768
+ ], Q = i(() => import("./App-ccc37fd9.js")), Y = {
767
769
  "en-US": {
768
770
  ...E,
769
- ...l["en-US"]
771
+ ...d["en-US"]
770
772
  },
771
773
  "zh-CN": {
772
774
  ...M,
773
- ...l["zh-CN"]
775
+ ...d["zh-CN"]
774
776
  }
775
777
  };
776
778
  export {
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@feedmepos/mf-mdm";
2
- import { F as e, i as F, r as f } from "./app-abfabbcf.js";
2
+ import { F as e, i as F, r as f } from "./app-bd3cfc9c.js";
3
3
  import "vue";
4
4
  import "@feedmepos/ui-library";
5
5
  import "vue-router";