@feedmepos/mf-payment 1.2.33 → 1.3.0

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,9 +1,9 @@
1
1
  import { defineComponent as $, ref as w, computed as L, resolveComponent as y, openBlock as v, createElementBlock as N, createElementVNode as a, toDisplayString as D, Fragment as z, createBlock as _, withCtx as c, createVNode as n, createCommentVNode as E, unref as e, createTextVNode as I, onMounted as X, resolveDynamicComponent as Z } from "vue";
2
- import { o as j } from "./index-BF2tC_f4.js";
2
+ import { o as j } from "./index-_oz98qlb.js";
3
3
  import { u as M } from "./index-eNSd1RuW.js";
4
4
  import { useRouter as h } from "vue-router";
5
5
  import { z as u, a as d } from "./validator-D5jtpt9A.js";
6
- import { P as ee } from "./payout-account-B0OvJ2_h.js";
6
+ import { P as ee } from "./payout-account-_Q5_6S8z.js";
7
7
  import { P as le } from "./PDFViewer-DlSCBBxr.js";
8
8
  import { _ as te } from "./Status.vue_vue_type_script_setup_true_lang-BumKpo4s.js";
9
9
  import { useSnackbar as J } from "@feedmepos/ui-library";
@@ -2,11 +2,11 @@ import { defineComponent as O, ref as V, computed as Z, resolveComponent as v, o
2
2
  import { z as p, a as c } from "./validator-D5jtpt9A.js";
3
3
  import { P as de, _ as me } from "./PDFViewer-DlSCBBxr.js";
4
4
  import { useCoreStore as pe } from "@feedmepos/mf-common";
5
- import { o as L } from "./index-BF2tC_f4.js";
5
+ import { o as L } from "./index-_oz98qlb.js";
6
6
  import { p as ce } from "./index-jsEyizHG.js";
7
7
  import { useSnackbar as ve } from "@feedmepos/ui-library";
8
8
  import { u as X } from "./index-eNSd1RuW.js";
9
- import { P as ye } from "./payout-account-B0OvJ2_h.js";
9
+ import { P as ye } from "./payout-account-_Q5_6S8z.js";
10
10
  import { useRouter as be } from "vue-router";
11
11
  const fe = ["src"], R = /* @__PURE__ */ O({
12
12
  __name: "UploadButton",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as A, ref as V, watch as v, computed as p, resolveComponent as x, openBlock as h, createBlock as w, withCtx as f, createElementVNode as S, createVNode as r, unref as l, isRef as n, h as k } from "vue";
2
- import { o as K } from "./index-BF2tC_f4.js";
2
+ import { o as K } from "./index-_oz98qlb.js";
3
3
  import { p as m } from "./index-eNSd1RuW.js";
4
4
  import { _ as O } from "./index.vue_vue_type_script_setup_true_lang-CIxp2j06.js";
5
5
  import { useRouter as F } from "vue-router";
@@ -3,7 +3,7 @@ import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js
3
3
  import { u as q, p as G, e as S } from "./index-eNSd1RuW.js";
4
4
  import { useI18n as J, useCoreStore as K } from "@feedmepos/mf-common";
5
5
  import { _ as Q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
6
- import { o as X } from "./index-BF2tC_f4.js";
6
+ import { o as X } from "./index-_oz98qlb.js";
7
7
  import { useRouter as Z } from "vue-router";
8
8
  import { i as w } from "./softspace-25X2bjBx.js";
9
9
  const ss = { class: "flex justify-left items-center mb-6" }, es = { class: "grid grid-cols-3 gap-6" }, ts = { class: "flex items-center" }, os = ["src"], ns = { class: "px-16 text-sm flex-grow" }, is = { class: "list-disc pl-6" }, rs = {
@@ -3,12 +3,12 @@ import { p as K } from "./index-jsEyizHG.js";
3
3
  import { p as U, u as gA, e as lA } from "./index-eNSd1RuW.js";
4
4
  import { defineStore as rA } from "pinia";
5
5
  import { useI18n as R, useCoreStore as eA } from "@feedmepos/mf-common";
6
- import { c as cA, a as _, P as J } from "./payout-account-B0OvJ2_h.js";
6
+ import { c as cA, a as _, P as J } from "./payout-account-_Q5_6S8z.js";
7
7
  import { useDialogChild as nA, useDialog as BA } from "@feedmepos/ui-library";
8
8
  import { z as F, a as H } from "./validator-D5jtpt9A.js";
9
9
  import { P as $ } from "./PDFViewer-DlSCBBxr.js";
10
- import "./app-D_nJ0bPY.js";
11
- import "./plugins-ewG_w1UY.js";
10
+ import "./app-BcysfQ1o.js";
11
+ import "./plugins-CcusOGSo.js";
12
12
  import { _ as uA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
13
13
  function wA() {
14
14
  return {
@@ -2,7 +2,7 @@ import { defineComponent as y, resolveComponent as u, openBlock as h, createBloc
2
2
  import { u as O } from "./index-BjqwgRyA.js";
3
3
  import { p as K } from "./index-eNSd1RuW.js";
4
4
  import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
- import { P as V } from "./payout-account-B0OvJ2_h.js";
5
+ import { P as V } from "./payout-account-_Q5_6S8z.js";
6
6
  import { p as D } from "./index-jsEyizHG.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CIxp2j06.js";
@@ -1,5 +1,5 @@
1
1
  import { createRouter as Ln, createWebHistory as Mn, useRouter as Un, useRoute as xn } from "vue-router";
2
- import { computed as Lt, watch as q, defineComponent as Mt, ref as Fn, resolveComponent as Ut, openBlock as xt, createBlock as Ft, h as Bn, onMounted as $n, onBeforeMount as Hn, unref as Vn } from "vue";
2
+ import { computed as Lt, watch as K, defineComponent as Mt, ref as Fn, resolveComponent as Ut, openBlock as xt, createBlock as Ft, h as Bn, onMounted as $n, onBeforeMount as Hn, unref as Vn } from "vue";
3
3
  import { useCoreStore as je, useI18n as jn } from "@feedmepos/mf-common";
4
4
  import { defineStore as Wn } from "pinia";
5
5
  import { components as zn } from "@feedmepos/ui-library";
@@ -173,9 +173,9 @@ const Gn = {
173
173
  service2: "SoftPOS Card Payment"
174
174
  }
175
175
  }
176
- }, qn = {
177
- payment: Gn
178
176
  }, Kn = {
177
+ payment: Gn
178
+ }, qn = {
179
179
  components: {
180
180
  select: "选择筛选对象",
181
181
  restaurant: "餐厅",
@@ -346,7 +346,7 @@ const Gn = {
346
346
  }
347
347
  }
348
348
  }, Jn = {
349
- payment: Kn
349
+ payment: qn
350
350
  }, le = [
351
351
  {
352
352
  path: "/admin/restaurants",
@@ -373,7 +373,7 @@ const Gn = {
373
373
  sidebarDisplay: "Payout Accounts",
374
374
  section: "payment-gateway"
375
375
  },
376
- component: () => import("./PayoutAccount-CIItr-ru.js")
376
+ component: () => import("./PayoutAccount-zAKSvyac.js")
377
377
  },
378
378
  {
379
379
  path: "/admin/payout-accounts/:accountId",
@@ -391,7 +391,7 @@ const Gn = {
391
391
  sidebarDisplay: "Payment Onboarding",
392
392
  section: "payment-gateway"
393
393
  },
394
- component: () => import("./OnboardSubmission-BhHD6quL.js")
394
+ component: () => import("./OnboardSubmission-Bc7ys2zC.js")
395
395
  },
396
396
  {
397
397
  path: "/admin/onboarding/:submissionId",
@@ -400,7 +400,7 @@ const Gn = {
400
400
  meta: {
401
401
  parent: "mf-payment-admin.onboard-submission"
402
402
  },
403
- component: () => import("./OnboardForm-DrKfhe4F.js")
403
+ component: () => import("./OnboardForm-SR-0z0CS.js")
404
404
  },
405
405
  {
406
406
  path: "/admin/terminal/pos",
@@ -498,7 +498,7 @@ const Gn = {
498
498
  {
499
499
  path: "/payout-account",
500
500
  name: "mf-payment-payout-account",
501
- component: () => import("./PayoutAccount-C2kWbALj.js"),
501
+ component: () => import("./PayoutAccount-CPvk6xcW.js"),
502
502
  meta: {
503
503
  sidebarDisplay: "i18n:payment.routes.payout_account"
504
504
  }
@@ -506,7 +506,7 @@ const Gn = {
506
506
  {
507
507
  path: "/onboard-submission",
508
508
  name: "mf-payment-onboard-submission",
509
- component: () => import("./OnboardSubmission-WkGYHTti.js"),
509
+ component: () => import("./OnboardSubmission-D__D6hwH.js"),
510
510
  meta: {
511
511
  sidebarDisplay: "i18n:payment.routes.onboard_submission"
512
512
  }
@@ -515,7 +515,7 @@ const Gn = {
515
515
  path: "/onboard-submission/:type/:submission?",
516
516
  name: "mf-payment-onboard-submission-form",
517
517
  props: !0,
518
- component: () => import("./OnboardForm-Ci-MOxt6.js"),
518
+ component: () => import("./OnboardForm-kEy0cnQ-.js"),
519
519
  meta: {
520
520
  parent: "mf-payment-onboard-submission"
521
521
  }
@@ -554,7 +554,7 @@ const Gn = {
554
554
  parent: "mf-payment-settlement"
555
555
  }
556
556
  }
557
- ], Yn = Wn("mf-payment-iframe", () => {
557
+ ], Xn = Wn("mf-payment-iframe", () => {
558
558
  const n = {
559
559
  isIframe: !1
560
560
  }, e = Lt(() => n);
@@ -606,7 +606,7 @@ const Bt = function(n) {
606
606
  i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
607
607
  }
608
608
  return e;
609
- }, Xn = function(n) {
609
+ }, Yn = function(n) {
610
610
  const e = [];
611
611
  let t = 0, r = 0;
612
612
  for (; t < n.length; ) {
@@ -685,8 +685,8 @@ const Bt = function(n) {
685
685
  const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
686
686
  for (let i = 0; i < n.length; i += 3) {
687
687
  const s = n[i], a = i + 1 < n.length, c = a ? n[i + 1] : 0, o = i + 2 < n.length, l = o ? n[i + 2] : 0, u = s >> 2, h = (s & 3) << 4 | c >> 4;
688
- let p = (c & 15) << 2 | l >> 6, v = l & 63;
689
- o || (v = 64, a || (p = 64)), r.push(t[u], t[h], t[p], t[v]);
688
+ let p = (c & 15) << 2 | l >> 6, y = l & 63;
689
+ o || (y = 64, a || (p = 64)), r.push(t[u], t[h], t[p], t[y]);
690
690
  }
691
691
  return r.join("");
692
692
  },
@@ -710,7 +710,7 @@ const Bt = function(n) {
710
710
  * @return string representing the decoded value.
711
711
  */
712
712
  decodeString(n, e) {
713
- return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Xn(this.decodeStringToByteArray(n, e));
713
+ return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Yn(this.decodeStringToByteArray(n, e));
714
714
  },
715
715
  /**
716
716
  * Base64-decode a string.
@@ -740,8 +740,8 @@ const Bt = function(n) {
740
740
  throw new Qn();
741
741
  const p = s << 2 | c >> 4;
742
742
  if (r.push(p), l !== 64) {
743
- const v = c << 4 & 240 | l >> 2;
744
- if (r.push(v), h !== 64) {
743
+ const y = c << 4 & 240 | l >> 2;
744
+ if (r.push(y), h !== 64) {
745
745
  const F = l << 6 & 192 | h;
746
746
  r.push(F);
747
747
  }
@@ -1140,7 +1140,7 @@ class _r {
1140
1140
  let i;
1141
1141
  if (e === void 0 && t === void 0 && r === void 0)
1142
1142
  throw new Error("Missing Observer.");
1143
- vr(e, [
1143
+ yr(e, [
1144
1144
  "next",
1145
1145
  "error",
1146
1146
  "complete"
@@ -1186,7 +1186,7 @@ class _r {
1186
1186
  }));
1187
1187
  }
1188
1188
  }
1189
- function vr(n, e) {
1189
+ function yr(n, e) {
1190
1190
  if (typeof n != "object" || n === null)
1191
1191
  return !1;
1192
1192
  for (const t of e)
@@ -1271,7 +1271,7 @@ const M = "[DEFAULT]";
1271
1271
  * See the License for the specific language governing permissions and
1272
1272
  * limitations under the License.
1273
1273
  */
1274
- class yr {
1274
+ class vr {
1275
1275
  constructor(e, t) {
1276
1276
  this.name = e, this.container = t, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
1277
1277
  }
@@ -1479,7 +1479,7 @@ class wr {
1479
1479
  getProvider(e) {
1480
1480
  if (this.providers.has(e))
1481
1481
  return this.providers.get(e);
1482
- const t = new yr(e, this);
1482
+ const t = new vr(e, this);
1483
1483
  return this.providers.set(e, t), t;
1484
1484
  }
1485
1485
  getProviders() {
@@ -1601,7 +1601,7 @@ function Cr() {
1601
1601
  IDBCursor.prototype.continuePrimaryKey
1602
1602
  ]);
1603
1603
  }
1604
- const Gt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap();
1604
+ const Gt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap();
1605
1605
  function Pr(n) {
1606
1606
  const e = new Promise((t, r) => {
1607
1607
  const i = () => {
@@ -1639,7 +1639,7 @@ let Ue = {
1639
1639
  if (e === "done")
1640
1640
  return Me.get(n);
1641
1641
  if (e === "objectStoreNames")
1642
- return n.objectStoreNames || qt.get(n);
1642
+ return n.objectStoreNames || Kt.get(n);
1643
1643
  if (e === "store")
1644
1644
  return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
1645
1645
  }
@@ -1658,7 +1658,7 @@ function Dr(n) {
1658
1658
  function Nr(n) {
1659
1659
  return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
1660
1660
  const r = n.call(Re(this), e, ...t);
1661
- return qt.set(r, e.sort ? e.sort() : [e]), O(r);
1661
+ return Kt.set(r, e.sort ? e.sort() : [e]), O(r);
1662
1662
  } : Cr().includes(n) ? function(...e) {
1663
1663
  return n.apply(Re(this), e), O(Gt.get(this));
1664
1664
  } : function(...e) {
@@ -1771,7 +1771,7 @@ const xe = "@firebase/app", dt = "0.10.13";
1771
1771
  * See the License for the specific language governing permissions and
1772
1772
  * limitations under the License.
1773
1773
  */
1774
- const E = new zt("@firebase/app"), $r = "@firebase/app-compat", Hr = "@firebase/analytics-compat", Vr = "@firebase/analytics", jr = "@firebase/app-check-compat", Wr = "@firebase/app-check", zr = "@firebase/auth", Gr = "@firebase/auth-compat", qr = "@firebase/database", Kr = "@firebase/data-connect", Jr = "@firebase/database-compat", Yr = "@firebase/functions", Xr = "@firebase/functions-compat", Qr = "@firebase/installations", Zr = "@firebase/installations-compat", ei = "@firebase/messaging", ti = "@firebase/messaging-compat", ni = "@firebase/performance", ri = "@firebase/performance-compat", ii = "@firebase/remote-config", si = "@firebase/remote-config-compat", ai = "@firebase/storage", oi = "@firebase/storage-compat", ci = "@firebase/firestore", li = "@firebase/vertexai-preview", ui = "@firebase/firestore-compat", di = "firebase", hi = "10.14.1";
1774
+ const E = new zt("@firebase/app"), $r = "@firebase/app-compat", Hr = "@firebase/analytics-compat", Vr = "@firebase/analytics", jr = "@firebase/app-check-compat", Wr = "@firebase/app-check", zr = "@firebase/auth", Gr = "@firebase/auth-compat", Kr = "@firebase/database", qr = "@firebase/data-connect", Jr = "@firebase/database-compat", Xr = "@firebase/functions", Yr = "@firebase/functions-compat", Qr = "@firebase/installations", Zr = "@firebase/installations-compat", ei = "@firebase/messaging", ti = "@firebase/messaging-compat", ni = "@firebase/performance", ri = "@firebase/performance-compat", ii = "@firebase/remote-config", si = "@firebase/remote-config-compat", ai = "@firebase/storage", oi = "@firebase/storage-compat", ci = "@firebase/firestore", li = "@firebase/vertexai-preview", ui = "@firebase/firestore-compat", di = "firebase", hi = "10.14.1";
1775
1775
  /**
1776
1776
  * @license
1777
1777
  * Copyright 2019 Google LLC
@@ -1797,11 +1797,11 @@ const Fe = "[DEFAULT]", fi = {
1797
1797
  [jr]: "fire-app-check-compat",
1798
1798
  [zr]: "fire-auth",
1799
1799
  [Gr]: "fire-auth-compat",
1800
- [qr]: "fire-rtdb",
1801
- [Kr]: "fire-data-connect",
1800
+ [Kr]: "fire-rtdb",
1801
+ [qr]: "fire-data-connect",
1802
1802
  [Jr]: "fire-rtdb-compat",
1803
- [Yr]: "fire-fn",
1804
- [Xr]: "fire-fn-compat",
1803
+ [Xr]: "fire-fn",
1804
+ [Yr]: "fire-fn-compat",
1805
1805
  [Qr]: "fire-iid",
1806
1806
  [Zr]: "fire-iid-compat",
1807
1807
  [ei]: "fire-fcm",
@@ -1853,11 +1853,11 @@ function J(n) {
1853
1853
  ht(t, n);
1854
1854
  return !0;
1855
1855
  }
1856
- function Kt(n, e) {
1856
+ function qt(n, e) {
1857
1857
  const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
1858
1858
  return t && t.triggerHeartbeat(), n.container.getProvider(e);
1859
1859
  }
1860
- function y(n) {
1860
+ function v(n) {
1861
1861
  return n.settings !== void 0;
1862
1862
  }
1863
1863
  /**
@@ -2035,15 +2035,15 @@ function $(n, e, t) {
2035
2035
  * See the License for the specific language governing permissions and
2036
2036
  * limitations under the License.
2037
2037
  */
2038
- const vi = "firebase-heartbeat-database", yi = 1, Y = "firebase-heartbeat-store";
2038
+ const yi = "firebase-heartbeat-database", vi = 1, X = "firebase-heartbeat-store";
2039
2039
  let Pe = null;
2040
- function Yt() {
2041
- return Pe || (Pe = Mr(vi, yi, {
2040
+ function Xt() {
2041
+ return Pe || (Pe = Mr(yi, vi, {
2042
2042
  upgrade: (n, e) => {
2043
2043
  switch (e) {
2044
2044
  case 0:
2045
2045
  try {
2046
- n.createObjectStore(Y);
2046
+ n.createObjectStore(X);
2047
2047
  } catch (t) {
2048
2048
  console.warn(t);
2049
2049
  }
@@ -2057,7 +2057,7 @@ function Yt() {
2057
2057
  }
2058
2058
  async function bi(n) {
2059
2059
  try {
2060
- const t = (await Yt()).transaction(Y), r = await t.objectStore(Y).get(Xt(n));
2060
+ const t = (await Xt()).transaction(X), r = await t.objectStore(X).get(Yt(n));
2061
2061
  return await t.done, r;
2062
2062
  } catch (e) {
2063
2063
  if (e instanceof L)
@@ -2072,8 +2072,8 @@ async function bi(n) {
2072
2072
  }
2073
2073
  async function ft(n, e) {
2074
2074
  try {
2075
- const r = (await Yt()).transaction(Y, "readwrite");
2076
- await r.objectStore(Y).put(e, Xt(n)), await r.done;
2075
+ const r = (await Xt()).transaction(X, "readwrite");
2076
+ await r.objectStore(X).put(e, Yt(n)), await r.done;
2077
2077
  } catch (t) {
2078
2078
  if (t instanceof L)
2079
2079
  E.warn(t.message);
@@ -2085,7 +2085,7 @@ async function ft(n, e) {
2085
2085
  }
2086
2086
  }
2087
2087
  }
2088
- function Xt(n) {
2088
+ function Yt(n) {
2089
2089
  return `${n.name}!${n.options.appId}`;
2090
2090
  }
2091
2091
  /**
@@ -2284,7 +2284,7 @@ var gt = function() {
2284
2284
  return e;
2285
2285
  }, gt.apply(this, arguments);
2286
2286
  };
2287
- function qe(n, e) {
2287
+ function Ke(n, e) {
2288
2288
  var t = {};
2289
2289
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
2290
2290
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2338,10 +2338,10 @@ function se(n, ...e) {
2338
2338
  * limitations under the License.
2339
2339
  */
2340
2340
  function T(n, ...e) {
2341
- throw Ke(n, ...e);
2341
+ throw qe(n, ...e);
2342
2342
  }
2343
2343
  function g(n, ...e) {
2344
- return Ke(n, ...e);
2344
+ return qe(n, ...e);
2345
2345
  }
2346
2346
  function en(n, e, t) {
2347
2347
  const r = Object.assign(Object.assign({}, Ci()), { [e]: t });
@@ -2352,7 +2352,7 @@ function en(n, e, t) {
2352
2352
  function N(n) {
2353
2353
  return en(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
2354
2354
  }
2355
- function Ke(n, ...e) {
2355
+ function qe(n, ...e) {
2356
2356
  if (typeof n != "string") {
2357
2357
  const t = e[0], r = [...e.slice(1)];
2358
2358
  return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
@@ -2361,7 +2361,7 @@ function Ke(n, ...e) {
2361
2361
  }
2362
2362
  function d(n, e, ...t) {
2363
2363
  if (!n)
2364
- throw Ke(e, ...t);
2364
+ throw qe(e, ...t);
2365
2365
  }
2366
2366
  function b(n) {
2367
2367
  const e = "INTERNAL ASSERTION FAILED: " + n;
@@ -2640,7 +2640,7 @@ const Li = {
2640
2640
  * limitations under the License.
2641
2641
  */
2642
2642
  const Mi = new te(3e4, 6e4);
2643
- function ve(n, e) {
2643
+ function ye(n, e) {
2644
2644
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
2645
2645
  }
2646
2646
  async function G(n, e, t, r, i = {}) {
@@ -2767,7 +2767,7 @@ async function an(n, e) {
2767
2767
  * See the License for the specific language governing permissions and
2768
2768
  * limitations under the License.
2769
2769
  */
2770
- function K(n) {
2770
+ function q(n) {
2771
2771
  if (n)
2772
2772
  try {
2773
2773
  const e = new Date(Number(n));
@@ -2777,7 +2777,7 @@ function K(n) {
2777
2777
  }
2778
2778
  }
2779
2779
  async function Fi(n, e = !1) {
2780
- const t = z(n), r = await t.getIdToken(e), i = Ye(r);
2780
+ const t = z(n), r = await t.getIdToken(e), i = Xe(r);
2781
2781
  d(
2782
2782
  i && i.exp && i.auth_time && i.iat,
2783
2783
  t.auth,
@@ -2788,9 +2788,9 @@ async function Fi(n, e = !1) {
2788
2788
  return {
2789
2789
  claims: i,
2790
2790
  token: r,
2791
- authTime: K(Oe(i.auth_time)),
2792
- issuedAtTime: K(Oe(i.iat)),
2793
- expirationTime: K(Oe(i.exp)),
2791
+ authTime: q(Oe(i.auth_time)),
2792
+ issuedAtTime: q(Oe(i.iat)),
2793
+ expirationTime: q(Oe(i.exp)),
2794
2794
  signInProvider: a || null,
2795
2795
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
2796
2796
  };
@@ -2798,7 +2798,7 @@ async function Fi(n, e = !1) {
2798
2798
  function Oe(n) {
2799
2799
  return Number(n) * 1e3;
2800
2800
  }
2801
- function Ye(n) {
2801
+ function Xe(n) {
2802
2802
  const [e, t, r] = n.split(".");
2803
2803
  if (e === void 0 || t === void 0 || r === void 0)
2804
2804
  return se("JWT malformed, contained fewer than 3 sections"), null;
@@ -2809,8 +2809,8 @@ function Ye(n) {
2809
2809
  return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
2810
2810
  }
2811
2811
  }
2812
- function vt(n) {
2813
- const e = Ye(n);
2812
+ function yt(n) {
2813
+ const e = Xe(n);
2814
2814
  return d(
2815
2815
  e,
2816
2816
  "internal-error"
@@ -2841,7 +2841,7 @@ function vt(n) {
2841
2841
  * See the License for the specific language governing permissions and
2842
2842
  * limitations under the License.
2843
2843
  */
2844
- async function X(n, e, t = !1) {
2844
+ async function Y(n, e, t = !1) {
2845
2845
  if (t)
2846
2846
  return e;
2847
2847
  try {
@@ -2936,7 +2936,7 @@ class He {
2936
2936
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
2937
2937
  }
2938
2938
  _initializeTime() {
2939
- this.lastSignInTime = K(this.lastLoginAt), this.creationTime = K(this.createdAt);
2939
+ this.lastSignInTime = q(this.lastLoginAt), this.creationTime = q(this.createdAt);
2940
2940
  }
2941
2941
  _copy(e) {
2942
2942
  this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
@@ -2966,7 +2966,7 @@ class He {
2966
2966
  */
2967
2967
  async function pe(n) {
2968
2968
  var e;
2969
- const t = n.auth, r = await n.getIdToken(), i = await X(n, an(t, { idToken: r }));
2969
+ const t = n.auth, r = await n.getIdToken(), i = await Y(n, an(t, { idToken: r }));
2970
2970
  d(
2971
2971
  i == null ? void 0 : i.users.length,
2972
2972
  t,
@@ -2998,7 +2998,7 @@ function Vi(n, e) {
2998
2998
  }
2999
2999
  function on(n) {
3000
3000
  return n.map((e) => {
3001
- var { providerId: t } = e, r = qe(e, ["providerId"]);
3001
+ var { providerId: t } = e, r = Ke(e, ["providerId"]);
3002
3002
  return {
3003
3003
  providerId: t,
3004
3004
  uid: r.rawId || "",
@@ -3047,7 +3047,7 @@ async function ji(n, e) {
3047
3047
  };
3048
3048
  }
3049
3049
  async function Wi(n, e) {
3050
- return G(n, "POST", "/v2/accounts:revokeToken", ve(n, e));
3050
+ return G(n, "POST", "/v2/accounts:revokeToken", ye(n, e));
3051
3051
  }
3052
3052
  /**
3053
3053
  * @license
@@ -3086,7 +3086,7 @@ class H {
3086
3086
  "internal-error"
3087
3087
  /* AuthErrorCode.INTERNAL_ERROR */
3088
3088
  );
3089
- const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vt(e.idToken);
3089
+ const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : yt(e.idToken);
3090
3090
  this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
3091
3091
  }
3092
3092
  updateFromIdToken(e) {
@@ -3095,7 +3095,7 @@ class H {
3095
3095
  "internal-error"
3096
3096
  /* AuthErrorCode.INTERNAL_ERROR */
3097
3097
  );
3098
- const t = vt(e);
3098
+ const t = yt(e);
3099
3099
  this.updateTokensAndExpiration(e, null, t);
3100
3100
  }
3101
3101
  async getToken(e, t = !1) {
@@ -3164,11 +3164,11 @@ function k(n, e) {
3164
3164
  }
3165
3165
  class I {
3166
3166
  constructor(e) {
3167
- var { uid: t, auth: r, stsTokenManager: i } = e, s = qe(e, ["uid", "auth", "stsTokenManager"]);
3167
+ var { uid: t, auth: r, stsTokenManager: i } = e, s = Ke(e, ["uid", "auth", "stsTokenManager"]);
3168
3168
  this.providerId = "firebase", this.proactiveRefresh = new $i(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.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 He(s.createdAt || void 0, s.lastLoginAt || void 0);
3169
3169
  }
3170
3170
  async getIdToken(e) {
3171
- const t = await X(this, this.stsTokenManager.getToken(this.auth, e));
3171
+ const t = await Y(this, this.stsTokenManager.getToken(this.auth, e));
3172
3172
  return d(
3173
3173
  t,
3174
3174
  this.auth,
@@ -3216,10 +3216,10 @@ class I {
3216
3216
  e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await pe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
3217
3217
  }
3218
3218
  async delete() {
3219
- if (y(this.auth.app))
3219
+ if (v(this.auth.app))
3220
3220
  return Promise.reject(N(this.auth));
3221
3221
  const e = await this.getIdToken();
3222
- return await X(this, xi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
3222
+ return await Y(this, xi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
3223
3223
  }
3224
3224
  toJSON() {
3225
3225
  return Object.assign(Object.assign({
@@ -3247,7 +3247,7 @@ class I {
3247
3247
  }
3248
3248
  static _fromJSON(e, t) {
3249
3249
  var r, i, s, a, c, o, l, u;
3250
- const h = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, tt = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, we = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, nt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, rt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Ee, emailVerified: it, isAnonymous: st, providerData: Te, stsTokenManager: at } = t;
3250
+ const h = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, tt = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, we = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, nt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, rt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Ee, emailVerified: it, isAnonymous: st, providerData: Te, stsTokenManager: at } = t;
3251
3251
  d(
3252
3252
  Ee && at,
3253
3253
  e,
@@ -3270,7 +3270,7 @@ class I {
3270
3270
  e,
3271
3271
  "internal-error"
3272
3272
  /* AuthErrorCode.INTERNAL_ERROR */
3273
- ), k(v, e.name), k(F, e.name), k(tt, e.name), k(we, e.name), k(nt, e.name), k(rt, e.name);
3273
+ ), k(y, e.name), k(F, e.name), k(tt, e.name), k(we, e.name), k(nt, e.name), k(rt, e.name);
3274
3274
  const Se = new I({
3275
3275
  uid: Ee,
3276
3276
  auth: e,
@@ -3279,7 +3279,7 @@ class I {
3279
3279
  displayName: h,
3280
3280
  isAnonymous: st,
3281
3281
  photoURL: F,
3282
- phoneNumber: v,
3282
+ phoneNumber: y,
3283
3283
  tenantId: tt,
3284
3284
  stsTokenManager: Dn,
3285
3285
  createdAt: nt,
@@ -3353,11 +3353,11 @@ class I {
3353
3353
  * See the License for the specific language governing permissions and
3354
3354
  * limitations under the License.
3355
3355
  */
3356
- const yt = /* @__PURE__ */ new Map();
3356
+ const vt = /* @__PURE__ */ new Map();
3357
3357
  function w(n) {
3358
3358
  S(n instanceof Function, "Expected a class definition");
3359
- let e = yt.get(n);
3360
- return e ? (S(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), yt.set(n, e), e);
3359
+ let e = vt.get(n);
3360
+ return e ? (S(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), vt.set(n, e), e);
3361
3361
  }
3362
3362
  /**
3363
3363
  * @license
@@ -3546,18 +3546,18 @@ function pn(n = m()) {
3546
3546
  function mn(n = m()) {
3547
3547
  return /webos/i.test(n);
3548
3548
  }
3549
- function Xe(n = m()) {
3549
+ function Ye(n = m()) {
3550
3550
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
3551
3551
  }
3552
3552
  function zi(n = m()) {
3553
3553
  var e;
3554
- return Xe(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
3554
+ return Ye(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
3555
3555
  }
3556
3556
  function Gi() {
3557
3557
  return lr() && document.documentMode === 10;
3558
3558
  }
3559
3559
  function gn(n = m()) {
3560
- return Xe(n) || fn(n) || mn(n) || pn(n) || /windows phone/i.test(n) || hn(n);
3560
+ return Ye(n) || fn(n) || mn(n) || pn(n) || /windows phone/i.test(n) || hn(n);
3561
3561
  }
3562
3562
  /**
3563
3563
  * @license
@@ -3606,7 +3606,7 @@ function _n(n, e = []) {
3606
3606
  * See the License for the specific language governing permissions and
3607
3607
  * limitations under the License.
3608
3608
  */
3609
- class qi {
3609
+ class Ki {
3610
3610
  constructor(e) {
3611
3611
  this.auth = e, this.queue = [];
3612
3612
  }
@@ -3661,8 +3661,8 @@ class qi {
3661
3661
  * See the License for the specific language governing permissions and
3662
3662
  * limitations under the License.
3663
3663
  */
3664
- async function Ki(n, e = {}) {
3665
- return G(n, "GET", "/v2/passwordPolicy", ve(n, e));
3664
+ async function qi(n, e = {}) {
3665
+ return G(n, "GET", "/v2/passwordPolicy", ye(n, e));
3666
3666
  }
3667
3667
  /**
3668
3668
  * @license
@@ -3681,7 +3681,7 @@ async function Ki(n, e = {}) {
3681
3681
  * limitations under the License.
3682
3682
  */
3683
3683
  const Ji = 6;
3684
- class Yi {
3684
+ class Xi {
3685
3685
  constructor(e) {
3686
3686
  var t, r, i, s;
3687
3687
  const a = e.customStrengthOptions;
@@ -3768,9 +3768,9 @@ class Yi {
3768
3768
  * See the License for the specific language governing permissions and
3769
3769
  * limitations under the License.
3770
3770
  */
3771
- class Xi {
3771
+ class Yi {
3772
3772
  constructor(e, t, r, i) {
3773
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new wt(this), this.idTokenSubscription = new wt(this), this.beforeStateQueue = new qi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Zt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
3773
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new wt(this), this.idTokenSubscription = new wt(this), this.beforeStateQueue = new Ki(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Zt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
3774
3774
  }
3775
3775
  _initializeWithPersistence(e, t) {
3776
3776
  return t && (this._popupRedirectResolver = w(t)), this._initializationPromise = this.queue(async () => {
@@ -3814,7 +3814,7 @@ class Xi {
3814
3814
  }
3815
3815
  async initializeCurrentUser(e) {
3816
3816
  var t;
3817
- if (y(this.app)) {
3817
+ if (v(this.app)) {
3818
3818
  const a = this.app.settings.authIdToken;
3819
3819
  return a ? new Promise((c) => {
3820
3820
  setTimeout(() => this.initializeCurrentUserFromIdToken(a).then(c, c));
@@ -3870,7 +3870,7 @@ class Xi {
3870
3870
  this._deleted = !0;
3871
3871
  }
3872
3872
  async updateCurrentUser(e) {
3873
- if (y(this.app))
3873
+ if (v(this.app))
3874
3874
  return Promise.reject(N(this));
3875
3875
  const t = e ? z(e) : null;
3876
3876
  return t && d(
@@ -3892,14 +3892,14 @@ class Xi {
3892
3892
  });
3893
3893
  }
3894
3894
  async signOut() {
3895
- return y(this.app) ? Promise.reject(N(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
3895
+ return v(this.app) ? Promise.reject(N(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
3896
3896
  null,
3897
3897
  /* skipBeforeStateCallbacks */
3898
3898
  !0
3899
3899
  ));
3900
3900
  }
3901
3901
  setPersistence(e) {
3902
- return y(this.app) ? Promise.reject(N(this)) : this.queue(async () => {
3902
+ return v(this.app) ? Promise.reject(N(this)) : this.queue(async () => {
3903
3903
  await this.assertedPersistence.setPersistence(w(e));
3904
3904
  });
3905
3905
  }
@@ -3915,7 +3915,7 @@ class Xi {
3915
3915
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
3916
3916
  }
3917
3917
  async _updatePasswordPolicy() {
3918
- const e = await Ki(this), t = new Yi(e);
3918
+ const e = await qi(this), t = new Xi(e);
3919
3919
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
3920
3920
  }
3921
3921
  _getPersistence() {
@@ -4101,7 +4101,7 @@ class Xi {
4101
4101
  return t != null && t.error && Pi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
4102
4102
  }
4103
4103
  }
4104
- function ye(n) {
4104
+ function ve(n) {
4105
4105
  return z(n);
4106
4106
  }
4107
4107
  class wt {
@@ -4170,7 +4170,7 @@ function ts(n) {
4170
4170
  * limitations under the License.
4171
4171
  */
4172
4172
  function ns(n, e) {
4173
- const t = Kt(n, "auth");
4173
+ const t = qt(n, "auth");
4174
4174
  if (t.isInitialized()) {
4175
4175
  const i = t.getImmediate(), s = t.getOptions();
4176
4176
  if (de(s, e ?? {}))
@@ -4188,7 +4188,7 @@ function rs(n, e) {
4188
4188
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
4189
4189
  }
4190
4190
  function is(n, e, t) {
4191
- const r = ye(n);
4191
+ const r = ve(n);
4192
4192
  d(
4193
4193
  r._canInitEmulator,
4194
4194
  r,
@@ -4200,7 +4200,7 @@ function is(n, e, t) {
4200
4200
  "invalid-emulator-scheme"
4201
4201
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
4202
4202
  );
4203
- const i = !1, s = vn(e), { host: a, port: c } = ss(e), o = c === null ? "" : `:${c}`;
4203
+ const i = !1, s = yn(e), { host: a, port: c } = ss(e), o = c === null ? "" : `:${c}`;
4204
4204
  r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
4205
4205
  host: a,
4206
4206
  port: c,
@@ -4208,12 +4208,12 @@ function is(n, e, t) {
4208
4208
  options: Object.freeze({ disableWarnings: i })
4209
4209
  }), as();
4210
4210
  }
4211
- function vn(n) {
4211
+ function yn(n) {
4212
4212
  const e = n.indexOf(":");
4213
4213
  return e < 0 ? "" : n.substr(0, e + 1);
4214
4214
  }
4215
4215
  function ss(n) {
4216
- const e = vn(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
4216
+ const e = yn(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
4217
4217
  if (!t)
4218
4218
  return { host: "", port: null };
4219
4219
  const r = t[2].split("@").pop() || "", i = /^(\[[^\]]+\])(:|$)/.exec(r);
@@ -4254,7 +4254,7 @@ function as() {
4254
4254
  * See the License for the specific language governing permissions and
4255
4255
  * limitations under the License.
4256
4256
  */
4257
- class yn {
4257
+ class vn {
4258
4258
  /** @internal */
4259
4259
  constructor(e, t) {
4260
4260
  this.providerId = e, this.signInMethod = t;
@@ -4297,7 +4297,7 @@ class yn {
4297
4297
  * limitations under the License.
4298
4298
  */
4299
4299
  async function j(n, e) {
4300
- return rn(n, "POST", "/v1/accounts:signInWithIdp", ve(n, e));
4300
+ return rn(n, "POST", "/v1/accounts:signInWithIdp", ye(n, e));
4301
4301
  }
4302
4302
  /**
4303
4303
  * @license
@@ -4316,7 +4316,7 @@ async function j(n, e) {
4316
4316
  * limitations under the License.
4317
4317
  */
4318
4318
  const os = "http://localhost";
4319
- class U extends yn {
4319
+ class U extends vn {
4320
4320
  constructor() {
4321
4321
  super(...arguments), this.pendingToken = null;
4322
4322
  }
@@ -4350,7 +4350,7 @@ class U extends yn {
4350
4350
  * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
4351
4351
  */
4352
4352
  static fromJSON(e) {
4353
- const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = qe(t, ["providerId", "signInMethod"]);
4353
+ const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = Ke(t, ["providerId", "signInMethod"]);
4354
4354
  if (!r || !i)
4355
4355
  return null;
4356
4356
  const a = new U(r, i);
@@ -4836,7 +4836,7 @@ function In(n, e, t, r) {
4836
4836
  });
4837
4837
  }
4838
4838
  async function cs(n, e, t = !1) {
4839
- const r = await X(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
4839
+ const r = await Y(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
4840
4840
  return x._forOperation(n, "link", r);
4841
4841
  }
4842
4842
  /**
@@ -4857,18 +4857,18 @@ async function cs(n, e, t = !1) {
4857
4857
  */
4858
4858
  async function ls(n, e, t = !1) {
4859
4859
  const { auth: r } = n;
4860
- if (y(r.app))
4860
+ if (v(r.app))
4861
4861
  return Promise.reject(N(r));
4862
4862
  const i = "reauthenticate";
4863
4863
  try {
4864
- const s = await X(n, In(r, i, e, n), t);
4864
+ const s = await Y(n, In(r, i, e, n), t);
4865
4865
  d(
4866
4866
  s.idToken,
4867
4867
  r,
4868
4868
  "internal-error"
4869
4869
  /* AuthErrorCode.INTERNAL_ERROR */
4870
4870
  );
4871
- const a = Ye(s.idToken);
4871
+ const a = Xe(s.idToken);
4872
4872
  d(
4873
4873
  a,
4874
4874
  r,
@@ -4907,7 +4907,7 @@ async function ls(n, e, t = !1) {
4907
4907
  * limitations under the License.
4908
4908
  */
4909
4909
  async function us(n, e, t = !1) {
4910
- if (y(n.app))
4910
+ if (v(n.app))
4911
4911
  return Promise.reject(N(n));
4912
4912
  const r = "signIn", i = await In(n, r, e), s = await x._fromIdTokenResponse(n, r, i);
4913
4913
  return t || await n._updateCurrentUser(s.user), s;
@@ -4929,7 +4929,7 @@ async function us(n, e, t = !1) {
4929
4929
  * limitations under the License.
4930
4930
  */
4931
4931
  async function ds(n, e) {
4932
- return rn(n, "POST", "/v1/accounts:signInWithCustomToken", ve(n, e));
4932
+ return rn(n, "POST", "/v1/accounts:signInWithCustomToken", ye(n, e));
4933
4933
  }
4934
4934
  /**
4935
4935
  * @license
@@ -4948,9 +4948,9 @@ async function ds(n, e) {
4948
4948
  * limitations under the License.
4949
4949
  */
4950
4950
  async function hs(n, e) {
4951
- if (y(n.app))
4951
+ if (v(n.app))
4952
4952
  return Promise.reject(N(n));
4953
- const t = ye(n), r = await ds(t, {
4953
+ const t = ve(n), r = await ds(t, {
4954
4954
  token: e,
4955
4955
  returnSecureToken: !0
4956
4956
  }), i = await x._fromIdTokenResponse(t, "signIn", r);
@@ -5148,7 +5148,7 @@ const Sn = Tn;
5148
5148
  * See the License for the specific language governing permissions and
5149
5149
  * limitations under the License.
5150
5150
  */
5151
- function vs(n) {
5151
+ function ys(n) {
5152
5152
  return Promise.all(n.map(async (e) => {
5153
5153
  try {
5154
5154
  return {
@@ -5218,7 +5218,7 @@ class be {
5218
5218
  eventId: r,
5219
5219
  eventType: i
5220
5220
  });
5221
- const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await vs(c);
5221
+ const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await ys(c);
5222
5222
  t.ports[0].postMessage({
5223
5223
  status: "done",
5224
5224
  eventId: r,
@@ -5286,7 +5286,7 @@ function Ze(n = "", e = 10) {
5286
5286
  * See the License for the specific language governing permissions and
5287
5287
  * limitations under the License.
5288
5288
  */
5289
- class ys {
5289
+ class vs {
5290
5290
  constructor(e) {
5291
5291
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
5292
5292
  }
@@ -5546,7 +5546,7 @@ class Cn {
5546
5546
  var e, t;
5547
5547
  if (this.activeServiceWorker = await Is(), !this.activeServiceWorker)
5548
5548
  return;
5549
- this.sender = new ys(this.activeServiceWorker);
5549
+ this.sender = new vs(this.activeServiceWorker);
5550
5550
  const r = await this.sender._send(
5551
5551
  "ping",
5552
5552
  {},
@@ -5688,7 +5688,7 @@ function Ps(n, e) {
5688
5688
  * See the License for the specific language governing permissions and
5689
5689
  * limitations under the License.
5690
5690
  */
5691
- class et extends yn {
5691
+ class et extends vn {
5692
5692
  constructor(e) {
5693
5693
  super(
5694
5694
  "custom",
@@ -5988,9 +5988,9 @@ function $s(n) {
5988
5988
  return ae(Ms, n.config.apiKey, n.name);
5989
5989
  }
5990
5990
  async function Hs(n, e, t = !1) {
5991
- if (y(n.app))
5991
+ if (v(n.app))
5992
5992
  return Promise.reject(N(n));
5993
- const r = ye(n), i = Ps(r, e), a = await new Us(r, i, t).execute();
5993
+ const r = ve(n), i = Ps(r, e), a = await new Us(r, i, t).execute();
5994
5994
  return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
5995
5995
  }
5996
5996
  /**
@@ -6100,8 +6100,8 @@ async function zs(n, e = {}) {
6100
6100
  * See the License for the specific language governing permissions and
6101
6101
  * limitations under the License.
6102
6102
  */
6103
- const Gs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, qs = /^https?/;
6104
- async function Ks(n) {
6103
+ const Gs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ks = /^https?/;
6104
+ async function qs(n) {
6105
6105
  if (n.config.emulator)
6106
6106
  return;
6107
6107
  const { authorizedDomains: e } = await zs(n);
@@ -6123,7 +6123,7 @@ function Js(n) {
6123
6123
  const a = new URL(n);
6124
6124
  return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
6125
6125
  }
6126
- if (!qs.test(t))
6126
+ if (!Ks.test(t))
6127
6127
  return !1;
6128
6128
  if (Gs.test(n))
6129
6129
  return r === n;
@@ -6146,7 +6146,7 @@ function Js(n) {
6146
6146
  * See the License for the specific language governing permissions and
6147
6147
  * limitations under the License.
6148
6148
  */
6149
- const Ys = new te(3e4, 6e4);
6149
+ const Xs = new te(3e4, 6e4);
6150
6150
  function Rt() {
6151
6151
  const n = _().___jsl;
6152
6152
  if (n != null && n.H) {
@@ -6156,7 +6156,7 @@ function Rt() {
6156
6156
  n.CP[t] = null;
6157
6157
  }
6158
6158
  }
6159
- function Xs(n) {
6159
+ function Ys(n) {
6160
6160
  return new Promise((e, t) => {
6161
6161
  var r, i, s;
6162
6162
  function a() {
@@ -6171,7 +6171,7 @@ function Xs(n) {
6171
6171
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
6172
6172
  ));
6173
6173
  },
6174
- timeout: Ys.get()
6174
+ timeout: Xs.get()
6175
6175
  });
6176
6176
  }
6177
6177
  if (!((i = (r = _().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
@@ -6194,7 +6194,7 @@ function Xs(n) {
6194
6194
  }
6195
6195
  let ce = null;
6196
6196
  function Qs(n) {
6197
- return ce = ce || Xs(n), ce;
6197
+ return ce = ce || Ys(n), ce;
6198
6198
  }
6199
6199
  /**
6200
6200
  * @license
@@ -6321,7 +6321,7 @@ function da(n, e, t, r = oa, i = ca) {
6321
6321
  left: a
6322
6322
  }), l = m().toLowerCase();
6323
6323
  t && (c = dn(l) ? la : t), ln(l) && (e = e || ua, o.scrollbars = "yes");
6324
- const u = Object.entries(o).reduce((p, [v, F]) => `${p}${v}=${F},`, "");
6324
+ const u = Object.entries(o).reduce((p, [y, F]) => `${p}${y}=${F},`, "");
6325
6325
  if (zi(l) && c !== "_self")
6326
6326
  return ha(e || "", c), new Ct(null);
6327
6327
  const h = window.open(e || "", c, u);
@@ -6470,13 +6470,13 @@ class _a {
6470
6470
  }
6471
6471
  _originValidation(e) {
6472
6472
  const t = e._key();
6473
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ks(e)), this.originValidationPromises[t];
6473
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = qs(e)), this.originValidationPromises[t];
6474
6474
  }
6475
6475
  get _shouldInitProactively() {
6476
- return gn() || un() || Xe();
6476
+ return gn() || un() || Ye();
6477
6477
  }
6478
6478
  }
6479
- const va = _a;
6479
+ const ya = _a;
6480
6480
  var Ot = "@firebase/auth", Dt = "1.7.9";
6481
6481
  /**
6482
6482
  * @license
@@ -6494,7 +6494,7 @@ var Ot = "@firebase/auth", Dt = "1.7.9";
6494
6494
  * See the License for the specific language governing permissions and
6495
6495
  * limitations under the License.
6496
6496
  */
6497
- class ya {
6497
+ class va {
6498
6498
  constructor(e) {
6499
6499
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
6500
6500
  }
@@ -6575,7 +6575,7 @@ function Ia(n) {
6575
6575
  tokenApiHost: "securetoken.googleapis.com",
6576
6576
  apiScheme: "https",
6577
6577
  sdkClientVersion: _n(n)
6578
- }, l = new Xi(r, i, s, o);
6578
+ }, l = new Yi(r, i, s, o);
6579
6579
  return rs(l, t), l;
6580
6580
  },
6581
6581
  "PUBLIC"
@@ -6591,11 +6591,11 @@ function Ia(n) {
6591
6591
  })), J(new W(
6592
6592
  "auth-internal",
6593
6593
  (e) => {
6594
- const t = ye(e.getProvider(
6594
+ const t = ve(e.getProvider(
6595
6595
  "auth"
6596
6596
  /* _ComponentName.AUTH */
6597
6597
  ).getImmediate());
6598
- return ((r) => new ya(r))(t);
6598
+ return ((r) => new va(r))(t);
6599
6599
  },
6600
6600
  "PRIVATE"
6601
6601
  /* ComponentType.PRIVATE */
@@ -6635,11 +6635,11 @@ const Ta = (n) => async (e) => {
6635
6635
  }));
6636
6636
  };
6637
6637
  function Sa(n = _i()) {
6638
- const e = Kt(n, "auth");
6638
+ const e = qt(n, "auth");
6639
6639
  if (e.isInitialized())
6640
6640
  return e.getImmediate();
6641
6641
  const t = ns(n, {
6642
- popupRedirectResolver: va,
6642
+ popupRedirectResolver: ya,
6643
6643
  persistence: [
6644
6644
  Cs,
6645
6645
  _s,
@@ -6705,7 +6705,7 @@ Aa.beforeEach(async (n) => {
6705
6705
  if (n.name.startsWith("mf-payment-admin")) {
6706
6706
  if (!e.value) {
6707
6707
  Ne || (Ne = new Promise((c) => {
6708
- const o = q(e, (l) => {
6708
+ const o = K(e, (l) => {
6709
6709
  var u, h;
6710
6710
  l && (o(), c(
6711
6711
  (((u = e.value) == null ? void 0 : u.role.isStaff) || ((h = e.value) == null ? void 0 : h.role.isAdmin)) ?? !1
@@ -6719,12 +6719,12 @@ Aa.beforeEach(async (n) => {
6719
6719
  }
6720
6720
  return !r.value || !t.value ? (Le || (Le = Promise.all([
6721
6721
  new Promise(async (a) => {
6722
- const c = q(r, (o) => {
6722
+ const c = K(r, (o) => {
6723
6723
  o && (c(), a(!0));
6724
6724
  });
6725
6725
  }),
6726
6726
  new Promise(async (a) => {
6727
- const c = q(t, (l) => {
6727
+ const c = K(t, (l) => {
6728
6728
  l && (c(), a(!0));
6729
6729
  }), o = await i();
6730
6730
  await s(o == null ? void 0 : o.at(0));
@@ -6735,7 +6735,7 @@ const Ra = /* @__PURE__ */ Mt({
6735
6735
  __name: "AppSidebar",
6736
6736
  setup(n) {
6737
6737
  const e = je(), t = Un(), { t: r } = jn(), i = Fn(t.currentRoute.value.name);
6738
- q(t.currentRoute, () => {
6738
+ K(t.currentRoute, () => {
6739
6739
  let l = t.currentRoute.value.name;
6740
6740
  t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
6741
6741
  });
@@ -6817,18 +6817,18 @@ const Ra = /* @__PURE__ */ Mt({
6817
6817
  };
6818
6818
  }
6819
6819
  });
6820
- var Ca = { authClientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: { 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" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com" };
6820
+ var Ca = { authClientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: { 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" }, assetBucketUrl: "static.feedme.cc" };
6821
6821
  const xa = /* @__PURE__ */ Mt({
6822
6822
  __name: "App",
6823
6823
  setup(n) {
6824
- const { state: e } = Yn(), t = je(), r = xn(), i = Jt(Ca.firebase);
6824
+ const { state: e } = Xn(), t = je(), r = xn(), i = Jt(Ca.firebase);
6825
6825
  async function s() {
6826
6826
  const a = t.sessionUser.value;
6827
6827
  if (!a || !a.token) return;
6828
6828
  const c = await a.getCustomToken(), o = Sa(i);
6829
6829
  await hs(o, c);
6830
6830
  }
6831
- return s(), q(t.sessionUser, s), $n(() => {
6831
+ return s(), K(t.sessionUser, s), $n(() => {
6832
6832
  e.isIframe && parent.postMessage({ event: "ready" }, "*");
6833
6833
  }), Hn(() => {
6834
6834
  t.registerSidebarComponent(Ra);
@@ -6840,7 +6840,7 @@ const xa = /* @__PURE__ */ Mt({
6840
6840
  };
6841
6841
  }
6842
6842
  }), Fa = {
6843
- "en-US": qn,
6843
+ "en-US": Kn,
6844
6844
  "zh-CN": Jn
6845
6845
  }, Ba = [...le, ...We];
6846
6846
  export {
@@ -6849,7 +6849,7 @@ export {
6849
6849
  ee as S,
6850
6850
  gt as _,
6851
6851
  J as a,
6852
- Kt as b,
6852
+ qt as b,
6853
6853
  Ma as c,
6854
6854
  _i as d,
6855
6855
  Ua as e,
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, f as o } from "./app-D_nJ0bPY.js";
1
+ import { h as e, i as r, f as o } from "./app-BcysfQ1o.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,5 +1,5 @@
1
1
  import { d as r, b as a, g as n, o as i } from "./index-eNSd1RuW.js";
2
- import { f as u } from "./plugins-ewG_w1UY.js";
2
+ import { f as u } from "./plugins-CcusOGSo.js";
3
3
  import { h as m } from "./moment-h96o7c8I.js";
4
4
  const y = {
5
5
  async read(s) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.2.33",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,7 +1,7 @@
1
- import { f as j } from "./plugins-ewG_w1UY.js";
1
+ import { f as j } from "./plugins-CcusOGSo.js";
2
2
  import { c as st, a as it, B as at, p as E } from "./index-eNSd1RuW.js";
3
3
  import { useCoreStore as ut } from "@feedmepos/mf-common";
4
- import { _ as ot } from "./app-D_nJ0bPY.js";
4
+ import { _ as ot } from "./app-BcysfQ1o.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {
@@ -1,4 +1,4 @@
1
- import { a as be, C as we, r as K, g as C, b as Te, c as ye, d as H, S as ke, e as Ee, F as Ae } from "./app-D_nJ0bPY.js";
1
+ import { a as be, C as we, r as K, g as C, b as Te, c as ye, d as H, S as ke, e as Ee, F as Ae } from "./app-BcysfQ1o.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.2.33",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"