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

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.
@@ -2,7 +2,7 @@ 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-0ce7ead5.js";
6
6
  import { _ as nv, c as io } from "./createForm-d3b97d2e.js";
7
7
  import { u as Bo } from "./index-b1e448c9.js";
8
8
  import { _ as uo, c as tv } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
@@ -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-609ebd81.js")),
1694
1710
  meta: {
1695
1711
  i18nKey: "settings.business.title"
1696
1712
  }
@@ -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-18570860.js"))),
1735
1751
  meta: {
1736
1752
  i18nKey: "settings.tagging.title",
1737
1753
  validationManifest: {
@@ -1786,16 +1802,16 @@ const B = /* @__PURE__ */ _({
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-8ecdea98.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
  },
@@ -1821,5 +1837,5 @@ export {
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-0ce7ead5.js";
4
4
  import "vue";
5
5
  import "@feedmepos/ui-library";
6
6
  import "vue-router";