@feedmepos/mf-settings 0.0.48-beta.1-ex → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-cddefb91.js → App-cc67c5c1.js} +89 -88
- package/dist/Business-e8c7eafc.js +3893 -0
- package/dist/{CreateBusiness-fc4661b1.js → CreateBusiness-178daa1b.js} +3 -3
- package/dist/FoodCourt-01cfd384.js +47798 -0
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js +395 -0
- package/dist/{Tagging-0a2c6a6b.js → Tagging-eca30670.js} +1326 -1340
- package/dist/TemplateBuilder-f9ef1e3b.js +27 -0
- package/dist/actionButton-cc6bcf01.js +66 -0
- package/dist/app-6da9af48.js +782 -0
- package/dist/app.js +9 -719
- package/dist/apps/mf-settings/src/app.d.ts +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-8b22c801.js → business-5239a754.js} +1 -1
- package/dist/createForm-681e977a.js +64 -0
- package/dist/index-1eb3cc0a.js +17754 -0
- package/dist/index-f1e5e565.js +10903 -0
- package/dist/{loading-eb019aa4.js → loading-a9743d80.js} +152 -152
- package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +1 -1
- package/dist/packages/shared/src/components/loading/PageLoading.vue.d.ts +2 -0
- package/dist/packages/shared/src/components/loading/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/Business-2da2ffc4.js +0 -4181
- package/dist/FoodCourt-17a5dadd.js +0 -12451
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-65f62fbb.js +0 -101
- package/dist/TemplateBuilder-54a34178.js +0 -27
- package/dist/actionButton-6b6e9e60.js +0 -88
- package/dist/createForm-ad247a74.js +0 -92
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as Q } from "./index-f1e5e565.js";
|
|
2
2
|
import { useCoreStore as j } from "@feedmepos/mf-common";
|
|
3
3
|
import { computed as Et, isRef as St, watch as Rt } from "vue";
|
|
4
4
|
import { defineStore as Tt } from "pinia";
|
|
@@ -8,33 +8,33 @@ function We(t, e) {
|
|
|
8
8
|
return t.apply(e, arguments);
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
const { toString:
|
|
12
|
-
const n =
|
|
11
|
+
const { toString: Ot } = Object.prototype, { getPrototypeOf: ge } = Object, Z = ((t) => (e) => {
|
|
12
|
+
const n = Ot.call(e);
|
|
13
13
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
14
|
-
})(/* @__PURE__ */ Object.create(null)), x = (t) => (t = t.toLowerCase(), (e) =>
|
|
15
|
-
function
|
|
14
|
+
})(/* @__PURE__ */ Object.create(null)), x = (t) => (t = t.toLowerCase(), (e) => Z(e) === t), ee = (t) => (e) => typeof e === t, { isArray: M } = Array, $ = ee("undefined");
|
|
15
|
+
function At(t) {
|
|
16
16
|
return t !== null && !$(t) && t.constructor !== null && !$(t.constructor) && C(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const Ve = x("ArrayBuffer");
|
|
19
19
|
function Ct(t) {
|
|
20
20
|
let e;
|
|
21
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
21
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Ve(t.buffer), e;
|
|
22
22
|
}
|
|
23
|
-
const It = ee("string"), C = ee("function"),
|
|
24
|
-
if (
|
|
23
|
+
const It = ee("string"), C = ee("function"), Ge = ee("number"), te = (t) => t !== null && typeof t == "object", xt = (t) => t === !0 || t === !1, W = (t) => {
|
|
24
|
+
if (Z(t) !== "object")
|
|
25
25
|
return !1;
|
|
26
26
|
const e = ge(t);
|
|
27
27
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
28
|
-
}, Ut = x("Date"), kt = x("File"), Pt = x("Blob"), Lt = x("FileList"), _t = (t) => te(t) && C(t.pipe),
|
|
28
|
+
}, Ut = x("Date"), kt = x("File"), Pt = x("Blob"), Lt = x("FileList"), _t = (t) => te(t) && C(t.pipe), Nt = (t) => {
|
|
29
29
|
let e;
|
|
30
|
-
return t && (typeof FormData == "function" && t instanceof FormData || C(t.append) && ((e =
|
|
30
|
+
return t && (typeof FormData == "function" && t instanceof FormData || C(t.append) && ((e = Z(t)) === "formdata" || // detect form-data instance
|
|
31
31
|
e === "object" && C(t.toString) && t.toString() === "[object FormData]"));
|
|
32
|
-
},
|
|
32
|
+
}, Bt = x("URLSearchParams"), [Ft, Mt, vt, Dt] = ["ReadableStream", "Request", "Response", "Headers"].map(x), $t = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
33
33
|
function q(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
34
34
|
if (t === null || typeof t > "u")
|
|
35
35
|
return;
|
|
36
36
|
let r, s;
|
|
37
|
-
if (typeof t != "object" && (t = [t]),
|
|
37
|
+
if (typeof t != "object" && (t = [t]), M(t))
|
|
38
38
|
for (r = 0, s = t.length; r < s; r++)
|
|
39
39
|
e.call(null, t[r], r, t);
|
|
40
40
|
else {
|
|
@@ -53,11 +53,11 @@ function Qe(t, e) {
|
|
|
53
53
|
return s;
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const N = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ke = (t) => !$(t) && t !== N;
|
|
57
57
|
function fe() {
|
|
58
58
|
const { caseless: t } = Ke(this) && this || {}, e = {}, n = (r, s) => {
|
|
59
59
|
const o = t && Qe(e, s) || s;
|
|
60
|
-
W(e[o]) && W(r) ? e[o] = fe(e[o], r) : W(r) ? e[o] = fe({}, r) :
|
|
60
|
+
W(e[o]) && W(r) ? e[o] = fe(e[o], r) : W(r) ? e[o] = fe({}, r) : M(r) ? e[o] = r.slice() : e[o] = r;
|
|
61
61
|
};
|
|
62
62
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
63
63
|
arguments[r] && q(arguments[r], n);
|
|
@@ -87,16 +87,16 @@ const jt = (t, e, n, { allOwnKeys: r } = {}) => (q(e, (s, o) => {
|
|
|
87
87
|
}, Wt = (t) => {
|
|
88
88
|
if (!t)
|
|
89
89
|
return null;
|
|
90
|
-
if (
|
|
90
|
+
if (M(t))
|
|
91
91
|
return t;
|
|
92
92
|
let e = t.length;
|
|
93
|
-
if (!
|
|
93
|
+
if (!Ge(e))
|
|
94
94
|
return null;
|
|
95
95
|
const n = new Array(e);
|
|
96
96
|
for (; e-- > 0; )
|
|
97
97
|
n[e] = t[e];
|
|
98
98
|
return n;
|
|
99
|
-
},
|
|
99
|
+
}, Vt = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && ge(Uint8Array)), Gt = (t, e) => {
|
|
100
100
|
const r = (t && t[Symbol.iterator]).call(t);
|
|
101
101
|
let s;
|
|
102
102
|
for (; (s = r.next()) && !s.done; ) {
|
|
@@ -114,13 +114,13 @@ const jt = (t, e, n, { allOwnKeys: r } = {}) => (q(e, (s, o) => {
|
|
|
114
114
|
function(n, r, s) {
|
|
115
115
|
return r.toUpperCase() + s;
|
|
116
116
|
}
|
|
117
|
-
), Ie = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype),
|
|
117
|
+
), Ie = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Yt = x("RegExp"), Xe = (t, e) => {
|
|
118
118
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
119
119
|
q(n, (s, o) => {
|
|
120
120
|
let i;
|
|
121
121
|
(i = e(s, o, t)) !== !1 && (r[o] = i || s);
|
|
122
122
|
}), Object.defineProperties(t, r);
|
|
123
|
-
},
|
|
123
|
+
}, Zt = (t) => {
|
|
124
124
|
Xe(t, (e, n) => {
|
|
125
125
|
if (C(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
126
126
|
return !1;
|
|
@@ -141,13 +141,13 @@ const jt = (t, e, n, { allOwnKeys: r } = {}) => (q(e, (s, o) => {
|
|
|
141
141
|
n[o] = !0;
|
|
142
142
|
});
|
|
143
143
|
};
|
|
144
|
-
return
|
|
144
|
+
return M(t) ? r(t) : r(String(t).split(e)), n;
|
|
145
145
|
}, tn = () => {
|
|
146
|
-
}, nn = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, ie = "abcdefghijklmnopqrstuvwxyz", xe = "0123456789",
|
|
146
|
+
}, nn = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, ie = "abcdefghijklmnopqrstuvwxyz", xe = "0123456789", Ye = {
|
|
147
147
|
DIGIT: xe,
|
|
148
148
|
ALPHA: ie,
|
|
149
149
|
ALPHA_DIGIT: ie + ie.toUpperCase() + xe
|
|
150
|
-
}, rn = (t = 16, e =
|
|
150
|
+
}, rn = (t = 16, e = Ye.ALPHA_DIGIT) => {
|
|
151
151
|
let n = "";
|
|
152
152
|
const { length: r } = e;
|
|
153
153
|
for (; t--; )
|
|
@@ -164,7 +164,7 @@ const on = (t) => {
|
|
|
164
164
|
return;
|
|
165
165
|
if (!("toJSON" in r)) {
|
|
166
166
|
e[s] = r;
|
|
167
|
-
const o =
|
|
167
|
+
const o = M(r) ? [] : {};
|
|
168
168
|
return q(r, (i, a) => {
|
|
169
169
|
const d = n(i, s + 1);
|
|
170
170
|
!$(d) && (o[a] = d);
|
|
@@ -174,37 +174,37 @@ const on = (t) => {
|
|
|
174
174
|
return r;
|
|
175
175
|
};
|
|
176
176
|
return n(t, 0);
|
|
177
|
-
}, an = x("AsyncFunction"), cn = (t) => t && (te(t) || C(t)) && C(t.then) && C(t.catch),
|
|
178
|
-
s ===
|
|
177
|
+
}, an = x("AsyncFunction"), cn = (t) => t && (te(t) || C(t)) && C(t.then) && C(t.catch), Ze = ((t, e) => t ? setImmediate : e ? ((n, r) => (N.addEventListener("message", ({ source: s, data: o }) => {
|
|
178
|
+
s === N && o === n && r.length && r.shift()();
|
|
179
179
|
}, !1), (s) => {
|
|
180
|
-
r.push(s),
|
|
180
|
+
r.push(s), N.postMessage(n, "*");
|
|
181
181
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
182
182
|
typeof setImmediate == "function",
|
|
183
|
-
C(
|
|
184
|
-
), un = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
185
|
-
isArray:
|
|
186
|
-
isArrayBuffer:
|
|
187
|
-
isBuffer:
|
|
188
|
-
isFormData:
|
|
183
|
+
C(N.postMessage)
|
|
184
|
+
), un = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || Ze, c = {
|
|
185
|
+
isArray: M,
|
|
186
|
+
isArrayBuffer: Ve,
|
|
187
|
+
isBuffer: At,
|
|
188
|
+
isFormData: Nt,
|
|
189
189
|
isArrayBufferView: Ct,
|
|
190
190
|
isString: It,
|
|
191
|
-
isNumber:
|
|
191
|
+
isNumber: Ge,
|
|
192
192
|
isBoolean: xt,
|
|
193
193
|
isObject: te,
|
|
194
194
|
isPlainObject: W,
|
|
195
|
-
isReadableStream:
|
|
196
|
-
isRequest:
|
|
197
|
-
isResponse:
|
|
195
|
+
isReadableStream: Ft,
|
|
196
|
+
isRequest: Mt,
|
|
197
|
+
isResponse: vt,
|
|
198
198
|
isHeaders: Dt,
|
|
199
199
|
isUndefined: $,
|
|
200
200
|
isDate: Ut,
|
|
201
201
|
isFile: kt,
|
|
202
202
|
isBlob: Pt,
|
|
203
|
-
isRegExp:
|
|
203
|
+
isRegExp: Yt,
|
|
204
204
|
isFunction: C,
|
|
205
205
|
isStream: _t,
|
|
206
|
-
isURLSearchParams:
|
|
207
|
-
isTypedArray:
|
|
206
|
+
isURLSearchParams: Bt,
|
|
207
|
+
isTypedArray: Vt,
|
|
208
208
|
isFileList: Lt,
|
|
209
209
|
forEach: q,
|
|
210
210
|
merge: fe,
|
|
@@ -213,32 +213,32 @@ const on = (t) => {
|
|
|
213
213
|
stripBOM: qt,
|
|
214
214
|
inherits: Ht,
|
|
215
215
|
toFlatObject: zt,
|
|
216
|
-
kindOf:
|
|
216
|
+
kindOf: Z,
|
|
217
217
|
kindOfTest: x,
|
|
218
218
|
endsWith: Jt,
|
|
219
219
|
toArray: Wt,
|
|
220
|
-
forEachEntry:
|
|
220
|
+
forEachEntry: Gt,
|
|
221
221
|
matchAll: Qt,
|
|
222
222
|
isHTMLForm: Kt,
|
|
223
223
|
hasOwnProperty: Ie,
|
|
224
224
|
hasOwnProp: Ie,
|
|
225
225
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
226
226
|
reduceDescriptors: Xe,
|
|
227
|
-
freezeMethods:
|
|
227
|
+
freezeMethods: Zt,
|
|
228
228
|
toObjectSet: en,
|
|
229
229
|
toCamelCase: Xt,
|
|
230
230
|
noop: tn,
|
|
231
231
|
toFiniteNumber: nn,
|
|
232
232
|
findKey: Qe,
|
|
233
|
-
global:
|
|
233
|
+
global: N,
|
|
234
234
|
isContextDefined: Ke,
|
|
235
|
-
ALPHABET:
|
|
235
|
+
ALPHABET: Ye,
|
|
236
236
|
generateString: rn,
|
|
237
237
|
isSpecCompliantForm: sn,
|
|
238
238
|
toJSONObject: on,
|
|
239
239
|
isAsyncFn: an,
|
|
240
240
|
isThenable: cn,
|
|
241
|
-
setImmediate:
|
|
241
|
+
setImmediate: Ze,
|
|
242
242
|
asap: un
|
|
243
243
|
};
|
|
244
244
|
function m(t, e, n, r, s) {
|
|
@@ -488,21 +488,21 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
488
488
|
hasStandardBrowserWebWorkerEnv: En,
|
|
489
489
|
navigator: he,
|
|
490
490
|
origin: Sn
|
|
491
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
491
|
+
}, Symbol.toStringTag, { value: "Module" })), A = {
|
|
492
492
|
...Rn,
|
|
493
493
|
...bn
|
|
494
494
|
};
|
|
495
495
|
function Tn(t, e) {
|
|
496
|
-
return ne(t, new
|
|
496
|
+
return ne(t, new A.classes.URLSearchParams(), Object.assign({
|
|
497
497
|
visitor: function(n, r, s, o) {
|
|
498
|
-
return
|
|
498
|
+
return A.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
499
499
|
}
|
|
500
500
|
}, e));
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function On(t) {
|
|
503
503
|
return c.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function An(t) {
|
|
506
506
|
const e = {}, n = Object.keys(t);
|
|
507
507
|
let r;
|
|
508
508
|
const s = n.length;
|
|
@@ -517,12 +517,12 @@ function it(t) {
|
|
|
517
517
|
if (i === "__proto__")
|
|
518
518
|
return !0;
|
|
519
519
|
const a = Number.isFinite(+i), d = o >= n.length;
|
|
520
|
-
return i = !i && c.isArray(s) ? s.length : i, d ? (c.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !c.isObject(s[i])) && (s[i] = []), e(n, r, s[i], o) && c.isArray(s[i]) && (s[i] =
|
|
520
|
+
return i = !i && c.isArray(s) ? s.length : i, d ? (c.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !c.isObject(s[i])) && (s[i] = []), e(n, r, s[i], o) && c.isArray(s[i]) && (s[i] = An(s[i])), !a);
|
|
521
521
|
}
|
|
522
522
|
if (c.isFormData(t) && c.isFunction(t.entries)) {
|
|
523
523
|
const n = {};
|
|
524
524
|
return c.forEachEntry(t, (r, s) => {
|
|
525
|
-
e(
|
|
525
|
+
e(On(r), s, n, 0);
|
|
526
526
|
}), n;
|
|
527
527
|
}
|
|
528
528
|
return null;
|
|
@@ -590,8 +590,8 @@ const Re = {
|
|
|
590
590
|
maxContentLength: -1,
|
|
591
591
|
maxBodyLength: -1,
|
|
592
592
|
env: {
|
|
593
|
-
FormData:
|
|
594
|
-
Blob:
|
|
593
|
+
FormData: A.classes.FormData,
|
|
594
|
+
Blob: A.classes.Blob
|
|
595
595
|
},
|
|
596
596
|
validateStatus: function(e) {
|
|
597
597
|
return e >= 200 && e < 300;
|
|
@@ -635,8 +635,8 @@ const Te = Re, In = c.toObjectSet([
|
|
|
635
635
|
function D(t) {
|
|
636
636
|
return t && String(t).trim().toLowerCase();
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
return t === !1 || t == null ? t : c.isArray(t) ? t.map(
|
|
638
|
+
function V(t) {
|
|
639
|
+
return t === !1 || t == null ? t : c.isArray(t) ? t.map(V) : String(t);
|
|
640
640
|
}
|
|
641
641
|
function Un(t) {
|
|
642
642
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -681,7 +681,7 @@ let re = class {
|
|
|
681
681
|
if (!l)
|
|
682
682
|
throw new Error("header name must be a non-empty string");
|
|
683
683
|
const f = c.findKey(s, l);
|
|
684
|
-
(!f || s[f] === void 0 || u === !0 || u === void 0 && s[f] !== !1) && (s[f || d] =
|
|
684
|
+
(!f || s[f] === void 0 || u === !0 || u === void 0 && s[f] !== !1) && (s[f || d] = V(a));
|
|
685
685
|
}
|
|
686
686
|
const i = (a, d) => c.forEach(a, (u, l) => o(u, l, d));
|
|
687
687
|
if (c.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -744,11 +744,11 @@ let re = class {
|
|
|
744
744
|
return c.forEach(this, (s, o) => {
|
|
745
745
|
const i = c.findKey(r, o);
|
|
746
746
|
if (i) {
|
|
747
|
-
n[i] =
|
|
747
|
+
n[i] = V(s), delete n[o];
|
|
748
748
|
return;
|
|
749
749
|
}
|
|
750
750
|
const a = e ? Pn(o) : String(o).trim();
|
|
751
|
-
a !== o && delete n[o], n[a] =
|
|
751
|
+
a !== o && delete n[o], n[a] = V(s), r[a] = !0;
|
|
752
752
|
}), this;
|
|
753
753
|
}
|
|
754
754
|
concat(...e) {
|
|
@@ -810,10 +810,10 @@ function ce(t, e) {
|
|
|
810
810
|
function at(t) {
|
|
811
811
|
return !!(t && t.__CANCEL__);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function v(t, e, n) {
|
|
814
814
|
m.call(this, t ?? "canceled", m.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
815
815
|
}
|
|
816
|
-
c.inherits(
|
|
816
|
+
c.inherits(v, m, {
|
|
817
817
|
__CANCEL__: !0
|
|
818
818
|
});
|
|
819
819
|
function ct(t, e, n) {
|
|
@@ -830,7 +830,7 @@ function _n(t) {
|
|
|
830
830
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
831
831
|
return e && e[1] || "";
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function Nn(t, e) {
|
|
834
834
|
t = t || 10;
|
|
835
835
|
const n = new Array(t), r = new Array(t);
|
|
836
836
|
let s = 0, o = 0, i;
|
|
@@ -846,7 +846,7 @@ function Bn(t, e) {
|
|
|
846
846
|
return E ? Math.round(w * 1e3 / E) : void 0;
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function Bn(t, e) {
|
|
850
850
|
let n = 0, r = 1e3 / e, s, o;
|
|
851
851
|
const i = (u, l = Date.now()) => {
|
|
852
852
|
n = l, s = null, o && (clearTimeout(o), o = null), t.apply(null, u);
|
|
@@ -860,8 +860,8 @@ function vn(t, e) {
|
|
|
860
860
|
}
|
|
861
861
|
const K = (t, e, n = 3) => {
|
|
862
862
|
let r = 0;
|
|
863
|
-
const s =
|
|
864
|
-
return
|
|
863
|
+
const s = Nn(50, 250);
|
|
864
|
+
return Bn((o) => {
|
|
865
865
|
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, d = i - r, u = s(d), l = i <= a;
|
|
866
866
|
r = i;
|
|
867
867
|
const f = {
|
|
@@ -884,11 +884,11 @@ const K = (t, e, n = 3) => {
|
|
|
884
884
|
total: t,
|
|
885
885
|
loaded: r
|
|
886
886
|
}), e[1]];
|
|
887
|
-
},
|
|
887
|
+
}, Ne = (t) => (...e) => c.asap(() => t(...e)), Fn = A.hasStandardBrowserEnv ? (
|
|
888
888
|
// Standard browser envs have full support of the APIs needed to test
|
|
889
889
|
// whether the request URL is of the same origin as current location.
|
|
890
890
|
function() {
|
|
891
|
-
const e =
|
|
891
|
+
const e = A.navigator && /(msie|trident)/i.test(A.navigator.userAgent), n = document.createElement("a");
|
|
892
892
|
let r;
|
|
893
893
|
function s(o) {
|
|
894
894
|
let i = o;
|
|
@@ -915,7 +915,7 @@ const K = (t, e, n = 3) => {
|
|
|
915
915
|
return !0;
|
|
916
916
|
};
|
|
917
917
|
}()
|
|
918
|
-
),
|
|
918
|
+
), Mn = A.hasStandardBrowserEnv ? (
|
|
919
919
|
// Standard browser envs support document.cookie
|
|
920
920
|
{
|
|
921
921
|
write(t, e, n, r, s, o) {
|
|
@@ -942,17 +942,17 @@ const K = (t, e, n = 3) => {
|
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
);
|
|
945
|
-
function
|
|
945
|
+
function vn(t) {
|
|
946
946
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
947
947
|
}
|
|
948
948
|
function Dn(t, e) {
|
|
949
949
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
950
950
|
}
|
|
951
951
|
function ut(t, e) {
|
|
952
|
-
return t && !
|
|
952
|
+
return t && !vn(e) ? Dn(t, e) : e;
|
|
953
953
|
}
|
|
954
|
-
const
|
|
955
|
-
function
|
|
954
|
+
const Be = (t) => t instanceof I ? { ...t } : t;
|
|
955
|
+
function B(t, e) {
|
|
956
956
|
e = e || {};
|
|
957
957
|
const n = {};
|
|
958
958
|
function r(u, l, f) {
|
|
@@ -1011,7 +1011,7 @@ function v(t, e) {
|
|
|
1011
1011
|
socketPath: i,
|
|
1012
1012
|
responseEncoding: i,
|
|
1013
1013
|
validateStatus: a,
|
|
1014
|
-
headers: (u, l) => s(
|
|
1014
|
+
headers: (u, l) => s(Be(u), Be(l), !0)
|
|
1015
1015
|
};
|
|
1016
1016
|
return c.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
|
|
1017
1017
|
const f = d[l] || s, w = f(t[l], e[l], l);
|
|
@@ -1019,7 +1019,7 @@ function v(t, e) {
|
|
|
1019
1019
|
}), n;
|
|
1020
1020
|
}
|
|
1021
1021
|
const lt = (t) => {
|
|
1022
|
-
const e =
|
|
1022
|
+
const e = B({}, t);
|
|
1023
1023
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: a } = e;
|
|
1024
1024
|
e.headers = i = I.from(i), e.url = st(ut(e.baseURL, e.url), t.params, t.paramsSerializer), a && i.set(
|
|
1025
1025
|
"Authorization",
|
|
@@ -1027,15 +1027,15 @@ const lt = (t) => {
|
|
|
1027
1027
|
);
|
|
1028
1028
|
let d;
|
|
1029
1029
|
if (c.isFormData(n)) {
|
|
1030
|
-
if (
|
|
1030
|
+
if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
|
|
1031
1031
|
i.setContentType(void 0);
|
|
1032
1032
|
else if ((d = i.getContentType()) !== !1) {
|
|
1033
1033
|
const [u, ...l] = d ? d.split(";").map((f) => f.trim()).filter(Boolean) : [];
|
|
1034
1034
|
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
if (
|
|
1038
|
-
const u = s && o &&
|
|
1037
|
+
if (A.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(e)), r || r !== !1 && Fn(e.url))) {
|
|
1038
|
+
const u = s && o && Mn.read(o);
|
|
1039
1039
|
u && i.set(s, u);
|
|
1040
1040
|
}
|
|
1041
1041
|
return e;
|
|
@@ -1055,7 +1055,7 @@ const lt = (t) => {
|
|
|
1055
1055
|
return;
|
|
1056
1056
|
const R = I.from(
|
|
1057
1057
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1058
|
-
),
|
|
1058
|
+
), O = {
|
|
1059
1059
|
data: !a || a === "text" || a === "json" ? h.responseText : h.response,
|
|
1060
1060
|
status: h.status,
|
|
1061
1061
|
statusText: h.statusText,
|
|
@@ -1067,7 +1067,7 @@ const lt = (t) => {
|
|
|
1067
1067
|
n(_), y();
|
|
1068
1068
|
}, function(_) {
|
|
1069
1069
|
r(_), y();
|
|
1070
|
-
},
|
|
1070
|
+
}, O), h = null;
|
|
1071
1071
|
}
|
|
1072
1072
|
"onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
|
|
1073
1073
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
@@ -1077,20 +1077,20 @@ const lt = (t) => {
|
|
|
1077
1077
|
r(new m("Network Error", m.ERR_NETWORK, t, h)), h = null;
|
|
1078
1078
|
}, h.ontimeout = function() {
|
|
1079
1079
|
let U = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1080
|
-
const
|
|
1080
|
+
const O = s.transitional || ot;
|
|
1081
1081
|
s.timeoutErrorMessage && (U = s.timeoutErrorMessage), r(new m(
|
|
1082
1082
|
U,
|
|
1083
|
-
|
|
1083
|
+
O.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
1084
1084
|
t,
|
|
1085
1085
|
h
|
|
1086
1086
|
)), h = null;
|
|
1087
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(U,
|
|
1088
|
-
h.setRequestHeader(
|
|
1087
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(U, O) {
|
|
1088
|
+
h.setRequestHeader(O, U);
|
|
1089
1089
|
}), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), u && ([w, p] = K(u, !0), h.addEventListener("progress", w)), d && h.upload && ([f, E] = K(d), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (l = (R) => {
|
|
1090
|
-
h && (r(!R || R.type ? new
|
|
1090
|
+
h && (r(!R || R.type ? new v(null, t, h) : R), h.abort(), h = null);
|
|
1091
1091
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1092
1092
|
const S = _n(s.url);
|
|
1093
|
-
if (S &&
|
|
1093
|
+
if (S && A.protocols.indexOf(S) === -1) {
|
|
1094
1094
|
r(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, t));
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
@@ -1104,7 +1104,7 @@ const lt = (t) => {
|
|
|
1104
1104
|
if (!s) {
|
|
1105
1105
|
s = !0, a();
|
|
1106
1106
|
const l = u instanceof Error ? u : this.reason;
|
|
1107
|
-
r.abort(l instanceof m ? l : new
|
|
1107
|
+
r.abort(l instanceof m ? l : new v(l instanceof Error ? l.message : l));
|
|
1108
1108
|
}
|
|
1109
1109
|
};
|
|
1110
1110
|
let i = e && setTimeout(() => {
|
|
@@ -1147,7 +1147,7 @@ const lt = (t) => {
|
|
|
1147
1147
|
} finally {
|
|
1148
1148
|
await e.cancel();
|
|
1149
1149
|
}
|
|
1150
|
-
},
|
|
1150
|
+
}, Fe = (t, e, n, r) => {
|
|
1151
1151
|
const s = Jn(t, e);
|
|
1152
1152
|
let o = 0, i, a = (d) => {
|
|
1153
1153
|
i || (i = !0, r && r(d));
|
|
@@ -1176,15 +1176,15 @@ const lt = (t) => {
|
|
|
1176
1176
|
}, {
|
|
1177
1177
|
highWaterMark: 2
|
|
1178
1178
|
});
|
|
1179
|
-
}, se = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", dt = se && typeof ReadableStream == "function",
|
|
1179
|
+
}, se = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", dt = se && typeof ReadableStream == "function", Vn = se && (typeof TextEncoder == "function" ? ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), ft = (t, ...e) => {
|
|
1180
1180
|
try {
|
|
1181
1181
|
return !!t(...e);
|
|
1182
1182
|
} catch {
|
|
1183
1183
|
return !1;
|
|
1184
1184
|
}
|
|
1185
|
-
},
|
|
1185
|
+
}, Gn = dt && ft(() => {
|
|
1186
1186
|
let t = !1;
|
|
1187
|
-
const e = new Request(
|
|
1187
|
+
const e = new Request(A.origin, {
|
|
1188
1188
|
body: new ReadableStream(),
|
|
1189
1189
|
method: "POST",
|
|
1190
1190
|
get duplex() {
|
|
@@ -1192,7 +1192,7 @@ const lt = (t) => {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
}).headers.has("Content-Type");
|
|
1194
1194
|
return t && !e;
|
|
1195
|
-
}),
|
|
1195
|
+
}), Me = 64 * 1024, me = dt && ft(() => c.isReadableStream(new Response("").body)), X = {
|
|
1196
1196
|
stream: me && ((t) => t.body)
|
|
1197
1197
|
};
|
|
1198
1198
|
se && ((t) => {
|
|
@@ -1208,14 +1208,14 @@ const Qn = async (t) => {
|
|
|
1208
1208
|
if (c.isBlob(t))
|
|
1209
1209
|
return t.size;
|
|
1210
1210
|
if (c.isSpecCompliantForm(t))
|
|
1211
|
-
return (await new Request(
|
|
1211
|
+
return (await new Request(A.origin, {
|
|
1212
1212
|
method: "POST",
|
|
1213
1213
|
body: t
|
|
1214
1214
|
}).arrayBuffer()).byteLength;
|
|
1215
1215
|
if (c.isArrayBufferView(t) || c.isArrayBuffer(t))
|
|
1216
1216
|
return t.byteLength;
|
|
1217
1217
|
if (c.isURLSearchParams(t) && (t = t + ""), c.isString(t))
|
|
1218
|
-
return (await
|
|
1218
|
+
return (await Vn(t)).byteLength;
|
|
1219
1219
|
}, Kn = async (t, e) => {
|
|
1220
1220
|
const n = c.toFiniteNumber(t.getContentLength());
|
|
1221
1221
|
return n ?? Qn(e);
|
|
@@ -1241,18 +1241,18 @@ const Qn = async (t) => {
|
|
|
1241
1241
|
});
|
|
1242
1242
|
let h;
|
|
1243
1243
|
try {
|
|
1244
|
-
if (d &&
|
|
1245
|
-
let
|
|
1244
|
+
if (d && Gn && n !== "get" && n !== "head" && (h = await Kn(l, r)) !== 0) {
|
|
1245
|
+
let O = new Request(e, {
|
|
1246
1246
|
method: "POST",
|
|
1247
1247
|
body: r,
|
|
1248
1248
|
duplex: "half"
|
|
1249
1249
|
}), k;
|
|
1250
|
-
if (c.isFormData(r) && (k =
|
|
1250
|
+
if (c.isFormData(r) && (k = O.headers.get("content-type")) && l.setContentType(k), O.body) {
|
|
1251
1251
|
const [_, H] = _e(
|
|
1252
1252
|
h,
|
|
1253
|
-
K(
|
|
1253
|
+
K(Ne(d))
|
|
1254
1254
|
);
|
|
1255
|
-
r =
|
|
1255
|
+
r = Fe(O.body, Me, _, H);
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
1258
|
c.isString(f) || (f = f ? "include" : "omit");
|
|
@@ -1269,25 +1269,25 @@ const Qn = async (t) => {
|
|
|
1269
1269
|
let S = await fetch(p);
|
|
1270
1270
|
const R = me && (u === "stream" || u === "response");
|
|
1271
1271
|
if (me && (a || R && y)) {
|
|
1272
|
-
const
|
|
1272
|
+
const O = {};
|
|
1273
1273
|
["status", "statusText", "headers"].forEach((Ce) => {
|
|
1274
|
-
|
|
1274
|
+
O[Ce] = S[Ce];
|
|
1275
1275
|
});
|
|
1276
1276
|
const k = c.toFiniteNumber(S.headers.get("content-length")), [_, H] = a && _e(
|
|
1277
1277
|
k,
|
|
1278
|
-
K(
|
|
1278
|
+
K(Ne(a), !0)
|
|
1279
1279
|
) || [];
|
|
1280
1280
|
S = new Response(
|
|
1281
|
-
|
|
1281
|
+
Fe(S.body, Me, _, () => {
|
|
1282
1282
|
H && H(), y && y();
|
|
1283
1283
|
}),
|
|
1284
|
-
|
|
1284
|
+
O
|
|
1285
1285
|
);
|
|
1286
1286
|
}
|
|
1287
1287
|
u = u || "text";
|
|
1288
1288
|
let U = await X[c.findKey(X, u) || "text"](S, t);
|
|
1289
|
-
return !R && y && y(), await new Promise((
|
|
1290
|
-
ct(
|
|
1289
|
+
return !R && y && y(), await new Promise((O, k) => {
|
|
1290
|
+
ct(O, k, {
|
|
1291
1291
|
data: U,
|
|
1292
1292
|
headers: I.from(S.headers),
|
|
1293
1293
|
status: S.status,
|
|
@@ -1318,7 +1318,7 @@ c.forEach(ye, (t, e) => {
|
|
|
1318
1318
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1319
1319
|
}
|
|
1320
1320
|
});
|
|
1321
|
-
const
|
|
1321
|
+
const ve = (t) => `- ${t}`, Yn = (t) => c.isFunction(t) || t === null || t === !1, pt = {
|
|
1322
1322
|
getAdapter: (t) => {
|
|
1323
1323
|
t = c.isArray(t) ? t : [t];
|
|
1324
1324
|
const { length: e } = t;
|
|
@@ -1327,7 +1327,7 @@ const Me = (t) => `- ${t}`, Zn = (t) => c.isFunction(t) || t === null || t === !
|
|
|
1327
1327
|
for (let o = 0; o < e; o++) {
|
|
1328
1328
|
n = t[o];
|
|
1329
1329
|
let i;
|
|
1330
|
-
if (r = n, !
|
|
1330
|
+
if (r = n, !Yn(n) && (r = ye[(i = String(n)).toLowerCase()], r === void 0))
|
|
1331
1331
|
throw new m(`Unknown adapter '${i}'`);
|
|
1332
1332
|
if (r)
|
|
1333
1333
|
break;
|
|
@@ -1338,8 +1338,8 @@ const Me = (t) => `- ${t}`, Zn = (t) => c.isFunction(t) || t === null || t === !
|
|
|
1338
1338
|
([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1339
1339
|
);
|
|
1340
1340
|
let i = e ? o.length > 1 ? `since :
|
|
1341
|
-
` + o.map(
|
|
1342
|
-
`) : " " +
|
|
1341
|
+
` + o.map(ve).join(`
|
|
1342
|
+
`) : " " + ve(o[0]) : "as no adapter specified";
|
|
1343
1343
|
throw new m(
|
|
1344
1344
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1345
1345
|
"ERR_NOT_SUPPORT"
|
|
@@ -1351,7 +1351,7 @@ const Me = (t) => `- ${t}`, Zn = (t) => c.isFunction(t) || t === null || t === !
|
|
|
1351
1351
|
};
|
|
1352
1352
|
function ue(t) {
|
|
1353
1353
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1354
|
-
throw new
|
|
1354
|
+
throw new v(null, t);
|
|
1355
1355
|
}
|
|
1356
1356
|
function De(t) {
|
|
1357
1357
|
return ue(t), t.headers = I.from(t.headers), t.data = ce.call(
|
|
@@ -1371,14 +1371,14 @@ function De(t) {
|
|
|
1371
1371
|
), r.response.headers = I.from(r.response.headers))), Promise.reject(r);
|
|
1372
1372
|
});
|
|
1373
1373
|
}
|
|
1374
|
-
const ht = "1.7.7",
|
|
1374
|
+
const ht = "1.7.7", Oe = {};
|
|
1375
1375
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1376
|
-
|
|
1376
|
+
Oe[t] = function(r) {
|
|
1377
1377
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1378
1378
|
};
|
|
1379
1379
|
});
|
|
1380
1380
|
const $e = {};
|
|
1381
|
-
|
|
1381
|
+
Oe.transitional = function(e, n, r) {
|
|
1382
1382
|
function s(o, i) {
|
|
1383
1383
|
return "[Axios v" + ht + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1384
1384
|
}
|
|
@@ -1396,7 +1396,7 @@ Ae.transitional = function(e, n, r) {
|
|
|
1396
1396
|
)), e ? e(o, i, a) : !0;
|
|
1397
1397
|
};
|
|
1398
1398
|
};
|
|
1399
|
-
function
|
|
1399
|
+
function Zn(t, e, n) {
|
|
1400
1400
|
if (typeof t != "object")
|
|
1401
1401
|
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1402
1402
|
const r = Object.keys(t);
|
|
@@ -1414,10 +1414,10 @@ function Yn(t, e, n) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
1416
|
const we = {
|
|
1417
|
-
assertOptions:
|
|
1418
|
-
validators:
|
|
1417
|
+
assertOptions: Zn,
|
|
1418
|
+
validators: Oe
|
|
1419
1419
|
}, P = we.validators;
|
|
1420
|
-
let
|
|
1420
|
+
let Y = class {
|
|
1421
1421
|
constructor(e) {
|
|
1422
1422
|
this.defaults = e, this.interceptors = {
|
|
1423
1423
|
request: new Pe(),
|
|
@@ -1450,7 +1450,7 @@ let Z = class {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
1452
|
_request(e, n) {
|
|
1453
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
1453
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = B(this.defaults, n);
|
|
1454
1454
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1455
1455
|
r !== void 0 && we.assertOptions(r, {
|
|
1456
1456
|
silentJSONParsing: P.transitional(P.boolean),
|
|
@@ -1509,14 +1509,14 @@ let Z = class {
|
|
|
1509
1509
|
return l;
|
|
1510
1510
|
}
|
|
1511
1511
|
getUri(e) {
|
|
1512
|
-
e =
|
|
1512
|
+
e = B(this.defaults, e);
|
|
1513
1513
|
const n = ut(e.baseURL, e.url);
|
|
1514
1514
|
return st(n, e.params, e.paramsSerializer);
|
|
1515
1515
|
}
|
|
1516
1516
|
};
|
|
1517
1517
|
c.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1518
|
-
|
|
1519
|
-
return this.request(
|
|
1518
|
+
Y.prototype[e] = function(n, r) {
|
|
1519
|
+
return this.request(B(r || {}, {
|
|
1520
1520
|
method: e,
|
|
1521
1521
|
url: n,
|
|
1522
1522
|
data: (r || {}).data
|
|
@@ -1526,7 +1526,7 @@ c.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1526
1526
|
c.forEach(["post", "put", "patch"], function(e) {
|
|
1527
1527
|
function n(r) {
|
|
1528
1528
|
return function(o, i, a) {
|
|
1529
|
-
return this.request(
|
|
1529
|
+
return this.request(B(a || {}, {
|
|
1530
1530
|
method: e,
|
|
1531
1531
|
headers: r ? {
|
|
1532
1532
|
"Content-Type": "multipart/form-data"
|
|
@@ -1536,9 +1536,9 @@ c.forEach(["post", "put", "patch"], function(e) {
|
|
|
1536
1536
|
}));
|
|
1537
1537
|
};
|
|
1538
1538
|
}
|
|
1539
|
-
|
|
1539
|
+
Y.prototype[e] = n(), Y.prototype[e + "Form"] = n(!0);
|
|
1540
1540
|
});
|
|
1541
|
-
const
|
|
1541
|
+
const G = Y;
|
|
1542
1542
|
let er = class mt {
|
|
1543
1543
|
constructor(e) {
|
|
1544
1544
|
if (typeof e != "function")
|
|
@@ -1564,7 +1564,7 @@ let er = class mt {
|
|
|
1564
1564
|
r.unsubscribe(o);
|
|
1565
1565
|
}, i;
|
|
1566
1566
|
}, e(function(o, i, a) {
|
|
1567
|
-
r.reason || (r.reason = new
|
|
1567
|
+
r.reason || (r.reason = new v(o, i, a), n(r.reason));
|
|
1568
1568
|
});
|
|
1569
1569
|
}
|
|
1570
1570
|
/**
|
|
@@ -1692,14 +1692,14 @@ Object.entries(be).forEach(([t, e]) => {
|
|
|
1692
1692
|
});
|
|
1693
1693
|
const sr = be;
|
|
1694
1694
|
function yt(t) {
|
|
1695
|
-
const e = new
|
|
1696
|
-
return c.extend(n,
|
|
1697
|
-
return yt(
|
|
1695
|
+
const e = new G(t), n = We(G.prototype.request, e);
|
|
1696
|
+
return c.extend(n, G.prototype, e, { allOwnKeys: !0 }), c.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1697
|
+
return yt(B(t, s));
|
|
1698
1698
|
}, n;
|
|
1699
1699
|
}
|
|
1700
1700
|
const g = yt(Te);
|
|
1701
|
-
g.Axios =
|
|
1702
|
-
g.CanceledError =
|
|
1701
|
+
g.Axios = G;
|
|
1702
|
+
g.CanceledError = v;
|
|
1703
1703
|
g.CancelToken = tr;
|
|
1704
1704
|
g.isCancel = at;
|
|
1705
1705
|
g.VERSION = ht;
|
|
@@ -1711,13 +1711,13 @@ g.all = function(e) {
|
|
|
1711
1711
|
};
|
|
1712
1712
|
g.spread = nr;
|
|
1713
1713
|
g.isAxiosError = rr;
|
|
1714
|
-
g.mergeConfig =
|
|
1714
|
+
g.mergeConfig = B;
|
|
1715
1715
|
g.AxiosHeaders = I;
|
|
1716
1716
|
g.formToJSON = (t) => it(c.isHTMLForm(t) ? new FormData(t) : t);
|
|
1717
1717
|
g.getAdapter = pt.getAdapter;
|
|
1718
1718
|
g.HttpStatusCode = sr;
|
|
1719
1719
|
g.default = g;
|
|
1720
|
-
const
|
|
1720
|
+
const Ae = g, {
|
|
1721
1721
|
Axios: Cr,
|
|
1722
1722
|
AxiosError: wt,
|
|
1723
1723
|
CanceledError: Ir,
|
|
@@ -1727,15 +1727,15 @@ const Oe = g, {
|
|
|
1727
1727
|
all: Pr,
|
|
1728
1728
|
Cancel: Lr,
|
|
1729
1729
|
isAxiosError: _r,
|
|
1730
|
-
spread:
|
|
1731
|
-
toFormData:
|
|
1732
|
-
AxiosHeaders:
|
|
1733
|
-
HttpStatusCode:
|
|
1734
|
-
formToJSON:
|
|
1730
|
+
spread: Nr,
|
|
1731
|
+
toFormData: Br,
|
|
1732
|
+
AxiosHeaders: Fr,
|
|
1733
|
+
HttpStatusCode: Mr,
|
|
1734
|
+
formToJSON: vr,
|
|
1735
1735
|
getAdapter: Dr,
|
|
1736
1736
|
mergeConfig: $r
|
|
1737
|
-
} =
|
|
1738
|
-
var
|
|
1737
|
+
} = Ae;
|
|
1738
|
+
var F = globalThis && globalThis.__awaiter || function(t, e, n, r) {
|
|
1739
1739
|
function s(o) {
|
|
1740
1740
|
return o instanceof n ? o : new n(function(i) {
|
|
1741
1741
|
i(o);
|
|
@@ -1858,7 +1858,7 @@ class L {
|
|
|
1858
1858
|
`, document.head.appendChild(a);
|
|
1859
1859
|
}
|
|
1860
1860
|
static signIn({ waitForInitialAuthState: e = !1, root: n } = {}) {
|
|
1861
|
-
return
|
|
1861
|
+
return F(this, void 0, void 0, function* () {
|
|
1862
1862
|
if (e && (yield this.initialAuthStatePromise) || (window.parent !== window && console.warn("FeedMeAuth: looks like you are inside an iframe now, please let the parent window to handle the login instead."), document.getElementById(z)))
|
|
1863
1863
|
return;
|
|
1864
1864
|
const r = this.feedMePosOptions.oneTapMode, { wrapper: s } = this.createIframe({
|
|
@@ -1931,7 +1931,7 @@ class L {
|
|
|
1931
1931
|
}, 300));
|
|
1932
1932
|
}
|
|
1933
1933
|
static getCustomToken() {
|
|
1934
|
-
return
|
|
1934
|
+
return F(this, void 0, void 0, function* () {
|
|
1935
1935
|
const e = yield fetch(this.baseUrl + "/api/token/custom", {
|
|
1936
1936
|
method: "POST",
|
|
1937
1937
|
headers: {
|
|
@@ -1948,7 +1948,7 @@ class L {
|
|
|
1948
1948
|
});
|
|
1949
1949
|
}
|
|
1950
1950
|
static currentUser() {
|
|
1951
|
-
return
|
|
1951
|
+
return F(this, void 0, void 0, function* () {
|
|
1952
1952
|
if (!this.bgIframe)
|
|
1953
1953
|
throw new Error("Can't call before initialize");
|
|
1954
1954
|
return yield this.initialAuthStatePromise, yield this.callMethodOnIframe({
|
|
@@ -1959,7 +1959,7 @@ class L {
|
|
|
1959
1959
|
});
|
|
1960
1960
|
}
|
|
1961
1961
|
static signInWithCustomToken(e) {
|
|
1962
|
-
return
|
|
1962
|
+
return F(this, void 0, void 0, function* () {
|
|
1963
1963
|
if (!this.bgIframe)
|
|
1964
1964
|
throw new Error("Can't call before initialize");
|
|
1965
1965
|
return yield this.callMethodOnIframe({
|
|
@@ -1971,7 +1971,7 @@ class L {
|
|
|
1971
1971
|
});
|
|
1972
1972
|
}
|
|
1973
1973
|
static refreshToken() {
|
|
1974
|
-
return
|
|
1974
|
+
return F(this, void 0, void 0, function* () {
|
|
1975
1975
|
if (!this.bgIframe)
|
|
1976
1976
|
throw new Error("FeedMeAuth.refreshToken must be called after initialize()");
|
|
1977
1977
|
return new Promise((e, n) => {
|
|
@@ -1985,7 +1985,7 @@ class L {
|
|
|
1985
1985
|
});
|
|
1986
1986
|
}
|
|
1987
1987
|
static getUserClaims() {
|
|
1988
|
-
return
|
|
1988
|
+
return F(this, void 0, void 0, function* () {
|
|
1989
1989
|
const e = yield fetch(this.baseUrl + "/api/user/claims", {
|
|
1990
1990
|
method: "GET",
|
|
1991
1991
|
headers: {
|
|
@@ -2109,7 +2109,7 @@ const cr = (t) => (e) => {
|
|
|
2109
2109
|
const n = ((s = j().sessionUser.value) == null ? void 0 : s.token) ?? L.token;
|
|
2110
2110
|
if (!n)
|
|
2111
2111
|
throw new Error("Invalid token");
|
|
2112
|
-
const r =
|
|
2112
|
+
const r = Ae.create({
|
|
2113
2113
|
baseURL: `${t}/${e}`,
|
|
2114
2114
|
headers: {
|
|
2115
2115
|
Authorization: `Bearer ${n}`
|
|
@@ -2143,12 +2143,12 @@ const cr = (t) => (e) => {
|
|
|
2143
2143
|
return bt(r);
|
|
2144
2144
|
throw new Error("Invalid restaurant");
|
|
2145
2145
|
};
|
|
2146
|
-
Q.enum.SG, Q.enum.ID;
|
|
2146
|
+
Q.F_COUNTRY.enum.SG, Q.F_COUNTRY.enum.ID;
|
|
2147
2147
|
function ur(t = void 0) {
|
|
2148
2148
|
const { namespace: e, currentCountry: n } = j(), r = t ?? n.value, s = e.value === "dev", o = (r == null ? void 0 : r.toLowerCase()) !== "my" ? `.${r == null ? void 0 : r.toLowerCase()}` : "", a = `https://portal-v2${`${s ? "-dev" : ""}${o}.feedmeapi.com`}`;
|
|
2149
2149
|
return {
|
|
2150
|
-
portalBackendUrl: { remy: "https://remy
|
|
2151
|
-
menuBackendUrl: { remy: "https://remy
|
|
2150
|
+
portalBackendUrl: { remy: "https://remy.feedmeapi.com/v1", customerApp: "https://feedme.cc", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", templateBuilderUrl: "https://print-template-builder.feedme.cc/", gtm: { id: "GTM-WR8XHXLH", serverUrl: "https://server-side-tagging-zzez732dna-as.a.run.app", env: "production", serverMeasurementId: "G-2MP52PC24R", debug: !1 }, firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, r2: null }.mainBackend ?? a,
|
|
2151
|
+
menuBackendUrl: { remy: "https://remy.feedmeapi.com/v1", customerApp: "https://feedme.cc", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", templateBuilderUrl: "https://print-template-builder.feedme.cc/", gtm: { id: "GTM-WR8XHXLH", serverUrl: "https://server-side-tagging-zzez732dna-as.a.run.app", env: "production", serverMeasurementId: "G-2MP52PC24R", debug: !1 }, firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, r2: null }.menuBackend ?? a
|
|
2152
2152
|
};
|
|
2153
2153
|
}
|
|
2154
2154
|
function Hr(t) {
|
|
@@ -2188,7 +2188,7 @@ const hr = (t) => (e) => {
|
|
|
2188
2188
|
const n = ((s = j().sessionUser.value) == null ? void 0 : s.token) ?? L.token;
|
|
2189
2189
|
if (!n)
|
|
2190
2190
|
throw new Error("Invalid token");
|
|
2191
|
-
const r =
|
|
2191
|
+
const r = Ae.create({
|
|
2192
2192
|
baseURL: `${t}/${e}`,
|
|
2193
2193
|
headers: {
|
|
2194
2194
|
Authorization: `Bearer ${n}`
|
|
@@ -2208,7 +2208,7 @@ const hr = (t) => (e) => {
|
|
|
2208
2208
|
}, qe = (t = "") => {
|
|
2209
2209
|
const { portalBackendUrl: e } = yr();
|
|
2210
2210
|
return hr(e)(t);
|
|
2211
|
-
}, mr = [Q.enum.SG, Q.enum.ID];
|
|
2211
|
+
}, mr = [Q.F_COUNTRY.enum.SG, Q.F_COUNTRY.enum.ID];
|
|
2212
2212
|
function He(t) {
|
|
2213
2213
|
return t.data;
|
|
2214
2214
|
}
|