@feedmepos/mf-settings 0.0.50-beta.1 → 0.0.50-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-22eddb78.js → App-ccc37fd9.js} +97 -106
- package/dist/Business-edf5bd92.js +11975 -0
- package/dist/{CreateBusiness-138ac258.js → CreateBusiness-ec365db8.js} +2 -2
- package/dist/{FoodCourt-561cd7e3.js → FoodCourt-652c44f9.js} +1 -1
- package/dist/{Tagging-b746a5f3.js → Tagging-798e2bb7.js} +3 -3
- package/dist/TemplateBuilder-3e34e9e8.js +27 -0
- package/dist/{app-abfabbcf.js → app-bd3cfc9c.js} +38 -36
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-9a4e5bd7.js → business-93826a8c.js} +1 -1
- package/dist/{loading-84215dce.js → loading-6ee8ebc9.js} +223 -223
- package/dist/packages/shared/src/composable/elementPosition.d.ts +1 -1
- package/dist/{index.esm2017-c60b1ce5.js → tslib.es6-449ce8af.js} +502 -385
- package/package.json +2 -1
- package/dist/Business-416835ab.js +0 -3893
- package/dist/TemplateBuilder-54a34178.js +0 -27
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { r as
|
|
5
|
-
import { c 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 { r as qt } from "./app-bd3cfc9c.js";
|
|
5
|
+
import { c as Gt } from "./index-1eb3cc0a.js";
|
|
6
6
|
import { e as Jt } from "./index-f1e5e565.js";
|
|
7
|
-
import { r as de, g as et, i as
|
|
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 "./tslib.es6-449ce8af.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 }) => Gt.Pos.canUse({ feature: Jt.F_FEATURE.Enum.templateBuilder, posVersion: l ?? "" }))), c = Pe(() => qt.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,
|
|
@@ -123,12 +114,12 @@ const mn = it, rt = new pe("auth", "Firebase", it());
|
|
|
123
114
|
* See the License for the specific language governing permissions and
|
|
124
115
|
* limitations under the License.
|
|
125
116
|
*/
|
|
126
|
-
const
|
|
117
|
+
const Y = new rn("@firebase/auth");
|
|
127
118
|
function _n(n, ...e) {
|
|
128
|
-
|
|
119
|
+
Y.logLevel <= nt.WARN && Y.warn(`Auth (${F}): ${n}`, ...e);
|
|
129
120
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
121
|
+
function q(n, ...e) {
|
|
122
|
+
Y.logLevel <= nt.ERROR && Y.error(`Auth (${F}): ${n}`, ...e);
|
|
132
123
|
}
|
|
133
124
|
/**
|
|
134
125
|
* @license
|
|
@@ -171,7 +162,7 @@ function u(n, e, ...t) {
|
|
|
171
162
|
}
|
|
172
163
|
function _(n) {
|
|
173
164
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
|
174
|
-
throw
|
|
165
|
+
throw q(e), new Error(e);
|
|
175
166
|
}
|
|
176
167
|
function y(n, e) {
|
|
177
168
|
n || _(e);
|
|
@@ -257,7 +248,7 @@ function Tn() {
|
|
|
257
248
|
*/
|
|
258
249
|
class V {
|
|
259
250
|
constructor(e, t) {
|
|
260
|
-
this.shortDelay = e, this.longDelay = t, y(t > e, "Short delay should be less than long delay!"), this.isMobile =
|
|
251
|
+
this.shortDelay = e, this.longDelay = t, y(t > e, "Short delay should be less than long delay!"), this.isMobile = Xt() || Yt();
|
|
261
252
|
}
|
|
262
253
|
get() {
|
|
263
254
|
return yn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
@@ -464,24 +455,24 @@ async function ot(n, e, t) {
|
|
|
464
455
|
r.clearNetworkTimeout();
|
|
465
456
|
const o = await s.json();
|
|
466
457
|
if ("needConfirmation" in o)
|
|
467
|
-
throw
|
|
458
|
+
throw j(n, "account-exists-with-different-credential", o);
|
|
468
459
|
if (s.ok && !("errorMessage" in o))
|
|
469
460
|
return o;
|
|
470
461
|
{
|
|
471
462
|
const c = s.ok ? o.errorMessage : o.error.message, [a, l] = c.split(" : ");
|
|
472
463
|
if (a === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
473
|
-
throw
|
|
464
|
+
throw j(n, "credential-already-in-use", o);
|
|
474
465
|
if (a === "EMAIL_EXISTS")
|
|
475
|
-
throw
|
|
466
|
+
throw j(n, "email-already-in-use", o);
|
|
476
467
|
if (a === "USER_DISABLED")
|
|
477
|
-
throw
|
|
468
|
+
throw j(n, "user-disabled", o);
|
|
478
469
|
const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
|
|
479
470
|
if (l)
|
|
480
471
|
throw vn(n, d, l);
|
|
481
472
|
I(n, d);
|
|
482
473
|
}
|
|
483
474
|
} catch (r) {
|
|
484
|
-
if (r instanceof
|
|
475
|
+
if (r instanceof me)
|
|
485
476
|
throw r;
|
|
486
477
|
I(n, "network-request-failed", { message: String(r) });
|
|
487
478
|
}
|
|
@@ -510,7 +501,7 @@ class kn {
|
|
|
510
501
|
clearTimeout(this.timer);
|
|
511
502
|
}
|
|
512
503
|
}
|
|
513
|
-
function
|
|
504
|
+
function j(n, e, t) {
|
|
514
505
|
const i = {
|
|
515
506
|
appName: n.name
|
|
516
507
|
};
|
|
@@ -590,12 +581,12 @@ function le(n) {
|
|
|
590
581
|
function ye(n) {
|
|
591
582
|
const [e, t, i] = n.split(".");
|
|
592
583
|
if (e === void 0 || t === void 0 || i === void 0)
|
|
593
|
-
return
|
|
584
|
+
return q("JWT malformed, contained fewer than 3 sections"), null;
|
|
594
585
|
try {
|
|
595
586
|
const r = sn(t);
|
|
596
|
-
return r ? JSON.parse(r) : (
|
|
587
|
+
return r ? JSON.parse(r) : (q("Failed to decode base64 JWT payload"), null);
|
|
597
588
|
} catch (r) {
|
|
598
|
-
return
|
|
589
|
+
return q("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
|
|
599
590
|
}
|
|
600
591
|
}
|
|
601
592
|
function An(n) {
|
|
@@ -636,7 +627,7 @@ async function U(n, e, t = !1) {
|
|
|
636
627
|
try {
|
|
637
628
|
return await e;
|
|
638
629
|
} catch (i) {
|
|
639
|
-
throw i instanceof
|
|
630
|
+
throw i instanceof me && Cn(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
|
|
640
631
|
}
|
|
641
632
|
}
|
|
642
633
|
function Cn({ code: n }) {
|
|
@@ -787,7 +778,7 @@ function On(n, e) {
|
|
|
787
778
|
}
|
|
788
779
|
function Ln(n) {
|
|
789
780
|
return n.map((e) => {
|
|
790
|
-
var { providerId: t } = e, i =
|
|
781
|
+
var { providerId: t } = e, i = ge(e, ["providerId"]);
|
|
791
782
|
return {
|
|
792
783
|
providerId: t,
|
|
793
784
|
uid: i.rawId || "",
|
|
@@ -941,7 +932,7 @@ function T(n, e) {
|
|
|
941
932
|
}
|
|
942
933
|
class b {
|
|
943
934
|
constructor(e) {
|
|
944
|
-
var { uid: t, auth: i, stsTokenManager: r } = e, s =
|
|
935
|
+
var { uid: t, auth: i, stsTokenManager: r } = e, s = ge(e, ["uid", "auth", "stsTokenManager"]);
|
|
945
936
|
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);
|
|
946
937
|
}
|
|
947
938
|
async getIdToken(e) {
|
|
@@ -1022,7 +1013,7 @@ class b {
|
|
|
1022
1013
|
}
|
|
1023
1014
|
static _fromJSON(e, t) {
|
|
1024
1015
|
var i, r, s, o, c, a, l, d;
|
|
1025
|
-
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,
|
|
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, 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;
|
|
1026
1017
|
u(
|
|
1027
1018
|
oe && Ce,
|
|
1028
1019
|
e,
|
|
@@ -1045,7 +1036,7 @@ class b {
|
|
|
1045
1036
|
e,
|
|
1046
1037
|
"internal-error"
|
|
1047
1038
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1048
|
-
), T(B, e.name), T(
|
|
1039
|
+
), T(B, e.name), T(z, e.name), T(ke, e.name), T(se, e.name), T(Re, e.name), T(be, e.name);
|
|
1049
1040
|
const ce = new b({
|
|
1050
1041
|
uid: oe,
|
|
1051
1042
|
auth: e,
|
|
@@ -1053,7 +1044,7 @@ class b {
|
|
|
1053
1044
|
emailVerified: Se,
|
|
1054
1045
|
displayName: h,
|
|
1055
1046
|
isAnonymous: Ae,
|
|
1056
|
-
photoURL:
|
|
1047
|
+
photoURL: z,
|
|
1057
1048
|
phoneNumber: B,
|
|
1058
1049
|
tenantId: ke,
|
|
1059
1050
|
stsTokenManager: Dt,
|
|
@@ -1157,14 +1148,14 @@ const Ue = ut;
|
|
|
1157
1148
|
* See the License for the specific language governing permissions and
|
|
1158
1149
|
* limitations under the License.
|
|
1159
1150
|
*/
|
|
1160
|
-
function
|
|
1151
|
+
function G(n, e, t) {
|
|
1161
1152
|
return `firebase:${n}:${e}:${t}`;
|
|
1162
1153
|
}
|
|
1163
1154
|
class P {
|
|
1164
1155
|
constructor(e, t, i) {
|
|
1165
1156
|
this.persistence = e, this.auth = t, this.userKey = i;
|
|
1166
1157
|
const { config: r, name: s } = this.auth;
|
|
1167
|
-
this.fullUserKey =
|
|
1158
|
+
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);
|
|
1168
1159
|
}
|
|
1169
1160
|
setCurrentUser(e) {
|
|
1170
1161
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -1197,7 +1188,7 @@ class P {
|
|
|
1197
1188
|
return l;
|
|
1198
1189
|
}))).filter((l) => l);
|
|
1199
1190
|
let s = r[0] || v(Ue);
|
|
1200
|
-
const o =
|
|
1191
|
+
const o = G(i, e.config.apiKey, e.name);
|
|
1201
1192
|
let c = null;
|
|
1202
1193
|
for (const l of t)
|
|
1203
1194
|
try {
|
|
@@ -1387,8 +1378,8 @@ function Tt(n) {
|
|
|
1387
1378
|
function Vn(n) {
|
|
1388
1379
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
1389
1380
|
}
|
|
1390
|
-
const Wn = "https://www.google.com/recaptcha/enterprise.js?render=", Hn = "recaptcha-enterprise",
|
|
1391
|
-
class
|
|
1381
|
+
const Wn = "https://www.google.com/recaptcha/enterprise.js?render=", Hn = "recaptcha-enterprise", Kn = "NO_RECAPTCHA";
|
|
1382
|
+
class $n {
|
|
1392
1383
|
/**
|
|
1393
1384
|
*
|
|
1394
1385
|
* @param authExtern - The corresponding Firebase {@link Auth} instance.
|
|
@@ -1433,7 +1424,7 @@ class jn {
|
|
|
1433
1424
|
a.enterprise.execute(s, { action: e }).then((l) => {
|
|
1434
1425
|
o(l);
|
|
1435
1426
|
}).catch(() => {
|
|
1436
|
-
o(
|
|
1427
|
+
o(Kn);
|
|
1437
1428
|
});
|
|
1438
1429
|
}) : c(Error("No reCAPTCHA enterprise script loaded."));
|
|
1439
1430
|
}
|
|
@@ -1529,7 +1520,7 @@ class Bn {
|
|
|
1529
1520
|
* See the License for the specific language governing permissions and
|
|
1530
1521
|
* limitations under the License.
|
|
1531
1522
|
*/
|
|
1532
|
-
class
|
|
1523
|
+
class zn {
|
|
1533
1524
|
constructor(e, t, i, r) {
|
|
1534
1525
|
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;
|
|
1535
1526
|
}
|
|
@@ -1654,7 +1645,7 @@ class Kn {
|
|
|
1654
1645
|
version: "RECAPTCHA_ENTERPRISE"
|
|
1655
1646
|
/* RecaptchaVersion.ENTERPRISE */
|
|
1656
1647
|
}), t = new yt(e);
|
|
1657
|
-
this.tenantId == null ? this._agentRecaptchaConfig = t : this._tenantRecaptchaConfigs[this.tenantId] = t, t.emailPasswordEnabled && new
|
|
1648
|
+
this.tenantId == null ? this._agentRecaptchaConfig = t : this._tenantRecaptchaConfigs[this.tenantId] = t, t.emailPasswordEnabled && new $n(this).verify();
|
|
1658
1649
|
}
|
|
1659
1650
|
_getRecaptchaConfig() {
|
|
1660
1651
|
return this.tenantId == null ? this._agentRecaptchaConfig : this._tenantRecaptchaConfigs[this.tenantId];
|
|
@@ -1835,7 +1826,7 @@ class xe {
|
|
|
1835
1826
|
* See the License for the specific language governing permissions and
|
|
1836
1827
|
* limitations under the License.
|
|
1837
1828
|
*/
|
|
1838
|
-
function
|
|
1829
|
+
function jn(n, e) {
|
|
1839
1830
|
const t = tt(n, "auth");
|
|
1840
1831
|
if (t.isInitialized()) {
|
|
1841
1832
|
const r = t.getImmediate(), s = t.getOptions();
|
|
@@ -1849,11 +1840,11 @@ function qn(n, e) {
|
|
|
1849
1840
|
}
|
|
1850
1841
|
return t.initialize({ options: e });
|
|
1851
1842
|
}
|
|
1852
|
-
function
|
|
1843
|
+
function qn(n, e) {
|
|
1853
1844
|
const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(v);
|
|
1854
1845
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
|
|
1855
1846
|
}
|
|
1856
|
-
function
|
|
1847
|
+
function Gn(n, e, t) {
|
|
1857
1848
|
const i = H(n);
|
|
1858
1849
|
u(
|
|
1859
1850
|
i._canInitEmulator,
|
|
@@ -1872,7 +1863,7 @@ function zn(n, e, t) {
|
|
|
1872
1863
|
port: c,
|
|
1873
1864
|
protocol: s.replace(":", ""),
|
|
1874
1865
|
options: Object.freeze({ disableWarnings: r })
|
|
1875
|
-
}), r ||
|
|
1866
|
+
}), r || Xn();
|
|
1876
1867
|
}
|
|
1877
1868
|
function wt(n) {
|
|
1878
1869
|
const e = n.indexOf(":");
|
|
@@ -1897,7 +1888,7 @@ function Ve(n) {
|
|
|
1897
1888
|
const e = Number(n);
|
|
1898
1889
|
return isNaN(e) ? null : e;
|
|
1899
1890
|
}
|
|
1900
|
-
function
|
|
1891
|
+
function Xn() {
|
|
1901
1892
|
function n() {
|
|
1902
1893
|
const e = document.createElement("p"), t = e.style;
|
|
1903
1894
|
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);
|
|
@@ -1981,7 +1972,7 @@ async function N(n, e) {
|
|
|
1981
1972
|
* See the License for the specific language governing permissions and
|
|
1982
1973
|
* limitations under the License.
|
|
1983
1974
|
*/
|
|
1984
|
-
const
|
|
1975
|
+
const Yn = "http://localhost";
|
|
1985
1976
|
class S extends Et {
|
|
1986
1977
|
constructor() {
|
|
1987
1978
|
super(...arguments), this.pendingToken = null;
|
|
@@ -2016,7 +2007,7 @@ class S extends Et {
|
|
|
2016
2007
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
|
2017
2008
|
*/
|
|
2018
2009
|
static fromJSON(e) {
|
|
2019
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s =
|
|
2010
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = ge(t, ["providerId", "signInMethod"]);
|
|
2020
2011
|
if (!i || !r)
|
|
2021
2012
|
return null;
|
|
2022
2013
|
const o = new S(i, r);
|
|
@@ -2039,7 +2030,7 @@ class S extends Et {
|
|
|
2039
2030
|
}
|
|
2040
2031
|
buildRequest() {
|
|
2041
2032
|
const e = {
|
|
2042
|
-
requestUri:
|
|
2033
|
+
requestUri: Yn,
|
|
2043
2034
|
returnSecureToken: !0
|
|
2044
2035
|
};
|
|
2045
2036
|
if (this.pendingToken)
|
|
@@ -2120,7 +2111,7 @@ class kt {
|
|
|
2120
2111
|
* See the License for the specific language governing permissions and
|
|
2121
2112
|
* limitations under the License.
|
|
2122
2113
|
*/
|
|
2123
|
-
class
|
|
2114
|
+
class K extends kt {
|
|
2124
2115
|
constructor() {
|
|
2125
2116
|
super(...arguments), this.scopes = [];
|
|
2126
2117
|
}
|
|
@@ -2155,7 +2146,7 @@ class $ extends kt {
|
|
|
2155
2146
|
* See the License for the specific language governing permissions and
|
|
2156
2147
|
* limitations under the License.
|
|
2157
2148
|
*/
|
|
2158
|
-
class w extends
|
|
2149
|
+
class w extends K {
|
|
2159
2150
|
constructor() {
|
|
2160
2151
|
super(
|
|
2161
2152
|
"facebook.com"
|
|
@@ -2226,7 +2217,7 @@ w.PROVIDER_ID = "facebook.com";
|
|
|
2226
2217
|
* See the License for the specific language governing permissions and
|
|
2227
2218
|
* limitations under the License.
|
|
2228
2219
|
*/
|
|
2229
|
-
class E extends
|
|
2220
|
+
class E extends K {
|
|
2230
2221
|
constructor() {
|
|
2231
2222
|
super(
|
|
2232
2223
|
"google.com"
|
|
@@ -2302,7 +2293,7 @@ E.PROVIDER_ID = "google.com";
|
|
|
2302
2293
|
* See the License for the specific language governing permissions and
|
|
2303
2294
|
* limitations under the License.
|
|
2304
2295
|
*/
|
|
2305
|
-
class k extends
|
|
2296
|
+
class k extends K {
|
|
2306
2297
|
constructor() {
|
|
2307
2298
|
super(
|
|
2308
2299
|
"github.com"
|
|
@@ -2366,7 +2357,7 @@ k.PROVIDER_ID = "github.com";
|
|
|
2366
2357
|
* See the License for the specific language governing permissions and
|
|
2367
2358
|
* limitations under the License.
|
|
2368
2359
|
*/
|
|
2369
|
-
class R extends
|
|
2360
|
+
class R extends K {
|
|
2370
2361
|
constructor() {
|
|
2371
2362
|
super(
|
|
2372
2363
|
"twitter.com"
|
|
@@ -2482,7 +2473,7 @@ function We(n) {
|
|
|
2482
2473
|
* See the License for the specific language governing permissions and
|
|
2483
2474
|
* limitations under the License.
|
|
2484
2475
|
*/
|
|
2485
|
-
class Z extends
|
|
2476
|
+
class Z extends me {
|
|
2486
2477
|
constructor(e, t, i, r) {
|
|
2487
2478
|
var s;
|
|
2488
2479
|
super(t.code, t.message), this.operationType = i, this.user = r, Object.setPrototypeOf(this, Z.prototype), this.customData = {
|
|
@@ -3110,7 +3101,7 @@ function pi() {
|
|
|
3110
3101
|
* limitations under the License.
|
|
3111
3102
|
*/
|
|
3112
3103
|
const Nt = "firebaseLocalStorageDb", gi = 1, te = "firebaseLocalStorage", Ot = "fbase_key";
|
|
3113
|
-
class
|
|
3104
|
+
class $ {
|
|
3114
3105
|
constructor(e) {
|
|
3115
3106
|
this.request = e;
|
|
3116
3107
|
}
|
|
@@ -3129,7 +3120,7 @@ function re(n, e) {
|
|
|
3129
3120
|
}
|
|
3130
3121
|
function mi() {
|
|
3131
3122
|
const n = indexedDB.deleteDatabase(Nt);
|
|
3132
|
-
return new
|
|
3123
|
+
return new $(n).toPromise();
|
|
3133
3124
|
}
|
|
3134
3125
|
function fe() {
|
|
3135
3126
|
const n = indexedDB.open(Nt, gi);
|
|
@@ -3154,15 +3145,15 @@ async function He(n, e, t) {
|
|
|
3154
3145
|
[Ot]: e,
|
|
3155
3146
|
value: t
|
|
3156
3147
|
});
|
|
3157
|
-
return new
|
|
3148
|
+
return new $(i).toPromise();
|
|
3158
3149
|
}
|
|
3159
3150
|
async function _i(n, e) {
|
|
3160
|
-
const t = re(n, !1).get(e), i = await new
|
|
3151
|
+
const t = re(n, !1).get(e), i = await new $(t).toPromise();
|
|
3161
3152
|
return i === void 0 ? null : i.value;
|
|
3162
3153
|
}
|
|
3163
|
-
function
|
|
3154
|
+
function Ke(n, e) {
|
|
3164
3155
|
const t = re(n, !0).delete(e);
|
|
3165
|
-
return new
|
|
3156
|
+
return new $(t).toPromise();
|
|
3166
3157
|
}
|
|
3167
3158
|
const vi = 800, Ii = 3;
|
|
3168
3159
|
class Lt {
|
|
@@ -3254,7 +3245,7 @@ class Lt {
|
|
|
3254
3245
|
if (!indexedDB)
|
|
3255
3246
|
return !1;
|
|
3256
3247
|
const e = await fe();
|
|
3257
|
-
return await He(e, ee, "1"), await
|
|
3248
|
+
return await He(e, ee, "1"), await Ke(e, ee), !0;
|
|
3258
3249
|
} catch {
|
|
3259
3250
|
}
|
|
3260
3251
|
return !1;
|
|
@@ -3275,12 +3266,12 @@ class Lt {
|
|
|
3275
3266
|
return this.localCache[e] = t, t;
|
|
3276
3267
|
}
|
|
3277
3268
|
async _remove(e) {
|
|
3278
|
-
return this._withPendingWrite(async () => (await this._withRetries((t) =>
|
|
3269
|
+
return this._withPendingWrite(async () => (await this._withRetries((t) => Ke(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
|
|
3279
3270
|
}
|
|
3280
3271
|
async _poll() {
|
|
3281
3272
|
const e = await this._withRetries((r) => {
|
|
3282
3273
|
const s = re(r, !1).getAll();
|
|
3283
|
-
return new
|
|
3274
|
+
return new $(s).toPromise();
|
|
3284
3275
|
});
|
|
3285
3276
|
if (!e)
|
|
3286
3277
|
return [];
|
|
@@ -3653,7 +3644,7 @@ function Pi(n) {
|
|
|
3653
3644
|
return v(n._redirectPersistence);
|
|
3654
3645
|
}
|
|
3655
3646
|
function Ni(n) {
|
|
3656
|
-
return
|
|
3647
|
+
return G(bi, n.config.apiKey, n.name);
|
|
3657
3648
|
}
|
|
3658
3649
|
async function Oi(n, e, t = !1) {
|
|
3659
3650
|
const i = H(n), r = Ti(i, e), o = await new Si(i, r, t).execute();
|
|
@@ -3707,13 +3698,13 @@ class Mi {
|
|
|
3707
3698
|
return t.filter.includes(e.type) && i;
|
|
3708
3699
|
}
|
|
3709
3700
|
hasEventBeenHandled(e) {
|
|
3710
|
-
return Date.now() - this.lastProcessedEventTime >= Li && this.cachedEventUids.clear(), this.cachedEventUids.has(
|
|
3701
|
+
return Date.now() - this.lastProcessedEventTime >= Li && this.cachedEventUids.clear(), this.cachedEventUids.has($e(e));
|
|
3711
3702
|
}
|
|
3712
3703
|
saveEventToCache(e) {
|
|
3713
|
-
this.cachedEventUids.add(
|
|
3704
|
+
this.cachedEventUids.add($e(e)), this.lastProcessedEventTime = Date.now();
|
|
3714
3705
|
}
|
|
3715
3706
|
}
|
|
3716
|
-
function
|
|
3707
|
+
function $e(n) {
|
|
3717
3708
|
return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
|
|
3718
3709
|
}
|
|
3719
3710
|
function Ut({ type: n, error: e }) {
|
|
@@ -3822,7 +3813,7 @@ function Be() {
|
|
|
3822
3813
|
n.CP[t] = null;
|
|
3823
3814
|
}
|
|
3824
3815
|
}
|
|
3825
|
-
function
|
|
3816
|
+
function Ki(n) {
|
|
3826
3817
|
return new Promise((e, t) => {
|
|
3827
3818
|
var i, r, s;
|
|
3828
3819
|
function o() {
|
|
@@ -3855,12 +3846,12 @@ function $i(n) {
|
|
|
3855
3846
|
}, Tt(`https://apis.google.com/js/api.js?onload=${c}`).catch((a) => t(a));
|
|
3856
3847
|
}
|
|
3857
3848
|
}).catch((e) => {
|
|
3858
|
-
throw
|
|
3849
|
+
throw X = null, e;
|
|
3859
3850
|
});
|
|
3860
3851
|
}
|
|
3861
|
-
let
|
|
3862
|
-
function
|
|
3863
|
-
return
|
|
3852
|
+
let X = null;
|
|
3853
|
+
function $i(n) {
|
|
3854
|
+
return X = X || Ki(n), X;
|
|
3864
3855
|
}
|
|
3865
3856
|
/**
|
|
3866
3857
|
* @license
|
|
@@ -3878,7 +3869,7 @@ function ji(n) {
|
|
|
3878
3869
|
* See the License for the specific language governing permissions and
|
|
3879
3870
|
* limitations under the License.
|
|
3880
3871
|
*/
|
|
3881
|
-
const Bi = new V(5e3, 15e3),
|
|
3872
|
+
const Bi = new V(5e3, 15e3), zi = "__/auth/iframe", ji = "emulator/auth/iframe", qi = {
|
|
3882
3873
|
style: {
|
|
3883
3874
|
position: "absolute",
|
|
3884
3875
|
top: "-100px",
|
|
@@ -3887,7 +3878,7 @@ const Bi = new V(5e3, 15e3), Ki = "__/auth/iframe", qi = "emulator/auth/iframe",
|
|
|
3887
3878
|
},
|
|
3888
3879
|
"aria-hidden": "true",
|
|
3889
3880
|
tabindex: "-1"
|
|
3890
|
-
},
|
|
3881
|
+
}, Gi = /* @__PURE__ */ new Map([
|
|
3891
3882
|
["identitytoolkit.googleapis.com", "p"],
|
|
3892
3883
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
|
3893
3884
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
|
@@ -3901,17 +3892,17 @@ function Ji(n) {
|
|
|
3901
3892
|
"auth-domain-config-required"
|
|
3902
3893
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
3903
3894
|
);
|
|
3904
|
-
const t = e.emulator ? ve(e,
|
|
3895
|
+
const t = e.emulator ? ve(e, ji) : `https://${n.config.authDomain}/${zi}`, i = {
|
|
3905
3896
|
apiKey: e.apiKey,
|
|
3906
3897
|
appName: n.name,
|
|
3907
3898
|
v: F
|
|
3908
|
-
}, r =
|
|
3899
|
+
}, r = Gi.get(n.config.apiHost);
|
|
3909
3900
|
r && (i.eid = r);
|
|
3910
3901
|
const s = n._getFrameworks();
|
|
3911
3902
|
return s.length && (i.fw = s.join(",")), `${t}?${x(i).slice(1)}`;
|
|
3912
3903
|
}
|
|
3913
|
-
async function
|
|
3914
|
-
const e = await
|
|
3904
|
+
async function Xi(n) {
|
|
3905
|
+
const e = await $i(n), t = m().gapi;
|
|
3915
3906
|
return u(
|
|
3916
3907
|
t,
|
|
3917
3908
|
n,
|
|
@@ -3921,7 +3912,7 @@ async function Yi(n) {
|
|
|
3921
3912
|
where: document.body,
|
|
3922
3913
|
url: Ji(n),
|
|
3923
3914
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
|
3924
|
-
attributes:
|
|
3915
|
+
attributes: qi,
|
|
3925
3916
|
dontclear: !0
|
|
3926
3917
|
}, (i) => new Promise(async (r, s) => {
|
|
3927
3918
|
await i.restyle({
|
|
@@ -3959,13 +3950,13 @@ async function Yi(n) {
|
|
|
3959
3950
|
* See the License for the specific language governing permissions and
|
|
3960
3951
|
* limitations under the License.
|
|
3961
3952
|
*/
|
|
3962
|
-
const
|
|
3953
|
+
const Yi = {
|
|
3963
3954
|
location: "yes",
|
|
3964
3955
|
resizable: "yes",
|
|
3965
3956
|
statusbar: "yes",
|
|
3966
3957
|
toolbar: "no"
|
|
3967
3958
|
}, Qi = 500, Zi = 600, er = "_blank", tr = "http://localhost";
|
|
3968
|
-
class
|
|
3959
|
+
class ze {
|
|
3969
3960
|
constructor(e) {
|
|
3970
3961
|
this.window = e, this.associatedEvent = null;
|
|
3971
3962
|
}
|
|
@@ -3980,16 +3971,16 @@ class Ke {
|
|
|
3980
3971
|
function nr(n, e, t, i = Qi, r = Zi) {
|
|
3981
3972
|
const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
|
|
3982
3973
|
let c = "";
|
|
3983
|
-
const a = Object.assign(Object.assign({},
|
|
3974
|
+
const a = Object.assign(Object.assign({}, Yi), {
|
|
3984
3975
|
width: i.toString(),
|
|
3985
3976
|
height: r.toString(),
|
|
3986
3977
|
top: s,
|
|
3987
3978
|
left: o
|
|
3988
3979
|
}), l = f().toLowerCase();
|
|
3989
3980
|
t && (c = ht(l) ? er : t), dt(l) && (e = e || tr, a.scrollbars = "yes");
|
|
3990
|
-
const d = Object.entries(a).reduce((p, [B,
|
|
3981
|
+
const d = Object.entries(a).reduce((p, [B, z]) => `${p}${B}=${z},`, "");
|
|
3991
3982
|
if (Un(l) && c !== "_self")
|
|
3992
|
-
return ir(e || "", c), new
|
|
3983
|
+
return ir(e || "", c), new ze(null);
|
|
3993
3984
|
const h = window.open(e || "", c, d);
|
|
3994
3985
|
u(
|
|
3995
3986
|
h,
|
|
@@ -4001,7 +3992,7 @@ function nr(n, e, t, i = Qi, r = Zi) {
|
|
|
4001
3992
|
h.focus();
|
|
4002
3993
|
} catch {
|
|
4003
3994
|
}
|
|
4004
|
-
return new
|
|
3995
|
+
return new ze(h);
|
|
4005
3996
|
}
|
|
4006
3997
|
function ir(n, e) {
|
|
4007
3998
|
const t = document.createElement("a");
|
|
@@ -4026,7 +4017,7 @@ function ir(n, e) {
|
|
|
4026
4017
|
* limitations under the License.
|
|
4027
4018
|
*/
|
|
4028
4019
|
const rr = "__/auth/handler", sr = "emulator/auth/handler", or = encodeURIComponent("fac");
|
|
4029
|
-
async function
|
|
4020
|
+
async function je(n, e, t, i, r, s) {
|
|
4030
4021
|
u(
|
|
4031
4022
|
n.config.authDomain,
|
|
4032
4023
|
n,
|
|
@@ -4051,7 +4042,7 @@ async function qe(n, e, t, i, r, s) {
|
|
|
4051
4042
|
for (const [d, h] of Object.entries(s || {}))
|
|
4052
4043
|
o[d] = h;
|
|
4053
4044
|
}
|
|
4054
|
-
if (e instanceof
|
|
4045
|
+
if (e instanceof K) {
|
|
4055
4046
|
const d = e.getScopes().filter((h) => h !== "");
|
|
4056
4047
|
d.length > 0 && (o.scopes = d.join(","));
|
|
4057
4048
|
}
|
|
@@ -4091,12 +4082,12 @@ class cr {
|
|
|
4091
4082
|
async _openPopup(e, t, i, r) {
|
|
4092
4083
|
var s;
|
|
4093
4084
|
y((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
4094
|
-
const o = await
|
|
4085
|
+
const o = await je(e, t, i, he(), r);
|
|
4095
4086
|
return nr(e, o, we());
|
|
4096
4087
|
}
|
|
4097
4088
|
async _openRedirect(e, t, i, r) {
|
|
4098
4089
|
await this._originValidation(e);
|
|
4099
|
-
const s = await
|
|
4090
|
+
const s = await je(e, t, i, he(), r);
|
|
4100
4091
|
return di(s), new Promise(() => {
|
|
4101
4092
|
});
|
|
4102
4093
|
}
|
|
@@ -4112,7 +4103,7 @@ class cr {
|
|
|
4112
4103
|
}), i;
|
|
4113
4104
|
}
|
|
4114
4105
|
async initAndGetManager(e) {
|
|
4115
|
-
const t = await
|
|
4106
|
+
const t = await Xi(e), i = new Mi(e);
|
|
4116
4107
|
return t.register("authEvent", (r) => (u(
|
|
4117
4108
|
r == null ? void 0 : r.authEvent,
|
|
4118
4109
|
e,
|
|
@@ -4143,7 +4134,7 @@ class cr {
|
|
|
4143
4134
|
}
|
|
4144
4135
|
}
|
|
4145
4136
|
const lr = cr;
|
|
4146
|
-
var
|
|
4137
|
+
var qe = "@firebase/auth", Ge = "0.23.2";
|
|
4147
4138
|
/**
|
|
4148
4139
|
* @license
|
|
4149
4140
|
* Copyright 2020 Google LLC
|
|
@@ -4239,8 +4230,8 @@ function hr(n) {
|
|
|
4239
4230
|
tokenApiHost: "securetoken.googleapis.com",
|
|
4240
4231
|
apiScheme: "https",
|
|
4241
4232
|
sdkClientVersion: vt(n)
|
|
4242
|
-
}, l = new
|
|
4243
|
-
return
|
|
4233
|
+
}, l = new zn(i, r, s, a);
|
|
4234
|
+
return qn(l, t), l;
|
|
4244
4235
|
},
|
|
4245
4236
|
"PUBLIC"
|
|
4246
4237
|
/* ComponentType.PUBLIC */
|
|
@@ -4266,7 +4257,7 @@ function hr(n) {
|
|
|
4266
4257
|
).setInstantiationMode(
|
|
4267
4258
|
"EXPLICIT"
|
|
4268
4259
|
/* InstantiationMode.EXPLICIT */
|
|
4269
|
-
)), de(
|
|
4260
|
+
)), de(qe, Ge, dr(n)), de(qe, Ge, "esm2017");
|
|
4270
4261
|
}
|
|
4271
4262
|
/**
|
|
4272
4263
|
* @license
|
|
@@ -4302,7 +4293,7 @@ function mr(n = tn()) {
|
|
|
4302
4293
|
const e = tt(n, "auth");
|
|
4303
4294
|
if (e.isInitialized())
|
|
4304
4295
|
return e.getImmediate();
|
|
4305
|
-
const t =
|
|
4296
|
+
const t = jn(n, {
|
|
4306
4297
|
popupRedirectResolver: lr,
|
|
4307
4298
|
persistence: [
|
|
4308
4299
|
yi,
|
|
@@ -4315,7 +4306,7 @@ function mr(n = tn()) {
|
|
|
4315
4306
|
ri(t, s, () => s(t.currentUser)), ii(t, (o) => s(o));
|
|
4316
4307
|
}
|
|
4317
4308
|
const r = en("auth");
|
|
4318
|
-
return r &&
|
|
4309
|
+
return r && Gn(t, `http://${r}`), t;
|
|
4319
4310
|
}
|
|
4320
4311
|
hr(
|
|
4321
4312
|
"Browser"
|
|
@@ -4324,7 +4315,7 @@ hr(
|
|
|
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 {
|