@feedmepos/mf-order-setting 0.0.16 → 0.0.18

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 (52) hide show
  1. package/dist/KioskDevicesView-CuHZd6_9.js +4 -0
  2. package/dist/KioskDevicesView.vue_vue_type_script_setup_true_lang-5mr80TnE.js +206 -0
  3. package/dist/KioskSettingView-6Q0qwSTl.js +345 -0
  4. package/dist/KioskView-Dy1o-gJs.js +289 -0
  5. package/dist/OrderSettingsView-B-uga-ib.js +70943 -0
  6. package/dist/app-DOZsphNG.js +614 -0
  7. package/dist/app.js +1 -1
  8. package/dist/dayjs.min-7bYz19Mt.js +123632 -0
  9. package/dist/frontend/mf-order/src/api/restaurant-setting/index.d.ts +1 -1
  10. package/dist/frontend/mf-order/src/helpers/map.d.ts +3 -2
  11. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +8 -8
  12. package/dist/frontend/mf-order/src/views/all-orders/FilterRestaurant.vue.d.ts +4 -4
  13. package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +2 -2
  14. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpPointDialog.vue.d.ts +2 -2
  15. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  16. package/dist/index-B0G4vTU2.js +86 -0
  17. package/dist/index-B9mJLWE5.js +70 -0
  18. package/dist/package/entity/delivery/delivery.dto.d.ts +12 -12
  19. package/dist/package/entity/delivery/gateway/grab.dto.d.ts +8 -8
  20. package/dist/package/entity/delivery/gateway/pandago.dto.d.ts +6 -6
  21. package/dist/package/entity/delivery/linked-delivery.do.d.ts +2 -2
  22. package/dist/package/entity/delivery/linked-delivery.dto.d.ts +8 -8
  23. package/dist/package/entity/food-court/food-court.dto.d.ts +44 -44
  24. package/dist/package/entity/food-court/order.dto.d.ts +38 -38
  25. package/dist/package/entity/order/order.dto.d.ts +356 -356
  26. package/dist/package/entity/order/payment/payment.dto.d.ts +152 -152
  27. package/dist/package/entity/order/pickup/pickup.do.d.ts +2 -2
  28. package/dist/package/entity/order/pickup/pickup.dto.d.ts +2 -2
  29. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +8 -8
  30. package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +18 -18
  31. package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +6 -6
  32. package/dist/package/entity/order-platform/menu.dto.d.ts +28 -28
  33. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +22 -22
  34. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.dto.d.ts +8 -8
  35. package/dist/package/entity/payment/payment.dto.d.ts +2 -2
  36. package/dist/package/entity/queue/queue.dto.d.ts +6 -6
  37. package/dist/package/entity/restaurant/restaurant.dto.d.ts +4 -4
  38. package/dist/package/entity/websocket/websocket.dto.d.ts +2 -2
  39. package/package.json +1 -1
  40. package/src/App.vue +20 -0
  41. package/src/Entry.vue +0 -9
  42. package/src/api/restaurant-setting/index.ts +3 -2
  43. package/src/app.ts +1 -1
  44. package/src/components/GoogleMap.vue +102 -104
  45. package/src/helpers/map.ts +23 -15
  46. package/src/router/routes.ts +4 -8
  47. package/src/stores/restaurant/index.ts +1 -1
  48. package/src/views/order-settings/delivery/inhouse/DeliveryOrder.vue +3 -2
  49. package/src/views/order-settings/pickup/AddressInput.vue +3 -2
  50. package/src/views/order-settings/pickup/PickUpSetting.vue +34 -25
  51. package/dist/KioskSettingView-DGfS1NzO.js +0 -4
  52. package/dist/app-9Q-zRVKD.js +0 -196056
