@feedmepos/mf-settings 0.0.48 → 0.0.50-beta.1
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-cc67c5c1.js → App-22eddb78.js} +86 -86
- package/dist/{Business-e8c7eafc.js → Business-416835ab.js} +549 -549
- package/dist/{CreateBusiness-178daa1b.js → CreateBusiness-138ac258.js} +2 -2
- package/dist/{FoodCourt-01cfd384.js → FoodCourt-561cd7e3.js} +1 -1
- package/dist/{Tagging-eca30670.js → Tagging-b746a5f3.js} +10 -7
- package/dist/TemplateBuilder-54a34178.js +27 -0
- package/dist/{app-6da9af48.js → app-abfabbcf.js} +6 -6
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-5239a754.js → business-9a4e5bd7.js} +1 -1
- package/dist/{loading-a9743d80.js → loading-84215dce.js} +111 -111
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +1 -1
- package/package.json +3 -3
- package/dist/TemplateBuilder-f9ef1e3b.js +0 -27
|
@@ -8,33 +8,33 @@ function We(t, e) {
|
|
|
8
8
|
return t.apply(e, arguments);
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
const { toString: Ot } = Object.prototype, { getPrototypeOf: ge } = Object,
|
|
11
|
+
const { toString: Ot } = Object.prototype, { getPrototypeOf: ge } = Object, Y = ((t) => (e) => {
|
|
12
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) =>
|
|
14
|
+
})(/* @__PURE__ */ Object.create(null)), x = (t) => (t = t.toLowerCase(), (e) => Y(e) === t), ee = (t) => (e) => typeof e === t, { isArray: F } = Array, $ = ee("undefined");
|
|
15
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 Ge = 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 && Ge(t.buffer), e;
|
|
22
22
|
}
|
|
23
|
-
const It = ee("string"), C = ee("function"),
|
|
24
|
-
if (
|
|
23
|
+
const It = ee("string"), C = ee("function"), Ve = ee("number"), te = (t) => t !== null && typeof t == "object", xt = (t) => t === !0 || t === !1, W = (t) => {
|
|
24
|
+
if (Y(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), Bt = (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 = Y(t)) === "formdata" || // detect form-data instance
|
|
31
31
|
e === "object" && C(t.toString) && t.toString() === "[object FormData]"));
|
|
32
|
-
},
|
|
32
|
+
}, vt = x("URLSearchParams"), [Nt, Ft, Mt, 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]), F(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 B = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ke = (t) => !$(t) && t !== B;
|
|
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) : F(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 (F(t))
|
|
91
91
|
return t;
|
|
92
92
|
let e = t.length;
|
|
93
|
-
if (!
|
|
93
|
+
if (!Ve(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
|
+
}, Gt = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && ge(Uint8Array)), Vt = (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), Zt = 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
|
+
}, Yt = (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 F(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", Ze = {
|
|
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 = Ze.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 = F(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), Ye = ((t, e) => t ? setImmediate : e ? ((n, r) => (B.addEventListener("message", ({ source: s, data: o }) => {
|
|
178
|
+
s === B && o === n && r.length && r.shift()();
|
|
179
179
|
}, !1), (s) => {
|
|
180
|
-
r.push(s),
|
|
180
|
+
r.push(s), B.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:
|
|
183
|
+
C(B.postMessage)
|
|
184
|
+
), un = typeof queueMicrotask < "u" ? queueMicrotask.bind(B) : typeof process < "u" && process.nextTick || Ye, c = {
|
|
185
|
+
isArray: F,
|
|
186
|
+
isArrayBuffer: Ge,
|
|
187
187
|
isBuffer: At,
|
|
188
|
-
isFormData:
|
|
188
|
+
isFormData: Bt,
|
|
189
189
|
isArrayBufferView: Ct,
|
|
190
190
|
isString: It,
|
|
191
|
-
isNumber:
|
|
191
|
+
isNumber: Ve,
|
|
192
192
|
isBoolean: xt,
|
|
193
193
|
isObject: te,
|
|
194
194
|
isPlainObject: W,
|
|
195
|
-
isReadableStream:
|
|
196
|
-
isRequest:
|
|
197
|
-
isResponse:
|
|
195
|
+
isReadableStream: Nt,
|
|
196
|
+
isRequest: Ft,
|
|
197
|
+
isResponse: Mt,
|
|
198
198
|
isHeaders: Dt,
|
|
199
199
|
isUndefined: $,
|
|
200
200
|
isDate: Ut,
|
|
201
201
|
isFile: kt,
|
|
202
202
|
isBlob: Pt,
|
|
203
|
-
isRegExp:
|
|
203
|
+
isRegExp: Zt,
|
|
204
204
|
isFunction: C,
|
|
205
205
|
isStream: _t,
|
|
206
|
-
isURLSearchParams:
|
|
207
|
-
isTypedArray:
|
|
206
|
+
isURLSearchParams: vt,
|
|
207
|
+
isTypedArray: Gt,
|
|
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: Y,
|
|
217
217
|
kindOfTest: x,
|
|
218
218
|
endsWith: Jt,
|
|
219
219
|
toArray: Wt,
|
|
220
|
-
forEachEntry:
|
|
220
|
+
forEachEntry: Vt,
|
|
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: Yt,
|
|
228
228
|
toObjectSet: en,
|
|
229
229
|
toCamelCase: Xt,
|
|
230
230
|
noop: tn,
|
|
231
231
|
toFiniteNumber: nn,
|
|
232
232
|
findKey: Qe,
|
|
233
|
-
global:
|
|
233
|
+
global: B,
|
|
234
234
|
isContextDefined: Ke,
|
|
235
|
-
ALPHABET:
|
|
235
|
+
ALPHABET: Ze,
|
|
236
236
|
generateString: rn,
|
|
237
237
|
isSpecCompliantForm: sn,
|
|
238
238
|
toJSONObject: on,
|
|
239
239
|
isAsyncFn: an,
|
|
240
240
|
isThenable: cn,
|
|
241
|
-
setImmediate:
|
|
241
|
+
setImmediate: Ye,
|
|
242
242
|
asap: un
|
|
243
243
|
};
|
|
244
244
|
function m(t, e, n, r, s) {
|
|
@@ -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 G(t) {
|
|
639
|
+
return t === !1 || t == null ? t : c.isArray(t) ? t.map(G) : 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] = G(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] = G(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] = G(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 M(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(M, 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 Bn(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 Nn(t, e) {
|
|
|
846
846
|
return E ? Math.round(w * 1e3 / E) : void 0;
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function vn(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 Bn(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 = Bn(50, 250);
|
|
864
|
+
return vn((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,7 +884,7 @@ const K = (t, e, n = 3) => {
|
|
|
884
884
|
total: t,
|
|
885
885
|
loaded: r
|
|
886
886
|
}), e[1]];
|
|
887
|
-
},
|
|
887
|
+
}, Be = (t) => (...e) => c.asap(() => t(...e)), Nn = 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() {
|
|
@@ -915,7 +915,7 @@ const K = (t, e, n = 3) => {
|
|
|
915
915
|
return !0;
|
|
916
916
|
};
|
|
917
917
|
}()
|
|
918
|
-
),
|
|
918
|
+
), Fn = 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 Mn(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 && !Mn(e) ? Dn(t, e) : e;
|
|
953
953
|
}
|
|
954
|
-
const
|
|
955
|
-
function
|
|
954
|
+
const ve = (t) => t instanceof I ? { ...t } : t;
|
|
955
|
+
function v(t, e) {
|
|
956
956
|
e = e || {};
|
|
957
957
|
const n = {};
|
|
958
958
|
function r(u, l, f) {
|
|
@@ -1011,7 +1011,7 @@ function B(t, e) {
|
|
|
1011
1011
|
socketPath: i,
|
|
1012
1012
|
responseEncoding: i,
|
|
1013
1013
|
validateStatus: a,
|
|
1014
|
-
headers: (u, l) => s(
|
|
1014
|
+
headers: (u, l) => s(ve(u), ve(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 B(t, e) {
|
|
|
1019
1019
|
}), n;
|
|
1020
1020
|
}
|
|
1021
1021
|
const lt = (t) => {
|
|
1022
|
-
const e =
|
|
1022
|
+
const e = v({}, 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",
|
|
@@ -1034,8 +1034,8 @@ const lt = (t) => {
|
|
|
1034
1034
|
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
if (A.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(e)), r || r !== !1 &&
|
|
1038
|
-
const u = s && o &&
|
|
1037
|
+
if (A.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(e)), r || r !== !1 && Nn(e.url))) {
|
|
1038
|
+
const u = s && o && Fn.read(o);
|
|
1039
1039
|
u && i.set(s, u);
|
|
1040
1040
|
}
|
|
1041
1041
|
return e;
|
|
@@ -1087,7 +1087,7 @@ const lt = (t) => {
|
|
|
1087
1087
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(U, O) {
|
|
1088
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 M(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
1093
|
if (S && A.protocols.indexOf(S) === -1) {
|
|
@@ -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 M(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
|
+
}, Ne = (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,13 +1176,13 @@ 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", Gn = 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
|
+
}, Vn = dt && ft(() => {
|
|
1186
1186
|
let t = !1;
|
|
1187
1187
|
const e = new Request(A.origin, {
|
|
1188
1188
|
body: new ReadableStream(),
|
|
@@ -1192,7 +1192,7 @@ const lt = (t) => {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
}).headers.has("Content-Type");
|
|
1194
1194
|
return t && !e;
|
|
1195
|
-
}),
|
|
1195
|
+
}), Fe = 64 * 1024, me = dt && ft(() => c.isReadableStream(new Response("").body)), X = {
|
|
1196
1196
|
stream: me && ((t) => t.body)
|
|
1197
1197
|
};
|
|
1198
1198
|
se && ((t) => {
|
|
@@ -1215,7 +1215,7 @@ const Qn = async (t) => {
|
|
|
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 Gn(t)).byteLength;
|
|
1219
1219
|
}, Kn = async (t, e) => {
|
|
1220
1220
|
const n = c.toFiniteNumber(t.getContentLength());
|
|
1221
1221
|
return n ?? Qn(e);
|
|
@@ -1241,7 +1241,7 @@ const Qn = async (t) => {
|
|
|
1241
1241
|
});
|
|
1242
1242
|
let h;
|
|
1243
1243
|
try {
|
|
1244
|
-
if (d &&
|
|
1244
|
+
if (d && Vn && n !== "get" && n !== "head" && (h = await Kn(l, r)) !== 0) {
|
|
1245
1245
|
let O = new Request(e, {
|
|
1246
1246
|
method: "POST",
|
|
1247
1247
|
body: r,
|
|
@@ -1250,9 +1250,9 @@ const Qn = async (t) => {
|
|
|
1250
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(Be(d))
|
|
1254
1254
|
);
|
|
1255
|
-
r =
|
|
1255
|
+
r = Ne(O.body, Fe, _, H);
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
1258
|
c.isString(f) || (f = f ? "include" : "omit");
|
|
@@ -1275,10 +1275,10 @@ const Qn = async (t) => {
|
|
|
1275
1275
|
});
|
|
1276
1276
|
const k = c.toFiniteNumber(S.headers.get("content-length")), [_, H] = a && _e(
|
|
1277
1277
|
k,
|
|
1278
|
-
K(
|
|
1278
|
+
K(Be(a), !0)
|
|
1279
1279
|
) || [];
|
|
1280
1280
|
S = new Response(
|
|
1281
|
-
|
|
1281
|
+
Ne(S.body, Fe, _, () => {
|
|
1282
1282
|
H && H(), y && y();
|
|
1283
1283
|
}),
|
|
1284
1284
|
O
|
|
@@ -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 Me = (t) => `- ${t}`, Zn = (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 ve = (t) => `- ${t}`, Yn = (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, !Zn(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 ve = (t) => `- ${t}`, Yn = (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(Me).join(`
|
|
1342
|
+
`) : " " + Me(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 ve = (t) => `- ${t}`, Yn = (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 M(null, t);
|
|
1355
1355
|
}
|
|
1356
1356
|
function De(t) {
|
|
1357
1357
|
return ue(t), t.headers = I.from(t.headers), t.data = ce.call(
|
|
@@ -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 Yn(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 Zn(t, e, n) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
1416
|
const we = {
|
|
1417
|
-
assertOptions:
|
|
1417
|
+
assertOptions: Yn,
|
|
1418
1418
|
validators: Oe
|
|
1419
1419
|
}, P = we.validators;
|
|
1420
|
-
let
|
|
1420
|
+
let Z = class {
|
|
1421
1421
|
constructor(e) {
|
|
1422
1422
|
this.defaults = e, this.interceptors = {
|
|
1423
1423
|
request: new Pe(),
|
|
@@ -1450,7 +1450,7 @@ let Y = 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 = v(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 Y = class {
|
|
|
1509
1509
|
return l;
|
|
1510
1510
|
}
|
|
1511
1511
|
getUri(e) {
|
|
1512
|
-
e =
|
|
1512
|
+
e = v(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
|
+
Z.prototype[e] = function(n, r) {
|
|
1519
|
+
return this.request(v(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(v(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
|
+
Z.prototype[e] = n(), Z.prototype[e + "Form"] = n(!0);
|
|
1540
1540
|
});
|
|
1541
|
-
const
|
|
1541
|
+
const V = Z;
|
|
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 M(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 V(t), n = We(V.prototype.request, e);
|
|
1696
|
+
return c.extend(n, V.prototype, e, { allOwnKeys: !0 }), c.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1697
|
+
return yt(v(t, s));
|
|
1698
1698
|
}, n;
|
|
1699
1699
|
}
|
|
1700
1700
|
const g = yt(Te);
|
|
1701
|
-
g.Axios =
|
|
1702
|
-
g.CanceledError =
|
|
1701
|
+
g.Axios = V;
|
|
1702
|
+
g.CanceledError = M;
|
|
1703
1703
|
g.CancelToken = tr;
|
|
1704
1704
|
g.isCancel = at;
|
|
1705
1705
|
g.VERSION = ht;
|
|
@@ -1711,7 +1711,7 @@ g.all = function(e) {
|
|
|
1711
1711
|
};
|
|
1712
1712
|
g.spread = nr;
|
|
1713
1713
|
g.isAxiosError = rr;
|
|
1714
|
-
g.mergeConfig =
|
|
1714
|
+
g.mergeConfig = v;
|
|
1715
1715
|
g.AxiosHeaders = I;
|
|
1716
1716
|
g.formToJSON = (t) => it(c.isHTMLForm(t) ? new FormData(t) : t);
|
|
1717
1717
|
g.getAdapter = pt.getAdapter;
|
|
@@ -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: Br,
|
|
1731
|
+
toFormData: vr,
|
|
1732
|
+
AxiosHeaders: Nr,
|
|
1733
|
+
HttpStatusCode: Fr,
|
|
1734
|
+
formToJSON: Mr,
|
|
1735
1735
|
getAdapter: Dr,
|
|
1736
1736
|
mergeConfig: $r
|
|
1737
1737
|
} = Ae;
|
|
1738
|
-
var
|
|
1738
|
+
var N = 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 N(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 N(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 N(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 N(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 N(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 N(this, void 0, void 0, function* () {
|
|
1989
1989
|
const e = yield fetch(this.baseUrl + "/api/user/claims", {
|
|
1990
1990
|
method: "GET",
|
|
1991
1991
|
headers: {
|
|
@@ -2147,8 +2147,8 @@ 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.feedmeapi.com/v1", customerApp: "https://
|
|
2151
|
-
menuBackendUrl: { remy: "https://remy.feedmeapi.com/v1", customerApp: "https://
|
|
2150
|
+
portalBackendUrl: { remy: "https://remy-dev.feedmeapi.com/v1", customerApp: "https://feedmedev.cc", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", templateBuilderUrl: "https://print-template-builder.feedme.dev/", gtm: { id: "GTM-P7Z9FMS6", serverUrl: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", env: "development", serverMeasurementId: "G-759WBZPF06", debug: !0 }, firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, r2: null }.mainBackend ?? a,
|
|
2151
|
+
menuBackendUrl: { remy: "https://remy-dev.feedmeapi.com/v1", customerApp: "https://feedmedev.cc", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", templateBuilderUrl: "https://print-template-builder.feedme.dev/", gtm: { id: "GTM-P7Z9FMS6", serverUrl: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", env: "development", serverMeasurementId: "G-759WBZPF06", debug: !0 }, firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, r2: null }.menuBackend ?? a
|
|
2152
2152
|
};
|
|
2153
2153
|
}
|
|
2154
2154
|
function Hr(t) {
|