@feedmepos/mf-order-setting 0.0.16 → 0.0.17

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 (49) hide show
  1. package/dist/KioskDevicesView-DkDKK-o-.js +4 -0
  2. package/dist/KioskDevicesView.vue_vue_type_script_setup_true_lang-uz5kCfDz.js +206 -0
  3. package/dist/KioskSettingView-6Q0qwSTl.js +345 -0
  4. package/dist/KioskView-dXsAOdRK.js +289 -0
  5. package/dist/OrderSettingsView-mw8PFd0W.js +70943 -0
  6. package/dist/app-BsFGRC2y.js +620 -0
  7. package/dist/app.js +5 -4
  8. package/dist/dayjs.min-vPr9KJUN.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/app.d.ts +1 -0
  11. package/dist/frontend/mf-order/src/helpers/map.d.ts +3 -2
  12. package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +6 -6
  13. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +8 -8
  14. package/dist/frontend/mf-order/src/views/all-orders/FilterRestaurant.vue.d.ts +4 -4
  15. package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +2 -2
  16. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  17. package/dist/index-B9mJLWE5.js +70 -0
  18. package/dist/index-CpFXjGaf.js +86 -0
  19. package/dist/package/entity/delivery/delivery.dto.d.ts +6 -6
  20. package/dist/package/entity/delivery/gateway/pandago.dto.d.ts +10 -10
  21. package/dist/package/entity/food-court/order.dto.d.ts +38 -38
  22. package/dist/package/entity/kiosk/kiosk.do.d.ts +20 -20
  23. package/dist/package/entity/kiosk/kiosk.dto.d.ts +24 -24
  24. package/dist/package/entity/order/order.dto.d.ts +278 -278
  25. package/dist/package/entity/order/payment/payment.dto.d.ts +152 -152
  26. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +24 -24
  27. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +6 -6
  28. package/dist/package/entity/order-platform/grabfood/grabfood-menu.do.d.ts +74 -74
  29. package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +106 -106
  30. package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +32 -32
  31. package/dist/package/entity/order-platform/menu.dto.d.ts +54 -54
  32. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +238 -238
  33. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.dto.d.ts +64 -64
  34. package/dist/package/entity/payment/payment.dto.d.ts +2 -2
  35. package/dist/package/entity/printer/printer.do.d.ts +2 -2
  36. package/dist/package/entity/websocket/websocket.dto.d.ts +2 -2
  37. package/package.json +1 -1
  38. package/src/Entry.vue +2 -8
  39. package/src/api/restaurant-setting/index.ts +3 -2
  40. package/src/app.ts +17 -0
  41. package/src/components/GoogleMap.vue +102 -104
  42. package/src/helpers/map.ts +23 -15
  43. package/src/router/routes.ts +4 -8
  44. package/src/stores/restaurant/index.ts +1 -1
  45. package/src/views/order-settings/delivery/inhouse/DeliveryOrder.vue +3 -2
  46. package/src/views/order-settings/pickup/AddressInput.vue +3 -2
  47. package/src/views/order-settings/pickup/PickUpSetting.vue +34 -25
  48. package/dist/KioskSettingView-DGfS1NzO.js +0 -4
  49. package/dist/app-9Q-zRVKD.js +0 -196056
@@ -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
+ };
@@ -0,0 +1,86 @@
1
+ import { g as i, s as _, S as C, r as g } from "./dayjs.min-vPr9KJUN.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
+ };
@@ -6870,12 +6870,12 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6870
6870
  name: z.ZodString;
6871
6871
  phone_number: z.ZodString;
6872
6872
  }, "strip", z.ZodTypeAny, {
6873
- name: string;
6874
6873
  id: string;
6874
+ name: string;
6875
6875
  phone_number: string;
6876
6876
  }, {
6877
- name: string;
6878
6877
  id: string;
6878
+ name: string;
6879
6879
  phone_number: string;
6880
6880
  }>;
6881
6881
  created_at: z.ZodNumber;
@@ -6902,8 +6902,8 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6902
6902
  proof_of_delivery_url?: string | null | undefined;
6903
6903
  status: "NEW" | "RECEIVED" | "WAITING_FOR_TRANSPORT" | "ASSIGNED_TO_TRANSPORT" | "COURIER_ACCEPTED_DELIVERY" | "NEAR_VENDOR" | "PICKED_UP" | "COURIER_LEFT_VENDOR" | "NEAR_CUSTOMER" | "DELIVERED" | "DELAYED" | "CANCELLED";
6904
6904
  driver: {
6905
- name: string;
6906
6905
  id: string;
6906
+ name: string;
6907
6907
  phone_number: string;
6908
6908
  };
6909
6909
  order_id: string;
@@ -6923,8 +6923,8 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6923
6923
  proof_of_delivery_url?: string | null | undefined;
6924
6924
  status: "NEW" | "RECEIVED" | "WAITING_FOR_TRANSPORT" | "ASSIGNED_TO_TRANSPORT" | "COURIER_ACCEPTED_DELIVERY" | "NEAR_VENDOR" | "PICKED_UP" | "COURIER_LEFT_VENDOR" | "NEAR_CUSTOMER" | "DELIVERED" | "DELAYED" | "CANCELLED";
6925
6925
  driver: {
6926
- name: string;
6927
6926
  id: string;
6927
+ name: string;
6928
6928
  phone_number: string;
6929
6929
  };
6930
6930
  order_id: string;