@@ -0,0 +1,86 @@
1
+ import { g as i, s as _, S as C, r as g } from "./dayjs.min-7bYz19Mt.js";
2
+ async function R() {
3
+ const r = await g().get("/order-settings");
4
+ return i(r);
5
+ }
6
+ async function S(r) {
7
+ const e = await g().put("/order-settings", r);
8
+ return i(e);
9
+ }
10
+ const U = {
11
+ getOrderSetting: R,
12
+ updateOrderSetting: S
13
+ };
14
+ async function p() {
15
+ return i(await _().get(`balance/${C.getBusinessId()}`));
16
+ }
17
+ const y = {
18
+ read: p
19
+ }, A = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), w = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), m = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), I = /[^\p{L}\d]+/giu, f = "$1\0$2", d = "";
20
+ function o(r) {
21
+ let e = r.trim();
22
+ e = e.replace(A, f).replace(w, f), e = e.replace(I, "\0");
23
+ let t = 0, c = e.length;
24
+ for (; e.charAt(t) === "\0"; )
25
+ t++;
26
+ if (t === c)
27
+ return [];
28
+ for (; e.charAt(c - 1) === "\0"; )
29
+ c--;
30
+ return e.slice(t, c).split(/\0/g);
31
+ }
32
+ function T(r) {
33
+ const e = o(r);
34
+ for (let t = 0; t < e.length; t++) {
35
+ const c = e[t], s = m.exec(c);
36
+ if (s) {
37
+ const a = s.index + (s[1] ?? s[2]).length;
38
+ e.splice(t, 1, c.slice(0, a), c.slice(a));
39
+ }
40
+ }
41
+ return e;
42
+ }
43
+ function b(r, e) {
44
+ const [t, c, s] = x(r, e), a = h(e == null ? void 0 : e.locale), n = L(e == null ? void 0 : e.locale);
45
+ return t + c.map(E(a, n)).join(" ") + s;
46
+ }
47
+ function O(r, e) {
48
+ const [t, c, s] = x(r, e), a = h(e == null ? void 0 : e.locale), n = L(e == null ? void 0 : e.locale), l = E(a, n);
49
+ return t + c.map((u, P) => P === 0 ? l(u) : a(u)).join(" ") + s;
50
+ }
51
+ function h(r) {
52
+ return (e) => e.toLocaleLowerCase(r);
53
+ }
54
+ function L(r) {
55
+ return (e) => e.toLocaleUpperCase(r);
56
+ }
57
+ function E(r, e) {
58
+ return (t) => `${e(t[0])}${r(t.slice(1))}`;
59
+ }
60
+ function x(r, e = {}) {
61
+ const t = e.split ?? (e.separateNumbers ? T : o), c = e.prefixCharacters ?? d, s = e.suffixCharacters ?? d;
62
+ let a = 0, n = r.length;
63
+ for (; a < r.length; ) {
64
+ const l = r.charAt(a);
65
+ if (!c.includes(l))
66
+ break;
67
+ a++;
68
+ }
69
+ for (; n > a; ) {
70
+ const l = n - 1, u = r.charAt(l);
71
+ if (!s.includes(u))
72
+ break;
73
+ n = l;
74
+ }
75
+ return [
76
+ r.slice(0, a),
77
+ t(r.slice(a, n)),
78
+ r.slice(n)
79
+ ];
80
+ }
81
+ export {
82
+ U as O,
83
+ y as a,
84
+ b as c,
85
+ O as s
86
+ };
@@ -0,0 +1,70 @@
1
+ import { ref as c } from "vue";
2
+ import { useSnackbar as u } from "@feedmepos/ui-library";
3
+ function l() {
4
+ const o = u();
5
+ function r(t) {
6
+ o.open({
7
+ type: "success",
8
+ message: t,
9
+ position: "bottom"
10
+ });
11
+ }
12
+ function s(t) {
13
+ o.open({
14
+ type: "error",
15
+ message: t,
16
+ position: "bottom"
17
+ });
18
+ }
19
+ let n = null;
20
+ function a(t) {
21
+ return n = o.open({
22
+ type: "neutral",
23
+ spinner: !0,
24
+ message: t,
25
+ position: "bottom",
26
+ persistent: !0
27
+ // Ensure the snackbar stays visible until manually closed
28
+ }), n;
29
+ }
30
+ function e() {
31
+ n && (o.close(n), n = null);
32
+ }
33
+ return { showSuccess: r, showError: s, showLoading: a, closeLoadingSnackbar: e };
34
+ }
35
+ const y = () => {
36
+ const { showError: o } = l(), r = c(!1);
37
+ function s() {
38
+ r.value = !0;
39
+ }
40
+ function n() {
41
+ r.value = !1;
42
+ }
43
+ async function a(t) {
44
+ try {
45
+ return s(), await t();
46
+ } finally {
47
+ n();
48
+ }
49
+ }
50
+ async function e(t) {
51
+ try {
52
+ return s(), await t();
53
+ } catch (i) {
54
+ throw o(`${i}`), i;
55
+ } finally {
56
+ n();
57
+ }
58
+ }
59
+ return {
60
+ isLoading: r,
61
+ startLoading: s,
62
+ stopLoading: n,
63
+ startAsyncCall: a,
64
+ startAsyncCallWithErr: e
65
+ };
66
+ };
67
+ export {
68
+ l as a,
69
+ y as u
70
+ };
@@ -6692,12 +6692,12 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6692
6692
  address: z.ZodString;
