@feedmepos/mf-settings 0.0.61-beta.2 → 0.0.61-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-e083c84d.js → App-84371865.js} +98 -107
- package/dist/Business-f454fc8c.js +12067 -0
- package/dist/{CreateBusiness-84a4e891.js → CreateBusiness-8145d5b6.js} +2 -2
- package/dist/{FoodCourt-173c3d8d.js → FoodCourt-681673e7.js} +1 -1
- package/dist/{ReasonTemplate-e60aa576.js → ReasonTemplate-6cc84a02.js} +1 -1
- package/dist/{Tagging-6c64f86b.js → Tagging-8fafd00a.js} +3 -3
- package/dist/TemplateBuilder-3e34e9e8.js +27 -0
- package/dist/{app-e58ab908.js → app-485ab76a.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-0b74f773.js → business-b5512a2c.js} +1 -1
- package/dist/{index-064cf2cd.js → index-f1179ebc.js} +2 -2
- package/dist/{map-695afd6f.js → map-54b71412.js} +527 -410
- package/package.json +11 -11
- package/dist/Business-55542c60.js +0 -3944
- package/dist/TemplateBuilder-54a34178.js +0 -27
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { c as
|
|
5
|
-
import { e as
|
|
6
|
-
import { r as Jt } from "./app-
|
|
7
|
-
import { r as de, g as et, i as
|
|
1
|
+
import { defineComponent as Xe, computed as Pe, ref as xt, watchEffect as Vt, resolveComponent as Wt, openBlock as Ye, createBlock as Qe, onMounted as Ht, unref as Kt } from "vue";
|
|
2
|
+
import { useRouter as $t, RouterView as Bt } from "vue-router";
|
|
3
|
+
import { useI18n as zt, useCoreStore as Ze, FeedMeAuth as jt } from "@feedmepos/mf-common";
|
|
4
|
+
import { c as qt } from "./index-f3cc5dbf.js";
|
|
5
|
+
import { e as Gt } from "./index-79b36905.js";
|
|
6
|
+
import { r as Jt } from "./app-485ab76a.js";
|
|
7
|
+
import { r as de, g as et, i as Xt, a as Yt, _ 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 ge, k as f, l as nn, m as rn, F as me, q as x, n as sn, o as on, p as an, s as cn, t as ln, u as un, v as dn, w as hn } from "./map-54b71412.js";
|
|
8
8
|
import "@feedmepos/mf-mdm";
|
|
9
9
|
import "@feedmepos/ui-library";
|
|
10
10
|
import "@feedmepos/mf-e-invoice";
|
|
11
|
-
|
|
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({
|
|
11
|
+
const fn = /* @__PURE__ */ Xe({
|
|
21
12
|
__name: "NavigationTab",
|
|
22
13
|
emits: ["close-navigation"],
|
|
23
14
|
setup(n, { emit: e }) {
|
|
24
|
-
const t = e, { t: i } =
|
|
15
|
+
const t = e, { t: i } = zt(), r = $t(), s = Ze(), o = Pe(() => s.restaurants.value.some(({ posVersion: l }) => qt.Pos.canUse({ feature: Gt.F_FEATURE.Enum.templateBuilder, posVersion: l ?? "" }))), c = Pe(() => Jt.filter((d) => {
|
|
25
16
|
var h;
|
|
26
17
|
return d.redirect || (h = d.meta) != null && h.hideNavigation ? !1 : !(d.name === "$settings-template-builder" && !o.value);
|
|
27
18
|
}).map((d) => {
|
|
@@ -40,7 +31,7 @@ const fn = /* @__PURE__ */ Ye({
|
|
|
40
31
|
l === "SUBMISSION" ? a.value = "$settings-e-invoice" : l === "$devices" ? a.value = "$settings-device" : a.value = l;
|
|
41
32
|
}), (l, d) => {
|
|
42
33
|
const h = Wt("fm-collapsible-tabs");
|
|
43
|
-
return
|
|
34
|
+
return Ye(), Qe(h, {
|
|
44
35
|
modelValue: a.value,
|
|
45
36
|
"onUpdate:modelValue": d[0] || (d[0] = (p) => a.value = p),
|
|
46
37
|
items: c.value,
|
|
@@ -89,12 +80,12 @@ const mn = it, rt = new pe("auth", "Firebase", it());
|
|
|
89
80
|
* See the License for the specific language governing permissions and
|
|
90
81
|
* limitations under the License.
|
|
91
82
|
*/
|
|
92
|
-
const
|
|
83
|
+
const Y = new rn("@firebase/auth");
|
|
93
84
|
function _n(n, ...e) {
|
|
94
|
-
|
|
85
|
+
Y.logLevel <= nt.WARN && Y.warn(`Auth (${F}): ${n}`, ...e);
|
|
95
86
|
}
|
|
96
|
-
function
|
|
97
|
-
|
|
87
|
+
function q(n, ...e) {
|
|
88
|
+
Y.logLevel <= nt.ERROR && Y.error(`Auth (${F}): ${n}`, ...e);
|
|
98
89
|
}
|
|
99
90
|
/**
|
|
100
91
|
* @license
|
|
@@ -137,7 +128,7 @@ function u(n, e, ...t) {
|
|
|
137
128
|
}
|
|
138
129
|
function _(n) {
|
|
139
130
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
|
140
|
-
throw
|
|
131
|
+
throw q(e), new Error(e);
|
|
141
132
|
}
|
|
142
133
|
function y(n, e) {
|
|
143
134
|
n || _(e);
|
|
@@ -223,7 +214,7 @@ function Tn() {
|
|
|
223
214
|
*/
|
|
224
215
|
class V {
|
|
225
216
|
constructor(e, t) {
|
|
226
|
-
this.shortDelay = e, this.longDelay = t, y(t > e, "Short delay should be less than long delay!"), this.isMobile =
|
|
217
|
+
this.shortDelay = e, this.longDelay = t, y(t > e, "Short delay should be less than long delay!"), this.isMobile = Xt() || Yt();
|
|
227
218
|
}
|
|
228
219
|
get() {
|
|
229
220
|
return yn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
@@ -430,24 +421,24 @@ async function ot(n, e, t) {
|
|
|
430
421
|
r.clearNetworkTimeout();
|
|
431
422
|
const o = await s.json();
|
|
432
423
|
if ("needConfirmation" in o)
|
|
433
|
-
throw
|
|
424
|
+
throw j(n, "account-exists-with-different-credential", o);
|
|
434
425
|
if (s.ok && !("errorMessage" in o))
|
|
435
426
|
return o;
|
|
436
427
|
{
|
|
437
428
|
const c = s.ok ? o.errorMessage : o.error.message, [a, l] = c.split(" : ");
|
|
438
429
|
if (a === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
439
|
-
throw
|
|
430
|
+
throw j(n, "credential-already-in-use", o);
|
|
440
431
|
if (a === "EMAIL_EXISTS")
|
|
441
|
-
throw
|
|
432
|
+
throw j(n, "email-already-in-use", o);
|
|
442
433
|
if (a === "USER_DISABLED")
|
|
443
|
-
throw
|
|
434
|
+
throw j(n, "user-disabled", o);
|
|
444
435
|
const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
|
|
445
436
|
if (l)
|
|
446
437
|
throw vn(n, d, l);
|
|
447
438
|
I(n, d);
|
|
448
439
|
}
|
|
449
440
|
} catch (r) {
|
|
450
|
-
if (r instanceof
|
|
441
|
+
if (r instanceof me)
|
|
451
442
|
throw r;
|
|
452
443
|
I(n, "network-request-failed", { message: String(r) });
|
|
453
444
|
}
|
|
@@ -476,7 +467,7 @@ class kn {
|
|
|
476
467
|
clearTimeout(this.timer);
|
|
477
468
|
}
|
|
478
469
|
}
|
|
479
|
-
function
|
|
470
|
+
function j(n, e, t) {
|
|
480
471
|
const i = {
|
|
481
472
|
appName: n.name
|
|
482
473
|
};
|
|
@@ -556,12 +547,12 @@ function le(n) {
|
|
|
556
547
|
function ye(n) {
|
|
557
548
|
const [e, t, i] = n.split(".");
|
|
558
549
|
if (e === void 0 || t === void 0 || i === void 0)
|
|
559
|
-
return
|
|
550
|
+
return q("JWT malformed, contained fewer than 3 sections"), null;
|
|
560
551
|
try {
|
|
561
552
|
const r = sn(t);
|
|
562
|
-
return r ? JSON.parse(r) : (
|
|
553
|
+
return r ? JSON.parse(r) : (q("Failed to decode base64 JWT payload"), null);
|
|
563
554
|
} catch (r) {
|
|
564
|
-
return
|
|
555
|
+
return q("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
|
|
565
556
|
}
|
|
566
557
|
}
|
|
567
558
|
function An(n) {
|
|
@@ -602,7 +593,7 @@ async function M(n, e, t = !1) {
|
|
|
602
593
|
try {
|
|
603
594
|
return await e;
|
|
604
595
|
} catch (i) {
|
|
605
|
-
throw i instanceof
|
|
596
|
+
throw i instanceof me && Cn(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
|
|
606
597
|
}
|
|
607
598
|
}
|
|
608
599
|
function Cn({ code: n }) {
|
|
@@ -753,7 +744,7 @@ function On(n, e) {
|
|
|
753
744
|
}
|
|
754
745
|
function Ln(n) {
|
|
755
746
|
return n.map((e) => {
|
|
756
|
-
var { providerId: t } = e, i =
|
|
747
|
+
var { providerId: t } = e, i = ge(e, ["providerId"]);
|
|
757
748
|
return {
|
|
758
749
|
providerId: t,
|
|
759
750
|
uid: i.rawId || "",
|
|
@@ -907,7 +898,7 @@ function T(n, e) {
|
|
|
907
898
|
}
|
|
908
899
|
class b {
|
|
909
900
|
constructor(e) {
|
|
910
|
-
var { uid: t, auth: i, stsTokenManager: r } = e, s =
|
|
901
|
+
var { uid: t, auth: i, stsTokenManager: r } = e, s = ge(e, ["uid", "auth", "stsTokenManager"]);
|
|
911
902
|
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);
|
|
912
903
|
}
|
|
913
904
|
async getIdToken(e) {
|
|
@@ -988,7 +979,7 @@ class b {
|
|
|
988
979
|
}
|
|
989
980
|
static _fromJSON(e, t) {
|
|
990
981
|
var i, r, s, o, c, a, l, d;
|
|
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,
|
|
982
|
+
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, z = (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;
|
|
992
983
|
u(
|
|
993
984
|
oe && Ce,
|
|
994
985
|
e,
|
|
@@ -1011,7 +1002,7 @@ class b {
|
|
|
1011
1002
|
e,
|
|
1012
1003
|
"internal-error"
|
|
1013
1004
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1014
|
-
), T(B, e.name), T(
|
|
1005
|
+
), T(B, e.name), T(z, e.name), T(ke, e.name), T(se, e.name), T(Re, e.name), T(be, e.name);
|
|
1015
1006
|
const ce = new b({
|
|
1016
1007
|
uid: oe,
|
|
1017
1008
|
auth: e,
|
|
@@ -1019,7 +1010,7 @@ class b {
|
|
|
1019
1010
|
emailVerified: Se,
|
|
1020
1011
|
displayName: h,
|
|
1021
1012
|
isAnonymous: Ae,
|
|
1022
|
-
photoURL:
|
|
1013
|
+
photoURL: z,
|
|
1023
1014
|
phoneNumber: B,
|
|
1024
1015
|
tenantId: ke,
|
|
1025
1016
|
stsTokenManager: Dt,
|
|
@@ -1123,14 +1114,14 @@ const Ue = ut;
|
|
|
1123
1114
|
* See the License for the specific language governing permissions and
|
|
1124
1115
|
* limitations under the License.
|
|
1125
1116
|
*/
|
|
1126
|
-
function
|
|
1117
|
+
function G(n, e, t) {
|
|
1127
1118
|
return `firebase:${n}:${e}:${t}`;
|
|
1128
1119
|
}
|
|
1129
1120
|
class P {
|
|
1130
1121
|
constructor(e, t, i) {
|
|
1131
1122
|
this.persistence = e, this.auth = t, this.userKey = i;
|
|
1132
1123
|
const { config: r, name: s } = this.auth;
|
|
1133
|
-
this.fullUserKey =
|
|
1124
|
+
this.fullUserKey = G(this.userKey, r.apiKey, s), this.fullPersistenceKey = G("persistence", r.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
|
1134
1125
|
}
|
|
1135
1126
|
setCurrentUser(e) {
|
|
1136
1127
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -1163,7 +1154,7 @@ class P {
|
|
|
1163
1154
|
return l;
|
|
1164
1155
|
}))).filter((l) => l);
|
|
1165
1156
|
let s = r[0] || v(Ue);
|
|
1166
|
-
const o =
|
|
1157
|
+
const o = G(i, e.config.apiKey, e.name);
|
|
1167
1158
|
let c = null;
|
|
1168
1159
|
for (const l of t)
|
|
1169
1160
|
try {
|
|
@@ -1353,8 +1344,8 @@ function Tt(n) {
|
|
|
1353
1344
|
function Vn(n) {
|
|
1354
1345
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
1355
1346
|
}
|
|
1356
|
-
const Wn = "https://www.google.com/recaptcha/enterprise.js?render=", Hn = "recaptcha-enterprise",
|
|
1357
|
-
class
|
|
1347
|
+
const Wn = "https://www.google.com/recaptcha/enterprise.js?render=", Hn = "recaptcha-enterprise", Kn = "NO_RECAPTCHA";
|
|
1348
|
+
class $n {
|
|
1358
1349
|
/**
|
|
1359
1350
|
*
|
|
1360
1351
|
* @param authExtern - The corresponding Firebase {@link Auth} instance.
|
|
@@ -1399,7 +1390,7 @@ class jn {
|
|
|
1399
1390
|
a.enterprise.execute(s, { action: e }).then((l) => {
|
|
1400
1391
|
o(l);
|
|
1401
1392
|
}).catch(() => {
|
|
1402
|
-
o(
|
|
1393
|
+
o(Kn);
|
|
1403
1394
|
});
|
|
1404
1395
|
}) : c(Error("No reCAPTCHA enterprise script loaded."));
|
|
1405
1396
|
}
|
|
@@ -1495,7 +1486,7 @@ class Bn {
|
|
|
1495
1486
|
* See the License for the specific language governing permissions and
|
|
1496
1487
|
* limitations under the License.
|
|
1497
1488
|
*/
|
|
1498
|
-
class
|
|
1489
|
+
class zn {
|
|
1499
1490
|
constructor(e, t, i, r) {
|
|
1500
1491
|
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;
|
|
1501
1492
|
}
|
|
@@ -1620,7 +1611,7 @@ class Kn {
|
|
|
1620
1611
|
version: "RECAPTCHA_ENTERPRISE"
|
|
1621
1612
|
/* RecaptchaVersion.ENTERPRISE */
|
|
1622
1613
|
}), t = new yt(e);
|
|
1623
|
-
this.tenantId == null ? this._agentRecaptchaConfig = t : this._tenantRecaptchaConfigs[this.tenantId] = t, t.emailPasswordEnabled && new
|
|
1614
|
+
this.tenantId == null ? this._agentRecaptchaConfig = t : this._tenantRecaptchaConfigs[this.tenantId] = t, t.emailPasswordEnabled && new $n(this).verify();
|
|
1624
1615
|
}
|
|
1625
1616
|
_getRecaptchaConfig() {
|
|
1626
1617
|
return this.tenantId == null ? this._agentRecaptchaConfig : this._tenantRecaptchaConfigs[this.tenantId];
|
|
@@ -1801,7 +1792,7 @@ class xe {
|
|
|
1801
1792
|
* See the License for the specific language governing permissions and
|
|
1802
1793
|
* limitations under the License.
|
|
1803
1794
|
*/
|
|
1804
|
-
function
|
|
1795
|
+
function jn(n, e) {
|
|
1805
1796
|
const t = tt(n, "auth");
|
|
1806
1797
|
if (t.isInitialized()) {
|
|
1807
1798
|
const r = t.getImmediate(), s = t.getOptions();
|
|
@@ -1815,11 +1806,11 @@ function qn(n, e) {
|
|
|
1815
1806
|
}
|
|
1816
1807
|
return t.initialize({ options: e });
|
|
1817
1808
|
}
|
|
1818
|
-
function
|
|
1809
|
+
function qn(n, e) {
|
|
1819
1810
|
const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(v);
|
|
1820
1811
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
|
|
1821
1812
|
}
|
|
1822
|
-
function
|
|
1813
|
+
function Gn(n, e, t) {
|
|
1823
1814
|
const i = H(n);
|
|
1824
1815
|
u(
|
|
1825
1816
|
i._canInitEmulator,
|
|
@@ -1838,7 +1829,7 @@ function zn(n, e, t) {
|
|
|
1838
1829
|
port: c,
|
|
1839
1830
|
protocol: s.replace(":", ""),
|
|
1840
1831
|
options: Object.freeze({ disableWarnings: r })
|
|
1841
|
-
}), r ||
|
|
1832
|
+
}), r || Xn();
|
|
1842
1833
|
}
|
|
1843
1834
|
function wt(n) {
|
|
1844
1835
|
const e = n.indexOf(":");
|
|
@@ -1863,7 +1854,7 @@ function Ve(n) {
|
|
|
1863
1854
|
const e = Number(n);
|
|
1864
1855
|
return isNaN(e) ? null : e;
|
|
1865
1856
|
}
|
|
1866
|
-
function
|
|
1857
|
+
function Xn() {
|
|
1867
1858
|
function n() {
|
|
1868
1859
|
const e = document.createElement("p"), t = e.style;
|
|
1869
1860
|
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);
|
|
@@ -1947,7 +1938,7 @@ async function N(n, e) {
|
|
|
1947
1938
|
* See the License for the specific language governing permissions and
|
|
1948
1939
|
* limitations under the License.
|
|
1949
1940
|
*/
|
|
1950
|
-
const
|
|
1941
|
+
const Yn = "http://localhost";
|
|
1951
1942
|
class S extends Et {
|
|
1952
1943
|
constructor() {
|
|
1953
1944
|
super(...arguments), this.pendingToken = null;
|
|
@@ -1982,7 +1973,7 @@ class S extends Et {
|
|
|
1982
1973
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
|
1983
1974
|
*/
|
|
1984
1975
|
static fromJSON(e) {
|
|
1985
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s =
|
|
1976
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = ge(t, ["providerId", "signInMethod"]);
|
|
1986
1977
|
if (!i || !r)
|
|
1987
1978
|
return null;
|
|
1988
1979
|
const o = new S(i, r);
|
|
@@ -2005,7 +1996,7 @@ class S extends Et {
|
|
|
2005
1996
|
}
|
|
2006
1997
|
buildRequest() {
|
|
2007
1998
|
const e = {
|
|
2008
|
-
requestUri:
|
|
1999
|
+
requestUri: Yn,
|
|
2009
2000
|
returnSecureToken: !0
|
|
2010
2001
|
};
|
|
2011
2002
|
if (this.pendingToken)
|
|
@@ -2086,7 +2077,7 @@ class kt {
|
|
|
2086
2077
|
* See the License for the specific language governing permissions and
|
|
2087
2078
|
* limitations under the License.
|
|
2088
2079
|
*/
|
|
2089
|
-
class
|
|
2080
|
+
class K extends kt {
|
|
2090
2081
|
constructor() {
|
|
2091
2082
|
super(...arguments), this.scopes = [];
|
|
2092
2083
|
}
|
|
@@ -2121,7 +2112,7 @@ class $ extends kt {
|
|
|
2121
2112
|
* See the License for the specific language governing permissions and
|
|
2122
2113
|
* limitations under the License.
|
|
2123
2114
|
*/
|
|
2124
|
-
class w extends
|
|
2115
|
+
class w extends K {
|
|
2125
2116
|
constructor() {
|
|
2126
2117
|
super(
|
|
2127
2118
|
"facebook.com"
|
|
@@ -2192,7 +2183,7 @@ w.PROVIDER_ID = "facebook.com";
|
|
|
2192
2183
|
* See the License for the specific language governing permissions and
|
|
2193
2184
|
* limitations under the License.
|
|
2194
2185
|
*/
|
|
2195
|
-
class E extends
|
|
2186
|
+
class E extends K {
|
|
2196
2187
|
constructor() {
|
|
2197
2188
|
super(
|
|
2198
2189
|
"google.com"
|
|
@@ -2268,7 +2259,7 @@ E.PROVIDER_ID = "google.com";
|
|
|
2268
2259
|
* See the License for the specific language governing permissions and
|
|
2269
2260
|
* limitations under the License.
|
|
2270
2261
|
*/
|
|
2271
|
-
class k extends
|
|
2262
|
+
class k extends K {
|
|
2272
2263
|
constructor() {
|
|
2273
2264
|
super(
|
|
2274
2265
|
"github.com"
|
|
@@ -2332,7 +2323,7 @@ k.PROVIDER_ID = "github.com";
|
|
|
2332
2323
|
* See the License for the specific language governing permissions and
|
|
2333
2324
|
* limitations under the License.
|
|
2334
2325
|
*/
|
|
2335
|
-
class R extends
|
|
2326
|
+
class R extends K {
|
|
2336
2327
|
constructor() {
|
|
2337
2328
|
super(
|
|
2338
2329
|
"twitter.com"
|
|
@@ -2448,7 +2439,7 @@ function We(n) {
|
|
|
2448
2439
|
* See the License for the specific language governing permissions and
|
|
2449
2440
|
* limitations under the License.
|
|
2450
2441
|
*/
|
|
2451
|
-
class Z extends
|
|
2442
|
+
class Z extends me {
|
|
2452
2443
|
constructor(e, t, i, r) {
|
|
2453
2444
|
var s;
|
|
2454
2445
|
super(t.code, t.message), this.operationType = i, this.user = r, Object.setPrototypeOf(this, Z.prototype), this.customData = {
|
|
@@ -3076,7 +3067,7 @@ function pi() {
|
|
|
3076
3067
|
* limitations under the License.
|
|
3077
3068
|
*/
|
|
3078
3069
|
const Nt = "firebaseLocalStorageDb", gi = 1, te = "firebaseLocalStorage", Ot = "fbase_key";
|
|
3079
|
-
class
|
|
3070
|
+
class $ {
|
|
3080
3071
|
constructor(e) {
|
|
3081
3072
|
this.request = e;
|
|
3082
3073
|
}
|
|
@@ -3095,7 +3086,7 @@ function re(n, e) {
|
|
|
3095
3086
|
}
|
|
3096
3087
|
function mi() {
|
|
3097
3088
|
const n = indexedDB.deleteDatabase(Nt);
|
|
3098
|
-
return new
|
|
3089
|
+
return new $(n).toPromise();
|
|
3099
3090
|
}
|
|
3100
3091
|
function fe() {
|
|
3101
3092
|
const n = indexedDB.open(Nt, gi);
|
|
@@ -3120,15 +3111,15 @@ async function He(n, e, t) {
|
|
|
3120
3111
|
[Ot]: e,
|
|
3121
3112
|
value: t
|
|
3122
3113
|
});
|
|
3123
|
-
return new
|
|
3114
|
+
return new $(i).toPromise();
|
|
3124
3115
|
}
|
|
3125
3116
|
async function _i(n, e) {
|
|
3126
|
-
const t = re(n, !1).get(e), i = await new
|
|
3117
|
+
const t = re(n, !1).get(e), i = await new $(t).toPromise();
|
|
3127
3118
|
return i === void 0 ? null : i.value;
|
|
3128
3119
|
}
|
|
3129
|
-
function
|
|
3120
|
+
function Ke(n, e) {
|
|
3130
3121
|
const t = re(n, !0).delete(e);
|
|
3131
|
-
return new
|
|
3122
|
+
return new $(t).toPromise();
|
|
3132
3123
|
}
|
|
3133
3124
|
const vi = 800, Ii = 3;
|
|
3134
3125
|
class Lt {
|
|
@@ -3220,7 +3211,7 @@ class Lt {
|
|
|
3220
3211
|
if (!indexedDB)
|
|
3221
3212
|
return !1;
|
|
3222
3213
|
const e = await fe();
|
|
3223
|
-
return await He(e, ee, "1"), await
|
|
3214
|
+
return await He(e, ee, "1"), await Ke(e, ee), !0;
|
|
3224
3215
|
} catch {
|
|
3225
3216
|
}
|
|
3226
3217
|
return !1;
|
|
@@ -3241,12 +3232,12 @@ class Lt {
|
|
|
3241
3232
|
return this.localCache[e] = t, t;
|
|
3242
3233
|
}
|
|
3243
3234
|
async _remove(e) {
|
|
3244
|
-
return this._withPendingWrite(async () => (await this._withRetries((t) =>
|
|
3235
|
+
return this._withPendingWrite(async () => (await this._withRetries((t) => Ke(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
|
|
3245
3236
|
}
|
|
3246
3237
|
async _poll() {
|
|
3247
3238
|
const e = await this._withRetries((r) => {
|
|
3248
3239
|
const s = re(r, !1).getAll();
|
|
3249
|
-
return new
|
|
3240
|
+
return new $(s).toPromise();
|
|
3250
3241
|
});
|
|
3251
3242
|
if (!e)
|
|
3252
3243
|
return [];
|
|
@@ -3619,7 +3610,7 @@ function Pi(n) {
|
|
|
3619
3610
|
return v(n._redirectPersistence);
|
|
3620
3611
|
}
|
|
3621
3612
|
function Ni(n) {
|
|
3622
|
-
return
|
|
3613
|
+
return G(bi, n.config.apiKey, n.name);
|
|
3623
3614
|
}
|
|
3624
3615
|
async function Oi(n, e, t = !1) {
|
|
3625
3616
|
const i = H(n), r = Ti(i, e), o = await new Si(i, r, t).execute();
|
|
@@ -3673,13 +3664,13 @@ class Mi {
|
|
|
3673
3664
|
return t.filter.includes(e.type) && i;
|
|
3674
3665
|
}
|
|
3675
3666
|
hasEventBeenHandled(e) {
|
|
3676
|
-
return Date.now() - this.lastProcessedEventTime >= Li && this.cachedEventUids.clear(), this.cachedEventUids.has(
|
|
3667
|
+
return Date.now() - this.lastProcessedEventTime >= Li && this.cachedEventUids.clear(), this.cachedEventUids.has($e(e));
|
|
3677
3668
|
}
|
|
3678
3669
|
saveEventToCache(e) {
|
|
3679
|
-
this.cachedEventUids.add(
|
|
3670
|
+
this.cachedEventUids.add($e(e)), this.lastProcessedEventTime = Date.now();
|
|
3680
3671
|
}
|
|
3681
3672
|
}
|
|
3682
|
-
function
|
|
3673
|
+
function $e(n) {
|
|
3683
3674
|
return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
|
|
3684
3675
|
}
|
|
3685
3676
|
function Ut({ type: n, error: e }) {
|
|
@@ -3788,7 +3779,7 @@ function Be() {
|
|
|
3788
3779
|
n.CP[t] = null;
|
|
3789
3780
|
}
|
|
3790
3781
|
}
|
|
3791
|
-
function
|
|
3782
|
+
function Ki(n) {
|
|
3792
3783
|
return new Promise((e, t) => {
|
|
3793
3784
|
var i, r, s;
|
|
3794
3785
|
function o() {
|
|
@@ -3821,12 +3812,12 @@ function $i(n) {
|
|
|
3821
3812
|
}, Tt(`https://apis.google.com/js/api.js?onload=${c}`).catch((a) => t(a));
|
|
3822
3813
|
}
|
|
3823
3814
|
}).catch((e) => {
|
|
3824
|
-
throw
|
|
3815
|
+
throw X = null, e;
|
|
3825
3816
|
});
|
|
3826
3817
|
}
|
|
3827
|
-
let
|
|
3828
|
-
function
|
|
3829
|
-
return
|
|
3818
|
+
let X = null;
|
|
3819
|
+
function $i(n) {
|
|
3820
|
+
return X = X || Ki(n), X;
|
|
3830
3821
|
}
|
|
3831
3822
|
/**
|
|
3832
3823
|
* @license
|
|
@@ -3844,7 +3835,7 @@ function ji(n) {
|
|
|
3844
3835
|
* See the License for the specific language governing permissions and
|
|
3845
3836
|
* limitations under the License.
|
|
3846
3837
|
*/
|
|
3847
|
-
const Bi = new V(5e3, 15e3),
|
|
3838
|
+
const Bi = new V(5e3, 15e3), zi = "__/auth/iframe", ji = "emulator/auth/iframe", qi = {
|
|
3848
3839
|
style: {
|
|
3849
3840
|
position: "absolute",
|
|
3850
3841
|
top: "-100px",
|
|
@@ -3853,7 +3844,7 @@ const Bi = new V(5e3, 15e3), Ki = "__/auth/iframe", qi = "emulator/auth/iframe",
|
|
|
3853
3844
|
},
|
|
3854
3845
|
"aria-hidden": "true",
|
|
3855
3846
|
tabindex: "-1"
|
|
3856
|
-
},
|
|
3847
|
+
}, Gi = /* @__PURE__ */ new Map([
|
|
3857
3848
|
["identitytoolkit.googleapis.com", "p"],
|
|
3858
3849
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
|
3859
3850
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
|
@@ -3867,17 +3858,17 @@ function Ji(n) {
|
|
|
3867
3858
|
"auth-domain-config-required"
|
|
3868
3859
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
3869
3860
|
);
|
|
3870
|
-
const t = e.emulator ? ve(e,
|
|
3861
|
+
const t = e.emulator ? ve(e, ji) : `https://${n.config.authDomain}/${zi}`, i = {
|
|
3871
3862
|
apiKey: e.apiKey,
|
|
3872
3863
|
appName: n.name,
|
|
3873
3864
|
v: F
|
|
3874
|
-
}, r =
|
|
3865
|
+
}, r = Gi.get(n.config.apiHost);
|
|
3875
3866
|
r && (i.eid = r);
|
|
3876
3867
|
const s = n._getFrameworks();
|
|
3877
3868
|
return s.length && (i.fw = s.join(",")), `${t}?${x(i).slice(1)}`;
|
|
3878
3869
|
}
|
|
3879
|
-
async function
|
|
3880
|
-
const e = await
|
|
3870
|
+
async function Xi(n) {
|
|
3871
|
+
const e = await $i(n), t = m().gapi;
|
|
3881
3872
|
return u(
|
|
3882
3873
|
t,
|
|
3883
3874
|
n,
|
|
@@ -3887,7 +3878,7 @@ async function Yi(n) {
|
|
|
3887
3878
|
where: document.body,
|
|
3888
3879
|
url: Ji(n),
|
|
3889
3880
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
|
3890
|
-
attributes:
|
|
3881
|
+
attributes: qi,
|
|
3891
3882
|
dontclear: !0
|
|
3892
3883
|
}, (i) => new Promise(async (r, s) => {
|
|
3893
3884
|
await i.restyle({
|
|
@@ -3925,13 +3916,13 @@ async function Yi(n) {
|
|
|
3925
3916
|
* See the License for the specific language governing permissions and
|
|
3926
3917
|
* limitations under the License.
|
|
3927
3918
|
*/
|
|
3928
|
-
const
|
|
3919
|
+
const Yi = {
|
|
3929
3920
|
location: "yes",
|
|
3930
3921
|
resizable: "yes",
|
|
3931
3922
|
statusbar: "yes",
|
|
3932
3923
|
toolbar: "no"
|
|
3933
3924
|
}, Qi = 500, Zi = 600, er = "_blank", tr = "http://localhost";
|
|
3934
|
-
class
|
|
3925
|
+
class ze {
|
|
3935
3926
|
constructor(e) {
|
|
3936
3927
|
this.window = e, this.associatedEvent = null;
|
|
3937
3928
|
}
|
|
@@ -3946,16 +3937,16 @@ class Ke {
|
|
|
3946
3937
|
function nr(n, e, t, i = Qi, r = Zi) {
|
|
3947
3938
|
const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
|
|
3948
3939
|
let c = "";
|
|
3949
|
-
const a = Object.assign(Object.assign({},
|
|
3940
|
+
const a = Object.assign(Object.assign({}, Yi), {
|
|
3950
3941
|
width: i.toString(),
|
|
3951
3942
|
height: r.toString(),
|
|
3952
3943
|
top: s,
|
|
3953
3944
|
left: o
|
|
3954
3945
|
}), l = f().toLowerCase();
|
|
3955
3946
|
t && (c = ht(l) ? er : t), dt(l) && (e = e || tr, a.scrollbars = "yes");
|
|
3956
|
-
const d = Object.entries(a).reduce((p, [B,
|
|
3947
|
+
const d = Object.entries(a).reduce((p, [B, z]) => `${p}${B}=${z},`, "");
|
|
3957
3948
|
if (Un(l) && c !== "_self")
|
|
3958
|
-
return ir(e || "", c), new
|
|
3949
|
+
return ir(e || "", c), new ze(null);
|
|
3959
3950
|
const h = window.open(e || "", c, d);
|
|
3960
3951
|
u(
|
|
3961
3952
|
h,
|
|
@@ -3967,7 +3958,7 @@ function nr(n, e, t, i = Qi, r = Zi) {
|
|
|
3967
3958
|
h.focus();
|
|
3968
3959
|
} catch {
|
|
3969
3960
|
}
|
|
3970
|
-
return new
|
|
3961
|
+
return new ze(h);
|
|
3971
3962
|
}
|
|
3972
3963
|
function ir(n, e) {
|
|
3973
3964
|
const t = document.createElement("a");
|
|
@@ -3992,7 +3983,7 @@ function ir(n, e) {
|
|
|
3992
3983
|
* limitations under the License.
|
|
3993
3984
|
*/
|
|
3994
3985
|
const rr = "__/auth/handler", sr = "emulator/auth/handler", or = encodeURIComponent("fac");
|
|
3995
|
-
async function
|
|
3986
|
+
async function je(n, e, t, i, r, s) {
|
|
3996
3987
|
u(
|
|
3997
3988
|
n.config.authDomain,
|
|
3998
3989
|
n,
|
|
@@ -4017,7 +4008,7 @@ async function qe(n, e, t, i, r, s) {
|
|
|
4017
4008
|
for (const [d, h] of Object.entries(s || {}))
|
|
4018
4009
|
o[d] = h;
|
|
4019
4010
|
}
|
|
4020
|
-
if (e instanceof
|
|
4011
|
+
if (e instanceof K) {
|
|
4021
4012
|
const d = e.getScopes().filter((h) => h !== "");
|
|
4022
4013
|
d.length > 0 && (o.scopes = d.join(","));
|
|
4023
4014
|
}
|
|
@@ -4057,12 +4048,12 @@ class cr {
|
|
|
4057
4048
|
async _openPopup(e, t, i, r) {
|
|
4058
4049
|
var s;
|
|
4059
4050
|
y((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
4060
|
-
const o = await
|
|
4051
|
+
const o = await je(e, t, i, he(), r);
|
|
4061
4052
|
return nr(e, o, we());
|
|
4062
4053
|
}
|
|
4063
4054
|
async _openRedirect(e, t, i, r) {
|
|
4064
4055
|
await this._originValidation(e);
|
|
4065
|
-
const s = await
|
|
4056
|
+
const s = await je(e, t, i, he(), r);
|
|
4066
4057
|
return di(s), new Promise(() => {
|
|
4067
4058
|
});
|
|
4068
4059
|
}
|
|
@@ -4078,7 +4069,7 @@ class cr {
|
|
|
4078
4069
|
}), i;
|
|
4079
4070
|
}
|
|
4080
4071
|
async initAndGetManager(e) {
|
|
4081
|
-
const t = await
|
|
4072
|
+
const t = await Xi(e), i = new Mi(e);
|
|
4082
4073
|
return t.register("authEvent", (r) => (u(
|
|
4083
4074
|
r == null ? void 0 : r.authEvent,
|
|
4084
4075
|
e,
|
|
@@ -4109,7 +4100,7 @@ class cr {
|
|
|
4109
4100
|
}
|
|
4110
4101
|
}
|
|
4111
4102
|
const lr = cr;
|
|
4112
|
-
var
|
|
4103
|
+
var qe = "@firebase/auth", Ge = "0.23.2";
|
|
4113
4104
|
/**
|
|
4114
4105
|
* @license
|
|
4115
4106
|
* Copyright 2020 Google LLC
|
|
@@ -4205,8 +4196,8 @@ function hr(n) {
|
|
|
4205
4196
|
tokenApiHost: "securetoken.googleapis.com",
|
|
4206
4197
|
apiScheme: "https",
|
|
4207
4198
|
sdkClientVersion: vt(n)
|
|
4208
|
-
}, l = new
|
|
4209
|
-
return
|
|
4199
|
+
}, l = new zn(i, r, s, a);
|
|
4200
|
+
return qn(l, t), l;
|
|
4210
4201
|
},
|
|
4211
4202
|
"PUBLIC"
|
|
4212
4203
|
/* ComponentType.PUBLIC */
|
|
@@ -4232,7 +4223,7 @@ function hr(n) {
|
|
|
4232
4223
|
).setInstantiationMode(
|
|
4233
4224
|
"EXPLICIT"
|
|
4234
4225
|
/* InstantiationMode.EXPLICIT */
|
|
4235
|
-
)), de(
|
|
4226
|
+
)), de(qe, Ge, dr(n)), de(qe, Ge, "esm2017");
|
|
4236
4227
|
}
|
|
4237
4228
|
/**
|
|
4238
4229
|
* @license
|
|
@@ -4268,7 +4259,7 @@ function mr(n = tn()) {
|
|
|
4268
4259
|
const e = tt(n, "auth");
|
|
4269
4260
|
if (e.isInitialized())
|
|
4270
4261
|
return e.getImmediate();
|
|
4271
|
-
const t =
|
|
4262
|
+
const t = jn(n, {
|
|
4272
4263
|
popupRedirectResolver: lr,
|
|
4273
4264
|
persistence: [
|
|
4274
4265
|
yi,
|
|
@@ -4281,7 +4272,7 @@ function mr(n = tn()) {
|
|
|
4281
4272
|
ri(t, s, () => s(t.currentUser)), ii(t, (o) => s(o));
|
|
4282
4273
|
}
|
|
4283
4274
|
const r = en("auth");
|
|
4284
|
-
return r &&
|
|
4275
|
+
return r && Gn(t, `http://${r}`), t;
|
|
4285
4276
|
}
|
|
4286
4277
|
hr(
|
|
4287
4278
|
"Browser"
|
|
@@ -4324,7 +4315,7 @@ D.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
|
4324
4315
|
async function _r() {
|
|
4325
4316
|
if (cn().length)
|
|
4326
4317
|
return;
|
|
4327
|
-
const n = ln({ apiKey: "
|
|
4318
|
+
const n = ln({ 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 jt.getCustomToken(), t = mr();
|
|
4328
4319
|
await ni(t, e), un(n);
|
|
4329
4320
|
}
|
|
4330
4321
|
async function vr() {
|
|
@@ -4338,13 +4329,13 @@ async function vr() {
|
|
|
4338
4329
|
async function Ir() {
|
|
4339
4330
|
await _r(), await vr();
|
|
4340
4331
|
}
|
|
4341
|
-
const Pr = /* @__PURE__ */
|
|
4332
|
+
const Pr = /* @__PURE__ */ Xe({
|
|
4342
4333
|
__name: "App",
|
|
4343
4334
|
setup(n) {
|
|
4344
4335
|
const e = Ze();
|
|
4345
4336
|
return Ht(() => {
|
|
4346
4337
|
e.registerSidebarComponent(fn), Ir();
|
|
4347
|
-
}), (t, i) => (
|
|
4338
|
+
}), (t, i) => (Ye(), Qe(Kt(Bt)));
|
|
4348
4339
|
}
|
|
4349
4340
|
});
|
|
4350
4341
|
export {
|