@@ -6947,8 +6947,8 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6947
6947
  proof_of_delivery_url?: string | null | undefined;
6948
6948
  status: "NEW" | "RECEIVED" | "WAITING_FOR_TRANSPORT" | "ASSIGNED_TO_TRANSPORT" | "COURIER_ACCEPTED_DELIVERY" | "NEAR_VENDOR" | "PICKED_UP" | "COURIER_LEFT_VENDOR" | "NEAR_CUSTOMER" | "DELIVERED" | "DELAYED" | "CANCELLED";
6949
6949
  driver: {
6950
- name: string;
6951
6950
  id: string;
6951
+ name: string;
6952
6952
  phone_number: string;
6953
6953
  };
6954
6954
  order_id: string;
@@ -6971,8 +6971,8 @@ declare const FdtoDeliveryGatewayWebhook: z.ZodDiscriminatedUnion<"gateway", z.P
6971
6971
  proof_of_delivery_url?: string | null | undefined;
6972
6972
  status: "NEW" | "RECEIVED" | "WAITING_FOR_TRANSPORT" | "ASSIGNED_TO_TRANSPORT" | "COURIER_ACCEPTED_DELIVERY" | "NEAR_VENDOR" | "PICKED_UP" | "COURIER_LEFT_VENDOR" | "NEAR_CUSTOMER" | "DELIVERED" | "DELAYED" | "CANCELLED";
6973
6973
  driver: {
6974
- name: string;
6975
6974
  id: string;
6975
+ name: string;
6976
6976
  phone_number: string;
6977
6977
  };
6978
6978
  order_id: string;
@@ -144,12 +144,12 @@ declare const PandaGoDriver: z.ZodObject<{
144
144
  name: z.ZodString;
145
145
  phone_number: z.ZodString;
146
146
  }, "strip", z.ZodTypeAny, {
147
- name: string;
148
147
  id: string;
148
+ name: string;
149
149
  phone_number: string;
150
150
  }, {
151
- name: string;
152
151
  id: string;
152
+ name: string;
153
153
  phone_number: string;
154
154
  }>;
155
155
  declare const PandaGoOrderCancellation: z.ZodObject<{
@@ -396,12 +396,12 @@ declare const PandaGoOrderRes: z.ZodObject<{
396
396
  name: z.ZodString;
397
397
  phone_number: z.ZodString;
398
398
  }, "strip", z.ZodTypeAny, {
399
- name: string;
400
399
  id: string;
400
+ name: string;
401
401
  phone_number: string;
402
402
  }, {
403
- name: string;
404
403
  id: string;
404
+ name: string;
405
405
  phone_number: string;
406
406
  }>;
407
407
  created_at: z.ZodNumber;
@@ -446,8 +446,8 @@ declare const PandaGoOrderRes: z.ZodObject<{
446
446
  phone_number: string;
447
447
  };
448
448
  driver: {
449
- name: string;
450
449
  id: string;
450
+ name: string;
451
451
  phone_number: string;
452
452
  };
453
453
  payment_method: "PAID" | "CASH_ON_DELIVERY";
@@ -488,8 +488,8 @@ declare const PandaGoOrderRes: z.ZodObject<{
488
488
  phone_number: string;
489
489
  };
490
490
  driver: {
491
- name: string;
492
491
  id: string;
492
+ name: string;
493
493
  phone_number: string;
494
494
  };
495
495
  payment_method: "PAID" | "CASH_ON_DELIVERY";
@@ -869,12 +869,12 @@ export declare const PandaGoWebhook: z.ZodObject<{
869
869
  name: z.ZodString;
870
870
  phone_number: z.ZodString;
871
871
  }, "strip", z.ZodTypeAny, {
872
- name: string;
873
872
  id: string;
873
+ name: string;
874
874
  phone_number: string;
875
875
  }, {
876
- name: string;
877
876
  id: string;
877
+ name: string;
878
878
  phone_number: string;
879
879
  }>;
880
880
  created_at: z.ZodNumber;
@@ -901,8 +901,8 @@ export declare const PandaGoWebhook: z.ZodObject<{
901
901
  proof_of_delivery_url?: string | null | undefined;
902
902
  status: "NEW" | "RECEIVED" | "WAITING_FOR_TRANSPORT" | "ASSIGNED_TO_TRANSPORT" | "COURIER_ACCEPTED_DELIVERY" | "NEAR_VENDOR" | "PICKED_UP" | "COURIER_LEFT_VENDOR" | "NEAR_CUSTOMER" | "DELIVERED" | "DELAYED" | "CANCELLED";
903
903
  driver: {
904
- name: string;
905
904
  id: string;
905
+ name: string;
906
906
  phone_number: string;
907
907
  };
908
908
  order_id: string;
@@ -922,8 +922,8 @@ export declare const PandaGoWebhook: z.ZodObject<{
922
922
  proof_of_delivery_url?: string | null | undefined;
923
923
  status: "NEW" | "RECEIVED" | "WAITING_FOR_TRANSPORT" | "ASSIGNED_TO_TRANSPORT" | "COURIER_ACCEPTED_DELIVERY" | "NEAR_VENDOR" | "PICKED_UP" | "COURIER_LEFT_VENDOR" | "NEAR_CUSTOMER" | "DELIVERED" | "DELAYED" | "CANCELLED";
924
924
  driver: {
925
- name: string;
926
925
  id: string;
926
+ name: string;
927
927
  phone_number: string;
928
928
  };
929
929
  order_id: string;