@feedmepos/mf-settings 0.0.50-prod → 0.0.52
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-ccc37fd9.js → App-22950de9.js} +152 -143
- package/dist/Business-c9b59843.js +3893 -0
- package/dist/{CreateBusiness-ec365db8.js → CreateBusiness-0850150d.js} +86 -86
- package/dist/{FoodCourt-652c44f9.js → FoodCourt-ad9640e4.js} +60 -61
- package/dist/{actionButton-cc6bcf01.js → FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js} +25 -25
- package/dist/{ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-e9712a4d.js} +63 -63
- package/dist/{Tagging-798e2bb7.js → Tagging-55538d2b.js} +6402 -6404
- package/dist/TemplateBuilder-54a34178.js +27 -0
- package/dist/{app-bd3cfc9c.js → app-b66ea7e1.js} +358 -40
- package/dist/app.js +2 -2
- package/dist/apps/mf-settings/src/api/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/src/api/restaurant.d.ts +2 -2
- package/dist/apps/mf-settings/src/app.d.ts +1 -0
- package/dist/apps/mf-settings/src/components/business/RestaurantForm.vue.d.ts +1 -1
- package/dist/apps/mf-settings/src/components/foodcourt/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-93826a8c.js → business-906742ba.js} +1 -1
- package/dist/{loading-6ee8ebc9.js → index-72d7bc88.js} +465 -466
- package/dist/{tslib.es6-449ce8af.js → map-695afd6f.js} +444 -561
- package/dist/{createForm-681e977a.js → object-8ac0c0d8.js} +18 -19
- package/dist/packages/shared/src/components/form/DynamicSheet.vue.d.ts +19 -0
- package/dist/packages/shared/src/components/layout/ListLayout.vue.d.ts +2 -0
- package/dist/packages/shared/src/composable/prompt.d.ts +9 -0
- package/dist/packages/shared/src/composable/sheet.d.ts +17 -0
- package/dist/packages/shared/src/helpers/browser.d.ts +1 -0
- package/dist/packages/shared/src/helpers/string.d.ts +12 -0
- package/package.json +3 -3
- package/dist/Business-edf5bd92.js +0 -11975
- package/dist/TemplateBuilder-3e34e9e8.js +0 -27
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { r as qt } from "./app-bd3cfc9c.js";
|
|
1
|
+
import { defineComponent as Ye, computed as Pe, ref as xt, watchEffect as Vt, resolveComponent as Wt, openBlock as Xe, createBlock as Qe, onMounted as Ht, unref as $t } from "vue";
|
|
2
|
+
import { useRouter as jt, RouterView as Bt } from "vue-router";
|
|
3
|
+
import { useI18n as Kt, useCoreStore as Ze, FeedMeAuth as qt } from "@feedmepos/mf-common";
|
|
5
4
|
import { c as Gt } from "./index-1eb3cc0a.js";
|
|
6
|
-
import { e as
|
|
7
|
-
import { r as
|
|
5
|
+
import { e as zt } from "./index-f1e5e565.js";
|
|
6
|
+
import { r as Jt } from "./app-b66ea7e1.js";
|
|
7
|
+
import { r as de, g as et, i as Yt, a as Xt, _ as Ne, C as Oe, b as Qt, S as F, c as O, E as pe, d as Zt, e as tt, f as en, h as tn, L as nt, j as f, k as nn, l as rn, F as ge, q as x, m as sn, n as on, o as an, p as cn, s as ln, t as un, u as dn, v as hn } from "./map-695afd6f.js";
|
|
8
8
|
import "@feedmepos/mf-mdm";
|
|
9
9
|
import "@feedmepos/ui-library";
|
|
10
10
|
import "@feedmepos/mf-e-invoice";
|
|
11
|
-
|
|
11
|
+
function me(n, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var i in n)
|
|
14
|
+
Object.prototype.hasOwnProperty.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);
|
|
15
|
+
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
|
16
|
+
for (var r = 0, i = Object.getOwnPropertySymbols(n); r < i.length; r++)
|
|
17
|
+
e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(n, i[r]) && (t[i[r]] = n[i[r]]);
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
const fn = /* @__PURE__ */ Ye({
|
|
12
21
|
__name: "NavigationTab",
|
|
13
22
|
emits: ["close-navigation"],
|
|
14
23
|
setup(n, { emit: e }) {
|
|
15
|
-
const t = e, { t: i } =
|
|
24
|
+
const t = e, { t: i } = Kt(), r = jt(), s = Ze(), o = Pe(() => s.restaurants.value.some(({ posVersion: l }) => Gt.Pos.canUse({ feature: zt.F_FEATURE.Enum.templateBuilder, posVersion: l ?? "" }))), c = Pe(() => Jt.filter((d) => {
|
|
16
25
|
var h;
|
|
17
26
|
return d.redirect || (h = d.meta) != null && h.hideNavigation ? !1 : !(d.name === "$settings-template-builder" && !o.value);
|
|
18
27
|
}).map((d) => {
|
|
@@ -31,7 +40,7 @@ const fn = /* @__PURE__ */ Xe({
|
|
|
31
40
|
l === "SUBMISSION" ? a.value = "$settings-e-invoice" : l === "$devices" ? a.value = "$settings-device" : a.value = l;
|
|
32
41
|
}), (l, d) => {
|
|
33
42
|
const h = Wt("fm-collapsible-tabs");
|
|
34
|
-
return
|
|
43
|
+
return Xe(), Qe(h, {
|
|
35
44
|
modelValue: a.value,
|
|
36
45
|
"onUpdate:modelValue": d[0] || (d[0] = (p) => a.value = p),
|
|
37
46
|
items: c.value,
|
|
@@ -40,40 +49,6 @@ const fn = /* @__PURE__ */ Xe({
|
|
|
40
49
|
};
|
|
41
50
|
}
|
|
42
51
|
});
|
|
43
|
-
class M {
|
|
44
|
-
constructor(e = null, t = {}) {
|
|
45
|
-
if (this.apiKey = e, this.options = t, typeof window > "u")
|
|
46
|
-
throw new Error("google-maps is supported only in browser environment");
|
|
47
|
-
}
|
|
48
|
-
load() {
|
|
49
|
-
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[M.CALLBACK_NAME] = () => {
|
|
50
|
-
if (this.api = window.google, typeof this.resolve > "u")
|
|
51
|
-
throw new Error("Should not happen");
|
|
52
|
-
this.resolve(this.api);
|
|
53
|
-
}, window.gm_authFailure = () => {
|
|
54
|
-
if (typeof this.reject > "u")
|
|
55
|
-
throw new Error("Should not happen");
|
|
56
|
-
this.reject(new Error("google-maps: authentication error"));
|
|
57
|
-
}, this.loader = new Promise((e, t) => {
|
|
58
|
-
this.resolve = e, this.reject = t;
|
|
59
|
-
const i = document.createElement("script");
|
|
60
|
-
i.src = this.createUrl(), i.async = !0, i.onerror = (r) => t(r), document.head.appendChild(i);
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
createUrl() {
|
|
64
|
-
const e = [
|
|
65
|
-
`callback=${M.CALLBACK_NAME}`
|
|
66
|
-
];
|
|
67
|
-
this.apiKey && e.push(`key=${this.apiKey}`);
|
|
68
|
-
for (let t in this.options)
|
|
69
|
-
if (this.options.hasOwnProperty(t)) {
|
|
70
|
-
let i = this.options[t];
|
|
71
|
-
t === "version" && (t = "v"), t === "libraries" && (i = i.join(",")), e.push(`${t}=${i}`);
|
|
72
|
-
}
|
|
73
|
-
return `https://maps.googleapis.com/maps/api/js?${e.join("&")}`;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
M.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
77
52
|
var pn = "firebase", gn = "9.23.0";
|
|
78
53
|
/**
|
|
79
54
|
* @license
|
|
@@ -114,12 +89,12 @@ const mn = it, rt = new pe("auth", "Firebase", it());
|
|
|
114
89
|
* See the License for the specific language governing permissions and
|
|
115
90
|
* limitations under the License.
|
|
116
91
|
*/
|
|
117
|
-
const
|
|
92
|
+
const X = new rn("@firebase/auth");
|
|
118
93
|
function _n(n, ...e) {
|
|
119
|
-
|
|
94
|
+
X.logLevel <= nt.WARN && X.warn(`Auth (${F}): ${n}`, ...e);
|
|
120
95
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
96
|
+
function G(n, ...e) {
|
|
97
|
+
X.logLevel <= nt.ERROR && X.error(`Auth (${F}): ${n}`, ...e);
|
|
123
98
|
}
|
|
124
99
|
/**
|
|
125
100
|
* @license
|
|
@@ -162,7 +137,7 @@ function u(n, e, ...t) {
|
|
|
162
137
|
}
|
|
163
138
|
function _(n) {
|
|
164
139
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
|
165
|
-
throw
|
|
140
|
+
throw G(e), new Error(e);
|
|
166
141
|
}
|
|
167
142
|
function y(n, e) {
|
|
168
143
|
n || _(e);
|
|
@@ -248,7 +223,7 @@ function Tn() {
|
|
|
248
223
|
*/
|
|
249
224
|
class V {
|
|
250
225
|
constructor(e, t) {
|
|
251
|
-
this.shortDelay = e, this.longDelay = t, y(t > e, "Short delay should be less than long delay!"), this.isMobile =
|
|
226
|
+
this.shortDelay = e, this.longDelay = t, y(t > e, "Short delay should be less than long delay!"), this.isMobile = Yt() || Xt();
|
|
252
227
|
}
|
|
253
228
|
get() {
|
|
254
229
|
return yn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
@@ -455,24 +430,24 @@ async function ot(n, e, t) {
|
|
|
455
430
|
r.clearNetworkTimeout();
|
|
456
431
|
const o = await s.json();
|
|
457
432
|
if ("needConfirmation" in o)
|
|
458
|
-
throw
|
|
433
|
+
throw q(n, "account-exists-with-different-credential", o);
|
|
459
434
|
if (s.ok && !("errorMessage" in o))
|
|
460
435
|
return o;
|
|
461
436
|
{
|
|
462
437
|
const c = s.ok ? o.errorMessage : o.error.message, [a, l] = c.split(" : ");
|
|
463
438
|
if (a === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
464
|
-
throw
|
|
439
|
+
throw q(n, "credential-already-in-use", o);
|
|
465
440
|
if (a === "EMAIL_EXISTS")
|
|
466
|
-
throw
|
|
441
|
+
throw q(n, "email-already-in-use", o);
|
|
467
442
|
if (a === "USER_DISABLED")
|
|
468
|
-
throw
|
|
443
|
+
throw q(n, "user-disabled", o);
|
|
469
444
|
const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
|
|
470
445
|
if (l)
|
|
471
446
|
throw vn(n, d, l);
|
|
472
447
|
I(n, d);
|
|
473
448
|
}
|
|
474
449
|
} catch (r) {
|
|
475
|
-
if (r instanceof
|
|
450
|
+
if (r instanceof ge)
|
|
476
451
|
throw r;
|
|
477
452
|
I(n, "network-request-failed", { message: String(r) });
|
|
478
453
|
}
|
|
@@ -501,7 +476,7 @@ class kn {
|
|
|
501
476
|
clearTimeout(this.timer);
|
|
502
477
|
}
|
|
503
478
|
}
|
|
504
|
-
function
|
|
479
|
+
function q(n, e, t) {
|
|
505
480
|
const i = {
|
|
506
481
|
appName: n.name
|
|
507
482
|
};
|
|
@@ -581,12 +556,12 @@ function le(n) {
|
|
|
581
556
|
function ye(n) {
|
|
582
557
|
const [e, t, i] = n.split(".");
|
|
583
558
|
if (e === void 0 || t === void 0 || i === void 0)
|
|
584
|
-
return
|
|
559
|
+
return G("JWT malformed, contained fewer than 3 sections"), null;
|
|
585
560
|
try {
|
|
586
561
|
const r = sn(t);
|
|
587
|
-
return r ? JSON.parse(r) : (
|
|
562
|
+
return r ? JSON.parse(r) : (G("Failed to decode base64 JWT payload"), null);
|
|
588
563
|
} catch (r) {
|
|
589
|
-
return
|
|
564
|
+
return G("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
|
|
590
565
|
}
|
|
591
566
|
}
|
|
592
567
|
function An(n) {
|
|
@@ -621,13 +596,13 @@ function An(n) {
|
|
|
621
596
|
* See the License for the specific language governing permissions and
|
|
622
597
|
* limitations under the License.
|
|
623
598
|
*/
|
|
624
|
-
async function
|
|
599
|
+
async function M(n, e, t = !1) {
|
|
625
600
|
if (t)
|
|
626
601
|
return e;
|
|
627
602
|
try {
|
|
628
603
|
return await e;
|
|
629
604
|
} catch (i) {
|
|
630
|
-
throw i instanceof
|
|
605
|
+
throw i instanceof ge && Cn(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
|
|
631
606
|
}
|
|
632
607
|
}
|
|
633
608
|
function Cn({ code: n }) {
|
|
@@ -746,7 +721,7 @@ class lt {
|
|
|
746
721
|
*/
|
|
747
722
|
async function Q(n) {
|
|
748
723
|
var e;
|
|
749
|
-
const t = n.auth, i = await n.getIdToken(), r = await
|
|
724
|
+
const t = n.auth, i = await n.getIdToken(), r = await M(n, bn(t, { idToken: i }));
|
|
750
725
|
u(
|
|
751
726
|
r == null ? void 0 : r.users.length,
|
|
752
727
|
t,
|
|
@@ -778,7 +753,7 @@ function On(n, e) {
|
|
|
778
753
|
}
|
|
779
754
|
function Ln(n) {
|
|
780
755
|
return n.map((e) => {
|
|
781
|
-
var { providerId: t } = e, i =
|
|
756
|
+
var { providerId: t } = e, i = me(e, ["providerId"]);
|
|
782
757
|
return {
|
|
783
758
|
providerId: t,
|
|
784
759
|
uid: i.rawId || "",
|
|
@@ -842,7 +817,7 @@ async function Mn(n, e) {
|
|
|
842
817
|
* See the License for the specific language governing permissions and
|
|
843
818
|
* limitations under the License.
|
|
844
819
|
*/
|
|
845
|
-
class
|
|
820
|
+
class U {
|
|
846
821
|
constructor() {
|
|
847
822
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
|
848
823
|
}
|
|
@@ -885,7 +860,7 @@ class D {
|
|
|
885
860
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + i * 1e3;
|
|
886
861
|
}
|
|
887
862
|
static fromJSON(e, t) {
|
|
888
|
-
const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new
|
|
863
|
+
const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new U();
|
|
889
864
|
return i && (u(typeof i == "string", "internal-error", {
|
|
890
865
|
appName: e
|
|
891
866
|
}), o.refreshToken = i), r && (u(typeof r == "string", "internal-error", {
|
|
@@ -905,7 +880,7 @@ class D {
|
|
|
905
880
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
|
906
881
|
}
|
|
907
882
|
_clone() {
|
|
908
|
-
return Object.assign(new
|
|
883
|
+
return Object.assign(new U(), this.toJSON());
|
|
909
884
|
}
|
|
910
885
|
_performRefresh() {
|
|
911
886
|
return _("not implemented");
|
|
@@ -932,11 +907,11 @@ function T(n, e) {
|
|
|
932
907
|
}
|
|
933
908
|
class b {
|
|
934
909
|
constructor(e) {
|
|
935
|
-
var { uid: t, auth: i, stsTokenManager: r } = e, s =
|
|
910
|
+
var { uid: t, auth: i, stsTokenManager: r } = e, s = me(e, ["uid", "auth", "stsTokenManager"]);
|
|
936
911
|
this.providerId = "firebase", this.proactiveRefresh = new Pn(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new lt(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
937
912
|
}
|
|
938
913
|
async getIdToken(e) {
|
|
939
|
-
const t = await
|
|
914
|
+
const t = await M(this, this.stsTokenManager.getToken(this.auth, e));
|
|
940
915
|
return u(
|
|
941
916
|
t,
|
|
942
917
|
this.auth,
|
|
@@ -985,7 +960,7 @@ class b {
|
|
|
985
960
|
}
|
|
986
961
|
async delete() {
|
|
987
962
|
const e = await this.getIdToken();
|
|
988
|
-
return await
|
|
963
|
+
return await M(this, Rn(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
989
964
|
}
|
|
990
965
|
toJSON() {
|
|
991
966
|
return Object.assign(Object.assign({
|
|
@@ -1013,14 +988,14 @@ class b {
|
|
|
1013
988
|
}
|
|
1014
989
|
static _fromJSON(e, t) {
|
|
1015
990
|
var i, r, s, o, c, a, l, d;
|
|
1016
|
-
const h = (i = t.displayName) !== null && i !== void 0 ? i : void 0, p = (r = t.email) !== null && r !== void 0 ? r : void 0, B = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0,
|
|
991
|
+
const h = (i = t.displayName) !== null && i !== void 0 ? i : void 0, p = (r = t.email) !== null && r !== void 0 ? r : void 0, B = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, K = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, ke = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, se = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, Re = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, be = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: oe, emailVerified: Se, isAnonymous: Ae, providerData: ae, stsTokenManager: Ce } = t;
|
|
1017
992
|
u(
|
|
1018
993
|
oe && Ce,
|
|
1019
994
|
e,
|
|
1020
995
|
"internal-error"
|
|
1021
996
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1022
997
|
);
|
|
1023
|
-
const Dt =
|
|
998
|
+
const Dt = U.fromJSON(this.name, Ce);
|
|
1024
999
|
u(
|
|
1025
1000
|
typeof oe == "string",
|
|
1026
1001
|
e,
|
|
@@ -1036,7 +1011,7 @@ class b {
|
|
|
1036
1011
|
e,
|
|
1037
1012
|
"internal-error"
|
|
1038
1013
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1039
|
-
), T(B, e.name), T(
|
|
1014
|
+
), T(B, e.name), T(K, e.name), T(ke, e.name), T(se, e.name), T(Re, e.name), T(be, e.name);
|
|
1040
1015
|
const ce = new b({
|
|
1041
1016
|
uid: oe,
|
|
1042
1017
|
auth: e,
|
|
@@ -1044,7 +1019,7 @@ class b {
|
|
|
1044
1019
|
emailVerified: Se,
|
|
1045
1020
|
displayName: h,
|
|
1046
1021
|
isAnonymous: Ae,
|
|
1047
|
-
photoURL:
|
|
1022
|
+
photoURL: K,
|
|
1048
1023
|
phoneNumber: B,
|
|
1049
1024
|
tenantId: ke,
|
|
1050
1025
|
stsTokenManager: Dt,
|
|
@@ -1059,7 +1034,7 @@ class b {
|
|
|
1059
1034
|
* @param idTokenResponse
|
|
1060
1035
|
*/
|
|
1061
1036
|
static async _fromIdTokenResponse(e, t, i = !1) {
|
|
1062
|
-
const r = new
|
|
1037
|
+
const r = new U();
|
|
1063
1038
|
r.updateFromServerResponse(t);
|
|
1064
1039
|
const s = new b({
|
|
1065
1040
|
uid: t.localId,
|
|
@@ -1148,14 +1123,14 @@ const Ue = ut;
|
|
|
1148
1123
|
* See the License for the specific language governing permissions and
|
|
1149
1124
|
* limitations under the License.
|
|
1150
1125
|
*/
|
|
1151
|
-
function
|
|
1126
|
+
function z(n, e, t) {
|
|
1152
1127
|
return `firebase:${n}:${e}:${t}`;
|
|
1153
1128
|
}
|
|
1154
1129
|
class P {
|
|
1155
1130
|
constructor(e, t, i) {
|
|
1156
1131
|
this.persistence = e, this.auth = t, this.userKey = i;
|
|
1157
1132
|
const { config: r, name: s } = this.auth;
|
|
1158
|
-
this.fullUserKey =
|
|
1133
|
+
this.fullUserKey = z(this.userKey, r.apiKey, s), this.fullPersistenceKey = z("persistence", r.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
|
1159
1134
|
}
|
|
1160
1135
|
setCurrentUser(e) {
|
|
1161
1136
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -1188,7 +1163,7 @@ class P {
|
|
|
1188
1163
|
return l;
|
|
1189
1164
|
}))).filter((l) => l);
|
|
1190
1165
|
let s = r[0] || v(Ue);
|
|
1191
|
-
const o =
|
|
1166
|
+
const o = z(i, e.config.apiKey, e.name);
|
|
1192
1167
|
let c = null;
|
|
1193
1168
|
for (const l of t)
|
|
1194
1169
|
try {
|
|
@@ -1378,8 +1353,8 @@ function Tt(n) {
|
|
|
1378
1353
|
function Vn(n) {
|
|
1379
1354
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
1380
1355
|
}
|
|
1381
|
-
const Wn = "https://www.google.com/recaptcha/enterprise.js?render=", Hn = "recaptcha-enterprise",
|
|
1382
|
-
class
|
|
1356
|
+
const Wn = "https://www.google.com/recaptcha/enterprise.js?render=", Hn = "recaptcha-enterprise", $n = "NO_RECAPTCHA";
|
|
1357
|
+
class jn {
|
|
1383
1358
|
/**
|
|
1384
1359
|
*
|
|
1385
1360
|
* @param authExtern - The corresponding Firebase {@link Auth} instance.
|
|
@@ -1424,7 +1399,7 @@ class $n {
|
|
|
1424
1399
|
a.enterprise.execute(s, { action: e }).then((l) => {
|
|
1425
1400
|
o(l);
|
|
1426
1401
|
}).catch(() => {
|
|
1427
|
-
o(
|
|
1402
|
+
o($n);
|
|
1428
1403
|
});
|
|
1429
1404
|
}) : c(Error("No reCAPTCHA enterprise script loaded."));
|
|
1430
1405
|
}
|
|
@@ -1520,7 +1495,7 @@ class Bn {
|
|
|
1520
1495
|
* See the License for the specific language governing permissions and
|
|
1521
1496
|
* limitations under the License.
|
|
1522
1497
|
*/
|
|
1523
|
-
class
|
|
1498
|
+
class Kn {
|
|
1524
1499
|
constructor(e, t, i, r) {
|
|
1525
1500
|
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new xe(this), this.idTokenSubscription = new xe(this), this.beforeStateQueue = new Bn(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = rt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
|
|
1526
1501
|
}
|
|
@@ -1645,7 +1620,7 @@ class zn {
|
|
|
1645
1620
|
version: "RECAPTCHA_ENTERPRISE"
|
|
1646
1621
|
/* RecaptchaVersion.ENTERPRISE */
|
|
1647
1622
|
}), t = new yt(e);
|
|
1648
|
-
this.tenantId == null ? this._agentRecaptchaConfig = t : this._tenantRecaptchaConfigs[this.tenantId] = t, t.emailPasswordEnabled && new
|
|
1623
|
+
this.tenantId == null ? this._agentRecaptchaConfig = t : this._tenantRecaptchaConfigs[this.tenantId] = t, t.emailPasswordEnabled && new jn(this).verify();
|
|
1649
1624
|
}
|
|
1650
1625
|
_getRecaptchaConfig() {
|
|
1651
1626
|
return this.tenantId == null ? this._agentRecaptchaConfig : this._tenantRecaptchaConfigs[this.tenantId];
|
|
@@ -1826,7 +1801,7 @@ class xe {
|
|
|
1826
1801
|
* See the License for the specific language governing permissions and
|
|
1827
1802
|
* limitations under the License.
|
|
1828
1803
|
*/
|
|
1829
|
-
function
|
|
1804
|
+
function qn(n, e) {
|
|
1830
1805
|
const t = tt(n, "auth");
|
|
1831
1806
|
if (t.isInitialized()) {
|
|
1832
1807
|
const r = t.getImmediate(), s = t.getOptions();
|
|
@@ -1840,11 +1815,11 @@ function jn(n, e) {
|
|
|
1840
1815
|
}
|
|
1841
1816
|
return t.initialize({ options: e });
|
|
1842
1817
|
}
|
|
1843
|
-
function
|
|
1818
|
+
function Gn(n, e) {
|
|
1844
1819
|
const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(v);
|
|
1845
1820
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
|
|
1846
1821
|
}
|
|
1847
|
-
function
|
|
1822
|
+
function zn(n, e, t) {
|
|
1848
1823
|
const i = H(n);
|
|
1849
1824
|
u(
|
|
1850
1825
|
i._canInitEmulator,
|
|
@@ -1863,7 +1838,7 @@ function Gn(n, e, t) {
|
|
|
1863
1838
|
port: c,
|
|
1864
1839
|
protocol: s.replace(":", ""),
|
|
1865
1840
|
options: Object.freeze({ disableWarnings: r })
|
|
1866
|
-
}), r ||
|
|
1841
|
+
}), r || Yn();
|
|
1867
1842
|
}
|
|
1868
1843
|
function wt(n) {
|
|
1869
1844
|
const e = n.indexOf(":");
|
|
@@ -1888,7 +1863,7 @@ function Ve(n) {
|
|
|
1888
1863
|
const e = Number(n);
|
|
1889
1864
|
return isNaN(e) ? null : e;
|
|
1890
1865
|
}
|
|
1891
|
-
function
|
|
1866
|
+
function Yn() {
|
|
1892
1867
|
function n() {
|
|
1893
1868
|
const e = document.createElement("p"), t = e.style;
|
|
1894
1869
|
e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
|
|
@@ -1972,7 +1947,7 @@ async function N(n, e) {
|
|
|
1972
1947
|
* See the License for the specific language governing permissions and
|
|
1973
1948
|
* limitations under the License.
|
|
1974
1949
|
*/
|
|
1975
|
-
const
|
|
1950
|
+
const Xn = "http://localhost";
|
|
1976
1951
|
class S extends Et {
|
|
1977
1952
|
constructor() {
|
|
1978
1953
|
super(...arguments), this.pendingToken = null;
|
|
@@ -2007,7 +1982,7 @@ class S extends Et {
|
|
|
2007
1982
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
|
2008
1983
|
*/
|
|
2009
1984
|
static fromJSON(e) {
|
|
2010
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s =
|
|
1985
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = me(t, ["providerId", "signInMethod"]);
|
|
2011
1986
|
if (!i || !r)
|
|
2012
1987
|
return null;
|
|
2013
1988
|
const o = new S(i, r);
|
|
@@ -2030,7 +2005,7 @@ class S extends Et {
|
|
|
2030
2005
|
}
|
|
2031
2006
|
buildRequest() {
|
|
2032
2007
|
const e = {
|
|
2033
|
-
requestUri:
|
|
2008
|
+
requestUri: Xn,
|
|
2034
2009
|
returnSecureToken: !0
|
|
2035
2010
|
};
|
|
2036
2011
|
if (this.pendingToken)
|
|
@@ -2111,7 +2086,7 @@ class kt {
|
|
|
2111
2086
|
* See the License for the specific language governing permissions and
|
|
2112
2087
|
* limitations under the License.
|
|
2113
2088
|
*/
|
|
2114
|
-
class
|
|
2089
|
+
class $ extends kt {
|
|
2115
2090
|
constructor() {
|
|
2116
2091
|
super(...arguments), this.scopes = [];
|
|
2117
2092
|
}
|
|
@@ -2146,7 +2121,7 @@ class K extends kt {
|
|
|
2146
2121
|
* See the License for the specific language governing permissions and
|
|
2147
2122
|
* limitations under the License.
|
|
2148
2123
|
*/
|
|
2149
|
-
class w extends
|
|
2124
|
+
class w extends $ {
|
|
2150
2125
|
constructor() {
|
|
2151
2126
|
super(
|
|
2152
2127
|
"facebook.com"
|
|
@@ -2217,7 +2192,7 @@ w.PROVIDER_ID = "facebook.com";
|
|
|
2217
2192
|
* See the License for the specific language governing permissions and
|
|
2218
2193
|
* limitations under the License.
|
|
2219
2194
|
*/
|
|
2220
|
-
class E extends
|
|
2195
|
+
class E extends $ {
|
|
2221
2196
|
constructor() {
|
|
2222
2197
|
super(
|
|
2223
2198
|
"google.com"
|
|
@@ -2293,7 +2268,7 @@ E.PROVIDER_ID = "google.com";
|
|
|
2293
2268
|
* See the License for the specific language governing permissions and
|
|
2294
2269
|
* limitations under the License.
|
|
2295
2270
|
*/
|
|
2296
|
-
class k extends
|
|
2271
|
+
class k extends $ {
|
|
2297
2272
|
constructor() {
|
|
2298
2273
|
super(
|
|
2299
2274
|
"github.com"
|
|
@@ -2357,7 +2332,7 @@ k.PROVIDER_ID = "github.com";
|
|
|
2357
2332
|
* See the License for the specific language governing permissions and
|
|
2358
2333
|
* limitations under the License.
|
|
2359
2334
|
*/
|
|
2360
|
-
class R extends
|
|
2335
|
+
class R extends $ {
|
|
2361
2336
|
constructor() {
|
|
2362
2337
|
super(
|
|
2363
2338
|
"twitter.com"
|
|
@@ -2473,7 +2448,7 @@ function We(n) {
|
|
|
2473
2448
|
* See the License for the specific language governing permissions and
|
|
2474
2449
|
* limitations under the License.
|
|
2475
2450
|
*/
|
|
2476
|
-
class Z extends
|
|
2451
|
+
class Z extends ge {
|
|
2477
2452
|
constructor(e, t, i, r) {
|
|
2478
2453
|
var s;
|
|
2479
2454
|
super(t.code, t.message), this.operationType = i, this.user = r, Object.setPrototypeOf(this, Z.prototype), this.customData = {
|
|
@@ -2493,7 +2468,7 @@ function Rt(n, e, t, i) {
|
|
|
2493
2468
|
});
|
|
2494
2469
|
}
|
|
2495
2470
|
async function Qn(n, e, t = !1) {
|
|
2496
|
-
const i = await
|
|
2471
|
+
const i = await M(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
|
2497
2472
|
return A._forOperation(n, "link", i);
|
|
2498
2473
|
}
|
|
2499
2474
|
/**
|
|
@@ -2515,7 +2490,7 @@ async function Qn(n, e, t = !1) {
|
|
|
2515
2490
|
async function Zn(n, e, t = !1) {
|
|
2516
2491
|
const { auth: i } = n, r = "reauthenticate";
|
|
2517
2492
|
try {
|
|
2518
|
-
const s = await
|
|
2493
|
+
const s = await M(n, Rt(i, r, e, n), t);
|
|
2519
2494
|
u(
|
|
2520
2495
|
s.idToken,
|
|
2521
2496
|
i,
|
|
@@ -3101,7 +3076,7 @@ function pi() {
|
|
|
3101
3076
|
* limitations under the License.
|
|
3102
3077
|
*/
|
|
3103
3078
|
const Nt = "firebaseLocalStorageDb", gi = 1, te = "firebaseLocalStorage", Ot = "fbase_key";
|
|
3104
|
-
class
|
|
3079
|
+
class j {
|
|
3105
3080
|
constructor(e) {
|
|
3106
3081
|
this.request = e;
|
|
3107
3082
|
}
|
|
@@ -3120,7 +3095,7 @@ function re(n, e) {
|
|
|
3120
3095
|
}
|
|
3121
3096
|
function mi() {
|
|
3122
3097
|
const n = indexedDB.deleteDatabase(Nt);
|
|
3123
|
-
return new
|
|
3098
|
+
return new j(n).toPromise();
|
|
3124
3099
|
}
|
|
3125
3100
|
function fe() {
|
|
3126
3101
|
const n = indexedDB.open(Nt, gi);
|
|
@@ -3145,15 +3120,15 @@ async function He(n, e, t) {
|
|
|
3145
3120
|
[Ot]: e,
|
|
3146
3121
|
value: t
|
|
3147
3122
|
});
|
|
3148
|
-
return new
|
|
3123
|
+
return new j(i).toPromise();
|
|
3149
3124
|
}
|
|
3150
3125
|
async function _i(n, e) {
|
|
3151
|
-
const t = re(n, !1).get(e), i = await new
|
|
3126
|
+
const t = re(n, !1).get(e), i = await new j(t).toPromise();
|
|
3152
3127
|
return i === void 0 ? null : i.value;
|
|
3153
3128
|
}
|
|
3154
|
-
function
|
|
3129
|
+
function $e(n, e) {
|
|
3155
3130
|
const t = re(n, !0).delete(e);
|
|
3156
|
-
return new
|
|
3131
|
+
return new j(t).toPromise();
|
|
3157
3132
|
}
|
|
3158
3133
|
const vi = 800, Ii = 3;
|
|
3159
3134
|
class Lt {
|
|
@@ -3245,7 +3220,7 @@ class Lt {
|
|
|
3245
3220
|
if (!indexedDB)
|
|
3246
3221
|
return !1;
|
|
3247
3222
|
const e = await fe();
|
|
3248
|
-
return await He(e, ee, "1"), await
|
|
3223
|
+
return await He(e, ee, "1"), await $e(e, ee), !0;
|
|
3249
3224
|
} catch {
|
|
3250
3225
|
}
|
|
3251
3226
|
return !1;
|
|
@@ -3266,12 +3241,12 @@ class Lt {
|
|
|
3266
3241
|
return this.localCache[e] = t, t;
|
|
3267
3242
|
}
|
|
3268
3243
|
async _remove(e) {
|
|
3269
|
-
return this._withPendingWrite(async () => (await this._withRetries((t) =>
|
|
3244
|
+
return this._withPendingWrite(async () => (await this._withRetries((t) => $e(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
|
|
3270
3245
|
}
|
|
3271
3246
|
async _poll() {
|
|
3272
3247
|
const e = await this._withRetries((r) => {
|
|
3273
3248
|
const s = re(r, !1).getAll();
|
|
3274
|
-
return new
|
|
3249
|
+
return new j(s).toPromise();
|
|
3275
3250
|
});
|
|
3276
3251
|
if (!e)
|
|
3277
3252
|
return [];
|
|
@@ -3644,7 +3619,7 @@ function Pi(n) {
|
|
|
3644
3619
|
return v(n._redirectPersistence);
|
|
3645
3620
|
}
|
|
3646
3621
|
function Ni(n) {
|
|
3647
|
-
return
|
|
3622
|
+
return z(bi, n.config.apiKey, n.name);
|
|
3648
3623
|
}
|
|
3649
3624
|
async function Oi(n, e, t = !1) {
|
|
3650
3625
|
const i = H(n), r = Ti(i, e), o = await new Si(i, r, t).execute();
|
|
@@ -3698,13 +3673,13 @@ class Mi {
|
|
|
3698
3673
|
return t.filter.includes(e.type) && i;
|
|
3699
3674
|
}
|
|
3700
3675
|
hasEventBeenHandled(e) {
|
|
3701
|
-
return Date.now() - this.lastProcessedEventTime >= Li && this.cachedEventUids.clear(), this.cachedEventUids.has(
|
|
3676
|
+
return Date.now() - this.lastProcessedEventTime >= Li && this.cachedEventUids.clear(), this.cachedEventUids.has(je(e));
|
|
3702
3677
|
}
|
|
3703
3678
|
saveEventToCache(e) {
|
|
3704
|
-
this.cachedEventUids.add(
|
|
3679
|
+
this.cachedEventUids.add(je(e)), this.lastProcessedEventTime = Date.now();
|
|
3705
3680
|
}
|
|
3706
3681
|
}
|
|
3707
|
-
function
|
|
3682
|
+
function je(n) {
|
|
3708
3683
|
return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
|
|
3709
3684
|
}
|
|
3710
3685
|
function Ut({ type: n, error: e }) {
|
|
@@ -3813,7 +3788,7 @@ function Be() {
|
|
|
3813
3788
|
n.CP[t] = null;
|
|
3814
3789
|
}
|
|
3815
3790
|
}
|
|
3816
|
-
function
|
|
3791
|
+
function $i(n) {
|
|
3817
3792
|
return new Promise((e, t) => {
|
|
3818
3793
|
var i, r, s;
|
|
3819
3794
|
function o() {
|
|
@@ -3846,12 +3821,12 @@ function Ki(n) {
|
|
|
3846
3821
|
}, Tt(`https://apis.google.com/js/api.js?onload=${c}`).catch((a) => t(a));
|
|
3847
3822
|
}
|
|
3848
3823
|
}).catch((e) => {
|
|
3849
|
-
throw
|
|
3824
|
+
throw Y = null, e;
|
|
3850
3825
|
});
|
|
3851
3826
|
}
|
|
3852
|
-
let
|
|
3853
|
-
function
|
|
3854
|
-
return
|
|
3827
|
+
let Y = null;
|
|
3828
|
+
function ji(n) {
|
|
3829
|
+
return Y = Y || $i(n), Y;
|
|
3855
3830
|
}
|
|
3856
3831
|
/**
|
|
3857
3832
|
* @license
|
|
@@ -3869,7 +3844,7 @@ function $i(n) {
|
|
|
3869
3844
|
* See the License for the specific language governing permissions and
|
|
3870
3845
|
* limitations under the License.
|
|
3871
3846
|
*/
|
|
3872
|
-
const Bi = new V(5e3, 15e3),
|
|
3847
|
+
const Bi = new V(5e3, 15e3), Ki = "__/auth/iframe", qi = "emulator/auth/iframe", Gi = {
|
|
3873
3848
|
style: {
|
|
3874
3849
|
position: "absolute",
|
|
3875
3850
|
top: "-100px",
|
|
@@ -3878,7 +3853,7 @@ const Bi = new V(5e3, 15e3), zi = "__/auth/iframe", ji = "emulator/auth/iframe",
|
|
|
3878
3853
|
},
|
|
3879
3854
|
"aria-hidden": "true",
|
|
3880
3855
|
tabindex: "-1"
|
|
3881
|
-
},
|
|
3856
|
+
}, zi = /* @__PURE__ */ new Map([
|
|
3882
3857
|
["identitytoolkit.googleapis.com", "p"],
|
|
3883
3858
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
|
3884
3859
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
|
@@ -3892,17 +3867,17 @@ function Ji(n) {
|
|
|
3892
3867
|
"auth-domain-config-required"
|
|
3893
3868
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
3894
3869
|
);
|
|
3895
|
-
const t = e.emulator ? ve(e,
|
|
3870
|
+
const t = e.emulator ? ve(e, qi) : `https://${n.config.authDomain}/${Ki}`, i = {
|
|
3896
3871
|
apiKey: e.apiKey,
|
|
3897
3872
|
appName: n.name,
|
|
3898
3873
|
v: F
|
|
3899
|
-
}, r =
|
|
3874
|
+
}, r = zi.get(n.config.apiHost);
|
|
3900
3875
|
r && (i.eid = r);
|
|
3901
3876
|
const s = n._getFrameworks();
|
|
3902
3877
|
return s.length && (i.fw = s.join(",")), `${t}?${x(i).slice(1)}`;
|
|
3903
3878
|
}
|
|
3904
|
-
async function
|
|
3905
|
-
const e = await
|
|
3879
|
+
async function Yi(n) {
|
|
3880
|
+
const e = await ji(n), t = m().gapi;
|
|
3906
3881
|
return u(
|
|
3907
3882
|
t,
|
|
3908
3883
|
n,
|
|
@@ -3912,7 +3887,7 @@ async function Xi(n) {
|
|
|
3912
3887
|
where: document.body,
|
|
3913
3888
|
url: Ji(n),
|
|
3914
3889
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
|
3915
|
-
attributes:
|
|
3890
|
+
attributes: Gi,
|
|
3916
3891
|
dontclear: !0
|
|
3917
3892
|
}, (i) => new Promise(async (r, s) => {
|
|
3918
3893
|
await i.restyle({
|
|
@@ -3950,13 +3925,13 @@ async function Xi(n) {
|
|
|
3950
3925
|
* See the License for the specific language governing permissions and
|
|
3951
3926
|
* limitations under the License.
|
|
3952
3927
|
*/
|
|
3953
|
-
const
|
|
3928
|
+
const Xi = {
|
|
3954
3929
|
location: "yes",
|
|
3955
3930
|
resizable: "yes",
|
|
3956
3931
|
statusbar: "yes",
|
|
3957
3932
|
toolbar: "no"
|
|
3958
3933
|
}, Qi = 500, Zi = 600, er = "_blank", tr = "http://localhost";
|
|
3959
|
-
class
|
|
3934
|
+
class Ke {
|
|
3960
3935
|
constructor(e) {
|
|
3961
3936
|
this.window = e, this.associatedEvent = null;
|
|
3962
3937
|
}
|
|
@@ -3971,16 +3946,16 @@ class ze {
|
|
|
3971
3946
|
function nr(n, e, t, i = Qi, r = Zi) {
|
|
3972
3947
|
const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
|
|
3973
3948
|
let c = "";
|
|
3974
|
-
const a = Object.assign(Object.assign({},
|
|
3949
|
+
const a = Object.assign(Object.assign({}, Xi), {
|
|
3975
3950
|
width: i.toString(),
|
|
3976
3951
|
height: r.toString(),
|
|
3977
3952
|
top: s,
|
|
3978
3953
|
left: o
|
|
3979
3954
|
}), l = f().toLowerCase();
|
|
3980
3955
|
t && (c = ht(l) ? er : t), dt(l) && (e = e || tr, a.scrollbars = "yes");
|
|
3981
|
-
const d = Object.entries(a).reduce((p, [B,
|
|
3956
|
+
const d = Object.entries(a).reduce((p, [B, K]) => `${p}${B}=${K},`, "");
|
|
3982
3957
|
if (Un(l) && c !== "_self")
|
|
3983
|
-
return ir(e || "", c), new
|
|
3958
|
+
return ir(e || "", c), new Ke(null);
|
|
3984
3959
|
const h = window.open(e || "", c, d);
|
|
3985
3960
|
u(
|
|
3986
3961
|
h,
|
|
@@ -3992,7 +3967,7 @@ function nr(n, e, t, i = Qi, r = Zi) {
|
|
|
3992
3967
|
h.focus();
|
|
3993
3968
|
} catch {
|
|
3994
3969
|
}
|
|
3995
|
-
return new
|
|
3970
|
+
return new Ke(h);
|
|
3996
3971
|
}
|
|
3997
3972
|
function ir(n, e) {
|
|
3998
3973
|
const t = document.createElement("a");
|
|
@@ -4017,7 +3992,7 @@ function ir(n, e) {
|
|
|
4017
3992
|
* limitations under the License.
|
|
4018
3993
|
*/
|
|
4019
3994
|
const rr = "__/auth/handler", sr = "emulator/auth/handler", or = encodeURIComponent("fac");
|
|
4020
|
-
async function
|
|
3995
|
+
async function qe(n, e, t, i, r, s) {
|
|
4021
3996
|
u(
|
|
4022
3997
|
n.config.authDomain,
|
|
4023
3998
|
n,
|
|
@@ -4042,7 +4017,7 @@ async function je(n, e, t, i, r, s) {
|
|
|
4042
4017
|
for (const [d, h] of Object.entries(s || {}))
|
|
4043
4018
|
o[d] = h;
|
|
4044
4019
|
}
|
|
4045
|
-
if (e instanceof
|
|
4020
|
+
if (e instanceof $) {
|
|
4046
4021
|
const d = e.getScopes().filter((h) => h !== "");
|
|
4047
4022
|
d.length > 0 && (o.scopes = d.join(","));
|
|
4048
4023
|
}
|
|
@@ -4082,12 +4057,12 @@ class cr {
|
|
|
4082
4057
|
async _openPopup(e, t, i, r) {
|
|
4083
4058
|
var s;
|
|
4084
4059
|
y((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
4085
|
-
const o = await
|
|
4060
|
+
const o = await qe(e, t, i, he(), r);
|
|
4086
4061
|
return nr(e, o, we());
|
|
4087
4062
|
}
|
|
4088
4063
|
async _openRedirect(e, t, i, r) {
|
|
4089
4064
|
await this._originValidation(e);
|
|
4090
|
-
const s = await
|
|
4065
|
+
const s = await qe(e, t, i, he(), r);
|
|
4091
4066
|
return di(s), new Promise(() => {
|
|
4092
4067
|
});
|
|
4093
4068
|
}
|
|
@@ -4103,7 +4078,7 @@ class cr {
|
|
|
4103
4078
|
}), i;
|
|
4104
4079
|
}
|
|
4105
4080
|
async initAndGetManager(e) {
|
|
4106
|
-
const t = await
|
|
4081
|
+
const t = await Yi(e), i = new Mi(e);
|
|
4107
4082
|
return t.register("authEvent", (r) => (u(
|
|
4108
4083
|
r == null ? void 0 : r.authEvent,
|
|
4109
4084
|
e,
|
|
@@ -4134,7 +4109,7 @@ class cr {
|
|
|
4134
4109
|
}
|
|
4135
4110
|
}
|
|
4136
4111
|
const lr = cr;
|
|
4137
|
-
var
|
|
4112
|
+
var Ge = "@firebase/auth", ze = "0.23.2";
|
|
4138
4113
|
/**
|
|
4139
4114
|
* @license
|
|
4140
4115
|
* Copyright 2020 Google LLC
|
|
@@ -4230,8 +4205,8 @@ function hr(n) {
|
|
|
4230
4205
|
tokenApiHost: "securetoken.googleapis.com",
|
|
4231
4206
|
apiScheme: "https",
|
|
4232
4207
|
sdkClientVersion: vt(n)
|
|
4233
|
-
}, l = new
|
|
4234
|
-
return
|
|
4208
|
+
}, l = new Kn(i, r, s, a);
|
|
4209
|
+
return Gn(l, t), l;
|
|
4235
4210
|
},
|
|
4236
4211
|
"PUBLIC"
|
|
4237
4212
|
/* ComponentType.PUBLIC */
|
|
@@ -4257,7 +4232,7 @@ function hr(n) {
|
|
|
4257
4232
|
).setInstantiationMode(
|
|
4258
4233
|
"EXPLICIT"
|
|
4259
4234
|
/* InstantiationMode.EXPLICIT */
|
|
4260
|
-
)), de(
|
|
4235
|
+
)), de(Ge, ze, dr(n)), de(Ge, ze, "esm2017");
|
|
4261
4236
|
}
|
|
4262
4237
|
/**
|
|
4263
4238
|
* @license
|
|
@@ -4293,7 +4268,7 @@ function mr(n = tn()) {
|
|
|
4293
4268
|
const e = tt(n, "auth");
|
|
4294
4269
|
if (e.isInitialized())
|
|
4295
4270
|
return e.getImmediate();
|
|
4296
|
-
const t =
|
|
4271
|
+
const t = qn(n, {
|
|
4297
4272
|
popupRedirectResolver: lr,
|
|
4298
4273
|
persistence: [
|
|
4299
4274
|
yi,
|
|
@@ -4306,22 +4281,56 @@ function mr(n = tn()) {
|
|
|
4306
4281
|
ri(t, s, () => s(t.currentUser)), ii(t, (o) => s(o));
|
|
4307
4282
|
}
|
|
4308
4283
|
const r = en("auth");
|
|
4309
|
-
return r &&
|
|
4284
|
+
return r && zn(t, `http://${r}`), t;
|
|
4310
4285
|
}
|
|
4311
4286
|
hr(
|
|
4312
4287
|
"Browser"
|
|
4313
4288
|
/* ClientPlatform.BROWSER */
|
|
4314
4289
|
);
|
|
4290
|
+
class D {
|
|
4291
|
+
constructor(e = null, t = {}) {
|
|
4292
|
+
if (this.apiKey = e, this.options = t, typeof window > "u")
|
|
4293
|
+
throw new Error("google-maps is supported only in browser environment");
|
|
4294
|
+
}
|
|
4295
|
+
load() {
|
|
4296
|
+
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[D.CALLBACK_NAME] = () => {
|
|
4297
|
+
if (this.api = window.google, typeof this.resolve > "u")
|
|
4298
|
+
throw new Error("Should not happen");
|
|
4299
|
+
this.resolve(this.api);
|
|
4300
|
+
}, window.gm_authFailure = () => {
|
|
4301
|
+
if (typeof this.reject > "u")
|
|
4302
|
+
throw new Error("Should not happen");
|
|
4303
|
+
this.reject(new Error("google-maps: authentication error"));
|
|
4304
|
+
}, this.loader = new Promise((e, t) => {
|
|
4305
|
+
this.resolve = e, this.reject = t;
|
|
4306
|
+
const i = document.createElement("script");
|
|
4307
|
+
i.src = this.createUrl(), i.async = !0, i.onerror = (r) => t(r), document.head.appendChild(i);
|
|
4308
|
+
}));
|
|
4309
|
+
}
|
|
4310
|
+
createUrl() {
|
|
4311
|
+
const e = [
|
|
4312
|
+
`callback=${D.CALLBACK_NAME}`
|
|
4313
|
+
];
|
|
4314
|
+
this.apiKey && e.push(`key=${this.apiKey}`);
|
|
4315
|
+
for (let t in this.options)
|
|
4316
|
+
if (this.options.hasOwnProperty(t)) {
|
|
4317
|
+
let i = this.options[t];
|
|
4318
|
+
t === "version" && (t = "v"), t === "libraries" && (i = i.join(",")), e.push(`${t}=${i}`);
|
|
4319
|
+
}
|
|
4320
|
+
return `https://maps.googleapis.com/maps/api/js?${e.join("&")}`;
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
D.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
4315
4324
|
async function _r() {
|
|
4316
4325
|
if (cn().length)
|
|
4317
4326
|
return;
|
|
4318
|
-
const n = ln({ apiKey: "
|
|
4327
|
+
const n = ln({ 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" }), e = await qt.getCustomToken(), t = mr();
|
|
4319
4328
|
await ni(t, e), un(n);
|
|
4320
4329
|
}
|
|
4321
4330
|
async function vr() {
|
|
4322
4331
|
if (dn())
|
|
4323
4332
|
return;
|
|
4324
|
-
const e = await new
|
|
4333
|
+
const e = await new D("AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", {
|
|
4325
4334
|
libraries: ["places"]
|
|
4326
4335
|
}).load();
|
|
4327
4336
|
hn(e);
|
|
@@ -4329,13 +4338,13 @@ async function vr() {
|
|
|
4329
4338
|
async function Ir() {
|
|
4330
4339
|
await _r(), await vr();
|
|
4331
4340
|
}
|
|
4332
|
-
const Pr = /* @__PURE__ */
|
|
4341
|
+
const Pr = /* @__PURE__ */ Ye({
|
|
4333
4342
|
__name: "App",
|
|
4334
4343
|
setup(n) {
|
|
4335
4344
|
const e = Ze();
|
|
4336
4345
|
return Ht(() => {
|
|
4337
4346
|
e.registerSidebarComponent(fn), Ir();
|
|
4338
|
-
}), (t, i) => (
|
|
4347
|
+
}), (t, i) => (Xe(), Qe($t(Bt)));
|
|
4339
4348
|
}
|
|
4340
4349
|
});
|
|
4341
4350
|
export {
|