@feedmepos/mf-settings 0.0.39 → 0.0.40-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/{Business-5bd3ac2e.js → Business-d1e2d88a.js} +636 -636
- package/dist/{CreateBusiness-28255340.js → CreateBusiness-878db03c.js} +2 -2
- package/dist/{FoodCourt-2c67838f.js → FoodCourt-7cddcacf.js} +2 -2
- package/dist/{ResponsiveFabButton.vue_vue_type_script_setup_true_lang-62e1008f.js → ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8db91a2d.js} +1 -1
- package/dist/{app-99b52484.js → app-e12f1f82.js} +62 -62
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-b41c9d64.js → business-2ad18a32.js} +1 -1
- package/dist/{loading-810e6a97.js → loading-8bc1d79a.js} +495 -495
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { unref as s, defineComponent as A, openBlock as g, createElementBlock as b, ref as f, watch as j, computed as E, resolveComponent as h, createVNode as v, withCtx as G, createElementVNode as t, toDisplayString as y, Fragment as P, renderList as W, normalizeClass as z, createBlock as R, createCommentVNode as Z } from "vue";
|
|
2
2
|
import { useCoreStore as q, useI18n as Q, CountryOptions as Y } from "@feedmepos/mf-common";
|
|
3
|
-
import { _ as J, b as w, r as K } from "./business-
|
|
4
|
-
import { u as X, F as ee } from "./loading-
|
|
3
|
+
import { _ as J, b as w, r as K } from "./business-2ad18a32.js";
|
|
4
|
+
import { u as X, F as ee } from "./loading-8bc1d79a.js";
|
|
5
5
|
import { useSnackbar as te } from "@feedmepos/ui-library";
|
|
6
6
|
import { useRouter as se } from "vue-router";
|
|
7
7
|
import "pinia";
|
|
@@ -2,8 +2,8 @@ var g1 = Object.defineProperty;
|
|
|
2
2
|
var p1 = (s, c, d) => c in s ? g1(s, c, { enumerable: !0, configurable: !0, writable: !0, value: d }) : s[c] = d;
|
|
3
3
|
var ll = (s, c, d) => (p1(s, typeof c != "symbol" ? c + "" : c, d), d);
|
|
4
4
|
import { defineComponent as zc, ref as en, resolveComponent as Kt, openBlock as xt, createElementBlock as Pr, Fragment as Ji, renderSlot as hb, createVNode as Dt, unref as Yt, withCtx as Tn, createElementVNode as xe, computed as fr, watch as $b, withKeys as b1, toDisplayString as jn, renderList as dc, createBlock as Vi, createCommentVNode as cc, h as Td, getCurrentInstance as y1, withModifiers as _1 } from "vue";
|
|
5
|
-
import { l as D, c as Q, f as ge, h as Bl, i as mb, d as Tr, r as ja, b as t$, u as hm } from "./loading-
|
|
6
|
-
import { e as v1, _ as x$, c as gb, u as z1, a as E1, b as F1, d as Kg } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { l as D, c as Q, f as ge, h as Bl, i as mb, d as Tr, r as ja, b as t$, u as hm } from "./loading-8bc1d79a.js";
|
|
6
|
+
import { e as v1, _ as x$, c as gb, u as z1, a as E1, b as F1, d as Kg } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8db91a2d.js";
|
|
7
7
|
import { useSnackbar as Ec, components as Tl, useDialogChild as w1, useDialog as pb, useBreakpoints as S1 } from "@feedmepos/ui-library";
|
|
8
8
|
import { useCoreStore as Fc, useI18n as $m } from "@feedmepos/mf-common";
|
|
9
9
|
import "pinia";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as q, openBlock as H, createElementBlock as G, createElementVNode as U, renderSlot as V, toDisplayString as le, normalizeClass as ae, toRaw as de, mergeModels as fe, useModel as he, computed as A, watchEffect as me, resolveComponent as z, createBlock as Z, withCtx as te, createVNode as Q, Fragment as pe, renderList as $e, markRaw as ve, render as ye, normalizeProps as ge, mergeProps as ne } from "vue";
|
|
2
|
-
import { c as be, g as Me } from "./loading-
|
|
2
|
+
import { c as be, g as Me } from "./loading-8bc1d79a.js";
|
|
3
3
|
import { useCoreStore as _e } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as we, useBreakpoints as Se } from "@feedmepos/ui-library";
|
|
5
5
|
const De = {
|
|
@@ -288,7 +288,7 @@ const Dr = function(t) {
|
|
|
288
288
|
* See the License for the specific language governing permissions and
|
|
289
289
|
* limitations under the License.
|
|
290
290
|
*/
|
|
291
|
-
function
|
|
291
|
+
function Lr() {
|
|
292
292
|
if (typeof self < "u")
|
|
293
293
|
return self;
|
|
294
294
|
if (typeof window < "u")
|
|
@@ -313,7 +313,7 @@ function Ur() {
|
|
|
313
313
|
* See the License for the specific language governing permissions and
|
|
314
314
|
* limitations under the License.
|
|
315
315
|
*/
|
|
316
|
-
const
|
|
316
|
+
const Ur = () => Lr().__FIREBASE_DEFAULTS__, Mr = () => {
|
|
317
317
|
if (typeof process > "u" || typeof process.env > "u")
|
|
318
318
|
return;
|
|
319
319
|
const t = process.env.__FIREBASE_DEFAULTS__;
|
|
@@ -332,7 +332,7 @@ const Lr = () => Ur().__FIREBASE_DEFAULTS__, Mr = () => {
|
|
|
332
332
|
return e && JSON.parse(e);
|
|
333
333
|
}, Fe = () => {
|
|
334
334
|
try {
|
|
335
|
-
return
|
|
335
|
+
return Ur() || Mr() || xr();
|
|
336
336
|
} catch (t) {
|
|
337
337
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);
|
|
338
338
|
return;
|
|
@@ -1273,7 +1273,7 @@ const rt = "@firebase/app", Ct = "0.9.13";
|
|
|
1273
1273
|
* See the License for the specific language governing permissions and
|
|
1274
1274
|
* limitations under the License.
|
|
1275
1275
|
*/
|
|
1276
|
-
const Q = new hn("@firebase/app"), wi = "@firebase/app-compat", Ei = "@firebase/analytics-compat", Ti = "@firebase/analytics", Ri = "@firebase/app-check-compat", Ai = "@firebase/app-check", ki = "@firebase/auth", Si = "@firebase/auth-compat", Ci = "@firebase/database", Oi = "@firebase/database-compat", Ni = "@firebase/functions", Pi = "@firebase/functions-compat", Di = "@firebase/installations",
|
|
1276
|
+
const Q = new hn("@firebase/app"), wi = "@firebase/app-compat", Ei = "@firebase/analytics-compat", Ti = "@firebase/analytics", Ri = "@firebase/app-check-compat", Ai = "@firebase/app-check", ki = "@firebase/auth", Si = "@firebase/auth-compat", Ci = "@firebase/database", Oi = "@firebase/database-compat", Ni = "@firebase/functions", Pi = "@firebase/functions-compat", Di = "@firebase/installations", Li = "@firebase/installations-compat", Ui = "@firebase/messaging", Mi = "@firebase/messaging-compat", xi = "@firebase/performance", Bi = "@firebase/performance-compat", Fi = "@firebase/remote-config", $i = "@firebase/remote-config-compat", Hi = "@firebase/storage", ji = "@firebase/storage-compat", Vi = "@firebase/firestore", Wi = "@firebase/firestore-compat", zi = "firebase", qi = "9.23.0";
|
|
1277
1277
|
/**
|
|
1278
1278
|
* @license
|
|
1279
1279
|
* Copyright 2019 Google LLC
|
|
@@ -1304,8 +1304,8 @@ const it = "[DEFAULT]", Ki = {
|
|
|
1304
1304
|
[Ni]: "fire-fn",
|
|
1305
1305
|
[Pi]: "fire-fn-compat",
|
|
1306
1306
|
[Di]: "fire-iid",
|
|
1307
|
-
[
|
|
1308
|
-
[
|
|
1307
|
+
[Li]: "fire-iid-compat",
|
|
1308
|
+
[Ui]: "fire-fcm",
|
|
1309
1309
|
[Mi]: "fire-fcm-compat",
|
|
1310
1310
|
[xi]: "fire-perf",
|
|
1311
1311
|
[Bi]: "fire-perf-compat",
|
|
@@ -1783,12 +1783,12 @@ const ls = bn, yn = new ge("auth", "Firebase", bn());
|
|
|
1783
1783
|
* See the License for the specific language governing permissions and
|
|
1784
1784
|
* limitations under the License.
|
|
1785
1785
|
*/
|
|
1786
|
-
const
|
|
1786
|
+
const Le = new hn("@firebase/auth");
|
|
1787
1787
|
function us(t, ...e) {
|
|
1788
|
-
|
|
1788
|
+
Le.logLevel <= p.WARN && Le.warn(`Auth (${oe}): ${t}`, ...e);
|
|
1789
1789
|
}
|
|
1790
1790
|
function Se(t, ...e) {
|
|
1791
|
-
|
|
1791
|
+
Le.logLevel <= p.ERROR && Le.error(`Auth (${oe}): ${t}`, ...e);
|
|
1792
1792
|
}
|
|
1793
1793
|
/**
|
|
1794
1794
|
* @license
|
|
@@ -1806,7 +1806,7 @@ function Se(t, ...e) {
|
|
|
1806
1806
|
* See the License for the specific language governing permissions and
|
|
1807
1807
|
* limitations under the License.
|
|
1808
1808
|
*/
|
|
1809
|
-
function
|
|
1809
|
+
function L(t, ...e) {
|
|
1810
1810
|
throw ht(t, ...e);
|
|
1811
1811
|
}
|
|
1812
1812
|
function S(t, ...e) {
|
|
@@ -1833,7 +1833,7 @@ function P(t) {
|
|
|
1833
1833
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
1834
1834
|
throw Se(e), new Error(e);
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function U(t, e) {
|
|
1837
1837
|
t || P(e);
|
|
1838
1838
|
}
|
|
1839
1839
|
/**
|
|
@@ -1917,7 +1917,7 @@ function ps() {
|
|
|
1917
1917
|
*/
|
|
1918
1918
|
class ve {
|
|
1919
1919
|
constructor(e, n) {
|
|
1920
|
-
this.shortDelay = e, this.longDelay = n,
|
|
1920
|
+
this.shortDelay = e, this.longDelay = n, U(n > e, "Short delay should be less than long delay!"), this.isMobile = Hr() || Wr();
|
|
1921
1921
|
}
|
|
1922
1922
|
get() {
|
|
1923
1923
|
return fs() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
@@ -1940,7 +1940,7 @@ class ve {
|
|
|
1940
1940
|
* limitations under the License.
|
|
1941
1941
|
*/
|
|
1942
1942
|
function ft(t, e) {
|
|
1943
|
-
|
|
1943
|
+
U(t.emulator, "Emulator should always be set here");
|
|
1944
1944
|
const { url: n } = t.emulator;
|
|
1945
1945
|
return e ? `${n}${e.startsWith("/") ? e.slice(1) : e}` : n;
|
|
1946
1946
|
}
|
|
@@ -2138,17 +2138,17 @@ async function wn(t, e, n) {
|
|
|
2138
2138
|
const u = r[c] || c.toLowerCase().replace(/[_\s]+/g, "-");
|
|
2139
2139
|
if (l)
|
|
2140
2140
|
throw ds(t, u, l);
|
|
2141
|
-
|
|
2141
|
+
L(t, u);
|
|
2142
2142
|
}
|
|
2143
2143
|
} catch (i) {
|
|
2144
2144
|
if (i instanceof M)
|
|
2145
2145
|
throw i;
|
|
2146
|
-
|
|
2146
|
+
L(t, "network-request-failed", { message: String(i) });
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
2149
|
async function En(t, e, n, r, i = {}) {
|
|
2150
2150
|
const s = await be(t, e, n, r, i);
|
|
2151
|
-
return "mfaPendingCredential" in s &&
|
|
2151
|
+
return "mfaPendingCredential" in s && L(t, "multi-factor-auth-required", {
|
|
2152
2152
|
_serverResponse: s
|
|
2153
2153
|
}), s;
|
|
2154
2154
|
}
|
|
@@ -2413,7 +2413,7 @@ class Rn {
|
|
|
2413
2413
|
* See the License for the specific language governing permissions and
|
|
2414
2414
|
* limitations under the License.
|
|
2415
2415
|
*/
|
|
2416
|
-
async function
|
|
2416
|
+
async function Ue(t) {
|
|
2417
2417
|
var e;
|
|
2418
2418
|
const n = t.auth, r = await t.getIdToken(), i = await pe(t, bs(n, { idToken: r }));
|
|
2419
2419
|
d(
|
|
@@ -2440,7 +2440,7 @@ async function Le(t) {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
async function Ts(t) {
|
|
2442
2442
|
const e = R(t);
|
|
2443
|
-
await
|
|
2443
|
+
await Ue(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
2444
2444
|
}
|
|
2445
2445
|
function Rs(t, e) {
|
|
2446
2446
|
return [...t.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
|
@@ -2650,7 +2650,7 @@ class J {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
2652
2652
|
let r = !1;
|
|
2653
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
2653
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Ue(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
2654
2654
|
}
|
|
2655
2655
|
async delete() {
|
|
2656
2656
|
const e = await this.getIdToken();
|
|
@@ -2736,7 +2736,7 @@ class J {
|
|
|
2736
2736
|
stsTokenManager: i,
|
|
2737
2737
|
isAnonymous: r
|
|
2738
2738
|
});
|
|
2739
|
-
return await
|
|
2739
|
+
return await Ue(s), s;
|
|
2740
2740
|
}
|
|
2741
2741
|
}
|
|
2742
2742
|
/**
|
|
@@ -2755,11 +2755,11 @@ class J {
|
|
|
2755
2755
|
* See the License for the specific language governing permissions and
|
|
2756
2756
|
* limitations under the License.
|
|
2757
2757
|
*/
|
|
2758
|
-
const
|
|
2758
|
+
const Lt = /* @__PURE__ */ new Map();
|
|
2759
2759
|
function D(t) {
|
|
2760
|
-
|
|
2761
|
-
let e =
|
|
2762
|
-
return e ? (
|
|
2760
|
+
U(t instanceof Function, "Expected a class definition");
|
|
2761
|
+
let e = Lt.get(t);
|
|
2762
|
+
return e ? (U(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), Lt.set(t, e), e);
|
|
2763
2763
|
}
|
|
2764
2764
|
/**
|
|
2765
2765
|
* @license
|
|
@@ -2800,7 +2800,7 @@ class An {
|
|
|
2800
2800
|
}
|
|
2801
2801
|
}
|
|
2802
2802
|
An.type = "NONE";
|
|
2803
|
-
const
|
|
2803
|
+
const Ut = An;
|
|
2804
2804
|
/**
|
|
2805
2805
|
* @license
|
|
2806
2806
|
* Copyright 2019 Google LLC
|
|
@@ -2851,12 +2851,12 @@ class re {
|
|
|
2851
2851
|
}
|
|
2852
2852
|
static async create(e, n, r = "authUser") {
|
|
2853
2853
|
if (!n.length)
|
|
2854
|
-
return new re(D(
|
|
2854
|
+
return new re(D(Ut), e, r);
|
|
2855
2855
|
const i = (await Promise.all(n.map(async (l) => {
|
|
2856
2856
|
if (await l._isAvailable())
|
|
2857
2857
|
return l;
|
|
2858
2858
|
}))).filter((l) => l);
|
|
2859
|
-
let s = i[0] || D(
|
|
2859
|
+
let s = i[0] || D(Ut);
|
|
2860
2860
|
const o = Ce(r, e.config.apiKey, e.name);
|
|
2861
2861
|
let a = null;
|
|
2862
2862
|
for (const l of n)
|
|
@@ -2984,7 +2984,7 @@ function Os() {
|
|
|
2984
2984
|
* See the License for the specific language governing permissions and
|
|
2985
2985
|
* limitations under the License.
|
|
2986
2986
|
*/
|
|
2987
|
-
function
|
|
2987
|
+
function Ln(t, e = []) {
|
|
2988
2988
|
let n;
|
|
2989
2989
|
switch (t) {
|
|
2990
2990
|
case "Browser":
|
|
@@ -2999,7 +2999,7 @@ function Un(t, e = []) {
|
|
|
2999
2999
|
const r = e.length ? e.join(",") : "FirebaseCore-web";
|
|
3000
3000
|
return `${n}/JsCore/${oe}/${r}`;
|
|
3001
3001
|
}
|
|
3002
|
-
async function
|
|
3002
|
+
async function Un(t, e) {
|
|
3003
3003
|
return be(t, "GET", "/v2/recaptchaConfig", pt(t, e));
|
|
3004
3004
|
}
|
|
3005
3005
|
function xt(t) {
|
|
@@ -3047,7 +3047,7 @@ function xn(t) {
|
|
|
3047
3047
|
function Ps(t) {
|
|
3048
3048
|
return `__${t}${Math.floor(Math.random() * 1e6)}`;
|
|
3049
3049
|
}
|
|
3050
|
-
const Ds = "https://www.google.com/recaptcha/enterprise.js?render=",
|
|
3050
|
+
const Ds = "https://www.google.com/recaptcha/enterprise.js?render=", Ls = "recaptcha-enterprise", Us = "NO_RECAPTCHA";
|
|
3051
3051
|
class Ms {
|
|
3052
3052
|
/**
|
|
3053
3053
|
*
|
|
@@ -3055,7 +3055,7 @@ class Ms {
|
|
|
3055
3055
|
*
|
|
3056
3056
|
*/
|
|
3057
3057
|
constructor(e) {
|
|
3058
|
-
this.type =
|
|
3058
|
+
this.type = Ls, this.auth = ye(e);
|
|
3059
3059
|
}
|
|
3060
3060
|
/**
|
|
3061
3061
|
* Executes the verification process.
|
|
@@ -3071,7 +3071,7 @@ class Ms {
|
|
|
3071
3071
|
return s._tenantRecaptchaConfigs[s.tenantId].siteKey;
|
|
3072
3072
|
}
|
|
3073
3073
|
return new Promise(async (o, a) => {
|
|
3074
|
-
|
|
3074
|
+
Un(s, {
|
|
3075
3075
|
clientType: "CLIENT_TYPE_WEB",
|
|
3076
3076
|
version: "RECAPTCHA_ENTERPRISE"
|
|
3077
3077
|
/* RecaptchaVersion.ENTERPRISE */
|
|
@@ -3093,7 +3093,7 @@ class Ms {
|
|
|
3093
3093
|
c.enterprise.execute(s, { action: e }).then((l) => {
|
|
3094
3094
|
o(l);
|
|
3095
3095
|
}).catch(() => {
|
|
3096
|
-
o(
|
|
3096
|
+
o(Us);
|
|
3097
3097
|
});
|
|
3098
3098
|
}) : a(Error("No reCAPTCHA enterprise script loaded."));
|
|
3099
3099
|
}
|
|
@@ -3263,7 +3263,7 @@ class Bs {
|
|
|
3263
3263
|
}
|
|
3264
3264
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
3265
3265
|
try {
|
|
3266
|
-
await
|
|
3266
|
+
await Ue(e);
|
|
3267
3267
|
} catch (n) {
|
|
3268
3268
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
3269
3269
|
return this.directlySetCurrentUser(null);
|
|
@@ -3309,7 +3309,7 @@ class Bs {
|
|
|
3309
3309
|
});
|
|
3310
3310
|
}
|
|
3311
3311
|
async initializeRecaptchaConfig() {
|
|
3312
|
-
const e = await
|
|
3312
|
+
const e = await Un(this, {
|
|
3313
3313
|
clientType: "CLIENT_TYPE_WEB",
|
|
3314
3314
|
version: "RECAPTCHA_ENTERPRISE"
|
|
3315
3315
|
/* RecaptchaVersion.ENTERPRISE */
|
|
@@ -3430,7 +3430,7 @@ class Bs {
|
|
|
3430
3430
|
), this.persistenceManager;
|
|
3431
3431
|
}
|
|
3432
3432
|
_logFramework(e) {
|
|
3433
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
|
3433
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Ln(this.config.clientPlatform, this._getFrameworks()));
|
|
3434
3434
|
}
|
|
3435
3435
|
_getFrameworks() {
|
|
3436
3436
|
return this.frameworks;
|
|
@@ -3501,7 +3501,7 @@ function Fs(t, e) {
|
|
|
3501
3501
|
const i = n.getImmediate(), s = n.getOptions();
|
|
3502
3502
|
if (De(s, e ?? {}))
|
|
3503
3503
|
return i;
|
|
3504
|
-
|
|
3504
|
+
L(
|
|
3505
3505
|
i,
|
|
3506
3506
|
"already-initialized"
|
|
3507
3507
|
/* AuthErrorCode.ALREADY_INITIALIZED */
|
|
@@ -3649,7 +3649,7 @@ class Z extends Fn {
|
|
|
3649
3649
|
/** @internal */
|
|
3650
3650
|
static _fromParams(e) {
|
|
3651
3651
|
const n = new Z(e.providerId, e.signInMethod);
|
|
3652
|
-
return e.idToken || e.accessToken ? (e.idToken && (n.idToken = e.idToken), e.accessToken && (n.accessToken = e.accessToken), e.nonce && !e.pendingToken && (n.nonce = e.nonce), e.pendingToken && (n.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (n.accessToken = e.oauthToken, n.secret = e.oauthTokenSecret) :
|
|
3652
|
+
return e.idToken || e.accessToken ? (e.idToken && (n.idToken = e.idToken), e.accessToken && (n.accessToken = e.accessToken), e.nonce && !e.pendingToken && (n.nonce = e.nonce), e.pendingToken && (n.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (n.accessToken = e.oauthToken, n.secret = e.oauthTokenSecret) : L(
|
|
3653
3653
|
"argument-error"
|
|
3654
3654
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
3655
3655
|
), n;
|
|
@@ -4206,7 +4206,7 @@ async function qs(t, e, n = !1) {
|
|
|
4206
4206
|
/* AuthErrorCode.USER_MISMATCH */
|
|
4207
4207
|
), ee._forOperation(t, i, s);
|
|
4208
4208
|
} catch (s) {
|
|
4209
|
-
throw (s == null ? void 0 : s.code) === "auth/user-not-found" &&
|
|
4209
|
+
throw (s == null ? void 0 : s.code) === "auth/user-not-found" && L(
|
|
4210
4210
|
r,
|
|
4211
4211
|
"user-mismatch"
|
|
4212
4212
|
/* AuthErrorCode.USER_MISMATCH */
|
|
@@ -5133,7 +5133,7 @@ class Xn {
|
|
|
5133
5133
|
case "reauthViaRedirect":
|
|
5134
5134
|
return _o;
|
|
5135
5135
|
default:
|
|
5136
|
-
|
|
5136
|
+
L(
|
|
5137
5137
|
this.auth,
|
|
5138
5138
|
"internal-error"
|
|
5139
5139
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -5141,10 +5141,10 @@ class Xn {
|
|
|
5141
5141
|
}
|
|
5142
5142
|
}
|
|
5143
5143
|
resolve(e) {
|
|
5144
|
-
|
|
5144
|
+
U(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
|
|
5145
5145
|
}
|
|
5146
5146
|
reject(e) {
|
|
5147
|
-
|
|
5147
|
+
U(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
|
|
5148
5148
|
}
|
|
5149
5149
|
unregisterAndCleanUp() {
|
|
5150
5150
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
|
@@ -5181,7 +5181,7 @@ class ne extends Xn {
|
|
|
5181
5181
|
), e;
|
|
5182
5182
|
}
|
|
5183
5183
|
async onExecution() {
|
|
5184
|
-
|
|
5184
|
+
U(this.filter.length === 1, "Popup operations only handle one event");
|
|
5185
5185
|
const e = _t();
|
|
5186
5186
|
this.authWindow = await this.resolver._openPopup(
|
|
5187
5187
|
this.auth,
|
|
@@ -5433,17 +5433,17 @@ async function Do(t) {
|
|
|
5433
5433
|
const { authorizedDomains: e } = await Oo(t);
|
|
5434
5434
|
for (const n of e)
|
|
5435
5435
|
try {
|
|
5436
|
-
if (
|
|
5436
|
+
if (Lo(n))
|
|
5437
5437
|
return;
|
|
5438
5438
|
} catch {
|
|
5439
5439
|
}
|
|
5440
|
-
|
|
5440
|
+
L(
|
|
5441
5441
|
t,
|
|
5442
5442
|
"unauthorized-domain"
|
|
5443
5443
|
/* AuthErrorCode.INVALID_ORIGIN */
|
|
5444
5444
|
);
|
|
5445
5445
|
}
|
|
5446
|
-
function
|
|
5446
|
+
function Lo(t) {
|
|
5447
5447
|
const e = ot(), { protocol: n, hostname: r } = new URL(e);
|
|
5448
5448
|
if (t.startsWith("chrome-extension://")) {
|
|
5449
5449
|
const o = new URL(t);
|
|
@@ -5472,7 +5472,7 @@ function Uo(t) {
|
|
|
5472
5472
|
* See the License for the specific language governing permissions and
|
|
5473
5473
|
* limitations under the License.
|
|
5474
5474
|
*/
|
|
5475
|
-
const
|
|
5475
|
+
const Uo = new ve(3e4, 6e4);
|
|
5476
5476
|
function Wt() {
|
|
5477
5477
|
const t = C().___jsl;
|
|
5478
5478
|
if (t != null && t.H) {
|
|
@@ -5497,7 +5497,7 @@ function Mo(t) {
|
|
|
5497
5497
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
5498
5498
|
));
|
|
5499
5499
|
},
|
|
5500
|
-
timeout:
|
|
5500
|
+
timeout: Uo.get()
|
|
5501
5501
|
});
|
|
5502
5502
|
}
|
|
5503
5503
|
if (!((i = (r = C().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
|
@@ -5750,7 +5750,7 @@ class na {
|
|
|
5750
5750
|
// to make sure errors are raised as promise rejections
|
|
5751
5751
|
async _openPopup(e, n, r, i) {
|
|
5752
5752
|
var s;
|
|
5753
|
-
|
|
5753
|
+
U((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
5754
5754
|
const o = await qt(e, n, r, ot(), i);
|
|
5755
5755
|
return Xo(e, o, _t());
|
|
5756
5756
|
}
|
|
@@ -5764,7 +5764,7 @@ class na {
|
|
|
5764
5764
|
const n = e._key();
|
|
5765
5765
|
if (this.eventManagers[n]) {
|
|
5766
5766
|
const { manager: i, promise: s } = this.eventManagers[n];
|
|
5767
|
-
return i ? Promise.resolve(i) : (
|
|
5767
|
+
return i ? Promise.resolve(i) : (U(s, "If manager is not set, promise should be"), s);
|
|
5768
5768
|
}
|
|
5769
5769
|
const r = this.initAndGetManager(e);
|
|
5770
5770
|
return this.eventManagers[n] = { promise: r }, r.catch(() => {
|
|
@@ -5787,7 +5787,7 @@ class na {
|
|
|
5787
5787
|
this.iframes[e._key()].send(Ye, { type: Ye }, (i) => {
|
|
5788
5788
|
var s;
|
|
5789
5789
|
const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ye];
|
|
5790
|
-
o !== void 0 && n(!!o),
|
|
5790
|
+
o !== void 0 && n(!!o), L(
|
|
5791
5791
|
e,
|
|
5792
5792
|
"internal-error"
|
|
5793
5793
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -5898,7 +5898,7 @@ function oa(t) {
|
|
|
5898
5898
|
apiHost: "identitytoolkit.googleapis.com",
|
|
5899
5899
|
tokenApiHost: "securetoken.googleapis.com",
|
|
5900
5900
|
apiScheme: "https",
|
|
5901
|
-
sdkClientVersion:
|
|
5901
|
+
sdkClientVersion: Ln(t)
|
|
5902
5902
|
}, l = new Bs(r, i, s, c);
|
|
5903
5903
|
return $s(l, n), l;
|
|
5904
5904
|
},
|
|
@@ -6463,10 +6463,10 @@ class Ae {
|
|
|
6463
6463
|
this.wasSuccessCode = e, this.connection = n, this.canceled = !!r;
|
|
6464
6464
|
}
|
|
6465
6465
|
}
|
|
6466
|
-
function
|
|
6466
|
+
function La(t, e) {
|
|
6467
6467
|
e !== null && e.length > 0 && (t.Authorization = "Firebase " + e);
|
|
6468
6468
|
}
|
|
6469
|
-
function
|
|
6469
|
+
function Ua(t, e) {
|
|
6470
6470
|
t["X-Firebase-Storage-Version"] = "webjs/" + (e ?? "AppManager");
|
|
6471
6471
|
}
|
|
6472
6472
|
function Ma(t, e) {
|
|
@@ -6477,7 +6477,7 @@ function xa(t, e) {
|
|
|
6477
6477
|
}
|
|
6478
6478
|
function Ba(t, e, n, r, i, s, o = !0) {
|
|
6479
6479
|
const a = tr(t.urlParams), c = t.url + a, l = Object.assign({}, t.headers);
|
|
6480
|
-
return Ma(l, e),
|
|
6480
|
+
return Ma(l, e), La(l, n), Ua(l, s), xa(l, r), new Da(c, t.method, l, t.body, t.successCodes, t.additionalRetryCodes, t.handler, t.errorHandler, t.timeout, t.progressCallback, i, o);
|
|
6481
6481
|
}
|
|
6482
6482
|
/**
|
|
6483
6483
|
* @license
|
|
@@ -7956,7 +7956,7 @@ const Ac = {
|
|
|
7956
7956
|
{
|
|
7957
7957
|
path: "/business",
|
|
7958
7958
|
name: "$settings-my-business",
|
|
7959
|
-
component: () => import("./Business-
|
|
7959
|
+
component: () => import("./Business-d1e2d88a.js"),
|
|
7960
7960
|
meta: {
|
|
7961
7961
|
i18nKey: "settings.business.title"
|
|
7962
7962
|
}
|
|
@@ -7964,7 +7964,7 @@ const Ac = {
|
|
|
7964
7964
|
{
|
|
7965
7965
|
path: "/create-business",
|
|
7966
7966
|
name: "$settings-create-business",
|
|
7967
|
-
component: () => import("./CreateBusiness-
|
|
7967
|
+
component: () => import("./CreateBusiness-878db03c.js"),
|
|
7968
7968
|
meta: {
|
|
7969
7969
|
hideNavigation: !0
|
|
7970
7970
|
}
|
|
@@ -7972,7 +7972,7 @@ const Ac = {
|
|
|
7972
7972
|
{
|
|
7973
7973
|
path: "/foodcourt",
|
|
7974
7974
|
name: "$settings-food-court",
|
|
7975
|
-
component: () => import("./FoodCourt-
|
|
7975
|
+
component: () => import("./FoodCourt-7cddcacf.js"),
|
|
7976
7976
|
meta: {
|
|
7977
7977
|
i18nKey: "settings.food_court.list.title"
|
|
7978
7978
|
}
|
|
@@ -8039,14 +8039,14 @@ const Ac = {
|
|
|
8039
8039
|
setup(t) {
|
|
8040
8040
|
const e = Ir();
|
|
8041
8041
|
return vr(() => {
|
|
8042
|
-
e.registerSidebarComponent(Nc),
|
|
8042
|
+
e.registerSidebarComponent(Nc), Lc();
|
|
8043
8043
|
}), (n, r) => (rn(), sn(br(Tr)));
|
|
8044
8044
|
}
|
|
8045
8045
|
});
|
|
8046
8046
|
async function Pc() {
|
|
8047
8047
|
if (Yi().length)
|
|
8048
8048
|
return;
|
|
8049
|
-
const t = mn({ apiKey: "
|
|
8049
|
+
const t = mn({ 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" }), e = await wr.getCustomToken(), n = ua();
|
|
8050
8050
|
await Js(n, e), wc(t);
|
|
8051
8051
|
}
|
|
8052
8052
|
async function Dc() {
|
|
@@ -8057,7 +8057,7 @@ async function Dc() {
|
|
|
8057
8057
|
}).load();
|
|
8058
8058
|
Or(e);
|
|
8059
8059
|
}
|
|
8060
|
-
async function
|
|
8060
|
+
async function Lc() {
|
|
8061
8061
|
await Pc(), await Dc();
|
|
8062
8062
|
}
|
|
8063
8063
|
const Jc = {
|
|
@@ -8074,7 +8074,7 @@ export {
|
|
|
8074
8074
|
Wc as f,
|
|
8075
8075
|
Cr as g,
|
|
8076
8076
|
zc as h,
|
|
8077
|
-
|
|
8077
|
+
Lc as i,
|
|
8078
8078
|
Jc as j,
|
|
8079
8079
|
Oc as k,
|
|
8080
8080
|
qc as r,
|
package/dist/app.js
CHANGED