@feedmepos/mf-settings 0.0.67 → 0.0.68-beta.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.
@@ -1,9 +1,9 @@
1
1
  import { unref as a, openBlock as Q, createBlock as N, createCommentVNode as m, withScopeId as Z, defineComponent as L, createElementBlock as S, ref as c, watch as W, computed as w, watchEffect as E, onBeforeUnmount as G, resolveComponent as B, createVNode as b, withCtx as Y, createElementVNode as e, toDisplayString as l, Fragment as M, renderList as _, normalizeClass as $ } from "vue";
2
- import { u as AA, F as oA } from "./index-86d32a84.js";
2
+ import { u as AA, F as oA } from "./index-3f4c8817.js";
3
3
  import { useCoreStore as nA, useI18n as gA, useCountry as fA } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as aA } from "@feedmepos/ui-library";
5
5
  import { r as eA } from "./rules-2bee6632.js";
6
- import { b as v } from "./business-f296dbaa.js";
6
+ import { b as v } from "./business-7684bcec.js";
7
7
  import { _ as pA } from "./_plugin-vue_export-helper-dad06003.js";
8
8
  import "pinia";
9
9
  import "./index-b9ef9a01.js";
@@ -9,7 +9,7 @@ import { d as j1, u as C1 } from "./dayjs.min-6eec923a.js";
9
9
  import { components as zs, useSnackbar as Ec, useDialogChild as k1, useDialog as Tb, useBreakpoints as M1 } from "@feedmepos/ui-library";
10
10
  import { _ as D1 } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8f929a2d.js";
11
11
  import { _ as N1, c as ip } from "./createForm-d3b97d2e.js";
12
- import { g as Rr, c as Ia, b as l$, u as zm } from "./index-86d32a84.js";
12
+ import { g as Rr, c as Ia, b as l$, u as zm } from "./index-3f4c8817.js";
13
13
  import { c as Ob } from "./object-27ce045b.js";
14
14
  import "pinia";
15
15
  var d$ = {}, qn = {}, Fc = {};
