@feedmepos/mf-order-setting 0.0.44 → 0.0.45
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.
- package/dist/{KioskDevicesView-KBpXQJmy.js → KioskDevicesView-CZ9B7VmM.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-taf41a-7.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-B9mM8Vcl.js} +101 -96
- package/dist/{KioskSettingView-DG12ZvfT.js → KioskSettingView-CJAw9osg.js} +1 -1
- package/dist/KioskView-CN-Dk8fn.js +448 -0
- package/dist/{OrderSettingsView-CEh1QUZm.js → OrderSettingsView-B0shsMTu.js} +33723 -34786
- package/dist/{app-CKeIud_f.js → app-BK8d3ff5.js} +115 -43
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-D9bsUd57.js → dayjs.min-DgWdPF1p.js} +1 -1
- package/dist/frontend/mf-order/src/api/remoteOrder/index.d.ts +2 -2
- package/dist/frontend/mf-order/src/api/restaurant-setting/index.d.ts +2 -1
- package/dist/frontend/mf-order/src/app.d.ts +72 -0
- package/dist/frontend/mf-order/src/main.d.ts +72 -0
- package/dist/frontend/mf-order/src/modules/kiosk/interface.d.ts +1 -0
- package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +3 -0
- package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +111 -1
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +291 -288
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +20 -173
- package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +12 -114
- package/dist/frontend/mf-order/src/views/order-settings/delivery/delivery.data.d.ts +2 -2
- package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue.d.ts +2 -2
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialogContent.vue.d.ts +4 -4
- package/dist/frontend/mf-order/src/views/order-settings/queue/PresetRemarksSheet.vue.d.ts +19 -0
- package/dist/frontend/mf-order/src/views/order-settings/queue/QueueSetting.vue.d.ts +2 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-D_Tmm1qL.js → index-DHbH8gKt.js} +2 -2
- package/dist/{menu.dto-BY9dVf93.js → menu.dto-Cua9zYpc.js} +54753 -57698
- package/dist/package/entity/booking/booking.do.d.ts +168 -2368
- package/dist/package/entity/delivery/delivery.dto.d.ts +33 -473
- package/dist/package/entity/food-court/food-court.dto.d.ts +44 -44
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +23 -0
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +432 -60
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +670 -628
- package/dist/package/entity/incoming-order/incoming-order.enum.d.ts +2 -2
- package/dist/package/entity/index.d.ts +2 -0
- package/dist/package/entity/kiosk/kiosk.do.d.ts +16 -0
- package/dist/package/entity/kiosk/kiosk.dto.d.ts +19 -0
- package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +201 -2031
- package/dist/package/entity/order/order-item/order-item.dto.d.ts +129 -16
- package/dist/package/entity/order/order.do.d.ts +8 -0
- package/dist/package/entity/order/order.dto.d.ts +390 -974
- package/dist/package/entity/order/order.enum.d.ts +2 -0
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +367 -18
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +48 -8
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +1 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +33 -473
- package/dist/package/entity/order-platform/grabfood/grabfood-omni.do.d.ts +672 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-omni.dto.d.ts +9 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +90 -508
- package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-webhook.dto.d.ts +1130 -0
- package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +34 -47
- package/dist/package/entity/order-platform/grabfood/grabfood.enum.d.ts +8 -2
- package/dist/package/entity/order-platform/menu.dto.d.ts +46 -12
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +8 -5
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +33 -473
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/customization/color.do.d.ts +3 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +18 -18
- package/dist/package/entity/order-setting/order-setting.do.d.ts +72 -88
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +724 -1036
- package/dist/package/entity/order-setting/queue/queue.do.d.ts +22 -0
- package/dist/package/entity/order-setting/queue/queue.dto.d.ts +12 -0
- package/dist/package/entity/order-setting/reservation/reservation.do.d.ts +4 -51
- package/dist/package/entity/order-setting/reservation/reservation.dto.d.ts +248 -585
- package/dist/package/entity/pubsub/ably/ably.enum.d.ts +10 -1
- package/dist/package/entity/queue/queue.dto.d.ts +76 -14
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +41 -26
- package/dist/package/entity/websocket/websocket.dto.d.ts +22 -22
- package/package.json +3 -3
- package/src/api/remoteOrder/index.ts +13 -2
- package/src/api/restaurant-setting/index.ts +6 -0
- package/src/locales/en-US.json +24 -0
- package/src/locales/th-TH.json +24 -0
- package/src/locales/zh-CN.json +24 -0
- package/src/modules/kiosk/interface.ts +1 -0
- package/src/stores/kiosk/mapper.ts +1 -0
- package/src/stores/order-setting/mapper.ts +20 -33
- package/src/stores/restaurant/index.ts +7 -3
- package/src/views/all-orders/FilterStatus.vue +1 -1
- package/src/views/kiosk/devices/KioskDeviceCard.vue +6 -0
- package/src/views/order-settings/OrderSettingsView.vue +13 -5
- package/src/views/order-settings/delivery/delivery.data.ts +7 -4
- package/src/views/order-settings/delivery/integrated-delivery/FoodpandaSetting.vue +2 -2
- package/src/views/order-settings/dine-in/DineInSetting.vue +18 -2
- package/src/views/order-settings/general/GeneralSetting.vue +2 -2
- package/src/views/order-settings/queue/PresetRemarksSheet.vue +103 -0
- package/src/views/order-settings/queue/QueueSetting.vue +358 -0
- package/dist/KioskView-KNiT-upH.js +0 -453
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as S, ref as f, resolveComponent as b, createElementBlock as d, openBlock as l, createElementVNode as n, createVNode as v, toDisplayString as r, unref as y, computed as h, withCtx as M, Fragment as V, renderList as T, createCommentVNode as x, createBlock as N } from "vue";
|
|
2
2
|
import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as K } from "@feedmepos/mf-common";
|
|
4
4
|
import { defineStore as X } from "pinia";
|
|
5
|
-
import { r as D, g as U, D as Z } from "./dayjs.min-
|
|
6
|
-
import "./menu.dto-
|
|
7
|
-
const ee = /* @__PURE__ */
|
|
5
|
+
import { r as D, g as U, D as Z } from "./dayjs.min-DgWdPF1p.js";
|
|
6
|
+
import "./menu.dto-Cua9zYpc.js";
|
|
7
|
+
const ee = /* @__PURE__ */ S({
|
|
8
8
|
__name: "KioskUnbindConfirm",
|
|
9
9
|
props: {
|
|
10
10
|
machineId: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
13
|
setup(e, { emit: t }) {
|
|
14
|
-
const { t:
|
|
15
|
-
function
|
|
16
|
-
u("update:modelValue",
|
|
14
|
+
const { t: c } = K(), u = t, m = f("");
|
|
15
|
+
function s(i) {
|
|
16
|
+
u("update:modelValue", i);
|
|
17
17
|
}
|
|
18
|
-
return (
|
|
18
|
+
return (i, k) => {
|
|
19
19
|
const w = b("FmTextField");
|
|
20
|
-
return
|
|
21
|
-
n("span", null,
|
|
20
|
+
return l(), d("div", null, [
|
|
21
|
+
n("span", null, r(y(c)("order.unbindKioskDeviceWarning", { machineId: i.machineId })), 1),
|
|
22
22
|
v(w, {
|
|
23
23
|
"model-value": m.value,
|
|
24
|
-
"onUpdate:modelValue":
|
|
25
|
-
placeholder:
|
|
24
|
+
"onUpdate:modelValue": s,
|
|
25
|
+
placeholder: i.machineId
|
|
26
26
|
}, null, 8, ["model-value", "placeholder"])
|
|
27
27
|
]);
|
|
28
28
|
};
|
|
@@ -42,7 +42,7 @@ async function oe(e) {
|
|
|
42
42
|
async function se(e, t) {
|
|
43
43
|
await D().put(`/kiosk/updateDevicePin/${t}`, { pinInfo: e });
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const I = {
|
|
46
46
|
requestOtp: ne,
|
|
47
47
|
getDevices: te,
|
|
48
48
|
unbind: oe,
|
|
@@ -59,11 +59,12 @@ const x = {
|
|
|
59
59
|
deviceAppType: e.deviceAppType ?? void 0,
|
|
60
60
|
slotInfo: e.slotInfo ?? void 0,
|
|
61
61
|
pinInfo: e.pinInfo ?? void 0,
|
|
62
|
-
deviceAppVersion: e.deviceAppVersion ?? void 0
|
|
62
|
+
deviceAppVersion: e.deviceAppVersion ?? void 0,
|
|
63
|
+
deviceAppOTAVersion: e.deviceAppOTAVersion ?? void 0
|
|
63
64
|
});
|
|
64
65
|
function ae(e) {
|
|
65
|
-
const t = e.substring(0, 8),
|
|
66
|
-
return new Date(
|
|
66
|
+
const t = e.substring(0, 8), c = parseInt(t, 16);
|
|
67
|
+
return new Date(c * 1e3);
|
|
67
68
|
}
|
|
68
69
|
const le = {
|
|
69
70
|
toMfKioskDevice: ie
|
|
@@ -73,50 +74,50 @@ const le = {
|
|
|
73
74
|
devices: []
|
|
74
75
|
});
|
|
75
76
|
async function t() {
|
|
76
|
-
const
|
|
77
|
-
e.value.otp =
|
|
77
|
+
const s = await I.requestOtp();
|
|
78
|
+
e.value.otp = s.otp;
|
|
78
79
|
}
|
|
79
|
-
async function
|
|
80
|
-
const
|
|
81
|
-
e.value.devices =
|
|
80
|
+
async function c() {
|
|
81
|
+
const s = await I.getDevices();
|
|
82
|
+
e.value.devices = s.map((i) => le.toMfKioskDevice(i));
|
|
82
83
|
}
|
|
83
|
-
async function u(
|
|
84
|
-
await
|
|
84
|
+
async function u(s) {
|
|
85
|
+
await I.unbind(s), await c();
|
|
85
86
|
}
|
|
86
|
-
async function m(
|
|
87
|
-
await
|
|
87
|
+
async function m(s, i) {
|
|
88
|
+
await I.updateDevicePin(s, i);
|
|
88
89
|
}
|
|
89
90
|
return {
|
|
90
91
|
state: e.value,
|
|
91
92
|
requestOtp: t,
|
|
92
|
-
getDevices:
|
|
93
|
+
getDevices: c,
|
|
93
94
|
unbind: u,
|
|
94
95
|
updateDevicePin: m
|
|
95
96
|
};
|
|
96
97
|
}), re = { class: "border fm-corner-radius-lg flex justify-between pr-[1rem] w-11/12" }, de = {
|
|
97
98
|
key: 0,
|
|
98
99
|
class: "py-[1rem] flex flex-col gap-6"
|
|
99
|
-
}, pe = { class: "fm-typo-en-title-sm-600" }, ue = { class: "w-full border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2" }, me = { class: "flex flex-col gap-1 mb-2" }, fe = { class: "fm-typo-en-body-lg-600 block" }, ve = { class: "flex flex-col gap-1 mb-2" }, ye = { class: "fm-typo-en-body-lg-600 block" }, _e = { class: "flex flex-col gap-1 mb-2" }, be = { class: "fm-typo-en-body-lg-600 block" }, ke = { class: "w-full border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2" },
|
|
100
|
+
}, pe = { class: "fm-typo-en-title-sm-600" }, ue = { class: "w-full border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2" }, me = { class: "flex flex-col gap-1 mb-2" }, fe = { class: "fm-typo-en-body-lg-600 block" }, ve = { class: "flex flex-col gap-1 mb-2" }, ye = { class: "fm-typo-en-body-lg-600 block" }, _e = { class: "flex flex-col gap-1 mb-2" }, be = { class: "fm-typo-en-body-lg-600 block" }, ke = { class: "flex flex-col gap-1 mb-2" }, ge = { class: "fm-typo-en-body-lg-600 block" }, he = { class: "w-full border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2" }, xe = {
|
|
100
101
|
key: 0,
|
|
101
102
|
class: "fm-typo-en-title-sm-600"
|
|
102
|
-
},
|
|
103
|
+
}, Ie = { class: "flex flex-col gap-1" }, De = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-lg-600 block" }, Ae = { key: 1 }, Pe = { class: "py-[1rem] flex flex-col gap-6 text-center items-center" }, Fe = { class: "flex flex-col gap-1 mb-2" }, Ce = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ve = { class: "mt-5 block" }, Te = /* @__PURE__ */ S({
|
|
103
104
|
__name: "KioskDeviceCard",
|
|
104
105
|
props: {
|
|
105
106
|
device: {}
|
|
106
107
|
},
|
|
107
108
|
setup(e) {
|
|
108
|
-
const { t } = K(),
|
|
109
|
-
var
|
|
110
|
-
return ((
|
|
109
|
+
const { t } = K(), c = J(), u = Q(), m = ce(), s = f(!1), i = e, k = f(""), w = h(() => Object.entries(i.device.config)), E = h(() => {
|
|
110
|
+
var o;
|
|
111
|
+
return ((o = i.device) == null ? void 0 : o.deviceAppType) === "TABLET_APP" ? "Tablet App" : "Kiosk App";
|
|
111
112
|
});
|
|
112
113
|
function q() {
|
|
113
|
-
k.value = "",
|
|
114
|
+
k.value = "", c.open({
|
|
114
115
|
title: t("order.unbindKioskDevice"),
|
|
115
116
|
contentComponent: ee,
|
|
116
117
|
contentComponentProps: {
|
|
117
|
-
machineId:
|
|
118
|
-
"onUpdate:modelValue": (
|
|
119
|
-
k.value =
|
|
118
|
+
machineId: i.device.machineId,
|
|
119
|
+
"onUpdate:modelValue": (o) => {
|
|
120
|
+
k.value = o;
|
|
120
121
|
}
|
|
121
122
|
},
|
|
122
123
|
dismissAway: !1,
|
|
@@ -131,11 +132,11 @@ const le = {
|
|
|
131
132
|
close: !0
|
|
132
133
|
}
|
|
133
134
|
}).onPrimary(async () => {
|
|
134
|
-
k.value ==
|
|
135
|
+
k.value == i.device.machineId ? (await R(), u.open({
|
|
135
136
|
type: "success",
|
|
136
137
|
message: t("order.unbindSuccess"),
|
|
137
138
|
position: "bottom"
|
|
138
|
-
}),
|
|
139
|
+
}), c.close()) : u.open({
|
|
139
140
|
type: "warning",
|
|
140
141
|
message: t("order.unbindWarning"),
|
|
141
142
|
position: "bottom"
|
|
@@ -143,20 +144,20 @@ const le = {
|
|
|
143
144
|
});
|
|
144
145
|
}
|
|
145
146
|
const Y = h(() => {
|
|
146
|
-
var
|
|
147
|
-
return (
|
|
148
|
-
}), L = h(() => _.value ? "Re-enter new PIN" : "Enter new PIN"), _ = f(!1), g = f(),
|
|
147
|
+
var o;
|
|
148
|
+
return (o = i.device) == null ? void 0 : o.pinInfo;
|
|
149
|
+
}), L = h(() => _.value ? "Re-enter new PIN" : "Enter new PIN"), _ = f(!1), g = f(), A = f();
|
|
149
150
|
function j() {
|
|
150
|
-
|
|
151
|
+
s.value = !0;
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
-
_.value = !1, g.value = null,
|
|
153
|
+
function P() {
|
|
154
|
+
_.value = !1, g.value = null, A.value = null, s.value = !1;
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
-
_.value ? (
|
|
156
|
+
function O(o) {
|
|
157
|
+
_.value ? (A.value = o, W()) : (g.value = o, _.value = !0);
|
|
157
158
|
}
|
|
158
159
|
async function W() {
|
|
159
|
-
g.value ===
|
|
160
|
+
g.value === A.value ? (await H(), u.open({
|
|
160
161
|
type: "success",
|
|
161
162
|
message: "Successfuly update device PIN",
|
|
162
163
|
position: "top"
|
|
@@ -164,87 +165,91 @@ const le = {
|
|
|
164
165
|
type: "error",
|
|
165
166
|
message: "Entered PIN not the same, please try again",
|
|
166
167
|
position: "top"
|
|
167
|
-
}),
|
|
168
|
+
}), P();
|
|
168
169
|
}
|
|
169
170
|
async function H() {
|
|
170
|
-
await m.updateDevicePin(g.value,
|
|
171
|
+
await m.updateDevicePin(g.value, i.device.machineId);
|
|
171
172
|
}
|
|
172
173
|
async function R() {
|
|
173
|
-
await m.unbind(
|
|
174
|
+
await m.unbind(i.device.machineId);
|
|
174
175
|
}
|
|
175
|
-
return (
|
|
176
|
-
const z = b("FmListItem"), F = b("FmButton"),
|
|
177
|
-
return
|
|
176
|
+
return (o, a) => {
|
|
177
|
+
const z = b("FmListItem"), F = b("FmButton"), $ = b("FmPinField"), G = b("FmSideSheet");
|
|
178
|
+
return l(), d("div", re, [
|
|
178
179
|
v(G, {
|
|
179
180
|
header: y(t)("order.deviceDetails"),
|
|
180
181
|
"dismiss-away": "",
|
|
181
182
|
class: "w-full",
|
|
182
183
|
maxWidth: 700,
|
|
183
|
-
"onOn:clickedAway":
|
|
184
|
+
"onOn:clickedAway": P
|
|
184
185
|
}, {
|
|
185
186
|
"side-sheet-button": M(() => [
|
|
186
187
|
v(z, {
|
|
187
188
|
class: "flex-1",
|
|
188
|
-
label:
|
|
189
|
-
sublabel: `${y(t)("order.activatedDate")}: ${y(Z)(
|
|
189
|
+
label: o.device.name,
|
|
190
|
+
sublabel: `${y(t)("order.activatedDate")}: ${y(Z)(o.device.activatedAt).format("DD MMM YYYY HH:mm")}`
|
|
190
191
|
}, null, 8, ["label", "sublabel"])
|
|
191
192
|
]),
|
|
192
193
|
default: M(() => {
|
|
193
|
-
var
|
|
194
|
+
var B;
|
|
194
195
|
return [
|
|
195
|
-
|
|
196
|
-
n("div",
|
|
197
|
-
n("div",
|
|
198
|
-
n("span",
|
|
199
|
-
n("span",
|
|
200
|
-
_.value ?
|
|
196
|
+
s.value ? (l(), d("div", Ae, [
|
|
197
|
+
n("div", Pe, [
|
|
198
|
+
n("div", Fe, [
|
|
199
|
+
n("span", Ce, r(L.value), 1),
|
|
200
|
+
n("span", Ve, [
|
|
201
|
+
_.value ? x("", !0) : (l(), N($, {
|
|
201
202
|
key: 0,
|
|
202
203
|
length: 4,
|
|
203
|
-
onComplete:
|
|
204
|
+
onComplete: a[0] || (a[0] = (p) => O(p))
|
|
204
205
|
})),
|
|
205
|
-
_.value ? (
|
|
206
|
+
_.value ? (l(), N($, {
|
|
206
207
|
key: 1,
|
|
207
208
|
length: 4,
|
|
208
|
-
onComplete:
|
|
209
|
-
})) :
|
|
209
|
+
onComplete: a[1] || (a[1] = (p) => O(p))
|
|
210
|
+
})) : x("", !0)
|
|
210
211
|
])
|
|
211
212
|
]),
|
|
212
213
|
v(F, {
|
|
213
214
|
class: "w-1/3",
|
|
214
215
|
variant: "secondary",
|
|
215
216
|
label: "Cancel reset PIN",
|
|
216
|
-
onClick:
|
|
217
|
+
onClick: P
|
|
217
218
|
})
|
|
218
219
|
])
|
|
219
|
-
])) : (
|
|
220
|
-
n("span", pe,
|
|
220
|
+
])) : (l(), d("div", de, [
|
|
221
|
+
n("span", pe, r(o.device.name), 1),
|
|
221
222
|
n("div", ue, [
|
|
222
|
-
|
|
223
|
+
a[6] || (a[6] = n("span", { class: "fm-typo-en-title-sm-600 mb-3" }, "App Info", -1)),
|
|
223
224
|
n("div", me, [
|
|
224
|
-
|
|
225
|
-
n("span", fe,
|
|
225
|
+
a[2] || (a[2] = n("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Type", -1)),
|
|
226
|
+
n("span", fe, r(E.value), 1)
|
|
226
227
|
]),
|
|
227
228
|
n("div", ve, [
|
|
228
|
-
|
|
229
|
-
n("span", ye,
|
|
229
|
+
a[3] || (a[3] = n("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Version", -1)),
|
|
230
|
+
n("span", ye, r(o.device.deviceAppVersion ?? "Below 0.0.42"), 1)
|
|
230
231
|
]),
|
|
231
232
|
n("div", _e, [
|
|
232
|
-
|
|
233
|
-
n("span", be,
|
|
233
|
+
a[4] || (a[4] = n("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "OTA Version", -1)),
|
|
234
|
+
n("span", be, r(o.device.deviceAppOTAVersion ?? "Not available"), 1)
|
|
235
|
+
]),
|
|
236
|
+
n("div", ke, [
|
|
237
|
+
a[5] || (a[5] = n("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "PIN Code", -1)),
|
|
238
|
+
n("span", ge, r(Y.value ? "Yes" : "No"), 1)
|
|
234
239
|
]),
|
|
235
240
|
v(F, {
|
|
236
241
|
class: "w-auto",
|
|
237
242
|
variant: "primary",
|
|
238
|
-
label: (
|
|
243
|
+
label: (B = o.device) != null && B.pinInfo ? "Reset Device PIN" : "Set Device PIN",
|
|
239
244
|
onClick: j
|
|
240
245
|
}, null, 8, ["label"])
|
|
241
246
|
]),
|
|
242
|
-
(
|
|
243
|
-
p[1] ? (
|
|
244
|
-
p[1] ? (
|
|
245
|
-
n("span",
|
|
246
|
-
n("span",
|
|
247
|
-
]))), 256)) :
|
|
247
|
+
(l(!0), d(V, null, T(w.value.filter((p) => p[1]), (p) => (l(), d("div", he, [
|
|
248
|
+
p[1] ? (l(), d("span", xe, r(p[0]), 1)) : x("", !0),
|
|
249
|
+
p[1] ? (l(!0), d(V, { key: 1 }, T(Object.entries(p[1]), (C) => (l(), d("div", Ie, [
|
|
250
|
+
n("span", De, r(C[0]), 1),
|
|
251
|
+
n("span", we, r(C[1] == "" ? "-" : C[1]), 1)
|
|
252
|
+
]))), 256)) : x("", !0)
|
|
248
253
|
]))), 256))
|
|
249
254
|
]))
|
|
250
255
|
];
|
|
@@ -260,7 +265,7 @@ const le = {
|
|
|
260
265
|
]);
|
|
261
266
|
};
|
|
262
267
|
}
|
|
263
|
-
}),
|
|
268
|
+
}), Ne = { class: "flex flex-col gap-2" }, Se = { class: "flex flex-col gap-2" }, Ke = { class: "fm-typo-en-title-sm-600 block" }, Oe = { class: "fm-typo-en-body-md-400 block" }, $e = { class: "flex flex-col gap-6" }, Le = /* @__PURE__ */ S({
|
|
264
269
|
__name: "KioskDevicesView",
|
|
265
270
|
props: {
|
|
266
271
|
devices: {},
|
|
@@ -268,18 +273,18 @@ const le = {
|
|
|
268
273
|
},
|
|
269
274
|
setup(e) {
|
|
270
275
|
const { t } = K();
|
|
271
|
-
return (
|
|
276
|
+
return (c, u) => {
|
|
272
277
|
const m = b("FmButton");
|
|
273
|
-
return
|
|
274
|
-
n("div",
|
|
275
|
-
n("div",
|
|
276
|
-
n("span",
|
|
277
|
-
n("span",
|
|
278
|
+
return l(), d("div", null, [
|
|
279
|
+
n("div", Ne, [
|
|
280
|
+
n("div", Se, [
|
|
281
|
+
n("span", Ke, r(y(t)("order.kioskDisplay")), 1),
|
|
282
|
+
n("span", Oe, r(y(t)("order.kioskDisplayDescription")), 1)
|
|
278
283
|
]),
|
|
279
|
-
n("div",
|
|
280
|
-
(
|
|
281
|
-
key:
|
|
282
|
-
device:
|
|
284
|
+
n("div", $e, [
|
|
285
|
+
(l(!0), d(V, null, T(c.devices, (s) => (l(), N(Te, {
|
|
286
|
+
key: s.machineId,
|
|
287
|
+
device: s
|
|
283
288
|
}, null, 8, ["device"]))), 128)),
|
|
284
289
|
v(m, {
|
|
285
290
|
variant: "plain",
|
|
@@ -287,7 +292,7 @@ const le = {
|
|
|
287
292
|
label: y(t)("order.bindDevice"),
|
|
288
293
|
size: "md",
|
|
289
294
|
"prepend-icon": "link",
|
|
290
|
-
onClick:
|
|
295
|
+
onClick: c.requestOtp
|
|
291
296
|
}, null, 8, ["label", "onClick"])
|
|
292
297
|
])
|
|
293
298
|
])
|
|
@@ -296,6 +301,6 @@ const le = {
|
|
|
296
301
|
}
|
|
297
302
|
});
|
|
298
303
|
export {
|
|
299
|
-
|
|
304
|
+
Le as _,
|
|
300
305
|
ce as u
|
|
301
306
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as H, computed as h, ref as C, onMounted as le, resolveComponent as _, createElementBlock as I, openBlock as T, Fragment as q, createVNode as u, createElementVNode as s, createCommentVNode as M, unref as a, withCtx as A, createTextVNode as ae, toDisplayString as b, renderList as z, withDirectives as R, vShow as U } from "vue";
|
|
2
|
-
import { F as w, c as r } from "./menu.dto-
|
|
2
|
+
import { F as w, c as r } from "./menu.dto-Cua9zYpc.js";
|
|
3
3
|
import { _ as ne, u as te } from "./index-BXsnV_eO.js";
|
|
4
4
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as oe } from "@feedmepos/ui-library";
|