@feedmepos/mf-settings 0.0.48-beta.1 → 0.0.49-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.
@@ -1,10 +1,10 @@
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-ce0bb813.js";
5
- import { c as zt } from "./index-1eb3cc0a.js";
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 $t } from "vue";
2
+ import { useRouter as Kt, RouterView as jt } from "vue-router";
3
+ import { useI18n as Bt, useCoreStore as Ze, FeedMeAuth as zt } from "@feedmepos/mf-common";
4
+ import { r as qt } from "./app-53ec4ba9.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 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";
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 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";
@@ -17,11 +17,11 @@ function me(n, e) {
17
17
  e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(n, i[r]) && (t[i[r]] = n[i[r]]);
18
18
  return t;
19
19
  }
20
- const fn = /* @__PURE__ */ Ye({
20
+ const fn = /* @__PURE__ */ Xe({
21
21
  __name: "NavigationTab",
22
22
  emits: ["close-navigation"],
23
23
  setup(n, { emit: e }) {
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) => {
24
+ const t = e, { t: i } = Bt(), r = Kt(), 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
25
  var h;
26
26
  return d.redirect || (h = d.meta) != null && h.hideNavigation ? !1 : !(d.name === "$settings-template-builder" && !o.value);
27
27
  }).map((d) => {
@@ -40,7 +40,7 @@ const fn = /* @__PURE__ */ Ye({
40
40
  l === "SUBMISSION" ? a.value = "$settings-e-invoice" : l === "$devices" ? a.value = "$settings-device" : a.value = l;
41
41
  }), (l, d) => {
42
42
  const h = Wt("fm-collapsible-tabs");
43
- return Xe(), Qe(h, {
43
+ return Ye(), Qe(h, {
44
44
  modelValue: a.value,
45
45
  "onUpdate:modelValue": d[0] || (d[0] = (p) => a.value = p),
46
46
  items: c.value,
@@ -123,12 +123,12 @@ const mn = it, rt = new pe("auth", "Firebase", it());
123
123
  * See the License for the specific language governing permissions and
124
124
  * limitations under the License.
125
125
  */
126
- const X = new rn("@firebase/auth");
126
+ const Y = new rn("@firebase/auth");
127
127
  function _n(n, ...e) {
128
- X.logLevel <= nt.WARN && X.warn(`Auth (${F}): ${n}`, ...e);
128
+ Y.logLevel <= nt.WARN && Y.warn(`Auth (${F}): ${n}`, ...e);
129
129
  }
130
- function G(n, ...e) {
131
- X.logLevel <= nt.ERROR && X.error(`Auth (${F}): ${n}`, ...e);
130
+ function q(n, ...e) {
131
+ Y.logLevel <= nt.ERROR && Y.error(`Auth (${F}): ${n}`, ...e);
132
132
  }
133
133
  /**
134
134
  * @license
@@ -171,7 +171,7 @@ function u(n, e, ...t) {
171
171
  }
172
172
  function _(n) {
173
173
  const e = "INTERNAL ASSERTION FAILED: " + n;
174
- throw G(e), new Error(e);
174
+ throw q(e), new Error(e);
175
175
  }
176
176
  function y(n, e) {
177
177
  n || _(e);
@@ -257,7 +257,7 @@ function Tn() {
257
257
  */
258
258
  class V {
259
259
  constructor(e, t) {
260
- this.shortDelay = e, this.longDelay = t, y(t > e, "Short delay should be less than long delay!"), this.isMobile = Yt() || Xt();
260
+ this.shortDelay = e, this.longDelay = t, y(t > e, "Short delay should be less than long delay!"), this.isMobile = Xt() || Yt();
261
261
  }
262
262
  get() {
263
263
  return yn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
@@ -464,17 +464,17 @@ async function ot(n, e, t) {
464
464
  r.clearNetworkTimeout();
465
465
  const o = await s.json();
466
466
  if ("needConfirmation" in o)
467
- throw q(n, "account-exists-with-different-credential", o);
467
+ throw z(n, "account-exists-with-different-credential", o);
468
468
  if (s.ok && !("errorMessage" in o))
469
469
  return o;
470
470
  {
471
471
  const c = s.ok ? o.errorMessage : o.error.message, [a, l] = c.split(" : ");
472
472
  if (a === "FEDERATED_USER_ID_ALREADY_LINKED")
473
- throw q(n, "credential-already-in-use", o);
473
+ throw z(n, "credential-already-in-use", o);
474
474
  if (a === "EMAIL_EXISTS")
475
- throw q(n, "email-already-in-use", o);
475
+ throw z(n, "email-already-in-use", o);
476
476
  if (a === "USER_DISABLED")
477
- throw q(n, "user-disabled", o);
477
+ throw z(n, "user-disabled", o);
478
478
  const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
479
479
  if (l)
480
480
  throw vn(n, d, l);
@@ -510,7 +510,7 @@ class kn {
510
510
  clearTimeout(this.timer);
511
511
  }
512
512
  }
513
- function q(n, e, t) {
513
+ function z(n, e, t) {
514
514
  const i = {
515
515
  appName: n.name
516
516
  };
@@ -590,12 +590,12 @@ function le(n) {
590
590
  function ye(n) {
591
591
  const [e, t, i] = n.split(".");
592
592
  if (e === void 0 || t === void 0 || i === void 0)
593
- return G("JWT malformed, contained fewer than 3 sections"), null;
593
+ return q("JWT malformed, contained fewer than 3 sections"), null;
594
594
  try {
595
595
  const r = sn(t);
596
- return r ? JSON.parse(r) : (G("Failed to decode base64 JWT payload"), null);
596
+ return r ? JSON.parse(r) : (q("Failed to decode base64 JWT payload"), null);
597
597
  } catch (r) {
598
- return G("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
598
+ return q("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
599
599
  }
600
600
  }
601
601
  function An(n) {
@@ -1022,7 +1022,7 @@ class b {
1022
1022
  }
1023
1023
  static _fromJSON(e, t) {
1024
1024
  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, 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;
1025
+ const h = (i = t.displayName) !== null && i !== void 0 ? i : void 0, p = (r = t.email) !== null && r !== void 0 ? r : void 0, j = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, B = (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
1026
  u(
1027
1027
  oe && Ce,
1028
1028
  e,
@@ -1045,7 +1045,7 @@ class b {
1045
1045
  e,
1046
1046
  "internal-error"
1047
1047
  /* AuthErrorCode.INTERNAL_ERROR */
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);
1048
+ ), T(j, e.name), T(B, e.name), T(ke, e.name), T(se, e.name), T(Re, e.name), T(be, e.name);
1049
1049
  const ce = new b({
1050
1050
  uid: oe,
1051
1051
  auth: e,
@@ -1053,8 +1053,8 @@ class b {
1053
1053
  emailVerified: Se,
1054
1054
  displayName: h,
1055
1055
  isAnonymous: Ae,
1056
- photoURL: K,
1057
- phoneNumber: B,
1056
+ photoURL: B,
1057
+ phoneNumber: j,
1058
1058
  tenantId: ke,
1059
1059
  stsTokenManager: Dt,
1060
1060
  createdAt: Re,
@@ -1157,14 +1157,14 @@ const Ue = ut;
1157
1157
  * See the License for the specific language governing permissions and
1158
1158
  * limitations under the License.
1159
1159
  */
1160
- function z(n, e, t) {
1160
+ function G(n, e, t) {
1161
1161
  return `firebase:${n}:${e}:${t}`;
1162
1162
  }
1163
1163
  class P {
1164
1164
  constructor(e, t, i) {
1165
1165
  this.persistence = e, this.auth = t, this.userKey = i;
1166
1166
  const { config: r, name: s } = this.auth;
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);
1167
+ 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
1168
  }
1169
1169
  setCurrentUser(e) {
1170
1170
  return this.persistence._set(this.fullUserKey, e.toJSON());
@@ -1197,7 +1197,7 @@ class P {
1197
1197
  return l;
1198
1198
  }))).filter((l) => l);
1199
1199
  let s = r[0] || v(Ue);
1200
- const o = z(i, e.config.apiKey, e.name);
1200
+ const o = G(i, e.config.apiKey, e.name);
1201
1201
  let c = null;
1202
1202
  for (const l of t)
1203
1203
  try {
@@ -1388,7 +1388,7 @@ function Vn(n) {
1388
1388
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
1389
1389
  }
1390
1390
  const Wn = "https://www.google.com/recaptcha/enterprise.js?render=", Hn = "recaptcha-enterprise", $n = "NO_RECAPTCHA";
1391
- class jn {
1391
+ class Kn {
1392
1392
  /**
1393
1393
  *
1394
1394
  * @param authExtern - The corresponding Firebase {@link Auth} instance.
@@ -1474,7 +1474,7 @@ class jn {
1474
1474
  * See the License for the specific language governing permissions and
1475
1475
  * limitations under the License.
1476
1476
  */
1477
- class Bn {
1477
+ class jn {
1478
1478
  constructor(e) {
1479
1479
  this.auth = e, this.queue = [];
1480
1480
  }
@@ -1529,9 +1529,9 @@ class Bn {
1529
1529
  * See the License for the specific language governing permissions and
1530
1530
  * limitations under the License.
1531
1531
  */
1532
- class Kn {
1532
+ class Bn {
1533
1533
  constructor(e, t, i, r) {
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;
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 jn(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
1535
  }
1536
1536
  _initializeWithPersistence(e, t) {
1537
1537
  return t && (this._popupRedirectResolver = v(t)), this._initializationPromise = this.queue(async () => {
@@ -1654,7 +1654,7 @@ class Kn {
1654
1654
  version: "RECAPTCHA_ENTERPRISE"
1655
1655
  /* RecaptchaVersion.ENTERPRISE */
1656
1656
  }), t = new yt(e);
1657
- this.tenantId == null ? this._agentRecaptchaConfig = t : this._tenantRecaptchaConfigs[this.tenantId] = t, t.emailPasswordEnabled && new jn(this).verify();
1657
+ this.tenantId == null ? this._agentRecaptchaConfig = t : this._tenantRecaptchaConfigs[this.tenantId] = t, t.emailPasswordEnabled && new Kn(this).verify();
1658
1658
  }
1659
1659
  _getRecaptchaConfig() {
1660
1660
  return this.tenantId == null ? this._agentRecaptchaConfig : this._tenantRecaptchaConfigs[this.tenantId];
@@ -1835,7 +1835,7 @@ class xe {
1835
1835
  * See the License for the specific language governing permissions and
1836
1836
  * limitations under the License.
1837
1837
  */
1838
- function qn(n, e) {
1838
+ function zn(n, e) {
1839
1839
  const t = tt(n, "auth");
1840
1840
  if (t.isInitialized()) {
1841
1841
  const r = t.getImmediate(), s = t.getOptions();
@@ -1849,11 +1849,11 @@ function qn(n, e) {
1849
1849
  }
1850
1850
  return t.initialize({ options: e });
1851
1851
  }
1852
- function Gn(n, e) {
1852
+ function qn(n, e) {
1853
1853
  const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(v);
1854
1854
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
1855
1855
  }
1856
- function zn(n, e, t) {
1856
+ function Gn(n, e, t) {
1857
1857
  const i = H(n);
1858
1858
  u(
1859
1859
  i._canInitEmulator,
@@ -1872,7 +1872,7 @@ function zn(n, e, t) {
1872
1872
  port: c,
1873
1873
  protocol: s.replace(":", ""),
1874
1874
  options: Object.freeze({ disableWarnings: r })
1875
- }), r || Yn();
1875
+ }), r || Xn();
1876
1876
  }
1877
1877
  function wt(n) {
1878
1878
  const e = n.indexOf(":");
@@ -1897,7 +1897,7 @@ function Ve(n) {
1897
1897
  const e = Number(n);
1898
1898
  return isNaN(e) ? null : e;
1899
1899
  }
1900
- function Yn() {
1900
+ function Xn() {
1901
1901
  function n() {
1902
1902
  const e = document.createElement("p"), t = e.style;
1903
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);
@@ -1981,7 +1981,7 @@ async function N(n, e) {
1981
1981
  * See the License for the specific language governing permissions and
1982
1982
  * limitations under the License.
1983
1983
  */
1984
- const Xn = "http://localhost";
1984
+ const Yn = "http://localhost";
1985
1985
  class S extends Et {
1986
1986
  constructor() {
1987
1987
  super(...arguments), this.pendingToken = null;
@@ -2039,7 +2039,7 @@ class S extends Et {
2039
2039
  }
2040
2040
  buildRequest() {
2041
2041
  const e = {
2042
- requestUri: Xn,
2042
+ requestUri: Yn,
2043
2043
  returnSecureToken: !0
2044
2044
  };
2045
2045
  if (this.pendingToken)
@@ -3110,7 +3110,7 @@ function pi() {
3110
3110
  * limitations under the License.
3111
3111
  */
3112
3112
  const Nt = "firebaseLocalStorageDb", gi = 1, te = "firebaseLocalStorage", Ot = "fbase_key";
3113
- class j {
3113
+ class K {
3114
3114
  constructor(e) {
3115
3115
  this.request = e;
3116
3116
  }
@@ -3129,7 +3129,7 @@ function re(n, e) {
3129
3129
  }
3130
3130
  function mi() {
3131
3131
  const n = indexedDB.deleteDatabase(Nt);
3132
- return new j(n).toPromise();
3132
+ return new K(n).toPromise();
3133
3133
  }
3134
3134
  function fe() {
3135
3135
  const n = indexedDB.open(Nt, gi);
@@ -3154,15 +3154,15 @@ async function He(n, e, t) {
3154
3154
  [Ot]: e,
3155
3155
  value: t
3156
3156
  });
3157
- return new j(i).toPromise();
3157
+ return new K(i).toPromise();
3158
3158
  }
3159
3159
  async function _i(n, e) {
3160
- const t = re(n, !1).get(e), i = await new j(t).toPromise();
3160
+ const t = re(n, !1).get(e), i = await new K(t).toPromise();
3161
3161
  return i === void 0 ? null : i.value;
3162
3162
  }
3163
3163
  function $e(n, e) {
3164
3164
  const t = re(n, !0).delete(e);
3165
- return new j(t).toPromise();
3165
+ return new K(t).toPromise();
3166
3166
  }
3167
3167
  const vi = 800, Ii = 3;
3168
3168
  class Lt {
@@ -3280,7 +3280,7 @@ class Lt {
3280
3280
  async _poll() {
3281
3281
  const e = await this._withRetries((r) => {
3282
3282
  const s = re(r, !1).getAll();
3283
- return new j(s).toPromise();
3283
+ return new K(s).toPromise();
3284
3284
  });
3285
3285
  if (!e)
3286
3286
  return [];
@@ -3653,7 +3653,7 @@ function Pi(n) {
3653
3653
  return v(n._redirectPersistence);
3654
3654
  }
3655
3655
  function Ni(n) {
3656
- return z(bi, n.config.apiKey, n.name);
3656
+ return G(bi, n.config.apiKey, n.name);
3657
3657
  }
3658
3658
  async function Oi(n, e, t = !1) {
3659
3659
  const i = H(n), r = Ti(i, e), o = await new Si(i, r, t).execute();
@@ -3707,13 +3707,13 @@ class Mi {
3707
3707
  return t.filter.includes(e.type) && i;
3708
3708
  }
3709
3709
  hasEventBeenHandled(e) {
3710
- return Date.now() - this.lastProcessedEventTime >= Li && this.cachedEventUids.clear(), this.cachedEventUids.has(je(e));
3710
+ return Date.now() - this.lastProcessedEventTime >= Li && this.cachedEventUids.clear(), this.cachedEventUids.has(Ke(e));
3711
3711
  }
3712
3712
  saveEventToCache(e) {
3713
- this.cachedEventUids.add(je(e)), this.lastProcessedEventTime = Date.now();
3713
+ this.cachedEventUids.add(Ke(e)), this.lastProcessedEventTime = Date.now();
3714
3714
  }
3715
3715
  }
3716
- function je(n) {
3716
+ function Ke(n) {
3717
3717
  return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
3718
3718
  }
3719
3719
  function Ut({ type: n, error: e }) {
@@ -3813,7 +3813,7 @@ function Wi(n) {
3813
3813
  * limitations under the License.
3814
3814
  */
3815
3815
  const Hi = new V(3e4, 6e4);
3816
- function Be() {
3816
+ function je() {
3817
3817
  const n = m().___jsl;
3818
3818
  if (n != null && n.H) {
3819
3819
  for (const e of Object.keys(n.H))
@@ -3826,12 +3826,12 @@ function $i(n) {
3826
3826
  return new Promise((e, t) => {
3827
3827
  var i, r, s;
3828
3828
  function o() {
3829
- Be(), gapi.load("gapi.iframes", {
3829
+ je(), gapi.load("gapi.iframes", {
3830
3830
  callback: () => {
3831
3831
  e(gapi.iframes.getContext());
3832
3832
  },
3833
3833
  ontimeout: () => {
3834
- Be(), t(g(
3834
+ je(), t(g(
3835
3835
  n,
3836
3836
  "network-request-failed"
3837
3837
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -3855,12 +3855,12 @@ function $i(n) {
3855
3855
  }, Tt(`https://apis.google.com/js/api.js?onload=${c}`).catch((a) => t(a));
3856
3856
  }
3857
3857
  }).catch((e) => {
3858
- throw Y = null, e;
3858
+ throw X = null, e;
3859
3859
  });
3860
3860
  }
3861
- let Y = null;
3862
- function ji(n) {
3863
- return Y = Y || $i(n), Y;
3861
+ let X = null;
3862
+ function Ki(n) {
3863
+ return X = X || $i(n), X;
3864
3864
  }
3865
3865
  /**
3866
3866
  * @license
@@ -3878,7 +3878,7 @@ function ji(n) {
3878
3878
  * See the License for the specific language governing permissions and
3879
3879
  * limitations under the License.
3880
3880
  */
3881
- const Bi = new V(5e3, 15e3), Ki = "__/auth/iframe", qi = "emulator/auth/iframe", Gi = {
3881
+ const ji = new V(5e3, 15e3), Bi = "__/auth/iframe", zi = "emulator/auth/iframe", qi = {
3882
3882
  style: {
3883
3883
  position: "absolute",
3884
3884
  top: "-100px",
@@ -3887,7 +3887,7 @@ const Bi = new V(5e3, 15e3), Ki = "__/auth/iframe", qi = "emulator/auth/iframe",
3887
3887
  },
3888
3888
  "aria-hidden": "true",
3889
3889
  tabindex: "-1"
3890
- }, zi = /* @__PURE__ */ new Map([
3890
+ }, Gi = /* @__PURE__ */ new Map([
3891
3891
  ["identitytoolkit.googleapis.com", "p"],
3892
3892
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
3893
3893
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
@@ -3901,17 +3901,17 @@ function Ji(n) {
3901
3901
  "auth-domain-config-required"
3902
3902
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
3903
3903
  );
3904
- const t = e.emulator ? ve(e, qi) : `https://${n.config.authDomain}/${Ki}`, i = {
3904
+ const t = e.emulator ? ve(e, zi) : `https://${n.config.authDomain}/${Bi}`, i = {
3905
3905
  apiKey: e.apiKey,
3906
3906
  appName: n.name,
3907
3907
  v: F
3908
- }, r = zi.get(n.config.apiHost);
3908
+ }, r = Gi.get(n.config.apiHost);
3909
3909
  r && (i.eid = r);
3910
3910
  const s = n._getFrameworks();
3911
3911
  return s.length && (i.fw = s.join(",")), `${t}?${x(i).slice(1)}`;
3912
3912
  }
3913
- async function Yi(n) {
3914
- const e = await ji(n), t = m().gapi;
3913
+ async function Xi(n) {
3914
+ const e = await Ki(n), t = m().gapi;
3915
3915
  return u(
3916
3916
  t,
3917
3917
  n,
@@ -3921,7 +3921,7 @@ async function Yi(n) {
3921
3921
  where: document.body,
3922
3922
  url: Ji(n),
3923
3923
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
3924
- attributes: Gi,
3924
+ attributes: qi,
3925
3925
  dontclear: !0
3926
3926
  }, (i) => new Promise(async (r, s) => {
3927
3927
  await i.restyle({
@@ -3934,7 +3934,7 @@ async function Yi(n) {
3934
3934
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
3935
3935
  ), c = m().setTimeout(() => {
3936
3936
  s(o);
3937
- }, Bi.get());
3937
+ }, ji.get());
3938
3938
  function a() {
3939
3939
  m().clearTimeout(c), r(i);
3940
3940
  }
@@ -3959,13 +3959,13 @@ async function Yi(n) {
3959
3959
  * See the License for the specific language governing permissions and
3960
3960
  * limitations under the License.
3961
3961
  */
3962
- const Xi = {
3962
+ const Yi = {
3963
3963
  location: "yes",
3964
3964
  resizable: "yes",
3965
3965
  statusbar: "yes",
3966
3966
  toolbar: "no"
3967
3967
  }, Qi = 500, Zi = 600, er = "_blank", tr = "http://localhost";
3968
- class Ke {
3968
+ class Be {
3969
3969
  constructor(e) {
3970
3970
  this.window = e, this.associatedEvent = null;
3971
3971
  }
@@ -3980,16 +3980,16 @@ class Ke {
3980
3980
  function nr(n, e, t, i = Qi, r = Zi) {
3981
3981
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
3982
3982
  let c = "";
3983
- const a = Object.assign(Object.assign({}, Xi), {
3983
+ const a = Object.assign(Object.assign({}, Yi), {
3984
3984
  width: i.toString(),
3985
3985
  height: r.toString(),
3986
3986
  top: s,
3987
3987
  left: o
3988
3988
  }), l = f().toLowerCase();
3989
3989
  t && (c = ht(l) ? er : t), dt(l) && (e = e || tr, a.scrollbars = "yes");
3990
- const d = Object.entries(a).reduce((p, [B, K]) => `${p}${B}=${K},`, "");
3990
+ const d = Object.entries(a).reduce((p, [j, B]) => `${p}${j}=${B},`, "");
3991
3991
  if (Un(l) && c !== "_self")
3992
- return ir(e || "", c), new Ke(null);
3992
+ return ir(e || "", c), new Be(null);
3993
3993
  const h = window.open(e || "", c, d);
3994
3994
  u(
3995
3995
  h,
@@ -4001,7 +4001,7 @@ function nr(n, e, t, i = Qi, r = Zi) {
4001
4001
  h.focus();
4002
4002
  } catch {
4003
4003
  }
4004
- return new Ke(h);
4004
+ return new Be(h);
4005
4005
  }
4006
4006
  function ir(n, e) {
4007
4007
  const t = document.createElement("a");
@@ -4026,7 +4026,7 @@ function ir(n, e) {
4026
4026
  * limitations under the License.
4027
4027
  */
4028
4028
  const rr = "__/auth/handler", sr = "emulator/auth/handler", or = encodeURIComponent("fac");
4029
- async function qe(n, e, t, i, r, s) {
4029
+ async function ze(n, e, t, i, r, s) {
4030
4030
  u(
4031
4031
  n.config.authDomain,
4032
4032
  n,
@@ -4091,12 +4091,12 @@ class cr {
4091
4091
  async _openPopup(e, t, i, r) {
4092
4092
  var s;
4093
4093
  y((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4094
- const o = await qe(e, t, i, he(), r);
4094
+ const o = await ze(e, t, i, he(), r);
4095
4095
  return nr(e, o, we());
4096
4096
  }
4097
4097
  async _openRedirect(e, t, i, r) {
4098
4098
  await this._originValidation(e);
4099
- const s = await qe(e, t, i, he(), r);
4099
+ const s = await ze(e, t, i, he(), r);
4100
4100
  return di(s), new Promise(() => {
4101
4101
  });
4102
4102
  }
@@ -4112,7 +4112,7 @@ class cr {
4112
4112
  }), i;
4113
4113
  }
4114
4114
  async initAndGetManager(e) {
4115
- const t = await Yi(e), i = new Mi(e);
4115
+ const t = await Xi(e), i = new Mi(e);
4116
4116
  return t.register("authEvent", (r) => (u(
4117
4117
  r == null ? void 0 : r.authEvent,
4118
4118
  e,
@@ -4143,7 +4143,7 @@ class cr {
4143
4143
  }
4144
4144
  }
4145
4145
  const lr = cr;
4146
- var Ge = "@firebase/auth", ze = "0.23.2";
4146
+ var qe = "@firebase/auth", Ge = "0.23.2";
4147
4147
  /**
4148
4148
  * @license
4149
4149
  * Copyright 2020 Google LLC
@@ -4239,8 +4239,8 @@ function hr(n) {
4239
4239
  tokenApiHost: "securetoken.googleapis.com",
4240
4240
  apiScheme: "https",
4241
4241
  sdkClientVersion: vt(n)
4242
- }, l = new Kn(i, r, s, a);
4243
- return Gn(l, t), l;
4242
+ }, l = new Bn(i, r, s, a);
4243
+ return qn(l, t), l;
4244
4244
  },
4245
4245
  "PUBLIC"
4246
4246
  /* ComponentType.PUBLIC */
@@ -4266,7 +4266,7 @@ function hr(n) {
4266
4266
  ).setInstantiationMode(
4267
4267
  "EXPLICIT"
4268
4268
  /* InstantiationMode.EXPLICIT */
4269
- )), de(Ge, ze, dr(n)), de(Ge, ze, "esm2017");
4269
+ )), de(qe, Ge, dr(n)), de(qe, Ge, "esm2017");
4270
4270
  }
4271
4271
  /**
4272
4272
  * @license
@@ -4302,7 +4302,7 @@ function mr(n = tn()) {
4302
4302
  const e = tt(n, "auth");
4303
4303
  if (e.isInitialized())
4304
4304
  return e.getImmediate();
4305
- const t = qn(n, {
4305
+ const t = zn(n, {
4306
4306
  popupRedirectResolver: lr,
4307
4307
  persistence: [
4308
4308
  yi,
@@ -4315,7 +4315,7 @@ function mr(n = tn()) {
4315
4315
  ri(t, s, () => s(t.currentUser)), ii(t, (o) => s(o));
4316
4316
  }
4317
4317
  const r = en("auth");
4318
- return r && zn(t, `http://${r}`), t;
4318
+ return r && Gn(t, `http://${r}`), t;
4319
4319
  }
4320
4320
  hr(
4321
4321
  "Browser"
@@ -4324,7 +4324,7 @@ hr(
4324
4324
  async function _r() {
4325
4325
  if (cn().length)
4326
4326
  return;
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();
4327
+ 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 zt.getCustomToken(), t = mr();
4328
4328
  await ni(t, e), un(n);
4329
4329
  }
4330
4330
  async function vr() {
@@ -4338,13 +4338,13 @@ async function vr() {
4338
4338
  async function Ir() {
4339
4339
  await _r(), await vr();
4340
4340
  }
4341
- const Pr = /* @__PURE__ */ Ye({
4341
+ const Pr = /* @__PURE__ */ Xe({
4342
4342
  __name: "App",
4343
4343
  setup(n) {
4344
4344
  const e = Ze();
4345
4345
  return Ht(() => {
4346
4346
  e.registerSidebarComponent(fn), Ir();
4347
- }), (t, i) => (Xe(), Qe($t(Bt)));
4347
+ }), (t, i) => (Ye(), Qe($t(jt)));
4348
4348
  }
4349
4349
  });
4350
4350
  export {