@feedmepos/mf-order-setting 0.0.23 → 0.0.24

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 (30) hide show
  1. package/dist/{KioskDevicesView-BdJCcotz.js → KioskDevicesView-DGkvW2mH.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-DUPfN7ti.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-BGZLd8T_.js} +2 -2
  3. package/dist/KioskSettingView-DLb5nnCu.js +821 -0
  4. package/dist/{KioskView-DPU-oQ1H.js → KioskView-kZZYSfUh.js} +74 -70
  5. package/dist/{OrderSettingsView-BOiflwB_.js → OrderSettingsView-Cil4j9G5.js} +4 -4
  6. package/dist/{app-CaYWSLe1.js → app-D47VRl5B.js} +37 -33
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-8NyoNely.js → dayjs.min-R4180ukF.js} +1 -1
  9. package/dist/frontend/mf-order/src/app.d.ts +4 -0
  10. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +4 -0
  11. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +24 -0
  12. package/dist/frontend/mf-order/src/stores/order-setting/mapper.d.ts +3 -2
  13. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskEnablePaxDialogSection.vue.d.ts +9 -0
  14. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  15. package/dist/{index-B7GFhkAE.js → index-DgLlDwJK.js} +2 -2
  16. package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +14 -0
  17. package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +30 -0
  18. package/dist/package/entity/order-setting/order-setting.do.d.ts +18 -0
  19. package/dist/package/entity/order-setting/order-setting.dto.d.ts +36 -0
  20. package/dist/package/entity/restaurant/restaurant.dto.d.ts +18 -0
  21. package/dist/package/entity/websocket/websocket.dto.d.ts +40 -0
  22. package/dist/{queue.do-CIyIpp22.js → queue.do-CNMuossU.js} +5 -1
  23. package/package.json +1 -1
  24. package/src/locales/en-US.json +2 -0
  25. package/src/locales/zh-CN.json +2 -0
  26. package/src/modules/order-setting/kiosk/interface.ts +4 -0
  27. package/src/stores/order-setting/mapper.ts +15 -9
  28. package/src/views/kiosk/settings/KioskEnablePaxDialogSection.vue +33 -0
  29. package/src/views/kiosk/settings/KioskSettingView.vue +26 -0
  30. package/dist/KioskSettingView-BChhriPk.js +0 -782
