@feedmepos/mf-menu 0.31.47-beta.1 → 0.31.47-prod
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/{App-VIGtqs5G.js → App-8_Vr3J1_.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-B6jt16vS.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BXLO4wRK.js} +3 -3
- package/dist/{Catalog-uDlAECfQ.js → Catalog-CtxYDf8U.js} +6 -6
- package/dist/{Category-CaqEwgwv.js → Category-eJPVt-__.js} +4 -4
- package/dist/{Category-BUoV11S7.js → Category-t5USmy5W.js} +6 -6
- package/dist/{CookingGuide-Bs25frtm.js → CookingGuide-C8WASY_U.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-fgEq6HLi.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-gkkLbJmk.js} +1 -1
- package/dist/{Group-DnMm_WR7.js → Group-CvCCFBQd.js} +1 -1
- package/dist/{Group-BsEIy2u8.js → Group-DHpRTZYX.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CLe7Jkna.js → Group.vue_vue_type_script_setup_true_lang-IAO1fyPW.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BRaM48s3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CzSyXGSd.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DfZpn1TS.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BsQYL-bI.js} +7 -7
- package/dist/{Ingredient-kfqgga9H.js → Ingredient-CQlggbtt.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DHG6RY2_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BbWRtnQ8.js} +2 -2
- package/dist/{LinkProductSideSheet-cu6J0m_I.js → LinkProductSideSheet-qWebf6C7.js} +3 -3
- package/dist/{MenuSetting-hhuV9sir.js → MenuSetting-Cr0V03uO.js} +5 -5
- package/dist/{PrintRoute-BNoGwWJC.js → PrintRoute-Be-cJqee.js} +4 -4
- package/dist/{Product-1np9S2wx.js → Product-D9PJsQWT.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BO59Tw8C.js → Product.vue_vue_type_script_setup_true_lang-Caq2QMeN.js} +13 -13
- package/dist/{ProductInternalTools-B07YONFL.js → ProductInternalTools-Z6roJxjy.js} +6 -6
- package/dist/{Products-Hmd2K1-w.js → Products-VEZuFeYe.js} +11 -11
- package/dist/{Publish-BPQtcmQ5.js → Publish-VtjhyJMe.js} +3 -3
- package/dist/{Recipe-PaF7B7TU.js → Recipe-6lpED5Jo.js} +4 -4
- package/dist/{Scheduler-CSx821Gh.js → Scheduler-C8ADLbDO.js} +3 -3
- package/dist/{ServingSequence-ClwEl9Ol.js → ServingSequence-blQqZaDi.js} +3 -3
- package/dist/{Setting-CiEZg35P.js → Setting-w3lilAhR.js} +5 -5
- package/dist/{Subcategory-BZwaXISZ.js → Subcategory-CKtwfQrk.js} +4 -4
- package/dist/{Takeaway-C7ViCpQ2.js → Takeaway-BIs7qdXT.js} +1 -1
- package/dist/{Takeaway-N5KpSjIG.js → Takeaway-PatPZog3.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CAjxPEct.js → Takeaway.vue_vue_type_script_setup_true_lang-DQJ1E-nv.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-ClqRNn77.js → Thumbnail.vue_vue_type_script_setup_true_lang-D3szwli1.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-x7D49PrL.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CzK37ydr.js} +15 -15
- package/dist/{Unit-0z8Z9hTW.js → Unit-D9K8aQkO.js} +2 -2
- package/dist/{Variant-BgSF19c4.js → Variant-Mlc7mOFQ.js} +3 -3
- package/dist/{_id_-B7i3CUjW.js → _id_-DSnUrneJ.js} +10 -10
- package/dist/{app-07LgYJVX.js → app-CFcEoZ6g.js} +393 -391
- package/dist/{app-RnNBTVqj.js → app-DAW9YGKu.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-C9LcqlS2.js → linked-status-CcbwR1Re.js} +2 -2
- package/dist/assets/{override-menu-5BEgm7SM.js → override-menu-dSXkmmTm.js} +2 -2
- package/dist/assets/{validate-menu-BnwkSx2G.js → validate-menu-8ibnWZpF.js} +2 -2
- package/dist/{catalog-BkaxLwWK.js → catalog-CyBWoMx9.js} +1 -1
- package/dist/{catalogSetting-7pdIA1_e.js → catalogSetting-BEuK6iSU.js} +1 -1
- package/dist/{category-DPt1bw69.js → category-CH86FpDF.js} +1 -1
- package/dist/{currency-BbE0p4Ac.js → currency-B7e3Bn-5.js} +1 -1
- package/dist/{customAttributes-ByVDDQph.js → customAttributes-C5SxhXst.js} +1 -1
- package/dist/{dayjs.min-ClIpwyI-.js → dayjs.min-0wOo37zY.js} +1 -1
- package/dist/{index-CUPT5mff.js → index-BQRQtKtb.js} +4 -4
- package/dist/{index-BF6HNZe8.js → index-C4wpev23.js} +1 -1
- package/dist/{index-CLhpWOjf.js → index-CcWwRY7j.js} +3 -3
- package/dist/{index-D2dbTPjH.js → index-wQFnsXZM.js} +1 -1
- package/dist/{item-h5iEa9LL.js → item-YOVwd-Jf.js} +677 -677
- package/dist/{jszip.min-j5tvWRj0.js → jszip.min-DdVRNxeR.js} +353 -353
- package/dist/{menu-Do2p30_3.js → menu-5V5zXzja.js} +1 -1
- package/dist/{menu-DZBf1BFb.js → menu-DPDGA5BU.js} +7 -7
- package/dist/{menuV2-DQ0613QG.js → menuV2-DrMICNsd.js} +59 -59
- package/dist/{priceTier-BsKYBjOX.js → priceTier-ZWgpadCg.js} +1 -1
- package/dist/{scheduler-BX83YTAg.js → scheduler-BhONdYht.js} +4 -4
- package/dist/{subcategory-Cvh2hdhi.js → subcategory-BWp35Kp3.js} +2 -2
- package/dist/{toExcel-Di12gvsy.js → toExcel-D0K9W29E.js} +2 -2
- package/dist/{unit-4OdzVRRh.js → unit-DkmcIwvs.js} +2 -2
- package/package.json +1 -1
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useBreakpoints as
|
|
3
|
-
import { Permission as
|
|
4
|
-
let
|
|
1
|
+
import { ref as I, computed as ie, defineComponent as ce, createElementBlock as R, openBlock as x, Fragment as be, renderList as ye, normalizeClass as ot, createElementVNode as q, createCommentVNode as he, toDisplayString as Q, pushScopeId as rt, popScopeId as nt, watch as fe, nextTick as ve, onMounted as lt, onBeforeUnmount as st, normalizeStyle as ct, renderSlot as ut, resolveComponent as dt, createBlock as pt, withCtx as mt, createVNode as gt, defineAsyncComponent as _t } from "vue";
|
|
2
|
+
import { useBreakpoints as bt } from "@feedmepos/ui-library";
|
|
3
|
+
import { Permission as ke, withPermission as y } from "@feedmepos/mf-common";
|
|
4
|
+
let F;
|
|
5
5
|
const yt = new Uint8Array(16);
|
|
6
6
|
function ht() {
|
|
7
|
-
if (!
|
|
7
|
+
if (!F && (F = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !F))
|
|
8
8
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
9
|
-
return
|
|
9
|
+
return F(yt);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const w = [];
|
|
12
12
|
for (let e = 0; e < 256; ++e)
|
|
13
|
-
|
|
13
|
+
w.push((e + 256).toString(16).slice(1));
|
|
14
14
|
function ft(e, t = 0) {
|
|
15
|
-
return
|
|
15
|
+
return w[e[t + 0]] + w[e[t + 1]] + w[e[t + 2]] + w[e[t + 3]] + "-" + w[e[t + 4]] + w[e[t + 5]] + "-" + w[e[t + 6]] + w[e[t + 7]] + "-" + w[e[t + 8]] + w[e[t + 9]] + "-" + w[e[t + 10]] + w[e[t + 11]] + w[e[t + 12]] + w[e[t + 13]] + w[e[t + 14]] + w[e[t + 15]];
|
|
16
16
|
}
|
|
17
|
-
const vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
17
|
+
const vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), we = {
|
|
18
18
|
randomUUID: vt
|
|
19
19
|
};
|
|
20
20
|
function kt(e, t, a) {
|
|
21
|
-
if (
|
|
22
|
-
return
|
|
21
|
+
if (we.randomUUID && !e)
|
|
22
|
+
return we.randomUUID();
|
|
23
23
|
e = e || {};
|
|
24
24
|
const i = e.random || (e.rng || ht)();
|
|
25
25
|
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, ft(i);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Ue(e, t) {
|
|
28
28
|
return function() {
|
|
29
29
|
return e.apply(t, arguments);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
const { toString: wt } = Object.prototype, { getPrototypeOf:
|
|
32
|
+
const { toString: wt } = Object.prototype, { getPrototypeOf: ue } = Object, V = /* @__PURE__ */ ((e) => (t) => {
|
|
33
33
|
const a = wt.call(t);
|
|
34
34
|
return e[a] || (e[a] = a.slice(8, -1).toLowerCase());
|
|
35
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
35
|
+
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => V(t) === e), H = (e) => (t) => typeof t === e, { isArray: U } = Array, L = H("undefined");
|
|
36
36
|
function At(e) {
|
|
37
|
-
return e !== null && !
|
|
37
|
+
return e !== null && !L(e) && e.constructor !== null && !L(e.constructor) && S(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const De = C("ArrayBuffer");
|
|
40
40
|
function St(e) {
|
|
41
41
|
let t;
|
|
42
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
42
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && De(e.buffer), t;
|
|
43
43
|
}
|
|
44
|
-
const xt =
|
|
45
|
-
if (
|
|
44
|
+
const xt = H("string"), S = H("function"), Le = H("number"), J = (e) => e !== null && typeof e == "object", Ot = (e) => e === !0 || e === !1, M = (e) => {
|
|
45
|
+
if (V(e) !== "object")
|
|
46
46
|
return !1;
|
|
47
|
-
const t =
|
|
47
|
+
const t = ue(e);
|
|
48
48
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
49
|
-
}, Ct =
|
|
49
|
+
}, Ct = C("Date"), Rt = C("File"), Et = C("Blob"), Pt = C("FileList"), qt = (e) => J(e) && S(e.pipe), Tt = (e) => {
|
|
50
50
|
let t;
|
|
51
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
52
|
-
t === "object" &&
|
|
53
|
-
}, Nt =
|
|
54
|
-
function
|
|
51
|
+
return e && (typeof FormData == "function" && e instanceof FormData || S(e.append) && ((t = V(e)) === "formdata" || // detect form-data instance
|
|
52
|
+
t === "object" && S(e.toString) && e.toString() === "[object FormData]"));
|
|
53
|
+
}, Nt = C("URLSearchParams"), It = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
54
|
+
function j(e, t, { allOwnKeys: a = !1 } = {}) {
|
|
55
55
|
if (e === null || typeof e > "u")
|
|
56
56
|
return;
|
|
57
57
|
let i, o;
|
|
58
|
-
if (typeof e != "object" && (e = [e]),
|
|
58
|
+
if (typeof e != "object" && (e = [e]), U(e))
|
|
59
59
|
for (i = 0, o = e.length; i < o; i++)
|
|
60
60
|
t.call(null, e[i], i, e);
|
|
61
61
|
else {
|
|
@@ -65,7 +65,7 @@ function L(e, t, { allOwnKeys: a = !1 } = {}) {
|
|
|
65
65
|
c = r[i], t.call(null, e[c], c, e);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function je(e, t) {
|
|
69
69
|
t = t.toLowerCase();
|
|
70
70
|
const a = Object.keys(e);
|
|
71
71
|
let i = a.length, o;
|
|
@@ -74,18 +74,18 @@ function Le(e, t) {
|
|
|
74
74
|
return o;
|
|
75
75
|
return null;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
function
|
|
79
|
-
const { caseless: e } =
|
|
80
|
-
const r = e &&
|
|
81
|
-
|
|
77
|
+
const Be = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Fe = (e) => !L(e) && e !== Be;
|
|
78
|
+
function oe() {
|
|
79
|
+
const { caseless: e } = Fe(this) && this || {}, t = {}, a = (i, o) => {
|
|
80
|
+
const r = e && je(t, o) || o;
|
|
81
|
+
M(t[r]) && M(i) ? t[r] = oe(t[r], i) : M(i) ? t[r] = oe({}, i) : U(i) ? t[r] = i.slice() : t[r] = i;
|
|
82
82
|
};
|
|
83
83
|
for (let i = 0, o = arguments.length; i < o; i++)
|
|
84
|
-
arguments[i] &&
|
|
84
|
+
arguments[i] && j(arguments[i], a);
|
|
85
85
|
return t;
|
|
86
86
|
}
|
|
87
|
-
const Ut = (e, t, a, { allOwnKeys: i } = {}) => (
|
|
88
|
-
a &&
|
|
87
|
+
const Ut = (e, t, a, { allOwnKeys: i } = {}) => (j(t, (o, r) => {
|
|
88
|
+
a && S(o) ? e[r] = Ue(o, a) : e[r] = o;
|
|
89
89
|
}, { allOwnKeys: i }), e), Dt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Lt = (e, t, a, i) => {
|
|
90
90
|
e.prototype = Object.create(t.prototype, i), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
91
91
|
value: t.prototype
|
|
@@ -98,7 +98,7 @@ const Ut = (e, t, a, { allOwnKeys: i } = {}) => (L(t, (o, r) => {
|
|
|
98
98
|
do {
|
|
99
99
|
for (o = Object.getOwnPropertyNames(e), r = o.length; r-- > 0; )
|
|
100
100
|
n = o[r], (!i || i(n, e, t)) && !c[n] && (t[n] = e[n], c[n] = !0);
|
|
101
|
-
e = a !== !1 &&
|
|
101
|
+
e = a !== !1 && ue(e);
|
|
102
102
|
} while (e && (!a || a(e, t)) && e !== Object.prototype);
|
|
103
103
|
return t;
|
|
104
104
|
}, Bt = (e, t, a) => {
|
|
@@ -108,16 +108,16 @@ const Ut = (e, t, a, { allOwnKeys: i } = {}) => (L(t, (o, r) => {
|
|
|
108
108
|
}, Ft = (e) => {
|
|
109
109
|
if (!e)
|
|
110
110
|
return null;
|
|
111
|
-
if (
|
|
111
|
+
if (U(e))
|
|
112
112
|
return e;
|
|
113
113
|
let t = e.length;
|
|
114
|
-
if (!
|
|
114
|
+
if (!Le(t))
|
|
115
115
|
return null;
|
|
116
116
|
const a = new Array(t);
|
|
117
117
|
for (; t-- > 0; )
|
|
118
118
|
a[t] = e[t];
|
|
119
119
|
return a;
|
|
120
|
-
}, Mt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
120
|
+
}, Mt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)), $t = (e, t) => {
|
|
121
121
|
const a = (e && e[Symbol.iterator]).call(e);
|
|
122
122
|
let i;
|
|
123
123
|
for (; (i = a.next()) && !i.done; ) {
|
|
@@ -130,23 +130,23 @@ const Ut = (e, t, a, { allOwnKeys: i } = {}) => (L(t, (o, r) => {
|
|
|
130
130
|
for (; (a = e.exec(t)) !== null; )
|
|
131
131
|
i.push(a);
|
|
132
132
|
return i;
|
|
133
|
-
}, Gt =
|
|
133
|
+
}, Gt = C("HTMLFormElement"), Vt = (e) => e.toLowerCase().replace(
|
|
134
134
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
135
135
|
function(t, a, i) {
|
|
136
136
|
return a.toUpperCase() + i;
|
|
137
137
|
}
|
|
138
|
-
),
|
|
138
|
+
), Ae = (({ hasOwnProperty: e }) => (t, a) => e.call(t, a))(Object.prototype), Ht = C("RegExp"), Me = (e, t) => {
|
|
139
139
|
const a = Object.getOwnPropertyDescriptors(e), i = {};
|
|
140
|
-
|
|
140
|
+
j(a, (o, r) => {
|
|
141
141
|
let n;
|
|
142
142
|
(n = t(o, r, e)) !== !1 && (i[r] = n || o);
|
|
143
143
|
}), Object.defineProperties(e, i);
|
|
144
144
|
}, Jt = (e) => {
|
|
145
|
-
|
|
146
|
-
if (
|
|
145
|
+
Me(e, (t, a) => {
|
|
146
|
+
if (S(e) && ["arguments", "caller", "callee"].indexOf(a) !== -1)
|
|
147
147
|
return !1;
|
|
148
148
|
const i = e[a];
|
|
149
|
-
if (
|
|
149
|
+
if (S(i)) {
|
|
150
150
|
if (t.enumerable = !1, "writable" in t) {
|
|
151
151
|
t.writable = !1;
|
|
152
152
|
return;
|
|
@@ -162,13 +162,13 @@ const Ut = (e, t, a, { allOwnKeys: i } = {}) => (L(t, (o, r) => {
|
|
|
162
162
|
a[r] = !0;
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
|
-
return
|
|
165
|
+
return U(e) ? i(e) : i(String(e).split(t)), a;
|
|
166
166
|
}, Kt = () => {
|
|
167
|
-
}, Yt = (e, t) => (e = +e, Number.isFinite(e) ? e : t),
|
|
168
|
-
DIGIT:
|
|
169
|
-
ALPHA:
|
|
170
|
-
ALPHA_DIGIT:
|
|
171
|
-
}, Qt = (e = 16, t =
|
|
167
|
+
}, Yt = (e, t) => (e = +e, Number.isFinite(e) ? e : t), X = "abcdefghijklmnopqrstuvwxyz", Se = "0123456789", $e = {
|
|
168
|
+
DIGIT: Se,
|
|
169
|
+
ALPHA: X,
|
|
170
|
+
ALPHA_DIGIT: X + X.toUpperCase() + Se
|
|
171
|
+
}, Qt = (e = 16, t = $e.ALPHA_DIGIT) => {
|
|
172
172
|
let a = "";
|
|
173
173
|
const { length: i } = t;
|
|
174
174
|
for (; e--; )
|
|
@@ -176,73 +176,73 @@ const Ut = (e, t, a, { allOwnKeys: i } = {}) => (L(t, (o, r) => {
|
|
|
176
176
|
return a;
|
|
177
177
|
};
|
|
178
178
|
function Xt(e) {
|
|
179
|
-
return !!(e &&
|
|
179
|
+
return !!(e && S(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
180
180
|
}
|
|
181
181
|
const Zt = (e) => {
|
|
182
182
|
const t = new Array(10), a = (i, o) => {
|
|
183
|
-
if (
|
|
183
|
+
if (J(i)) {
|
|
184
184
|
if (t.indexOf(i) >= 0)
|
|
185
185
|
return;
|
|
186
186
|
if (!("toJSON" in i)) {
|
|
187
187
|
t[o] = i;
|
|
188
|
-
const r =
|
|
189
|
-
return
|
|
188
|
+
const r = U(i) ? [] : {};
|
|
189
|
+
return j(i, (n, c) => {
|
|
190
190
|
const p = a(n, o + 1);
|
|
191
|
-
!
|
|
191
|
+
!L(p) && (r[c] = p);
|
|
192
192
|
}), t[o] = void 0, r;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
return i;
|
|
196
196
|
};
|
|
197
197
|
return a(e, 0);
|
|
198
|
-
}, ea =
|
|
199
|
-
isArray:
|
|
200
|
-
isArrayBuffer:
|
|
198
|
+
}, ea = C("AsyncFunction"), ta = (e) => e && (J(e) || S(e)) && S(e.then) && S(e.catch), l = {
|
|
199
|
+
isArray: U,
|
|
200
|
+
isArrayBuffer: De,
|
|
201
201
|
isBuffer: At,
|
|
202
202
|
isFormData: Tt,
|
|
203
203
|
isArrayBufferView: St,
|
|
204
204
|
isString: xt,
|
|
205
|
-
isNumber:
|
|
205
|
+
isNumber: Le,
|
|
206
206
|
isBoolean: Ot,
|
|
207
|
-
isObject:
|
|
208
|
-
isPlainObject:
|
|
209
|
-
isUndefined:
|
|
207
|
+
isObject: J,
|
|
208
|
+
isPlainObject: M,
|
|
209
|
+
isUndefined: L,
|
|
210
210
|
isDate: Ct,
|
|
211
211
|
isFile: Rt,
|
|
212
212
|
isBlob: Et,
|
|
213
213
|
isRegExp: Ht,
|
|
214
|
-
isFunction:
|
|
214
|
+
isFunction: S,
|
|
215
215
|
isStream: qt,
|
|
216
216
|
isURLSearchParams: Nt,
|
|
217
217
|
isTypedArray: Mt,
|
|
218
218
|
isFileList: Pt,
|
|
219
|
-
forEach:
|
|
220
|
-
merge:
|
|
219
|
+
forEach: j,
|
|
220
|
+
merge: oe,
|
|
221
221
|
extend: Ut,
|
|
222
222
|
trim: It,
|
|
223
223
|
stripBOM: Dt,
|
|
224
224
|
inherits: Lt,
|
|
225
225
|
toFlatObject: jt,
|
|
226
|
-
kindOf:
|
|
227
|
-
kindOfTest:
|
|
226
|
+
kindOf: V,
|
|
227
|
+
kindOfTest: C,
|
|
228
228
|
endsWith: Bt,
|
|
229
229
|
toArray: Ft,
|
|
230
230
|
forEachEntry: $t,
|
|
231
231
|
matchAll: zt,
|
|
232
232
|
isHTMLForm: Gt,
|
|
233
|
-
hasOwnProperty:
|
|
234
|
-
hasOwnProp:
|
|
233
|
+
hasOwnProperty: Ae,
|
|
234
|
+
hasOwnProp: Ae,
|
|
235
235
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
236
|
-
reduceDescriptors:
|
|
236
|
+
reduceDescriptors: Me,
|
|
237
237
|
freezeMethods: Jt,
|
|
238
238
|
toObjectSet: Wt,
|
|
239
239
|
toCamelCase: Vt,
|
|
240
240
|
noop: Kt,
|
|
241
241
|
toFiniteNumber: Yt,
|
|
242
|
-
findKey:
|
|
243
|
-
global:
|
|
244
|
-
isContextDefined:
|
|
245
|
-
ALPHABET:
|
|
242
|
+
findKey: je,
|
|
243
|
+
global: Be,
|
|
244
|
+
isContextDefined: Fe,
|
|
245
|
+
ALPHABET: $e,
|
|
246
246
|
generateString: Qt,
|
|
247
247
|
isSpecCompliantForm: Xt,
|
|
248
248
|
toJSONObject: Zt,
|
|
@@ -273,7 +273,7 @@ l.inherits(_, Error, {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
const
|
|
276
|
+
const ze = _.prototype, Ge = {};
|
|
277
277
|
[
|
|
278
278
|
"ERR_BAD_OPTION_VALUE",
|
|
279
279
|
"ERR_BAD_OPTION",
|
|
@@ -289,35 +289,35 @@ const $e = _.prototype, ze = {};
|
|
|
289
289
|
"ERR_INVALID_URL"
|
|
290
290
|
// eslint-disable-next-line func-names
|
|
291
291
|
].forEach((e) => {
|
|
292
|
-
|
|
292
|
+
Ge[e] = { value: e };
|
|
293
293
|
});
|
|
294
|
-
Object.defineProperties(_,
|
|
295
|
-
Object.defineProperty(
|
|
294
|
+
Object.defineProperties(_, Ge);
|
|
295
|
+
Object.defineProperty(ze, "isAxiosError", { value: !0 });
|
|
296
296
|
_.from = (e, t, a, i, o, r) => {
|
|
297
|
-
const n = Object.create(
|
|
297
|
+
const n = Object.create(ze);
|
|
298
298
|
return l.toFlatObject(e, n, function(c) {
|
|
299
299
|
return c !== Error.prototype;
|
|
300
300
|
}, (c) => c !== "isAxiosError"), _.call(n, e.message, t, a, i, o), n.cause = e, n.name = e.name, r && Object.assign(n, r), n;
|
|
301
301
|
};
|
|
302
302
|
const aa = null;
|
|
303
|
-
function
|
|
303
|
+
function re(e) {
|
|
304
304
|
return l.isPlainObject(e) || l.isArray(e);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function Ve(e) {
|
|
307
307
|
return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function xe(e, t, a) {
|
|
310
310
|
return e ? e.concat(t).map(function(i, o) {
|
|
311
|
-
return i =
|
|
311
|
+
return i = Ve(i), !a && o ? "[" + i + "]" : i;
|
|
312
312
|
}).join(a ? "." : "") : t;
|
|
313
313
|
}
|
|
314
314
|
function ia(e) {
|
|
315
|
-
return l.isArray(e) && !e.some(
|
|
315
|
+
return l.isArray(e) && !e.some(re);
|
|
316
316
|
}
|
|
317
317
|
const oa = l.toFlatObject(l, {}, null, function(e) {
|
|
318
318
|
return /^is[A-Z]/.test(e);
|
|
319
319
|
});
|
|
320
|
-
function
|
|
320
|
+
function W(e, t, a) {
|
|
321
321
|
if (!l.isObject(e))
|
|
322
322
|
throw new TypeError("target must be an object");
|
|
323
323
|
t = t || new FormData(), a = l.toFlatObject(a, {
|
|
@@ -339,47 +339,47 @@ function J(e, t, a) {
|
|
|
339
339
|
throw new _("Blob is not supported. Use a Buffer instead.");
|
|
340
340
|
return l.isArrayBuffer(g) || l.isTypedArray(g) ? c && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
341
341
|
}
|
|
342
|
-
function d(g, u,
|
|
343
|
-
let
|
|
344
|
-
if (g && !
|
|
342
|
+
function d(g, u, v) {
|
|
343
|
+
let A = g;
|
|
344
|
+
if (g && !v && typeof g == "object") {
|
|
345
345
|
if (l.endsWith(u, "{}"))
|
|
346
346
|
u = i ? u : u.slice(0, -2), g = JSON.stringify(g);
|
|
347
|
-
else if (l.isArray(g) && ia(g) || (l.isFileList(g) || l.endsWith(u, "[]")) && (
|
|
348
|
-
return u =
|
|
349
|
-
!(l.isUndefined(
|
|
347
|
+
else if (l.isArray(g) && ia(g) || (l.isFileList(g) || l.endsWith(u, "[]")) && (A = l.toArray(g)))
|
|
348
|
+
return u = Ve(u), A.forEach(function(Y, it) {
|
|
349
|
+
!(l.isUndefined(Y) || Y === null) && t.append(
|
|
350
350
|
// eslint-disable-next-line no-nested-ternary
|
|
351
|
-
n === !0 ?
|
|
352
|
-
p(
|
|
351
|
+
n === !0 ? xe([u], it, r) : n === null ? u : u + "[]",
|
|
352
|
+
p(Y)
|
|
353
353
|
);
|
|
354
354
|
}), !1;
|
|
355
355
|
}
|
|
356
|
-
return
|
|
356
|
+
return re(g) ? !0 : (t.append(xe(v, u, r), p(g)), !1);
|
|
357
357
|
}
|
|
358
358
|
const s = [], m = Object.assign(oa, {
|
|
359
359
|
defaultVisitor: d,
|
|
360
360
|
convertValue: p,
|
|
361
|
-
isVisitable:
|
|
361
|
+
isVisitable: re
|
|
362
362
|
});
|
|
363
|
-
function
|
|
363
|
+
function f(g, u) {
|
|
364
364
|
if (!l.isUndefined(g)) {
|
|
365
365
|
if (s.indexOf(g) !== -1)
|
|
366
366
|
throw Error("Circular reference detected in " + u.join("."));
|
|
367
|
-
s.push(g), l.forEach(g, function(
|
|
368
|
-
(!(l.isUndefined(
|
|
367
|
+
s.push(g), l.forEach(g, function(v, A) {
|
|
368
|
+
(!(l.isUndefined(v) || v === null) && o.call(
|
|
369
369
|
t,
|
|
370
|
-
|
|
371
|
-
l.isString(
|
|
370
|
+
v,
|
|
371
|
+
l.isString(A) ? A.trim() : A,
|
|
372
372
|
u,
|
|
373
373
|
m
|
|
374
|
-
)) === !0 &&
|
|
374
|
+
)) === !0 && f(v, u ? u.concat(A) : [A]);
|
|
375
375
|
}), s.pop();
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
if (!l.isObject(e))
|
|
379
379
|
throw new TypeError("data must be an object");
|
|
380
|
-
return
|
|
380
|
+
return f(e), t;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Oe(e) {
|
|
383
383
|
const t = {
|
|
384
384
|
"!": "%21",
|
|
385
385
|
"'": "%27",
|
|
@@ -393,17 +393,17 @@ function xe(e) {
|
|
|
393
393
|
return t[a];
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
this._pairs = [], e &&
|
|
396
|
+
function de(e, t) {
|
|
397
|
+
this._pairs = [], e && W(e, this, t);
|
|
398
398
|
}
|
|
399
|
-
const
|
|
400
|
-
|
|
399
|
+
const He = de.prototype;
|
|
400
|
+
He.append = function(e, t) {
|
|
401
401
|
this._pairs.push([e, t]);
|
|
402
402
|
};
|
|
403
|
-
|
|
403
|
+
He.toString = function(e) {
|
|
404
404
|
const t = e ? function(a) {
|
|
405
|
-
return e.call(this, a,
|
|
406
|
-
} :
|
|
405
|
+
return e.call(this, a, Oe);
|
|
406
|
+
} : Oe;
|
|
407
407
|
return this._pairs.map(function(a) {
|
|
408
408
|
return t(a[0]) + "=" + t(a[1]);
|
|
409
409
|
}, "").join("&");
|
|
@@ -411,18 +411,18 @@ Ve.toString = function(e) {
|
|
|
411
411
|
function ra(e) {
|
|
412
412
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Je(e, t, a) {
|
|
415
415
|
if (!t)
|
|
416
416
|
return e;
|
|
417
417
|
const i = a && a.encode || ra, o = a && a.serialize;
|
|
418
418
|
let r;
|
|
419
|
-
if (o ? r = o(t, a) : r = l.isURLSearchParams(t) ? t.toString() : new
|
|
419
|
+
if (o ? r = o(t, a) : r = l.isURLSearchParams(t) ? t.toString() : new de(t, a).toString(i), r) {
|
|
420
420
|
const n = e.indexOf("#");
|
|
421
421
|
n !== -1 && (e = e.slice(0, n)), e += (e.indexOf("?") === -1 ? "?" : "&") + r;
|
|
422
422
|
}
|
|
423
423
|
return e;
|
|
424
424
|
}
|
|
425
|
-
class
|
|
425
|
+
class Ce {
|
|
426
426
|
constructor() {
|
|
427
427
|
this.handlers = [];
|
|
428
428
|
}
|
|
@@ -476,11 +476,11 @@ class Oe {
|
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
const
|
|
479
|
+
const We = {
|
|
480
480
|
silentJSONParsing: !0,
|
|
481
481
|
forcedJSONParsing: !0,
|
|
482
482
|
clarifyTimeoutError: !1
|
|
483
|
-
}, na = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
483
|
+
}, na = typeof URLSearchParams < "u" ? URLSearchParams : de, la = typeof FormData < "u" ? FormData : null, sa = typeof Blob < "u" ? Blob : null, ca = {
|
|
484
484
|
isBrowser: !0,
|
|
485
485
|
classes: {
|
|
486
486
|
URLSearchParams: na,
|
|
@@ -488,20 +488,20 @@ const Je = {
|
|
|
488
488
|
Blob: sa
|
|
489
489
|
},
|
|
490
490
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
491
|
-
},
|
|
491
|
+
}, Ke = typeof window < "u" && typeof document < "u", ua = ((e) => Ke && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), da = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
492
492
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
493
493
|
__proto__: null,
|
|
494
|
-
hasBrowserEnv:
|
|
494
|
+
hasBrowserEnv: Ke,
|
|
495
495
|
hasStandardBrowserEnv: ua,
|
|
496
496
|
hasStandardBrowserWebWorkerEnv: da
|
|
497
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
497
|
+
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
498
498
|
...pa,
|
|
499
499
|
...ca
|
|
500
500
|
};
|
|
501
501
|
function ma(e, t) {
|
|
502
|
-
return
|
|
502
|
+
return W(e, new O.classes.URLSearchParams(), Object.assign({
|
|
503
503
|
visitor: function(a, i, o, r) {
|
|
504
|
-
return
|
|
504
|
+
return O.isNode && l.isBuffer(a) ? (this.append(i, a.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
505
505
|
}
|
|
506
506
|
}, t));
|
|
507
507
|
}
|
|
@@ -517,7 +517,7 @@ function _a(e) {
|
|
|
517
517
|
r = a[i], t[r] = e[r];
|
|
518
518
|
return t;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Ye(e) {
|
|
521
521
|
function t(a, i, o, r) {
|
|
522
522
|
let n = a[r++];
|
|
523
523
|
if (n === "__proto__")
|
|
@@ -543,13 +543,13 @@ function ba(e, t, a) {
|
|
|
543
543
|
}
|
|
544
544
|
return (a || JSON.stringify)(e);
|
|
545
545
|
}
|
|
546
|
-
const
|
|
547
|
-
transitional:
|
|
546
|
+
const pe = {
|
|
547
|
+
transitional: We,
|
|
548
548
|
adapter: ["xhr", "http"],
|
|
549
549
|
transformRequest: [function(e, t) {
|
|
550
550
|
const a = t.getContentType() || "", i = a.indexOf("application/json") > -1, o = l.isObject(e);
|
|
551
551
|
if (o && l.isHTMLForm(e) && (e = new FormData(e)), l.isFormData(e))
|
|
552
|
-
return i && i ? JSON.stringify(
|
|
552
|
+
return i && i ? JSON.stringify(Ye(e)) : e;
|
|
553
553
|
if (l.isArrayBuffer(e) || l.isBuffer(e) || l.isStream(e) || l.isFile(e) || l.isBlob(e))
|
|
554
554
|
return e;
|
|
555
555
|
if (l.isArrayBufferView(e))
|
|
@@ -562,7 +562,7 @@ const de = {
|
|
|
562
562
|
return ma(e, this.formSerializer).toString();
|
|
563
563
|
if ((r = l.isFileList(e)) || a.indexOf("multipart/form-data") > -1) {
|
|
564
564
|
const n = this.env && this.env.FormData;
|
|
565
|
-
return
|
|
565
|
+
return W(
|
|
566
566
|
r ? { "files[]": e } : e,
|
|
567
567
|
n && new n(),
|
|
568
568
|
this.formSerializer
|
|
@@ -572,7 +572,7 @@ const de = {
|
|
|
572
572
|
return o || i ? (t.setContentType("application/json", !1), ba(e)) : e;
|
|
573
573
|
}],
|
|
574
574
|
transformResponse: [function(e) {
|
|
575
|
-
const t = this.transitional ||
|
|
575
|
+
const t = this.transitional || pe.transitional, a = t && t.forcedJSONParsing, i = this.responseType === "json";
|
|
576
576
|
if (e && l.isString(e) && (a && !this.responseType || i)) {
|
|
577
577
|
const o = !(t && t.silentJSONParsing) && i;
|
|
578
578
|
try {
|
|
@@ -594,8 +594,8 @@ const de = {
|
|
|
594
594
|
maxContentLength: -1,
|
|
595
595
|
maxBodyLength: -1,
|
|
596
596
|
env: {
|
|
597
|
-
FormData:
|
|
598
|
-
Blob:
|
|
597
|
+
FormData: O.classes.FormData,
|
|
598
|
+
Blob: O.classes.Blob
|
|
599
599
|
},
|
|
600
600
|
validateStatus: function(e) {
|
|
601
601
|
return e >= 200 && e < 300;
|
|
@@ -608,9 +608,9 @@ const de = {
|
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
610
|
l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
611
|
-
|
|
611
|
+
pe.headers[e] = {};
|
|
612
612
|
});
|
|
613
|
-
const
|
|
613
|
+
const me = pe, ya = l.toObjectSet([
|
|
614
614
|
"age",
|
|
615
615
|
"authorization",
|
|
616
616
|
"content-length",
|
|
@@ -635,12 +635,12 @@ const pe = de, ya = l.toObjectSet([
|
|
|
635
635
|
`).forEach(function(r) {
|
|
636
636
|
o = r.indexOf(":"), a = r.substring(0, o).trim().toLowerCase(), i = r.substring(o + 1).trim(), !(!a || t[a] && ya[a]) && (a === "set-cookie" ? t[a] ? t[a].push(i) : t[a] = [i] : t[a] = t[a] ? t[a] + ", " + i : i);
|
|
637
637
|
}), t;
|
|
638
|
-
},
|
|
639
|
-
function
|
|
638
|
+
}, Re = Symbol("internals");
|
|
639
|
+
function D(e) {
|
|
640
640
|
return e && String(e).trim().toLowerCase();
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
return e === !1 || e == null ? e : l.isArray(e) ? e.map(
|
|
642
|
+
function $(e) {
|
|
643
|
+
return e === !1 || e == null ? e : l.isArray(e) ? e.map($) : String(e);
|
|
644
644
|
}
|
|
645
645
|
function fa(e) {
|
|
646
646
|
const t = /* @__PURE__ */ Object.create(null), a = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -650,7 +650,7 @@ function fa(e) {
|
|
|
650
650
|
return t;
|
|
651
651
|
}
|
|
652
652
|
const va = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
653
|
-
function
|
|
653
|
+
function Z(e, t, a, i, o) {
|
|
654
654
|
if (l.isFunction(i))
|
|
655
655
|
return i.call(this, t, a);
|
|
656
656
|
if (o && (t = a), !!l.isString(t)) {
|
|
@@ -674,24 +674,24 @@ function wa(e, t) {
|
|
|
674
674
|
});
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
|
-
class
|
|
677
|
+
class K {
|
|
678
678
|
constructor(t) {
|
|
679
679
|
t && this.set(t);
|
|
680
680
|
}
|
|
681
681
|
set(t, a, i) {
|
|
682
682
|
const o = this;
|
|
683
683
|
function r(c, p, d) {
|
|
684
|
-
const s =
|
|
684
|
+
const s = D(p);
|
|
685
685
|
if (!s)
|
|
686
686
|
throw new Error("header name must be a non-empty string");
|
|
687
687
|
const m = l.findKey(o, s);
|
|
688
|
-
(!m || o[m] === void 0 || d === !0 || d === void 0 && o[m] !== !1) && (o[m || p] =
|
|
688
|
+
(!m || o[m] === void 0 || d === !0 || d === void 0 && o[m] !== !1) && (o[m || p] = $(c));
|
|
689
689
|
}
|
|
690
690
|
const n = (c, p) => l.forEach(c, (d, s) => r(d, s, p));
|
|
691
691
|
return l.isPlainObject(t) || t instanceof this.constructor ? n(t, a) : l.isString(t) && (t = t.trim()) && !va(t) ? n(ha(t), a) : t != null && r(a, t, i), this;
|
|
692
692
|
}
|
|
693
693
|
get(t, a) {
|
|
694
|
-
if (t =
|
|
694
|
+
if (t = D(t), t) {
|
|
695
695
|
const i = l.findKey(this, t);
|
|
696
696
|
if (i) {
|
|
697
697
|
const o = this[i];
|
|
@@ -708,9 +708,9 @@ class W {
|
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
has(t, a) {
|
|
711
|
-
if (t =
|
|
711
|
+
if (t = D(t), t) {
|
|
712
712
|
const i = l.findKey(this, t);
|
|
713
|
-
return !!(i && this[i] !== void 0 && (!a ||
|
|
713
|
+
return !!(i && this[i] !== void 0 && (!a || Z(this, this[i], i, a)));
|
|
714
714
|
}
|
|
715
715
|
return !1;
|
|
716
716
|
}
|
|
@@ -718,9 +718,9 @@ class W {
|
|
|
718
718
|
const i = this;
|
|
719
719
|
let o = !1;
|
|
720
720
|
function r(n) {
|
|
721
|
-
if (n =
|
|
721
|
+
if (n = D(n), n) {
|
|
722
722
|
const c = l.findKey(i, n);
|
|
723
|
-
c && (!a ||
|
|
723
|
+
c && (!a || Z(i, i[c], c, a)) && (delete i[c], o = !0);
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
return l.isArray(t) ? t.forEach(r) : r(t), o;
|
|
@@ -730,7 +730,7 @@ class W {
|
|
|
730
730
|
let i = a.length, o = !1;
|
|
731
731
|
for (; i--; ) {
|
|
732
732
|
const r = a[i];
|
|
733
|
-
(!t ||
|
|
733
|
+
(!t || Z(this, this[r], r, t, !0)) && (delete this[r], o = !0);
|
|
734
734
|
}
|
|
735
735
|
return o;
|
|
736
736
|
}
|
|
@@ -739,11 +739,11 @@ class W {
|
|
|
739
739
|
return l.forEach(this, (o, r) => {
|
|
740
740
|
const n = l.findKey(i, r);
|
|
741
741
|
if (n) {
|
|
742
|
-
a[n] =
|
|
742
|
+
a[n] = $(o), delete a[r];
|
|
743
743
|
return;
|
|
744
744
|
}
|
|
745
745
|
const c = t ? ka(r) : String(r).trim();
|
|
746
|
-
c !== r && delete a[r], a[c] =
|
|
746
|
+
c !== r && delete a[r], a[c] = $(o), i[c] = !0;
|
|
747
747
|
}), this;
|
|
748
748
|
}
|
|
749
749
|
concat(...t) {
|
|
@@ -773,18 +773,18 @@ class W {
|
|
|
773
773
|
return a.forEach((o) => i.set(o)), i;
|
|
774
774
|
}
|
|
775
775
|
static accessor(t) {
|
|
776
|
-
const a = (this[
|
|
776
|
+
const a = (this[Re] = this[Re] = {
|
|
777
777
|
accessors: {}
|
|
778
778
|
}).accessors, i = this.prototype;
|
|
779
779
|
function o(r) {
|
|
780
|
-
const n =
|
|
780
|
+
const n = D(r);
|
|
781
781
|
a[n] || (wa(i, r), a[n] = !0);
|
|
782
782
|
}
|
|
783
783
|
return l.isArray(t) ? t.forEach(o) : o(t), this;
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
|
-
|
|
787
|
-
l.reduceDescriptors(
|
|
786
|
+
K.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
787
|
+
l.reduceDescriptors(K.prototype, ({ value: e }, t) => {
|
|
788
788
|
let a = t[0].toUpperCase() + t.slice(1);
|
|
789
789
|
return {
|
|
790
790
|
get: () => e,
|
|
@@ -793,22 +793,22 @@ l.reduceDescriptors(W.prototype, ({ value: e }, t) => {
|
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
});
|
|
796
|
-
l.freezeMethods(
|
|
797
|
-
const
|
|
798
|
-
function
|
|
799
|
-
const a = this ||
|
|
796
|
+
l.freezeMethods(K);
|
|
797
|
+
const E = K;
|
|
798
|
+
function ee(e, t) {
|
|
799
|
+
const a = this || me, i = t || a, o = E.from(i.headers);
|
|
800
800
|
let r = i.data;
|
|
801
801
|
return l.forEach(e, function(n) {
|
|
802
802
|
r = n.call(a, r, o.normalize(), t ? t.status : void 0);
|
|
803
803
|
}), o.normalize(), r;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Qe(e) {
|
|
806
806
|
return !!(e && e.__CANCEL__);
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function B(e, t, a) {
|
|
809
809
|
_.call(this, e ?? "canceled", _.ERR_CANCELED, t, a), this.name = "CanceledError";
|
|
810
810
|
}
|
|
811
|
-
l.inherits(
|
|
811
|
+
l.inherits(B, _, {
|
|
812
812
|
__CANCEL__: !0
|
|
813
813
|
});
|
|
814
814
|
function Aa(e, t, a) {
|
|
@@ -821,7 +821,7 @@ function Aa(e, t, a) {
|
|
|
821
821
|
a
|
|
822
822
|
));
|
|
823
823
|
}
|
|
824
|
-
const Sa =
|
|
824
|
+
const Sa = O.hasStandardBrowserEnv ? (
|
|
825
825
|
// Standard browser envs support document.cookie
|
|
826
826
|
{
|
|
827
827
|
write(e, t, a, i, o, r) {
|
|
@@ -854,10 +854,10 @@ function xa(e) {
|
|
|
854
854
|
function Oa(e, t) {
|
|
855
855
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Xe(e, t) {
|
|
858
858
|
return e && !xa(t) ? Oa(e, t) : t;
|
|
859
859
|
}
|
|
860
|
-
const Ca =
|
|
860
|
+
const Ca = O.hasStandardBrowserEnv ? (
|
|
861
861
|
// Standard browser envs have full support of the APIs needed to test
|
|
862
862
|
// whether the request URL is of the same origin as current location.
|
|
863
863
|
function() {
|
|
@@ -905,11 +905,11 @@ function Ea(e, t) {
|
|
|
905
905
|
m += a[s++], s = s % e;
|
|
906
906
|
if (o = (o + 1) % e, o === r && (r = (r + 1) % e), p - n < t)
|
|
907
907
|
return;
|
|
908
|
-
const
|
|
909
|
-
return
|
|
908
|
+
const f = d && p - d;
|
|
909
|
+
return f ? Math.round(m * 1e3 / f) : void 0;
|
|
910
910
|
};
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function Ee(e, t) {
|
|
913
913
|
let a = 0;
|
|
914
914
|
const i = Ea(50, 250);
|
|
915
915
|
return (o) => {
|
|
@@ -930,33 +930,33 @@ function Re(e, t) {
|
|
|
930
930
|
const Pa = typeof XMLHttpRequest < "u", qa = Pa && function(e) {
|
|
931
931
|
return new Promise(function(t, a) {
|
|
932
932
|
let i = e.data;
|
|
933
|
-
const o =
|
|
933
|
+
const o = E.from(e.headers).normalize();
|
|
934
934
|
let { responseType: r, withXSRFToken: n } = e, c;
|
|
935
935
|
function p() {
|
|
936
936
|
e.cancelToken && e.cancelToken.unsubscribe(c), e.signal && e.signal.removeEventListener("abort", c);
|
|
937
937
|
}
|
|
938
938
|
let d;
|
|
939
939
|
if (l.isFormData(i)) {
|
|
940
|
-
if (
|
|
940
|
+
if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
|
|
941
941
|
o.setContentType(!1);
|
|
942
942
|
else if ((d = o.getContentType()) !== !1) {
|
|
943
|
-
const [u, ...
|
|
944
|
-
o.setContentType([u || "multipart/form-data", ...
|
|
943
|
+
const [u, ...v] = d ? d.split(";").map((A) => A.trim()).filter(Boolean) : [];
|
|
944
|
+
o.setContentType([u || "multipart/form-data", ...v].join("; "));
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
947
|
let s = new XMLHttpRequest();
|
|
948
948
|
if (e.auth) {
|
|
949
|
-
const u = e.auth.username || "",
|
|
950
|
-
o.set("Authorization", "Basic " + btoa(u + ":" +
|
|
949
|
+
const u = e.auth.username || "", v = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
950
|
+
o.set("Authorization", "Basic " + btoa(u + ":" + v));
|
|
951
951
|
}
|
|
952
|
-
const m =
|
|
953
|
-
s.open(e.method.toUpperCase(),
|
|
954
|
-
function
|
|
952
|
+
const m = Xe(e.baseURL, e.url);
|
|
953
|
+
s.open(e.method.toUpperCase(), Je(m, e.params, e.paramsSerializer), !0), s.timeout = e.timeout;
|
|
954
|
+
function f() {
|
|
955
955
|
if (!s)
|
|
956
956
|
return;
|
|
957
|
-
const u =
|
|
957
|
+
const u = E.from(
|
|
958
958
|
"getAllResponseHeaders" in s && s.getAllResponseHeaders()
|
|
959
|
-
),
|
|
959
|
+
), v = {
|
|
960
960
|
data: !r || r === "text" || r === "json" ? s.responseText : s.response,
|
|
961
961
|
status: s.status,
|
|
962
962
|
statusText: s.statusText,
|
|
@@ -964,48 +964,48 @@ const Pa = typeof XMLHttpRequest < "u", qa = Pa && function(e) {
|
|
|
964
964
|
config: e,
|
|
965
965
|
request: s
|
|
966
966
|
};
|
|
967
|
-
Aa(function(
|
|
968
|
-
t(
|
|
969
|
-
}, function(
|
|
970
|
-
a(
|
|
971
|
-
},
|
|
967
|
+
Aa(function(A) {
|
|
968
|
+
t(A), p();
|
|
969
|
+
}, function(A) {
|
|
970
|
+
a(A), p();
|
|
971
|
+
}, v), s = null;
|
|
972
972
|
}
|
|
973
|
-
if ("onloadend" in s ? s.onloadend =
|
|
974
|
-
!s || s.readyState !== 4 || s.status === 0 && !(s.responseURL && s.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
973
|
+
if ("onloadend" in s ? s.onloadend = f : s.onreadystatechange = function() {
|
|
974
|
+
!s || s.readyState !== 4 || s.status === 0 && !(s.responseURL && s.responseURL.indexOf("file:") === 0) || setTimeout(f);
|
|
975
975
|
}, s.onabort = function() {
|
|
976
976
|
s && (a(new _("Request aborted", _.ECONNABORTED, e, s)), s = null);
|
|
977
977
|
}, s.onerror = function() {
|
|
978
978
|
a(new _("Network Error", _.ERR_NETWORK, e, s)), s = null;
|
|
979
979
|
}, s.ontimeout = function() {
|
|
980
980
|
let u = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
981
|
-
const
|
|
981
|
+
const v = e.transitional || We;
|
|
982
982
|
e.timeoutErrorMessage && (u = e.timeoutErrorMessage), a(new _(
|
|
983
983
|
u,
|
|
984
|
-
|
|
984
|
+
v.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
|
|
985
985
|
e,
|
|
986
986
|
s
|
|
987
987
|
)), s = null;
|
|
988
|
-
},
|
|
988
|
+
}, O.hasStandardBrowserEnv && (n && l.isFunction(n) && (n = n(e)), n || n !== !1 && Ca(m))) {
|
|
989
989
|
const u = e.xsrfHeaderName && e.xsrfCookieName && Sa.read(e.xsrfCookieName);
|
|
990
990
|
u && o.set(e.xsrfHeaderName, u);
|
|
991
991
|
}
|
|
992
|
-
i === void 0 && o.setContentType(null), "setRequestHeader" in s && l.forEach(o.toJSON(), function(u,
|
|
993
|
-
s.setRequestHeader(
|
|
994
|
-
}), l.isUndefined(e.withCredentials) || (s.withCredentials = !!e.withCredentials), r && r !== "json" && (s.responseType = e.responseType), typeof e.onDownloadProgress == "function" && s.addEventListener("progress",
|
|
995
|
-
s && (a(!u || u.type ? new
|
|
992
|
+
i === void 0 && o.setContentType(null), "setRequestHeader" in s && l.forEach(o.toJSON(), function(u, v) {
|
|
993
|
+
s.setRequestHeader(v, u);
|
|
994
|
+
}), l.isUndefined(e.withCredentials) || (s.withCredentials = !!e.withCredentials), r && r !== "json" && (s.responseType = e.responseType), typeof e.onDownloadProgress == "function" && s.addEventListener("progress", Ee(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && s.upload && s.upload.addEventListener("progress", Ee(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (u) => {
|
|
995
|
+
s && (a(!u || u.type ? new B(null, e, s) : u), s.abort(), s = null);
|
|
996
996
|
}, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
|
|
997
997
|
const g = Ra(m);
|
|
998
|
-
if (g &&
|
|
998
|
+
if (g && O.protocols.indexOf(g) === -1) {
|
|
999
999
|
a(new _("Unsupported protocol " + g + ":", _.ERR_BAD_REQUEST, e));
|
|
1000
1000
|
return;
|
|
1001
1001
|
}
|
|
1002
1002
|
s.send(i || null);
|
|
1003
1003
|
});
|
|
1004
|
-
},
|
|
1004
|
+
}, ne = {
|
|
1005
1005
|
http: aa,
|
|
1006
1006
|
xhr: qa
|
|
1007
1007
|
};
|
|
1008
|
-
l.forEach(
|
|
1008
|
+
l.forEach(ne, (e, t) => {
|
|
1009
1009
|
if (e) {
|
|
1010
1010
|
try {
|
|
1011
1011
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1014,7 +1014,7 @@ l.forEach(re, (e, t) => {
|
|
|
1014
1014
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1015
1015
|
}
|
|
1016
1016
|
});
|
|
1017
|
-
const
|
|
1017
|
+
const Pe = (e) => `- ${e}`, Ta = (e) => l.isFunction(e) || e === null || e === !1, Ze = {
|
|
1018
1018
|
getAdapter: (e) => {
|
|
1019
1019
|
e = l.isArray(e) ? e : [e];
|
|
1020
1020
|
const { length: t } = e;
|
|
@@ -1023,7 +1023,7 @@ const Ee = (e) => `- ${e}`, Ta = (e) => l.isFunction(e) || e === null || e === !
|
|
|
1023
1023
|
for (let r = 0; r < t; r++) {
|
|
1024
1024
|
a = e[r];
|
|
1025
1025
|
let n;
|
|
1026
|
-
if (i = a, !Ta(a) && (i =
|
|
1026
|
+
if (i = a, !Ta(a) && (i = ne[(n = String(a)).toLowerCase()], i === void 0))
|
|
1027
1027
|
throw new _(`Unknown adapter '${n}'`);
|
|
1028
1028
|
if (i)
|
|
1029
1029
|
break;
|
|
@@ -1034,8 +1034,8 @@ const Ee = (e) => `- ${e}`, Ta = (e) => l.isFunction(e) || e === null || e === !
|
|
|
1034
1034
|
([c, p]) => `adapter ${c} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1035
1035
|
);
|
|
1036
1036
|
let n = t ? r.length > 1 ? `since :
|
|
1037
|
-
` + r.map(
|
|
1038
|
-
`) : " " +
|
|
1037
|
+
` + r.map(Pe).join(`
|
|
1038
|
+
`) : " " + Pe(r[0]) : "as no adapter specified";
|
|
1039
1039
|
throw new _(
|
|
1040
1040
|
"There is no suitable adapter to dispatch the request " + n,
|
|
1041
1041
|
"ERR_NOT_SUPPORT"
|
|
@@ -1043,32 +1043,32 @@ const Ee = (e) => `- ${e}`, Ta = (e) => l.isFunction(e) || e === null || e === !
|
|
|
1043
1043
|
}
|
|
1044
1044
|
return i;
|
|
1045
1045
|
},
|
|
1046
|
-
adapters:
|
|
1046
|
+
adapters: ne
|
|
1047
1047
|
};
|
|
1048
|
-
function
|
|
1048
|
+
function te(e) {
|
|
1049
1049
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1050
|
-
throw new
|
|
1050
|
+
throw new B(null, e);
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1053
|
-
return
|
|
1052
|
+
function qe(e) {
|
|
1053
|
+
return te(e), e.headers = E.from(e.headers), e.data = ee.call(
|
|
1054
1054
|
e,
|
|
1055
1055
|
e.transformRequest
|
|
1056
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1057
|
-
return
|
|
1056
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ze.getAdapter(e.adapter || me.adapter)(e).then(function(t) {
|
|
1057
|
+
return te(e), t.data = ee.call(
|
|
1058
1058
|
e,
|
|
1059
1059
|
e.transformResponse,
|
|
1060
1060
|
t
|
|
1061
|
-
), t.headers =
|
|
1061
|
+
), t.headers = E.from(t.headers), t;
|
|
1062
1062
|
}, function(t) {
|
|
1063
|
-
return
|
|
1063
|
+
return Qe(t) || (te(e), t && t.response && (t.response.data = ee.call(
|
|
1064
1064
|
e,
|
|
1065
1065
|
e.transformResponse,
|
|
1066
1066
|
t.response
|
|
1067
|
-
), t.response.headers =
|
|
1067
|
+
), t.response.headers = E.from(t.response.headers))), Promise.reject(t);
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
|
-
const
|
|
1071
|
-
function
|
|
1070
|
+
const Te = (e) => e instanceof E ? e.toJSON() : e;
|
|
1071
|
+
function N(e, t) {
|
|
1072
1072
|
t = t || {};
|
|
1073
1073
|
const a = {};
|
|
1074
1074
|
function i(d, s, m) {
|
|
@@ -1127,23 +1127,23 @@ function T(e, t) {
|
|
|
1127
1127
|
socketPath: n,
|
|
1128
1128
|
responseEncoding: n,
|
|
1129
1129
|
validateStatus: c,
|
|
1130
|
-
headers: (d, s) => o(
|
|
1130
|
+
headers: (d, s) => o(Te(d), Te(s), !0)
|
|
1131
1131
|
};
|
|
1132
1132
|
return l.forEach(Object.keys(Object.assign({}, e, t)), function(d) {
|
|
1133
1133
|
const s = p[d] || o, m = s(e[d], t[d], d);
|
|
1134
1134
|
l.isUndefined(m) && s !== c || (a[d] = m);
|
|
1135
1135
|
}), a;
|
|
1136
1136
|
}
|
|
1137
|
-
const
|
|
1137
|
+
const et = "1.6.5", ge = {};
|
|
1138
1138
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1139
|
-
|
|
1139
|
+
ge[e] = function(a) {
|
|
1140
1140
|
return typeof a === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1141
1141
|
};
|
|
1142
1142
|
});
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1143
|
+
const Ne = {};
|
|
1144
|
+
ge.transitional = function(e, t, a) {
|
|
1145
1145
|
function i(o, r) {
|
|
1146
|
-
return "[Axios v" +
|
|
1146
|
+
return "[Axios v" + et + "] Transitional option '" + o + "'" + r + (a ? ". " + a : "");
|
|
1147
1147
|
}
|
|
1148
1148
|
return (o, r, n) => {
|
|
1149
1149
|
if (e === !1)
|
|
@@ -1151,7 +1151,7 @@ me.transitional = function(e, t, a) {
|
|
|
1151
1151
|
i(r, " has been removed" + (t ? " in " + t : "")),
|
|
1152
1152
|
_.ERR_DEPRECATED
|
|
1153
1153
|
);
|
|
1154
|
-
return t && !
|
|
1154
|
+
return t && !Ne[r] && (Ne[r] = !0, console.warn(
|
|
1155
1155
|
i(
|
|
1156
1156
|
r,
|
|
1157
1157
|
" has been deprecated since v" + t + " and will be removed in the near future"
|
|
@@ -1176,15 +1176,15 @@ function Na(e, t, a) {
|
|
|
1176
1176
|
throw new _("Unknown option " + r, _.ERR_BAD_OPTION);
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
1179
|
-
const
|
|
1179
|
+
const le = {
|
|
1180
1180
|
assertOptions: Na,
|
|
1181
|
-
validators:
|
|
1182
|
-
},
|
|
1183
|
-
class
|
|
1181
|
+
validators: ge
|
|
1182
|
+
}, P = le.validators;
|
|
1183
|
+
class G {
|
|
1184
1184
|
constructor(t) {
|
|
1185
1185
|
this.defaults = t, this.interceptors = {
|
|
1186
|
-
request: new
|
|
1187
|
-
response: new
|
|
1186
|
+
request: new Ce(),
|
|
1187
|
+
response: new Ce()
|
|
1188
1188
|
};
|
|
1189
1189
|
}
|
|
1190
1190
|
/**
|
|
@@ -1196,17 +1196,17 @@ class z {
|
|
|
1196
1196
|
* @returns {Promise} The Promise to be fulfilled
|
|
1197
1197
|
*/
|
|
1198
1198
|
request(t, a) {
|
|
1199
|
-
typeof t == "string" ? (a = a || {}, a.url = t) : a = t || {}, a =
|
|
1199
|
+
typeof t == "string" ? (a = a || {}, a.url = t) : a = t || {}, a = N(this.defaults, a);
|
|
1200
1200
|
const { transitional: i, paramsSerializer: o, headers: r } = a;
|
|
1201
|
-
i !== void 0 &&
|
|
1202
|
-
silentJSONParsing:
|
|
1203
|
-
forcedJSONParsing:
|
|
1204
|
-
clarifyTimeoutError:
|
|
1201
|
+
i !== void 0 && le.assertOptions(i, {
|
|
1202
|
+
silentJSONParsing: P.transitional(P.boolean),
|
|
1203
|
+
forcedJSONParsing: P.transitional(P.boolean),
|
|
1204
|
+
clarifyTimeoutError: P.transitional(P.boolean)
|
|
1205
1205
|
}, !1), o != null && (l.isFunction(o) ? a.paramsSerializer = {
|
|
1206
1206
|
serialize: o
|
|
1207
|
-
} :
|
|
1208
|
-
encode:
|
|
1209
|
-
serialize:
|
|
1207
|
+
} : le.assertOptions(o, {
|
|
1208
|
+
encode: P.function,
|
|
1209
|
+
serialize: P.function
|
|
1210
1210
|
}, !0)), a.method = (a.method || this.defaults.method || "get").toLowerCase();
|
|
1211
1211
|
let n = r && l.merge(
|
|
1212
1212
|
r.common,
|
|
@@ -1217,7 +1217,7 @@ class z {
|
|
|
1217
1217
|
(u) => {
|
|
1218
1218
|
delete r[u];
|
|
1219
1219
|
}
|
|
1220
|
-
), a.headers =
|
|
1220
|
+
), a.headers = E.concat(n, r);
|
|
1221
1221
|
const c = [];
|
|
1222
1222
|
let p = !0;
|
|
1223
1223
|
this.interceptors.request.forEach(function(u) {
|
|
@@ -1227,42 +1227,42 @@ class z {
|
|
|
1227
1227
|
this.interceptors.response.forEach(function(u) {
|
|
1228
1228
|
d.push(u.fulfilled, u.rejected);
|
|
1229
1229
|
});
|
|
1230
|
-
let s, m = 0,
|
|
1230
|
+
let s, m = 0, f;
|
|
1231
1231
|
if (!p) {
|
|
1232
|
-
const u = [
|
|
1233
|
-
for (u.unshift.apply(u, c), u.push.apply(u, d),
|
|
1232
|
+
const u = [qe.bind(this), void 0];
|
|
1233
|
+
for (u.unshift.apply(u, c), u.push.apply(u, d), f = u.length, s = Promise.resolve(a); m < f; )
|
|
1234
1234
|
s = s.then(u[m++], u[m++]);
|
|
1235
1235
|
return s;
|
|
1236
1236
|
}
|
|
1237
|
-
|
|
1237
|
+
f = c.length;
|
|
1238
1238
|
let g = a;
|
|
1239
|
-
for (m = 0; m <
|
|
1240
|
-
const u = c[m++],
|
|
1239
|
+
for (m = 0; m < f; ) {
|
|
1240
|
+
const u = c[m++], v = c[m++];
|
|
1241
1241
|
try {
|
|
1242
1242
|
g = u(g);
|
|
1243
|
-
} catch (
|
|
1244
|
-
|
|
1243
|
+
} catch (A) {
|
|
1244
|
+
v.call(this, A);
|
|
1245
1245
|
break;
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
1248
|
try {
|
|
1249
|
-
s =
|
|
1249
|
+
s = qe.call(this, g);
|
|
1250
1250
|
} catch (u) {
|
|
1251
1251
|
return Promise.reject(u);
|
|
1252
1252
|
}
|
|
1253
|
-
for (m = 0,
|
|
1253
|
+
for (m = 0, f = d.length; m < f; )
|
|
1254
1254
|
s = s.then(d[m++], d[m++]);
|
|
1255
1255
|
return s;
|
|
1256
1256
|
}
|
|
1257
1257
|
getUri(t) {
|
|
1258
|
-
t =
|
|
1259
|
-
const a =
|
|
1260
|
-
return
|
|
1258
|
+
t = N(this.defaults, t);
|
|
1259
|
+
const a = Xe(t.baseURL, t.url);
|
|
1260
|
+
return Je(a, t.params, t.paramsSerializer);
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
1263
|
l.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1264
|
-
|
|
1265
|
-
return this.request(
|
|
1264
|
+
G.prototype[e] = function(t, a) {
|
|
1265
|
+
return this.request(N(a || {}, {
|
|
1266
1266
|
method: e,
|
|
1267
1267
|
url: t,
|
|
1268
1268
|
data: (a || {}).data
|
|
@@ -1272,7 +1272,7 @@ l.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1272
1272
|
l.forEach(["post", "put", "patch"], function(e) {
|
|
1273
1273
|
function t(a) {
|
|
1274
1274
|
return function(i, o, r) {
|
|
1275
|
-
return this.request(
|
|
1275
|
+
return this.request(N(r || {}, {
|
|
1276
1276
|
method: e,
|
|
1277
1277
|
headers: a ? {
|
|
1278
1278
|
"Content-Type": "multipart/form-data"
|
|
@@ -1282,10 +1282,10 @@ l.forEach(["post", "put", "patch"], function(e) {
|
|
|
1282
1282
|
}));
|
|
1283
1283
|
};
|
|
1284
1284
|
}
|
|
1285
|
-
|
|
1285
|
+
G.prototype[e] = t(), G.prototype[e + "Form"] = t(!0);
|
|
1286
1286
|
});
|
|
1287
|
-
const
|
|
1288
|
-
class
|
|
1287
|
+
const z = G;
|
|
1288
|
+
class _e {
|
|
1289
1289
|
constructor(t) {
|
|
1290
1290
|
if (typeof t != "function")
|
|
1291
1291
|
throw new TypeError("executor must be a function.");
|
|
@@ -1310,7 +1310,7 @@ class ge {
|
|
|
1310
1310
|
i.unsubscribe(r);
|
|
1311
1311
|
}, n;
|
|
1312
1312
|
}, t(function(o, r, n) {
|
|
1313
|
-
i.reason || (i.reason = new
|
|
1313
|
+
i.reason || (i.reason = new B(o, r, n), a(i.reason));
|
|
1314
1314
|
});
|
|
1315
1315
|
}
|
|
1316
1316
|
/**
|
|
@@ -1346,14 +1346,14 @@ class ge {
|
|
|
1346
1346
|
static source() {
|
|
1347
1347
|
let t;
|
|
1348
1348
|
return {
|
|
1349
|
-
token: new
|
|
1349
|
+
token: new _e(function(a) {
|
|
1350
1350
|
t = a;
|
|
1351
1351
|
}),
|
|
1352
1352
|
cancel: t
|
|
1353
1353
|
};
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
const Ia =
|
|
1356
|
+
const Ia = _e;
|
|
1357
1357
|
function Ua(e) {
|
|
1358
1358
|
return function(t) {
|
|
1359
1359
|
return e.apply(null, t);
|
|
@@ -1362,7 +1362,7 @@ function Ua(e) {
|
|
|
1362
1362
|
function Da(e) {
|
|
1363
1363
|
return l.isObject(e) && e.isAxiosError === !0;
|
|
1364
1364
|
}
|
|
1365
|
-
const
|
|
1365
|
+
const se = {
|
|
1366
1366
|
Continue: 100,
|
|
1367
1367
|
SwitchingProtocols: 101,
|
|
1368
1368
|
Processing: 102,
|
|
@@ -1427,36 +1427,36 @@ const le = {
|
|
|
1427
1427
|
NotExtended: 510,
|
|
1428
1428
|
NetworkAuthenticationRequired: 511
|
|
1429
1429
|
};
|
|
1430
|
-
Object.entries(
|
|
1431
|
-
|
|
1430
|
+
Object.entries(se).forEach(([e, t]) => {
|
|
1431
|
+
se[t] = e;
|
|
1432
1432
|
});
|
|
1433
|
-
const La =
|
|
1434
|
-
function
|
|
1435
|
-
const t = new
|
|
1436
|
-
return l.extend(a,
|
|
1437
|
-
return
|
|
1433
|
+
const La = se;
|
|
1434
|
+
function tt(e) {
|
|
1435
|
+
const t = new z(e), a = Ue(z.prototype.request, t);
|
|
1436
|
+
return l.extend(a, z.prototype, t, { allOwnKeys: !0 }), l.extend(a, t, null, { allOwnKeys: !0 }), a.create = function(i) {
|
|
1437
|
+
return tt(N(e, i));
|
|
1438
1438
|
}, a;
|
|
1439
1439
|
}
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1440
|
+
const k = tt(me);
|
|
1441
|
+
k.Axios = z;
|
|
1442
|
+
k.CanceledError = B;
|
|
1443
|
+
k.CancelToken = Ia;
|
|
1444
|
+
k.isCancel = Qe;
|
|
1445
|
+
k.VERSION = et;
|
|
1446
|
+
k.toFormData = W;
|
|
1447
|
+
k.AxiosError = _;
|
|
1448
|
+
k.Cancel = k.CanceledError;
|
|
1449
|
+
k.all = function(e) {
|
|
1450
1450
|
return Promise.all(e);
|
|
1451
1451
|
};
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1452
|
+
k.spread = Ua;
|
|
1453
|
+
k.isAxiosError = Da;
|
|
1454
|
+
k.mergeConfig = N;
|
|
1455
|
+
k.AxiosHeaders = E;
|
|
1456
|
+
k.formToJSON = (e) => Ye(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
1457
|
+
k.getAdapter = Ze.getAdapter;
|
|
1458
|
+
k.HttpStatusCode = La;
|
|
1459
|
+
k.default = k;
|
|
1460
1460
|
class ja {
|
|
1461
1461
|
constructor({
|
|
1462
1462
|
context: t,
|
|
@@ -1588,7 +1588,7 @@ class ja {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
class Ba {
|
|
1590
1590
|
constructor(t, a) {
|
|
1591
|
-
this.sessions = [], this.context = t, this.chatboxRef = a, this.client =
|
|
1591
|
+
this.sessions = [], this.context = t, this.chatboxRef = a, this.client = k.create({ baseURL: t.url }), this.setToken(t.token);
|
|
1592
1592
|
}
|
|
1593
1593
|
setToken(t) {
|
|
1594
1594
|
this.client.defaults.headers.common.Authorization = `Bearer ${t}`;
|
|
@@ -1610,7 +1610,7 @@ class Ba {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
1612
|
function bi(e) {
|
|
1613
|
-
const t =
|
|
1613
|
+
const t = I(new Ba(e)), a = ie(() => t.value.sessions || []), i = ie(() => {
|
|
1614
1614
|
var c;
|
|
1615
1615
|
return (c = t.value.sessions) == null ? void 0 : c[t.value.sessions.length - 1];
|
|
1616
1616
|
});
|
|
@@ -1643,16 +1643,16 @@ function bi(e) {
|
|
|
1643
1643
|
sessions: a
|
|
1644
1644
|
};
|
|
1645
1645
|
}
|
|
1646
|
-
const
|
|
1646
|
+
const at = (e) => (rt("data-v-97b727dd"), e = e(), nt(), e), Fa = {
|
|
1647
1647
|
class: "chatbox",
|
|
1648
1648
|
id: "chatbox"
|
|
1649
1649
|
}, Ma = { class: "user-name" }, $a = {
|
|
1650
1650
|
key: 0,
|
|
1651
1651
|
class: "message-bubble"
|
|
1652
|
-
}, za = /* @__PURE__ */
|
|
1653
|
-
/* @__PURE__ */
|
|
1654
|
-
/* @__PURE__ */
|
|
1655
|
-
/* @__PURE__ */
|
|
1652
|
+
}, za = /* @__PURE__ */ at(() => /* @__PURE__ */ q("div", { class: "spinner" }, [
|
|
1653
|
+
/* @__PURE__ */ q("div", { class: "bounce1" }),
|
|
1654
|
+
/* @__PURE__ */ q("div", { class: "bounce2" }),
|
|
1655
|
+
/* @__PURE__ */ q("div", { class: "bounce3" })
|
|
1656
1656
|
], -1)), Ga = [
|
|
1657
1657
|
za
|
|
1658
1658
|
], Va = {
|
|
@@ -1661,11 +1661,11 @@ const tt = (e) => (ot("data-v-97b727dd"), e = e(), rt(), e), Fa = {
|
|
|
1661
1661
|
}, Ha = {
|
|
1662
1662
|
key: 2,
|
|
1663
1663
|
class: "selection-container"
|
|
1664
|
-
}, Ja = /* @__PURE__ */
|
|
1664
|
+
}, Ja = /* @__PURE__ */ at(() => /* @__PURE__ */ q("div", { class: "message select-label" }, "Suggestion:", -1)), Wa = ["id", "onClick"], Ka = /* @__PURE__ */ ce({
|
|
1665
1665
|
__name: "Chatbox",
|
|
1666
1666
|
emits: ["select"],
|
|
1667
1667
|
setup(e, { expose: t, emit: a }) {
|
|
1668
|
-
const i =
|
|
1668
|
+
const i = I([]), o = a;
|
|
1669
1669
|
async function r(d, s) {
|
|
1670
1670
|
i.value.push({
|
|
1671
1671
|
isUser: !0,
|
|
@@ -1678,15 +1678,15 @@ const tt = (e) => (ot("data-v-97b727dd"), e = e(), rt(), e), Fa = {
|
|
|
1678
1678
|
data: null,
|
|
1679
1679
|
isLoading: !0
|
|
1680
1680
|
};
|
|
1681
|
-
const
|
|
1682
|
-
console.log(
|
|
1681
|
+
const f = i.value.push(m) - 1;
|
|
1682
|
+
console.log(f), c();
|
|
1683
1683
|
let g;
|
|
1684
1684
|
try {
|
|
1685
|
-
g = await s(), i.value[
|
|
1685
|
+
g = await s(), i.value[f].data = g.data, i.value[f].message = g.message;
|
|
1686
1686
|
} catch (u) {
|
|
1687
|
-
console.error(u), i.value[
|
|
1687
|
+
console.error(u), i.value[f].message = "failed to response";
|
|
1688
1688
|
} finally {
|
|
1689
|
-
i.value[
|
|
1689
|
+
i.value[f].isLoading = !1;
|
|
1690
1690
|
}
|
|
1691
1691
|
return i.value = [...i.value], c(), g;
|
|
1692
1692
|
}
|
|
@@ -1705,24 +1705,24 @@ const tt = (e) => (ot("data-v-97b727dd"), e = e(), rt(), e), Fa = {
|
|
|
1705
1705
|
return t({
|
|
1706
1706
|
ask: r,
|
|
1707
1707
|
clear: p
|
|
1708
|
-
}), (d, s) => (
|
|
1709
|
-
(
|
|
1708
|
+
}), (d, s) => (x(), R("div", Fa, [
|
|
1709
|
+
(x(!0), R(be, null, ye(i.value, (m, f) => {
|
|
1710
1710
|
var g;
|
|
1711
|
-
return
|
|
1712
|
-
key:
|
|
1713
|
-
class:
|
|
1711
|
+
return x(), R("div", {
|
|
1712
|
+
key: f,
|
|
1713
|
+
class: ot(m.isUser ? "user-message" : "remy-message")
|
|
1714
1714
|
}, [
|
|
1715
|
-
|
|
1716
|
-
m.isLoading ? (
|
|
1717
|
-
((g = m.data) == null ? void 0 : g.action) === "selection" && m.data.value.length > 0 ? (
|
|
1715
|
+
q("div", Ma, Q(m.isUser ? "" : "Remy"), 1),
|
|
1716
|
+
m.isLoading ? (x(), R("div", $a, Ga)) : m.message ? (x(), R("div", Va, Q(m.message), 1)) : he("", !0),
|
|
1717
|
+
((g = m.data) == null ? void 0 : g.action) === "selection" && m.data.value.length > 0 ? (x(), R("div", Ha, [
|
|
1718
1718
|
Ja,
|
|
1719
|
-
(
|
|
1719
|
+
(x(!0), R(be, null, ye(m.data.value, (u, v) => (x(), R("div", {
|
|
1720
1720
|
class: "message-bubble message selection",
|
|
1721
|
-
key:
|
|
1722
|
-
id: `remy-chatbox-selection-${
|
|
1721
|
+
key: v,
|
|
1722
|
+
id: `remy-chatbox-selection-${v}`,
|
|
1723
1723
|
onClick: () => n(u)
|
|
1724
|
-
},
|
|
1725
|
-
])) :
|
|
1724
|
+
}, Q(u), 9, Wa))), 128))
|
|
1725
|
+
])) : he("", !0)
|
|
1726
1726
|
], 2);
|
|
1727
1727
|
}), 128))
|
|
1728
1728
|
]));
|
|
@@ -1738,7 +1738,7 @@ const tt = (e) => (ot("data-v-97b727dd"), e = e(), rt(), e), Fa = {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
};
|
|
1740
1740
|
function Za(e, t) {
|
|
1741
|
-
const a =
|
|
1741
|
+
const a = I({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
1742
1742
|
function i() {
|
|
1743
1743
|
if (e.value) {
|
|
1744
1744
|
const o = e.value.getBoundingClientRect();
|
|
@@ -1750,55 +1750,55 @@ function Za(e, t) {
|
|
|
1750
1750
|
};
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
|
-
return
|
|
1754
|
-
await
|
|
1755
|
-
}),
|
|
1756
|
-
o && (await
|
|
1757
|
-
}), nt(() => {
|
|
1758
|
-
window.addEventListener("resize", i);
|
|
1753
|
+
return fe(t, async () => {
|
|
1754
|
+
await ve(), i();
|
|
1755
|
+
}), fe(e, async (o) => {
|
|
1756
|
+
o && (await ve(), i());
|
|
1759
1757
|
}), lt(() => {
|
|
1758
|
+
window.addEventListener("resize", i);
|
|
1759
|
+
}), st(() => {
|
|
1760
1760
|
window.removeEventListener("resize", i);
|
|
1761
1761
|
}), a;
|
|
1762
1762
|
}
|
|
1763
|
-
const ei = /* @__PURE__ */
|
|
1763
|
+
const ei = /* @__PURE__ */ ce({
|
|
1764
1764
|
__name: "FullWrapper",
|
|
1765
1765
|
setup(e) {
|
|
1766
|
-
const t =
|
|
1766
|
+
const t = bt(), a = I(null), i = Za(a), o = ie(() => {
|
|
1767
1767
|
var c;
|
|
1768
1768
|
const n = t.isAtMost("sm") ? 56 : 0;
|
|
1769
1769
|
return {
|
|
1770
1770
|
height: `calc(100dvh - ${((c = i.value) == null ? void 0 : c.top) + 24 + n}px)`
|
|
1771
1771
|
};
|
|
1772
1772
|
});
|
|
1773
|
-
return (r, n) => (
|
|
1773
|
+
return (r, n) => (x(), R("div", {
|
|
1774
1774
|
ref_key: "wrapper",
|
|
1775
1775
|
ref: a,
|
|
1776
|
-
style:
|
|
1776
|
+
style: ct(o.value)
|
|
1777
1777
|
}, [
|
|
1778
|
-
|
|
1778
|
+
ut(r.$slots, "default")
|
|
1779
1779
|
], 4));
|
|
1780
1780
|
}
|
|
1781
|
-
}), ti = { class: "flex justify-center items-center h-full w-full" }, ai = /* @__PURE__ */
|
|
1781
|
+
}), ti = { class: "flex justify-center items-center h-full w-full" }, ai = /* @__PURE__ */ ce({
|
|
1782
1782
|
__name: "PageLoading",
|
|
1783
1783
|
setup(e) {
|
|
1784
1784
|
return (t, a) => {
|
|
1785
|
-
const i =
|
|
1786
|
-
return
|
|
1787
|
-
default:
|
|
1788
|
-
|
|
1789
|
-
|
|
1785
|
+
const i = dt("FmCircularProgress");
|
|
1786
|
+
return x(), pt(ei, null, {
|
|
1787
|
+
default: mt(() => [
|
|
1788
|
+
q("div", ti, [
|
|
1789
|
+
gt(i, { size: "xl" })
|
|
1790
1790
|
])
|
|
1791
1791
|
]),
|
|
1792
1792
|
_: 1
|
|
1793
1793
|
});
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
|
-
}), b = (e) =>
|
|
1796
|
+
}), b = (e) => _t({
|
|
1797
1797
|
loader: e,
|
|
1798
1798
|
loadingComponent: ai
|
|
1799
1799
|
});
|
|
1800
1800
|
function yi() {
|
|
1801
|
-
const e =
|
|
1801
|
+
const e = I({}), t = (a) => {
|
|
1802
1802
|
var i;
|
|
1803
1803
|
((i = a.data) == null ? void 0 : i.type) === "publish-notifier" && (e.value = a.data.data);
|
|
1804
1804
|
};
|
|
@@ -1812,28 +1812,28 @@ const ii = /* @__PURE__ */ JSON.parse(`{"title":"Menu","common":{"actions":{"upd
|
|
|
1812
1812
|
menu: li
|
|
1813
1813
|
}, ci = /* @__PURE__ */ JSON.parse(`{"title":"菜單","common":{"actions":{"update":"更新","cancel":"取消","add":"添加","search":"搜索","delete":"刪除","remove":"移除","deselect_all":"取消選擇","move":"移動","edit":"編輯","download":"下載","save":"保存","confirm":"確認","yes":"是","no":"否","link":"鏈接","migrate":"遷移","add_new_variant":"添加新規格","add_group":"添加組","apply_product":"應用產品","link_product":"鏈接產品","deselect":"取消選擇"},"labels":{"name":"名稱","detail":"詳情","items_linked":"{count} 個項目已鏈接","search_placeholder":"搜索 {type}","symbol":"符號","products_linked":"{count} 個產品已鏈接","product_linked_singular":"{count} 個產品已鏈接","product_linked_plural":"{count} 個產品已鏈接","enter_name":"輸入名稱","product":"產品","selected_items":"{count} 個項目已選擇","all":"全部","category":"分類:{name}","group_name":"組名稱","min_select":"最少選擇","max_select":"最多選擇","group_type":"組類型","stackable":"可堆疊","stackable_sublabel":"顧客可以多次選擇相同選項","configuration":"配置","variant":"規格","product_title":"產品標題","price":"價格 ({symbol})","order_from":"下單來源","inventory":"庫存","search_groups":"搜索組","search_variants":"搜索規格","product_count":"{count} 個產品已應用","search_product":"搜索產品","product_image":"產品圖片","optional":"(可選)","products_selected":"{count} 個產品已選擇","items_selected":"{count} 個項目已選擇","catalog":"目錄","scheduler":"調度器","all_time":"全天","main":"主","unknown":"未知","all_day":"全天","summary":"概覽","scheduler_title":"調度器:{label}","link_product_title":"鏈接產品","products_count":"已選 {count} 個產品","search":"搜索","status":"狀態"},"dialog":{"remove_confirmation":"確定要移除 {name} 嗎?","change_type":{"title":"更改附加組類型","message":"更改附加組類型將清除所有產品。確定要繼續嗎?"},"remove":{"catalog":{"title":"移除目錄","message":"確定要移除 {name} 嗎?"},"category":{"title":"移除分類","message":"確定要移除 {name} 嗎?"},"subcategory":{"title":"移除子分類","message":"確定要移除 {name} 嗎?"},"product":{"title":"移除產品","message":"確定要移除 {name} 嗎?","success":"產品已成功移除。"},"recipe":{"title":"移除配方","message":"確定要移除配方 {name} 嗎?"},"ingredient":{"title":"移除配料","message":"確定要移除配料 {name} 嗎?"},"takeaway":{"title":"移除外帶","message":"確定要移除 {name} 嗎?"},"unit":{"title":"移除單位","message":"確定要移除單位 {name} 嗎?"},"variant":{"title":"移除規格","message":"確定要移除 {name} 嗎?"}}},"validation":{"required":"{field} 為必填項","min_max":"最小選擇數必須小於或等於最大選擇數","product_title_required":"產品標題為必填項","min_value":"最小值為 {value}","max_value":"最大值為 {value}","field_required":"{field} 為必填項","required_field":"必填項","invalid_amount":"無效金額","max_default_items":"組中的默認產品數量不得多於 {max}","min_exceeds_available_items":"禁用可疊加時,最少選擇 ({min}) 不能大於可用項目 ({available})","default_items_tip":"已選擇 {count} / {max} 個默認產品,默認產品下單時將自動選中"},"file":{"accepts":"接受 .jpg、.jpeg、.png、.gif 格式"},"empty":{"no_group":{"title":"未找到組","subtitle":"您還未創建組"},"no_variant":{"title":"未找到規格","subtitle":"您還沒創建任何規格"}}},"category":{"title":"分類","add":"添加分類","detail":"分類詳情","name":"分類名稱","empty":{"title":"將產品分組到分類中","subtitle":"使用分類來組織您的產品。","no_group":{"title":"未找到分組","subtitle":"看起來您還沒有創建任何分組"}},"columns":{"title":"分類標題","products":"應用產品"},"dialog":{"remove":{"title":"移除分類","error":"無法刪除此分類"},"add":{"title":"添加分類","name":{"label":"分類名稱","placeholder":"在此輸入分類名稱","required":"分類名稱為必填項"}}},"products":{"title":"產品","add":"添加產品","linked_count":"已鏈接 {count} 個產品","search":"搜索","columns":{"name":"產品名稱","code":"代碼"}},"selector":{"all":"全部","title":"分類:{label}"},"manager":{"dialog":{"add":{"title":"添加分類","action":"創建"},"update":{"title":"更新分類","action":"更新"}}}},"subcategory":{"title":"子分類","add":"添加子分類","detail":"子分類詳情","name":"子分類名稱","empty":{"title":"將產品分組到子分類中","subtitle":"使用子分類來組織您的產品。"},"columns":{"title":"子分類標題"},"dialog":{"remove":{"title":"移除子分類","error":"無法刪除此子分類"},"add":{"title":"添加子分類","name":{"label":"子分類名稱","placeholder":"在此輸入子分類名稱","required":"子分類名稱為必填項"}}},"manager":{"dialog":{"add":{"title":"添加子分類","action":"創建"},"update":{"title":"更新子分類","action":"更新"}}}},"variant":{"title":"規格","add":"添加規格","columns":{"name":"規格名稱","options":"選項值","applied_products":"已應用產品"},"mobile":{"value":"值:{values}"},"empty":{"title":"添加規格","subtitle":"規格配置為商家提供自定義產品選項的功能。","no_variant":{"title":"未找到規格","subtitle":"看起來您還沒有創建規格"}},"select":{"title":"選擇規格","subtitle":"選擇規格以應用更改"},"form":{"title":{"add":"添加規格","edit":"編輯規格"},"detail":"規格詳情","name":{"label":"規格名稱","placeholder":"杯型尺寸","helper":"為這組選項命名。例如,您可以將此選項組命名為杯型尺寸或糖度。","required":"規格名稱為必填項"},"options":{"title":"選項值","placeholder":"選項","min_required":"至少需要 1 個選項","name_required":"選項名稱為必填項"},"applied_product":"已應用產品"}},"unit":{"title":"單位","add":"添加單位","update":"更新單位","precision":"精度","precision_placeholder":"輸入一個數字","empty":{"title":"添加您的第一個單位","subtitle":"單位用於指定您希望如何測量產品。"},"columns":{"name":"名稱","symbol":"符號"},"measurement":{"add":"添加測量","title":"測量 {number}","name":"名稱","symbol":"符號","conversion":"轉換","preview":"1 {name} 等於 {value} {unit}","preview_label":"預覽"}},"print_dept":{"title":"打印路線","add":"添加打印路線","update":"編輯打印路線","columns":{"name":"打印路線名稱","products":"已應用產品"}},"sku":{"title":"配料","add":"添加配料","update":"更新配料","columns":{"code":"代碼","name":"名稱","unit":"單位"},"empty":{"no_unit":"未找到單位","subtitle":"添加單位以開始添加配料。"},"validation":{"code_used":"代碼已被其他配料使用"},"errors":{"select_recipe_ingredient":"選擇配方或配料以轉換"},"convertible":{"label":"可轉換","sublabel":"可從其他配方或配料轉換","convert_to":"配方和配料轉換為"}},"recipe":{"title":"配方","add":"添加配方","update":"更新配方","columns":{"name":"名稱"},"validation":{"bind_required":"綁定至少一個配方或配料"},"table":{"columns":{"name":"名稱","ingredients":"配料"},"search":{"placeholder":"搜索配方"}},"empty":{"title":"添加您的第一個配方","subtitle":"創建配方以標準化您的食品製備流程","action":"添加配方"},"actions":{"add":"添加配方"}},"serving_sequence":{"title":"上菜順序","add":"添加順序","update":"更新順序","columns":{"name":"順序名稱"},"empty":{"title":"沒有上菜順序","subtitle":"設置訂單順序,以確保用餐體驗流暢有序。"}},"group":{"title":"組","add":"添加組","update":"更新組","form":{"tagging":{"title":"標籤","subtitle":"通過標籤對組進行分組,以簡化報告和管理"}},"option":{"title":"產品","subtitle":"未選擇的變體的 orderFrom 會被設置為 None","link_products":"鏈接產品","add_option":"添加選項","product_title":"名稱","product_title_required":"產品標題為必填項","price":"價格 ({symbol})","inventory":"庫存","variant":"規格","code":"代碼","is_default":"默認","should_link_at_least_one_variant":"至少需要鏈接\\"{name}\\"的一個規格"},"types":{"normal":"正常","product":"產品","dynamic":"動態"},"select":{"title":"選擇組","subtitle":"選擇組以應用更改"},"empty":{"title":"未找到組","subtitle":"看起來您還沒有添加附加組。"},"search":{"placeholder":"搜索組"},"type":{"title":"組:{type} 類型","all":"所有類型","normal":"正常類型","product":"產品類型","dynamic":"動態類型"},"list":{"items_linked":"{count} 個項目已鏈接","products_linked":"{count} 個產品已鏈接","columns":{"name":"組名稱","products":"產品","type":"類型","applied_products":"已應用產品"},"types":{"normal":"正常","product":"產品","dynamic":"動態"},"variants":"{ count } 種規格","more_items":"與其他 { count } 個"},"actions":{"add":"添加組","duplicate":{"title":"複製組","message":"您確定要複製 {name} 嗎?"},"apply_product":"應用產品","duplicate_action":"複製"},"dialogs":{"delete":{"title":"刪除組","message":"您確定要刪除 {name} 嗎?","unlink_warning":"以下 {count} 個項目將被取消連結:"},"update":{"title":"更新組"}},"validation":{"name_duplicate":"組名稱已存在"}},"migrate":{"title":"遷移到新版本","description":"您想遷移到新版本嗎?一旦遷移,將無法恢復到舊版本。","message":"將您的菜單遷移到新版本,以享受更多功能。新菜單的內容將與當前相同。","notification":{"title":"新版本的菜單已發佈!","description":"將當前菜單版本遷移到最新版本,以享受更多功能,例如產品順序分發、上菜順序、調度器等!您的內容和當前設置將被保留。"},"errors":{"no_restaurant":"至少需要一個餐廳才能遷移","pos_version":"升級 POS 到 V{version} 以使用新菜單:{restaurants}"}},"scheduler":{"title":"調度器","select":{"title":"選擇調度器","all_time":"全天"},"empty":{"title":"未找到調度器","subtitle":"添加調度器以安排產品顯示時間。","action":"添加調度器"},"table":{"columns":{"name":"調度器名稱","repeat":"重複","period":" 時段","products":"應用產品"},"products_linked":"{count} 個項目已鏈接","search":{"placeholder":"搜索調度器"}},"repeat":{"daily":"每日","weekdays":"工作日","weekends":"週末","except":"每日除外 {day}","range":"{start} 到 {end}"},"days":{"monday":"週一","tuesday":"週二","wednesday":"週三","thursday":"週四","friday":"週五","saturday":"週六","sunday":"週日"},"dialog":{"add":{"title":"添加調度器","action":"添加"},"update":{"title":"更新調度器","action":"更新"},"sections":{"detail":{"title":"調度器詳情","name":{"label":"調度器名稱","placeholder":"佔位符","required":"必填項"}},"availability":{"title":"可用性","daily":"每日","weekly":"每週"},"period":{"title":"啓用時段","all_day":"全天","custom":"自定義時段","add":"添加時段","overlap":"時段不能重疊或相接。請調整時段設置,確保各時段之間有間隔。"},"autolink":{"title":"自動鏈接產品","label":"自動鏈接產品","sublabel":"根據過濾器自動鏈接產品","all_items":"自動鏈接所有項目","filter_message":"自動鏈接符合以下過濾條件的項目。","tooltip":"您可以在過濾值中使用通配符('*' 用於任何字符,'$' 用於任何數字字符)。例如,A*1 匹配 A1、AG1、AC51,但不匹配 A2、B1、C9、A$ 匹配 A1、A11、A124,但不匹配 AQ1、AG1、AC"},"filter":{"add":"添加過濾器","matches":"匹配","or":"或","types":{"code":"代碼","category":"分類"},"placeholder":{"category":"選擇分類"}},"products":{"title":"應用產品","link":"鏈接產品"}},"actions":{"cancel":"取消"}},"dialogs":{"remove":{"title":"移除調度器","message":"您確定要移除調度器 {name} 嗎?"}}},"revert":{"title":"恢復菜單","description":"將 {name} 的菜單恢復到上次發佈的版本。如果它不在上次發佈的版本中,則將外送目錄設置為主目錄。","labels":{"restaurant":"餐廳","revert_to":"恢復到","default":"默認","pos_takeaway":"POS 外帶","pickup":"自取","additional_catalogs":"附加目錄"}},"remy":{"title":"Remy","description":"您的 AI 助手","actions":{"start":"與 Remy 開始","close":"關閉 Remy"},"messages":{"welcome":"你好!我是 Remy,您的 AI 助手。今天我能為您做什麼?","thinking":"正在思考...","error":"抱歉,我遇到了錯誤。請再試一次。"}},"picker":{"title":"選擇 {type}","search":"搜索 {type}","no_results":"未找到 {type}","selected":"{count} 已選擇"},"apply_product":{"title":"應用產品","link":{"title":"鏈接產品","subtitle":"鏈接產品以應用更改"},"table":{"category_count":"{name} ({count})","inventory":"庫存","value":"值:{values}"}},"catalog":{"title":"目錄","detail":"目錄詳情","main":"主產品","form":{"name":"目錄名稱","tax":{"title":"税計算","auto":{"label":"自動","sublabel":"所有價格默認排除,當通過外送公司訂購時將自動變為含税"},"manual":{"label":"手動","sublabel":"您可以為此目錄指定自己的税計算"},"inclusive":"{code} 包含"},"link":{"title":"鏈接產品配置","auto_link":{"label":"自動鏈接項目","sublabel":"自動將產品鏈接至主目錄以供可用性"},"options":{"all":"可供所有人使用","pos_only":"僅在 POS 上訂購"}},"markup":{"title":"價格加價配置","auto":{"label":"自動加價價格","sublabel":"自動加價價格適用於目錄、組和調度"},"add":"添加加價配置","config":"配置 {number}","percentage":"加價百分比:{value}%","products":"{count} 個產品已鏈接","all_items":"適用於所有項目"},"restaurant_attributes_title":"餐廳屬性"},"validation":{"name_used":"目錄名稱已使用","name_required":"目錄名稱必填"},"edit":{"back":"返回目錄","export":"導出","import":"導入","link_product":"鏈接產品","apply_scheduler":"應用調度器","tabs":{"product":"產品","category":"分類","group":"組","takeaway":"外帶","setting":"設置"},"scheduler":{"remove":{"title":"移除調度器","message":"您確定要移除調度器 {name} 嗎?"}}},"usage":{"title":"目錄概覽","tax_calculation":"税計算","products":"{count} 個產品","restaurant":"餐廳","usage":"使用"},"table":{"columns":{"title":"目錄標題","tax_calculation":"税計算","auto_link":"自動鏈接項目"}},"empty":{"title":"構建您的菜單目錄","subtitle":"使用目錄組織菜單。添加產品、設置價格並根據用餐、外帶或外送進行定製。"},"actions":{"add":"添加目錄","view_usage":"目錄概覽"},"dialogs":{"remove":{"title":"移除目錄","message":"您確定要移除 {name} 嗎?","error":"目錄被 {restaurants} 家餐廳使用"}}},"currency":{"input":{"field":"字段"}},"order":{"from":{"options":{"all":"可供所有人使用","pos_only":"僅在 POS 上訂購","none":"無"}}},"inventory":{"title":"庫存","subtitle":"調整配料並自定義產品配方","columns":{"product_name":"產品名稱","ingredient":"配料","recipe":"配方"},"status":{"sku_linked":"已鏈接 {count} 個配料","recipe_linked":"已鏈接 {count} 個配方","not_set":"未設置"},"dialog":{"title":"{name} 庫存"},"form":{"title":"庫存","product_name":"產品名稱"},"binding":{"recipe":{"title":"配方","columns":{"name":"配方","amount":"數量"}},"ingredient":{"title":"配料","columns":{"name":"配料","amount":"數量","unit":"單位"},"select_unit":"選擇單位","loop_warning":"哎呀!檢測到循環。請驗證或刪除它。"},"link":{"title":"鏈接 {type}","recipe":"配方","ingredient":"配料"}}},"link_product":{"title":"應用產品","rules":{"title":"鏈接產品規則","section_title":"按規則配置高級鏈接","order_from":"可點單渠道","restaurant_filter":"餐廳篩選","restaurant_custom_attributes_filter":"餐廳標籤篩選","item_filter":"產品篩選","item_custom_attributes_filter":"產品標籤篩選","add_rule":"添加規則","hint":"根據餐廳標籤與產品主目錄的默認屬性將產品鏈接到餐廳(忽略子目錄覆寫)。"}},"catalog_scheduler":{"title":"更新產品來源","subtitle":"選擇目錄和調度器以更新產品"},"apply_products":{"category":{"count":"{selected}/{total}"}},"markup":{"dialog":{"title":{"add":"添加加價配置","update":"更新加價配置"},"fields":{"percentage":{"label":"加價百分比","placeholder":"0","required":"加價百分比必填"}},"options":{"all":"適用於所有產品","custom":"自定義產品"},"products":{"link":"鏈接產品","count":"{count} 個產品已鏈接"}}},"import":{"dialog":{"title":"導入產品","subtitle":"上傳需要導入的文檔","info":"請不要更改原始模板中的任何標題行,否則導入將失敗。","fields":{"type":"菜單類型","file":{"replace":"替換文件"}},"actions":{"import":"導入"},"errors":{"select_file":"請選擇要導入的文件"},"button":{"label":"添加文件"}}},"product":{"form":{"title":{"add":"添加產品","update":"更新產品"},"summary":{"title":"產品摘要","fields":{"code":"產品代碼","name":"產品名稱","category":"分類","order_from":"下單來源","selling_price":"銷售價格","tax":"税","inventory":"庫存","takeaway":"外帶"}},"sections":{"general":{"title":"通用設置","description":"使用不同的通用設置"},"tagging":{"title":"標籤","subtitle":"通過標籤對產品進行分組,以簡化報告和管理"},"price":{"title":"更新價格","description":"使用不同的價格設置"},"print":{"title":"更新打印","description":"使用不同的打印設置"},"variant":{"title":"更新規格","description":"使用不同的規格設置"},"group":{"title":"更新組","description":"使用不同的組設置"},"inventory":{"title":"更新庫存","description":"使用不同的庫存設置"},"takeaway":{"title":"更新外帶","description":"使用不同的外帶設置"}},"detail":{"title":"產品詳情","fields":{"code":{"label":"產品代碼","placeholder":"無代碼"},"name":{"label":"產品名稱","required":"名稱必填","duplicate_warning":"此產品與 {count} 其他項目共享相同名稱。它們將在報告中作為一種產品分組。"},"description":{"label":"描述","optional":"(可選)","placeholder":"無描述"}},"category":{"label":"分類","required":"分類必填","placeholder":"選擇分類以結構化您的菜單","add_new":"添加新分類","add_first":"請先添加產品分類","options":{"product":{"label":"作為產品或附加項銷售","sublabel":"產品可單獨銷售,也可作為附加項銷售"},"addon":{"label":"僅作為附加項銷售","sublabel":"產品將作為附加項出現"}}},"subcategory":{"label":"子分類","required":"子分類為必填項","add_new":"添加新子分類"},"path":{"label":"子分類 - 菜單路徑","placeholder":"選擇子分類以建立您的菜單結構,例如:咖啡/拿鐵","helperText":"添加子類別以結構化您的菜單"},"order_from":{"label":"下單來源","default":"跟隨主目錄"}},"group":{"title":"組","subtitle":"為您的產添加組以作為套餐銷售","add":"添加組","circularError":"檢測到循環鏈接,組 {groupName} 已鏈接到產品 {productName}","columns":{"title":"組標題","type":"類型"}},"price":{"title":"價格","fields":{"selling_price":{"label":"銷售價格","required":"價格必填"},"tax":{"label":"税選項不可用","label_with_code":"{code}(適用於餐廳配置 {code} 已設置)"}},"settings":{"title":"價格設置","open_price":{"label":"開放價格","sublabel":"允許在不獲得許可的情況下調整價格"},"sell_by_unit":{"label":"按單位銷售","sublabel":"按特定單位(重量、長度等)銷售產品。","per_unit":{"label":"每","placeholder":"輸入數量","required":"每單位必填","min":"每單位必須大於 0"},"unit":{"placeholder":"輸入單位","required":"單位必填"}},"track_costing":{"label":"跟蹤成本"},"min_price":{"label":"在應用折扣後有最低價格"}}},"print":{"title":"打印","config":{"label":"打印配置","group_parent":{"label":"與父級組","sublabel":"在作為附加項提供時打印此產品及其父級"}},"kds":{"label":"KDS 配置","options":{"all":{"label":"一次性發送","description":"將產品一次性發送至所有部門,以加快準備速度"},"sequential":{"label":"順序分發","description":"將產品按順序發送至每個部門,逐步準備"}}},"routes":{"label":"鏈接路線","add":"添加路線"}},"takeaway":{"title":"外帶","subtitle":"選擇外帶費用以添加到產品中","columns":{"variant":"產品 & 規格","product":"產品","takeaway":"外帶"},"options":{"follows_main":"跟隨主目錄","no_preset":"沒有預設外帶","add_new":"添加新外帶"}},"variant":{"title":"規格","subtitle":"添加選項,如大小、顏色或類型","add":"添加規格","columns":{"variant":"規格","code":"代碼","order_from":"下單來源","price":"價格","min_price":"最低價格"},"validation":{"max_variants":"您只能添加 {max} 個規格"},"placeholders":{"no_code":"無代碼","follow_general":"跟隨通用"}}},"empty":{"with_create":{"title":"添加您的產品","subtitle":"首先通過進貨您的商店,為您的顧客提供他們喜愛的產品","action":"添加產品"},"no_scheduler":{"title":"沒有產品鏈接","subtitle":"通過從主目錄鏈接產品來添加此目錄中的產品。"},"with_scheduler":{"title":"沒有應用產品","subtitle":"通過從主目錄鏈接產品來應用此調度器中的產品。"}},"table":{"columns":{"code":"代碼","name":"產品名稱","category":"分類","price":"價格 ({ currency })","order_from":"下單來源","tagging":"標籤"},"category":{"all":"全部分類","collapse":"收起","expand":"+ 還有 {count} 個"},"tagging":{"all":"全部標籤","collapse":"收起","expand":"+ {count} 個"},"bulk_edit":{"title":"批量編輯產品","actions":{"reset_all":"重置所有","save":"保存"}},"selection":{"count":"{count} 項已選擇","actions":{"deselect_all":"取消選擇所有","remove":"移除"}},"empty":{"title":"添加您的產品","subtitle":"首先通過進貨您的商店,為您的顧客提供他們喜愛的產品","actions":{"add":"添加產品","import":"導入"}},"search":{"placeholder":"搜索產品"},"validation":{"name_required":"名稱必填","price_min":"價格必須大於或等於 0"}}},"setting":{"catalog":{"title":"目錄詳情","fields":{"name":{"label":"目錄名稱","required":"目錄名稱必填","used":"目錄名稱已使用"}},"warnings":{"delivery":"此目錄正在被外送公司和其他訂單方法使用。這可能會導致價格計算錯誤,請審查每個目錄使用的價格。"}},"tax":{"title":"税計算","modes":{"auto":{"label":"自動","sublabel":"所有價格默認排除,當通過外送公司訂購時將自動變為含税"},"manual":{"label":"手動","sublabel":"您可以為此目錄指定自己的税計算"}},"inclusive":"{code} 包含"},"link":{"title":"鏈接產品配置","auto_link":{"label":"自動鏈接項目","sublabel":"自動將產品鏈接至主目錄以供可用性"},"options":{"all":"可供所有人使用","pos_only":"僅在 POS 上訂購"}},"markup":{"title":"價格加價配置","auto_markup":{"label":"自動加價價格","sublabel":"自動加價價格適用於目錄、組和調度"},"add":"添加加價配置","config":"配置 {number}","percentage":"加價百分比:{value}%","products":{"all":"適用於所有產品","linked":"{count} 個產品已鏈接"}}},"takeaway":{"actions":{"add":"添加外帶"},"title":"外帶","add":"添加外帶","update":"更新外帶","columns":{"title":"外帶標題","price":"價格"},"placeholders":{"title":"在此輸入外帶標題"},"empty":{"title":"未找到外帶","subtitle":"看起來您還沒有創建外帶。","action":"添加外帶"},"table":{"columns":{"name":"外帶名稱","price":"價格 ({symbol})","products":"應用產品"},"items_linked":"{count} 項已鏈接","search":{"placeholder":"搜索外帶"}}},"thumbnail":{"alt":{"default":"項目","with_name":"{name}"}},"cooking_guide":{"title":"烹飪指南","empty":{"title":"添加烹飪指南","subtitle":"烹飪指南配置工具使商家能夠為多個分店的標準化烹飪説明。","action":"添加指南"},"table":{"columns":{"name":"指南名稱","products":"已鏈接產品","steps":"{count} 步"},"search":{"placeholder":"搜索指南"},"mobile":{"products_linked":"{count} 個產品已鏈接"}},"dialogs":{"remove":{"title":"移除烹飪指南","message":{"prefix":"您確定要移除烹飪指南 ","products_using":"有 ","products_count":" 個產品使用此烹飪指南。 "}}},"actions":{"add":"添加指南","remove":"移除","cancel":"取消"},"dialog":{"add":{"title":"添加指南","action":"添加"},"update":{"title":"更新指南","action":"更新"},"sections":{"guide_detail":{"title":"指南詳情","name":{"label":"指南名稱","placeholder":"佔位符","required":"必填項"}},"steps":{"title":"步驟","add":"添加步驟","empty":"尚未添加任何步驟"},"apply_product":{"title":"應用產品","link":"鏈接產品","products_linked":"{count} 個產品已鏈接","search":"搜索"}},"actions":{"cancel":"取消"}},"step_dialog":{"add":{"title":"添加步驟","action":"添加"},"update":{"title":"更新步驟","action":"更新"},"sections":{"variables":{"title":"變量","add":"添加變量","columns":{"key":"鍵","value":"值"},"placeholders":{"key":"鍵","value":"默認值"},"validation":{"required":"必填項","lowercase":"僅小寫字母","duplicate":"重複鍵"}},"instruction":{"title":"指令"}},"actions":{"cancel":"取消","back":"返回"}},"step_override_dialog":{"title":"自定義烹飪步驟","columns":{"instructions":"指令","variables":"變量","value":"值"},"actions":{"save":"保存","cancel":"取消"}}},"ingredient":{"title":"配料","empty":{"title":"添加您的第一個配料","subtitle":"配料是食物和飲料的重要組成部分。管理它們涉及採購高質量產品、確保存儲合規性以及維護安全標準,因為它們對風味和質量有顯著影響。","action":"添加配料"},"table":{"columns":{"code":"代碼","name":"名稱","unit":"單位"},"search":{"placeholder":"搜索配料"},"mobile":{"code":"代碼:{code}","unit":"單位:{unit}"}},"actions":{"add":"添加配料"}},"print_route":{"title":"打印路線","empty":{"title":"未找到路線","subtitle":"根據您的打印目的地進行定製,以確保高效的訂單管理。","action":"添加路線"},"table":{"columns":{"name":"打印路線名稱","products":"已鏈接產品","products_count":"{count} 個產品"},"search":{"placeholder":"搜索路線"},"mobile":{"products_linked":"{count} 個產品已鏈接"}},"dialogs":{"remove":{"title":"移除打印路線","message":{"prefix":"您確定要移除打印路線嗎? ","products_using":"有 ","products_count":" 個產品使用此打印路線。 "}}},"actions":{"add":"添加路線","remove":"移除","cancel":"取消"},"department_dialog":{"add":{"title":"添加路線","action":"添加"},"update":{"title":"更新路線","action":"更新"},"sections":{"route_detail":{"title":"路線詳情","name":{"label":"路線名稱","placeholder":"佔位符","required":"必填項"}},"link_product":{"title":"鏈接產品","link":"鏈接產品","products_linked":"{count} 個產品已鏈接","search":"搜索"}},"actions":{"cancel":"取消"}}},"products":{"title":"產品","actions":{"export":"導出","import":"導入","add":"添加產品","link":"鏈接產品","apply_scheduler":"應用調度器"}},"productInternalTools":{"title":"產品內部工具"},"publish":{"title":"發佈","table":{"columns":{"restaurant":"餐廳","default":"默認","pos_takeaway":"POS 外帶","pickup":"自取","version":"版本"},"search":{"placeholder":"搜索"},"status":{"latest":"最新","outdated":"已過時"}},"empty":{"title":"創建餐廳","subtitle":"您還沒有創建任何餐廳。添加餐廳以開始發佈菜單","action":"創建餐廳"},"actions":{"publish":"發佈","publish_all":"發佈所有","revert":"恢復菜單"},"labels":{"main_version":"主版本:{version}","catalog":{"main":"主","invalid":"無效目錄"}},"update_catalog_dialog":{"title":"更新目錄","sections":{"default":{"label":"默認目錄","use_default":"主"},"pos_takeaway":{"label":"POS 外帶目錄"},"pickup":{"label":"自取目錄"},"additional":{"title":"附加目錄","subtitle":"附加目錄可以用於桌號和外送"}},"actions":{"update":"更新","cancel":"取消"}}},"tax_setting":{"title":"税設置"},"menu_setting":{"title":"菜單設置","fields":{"low_stock":{"not_set":"未設置","must_be_integer":"值必須為整數","title":"在線點單的產品閾值","subtitle":"當庫存低於此限制時禁用在線點單","helper_text":"如果庫存達到或低於此數量,產品將被提示從在線點單中移除","updated":"菜單設置已更新"}},"tabs":{"menu_configuration":"菜單配置","price_group":"價格組","link_product_rule_groups":"關聯產品規則組"}},"rule_groups":{"title":"關聯產品規則組","description":"管理基於餐廳和產品屬性的產品關聯規則組","create_group":"創建規則組","edit_group":"編輯規則組","saved_successfully":"規則組設置已成功保存","search_placeholder":"搜索規則組...","table":{"columns":{"name":"名稱","description":"描述","rules_count":"規則數量"}},"form":{"basic_info":"基本信息","name":"名稱","name_placeholder":"輸入規則組名稱","description":"描述","description_placeholder":"輸入規則組描述","rules":"規則","rules_description":"為此組配置餐廳和產品規則"},"validation":{"name_required":"名稱為必填項","at_least_one_rule_required":"至少需要一個規則"},"delete_dialog":{"title":"刪除規則組","message":"您確定要刪除'{name}'嗎?此操作無法撤銷。","success":"規則組刪除成功"}},"price_tier":{"price_group":"價格組","description":"設置不同價格組以應用於多個目錄","add_price_group":"添加價格組","add_price_group_success":"價格組創建成功","group_title":"組標題","price_group_description":"當前目錄已鏈接到價格組。請在主目錄中管理價格。","delete_dialog":{"title":"刪除價格組","message":"您確定要刪除價格組 {name} 嗎?","success":"價格組刪除成功"},"settings_table":{"columns":{"name":"名稱"}},"form":{"table":{"columns":{"name":"組標題","price":"銷售價格"}}},"price_tier_config":"價格組設置","link_price_tier":"鏈接價格層級","link_price_group":"鏈接價格組","link_price_group_description":"選擇一個價格組以應用於目錄。如果沒有鏈接,將使用基礎價格。","not_linked":"未鏈接","price_group_rule":"價格組規則","price_group_rule_description":"鏈接價格組到具有特定標籤的餐廳。","restaurant_filter":"餐廳過濾器"},"tree_editor":{"title":"菜單管理","actions":{"add_category":"添加新分類","expand_all":"展開所有","collapse_all":"摺疊所有","add_product":"添加產品","delete_product":"刪除產品","edit_category":"編輯","delete_category":"刪除分類","link_category_to_catalog":"鏈接分類到目錄","link_product_to_catalog":"鏈接產品到目錄","unlink_product_from_catalog":"取消鏈接產品"},"labels":{"main_catalog":"主目錄","all_time":"所有時間","products":"產品: {count}","variants":"規格: {count}","groups":"組: {count}","addon":"附加項","unknown":"未知","please_select_a_product_to_edit":"請選擇一個產品進行編輯","no_items":"沒有產品可顯示"}}}`), ui = {
|
|
1814
1814
|
menu: ci
|
|
1815
|
-
},
|
|
1815
|
+
}, T = I(!1);
|
|
1816
1816
|
window.addEventListener("message", (e) => {
|
|
1817
1817
|
var t;
|
|
1818
|
-
((t = e.data) == null ? void 0 : t.type) === "menu-version-notifier" && (
|
|
1818
|
+
((t = e.data) == null ? void 0 : t.type) === "menu-version-notifier" && (T.value = e.data.data.isV4);
|
|
1819
1819
|
});
|
|
1820
1820
|
var di = /* @__PURE__ */ ((e) => (e.OVERVIEW = "$menu-overview", e.CATALOG = "$menu-catalog", e.EDIT_CATALOG = "$menu-catalog-edit", e.EDIT_CATALOG_PRODUCT = "$menu-catalog-edit-product", e.EDIT_CATALOG_CATEGORY = "$menu-catalog-edit-category", e.EDIT_CATALOG_GROUP = "$menu-catalog-edit-group", e.EDIT_CATALOG_TAKEAWAY = "$menu-catalog-edit-takeaway", e.EDIT_CATALOG_SETTING = "$menu-catalog-edit-setting", e.SCHEDULER = "$menu-scheduler", e.VARIANT = "$menu-variant", e.COOKING_GUIDE = "$menu-cooking-guide", e.PRINT_ROUTE = "$menu-print-route", e.PUBLISH = "$menu-publish", e))(di || {});
|
|
1821
|
-
const
|
|
1821
|
+
const h = {
|
|
1822
1822
|
validationManifest: {
|
|
1823
1823
|
requiredCaslPermissions: [
|
|
1824
1824
|
{
|
|
1825
|
-
action:
|
|
1826
|
-
subject:
|
|
1825
|
+
action: ke.Action.manage,
|
|
1826
|
+
subject: ke.Subject.Business.menu
|
|
1827
1827
|
}
|
|
1828
1828
|
]
|
|
1829
1829
|
}
|
|
1830
|
-
},
|
|
1830
|
+
}, ae = [
|
|
1831
1831
|
{
|
|
1832
1832
|
path: "/product",
|
|
1833
1833
|
name: "$menu-products",
|
|
1834
|
-
component: b(() => import("./Products-
|
|
1834
|
+
component: y(b(() => import("./Products-VEZuFeYe.js"))),
|
|
1835
1835
|
meta: {
|
|
1836
|
-
...
|
|
1836
|
+
...h,
|
|
1837
1837
|
isNavItem: !0,
|
|
1838
1838
|
i18nId: "menu.products.title"
|
|
1839
1839
|
}
|
|
@@ -1841,8 +1841,8 @@ const y = {
|
|
|
1841
1841
|
{
|
|
1842
1842
|
path: "/product-internal-tools",
|
|
1843
1843
|
name: "$menu-product-internal-tools",
|
|
1844
|
-
component:
|
|
1845
|
-
b(() => import("./ProductInternalTools-
|
|
1844
|
+
component: y(
|
|
1845
|
+
b(() => import("./ProductInternalTools-Z6roJxjy.js"))
|
|
1846
1846
|
),
|
|
1847
1847
|
meta: {
|
|
1848
1848
|
i18nId: "menu.productInternalTools.title",
|
|
@@ -1855,9 +1855,9 @@ const y = {
|
|
|
1855
1855
|
{
|
|
1856
1856
|
path: "/category",
|
|
1857
1857
|
name: "$menu-category",
|
|
1858
|
-
component: b(() => import("./Category-
|
|
1858
|
+
component: y(b(() => import("./Category-t5USmy5W.js"))),
|
|
1859
1859
|
meta: {
|
|
1860
|
-
...
|
|
1860
|
+
...h,
|
|
1861
1861
|
isNavItem: !0,
|
|
1862
1862
|
i18nId: "menu.category.title"
|
|
1863
1863
|
}
|
|
@@ -1865,19 +1865,19 @@ const y = {
|
|
|
1865
1865
|
{
|
|
1866
1866
|
path: "/subcategory",
|
|
1867
1867
|
name: "$menu-subcategory",
|
|
1868
|
-
component: b(() => import("./Subcategory-
|
|
1868
|
+
component: y(b(() => import("./Subcategory-CKtwfQrk.js"))),
|
|
1869
1869
|
meta: {
|
|
1870
|
-
...
|
|
1871
|
-
isNavItem: () =>
|
|
1870
|
+
...h,
|
|
1871
|
+
isNavItem: () => T.value,
|
|
1872
1872
|
i18nId: "menu.subcategory.title"
|
|
1873
1873
|
}
|
|
1874
1874
|
},
|
|
1875
1875
|
{
|
|
1876
1876
|
path: "/group",
|
|
1877
1877
|
name: "$menu-group",
|
|
1878
|
-
component: b(() => import("./Group-
|
|
1878
|
+
component: y(b(() => import("./Group-DHpRTZYX.js"))),
|
|
1879
1879
|
meta: {
|
|
1880
|
-
...
|
|
1880
|
+
...h,
|
|
1881
1881
|
isNavItem: !0,
|
|
1882
1882
|
i18nId: "menu.group.title"
|
|
1883
1883
|
}
|
|
@@ -1885,9 +1885,9 @@ const y = {
|
|
|
1885
1885
|
{
|
|
1886
1886
|
path: "/takeaway",
|
|
1887
1887
|
name: "$menu-takeaway",
|
|
1888
|
-
component: b(() => import("./Takeaway-
|
|
1888
|
+
component: y(b(() => import("./Takeaway-PatPZog3.js"))),
|
|
1889
1889
|
meta: {
|
|
1890
|
-
...
|
|
1890
|
+
...h,
|
|
1891
1891
|
isNavItem: !0,
|
|
1892
1892
|
i18nId: "menu.takeaway.title"
|
|
1893
1893
|
}
|
|
@@ -1895,9 +1895,9 @@ const y = {
|
|
|
1895
1895
|
{
|
|
1896
1896
|
path: "/scheduler",
|
|
1897
1897
|
name: "$menu-scheduler",
|
|
1898
|
-
component: b(() => import("./Scheduler-
|
|
1898
|
+
component: y(b(() => import("./Scheduler-C8ADLbDO.js"))),
|
|
1899
1899
|
meta: {
|
|
1900
|
-
...
|
|
1900
|
+
...h,
|
|
1901
1901
|
isNavItem: !0,
|
|
1902
1902
|
i18nId: "menu.scheduler.title"
|
|
1903
1903
|
}
|
|
@@ -1905,9 +1905,9 @@ const y = {
|
|
|
1905
1905
|
{
|
|
1906
1906
|
path: "/variant",
|
|
1907
1907
|
name: "$menu-variant",
|
|
1908
|
-
component: b(() => import("./Variant-
|
|
1908
|
+
component: y(b(() => import("./Variant-Mlc7mOFQ.js"))),
|
|
1909
1909
|
meta: {
|
|
1910
|
-
...
|
|
1910
|
+
...h,
|
|
1911
1911
|
isNavItem: !0,
|
|
1912
1912
|
i18nId: "menu.variant.title"
|
|
1913
1913
|
}
|
|
@@ -1915,39 +1915,39 @@ const y = {
|
|
|
1915
1915
|
{
|
|
1916
1916
|
path: "/recipe",
|
|
1917
1917
|
name: "$menu-recipe",
|
|
1918
|
-
component: b(() => import("./Recipe-
|
|
1918
|
+
component: y(b(() => import("./Recipe-6lpED5Jo.js"))),
|
|
1919
1919
|
meta: {
|
|
1920
|
-
...
|
|
1921
|
-
isNavItem: () => !
|
|
1920
|
+
...h,
|
|
1921
|
+
isNavItem: () => !T.value,
|
|
1922
1922
|
i18nId: "menu.recipe.title"
|
|
1923
1923
|
}
|
|
1924
1924
|
},
|
|
1925
1925
|
{
|
|
1926
1926
|
path: "/ingredient",
|
|
1927
1927
|
name: "$menu-ingredient",
|
|
1928
|
-
component: b(() => import("./Ingredient-
|
|
1928
|
+
component: y(b(() => import("./Ingredient-CQlggbtt.js"))),
|
|
1929
1929
|
meta: {
|
|
1930
|
-
...
|
|
1931
|
-
isNavItem: () => !
|
|
1930
|
+
...h,
|
|
1931
|
+
isNavItem: () => !T.value,
|
|
1932
1932
|
i18nId: "menu.ingredient.title"
|
|
1933
1933
|
}
|
|
1934
1934
|
},
|
|
1935
1935
|
{
|
|
1936
1936
|
path: "/unit",
|
|
1937
1937
|
name: "$menu-unit",
|
|
1938
|
-
component: b(() => import("./Unit-
|
|
1938
|
+
component: y(b(() => import("./Unit-D9K8aQkO.js"))),
|
|
1939
1939
|
meta: {
|
|
1940
|
-
...
|
|
1941
|
-
isNavItem: () => !
|
|
1940
|
+
...h,
|
|
1941
|
+
isNavItem: () => !T.value,
|
|
1942
1942
|
i18nId: "menu.unit.title"
|
|
1943
1943
|
}
|
|
1944
1944
|
},
|
|
1945
1945
|
{
|
|
1946
1946
|
path: "/cooking-guide",
|
|
1947
1947
|
name: "$menu-cooking-guide",
|
|
1948
|
-
component: b(() => import("./CookingGuide-
|
|
1948
|
+
component: y(b(() => import("./CookingGuide-C8WASY_U.js"))),
|
|
1949
1949
|
meta: {
|
|
1950
|
-
...
|
|
1950
|
+
...h,
|
|
1951
1951
|
isNavItem: !0,
|
|
1952
1952
|
i18nId: "menu.cooking_guide.title"
|
|
1953
1953
|
}
|
|
@@ -1955,9 +1955,9 @@ const y = {
|
|
|
1955
1955
|
{
|
|
1956
1956
|
path: "/print-route",
|
|
1957
1957
|
name: "$menu-print-route",
|
|
1958
|
-
component: b(() => import("./PrintRoute-
|
|
1958
|
+
component: y(b(() => import("./PrintRoute-Be-cJqee.js"))),
|
|
1959
1959
|
meta: {
|
|
1960
|
-
...
|
|
1960
|
+
...h,
|
|
1961
1961
|
isNavItem: !0,
|
|
1962
1962
|
i18nId: "menu.print_route.title"
|
|
1963
1963
|
}
|
|
@@ -1965,19 +1965,21 @@ const y = {
|
|
|
1965
1965
|
{
|
|
1966
1966
|
path: "/serving-sequence",
|
|
1967
1967
|
name: "$menu-serving-sequence",
|
|
1968
|
-
component:
|
|
1968
|
+
component: y(
|
|
1969
|
+
b(() => import("./ServingSequence-blQqZaDi.js"))
|
|
1970
|
+
),
|
|
1969
1971
|
meta: {
|
|
1970
|
-
...
|
|
1971
|
-
isNavItem: () =>
|
|
1972
|
+
...h,
|
|
1973
|
+
isNavItem: () => T.value,
|
|
1972
1974
|
i18nId: "menu.serving_sequence.title"
|
|
1973
1975
|
}
|
|
1974
1976
|
},
|
|
1975
1977
|
{
|
|
1976
1978
|
path: "/publish",
|
|
1977
1979
|
name: "$menu-publish",
|
|
1978
|
-
component: b(() => import("./Publish-
|
|
1980
|
+
component: y(b(() => import("./Publish-VtjhyJMe.js"))),
|
|
1979
1981
|
meta: {
|
|
1980
|
-
...
|
|
1982
|
+
...h,
|
|
1981
1983
|
isNavItem: !0,
|
|
1982
1984
|
i18nId: "menu.publish.title"
|
|
1983
1985
|
}
|
|
@@ -1989,9 +1991,9 @@ const y = {
|
|
|
1989
1991
|
{
|
|
1990
1992
|
path: "/setting",
|
|
1991
1993
|
name: "$menu-menu-setting",
|
|
1992
|
-
component: b(() => import("./MenuSetting-
|
|
1994
|
+
component: y(b(() => import("./MenuSetting-Cr0V03uO.js"))),
|
|
1993
1995
|
meta: {
|
|
1994
|
-
...
|
|
1996
|
+
...h,
|
|
1995
1997
|
isNavItem: !0,
|
|
1996
1998
|
i18nId: "menu.menu_setting.title"
|
|
1997
1999
|
}
|
|
@@ -2004,19 +2006,19 @@ const y = {
|
|
|
2004
2006
|
{
|
|
2005
2007
|
path: "/catalog",
|
|
2006
2008
|
name: "$menu-catalog",
|
|
2007
|
-
component: b(() => import("./Catalog-
|
|
2009
|
+
component: y(b(() => import("./Catalog-CtxYDf8U.js"))),
|
|
2008
2010
|
meta: {
|
|
2009
|
-
...
|
|
2011
|
+
...h,
|
|
2010
2012
|
isNavItem: !0,
|
|
2011
2013
|
i18nId: "menu.catalog.title"
|
|
2012
2014
|
}
|
|
2013
2015
|
},
|
|
2014
2016
|
{
|
|
2015
2017
|
path: "/catalog/edit/:id",
|
|
2016
|
-
component: b(() => import("./_id_-
|
|
2018
|
+
component: y(b(() => import("./_id_-DSnUrneJ.js"))),
|
|
2017
2019
|
name: "$menu-catalog-edit",
|
|
2018
2020
|
meta: {
|
|
2019
|
-
...
|
|
2021
|
+
...h
|
|
2020
2022
|
},
|
|
2021
2023
|
children: [
|
|
2022
2024
|
{
|
|
@@ -2028,50 +2030,50 @@ const y = {
|
|
|
2028
2030
|
},
|
|
2029
2031
|
{
|
|
2030
2032
|
path: "/catalog/edit/:id/product",
|
|
2031
|
-
component: b(() => import("./Product-
|
|
2033
|
+
component: y(b(() => import("./Product-D9PJsQWT.js"))),
|
|
2032
2034
|
name: "$menu-catalog-edit-product",
|
|
2033
|
-
meta: { ...
|
|
2035
|
+
meta: { ...h }
|
|
2034
2036
|
},
|
|
2035
2037
|
{
|
|
2036
2038
|
path: "/catalog/edit/:id/category",
|
|
2037
|
-
component: b(() => import("./Category-
|
|
2039
|
+
component: y(b(() => import("./Category-eJPVt-__.js"))),
|
|
2038
2040
|
name: "$menu-catalog-edit-category",
|
|
2039
|
-
meta: { ...
|
|
2041
|
+
meta: { ...h }
|
|
2040
2042
|
},
|
|
2041
2043
|
{
|
|
2042
2044
|
path: "/catalog/edit/:id/group",
|
|
2043
|
-
component: b(() => import("./Group-
|
|
2045
|
+
component: y(b(() => import("./Group-CvCCFBQd.js"))),
|
|
2044
2046
|
name: "$menu-catalog-edit-group",
|
|
2045
|
-
meta: { ...
|
|
2047
|
+
meta: { ...h }
|
|
2046
2048
|
},
|
|
2047
2049
|
{
|
|
2048
2050
|
path: "/catalog/edit/:id/takeaway",
|
|
2049
|
-
component: b(() => import("./Takeaway-
|
|
2051
|
+
component: y(b(() => import("./Takeaway-BIs7qdXT.js"))),
|
|
2050
2052
|
name: "$menu-catalog-edit-takeaway",
|
|
2051
|
-
meta: { ...
|
|
2053
|
+
meta: { ...h }
|
|
2052
2054
|
},
|
|
2053
2055
|
{
|
|
2054
2056
|
path: "/catalog/edit/:id/setting",
|
|
2055
|
-
component: b(() => import("./Setting-
|
|
2057
|
+
component: y(b(() => import("./Setting-w3lilAhR.js"))),
|
|
2056
2058
|
name: "$menu-catalog-edit-setting",
|
|
2057
|
-
meta: { ...
|
|
2059
|
+
meta: { ...h }
|
|
2058
2060
|
}
|
|
2059
2061
|
]
|
|
2060
2062
|
}
|
|
2061
2063
|
];
|
|
2062
|
-
var
|
|
2063
|
-
|
|
2064
|
+
var Ie;
|
|
2065
|
+
ae.push({
|
|
2064
2066
|
path: "/",
|
|
2065
2067
|
redirect: {
|
|
2066
|
-
name: ((
|
|
2068
|
+
name: ((Ie = ae[0].children) == null ? void 0 : Ie[0].name) || ae[0].name
|
|
2067
2069
|
}
|
|
2068
2070
|
});
|
|
2069
|
-
b(() => import("./Catalog-
|
|
2070
|
-
...
|
|
2071
|
-
}, b(() => import("./_id_-
|
|
2071
|
+
y(b(() => import("./Catalog-CtxYDf8U.js"))), {
|
|
2072
|
+
...h
|
|
2073
|
+
}, y(b(() => import("./_id_-DSnUrneJ.js"))), { ...h }, y(b(() => import("./Product-D9PJsQWT.js"))), { ...h }, y(b(() => import("./Category-eJPVt-__.js"))), { ...h }, y(b(() => import("./Group-CvCCFBQd.js"))), { ...h }, y(b(() => import("./Takeaway-BIs7qdXT.js"))), { ...h }, y(b(() => import("./Setting-w3lilAhR.js"))), { ...h };
|
|
2072
2074
|
const pi = "treeEditorOpen", hi = () => {
|
|
2073
2075
|
window.postMessage({ type: pi }, "*");
|
|
2074
|
-
}, fi = b(() => import("./App-
|
|
2076
|
+
}, fi = b(() => import("./App-8_Vr3J1_.js"));
|
|
2075
2077
|
function vi(e, t) {
|
|
2076
2078
|
e.use(Xa);
|
|
2077
2079
|
}
|
|
@@ -2091,6 +2093,6 @@ export {
|
|
|
2091
2093
|
vi as b,
|
|
2092
2094
|
ki as i,
|
|
2093
2095
|
hi as o,
|
|
2094
|
-
|
|
2096
|
+
ae as r,
|
|
2095
2097
|
yi as u
|
|
2096
2098
|
};
|