@@ -4,7 +4,7 @@ import { useSnackbar as Sn, components as Tn, useBreakpoints as Cn, useDialog as
4
4
  import { _ as In } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8f929a2d.js";
5
5
  import { _ as On, c as xt } from "./createForm-d3b97d2e.js";
6
6
  import { _ as It, c as Fn } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
7
- import { u as An, r as Pn, s as Nn } from "./index-86d32a84.js";
7
+ import { u as An, r as Pn, s as Nn } from "./index-3f4c8817.js";
8
8
  import "./index-b9ef9a01.js";
9
9
  import { r as kn } from "./rules-2bee6632.js";
10
10
  import "pinia";
@@ -2,14 +2,14 @@ import { defineComponent as Mr, h as xl, getCurrentInstance as Mi, inject as Bm,
2
2
  import "@vue/devtools-api";
3
3
  import { useI18n as Fl, useCoreStore as Ml } from "@feedmepos/mf-common";
4
4
  import { useDialog as Ul, useSnackbar as kl, components as Qm, useBreakpoints as zm, FmButtonVariant as jm } from "@feedmepos/ui-library";
5
- import { _ as eE } from "./app-ccf4472c.js";
5
+ import { _ as eE } from "./app-bfaa4ee9.js";
6
6
  import { _ as nE, c as rl } from "./createForm-d3b97d2e.js";
7
- import { u as Wl } from "./index-86d32a84.js";
7
+ import { u as Wl } from "./index-3f4c8817.js";
8
8
  import { _ as il, c as tE } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
9
9
  import { c as Cr } from "./index-b9ef9a01.js";
10
10
  import { c as wi } from "./object-27ce045b.js";
11
11
  import { defineStore as rE } from "pinia";
12
- import { b as rs } from "./business-f296dbaa.js";
12
+ import { b as rs } from "./business-7684bcec.js";
13
13
  import "@feedmepos/mf-mdm";
14
14
  import "vue-router";
15
15
  import "@feedmepos/mf-e-invoice";
@@ -0,0 +1,27 @@
1
+ import { defineComponent as a, computed as c, resolveComponent as u, openBlock as s, createElementBlock as o, createVNode as d } from "vue";
2
+ import { useCoreStore as l, FeedMeAuth as m } from "@feedmepos/mf-common";
3
+ const i = {
4
+ key: 0,
5
+ class: "w-full h-full flex items-center justify-center"
6
+ }, p = ["src"], h = /* @__PURE__ */ a({
7
+ __name: "TemplateBuilder",
8
+ setup(f) {
9
+ const e = l(), t = c(() => {
10
+ var r;
11
+ return e.currentBusiness.value ? `https://print-template-builder.feedme.dev//#/receipt-info?businessId=${(r = e.currentBusiness.value) == null ? void 0 : r.id}&country=${e.currentCountry.value}&token=${m.token}` : "";
12
+ });
13
+ return (r, v) => {
14
+ const n = u("FmCircularProgress");
15
+ return t.value ? (s(), o("iframe", {
16
+ key: 1,
17
+ class: "w-full h-full",
18
+ src: t.value
19
+ }, null, 8, p)) : (s(), o("div", i, [
20
+ d(n, { size: "lg" })
21
+ ]));
22
+ };
23
+ }
24
+ });
25
+ export {
26
+ h as default
27
+ };
@@ -1,10 +1,10 @@
1
1
  import { FmApp as y, routers as f, i18nMessages as s } from "@feedmepos/mf-mdm";
2
- import { ref as v, watch as u, nextTick as m, onMounted as R, onBeforeUnmount as w, defineComponent as _, computed as L, openBlock as h, createElementBlock as U, normalizeStyle as q, renderSlot as O, resolveComponent as S, createBlock as T, withCtx as A, createElementVNode as C, createVNode as x, defineAsyncComponent as k } from "vue";
2
+ import { ref as v, watch as u, nextTick as m, onMounted as R, onBeforeUnmount as w, defineComponent as _, computed as L, openBlock as h, createElementBlock as U, normalizeStyle as q, renderSlot as O, resolveComponent as S, createBlock as T, withCtx as A, createElementVNode as C, createVNode as k, defineAsyncComponent as x } from "vue";
3
3
  import { useBreakpoints as I } from "@feedmepos/ui-library";
4
4
  import "vue-router";
5
5
  import { withPermission as p, Permission as g } from "@feedmepos/mf-common";
6
- import { FmApp as N, routers as $ } from "@feedmepos/mf-e-invoice";
7
- import { FmApp as P, routers as F } from "@feedmepos/mf-order-setting";
6
+ import { FmApp as N, routers as P } from "@feedmepos/mf-e-invoice";
7
+ import { FmApp as $, routers as F } from "@feedmepos/mf-order-setting";
8
8
  function D(e, o) {
9
9
  const n = v({ top: 0, bottom: 0, left: 0, right: 0 });
10
10
  function a() {
@@ -54,14 +54,14 @@ const B = /* @__PURE__ */ _({
54
54
  return h(), T(B, null, {
55
55
  default: A(() => [
56
56
  C("div", M, [
57
- x(a, { size: "xl" })
57
+ k(a, { size: "xl" })
58
58
  ])
59
59
  ]),
60
60
  _: 1
61
61
  });
62
62
  };
63
63
  }
64
- }), t = (e) => k({
64
+ }), t = (e) => x({
65
65
  loader: e,
66
66
  loadingComponent: E
67
67
  }), j = {
@@ -1678,7 +1678,7 @@ const B = /* @__PURE__ */ _({
1678
1678
  {
1679
1679
  path: "/business",
1680
1680
  name: "$settings-my-business",
1681
- component: t(() => import("./Business-dec5afb0.js")),
1681
+ component: t(() => import("./Business-9ac30155.js")),
1682
1682
  meta: {
1683
1683
  i18nKey: "settings.business.title"
1684
1684
  }
@@ -1686,7 +1686,7 @@ const B = /* @__PURE__ */ _({
1686
1686
  {
1687
1687
  path: "/create-business",
1688
1688
  name: "$settings-create-business",
1689
- component: t(() => import("./CreateBusiness-4681642d.js")),
1689
+ component: t(() => import("./CreateBusiness-af1ec0c0.js")),
1690
1690
  meta: {
1691
1691
  hideNavigation: !0
1692
1692
  }
@@ -1694,7 +1694,7 @@ const B = /* @__PURE__ */ _({
1694
1694
  {
1695
1695
  path: "/foodcourt",
1696
1696
  name: "$settings-food-court",
1697
- component: t(() => import("./FoodCourt-e0c2e5fa.js")),
1697
+ component: t(() => import("./FoodCourt-c9b603d6.js")),
1698
1698
  meta: {
1699
1699
  i18nKey: "settings.food_court.list.title"
1700
1700
  }
@@ -1712,7 +1712,7 @@ const B = /* @__PURE__ */ _({
1712
1712
  {
1713
1713
  path: "/template-builder",
1714
1714
  name: "$settings-template-builder",
1715
- component: t(() => import("./TemplateBuilder-3e34e9e8.js")),
1715
+ component: t(() => import("./TemplateBuilder-54a34178.js")),
1716
1716
  meta: {
1717
1717
  i18nKey: "settings.templateBuilder.title",
1718
1718
  hideNavigation: !0
@@ -1730,7 +1730,7 @@ const B = /* @__PURE__ */ _({
1730
1730
  path: "/e-invoice",
1731
1731
  name: "$settings-e-invoice",
1732
1732
  component: N,
1733
- children: $.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1733
+ children: P.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1734
1734
  meta: {
1735
1735
  i18nKey: "settings.eInvoice.title"
1736
1736
  }
@@ -1738,7 +1738,7 @@ const B = /* @__PURE__ */ _({
1738
1738
  {
1739
1739
  path: "/tagging",
1740
1740
  name: "$settings-tagging",
1741
- component: p(t(() => import("./Tagging-1db96361.js"))),
1741
+ component: p(t(() => import("./Tagging-e233bc93.js"))),
1742
1742
  meta: {
1743
1743
  i18nKey: "settings.tagging.title",
1744
1744
  validationManifest: {
@@ -1750,7 +1750,7 @@ const B = /* @__PURE__ */ _({
1750
1750
  {
1751
1751
  path: "/reason-template",
1752
1752
  name: "$settings-reason-template",
1753
- component: t(() => import("./ReasonTemplate-bb794018.js")),
1753
+ component: t(() => import("./ReasonTemplate-c39df454.js")),
1754
1754
  meta: {
1755
1755
  i18nKey: "settings.reasonTemplate.title",
1756
1756
  hideNavigation: !0
@@ -1759,8 +1759,8 @@ const B = /* @__PURE__ */ _({
1759
1759
  {
1760
1760
  path: "/devices/order-setting",
1761
1761
  name: "$pos-order-setting",
1762
- component: p(P),
1763
- children: F.map((e) => ({ ...e, path: `/order-setting${e.path}` })),
1762
+ component: p($),
1763
+ children: F.filter((e) => e.path === "/kiosk"),
1764
1764
  meta: {
1765
1765
  hideNavigation: !0,
1766
1766
  validationManifest: {
@@ -1781,7 +1781,7 @@ r.push({
1781
1781
  name: ((b = r[0].children) == null ? void 0 : b[0].name) || r[0].name
1782
1782
  }
1783
1783
  });
1784
- const ie = t(() => import("./App-6e5fbd63.js")), ne = {
1784
+ const ie = t(() => import("./App-3360c969.js")), ne = {
1785
1785
  "en-US": {
1786
1786
  ...K,
1787
1787
  ...s["en-US"]
@@ -1798,7 +1798,7 @@ const ie = t(() => import("./App-6e5fbd63.js")), ne = {
1798
1798
  ...Y,
1799
1799
  ...s["zh-Hant"] || {}
1800
1800
  }
1801
- }, oe = t(() => import("./ReasonTemplate-bb794018.js"));
1801
+ }, oe = t(() => import("./ReasonTemplate-c39df454.js"));
1802
1802
  export {
1803
1803
  ie as F,
1804
1804
  oe as R,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@feedmepos/mf-mdm";
2
- import { F as n, R as F, i as R, r as f } from "./app-ccf4472c.js";
2
+ import { F as n, R as F, i as R, r as f } from "./app-bfaa4ee9.js";
3
3
  import "vue";
4
4
  import "@feedmepos/ui-library";
5
5
  import "vue-router";
@@ -1,4 +1,4 @@
1
- import { g as e, b as a } from "./index-86d32a84.js";
1
+ import { g as e, b as a } from "./index-3f4c8817.js";
2
2
  const i = {
3
3
  async readBusiness(s) {
4
4
  return e(await a().get(`/businesses/${s}`));