@feedmepos/mf-order-setting 0.0.38 → 0.0.44

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 (51) hide show
  1. package/dist/{KioskDevicesView-DoTQRyXe.js → KioskDevicesView-KBpXQJmy.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-DB0dvpBG.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-taf41a-7.js} +2 -2
  3. package/dist/KioskSettingView-DG12ZvfT.js +528 -0
  4. package/dist/{KioskView-4-s6RwC6.js → KioskView-KNiT-upH.js} +125 -119
  5. package/dist/{OrderSettingsView-BqgGXVhY.js → OrderSettingsView-CEh1QUZm.js} +11407 -12610
  6. package/dist/{app-BbOgWoeI.js → app-CKeIud_f.js} +14 -11
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-COLd3dVw.js → dayjs.min-D9bsUd57.js} +232 -242
  9. package/dist/frontend/mf-order/src/app.d.ts +6 -3
  10. package/dist/frontend/mf-order/src/main.d.ts +6 -3
  11. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +3 -3
  12. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +1 -1
  13. package/dist/frontend/mf-order/src/views/order-settings/delivery/components/ManualIntegratedDeliverySetting.vue.d.ts +5 -0
  14. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  15. package/dist/{index-BewBuJGi.js → index-D_Tmm1qL.js} +2 -2
  16. package/dist/{menu.dto-Bf0Evx6J.js → menu.dto-BY9dVf93.js} +8216 -8201
  17. package/dist/package/entity/delivery/linked-delivery.do.d.ts +9 -0
  18. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +17 -17
  19. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +21 -21
  20. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +18 -18
  21. package/dist/package/entity/order/dine-in/dine-in.do.d.ts +11 -11
  22. package/dist/package/entity/order/dine-in/dine-in.dto.d.ts +4 -4
  23. package/dist/package/entity/order/menu/menu.dto.d.ts +4 -4
  24. package/dist/package/entity/order/order.do.d.ts +8 -8
  25. package/dist/package/entity/order/order.dto.d.ts +38 -38
  26. package/dist/package/entity/order/order.enum.d.ts +1 -1
  27. package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -5
  28. package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -10
  29. package/dist/package/entity/order-setting/sms/sms.do.d.ts +3 -3
  30. package/dist/package/entity/order-setting/sms/sms.dto.d.ts +3 -3
  31. package/dist/package/entity/queue/queue.dto.d.ts +4 -4
  32. package/package.json +2 -2
  33. package/src/locales/en-US.json +2 -1
  34. package/src/locales/th-TH.json +2 -1
  35. package/src/locales/zh-CN.json +2 -1
  36. package/src/views/kiosk/KioskView.vue +16 -4
  37. package/src/views/kiosk/settings/KioskSettingView.vue +193 -122
  38. package/src/views/order-settings/OrderSettingsView.vue +10 -10
  39. package/src/views/order-settings/delivery/DeliverySetting.vue +22 -22
  40. package/src/views/order-settings/delivery/components/ManualIntegratedDeliverySetting.vue +28 -7
  41. package/src/views/order-settings/delivery/delivery.ts +9 -5
  42. package/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue +3 -17
  43. package/dist/KioskSettingView-DRpVR7Ij.js +0 -843
  44. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskDineInSection.vue.d.ts +0 -10
  45. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskEnablePaxDialogSection.vue.d.ts +0 -9
  46. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskMenuItemSection.vue.d.ts +0 -9
  47. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskTakeawaySection.vue.d.ts +0 -10
  48. package/src/views/kiosk/settings/KioskDineInSection.vue +0 -68
  49. package/src/views/kiosk/settings/KioskEnablePaxDialogSection.vue +0 -33
  50. package/src/views/kiosk/settings/KioskMenuItemSection.vue +0 -27
  51. package/src/views/kiosk/settings/KioskTakeawaySection.vue +0 -66
