@feedmepos/mf-connect 0.1.14-prod → 0.1.16-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/{Analytic-MRp7gtO3.js → Analytic-9_JkMO2c.js} +18 -17
  2. package/dist/{App-BU3B2A-F.js → App-DfbUtaeM.js} +68 -64
  3. package/dist/Bin-BoolyqZn.js +165 -0
  4. package/dist/{Broadcast-DmciJlSU.js → Broadcast-8UwFqqzp.js} +8 -8
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DJPOgBXj.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CjoVXqOG.js} +6 -7
  6. package/dist/{Card-Dq2cAgTi.js → Card-BFEc9Zgu.js} +78 -79
  7. package/dist/{Collections-B4x4VH1a.js → Collections-DqlqGVcv.js} +5 -5
  8. package/dist/{Credit-CVdT1KBU.js → Credit-BuKQEMU2.js} +8 -8
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BmjXu-U7.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjCVR7D4.js} +27 -27
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-A_uosv-g.js → EffectSheet.vue_vue_type_style_index_0_lang-DXBqS4zs.js} +8 -8
  11. package/dist/{Experience-CEeXWbue.js → Experience-BTf5f-Kb.js} +8 -8
  12. package/dist/{Game-mx5c5ZhV.js → Game-Ci_39vHg.js} +8 -8
  13. package/dist/{Index-DQ1qadwz.js → Index-8JLenrzT.js} +9 -9
  14. package/dist/{Marketing-CciBZijv.js → Marketing-XAmIlYCx.js} +5 -5
  15. package/dist/{Member-C51SlKxj.js → Member-Bvxgoep1.js} +4 -4
  16. package/dist/MemberList-BvX98Yt-.js +1596 -0
  17. package/dist/MemberTransactions-DJt3aJ-h.js +45 -0
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DZu24zwy.js → MessageInput.vue_vue_type_script_setup_true_lang-OFqra1ac.js} +45 -33
  19. package/dist/{Mission-LpCnpKYD.js → Mission-D_CqN5Es.js} +8 -8
  20. package/dist/{Overview-DxvOqUao.js → Overview-FRebjePW.js} +62 -63
  21. package/dist/{Point-BmI7y6h6.js → Point-C_amiOK4.js} +8 -8
  22. package/dist/{Promotion-MHaOqrwu.js → Promotion-qt_pE8uB.js} +9 -9
  23. package/dist/{Record-75BxMATe.js → Record-2eAijNwr.js} +6 -6
  24. package/dist/{Reward-8VfyFuEt.js → Reward-DLNijsC9.js} +35 -35
  25. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D12_r-9X.js → RewardGroup.vue_vue_type_script_setup_true_lang-dsxs4d5k.js} +12 -13
  26. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BIdBxvN7.js → RuleGroup.vue_vue_type_script_setup_true_lang-BZ4ORSgp.js} +14 -15
  27. package/dist/{Segment-I9FUibZy.js → Segment-QKuGmThT.js} +13 -13
  28. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BGeR0-AG.js → SelectItems.vue_vue_type_script_setup_true_lang-C02QXf6B.js} +2 -2
  29. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DXpzjbIh.js +147 -0
  30. package/dist/Setting-GTro0uCw.js +1877 -0
  31. package/dist/{Store-CQkGNSSm.js → Store-CTxmlEVr.js} +55 -56
  32. package/dist/{StoreRewards-DOtjveqw.js → StoreRewards-Bm9NXXH2.js} +12 -12
  33. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Cf9IsQXS.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CrxFaBDj.js} +321 -354
  34. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DPmeW62s.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Cf2JpXND.js} +1 -1
  35. package/dist/{Tier-DAj_5abZ.js → Tier-CB64ZbLz.js} +20 -21
  36. package/dist/{Title-DryO4wcO.js → Title-62HEE-nU.js} +20 -21
  37. package/dist/{Transaction-DpibVFU-.js → Transaction-CK9Igmnp.js} +2 -2
  38. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DoiPRPPo.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DJB9g9bg.js} +6 -6
  39. package/dist/Voucher-CZLp6Mfd.js +353 -0
  40. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DRnVggfC.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DKunt5iP.js} +10 -10
  41. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BzBcsSYS.js → ZodTextField.vue_vue_type_script_setup_true_lang-CP0wAVaD.js} +1 -1
  42. package/dist/{app-BoQTcBOD.js → app-BsOd2LLI.js} +651 -615
  43. package/dist/{app-BzPle2EI.js → app-D7g1W_8e.js} +1 -1
  44. package/dist/app.js +1 -1
  45. package/dist/{business-H9a63ymR.js → business-e0ErhqsW.js} +1 -1
  46. package/dist/{dto-BBLfD0Lh.js → campaign-CcRs_0FM.js} +610 -819
  47. package/dist/{campaign-CR-16mwD.js → campaign-CcdO3quq.js} +2 -2
  48. package/dist/{campaign.enum-DcaetYuk.js → campaign.enum-DSB0ntaX.js} +1 -1
  49. package/dist/{campaign.fn-BqGZqM77.js → campaign.fn-BSxLDscM.js} +133 -133
  50. package/dist/{collectible.enum-YKtiwQbt.js → collectible.enum-DR19JADq.js} +3 -3
  51. package/dist/{collection.fn-CI8lSAsC.js → collection.fn-Bm_oNhCa.js} +2 -2
  52. package/dist/dto-3LqyQCjQ.js +214 -0
  53. package/dist/{effect-36H79d0n.js → effect-BuC4ddqL.js} +1 -1
  54. package/dist/{email-addresses-drrACeqJ.js → email-addresses-FxQM5JQh.js} +1 -1
  55. package/dist/{export-BgnO3lJs.js → export-DB_vSJ5r.js} +5 -5
  56. package/dist/{helper-CcV9DZXq.js → helper-Czc_ykUT.js} +1 -1
  57. package/dist/index-0EgN5Vaf.js +115 -0
  58. package/dist/{index-Cidu1YZP.js → index-B-gmFyeP.js} +5 -5
  59. package/dist/{index-CB1CnEOn.js → index-C2Y3Z6cQ.js} +1 -1
  60. package/dist/{index-mgoYj6L9.js → index-CavK1FD8.js} +1 -1
  61. package/dist/{index-BEDXujqZ.js → index-DF7DfJ1p.js} +1 -1
  62. package/dist/{index-DydNNBhY.js → index-DJmQQbIZ.js} +29 -4
  63. package/dist/{index-CibFRBGu.js → index-DP1XHU5I.js} +6 -6
  64. package/dist/{index-BRTpdfj3.js → index-DTirkGj1.js} +2057 -1010
  65. package/dist/{index-ZycLk3NR.js → index-Dc_5fMdM.js} +1 -1
  66. package/dist/index-Dvp6UpsY.js +44 -0
  67. package/dist/{index-BPbhXWRp.js → index-KXIH9y_C.js} +12 -13
  68. package/dist/{index-DLAAi9ur.js → index-o3ez16Wf.js} +3 -3
  69. package/dist/{index.esm2017-QS_XhcBp.js → index.esm2017-DsCfyosK.js} +1 -1
  70. package/dist/{loading-LktVwV5k.js → loading-CsMKK-RP.js} +4 -4
  71. package/dist/{membership-7ETvXph3.js → membership-ChU9QHZQ.js} +6 -6
  72. package/dist/{money-BYszknw8.js → money-CG2aMqwR.js} +1 -1
  73. package/dist/{number-Dmd4vT4F.js → number-DOiTymUW.js} +1 -1
  74. package/dist/{objectid-BQtSeCVi.js → objectid-DEgIJB4V.js} +4 -4
  75. package/dist/{reward-DJGOX-D1.js → reward-bezIYRz1.js} +1 -1
  76. package/dist/{rule-D7jM4gdg.js → rule-BXvIZA60.js} +3 -3
  77. package/dist/{rule-builder-FO9UeYUJ.js → rule-builder-BD_t-4Oq.js} +1 -1
  78. package/dist/{template-C4Ddrpk1.js → template-CYa8Yqzb.js} +4 -4
  79. package/dist/{trigger-w7Q4qOMB.js → trigger-B2Ihm351.js} +13 -13
  80. package/dist/{usePagination-PH1OvyZM.js → usePagination-Dus-uVGw.js} +1 -1
  81. package/dist/{user-DRPXRVy2.js → user-BkIvuR0M.js} +1 -1
  82. package/dist/{vue-i18n-B49HKiTU.js → vue-i18n-BOO66JER.js} +112 -112
  83. package/package.json +1 -1
  84. package/dist/MemberList-D1x731cU.js +0 -1043
  85. package/dist/MemberTransactions-BpoTQHFQ.js +0 -38
  86. package/dist/Setting-B8V2I0EZ.js +0 -1871
  87. package/dist/Voucher-CSc0_dGX.js +0 -491
  88. package/dist/index-6RqtavHk.js +0 -1051
  89. package/dist/index-B5ii6hOh.js +0 -99
