@feedmepos/mf-order-setting 0.0.19 → 0.0.21-beta.1

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 (102) hide show
  1. package/dist/App-Dd-xqK-8.js +60 -0
  2. package/dist/{KioskDevicesView-BoHtjiKm.js → KioskDevicesView-snR43qzG.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CEEmPqnA.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DkpYway-.js} +43 -43
  4. package/dist/{KioskView-CBCeIzVp.js → KioskView-5I0PelUy.js} +57 -57
  5. package/dist/OrderSettingsView-CXZq8QAV.js +51594 -0
  6. package/dist/app.js +505 -4
  7. package/dist/dayjs.min-DMfenXNY.js +121871 -0
  8. package/dist/frontend/mf-order/src/App.vue.d.ts +1 -1
  9. package/dist/frontend/mf-order/src/Entry.vue.d.ts +1 -1
  10. package/dist/frontend/mf-order/src/app.d.ts +1 -1
  11. package/dist/frontend/mf-order/src/components/GoogleMap.vue.d.ts +4 -2
  12. package/dist/frontend/mf-order/src/stores/app/index.d.ts +14 -4
  13. package/dist/frontend/mf-order/src/stores/iframe/index.d.ts +2 -2
  14. package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +2 -2
  15. package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +30 -35
  16. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +2 -2
  17. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +579 -715
  18. package/dist/frontend/mf-order/src/views/all-orders/ActionMenuCell.vue.d.ts +2 -2
  19. package/dist/frontend/mf-order/src/views/all-orders/FilterRestaurant.vue.d.ts +8 -1593
  20. package/dist/frontend/mf-order/src/views/all-orders/FilterStatus.vue.d.ts +6 -9
  21. package/dist/frontend/mf-order/src/views/all-orders/FilterStatusMenu.vue.d.ts +5 -11
  22. package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +155 -193
  23. package/dist/frontend/mf-order/src/views/all-orders/UpdateDeliveryOrderDialog.vue.d.ts +2 -2
  24. package/dist/frontend/mf-order/src/views/kiosk/KioskSummary.vue.d.ts +1 -1
  25. package/dist/frontend/mf-order/src/views/kiosk/KioskView.vue.d.ts +1 -1
  26. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskDeviceCard.vue.d.ts +1 -1
  27. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskDeviceDetail.vue.d.ts +1 -1
  28. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskDevicesView.vue.d.ts +1 -1
  29. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskOtpDialog.vue.d.ts +1 -1
  30. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskUnbindConfirm.vue.d.ts +2 -2
  31. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskDineInSection.vue.d.ts +2 -2
  32. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskDisplayStandSection.vue.d.ts +2 -2
  33. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPickAtCounterSection.vue.d.ts +2 -2
  34. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskSettingView.vue.d.ts +1 -1
  35. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskTakeawaySection.vue.d.ts +2 -2
  36. package/dist/frontend/mf-order/src/views/order-settings/delivery/DeliveryList.vue.d.ts +2 -2
  37. package/dist/frontend/mf-order/src/views/order-settings/delivery/components/ManualIntegratedDeliverySetting.vue.d.ts +1 -1
  38. package/dist/frontend/mf-order/src/views/order-settings/delivery/components/TaxInput.vue.d.ts +2 -2
  39. package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/CurrencyInput.vue.d.ts +1 -1
  40. package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/DeliveryCustomTime.vue.d.ts +1 -1
  41. package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/DeliveryOrder.vue.d.ts +105 -2
  42. package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/DeliveryTime.vue.d.ts +1 -1
  43. package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue.d.ts +1 -1
  44. package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/TimePicker.vue.d.ts +6 -120
  45. package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/ZoneDialog.vue.d.ts +1 -1
  46. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/FeedmeDelivery.vue.d.ts +1 -1
  47. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/FoodpandaCampaignDialog.vue.d.ts +1 -1
  48. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/FoodpandaSetting.vue.d.ts +1 -1
  49. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/GrabfoodSetting.vue.d.ts +1 -1
  50. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue.d.ts +1 -1
  51. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ShopeefoodSetting.vue.d.ts +1 -1
  52. package/dist/frontend/mf-order/src/views/order-settings/dinein/OfflinePaymentTypeDialog.vue.d.ts +1 -1
  53. package/dist/frontend/mf-order/src/views/order-settings/dinein/OfflinePaymentTypeDialogContent.vue.d.ts +2 -2
  54. package/dist/frontend/mf-order/src/views/order-settings/dinein/PaymentType.vue.d.ts +1 -1
  55. package/dist/frontend/mf-order/src/views/order-settings/pickup/AddressInput.vue.d.ts +8 -12
  56. package/dist/frontend/mf-order/src/views/order-settings/pickup/CustomPayment.vue.d.ts +6 -12
  57. package/dist/frontend/mf-order/src/views/order-settings/pickup/PaymentSidesheet.vue.d.ts +18 -15
  58. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpPointDialog.vue.d.ts +1 -1
  59. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpPointDialogContent.vue.d.ts +110 -15
  60. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialog.vue.d.ts +1 -1
  61. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialogContent.vue.d.ts +1 -1
  62. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickupList.vue.d.ts +2 -2
  63. package/dist/frontend/mf-order/src/views/order-settings/pickup/Preorder.vue.d.ts +1 -1
  64. package/dist/frontend/mf-order/src/views/order-settings/servicecharge/RateInput.vue.d.ts +1 -1
  65. package/dist/frontend/mf-order/src/views/order-settings/servicecharge/ServiceChargeRule.vue.d.ts +1 -1
  66. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  67. package/dist/{index-SQG-c9lu.js → index-BghBxhGG.js} +7 -7
  68. package/dist/map-UJBUHidz.js +57 -0
  69. package/dist/package/entity/booking/booking.do.d.ts +1025 -95
  70. package/dist/package/entity/delivery/delivery.dto.d.ts +264 -78
  71. package/dist/package/entity/delivery/gateway/kosmo.dto.d.ts +2 -2
  72. package/dist/package/entity/food-court/food-court.dto.d.ts +0 -51
  73. package/dist/package/entity/food-court/order.dto.d.ts +3 -2525
  74. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +267 -1389
  75. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +130 -633
  76. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +188 -1216
  77. package/dist/package/entity/kiosk/kiosk.do.d.ts +2 -2
  78. package/dist/package/entity/kiosk/kiosk.dto.d.ts +2 -2
  79. package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +883 -105
  80. package/dist/package/entity/member/member.dto.d.ts +2 -2
  81. package/dist/package/entity/order/effects/effect.dto.d.ts +6 -6
  82. package/dist/package/entity/order/order.do.d.ts +5 -5
  83. package/dist/package/entity/order/order.dto.d.ts +19749 -36446
  84. package/dist/package/entity/order/payment/payment.dto.d.ts +127 -9620
  85. package/dist/package/entity/order-platform/foodpanda/foodpanda-menu.dto.d.ts +54 -54
  86. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +72 -72
  87. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +241 -55
  88. package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +205 -19
  89. package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +36 -36
  90. package/dist/package/entity/order-platform/menu.dto.d.ts +88 -88
  91. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +205 -19
  92. package/dist/package/entity/payment/payment.dto.d.ts +13 -13
  93. package/dist/package/entity/queue/queue.do.d.ts +80 -80
  94. package/dist/package/entity/queue/queue.dto.d.ts +0 -7
  95. package/dist/package/entity/restaurant/restaurant.dto.d.ts +140 -81
  96. package/package.json +16 -16
  97. package/src/app.ts +3 -2
  98. package/src/views/order-settings/pickup/PickUpSetting.vue +14 -14
  99. package/tsconfig.json +0 -8
  100. package/dist/OrderSettingsView-BvuzzvCp.js +0 -70951
  101. package/dist/app-CbCRr7mV.js +0 -614
  102. package/dist/dayjs.min-WEimBwWx.js +0 -123632
