@feedmepos/mf-settings 0.0.50-beta.1 → 0.0.50-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-22eddb78.js → App-ccc37fd9.js} +97 -106
- package/dist/Business-edf5bd92.js +11975 -0
- package/dist/{CreateBusiness-138ac258.js → CreateBusiness-ec365db8.js} +2 -2
- package/dist/{FoodCourt-561cd7e3.js → FoodCourt-652c44f9.js} +1 -1
- package/dist/{Tagging-b746a5f3.js → Tagging-798e2bb7.js} +3 -3
- package/dist/TemplateBuilder-3e34e9e8.js +27 -0
- package/dist/{app-abfabbcf.js → app-bd3cfc9c.js} +38 -36
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-9a4e5bd7.js → business-93826a8c.js} +1 -1
- package/dist/{loading-84215dce.js → loading-6ee8ebc9.js} +223 -223
- package/dist/packages/shared/src/composable/elementPosition.d.ts +1 -1
- package/dist/{index.esm2017-c60b1ce5.js → tslib.es6-449ce8af.js} +502 -385
- package/package.json +2 -1
- package/dist/Business-416835ab.js +0 -3893
- package/dist/TemplateBuilder-54a34178.js +0 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as
|
|
1
|
+
import { e as K } 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: At } = Object.prototype, { getPrototypeOf: ge } = Object, Z = ((t) => (e) => {
|
|
12
|
+
const n = At.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 Ot(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 {
|
|
@@ -44,7 +44,7 @@ function q(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
44
44
|
a = o[r], e.call(null, t[a], a, t);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Ke(t, e) {
|
|
48
48
|
e = e.toLowerCase();
|
|
49
49
|
const n = Object.keys(t);
|
|
50
50
|
let r = n.length, s;
|
|
@@ -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)(), Qe = (t) => !$(t) && t !== N;
|
|
57
57
|
function fe() {
|
|
58
|
-
const { caseless: t } =
|
|
59
|
-
const o = t &&
|
|
60
|
-
W(e[o]) && W(r) ? e[o] = fe(e[o], r) : W(r) ? e[o] = fe({}, r) :
|
|
58
|
+
const { caseless: t } = Qe(this) && this || {}, e = {}, n = (r, s) => {
|
|
59
|
+
const o = t && Ke(e, s) || s;
|
|
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,40 +87,40 @@ 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; ) {
|
|
103
103
|
const o = s.value;
|
|
104
104
|
e.call(t, o[0], o[1]);
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, Kt = (t, e) => {
|
|
107
107
|
let n;
|
|
108
108
|
const r = [];
|
|
109
109
|
for (; (n = t.exec(e)) !== null; )
|
|
110
110
|
r.push(n);
|
|
111
111
|
return r;
|
|
112
|
-
},
|
|
112
|
+
}, Qt = x("HTMLFormElement"), Xt = (t) => t.toLowerCase().replace(
|
|
113
113
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
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: Ot,
|
|
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:
|
|
221
|
-
matchAll:
|
|
222
|
-
isHTMLForm:
|
|
220
|
+
forEachEntry: Gt,
|
|
221
|
+
matchAll: Kt,
|
|
222
|
+
isHTMLForm: Qt,
|
|
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
|
-
findKey:
|
|
233
|
-
global:
|
|
234
|
-
isContextDefined:
|
|
235
|
-
ALPHABET:
|
|
232
|
+
findKey: Ke,
|
|
233
|
+
global: N,
|
|
234
|
+
isContextDefined: Qe,
|
|
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) {
|
|
@@ -332,12 +332,12 @@ function ne(t, e, n) {
|
|
|
332
332
|
return c.isArrayBuffer(p) || c.isTypedArray(p) ? d && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
333
333
|
}
|
|
334
334
|
function l(p, y, h) {
|
|
335
|
-
let
|
|
335
|
+
let w = p;
|
|
336
336
|
if (p && !h && typeof p == "object") {
|
|
337
337
|
if (c.endsWith(y, "{}"))
|
|
338
338
|
y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
339
|
-
else if (c.isArray(p) && dn(p) || (c.isFileList(p) || c.endsWith(y, "[]")) && (
|
|
340
|
-
return y = nt(y),
|
|
339
|
+
else if (c.isArray(p) && dn(p) || (c.isFileList(p) || c.endsWith(y, "[]")) && (w = c.toArray(p)))
|
|
340
|
+
return y = nt(y), w.forEach(function(R, U) {
|
|
341
341
|
!(c.isUndefined(R) || R === null) && e.append(
|
|
342
342
|
// eslint-disable-next-line no-nested-ternary
|
|
343
343
|
i === !0 ? Ue([y], U, o) : i === null ? y : y + "[]",
|
|
@@ -347,7 +347,7 @@ function ne(t, e, n) {
|
|
|
347
347
|
}
|
|
348
348
|
return pe(p) ? !0 : (e.append(Ue(h, y, o), u(p)), !1);
|
|
349
349
|
}
|
|
350
|
-
const f = [],
|
|
350
|
+
const f = [], b = Object.assign(fn, {
|
|
351
351
|
defaultVisitor: l,
|
|
352
352
|
convertValue: u,
|
|
353
353
|
isVisitable: pe
|
|
@@ -356,14 +356,14 @@ function ne(t, e, n) {
|
|
|
356
356
|
if (!c.isUndefined(p)) {
|
|
357
357
|
if (f.indexOf(p) !== -1)
|
|
358
358
|
throw Error("Circular reference detected in " + y.join("."));
|
|
359
|
-
f.push(p), c.forEach(p, function(
|
|
360
|
-
(!(c.isUndefined(
|
|
359
|
+
f.push(p), c.forEach(p, function(w, S) {
|
|
360
|
+
(!(c.isUndefined(w) || w === null) && s.call(
|
|
361
361
|
e,
|
|
362
|
-
|
|
362
|
+
w,
|
|
363
363
|
c.isString(S) ? S.trim() : S,
|
|
364
364
|
y,
|
|
365
|
-
|
|
366
|
-
)) === !0 && E(
|
|
365
|
+
b
|
|
366
|
+
)) === !0 && E(w, y ? y.concat(S) : [S]);
|
|
367
367
|
}), f.pop();
|
|
368
368
|
}
|
|
369
369
|
}
|
|
@@ -472,12 +472,12 @@ const Pe = hn, ot = {
|
|
|
472
472
|
silentJSONParsing: !0,
|
|
473
473
|
forcedJSONParsing: !0,
|
|
474
474
|
clarifyTimeoutError: !1
|
|
475
|
-
}, mn = typeof URLSearchParams < "u" ? URLSearchParams : Ee, yn = typeof FormData < "u" ? FormData : null,
|
|
475
|
+
}, mn = typeof URLSearchParams < "u" ? URLSearchParams : Ee, yn = typeof FormData < "u" ? FormData : null, bn = typeof Blob < "u" ? Blob : null, wn = {
|
|
476
476
|
isBrowser: !0,
|
|
477
477
|
classes: {
|
|
478
478
|
URLSearchParams: mn,
|
|
479
479
|
FormData: yn,
|
|
480
|
-
Blob:
|
|
480
|
+
Blob: bn
|
|
481
481
|
},
|
|
482
482
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
483
483
|
}, Se = typeof window < "u" && typeof document < "u", he = typeof navigator == "object" && navigator || void 0, gn = Se && (!he || ["ReactNative", "NativeScript", "NS"].indexOf(he.product) < 0), En = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
@@ -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" })), O = {
|
|
492
492
|
...Rn,
|
|
493
|
-
...
|
|
493
|
+
...wn
|
|
494
494
|
};
|
|
495
495
|
function Tn(t, e) {
|
|
496
|
-
return ne(t, new
|
|
496
|
+
return ne(t, new O.classes.URLSearchParams(), Object.assign({
|
|
497
497
|
visitor: function(n, r, s, o) {
|
|
498
|
-
return
|
|
498
|
+
return O.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 An(t) {
|
|
503
503
|
return c.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function On(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] = On(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(An(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: O.classes.FormData,
|
|
594
|
+
Blob: O.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,23 +830,23 @@ 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;
|
|
837
837
|
return e = e !== void 0 ? e : 1e3, function(d) {
|
|
838
838
|
const u = Date.now(), l = r[o];
|
|
839
839
|
i || (i = u), n[s] = d, r[s] = u;
|
|
840
|
-
let f = o,
|
|
840
|
+
let f = o, b = 0;
|
|
841
841
|
for (; f !== s; )
|
|
842
|
-
|
|
842
|
+
b += n[f++], f = f % t;
|
|
843
843
|
if (s = (s + 1) % t, s === o && (o = (o + 1) % t), u - i < e)
|
|
844
844
|
return;
|
|
845
845
|
const E = l && u - l;
|
|
846
|
-
return E ? Math.round(
|
|
846
|
+
return E ? Math.round(b * 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);
|
|
@@ -858,10 +858,10 @@ function vn(t, e) {
|
|
|
858
858
|
}, r - f)));
|
|
859
859
|
}, () => s && i(s)];
|
|
860
860
|
}
|
|
861
|
-
const
|
|
861
|
+
const Q = (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 = O.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 = O.navigator && /(msie|trident)/i.test(O.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 = O.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,15 +1011,15 @@ 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
|
-
const f = d[l] || s,
|
|
1018
|
-
c.isUndefined(
|
|
1017
|
+
const f = d[l] || s, b = f(t[l], e[l], l);
|
|
1018
|
+
c.isUndefined(b) && f !== a || (n[l] = b);
|
|
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 (O.hasStandardBrowserEnv || O.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 (O.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;
|
|
@@ -1044,18 +1044,18 @@ const lt = (t) => {
|
|
|
1044
1044
|
const s = lt(t);
|
|
1045
1045
|
let o = s.data;
|
|
1046
1046
|
const i = I.from(s.headers).normalize();
|
|
1047
|
-
let { responseType: a, onUploadProgress: d, onDownloadProgress: u } = s, l, f,
|
|
1047
|
+
let { responseType: a, onUploadProgress: d, onDownloadProgress: u } = s, l, f, b, E, p;
|
|
1048
1048
|
function y() {
|
|
1049
1049
|
E && E(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1050
1050
|
}
|
|
1051
1051
|
let h = new XMLHttpRequest();
|
|
1052
1052
|
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1053
|
-
function
|
|
1053
|
+
function w() {
|
|
1054
1054
|
if (!h)
|
|
1055
1055
|
return;
|
|
1056
1056
|
const R = I.from(
|
|
1057
1057
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1058
|
-
),
|
|
1058
|
+
), A = {
|
|
1059
1059
|
data: !a || a === "text" || a === "json" ? h.responseText : h.response,
|
|
1060
1060
|
status: h.status,
|
|
1061
1061
|
statusText: h.statusText,
|
|
@@ -1067,30 +1067,30 @@ const lt = (t) => {
|
|
|
1067
1067
|
n(_), y();
|
|
1068
1068
|
}, function(_) {
|
|
1069
1069
|
r(_), y();
|
|
1070
|
-
},
|
|
1070
|
+
}, A), h = null;
|
|
1071
1071
|
}
|
|
1072
|
-
"onloadend" in h ? h.onloadend =
|
|
1073
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1072
|
+
"onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
|
|
1073
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
1074
1074
|
}, h.onabort = function() {
|
|
1075
1075
|
h && (r(new m("Request aborted", m.ECONNABORTED, t, h)), h = null);
|
|
1076
1076
|
}, h.onerror = function() {
|
|
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 A = s.transitional || ot;
|
|
1081
1081
|
s.timeoutErrorMessage && (U = s.timeoutErrorMessage), r(new m(
|
|
1082
1082
|
U,
|
|
1083
|
-
|
|
1083
|
+
A.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(
|
|
1089
|
-
}), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), u && ([
|
|
1090
|
-
h && (r(!R || R.type ? new
|
|
1087
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(U, A) {
|
|
1088
|
+
h.setRequestHeader(A, U);
|
|
1089
|
+
}), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), u && ([b, p] = Q(u, !0), h.addEventListener("progress", b)), d && h.upload && ([f, E] = Q(d), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (l = (R) => {
|
|
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 && O.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));
|
|
@@ -1162,8 +1162,8 @@ const lt = (t) => {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
let f = l.byteLength;
|
|
1164
1164
|
if (n) {
|
|
1165
|
-
let
|
|
1166
|
-
n(
|
|
1165
|
+
let b = o += f;
|
|
1166
|
+
n(b);
|
|
1167
1167
|
}
|
|
1168
1168
|
d.enqueue(new Uint8Array(l));
|
|
1169
1169
|
} catch (u) {
|
|
@@ -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(O.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) => {
|
|
@@ -1202,23 +1202,23 @@ se && ((t) => {
|
|
|
1202
1202
|
});
|
|
1203
1203
|
});
|
|
1204
1204
|
})(new Response());
|
|
1205
|
-
const
|
|
1205
|
+
const Kn = async (t) => {
|
|
1206
1206
|
if (t == null)
|
|
1207
1207
|
return 0;
|
|
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(O.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
|
|
1219
|
-
},
|
|
1218
|
+
return (await Vn(t)).byteLength;
|
|
1219
|
+
}, Qn = async (t, e) => {
|
|
1220
1220
|
const n = c.toFiniteNumber(t.getContentLength());
|
|
1221
|
-
return n ??
|
|
1221
|
+
return n ?? Kn(e);
|
|
1222
1222
|
}, Xn = se && (async (t) => {
|
|
1223
1223
|
let {
|
|
1224
1224
|
url: e,
|
|
@@ -1232,7 +1232,7 @@ const Qn = async (t) => {
|
|
|
1232
1232
|
responseType: u,
|
|
1233
1233
|
headers: l,
|
|
1234
1234
|
withCredentials: f = "same-origin",
|
|
1235
|
-
fetchOptions:
|
|
1235
|
+
fetchOptions: b
|
|
1236
1236
|
} = lt(t);
|
|
1237
1237
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1238
1238
|
let E = Hn([s, o && o.toAbortSignal()], i), p;
|
|
@@ -1241,53 +1241,53 @@ 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 Qn(l, r)) !== 0) {
|
|
1245
|
+
let A = 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 = A.headers.get("content-type")) && l.setContentType(k), A.body) {
|
|
1251
1251
|
const [_, H] = _e(
|
|
1252
1252
|
h,
|
|
1253
|
-
|
|
1253
|
+
Q(Ne(d))
|
|
1254
1254
|
);
|
|
1255
|
-
r =
|
|
1255
|
+
r = Fe(A.body, Me, _, H);
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
1258
|
c.isString(f) || (f = f ? "include" : "omit");
|
|
1259
|
-
const
|
|
1259
|
+
const w = "credentials" in Request.prototype;
|
|
1260
1260
|
p = new Request(e, {
|
|
1261
|
-
...
|
|
1261
|
+
...b,
|
|
1262
1262
|
signal: E,
|
|
1263
1263
|
method: n.toUpperCase(),
|
|
1264
1264
|
headers: l.normalize().toJSON(),
|
|
1265
1265
|
body: r,
|
|
1266
1266
|
duplex: "half",
|
|
1267
|
-
credentials:
|
|
1267
|
+
credentials: w ? f : void 0
|
|
1268
1268
|
});
|
|
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 A = {};
|
|
1273
1273
|
["status", "statusText", "headers"].forEach((Ce) => {
|
|
1274
|
-
|
|
1274
|
+
A[Ce] = S[Ce];
|
|
1275
1275
|
});
|
|
1276
1276
|
const k = c.toFiniteNumber(S.headers.get("content-length")), [_, H] = a && _e(
|
|
1277
1277
|
k,
|
|
1278
|
-
|
|
1278
|
+
Q(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
|
+
A
|
|
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((A, k) => {
|
|
1290
|
+
ct(A, k, {
|
|
1291
1291
|
data: U,
|
|
1292
1292
|
headers: I.from(S.headers),
|
|
1293
1293
|
status: S.status,
|
|
@@ -1296,13 +1296,13 @@ const Qn = async (t) => {
|
|
|
1296
1296
|
request: p
|
|
1297
1297
|
});
|
|
1298
1298
|
});
|
|
1299
|
-
} catch (
|
|
1300
|
-
throw y && y(),
|
|
1299
|
+
} catch (w) {
|
|
1300
|
+
throw y && y(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
|
|
1301
1301
|
new m("Network Error", m.ERR_NETWORK, t, p),
|
|
1302
1302
|
{
|
|
1303
|
-
cause:
|
|
1303
|
+
cause: w.cause || w
|
|
1304
1304
|
}
|
|
1305
|
-
) : m.from(
|
|
1305
|
+
) : m.from(w, w && w.code, t, p);
|
|
1306
1306
|
}
|
|
1307
1307
|
}), ye = {
|
|
1308
1308
|
http: ln,
|
|
@@ -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", Ae = {};
|
|
1375
1375
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1376
|
-
|
|
1376
|
+
Ae[t] = function(r) {
|
|
1377
1377
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1378
1378
|
};
|
|
1379
1379
|
});
|
|
1380
1380
|
const $e = {};
|
|
1381
|
-
|
|
1381
|
+
Ae.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 @@ Oe.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);
|
|
@@ -1413,11 +1413,11 @@ function Yn(t, e, n) {
|
|
|
1413
1413
|
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
|
-
const
|
|
1417
|
-
assertOptions:
|
|
1418
|
-
validators:
|
|
1419
|
-
}, P =
|
|
1420
|
-
let
|
|
1416
|
+
const be = {
|
|
1417
|
+
assertOptions: Zn,
|
|
1418
|
+
validators: Ae
|
|
1419
|
+
}, P = be.validators;
|
|
1420
|
+
let Y = class {
|
|
1421
1421
|
constructor(e) {
|
|
1422
1422
|
this.defaults = e, this.interceptors = {
|
|
1423
1423
|
request: new Pe(),
|
|
@@ -1450,15 +1450,15 @@ 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
|
-
r !== void 0 &&
|
|
1455
|
+
r !== void 0 && be.assertOptions(r, {
|
|
1456
1456
|
silentJSONParsing: P.transitional(P.boolean),
|
|
1457
1457
|
forcedJSONParsing: P.transitional(P.boolean),
|
|
1458
1458
|
clarifyTimeoutError: P.transitional(P.boolean)
|
|
1459
1459
|
}, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
|
|
1460
1460
|
serialize: s
|
|
1461
|
-
} :
|
|
1461
|
+
} : be.assertOptions(s, {
|
|
1462
1462
|
encode: P.function,
|
|
1463
1463
|
serialize: P.function
|
|
1464
1464
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1481,16 +1481,16 @@ let Z = class {
|
|
|
1481
1481
|
this.interceptors.response.forEach(function(y) {
|
|
1482
1482
|
u.push(y.fulfilled, y.rejected);
|
|
1483
1483
|
});
|
|
1484
|
-
let l, f = 0,
|
|
1484
|
+
let l, f = 0, b;
|
|
1485
1485
|
if (!d) {
|
|
1486
1486
|
const p = [De.bind(this), void 0];
|
|
1487
|
-
for (p.unshift.apply(p, a), p.push.apply(p, u),
|
|
1487
|
+
for (p.unshift.apply(p, a), p.push.apply(p, u), b = p.length, l = Promise.resolve(n); f < b; )
|
|
1488
1488
|
l = l.then(p[f++], p[f++]);
|
|
1489
1489
|
return l;
|
|
1490
1490
|
}
|
|
1491
|
-
|
|
1491
|
+
b = a.length;
|
|
1492
1492
|
let E = n;
|
|
1493
|
-
for (f = 0; f <
|
|
1493
|
+
for (f = 0; f < b; ) {
|
|
1494
1494
|
const p = a[f++], y = a[f++];
|
|
1495
1495
|
try {
|
|
1496
1496
|
E = p(E);
|
|
@@ -1504,19 +1504,19 @@ let Z = class {
|
|
|
1504
1504
|
} catch (p) {
|
|
1505
1505
|
return Promise.reject(p);
|
|
1506
1506
|
}
|
|
1507
|
-
for (f = 0,
|
|
1507
|
+
for (f = 0, b = u.length; f < b; )
|
|
1508
1508
|
l = l.then(u[f++], u[f++]);
|
|
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
|
/**
|
|
@@ -1622,7 +1622,7 @@ function nr(t) {
|
|
|
1622
1622
|
function rr(t) {
|
|
1623
1623
|
return c.isObject(t) && t.isAxiosError === !0;
|
|
1624
1624
|
}
|
|
1625
|
-
const
|
|
1625
|
+
const we = {
|
|
1626
1626
|
Continue: 100,
|
|
1627
1627
|
SwitchingProtocols: 101,
|
|
1628
1628
|
Processing: 102,
|
|
@@ -1687,19 +1687,19 @@ const be = {
|
|
|
1687
1687
|
NotExtended: 510,
|
|
1688
1688
|
NetworkAuthenticationRequired: 511
|
|
1689
1689
|
};
|
|
1690
|
-
Object.entries(
|
|
1691
|
-
|
|
1690
|
+
Object.entries(we).forEach(([t, e]) => {
|
|
1691
|
+
we[e] = t;
|
|
1692
1692
|
});
|
|
1693
|
-
const sr =
|
|
1693
|
+
const sr = we;
|
|
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,15 +1711,15 @@ 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 Oe = g, {
|
|
1721
1721
|
Axios: Cr,
|
|
1722
|
-
AxiosError:
|
|
1722
|
+
AxiosError: bt,
|
|
1723
1723
|
CanceledError: Ir,
|
|
1724
1724
|
isCancel: xr,
|
|
1725
1725
|
CancelToken: Ur,
|
|
@@ -1727,15 +1727,15 @@ const Ae = 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
|
+
} = Oe;
|
|
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: {
|
|
@@ -2087,8 +2087,8 @@ class L {
|
|
|
2087
2087
|
params: r
|
|
2088
2088
|
}, "*"), new Promise((i, a) => {
|
|
2089
2089
|
const d = (l) => {
|
|
2090
|
-
var f,
|
|
2091
|
-
l.origin === this.baseUrl && l.data.type === ar && ((f = l.data) === null || f === void 0 ? void 0 : f.messageId) === o && (clearTimeout(u), window.removeEventListener("message", d), i((
|
|
2090
|
+
var f, b;
|
|
2091
|
+
l.origin === this.baseUrl && l.data.type === ar && ((f = l.data) === null || f === void 0 ? void 0 : f.messageId) === o && (clearTimeout(u), window.removeEventListener("message", d), i((b = l.data) === null || b === void 0 ? void 0 : b.response));
|
|
2092
2092
|
};
|
|
2093
2093
|
window.addEventListener("message", d);
|
|
2094
2094
|
let u;
|
|
@@ -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 = Oe.create({
|
|
2113
2113
|
baseURL: `${t}/${e}`,
|
|
2114
2114
|
headers: {
|
|
2115
2115
|
Authorization: `Bearer ${n}`
|
|
@@ -2119,14 +2119,14 @@ const cr = (t) => (e) => {
|
|
|
2119
2119
|
(o) => o,
|
|
2120
2120
|
async (o) => {
|
|
2121
2121
|
var i;
|
|
2122
|
-
if (o instanceof
|
|
2122
|
+
if (o instanceof bt) {
|
|
2123
2123
|
const a = (i = o.response) == null ? void 0 : i.data, d = (a == null ? void 0 : a.message) || (a == null ? void 0 : a.error) || `${o.message}` || `${o}`;
|
|
2124
2124
|
return Promise.reject(d);
|
|
2125
2125
|
}
|
|
2126
2126
|
return Promise.reject(o);
|
|
2127
2127
|
}
|
|
2128
2128
|
), r;
|
|
2129
|
-
},
|
|
2129
|
+
}, wt = (t = "", e = void 0) => {
|
|
2130
2130
|
const { portalBackendUrl: n } = ur(e);
|
|
2131
2131
|
return cr(n)(t);
|
|
2132
2132
|
}, jr = () => {
|
|
@@ -2134,21 +2134,21 @@ const cr = (t) => (e) => {
|
|
|
2134
2134
|
const t = j();
|
|
2135
2135
|
if (t.currentBusiness.value) {
|
|
2136
2136
|
const n = `businesses/${(e = t.currentBusiness.value) == null ? void 0 : e.id}`;
|
|
2137
|
-
return
|
|
2137
|
+
return wt(n);
|
|
2138
2138
|
} else
|
|
2139
2139
|
throw new Error("Invalid business");
|
|
2140
2140
|
}, qr = (t, e) => {
|
|
2141
2141
|
const n = `/restaurants/${t}`, r = e ? `/${e}${n}` : n;
|
|
2142
2142
|
if (t)
|
|
2143
|
-
return
|
|
2143
|
+
return wt(r);
|
|
2144
2144
|
throw new Error("Invalid restaurant");
|
|
2145
2145
|
};
|
|
2146
|
-
|
|
2146
|
+
K.F_COUNTRY.enum.SG, K.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: { endPoint: "https://c0e0719247f81dc2f3d30844a8e0235c.r2.cloudflarestorage.com", bucketName: "image-feedme-cc", accessKeyId: "7c4faa649a257ce02edcf99d924b1799", secretAccessKey: "2b7ed3d5b6e23fdceb355f89281530875fa9673b09653be560be9a7694422a97" } }.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: { endPoint: "https://c0e0719247f81dc2f3d30844a8e0235c.r2.cloudflarestorage.com", bucketName: "image-feedme-cc", accessKeyId: "7c4faa649a257ce02edcf99d924b1799", secretAccessKey: "2b7ed3d5b6e23fdceb355f89281530875fa9673b09653be560be9a7694422a97" } }.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 = Oe.create({
|
|
2192
2192
|
baseURL: `${t}/${e}`,
|
|
2193
2193
|
headers: {
|
|
2194
2194
|
Authorization: `Bearer ${n}`
|
|
@@ -2198,7 +2198,7 @@ const hr = (t) => (e) => {
|
|
|
2198
2198
|
(o) => o,
|
|
2199
2199
|
async (o) => {
|
|
2200
2200
|
var i;
|
|
2201
|
-
if (o instanceof
|
|
2201
|
+
if (o instanceof bt) {
|
|
2202
2202
|
const a = (i = o.response) == null ? void 0 : i.data, d = (a == null ? void 0 : a.message) || (a == null ? void 0 : a.error) || `${o.message}` || `${o}`;
|
|
2203
2203
|
return Promise.reject(d);
|
|
2204
2204
|
}
|
|
@@ -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 = [
|
|
2211
|
+
}, mr = [K.F_COUNTRY.enum.SG, K.F_COUNTRY.enum.ID];
|
|
2212
2212
|
function He(t) {
|
|
2213
2213
|
return t.data;
|
|
2214
2214
|
}
|
|
@@ -2227,7 +2227,7 @@ const ze = {
|
|
|
2227
2227
|
return He(await qe().put("/public-setting", t));
|
|
2228
2228
|
}
|
|
2229
2229
|
};
|
|
2230
|
-
function
|
|
2230
|
+
function br() {
|
|
2231
2231
|
return {
|
|
2232
2232
|
loadingQueue: [],
|
|
2233
2233
|
publicSetting: {
|
|
@@ -2251,7 +2251,7 @@ function wr() {
|
|
|
2251
2251
|
};
|
|
2252
2252
|
}
|
|
2253
2253
|
const Je = Tt("portal-app-store", {
|
|
2254
|
-
state: () =>
|
|
2254
|
+
state: () => br(),
|
|
2255
2255
|
actions: {
|
|
2256
2256
|
addLoadingQueues(t) {
|
|
2257
2257
|
this.loadingQueue = [...this.loadingQueue, ...t];
|
|
@@ -2281,7 +2281,7 @@ const Je = Tt("portal-app-store", {
|
|
|
2281
2281
|
}), this.publicSetting;
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
|
-
}),
|
|
2284
|
+
}), wr = (t) => {
|
|
2285
2285
|
async function e(r, s) {
|
|
2286
2286
|
var a, d;
|
|
2287
2287
|
let o = [];
|
|
@@ -2374,11 +2374,11 @@ const Je = Tt("portal-app-store", {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
)
|
|
2376
2376
|
};
|
|
2377
|
-
}, zr =
|
|
2377
|
+
}, zr = wr;
|
|
2378
2378
|
export {
|
|
2379
2379
|
L as F,
|
|
2380
2380
|
jr as a,
|
|
2381
|
-
|
|
2381
|
+
wt as b,
|
|
2382
2382
|
Hr as g,
|
|
2383
2383
|
qr as r,
|
|
2384
2384
|
zr as u
|