@feedmepos/mf-settings 0.0.60-prod → 0.0.61-beta.1

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