@@ -1,20 +1,21 @@
1
1
  import { defineComponent as j, ref as y, watch as X, onMounted as I, resolveComponent as x, openBlock as d, createBlock as A, withCtx as L, createVNode as h, unref as t, createElementVNode as i, createElementBlock as k, Fragment as $, renderList as D, computed as G, toDisplayString as O, isRef as T, createSlots as Y, createCommentVNode as V, createTextVNode as ee, reactive as te, onBeforeMount as ae } from "vue";
2
2
  import { _ as ne } from "./campaign-CpzFl8Vr.js";
3
- import "./index-DLAAi9ur.js";
4
- import { F as le } from "./dto-BBLfD0Lh.js";
5
- import { useRouter as oe } from "vue-router";
6
- import { c as R } from "./index-B5ii6hOh.js";
7
- import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BzBcsSYS.js";
8
- import { Z as re } from "./zod-Bg2FbC-D.js";
3
+ import "./index-o3ez16Wf.js";
4
+ import "./campaign-CcRs_0FM.js";
5
+ import { useRouter as le } from "vue-router";
6
+ import { c as R } from "./index-0EgN5Vaf.js";
7
+ import { _ as oe } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CP0wAVaD.js";
8
+ import { Z as se } from "./zod-Bg2FbC-D.js";
9
+ import { F as re } from "./dto-3LqyQCjQ.js";
9
10
  import { J as ie } from "./JsonViewer-v8_C7l5N.js";