@@ -1,17 +1,17 @@
1
- import { defineComponent as I, computed as b, openBlock as c, createElementBlock as y, normalizeClass as X, toDisplayString as m, unref as d, createCommentVNode as _, createElementVNode as o, Fragment as Z, renderList as ee, ref as T, defineAsyncComponent as te, watch as ae, resolveComponent as O, createVNode as k, 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-DUPfN7ti.js";
1
+ import { defineComponent as I, computed as b, openBlock as c, createElementBlock as y, normalizeClass as X, toDisplayString as m, unref as d, createCommentVNode as _, createElementVNode as o, Fragment as Z, renderList as ee, ref as T, defineAsyncComponent as te, watch as ae, resolveComponent as x, 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-BGZLd8T_.js";
3
3
  import { useI18n as A, useCoreStore as de } from "@feedmepos/mf-common";
4
- import { F as V, a as ie, b as ce } from "./queue.do-CIyIpp22.js";
4
+ import { F as V, a as ie, b as ce } from "./queue.do-CNMuossU.js";
5
5
  import { useDialog as ue, useSnackbar as pe, useBreakpoints as me } from "@feedmepos/ui-library";
6
6
  import { defineStore as ye } from "pinia";
7
- import { O as B, c as E } from "./index-B7GFhkAE.js";
7
+ import { O as B, c as D } from "./index-DgLlDwJK.js";
8
8
  const fe = {
9
9
  key: 0,
10
10
  class: "fm-typo-en-title-sm-600"
11
11
  }, ve = {
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" }, ke = { key: 0 }, Se = { key: 1 }, Pe = { key: 0 }, Oe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Te = { class: "fm-typo-en-body-lg-600 block" }, we = { key: 1 }, Ce = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, xe = { 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 }, N = /* @__PURE__ */ I({
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 }, ke = { key: 1 }, Se = { key: 0 }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Te = { class: "fm-typo-en-body-lg-600 block" }, we = { key: 1 }, Oe = { 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({
15
15
  __name: "KioskSummary",
16
16
  props: {
17
17
  restaurantId: {},
@@ -52,22 +52,22 @@ const fe = {
52
52
  o("div", be, [
53
53
  o("span", he, m(d(e)("order.kioskDisplay")), 1),
54
54
  o("div", ge, [
55
- a.devices.length > 0 ? (c(), y("div", ke, [
55
+ a.devices.length > 0 ? (c(), y("div", Pe, [
56
56
  (c(!0), y(Z, null, ee(a.devices, (v) => (c(), y("li", {
57
57
  class: "block",
58
58
  key: v.machineId
59
59
  }, m(v.name), 1))), 128))
60
- ])) : (c(), y("div", Se, "-"))
60
+ ])) : (c(), y("div", ke, "-"))
61
61
  ]),
62
- l.value === d(e)("order.activated") ? (c(), y("div", Pe, [
63
- o("span", Oe, m(d(e)("order.dineIn")), 1),
62
+ l.value === d(e)("order.activated") ? (c(), y("div", Se, [
63
+ o("span", xe, m(d(e)("order.dineIn")), 1),
64
64
  o("div", Te, [
65
65
  o("div", null, m(l.value), 1)
66
66
  ])
67
67
  ])) : _("", !0),
68
68
  l.value === d(e)("order.activated") && s.value !== d(e)("order.unknown") ? (c(), y("div", we, [
69
- o("span", Ce, m(d(e)("order.dineInType")), 1),
70
- o("div", xe, [
69
+ o("span", Oe, m(d(e)("order.dineInType")), 1),
70
+ o("div", Ce, [
71
71
  o("div", null, m(s.value), 1)
72
72
  ])
73
73
  ])) : _("", !0),
@@ -88,7 +88,7 @@ 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" }, Ee = /* @__PURE__ */ I({
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({
92
92
  __name: "KioskOtpDialog",
93
93
  props: {
94
94
  otp: {}
@@ -100,7 +100,7 @@ const fe = {
100
100
  o("div", Be, m(r.otp), 1)
101
101
  ]));
102
102
  }
103
- }), D = {
103
+ }), M = {
104
104
  enabled: !1,
105
105
  prefix: null,
106
106
  padDigit: 0,
@@ -108,30 +108,32 @@ const fe = {
108
108
  min: 1,
109
109
  max: 10
110
110
  },
111
+ enablePaxDialog: !1,
111
112
  submitOrderInstruction: {
112
113
  payAtCounter: null,
113
114
  paid: null
114
115
  }
115
- }, W = {
116
+ }, Ee = {
116
117
  enabled: !1,
117
118
  submitOrderInstruction: {
118
119
  payAtCounter: null,
119
120
  paid: null
120
121
  }
122
+ }, W = {
123
+ enabled: !1,
124
+ submitOrderInstruction: {
125
+ payAtCounter: null,
126
+ paid: null
127
+ },
128
+ enablePaxDialog: !1
121
129
  }, Ne = {
122
130
  dineIn: {
123
131
  enabled: !1,
124
132
  pickUp: W,
125
133
  sequenceNumber: ie.parse({}),
126
- displayStand: D
127
- },
128
- takeaway: {
129
- enabled: !1,
130
- submitOrderInstruction: {
131
- payAtCounter: null,
132
- paid: null
133
- }
134
+ displayStand: M
134
135
  },
136
+ takeaway: Ee,
135
137
  paymentSetting: {
136
138
  paymentTypes: [],
137
139
  offlinePaymentTypes: [],
@@ -149,18 +151,18 @@ const fe = {
149
151
  menuItem: {
150
152
  showAllOnly: !1
151
153
  }
152
- }, x = {
154
+ }, C = {
153
155
  payAtCounter: null,
154
156
  paid: null
155
157
  }, Me = (t) => {
156
158
  var e;
157
159
  return {
158
- kiosk: De(t.kioskSettings, (e = t.sequenceSettings) == null ? void 0 : e.kioskDineIn)
160
+ kiosk: We(t.kioskSettings, (e = t.sequenceSettings) == null ? void 0 : e.kioskDineIn)
159
161
  };
160
- }, De = (t, e) => {
162
+ }, We = (t, e) => {
161
163
  var r, l, n, s, u, i, a, p, v;
162
164
  return {
163
- dineIn: We(e ?? {
165
+ dineIn: je(e ?? {
164
166
  current: 0,
165
167
  prefix: "#K"
166
168
  }, t.dineIn ?? void 0),
@@ -169,7 +171,7 @@ const fe = {
169
171
  submitOrderInstruction: (r = t == null ? void 0 : t.takeaway) != null && r.submitOrderInstruction ? {
170
172
  payAtCounter: ((n = (l = t.takeaway.submitOrderInstruction) == null ? void 0 : l.payAtCounter) == null ? void 0 : n.en) ?? null,
171
173
  paid: ((u = (s = t.takeaway.submitOrderInstruction) == null ? void 0 : s.paid) == null ? void 0 : u.en) ?? null
172
- } : x
174
+ } : C
173
175
  },
174
176
  paymentSetting: {
175
177
  paymentTypes: ((i = t == null ? void 0 : t.paymentSetting) == null ? void 0 : i.paymentTypes) ?? [],
@@ -189,7 +191,7 @@ const fe = {
189
191
  showAllOnly: ((v = t.menuItem) == null ? void 0 : v.showAllOnly) ?? !1
190
192
  }
191
193
  };
192
- }, We = (t, e) => {
194
+ }, je = (t, e) => {
193
195
  var r, l, n, s, u, i, a, p;
194
196
  return {
195
197
  enabled: !!e,
@@ -199,20 +201,22 @@ const fe = {
199
201
  submitOrderInstruction: e.pickUp.submitOrderInstruction ? {
200
202
  payAtCounter: ((l = (r = e.pickUp.submitOrderInstruction) == null ? void 0 : r.payAtCounter) == null ? void 0 : l.en) ?? null,
201
203
  paid: ((s = (n = e.pickUp.submitOrderInstruction) == null ? void 0 : n.paid) == null ? void 0 : s.en) ?? null
202
- } : x
204
+ } : C,
205
+ enablePaxDialog: e.pickUp.enablePaxDialog ? e.pickUp.enablePaxDialog : !1
203
206
  } : W,
204
207
  displayStand: e != null && e.displayStand ? {
205
208
  enabled: e.displayStand.enabled,
206
209
  standSlotRange: e.displayStand.standSlotRange,
207
210
  prefix: e.displayStand.prefix,
208
211
  padDigit: e.displayStand.padDigit,
212
+ enablePaxDialog: e.displayStand.enablePaxDialog ?? !1,
209
213
  submitOrderInstruction: e.displayStand.submitOrderInstruction ? {
210
214
  payAtCounter: ((i = (u = e.displayStand.submitOrderInstruction) == null ? void 0 : u.payAtCounter) == null ? void 0 : i.en) ?? null,
211
215
  paid: ((p = (a = e.displayStand.submitOrderInstruction) == null ? void 0 : a.paid) == null ? void 0 : p.en) ?? null
212
- } : x
213
- } : D
216
+ } : C
217
+ } : M
214
218
  };
215
- }, je = (t) => {
219
+ }, He = (t) => {
216
220
  const e = (n) => {
217
221
  var s, u, i, a;
218
222
  return {
@@ -256,10 +260,10 @@ const fe = {
256
260
  } : {
257
261
  kioskSettings: r()
258
262
  };
259
- }, M = {
263
+ }, N = {
260
264
  convertOrderSettingDto: Me,
261
- toOrderKioskSettingsDto: je
262
- }, He = ye("orderSetting", () => {
265
+ toOrderKioskSettingsDto: He
266
+ }, Le = ye("orderSetting", () => {
263
267
  const t = T({});
264
268
  async function e() {
265
269
  const s = await B.getOrderSetting();
@@ -267,7 +271,7 @@ const fe = {
267
271
  }
268
272
  async function r() {
269
273
  if (t.value.orderSetting && t.value.kiosk) {
270
- const { _id: s, ...u } = t.value.orderSetting, i = M.toOrderKioskSettingsDto(t.value.kiosk), a = {
274
+ const { _id: s, ...u } = t.value.orderSetting, i = N.toOrderKioskSettingsDto(t.value.kiosk), a = {
271
275
  ...u,
272
276
  kioskSettings: i.kioskSettings
273
277
  }, p = await B.updateOrderSetting(a);
@@ -275,7 +279,7 @@ const fe = {
275
279
  }
276
280
  }
277
281
  function l(s) {
278
- t.value.orderSetting = s, t.value.kiosk = M.convertOrderSettingDto(s).kiosk;
282
+ t.value.orderSetting = s, t.value.kiosk = N.convertOrderSettingDto(s).kiosk;
279
283
  }
280
284
  function n(s) {
281
285
  t.value.kiosk = s;
@@ -286,24 +290,24 @@ const fe = {
286
290
  updateKioskSetting: r,
287
291
  setKioskOrderSetting: n
288
292
  };
289
- }), Le = { 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" }, Qe = { class: "flex flex-col gap-2" }, Xe = { class: "fm-typo-en-title-sm-600" }, Ze = { class: "fm-typo-en-title-sm-400" }, et = {
293
+ }), Ye = { class: "py-[1.5rem]" }, ze = { class: "flex px-[1.5rem]" }, Ge = { class: "flex-[2_2_0%]" }, Je = { class: "pt-[1.5rem]" }, Qe = { 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 = {
290
294
  key: 0,
291
295
  class: "flex-[1_1_0%]"
292
- }, dt = /* @__PURE__ */ I({
296
+ }, it = /* @__PURE__ */ I({
293
297
  __name: "KioskView",
294
298
  setup(t) {
295
299
  var F, q;
296
300
  const { t: e } = A(), r = te(
297
- () => import("./KioskSettingView-BChhriPk.js")
298
- ), l = T("device"), n = re(), s = He(), u = ue(), { currentRestaurant: i, restaurants: a, changeRestaurant: p } = de(), v = pe(), h = me(), K = b(() => h.breakpoints.value.xs), S = T(((F = i.value) == null ? void 0 : F._id) ?? void 0), j = b(() => a.value.map((f) => ({
301
+ () => import("./KioskSettingView-DLb5nnCu.js")
302
+ ), l = T("device"), n = re(), s = Le(), u = ue(), { currentRestaurant: i, restaurants: a, changeRestaurant: p } = de(), v = pe(), h = me(), K = b(() => h.breakpoints.value.xs), k = T(((F = i.value) == null ? void 0 : F._id) ?? void 0), j = b(() => a.value.map((f) => ({
299
303
  label: f.profile.name,
300
304
  value: f._id
301
- }))), P = T(((q = i.value) == null ? void 0 : q._id) ?? "");
305
+ }))), S = T(((q = i.value) == null ? void 0 : q._id) ?? "");
302
306
  function H() {
303
307
  var f;
304
308
  u.open({
305
- title: E(e("order.kioskSummary")),
306
- contentComponent: N,
309
+ title: D(e("order.kioskSummary")),
310
+ contentComponent: E,
307
311
  contentComponentProps: {
308
312
  restaurantId: (f = i.value) == null ? void 0 : f._id,
309
313
  devices: n.state.devices,
@@ -314,7 +318,7 @@ const fe = {
314
318
  }
315
319
  async function U(f) {
316
320
  const g = a.value.find((w) => w._id == f);
317
- await p(g), await s.getSetting(), await n.getDevices(), S.value = f, P.value = f;
321
+ await p(g), await s.getSetting(), await n.getDevices(), k.value = f, S.value = f;
318
322
  }
319
323
  const L = b(() => [
320
324
  {
@@ -328,8 +332,8 @@ const fe = {
328
332
  ]), $ = b(() => n.state.devices);
329
333
  async function Y() {
330
334
  await n.requestOtp(), u.open({
331
- title: E(e("order.bindDevice")),
332
- contentComponent: Ee,
335
+ title: D(e("order.bindDevice")),
336
+ contentComponent: De,
333
337
  contentComponentProps: {
334
338
  otp: n.state.otp
335
339
  }
@@ -351,17 +355,17 @@ const fe = {
351
355
  return ae(
352
356
  () => a.value.length,
353
357
  async (f) => {
354
- S.value === void 0 && a.value.length > 0 && await U(a.value[0]._id);
358
+ k.value === void 0 && a.value.length > 0 && await U(a.value[0]._id);
355
359
  },
356
360
  { immediate: !0 }
357
361
  ), (f, g) => {
358
- const w = O("FmButton"), G = O("FmPageHead"), J = O("FmTabs"), Q = O("FmSelect");
359
- return c(), y("div", Le, [
360
- k(G, {
362
+ const w = x("FmButton"), G = x("FmPageHead"), J = x("FmTabs"), Q = x("FmSelect");
363
+ return c(), y("div", Ye, [
364
+ P(G, {
361
365
  title: d(e)("order.kiosk")
362
366
  }, {
363
367
  append: ne(() => [
364
- se(k(w, {
368
+ se(P(w, {
365
369
  icon: "info",
366
370
  variant: "tertiary",
367
371
  onClick: H
@@ -371,23 +375,23 @@ const fe = {
371
375
  ]),
372
376
  _: 1
373
377
  }, 8, ["title"]),
374
- o("div", Ye, [
375
- o("div", ze, [
376
- k(J, {
378
+ o("div", ze, [
379
+ o("div", Ge, [
380
+ P(J, {
377
381
  "model-value": l.value,
378
- "onUpdate:modelValue": g[0] || (g[0] = (C) => l.value = C),
382
+ "onUpdate:modelValue": g[0] || (g[0] = (O) => l.value = O),
379
383
  items: L.value
380
384
  }, null, 8, ["model-value", "items"]),
381
- o("div", Ge, [
382
- o("div", Je, [
383
- o("div", Qe, [
384
- o("span", Xe, m(d(e)("order.activateLocation")), 1),
385
- o("span", Ze, m(d(e)("order.selectRestaurant")) + ": ", 1),
386
- k(Q, {
385
+ o("div", Je, [
386
+ o("div", Qe, [
387
+ o("div", Xe, [
388
+ o("span", Ze, m(d(e)("order.activateLocation")), 1),
389
+ o("span", et, m(d(e)("order.selectRestaurant")) + ": ", 1),
390
+ P(Q, {
387
391
  class: "w-1/2",
388
- modelValue: S.value,
392
+ modelValue: k.value,
389
393
  "onUpdate:modelValue": [
390
- g[1] || (g[1] = (C) => S.value = C),
394
+ g[1] || (g[1] = (O) => k.value = O),
391
395
  U
392
396
  ],
393
397
  items: j.value,
@@ -400,17 +404,17 @@ const fe = {
400
404
  "request-otp": Y
401
405
  }, null, 8, ["devices"])) : _("", !0),
402
406
  l.value == "setting" ? (c(), R(d(r), {
403
- key: `KioskSettingView-${P.value}`,
404
- "restaurant-id": P.value,
407
+ key: `KioskSettingView-${S.value}`,
408
+ "restaurant-id": S.value,
405
409
  onUpdateKioskOrderSetting: z,
406
410
  form: d(s).state.kiosk ?? d(Ne)
407
411
  }, null, 8, ["restaurant-id", "form"])) : _("", !0)
408
412
  ])
409
413
  ])
410
414
  ]),
411
- K.value ? _("", !0) : (c(), y("div", et, [
412
- k(N, {
413
- "restaurant-id": P.value,
415
+ K.value ? _("", !0) : (c(), y("div", tt, [
416
+ P(E, {
417
+ "restaurant-id": S.value,
414
418
  devices: $.value,
415
419
  "kiosk-order-setting": d(s).state.kiosk,
416
420
  dialogType: !1
@@ -422,5 +426,5 @@ const fe = {
422
426
  }
423
427
  });
424
428
  export {
425
- dt as default
429
+ it as default
426
430
  };
@@ -4,13 +4,13 @@ var Cl = (f, m, c) => vf(f, typeof m != "symbol" ? m + "" : m, c);
4
4
  import { ref as Ue, computed as De, defineComponent as st, onMounted as $n, onUnmounted as Vd, resolveComponent as Oe, openBlock as _e, createBlock as gt, withCtx as He, createElementVNode as ye, createVNode as pe, toDisplayString as Ne, unref as le, createElementBlock as Ae, isRef as Ro, Fragment as at, renderList as kt, createCommentVNode as tt, watch as Ct, createTextVNode as Sn, renderSlot as wf, reactive as Wn, withModifiers as _f, toRaw as Il, normalizeStyle as Ef, normalizeClass as Gd, createSlots as Ff, h as Hd, resolveDynamicComponent as kf } from "vue";
5
5
  import { useDialog as Kd, useSnackbar as Yd } from "@feedmepos/ui-library";
6
6
  import { useI18n as ft, useCoreStore as Dt } from "@feedmepos/mf-common";
7
- import { e as or, d as Zt, f as Sf, h as ns, g as rt, i as Un, l as de, j as Be, k as Wd, m as pt, n as zf, o as rs, p as so } from "./queue.do-CIyIpp22.js";
7
+ import { e as or, d as Zt, f as Sf, h as ns, g as rt, i as Un, l as de, j as Be, k as Wd, m as pt, n as zf, o as rs, p as so } from "./queue.do-CNMuossU.js";
8
8
  import { u as hn, a as In, b as jf, _ as Tf } from "./index-DSCb3ndM.js";
9
- import { g as et, b as sr, S as Ds, m as Af, d as Cf, D as Bt, r as ri } from "./dayjs.min-8NyoNely.js";
9
+ import { g as et, b as sr, S as Ds, m as Af, d as Cf, D as Bt, r as ri } from "./dayjs.min-R4180ukF.js";
10
10
  import { defineStore as xo } from "pinia";
11
11
  import { useRouter as If } from "vue-router";
12
- import { c as Vs, g as ir, a as Gs, b as Pf, d as Ms, e as Of } from "./app-CaYWSLe1.js";
13
- import { s as as, a as Df, O as qo } from "./index-B7GFhkAE.js";
12
+ import { c as Vs, g as ir, a as Gs, b as Pf, d as Ms, e as Of } from "./app-D47VRl5B.js";
13
+ import { s as as, a as Df, O as qo } from "./index-DgLlDwJK.js";
14
14
  const Mf = {
15
15
  "Bill Receipt Number": (f) => f.seqNumber ?? "*8888",
16
16
  "Bill Receipt Total Amount (Net)": (f) => Sf.Dinero.fromFdoDinero(f.nettTotal).toFormat(!0),
@@ -1,6 +1,6 @@
1
- import { ref as g, defineComponent as S, onMounted as h, resolveComponent as f, openBlock as b, createElementBlock as P, createVNode as k } from "vue";
1
+ import { ref as g, defineComponent as S, onMounted as h, resolveComponent as f, openBlock as P, createElementBlock as b, createVNode as D } from "vue";
2
2
  import "vue-router";
3
- const D = {
3
+ const k = {
4
4
  accept: "accept",
5
5
  acceptedPayment: "Accepted Payment",
6
6
  acceptQueue: "Accept queue",
@@ -85,6 +85,8 @@ const D = {
85
85
  dineInType: "Dine In Type",
86
86
  discountCampaign: "Discount Campaign",
87
87
  displayStand: "Display Stand",
88
+ displayPaxDialogTitle: "Display Pax Dialog",
89
+ displayPaxDialogDescription: "Display pax dialog in kiosk",
88
90
  edit: "Edit",
89
91
  editOfflinePayment: "Edit offline payment",
90
92
  editPickupPoint: "Edit pickup Point",
@@ -259,7 +261,7 @@ const D = {
259
261
  selectPlatform: "Select Platform",
260
262
  platform: "Platform"
261
263
  }, C = {
262
- order: D
264
+ order: k
263
265
  }, A = {
264
266
  accept: "接受",
265
267
  acceptedPayment: "可接受付款方式",
@@ -346,6 +348,8 @@ const D = {
346
348
  dineInType: "堂食类型",
347
349
  discountCampaign: "促销活动",
348
350
  displayStand: "桌牌",
351
+ displayPaxDialogTitle: "显示人数弹窗",
352
+ displayPaxDialogDescription: "在自助点餐设备显示人数弹窗",
349
353
  edit: "编辑",
350
354
  editOfflinePayment: "编辑线下支付方式",
351
355
  editPickupPoint: "编辑取货地点",
@@ -521,7 +525,7 @@ const D = {
521
525
  }, I = {
522
526
  order: A
523
527
  }, m = g(null), v = () => m.value;
524
- function w(t) {
528
+ function x(t) {
525
529
  m.value || (m.value = t);
526
530
  }
527
531
  const _ = Object.freeze({
@@ -542,25 +546,25 @@ function y(t) {
542
546
  }
543
547
  function U({
544
548
  center: t,
545
- radius: n
549
+ radius: i
546
550
  }) {
547
- const e = [], a = n / 6371 * (180 / Math.PI), r = a / Math.cos(t.lat * (Math.PI / 180));
551
+ const e = [], a = i / 6371 * (180 / Math.PI), r = a / Math.cos(t.lat * (Math.PI / 180));
548
552
  for (let o = 0; o < 361; o += 45) {
549
- const d = o * (Math.PI / 180), i = t.lng + r * Math.cos(d), p = t.lat + a * Math.sin(d), s = v(), l = new s.maps.LatLng(p, i, !0);
553
+ const d = o * (Math.PI / 180), n = t.lng + r * Math.cos(d), p = t.lat + a * Math.sin(d), s = v(), l = new s.maps.LatLng(p, n, !0);
550
554
  e.push(l);
551
555
  }
552
556
  return e.map((o) => ({ lat: o.lat(), lng: o.lng() }));
553
557
  }
554
558
  function V(t) {
555
559
  if (!t.length) return;
556
- const { lat: n, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat: d } = t.reduce((i, p) => {
560
+ const { lat: i, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat: d } = t.reduce((n, p) => {
557
561
  const { lng: s, lat: l } = y(p);
558
- return s > i.maxLng && (i.maxLng = s), s < i.minLng && (i.minLng = s), l > i.maxLat && (i.maxLat = l), l < i.minLat && (i.minLat = l), i;
562
+ return s > n.maxLng && (n.maxLng = s), s < n.minLng && (n.minLng = s), l > n.maxLat && (n.maxLat = l), l < n.minLat && (n.minLat = l), n;
559
563
  }, {
560
564
  maxLng: e,
561
565
  minLng: e,
562
- maxLat: n,
563
- minLat: n
566
+ maxLat: i,
567
+ minLat: i
564
568
  });
565
569
  return {
566
570
  lng: r + (a - r) / 2,
@@ -568,8 +572,8 @@ function V(t) {
568
572
  };
569
573
  }
570
574
  class c {
571
- constructor(n = null, e = {}) {
572
- if (this.apiKey = n, this.options = e, typeof window > "u")
575
+ constructor(i = null, e = {}) {
576
+ if (this.apiKey = i, this.options = e, typeof window > "u")
573
577
  throw new Error("google-maps is supported only in browser environment");
574
578
  }
575
579
  load() {
@@ -581,48 +585,48 @@ class c {
581
585
  if (typeof this.reject > "u")
582
586
  throw new Error("Should not happen");
583
587
  this.reject(new Error("google-maps: authentication error"));
584
- }, this.loader = new Promise((n, e) => {
585
- this.resolve = n, this.reject = e;
588
+ }, this.loader = new Promise((i, e) => {
589
+ this.resolve = i, this.reject = e;
586
590
  const a = document.createElement("script");
587
591
  a.src = this.createUrl(), a.async = !0, a.onerror = (r) => e(r), document.head.appendChild(a);
588
592
  }));
589
593
  }
590
594
  createUrl() {
591
- const n = [
595
+ const i = [
592
596
  `callback=${c.CALLBACK_NAME}`
593
597
  ];
594
- this.apiKey && n.push(`key=${this.apiKey}`);
598
+ this.apiKey && i.push(`key=${this.apiKey}`);
595
599
  for (let e in this.options)
596
600
  if (this.options.hasOwnProperty(e)) {
597
601
  let a = this.options[e];
598
- e === "version" && (e = "v"), e === "libraries" && (a = a.join(",")), n.push(`${e}=${a}`);
602
+ e === "version" && (e = "v"), e === "libraries" && (a = a.join(",")), i.push(`${e}=${a}`);
599
603
  }
600
- return `https://maps.googleapis.com/maps/api/js?${n.join("&")}`;
604
+ return `https://maps.googleapis.com/maps/api/js?${i.join("&")}`;
601
605
  }
602
606
  }
603
607
  c.CALLBACK_NAME = "_dk_google_maps_loader_cb";
604
- var x = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: {}, gtm: { debug: !1 }, r2: null };
605
- const M = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
608
+ var w = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: {}, gtm: { debug: !1 }, r2: null };
609
+ const T = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
606
610
  __name: "App",
607
611
  setup(t) {
608
- async function n() {
612
+ async function i() {
609
613
  if (v()) return;
610
- const a = await new c(x.googleMap, {
614
+ const a = await new c(w.googleMap, {
611
615
  libraries: ["places"]
612
616
  }).load();
613
- w(a);
617
+ x(a);
614
618
  }
615
619
  return h(async () => {
616
- await n();
620
+ await i();
617
621
  }), (e, a) => {
618
622
  const r = f("RouterView");
619
- return b(), P("div", M, [
620
- k(r)
623
+ return P(), b("div", T, [
624
+ D(r)
621
625
  ]);
622
626
  };
623
627
  }
624
- }), T = "/kiosk", O = "/kiosk/device", E = "/kiosk/order-setting", R = "/order-settings", F = "/delivery-settings", N = "/orders", u = {
625
- KioskRoute: T,
628
+ }), M = "/kiosk", O = "/kiosk/device", E = "/kiosk/order-setting", R = "/order-settings", F = "/delivery-settings", N = "/orders", u = {
629
+ KioskRoute: M,
626
630
  KioskDeviceRoute: O,
627
631
  KioskOrderSettingRoute: E,
628
632
  OrderSettingView: R,
@@ -632,22 +636,22 @@ const M = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
632
636
  {
633
637
  path: u.KioskRoute,
634
638
  name: "Kiosk",
635
- component: () => import("./KioskView-DPU-oQ1H.js")
639
+ component: () => import("./KioskView-kZZYSfUh.js")
636
640
  },
637
641
  {
638
642
  path: u.KioskDeviceRoute,
639
643
  name: "Kiosk Device",
640
- component: () => import("./KioskDevicesView-BdJCcotz.js")
644
+ component: () => import("./KioskDevicesView-DGkvW2mH.js")
641
645
  },
642
646
  {
643
647
  path: u.KioskOrderSettingRoute,
644
648
  name: "Kiosk Order Setting",
645
- component: () => import("./KioskSettingView-BChhriPk.js")
649
+ component: () => import("./KioskSettingView-DLb5nnCu.js")
646
650
  },
647
651
  {
648
652
  path: u.OrderSettingView,
649
653
  name: "Order Setting View",
650
- component: () => import("./OrderSettingsView-BOiflwB_.js")
654
+ component: () => import("./OrderSettingsView-Cil4j9G5.js")
651
655
  }
652
656
  ], q = {
653
657
  "en-US": C,
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a, i as e, r as o } from "./app-CaYWSLe1.js";
1
+ import { _ as a, i as e, r as o } from "./app-D47VRl5B.js";
2
2
  export {
3
3
  a as FmApp,
4
4
  e as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as rt, q as _t, m as kt } from "./queue.do-CIyIpp22.js";
1
+ import { g as rt, q as _t, m as kt } from "./queue.do-CNMuossU.js";
2
2
  import { useCoreStore as Z } from "@feedmepos/mf-common";
3
3
  function st(e, t) {
4
4
  return function() {
@@ -87,6 +87,8 @@ export declare const i18nMessages: {
87
87
  dineInType: string;
88
88
  discountCampaign: string;
89
89
  displayStand: string;
90
+ displayPaxDialogTitle: string;
91
+ displayPaxDialogDescription: string;
90
92
  edit: string;
91
93
  editOfflinePayment: string;
92
94
  editPickupPoint: string;
@@ -349,6 +351,8 @@ export declare const i18nMessages: {
349
351
  dineInType: string;
350
352
  discountCampaign: string;
351
353
  displayStand: string;
354
+ displayPaxDialogTitle: string;
355
+ displayPaxDialogDescription: string;
352
356
  edit: string;
353
357
  editOfflinePayment: string;
354
358
  editPickupPoint: string;
@@ -13,6 +13,7 @@ export interface MfDisplayStandSetting {
13
13
  };
14
14
  prefix: string | null;
15
15
  padDigit: number;
16
+ enablePaxDialog: boolean;
16
17
  submitOrderInstruction: MfKioskSubmitOrderInstruction;
17
18
  }
18
19
  export interface DisplayStandSettingForm {
@@ -23,14 +24,17 @@ export interface DisplayStandSettingForm {
23
24
  };
24
25
  prefix: string | null;
25
26
  padDigit: number | null;
27
+ enablePaxDialog: boolean;
26
28
  submitOrderInstruction: KioskSubmitOrderInstructionForm;
27
29
  }
28
30
  export interface MfKioskPickAtCounterSetting {
29
31
  enabled: boolean;
32
+ enablePaxDialog: boolean;
30
33
  submitOrderInstruction: MfKioskSubmitOrderInstruction;
31
34
  }
32
35
  export interface PickAtCounterSettingForm {
33
36
  enabled: boolean;
37
+ enablePaxDialog: boolean;
34
38
  submitOrderInstruction: KioskSubmitOrderInstructionForm;
35
39
  }
36
40
  export interface MfKioskSequenceNumberSetting {