@feedmepos/mf-order-setting 0.0.74-dev → 0.0.75-dev.20260721T080807Z.29812992895

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 (67) hide show
  1. package/dist/{KioskDevicesView-CW7nDXi2.js → KioskDevicesView-CqyTDI1x.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CPDkls2i.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DZkir0K_.js} +32 -32
  3. package/dist/{KioskSettingView-DErXeFIt.js → KioskSettingView-DyCVWm7r.js} +188 -190
  4. package/dist/KioskView-DYtrx8Qe.js +420 -0
  5. package/dist/{OrderSettingsView-asfw4cYT.js → OrderSettingsView-DkxKkzbt.js} +10353 -10414
  6. package/dist/{app-DrWO2wkv.js → app-11No87EZ.js} +1363 -1352
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-Fu6ejRAr.js → dayjs.min-D_adqybn.js} +12 -12
  9. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +3 -3
  10. package/dist/frontend/mf-order/src/version.d.ts +7 -0
  11. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +4 -2
  12. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSetting.vue.d.ts +0 -17
  13. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  14. package/dist/{index-DJLCZHNZ.js → index-JbCnNX9Q.js} +2 -2
  15. package/dist/index-x8Mu3VDv.js +23 -0
  16. package/dist/{lineman-settings.dto-DS4tgxBJ.js → lineman-settings.dto-C8boe82Z.js} +22163 -20754
  17. package/dist/package/entity/delivery/gateway/pandago.dto.d.ts +6 -6
  18. package/dist/package/entity/food-court/order.do.d.ts +24 -4
  19. package/dist/package/entity/food-court/order.dto.d.ts +2675 -2675
  20. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +14332 -1
  21. package/dist/package/entity/member/member.dto.d.ts +799 -0
  22. package/dist/package/entity/order/order.do.d.ts +6763 -1
  23. package/dist/package/entity/order/order.dto.d.ts +12596 -1599
  24. package/dist/package/entity/order/payment/payment.dto.d.ts +191 -191
  25. package/dist/package/entity/order/queue-transfer.dto.d.ts +33 -9
  26. package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +12 -12
  27. package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +4 -1
  28. package/dist/package/entity/order-platform/external/menu/external-menu.dto.d.ts +3 -3
  29. package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +11 -8
  30. package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +32 -19
  31. package/dist/package/entity/order-platform/external/order/external-order.enum.d.ts +1 -1
  32. package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +16 -3
  33. package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +8 -3
  34. package/dist/package/entity/order-platform/order-platform.dto.d.ts +2 -2
  35. package/dist/package/entity/order-platform/order-platform.enum.d.ts +1 -1
  36. package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -3
  37. package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +2 -2
  38. package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -5
  39. package/dist/package/entity/order-setting/order-setting.dto.d.ts +8 -8
  40. package/dist/package/entity/payment/payment.dto.d.ts +3 -3
  41. package/dist/package/entity/payment/transaction.d.ts +63 -63
  42. package/dist/package/entity/queue/queue.dto.d.ts +160 -160
  43. package/dist/package/entity/restaurant/restaurant.dto.d.ts +91 -91
  44. package/dist/package/entity/websocket/websocket.dto.d.ts +10 -10
  45. package/dist/style.css +1 -1
  46. package/env.d.ts +3 -0
  47. package/package.json +1 -1
  48. package/src/app.ts +4 -0
  49. package/src/main.ts +3 -0
  50. package/src/modules/order-setting/kiosk/interface.ts +1 -1
  51. package/src/stores/order-setting/mapper.ts +94 -94
  52. package/src/version.ts +21 -0
  53. package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +1 -19
  54. package/src/views/order-settings/delivery/DeliverySetting.vue +21 -3
  55. package/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue +2 -1
  56. package/src/views/order-settings/dine-in/DineInSetting.vue +1 -1
  57. package/src/views/order-settings/drive-thru/DriveThruSetting.vue +4 -4
  58. package/src/views/order-settings/pickup/PickUpSetting.vue +131 -191
  59. package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +1 -8
  60. package/src/views/order-settings/servicecharge/ServiceChargeRule.vue +5 -1
  61. package/vite.config.ts +10 -0
  62. package/dist/KioskView-d1YjttbD.js +0 -362
  63. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialog.vue.d.ts +0 -16
  64. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickupList.vue.d.ts +0 -16
  65. package/dist/index-DEKeP24S.js +0 -86
  66. package/src/views/order-settings/pickup/PickUpSettingDialog.vue +0 -118
  67. package/src/views/order-settings/pickup/PickupList.vue +0 -49
@@ -1,10 +1,10 @@
1
- import { defineComponent as oe, computed as k, ref as Y, onMounted as me, resolveComponent as x, openBlock as R, createBlock as G, withCtx as C, createVNode as s, unref as l, createElementVNode as r, withDirectives as E, vShow as N, watch as pe, createElementBlock as q, toDisplayString as g, createCommentVNode as ce } from "vue";
2
- import { e as ae, b as re, s as se, d as ye, r as le, f as te, h as fe } from "./app-DrWO2wkv.js";
3
- import { b as i, c as ve } from "./lineman-settings.dto-DS4tgxBJ.js";
4
- import { _ as be, u as ge, a as Pe } from "./index-DJLCZHNZ.js";
5
- import { useI18n as de, FeedMeAuth as ie, useCoreStore as Ie } from "@feedmepos/mf-common";
1
+ import { defineComponent as oe, computed as A, ref as L, onMounted as me, resolveComponent as w, openBlock as R, createBlock as G, withCtx as k, createVNode as s, unref as l, createElementVNode as r, withDirectives as E, vShow as N, watch as pe, createElementBlock as j, toDisplayString as g, createCommentVNode as ce } from "vue";
2
+ import { e as ae, b as re, s as se, d as ye, r as le, f as te, h as fe } from "./app-11No87EZ.js";
3
+ import { b as m, c as ve } from "./lineman-settings.dto-C8boe82Z.js";
4
+ import { _ as be, u as ge, a as Ie } from "./index-JbCnNX9Q.js";
5
+ import { useI18n as de, FeedMeAuth as ie, useCoreStore as Pe } from "@feedmepos/mf-common";
6
6
  import { useSnackbar as Se } from "@feedmepos/ui-library";
