@feedmepos/mf-settings 0.0.72-beta.1 → 0.0.73

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-b1e448c9.js";
2
+ import { u as AA, F as oA } from "./index-6d139c6d.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-1b85fe7e.js";
6
+ import { b as v } from "./business-f739dad4.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 zv, u as Ev } from "./dayjs.min-6eec923a.js";
9
9
  import { components as ds, useSnackbar as lc, useDialogChild as Fv, useDialog as Eg, useBreakpoints as wv } from "@feedmepos/ui-library";
10
10
  import { _ as Sv } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8f929a2d.js";
11
11
  import { _ as Tv, c as rp } from "./createForm-d3b97d2e.js";
12
- import { g as Mr, c as yi, b as ah, u as _$ } from "./index-b1e448c9.js";
12
+ import { g as Mr, c as yi, b as ah, u as _$ } from "./index-6d139c6d.js";
13
13
  import { c as Fg } from "./object-27ce045b.js";
14
14
  import "pinia";
15
15
  var ih = {}, Dn = {}, dc = {};
@@ -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-b1e448c9.js";
7
+ import { u as An, r as Pn, s as Nn } from "./index-6d139c6d.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 Ur, h as Mo, getCurrentInstance as ki, inject as $m,
2
2
  import "@vue/devtools-api";
3
3
  import { useI18n as Uo, useCoreStore as ko } from "@feedmepos/mf-common";
4
4
  import { useDialog as Wo, useSnackbar as Vo, components as Qm, useBreakpoints as zm, FmButtonVariant as jm } from "@feedmepos/ui-library";
5
- import { _ as ev } from "./app-d9259e2f.js";
5
+ import { _ as ev } from "./app-68470ebc.js";
6
6
  import { _ as nv, c as io } from "./createForm-d3b97d2e.js";
7
- import { u as Bo } from "./index-b1e448c9.js";
7
+ import { u as Bo } from "./index-6d139c6d.js";
8
8
  import { _ as uo, c as tv } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
9
9
  import { c as Rr } from "./index-b9ef9a01.js";
10
10
  import { c as Pi } from "./object-27ce045b.js";
11
11
  import { defineStore as rv } from "pinia";
12
- import { b as us } from "./business-1b85fe7e.js";
12
+ import { b as us } from "./business-f739dad4.js";
13
13
  import "@feedmepos/mf-mdm";
14
14
  import "@feedmepos/mf-order-setting";
15
15
  import "vue-router";
@@ -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,12 +1,12 @@
1
1
  import { FmApp as f, routers as R, i18nMessages as s } from "@feedmepos/mf-mdm";
2
2
  import { FmApp as w, routers as L, i18nMessages as r } from "@feedmepos/mf-order-setting";
3
- import { ref as h, watch as m, nextTick as p, onMounted as U, onBeforeUnmount as O, defineComponent as _, computed as q, openBlock as y, createElementBlock as S, normalizeStyle as T, renderSlot as A, resolveComponent as C, createBlock as k, withCtx as x, createElementVNode as I, createVNode as P, defineAsyncComponent as N } from "vue";
3
+ import { ref as v, watch as u, nextTick as p, onMounted as U, onBeforeUnmount as O, defineComponent as _, computed as q, openBlock as y, createElementBlock as T, normalizeStyle as S, renderSlot as A, resolveComponent as C, createBlock as k, withCtx as x, createElementVNode as I, createVNode as P, defineAsyncComponent as N } from "vue";
4
4
  import { useBreakpoints as $ } from "@feedmepos/ui-library";
5
5
  import "vue-router";
6
6
  import { withPermission as g, Permission as b } from "@feedmepos/mf-common";
