@feedmepos/mf-settings 0.0.58 → 0.0.60

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 (31) hide show
  1. package/dist/{App-854f8c7c.js → App-48215cac.js} +3 -3
  2. package/dist/{Business-ddbd12c2.js → Business-a9258021.js} +751 -732
  3. package/dist/{CreateBusiness-fa4096f9.js → CreateBusiness-2662327f.js} +12 -11
  4. package/dist/{FoodCourt-0a28a67f.js → FoodCourt-3d6ab131.js} +13 -11
  5. package/dist/{LicenseOrder-86aa7996.js → LicenseOrder-bd3d3012.js} +8 -8
  6. package/dist/ReasonTemplate-4270229d.js +2234 -0
  7. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js +88 -0
  8. package/dist/{Tagging-5fcdf95d.js → Tagging-d8e2293e.js} +8 -7
  9. package/dist/_plugin-vue_export-helper-dad06003.js +9 -0
  10. package/dist/{app-59ccea16.js → app-0dbb5982.js} +320 -66
  11. package/dist/app.js +4 -3
  12. package/dist/apps/mf-settings/src/View/ReasonTemplate.vue.d.ts +2 -0
  13. package/dist/apps/mf-settings/src/api/index.d.ts +2 -0
  14. package/dist/apps/mf-settings/src/app.d.ts +123 -0
  15. package/dist/apps/mf-settings/src/components/reason/ReasonTemplateForm.vue.d.ts +28 -0
  16. package/dist/apps/mf-settings/src/store/attributeSettings.d.ts +2 -2
  17. package/dist/apps/mf-settings/src/types/reasonTemplate.d.ts +9 -0
  18. package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
  19. package/dist/{business-ad1b9825.js → business-49b1df80.js} +1 -1
  20. package/dist/createForm-d3b97d2e.js +50 -0
  21. package/dist/dayjs.min-2edeb0fb.js +310 -0
  22. package/dist/index-33f7f731.js +17967 -0
  23. package/dist/{index-71e4b8aa.js → index-b5909a1d.js} +1035 -1024
  24. package/dist/{index-759f69a1.js → index-cc4114ab.js} +1721 -1731
  25. package/dist/object-27ce045b.js +16 -0
  26. package/dist/rules-2bee6632.js +6 -0
  27. package/package.json +2 -2
  28. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-030a97dd.js +0 -395
  29. package/dist/index-e68421c3.js +0 -18030
  30. package/dist/object-8ac0c0d8.js +0 -63
  31. package/dist/rules-c9fa22f8.js +0 -13