6693
6693
  relationship: z.ZodString;
6694
6694
  }, "strip", z.ZodTypeAny, {
6695
- address: string;
6696
6695
  name: string;
6696
+ address: string;
6697
6697
  relationship: string;
6698
6698
  }, {
6699
- address: string;
6700
6699
  name: string;
6700
+ address: string;
6701
6701
  relationship: string;
6702
6702
  }>;
6703
6703
  recipient: z.ZodObject<{
@@ -6705,12 +6705,12 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6705
6705
  address: z.ZodString;
6706
6706
  relationship: z.ZodString;
6707
6707
  }, "strip", z.ZodTypeAny, {
6708
- address: string;
6709
6708
  name: string;
6709
+ address: string;
6710
6710
  relationship: string;
6711
6711
  }, {
6712
- address: string;
6713
6712
  name: string;
6713
+ address: string;
6714
6714
  relationship: string;
6715
6715
  }>;
6716
6716
  driver: z.ZodObject<{
@@ -6739,13 +6739,13 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6739
6739
  status: "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "FAILED" | "ALLOCATING" | "IN_DELIVERY" | "COMPLETED";
6740
6740
  merchantOrderID: string;
6741
6741
  sender: {
6742
- address: string;
6743
6742
  name: string;
6743
+ address: string;
6744
6744
  relationship: string;
6745
6745
  };
6746
6746
  recipient: {
6747
- address: string;
6748
6747
  name: string;
6748
+ address: string;
6749
6749
  relationship: string;
6750
6750
  };
6751
6751
  deliveryID: string;
@@ -6765,13 +6765,13 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6765
6765
  status: "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "FAILED" | "ALLOCATING" | "IN_DELIVERY" | "COMPLETED";
6766
6766
  merchantOrderID: string;
6767
6767
  sender: {
6768
- address: string;
6769
6768
  name: string;
6769
+ address: string;
6770
6770
  relationship: string;
6771
6771
  };
6772
6772
  recipient: {
6773
- address: string;
6774
6773
  name: string;
6774
+ address: string;
6775
6775
  relationship: string;
6776
6776
  };
6777
6777
  deliveryID: string;
@@ -6794,13 +6794,13 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6794
6794
  status: "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "FAILED" | "ALLOCATING" | "IN_DELIVERY" | "COMPLETED";
6795
6795
  merchantOrderID: string;
6796
6796
  sender: {
6797
- address: string;
6798
6797
  name: string;
6798
+ address: string;
6799
6799
  relationship: string;
6800
6800
  };
6801
6801
  recipient: {
6802
- address: string;
6803
6802
  name: string;
6803
+ address: string;
6804
6804
  relationship: string;
6805
6805
  };
6806
6806
  deliveryID: string;
@@ -6823,13 +6823,13 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6823
6823
  status: "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "FAILED" | "ALLOCATING" | "IN_DELIVERY" | "COMPLETED";
6824
6824
  merchantOrderID: string;
6825
6825
  sender: {
6826
- address: string;
6827
6826
  name: string;
6827
+ address: string;
6828
6828
  relationship: string;
6829
6829
  };
6830
6830
  recipient: {
6831
- address: string;
6832
6831
  name: string;
6832
+ address: string;
6833
6833
  relationship: string;
6834
6834
  };
6835
6835
  deliveryID: string;
@@ -637,12 +637,12 @@ export declare const GrabWebhook: z.ZodObject<{
637
637
  address: z.ZodString;
638
638
  relationship: z.ZodString;
639
639
  }, "strip", z.ZodTypeAny, {
640
- address: string;
641
640
  name: string;
641
+ address: string;
642
642
  relationship: string;
643
643
  }, {
644
- address: string;
645
644
  name: string;
645
+ address: string;
646
646
  relationship: string;
647
647
  }>;
648
648
  recipient: z.ZodObject<{
@@ -650,12 +650,12 @@ export declare const GrabWebhook: z.ZodObject<{
650
650
  address: z.ZodString;
651
651
  relationship: z.ZodString;
652
652
  }, "strip", z.ZodTypeAny, {
653
- address: string;
654
653
  name: string;
654
+ address: string;
655
655
  relationship: string;
656
656
  }, {
657
- address: string;
658
657
  name: string;
658
+ address: string;
659
659
  relationship: string;
660
660
  }>;
661
661
  driver: z.ZodObject<{
@@ -684,13 +684,13 @@ export declare const GrabWebhook: z.ZodObject<{
684
684
  status: "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "FAILED" | "ALLOCATING" | "IN_DELIVERY" | "COMPLETED";
685
685
  merchantOrderID: string;
686
686
  sender: {
687
- address: string;
688
687
  name: string;
688
+ address: string;
689
689
  relationship: string;
690
690
  };
691
691
  recipient: {
692
- address: string;
693
692
  name: string;
693
+ address: string;
694
694
  relationship: string;
695
695
  };
696
696
  deliveryID: string;
@@ -710,13 +710,13 @@ export declare const GrabWebhook: z.ZodObject<{
710
710
  status: "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "FAILED" | "ALLOCATING" | "IN_DELIVERY" | "COMPLETED";
711
711
  merchantOrderID: string;
712
712
  sender: {
713
- address: string;
714
713
  name: string;
714
+ address: string;
715
715
  relationship: string;
716
716
  };
717
717
  recipient: {
718
- address: string;
719
718
  name: string;
719
+ address: string;
720
720
  relationship: string;
721
721
  };
722
722
  deliveryID: string;
@@ -716,9 +716,9 @@ declare const PandaGoCreateOrUpdateOutlet: z.ZodObject<{
716
716
  postal_code?: string | null | undefined;
717
717
  rider_instructions?: string | null | undefined;
718
718
  halal?: boolean | null | undefined;
719
- address: string;
720
719
  name: string;
721
720
  locale: string;
721
+ address: string;
722
722
  description: string;
723
723
  latitude: number;
724
724
  longitude: number;
@@ -733,9 +733,9 @@ declare const PandaGoCreateOrUpdateOutlet: z.ZodObject<{
733
733
  postal_code?: string | null | undefined;
734
734
  rider_instructions?: string | null | undefined;
735
735
  halal?: boolean | null | undefined;
736
- address: string;
737
736
  name: string;
738
737
  locale: string;
738
+ address: string;
739
739
  description: string;
740
740
  latitude: number;
741
741
  longitude: number;
@@ -770,9 +770,9 @@ declare const PandaGoGetOutletRes: z.ZodObject<{
770
770
  postal_code?: string | null | undefined;
771
771
  rider_instructions?: string | null | undefined;
772
772
  halal?: boolean | null | undefined;
773
- address: string;
774
773
  name: string;
775
774
  locale: "en-MY";
775
+ address: string;
776
776
  description: string;
777
777
  latitude: number;
778
778
  longitude: number;
@@ -788,9 +788,9 @@ declare const PandaGoGetOutletRes: z.ZodObject<{
788
788
  postal_code?: string | null | undefined;
789
789
  rider_instructions?: string | null | undefined;
790
790
  halal?: boolean | null | undefined;
791
- address: string;
792
791
  name: string;
793
792
  locale: "en-MY";
793
+ address: string;
794
794
  description: string;
795
795
  latitude: number;
796
796
  longitude: number;
@@ -823,9 +823,9 @@ declare const PandaGoCreateOutletRes: z.ZodObject<{
823
823
  postal_code?: string | null | undefined;
824
824
  rider_instructions?: string | null | undefined;
825
825
  halal?: boolean | null | undefined;
826
- address: string;
827
826
  name: string;
828
827
  locale: "en-MY";
828
+ address: string;
829
829
  description: string;
830
830
  latitude: number;
831
831
  longitude: number;
@@ -840,9 +840,9 @@ declare const PandaGoCreateOutletRes: z.ZodObject<{
840
840
  postal_code?: string | null | undefined;
841
841
  rider_instructions?: string | null | undefined;
842
842
  halal?: boolean | null | undefined;
843
- address: string;
844
843
  name: string;
845
844
  locale: "en-MY";
845
+ address: string;
846
846
  description: string;
847
847
  latitude: number;
848
848
  longitude: number;
@@ -9,15 +9,15 @@ export declare const FdoLinkedDelivery: z.ZodObject<{
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  _id?: string | null | undefined;
11
11
  catalogId?: string | null | undefined;
12
- key: string;
13
12
  name: string;
13
+ key: string;
14
14
  slotPrefix: string;
15
15
  paymentTypeKey: string;
16
16
  }, {
17
17
  _id?: string | null | undefined;
18
18
  catalogId?: string | null | undefined;
19
- key: string;
20
19
  name: string;
20
+ key: string;
21
21
  slotPrefix: string;
22
22
  paymentTypeKey: string;
23
23
  }>;
@@ -9,15 +9,15 @@ export declare const LinkedDeliveryDto: z.ZodObject<{
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  _id?: string | null | undefined;
11
11
  catalogId?: string | null | undefined;
12
- key: string;
13
12
  name: string;
13
+ key: string;
14
14
  slotPrefix: string;
15
15
  paymentTypeKey: string;
16
16
  }, {
17
17
  _id?: string | null | undefined;
18
18
  catalogId?: string | null | undefined;
19
- key: string;
20
19
  name: string;
20
+ key: string;
21
21
  slotPrefix: string;
22
22
  paymentTypeKey: string;
23
23
  }>;
@@ -31,30 +31,30 @@ export declare const LinkedDeliveryOutputDto: z.ZodEffects<z.ZodObject<{
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  _id?: string | null | undefined;
33
33
  catalogId?: string | null | undefined;
34
- key: string;
35
34
  name: string;
35
+ key: string;
36
36
  slotPrefix: string;
37
37
  paymentTypeKey: string;
38
38
  }, {
39
39
  _id?: string | null | undefined;
40
40
  catalogId?: string | null | undefined;
41
- key: string;
42
41
  name: string;
42
+ key: string;
43
43
  slotPrefix: string;
44
44
  paymentTypeKey: string;
45
45
  }>, {
46
46
  id: string | undefined;
47
47
  _id?: string | null | undefined;
48
48
  catalogId?: string | null | undefined;
49
- key: string;
50
49
  name: string;
50
+ key: string;
51
51
  slotPrefix: string;
52
52
  paymentTypeKey: string;
53
53
  }, {
54
54
  _id?: string | null | undefined;
55
55
  catalogId?: string | null | undefined;
56
- key: string;
57
56
  name: string;
57
+ key: string;
58
58
  slotPrefix: string;
59
59
  paymentTypeKey: string;
60
60
  }>;
@@ -68,14 +68,14 @@ export declare const LinkedDeliveryUpdateDto: z.ZodObject<Omit<{
68
68
  catalogId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
69
69
  }, "_id">, "strip", z.ZodTypeAny, {
70
70
  catalogId?: string | null | undefined;
71
- key: string;
72
71
  name: string;
72
+ key: string;
73
73
  slotPrefix: string;
74
74
  paymentTypeKey: string;
75
75
  }, {
76
76
  catalogId?: string | null | undefined;
77
- key: string;
78
77
  name: string;
78
+ key: string;
79
79
  slotPrefix: string;
80
80
  paymentTypeKey: string;
81
81
  }>;