@feedmepos/mf-order-setting 0.0.83 → 0.0.84

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 (75) hide show
  1. package/dist/{DisplaySystemView-BXy_OnbY.js → DisplaySystemView-4Bz8p26A.js} +1 -1
  2. package/dist/{KioskDevicesView-D3YR1e6K.js → KioskDevicesView-DdwFuenU.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CuhL_Q5C.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CxtLm_oh.js} +3 -3
  4. package/dist/{KioskSettingView-C3L9_8ag.js → KioskSettingView-D57KtQ-t.js} +289 -240
  5. package/dist/{KioskView-Cs6VBCj5.js → KioskView-fwBwUGCQ.js} +113 -103
  6. package/dist/{OrderSettingsView-BdaHRXda.js → OrderSettingsView-RhlyZmzs.js} +1772 -1766
  7. package/dist/{app-CP6AFTEu.js → app-ClOkRxOZ.js} +26 -6
  8. package/dist/app.js +1 -1
  9. package/dist/common/util/index.d.ts +9 -0
  10. package/dist/frontend/mf-order/src/app.d.ts +20 -0
  11. package/dist/frontend/mf-order/src/main.d.ts +20 -0
  12. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +2 -0
  13. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/languages.d.ts +7 -0
  14. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
  15. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +8 -0
  16. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue.d.ts +9 -0
  17. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  18. package/dist/{index-LCS8oexE.js → index-5k7kGCpJ.js} +2 -2
  19. package/dist/{index-BckeUsPc.js → index-CKEbr9Es.js} +1 -1
  20. package/dist/{index-DoJzzpyh.js → index-I2YGevce.js} +1 -1
  21. package/dist/{order.dto-Bm04C1sQ.js → order.dto-Dbn-hRrm.js} +3294 -3235
  22. package/dist/package/entity/alert/alert-base.dto.d.ts +306 -0
  23. package/dist/package/entity/alert/alert.dto.d.ts +956 -0
  24. package/dist/package/entity/alert/alert.enum.d.ts +7 -0
  25. package/dist/package/entity/alert/categories/integration.d.ts +333 -0
  26. package/dist/package/entity/alert/categories/kiosk.d.ts +297 -0
  27. package/dist/package/entity/alert/categories/mini-program.d.ts +297 -0
  28. package/dist/package/entity/alert/investigation.dto.d.ts +86 -0
  29. package/dist/package/entity/alert/lark-callback.dto.d.ts +106 -0
  30. package/dist/package/entity/alert/suggestion.dto.d.ts +31 -0
  31. package/dist/package/entity/alert/suggestion.enum.d.ts +7 -0
  32. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +80 -0
  33. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +575 -0
  34. package/dist/package/entity/index.d.ts +12 -0
  35. package/dist/package/entity/index.frontend.d.ts +1 -0
  36. package/dist/package/entity/member/member.dto.d.ts +2 -1
  37. package/dist/package/entity/order/order.do.d.ts +64 -7
  38. package/dist/package/entity/order/order.dto.d.ts +85 -67
  39. package/dist/package/entity/order/payment/payment.dto.d.ts +36 -28
  40. package/dist/package/entity/order-platform/external/auth/external-auth.dto.d.ts +9 -15
  41. package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +33 -0
  42. package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +1185 -23
  43. package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +1104 -52
  44. package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +2914 -88
  45. package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +38 -0
  46. package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +26 -0
  47. package/dist/package/entity/order-platform/foodpanda/foodpanda-availability.dto.d.ts +75 -0
  48. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +9 -0
  49. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +13 -0
  50. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
  51. package/dist/package/entity/order-platform/shopeefood/shopeefood.enum.d.ts +6 -0
  52. package/dist/package/entity/order-platform/tng/tng-order.do.d.ts +6 -6
  53. package/dist/package/entity/order-platform/tng/tng.dto.d.ts +2 -2
  54. package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -0
  55. package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +3 -0
  56. package/dist/package/entity/order-setting/kiosk/kiosk.enum.d.ts +12 -0
  57. package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -0
  58. package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -0
  59. package/dist/package/entity/payment/payment.dto.d.ts +2 -2
  60. package/dist/package/entity/payment/transaction.d.ts +115 -30
  61. package/dist/package/entity/queue/queue.dto.d.ts +13 -11
  62. package/dist/package/entity/restaurant/restaurant.dto.d.ts +5 -0
  63. package/dist/package/entity/websocket/websocket.dto.d.ts +12 -0
  64. package/package.json +1 -1
  65. package/src/locales/en-US.json +5 -0
  66. package/src/locales/ja-JP.json +5 -0
  67. package/src/locales/th-TH.json +5 -0
  68. package/src/locales/zh-CN.json +5 -0
  69. package/src/modules/order-setting/kiosk/interface.ts +8 -0
  70. package/src/modules/order-setting/kiosk/languages.ts +29 -0
  71. package/src/stores/order-setting/mapper.spec.ts +44 -0
  72. package/src/stores/order-setting/mapper.ts +9 -2
  73. package/src/views/kiosk/settings/KioskSettingView.vue +63 -0
  74. package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +6 -1
  75. package/src/views/order-settings/delivery/integrated-delivery/LinemanSetting.vue +2 -1