7
- import { FmApp as D, routers as F } from "@feedmepos/mf-e-invoice";
8
- function M(e, o) {
9
- const n = h({ top: 0, bottom: 0, left: 0, right: 0 });
7
+ import { FmApp as M, routers as D } from "@feedmepos/mf-e-invoice";
8
+ function F(e, o) {
9
+ const n = v({ top: 0, bottom: 0, left: 0, right: 0 });
10
10
  function a() {
11
11
  if (e.value) {
12
12
  const i = e.value.getBoundingClientRect();
@@ -18,9 +18,9 @@ function M(e, o) {
18
18
  };
19
19
  }
20
20
  }
21
- return m(o, async () => {
21
+ return u(o, async () => {
22
22
  await p(), a();
23
- }), m(e, async (i) => {
23
+ }), u(e, async (i) => {
24
24
  i && (await p(), a());
25
25
  }), U(() => {
26
26
  window.addEventListener("resize", a);
@@ -31,17 +31,17 @@ function M(e, o) {
31
31
  const B = /* @__PURE__ */ _({
32
32
  __name: "FullWrapper",
33
33
  setup(e) {
34
- const o = $(), n = h(null), a = M(n), i = q(() => {
35
- var u;
34
+ const o = $(), n = v(null), a = F(n), i = q(() => {
35
+ var m;
36
36
  const c = o.isAtMost("sm") ? 56 : 0;
37
37
  return {
38
- height: `calc(100dvh - ${((u = a.value) == null ? void 0 : u.top) + 24 + c}px)`
38
+ height: `calc(100dvh - ${((m = a.value) == null ? void 0 : m.top) + 24 + c}px)`
39
39
  };
40
40
  });
41
- return (d, c) => (y(), S("div", {
41
+ return (d, c) => (y(), T("div", {
42
42
  ref_key: "wrapper",
43
43
  ref: n,
44
- style: T(i.value)
44
+ style: S(i.value)
45
45
  }, [
46
46
  A(d.$slots, "default")
47
47
  ], 4));
@@ -84,6 +84,10 @@ const B = /* @__PURE__ */ _({
84
84
  url: "Business URL",
85
85
  add_restaurant: "Add restaurant",
86
86
  search_restaurants: "Search restaurants",
87
+ empty_state: {
88
+ description: "Create a business to start managing your restaurants.",
89
+ membership_hint: "Already part of a business? Ask the business owner to add you from HRM > Team members."
90
+ },
87
91
  quota: {
88
92
  limit_title: "Quota limit reached",
89
93
  limit_message: "You have reach the quota limit allocated to your account. Contact your sales to perform quota update."
@@ -466,9 +470,9 @@ const B = /* @__PURE__ */ _({
466
470
  message: 'Are you sure you want to delete the reason template for "{action}"? This action cannot be undone.'
467
471
  }
468
472
  }
469
- }, K = {
473
+ }, H = {
470
474
  settings: z
471
- }, V = {
475
+ }, K = {
472
476
  title: "การตั้งค่า",
473
477
  eInvoice: {
474
478
  title: "ใบแจ้งหนี้อิเล็กทรอนิกส์"
@@ -488,6 +492,10 @@ const B = /* @__PURE__ */ _({
488
492
  url: "URL ธุรกิจ",
489
493
  add_restaurant: "เพิ่มร้านอาหาร",
490
494
  search_restaurants: "ค้นหาร้านอาหาร",
495
+ empty_state: {
496
+ description: "สร้างธุรกิจเพื่อเริ่มจัดการร้านอาหารของคุณ",
497
+ membership_hint: "หากคุณควรอยู่ในธุรกิจนี้อยู่แล้ว โปรดขอให้เจ้าของธุรกิจเพิ่มคุณจาก HRM > Team members"
498
+ },
491
499
  quota: {
492
500
  limit_title: "ถึงขีดจำกัดโควตาแล้ว",
493
501
  limit_message: "คุณถึงขีดจำกัดโควตาที่จัดสรรให้กับบัญชีของคุณแล้ว ติดต่อฝ่ายขายเพื่อดำเนินการอัปเดตโควตา"
@@ -870,8 +878,8 @@ const B = /* @__PURE__ */ _({
870
878
  message: 'คุณแน่ใจหรือไม่ว่าต้องการลบเทมเพลตเหตุผลสำหรับ "{action}"? การดำเนินการนี้ไม่สามารถยกเลิกได้'
871
879
  }
872
880
  }
873
- }, H = {
874
- settings: V
881
+ }, V = {
882
+ settings: K
875
883
  }, W = {
876
884
  title: "设置",
877
885
  eInvoice: {
@@ -892,6 +900,10 @@ const B = /* @__PURE__ */ _({
892
900
  url: "商户 url",
893
901
  add_restaurant: "添加餐厅",
894
902
  search_restaurants: "搜索餐厅",
903
+ empty_state: {
904
+ description: "创建商户以开始管理您的餐厅。",
905
+ membership_hint: "如果您本应属于某个商户,请联系商户所有者通过 HRM > Team members 将您添加进去。"
906
+ },
895
907
  quota: {
896
908
  limit_title: "配额限制",
897
909
  limit_message: "您已达到配额限制。请联系您的销售代表进行配额更新。"
@@ -1299,6 +1311,10 @@ const B = /* @__PURE__ */ _({
1299
1311
  url: "商户 url",
1300
1312
  add_restaurant: "添加餐廳",
1301
1313
  search_restaurants: "搜索餐廳",
1314
+ empty_state: {
1315
+ description: "建立商戶以開始管理您的餐廳。",
1316
+ membership_hint: "如果您本來就應該屬於某個商戶,請聯絡商戶擁有者透過 HRM > Team members 將您加入。"
1317
+ },
1302
1318
  quota: {
1303
1319
  limit_title: "配額限制",
1304
1320
  limit_message: "您已達到配額限制。請聯繫您的銷售代表進行配額更新。"
@@ -1690,7 +1706,7 @@ const B = /* @__PURE__ */ _({
1690
1706
  {
1691
1707
  path: "/business",
1692
1708
  name: "$settings-my-business",
1693
- component: t(() => import("./Business-a8bd151a.js")),
1709
+ component: t(() => import("./Business-89227fa1.js")),
1694
1710
  meta: {
1695
1711
  i18nKey: "settings.business.title"
1696
1712
  }
@@ -1698,7 +1714,7 @@ const B = /* @__PURE__ */ _({
1698
1714
  {
1699
1715
  path: "/create-business",
1700
1716
  name: "$settings-create-business",
1701
- component: t(() => import("./CreateBusiness-55e7de74.js")),
1717
+ component: t(() => import("./CreateBusiness-c881b40e.js")),
1702
1718
  meta: {
1703
1719
  hideNavigation: !0
1704
1720
  }
@@ -1706,7 +1722,7 @@ const B = /* @__PURE__ */ _({
1706
1722
  {
1707
1723
  path: "/foodcourt",
1708
1724
  name: "$settings-food-court",
1709
- component: t(() => import("./FoodCourt-c38eaa03.js")),
1725
+ component: t(() => import("./FoodCourt-67ab2a1a.js")),
1710
1726
  meta: {
1711
1727
  i18nKey: "settings.food_court.list.title"
1712
1728
  }
@@ -1722,8 +1738,8 @@ const B = /* @__PURE__ */ _({
1722
1738
  {
1723
1739
  path: "/e-invoice",
1724
1740
  name: "$settings-e-invoice",
1725
- component: D,
1726
- children: F.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1741
+ component: M,
1742
+ children: D.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1727
1743
  meta: {
1728
1744
  i18nKey: "settings.eInvoice.title"
1729
1745
  }
@@ -1731,7 +1747,7 @@ const B = /* @__PURE__ */ _({
1731
1747
  {
1732
1748
  path: "/tagging",
1733
1749
  name: "$settings-tagging",
1734
- component: g(t(() => import("./Tagging-76f08e0e.js"))),
1750
+ component: g(t(() => import("./Tagging-69d40fda.js"))),
1735
1751
  meta: {
1736
1752
  i18nKey: "settings.tagging.title",
1737
1753
  validationManifest: {
@@ -1743,7 +1759,7 @@ const B = /* @__PURE__ */ _({
1743
1759
  {
1744
1760
  path: "/reason-template",
1745
1761
  name: "$settings-reason-template",
1746
- component: t(() => import("./ReasonTemplate-b56a5a9d.js")),
1762
+ component: t(() => import("./ReasonTemplate-b4e2346e.js")),
1747
1763
  meta: {
1748
1764
  i18nKey: "settings.reasonTemplate.title",
1749
1765
  hideNavigation: !0
@@ -1779,23 +1795,23 @@ const B = /* @__PURE__ */ _({
1779
1795
  {
1780
1796
  path: "/devices/template-builder",
1781
1797
  name: "$settings-template-builder",
1782
- component: t(() => import("./TemplateBuilder-54a34178.js")),
1798
+ component: t(() => import("./TemplateBuilder-3e34e9e8.js")),
1783
1799
  meta: {
1784
1800
  i18nKey: "settings.templateBuilder.title",
1785
1801
  hideNavigation: !0
1786
1802
  }
1787
1803
  }
1788
1804
  ];
1789
- var v;
1805
+ var h;
1790
1806
  l.push({
1791
1807
  path: "/",
1792
1808
  redirect: {
1793
- name: ((v = l[0].children) == null ? void 0 : v[0].name) || l[0].name
1809
+ name: ((h = l[0].children) == null ? void 0 : h[0].name) || l[0].name
1794
1810
  }
1795
1811
  });
1796
- const ne = t(() => import("./App-48096dfc.js")), oe = {
1812
+ const ne = t(() => import("./App-fa3b2e54.js")), oe = {
1797
1813
  "en-US": {
1798
- ...K,
1814
+ ...H,
1799
1815
  ...s["en-US"],
1800
1816
  ...r["en-US"]
1801
1817
  },
@@ -1805,7 +1821,7 @@ const ne = t(() => import("./App-48096dfc.js")), oe = {
1805
1821
  ...r["zh-CN"]
1806
1822
  },
1807
1823
  "th-TH": {
1808
- ...H,
1824
+ ...V,
1809
1825
  ...s["th-TH"],
1810
1826
  ...r["th-TH"]
1811
1827
  },
@@ -1814,12 +1830,12 @@ const ne = t(() => import("./App-48096dfc.js")), oe = {
1814
1830
  ...s["zh-Hant"] || {},
1815
1831
  ...r["zh-Hant"] || {}
1816
1832
  }
1817
- }, se = t(() => import("./ReasonTemplate-b56a5a9d.js"));
1833
+ }, se = t(() => import("./ReasonTemplate-b4e2346e.js"));
1818
1834
  export {
1819
1835
  ne as F,
1820
1836
  se as R,
1821
1837
  B as _,
1822
1838
  oe as i,
1823
1839
  l as r,
1824
- M as u
1840
+ F as u
1825
1841
  };
package/dist/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "@feedmepos/mf-mdm";
2
2
  import "@feedmepos/mf-order-setting";
3
- import { F as n, R as F, i as R, r as f } from "./app-d9259e2f.js";
3
+ import { F as n, R as F, i as R, r as f } from "./app-68470ebc.js";
4
4
  import "vue";
5
5
  import "@feedmepos/ui-library";
6
6
  import "vue-router";