@@ -0,0 +1,88 @@
1
+ import { defineComponent as b, computed as s, resolveComponent as u, openBlock as l, createBlock as p, normalizeProps as C, mergeProps as d, createElementBlock as _, createVNode as f, mergeModels as F, useModel as g, watchEffect as h, withCtx as v, Fragment as x, renderList as M } from "vue";
2
+ import { useBreakpoints as I } from "@feedmepos/ui-library";
3
+ import { useCoreStore as S } from "@feedmepos/mf-common";
4
+ const w = {
5
+ key: 1,
6
+ class: "z-10 fixed bottom-72 right-16"
7
+ }, P = /* @__PURE__ */ b({
8
+ __name: "ResponsiveFabButton",
9
+ props: {
10
+ variant: {},
11
+ label: {},
12
+ icon: {},
13
+ size: {},
14
+ disabled: { type: Boolean },
15
+ iconColor: {},
16
+ borderColor: {},
17
+ textColor: {},
18
+ bgColor: {},
19
+ type: {},
20
+ iconPosition: {},
21
+ prependIcon: {},
22
+ appendIcon: {},
23
+ loading: { type: Boolean },
24
+ disableIconStatus: { type: Boolean },
25
+ overwriteIconOutline: {}
26
+ },
27
+ setup(r) {
28
+ const t = r, a = s(() => t.variant === "primary" || !t.variant ? "fab" : t.variant), i = I(), c = s(() => i.breakpoints.value.xs);
29
+ return (o, e) => {
30
+ const n = u("FmButton");
31
+ return c.value ? (l(), _("div", w, [
32
+ f(n, d(t, { variant: a.value }), null, 16, ["variant"])
33
+ ])) : (l(), p(n, C(d({ key: 0 }, t)), null, 16));
34
+ };
35
+ }
36
+ }), E = /* @__PURE__ */ b({
37
+ __name: "RestaurantSelector",
38
+ props: /* @__PURE__ */ F({
39
+ managableOnly: { type: Boolean, default: !1 },
40
+ excludeRestaurants: {},
41
+ label: {},
42
+ autoSelectFirst: { type: Boolean, default: !1 }
43
+ }, {
44
+ modelValue: {},
45
+ modelModifiers: {}
46
+ }),
47
+ emits: ["update:modelValue"],
48
+ setup(r) {
49
+ const t = r, a = g(r, "modelValue"), { restaurants: i } = S(), c = s(() => {
50
+ var e;
51
+ return ((e = o.value.find((n) => n.value === a.value)) == null ? void 0 : e.label) || "Select restaurant";
52
+ }), o = s(
53
+ () => i.value.filter((e) => t.managableOnly ? e.managable : !0).map((e) => ({
54
+ label: e.profile.name,
55
+ value: e._id
56
+ })).filter((e) => {
57
+ var n;
58
+ return !((n = t.excludeRestaurants) != null && n.includes(e.value));
59
+ })
60
+ );
61
+ return h(() => {
62
+ t.autoSelectFirst && o.value.length > 0 && (a.value = o.value[0].value);
63
+ }), (e, n) => {
64
+ const y = u("FmChip"), k = u("FmMenuItem"), B = u("FmMenu");
65
+ return l(), p(B, null, {
66
+ "menu-button": v(() => [
67
+ f(y, {
68
+ icon: "storefront",
69
+ label: c.value,
70
+ "right-icon": "keyboard_arrow_down"
71
+ }, null, 8, ["label"])
72
+ ]),
73
+ default: v(() => [
74
+ (l(!0), _(x, null, M(o.value, (m) => (l(), p(k, {
75
+ key: m.value,
76
+ label: m.label,
77
+ onClick: (R) => a.value = m.value
78
+ }, null, 8, ["label", "onClick"]))), 128))
79
+ ]),
80
+ _: 1
81
+ });
82
+ };
83
+ }
84
+ });
85
+ export {
86
+ P as _,
87
+ E as a
88
+ };
@@ -2,13 +2,14 @@ import { defineComponent as Fr, h as bo, getCurrentInstance as Pi, inject as Mm,
2
2
  import "@vue/devtools-api";
3
3
  import { useI18n as wo, useCoreStore as Do } from "@feedmepos/mf-common";
4
4
  import { useDialog as Po, useSnackbar as xo, components as Ym, useBreakpoints as Xm, FmButtonVariant as qm } from "@feedmepos/ui-library";
5
- import { _ as Jm } from "./app-59ccea16.js";
6
- import { c as Ci, _ as Zm, a as Qm } from "./object-8ac0c0d8.js";
7
- import { u as Fo } from "./index-71e4b8aa.js";
5
+ import { _ as Jm } from "./app-0dbb5982.js";
6
+ import { _ as Zm, c as Qm } from "./createForm-d3b97d2e.js";
7
+ import { u as Fo } from "./index-b5909a1d.js";
8
8
  import { _ as zm, c as jm } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
9
- import { c as br } from "./index-759f69a1.js";
9
+ import { c as br } from "./index-cc4114ab.js";
10
+ import { c as Ci } from "./object-27ce045b.js";
10
11
  import { defineStore as eE } from "pinia";
11
- import { b as es } from "./business-ad1b9825.js";
12
+ import { b as es } from "./business-49b1df80.js";
12
13
  import "@feedmepos/mf-mdm";
13
14
  import "vue-router";
14
15
  import "@feedmepos/mf-e-invoice";
@@ -6553,7 +6554,7 @@ const nf = eE("mf-settings-attribute-settings", () => {
6553
6554
  ], 64);
6554
6555
  };