@@ -1,17 +1,17 @@
1
- import { defineComponent as I, computed as b, createElementBlock as y, openBlock as c, normalizeClass as X, createCommentVNode as _, createElementVNode as o, toDisplayString as m, unref as d, Fragment as Z, renderList as ee, ref as k, defineAsyncComponent as te, watch as ae, resolveComponent as S, createVNode as P, withCtx as ne, withDirectives as se, vShow as oe, createBlock as R } from "vue";
2
- import { u as re, _ as le } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-DB0dvpBG.js";
3
- import { useI18n as A, useCoreStore as de } from "@feedmepos/mf-common";
4
- import { F as V, a as ie, b as ce } from "./menu.dto-Bf0Evx6J.js";
5
- import { useDialog as ue, useSnackbar as pe, useBreakpoints as me } from "@feedmepos/ui-library";
6
- import { defineStore as ye } from "pinia";
7
- import { O as B, c as D } from "./index-BewBuJGi.js";
8
- const fe = {
1
+ import { defineComponent as I, computed as b, createElementBlock as f, openBlock as c, normalizeClass as Z, createCommentVNode as _, createElementVNode as o, toDisplayString as m, unref as d, Fragment as ee, renderList as te, ref as k, defineAsyncComponent as ae, onMounted as ne, watch as se, resolveComponent as S, createVNode as w, withCtx as oe, withDirectives as re, vShow as le, createBlock as D } from "vue";
2
+ import { u as de, _ as ie } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-taf41a-7.js";
3
+ import { useI18n as A, useCoreStore as ce } from "@feedmepos/mf-common";
4
+ import { F as V, a as ue, b as pe } from "./menu.dto-BY9dVf93.js";
5
+ import { useDialog as ye, useSnackbar as me, useBreakpoints as fe } from "@feedmepos/ui-library";
6
+ import { defineStore as ve } from "pinia";
7
+ import { O as B, c as E } from "./index-D_Tmm1qL.js";
8
+ const _e = {
9
9
  key: 0,
10
10
  class: "fm-typo-en-title-sm-600"
11
- }, ve = {
11
+ }, be = {
12
12
  key: 1,
13
13
  class: "my-[0.25rem]"
14
- }, _e = { class: "flex flex-col gap-1" }, be = { class: "flex flex-col gap-1" }, he = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-lg-600" }, Pe = { key: 0 }, we = { key: 1 }, Oe = { key: 0 }, Se = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 block" }, xe = { key: 1 }, Te = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ce = { class: "fm-typo-en-body-lg-600 block" }, Ie = { key: 2 }, Ae = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-lg-600 block" }, Ue = { key: 3 }, $e = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Fe = { class: "fm-typo-en-body-lg-600 block" }, qe = { key: 0 }, E = /* @__PURE__ */ I({
14
+ }, he = { class: "flex flex-col gap-1" }, ge = { class: "flex flex-col gap-1" }, Pe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-lg-600" }, Oe = { key: 0 }, Se = { key: 1 }, ke = { key: 0 }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Te = { class: "fm-typo-en-body-lg-600 block" }, Ce = { key: 1 }, Ie = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ae = { class: "fm-typo-en-body-lg-600 block" }, Ke = { key: 2 }, Ue = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, $e = { class: "fm-typo-en-body-lg-600 block" }, Fe = { key: 3 }, qe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Re = { class: "fm-typo-en-body-lg-600 block" }, De = { key: 0 }, M = /* @__PURE__ */ I({
15
15
  __name: "KioskSummary",
16
16
  props: {
17
17
  restaurantId: {},
@@ -43,44 +43,44 @@ const fe = {
43
43
  }
44
44
  return a.join(", ");
45
45
  });
