@feedmepos/mf-mdm 1.9.1-beta.312 → 1.9.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,7 +1,7 @@
1
1
  import { defineComponent as jt, ref as Wt, watch as ue, onMounted as Ht, resolveComponent as Ue, openBlock as de, createElementBlock as Me, createBlock as qt, createVNode as zt, nextTick as $t } from "vue";
2
- import { r as pe, g as tt, i as Gt, a as Bt, _, b as De, C as Fe, c as nt, d as Kt, e as it, f as Jt, S as W, h as F, E as ve, j as Xt, k as Yt, L as rt, l as p, m as Qt, F as Ie, n as Zt, o as en, q as H, p as tn, s as nn, u as rn, t as sn, v as on, w as an } from "./index-d518302c.js";
2
+ import { r as pe, g as tt, i as Bt, a as Gt, _, b as De, C as Fe, c as nt, d as Kt, e as it, f as Jt, S as W, h as F, E as ve, j as Xt, k as Yt, L as rt, l as p, m as Qt, F as Ie, n as Zt, o as en, q as H, p as tn, s as nn, u as rn, t as sn, v as on, w as an } from "./index-4eb843c2.js";
3
3
  import { useCoreStore as cn } from "@feedmepos/mf-common";
4
- import "./app-caf42814.js";
4
+ import "./app-aaae58a3.js";
5
5
  import "vue-router";
6
6
  import "pinia";
7
7
  var ln = "firebase", un = "10.14.1";
@@ -57,7 +57,7 @@ const Y = new Qt("@firebase/auth");
57
57
  function hn(n, ...e) {
58
58
  Y.logLevel <= rt.WARN && Y.warn(`Auth (${W}): ${n}`, ...e);
59
59
  }