@@ -1,10 +1,10 @@
1
- import { defineComponent as re, computed as A, ref as L, onMounted as pe, resolveComponent as w, openBlock as R, createBlock as G, withCtx as T, createVNode as s, unref as l, createElementVNode as r, withDirectives as E, vShow as N, toDisplayString as g, watch as ce, createElementBlock as j, createCommentVNode as ae } from "vue";
2
- import { e as le, b as se, s as de, d as ye, r as te, f as ne, h as fe } from "./app-CP6AFTEu.js";
3
- import { c as m, d as ve } from "./order.dto-Bm04C1sQ.js";
4
- import { _ as be, u as ge, a as Ie } from "./index-LCS8oexE.js";
5
- import { useI18n as ie, FeedMeAuth as ue, useCoreStore as Pe } from "@feedmepos/mf-common";
6
- import { useSnackbar as Se } from "@feedmepos/ui-library";
7
- const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }, we = { class: "ml-7" }, _e = { class: "ml-7" }, Ve = { class: "flex flex-row gap-9" }, he = /* @__PURE__ */ re({
1
+ import { defineComponent as ie, computed as k, ref as $, onMounted as be, resolveComponent as S, openBlock as h, createBlock as H, withCtx as C, createVNode as s, unref as l, createElementVNode as r, withDirectives as U, vShow as R, toDisplayString as b, watch as ge, createElementBlock as L, createCommentVNode as Z, Fragment as Ie, renderList as Pe } from "vue";
2
+ import { e as oe, b as ue, s as me, d as Se, r as re, f as se, h as _e } from "./app-ClOkRxOZ.js";
3
+ import { c as p, K as xe, d as he } from "./order.dto-Dbn-hRrm.js";
4
+ import { _ as we, u as Ve, a as ke } from "./index-5k7kGCpJ.js";
5
+ import { useI18n as pe, FeedMeAuth as ce, useCoreStore as Te } from "@feedmepos/mf-common";
6
+ import { useSnackbar as Ce } from "@feedmepos/ui-library";
7
+ const Ae = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }, Ue = { class: "ml-7" }, Re = { class: "ml-7" }, Fe = { class: "flex flex-row gap-9" }, Ee = /* @__PURE__ */ ie({
8
8
  __name: "KioskPaymentTypeSection",
9
9
  props: {
10
10
  paymentTypes: {
@@ -29,12 +29,12 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
29
29
  }
30
30
  },
31
31
  emits: ["update:paymentTypes", "update:offlinePaymentTypes", "update:ePaymentTypes"],
32
- setup(i, { emit: p }) {
33
- const { t: e } = ie(), v = i, _ = p, P = A(() => (v.paymentTypes || []).includes(le.F_ORDER_PAYMENT_TYPE.enum.ePayment)), I = L(), y = L([]), a = L(!1), V = L(!1), C = L(!1), B = () => {
34
- Object.keys(v.ePaymentTypes).length !== 0 && (v.ePaymentTypes.terminal && (V.value = !0), v.ePaymentTypes.card.terminal ? (I.value = m.enum.TERMINAL, a.value = !0) : v.ePaymentTypes.card.nfc && (I.value = m.enum.NFC, a.value = !0), v.ePaymentTypes.eWallet.qrPay && (y.value.push(m.enum.QRPAY), C.value = !0), v.ePaymentTypes.eWallet.scanPay && (y.value.push(m.enum.SCANPAY), C.value = !0));
32
+ setup(i, { emit: c }) {
33
+ const { t: e } = pe(), g = i, w = c, P = k(() => (g.paymentTypes || []).includes(oe.F_ORDER_PAYMENT_TYPE.enum.ePayment)), I = $(), v = $([]), a = $(!1), A = $(!1), V = $(!1), W = () => {
34
+ Object.keys(g.ePaymentTypes).length !== 0 && (g.ePaymentTypes.terminal && (A.value = !0), g.ePaymentTypes.card.terminal ? (I.value = p.enum.TERMINAL, a.value = !0) : g.ePaymentTypes.card.nfc && (I.value = p.enum.NFC, a.value = !0), g.ePaymentTypes.eWallet.qrPay && (v.value.push(p.enum.QRPAY), V.value = !0), g.ePaymentTypes.eWallet.scanPay && (v.value.push(p.enum.SCANPAY), V.value = !0));
35
35
  };
36
- B();
37
- const H = (c) => {
36
+ W();
37
+ const G = (y) => {
38
38
  const d = {
39
39
  terminal: !1,
40
40
  card: {
@@ -46,9 +46,9 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
46
46
  scanPay: !1
47
47
  }
48
48
  };
49
- P.value && (c == m.enum.TERMINAL && (d.card.terminal = !0), c == m.enum.NFC && (d.card.nfc = !0), y.value.length > 0 && (y.value.includes(m.enum.QRPAY) && (d.eWallet.qrPay = !0), y.value.includes(m.enum.SCANPAY) && (d.eWallet.scanPay = !0))), V.value && (d.terminal = !0), _("update:ePaymentTypes", d);
50
- }, h = () => {
51
- const c = {
49
+ P.value && (y == p.enum.TERMINAL && (d.card.terminal = !0), y == p.enum.NFC && (d.card.nfc = !0), v.value.length > 0 && (v.value.includes(p.enum.QRPAY) && (d.eWallet.qrPay = !0), v.value.includes(p.enum.SCANPAY) && (d.eWallet.scanPay = !0))), A.value && (d.terminal = !0), w("update:ePaymentTypes", d);
50
+ }, T = () => {
51
+ const y = {
52
52
  terminal: !1,
53
53
  card: {
54
54
  terminal: !1,
@@ -61,38 +61,38 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
61
61
  terminalQrPay: !1
62
62
  }
63
63
  };
64
- P.value && (I.value && (I.value === m.enum.TERMINAL && (c.card.terminal = !0), I.value === m.enum.NFC && (c.card.nfc = !0)), V.value && (c.terminal = !0), y.value.includes(m.enum.QRPAY) && (c.eWallet.qrPay = !0), y.value.includes(m.enum.SCANPAY) && (c.eWallet.scanPay = !0), y.value.includes(m.enum.TERMINAL_SCAN_PAY) && (c.eWallet.terminalScanPay = !0), y.value.includes(m.enum.TERMINAL_QR_PAY) && (c.eWallet.terminalQrPay = !0)), _("update:ePaymentTypes", c);
65
- }, O = (c) => {
66
- I.value = "", c && (I.value = m.enum.TERMINAL), h();
67
- }, Y = (c) => {
68
- y.value = [], c && (y.value = [
69
- m.enum.QRPAY,
70
- m.enum.SCANPAY
71
- ]), h();
72
- }, K = (c) => {
73
- _("update:paymentTypes", c), c.includes(le.F_ORDER_PAYMENT_TYPE.enum.ePayment) || (a.value = !1, C.value = !1, O(!1), Y(!1));
64
+ P.value && (I.value && (I.value === p.enum.TERMINAL && (y.card.terminal = !0), I.value === p.enum.NFC && (y.card.nfc = !0)), A.value && (y.terminal = !0), v.value.includes(p.enum.QRPAY) && (y.eWallet.qrPay = !0), v.value.includes(p.enum.SCANPAY) && (y.eWallet.scanPay = !0), v.value.includes(p.enum.TERMINAL_SCAN_PAY) && (y.eWallet.terminalScanPay = !0), v.value.includes(p.enum.TERMINAL_QR_PAY) && (y.eWallet.terminalQrPay = !0)), w("update:ePaymentTypes", y);
65
+ }, O = (y) => {
66
+ I.value = "", y && (I.value = p.enum.TERMINAL), T();
67
+ }, K = (y) => {
68
+ v.value = [], y && (v.value = [
69
+ p.enum.QRPAY,
70
+ p.enum.SCANPAY
71
+ ]), T();
72
+ }, J = (y) => {
73
+ w("update:paymentTypes", y), y.includes(oe.F_ORDER_PAYMENT_TYPE.enum.ePayment) || (a.value = !1, V.value = !1, O(!1), K(!1));
74
74
  };
75
- return pe(() => {
76
- B();
77
- }), (c, d) => {
78
- const D = w("FmSwitch"), U = w("FmRadio"), Q = w("FmRadioGroup"), M = w("FmCardSection"), q = w("FmCard"), F = w("FmCheckbox");
79
- return R(), G(be, {
75
+ return be(() => {
76
+ W();
77
+ }), (y, d) => {
78
+ const F = S("FmSwitch"), Y = S("FmRadio"), X = S("FmRadioGroup"), j = S("FmCardSection"), q = S("FmCard"), E = S("FmCheckbox");
79
+ return h(), H(we, {
80
80
  "payment-types": i.paymentTypes,
81
81
  "offline-payment-types": i.offlinePaymentTypes,
82
- "allow-e-payment": v.allowEPayment,
83
- "allow-credit": v.allowCredit,
84
- "onUpdate:paymentTypes": K,
85
- "onUpdate:offlinePaymentTypes": d[8] || (d[8] = (f) => _("update:offlinePaymentTypes", f || []))
82
+ "allow-e-payment": g.allowEPayment,
83
+ "allow-credit": g.allowCredit,
84
+ "onUpdate:paymentTypes": J,
85
+ "onUpdate:offlinePaymentTypes": d[8] || (d[8] = (f) => w("update:offlinePaymentTypes", f || []))
86
86
  }, {
87
- "e-payment-note": T(() => [
88
- r("div", xe, g(l(e)("order.legacyEPaymentNote")), 1)
87
+ "e-payment-note": C(() => [
88
+ r("div", Ae, b(l(e)("order.legacyEPaymentNote")), 1)
89
89
  ]),
90
- "e-payment-content": T(() => [
90
+ "e-payment-content": C(() => [
91
91
  s(q, { variant: "outlined" }, {
92
- default: T(() => [
93
- s(M, null, {
94
- default: T(() => [
95
- s(D, {
92
+ default: C(() => [
93
+ s(j, null, {
94
+ default: C(() => [
95
+ s(F, {
96
96
  label: l(e)("order.bankCard"),
97
97
  sublabel: l(e)("order.cardPaymentDescription"),
98
98
  "label-placement": "right",
@@ -103,29 +103,29 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
103
103
  ]
104
104
  }, null, 8, ["label", "sublabel", "modelValue"]),
105
105
  d[9] || (d[9] = r("br", null, null, -1)),
106
- E(r("div", we, [
107
- s(Q, {
106
+ U(r("div", Ue, [
107
+ s(X, {
108
108
  modelValue: I.value,
109
109
  "onUpdate:modelValue": [
110
110
  d[1] || (d[1] = (f) => I.value = f),
111
- H
111
+ G
112
112
  ],
113
113
  inline: ""
114
114
  }, {
115
- default: T(() => [
116
- s(U, {
115
+ default: C(() => [
116
+ s(Y, {
117
117
  label: l(e)("order.terminal"),
118
- value: l(m).enum.TERMINAL
118
+ value: l(p).enum.TERMINAL
119
119
  }, null, 8, ["label", "value"]),
120
- s(U, {
120
+ s(Y, {
121
121
  label: l(e)("order.nfc"),
122
- value: l(m).enum.NFC
122
+ value: l(p).enum.NFC
123
123
  }, null, 8, ["label", "value"])
124
124
  ]),
125
125
  _: 1
126
126
  }, 8, ["modelValue"])
127
127
  ], 512), [
128
- [N, a.value]
128
+ [R, a.value]
129
129
  ])
130
130
  ]),
131
131
  _: 1
@@ -137,17 +137,17 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
137
137
  variant: "outlined",
138
138
  class: "mt-2"
139
139
  }, {
140
- default: T(() => [
141
- s(M, null, {
142
- default: T(() => [
143
- s(D, {
140
+ default: C(() => [
141
+ s(j, null, {
142
+ default: C(() => [
143
+ s(F, {
144
144
  label: l(e)("order.terminal"),
145
145
  sublabel: l(e)("order.terminalPaymentDescription"),
146
146
  "label-placement": "right",
147
- modelValue: V.value,
147
+ modelValue: A.value,
148
148
  "onUpdate:modelValue": [
149
- d[2] || (d[2] = (f) => V.value = f),
150
- h
149
+ d[2] || (d[2] = (f) => A.value = f),
150
+ T
151
151
  ]
152
152
  }, null, 8, ["label", "sublabel", "modelValue"])
153
153
  ]),
@@ -160,61 +160,61 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
160
160
  variant: "outlined",
161
161
  class: "mt-2"
162
162
  }, {
163
- default: T(() => [
164
- s(M, null, {
165
- default: T(() => [
166
- s(D, {
163
+ default: C(() => [
164
+ s(j, null, {
165
+ default: C(() => [
166
+ s(F, {
167
167
  label: l(e)("order.eWallet"),
168
168
  sublabel: l(e)("order.eWalletDescription"),
169
169
  "label-placement": "right",
170
- modelValue: C.value,
170
+ modelValue: V.value,
171
171
  "onUpdate:modelValue": [
172
- d[3] || (d[3] = (f) => C.value = f),
173
- Y
172
+ d[3] || (d[3] = (f) => V.value = f),
173
+ K
174
174
  ]
175
175
  }, null, 8, ["label", "sublabel", "modelValue"]),
176
176
  d[10] || (d[10] = r("br", null, null, -1)),
177
- E(r("div", _e, [
178
- r("div", Ve, [
179
- s(F, {
180
- modelValue: y.value,
177
+ U(r("div", Re, [
178
+ r("div", Fe, [
179
+ s(E, {
180
+ modelValue: v.value,
181
181
  "onUpdate:modelValue": [
182
- d[4] || (d[4] = (f) => y.value = f),
183
- h
182
+ d[4] || (d[4] = (f) => v.value = f),
183
+ T
184
184
  ],
185
185
  label: l(e)("order.qrPay"),
186
- value: l(m).enum.QRPAY
186
+ value: l(p).enum.QRPAY
187
187
  }, null, 8, ["modelValue", "label", "value"]),
188
- s(F, {
189
- modelValue: y.value,
188
+ s(E, {
189
+ modelValue: v.value,
190
190
  "onUpdate:modelValue": [
191
- d[5] || (d[5] = (f) => y.value = f),
192
- h
191
+ d[5] || (d[5] = (f) => v.value = f),
192
+ T
193
193
  ],
194
194
  label: l(e)("order.scanPay"),
195
- value: l(m).enum.SCANPAY
195
+ value: l(p).enum.SCANPAY
196
196
  }, null, 8, ["modelValue", "label", "value"]),
197
- s(F, {
198
- modelValue: y.value,
197
+ s(E, {
198
+ modelValue: v.value,
199
199
  "onUpdate:modelValue": [
200
- d[6] || (d[6] = (f) => y.value = f),
201
- h
200
+ d[6] || (d[6] = (f) => v.value = f),
201
+ T
202
202
  ],
203
203
  label: l(e)("order.terminalScanPay"),
204
- value: l(m).enum.TERMINAL_SCAN_PAY
204
+ value: l(p).enum.TERMINAL_SCAN_PAY
205
205
  }, null, 8, ["modelValue", "label", "value"]),
206
- s(F, {
207
- modelValue: y.value,
206
+ s(E, {
207
+ modelValue: v.value,
208
208
  "onUpdate:modelValue": [
209
- d[7] || (d[7] = (f) => y.value = f),
210
- h
209
+ d[7] || (d[7] = (f) => v.value = f),
210
+ T
211
211
  ],
212
212
  label: l(e)("order.terminalQrPay"),
213
- value: l(m).enum.TERMINAL_QR_PAY
213
+ value: l(p).enum.TERMINAL_QR_PAY
214
214
  }, null, 8, ["modelValue", "label", "value"])
215
215
  ])
216
216
  ], 512), [
217
- [N, C.value]
217
+ [R, V.value]
218
218
  ])
219
219
  ]),
220
220
  _: 1
@@ -227,101 +227,125 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
227
227
  }, 8, ["payment-types", "offline-payment-types", "allow-e-payment", "allow-credit"]);
228
228
  };
229
229
  }
230
- });
231
- var Te = { firebase: {} }, Ce = {};
230
+ }), Ne = {
231
+ "en-US": "English",
232
+ "zh-CN": "中文",
233
+ "th-TH": "ไทย",
234
+ "vi-VN": "Tiếng Việt",
235
+ "id-ID": "Bahasa Indonesia",
236
+ "ko-KR": "한국어",
237
+ "ja-JP": "日本語",
238
+ "ar-SA": "العربية"
239
+ }, Le = xe.map((i) => ({
240
+ code: i,
241
+ label: Ne[i]
242
+ }));
243
+ var Oe = { firebase: {} }, De = {};
232
244
  let z = null;
233
- function ke(i) {
234
- var v;
235
- const p = (v = i.name.split(".").pop()) == null ? void 0 : v.toLowerCase();
236
- return p && /^[a-z0-9]+$/.test(p) ? p : {
245
+ function Me(i) {
246
+ var g;
247
+ const c = (g = i.name.split(".").pop()) == null ? void 0 : g.toLowerCase();
248
+ return c && /^[a-z0-9]+$/.test(c) ? c : {
237
249
  "image/jpeg": "jpg",
238
250
  "image/png": "png",
239
251
  "image/webp": "webp",
240
252
  "image/gif": "gif"
241
253
  }[i.type] ?? "bin";
242
254
  }
243
- function Ae() {
255
+ function $e() {
244
256
  var e;
245
- return (((e = Ce.firebase) == null ? void 0 : e.storageBucket) ?? Te.firebase.storageBucket ?? "image.feedme.cc").replace(/^https?:\/\//, "").replace(/\/+$/, "");
257
+ return (((e = De.firebase) == null ? void 0 : e.storageBucket) ?? Oe.firebase.storageBucket ?? "image.feedme.cc").replace(/^https?:\/\//, "").replace(/\/+$/, "");
246
258
  }
247
- function Re(i) {
248
- const p = i.replace(/^\/+/, "");
249
- return `https://${Ae()}/${p}`;
259
+ function We(i) {
260
+ const c = i.replace(/^\/+/, "");
261
+ return `https://${$e()}/${c}`;
250
262
  }
251
- async function Ue() {
252
- const i = se();
263
+ async function Ye() {
264
+ const i = ue();
253
265
  if (!i.currentUser && (await i.authStateReady(), !i.currentUser && (z || (z = (async () => {
254
- const p = await ue.getCustomToken();
255
- await de(i, p);
266
+ const c = await ce.getCustomToken();
267
+ await me(i, c);
256
268
  })().finally(() => {
257
269
  z = null;
258
270
  })), await z, !i.currentUser)))
259
271
  throw new Error("User not authenticated for image upload");
260
272
  }
261
- async function Fe() {
262
- const i = se();
263
- i.currentUser && await fe(i);
264
- const p = await ue.getCustomToken();
265
- await de(i, p);
273
+ async function je() {
274
+ const i = ue();
275
+ i.currentUser && await _e(i);
276
+ const c = await ce.getCustomToken();
277
+ await me(i, c);
266
278
  }
267
- async function Ee(i, p) {
268
- const e = ye(), v = te(e, i);
279
+ async function qe(i, c) {
280
+ const e = Se(), g = re(e, i);
269
281
  try {
270
- await ne(v, p, {
271
- contentType: p.type || void 0
282
+ await se(g, c, {
283
+ contentType: c.type || void 0
272
284
  });
273
285
  return;
274
286
  } catch (P) {
275
287
  if ((P == null ? void 0 : P.code) !== "storage/unauthorized")
276
288
  throw P;
277
289
  }
278
- await Fe();
279
- const _ = te(e, i);
280
- await ne(_, p, {
281
- contentType: p.type || void 0
290
+ await je();
291
+ const w = re(e, i);
292
+ await se(w, c, {
293
+ contentType: c.type || void 0
282
294
  });
283
295
  }
284
- async function Ne(i, p) {
285
- await Ue();
286
- const e = i.replace(/^\/+/, "").replace(/\/+$/, ""), v = ke(p), _ = `${Date.now()}_${Math.random().toString(36).slice(2, 10)}.${v}`, P = `${e}/${_}`;
287
- return await Ee(P, p), Re(P);
296
+ async function Be(i, c) {
297
+ await Ye();
298
+ const e = i.replace(/^\/+/, "").replace(/\/+$/, ""), g = Me(c), w = `${Date.now()}_${Math.random().toString(36).slice(2, 10)}.${g}`, P = `${e}/${w}`;
299
+ return await qe(P, c), We(P);
288
300
  }
289
- const Oe = {
301
+ const Ke = {
290
302
  key: 0,
291
303
  class: "flex flex-col gap-32"
292
- }, De = {
304
+ }, Qe = {
293
305
  key: 0,
294
306
  class: "flex flex-col gap-2"
295
- }, Me = { class: "fm-typo-en-title-sm-600" }, $e = { class: "flex flex-col gap-1 w-full md:w-1/2" }, We = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Le = { class: "flex flex-col gap-2" }, Ye = { class: "fm-typo-en-title-sm-600" }, qe = { class: "flex flex-col gap-5" }, je = { class: "flex flex-col gap-16" }, Be = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, Qe = { class: "fm-typo-en-title-sm-600" }, ze = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, He = { class: "fm-typo-en-title-sm-600" }, Ke = { class: "flex flex-row gap-2" }, Ge = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, Xe = { class: "fm-typo-en-title-sm-600" }, Ze = { class: "flex flex-col gap-2" }, Je = { class: "fm-typo-en-title-sm-600" }, ea = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, aa = { class: "fm-typo-en-title-sm-600" }, la = { class: "flex flex-col gap-2" }, ta = { class: "fm-typo-en-title-sm-600" }, na = { class: "flex flex-col gap-2" }, oa = { class: "fm-typo-en-title-sm-600" }, ra = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, sa = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, da = { class: "fm-typo-en-body-md-600" }, ia = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ua = {
307
+ }, ze = { class: "fm-typo-en-title-sm-600" }, He = { class: "flex flex-col gap-1 w-full md:w-1/2" }, Ge = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Je = { class: "flex flex-col gap-2" }, Xe = { class: "fm-typo-en-title-sm-600" }, Ze = { class: "flex flex-col gap-5" }, ea = { class: "flex flex-col gap-16" }, aa = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, la = { class: "fm-typo-en-title-sm-600" }, ta = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, na = { class: "fm-typo-en-title-sm-600" }, oa = { class: "flex flex-row gap-2" }, ra = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, sa = { class: "fm-typo-en-title-sm-600" }, da = { class: "flex flex-col gap-2" }, ia = { class: "fm-typo-en-title-sm-600" }, ua = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, ma = { class: "fm-typo-en-title-sm-600" }, pa = { class: "flex flex-col gap-2" }, ca = { class: "fm-typo-en-title-sm-600" }, ya = { class: "flex flex-col gap-2" }, fa = { class: "fm-typo-en-title-sm-600" }, va = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ba = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, ga = { class: "grid grid-cols-1 md:grid-cols-2 gap-3" }, Ia = {
308
+ key: 0,
309
+ class: "fm-typo-en-body-sm-400 text-fm-color-system-error-300"
310
+ }, Pa = { class: "flex flex-col gap-2" }, Sa = { class: "fm-typo-en-title-sm-600" }, _a = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, xa = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, ha = { class: "fm-typo-en-body-md-600" }, wa = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Va = {
296
311
  key: 1,
297
312
  class: "flex flex-col gap-2"
298
- }, ma = ["src", "alt"], pa = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, ca = { class: "fm-typo-en-body-md-600" }, ya = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, fa = {
313
+ }, ka = ["src", "alt"], Ta = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, Ca = { class: "fm-typo-en-body-md-600" }, Aa = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ua = {
299
314
  key: 1,
300
315
  class: "flex flex-col gap-2"
301
- }, va = ["src", "alt"], ba = { class: "flex flex-col gap-2" }, ga = { class: "fm-typo-en-title-sm-600" }, Ia = { class: "flex flex-col gap-2" }, Pa = { key: 1 }, oe = 10 * 1e3 * 1e3, Ta = /* @__PURE__ */ re({
316
+ }, Ra = ["src", "alt"], Fa = { class: "flex flex-col gap-2" }, Ea = { class: "fm-typo-en-title-sm-600" }, Na = { class: "flex flex-col gap-2" }, La = { key: 1 }, de = 10 * 1e3 * 1e3, ja = /* @__PURE__ */ ie({
302
317
  __name: "KioskSettingView",
303
318
  props: {
304
319
  restaurantId: {},
305
320
  form: {}
306
321
  },
307
322
  emits: ["updateKioskOrderSetting"],
308
- setup(i, { emit: p }) {
309
- const { t: e } = ie(), v = Pe(), _ = A(() => {
323
+ setup(i, { emit: c }) {
324
+ const { t: e } = pe(), g = Te(), w = k(() => {
310
325
  var o;
311
- return ((o = v.sessionUser.value) == null ? void 0 : o.role.isAdmin) ?? !1;
312
- }), P = i, I = Se(), y = p, a = L(P.form), V = (o) => o < 0 ? e("order.nonNegativeRule") : !0, C = (o) => o <= (a.value.dineIn.displayStand.standSlotRange.min ?? 0) ? e("order.greaterThanMinRule") : !0, B = A(() => [V]), H = A(() => [V]), h = A(() => [V, C]), O = A(() => {
313
- var b, S, k, $, n, X, Z, J;
314
- const o = a.value, t = (b = o.otaChannel) == null ? void 0 : b.trim();
326
+ return ((o = g.sessionUser.value) == null ? void 0 : o.role.isAdmin) ?? !1;
327
+ }), P = i, I = Ce(), v = c, a = $(P.form), A = Le, V = k(() => a.value.languages != null), W = k(() => a.value.languages ?? []);
328
+ function G(o) {
329
+ a.value.languages = o ? ["en-US"] : null;
330
+ }
331
+ function T(o, t) {
332
+ const u = a.value.languages ?? [];
333
+ a.value.languages = t ? A.filter((m) => m.code === o || u.includes(m.code)).map((m) => m.code) : u.filter((m) => m !== o);
334
+ }
335
+ const O = (o) => o < 0 ? e("order.nonNegativeRule") : !0, K = (o) => o <= (a.value.dineIn.displayStand.standSlotRange.min ?? 0) ? e("order.greaterThanMinRule") : !0, J = k(() => [O]), y = k(() => [O]), d = k(() => [O, K]), F = k(() => {
336
+ var m, _, N, B, D, n, Q, te;
337
+ const o = a.value, t = (m = o.otaChannel) == null ? void 0 : m.trim();
315
338
  if (o.dineIn.enabled && o.dineIn.displayStand.enabled) {
316
- const { padDigit: x, standSlotRange: W } = o.dineIn.displayStand;
317
- if (!(x != null && x >= 0 && W.min != null && W.max != null && W.min <= W.max)) return null;
339
+ const { padDigit: x, standSlotRange: M } = o.dineIn.displayStand;
340
+ if (!(x != null && x >= 0 && M.min != null && M.max != null && M.min <= M.max)) return null;
318
341
  }
342
+ if (o.languages != null && o.languages.length === 0) return null;
319
343
  const u = o.paymentSetting;
320
- if ((S = u == null ? void 0 : u.paymentTypes) != null && S.includes(ve.enum.ePayment)) {
344
+ if ((_ = u == null ? void 0 : u.paymentTypes) != null && _.includes(he.enum.ePayment)) {
321
345
  const x = u.ePaymentTypes;
322
346
  if (!x) return null;
323
- const W = ((k = x.card) == null ? void 0 : k.terminal) || (($ = x.card) == null ? void 0 : $.nfc), ee = ((n = x.eWallet) == null ? void 0 : n.qrPay) || ((X = x.eWallet) == null ? void 0 : X.scanPay) || ((Z = x.eWallet) == null ? void 0 : Z.terminalScanPay) || ((J = x.eWallet) == null ? void 0 : J.terminalQrPay), me = x.terminal;
324
- if (!W && !ee && !me) return null;
347
+ const M = ((N = x.card) == null ? void 0 : N.terminal) || ((B = x.card) == null ? void 0 : B.nfc), ne = ((D = x.eWallet) == null ? void 0 : D.qrPay) || ((n = x.eWallet) == null ? void 0 : n.scanPay) || ((Q = x.eWallet) == null ? void 0 : Q.terminalScanPay) || ((te = x.eWallet) == null ? void 0 : te.terminalQrPay), ve = x.terminal;
348
+ if (!M && !ne && !ve) return null;
325
349
  }
326
350
  return {
327
351
  ...o,
@@ -340,28 +364,28 @@ const Oe = {
340
364
  }
341
365
  }
342
366
  };
343
- }), { startAsyncCall: Y } = ge();
344
- function K(o) {
367
+ }), { startAsyncCall: Y } = Ve();
368
+ function X(o) {
345
369
  a.value.paymentSetting.paymentTypes = o;
346
370
  }
347
- function c(o) {
371
+ function j(o) {
348
372
  a.value.paymentSetting.ePaymentTypes = o;
349
373
  }
350
- const d = Ie();
351
- function D(o) {
374
+ const q = ke();
375
+ function E(o) {
352
376
  a.value[o] = null;
353
377
  }
354
- function U(o) {
378
+ function f(o) {
355
379
  const t = a.value[o];
356
380
  if (!t) return null;
357
381
  const u = t.trim();
358
382
  return u.length > 0 ? u : null;
359
383
  }
360
- async function Q(o, t) {
384
+ async function ee(o, t) {
361
385
  try {
362
386
  const u = await Y(async () => {
363
- const b = `/restaurant/${P.restaurantId}/kiosk/${o}`;
364
- return await Ne(b, t);
387
+ const m = `/restaurant/${P.restaurantId}/kiosk/${o}`;
388
+ return await Be(m, t);
365
389
  });
366
390
  a.value[o] = u, I.open({
367
391
  title: e("order.imageUploadSuccess"),
@@ -374,40 +398,40 @@ const Oe = {
374
398
  });
375
399
  }
376
400
  }
377
- function M(o, t) {
378
- var S, k;
379
- const u = e(o === "coverImageLandscape" ? "order.coverImageLandscape" : "order.coverImagePortrait"), b = (k = (S = t[0]) == null ? void 0 : S.reason) == null ? void 0 : k[0];
401
+ function ae(o, t) {
402
+ var _, N;
403
+ const u = e(o === "coverImageLandscape" ? "order.coverImageLandscape" : "order.coverImagePortrait"), m = (N = (_ = t[0]) == null ? void 0 : _.reason) == null ? void 0 : N[0];
380
404
  I.open({
381
- title: b ? `${e("order.imageUploadRejected")}: ${u} (${b})` : `${e("order.imageUploadRejected")}: ${u}`,
405
+ title: m ? `${e("order.imageUploadRejected")}: ${u} (${m})` : `${e("order.imageUploadRejected")}: ${u}`,
382
406
  type: "error"
383
407
  });
384
408
  }
385
- const q = A(() => d.getRestaurantEPayment()), F = A({
409
+ const ye = k(() => q.getRestaurantEPayment()), le = k({
386
410
  get: () => (a.value.dineIn.displayStand.enabled && a.value.dineIn.displayStand.enablePaxDialog || a.value.dineIn.pickUp.enablePaxDialog) ?? !1,
387
411
  set: (o) => {
388
412
  a.value.dineIn.displayStand.enablePaxDialog = o, a.value.dineIn.pickUp.enablePaxDialog = o;
389
413
  }
390
414
  });
391
- ce(
415
+ ge(
392
416
  () => [
393
417
  a.value.dineIn.enabled,
394
418
  a.value.dineIn.pickUp.enabled,
395
419
  a.value.dineIn.displayStand.enabled
396
420
  ],
397
- ([o, t, u], b) => {
398
- const S = (b == null ? void 0 : b[0]) ?? !1;
399
- o && !t && !u && (a.value.dineIn.pickUp.enabled = !0, S || I.open({
421
+ ([o, t, u], m) => {
422
+ const _ = (m == null ? void 0 : m[0]) ?? !1;
423
+ o && !t && !u && (a.value.dineIn.pickUp.enabled = !0, _ || I.open({
400
424
  title: e("order.dineInModeAutoCorrected"),
401
425
  type: "info"
402
426
  }));
403
427
  },
404
428
  { immediate: !0 }
405
429
  );
406
- async function f() {
407
- if (O.value) {
408
- const o = O.value;
430
+ async function fe() {
431
+ if (F.value) {
432
+ const o = F.value;
409
433
  Y(async () => {
410
- await y("updateKioskOrderSetting", o);
434
+ await v("updateKioskOrderSetting", o);
411
435
  });
412
436
  } else
413
437
  I.open({
@@ -416,39 +440,39 @@ const Oe = {
416
440
  });
417
441
  }
418
442
  return (o, t) => {
419
- const u = w("FmTextField"), b = w("FmSwitch"), S = w("FmStepperField"), k = w("FmDropField"), $ = w("FmButton");
420
- return a.value ? (R(), j("div", Oe, [
421
- _.value ? (R(), j("div", De, [
422
- r("span", Me, g(l(e)("order.otaChannel")), 1),
423
- r("div", $e, [
443
+ const u = S("FmTextField"), m = S("FmSwitch"), _ = S("FmStepperField"), N = S("FmCheckbox"), B = S("FmDropField"), D = S("FmButton");
444
+ return a.value ? (h(), L("div", Ke, [
445
+ w.value ? (h(), L("div", Qe, [
446
+ r("span", ze, b(l(e)("order.otaChannel")), 1),
447
+ r("div", He, [
424
448
  s(u, {
425
449
  modelValue: a.value.otaChannel,
426
450
  "onUpdate:modelValue": t[0] || (t[0] = (n) => a.value.otaChannel = n),
427
451
  label: l(e)("order.otaChannel"),
428
452
  placeholder: l(e)("order.otaChannelHint")
429
453
  }, null, 8, ["modelValue", "label", "placeholder"]),
430
- r("span", We, g(l(e)("order.otaChannelHint")), 1)
454
+ r("span", Ge, b(l(e)("order.otaChannelHint")), 1)
431
455
  ])
432
- ])) : ae("", !0),
433
- r("div", Le, [
434
- r("span", Ye, g(l(e)("order.dineIn")), 1),
435
- r("div", qe, [
436
- s(b, {
456
+ ])) : Z("", !0),
457
+ r("div", Je, [
458
+ r("span", Xe, b(l(e)("order.dineIn")), 1),
459
+ r("div", Ze, [
460
+ s(m, {
437
461
  modelValue: a.value.dineIn.enabled,
438
462
  "onUpdate:modelValue": t[1] || (t[1] = (n) => a.value.dineIn.enabled = n),
439
463
  label: l(e)("order.dineIn"),
440
464
  "label-placement": "right"
441
465
  }, null, 8, ["modelValue", "label"]),
442
- E(r("div", je, [
466
+ U(r("div", ea, [
443
467
  r("div", null, [
444
- s(b, {
468
+ s(m, {
445
469
  modelValue: a.value.dineIn.pickUp.enabled,
446
470
  "onUpdate:modelValue": t[2] || (t[2] = (n) => a.value.dineIn.pickUp.enabled = n),
447
471
  label: l(e)("order.pickAtCounter"),
448
472
  "label-placement": "right"
449
473
  }, null, 8, ["modelValue", "label"]),
450
- E(r("div", Be, [
451
- r("span", Qe, g(l(e)("order.submitOrderInstruction")), 1),
474
+ U(r("div", aa, [
475
+ r("span", la, b(l(e)("order.submitOrderInstruction")), 1),
452
476
  s(u, {
453
477
  modelValue: a.value.dineIn.pickUp.submitOrderInstruction.payAtCounter,
454
478
  "onUpdate:modelValue": t[3] || (t[3] = (n) => a.value.dineIn.pickUp.submitOrderInstruction.payAtCounter = n),
@@ -462,57 +486,57 @@ const Oe = {
462
486
  placeholder: "Please wait as we prepare your food. We'll call your number when it's ready."
463
487
  }, null, 8, ["modelValue", "label"])
464
488
  ], 512), [
465
- [N, a.value.dineIn.pickUp.enabled]
489
+ [R, a.value.dineIn.pickUp.enabled]
466
490
  ])
467
491
  ]),
468
492
  r("div", null, [
469
- s(b, {
493
+ s(m, {
470
494
  modelValue: a.value.dineIn.displayStand.enabled,
471
495
  "onUpdate:modelValue": t[5] || (t[5] = (n) => a.value.dineIn.displayStand.enabled = n),
472
496
  label: l(e)("order.displayStand"),
473
497
  "label-placement": "right"
474
498
  }, null, 8, ["modelValue", "label"]),
475
- E(r("div", ze, [
476
- r("span", He, g(l(e)("order.tableServiceSetting")), 1),
499
+ U(r("div", ta, [
500
+ r("span", na, b(l(e)("order.tableServiceSetting")), 1),
477
501
  s(u, {
478
502
  modelValue: a.value.dineIn.displayStand.prefix,
479
503
  "onUpdate:modelValue": t[6] || (t[6] = (n) => a.value.dineIn.displayStand.prefix = n),
480
504
  label: l(e)("order.prefix"),
481
505
  placeholder: l(e)("order.prefix")
482
506
  }, null, 8, ["modelValue", "label", "placeholder"]),
483
- r("div", Ke, [
484
- s(S, {
507
+ r("div", oa, [
508
+ s(_, {
485
509
  modelValue: a.value.dineIn.displayStand.standSlotRange.min,
486
510
  "onUpdate:modelValue": t[7] || (t[7] = (n) => a.value.dineIn.displayStand.standSlotRange.min = n),
487
511
  class: "w-1/2",
488
512
  label: l(e)("order.start"),
489
513
  labelMark: "required",
490
- rules: H.value,
514
+ rules: y.value,
491
515
  placeholder: l(e)("order.enterANumber")
492
516
  }, null, 8, ["modelValue", "label", "rules", "placeholder"]),
493
- s(S, {
517
+ s(_, {
494
518
  modelValue: a.value.dineIn.displayStand.standSlotRange.max,
495
519
  "onUpdate:modelValue": t[8] || (t[8] = (n) => a.value.dineIn.displayStand.standSlotRange.max = n),
496
520
  class: "w-1/2",
497
521
  label: l(e)("order.end"),
498
522
  labelMark: "required",
499
- rules: h.value,
523
+ rules: d.value,
500
524
  placeholder: l(e)("order.enterANumber")
501
525
  }, null, 8, ["modelValue", "label", "rules", "placeholder"])
502
526
  ]),
503
- s(S, {
527
+ s(_, {
504
528
  modelValue: a.value.dineIn.displayStand.padDigit,
505
529
  "onUpdate:modelValue": t[9] || (t[9] = (n) => a.value.dineIn.displayStand.padDigit = n),
506
530
  label: l(e)("order.padDigit"),
507
531
  labelMark: "required",
508
- rules: B.value,
532
+ rules: J.value,
509
533
  placeholder: l(e)("order.padDigit")
510
534
  }, null, 8, ["modelValue", "label", "rules", "placeholder"])
511
535
  ], 512), [
512
- [N, a.value.dineIn.displayStand.enabled]
536
+ [R, a.value.dineIn.displayStand.enabled]
513
537
  ]),
514
- E(r("div", Ge, [
515
- r("span", Xe, g(l(e)("order.submitOrderInstruction")), 1),
538
+ U(r("div", ra, [
539
+ r("span", sa, b(l(e)("order.submitOrderInstruction")), 1),
516
540
  s(u, {
517
541
  modelValue: a.value.dineIn.displayStand.submitOrderInstruction.payAtCounter,
518
542
  "onUpdate:modelValue": t[10] || (t[10] = (n) => a.value.dineIn.displayStand.submitOrderInstruction.payAtCounter = n),
@@ -526,25 +550,25 @@ const Oe = {
526
550
  placeholder: "Please collect your receipt and we'll bring your food to your table once it's ready."
527
551
  }, null, 8, ["modelValue", "label"])
528
552
  ], 512), [
529
- [N, a.value.dineIn.displayStand.enabled]
553
+ [R, a.value.dineIn.displayStand.enabled]
530
554
  ])
531
555
  ])
532
556
  ], 512), [
533
- [N, a.value.dineIn.enabled]
557
+ [R, a.value.dineIn.enabled]
534
558
  ])
535
559
  ])
536
560
  ]),
537
- r("div", Ze, [
538
- r("span", Je, g(l(e)("order.takeawayTitle")), 1),
539
- s(b, {
561
+ r("div", da, [
562
+ r("span", ia, b(l(e)("order.takeawayTitle")), 1),
563
+ s(m, {
540
564
  modelValue: a.value.takeaway.enabled,
541
565
  "onUpdate:modelValue": t[12] || (t[12] = (n) => a.value.takeaway.enabled = n),
542
566
  label: l(e)("order.takeaway"),
543
567
  "label-placement": "right",
544
568
  class: "mb-5"
545
569
  }, null, 8, ["modelValue", "label"]),
546
- E(r("div", ea, [
547
- r("span", aa, g(l(e)("order.submitOrderInstruction")), 1),
570
+ U(r("div", ua, [
571
+ r("span", ma, b(l(e)("order.submitOrderInstruction")), 1),
548
572
  s(u, {
549
573
  modelValue: a.value.takeaway.submitOrderInstruction.payAtCounter,
550
574
  "onUpdate:modelValue": t[13] || (t[13] = (n) => a.value.takeaway.submitOrderInstruction.payAtCounter = n),
@@ -558,12 +582,12 @@ const Oe = {
558
582
  placeholder: "Please wait as we prepare your food. We'll call your number when it's ready."
559
583
  }, null, 8, ["modelValue", "label"])
560
584
  ], 512), [
561
- [N, a.value.takeaway.enabled]
585
+ [R, a.value.takeaway.enabled]
562
586
  ])
563
587
  ]),
564
- r("div", la, [
565
- r("span", ta, g(l(e)("order.menuItem")), 1),
566
- s(b, {
588
+ r("div", pa, [
589
+ r("span", ca, b(l(e)("order.menuItem")), 1),
590
+ s(m, {
567
591
  modelValue: a.value.menuItem.showAllOnly,
568
592
  "onUpdate:modelValue": t[15] || (t[15] = (n) => a.value.menuItem.showAllOnly = n),
569
593
  label: l(e)("order.showNotAvailableMenuItem"),
@@ -571,92 +595,117 @@ const Oe = {
571
595
  class: "mb-5"
572
596
  }, null, 8, ["modelValue", "label"])
573
597
  ]),
574
- r("div", na, [
575
- r("span", oa, g(l(e)("order.coverImage")), 1),
576
- r("span", ra, g(l(e)("order.coverImageFallbackHint")), 1),
577
- r("div", sa, [
578
- r("span", da, g(l(e)("order.coverImageLandscape")), 1),
579
- r("span", ia, g(l(e)("order.coverImageLandscapeHint")), 1),
580
- U("coverImageLandscape") ? (R(), j("div", ua, [
598
+ r("div", ya, [
599
+ r("span", fa, b(l(e)("order.kioskLanguage")), 1),
600
+ r("span", va, b(l(e)("order.kioskLanguageHint")), 1),
601
+ r("div", ba, [
602
+ s(m, {
603
+ "model-value": V.value,
604
+ label: l(e)("order.kioskLanguageRestrict"),
605
+ sublabel: l(e)("order.kioskLanguageRestrictSublabel"),
606
+ "label-placement": "right",
607
+ "onUpdate:modelValue": G
608
+ }, null, 8, ["model-value", "label", "sublabel"]),
609
+ U(r("div", ga, [
610
+ (h(!0), L(Ie, null, Pe(l(A), (n) => (h(), H(N, {
611
+ key: n.code,
612
+ "model-value": W.value.includes(n.code),
613
+ value: n.code,
614
+ label: n.label,
615
+ "onUpdate:modelValue": (Q) => T(n.code, Q)
616
+ }, null, 8, ["model-value", "value", "label", "onUpdate:modelValue"]))), 128))
617
+ ], 512), [
618
+ [R, V.value]
619
+ ]),
620
+ V.value && W.value.length === 0 ? (h(), L("span", Ia, b(l(e)("order.kioskLanguageAtLeastOne")), 1)) : Z("", !0)
621
+ ])
622
+ ]),
623
+ r("div", Pa, [
624
+ r("span", Sa, b(l(e)("order.coverImage")), 1),
625
+ r("span", _a, b(l(e)("order.coverImageFallbackHint")), 1),
626
+ r("div", xa, [
627
+ r("span", ha, b(l(e)("order.coverImageLandscape")), 1),
628
+ r("span", wa, b(l(e)("order.coverImageLandscapeHint")), 1),
629
+ f("coverImageLandscape") ? (h(), L("div", Va, [
581
630
  r("img", {
582
- src: U("coverImageLandscape"),
631
+ src: f("coverImageLandscape"),
583
632
  alt: l(e)("order.coverImageLandscape"),
584
633
  class: "max-w-[400px] aspect-video object-cover rounded-md border border-fm-color-neutral-gray-200"
585
- }, null, 8, ma),
586
- s($, {
634
+ }, null, 8, ka),
635
+ s(D, {
587
636
  variant: "tertiary",
588
637
  class: "mr-auto",
589
638
  label: l(e)("common.delete"),
590
- onClick: t[18] || (t[18] = (n) => D("coverImageLandscape"))
639
+ onClick: t[18] || (t[18] = (n) => E("coverImageLandscape"))
591
640
  }, null, 8, ["label"])
592
- ])) : (R(), G(k, {
641
+ ])) : (h(), H(B, {
593
642
  key: 0,
594
643
  accept: "image/*",
595
- "max-file-size": oe,
644
+ "max-file-size": de,
596
645
  "content-class": "w-full max-w-[400px] aspect-video",
597
- onFileUpload: t[16] || (t[16] = (n) => Q("coverImageLandscape", n)),
598
- onFileRejected: t[17] || (t[17] = (n) => M("coverImageLandscape", n))
646
+ onFileUpload: t[16] || (t[16] = (n) => ee("coverImageLandscape", n)),
647
+ onFileRejected: t[17] || (t[17] = (n) => ae("coverImageLandscape", n))
599
648
  }))
600
649
  ]),
601
- r("div", pa, [
602
- r("span", ca, g(l(e)("order.coverImagePortrait")), 1),
603
- r("span", ya, g(l(e)("order.coverImagePortraitHint")), 1),
604
- U("coverImagePortrait") ? (R(), j("div", fa, [
650
+ r("div", Ta, [
651
+ r("span", Ca, b(l(e)("order.coverImagePortrait")), 1),
652
+ r("span", Aa, b(l(e)("order.coverImagePortraitHint")), 1),
653
+ f("coverImagePortrait") ? (h(), L("div", Ua, [
605
654
  r("img", {
606
- src: U("coverImagePortrait"),
655
+ src: f("coverImagePortrait"),
607
656
  alt: l(e)("order.coverImagePortrait"),
608
657
  class: "max-w-[200px] aspect-[9/16] object-cover rounded-md border border-fm-color-neutral-gray-200"
609
- }, null, 8, va),
610
- s($, {
658
+ }, null, 8, Ra),
659
+ s(D, {
611
660
  variant: "tertiary",
612
661
  class: "mr-auto",
613
662
  label: l(e)("common.delete"),
614
- onClick: t[21] || (t[21] = (n) => D("coverImagePortrait"))
663
+ onClick: t[21] || (t[21] = (n) => E("coverImagePortrait"))
615
664
  }, null, 8, ["label"])
616
- ])) : (R(), G(k, {
665
+ ])) : (h(), H(B, {
617
666
  key: 0,
618
667
  accept: "image/*",
619
- "max-file-size": oe,
668
+ "max-file-size": de,
620
669
  "content-class": "w-[240px] aspect-[9/16]",
621
- onFileUpload: t[19] || (t[19] = (n) => Q("coverImagePortrait", n)),
622
- onFileRejected: t[20] || (t[20] = (n) => M("coverImagePortrait", n))
670
+ onFileUpload: t[19] || (t[19] = (n) => ee("coverImagePortrait", n)),
671
+ onFileRejected: t[20] || (t[20] = (n) => ae("coverImagePortrait", n))
623
672
  }))
624
673
  ])
625
674
  ]),
626
- r("div", ba, [
627
- r("span", ga, g(l(e)("order.displayPaxDialogTitle")), 1),
628
- s(b, {
629
- modelValue: F.value,
630
- "onUpdate:modelValue": t[22] || (t[22] = (n) => F.value = n),
675
+ r("div", Fa, [
676
+ r("span", Ea, b(l(e)("order.displayPaxDialogTitle")), 1),
677
+ s(m, {
678
+ modelValue: le.value,
679
+ "onUpdate:modelValue": t[22] || (t[22] = (n) => le.value = n),
631
680
  label: l(e)("order.displayPaxDialogDescription"),
632
681
  "label-placement": "right",
633
682
  class: "mb-5"
634
683
  }, null, 8, ["modelValue", "label"])
635
684
  ]),
636
- ae("", !0),
637
- r("div", Ia, [
638
- s(he, {
685
+ Z("", !0),
686
+ r("div", Na, [
687
+ s(Ee, {
639
688
  "payment-types": a.value.paymentSetting.paymentTypes ?? [],
640
689
  "allow-credit": !0,
641
- "allow-e-payment": q.value,
690
+ "allow-e-payment": ye.value,
642
691
  "offline-payment-types": a.value.paymentSetting.offlinePaymentTypes ?? [],
643
692
  ePaymentTypes: a.value.paymentSetting.ePaymentTypes ?? {},
644
- "onUpdate:paymentTypes": K,
693
+ "onUpdate:paymentTypes": X,
645
694
  "onUpdate:offlinePaymentTypes": t[24] || (t[24] = (n) => a.value.paymentSetting.offlinePaymentTypes = n),
646
- "onUpdate:ePaymentTypes": c
695
+ "onUpdate:ePaymentTypes": j
647
696
  }, null, 8, ["payment-types", "allow-e-payment", "offline-payment-types", "ePaymentTypes"])
648
697
  ]),
649
- s($, {
698
+ s(D, {
650
699
  class: "w-1/4 mb-10",
651
700
  variant: "primary",
652
701
  label: l(e)("order.updateSetting"),
653
- disabled: !O.value,
654
- onClick: f
702
+ disabled: !F.value,
703
+ onClick: fe
655
704
  }, null, 8, ["label", "disabled"])
656
- ])) : (R(), j("div", Pa, g(l(e)("order.pleaseSelectRestaurant")), 1));
705
+ ])) : (h(), L("div", La, b(l(e)("order.pleaseSelectRestaurant")), 1));
657
706
  };
658
707
  }
659
708
  });
660
709
  export {
661
- Ta as default
710
+ ja as default
662
711
  };