@feedmepos/mf-order-setting 0.0.47 → 0.0.48
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-Dd3xcM5X.js → KioskDevicesView-iZTQ--DO.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-D-epeOIx.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CPDemTBj.js} +19 -19
- package/dist/KioskSettingView-mN7UPNYu.js +552 -0
- package/dist/{KioskView-BGiHHSjd.js → KioskView-NEpc7Ivb.js} +12 -8
- package/dist/OrderSettingsView-B5Nq_u9Z.js +51275 -0
- package/dist/app-B3KtJhiw.js +2914 -0
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-D-vfvSns.js → dayjs.min-GjkM9dM2.js} +49 -49
- package/dist/frontend/mf-order/src/app.d.ts +1769 -0
- package/dist/frontend/mf-order/src/composables/useDeprecationNotice.d.ts +7 -0
- package/dist/frontend/mf-order/src/main.d.ts +1769 -0
- package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +60 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +18 -12
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +18 -6
- package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +12 -4
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPaymentTypeSection.vue.d.ts +12 -8
- package/dist/frontend/mf-order/src/views/order-settings/delivery/components/FeedmeExpressDeprecationNotice.vue.d.ts +2 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DAruvcri.js → index-Dwzta1U-.js} +2 -2
- package/dist/menu.dto-DgPhiIVk.js +101330 -0
- package/dist/package/entity/booking/booking.do.d.ts +170 -40
- package/dist/package/entity/delivery/delivery.dto.d.ts +34 -8
- package/dist/package/entity/food-court/order.dto.d.ts +2890 -2890
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +226 -226
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +1027 -790
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +356 -356
- package/dist/package/entity/index.d.ts +1 -0
- package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +213 -91
- package/dist/package/entity/order/effects/effect.dto.d.ts +10 -10
- package/dist/package/entity/order/order-item/order-item.dto.d.ts +110 -110
- package/dist/package/entity/order/order.do.d.ts +20 -20
- package/dist/package/entity/order/order.dto.d.ts +23748 -40781
- package/dist/package/entity/order/payment/payment.dto.d.ts +784 -10508
- package/dist/package/entity/order-platform/deliveroo/deliveroo-order.do.d.ts +26 -26
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +158 -158
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +196 -196
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +34 -8
- package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +34 -8
- package/dist/package/entity/order-platform/menu.dto.d.ts +75 -44
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +34 -8
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +57 -42
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +44 -32
- package/dist/package/entity/order-setting/order-setting.do.d.ts +31 -22
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +62 -44
- package/dist/package/entity/payment/payment.dto.d.ts +2 -2
- package/dist/package/entity/payment/transaction.d.ts +1937 -0
- package/dist/package/entity/queue/queue.dto.d.ts +2677 -7335
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +220 -144
- package/dist/package/entity/websocket/websocket.dto.d.ts +68 -48
- package/package.json +3 -3
- package/src/app.ts +2 -0
- package/src/composables/useDeprecationNotice.ts +52 -0
- package/src/locales/en-US.json +6 -0
- package/src/locales/ja-JP.json +1751 -0
- package/src/locales/th-TH.json +6 -0
- package/src/locales/zh-CN.json +6 -0
- package/src/main.ts +2 -0
- package/src/stores/order-setting/mapper.ts +35 -23
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +21 -0
- package/src/views/order-settings/delivery/DeliverySetting.vue +46 -2
- package/src/views/order-settings/delivery/components/FeedmeExpressDeprecationNotice.vue +16 -0
- package/src/views/order-settings/delivery/integrated-delivery/FeedmeDelivery.vue +39 -39
- package/dist/KioskSettingView-D50Gh7NR.js +0 -528
- package/dist/OrderSettingsView-DPYYH1zL.js +0 -74512
- package/dist/app-CAt1JfN3.js +0 -1145
- package/dist/menu.dto-B82ITnH5.js +0 -124296
package/dist/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as nt, v as
|
|
1
|
+
import { g as nt, v as kt, j as Dt } from "./menu.dto-DgPhiIVk.js";
|
|
2
2
|
import { useCoreStore as Z } from "@feedmepos/mf-common";
|
|
3
3
|
function rt(e, t) {
|
|
4
4
|
return function() {
|
|
@@ -51,10 +51,10 @@ function at(e, t) {
|
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ct = (e) => !ue(e) && e !== Q;
|
|
54
|
-
function
|
|
54
|
+
function ke() {
|
|
55
55
|
const { caseless: e } = ct(this) && this || {}, t = {}, n = (r, s) => {
|
|
56
56
|
const o = e && at(t, s) || s;
|
|
57
|
-
pe(t[o]) && pe(r) ? t[o] =
|
|
57
|
+
pe(t[o]) && pe(r) ? t[o] = ke(t[o], r) : pe(r) ? t[o] = ke({}, r) : se(r) ? t[o] = r.slice() : t[o] = r;
|
|
58
58
|
};
|
|
59
59
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
60
60
|
arguments[r] && le(arguments[r], n);
|
|
@@ -190,7 +190,7 @@ const dn = (e) => {
|
|
|
190
190
|
isTypedArray: en,
|
|
191
191
|
isFileList: vt,
|
|
192
192
|
forEach: le,
|
|
193
|
-
merge:
|
|
193
|
+
merge: ke,
|
|
194
194
|
extend: Kt,
|
|
195
195
|
trim: Vt,
|
|
196
196
|
stripBOM: Yt,
|
|
@@ -274,7 +274,7 @@ E.from = (e, t, n, r, s, o) => {
|
|
|
274
274
|
}, (c) => c !== "isAxiosError"), E.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
275
275
|
};
|
|
276
276
|
const wn = null;
|
|
277
|
-
function
|
|
277
|
+
function De(e) {
|
|
278
278
|
return a.isPlainObject(e) || a.isArray(e);
|
|
279
279
|
}
|
|
280
280
|
function ht(e) {
|
|
@@ -286,7 +286,7 @@ function Ie(e, t, n) {
|
|
|
286
286
|
}).join(n ? "." : "") : t;
|
|
287
287
|
}
|
|
288
288
|
function bn(e) {
|
|
289
|
-
return a.isArray(e) && !e.some(
|
|
289
|
+
return a.isArray(e) && !e.some(De);
|
|
290
290
|
}
|
|
291
291
|
const gn = a.toFlatObject(a, {}, null, function(t) {
|
|
292
292
|
return /^is[A-Z]/.test(t);
|
|
@@ -318,33 +318,33 @@ function Oe(e, t, n) {
|
|
|
318
318
|
if (a.endsWith(S, "{}"))
|
|
319
319
|
S = r ? S : S.slice(0, -2), y = JSON.stringify(y);
|
|
320
320
|
else if (a.isArray(y) && bn(y) || (a.isFileList(y) || a.endsWith(S, "[]")) && (C = a.toArray(y)))
|
|
321
|
-
return S = ht(S), C.forEach(function(
|
|
322
|
-
!(a.isUndefined(
|
|
321
|
+
return S = ht(S), C.forEach(function(k, H) {
|
|
322
|
+
!(a.isUndefined(k) || k === null) && t.append(
|
|
323
323
|
// eslint-disable-next-line no-nested-ternary
|
|
324
324
|
i === !0 ? Ie([S], H, o) : i === null ? S : S + "[]",
|
|
325
|
-
u(
|
|
325
|
+
u(k)
|
|
326
326
|
);
|
|
327
327
|
}), !1;
|
|
328
328
|
}
|
|
329
|
-
return
|
|
329
|
+
return De(y) ? !0 : (t.append(Ie(w, S, o), u(y)), !1);
|
|
330
330
|
}
|
|
331
331
|
const h = [], T = Object.assign(gn, {
|
|
332
332
|
defaultVisitor: l,
|
|
333
333
|
convertValue: u,
|
|
334
|
-
isVisitable:
|
|
334
|
+
isVisitable: De
|
|
335
335
|
});
|
|
336
336
|
function A(y, S) {
|
|
337
337
|
if (!a.isUndefined(y)) {
|
|
338
338
|
if (h.indexOf(y) !== -1)
|
|
339
339
|
throw Error("Circular reference detected in " + S.join("."));
|
|
340
|
-
h.push(y), a.forEach(y, function(C,
|
|
340
|
+
h.push(y), a.forEach(y, function(C, D) {
|
|
341
341
|
(!(a.isUndefined(C) || C === null) && s.call(
|
|
342
342
|
t,
|
|
343
343
|
C,
|
|
344
|
-
a.isString(
|
|
344
|
+
a.isString(D) ? D.trim() : D,
|
|
345
345
|
S,
|
|
346
346
|
T
|
|
347
|
-
)) === !0 && A(C, S ? S.concat(
|
|
347
|
+
)) === !0 && A(C, S ? S.concat(D) : [D]);
|
|
348
348
|
}), h.pop();
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -477,14 +477,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", xn
|
|
|
477
477
|
...Cn,
|
|
478
478
|
...Tn
|
|
479
479
|
};
|
|
480
|
-
function
|
|
480
|
+
function kn(e, t) {
|
|
481
481
|
return Oe(e, new M.classes.URLSearchParams(), Object.assign({
|
|
482
482
|
visitor: function(n, r, s, o) {
|
|
483
483
|
return M.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
484
484
|
}
|
|
485
485
|
}, t));
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Dn(e) {
|
|
488
488
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
489
489
|
}
|
|
490
490
|
function _n(e) {
|
|
@@ -506,7 +506,7 @@ function wt(e) {
|
|
|
506
506
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
507
507
|
const n = {};
|
|
508
508
|
return a.forEachEntry(e, (r, s) => {
|
|
509
|
-
t(
|
|
509
|
+
t(Dn(r), s, n, 0);
|
|
510
510
|
}), n;
|
|
511
511
|
}
|
|
512
512
|
return null;
|
|
@@ -537,7 +537,7 @@ const fe = {
|
|
|
537
537
|
let c;
|
|
538
538
|
if (o) {
|
|
539
539
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
540
|
-
return
|
|
540
|
+
return kn(t, this.formSerializer).toString();
|
|
541
541
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
542
542
|
const d = this.env && this.env.FormData;
|
|
543
543
|
return Oe(
|
|
@@ -1015,13 +1015,13 @@ const Et = (e) => {
|
|
|
1015
1015
|
function C() {
|
|
1016
1016
|
if (!w)
|
|
1017
1017
|
return;
|
|
1018
|
-
const
|
|
1018
|
+
const k = I.from(
|
|
1019
1019
|
"getAllResponseHeaders" in w && w.getAllResponseHeaders()
|
|
1020
1020
|
), N = {
|
|
1021
1021
|
data: !c || c === "text" || c === "json" ? w.responseText : w.response,
|
|
1022
1022
|
status: w.status,
|
|
1023
1023
|
statusText: w.statusText,
|
|
1024
|
-
headers:
|
|
1024
|
+
headers: k,
|
|
1025
1025
|
config: e,
|
|
1026
1026
|
request: w
|
|
1027
1027
|
};
|
|
@@ -1048,12 +1048,12 @@ const Et = (e) => {
|
|
|
1048
1048
|
)), w = null;
|
|
1049
1049
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in w && a.forEach(i.toJSON(), function(H, N) {
|
|
1050
1050
|
w.setRequestHeader(N, H);
|
|
1051
|
-
}), a.isUndefined(s.withCredentials) || (w.withCredentials = !!s.withCredentials), c && c !== "json" && (w.responseType = s.responseType), u && ([T, y] = we(u, !0), w.addEventListener("progress", T)), d && w.upload && ([h, A] = we(d), w.upload.addEventListener("progress", h), w.upload.addEventListener("loadend", A)), (s.cancelToken || s.signal) && (l = (
|
|
1052
|
-
w && (r(!
|
|
1051
|
+
}), a.isUndefined(s.withCredentials) || (w.withCredentials = !!s.withCredentials), c && c !== "json" && (w.responseType = s.responseType), u && ([T, y] = we(u, !0), w.addEventListener("progress", T)), d && w.upload && ([h, A] = we(d), w.upload.addEventListener("progress", h), w.upload.addEventListener("loadend", A)), (s.cancelToken || s.signal) && (l = (k) => {
|
|
1052
|
+
w && (r(!k || k.type ? new oe(null, e, w) : k), w.abort(), w = null);
|
|
1053
1053
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1054
|
-
const
|
|
1055
|
-
if (
|
|
1056
|
-
r(new E("Unsupported protocol " +
|
|
1054
|
+
const D = vn(s.url);
|
|
1055
|
+
if (D && M.protocols.indexOf(D) === -1) {
|
|
1056
|
+
r(new E("Unsupported protocol " + D + ":", E.ERR_BAD_REQUEST, e));
|
|
1057
1057
|
return;
|
|
1058
1058
|
}
|
|
1059
1059
|
w.send(o || null);
|
|
@@ -1228,32 +1228,32 @@ const er = async (e) => {
|
|
|
1228
1228
|
duplex: "half",
|
|
1229
1229
|
credentials: C ? h : void 0
|
|
1230
1230
|
});
|
|
1231
|
-
let
|
|
1232
|
-
const
|
|
1233
|
-
if (Ue && (c ||
|
|
1231
|
+
let D = await fetch(y);
|
|
1232
|
+
const k = Ue && (u === "stream" || u === "response");
|
|
1233
|
+
if (Ue && (c || k && S)) {
|
|
1234
1234
|
const N = {};
|
|
1235
1235
|
["status", "statusText", "headers"].forEach((Y) => {
|
|
1236
|
-
N[Y] =
|
|
1236
|
+
N[Y] = D[Y];
|
|
1237
1237
|
});
|
|
1238
|
-
const F = a.toFiniteNumber(
|
|
1238
|
+
const F = a.toFiniteNumber(D.headers.get("content-length")), [J, V] = c && Je(
|
|
1239
1239
|
F,
|
|
1240
1240
|
we(We(c), !0)
|
|
1241
1241
|
) || [];
|
|
1242
|
-
|
|
1243
|
-
Ke(
|
|
1242
|
+
D = new Response(
|
|
1243
|
+
Ke(D.body, Ye, J, () => {
|
|
1244
1244
|
V && V(), S && S();
|
|
1245
1245
|
}),
|
|
1246
1246
|
N
|
|
1247
1247
|
);
|
|
1248
1248
|
}
|
|
1249
1249
|
u = u || "text";
|
|
1250
|
-
let H = await be[a.findKey(be, u) || "text"](
|
|
1251
|
-
return !
|
|
1250
|
+
let H = await be[a.findKey(be, u) || "text"](D, e);
|
|
1251
|
+
return !k && S && S(), await new Promise((N, F) => {
|
|
1252
1252
|
gt(N, F, {
|
|
1253
1253
|
data: H,
|
|
1254
|
-
headers: I.from(
|
|
1255
|
-
status:
|
|
1256
|
-
statusText:
|
|
1254
|
+
headers: I.from(D.headers),
|
|
1255
|
+
status: D.status,
|
|
1256
|
+
statusText: D.statusText,
|
|
1257
1257
|
config: e,
|
|
1258
1258
|
request: y
|
|
1259
1259
|
});
|
|
@@ -1695,8 +1695,8 @@ const {
|
|
|
1695
1695
|
toFormData: $r,
|
|
1696
1696
|
AxiosHeaders: xr,
|
|
1697
1697
|
HttpStatusCode: Cr,
|
|
1698
|
-
formToJSON:
|
|
1699
|
-
getAdapter:
|
|
1698
|
+
formToJSON: kr,
|
|
1699
|
+
getAdapter: Dr,
|
|
1700
1700
|
mergeConfig: _r
|
|
1701
1701
|
} = U, Qe = nt.F_COUNTRY.enum.MY;
|
|
1702
1702
|
let et = null;
|
|
@@ -1805,16 +1805,16 @@ var Ct = { exports: {} };
|
|
|
1805
1805
|
(function(e, t) {
|
|
1806
1806
|
(function(n, r) {
|
|
1807
1807
|
e.exports = r();
|
|
1808
|
-
})(
|
|
1809
|
-
var n = 1e3, r = 6e4, s = 36e5, o = "millisecond", i = "second", c = "minute", d = "hour", u = "day", l = "week", h = "month", T = "quarter", A = "year", y = "date", S = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
1808
|
+
})(Dt, function() {
|
|
1809
|
+
var n = 1e3, r = 6e4, s = 36e5, o = "millisecond", i = "second", c = "minute", d = "hour", u = "day", l = "week", h = "month", T = "quarter", A = "year", y = "date", S = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(g) {
|
|
1810
1810
|
var m = ["th", "st", "nd", "rd"], f = g % 100;
|
|
1811
1811
|
return "[" + g + (m[(f - 20) % 10] || m[f] || m[0]) + "]";
|
|
1812
|
-
} },
|
|
1812
|
+
} }, k = function(g, m, f) {
|
|
1813
1813
|
var b = String(g);
|
|
1814
1814
|
return !b || b.length >= m ? g : "" + Array(m + 1 - b.length).join(f) + g;
|
|
1815
|
-
}, H = { s:
|
|
1815
|
+
}, H = { s: k, z: function(g) {
|
|
1816
1816
|
var m = -g.utcOffset(), f = Math.abs(m), b = Math.floor(f / 60), p = f % 60;
|
|
1817
|
-
return (m <= 0 ? "+" : "-") +
|
|
1817
|
+
return (m <= 0 ? "+" : "-") + k(b, 2, "0") + ":" + k(p, 2, "0");
|
|
1818
1818
|
}, m: function g(m, f) {
|
|
1819
1819
|
if (m.date() < f.date()) return -g(f, m);
|
|
1820
1820
|
var b = 12 * (f.year() - m.year()) + (f.month() - m.month()), p = m.clone().add(b, h), R = f - p < 0, O = m.clone().add(b + (R ? -1 : 1), h);
|
|
@@ -1826,7 +1826,7 @@ var Ct = { exports: {} };
|
|
|
1826
1826
|
}, u: function(g) {
|
|
1827
1827
|
return g === void 0;
|
|
1828
1828
|
} }, N = "en", F = {};
|
|
1829
|
-
F[N] =
|
|
1829
|
+
F[N] = D;
|
|
1830
1830
|
var J = "$isDayjsObject", V = function(g) {
|
|
1831
1831
|
return g instanceof de || !(!g || !g[J]);
|
|
1832
1832
|
}, Y = function g(m, f, b) {
|
|
@@ -2078,13 +2078,13 @@ var Ct = { exports: {} };
|
|
|
2078
2078
|
});
|
|
2079
2079
|
})(Ct);
|
|
2080
2080
|
var dr = Ct.exports;
|
|
2081
|
-
const Fr = /* @__PURE__ */
|
|
2081
|
+
const Fr = /* @__PURE__ */ kt(dr);
|
|
2082
2082
|
export {
|
|
2083
|
-
Fr as D,
|
|
2084
2083
|
ne as S,
|
|
2085
|
-
|
|
2084
|
+
dr as a,
|
|
2086
2085
|
Me as b,
|
|
2087
|
-
|
|
2086
|
+
Qe as c,
|
|
2087
|
+
Fr as d,
|
|
2088
2088
|
Pr as g,
|
|
2089
2089
|
Nr as m,
|
|
2090
2090
|
Ur as r,
|