46
- return (a, p) => (c(), y("div", {
47
- class: X(a.dialogType ? "" : ["p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5 fixed ml-40 w-[320px]"])
46
+ return (a, p) => (c(), f("div", {
47
+ class: Z(a.dialogType ? "" : ["p-[1.5rem] border fm-corner-radius-lg flex flex-col gap-5 fixed ml-40 w-[320px]"])
48
48
  }, [
49
- a.dialogType ? _("", !0) : (c(), y("span", fe, m(d(e)("order.kioskSummary")), 1)),
50
- a.dialogType ? _("", !0) : (c(), y("hr", ve)),
51
- o("div", _e, [
52
- o("div", be, [
53
- o("span", he, m(d(e)("order.kioskDisplay")), 1),
54
- o("div", ge, [
55
- a.devices.length > 0 ? (c(), y("div", Pe, [
56
- (c(!0), y(Z, null, ee(a.devices, (v) => (c(), y("li", {
49
+ a.dialogType ? _("", !0) : (c(), f("span", _e, m(d(e)("order.kioskSummary")), 1)),
50
+ a.dialogType ? _("", !0) : (c(), f("hr", be)),
51
+ o("div", he, [
52
+ o("div", ge, [
53
+ o("span", Pe, m(d(e)("order.kioskDisplay")), 1),
54
+ o("div", we, [
55
+ a.devices.length > 0 ? (c(), f("div", Oe, [
56
+ (c(!0), f(ee, null, te(a.devices, (v) => (c(), f("li", {
57
57
  class: "block",
58
58
  key: v.machineId
59
59
  }, m(v.name), 1))), 128))
60
- ])) : (c(), y("div", we, "-"))
60
+ ])) : (c(), f("div", Se, "-"))
61
61
  ]),
62
- l.value === d(e)("order.activated") ? (c(), y("div", Oe, [
63
- o("span", Se, m(d(e)("order.dineIn")), 1),
64
- o("div", ke, [
62
+ l.value === d(e)("order.activated") ? (c(), f("div", ke, [
63
+ o("span", xe, m(d(e)("order.dineIn")), 1),
64
+ o("div", Te, [
65
65
  o("div", null, m(l.value), 1)
66
66
  ])
67
67
  ])) : _("", !0),
68
- l.value === d(e)("order.activated") && s.value !== d(e)("order.unknown") ? (c(), y("div", xe, [
69
- o("span", Te, m(d(e)("order.dineInType")), 1),
70
- o("div", Ce, [
68
+ l.value === d(e)("order.activated") && s.value !== d(e)("order.unknown") ? (c(), f("div", Ce, [
69
+ o("span", Ie, m(d(e)("order.dineInType")), 1),
70
+ o("div", Ae, [
71
71
  o("div", null, m(s.value), 1)
72
72
  ])
73
73
  ])) : _("", !0),
74
- n.value === d(e)("order.activated") ? (c(), y("div", Ie, [
75
- o("span", Ae, m(d(e)("order.takeaway")), 1),
76
- o("div", Ke, [
74
+ n.value === d(e)("order.activated") ? (c(), f("div", Ke, [
75
+ o("span", Ue, m(d(e)("order.takeaway")), 1),
76
+ o("div", $e, [
77
77
  o("div", null, m(n.value), 1)
78
78
  ])
79
79
  ])) : _("", !0),
80
- i.value || u.value ? (c(), y("div", Ue, [
81
- o("span", $e, m(d(e)("order.acceptedPayment")), 1),
82
- o("div", Fe, [
83
- u.value ? (c(), y("div", qe, m(d(e)("order.offlinePayment")), 1)) : _("", !0),
80
+ i.value || u.value ? (c(), f("div", Fe, [
81
+ o("span", qe, m(d(e)("order.acceptedPayment")), 1),
82
+ o("div", Re, [
83
+ u.value ? (c(), f("div", De, m(d(e)("order.offlinePayment")), 1)) : _("", !0),
84
84
  o("div", null, m(i.value), 1)
85
85
  ])
86
86
  ])) : _("", !0)
@@ -88,19 +88,19 @@ const fe = {
88
88
  ])
89
89
  ], 2));
90
90
  }
91
- }), Re = { class: "flex flex-col gap-5 pb-6" }, Ve = { class: "fm-typo-en-body-md-400 block" }, Be = { class: "fm-typo-en-title-md-600" }, De = /* @__PURE__ */ I({
91
+ }), Ve = { class: "flex flex-col gap-5 pb-6" }, Be = { class: "fm-typo-en-body-md-400 block" }, Ee = { class: "fm-typo-en-title-md-600" }, Me = /* @__PURE__ */ I({
92
92
  __name: "KioskOtpDialog",
93
93
  props: {
94
94
  otp: {}
95
95
  },
96
96
  setup(t) {
97
97
  const { t: e } = A();
98
- return (r, l) => (c(), y("div", Re, [
99
- o("span", Ve, m(d(e)("order.bindDeviceMessage")), 1),
100
- o("div", Be, m(r.otp), 1)
98
+ return (r, l) => (c(), f("div", Ve, [
99
+ o("span", Be, m(d(e)("order.bindDeviceMessage")), 1),
100
+ o("div", Ee, m(r.otp), 1)
101
101
  ]));
102
102
  }
103
- }), M = {
103
+ }), W = {
104
104
  enabled: !1,
105
105
  prefix: null,
106
106
  padDigit: 0,
@@ -113,27 +113,27 @@ const fe = {
113
113
  payAtCounter: null,
114
114
  paid: null
115
115
  }
116
- }, Ee = {
116
+ }, Ne = {
117
117
  enabled: !1,
118
118
  submitOrderInstruction: {
119
119
  payAtCounter: null,
120
120
  paid: null
121
121
  }
122
- }, W = {
122
+ }, j = {
123
123
  enabled: !1,
124
124
  submitOrderInstruction: {
125
125
  payAtCounter: null,
126
126
  paid: null
127
127
  },
128
128
  enablePaxDialog: !1
129
- }, Ne = {
129
+ }, We = {
130
130
  dineIn: {
131
131
  enabled: !1,
132
- pickUp: W,
133
- sequenceNumber: ie.parse({}),
134
- displayStand: M
132
+ pickUp: j,
133
+ sequenceNumber: ue.parse({}),
134
+ displayStand: W
135
135
  },
136
- takeaway: Ee,
136
+ takeaway: Ne,
137
137
  paymentSetting: {
138
138
  paymentTypes: [],
139
139
  offlinePaymentTypes: [],
@@ -156,15 +156,15 @@ const fe = {
156
156
  }, C = {
157
157
  payAtCounter: null,
158
158
  paid: null
159
- }, Me = (t) => {
159
+ }, je = (t) => {
160
160
  var e;
161
161
  return {
162
- kiosk: We(t.kioskSettings, (e = t.sequenceSettings) == null ? void 0 : e.kioskDineIn)
162
+ kiosk: He(t.kioskSettings, (e = t.sequenceSettings) == null ? void 0 : e.kioskDineIn)
163
163
  };
164
- }, We = (t, e) => {
164
+ }, He = (t, e) => {
165
165
  var r, l, n, s, u, i, a, p, v;
166
166
  return {
167
- dineIn: je(
167
+ dineIn: Le(
168
168
  e ?? {
169
169
  current: 0,
170
170
  prefix: "#K"
@@ -181,7 +181,7 @@ const fe = {
181
181
  paymentSetting: {
182
182
  paymentTypes: ((i = t == null ? void 0 : t.paymentSetting) == null ? void 0 : i.paymentTypes) ?? [],
183
183
  offlinePaymentTypes: ((a = t == null ? void 0 : t.paymentSetting) == null ? void 0 : a.offlinePaymentTypes) ?? [],
184
- ePaymentTypes: ((p = t == null ? void 0 : t.paymentSetting) == null ? void 0 : p.ePaymentTypes) ?? ce.parse({
184
+ ePaymentTypes: ((p = t == null ? void 0 : t.paymentSetting) == null ? void 0 : p.ePaymentTypes) ?? pe.parse({
185
185
  card: {
186
186
  terminal: !1,
187
187
  nfc: !1
@@ -198,7 +198,7 @@ const fe = {
198
198
  showAllOnly: ((v = t.menuItem) == null ? void 0 : v.showAllOnly) ?? !1
199
199
  }
200
200
  };
201
- }, je = (t, e) => {
201
+ }, Le = (t, e) => {
202
202
  var r, l, n, s, u, i, a, p;
203
203
  return {
204
204
  enabled: !!e,
@@ -210,7 +210,7 @@ const fe = {
210
210
  paid: ((s = (n = e.pickUp.submitOrderInstruction) == null ? void 0 : n.paid) == null ? void 0 : s.en) ?? null
211
211
  } : C,
212
212
  enablePaxDialog: e.pickUp.enablePaxDialog ? e.pickUp.enablePaxDialog : !1
213
- } : W,
213
+ } : j,
214
214
  displayStand: e != null && e.displayStand ? {
215
215
  enabled: e.displayStand.enabled,
216
216
  standSlotRange: e.displayStand.standSlotRange,
@@ -221,9 +221,9 @@ const fe = {
221
221
  payAtCounter: ((i = (u = e.displayStand.submitOrderInstruction) == null ? void 0 : u.payAtCounter) == null ? void 0 : i.en) ?? null,
222
222
  paid: ((p = (a = e.displayStand.submitOrderInstruction) == null ? void 0 : a.paid) == null ? void 0 : p.en) ?? null
223
223
  } : C
224
- } : M
224
+ } : W
225
225
  };
226
- }, He = (t) => {
226
+ }, Qe = (t) => {
227
227
  const e = (n) => {
228
228
  var s, u, i, a;
229
229
  return {
@@ -278,9 +278,9 @@ const fe = {
278
278
  kioskSettings: r()
279
279
  };
280
280
  }, N = {
281
- convertOrderSettingDto: Me,
282
- toOrderKioskSettingsDto: He
283
- }, Le = ye("orderSetting", () => {
281
+ convertOrderSettingDto: je,
282
+ toOrderKioskSettingsDto: Qe
283
+ }, Ye = ve("orderSetting", () => {
284
284
  const t = k({});
285
285
  async function e() {
286
286
  const s = await B.getOrderSetting();
@@ -307,37 +307,40 @@ const fe = {
307
307
  updateKioskSetting: r,
308
308
  setKioskOrderSetting: n
309
309
  };
310
- }), Qe = { class: "py-[1.5rem]" }, Ye = { class: "flex px-[1.5rem]" }, ze = { class: "flex-[2_2_0%]" }, Ge = { class: "pt-[1.5rem]" }, Je = { class: "flex flex-col gap-10" }, Xe = { class: "flex flex-col gap-2" }, Ze = { class: "fm-typo-en-title-sm-600" }, et = { class: "fm-typo-en-title-sm-400" }, tt = {
310
+ }), ze = { class: "py-[1.5rem]" }, Ge = { class: "flex px-[1.5rem]" }, Je = { class: "flex-[2_2_0%]" }, Xe = { class: "pt-[1.5rem]" }, Ze = { class: "flex flex-col gap-10" }, et = { class: "flex flex-col gap-2" }, tt = { class: "fm-typo-en-title-sm-600" }, at = { class: "fm-typo-en-title-sm-400" }, nt = {
311
311
  key: 0,
312
312
  class: "flex-[1_1_0%]"
313
- }, it = /* @__PURE__ */ I({
313
+ }, ut = /* @__PURE__ */ I({
314
314
  __name: "KioskView",
315
315
  setup(t) {
316
- var F, q;
317
- const { t: e } = A(), r = te(
318
- () => import("./KioskSettingView-DRpVR7Ij.js")
319
- ), l = k("device"), n = re(), s = Le(), u = ue(), { currentRestaurant: i, restaurants: a, changeRestaurant: p } = de(), v = pe(), h = me(), K = b(() => h.breakpoints.value.xs), w = k(((F = i.value) == null ? void 0 : F._id) ?? void 0), j = b(() => a.value.map((f) => ({
320
- label: f.profile.name,
321
- value: f._id
322
- }))), O = k(((q = i.value) == null ? void 0 : q._id) ?? "");
323
- function H() {
324
- var f;
316
+ var q, R;
317
+ const { t: e } = A(), r = ae(
318
+ () => import("./KioskSettingView-DG12ZvfT.js")
319
+ ), l = k("device"), n = de(), s = Ye(), u = ye(), { currentRestaurant: i, restaurants: a, changeRestaurant: p } = ce(), v = me(), h = fe(), K = b(() => h.breakpoints.value.xs), O = k(((q = i.value) == null ? void 0 : q._id) ?? void 0), H = b(() => a.value.map((y) => ({
320
+ label: y.profile.name,
321
+ value: y._id
322
+ }))), P = k(((R = i.value) == null ? void 0 : R._id) ?? "");
323
+ function L() {
324
+ var y;
325
325
  u.open({
326
- title: D(e("order.kioskSummary")),
327
- contentComponent: E,
326
+ title: E(e("order.kioskSummary")),
327
+ contentComponent: M,
328
328
  contentComponentProps: {
329
- restaurantId: (f = i.value) == null ? void 0 : f._id,
329
+ restaurantId: (y = i.value) == null ? void 0 : y._id,
330
330
  devices: n.state.devices,
331
331
  kioskOrderSetting: s.state.kiosk,
332
332
  dialogType: !0
333
333
  }
334
334
  });
335
335
  }
336
- async function U(f) {
337
- const g = a.value.find((x) => x._id == f);
338
- await p(g), await s.getSetting(), await n.getDevices(), w.value = f, O.value = f;
336
+ async function U(y) {
337
+ const g = a.value.find((x) => x._id == y);
338
+ await p(g), await $(), O.value = y, P.value = y;
339
+ }
340
+ async function $() {
341
+ await s.getSetting(), await n.getDevices();
339
342
  }
340
- const L = b(() => [
343
+ const Q = b(() => [
341
344
  {
342
345
  label: e("order.deviceBinding"),
343
346
  value: "device"
@@ -346,19 +349,19 @@ const fe = {
346
349
  label: e("order.settings"),
347
350
  value: "setting"
348
351
  }
349
- ]), $ = b(() => n.state.devices);
350
- async function Q() {
352
+ ]), F = b(() => n.state.devices);
353
+ async function Y() {
351
354
  await n.requestOtp(), u.open({
352
- title: D(e("order.bindDevice")),
353
- contentComponent: De,
355
+ title: E(e("order.bindDevice")),
356
+ contentComponent: Me,
354
357
  contentComponentProps: {
355
358
  otp: n.state.otp
356
359
  }
357
360
  });
358
361
  }
359
- async function Y(f) {
362
+ async function z(y) {
360
363
  try {
361
- s.setKioskOrderSetting(f), await s.updateKioskSetting(), v.open({
364
+ s.setKioskOrderSetting(y), await s.updateKioskSetting(), v.open({
362
365
  title: e("order.kioskSettingSuccess"),
363
366
  type: "success"
364
367
  });
@@ -369,70 +372,73 @@ const fe = {
369
372
  });
370
373
  }
371
374
  }
372
- return ae(
375
+ return ne(async () => {
376
+ var y;
377
+ (y = i.value) != null && y._id && (P.value = i.value._id, await $());
378
+ }), se(
373
379
  () => a.value.length,
374
- async (f) => {
375
- w.value === void 0 && a.value.length > 0 && await U(a.value[0]._id);
380
+ async (y) => {
381
+ O.value === void 0 && a.value.length > 0 && await U(a.value[0]._id);
376
382
  },
377
383
  { immediate: !0 }
378
- ), (f, g) => {
379
- const x = S("FmButton"), z = S("FmPageHead"), G = S("FmTabs"), J = S("FmSelect");
380
- return c(), y("div", Qe, [
381
- P(z, {
384
+ ), (y, g) => {
385
+ const x = S("FmButton"), G = S("FmPageHead"), J = S("FmTabs"), X = S("FmSelect");
386
+ return c(), f("div", ze, [
387
+ w(G, {
382
388
  title: d(e)("order.kiosk")
383
389
  }, {
384
- append: ne(() => [
385
- se(P(x, {
390
+ append: oe(() => [
391
+ re(w(x, {
386
392
  icon: "info",
387
393
  variant: "tertiary",
388
- onClick: H
394
+ onClick: L
389
395
  }, null, 512), [
390
- [oe, K.value]
396
+ [le, K.value]
391
397
  ])
392
398
  ]),
393
399
  _: 1
394
400
  }, 8, ["title"]),
395
- o("div", Ye, [
396
- o("div", ze, [
397
- P(G, {
401
+ o("div", Ge, [
402
+ o("div", Je, [
403
+ w(J, {
398
404
  "model-value": l.value,
399
405
  "onUpdate:modelValue": g[0] || (g[0] = (T) => l.value = T),
400
- items: L.value
406
+ items: Q.value
401
407
  }, null, 8, ["model-value", "items"]),
402
- o("div", Ge, [
403
- o("div", Je, [
404
- o("div", Xe, [
405
- o("span", Ze, m(d(e)("order.activateLocation")), 1),
406
- o("span", et, m(d(e)("order.selectRestaurant")) + ": ", 1),
407
- P(J, {
408
+ o("div", Xe, [
409
+ o("div", Ze, [
410
+ o("div", et, [
411
+ o("span", tt, m(d(e)("order.activateLocation")), 1),
412
+ o("span", at, m(d(e)("order.selectRestaurant")) + ": ", 1),
413
+ w(X, {
408
414
  class: "w-1/2",
409
- modelValue: w.value,
415
+ modelValue: O.value,
410
416
  "onUpdate:modelValue": [
411
- g[1] || (g[1] = (T) => w.value = T),
417
+ g[1] || (g[1] = (T) => O.value = T),
412
418
  U
413
419
  ],
414
- items: j.value,
420
+ items: H.value,
415
421
  placeholder: d(e)("order.selectItem")
416
422
  }, null, 8, ["modelValue", "items", "placeholder"])
417
423
  ]),
418
- l.value == "device" ? (c(), R(le, {
424
+ l.value == "device" ? (c(), D(ie, {
419
425
  key: 0,
420
- devices: $.value,
421
- "request-otp": Q
426
+ devices: F.value,
427
+ "request-otp": Y
422
428
  }, null, 8, ["devices"])) : _("", !0),
423
- l.value == "setting" ? (c(), R(d(r), {
424
- key: `KioskSettingView-${O.value}`,
425
- "restaurant-id": O.value,
426
- onUpdateKioskOrderSetting: Y,
427
- form: d(s).state.kiosk ?? d(Ne)
429
+ l.value == "setting" ? (c(), D(d(r), {
430
+ key: `KioskSettingView-${P.value}`,
431
+ "restaurant-id": P.value,
432
+ onUpdateKioskOrderSetting: z,
433
+ form: d(s).state.kiosk ?? d(We)
428
434
  }, null, 8, ["restaurant-id", "form"])) : _("", !0)
429
435
  ])
430
436
  ])
431
437
  ]),
432
- K.value ? _("", !0) : (c(), y("div", tt, [
433
- P(E, {
434
- "restaurant-id": O.value,
435
- devices: $.value,
438
+ K.value ? _("", !0) : (c(), f("div", nt, [
439
+ w(M, {
440
+ "restaurant-id": P.value,
441
+ devices: F.value,
436
442
  "kiosk-order-setting": d(s).state.kiosk,
437
443
  dialogType: !1
438
444
  }, null, 8, ["restaurant-id", "devices", "kiosk-order-setting"])
@@ -443,5 +449,5 @@ const fe = {
443
449
  }
444
450
  });
445
451
  export {
446
- it as default
452
+ ut as default
447
453
  };