@feedmepos/mf-settings 0.0.50-prod → 0.0.51

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