10
- import { u as ue } from "./loading-LktVwV5k.js";
11
+ import { u as ue } from "./loading-CsMKK-RP.js";
11
12
  import { useSnackbar as ce } from "@feedmepos/ui-library";
12
13
  import { u as me } from "./app-wDQR6dpb.js";
13
- import { C as de } from "./campaign.fn-BqGZqM77.js";
14
+ import { C as de } from "./campaign.fn-BSxLDscM.js";
14
15
  import { g as pe } from "./object-qECH92oz.js";
15
- import { u as ve } from "./campaign-CR-16mwD.js";
16
- import { u as fe } from "./membership-7ETvXph3.js";
17
- import { u as ye } from "./vue-i18n-B49HKiTU.js";
16
+ import { u as ve } from "./campaign-CcdO3quq.js";
17
+ import { u as fe } from "./membership-ChU9QHZQ.js";
18
+ import { u as ye } from "./vue-i18n-BOO66JER.js";
18
19
  const _e = { class: "ml-32 flex flex-col" }, ge = /* @__PURE__ */ j({
19
20
  __name: "CampaignCard",
20
21
  props: {
@@ -134,7 +135,7 @@ const _e = { class: "ml-32 flex flex-col" }, ge = /* @__PURE__ */ j({
134
135
  const _ = y(!1), r = y(!1), p = {
135
136
  name: "",
136
137
  campaigns: []
137
- }, o = y(""), a = y({ ...p }), g = le.superRefine((s, e) => {
138
+ }, o = y(""), a = y({ ...p }), g = re.superRefine((s, e) => {
138
139
  }), l = y([]), n = y(null), { global: c, minor: w } = ue, P = G(() => {
139
140
  const s = g.safeParse(a.value);
140
141
  return s.success ? [] : s.error.errors;
@@ -261,11 +262,11 @@ const _e = { class: "ml-32 flex flex-col" }, ge = /* @__PURE__ */ j({
261
262
  default: L(() => [
262
263
  t(r) ? V("", !0) : (d(), k("div", Se, [
263
264
  we,
264
- h(se, {
265
+ h(oe, {
265
266
  modelValue: t(a).name,
266
267
  "onUpdate:modelValue": e[1] || (e[1] = (f) => t(a).name = f),
267
268
  label: "Name",
268
- schema: t(re).typeAtPath(t(g), "name")
269
+ schema: t(se).typeAtPath(t(g), "name")
269
270
  }, null, 8, ["modelValue", "schema"]),
270
271
  Fe,
271
272
  i("div", Ae, [
@@ -334,7 +335,7 @@ const _e = { class: "ml-32 flex flex-col" }, ge = /* @__PURE__ */ j({
334
335
  }), Be = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Re = { class: "space-y-16" }, Ee = { class: "flex items-center justify-end" }, Oe = /* @__PURE__ */ i("img", {
335
336
  src: ne,
336
337
  class: "w-[150px]"
337
- }, null, -1), De = /* @__PURE__ */ i("div", { class: "fm-typo-en-title-sm-800 text-center" }, " Analytics Dashboard Temporarily Unavailable ", -1), Te = /* @__PURE__ */ i("div", { class: "fm-typo-body-en-md-400 text-center text-fm-color-typo-secondary" }, " We apologize for the inconvenience. The analytics dashboard is currently under maintenance to improve your experience. Please check back later for updates on system availability. ", -1), ot = /* @__PURE__ */ j({
338
+ }, null, -1), De = /* @__PURE__ */ i("div", { class: "fm-typo-en-title-sm-800 text-center" }, " Analytics Dashboard Temporarily Unavailable ", -1), Te = /* @__PURE__ */ i("div", { class: "fm-typo-body-en-md-400 text-center text-fm-color-typo-secondary" }, " We apologize for the inconvenience. The analytics dashboard is currently under maintenance to improve your experience. Please check back later for updates on system availability. ", -1), st = /* @__PURE__ */ j({
338
339
  __name: "Analytic",
339
340
  setup(U) {
340
341
  const { t: b } = ye(), u = {
@@ -368,7 +369,7 @@ const _e = { class: "ml-32 flex flex-col" }, ge = /* @__PURE__ */ j({
368
369
  return n.name.includes(r.value) || ((c = n.pf_campaigns) == null ? void 0 : c.filter((w) => w.name.includes(r.value)).length);
369
370
  }));
370
371
  const l = fe();
371
- return oe(), y(!0), G(() => {
372
+ return le(), y(!0), G(() => {
372
373
  var n, c, w, P;
373
374
  return !l.storeOption || !l.storeOption.company ? -1 : !l.payoutAccount || !l.payoutAccount.enable || l.payoutAccount.status != "APPROVED" ? 0 : (c = (n = l.store) == null ? void 0 : n.categories) != null && c.length ? (P = (w = l.store) == null ? void 0 : w.categories) != null && P.some(
374
375
  (M) => M.bundles.some((F) => F.isFeedvibe)
@@ -421,5 +422,5 @@ const _e = { class: "ml-32 flex flex-col" }, ge = /* @__PURE__ */ j({
421
422
  }
422
423
  });
423
424
  export {
424
- ot as default
425
+ st as default
425
426
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as lt, ref as te, h as B, watch as ut, resolveComponent as Yt, openBlock as ne, createBlock as dt, unref as P, computed as Ve, onMounted as Xt, createElementBlock as He, Fragment as Qt, createCommentVNode as $e, createVNode as Zt, createElementVNode as en, nextTick as tn } from "vue";
1
+ import { defineComponent as lt, ref as te, h as G, watch as ut, resolveComponent as Yt, openBlock as ne, createBlock as dt, unref as P, computed as Ve, onMounted as Xt, createElementBlock as $e, Fragment as Qt, createCommentVNode as He, createVNode as Zt, createElementVNode as en, nextTick as tn } from "vue";
2
2
  import { useRouter as nn, useRoute as ht, RouterView as rn } from "vue-router";
3
3
  import { useCoreStore as We, FeedMeAuth as sn } from "@feedmepos/mf-common";
4
4
  import { u as on } from "./app-wDQR6dpb.js";
5
- import { u as an } from "./business-H9a63ymR.js";
6
- import "./index-CB1CnEOn.js";
5
+ import { u as an } from "./business-e0ErhqsW.js";
6
+ import "./index-C2Y3Z6cQ.js";
7
7
  import { components as q, useSnackbar as cn, useDialog as ln } from "@feedmepos/ui-library";
8
- import { u as un } from "./vue-i18n-B49HKiTU.js";
9
- import { R as f } from "./app-BoQTcBOD.js";
8
+ import { u as un } from "./vue-i18n-BOO66JER.js";
9
+ import { R as f } from "./app-BsOd2LLI.js";
10
10
  import { J as dn } from "./JsonViewer-v8_C7l5N.js";
11
- import { r as ye, L as hn, g as ft, i as fn, a as pn, _ as je, C as Ge, b as mn, S as J, c as w, d as j, E as Se, e as gn, f as pt, h as _n, j as vn, k as mt, l as g, m as In, F as Re, n as Tn, q as Y, o as wn, p as yn, s as En, t as kn, u as bn } from "./index.esm2017-QS_XhcBp.js";
11
+ import { r as ye, L as hn, g as ft, i as fn, a as pn, _ as je, C as Be, b as mn, S as J, c as w, d as j, E as Se, e as gn, f as pt, h as _n, j as vn, k as mt, l as g, m as In, F as Re, n as Tn, q as Y, o as wn, p as yn, s as En, t as kn, u as bn } from "./index.esm2017-DsCfyosK.js";
12
12
  import { _ as Pe } from "./tslib.es6-BCqqvLQ_.js";
13
- import { S as Be, c as Sn } from "./index-DLAAi9ur.js";
13
+ import { S as Ge, c as Sn } from "./index-o3ez16Wf.js";
14
14
  const Rn = /* @__PURE__ */ lt({
15
15
  __name: "NavigationTab",
16
16
  setup(n) {
@@ -56,7 +56,7 @@ const Rn = /* @__PURE__ */ lt({
56
56
  {
57
57
  label: e("connect.navigation.point"),
58
58
  value: f["$connect-PROGRAM_POINT"],
59
- badge: () => B(q.FmPill, { variant: "premium" })
59
+ badge: () => G(q.FmPill, { variant: "premium" })
60
60
  },
61
61
  {
62
62
  label: e("connect.navigation.credit"),
@@ -65,7 +65,7 @@ const Rn = /* @__PURE__ */ lt({
65
65
  {
66
66
  label: e("connect.navigation.game"),
67
67
  value: f["$connect-PROGRAM_GAME"],
68
- badge: () => B(q.FmPill, { variant: "premium" })
68
+ badge: () => G(q.FmPill, { variant: "premium" })
69
69
  },
70
70
  {
71
71
  label: "Mission",
@@ -84,19 +84,19 @@ const Rn = /* @__PURE__ */ lt({
84
84
  {
85
85
  label: e("connect.navigation.segments"),
86
86
  value: f["$connect-LOYALTY_SEGMENT"],
87
- badge: () => B(q.FmPill, { variant: "premium" })
87
+ badge: () => G(q.FmPill, { variant: "premium" })
88
88
  },
89
89
  {
90
90
  label: e("connect.navigation.card"),
91
91
  value: f["$connect-LOYALTY_CARD"],
92
- badge: () => B(q.FmPill, { variant: "premium" })
92
+ badge: () => G(q.FmPill, { variant: "premium" })
93
93
  }
94
94
  ]
95
95
  },
96
96
  {
97
97
  label: e("connect.navigation.referral"),
98
98
  value: f["$connect-REFERRAL"],
99
- badge: () => B(q.FmPill, { variant: "premium" })
99
+ badge: () => G(q.FmPill, { variant: "premium" })
100
100
  },
101
101
  {
102
102
  label: e("connect.navigation.store"),
@@ -113,6 +113,10 @@ const Rn = /* @__PURE__ */ lt({
113
113
  {
114
114
  label: e("connect.navigation.setting"),
115
115
  value: f["$connect-SETTING"]
116
+ },
117
+ {
118
+ label: e("connect.navigation.bin"),
119
+ value: f["$connect-BIN"]
116
120
  }
117
121
  ], r = nn(), s = ht(), o = i.reduce((a, l) => [...(l.children ?? []).map((d) => d.value), ...a, l.value], []);
118
122
  ut(
@@ -507,7 +511,7 @@ const Dn = new X(3e4, 6e4);
507
511
  function he(n, e) {
508
512
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
509
513
  }
510
- async function G(n, e, t, i, r = {}) {
514
+ async function B(n, e, t, i, r = {}) {
511
515
  return Tt(n, r, async () => {
512
516
  let s = {}, o = {};
513
517
  i && (e === "GET" ? o = i : s = {
@@ -561,7 +565,7 @@ async function Tt(n, e, t) {
561
565
  }
562
566
  }
563
567
  async function wt(n, e, t, i, r = {}) {
564
- const s = await G(n, e, t, i, r);
568
+ const s = await B(n, e, t, i, r);
565
569
  return "mfaPendingCredential" in s && b(n, "multi-factor-auth-required", {
566
570
  _serverResponse: s
567
571
  }), s;
@@ -609,10 +613,10 @@ function ee(n, e, t) {
609
613
  * limitations under the License.
610
614
  */
611
615
  async function xn(n, e) {
612
- return G(n, "POST", "/v1/accounts:delete", e);
616
+ return B(n, "POST", "/v1/accounts:delete", e);
613
617
  }
614
618
  async function Et(n, e) {
615
- return G(n, "POST", "/v1/accounts:lookup", e);
619
+ return B(n, "POST", "/v1/accounts:lookup", e);
616
620
  }
617
621
  /**
618
622
  * @license
@@ -710,10 +714,10 @@ async function K(n, e, t = !1) {
710
714
  try {
711
715
  return await e;
712
716
  } catch (i) {
713
- throw i instanceof Re && Hn(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
717
+ throw i instanceof Re && $n(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
714
718
  }
715
719
  }
716
- function Hn({ code: n }) {
720
+ function $n({ code: n }) {
717
721
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
718
722
  }
719
723
  /**
@@ -732,7 +736,7 @@ function Hn({ code: n }) {
732
736
  * See the License for the specific language governing permissions and
733
737
  * limitations under the License.
734
738
  */
735
- class $n {
739
+ class Hn {
736
740
  constructor(e) {
737
741
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
738
742
  }
@@ -888,7 +892,7 @@ function kt(n) {
888
892
  * See the License for the specific language governing permissions and
889
893
  * limitations under the License.
890
894
  */
891
- async function Gn(n, e) {
895
+ async function Bn(n, e) {
892
896
  const t = await Tt(n, {}, async () => {
893
897
  const i = Y({
894
898
  grant_type: "refresh_token",
@@ -909,8 +913,8 @@ async function Gn(n, e) {
909
913
  refreshToken: t.refresh_token
910
914
  };
911
915
  }
912
- async function Bn(n, e) {
913
- return G(n, "POST", "/v2/accounts:revokeToken", he(n, e));
916
+ async function Gn(n, e) {
917
+ return B(n, "POST", "/v2/accounts:revokeToken", he(n, e));
914
918
  }
915
919
  /**
916
920
  * @license
@@ -928,7 +932,7 @@ async function Bn(n, e) {
928
932
  * See the License for the specific language governing permissions and
929
933
  * limitations under the License.
930
934
  */
931
- class H {
935
+ class $ {
932
936
  constructor() {
933
937
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
934
938
  }
@@ -973,14 +977,14 @@ class H {
973
977
  this.refreshToken = null;
974
978
  }
975
979
  async refresh(e, t) {
976
- const { accessToken: i, refreshToken: r, expiresIn: s } = await Gn(e, t);
980
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await Bn(e, t);
977
981
  this.updateTokensAndExpiration(i, r, Number(s));
978
982
  }
979
983
  updateTokensAndExpiration(e, t, i) {
980
984
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + i * 1e3;
981
985
  }
982
986
  static fromJSON(e, t) {
983
- const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new H();
987
+ const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new $();
984
988
  return i && (u(typeof i == "string", "internal-error", {
985
989
  appName: e
986
990
  }), o.refreshToken = i), r && (u(typeof r == "string", "internal-error", {
@@ -1000,7 +1004,7 @@ class H {
1000
1004
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
1001
1005
  }
1002
1006
  _clone() {
1003
- return Object.assign(new H(), this.toJSON());
1007
+ return Object.assign(new $(), this.toJSON());
1004
1008
  }
1005
1009
  _performRefresh() {
1006
1010
  return y("not implemented");
@@ -1028,7 +1032,7 @@ function R(n, e) {
1028
1032
  class E {
1029
1033
  constructor(e) {
1030
1034
  var { uid: t, auth: i, stsTokenManager: r } = e, s = Pe(e, ["uid", "auth", "stsTokenManager"]);
1031
- this.providerId = "firebase", this.proactiveRefresh = new $n(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new ke(s.createdAt || void 0, s.lastLoginAt || void 0);
1035
+ this.providerId = "firebase", this.proactiveRefresh = new Hn(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new ke(s.createdAt || void 0, s.lastLoginAt || void 0);
1032
1036
  }
1033
1037
  async getIdToken(e) {
1034
1038
  const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1117,7 +1121,7 @@ class E {
1117
1121
  "internal-error"
1118
1122
  /* AuthErrorCode.INTERNAL_ERROR */
1119
1123
  );
1120
- const Kt = H.fromJSON(this.name, xe);
1124
+ const Kt = $.fromJSON(this.name, xe);
1121
1125
  u(
1122
1126
  typeof _e == "string",
1123
1127
  e,
@@ -1156,7 +1160,7 @@ class E {
1156
1160
  * @param idTokenResponse
1157
1161
  */
1158
1162
  static async _fromIdTokenResponse(e, t, i = !1) {
1159
- const r = new H();
1163
+ const r = new $();
1160
1164
  r.updateFromServerResponse(t);
1161
1165
  const s = new E({
1162
1166
  uid: t.localId,
@@ -1178,7 +1182,7 @@ class E {
1178
1182
  "internal-error"
1179
1183
  /* AuthErrorCode.INTERNAL_ERROR */
1180
1184
  );
1181
- const s = r.providerUserInfo !== void 0 ? kt(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new H();
1185
+ const s = r.providerUserInfo !== void 0 ? kt(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new $();
1182
1186
  c.updateFromIdToken(i);
1183
1187
  const a = new E({
1184
1188
  uid: r.localId,
@@ -1281,7 +1285,7 @@ const Je = bt;
1281
1285
  function re(n, e, t) {
1282
1286
  return `firebase:${n}:${e}:${t}`;
1283
1287
  }
1284
- class $ {
1288
+ class H {
1285
1289
  constructor(e, t, i) {
1286
1290
  this.persistence = e, this.auth = t, this.userKey = i;
1287
1291
  const { config: r, name: s } = this.auth;
@@ -1312,7 +1316,7 @@ class $ {
1312
1316
  }
1313
1317
  static async create(e, t, i = "authUser") {
1314
1318
  if (!t.length)
1315
- return new $(k(Je), e, i);
1319
+ return new H(k(Je), e, i);
1316
1320
  const r = (await Promise.all(t.map(async (l) => {
1317
1321
  if (await l._isAvailable())
1318
1322
  return l;
@@ -1331,13 +1335,13 @@ class $ {
1331
1335
  } catch {
1332
1336
  }
1333
1337
  const a = r.filter((l) => l._shouldAllowMigration);
1334
- return !s._shouldAllowMigration || !a.length ? new $(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
1338
+ return !s._shouldAllowMigration || !a.length ? new H(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
1335
1339
  if (l !== s)
1336
1340
  try {
1337
1341
  await l._remove(o);
1338
1342
  } catch {
1339
1343
  }
1340
- })), new $(s, e, i));
1344
+ })), new H(s, e, i));
1341
1345
  }
1342
1346
  }
1343
1347
  /**
@@ -1532,7 +1536,7 @@ class Jn {
1532
1536
  * limitations under the License.
1533
1537
  */
1534
1538
  async function Yn(n, e = {}) {
1535
- return G(n, "GET", "/v2/passwordPolicy", he(n, e));
1539
+ return B(n, "GET", "/v2/passwordPolicy", he(n, e));
1536
1540
  }
1537
1541
  /**
1538
1542
  * @license
@@ -1645,7 +1649,7 @@ class Zn {
1645
1649
  _initializeWithPersistence(e, t) {
1646
1650
  return t && (this._popupRedirectResolver = k(t)), this._initializationPromise = this.queue(async () => {
1647
1651
  var i, r;
1648
- if (!this._deleted && (this.persistenceManager = await $.create(this, e), !this._deleted)) {
1652
+ if (!this._deleted && (this.persistenceManager = await H.create(this, e), !this._deleted)) {
1649
1653
  if (!((i = this._popupRedirectResolver) === null || i === void 0) && i._shouldInitProactively)
1650
1654
  try {
1651
1655
  await this._popupRedirectResolver._initialize(this);
@@ -1825,7 +1829,7 @@ class Zn {
1825
1829
  token: e,
1826
1830
  idToken: t
1827
1831
  };
1828
- this.tenantId != null && (i.tenantId = this.tenantId), await Bn(this, i);
1832
+ this.tenantId != null && (i.tenantId = this.tenantId), await Gn(this, i);
1829
1833
  }
1830
1834
  }
1831
1835
  toJSON() {
@@ -1849,7 +1853,7 @@ class Zn {
1849
1853
  this,
1850
1854
  "argument-error"
1851
1855
  /* AuthErrorCode.ARGUMENT_ERROR */
1852
- ), this.redirectPersistenceManager = await $.create(
1856
+ ), this.redirectPersistenceManager = await H.create(
1853
1857
  this,
1854
1858
  [k(t._redirectPersistence)],
1855
1859
  "redirectUser"
@@ -2997,7 +3001,7 @@ const Ti = Vt;
2997
3001
  * See the License for the specific language governing permissions and
2998
3002
  * limitations under the License.
2999
3003
  */
3000
- class Ht extends xt {
3004
+ class $t extends xt {
3001
3005
  constructor() {
3002
3006
  super(
3003
3007
  () => window.sessionStorage,
@@ -3010,8 +3014,8 @@ class Ht extends xt {
3010
3014
  _removeListener(e, t) {
3011
3015
  }
3012
3016
  }
3013
- Ht.type = "SESSION";
3014
- const $t = Ht;
3017
+ $t.type = "SESSION";
3018
+ const Ht = $t;
3015
3019
  /**
3016
3020
  * @license
3017
3021
  * Copyright 2019 Google LLC
@@ -3320,7 +3324,7 @@ function Si() {
3320
3324
  * See the License for the specific language governing permissions and
3321
3325
  * limitations under the License.
3322
3326
  */
3323
- const jt = "firebaseLocalStorageDb", Ri = 1, de = "firebaseLocalStorage", Gt = "fbase_key";
3327
+ const jt = "firebaseLocalStorageDb", Ri = 1, de = "firebaseLocalStorage", Bt = "fbase_key";
3324
3328
  class Z {
3325
3329
  constructor(e) {
3326
3330
  this.request = e;
@@ -3350,7 +3354,7 @@ function be() {
3350
3354
  }), n.addEventListener("upgradeneeded", () => {
3351
3355
  const i = n.result;
3352
3356
  try {
3353
- i.createObjectStore(de, { keyPath: Gt });
3357
+ i.createObjectStore(de, { keyPath: Bt });
3354
3358
  } catch (r) {
3355
3359
  t(r);
3356
3360
  }
@@ -3362,7 +3366,7 @@ function be() {
3362
3366
  }
3363
3367
  async function et(n, e, t) {
3364
3368
  const i = ge(n, !0).put({
3365
- [Gt]: e,
3369
+ [Bt]: e,
3366
3370
  value: t
3367
3371
  });
3368
3372
  return new Z(i).toPromise();
@@ -3376,7 +3380,7 @@ function tt(n, e) {
3376
3380
  return new Z(t).toPromise();
3377
3381
  }
3378
3382
  const Ci = 800, Oi = 3;
3379
- class Bt {
3383
+ class Gt {
3380
3384
  constructor() {
3381
3385
  this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
3382
3386
  }, () => {
@@ -3525,8 +3529,8 @@ class Bt {
3525
3529
  this.listeners[e] && (this.listeners[e].delete(t), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
3526
3530
  }
3527
3531
  }
3528
- Bt.type = "LOCAL";
3529
- const Ni = Bt;
3532
+ Gt.type = "LOCAL";
3533
+ const Ni = Gt;
3530
3534
  new X(3e4, 6e4);
3531
3535
  /**
3532
3536
  * @license
@@ -3823,7 +3827,7 @@ class Vi extends qt {
3823
3827
  let e = se.get(this.auth._key());
3824
3828
  if (!e) {
3825
3829
  try {
3826
- const i = await Hi(this.resolver, this.auth) ? await super.execute() : null;
3830
+ const i = await $i(this.resolver, this.auth) ? await super.execute() : null;
3827
3831
  e = () => Promise.resolve(i);
3828
3832
  } catch (t) {
3829
3833
  e = () => Promise.reject(t);
@@ -3851,14 +3855,14 @@ class Vi extends qt {
3851
3855
  cleanUp() {
3852
3856
  }
3853
3857
  }
3854
- async function Hi(n, e) {
3858
+ async function $i(n, e) {
3855
3859
  const t = ji(e), i = Wi(n);
3856
3860
  if (!await i._isAvailable())
3857
3861
  return !1;
3858
3862
  const r = await i._get(t) === "true";
3859
3863
  return await i._remove(t), r;
3860
3864
  }
3861
- function $i(n, e) {
3865
+ function Hi(n, e) {
3862
3866
  se.set(n._key(), e);
3863
3867
  }
3864
3868
  function Wi(n) {
@@ -3867,7 +3871,7 @@ function Wi(n) {
3867
3871
  function ji(n) {
3868
3872
  return re(xi, n.config.apiKey, n.name);
3869
3873
  }
3870
- async function Gi(n, e, t = !1) {
3874
+ async function Bi(n, e, t = !1) {
3871
3875
  if (w(n.app))
3872
3876
  return Promise.reject(L(n));
3873
3877
  const i = pe(n), r = Li(i, e), o = await new Vi(i, r, t).execute();
@@ -3889,7 +3893,7 @@ async function Gi(n, e, t = !1) {
3889
3893
  * See the License for the specific language governing permissions and
3890
3894
  * limitations under the License.
3891
3895
  */
3892
- const Bi = 10 * 60 * 1e3;
3896
+ const Gi = 10 * 60 * 1e3;
3893
3897
  class qi {
3894
3898
  constructor(e) {
3895
3899
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
@@ -3921,7 +3925,7 @@ class qi {
3921
3925
  return t.filter.includes(e.type) && i;
3922
3926
  }
3923
3927
  hasEventBeenHandled(e) {
3924
- return Date.now() - this.lastProcessedEventTime >= Bi && this.cachedEventUids.clear(), this.cachedEventUids.has(nt(e));
3928
+ return Date.now() - this.lastProcessedEventTime >= Gi && this.cachedEventUids.clear(), this.cachedEventUids.has(nt(e));
3925
3929
  }
3926
3930
  saveEventToCache(e) {
3927
3931
  this.cachedEventUids.add(nt(e)), this.lastProcessedEventTime = Date.now();
@@ -3962,7 +3966,7 @@ function zi(n) {
3962
3966
  * limitations under the License.
3963
3967
  */
3964
3968
  async function Ki(n, e = {}) {
3965
- return G(n, "GET", "/v1/projects", e);
3969
+ return B(n, "GET", "/v1/projects", e);
3966
3970
  }
3967
3971
  /**
3968
3972
  * @license
@@ -4298,7 +4302,7 @@ function Ir({ config: n }) {
4298
4302
  const we = "webStorageSupport";
4299
4303
  class Tr {
4300
4304
  constructor() {
4301
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = $t, this._completeRedirectFn = Gi, this._overrideRedirectResult = $i;
4305
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Ht, this._completeRedirectFn = Bi, this._overrideRedirectResult = Hi;
4302
4306
  }
4303
4307
  // Wrapping in async even though we don't await anywhere in order
4304
4308
  // to make sure errors are raised as promise rejections
@@ -4442,7 +4446,7 @@ function Er(n) {
4442
4446
  }
4443
4447
  }
4444
4448
  function kr(n) {
4445
- je(new Ge(
4449
+ je(new Be(
4446
4450
  "auth",
4447
4451
  (e, { options: t }) => {
4448
4452
  const i = e.getProvider("app").getImmediate(), r = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: o, authDomain: c } = i.options;
@@ -4468,7 +4472,7 @@ function kr(n) {
4468
4472
  "auth-internal"
4469
4473
  /* _ComponentName.AUTH_INTERNAL */
4470
4474
  ).initialize();
4471
- })), je(new Ge(
4475
+ })), je(new Be(
4472
4476
  "auth-internal",
4473
4477
  (e) => {
4474
4478
  const t = pe(e.getProvider(
@@ -4523,7 +4527,7 @@ function Pr(n = vn()) {
4523
4527
  persistence: [
4524
4528
  Ni,
4525
4529
  Ti,
4526
- $t
4530
+ Ht
4527
4531
  ]
4528
4532
  }), i = ft("authTokenSyncURL");
4529
4533
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
@@ -4569,7 +4573,7 @@ const Nr = {
4569
4573
  __name: "App",
4570
4574
  setup(n) {
4571
4575
  const e = We(), t = on(), i = an(), r = cn(), s = ln(), o = ht(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = We(), d = te(!1), h = Ve(() => i.version), _ = Ve(() => {
4572
- const p = e.currentCountry.value || "MY", m = Be.getIdToken(), v = l.value._id;
4576
+ const p = e.currentCountry.value || "MY", m = Ge.getIdToken(), v = l.value._id;
4573
4577
  return `${Or.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${p}&token=${m}`;
4574
4578
  });
4575
4579
  async function F() {
@@ -4581,7 +4585,7 @@ const Nr = {
4581
4585
  await pi(v, m), bn(p), console.log("initFirebase", p);
4582
4586
  }
4583
4587
  const M = async () => {
4584
- d.value = !1, await tn(), console.log("forceRerender"), Be.setBusinessId(l.value._id), await i.readPremium(), !a.value && h.value === "v2" ? e.registerSidebarComponent(Rn) : e.hideSidebarToggle(!0), await F(), a.value = !0, d.value = !0;
4588
+ d.value = !1, await tn(), console.log("forceRerender"), Ge.setBusinessId(l.value._id), await i.readPremium(), !a.value && h.value === "v2" ? e.registerSidebarComponent(Rn) : e.hideSidebarToggle(!0), await F(), a.value = !0, d.value = !0;
4585
4589
  };
4586
4590
  return Xt(() => {
4587
4591
  if (Sn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
@@ -4594,9 +4598,9 @@ const Nr = {
4594
4598
  async (p, m) => {
4595
4599
  console.log("Current business changed"), p != null && p._id != m._id && (console.log("forceRerender when business changes", p, m), M());
4596
4600
  }
4597
- ), (p, m) => (ne(), He(Qt, null, [
4598
- P(d) && P(h) === "v2" ? (ne(), dt(P(rn), { key: 0 })) : $e("", !0),
4599
- P(d) && P(h) !== "v2" ? (ne(), He("div", Nr, [
4601
+ ), (p, m) => (ne(), $e(Qt, null, [
4602
+ P(d) && P(h) === "v2" ? (ne(), dt(P(rn), { key: 0 })) : He("", !0),
4603
+ P(d) && P(h) !== "v2" ? (ne(), $e("div", Nr, [
4600
4604
  Zt(dn, {
4601
4605
  json: { url: P(_) }
4602
4606
  }, null, 8, ["json"]),
@@ -4607,7 +4611,7 @@ const Nr = {
4607
4611
  width: "100%",
4608
4612
  src: P(_)
4609
4613
  }, null, 8, Lr)
4610
- ])) : $e("", !0)
4614
+ ])) : He("", !0)
4611
4615
  ], 64));
4612
4616
  }
4613
4617
  });