7
- const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-row gap-9" }, Ve = /* @__PURE__ */ oe({
7
+ const xe = { class: "ml-7" }, we = { class: "ml-7" }, _e = { class: "flex flex-row gap-9" }, Ve = /* @__PURE__ */ oe({
8
8
  __name: "KioskPaymentTypeSection",
9
9
  props: {
10
10
  paymentTypes: {
@@ -29,12 +29,12 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
29
29
  }
30
30
  },
31
31
  emits: ["update:paymentTypes", "update:offlinePaymentTypes", "update:ePaymentTypes"],
32
- setup(u, { emit: c }) {
33
- const { t: e } = de(), f = u, w = c, I = k(() => (f.paymentTypes || []).includes(ae.F_ORDER_PAYMENT_TYPE.enum.ePayment)), P = Y(), m = Y([]), a = Y(!1), T = Y(!1), V = Y(!1), j = () => {
34
- Object.keys(f.ePaymentTypes).length !== 0 && (f.ePaymentTypes.terminal && (T.value = !0), f.ePaymentTypes.card.terminal ? (P.value = i.enum.TERMINAL, a.value = !0) : f.ePaymentTypes.card.nfc && (P.value = i.enum.NFC, a.value = !0), f.ePaymentTypes.eWallet.qrPay && (m.value.push(i.enum.QRPAY), V.value = !0), f.ePaymentTypes.eWallet.scanPay && (m.value.push(i.enum.SCANPAY), V.value = !0), f.ePaymentTypes.eWallet.terminalScanPay && (m.value.push(i.enum.TERMINAL_SCAN_PAY), V.value = !0), f.ePaymentTypes.eWallet.terminalQrPay && (m.value.push(i.enum.TERMINAL_QR_PAY), V.value = !0));
32
+ setup(i, { emit: p }) {
33
+ const { t: e } = de(), v = i, _ = p, P = A(() => (v.paymentTypes || []).includes(ae.F_ORDER_PAYMENT_TYPE.enum.ePayment)), I = L(), y = L([]), a = L(!1), V = L(!1), T = 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), T.value = !0), v.ePaymentTypes.eWallet.scanPay && (y.value.push(m.enum.SCANPAY), T.value = !0));
35
35
  };
36
- j();
37
- const H = (y) => {
36
+ B();
37
+ const H = (c) => {
38
38
  const d = {
39
39
  terminal: !1,
40
40
  card: {
@@ -43,14 +43,12 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
43
43
  },
44
44
  eWallet: {
45
45
  qrPay: !1,
46
- scanPay: !1,
47
- terminalScanPay: !1,
48
- terminalQrPay: !1
46
+ scanPay: !1
49
47
  }
50
48
  };
51
- I.value && (y == i.enum.TERMINAL && (d.card.terminal = !0), y == i.enum.NFC && (d.card.nfc = !0), m.value.length > 0 && (m.value.includes(i.enum.QRPAY) && (d.eWallet.qrPay = !0), m.value.includes(i.enum.SCANPAY) && (d.eWallet.scanPay = !0), m.value.includes(i.enum.TERMINAL_SCAN_PAY) && (d.eWallet.terminalScanPay = !0), m.value.includes(i.enum.TERMINAL_QR_PAY) && (d.eWallet.terminalQrPay = !0))), T.value && (d.terminal = !0), w("update:ePaymentTypes", d);
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);
52
50
  }, h = () => {
53
- const y = {
51
+ const c = {
54
52
  terminal: !1,
55
53
  card: {
56
54
  terminal: !1,
@@ -63,62 +61,62 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
63
61
  terminalQrPay: !1
64
62
  }
65
63
  };
66
- I.value && (P.value && (P.value === i.enum.TERMINAL && (y.card.terminal = !0), P.value === i.enum.NFC && (y.card.nfc = !0)), T.value && (y.terminal = !0), m.value.includes(i.enum.QRPAY) && (y.eWallet.qrPay = !0), m.value.includes(i.enum.SCANPAY) && (y.eWallet.scanPay = !0), m.value.includes(i.enum.TERMINAL_SCAN_PAY) && (y.eWallet.terminalScanPay = !0), m.value.includes(i.enum.TERMINAL_QR_PAY) && (y.eWallet.terminalQrPay = !0)), w("update:ePaymentTypes", y);
67
- }, M = (y) => {
68
- P.value = "", y && (P.value = i.enum.TERMINAL), h();
69
- }, $ = (y) => {
70
- m.value = [], y && (m.value = [
71
- i.enum.QRPAY,
72
- i.enum.SCANPAY
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
73
71
  ]), h();
74
- }, K = (y) => {
75
- w("update:paymentTypes", y), y.includes(ae.F_ORDER_PAYMENT_TYPE.enum.ePayment) || (a.value = !1, V.value = !1, M(!1), $(!1));
72
+ }, K = (c) => {
73
+ _("update:paymentTypes", c), c.includes(ae.F_ORDER_PAYMENT_TYPE.enum.ePayment) || (a.value = !1, T.value = !1, O(!1), Y(!1));
76
74
  };
77
75
  return me(() => {
78
- j();
79
- }), (y, d) => {
80
- const O = x("FmSwitch"), U = x("FmRadio"), B = x("FmRadioGroup"), D = x("FmCardSection"), Q = x("FmCard"), F = x("FmCheckbox");
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");
81
79
  return R(), G(be, {
82
- "payment-types": u.paymentTypes,
83
- "offline-payment-types": u.offlinePaymentTypes,
84
- "allow-e-payment": f.allowEPayment,
85
- "allow-credit": f.allowCredit,
80
+ "payment-types": i.paymentTypes,
81
+ "offline-payment-types": i.offlinePaymentTypes,
82
+ "allow-e-payment": v.allowEPayment,
83
+ "allow-credit": v.allowCredit,
86
84
  "onUpdate:paymentTypes": K,
87
- "onUpdate:offlinePaymentTypes": d[8] || (d[8] = (v) => w("update:offlinePaymentTypes", v || []))
85
+ "onUpdate:offlinePaymentTypes": d[8] || (d[8] = (f) => _("update:offlinePaymentTypes", f || []))
88
86
  }, {
89
- "e-payment-content": C(() => [
90
- s(Q, { variant: "outlined" }, {
91
- default: C(() => [
92
- s(D, null, {
93
- default: C(() => [
94
- s(O, {
87
+ "e-payment-content": k(() => [
88
+ s(q, { variant: "outlined" }, {
89
+ default: k(() => [
90
+ s(M, null, {
91
+ default: k(() => [
92
+ s(D, {
95
93
  label: l(e)("order.bankCard"),
96
94
  sublabel: l(e)("order.cardPaymentDescription"),
97
95
  "label-placement": "right",
98
96
  modelValue: a.value,
99
97
  "onUpdate:modelValue": [
100
- d[0] || (d[0] = (v) => a.value = v),
101
- M
98
+ d[0] || (d[0] = (f) => a.value = f),
99
+ O
102
100
  ]
103
101
  }, null, 8, ["label", "sublabel", "modelValue"]),
104
102
  d[9] || (d[9] = r("br", null, null, -1)),
105
- E(r("div", _e, [
106
- s(B, {
107
- modelValue: P.value,
103
+ E(r("div", xe, [
104
+ s(Q, {
105
+ modelValue: I.value,
108
106
  "onUpdate:modelValue": [
109
- d[1] || (d[1] = (v) => P.value = v),
107
+ d[1] || (d[1] = (f) => I.value = f),
110
108
  H
111
109
  ],
112
110
  inline: ""
113
111
  }, {
114
- default: C(() => [
112
+ default: k(() => [
115
113
  s(U, {
116
114
  label: l(e)("order.terminal"),
117
- value: l(i).enum.TERMINAL
115
+ value: l(m).enum.TERMINAL
118
116
  }, null, 8, ["label", "value"]),
119
117
  s(U, {
120
118
  label: l(e)("order.nfc"),
121
- value: l(i).enum.NFC
119
+ value: l(m).enum.NFC
122
120
  }, null, 8, ["label", "value"])
123
121
  ]),
124
122
  _: 1
@@ -132,20 +130,20 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
132
130
  ]),
133
131
  _: 1
134
132
  }),
135
- s(Q, {
133
+ s(q, {
136
134
  variant: "outlined",
137
135
  class: "mt-2"
138
136
  }, {
139
- default: C(() => [
140
- s(D, null, {
141
- default: C(() => [
142
- s(O, {
137
+ default: k(() => [
138
+ s(M, null, {
139
+ default: k(() => [
140
+ s(D, {
143
141
  label: l(e)("order.terminal"),
144
142
  sublabel: l(e)("order.terminalPaymentDescription"),
145
143
  "label-placement": "right",
146
- modelValue: T.value,
144
+ modelValue: V.value,
147
145
  "onUpdate:modelValue": [
148
- d[2] || (d[2] = (v) => T.value = v),
146
+ d[2] || (d[2] = (f) => V.value = f),
149
147
  h
150
148
  ]
151
149
  }, null, 8, ["label", "sublabel", "modelValue"])
@@ -155,65 +153,65 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
155
153
  ]),
156
154
  _: 1
157
155
  }),
158
- s(Q, {
156
+ s(q, {
159
157
  variant: "outlined",
160
158
  class: "mt-2"
161
159
  }, {
162
- default: C(() => [
163
- s(D, null, {
164
- default: C(() => [
165
- s(O, {
160
+ default: k(() => [
161
+ s(M, null, {
162
+ default: k(() => [
163
+ s(D, {
166
164
  label: l(e)("order.eWallet"),
167
165
  sublabel: l(e)("order.eWalletDescription"),
168
166
  "label-placement": "right",
169
- modelValue: V.value,
167
+ modelValue: T.value,
170
168
  "onUpdate:modelValue": [
171
- d[3] || (d[3] = (v) => V.value = v),
172
- $
169
+ d[3] || (d[3] = (f) => T.value = f),
170
+ Y
173
171
  ]
174
172
  }, null, 8, ["label", "sublabel", "modelValue"]),
175
173
  d[10] || (d[10] = r("br", null, null, -1)),
176
- E(r("div", xe, [
177
- r("div", we, [
174
+ E(r("div", we, [
175
+ r("div", _e, [
178
176
  s(F, {
179
- modelValue: m.value,
177
+ modelValue: y.value,
180
178
  "onUpdate:modelValue": [
181
- d[4] || (d[4] = (v) => m.value = v),
179
+ d[4] || (d[4] = (f) => y.value = f),
182
180
  h
183
181
  ],
184
182
  label: l(e)("order.qrPay"),
185
- value: l(i).enum.QRPAY
183
+ value: l(m).enum.QRPAY
186
184
  }, null, 8, ["modelValue", "label", "value"]),
187
185
  s(F, {
188
- modelValue: m.value,
186
+ modelValue: y.value,
189
187
  "onUpdate:modelValue": [
190
- d[5] || (d[5] = (v) => m.value = v),
188
+ d[5] || (d[5] = (f) => y.value = f),
191
189
  h
192
190
  ],
193
191
  label: l(e)("order.scanPay"),
194
- value: l(i).enum.SCANPAY
192
+ value: l(m).enum.SCANPAY
195
193
  }, null, 8, ["modelValue", "label", "value"]),
196
194
  s(F, {
197
- modelValue: m.value,
195
+ modelValue: y.value,
198
196
  "onUpdate:modelValue": [
199
- d[6] || (d[6] = (v) => m.value = v),
197
+ d[6] || (d[6] = (f) => y.value = f),
200
198
  h
201
199
  ],
202
200
  label: l(e)("order.terminalScanPay"),
203
- value: l(i).enum.TERMINAL_SCAN_PAY
201
+ value: l(m).enum.TERMINAL_SCAN_PAY
204
202
  }, null, 8, ["modelValue", "label", "value"]),
205
203
  s(F, {
206
- modelValue: m.value,
204
+ modelValue: y.value,
207
205
  "onUpdate:modelValue": [
208
- d[7] || (d[7] = (v) => m.value = v),
206
+ d[7] || (d[7] = (f) => y.value = f),
209
207
  h
210
208
  ],
211
209
  label: l(e)("order.terminalQrPay"),
212
- value: l(i).enum.TERMINAL_QR_PAY
210
+ value: l(m).enum.TERMINAL_QR_PAY
213
211
  }, null, 8, ["modelValue", "label", "value"])
214
212
  ])
215
213
  ], 512), [
216
- [N, V.value]
214
+ [N, T.value]
217
215
  ])
218
216
  ]),
219
217
  _: 1
@@ -227,100 +225,100 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
227
225
  };
228
226
  }
229
227
  });
230
- var Te = { firebase: {} }, he = {};
228
+ var he = { firebase: {} }, Te = {};
231
229
  let z = null;
232
- function Ae(u) {
233
- var f;
234
- const c = (f = u.name.split(".").pop()) == null ? void 0 : f.toLowerCase();
235
- return c && /^[a-z0-9]+$/.test(c) ? c : {
230
+ function Ce(i) {
231
+ var v;
232
+ const p = (v = i.name.split(".").pop()) == null ? void 0 : v.toLowerCase();
233
+ return p && /^[a-z0-9]+$/.test(p) ? p : {
236
234
  "image/jpeg": "jpg",
237
235
  "image/png": "png",
238
236
  "image/webp": "webp",
239
237
  "image/gif": "gif"
240
- }[u.type] ?? "bin";
238
+ }[i.type] ?? "bin";
241
239
  }
242
- function Ce() {
240
+ function ke() {
243
241
  var e;
244
- return (((e = he.firebase) == null ? void 0 : e.storageBucket) ?? Te.firebase.storageBucket ?? "image.feedmedev.cc").replace(/^https?:\/\//, "").replace(/\/+$/, "");
242
+ return (((e = Te.firebase) == null ? void 0 : e.storageBucket) ?? he.firebase.storageBucket ?? "image.feedmedev.cc").replace(/^https?:\/\//, "").replace(/\/+$/, "");
245
243
  }
246
- function ke(u) {
247
- const c = u.replace(/^\/+/, "");
248
- return `https://${Ce()}/${c}`;
244
+ function Ae(i) {
245
+ const p = i.replace(/^\/+/, "");
246
+ return `https://${ke()}/${p}`;
249
247
  }
250
248
  async function Re() {
251
- const u = re();
252
- if (!u.currentUser && (await u.authStateReady(), !u.currentUser && (z || (z = (async () => {
253
- const c = await ie.getCustomToken();
254
- await se(u, c);
249
+ const i = re();
250
+ if (!i.currentUser && (await i.authStateReady(), !i.currentUser && (z || (z = (async () => {
251
+ const p = await ie.getCustomToken();
252
+ await se(i, p);
255
253
  })().finally(() => {
256
254
  z = null;
257
- })), await z, !u.currentUser)))
255
+ })), await z, !i.currentUser)))
258
256
  throw new Error("User not authenticated for image upload");
259
257
  }
260
258
  async function Ue() {
261
- const u = re();
262
- u.currentUser && await fe(u);
263
- const c = await ie.getCustomToken();
264
- await se(u, c);
259
+ const i = re();
260
+ i.currentUser && await fe(i);
261
+ const p = await ie.getCustomToken();
262
+ await se(i, p);
265
263
  }
266
- async function Fe(u, c) {
267
- const e = ye(), f = le(e, u);
264
+ async function Fe(i, p) {
265
+ const e = ye(), v = le(e, i);
268
266
  try {
269
- await te(f, c, {
270
- contentType: c.type || void 0
267
+ await te(v, p, {
268
+ contentType: p.type || void 0
271
269
  });
272
270
  return;
273
- } catch (I) {
274
- if ((I == null ? void 0 : I.code) !== "storage/unauthorized")
275
- throw I;
271
+ } catch (P) {
272
+ if ((P == null ? void 0 : P.code) !== "storage/unauthorized")
273
+ throw P;
276
274
  }
277
275
  await Ue();
278
- const w = le(e, u);
279
- await te(w, c, {
280
- contentType: c.type || void 0
276
+ const _ = le(e, i);
277
+ await te(_, p, {
278
+ contentType: p.type || void 0
281
279
  });
282
280
  }
283
- async function Ee(u, c) {
281
+ async function Ee(i, p) {
284
282
  await Re();
285
- const e = u.replace(/^\/+/, "").replace(/\/+$/, ""), f = Ae(c), w = `${Date.now()}_${Math.random().toString(36).slice(2, 10)}.${f}`, I = `${e}/${w}`;
286
- return await Fe(I, c), ke(I);
283
+ const e = i.replace(/^\/+/, "").replace(/\/+$/, ""), v = Ce(p), _ = `${Date.now()}_${Math.random().toString(36).slice(2, 10)}.${v}`, P = `${e}/${_}`;
284
+ return await Fe(P, p), Ae(P);
287
285
  }
288
286
  const Ne = {
289
287
  key: 0,
290
288
  class: "flex flex-col gap-32"
291
- }, Me = {
289
+ }, Oe = {
292
290
  key: 0,
293
291
  class: "flex flex-col gap-2"
294
- }, Oe = { class: "fm-typo-en-title-sm-600" }, De = { 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" }, $e = { class: "flex flex-col gap-5" }, Qe = { class: "flex flex-col gap-16" }, qe = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, je = { class: "fm-typo-en-title-sm-600" }, Be = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, ze = { class: "fm-typo-en-title-sm-600" }, He = { class: "flex flex-row gap-2" }, Ke = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, Ge = { class: "fm-typo-en-title-sm-600" }, Xe = { class: "flex flex-col gap-2" }, Ze = { class: "fm-typo-en-title-sm-600" }, Je = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, ea = { class: "fm-typo-en-title-sm-600" }, aa = { class: "flex flex-col gap-2" }, la = { class: "fm-typo-en-title-sm-600" }, ta = { class: "flex flex-col gap-2" }, na = { class: "fm-typo-en-title-sm-600" }, oa = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ra = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, sa = { class: "fm-typo-en-body-md-600" }, da = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ia = {
292
+ }, De = { class: "fm-typo-en-title-sm-600" }, Me = { 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" }, $e = { class: "flex flex-col gap-2" }, Le = { class: "fm-typo-en-title-sm-600" }, Ye = { class: "flex flex-col gap-5" }, qe = { class: "flex flex-col gap-16" }, je = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, Be = { class: "fm-typo-en-title-sm-600" }, Qe = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, ze = { class: "fm-typo-en-title-sm-600" }, He = { class: "flex flex-row gap-2" }, Ke = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, Ge = { class: "fm-typo-en-title-sm-600" }, Xe = { class: "flex flex-col gap-2" }, Ze = { class: "fm-typo-en-title-sm-600" }, Je = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, ea = { class: "fm-typo-en-title-sm-600" }, aa = { class: "flex flex-col gap-2" }, la = { class: "fm-typo-en-title-sm-600" }, ta = { class: "flex flex-col gap-2" }, na = { class: "fm-typo-en-title-sm-600" }, oa = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ra = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, sa = { class: "fm-typo-en-body-md-600" }, da = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ia = {
295
293
  key: 1,
296
294
  class: "flex flex-col gap-2"
297
295
  }, ua = ["src", "alt"], ma = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, pa = { class: "fm-typo-en-body-md-600" }, ca = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ya = {
298
296
  key: 1,
299
297
  class: "flex flex-col gap-2"
300
- }, fa = ["src", "alt"], va = { class: "flex flex-col gap-2" }, ba = { class: "fm-typo-en-title-sm-600" }, ga = { class: "flex flex-col gap-2" }, Pa = { key: 1 }, ne = 10 * 1e3 * 1e3, Ta = /* @__PURE__ */ oe({
298
+ }, fa = ["src", "alt"], va = { class: "flex flex-col gap-2" }, ba = { class: "fm-typo-en-title-sm-600" }, ga = { class: "flex flex-col gap-2" }, Ia = { key: 1 }, ne = 10 * 1e3 * 1e3, ha = /* @__PURE__ */ oe({
301
299
  __name: "KioskSettingView",
302
300
  props: {
303
301
  restaurantId: {},
304
302
  form: {}
305
303
  },
306
304
  emits: ["updateKioskOrderSetting"],
307
- setup(u, { emit: c }) {
308
- const { t: e } = de(), f = Ie(), w = k(() => {
305
+ setup(i, { emit: p }) {
306
+ const { t: e } = de(), v = Pe(), _ = A(() => {
309
307
  var o;
310
- return ((o = f.sessionUser.value) == null ? void 0 : o.role.isAdmin) ?? !1;
311
- }), I = u, P = Se(), m = c, a = Y(I.form), T = (o) => o < 0 ? e("order.nonNegativeRule") : !0, V = (o) => o <= (a.value.dineIn.displayStand.standSlotRange.min ?? 0) ? e("order.greaterThanMinRule") : !0, j = k(() => [T]), H = k(() => [T]), h = k(() => [T, V]), M = k(() => {
312
- var b, S, A, W, n, X, Z, J;
308
+ return ((o = v.sessionUser.value) == null ? void 0 : o.role.isAdmin) ?? !1;
309
+ }), P = i, I = Se(), y = p, a = L(P.form), V = (o) => o < 0 ? e("order.nonNegativeRule") : !0, T = (o) => o <= (a.value.dineIn.displayStand.standSlotRange.min ?? 0) ? e("order.greaterThanMinRule") : !0, B = A(() => [V]), H = A(() => [V]), h = A(() => [V, T]), O = A(() => {
310
+ var b, S, C, W, n, X, Z, J;
313
311
  const o = a.value, t = (b = o.otaChannel) == null ? void 0 : b.trim();
314
312
  if (o.dineIn.enabled && o.dineIn.displayStand.enabled) {
315
- const { padDigit: _, standSlotRange: L } = o.dineIn.displayStand;
316
- if (!(_ != null && _ >= 0 && L.min != null && L.max != null && L.min <= L.max)) return null;
313
+ const { padDigit: x, standSlotRange: $ } = o.dineIn.displayStand;
314
+ if (!(x != null && x >= 0 && $.min != null && $.max != null && $.min <= $.max)) return null;
317
315
  }
318
- const p = o.paymentSetting;
319
- if ((S = p == null ? void 0 : p.paymentTypes) != null && S.includes(ve.enum.ePayment)) {
320
- const _ = p.ePaymentTypes;
321
- if (!_) return null;
322
- const L = ((A = _.card) == null ? void 0 : A.terminal) || ((W = _.card) == null ? void 0 : W.nfc), ee = ((n = _.eWallet) == null ? void 0 : n.qrPay) || ((X = _.eWallet) == null ? void 0 : X.scanPay) || ((Z = _.eWallet) == null ? void 0 : Z.terminalScanPay) || ((J = _.eWallet) == null ? void 0 : J.terminalQrPay), ue = _.terminal;
323
- if (!L && !ee && !ue) return null;
316
+ const u = o.paymentSetting;
317
+ if ((S = u == null ? void 0 : u.paymentTypes) != null && S.includes(ve.enum.ePayment)) {
318
+ const x = u.ePaymentTypes;
319
+ if (!x) return null;
320
+ const $ = ((C = x.card) == null ? void 0 : C.terminal) || ((W = x.card) == null ? void 0 : W.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), ue = x.terminal;
321
+ if (!$ && !ee && !ue) return null;
324
322
  }
325
323
  return {
326
324
  ...o,
@@ -339,49 +337,49 @@ const Ne = {
339
337
  }
340
338
  }
341
339
  };
342
- }), { startAsyncCall: $ } = ge();
340
+ }), { startAsyncCall: Y } = ge();
343
341
  function K(o) {
344
342
  a.value.paymentSetting.paymentTypes = o;
345
343
  }
346
- function y(o) {
344
+ function c(o) {
347
345
  a.value.paymentSetting.ePaymentTypes = o;
348
346
  }
349
- const d = Pe();
350
- function O(o) {
347
+ const d = Ie();
348
+ function D(o) {
351
349
  a.value[o] = null;
352
350
  }
353
351
  function U(o) {
354
352
  const t = a.value[o];
355
353
  if (!t) return null;
356
- const p = t.trim();
357
- return p.length > 0 ? p : null;
354
+ const u = t.trim();
355
+ return u.length > 0 ? u : null;
358
356
  }
359
- async function B(o, t) {
357
+ async function Q(o, t) {
360
358
  try {
361
- const p = await $(async () => {
362
- const b = `/restaurant/${I.restaurantId}/kiosk/${o}`;
359
+ const u = await Y(async () => {
360
+ const b = `/restaurant/${P.restaurantId}/kiosk/${o}`;
363
361
  return await Ee(b, t);
364
362
  });
365
- a.value[o] = p, P.open({
363
+ a.value[o] = u, I.open({
366
364
  title: e("order.imageUploadSuccess"),
367
365
  type: "success"
368
366
  });
369
- } catch (p) {
370
- console.error(p), P.open({
367
+ } catch (u) {
368
+ console.error(u), I.open({
371
369
  title: e("order.imageUploadFailed"),
372
370
  type: "error"
373
371
  });
374
372
  }
375
373
  }
376
- function D(o, t) {
377
- var S, A;
378
- const p = e(o === "coverImageLandscape" ? "order.coverImageLandscape" : "order.coverImagePortrait"), b = (A = (S = t[0]) == null ? void 0 : S.reason) == null ? void 0 : A[0];
379
- P.open({
380
- title: b ? `${e("order.imageUploadRejected")}: ${p} (${b})` : `${e("order.imageUploadRejected")}: ${p}`,
374
+ function M(o, t) {
375
+ var S, C;
376
+ const u = e(o === "coverImageLandscape" ? "order.coverImageLandscape" : "order.coverImagePortrait"), b = (C = (S = t[0]) == null ? void 0 : S.reason) == null ? void 0 : C[0];
377
+ I.open({
378
+ title: b ? `${e("order.imageUploadRejected")}: ${u} (${b})` : `${e("order.imageUploadRejected")}: ${u}`,
381
379
  type: "error"
382
380
  });
383
381
  }
384
- const Q = k(() => d.getRestaurantEPayment()), F = k({
382
+ const q = A(() => d.getRestaurantEPayment()), F = A({
385
383
  get: () => (a.value.dineIn.displayStand.enabled && a.value.dineIn.displayStand.enablePaxDialog || a.value.dineIn.pickUp.enablePaxDialog) ?? !1,
386
384
  set: (o) => {
387
385
  a.value.dineIn.displayStand.enablePaxDialog = o, a.value.dineIn.pickUp.enablePaxDialog = o;
@@ -393,34 +391,34 @@ const Ne = {
393
391
  a.value.dineIn.pickUp.enabled,
394
392
  a.value.dineIn.displayStand.enabled
395
393
  ],
396
- ([o, t, p], b) => {
394
+ ([o, t, u], b) => {
397
395
  const S = (b == null ? void 0 : b[0]) ?? !1;
398
- o && !t && !p && (a.value.dineIn.pickUp.enabled = !0, S || P.open({
396
+ o && !t && !u && (a.value.dineIn.pickUp.enabled = !0, S || I.open({
399
397
  title: e("order.dineInModeAutoCorrected"),
400
398
  type: "info"
401
399
  }));
402
400
  },
403
401
  { immediate: !0 }
404
402
  );
405
- async function v() {
406
- if (M.value) {
407
- const o = M.value;
408
- $(async () => {
409
- await m("updateKioskOrderSetting", o);
403
+ async function f() {
404
+ if (O.value) {
405
+ const o = O.value;
406
+ Y(async () => {
407
+ await y("updateKioskOrderSetting", o);
410
408
  });
411
409
  } else
412
- P.open({
410
+ I.open({
413
411
  title: e("order.failedToUpdateSetting"),
414
412
  type: "error"
415
413
  });
416
414
  }
417
415
  return (o, t) => {
418
- const p = x("FmTextField"), b = x("FmSwitch"), S = x("FmStepperField"), A = x("FmDropField"), W = x("FmButton");
419
- return a.value ? (R(), q("div", Ne, [
420
- w.value ? (R(), q("div", Me, [
421
- r("span", Oe, g(l(e)("order.otaChannel")), 1),
422
- r("div", De, [
423
- s(p, {
416
+ const u = w("FmTextField"), b = w("FmSwitch"), S = w("FmStepperField"), C = w("FmDropField"), W = w("FmButton");
417
+ return a.value ? (R(), j("div", Ne, [
418
+ _.value ? (R(), j("div", Oe, [
419
+ r("span", De, g(l(e)("order.otaChannel")), 1),
420
+ r("div", Me, [
421
+ s(u, {
424
422
  modelValue: a.value.otaChannel,
425
423
  "onUpdate:modelValue": t[0] || (t[0] = (n) => a.value.otaChannel = n),
426
424
  label: l(e)("order.otaChannel"),
@@ -429,16 +427,16 @@ const Ne = {
429
427
  r("span", We, g(l(e)("order.otaChannelHint")), 1)
430
428
  ])
431
429
  ])) : ce("", !0),
432
- r("div", Le, [
433
- r("span", Ye, g(l(e)("order.dineIn")), 1),
434
- r("div", $e, [
430
+ r("div", $e, [
431
+ r("span", Le, g(l(e)("order.dineIn")), 1),
432
+ r("div", Ye, [
435
433
  s(b, {
436
434
  modelValue: a.value.dineIn.enabled,
437
435
  "onUpdate:modelValue": t[1] || (t[1] = (n) => a.value.dineIn.enabled = n),
438
436
  label: l(e)("order.dineIn"),
439
437
  "label-placement": "right"
440
438
  }, null, 8, ["modelValue", "label"]),
441
- E(r("div", Qe, [
439
+ E(r("div", qe, [
442
440
  r("div", null, [
443
441
  s(b, {
444
442
  modelValue: a.value.dineIn.pickUp.enabled,
@@ -446,15 +444,15 @@ const Ne = {
446
444
  label: l(e)("order.pickAtCounter"),
447
445
  "label-placement": "right"
448
446
  }, null, 8, ["modelValue", "label"]),
449
- E(r("div", qe, [
450
- r("span", je, g(l(e)("order.submitOrderInstruction")), 1),
451
- s(p, {
447
+ E(r("div", je, [
448
+ r("span", Be, g(l(e)("order.submitOrderInstruction")), 1),
449
+ s(u, {
452
450
  modelValue: a.value.dineIn.pickUp.submitOrderInstruction.payAtCounter,
453
451
  "onUpdate:modelValue": t[3] || (t[3] = (n) => a.value.dineIn.pickUp.submitOrderInstruction.payAtCounter = n),
454
452
  label: l(e)("order.payAtCounter"),
455
453
  placeholder: "Collect your transaction slip below and present it to the cashier"
456
454
  }, null, 8, ["modelValue", "label"]),
457
- s(p, {
455
+ s(u, {
458
456
  modelValue: a.value.dineIn.pickUp.submitOrderInstruction.paid,
459
457
  "onUpdate:modelValue": t[4] || (t[4] = (n) => a.value.dineIn.pickUp.submitOrderInstruction.paid = n),
460
458
  label: l(e)("order.paid"),
@@ -471,9 +469,9 @@ const Ne = {
471
469
  label: l(e)("order.displayStand"),
472
470
  "label-placement": "right"
473
471
  }, null, 8, ["modelValue", "label"]),
474
- E(r("div", Be, [
472
+ E(r("div", Qe, [
475
473
  r("span", ze, g(l(e)("order.tableServiceSetting")), 1),
476
- s(p, {
474
+ s(u, {
477
475
  modelValue: a.value.dineIn.displayStand.prefix,
478
476
  "onUpdate:modelValue": t[6] || (t[6] = (n) => a.value.dineIn.displayStand.prefix = n),
479
477
  label: l(e)("order.prefix"),
@@ -504,7 +502,7 @@ const Ne = {
504
502
  "onUpdate:modelValue": t[9] || (t[9] = (n) => a.value.dineIn.displayStand.padDigit = n),
505
503
  label: l(e)("order.padDigit"),
506
504
  labelMark: "required",
507
- rules: j.value,
505
+ rules: B.value,
508
506
  placeholder: l(e)("order.padDigit")
509
507
  }, null, 8, ["modelValue", "label", "rules", "placeholder"])
510
508
  ], 512), [
@@ -512,13 +510,13 @@ const Ne = {
512
510
  ]),
513
511
  E(r("div", Ke, [
514
512
  r("span", Ge, g(l(e)("order.submitOrderInstruction")), 1),
515
- s(p, {
513
+ s(u, {
516
514
  modelValue: a.value.dineIn.displayStand.submitOrderInstruction.payAtCounter,
517
515
  "onUpdate:modelValue": t[10] || (t[10] = (n) => a.value.dineIn.displayStand.submitOrderInstruction.payAtCounter = n),
518
516
  label: l(e)("order.payAtCounter"),
519
517
  placeholder: "Collect your transaction slip below and present it to the cashier"
520
518
  }, null, 8, ["modelValue", "label"]),
521
- s(p, {
519
+ s(u, {
522
520
  modelValue: a.value.dineIn.displayStand.submitOrderInstruction.paid,
523
521
  "onUpdate:modelValue": t[11] || (t[11] = (n) => a.value.dineIn.displayStand.submitOrderInstruction.paid = n),
524
522
  label: l(e)("order.paid"),
@@ -544,13 +542,13 @@ const Ne = {
544
542
  }, null, 8, ["modelValue", "label"]),
545
543
  E(r("div", Je, [
546
544
  r("span", ea, g(l(e)("order.submitOrderInstruction")), 1),
547
- s(p, {
545
+ s(u, {
548
546
  modelValue: a.value.takeaway.submitOrderInstruction.payAtCounter,
549
547
  "onUpdate:modelValue": t[13] || (t[13] = (n) => a.value.takeaway.submitOrderInstruction.payAtCounter = n),
550
548
  label: l(e)("order.payAtCounter"),
551
549
  placeholder: "Collect your transaction slip below and present it to the cashier"
552
550
  }, null, 8, ["modelValue", "label"]),
553
- s(p, {
551
+ s(u, {
554
552
  modelValue: a.value.takeaway.submitOrderInstruction.paid,
555
553
  "onUpdate:modelValue": t[14] || (t[14] = (n) => a.value.takeaway.submitOrderInstruction.paid = n),
556
554
  label: l(e)("order.paid"),
@@ -576,7 +574,7 @@ const Ne = {
576
574
  r("div", ra, [
577
575
  r("span", sa, g(l(e)("order.coverImageLandscape")), 1),
578
576
  r("span", da, g(l(e)("order.coverImageLandscapeHint")), 1),
579
- U("coverImageLandscape") ? (R(), q("div", ia, [
577
+ U("coverImageLandscape") ? (R(), j("div", ia, [
580
578
  r("img", {
581
579
  src: U("coverImageLandscape"),
582
580
  alt: l(e)("order.coverImageLandscape"),
@@ -586,21 +584,21 @@ const Ne = {
586
584
  variant: "tertiary",
587
585
  class: "mr-auto",
588
586
  label: l(e)("common.delete"),
589
- onClick: t[18] || (t[18] = (n) => O("coverImageLandscape"))
587
+ onClick: t[18] || (t[18] = (n) => D("coverImageLandscape"))
590
588
  }, null, 8, ["label"])
591
- ])) : (R(), G(A, {
589
+ ])) : (R(), G(C, {
592
590
  key: 0,
593
591
  accept: "image/*",
594
592
  "max-file-size": ne,
595
593
  "content-class": "w-full max-w-[400px] aspect-video",
596
- onFileUpload: t[16] || (t[16] = (n) => B("coverImageLandscape", n)),
597
- onFileRejected: t[17] || (t[17] = (n) => D("coverImageLandscape", n))
594
+ onFileUpload: t[16] || (t[16] = (n) => Q("coverImageLandscape", n)),
595
+ onFileRejected: t[17] || (t[17] = (n) => M("coverImageLandscape", n))
598
596
  }))
599
597
  ]),
600
598
  r("div", ma, [
601
599
  r("span", pa, g(l(e)("order.coverImagePortrait")), 1),
602
600
  r("span", ca, g(l(e)("order.coverImagePortraitHint")), 1),
603
- U("coverImagePortrait") ? (R(), q("div", ya, [
601
+ U("coverImagePortrait") ? (R(), j("div", ya, [
604
602
  r("img", {
605
603
  src: U("coverImagePortrait"),
606
604
  alt: l(e)("order.coverImagePortrait"),
@@ -610,15 +608,15 @@ const Ne = {
610
608
  variant: "tertiary",
611
609
  class: "mr-auto",
612
610
  label: l(e)("common.delete"),
613
- onClick: t[21] || (t[21] = (n) => O("coverImagePortrait"))
611
+ onClick: t[21] || (t[21] = (n) => D("coverImagePortrait"))
614
612
  }, null, 8, ["label"])
615
- ])) : (R(), G(A, {
613
+ ])) : (R(), G(C, {
616
614
  key: 0,
617
615
  accept: "image/*",
618
616
  "max-file-size": ne,
619
617
  "content-class": "w-[240px] aspect-[9/16]",
620
- onFileUpload: t[19] || (t[19] = (n) => B("coverImagePortrait", n)),
621
- onFileRejected: t[20] || (t[20] = (n) => D("coverImagePortrait", n))
618
+ onFileUpload: t[19] || (t[19] = (n) => Q("coverImagePortrait", n)),
619
+ onFileRejected: t[20] || (t[20] = (n) => M("coverImagePortrait", n))
622
620
  }))
623
621
  ])
624
622
  ]),
@@ -636,25 +634,25 @@ const Ne = {
636
634
  s(Ve, {
637
635
  "payment-types": a.value.paymentSetting.paymentTypes ?? [],
638
636
  "allow-credit": !0,
639
- "allow-e-payment": Q.value,
637
+ "allow-e-payment": q.value,
640
638
  "offline-payment-types": a.value.paymentSetting.offlinePaymentTypes ?? [],
641
639
  ePaymentTypes: a.value.paymentSetting.ePaymentTypes ?? {},
642
640
  "onUpdate:paymentTypes": K,
643
641
  "onUpdate:offlinePaymentTypes": t[23] || (t[23] = (n) => a.value.paymentSetting.offlinePaymentTypes = n),
644
- "onUpdate:ePaymentTypes": y
642
+ "onUpdate:ePaymentTypes": c
645
643
  }, null, 8, ["payment-types", "allow-e-payment", "offline-payment-types", "ePaymentTypes"])
646
644
  ]),
647
645
  s(W, {
648
646
  class: "w-1/4 mb-10",
649
647
  variant: "primary",
650
648
  label: l(e)("order.updateSetting"),
651
- disabled: !M.value,
652
- onClick: v
649
+ disabled: !O.value,
650
+ onClick: f
653
651
  }, null, 8, ["label", "disabled"])
654
- ])) : (R(), q("div", Pa, g(l(e)("order.pleaseSelectRestaurant")), 1));
652
+ ])) : (R(), j("div", Ia, g(l(e)("order.pleaseSelectRestaurant")), 1));
655
653
  };
656
654
  }
657
655
  });
658
656
  export {
659
- Ta as default
657
+ ha as default
660
658
  };