@@ -0,0 +1,60 @@
1
+ import { defineComponent as n, onMounted as s, resolveComponent as a, openBlock as p, createElementBlock as l, createVNode as d } from "vue";
2
+ import { g as c, s as h } from "./map-UJBUHidz.js";
3
+ class i {
4
+ constructor(t = null, e = {}) {
5
+ if (this.apiKey = t, this.options = e, typeof window > "u")
6
+ throw new Error("google-maps is supported only in browser environment");
7
+ }
8
+ load() {
9
+ return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[i.CALLBACK_NAME] = () => {
10
+ if (this.api = window.google, typeof this.resolve > "u")
11
+ throw new Error("Should not happen");
12
+ this.resolve(this.api);
13
+ }, window.gm_authFailure = () => {
14
+ if (typeof this.reject > "u")
15
+ throw new Error("Should not happen");
16
+ this.reject(new Error("google-maps: authentication error"));
17
+ }, this.loader = new Promise((t, e) => {
18
+ this.resolve = t, this.reject = e;
19
+ const o = document.createElement("script");
20
+ o.src = this.createUrl(), o.async = !0, o.onerror = (r) => e(r), document.head.appendChild(o);
21
+ }));
22
+ }
23
+ createUrl() {
24
+ const t = [
25
+ `callback=${i.CALLBACK_NAME}`
26
+ ];
27
+ this.apiKey && t.push(`key=${this.apiKey}`);
28
+ for (let e in this.options)
29
+ if (this.options.hasOwnProperty(e)) {
30
+ let o = this.options[e];
31
+ e === "version" && (e = "v"), e === "libraries" && (o = o.join(",")), t.push(`${e}=${o}`);
32
+ }
33
+ return `https://maps.googleapis.com/maps/api/js?${t.join("&")}`;
34
+ }
35
+ }
36
+ i.CALLBACK_NAME = "_dk_google_maps_loader_cb";
37
+ var u = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: {}, gtm: { debug: !1 }, r2: null };
38
+ const f = { class: "flex-1 overflow-auto" }, _ = /* @__PURE__ */ n({
39
+ __name: "App",
40
+ setup(m) {
41
+ async function t() {
42
+ if (c()) return;
43
+ const o = await new i(u.googleMap, {
44
+ libraries: ["places"]
45
+ }).load();
46
+ h(o);
47
+ }
48
+ return s(async () => {
49
+ await t();
50
+ }), (e, o) => {
51
+ const r = a("RouterView");
52
+ return p(), l("div", f, [
53
+ d(r)
54
+ ]);
55
+ };
56
+ }
57
+ });
58
+ export {
59
+ _ as default
60
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-CEEmPqnA.js";
1
+ import { _ as f } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-DkpYway-.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,24 +1,24 @@
1
- import { defineComponent as g, ref as D, resolveComponent as f, openBlock as i, createElementBlock as c, createElementVNode as a, toDisplayString as d, unref as m, createVNode as v, computed as B, withCtx as F, Fragment as y, renderList as h, createCommentVNode as C, createBlock as M } from "vue";
1
+ import { defineComponent as g, ref as D, resolveComponent as f, openBlock as i, createElementBlock as c, createElementVNode as a, toDisplayString as d, unref as u, createVNode as _, computed as B, withCtx as F, Fragment as y, renderList as h, createCommentVNode as C, createBlock as M } from "vue";
2
2
  import { useDialog as O, useSnackbar as q } from "@feedmepos/ui-library";
3
3
  import { useI18n as I } from "@feedmepos/mf-common";
4
4
  import { defineStore as N } from "pinia";
5
- import { r as w, g as K, D as T } from "./dayjs.min-WEimBwWx.js";
5
+ import { r as w, g as K, D as T } from "./dayjs.min-DMfenXNY.js";
6
6
  const U = /* @__PURE__ */ g({
7
7
  __name: "KioskUnbindConfirm",
8
8
  props: {
9
9
  machineId: {}
10
10
  },
11
11
  emits: ["update:modelValue"],
12
- setup(e, { emit: t }) {
13
- const { t: n } = I(), l = t, o = D("");
12
+ setup(e, { emit: n }) {
13
+ const { t } = I(), l = n, o = D("");
14
14
  function s(r) {
15
15
  l("update:modelValue", r);
16
16
  }
17
17
  return (r, x) => {
18
- const _ = f("FmTextField");
18
+ const v = f("FmTextField");
19
19
  return i(), c("div", null, [
20
- a("span", null, d(m(n)("order.unbindKioskDeviceWarning", { machineId: r.machineId })), 1),
21
- v(_, {
20
+ a("span", null, d(u(t)("order.unbindKioskDeviceWarning", { machineId: r.machineId })), 1),
21
+ _(v, {
22
22
  "model-value": o.value,
23
23
  "onUpdate:modelValue": s,
24
24
  placeholder: r.machineId
@@ -53,8 +53,8 @@ const k = {
53
53
  activatedAt: H(e.token)
54
54
  });
55
55
  function H(e) {
56
- const t = e.substring(0, 8), n = parseInt(t, 16);
57
- return new Date(n * 1e3);
56
+ const n = e.substring(0, 8), t = parseInt(n, 16);
57
+ return new Date(t * 1e3);
58
58
  }
59
59
  const P = {
60
60
  toMfKioskDevice: W
@@ -63,36 +63,36 @@ const P = {
63
63
  otp: "",
64
64
  devices: []
65
65
  });
66
- async function t() {
66
+ async function n() {
67
67
  const o = await k.requestOtp();
68
68
  e.value.otp = o.otp;
69
69
  }
70
- async function n() {
70
+ async function t() {
71
71
  const o = await k.getDevices();
72
72
  e.value.devices = o.map((s) => P.toMfKioskDevice(s));
73
73
  }
74
74
  async function l(o) {
75
- await k.unbind(o), await n();
75
+ await k.unbind(o), await t();
76
76
  }
77
77
  return {
78
78
  state: e,
79
- requestOtp: t,
80
- getDevices: n,
79
+ requestOtp: n,
80
+ getDevices: t,
81
81
  unbind: l
82
82
  };
83
83
  }), E = { class: "border fm-corner-radius-lg flex justify-between pr-[1rem] w-11/12" }, G = { class: "py-[1rem] flex flex-col gap-6" }, J = { class: "fm-typo-en-title-sm-600" }, Q = { class: "w-full border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2" }, R = {
84
84
  key: 0,
85
85
  class: "fm-typo-en-title-sm-600"
86
- }, X = { class: "flex flex-col gap-1" }, Z = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ee = { class: "fm-typo-en-body-lg-600 block" }, te = /* @__PURE__ */ g({
86
+ }, X = { class: "flex flex-col gap-1" }, Z = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ee = { class: "fm-typo-en-body-lg-600 block" }, ne = /* @__PURE__ */ g({
87
87
  __name: "KioskDeviceCard",
88
88
  props: {
89
89
  device: {}
90
90
  },
91
91
  setup(e) {
92
- const { t } = I(), n = O(), l = q(), o = z(), s = e, r = D(""), x = B(() => Object.entries(s.device.config));
93
- function _() {
94
- r.value = "", n.open({
95
- title: t("order.unbindKioskDevice"),
92
+ const { t: n } = I(), t = O(), l = q(), o = z(), s = e, r = D(""), x = B(() => Object.entries(s.device.config));
93
+ function v() {
94
+ r.value = "", t.open({
95
+ title: n("order.unbindKioskDevice"),
96
96
  contentComponent: U,
97
97
  contentComponentProps: {
98
98
  machineId: s.device.machineId,
@@ -102,23 +102,23 @@ const P = {
102
102
  },
103
103
  dismissAway: !1,
104
104
  primaryActions: {
105
- text: t("order.unbind"),
105
+ text: n("order.unbind"),
106
106
  variant: "destructive",
107
107
  close: !1
108
108
  },
109
109
  secondaryActions: {
110
- text: t("order.cancel"),
110
+ text: n("order.cancel"),
111
111
  variant: "tertiary",
112
112
  close: !0
113
113
  }
114
114
  }).onPrimary(async () => {
115
115
  r.value == s.device.machineId ? (await V(), l.open({
116
116
  type: "success",
117
- message: t("order.unbindSuccess"),
117
+ message: n("order.unbindSuccess"),
118
118
  position: "bottom"
119
- }), n.close()) : l.open({
119
+ }), t.close()) : l.open({
120
120
  type: "warning",
121
- message: t("order.unbindWarning"),
121
+ message: n("order.unbindWarning"),
122
122
  position: "bottom"
123
123
  });
124
124
  });
@@ -129,25 +129,25 @@ const P = {
129
129
  return (p, ce) => {
130
130
  const S = f("FmListItem"), $ = f("FmSideSheet"), A = f("FmButton");
131
131
  return i(), c("div", E, [
132
- v($, {
133
- header: m(t)("order.deviceDetails"),
132
+ _($, {
133
+ header: u(n)("order.deviceDetails"),
134
134
  "dismiss-away": "",
135
135
  class: "w-full",
136
136
  maxWidth: 700
137
137
  }, {
138
138
  "side-sheet-button": F(() => [
139
- v(S, {
139
+ _(S, {
140
140
  class: "flex-1",
141
141
  label: p.device.name,
142
- sublabel: `${m(t)("order.activatedDate")}: ${m(T)(p.device.activatedAt).format("DD MMM YYYY HH:mm")}`
142
+ sublabel: `${u(n)("order.activatedDate")}: ${u(T)(p.device.activatedAt).format("DD MMM YYYY HH:mm")}`
143
143
  }, null, 8, ["label", "sublabel"])
144
144
  ]),
145
145
  default: F(() => [
146
146
  a("div", G, [
147
147
  a("span", J, d(p.device.name), 1),
148
- (i(!0), c(y, null, h(x.value.filter((u) => u[1]), (u) => (i(), c("div", Q, [
149
- u[1] ? (i(), c("span", R, d(u[0]), 1)) : C("", !0),
150
- u[1] ? (i(!0), c(y, { key: 1 }, h(Object.entries(u[1]), (b) => (i(), c("div", X, [
148
+ (i(!0), c(y, null, h(x.value.filter((m) => m[1]), (m) => (i(), c("div", Q, [
149
+ m[1] ? (i(), c("span", R, d(m[0]), 1)) : C("", !0),
150
+ m[1] ? (i(!0), c(y, { key: 1 }, h(Object.entries(m[1]), (b) => (i(), c("div", X, [
151
151
  a("span", Z, d(b[0]), 1),
152
152
  a("span", ee, d(b[1] == "" ? "-" : b[1]), 1)
153
153
  ]))), 256)) : C("", !0)
@@ -156,43 +156,43 @@ const P = {
156
156
  ]),
157
157
  _: 1
158
158
  }, 8, ["header"]),
159
- v(A, {
159
+ _(A, {
160
160
  variant: "plain",
161
161
  "append-icon": "link_off",
162
162
  class: "text-fm-color-system-error-300 align-middle my-auto",
163
- onClick: _
163
+ onClick: v
164
164
  })
165
165
  ]);
166
166
  };
167
167
  }
168
- }), ne = { class: "flex flex-col gap-2" }, oe = { class: "flex flex-col gap-2" }, se = { class: "fm-typo-en-title-sm-600 block" }, ie = { class: "fm-typo-en-body-md-400 block" }, ae = { class: "flex flex-col gap-6" }, pe = /* @__PURE__ */ g({
168
+ }), te = { class: "flex flex-col gap-2" }, oe = { class: "flex flex-col gap-2" }, se = { class: "fm-typo-en-title-sm-600 block" }, ie = { class: "fm-typo-en-body-md-400 block" }, ae = { class: "flex flex-col gap-6" }, pe = /* @__PURE__ */ g({
169
169
  __name: "KioskDevicesView",
170
170
  props: {
171
171
  devices: {},
172
172
  requestOtp: { type: Function }
173
173
  },
174
174
  setup(e) {
175
- const { t } = I();
176
- return (n, l) => {
175
+ const { t: n } = I();
176
+ return (t, l) => {
177
177
  const o = f("FmButton");
178
178
  return i(), c("div", null, [
179
- a("div", ne, [
179
+ a("div", te, [
180
180
  a("div", oe, [
181
- a("span", se, d(m(t)("order.kioskDisplay")), 1),
182
- a("span", ie, d(m(t)("order.kioskDisplayDescription")), 1)
181
+ a("span", se, d(u(n)("order.kioskDisplay")), 1),
182
+ a("span", ie, d(u(n)("order.kioskDisplayDescription")), 1)
183
183
  ]),
184
184
  a("div", ae, [
185
- (i(!0), c(y, null, h(n.devices, (s) => (i(), M(te, {
185
+ (i(!0), c(y, null, h(t.devices, (s) => (i(), M(ne, {
186
186
  key: s.machineId,
187
187
  device: s
188
188
  }, null, 8, ["device"]))), 128)),
189
- v(o, {
189
+ _(o, {
190
190
  variant: "plain",
191
191
  class: "w-[10rem] border border-fm-color-primary fm-corner-radius-lg",
192
- label: m(t)("order.bindDevice"),
192
+ label: u(n)("order.bindDevice"),
193
193
  size: "md",
194
194
  "prepend-icon": "link",
195
- onClick: n.requestOtp
195
+ onClick: t.requestOtp
196
196
  }, null, 8, ["label", "onClick"])
197
197
  ])
198
198
  ])
@@ -1,11 +1,11 @@
1
- import { defineComponent as O, computed as _, openBlock as c, createElementBlock as k, createElementVNode as n, toDisplayString as l, unref as o, Fragment as L, renderList as j, createCommentVNode as f, ref as b, defineAsyncComponent as z, watch as G, resolveComponent as I, createVNode as S, createBlock as R } from "vue";
2
- import { u as J, _ as Q } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-CEEmPqnA.js";
1
+ import { defineComponent as O, computed as _, openBlock as c, createElementBlock as k, createElementVNode as s, toDisplayString as l, unref as o, Fragment as L, renderList as j, createCommentVNode as f, ref as b, defineAsyncComponent as z, watch as G, resolveComponent as I, createVNode as S, createBlock as R } from "vue";
2
+ import { u as J, _ as Q } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-DkpYway-.js";
3
3
  import { useI18n as $, useCoreStore as W } from "@feedmepos/mf-common";
4
4
  import { useDialog as X, useSnackbar as Y } from "@feedmepos/ui-library";
5
5
  import { defineStore as Z } from "pinia";
6
- import { O as N, c as ee } from "./index-SQG-c9lu.js";
7
- import { F as te } from "./dayjs.min-WEimBwWx.js";
8
- const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5" }, ne = { class: "fm-typo-en-title-sm-600" }, oe = { class: "flex flex-col gap-1" }, ae = { class: "flex flex-col gap-1" }, ie = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, re = { class: "fm-typo-en-body-lg-600" }, de = { key: 0 }, le = { key: 1 }, ce = { key: 0 }, ue = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-lg-600 block" }, me = { key: 1 }, ke = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ve = { class: "fm-typo-en-body-lg-600 block" }, _e = { key: 2 }, fe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 block" }, ge = /* @__PURE__ */ O({
6
+ import { O as N, c as ee } from "./index-BghBxhGG.js";
7
+ import { F as te } from "./dayjs.min-DMfenXNY.js";
8
+ const ne = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5" }, se = { class: "fm-typo-en-title-sm-600" }, oe = { class: "flex flex-col gap-1" }, ae = { class: "flex flex-col gap-1" }, ie = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, re = { class: "fm-typo-en-body-lg-600" }, de = { key: 0 }, le = { key: 1 }, ce = { key: 0 }, ue = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-lg-600 block" }, me = { key: 1 }, ke = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ve = { class: "fm-typo-en-body-lg-600 block" }, _e = { key: 2 }, fe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 block" }, ge = /* @__PURE__ */ O({
9
9
  __name: "KioskSummary",
10
10
  props: {
11
11
  restaurantId: {},
@@ -13,7 +13,7 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
13
13
  kioskOrderSetting: {}
14
14
  },
15
15
  setup(t) {
16
- const { t: e } = $(), i = t, s = _(() => {
16
+ const { t: e } = $(), i = t, n = _(() => {
17
17
  var r;
18
18
  return (r = i.kioskOrderSetting) != null && r.dineIn.enabled ? e("order.activated") : e("order.deactivated");
19
19
  }), d = _(() => {
@@ -23,13 +23,13 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
23
23
  var r, u;
24
24
  return (r = i.kioskOrderSetting) != null && r.dineIn.displayStand ? e("order.tableService") : (u = i.kioskOrderSetting) != null && u.dineIn && !i.kioskOrderSetting.dineIn.displayStand ? e("order.pickAtCounter") : e("order.unknown");
25
25
  });
26
- return (r, u) => (c(), k("div", se, [
27
- n("span", ne, l(o(e)("order.kioskSummary")), 1),
28
- u[0] || (u[0] = n("hr", { class: "my-[0.25rem]" }, null, -1)),
29
- n("div", oe, [
30
- n("div", ae, [
31
- n("span", ie, l(o(e)("order.kioskDisplay")), 1),
32
- n("div", re, [
26
+ return (r, u) => (c(), k("div", ne, [
27
+ s("span", se, l(o(e)("order.kioskSummary")), 1),
28
+ u[0] || (u[0] = s("hr", { class: "my-[0.25rem]" }, null, -1)),
29
+ s("div", oe, [
30
+ s("div", ae, [
31
+ s("span", ie, l(o(e)("order.kioskDisplay")), 1),
32
+ s("div", re, [
33
33
  r.devices.length > 0 ? (c(), k("div", de, [
34
34
  (c(!0), k(L, null, j(r.devices, (p) => (c(), k("li", {
35
35
  class: "block",
@@ -37,22 +37,22 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
37
37
  }, l(p.name), 1))), 128))
38
38
  ])) : (c(), k("div", le, "-"))
39
39
  ]),
40
- s.value === o(e)("order.activated") ? (c(), k("div", ce, [
41
- n("span", ue, l(o(e)("order.dineIn")), 1),
42
- n("div", pe, [
43
- n("div", null, l(s.value), 1)
40
+ n.value === o(e)("order.activated") ? (c(), k("div", ce, [
41
+ s("span", ue, l(o(e)("order.dineIn")), 1),
42
+ s("div", pe, [
43
+ s("div", null, l(n.value), 1)
44
44
  ])
45
45
  ])) : f("", !0),
46
- s.value === o(e)("order.activated") && a.value !== o(e)("order.unknown") ? (c(), k("div", me, [
47
- n("span", ke, l(o(e)("order.dineInType")), 1),
48
- n("div", ve, [
49
- n("div", null, l(a.value), 1)
46
+ n.value === o(e)("order.activated") && a.value !== o(e)("order.unknown") ? (c(), k("div", me, [
47
+ s("span", ke, l(o(e)("order.dineInType")), 1),
48
+ s("div", ve, [
49
+ s("div", null, l(a.value), 1)
50
50
  ])
51
51
  ])) : f("", !0),
52
52
  d.value === o(e)("order.activated") ? (c(), k("div", _e, [
53
- n("span", fe, l(o(e)("order.takeaway")), 1),
54
- n("div", ye, [
55
- n("div", null, l(d.value), 1)
53
+ s("span", fe, l(o(e)("order.takeaway")), 1),
54
+ s("div", ye, [
55
+ s("div", null, l(d.value), 1)
56
56
  ])
57
57
  ])) : f("", !0)
58
58
  ])
@@ -66,9 +66,9 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
66
66
  },
67
67
  setup(t) {
68
68
  const { t: e } = $();
69
- return (i, s) => (c(), k("div", Se, [
70
- n("span", be, l(o(e)("order.bindDeviceMessage")), 1),
71
- n("div", he, l(i.otp), 1)
69
+ return (i, n) => (c(), k("div", Se, [
70
+ s("span", be, l(o(e)("order.bindDeviceMessage")), 1),
71
+ s("div", he, l(i.otp), 1)
72
72
  ]));
73
73
  }
74
74
  }), D = {
@@ -106,16 +106,16 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
106
106
  }
107
107
  }), Ke = (t, e) => {
108
108
  if (e) {
109
- const s = e.displayStand, d = e.pickUp ?? K;
109
+ const n = e.displayStand, d = e.pickUp ?? K;
110
110
  return {
111
111
  enabled: !0,
112
112
  sequenceNumber: t,
113
113
  pickUp: d,
114
- displayStand: s ? {
115
- enabled: s.enabled,
116
- standSlotRange: s.standSlotRange,
117
- prefix: s.prefix,
118
- padDigit: s.padDigit
114
+ displayStand: n ? {
115
+ enabled: n.enabled,
116
+ standSlotRange: n.standSlotRange,
117
+ prefix: n.prefix,
118
+ padDigit: n.padDigit
119
119
  } : D
120
120
  };
121
121
  } else
@@ -126,23 +126,23 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
126
126
  pickUp: K
127
127
  };
128
128
  }, Oe = (t) => {
129
- const i = ((s) => {
130
- if (s.enabled)
129
+ const i = ((n) => {
130
+ if (n.enabled)
131
131
  return {
132
132
  dineIn: {
133
- requiredSlot: !!s.displayStand,
134
- displayStand: s.displayStand,
135
- pickUp: s.pickUp
133
+ requiredSlot: !!n.displayStand,
134
+ displayStand: n.displayStand,
135
+ pickUp: n.pickUp
136
136
  },
137
- kioskDineIn: s.sequenceNumber
137
+ kioskDineIn: n.sequenceNumber
138
138
  };
139
139
  })(t.dineIn);
140
140
  if (i) {
141
- const { dineIn: s, kioskDineIn: d } = i;
141
+ const { dineIn: n, kioskDineIn: d } = i;
142
142
  return {
143
143
  kioskSettings: {
144
144
  canTakeaway: t.takeaway.enabled,
145
- dineIn: s
145
+ dineIn: n
146
146
  },
147
147
  kioskDineIn: d
148
148
  };
@@ -160,7 +160,7 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
160
160
  const t = b({});
161
161
  async function e() {
162
162
  const a = await N.getOrderSetting();
163
- s(a);
163
+ n(a);
164
164
  }
165
165
  async function i() {
166
166
  if (t.value.orderSetting && t.value.kiosk) {
@@ -168,10 +168,10 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
168
168
  ...r,
169
169
  kioskSettings: u.kioskSettings
170
170
  }, h = await N.updateOrderSetting(p);
171
- s(h);
171
+ n(h);
172
172
  }
173
173
  }
174
- function s(a) {
174
+ function n(a) {
175
175
  t.value.orderSetting = a, t.value.kiosk = T.convertOrderSettingDto(a).kiosk;
176
176
  }
177
177
  function d(a) {
@@ -187,7 +187,7 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
187
187
  __name: "KioskView",
188
188
  setup(t) {
189
189
  var q, C;
190
- const { t: e } = $(), i = z(() => import("./KioskSettingView-6Q0qwSTl.js")), s = b("device"), d = J(), a = $e(), r = X(), { currentRestaurant: u, restaurants: p, changeRestaurant: h } = W(), F = Y(), y = b(((q = u.value) == null ? void 0 : q._id) ?? void 0), B = _(() => p.value.map((m) => ({
190
+ const { t: e } = $(), i = z(() => import("./KioskSettingView-6Q0qwSTl.js")), n = b("device"), d = J(), a = $e(), r = X(), { currentRestaurant: u, restaurants: p, changeRestaurant: h } = W(), F = Y(), y = b(((q = u.value) == null ? void 0 : q._id) ?? void 0), B = _(() => p.value.map((m) => ({
191
191
  label: m.profile.name,
192
192
  value: m._id
193
193
  }))), g = b(((C = u.value) == null ? void 0 : C._id) ?? "");
@@ -235,18 +235,18 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
235
235
  S(x, {
236
236
  title: o(e)("order.kiosk")
237
237
  }, null, 8, ["title"]),
238
- n("div", Ue, [
239
- n("div", Ve, [
238
+ s("div", Ue, [
239
+ s("div", Ve, [
240
240
  S(E, {
241
- "model-value": s.value,
242
- "onUpdate:modelValue": v[0] || (v[0] = (w) => s.value = w),
241
+ "model-value": n.value,
242
+ "onUpdate:modelValue": v[0] || (v[0] = (w) => n.value = w),
243
243
  items: A.value
244
244
  }, null, 8, ["model-value", "items"]),
245
- n("div", qe, [
246
- n("div", Ce, [
247
- n("div", Re, [
248
- n("span", Ne, l(o(e)("order.activateLocation")), 1),
249
- n("span", Te, l(o(e)("order.selectRestaurant")) + ": ", 1),
245
+ s("div", qe, [
246
+ s("div", Ce, [
247
+ s("div", Re, [
248
+ s("span", Ne, l(o(e)("order.activateLocation")), 1),
249
+ s("span", Te, l(o(e)("order.selectRestaurant")) + ": ", 1),
250
250
  S(H, {
251
251
  class: "w-1/2",
252
252
  modelValue: y.value,
@@ -258,12 +258,12 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
258
258
  placeholder: o(e)("order.selectItem")
259
259
  }, null, 8, ["modelValue", "items", "placeholder"])
260
260
  ]),
261
- s.value == "device" ? (c(), R(Q, {
261
+ n.value == "device" ? (c(), R(Q, {
262
262
  key: 0,
263
263
  devices: V.value,
264
264
  "request-otp": P
265
265
  }, null, 8, ["devices"])) : f("", !0),
266
- s.value == "setting" ? (c(), R(o(i), {
266
+ n.value == "setting" ? (c(), R(o(i), {
267
267
  key: `KioskSettingView-${g.value}`,
268
268
  "restaurant-id": g.value,
269
269
  onUpdateKioskOrderSetting: M,
@@ -272,7 +272,7 @@ const se = { class: "p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5"
272
272
  ])
273
273
  ])
274
274
  ]),
275
- n("div", Be, [
275
+ s("div", Be, [
276
276
  S(ge, {
277
277
  "restaurant-id": g.value,
278
278
  devices: V.value,