@feedmepos/mf-settings 0.0.48-beta.1-ex → 0.0.48

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