6555
6556
  }
6556
- }), A0 = { class: "flex flex-1" }, L0 = { class: "space-y-8" }, N0 = { class: "flex justify-end" }, U0 = /* @__PURE__ */ Fr({
6557
+ }), A0 = { class: "flex flex-1" }, L0 = { class: "space-y-8" }, N0 = { class: "flex justify-end" }, k0 = /* @__PURE__ */ Fr({
6557
6558
  __name: "Tagging",
6558
6559
  setup(r) {
6559
6560
  const { t: s } = ki(), u = Do(), f = Pi(), _ = nf(), d = Po(), v = xo(), L = Fo(v), A = tr(""), D = rn(() => _.customAttributes.filter((U) => U.key.toLowerCase().includes(A.value.toLowerCase()))), k = rn(() => [
@@ -6677,5 +6678,5 @@ const nf = eE("mf-settings-attribute-settings", () => {
6677
6678
  }
6678
6679
  });
6679
6680
  export {
6680
- U0 as default
6681
+ k0 as default
6681
6682
  };
@@ -0,0 +1,9 @@
1
+ const s = (t, r) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [c, e] of r)
4
+ o[c] = e;
5
+ return o;
6
+ };
7
+ export {
8
+ s as _
9
+ };
@@ -1,69 +1,69 @@
1
- import { FmApp as b, routers as _, i18nMessages as s } from "@feedmepos/mf-mdm";
2
- import { ref as m, watch as c, nextTick as u, onMounted as v, onBeforeUnmount as h, defineComponent as g, computed as y, openBlock as p, createElementBlock as f, normalizeStyle as R, renderSlot as L, resolveComponent as U, createBlock as w, withCtx as q, createElementVNode as C, createVNode as T, defineAsyncComponent as x } from "vue";
3
- import { useBreakpoints as A } from "@feedmepos/ui-library";
1
+ import { FmApp as b, routers as _, i18nMessages as n } from "@feedmepos/mf-mdm";
2
+ import { ref as u, watch as c, nextTick as m, onMounted as h, onBeforeUnmount as v, defineComponent as p, computed as y, openBlock as g, createElementBlock as f, normalizeStyle as R, renderSlot as w, resolveComponent as L, createBlock as U, withCtx as q, createElementVNode as T, createVNode as C, defineAsyncComponent as A } from "vue";
3
+ import { useBreakpoints as x } from "@feedmepos/ui-library";
4
4
  import "vue-router";
5
5
  import { withPermission as k } from "@feedmepos/mf-common";
6
- import { FmApp as $, routers as F } from "@feedmepos/mf-e-invoice";
7
- function I(e, o) {
8
- const n = m({ top: 0, bottom: 0, left: 0, right: 0 });
9
- function t() {
6
+ import { FmApp as S, routers as O } from "@feedmepos/mf-e-invoice";
7
+ function $(e, s) {
8
+ const o = u({ top: 0, bottom: 0, left: 0, right: 0 });
9
+ function a() {
10
10
  if (e.value) {
11
- const a = e.value.getBoundingClientRect();
12
- n.value = {
13
- top: a.top,
14
- bottom: a.bottom,
15
- left: a.left,
16
- right: a.right
11
+ const i = e.value.getBoundingClientRect();
12
+ o.value = {
13
+ top: i.top,
14
+ bottom: i.bottom,
15
+ left: i.left,
16
+ right: i.right
17
17
  };
18
18
  }
19
19
  }
20
- return c(o, async () => {
21
- await u(), t();
22
- }), c(e, async (a) => {
23
- a && (await u(), t());
24
- }), v(() => {
25
- window.addEventListener("resize", t);
20
+ return c(s, async () => {
21
+ await m(), a();
22
+ }), c(e, async (i) => {
23
+ i && (await m(), a());
26
24
  }), h(() => {
27
- window.removeEventListener("resize", t);
28
- }), n;
25
+ window.addEventListener("resize", a);
26
+ }), v(() => {
27
+ window.removeEventListener("resize", a);
28
+ }), o;
29
29
  }
30
- const S = /* @__PURE__ */ g({
30
+ const I = /* @__PURE__ */ p({
31
31
  __name: "FullWrapper",
32
32
  setup(e) {
33
- const o = A(), n = m(null), t = I(n), a = y(() => {
33
+ const s = x(), o = u(null), a = $(o), i = y(() => {
34
34
  var d;
35
- const l = o.isAtMost("sm") ? 56 : 0;
35
+ const r = s.isAtMost("sm") ? 56 : 0;
36
36
  return {
37
- height: `calc(100dvh - ${((d = t.value) == null ? void 0 : d.top) + 24 + l}px)`
37
+ height: `calc(100dvh - ${((d = a.value) == null ? void 0 : d.top) + 24 + r}px)`
38
38
  };
39
39
  });
40
- return (r, l) => (p(), f("div", {
40
+ return (l, r) => (g(), f("div", {
41
41
  ref_key: "wrapper",
42
- ref: n,
43
- style: R(a.value)
42
+ ref: o,
43
+ style: R(i.value)
44
44
  }, [
45
- L(r.$slots, "default")
45
+ w(l.$slots, "default")
46
46
  ], 4));
47
47
  }
48
- }), N = { class: "flex justify-center items-center h-full w-full" }, P = /* @__PURE__ */ g({
48
+ }), F = { class: "flex justify-center items-center h-full w-full" }, N = /* @__PURE__ */ p({
49
49
  __name: "PageLoading",
50
50
  setup(e) {
51
- return (o, n) => {
52
- const t = U("FmCircularProgress");
53
- return p(), w(S, null, {
51
+ return (s, o) => {
52
+ const a = L("FmCircularProgress");
53
+ return g(), U(I, null, {
54
54
  default: q(() => [
55
- C("div", N, [
56
- T(t, { size: "xl" })
55
+ T("div", F, [
56
+ C(a, { size: "xl" })
57
57
  ])
58
58
  ]),
59
59
  _: 1
60
60
  });
61
61
  };
62
62
  }
63
- }), i = (e) => x({
63
+ }), t = (e) => A({
64
64
  loader: e,
65
- loadingComponent: P
66
- }), B = {
65
+ loadingComponent: N
66
+ }), P = {
67
67
  title: "Settings",
68
68
  eInvoice: {
69
69
  title: "E-invoice"
@@ -378,10 +378,71 @@ const S = /* @__PURE__ */ g({
378
378
  restaurantTagging: {
379
379
  title: "Tagging",
380
380
  subtitle: "Group your restaurants by tags to streamline reporting and management"
381
+ },
382
+ reasonTemplate: {
383
+ title: "Reason template",
384
+ addTemplate: "Add reason template",
385
+ actions: {
386
+ void: "Void",
387
+ refund: "Refund",
388
+ rejectOrder: "Reject Order"
389
+ },
390
+ table: {
391
+ action: "Action",
392
+ reasons: "Reasons",
393
+ compulsory: "Compulsory",
394
+ allowOther: "Allow Other"
395
+ },
396
+ emptyState: {
397
+ title: "Select a restaurant",
398
+ description: "Please select a restaurant from the dropdown above to manage reason templates."
399
+ },
400
+ form: {
401
+ title: {
402
+ add: "Add reason template",
403
+ edit: "Edit reason template"
404
+ },
405
+ message: {
406
+ created: "Reason template created successfully",
407
+ updated: "Reason template updated successfully"
408
+ },
409
+ sections: {
410
+ basic: {
411
+ title: "Basic Information",
412
+ action: {
413
+ label: "Action"
414
+ },
415
+ newReason: {
416
+ label: "Add new reason",
417
+ placeholder: "Enter reason text"
418
+ },
419
+ reasons: {
420
+ label: "Reasons",
421
+ min_required: "At least one reason is required",
422
+ name_required: "Reason text is required"
423
+ }
424
+ },
425
+ options: {
426
+ title: "Options",
427
+ compulsory: {
428
+ label: "Compulsory",
429
+ sublabel: "Make this reason template mandatory for the selected action"
430
+ },
431
+ allowOther: {
432
+ label: "Allow Other",
433
+ sublabel: "Allow users to enter custom reasons not in the predefined list"
434
+ }
435
+ }
436
+ }
437
+ },
438
+ delete: {
439
+ title: "Delete reason template",
440
+ message: 'Are you sure you want to delete the reason template for "{action}"? This action cannot be undone.'
441
+ }
381
442
  }
443
+ }, B = {
444
+ settings: P
382
445
  }, D = {
383
- settings: B
384
- }, E = {
385
446
  title: "การตั้งค่า",
386
447
  eInvoice: {
387
448
  title: "ใบแจ้งหนี้อิเล็กทรอนิกส์"
@@ -696,10 +757,71 @@ const S = /* @__PURE__ */ g({
696
757
  restaurantTagging: {
697
758
  title: "การแท็ก",
698
759
  subtitle: "จัดกลุ่มร้านอาหารของคุณตามแท็กเพื่อปรับปรุงการรายงานและการจัดการ"
760
+ },
761
+ reasonTemplate: {
762
+ title: "เทมเพลตเหตุผล",
763
+ addTemplate: "เพิ่มเทมเพลตเหตุผล",
764
+ actions: {
765
+ void: "ยกเลิก",
766
+ refund: "คืนเงิน",
767
+ rejectOrder: "ปฏิเสธคำสั่งซื้อ"
768
+ },
769
+ table: {
770
+ action: "การดำเนินการ",
771
+ reasons: "เหตุผล",
772
+ compulsory: "บังคับ",
773
+ allowOther: "อนุญาตอื่นๆ"
774
+ },
775
+ emptyState: {
776
+ title: "เลือกร้านอาหาร",
777
+ description: "โปรดเลือกร้านอาหารจากเมนูดรอปดาวน์ด้านบนเพื่อจัดการเทมเพลตเหตุผล"
778
+ },
779
+ form: {
780
+ title: {
781
+ add: "เพิ่มเทมเพลตเหตุผล",
782
+ edit: "แก้ไขเทมเพลตเหตุผล"
783
+ },
784
+ message: {
785
+ created: "สร้างเทมเพลตเหตุผลสำเร็จ",
786
+ updated: "อัปเดตเทมเพลตเหตุผลสำเร็จ"
787
+ },
788
+ sections: {
789
+ basic: {
790
+ title: "ข้อมูลพื้นฐาน",
791
+ action: {
792
+ label: "การดำเนินการ"
793
+ },
794
+ newReason: {
795
+ label: "เพิ่มเหตุผลใหม่",
796
+ placeholder: "ป้อนข้อความเหตุผล"
797
+ },
798
+ reasons: {
799
+ label: "เหตุผล",
800
+ min_required: "ต้องมีเหตุผลอย่างน้อยหนึ่งข้อ",
801
+ name_required: "ข้อความเหตุผลเป็นสิ่งจำเป็น"
802
+ }
803
+ },
804
+ options: {
805
+ title: "ตัวเลือก",
806
+ compulsory: {
807
+ label: "บังคับ",
808
+ sublabel: "ทำให้เทมเพลตเหตุผลนี้เป็นข้อบังคับสำหรับการดำเนินการที่เลือก"
809
+ },
810
+ allowOther: {
811
+ label: "อนุญาตอื่นๆ",
812
+ sublabel: "อนุญาตให้ผู้ใช้ป้อนเหตุผลที่กำหนดเองที่ไม่อยู่ในรายการที่กำหนดไว้ล่วงหน้า"
813
+ }
814
+ }
815
+ }
816
+ },
817
+ delete: {
818
+ title: "ลบเทมเพลตเหตุผล",
819
+ message: 'คุณแน่ใจหรือไม่ว่าต้องการลบเทมเพลตเหตุผลสำหรับ "{action}"? การดำเนินการนี้ไม่สามารถยกเลิกได้'
820
+ }
699
821
  }
700
- }, M = {
701
- settings: E
702
- }, z = {
822
+ }, E = {
823
+ settings: D
824
+ }, j = {
703
825
  title: "设置",
704
826
  eInvoice: {
705
827
  title: "电子发票"
@@ -1017,10 +1139,71 @@ const S = /* @__PURE__ */ g({
1017
1139
  restaurantTagging: {
1018
1140
  title: "标签",
1019
1141
  subtitle: "通过标签对餐厅进行分组,以简化报表和管理"
1142
+ },
1143
+ reasonTemplate: {
1144
+ title: "原因模板",
1145
+ addTemplate: "添加原因模板",
1146
+ actions: {
1147
+ void: "作废",
1148
+ refund: "退款",
1149
+ rejectOrder: "拒绝订单"
1150
+ },
1151
+ table: {
1152
+ action: "操作",
1153
+ reasons: "原因",
1154
+ compulsory: "必填",
1155
+ allowOther: "允许其他"
1156
+ },
1157
+ emptyState: {
1158
+ title: "选择餐厅",
1159
+ description: "请从上方下拉菜单中选择一家餐厅来管理原因模板。"
1160
+ },
1161
+ form: {
1162
+ title: {
1163
+ add: "添加原因模板",
1164
+ edit: "编辑原因模板"
1165
+ },
1166
+ message: {
1167
+ created: "原因模板创建成功",
1168
+ updated: "原因模板更新成功"
1169
+ },
1170
+ sections: {
1171
+ basic: {
1172
+ title: "基本信息",
1173
+ action: {
1174
+ label: "操作"
1175
+ },
1176
+ newReason: {
1177
+ label: "添加新原因",
1178
+ placeholder: "输入原因文本"
1179
+ },
1180
+ reasons: {
1181
+ label: "原因",
1182
+ min_required: "至少需要一个原因",
1183
+ name_required: "原因文本是必填的"
1184
+ }
1185
+ },
1186
+ options: {
1187
+ title: "选项",
1188
+ compulsory: {
1189
+ label: "必填",
1190
+ sublabel: "使此原因模板对所选操作为必填项"
1191
+ },
1192
+ allowOther: {
1193
+ label: "允许其他",
1194
+ sublabel: "允许用户输入不在预定义列表中的自定义原因"
1195
+ }
1196
+ }
1197
+ }
1198
+ },
1199
+ delete: {
1200
+ title: "删除原因模板",
1201
+ message: '确定要删除"{action}"的原因模板吗?此操作无法撤销。'
1202
+ }
1020
1203
  }
1021
- }, O = {
1022
- settings: z
1023
- }, j = {
1204
+ }, M = {
1205
+ settings: j
1206
+ }, z = {
1024
1207
  title: "設置",
1025
1208
  eInvoice: {
1026
1209
  title: "電子發票"
@@ -1338,9 +1521,70 @@ const S = /* @__PURE__ */ g({
1338
1521
  restaurantTagging: {
1339
1522
  title: "標籤",
1340
1523
  subtitle: "通過標籤對餐廳進行分組,以簡化報表和管理"
1524
+ },
1525
+ reasonTemplate: {
1526
+ title: "原因模板",
1527
+ addTemplate: "添加原因模板",
1528
+ actions: {
1529
+ void: "作廢",
1530
+ refund: "退款",
1531
+ rejectOrder: "拒絕訂單"
1532
+ },
1533
+ table: {
1534
+ action: "操作",
1535
+ reasons: "原因",
1536
+ compulsory: "必填",
1537
+ allowOther: "允許其他"
1538
+ },
1539
+ emptyState: {
1540
+ title: "選擇餐廳",
1541
+ description: "請從上方下拉菜單中選擇一家餐廳來管理原因模板。"
1542
+ },
1543
+ form: {
1544
+ title: {
1545
+ add: "添加原因模板",
1546
+ edit: "編輯原因模板"
1547
+ },
1548
+ message: {
1549
+ created: "原因模板創建成功",
1550
+ updated: "原因模板更新成功"
1551
+ },
1552
+ sections: {
1553
+ basic: {
1554
+ title: "基本信息",
1555
+ action: {
1556
+ label: "操作"
1557
+ },
1558
+ newReason: {
1559
+ label: "添加新原因",
1560
+ placeholder: "輸入原因文本"
1561
+ },
1562
+ reasons: {
1563
+ label: "原因",
1564
+ min_required: "至少需要一個原因",
1565
+ name_required: "原因文本是必填的"
1566
+ }
1567
+ },
1568
+ options: {
1569
+ title: "選項",
1570
+ compulsory: {
1571
+ label: "必填",
1572
+ sublabel: "使此原因模板對所選操作為必填項"
1573
+ },
1574
+ allowOther: {
1575
+ label: "允許其他",
1576
+ sublabel: "允許用戶輸入不在預定義列表中的自定義原因"
1577
+ }
1578
+ }
1579
+ }
1580
+ },
1581
+ delete: {
1582
+ title: "刪除原因模板",
1583
+ message: '確定要刪除"{action}"的原因模板嗎?此操作無法撤銷。'
1584
+ }
1341
1585
  }
1342
1586
  }, K = {
1343
- settings: j
1587
+ settings: z
1344
1588
  }, J = [
1345
1589
  {
1346
1590
  path: "/",
@@ -1349,7 +1593,7 @@ const S = /* @__PURE__ */ g({
1349
1593
  {
1350
1594
  path: "/business",
1351
1595
  name: "$settings-my-business",
1352
- component: i(() => import("./Business-ddbd12c2.js")),
1596
+ component: t(() => import("./Business-a9258021.js")),
1353
1597
  meta: {
1354
1598
  i18nKey: "settings.business.title"
1355
1599
  }
@@ -1357,7 +1601,7 @@ const S = /* @__PURE__ */ g({
1357
1601
  {
1358
1602
  path: "/create-business",
1359
1603
  name: "$settings-create-business",
1360
- component: i(() => import("./CreateBusiness-fa4096f9.js")),
1604
+ component: t(() => import("./CreateBusiness-2662327f.js")),
1361
1605
  meta: {
1362
1606
  hideNavigation: !0
1363
1607
  }
@@ -1365,7 +1609,7 @@ const S = /* @__PURE__ */ g({
1365
1609
  {
1366
1610
  path: "/foodcourt",
1367
1611
  name: "$settings-food-court",
1368
- component: i(() => import("./FoodCourt-0a28a67f.js")),
1612
+ component: t(() => import("./FoodCourt-3d6ab131.js")),
1369
1613
  meta: {
1370
1614
  i18nKey: "settings.food_court.list.title"
1371
1615
  }
@@ -1382,7 +1626,7 @@ const S = /* @__PURE__ */ g({
1382
1626
  {
1383
1627
  path: "/template-builder",
1384
1628
  name: "$settings-template-builder",
1385
- component: i(() => import("./TemplateBuilder-54a34178.js")),
1629
+ component: t(() => import("./TemplateBuilder-54a34178.js")),
1386
1630
  meta: {
1387
1631
  i18nKey: "settings.templateBuilder.title"
1388
1632
  }
@@ -1390,7 +1634,7 @@ const S = /* @__PURE__ */ g({
1390
1634
  {
1391
1635
  path: "/license-order",
1392
1636
  name: "$settings-license-order",
1393
- component: i(() => import("./LicenseOrder-86aa7996.js")),
1637
+ component: t(() => import("./LicenseOrder-bd3d3012.js")),
1394
1638
  meta: {
1395
1639
  i18nKey: "settings.licenseOrder.title"
1396
1640
  }
@@ -1398,8 +1642,8 @@ const S = /* @__PURE__ */ g({
1398
1642
  {
1399
1643
  path: "/e-invoice",
1400
1644
  name: "$settings-e-invoice",
1401
- component: $,
1402
- children: F.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1645
+ component: S,
1646
+ children: O.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1403
1647
  meta: {
1404
1648
  i18nKey: "settings.eInvoice.title"
1405
1649
  }
@@ -1407,7 +1651,7 @@ const S = /* @__PURE__ */ g({
1407
1651
  {
1408
1652
  path: "/tagging",
1409
1653
  name: "$settings-tagging",
1410
- component: k(i(() => import("./Tagging-5fcdf95d.js"))),
1654
+ component: k(t(() => import("./Tagging-d8e2293e.js"))),
1411
1655
  meta: {
1412
1656
  i18nKey: "settings.tagging.title",
1413
1657
  validationManifest: {
@@ -1415,29 +1659,39 @@ const S = /* @__PURE__ */ g({
1415
1659
  },
1416
1660
  hideNavigation: !0
1417
1661
  }
1662
+ },
1663
+ {
1664
+ path: "/reason-template",
1665
+ name: "$settings-reason-template",
1666
+ component: t(() => import("./ReasonTemplate-4270229d.js")),
1667
+ meta: {
1668
+ i18nKey: "settings.reasonTemplate.title",
1669
+ hideNavigation: !0
1670
+ }
1418
1671
  }
1419
- ], X = i(() => import("./App-854f8c7c.js")), Z = {
1672
+ ], X = t(() => import("./App-48215cac.js")), Z = {
1420
1673
  "en-US": {
1421
- ...D,
1422
- ...s["en-US"]
1674
+ ...B,
1675
+ ...n["en-US"]
1423
1676
  },
1424
1677
  "zh-CN": {
1425
- ...O,
1426
- ...s["zh-CN"]
1678
+ ...M,
1679
+ ...n["zh-CN"]
1427
1680
  },
1428
1681
  "th-TH": {
1429
- ...M,
1430
- ...s["th-TH"]
1682
+ ...E,
1683
+ ...n["th-TH"]
1431
1684
  },
1432
1685
  "zh-Hant": {
1433
1686
  ...K,
1434
- ...s["zh-Hant"] || {}
1687
+ ...n["zh-Hant"] || {}
1435
1688
  }
1436
- };
1689
+ }, ee = t(() => import("./ReasonTemplate-4270229d.js"));
1437
1690
  export {
1438
1691
  X as F,
1439
- S as _,
1692
+ ee as R,
1693
+ I as _,
1440
1694
  Z as i,
1441
1695
  J as r,
1442
- I as u
1696
+ $ as u
1443
1697
  };
package/dist/app.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import "@feedmepos/mf-mdm";
2
- import { F as e, i as F, r as f } from "./app-59ccea16.js";
2
+ import { F as a, R as n, i as F, r as R } from "./app-0dbb5982.js";
3
3
  import "vue";
4
4
  import "@feedmepos/ui-library";
5
5
  import "vue-router";
6
6
  import "@feedmepos/mf-common";
7
7
  import "@feedmepos/mf-e-invoice";
8
8
  export {
9
- e as FmApp,
9
+ a as FmApp,
10
+ n as ReasonTemplateView,
10
11
  F as i18nMessages,
11
- f as routers
12
+ R as routers
12
13
  };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -5,3 +5,5 @@ export declare const businessClientInstance: () => AxiosInstance;
5
5
  export declare const restaurantClientInstance: (restaurantId: any, prefix?: string) => AxiosInstance;
6
6
  export declare function extractAxiosData<T>(response: AxiosResponse<T>): T;
7
7
  export declare function getData<T>(response: AxiosResponse<T>): T;
8
+ export declare function readRestaurantSetting(restaurantId: string): Promise<any>;
9
+ export declare function setRestaurantSetting(restaurantId: string, data: any): Promise<any>;