60
- function B(n, ...e) {
60
+ function G(n, ...e) {
61
61
  Y.logLevel <= rt.ERROR && Y.error(`Auth (${W}): ${n}`, ...e);
62
62
  }
63
63
  /**
@@ -104,7 +104,7 @@ function l(n, e, ...t) {
104
104
  }
105
105
  function v(n) {
106
106
  const e = "INTERNAL ASSERTION FAILED: " + n;
107
- throw B(e), new Error(e);
107
+ throw G(e), new Error(e);
108
108
  }
109
109
  function T(n, e) {
110
110
  n || v(e);
@@ -190,7 +190,7 @@ function gn() {
190
190
  */
191
191
  class q {
192
192
  constructor(e, t) {
193
- this.shortDelay = e, this.longDelay = t, T(t > e, "Short delay should be less than long delay!"), this.isMobile = Gt() || Bt();
193
+ this.shortDelay = e, this.longDelay = t, T(t > e, "Short delay should be less than long delay!"), this.isMobile = Bt() || Gt();
194
194
  }
195
195
  get() {
196
196
  return pn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
@@ -414,17 +414,17 @@ async function lt(n, e, t) {
414
414
  r.clearNetworkTimeout();
415
415
  const o = await s.json();
416
416
  if ("needConfirmation" in o)
417
- throw G(n, "account-exists-with-different-credential", o);
417
+ throw B(n, "account-exists-with-different-credential", o);
418
418
  if (s.ok && !("errorMessage" in o))
419
419
  return o;
420
420
  {
421
421
  const c = s.ok ? o.errorMessage : o.error.message, [a, u] = c.split(" : ");
422
422
  if (a === "FEDERATED_USER_ID_ALREADY_LINKED")
423
- throw G(n, "credential-already-in-use", o);
423
+ throw B(n, "credential-already-in-use", o);
424
424
  if (a === "EMAIL_EXISTS")
425
- throw G(n, "email-already-in-use", o);
425
+ throw B(n, "email-already-in-use", o);
426
426
  if (a === "USER_DISABLED")
427
- throw G(n, "user-disabled", o);
427
+ throw B(n, "user-disabled", o);
428
428
  const h = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
429
429
  if (u)
430
430
  throw at(n, h, u);
@@ -460,7 +460,7 @@ class vn {
460
460
  clearTimeout(this.timer);
461
461
  }
462
462
  }
463
- function G(n, e, t) {
463
+ function B(n, e, t) {
464
464
  const i = {
465
465
  appName: n.name
466
466
  };
@@ -540,12 +540,12 @@ function he(n) {
540
540
  function Ee(n) {
541
541
  const [e, t, i] = n.split(".");
542
542
  if (e === void 0 || t === void 0 || i === void 0)
543
- return B("JWT malformed, contained fewer than 3 sections"), null;
543
+ return G("JWT malformed, contained fewer than 3 sections"), null;
544
544
  try {
545
545
  const r = Zt(t);
546
- return r ? JSON.parse(r) : (B("Failed to decode base64 JWT payload"), null);
546
+ return r ? JSON.parse(r) : (G("Failed to decode base64 JWT payload"), null);
547
547
  } catch (r) {
548
- return B("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
548
+ return G("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
549
549
  }
550
550
  }
551
551
  function Ve(n) {
@@ -785,7 +785,7 @@ async function Sn(n, e) {
785
785
  refreshToken: t.refresh_token
786
786
  };
787
787
  }
788
- async function Pn(n, e) {
788
+ async function Rn(n, e) {
789
789
  return x(n, "POST", "/v2/accounts:revokeToken", ne(n, e));
790
790
  }
791
791
  /**
@@ -986,7 +986,7 @@ class I {
986
986
  }
987
987
  static _fromJSON(e, t) {
988
988
  var i, r, s, o, c, a, u, h;
989
- const d = (i = t.displayName) !== null && i !== void 0 ? i : void 0, f = (r = t.email) !== null && r !== void 0 ? r : void 0, E = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, N = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, be = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, oe = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, Ae = (u = t.createdAt) !== null && u !== void 0 ? u : void 0, Ce = (h = t.lastLoginAt) !== null && h !== void 0 ? h : void 0, { uid: ae, emailVerified: Oe, isAnonymous: Ne, providerData: ce, stsTokenManager: Le } = t;
989
+ const d = (i = t.displayName) !== null && i !== void 0 ? i : void 0, f = (r = t.email) !== null && r !== void 0 ? r : void 0, E = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, N = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, Pe = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, oe = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, Ae = (u = t.createdAt) !== null && u !== void 0 ? u : void 0, Ce = (h = t.lastLoginAt) !== null && h !== void 0 ? h : void 0, { uid: ae, emailVerified: Oe, isAnonymous: Ne, providerData: ce, stsTokenManager: Le } = t;
990
990
  l(
991
991
  ae && Le,
992
992
  e,
@@ -1009,7 +1009,7 @@ class I {
1009
1009
  e,
1010
1010
  "internal-error"
1011
1011
  /* AuthErrorCode.INTERNAL_ERROR */
1012
- ), k(E, e.name), k(N, e.name), k(be, e.name), k(oe, e.name), k(Ae, e.name), k(Ce, e.name);
1012
+ ), k(E, e.name), k(N, e.name), k(Pe, e.name), k(oe, e.name), k(Ae, e.name), k(Ce, e.name);
1013
1013
  const le = new I({
1014
1014
  uid: ae,
1015
1015
  auth: e,
@@ -1019,7 +1019,7 @@ class I {
1019
1019
  isAnonymous: Ne,
1020
1020
  photoURL: N,
1021
1021
  phoneNumber: E,
1022
- tenantId: be,
1022
+ tenantId: Pe,
1023
1023
  stsTokenManager: xt,
1024
1024
  createdAt: Ae,
1025
1025
  lastLoginAt: Ce
@@ -1288,11 +1288,11 @@ function yt(n = p()) {
1288
1288
  function ke(n = p()) {
1289
1289
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1290
1290
  }
1291
- function Rn(n = p()) {
1291
+ function bn(n = p()) {
1292
1292
  var e;
1293
1293
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1294
1294
  }
1295
- function bn() {
1295
+ function Pn() {
1296
1296
  return en() && document.documentMode === 10;
1297
1297
  }
1298
1298
  function Tt(n = p()) {
@@ -1694,7 +1694,7 @@ class Ln {
1694
1694
  token: e,
1695
1695
  idToken: t
1696
1696
  };
1697
- this.tenantId != null && (i.tenantId = this.tenantId), await Pn(this, i);
1697
+ this.tenantId != null && (i.tenantId = this.tenantId), await Rn(this, i);
1698
1698
  }
1699
1699
  }
1700
1700
  toJSON() {
@@ -2140,7 +2140,7 @@ class C extends St {
2140
2140
  * See the License for the specific language governing permissions and
2141
2141
  * limitations under the License.
2142
2142
  */
2143
- class Pt {
2143
+ class Rt {
2144
2144
  /**
2145
2145
  * Constructor for generic OAuth providers.
2146
2146
  *
@@ -2193,7 +2193,7 @@ class Pt {
2193
2193
  * See the License for the specific language governing permissions and
2194
2194
  * limitations under the License.
2195
2195
  */
2196
- class z extends Pt {
2196
+ class z extends Rt {
2197
2197
  constructor() {
2198
2198
  super(...arguments), this.scopes = [];
2199
2199
  }
@@ -2299,7 +2299,7 @@ S.PROVIDER_ID = "facebook.com";
2299
2299
  * See the License for the specific language governing permissions and
2300
2300
  * limitations under the License.
2301
2301
  */
2302
- class P extends z {
2302
+ class R extends z {
2303
2303
  constructor() {
2304
2304
  super(
2305
2305
  "google.com"
@@ -2321,8 +2321,8 @@ class P extends z {
2321
2321
  */
2322
2322
  static credential(e, t) {
2323
2323
  return C._fromParams({
2324
- providerId: P.PROVIDER_ID,
2325
- signInMethod: P.GOOGLE_SIGN_IN_METHOD,
2324
+ providerId: R.PROVIDER_ID,
2325
+ signInMethod: R.GOOGLE_SIGN_IN_METHOD,
2326
2326
  idToken: e,
2327
2327
  accessToken: t
2328
2328
  });
@@ -2333,7 +2333,7 @@ class P extends z {
2333
2333
  * @param userCredential - The user credential.
2334
2334
  */
2335
2335
  static credentialFromResult(e) {
2336
- return P.credentialFromTaggedObject(e);
2336
+ return R.credentialFromTaggedObject(e);
2337
2337
  }
2338
2338
  /**
2339
2339
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2342,7 +2342,7 @@ class P extends z {
2342
2342
  * @param userCredential - The user credential.
2343
2343
  */
2344
2344
  static credentialFromError(e) {
2345
- return P.credentialFromTaggedObject(e.customData || {});
2345
+ return R.credentialFromTaggedObject(e.customData || {});
2346
2346
  }
2347
2347
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2348
2348
  if (!e)
@@ -2351,14 +2351,14 @@ class P extends z {
2351
2351
  if (!t && !i)
2352
2352
  return null;
2353
2353
  try {
2354
- return P.credential(t, i);
2354
+ return R.credential(t, i);
2355
2355
  } catch {
2356
2356
  return null;
2357
2357
  }
2358
2358
  }
2359
2359
  }
2360
- P.GOOGLE_SIGN_IN_METHOD = "google.com";
2361
- P.PROVIDER_ID = "google.com";
2360
+ R.GOOGLE_SIGN_IN_METHOD = "google.com";
2361
+ R.PROVIDER_ID = "google.com";
2362
2362
  /**
2363
2363
  * @license
2364
2364
  * Copyright 2020 Google LLC
@@ -2375,7 +2375,7 @@ P.PROVIDER_ID = "google.com";
2375
2375
  * See the License for the specific language governing permissions and
2376
2376
  * limitations under the License.
2377
2377
  */
2378
- class R extends z {
2378
+ class b extends z {
2379
2379
  constructor() {
2380
2380
  super(
2381
2381
  "github.com"
@@ -2389,8 +2389,8 @@ class R extends z {
2389
2389
  */
2390
2390
  static credential(e) {
2391
2391
  return C._fromParams({
2392
- providerId: R.PROVIDER_ID,
2393
- signInMethod: R.GITHUB_SIGN_IN_METHOD,
2392
+ providerId: b.PROVIDER_ID,
2393
+ signInMethod: b.GITHUB_SIGN_IN_METHOD,
2394
2394
  accessToken: e
2395
2395
  });
2396
2396
  }
@@ -2400,7 +2400,7 @@ class R extends z {
2400
2400
  * @param userCredential - The user credential.
2401
2401
  */
2402
2402
  static credentialFromResult(e) {
2403
- return R.credentialFromTaggedObject(e);
2403
+ return b.credentialFromTaggedObject(e);
2404
2404
  }
2405
2405
  /**
2406
2406
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2409,20 +2409,20 @@ class R extends z {
2409
2409
  * @param userCredential - The user credential.
2410
2410
  */
2411
2411
  static credentialFromError(e) {
2412
- return R.credentialFromTaggedObject(e.customData || {});
2412
+ return b.credentialFromTaggedObject(e.customData || {});
2413
2413
  }
2414
2414
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2415
2415
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2416
2416
  return null;
2417
2417
  try {
2418
- return R.credential(e.oauthAccessToken);
2418
+ return b.credential(e.oauthAccessToken);
2419
2419
  } catch {
2420
2420
  return null;
2421
2421
  }
2422
2422
  }
2423
2423
  }
2424
- R.GITHUB_SIGN_IN_METHOD = "github.com";
2425
- R.PROVIDER_ID = "github.com";
2424
+ b.GITHUB_SIGN_IN_METHOD = "github.com";
2425
+ b.PROVIDER_ID = "github.com";
2426
2426
  /**
2427
2427
  * @license
2428
2428
  * Copyright 2020 Google LLC
@@ -2439,7 +2439,7 @@ R.PROVIDER_ID = "github.com";
2439
2439
  * See the License for the specific language governing permissions and
2440
2440
  * limitations under the License.
2441
2441
  */
2442
- class b extends z {
2442
+ class P extends z {
2443
2443
  constructor() {
2444
2444
  super(
2445
2445
  "twitter.com"
@@ -2454,8 +2454,8 @@ class b extends z {
2454
2454
  */
2455
2455
  static credential(e, t) {
2456
2456
  return C._fromParams({
2457
- providerId: b.PROVIDER_ID,
2458
- signInMethod: b.TWITTER_SIGN_IN_METHOD,
2457
+ providerId: P.PROVIDER_ID,
2458
+ signInMethod: P.TWITTER_SIGN_IN_METHOD,
2459
2459
  oauthToken: e,
2460
2460
  oauthTokenSecret: t
2461
2461
  });
@@ -2466,7 +2466,7 @@ class b extends z {
2466
2466
  * @param userCredential - The user credential.
2467
2467
  */
2468
2468
  static credentialFromResult(e) {
2469
- return b.credentialFromTaggedObject(e);
2469
+ return P.credentialFromTaggedObject(e);
2470
2470
  }
2471
2471
  /**
2472
2472
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2475,7 +2475,7 @@ class b extends z {
2475
2475
  * @param userCredential - The user credential.
2476
2476
  */
2477
2477
  static credentialFromError(e) {
2478
- return b.credentialFromTaggedObject(e.customData || {});
2478
+ return P.credentialFromTaggedObject(e.customData || {});
2479
2479
  }
2480
2480
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2481
2481
  if (!e)
@@ -2484,14 +2484,14 @@ class b extends z {
2484
2484
  if (!t || !i)
2485
2485
  return null;
2486
2486
  try {
2487
- return b.credential(t, i);
2487
+ return P.credential(t, i);
2488
2488
  } catch {
2489
2489
  return null;
2490
2490
  }
2491
2491
  }
2492
2492
  }
2493
- b.TWITTER_SIGN_IN_METHOD = "twitter.com";
2494
- b.PROVIDER_ID = "twitter.com";
2493
+ P.TWITTER_SIGN_IN_METHOD = "twitter.com";
2494
+ P.PROVIDER_ID = "twitter.com";
2495
2495
  /**
2496
2496
  * @license
2497
2497
  * Copyright 2020 Google LLC
@@ -2569,7 +2569,7 @@ class Z extends Ie {
2569
2569
  return new Z(e, t, i, r);
2570
2570
  }
2571
2571
  }
2572
- function Rt(n, e, t, i) {
2572
+ function bt(n, e, t, i) {
2573
2573
  return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
2574
2574
  throw s.code === "auth/multi-factor-auth-required" ? Z._fromErrorAndOperation(n, s, e, i) : s;
2575
2575
  });
@@ -2600,7 +2600,7 @@ async function $n(n, e, t = !1) {
2600
2600
  return Promise.reject(A(i));
2601
2601
  const r = "reauthenticate";
2602
2602
  try {
2603
- const s = await j(n, Rt(i, r, e, n), t);
2603
+ const s = await j(n, bt(i, r, e, n), t);
2604
2604
  l(
2605
2605
  s.idToken,
2606
2606
  i,
@@ -2645,10 +2645,10 @@ async function $n(n, e, t = !1) {
2645
2645
  * See the License for the specific language governing permissions and
2646
2646
  * limitations under the License.
2647
2647
  */
2648
- async function Gn(n, e, t = !1) {
2648
+ async function Bn(n, e, t = !1) {
2649
2649
  if (_(n.app))
2650
2650
  return Promise.reject(A(n));
2651
- const i = "signIn", r = await Rt(n, i, e), s = await O._fromIdTokenResponse(n, i, r);
2651
+ const i = "signIn", r = await bt(n, i, e), s = await O._fromIdTokenResponse(n, i, r);
2652
2652
  return t || await n._updateCurrentUser(s.user), s;
2653
2653
  }
2654
2654
  /**
@@ -2667,7 +2667,7 @@ async function Gn(n, e, t = !1) {
2667
2667
  * See the License for the specific language governing permissions and
2668
2668
  * limitations under the License.
2669
2669
  */
2670
- async function Bn(n, e) {
2670
+ async function Gn(n, e) {
2671
2671
  return ut(n, "POST", "/v1/accounts:signInWithCustomToken", ne(n, e));
2672
2672
  }
2673
2673
  /**
@@ -2689,7 +2689,7 @@ async function Bn(n, e) {
2689
2689
  async function Kn(n, e) {
2690
2690
  if (_(n.app))
2691
2691
  return Promise.reject(A(n));
2692
- const t = ie(n), i = await Bn(t, {
2692
+ const t = ie(n), i = await Gn(t, {
2693
2693
  token: e,
2694
2694
  returnSecureToken: !0
2695
2695
  }), r = await O._fromIdTokenResponse(t, "signIn", i);
@@ -2718,7 +2718,7 @@ const ee = "__sak";
2718
2718
  * See the License for the specific language governing permissions and
2719
2719
  * limitations under the License.
2720
2720
  */
2721
- class bt {
2721
+ class Pt {
2722
2722
  constructor(e, t) {
2723
2723
  this.storageRetriever = e, this.type = t;
2724
2724
  }
@@ -2760,7 +2760,7 @@ class bt {
2760
2760
  * limitations under the License.
2761
2761
  */
2762
2762
  const Yn = 1e3, Qn = 10;
2763
- class At extends bt {
2763
+ class At extends Pt {
2764
2764
  constructor() {
2765
2765
  super(
2766
2766
  () => window.localStorage,
@@ -2787,7 +2787,7 @@ class At extends bt {
2787
2787
  const o = this.storage.getItem(i);
2788
2788
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
2789
2789
  }, s = this.storage.getItem(i);
2790
- bn() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Qn) : r();
2790
+ Pn() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Qn) : r();
2791
2791
  }
2792
2792
  notifyListeners(e, t) {
2793
2793
  this.localCache[e] = t;
@@ -2856,7 +2856,7 @@ const Zn = At;
2856
2856
  * See the License for the specific language governing permissions and
2857
2857
  * limitations under the License.
2858
2858
  */
2859
- class Ct extends bt {
2859
+ class Ct extends Pt {
2860
2860
  constructor() {
2861
2861
  super(
2862
2862
  () => window.sessionStorage,
@@ -3003,7 +3003,7 @@ re.receivers = [];
3003
3003
  * See the License for the specific language governing permissions and
3004
3004
  * limitations under the License.
3005
3005
  */
3006
- function Pe(n = "", e = 10) {
3006
+ function Re(n = "", e = 10) {
3007
3007
  let t = "";
3008
3008
  for (let i = 0; i < e; i++)
3009
3009
  t += Math.floor(Math.random() * 10);
@@ -3059,7 +3059,7 @@ class ti {
3059
3059
  );
3060
3060
  let s, o;
3061
3061
  return new Promise((c, a) => {
3062
- const u = Pe("", 20);
3062
+ const u = Re("", 20);
3063
3063
  r.port1.start();
3064
3064
  const h = setTimeout(() => {
3065
3065
  a(new Error(
@@ -3219,7 +3219,7 @@ function _e() {
3219
3219
  });
3220
3220
  });
3221
3221
  }
3222
- async function Ge(n, e, t) {
3222
+ async function Be(n, e, t) {
3223
3223
  const i = se(n, !0).put({
3224
3224
  [Ut]: e,
3225
3225
  value: t
@@ -3230,7 +3230,7 @@ async function ci(n, e) {
3230
3230
  const t = se(n, !1).get(e), i = await new $(t).toPromise();
3231
3231
  return i === void 0 ? null : i.value;
3232
3232
  }
3233
- function Be(n, e) {
3233
+ function Ge(n, e) {
3234
3234
  const t = se(n, !0).delete(e);
3235
3235
  return new $(t).toPromise();
3236
3236
  }
@@ -3324,7 +3324,7 @@ class Mt {
3324
3324
  if (!indexedDB)
3325
3325
  return !1;
3326
3326
  const e = await _e();
3327
- return await Ge(e, ee, "1"), await Be(e, ee), !0;
3327
+ return await Be(e, ee, "1"), await Ge(e, ee), !0;
3328
3328
  } catch {
3329
3329
  }
3330
3330
  return !1;
@@ -3338,14 +3338,14 @@ class Mt {
3338
3338
  }
3339
3339
  }
3340
3340
  async _set(e, t) {
3341
- return this._withPendingWrite(async () => (await this._withRetries((i) => Ge(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3341
+ return this._withPendingWrite(async () => (await this._withRetries((i) => Be(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3342
3342
  }
3343
3343
  async _get(e) {
3344
3344
  const t = await this._withRetries((i) => ci(i, e));
3345
3345
  return this.localCache[e] = t, t;
3346
3346
  }
3347
3347
  async _remove(e) {
3348
- return this._withPendingWrite(async () => (await this._withRetries((t) => Be(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
3348
+ return this._withPendingWrite(async () => (await this._withRetries((t) => Ge(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
3349
3349
  }
3350
3350
  async _poll() {
3351
3351
  const e = await this._withRetries((r) => {
@@ -3427,7 +3427,7 @@ function hi(n, e) {
3427
3427
  * See the License for the specific language governing permissions and
3428
3428
  * limitations under the License.
3429
3429
  */
3430
- class Re extends St {
3430
+ class be extends St {
3431
3431
  constructor(e) {
3432
3432
  super(
3433
3433
  "custom",
@@ -3458,7 +3458,7 @@ class Re extends St {
3458
3458
  }
3459
3459
  }
3460
3460
  function fi(n) {
3461
- return Gn(n.auth, new Re(n), n.bypassAuthState);
3461
+ return Bn(n.auth, new be(n), n.bypassAuthState);
3462
3462
  }
3463
3463
  function pi(n) {
3464
3464
  const { auth: e, user: t } = n;
@@ -3467,7 +3467,7 @@ function pi(n) {
3467
3467
  e,
3468
3468
  "internal-error"
3469
3469
  /* AuthErrorCode.INTERNAL_ERROR */
3470
- ), $n(t, new Re(n), n.bypassAuthState);
3470
+ ), $n(t, new be(n), n.bypassAuthState);
3471
3471
  }
3472
3472
  async function gi(n) {
3473
3473
  const { auth: e, user: t } = n;
@@ -3476,7 +3476,7 @@ async function gi(n) {
3476
3476
  e,
3477
3477
  "internal-error"
3478
3478
  /* AuthErrorCode.INTERNAL_ERROR */
3479
- ), zn(t, new Re(n), n.bypassAuthState);
3479
+ ), zn(t, new be(n), n.bypassAuthState);
3480
3480
  }
3481
3481
  /**
3482
3482
  * @license
@@ -3593,7 +3593,7 @@ class L extends Dt {
3593
3593
  }
3594
3594
  async onExecution() {
3595
3595
  T(this.filter.length === 1, "Popup operations only handle one event");
3596
- const e = Pe();
3596
+ const e = Re();
3597
3597
  this.authWindow = await this.resolver._openPopup(
3598
3598
  this.auth,
3599
3599
  this.provider,
@@ -3765,7 +3765,7 @@ class Si {
3765
3765
  let t = !1;
3766
3766
  return this.consumers.forEach((i) => {
3767
3767
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
3768
- }), this.hasHandledPotentialRedirect || !Pi(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
3768
+ }), this.hasHandledPotentialRedirect || !Ri(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
3769
3769
  }
3770
3770
  sendToConsumer(e, t) {
3771
3771
  var i;
@@ -3792,7 +3792,7 @@ function Ke(n) {
3792
3792
  function Ft({ type: n, error: e }) {
3793
3793
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
3794
3794
  }
3795
- function Pi(n) {
3795
+ function Ri(n) {
3796
3796
  switch (n.type) {
3797
3797
  case "signInViaRedirect":
3798
3798
  case "linkViaRedirect":
@@ -3820,7 +3820,7 @@ function Pi(n) {
3820
3820
  * See the License for the specific language governing permissions and
3821
3821
  * limitations under the License.
3822
3822
  */
3823
- async function Ri(n, e = {}) {
3823
+ async function bi(n, e = {}) {
3824
3824
  return x(n, "GET", "/v1/projects", e);
3825
3825
  }
3826
3826
  /**
@@ -3839,11 +3839,11 @@ async function Ri(n, e = {}) {
3839
3839
  * See the License for the specific language governing permissions and
3840
3840
  * limitations under the License.
3841
3841
  */
3842
- const bi = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ai = /^https?/;
3842
+ const Pi = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ai = /^https?/;
3843
3843
  async function Ci(n) {
3844
3844
  if (n.config.emulator)
3845
3845
  return;
3846
- const { authorizedDomains: e } = await Ri(n);
3846
+ const { authorizedDomains: e } = await bi(n);
3847
3847
  for (const t of e)
3848
3848
  try {
3849
3849
  if (Oi(t))
@@ -3864,7 +3864,7 @@ function Oi(n) {
3864
3864
  }
3865
3865
  if (!Ai.test(t))
3866
3866
  return !1;
3867
- if (bi.test(n))
3867
+ if (Pi.test(n))
3868
3868
  return i === n;
3869
3869
  const r = n.replace(/\./g, "\\.");
3870
3870
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4037,7 +4037,7 @@ const Hi = {
4037
4037
  resizable: "yes",
4038
4038
  statusbar: "yes",
4039
4039
  toolbar: "no"
4040
- }, qi = 500, zi = 600, $i = "_blank", Gi = "http://localhost";
4040
+ }, qi = 500, zi = 600, $i = "_blank", Bi = "http://localhost";
4041
4041
  class Xe {
4042
4042
  constructor(e) {
4043
4043
  this.window = e, this.associatedEvent = null;
@@ -4050,7 +4050,7 @@ class Xe {
4050
4050
  }
4051
4051
  }
4052
4052
  }
4053
- function Bi(n, e, t, i = qi, r = zi) {
4053
+ function Gi(n, e, t, i = qi, r = zi) {
4054
4054
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4055
4055
  let c = "";
4056
4056
  const a = Object.assign(Object.assign({}, Hi), {
@@ -4059,9 +4059,9 @@ function Bi(n, e, t, i = qi, r = zi) {
4059
4059
  top: s,
4060
4060
  left: o
4061
4061
  }), u = p().toLowerCase();
4062
- t && (c = _t(u) ? $i : t), gt(u) && (e = e || Gi, a.scrollbars = "yes");
4062
+ t && (c = _t(u) ? $i : t), gt(u) && (e = e || Bi, a.scrollbars = "yes");
4063
4063
  const h = Object.entries(a).reduce((f, [E, N]) => `${f}${E}=${N},`, "");
4064
- if (Rn(u) && c !== "_self")
4064
+ if (bn(u) && c !== "_self")
4065
4065
  return Ki(e || "", c), new Xe(null);
4066
4066
  const d = window.open(e || "", c, h);
4067
4067
  l(
@@ -4119,7 +4119,7 @@ async function Ye(n, e, t, i, r, s) {
4119
4119
  v: W,
4120
4120
  eventId: r
4121
4121
  };
4122
- if (e instanceof Pt) {
4122
+ if (e instanceof Rt) {
4123
4123
  e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", nn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4124
4124
  for (const [h, d] of Object.entries(s || {}))
4125
4125
  o[h] = d;
@@ -4165,7 +4165,7 @@ class Zi {
4165
4165
  var s;
4166
4166
  T((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4167
4167
  const o = await Ye(e, t, i, ge(), r);
4168
- return Bi(e, o, Pe());
4168
+ return Gi(e, o, Re());
4169
4169
  }
4170
4170
  async _openRedirect(e, t, i, r) {
4171
4171
  await this._originValidation(e);
@@ -4427,7 +4427,7 @@ const lr = { class: "bg-white flex flex-col max-h-dvh" }, ur = {
4427
4427
  __name: "App",
4428
4428
  setup(n) {
4429
4429
  const e = Wt(!1), { currentBusiness: t, readRestaurants: i, fetchUserPermissions: r, sessionUser: s, signIn: o } = cn(), c = rn();
4430
- sn().length === 0 ? on({ 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: "458797803788", measurementId: "G-YH5GZ1DF39" }) : it();
4430
+ sn().length === 0 ? on({ 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: "128512026847", measurementId: "G-LTKS7N2HQS" }) : it();
4431
4431
  const a = async () => {
4432
4432
  var d;
4433
4433
  try {
@@ -4438,7 +4438,7 @@ const lr = { class: "bg-white flex flex-col max-h-dvh" }, ur = {
4438
4438
  }, u = () => {
4439
4439
  const { init: d } = an();
4440
4440
  d({
4441
- apiKey: "MaGoXrEWuEJNpWgKTqseee",
4441
+ apiKey: "6GhcttsJ9Rj9cTevcdrpin",
4442
4442
  url: {}.VITE_FEATURE_FLAG_URL
4443
4443
  }).catch((f) => console.warn("Feature flag initialization failed:", f));
4444
4444
  }, h = async () => {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as Pr, resolveComponent as _e, openBlock as re, createElementBlock as ge, createElementVNode as Y, toDisplayString as le, unref as B, createVNode as se, computed as Re, createBlock as Ne, withCtx as ye, Fragment as Ct, normalizeClass as ga, renderList as er, createCommentVNode as Te, ref as Oe, watch as mr, onMounted as Na, isRef as Gs, createSlots as Ko, withModifiers as vi, nextTick as ci, createTextVNode as ui, Teleport as qo, h as Rt } from "vue";
2
- import { b as Jo, C as Zo, r as Yi, h as Vn, c as Qo, x as el, e as tl, S as rl, y as nl, F as al, u as $s, z as ct, A as il, B as ht, D as Ja, G as wr, H as Pa, I as js, w as sl } from "./index-d518302c.js";
2
+ import { b as Jo, C as Zo, r as Yi, h as Vn, c as Qo, x as el, e as tl, S as rl, y as nl, F as al, u as $s, z as ct, A as il, B as ht, D as Ja, G as wr, H as Pa, I as js, w as sl } from "./index-4eb843c2.js";
3
3
  import { useI18n as yr, useCoreStore as La } from "@feedmepos/mf-common";
4
4
  import { useProxiedModel as _a, useSnackbar as gn, SnackbarPosition as Ge, useBreakpoints as gi, useDialog as _i, useDialogChild as Xs, components as An } from "@feedmepos/ui-library";
5
- import { c as ra, u as na, e as aa, A as ol } from "./app-caf42814.js";
5
+ import { c as ra, u as na, e as aa, A as ol } from "./app-aaae58a3.js";
6
6
  import { storeToRefs as ll } from "pinia";
7
7
  import "vue-router";
8
8
  const fl = { class: "flex flex-col gap-16" }, cl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ul = {
@@ -19288,7 +19288,7 @@ const zg = { class: "fm-typo-en-body-md-400" }, Wg = { class: "xs:flex-col-rever
19288
19288
  }, Ye = (j) => {
19289
19289
  if (!j.restaurantId)
19290
19290
  return;
19291
- const V = "dev";
19291
+ const V = "prod";
19292
19292
  s.open({
19293
19293
  message: t("device.logs.redirect", { name: j.name ?? I(j.restaurantId) }),
19294
19294
  type: "success",
@@ -3444,7 +3444,7 @@ function ss(e) {
3444
3444
  }
3445
3445
  };
3446
3446
  }
3447
- const As = ss(pe(() => import("./DeviceList-685b2f7b.js"))), is = [
3447
+ const As = ss(pe(() => import("./DeviceList-18ba6c49.js"))), is = [
3448
3448
  {
3449
3449
  path: "/",
3450
3450
  name: "$devices",
@@ -3465,7 +3465,7 @@ const As = ss(pe(() => import("./DeviceList-685b2f7b.js"))), is = [
3465
3465
  "zh-CN": vt,
3466
3466
  "th-TH": pt,
3467
3467
  "zh-Hant": Ct
3468
- }, ls = pe(() => import("./App-011a5e26.js"));
3468
+ }, ls = pe(() => import("./App-4fe7b5e8.js"));
3469
3469
  export {
3470
3470
  Fr as A,
3471
3471
  ls as F,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { F as m, i as t, r as a } from "./app-caf42814.js";
2
+ import { F as m, i as t, r as a } from "./app-aaae58a3.js";
3
3
  import "vue-router";
4
4
  import "@feedmepos/mf-common";
5
5
  export {
@@ -1,7 +1,7 @@
1
1
  var Ku = Object.defineProperty;
2
2
  var qu = (e, n, t) => n in e ? Ku(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var Xr = (e, n, t) => (qu(e, typeof n != "symbol" ? n + "" : n, t), t);
4
- import { c as ee } from "./app-caf42814.js";
4
+ import { c as ee } from "./app-aaae58a3.js";
5
5
  import { baseClientInstance as $i, useCoreStore as Ji } from "@feedmepos/mf-common";
6
6
  import { defineStore as Wu } from "pinia";
7
7
  import { ref as Xi, readonly as Ta } from "vue";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-mdm",
3
- "version": "1.9.1-beta.312",
3
+ "version": "1.9.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],