@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-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 (116) hide show
  1. package/dist/Analytic-BHDjuMfN.js +426 -0
  2. package/dist/{App-DsB2o1oB.js → App-BSSze_b9.js} +106 -118
  3. package/dist/{Bin-DMr7K8Kj.js → Bin-DfzoQbE0.js} +8 -8
  4. package/dist/{Broadcast-C9akM-TB.js → Broadcast-DsqO4SXX.js} +17 -18
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DQ0x2VJp.js} +6 -5
  6. package/dist/{Card-DRkIYs0M.js → Card-VxbqomXV.js} +19 -19
  7. package/dist/{Collections-B0uGC2FE.js → Collections-CvD98I3M.js} +185 -197
  8. package/dist/{Credit-V5YA_hGx.js → Credit-BhM2m2L2.js} +53 -54
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DvfrrjHc.js +2223 -0
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-CPx9U9fU.js} +6 -6
  11. package/dist/{Experience-WTWy5yY6.js → Experience-uWQRb-qf.js} +34 -35
  12. package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-DKNoHTvP.js} +1 -1
  13. package/dist/{Game-BwOfTCW5.js → Game-BgT3oNx7.js} +15 -16
  14. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-ClqrJbU6.js} +1 -1
  15. package/dist/{Index-m7l4insz.js → Index-D3RgVj9V.js} +10 -10
  16. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CkCpumzB.js} +1 -1
  17. package/dist/{MainLayout-Du5kZOtA.js → MainLayout-B2RiPsIR.js} +1 -1
  18. package/dist/{Marketing-C9pSIdBU.js → Marketing-FrE7k7eW.js} +4 -4
  19. package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-DGNjEUu-.js} +211 -214
  20. package/dist/{Member-DUV_vbPI.js → Member-CgTagUQ9.js} +20 -20
  21. package/dist/{MemberList-Ye4nOk-i.js → MemberList-CKbzsDMX.js} +51 -50
  22. package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-CnY5cFdv.js} +1 -1
  23. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-DqivG_O4.js} +11 -11
  24. package/dist/{Mission-BBmCGpt8.js → Mission-BGNqy7wQ.js} +34 -35
  25. package/dist/{Overview-DOJj4XvO.js → Overview-CnpF74wa.js} +19 -19
  26. package/dist/{Point-Bzg6hi6o.js → Point-BHgIy7Bz.js} +29 -30
  27. package/dist/{Promotion-BMXIp_ef.js → Promotion-CNQvO5Lq.js} +105 -111
  28. package/dist/{Queue-55G2gtP5.js → Queue-CoPBE0UP.js} +43 -43
  29. package/dist/{Record-DNPI02c6.js → Record-BuDQ15FJ.js} +10 -10
  30. package/dist/{Reward-CnP8R2pS.js → Reward-BQlCO3Dk.js} +17 -17
  31. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-nhNr_T7D.js} +12 -12
  32. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-lnxwLa8o.js +1888 -0
  33. package/dist/{Segment-CxiQnnyj.js → Segment-DKFAXGzY.js} +78 -77
  34. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js → SelectItems.vue_vue_type_script_setup_true_lang-CUR7djaM.js} +3 -3
  35. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CZ3s2W8Q.js} +12 -12
  36. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbilZk82.js} +4 -4
  37. package/dist/{Setting-jHAjccod.js → Setting-hrDZ1cQR.js} +248 -259
  38. package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-CQsx4JqQ.js} +13 -13
  39. package/dist/{Store-Cu-hKmVa.js → Store-Cgmsklnt.js} +24 -24
  40. package/dist/{StoreRewards-DILeipMG.js → StoreRewards-CrPO4DKG.js} +16 -16
  41. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-yesp6BoT.js +1118 -0
  42. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BnKybdKJ.js +142 -0
  43. package/dist/{Tier-BAZ1xuKL.js → Tier-DgKMMyKr.js} +469 -544
  44. package/dist/{Title-CcNAt47f.js → Title-BKijiEFV.js} +92 -93
  45. package/dist/{Transaction-D7DO3dKQ.js → Transaction-zHL4q_wj.js} +2 -2
  46. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DjafpVOa.js} +6 -6
  47. package/dist/{Voucher-Cq-n1CaC.js → Voucher-DW4-SD1w.js} +27 -28
  48. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-y2wm2Bcu.js} +12 -12
  49. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-BWZUE554.js} +2 -2
  50. package/dist/{app-Z-UKRG5V.js → app-B23RANXL.js} +3083 -3663
  51. package/dist/app.js +3 -4
  52. package/dist/{business-C7EF6cKC.js → business-BFU-2tpT.js} +1 -1
  53. package/dist/{campaign-DHBuP4UA.js → campaign-BEKKOWya.js} +64 -114
  54. package/dist/{campaign--MjoY1Mn.js → campaign-CwlWx58O.js} +7 -13
  55. package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-5KIiekYl.js} +2 -3
  56. package/dist/{campaign.fn-Bd34dVnx.js → campaign.fn-CyWn_KL-.js} +130 -130
  57. package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-DmmR-4Nj.js} +1 -1
  58. package/dist/collection.fn-BB1OjBHL.js +26 -0
  59. package/dist/dto-p31OYANk.js +216 -0
  60. package/dist/{effect-BcB8IlTI.js → effect-DNDXE2iM.js} +1 -1
  61. package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-DXSkxrZ6.js} +2 -2
  62. package/dist/{export-CjB7qxZ9.js → export-zMj-UAnF.js} +3 -3
  63. package/dist/{helper-BSgrCJRv.js → helper-D32ml7Qv.js} +1 -1
  64. package/dist/{index-HXiYGO4_.js → index-9jgqbdnt.js} +7 -7
  65. package/dist/{index-hlyg-wxV.js → index-B2OiTtF5.js} +1 -1
  66. package/dist/{index-CoHWpylO.js → index-B9-jeiQR.js} +1281 -1518
  67. package/dist/{index-iMPtFp54.js → index-BWHk6oqv.js} +3 -3
  68. package/dist/{index-hbyCVNa7.js → index-BmmFSQPd.js} +3 -3
  69. package/dist/{index-CsoBDon4.js → index-CA09A75h.js} +1968 -1996
  70. package/dist/index-Cc15IFUt.js +55 -0
  71. package/dist/{index-BpI-BI4H.js → index-CcnOzrwY.js} +1 -1
  72. package/dist/{index-VlFWaBrg.js → index-DSGHkaP0.js} +1 -1
  73. package/dist/{index-BoYEqLif.js → index-DvHLsdIR.js} +205 -817
  74. package/dist/{index-Bf6jNZit.js → index-PrTZHXNT.js} +1 -1
  75. package/dist/{index-BIAjmMga.js → index-txVWLdtz.js} +1 -1
  76. package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-BJG8dqci.js} +209 -209
  77. package/dist/{loading-CSXr0Yqz.js → loading-DuZVM_Ow.js} +1 -1
  78. package/dist/{lodash-Bh7XKI-R.js → lodash-DqQem5rZ.js} +1 -1
  79. package/dist/{membership-CfredTm3.js → membership-CvoEzwor.js} +3 -3
  80. package/dist/{money-BZIST_m9.js → money-B9PJ_JYh.js} +1 -1
  81. package/dist/{number-DXLR2w95.js → number-GIC15kny.js} +1 -1
  82. package/dist/object-qECH92oz.js +26 -0
  83. package/dist/objectid-CtJ4pTf2.js +145 -0
  84. package/dist/{plugins-4FlbwoES.js → plugins-XAhAFHmZ.js} +95 -94
  85. package/dist/{reward-DUbl79bZ.js → reward-Dy0Z6PLL.js} +1 -1
  86. package/dist/{rule-BQUoZ4l_.js → rule-CUu9I1Ly.js} +487 -505
  87. package/dist/rule-builder-DPmaehAO.js +102 -0
  88. package/dist/style.css +1 -1
  89. package/dist/template-BHtdbnoX.js +236 -0
  90. package/dist/{index-CIBPhxlC.js → timezone-BE1YhvLN.js} +20 -21
  91. package/dist/{trigger-D5g5m6tT.js → trigger-BcHfjuiZ.js} +5 -5
  92. package/dist/{useMarketingMaterialActions-B-Jlw2Z9.js → useMarketingMaterialActions-YQq4LWOp.js} +3 -3
  93. package/dist/{usePagination-DHePBBoR.js → usePagination-B1KK2gTx.js} +1 -1
  94. package/dist/{user-C_ToSo-g.js → user-BTRRi1B3.js} +1 -1
  95. package/dist/{vue-i18n-BcYh6_51.js → vue-i18n-D8NX5Rry.js} +298 -298
  96. package/dist/{xlsx-h4G1C-xj.js → xlsx-C9LzK7Kg.js} +1 -1
  97. package/dist/{zod-CgigfJar.js → zod-D3ciRzE4.js} +1 -1
  98. package/package.json +4 -8
  99. package/dist/AuditLogs-BcfgiYnJ.js +0 -2013
  100. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  101. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
  102. package/dist/Grab-DmmwrGzk.js +0 -300
  103. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js +0 -48
  104. package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
  105. package/dist/Review-CYNPPxYU.js +0 -1141
  106. package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
  107. package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
  108. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js +0 -1911
  109. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
  110. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js +0 -7007
  111. package/dist/duplicateCampaign-2ODeDw3a.js +0 -51
  112. package/dist/index-Bm0QPucw.js +0 -67
  113. package/dist/index-Bv4MBLQ5.js +0 -52
  114. package/dist/object-BYyQ0PZp.js +0 -18
  115. package/dist/objectid-Dg4ZodlT.js +0 -145
  116. package/dist/template-BoiSG7G7.js +0 -188
@@ -1,17 +1,17 @@
1
- import { defineComponent as ht, ref as te, h as B, computed as Ee, watch as ft, resolveComponent as Zt, openBlock as ne, createElementBlock as ke, createVNode as pt, unref as v, createElementVNode as ie, toDisplayString as je, onMounted as en, Fragment as tn, createBlock as nn, createCommentVNode as Ge, nextTick as rn } from "vue";
1
+ import { defineComponent as ht, ref as te, h as G, computed as Ee, watch as ft, resolveComponent as Zt, openBlock as ne, createElementBlock as ke, createVNode as pt, unref as v, createElementVNode as ie, toDisplayString as We, onMounted as en, Fragment as tn, createBlock as nn, createCommentVNode as Be, nextTick as rn } from "vue";
2
2
  import { useRouter as sn, useRoute as mt, RouterView as on } from "vue-router";
3
3
  import { useCoreStore as be, FeedMeAuth as an } from "@feedmepos/mf-common";
4
4
  import { u as cn } from "./app-wDQR6dpb.js";
5
- import { u as ln } from "./business-C7EF6cKC.js";
6
- import "./index-hlyg-wxV.js";
5
+ import { u as ln } from "./business-BFU-2tpT.js";
6
+ import "./index-B2OiTtF5.js";
7
7
  import { components as z, useSnackbar as un, useDialog as dn } from "@feedmepos/ui-library";
8
- import { u as hn } from "./vue-i18n-BcYh6_51.js";
9
- import { C as Be, m as fn } from "./index-CIBPhxlC.js";
10
- import { R as f } from "./app-Z-UKRG5V.js";
8
+ import { u as hn } from "./vue-i18n-D8NX5Rry.js";
9
+ import { C as Ge, m as fn } from "./timezone-BE1YhvLN.js";
10
+ import { R as f } from "./app-B23RANXL.js";
11
11
  import { J as pn } from "./JsonViewer-v8_C7l5N.js";
12
- import { r as Se, L as mn, g as gt, i as gn, a as _n, _ as ze, C as qe, b as vn, S as J, c as E, d as j, E as Ce, e as In, f as _t, h as Tn, j as yn, k as vt, l as _, m as wn, F as Oe, n as En, q as Y, o as kn, p as bn, s as Sn, t as Rn, u as An } from "./index.esm2017-CM7OnEyP.js";
12
+ import { r as Se, L as mn, g as gt, i as gn, a as _n, _ as ze, C as qe, b as vn, S as J, c as E, d as W, E as Ce, e as In, f as _t, h as Tn, j as yn, k as vt, l as _, m as wn, F as Oe, n as En, q as Y, o as kn, p as bn, s as Sn, t as Rn, u as Pn } from "./index.esm2017-BJG8dqci.js";
13
13
  import { _ as Ne } from "./tslib.es6-BCqqvLQ_.js";
14
- import { S as Ke, c as Pn } from "./index-HXiYGO4_.js";
14
+ import { S as Ke, c as An } from "./index-9jgqbdnt.js";
15
15
  const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Nn = /* @__PURE__ */ ht({
16
16
  __name: "NavigationTab",
17
17
  setup(n) {
@@ -35,10 +35,6 @@ const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class
35
35
  {
36
36
  label: e("connect.navigation.broadcast"),
37
37
  value: f["$connect-CAMPAIGN_BROADCAST"]
38
- },
39
- {
40
- label: e("connect.navigation.grab"),
41
- value: f["$connect-CAMPAIGN_GRAB"]
42
38
  }
43
39
  ]
44
40
  },
@@ -61,7 +57,7 @@ const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class
61
57
  {
62
58
  label: e("connect.navigation.point"),
63
59
  value: f["$connect-PROGRAM_POINT"],
64
- badge: () => B(z.FmPill, { variant: "premium" })
60
+ badge: () => G(z.FmPill, { variant: "premium" })
65
61
  },
66
62
  {
67
63
  label: e("connect.navigation.credit"),
@@ -70,7 +66,7 @@ const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class
70
66
  {
71
67
  label: e("connect.navigation.game"),
72
68
  value: f["$connect-PROGRAM_GAME"],
73
- badge: () => B(z.FmPill, { variant: "premium" })
69
+ badge: () => G(z.FmPill, { variant: "premium" })
74
70
  },
75
71
  {
76
72
  label: "Mission",
@@ -89,19 +85,19 @@ const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class
89
85
  {
90
86
  label: e("connect.navigation.segments"),
91
87
  value: f["$connect-LOYALTY_SEGMENT"],
92
- badge: () => B(z.FmPill, { variant: "premium" })
88
+ badge: () => G(z.FmPill, { variant: "premium" })
93
89
  },
94
90
  {
95
91
  label: e("connect.navigation.card"),
96
92
  value: f["$connect-LOYALTY_CARD"],
97
- badge: () => B(z.FmPill, { variant: "premium" })
93
+ badge: () => G(z.FmPill, { variant: "premium" })
98
94
  }
99
95
  ]
100
96
  },
101
97
  {
102
98
  label: e("connect.navigation.referral"),
103
99
  value: f["$connect-REFERRAL"],
104
- badge: () => B(z.FmPill, { variant: "premium" })
100
+ badge: () => G(z.FmPill, { variant: "premium" })
105
101
  },
106
102
  {
107
103
  label: e("connect.navigation.store"),
@@ -115,14 +111,6 @@ const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class
115
111
  label: e("connect.navigation.marketingMaterials"),
116
112
  value: f["$connect-MARKETING"]
117
113
  },
118
- {
119
- label: e("connect.navigation.auditLogs"),
120
- value: f["$connect-AUDIT_LOGS"]
121
- },
122
- {
123
- label: e("connect.navigation.review"),
124
- value: f["$connect-REVIEW"]
125
- },
126
114
  {
127
115
  label: e("connect.navigation.setting"),
128
116
  value: f["$connect-SETTING"]
@@ -133,7 +121,7 @@ const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class
133
121
  }
134
122
  ], r = sn(), s = mt(), o = i.reduce((d, h) => [...(h.children ?? []).map((p) => p.value), ...d, h.value], []), c = be(), a = Ee(() => {
135
123
  const d = c.currentCountry.value || "MY";
136
- return console.log(`[MF] Timezone set to: ${Be[d]}`), Be[d];
124
+ return console.log(`[MF] Timezone set to: ${Ge[d]}`), Ge[d];
137
125
  });
138
126
  ft(
139
127
  () => s,
@@ -157,8 +145,8 @@ const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class
157
145
  "onUpdate:modelValue": l
158
146
  }, null, 8, ["model-value"]),
159
147
  ie("div", On, [
160
- ie("div", null, "Timezone: " + je(v(a).split("/")[1].replace("_", " ")), 1),
161
- ie("div", null, "(UTC" + je(v(fn).tz(v(a)).format("Z")) + ")", 1)
148
+ ie("div", null, "Timezone: " + We(v(a).split("/")[1].replace("_", " ")), 1),
149
+ ie("div", null, "(UTC" + We(v(fn).tz(v(a)).format("Z")) + ")", 1)
162
150
  ])
163
151
  ]);
164
152
  };
@@ -257,7 +245,7 @@ function k(n) {
257
245
  const e = "INTERNAL ASSERTION FAILED: " + n;
258
246
  throw re(e), new Error(e);
259
247
  }
260
- function A(n, e) {
248
+ function P(n, e) {
261
249
  n || k(e);
262
250
  }
263
251
  /**
@@ -341,7 +329,7 @@ function Vn() {
341
329
  */
342
330
  class X {
343
331
  constructor(e, t) {
344
- this.shortDelay = e, this.longDelay = t, A(t > e, "Short delay should be less than long delay!"), this.isMobile = gn() || _n();
332
+ this.shortDelay = e, this.longDelay = t, P(t > e, "Short delay should be less than long delay!"), this.isMobile = gn() || _n();
345
333
  }
346
334
  get() {
347
335
  return xn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
@@ -364,7 +352,7 @@ class X {
364
352
  * limitations under the License.
365
353
  */
366
354
  function Me(n, e) {
367
- A(n.emulator, "Emulator should always be set here");
355
+ P(n.emulator, "Emulator should always be set here");
368
356
  const { url: t } = n.emulator;
369
357
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
370
358
  }
@@ -533,7 +521,7 @@ const Hn = new X(3e4, 6e4);
533
521
  function fe(n, e) {
534
522
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
535
523
  }
536
- async function G(n, e, t, i, r = {}) {
524
+ async function B(n, e, t, i, r = {}) {
537
525
  return Et(n, r, async () => {
538
526
  let s = {}, o = {};
539
527
  i && (e === "GET" ? o = i : s = {
@@ -557,7 +545,7 @@ async function Et(n, e, t) {
557
545
  n._canInitEmulator = !1;
558
546
  const i = Object.assign(Object.assign({}, $n), e);
559
547
  try {
560
- const r = new Wn(n), s = await Promise.race([
548
+ const r = new jn(n), s = await Promise.race([
561
549
  t(),
562
550
  r.promise
563
551
  ]);
@@ -587,7 +575,7 @@ async function Et(n, e, t) {
587
575
  }
588
576
  }
589
577
  async function kt(n, e, t, i, r = {}) {
590
- const s = await G(n, e, t, i, r);
578
+ const s = await B(n, e, t, i, r);
591
579
  return "mfaPendingCredential" in s && R(n, "multi-factor-auth-required", {
592
580
  _serverResponse: s
593
581
  }), s;
@@ -596,7 +584,7 @@ function bt(n, e, t, i) {
596
584
  const r = `${e}${t}?${i}`;
597
585
  return n.config.emulator ? Me(n.config, r) : `${n.config.apiScheme}://${r}`;
598
586
  }
599
- class Wn {
587
+ class jn {
600
588
  constructor(e) {
601
589
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
602
590
  this.timer = setTimeout(() => i(T(
@@ -634,11 +622,11 @@ function ee(n, e, t) {
634
622
  * See the License for the specific language governing permissions and
635
623
  * limitations under the License.
636
624
  */
637
- async function jn(n, e) {
638
- return G(n, "POST", "/v1/accounts:delete", e);
625
+ async function Wn(n, e) {
626
+ return B(n, "POST", "/v1/accounts:delete", e);
639
627
  }
640
628
  async function St(n, e) {
641
- return G(n, "POST", "/v1/accounts:lookup", e);
629
+ return B(n, "POST", "/v1/accounts:lookup", e);
642
630
  }
643
631
  /**
644
632
  * @license
@@ -665,8 +653,8 @@ function q(n) {
665
653
  } catch {
666
654
  }
667
655
  }
668
- async function Gn(n, e = !1) {
669
- const t = j(n), i = await t.getIdToken(e), r = Ue(i);
656
+ async function Bn(n, e = !1) {
657
+ const t = W(n), i = await t.getIdToken(e), r = Ue(i);
670
658
  u(
671
659
  r && r.exp && r.auth_time && r.iat,
672
660
  t.auth,
@@ -736,10 +724,10 @@ async function K(n, e, t = !1) {
736
724
  try {
737
725
  return await e;
738
726
  } catch (i) {
739
- throw i instanceof Oe && Bn(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
727
+ throw i instanceof Oe && Gn(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
740
728
  }
741
729
  }
742
- function Bn({ code: n }) {
730
+ function Gn({ code: n }) {
743
731
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
744
732
  }
745
733
  /**
@@ -820,7 +808,7 @@ class zn {
820
808
  * See the License for the specific language governing permissions and
821
809
  * limitations under the License.
822
810
  */
823
- class Ae {
811
+ class Pe {
824
812
  constructor(e, t) {
825
813
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
826
814
  }
@@ -873,13 +861,13 @@ async function le(n) {
873
861
  phoneNumber: s.phoneNumber || null,
874
862
  tenantId: s.tenantId || null,
875
863
  providerData: c,
876
- metadata: new Ae(s.createdAt, s.lastLoginAt),
864
+ metadata: new Pe(s.createdAt, s.lastLoginAt),
877
865
  isAnonymous: d
878
866
  };
879
867
  Object.assign(n, h);
880
868
  }
881
869
  async function qn(n) {
882
- const e = j(n);
870
+ const e = W(n);
883
871
  await le(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
884
872
  }
885
873
  function Kn(n, e) {
@@ -936,7 +924,7 @@ async function Jn(n, e) {
936
924
  };
937
925
  }
938
926
  async function Yn(n, e) {
939
- return G(n, "POST", "/v2/accounts:revokeToken", fe(n, e));
927
+ return B(n, "POST", "/v2/accounts:revokeToken", fe(n, e));
940
928
  }
941
929
  /**
942
930
  * @license
@@ -1048,13 +1036,13 @@ class $ {
1048
1036
  * See the License for the specific language governing permissions and
1049
1037
  * limitations under the License.
1050
1038
  */
1051
- function P(n, e) {
1039
+ function A(n, e) {
1052
1040
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
1053
1041
  }
1054
1042
  class b {
1055
1043
  constructor(e) {
1056
1044
  var { uid: t, auth: i, stsTokenManager: r } = e, s = Ne(e, ["uid", "auth", "stsTokenManager"]);
1057
- this.providerId = "firebase", this.proactiveRefresh = new zn(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 Ae(s.createdAt || void 0, s.lastLoginAt || void 0);
1045
+ this.providerId = "firebase", this.proactiveRefresh = new zn(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 Pe(s.createdAt || void 0, s.lastLoginAt || void 0);
1058
1046
  }
1059
1047
  async getIdToken(e) {
1060
1048
  const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1066,7 +1054,7 @@ class b {
1066
1054
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1067
1055
  }
1068
1056
  getIdTokenResult(e) {
1069
- return Gn(this, e);
1057
+ return Bn(this, e);
1070
1058
  }
1071
1059
  reload() {
1072
1060
  return qn(this);
@@ -1108,7 +1096,7 @@ class b {
1108
1096
  if (E(this.auth.app))
1109
1097
  return Promise.reject(M(this.auth));
1110
1098
  const e = await this.getIdToken();
1111
- return await K(this, jn(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1099
+ return await K(this, Wn(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1112
1100
  }
1113
1101
  toJSON() {
1114
1102
  return Object.assign(Object.assign({
@@ -1136,20 +1124,20 @@ class b {
1136
1124
  }
1137
1125
  static _fromJSON(e, t) {
1138
1126
  var i, r, s, o, c, a, l, d;
1139
- const h = (i = t.displayName) !== null && i !== void 0 ? i : void 0, p = (r = t.email) !== null && r !== void 0 ? r : void 0, w = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, U = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, m = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, I = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, x = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: ve, emailVerified: $e, isAnonymous: He, providerData: Ie, stsTokenManager: We } = t;
1127
+ const h = (i = t.displayName) !== null && i !== void 0 ? i : void 0, p = (r = t.email) !== null && r !== void 0 ? r : void 0, w = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, U = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, m = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, I = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, x = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: ve, emailVerified: $e, isAnonymous: He, providerData: Ie, stsTokenManager: je } = t;
1140
1128
  u(
1141
- ve && We,
1129
+ ve && je,
1142
1130
  e,
1143
1131
  "internal-error"
1144
1132
  /* AuthErrorCode.INTERNAL_ERROR */
1145
1133
  );
1146
- const Xt = $.fromJSON(this.name, We);
1134
+ const Xt = $.fromJSON(this.name, je);
1147
1135
  u(
1148
1136
  typeof ve == "string",
1149
1137
  e,
1150
1138
  "internal-error"
1151
1139
  /* AuthErrorCode.INTERNAL_ERROR */
1152
- ), P(h, e.name), P(p, e.name), u(
1140
+ ), A(h, e.name), A(p, e.name), u(
1153
1141
  typeof $e == "boolean",
1154
1142
  e,
1155
1143
  "internal-error"
@@ -1159,7 +1147,7 @@ class b {
1159
1147
  e,
1160
1148
  "internal-error"
1161
1149
  /* AuthErrorCode.INTERNAL_ERROR */
1162
- ), P(w, e.name), P(U, e.name), P(m, e.name), P(g, e.name), P(I, e.name), P(x, e.name);
1150
+ ), A(w, e.name), A(U, e.name), A(m, e.name), A(g, e.name), A(I, e.name), A(x, e.name);
1163
1151
  const Te = new b({
1164
1152
  uid: ve,
1165
1153
  auth: e,
@@ -1220,7 +1208,7 @@ class b {
1220
1208
  phoneNumber: r.phoneNumber || null,
1221
1209
  tenantId: r.tenantId || null,
1222
1210
  providerData: s,
1223
- metadata: new Ae(r.createdAt, r.lastLoginAt),
1211
+ metadata: new Pe(r.createdAt, r.lastLoginAt),
1224
1212
  isAnonymous: !(r.email && r.passwordHash) && !(s != null && s.length)
1225
1213
  };
1226
1214
  return Object.assign(a, l), a;
@@ -1244,9 +1232,9 @@ class b {
1244
1232
  */
1245
1233
  const Xe = /* @__PURE__ */ new Map();
1246
1234
  function S(n) {
1247
- A(n instanceof Function, "Expected a class definition");
1235
+ P(n instanceof Function, "Expected a class definition");
1248
1236
  let e = Xe.get(n);
1249
- return e ? (A(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), Xe.set(n, e), e);
1237
+ return e ? (P(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), Xe.set(n, e), e);
1250
1238
  }
1251
1239
  /**
1252
1240
  * @license
@@ -1264,7 +1252,7 @@ function S(n) {
1264
1252
  * See the License for the specific language governing permissions and
1265
1253
  * limitations under the License.
1266
1254
  */
1267
- class At {
1255
+ class Pt {
1268
1256
  constructor() {
1269
1257
  this.type = "NONE", this.storage = {};
1270
1258
  }
@@ -1286,8 +1274,8 @@ class At {
1286
1274
  _removeListener(e, t) {
1287
1275
  }
1288
1276
  }
1289
- At.type = "NONE";
1290
- const Qe = At;
1277
+ Pt.type = "NONE";
1278
+ const Qe = Pt;
1291
1279
  /**
1292
1280
  * @license
1293
1281
  * Copyright 2019 Google LLC
@@ -1392,7 +1380,7 @@ function Ze(n) {
1392
1380
  return "IE";
1393
1381
  if (e.includes("edge/"))
1394
1382
  return "Edge";
1395
- if (Pt(e))
1383
+ if (At(e))
1396
1384
  return "Firefox";
1397
1385
  if (e.includes("silk/"))
1398
1386
  return "Silk";
@@ -1413,7 +1401,7 @@ function Ze(n) {
1413
1401
  }
1414
1402
  return "Other";
1415
1403
  }
1416
- function Pt(n = _()) {
1404
+ function At(n = _()) {
1417
1405
  return /firefox\//i.test(n);
1418
1406
  }
1419
1407
  function De(n = _()) {
@@ -1558,7 +1546,7 @@ class ei {
1558
1546
  * limitations under the License.
1559
1547
  */
1560
1548
  async function ti(n, e = {}) {
1561
- return G(n, "GET", "/v2/passwordPolicy", fe(n, e));
1549
+ return B(n, "GET", "/v2/passwordPolicy", fe(n, e));
1562
1550
  }
1563
1551
  /**
1564
1552
  * @license
@@ -1768,7 +1756,7 @@ class ri {
1768
1756
  async updateCurrentUser(e) {
1769
1757
  if (E(this.app))
1770
1758
  return Promise.reject(M(this));
1771
- const t = e ? j(e) : null;
1759
+ const t = e ? W(e) : null;
1772
1760
  return t && u(
1773
1761
  t.auth.config.apiKey === this.config.apiKey,
1774
1762
  this,
@@ -1998,7 +1986,7 @@ class ri {
1998
1986
  }
1999
1987
  }
2000
1988
  function me(n) {
2001
- return j(n);
1989
+ return W(n);
2002
1990
  }
2003
1991
  class et {
2004
1992
  constructor(e) {
@@ -2192,7 +2180,7 @@ class xt {
2192
2180
  * See the License for the specific language governing permissions and
2193
2181
  * limitations under the License.
2194
2182
  */
2195
- async function W(n, e) {
2183
+ async function j(n, e) {
2196
2184
  return kt(n, "POST", "/v1/accounts:signInWithIdp", fe(n, e));
2197
2185
  }
2198
2186
  /**
@@ -2255,17 +2243,17 @@ class D extends xt {
2255
2243
  /** @internal */
2256
2244
  _getIdTokenResponse(e) {
2257
2245
  const t = this.buildRequest();
2258
- return W(e, t);
2246
+ return j(e, t);
2259
2247
  }
2260
2248
  /** @internal */
2261
2249
  _linkToIdToken(e, t) {
2262
2250
  const i = this.buildRequest();
2263
- return i.idToken = t, W(e, i);
2251
+ return i.idToken = t, j(e, i);
2264
2252
  }
2265
2253
  /** @internal */
2266
2254
  _getReauthenticationResolver(e) {
2267
2255
  const t = this.buildRequest();
2268
- return t.autoCreate = !1, W(e, t);
2256
+ return t.autoCreate = !1, j(e, t);
2269
2257
  }
2270
2258
  buildRequest() {
2271
2259
  const e = {
@@ -2853,10 +2841,10 @@ async function Ii(n, e) {
2853
2841
  return await t._updateCurrentUser(r.user), r;
2854
2842
  }
2855
2843
  function Ti(n, e, t, i) {
2856
- return j(n).onIdTokenChanged(e, t, i);
2844
+ return W(n).onIdTokenChanged(e, t, i);
2857
2845
  }
2858
2846
  function yi(n, e, t) {
2859
- return j(n).beforeAuthStateChanged(e, t);
2847
+ return W(n).beforeAuthStateChanged(e, t);
2860
2848
  }
2861
2849
  const de = "__sak";
2862
2850
  /**
@@ -2921,7 +2909,7 @@ function wi() {
2921
2909
  return De(n) || pe(n);
2922
2910
  }
2923
2911
  const Ei = 1e3, ki = 10;
2924
- class Wt extends Ht {
2912
+ class jt extends Ht {
2925
2913
  constructor() {
2926
2914
  super(
2927
2915
  () => window.localStorage,
@@ -3005,8 +2993,8 @@ class Wt extends Ht {
3005
2993
  await super._remove(e), delete this.localCache[e];
3006
2994
  }
3007
2995
  }
3008
- Wt.type = "LOCAL";
3009
- const bi = Wt;
2996
+ jt.type = "LOCAL";
2997
+ const bi = jt;
3010
2998
  /**
3011
2999
  * @license
3012
3000
  * Copyright 2020 Google LLC
@@ -3023,7 +3011,7 @@ const bi = Wt;
3023
3011
  * See the License for the specific language governing permissions and
3024
3012
  * limitations under the License.
3025
3013
  */
3026
- class jt extends Ht {
3014
+ class Wt extends Ht {
3027
3015
  constructor() {
3028
3016
  super(
3029
3017
  () => window.sessionStorage,
@@ -3036,8 +3024,8 @@ class jt extends Ht {
3036
3024
  _removeListener(e, t) {
3037
3025
  }
3038
3026
  }
3039
- jt.type = "SESSION";
3040
- const Gt = jt;
3027
+ Wt.type = "SESSION";
3028
+ const Bt = Wt;
3041
3029
  /**
3042
3030
  * @license
3043
3031
  * Copyright 2019 Google LLC
@@ -3292,7 +3280,7 @@ class Ri {
3292
3280
  function y() {
3293
3281
  return window;
3294
3282
  }
3295
- function Ai(n) {
3283
+ function Pi(n) {
3296
3284
  y().location.href = n;
3297
3285
  }
3298
3286
  /**
@@ -3311,10 +3299,10 @@ function Ai(n) {
3311
3299
  * See the License for the specific language governing permissions and
3312
3300
  * limitations under the License.
3313
3301
  */
3314
- function Bt() {
3302
+ function Gt() {
3315
3303
  return typeof y().WorkerGlobalScope < "u" && typeof y().importScripts == "function";
3316
3304
  }
3317
- async function Pi() {
3305
+ async function Ai() {
3318
3306
  if (!(navigator != null && navigator.serviceWorker))
3319
3307
  return null;
3320
3308
  try {
@@ -3328,7 +3316,7 @@ function Ci() {
3328
3316
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3329
3317
  }
3330
3318
  function Oi() {
3331
- return Bt() ? self : null;
3319
+ return Gt() ? self : null;
3332
3320
  }
3333
3321
  /**
3334
3322
  * @license
@@ -3368,7 +3356,7 @@ function Li() {
3368
3356
  const n = indexedDB.deleteDatabase(zt);
3369
3357
  return new Z(n).toPromise();
3370
3358
  }
3371
- function Pe() {
3359
+ function Ae() {
3372
3360
  const n = indexedDB.open(zt, Ni);
3373
3361
  return new Promise((e, t) => {
3374
3362
  n.addEventListener("error", () => {
@@ -3382,7 +3370,7 @@ function Pe() {
3382
3370
  }
3383
3371
  }), n.addEventListener("success", async () => {
3384
3372
  const i = n.result;
3385
- i.objectStoreNames.contains(he) ? e(i) : (i.close(), await Li(), e(await Pe()));
3373
+ i.objectStoreNames.contains(he) ? e(i) : (i.close(), await Li(), e(await Ae()));
3386
3374
  });
3387
3375
  });
3388
3376
  }
@@ -3409,7 +3397,7 @@ class Kt {
3409
3397
  });
3410
3398
  }
3411
3399
  async _openDb() {
3412
- return this.db ? this.db : (this.db = await Pe(), this.db);
3400
+ return this.db ? this.db : (this.db = await Ae(), this.db);
3413
3401
  }
3414
3402
  async _withRetries(e) {
3415
3403
  let t = 0;
@@ -3428,7 +3416,7 @@ class Kt {
3428
3416
  * postMessage interface to send these events to the worker ourselves.
3429
3417
  */
3430
3418
  async initializeServiceWorkerMessaging() {
3431
- return Bt() ? this.initializeReceiver() : this.initializeSender();
3419
+ return Gt() ? this.initializeReceiver() : this.initializeSender();
3432
3420
  }
3433
3421
  /**
3434
3422
  * As the worker we should listen to events from the main window.
@@ -3450,7 +3438,7 @@ class Kt {
3450
3438
  */
3451
3439
  async initializeSender() {
3452
3440
  var e, t;
3453
- if (this.activeServiceWorker = await Pi(), !this.activeServiceWorker)
3441
+ if (this.activeServiceWorker = await Ai(), !this.activeServiceWorker)
3454
3442
  return;
3455
3443
  this.sender = new Ri(this.activeServiceWorker);
3456
3444
  const i = await this.sender._send(
@@ -3490,7 +3478,7 @@ class Kt {
3490
3478
  try {
3491
3479
  if (!indexedDB)
3492
3480
  return !1;
3493
- const e = await Pe();
3481
+ const e = await Ae();
3494
3482
  return await it(e, de, "1"), await rt(e, de), !0;
3495
3483
  } catch {
3496
3484
  }
@@ -3603,13 +3591,13 @@ class Ve extends xt {
3603
3591
  ), this.params = e;
3604
3592
  }
3605
3593
  _getIdTokenResponse(e) {
3606
- return W(e, this._buildIdpRequest());
3594
+ return j(e, this._buildIdpRequest());
3607
3595
  }
3608
3596
  _linkToIdToken(e, t) {
3609
- return W(e, this._buildIdpRequest(t));
3597
+ return j(e, this._buildIdpRequest(t));
3610
3598
  }
3611
3599
  _getReauthenticationResolver(e) {
3612
- return W(e, this._buildIdpRequest());
3600
+ return j(e, this._buildIdpRequest());
3613
3601
  }
3614
3602
  _buildIdpRequest(e) {
3615
3603
  const t = {
@@ -3719,10 +3707,10 @@ class Jt {
3719
3707
  }
3720
3708
  }
3721
3709
  resolve(e) {
3722
- A(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3710
+ P(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3723
3711
  }
3724
3712
  reject(e) {
3725
- A(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3713
+ P(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3726
3714
  }
3727
3715
  unregisterAndCleanUp() {
3728
3716
  this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
@@ -3744,7 +3732,7 @@ class Jt {
3744
3732
  * See the License for the specific language governing permissions and
3745
3733
  * limitations under the License.
3746
3734
  */
3747
- const Wi = new X(2e3, 1e4);
3735
+ const ji = new X(2e3, 1e4);
3748
3736
  class V extends Jt {
3749
3737
  constructor(e, t, i, r, s) {
3750
3738
  super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, V.currentPopupAction && V.currentPopupAction.cancel(), V.currentPopupAction = this;
@@ -3759,7 +3747,7 @@ class V extends Jt {
3759
3747
  ), e;
3760
3748
  }
3761
3749
  async onExecution() {
3762
- A(this.filter.length === 1, "Popup operations only handle one event");
3750
+ P(this.filter.length === 1, "Popup operations only handle one event");
3763
3751
  const e = xe();
3764
3752
  this.authWindow = await this.resolver._openPopup(
3765
3753
  this.auth,
@@ -3808,7 +3796,7 @@ class V extends Jt {
3808
3796
  );
3809
3797
  return;
3810
3798
  }
3811
- this.pollId = window.setTimeout(e, Wi.get());
3799
+ this.pollId = window.setTimeout(e, ji.get());
3812
3800
  };
3813
3801
  e();
3814
3802
  }
@@ -3830,8 +3818,8 @@ V.currentPopupAction = null;
3830
3818
  * See the License for the specific language governing permissions and
3831
3819
  * limitations under the License.
3832
3820
  */
3833
- const ji = "pendingRedirect", oe = /* @__PURE__ */ new Map();
3834
- class Gi extends Jt {
3821
+ const Wi = "pendingRedirect", oe = /* @__PURE__ */ new Map();
3822
+ class Bi extends Jt {
3835
3823
  constructor(e, t, i = !1) {
3836
3824
  super(e, [
3837
3825
  "signInViaRedirect",
@@ -3849,7 +3837,7 @@ class Gi extends Jt {
3849
3837
  let e = oe.get(this.auth._key());
3850
3838
  if (!e) {
3851
3839
  try {
3852
- const i = await Bi(this.resolver, this.auth) ? await super.execute() : null;
3840
+ const i = await Gi(this.resolver, this.auth) ? await super.execute() : null;
3853
3841
  e = () => Promise.resolve(i);
3854
3842
  } catch (t) {
3855
3843
  e = () => Promise.reject(t);
@@ -3877,7 +3865,7 @@ class Gi extends Jt {
3877
3865
  cleanUp() {
3878
3866
  }
3879
3867
  }
3880
- async function Bi(n, e) {
3868
+ async function Gi(n, e) {
3881
3869
  const t = Ki(e), i = qi(n);
3882
3870
  if (!await i._isAvailable())
3883
3871
  return !1;
@@ -3891,12 +3879,12 @@ function qi(n) {
3891
3879
  return S(n._redirectPersistence);
3892
3880
  }
3893
3881
  function Ki(n) {
3894
- return se(ji, n.config.apiKey, n.name);
3882
+ return se(Wi, n.config.apiKey, n.name);
3895
3883
  }
3896
3884
  async function Ji(n, e, t = !1) {
3897
3885
  if (E(n.app))
3898
3886
  return Promise.reject(M(n));
3899
- const i = me(n), r = xi(i, e), o = await new Gi(i, r, t).execute();
3887
+ const i = me(n), r = xi(i, e), o = await new Bi(i, r, t).execute();
3900
3888
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
3901
3889
  }
3902
3890
  /**
@@ -3988,7 +3976,7 @@ function Qi(n) {
3988
3976
  * limitations under the License.
3989
3977
  */
3990
3978
  async function Zi(n, e = {}) {
3991
- return G(n, "GET", "/v1/projects", e);
3979
+ return B(n, "GET", "/v1/projects", e);
3992
3980
  }
3993
3981
  /**
3994
3982
  * @license
@@ -4226,7 +4214,7 @@ function Ir(n, e, t, i = mr, r = gr) {
4226
4214
  top: s,
4227
4215
  left: o
4228
4216
  }), l = _().toLowerCase();
4229
- t && (c = Ct(l) ? _r : t), Pt(l) && (e = e || vr, a.scrollbars = "yes");
4217
+ t && (c = Ct(l) ? _r : t), At(l) && (e = e || vr, a.scrollbars = "yes");
4230
4218
  const d = Object.entries(a).reduce((p, [w, U]) => `${p}${w}=${U},`, "");
4231
4219
  if (Xn(l) && c !== "_self")
4232
4220
  return Tr(e || "", c), new at(null);
@@ -4324,27 +4312,27 @@ function kr({ config: n }) {
4324
4312
  const we = "webStorageSupport";
4325
4313
  class br {
4326
4314
  constructor() {
4327
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Gt, this._completeRedirectFn = Ji, this._overrideRedirectResult = zi;
4315
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Bt, this._completeRedirectFn = Ji, this._overrideRedirectResult = zi;
4328
4316
  }
4329
4317
  // Wrapping in async even though we don't await anywhere in order
4330
4318
  // to make sure errors are raised as promise rejections
4331
4319
  async _openPopup(e, t, i, r) {
4332
4320
  var s;
4333
- A((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4321
+ P((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4334
4322
  const o = await ct(e, t, i, Re(), r);
4335
4323
  return Ir(e, o, xe());
4336
4324
  }
4337
4325
  async _openRedirect(e, t, i, r) {
4338
4326
  await this._originValidation(e);
4339
4327
  const s = await ct(e, t, i, Re(), r);
4340
- return Ai(s), new Promise(() => {
4328
+ return Pi(s), new Promise(() => {
4341
4329
  });
4342
4330
  }
4343
4331
  _initialize(e) {
4344
4332
  const t = e._key();
4345
4333
  if (this.eventManagers[t]) {
4346
4334
  const { manager: r, promise: s } = this.eventManagers[t];
4347
- return r ? Promise.resolve(r) : (A(s, "If manager is not set, promise should be"), s);
4335
+ return r ? Promise.resolve(r) : (P(s, "If manager is not set, promise should be"), s);
4348
4336
  }
4349
4337
  const i = this.initAndGetManager(e);
4350
4338
  return this.eventManagers[t] = { promise: i }, i.catch(() => {
@@ -4451,7 +4439,7 @@ class Rr {
4451
4439
  * See the License for the specific language governing permissions and
4452
4440
  * limitations under the License.
4453
4441
  */
4454
- function Ar(n) {
4442
+ function Pr(n) {
4455
4443
  switch (n) {
4456
4444
  case "Node":
4457
4445
  return "node";
@@ -4467,7 +4455,7 @@ function Ar(n) {
4467
4455
  return;
4468
4456
  }
4469
4457
  }
4470
- function Pr(n) {
4458
+ function Ar(n) {
4471
4459
  ze(new qe(
4472
4460
  "auth",
4473
4461
  (e, { options: t }) => {
@@ -4508,7 +4496,7 @@ function Pr(n) {
4508
4496
  ).setInstantiationMode(
4509
4497
  "EXPLICIT"
4510
4498
  /* InstantiationMode.EXPLICIT */
4511
- )), Se(lt, ut, Ar(n)), Se(lt, ut, "esm2017");
4499
+ )), Se(lt, ut, Pr(n)), Se(lt, ut, "esm2017");
4512
4500
  }
4513
4501
  /**
4514
4502
  * @license
@@ -4549,7 +4537,7 @@ function Lr(n = yn()) {
4549
4537
  persistence: [
4550
4538
  Fi,
4551
4539
  bi,
4552
- Gt
4540
+ Bt
4553
4541
  ]
4554
4542
  }), i = gt("authTokenSyncURL");
4555
4543
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
@@ -4583,11 +4571,11 @@ si({
4583
4571
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4584
4572
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4585
4573
  });
4586
- Pr(
4574
+ Ar(
4587
4575
  "Browser"
4588
4576
  /* ClientPlatform.BROWSER */
4589
4577
  );
4590
- var Ur = { 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", importFilesBucketUrl: "feedme-dev-4c3ef.appspot.com", clientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" }, Dr = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
4578
+ var Ur = { 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", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" }, Dr = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
4591
4579
  const Fr = {
4592
4580
  key: 1,
4593
4581
  class: "h-full w-full"
@@ -4604,13 +4592,13 @@ const Fr = {
4604
4592
  return;
4605
4593
  }
4606
4594
  const m = Rn(Ur.firebase), g = await an.getCustomToken(), I = Lr();
4607
- await Ii(I, g), An(m), console.log("initFirebase", m);
4595
+ await Ii(I, g), Pn(m), console.log("initFirebase", m);
4608
4596
  }
4609
4597
  const U = async () => {
4610
4598
  d.value = !1, await rn(), console.log("forceRerender"), Ke.setBusinessId(l.value._id), await i.readPremium(), !a.value && h.value === "v2" ? e.registerSidebarComponent(Nn) : e.hideSidebarToggle(!0), await w(), a.value = !0, d.value = !0;
4611
4599
  };
4612
4600
  return en(() => {
4613
- if (Pn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4601
+ if (An.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4614
4602
  const m = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], I = document.getElementsByClassName("app-container")[0], x = document.getElementsByTagName("main")[0];
4615
4603
  m == null || m.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), I == null || I.classList.add("!pt-0"), x == null || x.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4616
4604
  }
@@ -4621,7 +4609,7 @@ const Fr = {
4621
4609
  console.log("Current business changed"), m != null && m._id != g._id && (console.log("forceRerender when business changes", m, g), U());
4622
4610
  }
4623
4611
  ), (m, g) => (ne(), ke(tn, null, [
4624
- v(d) && v(h) === "v2" ? (ne(), nn(v(on), { key: 0 })) : Ge("", !0),
4612
+ v(d) && v(h) === "v2" ? (ne(), nn(v(on), { key: 0 })) : Be("", !0),
4625
4613
  v(d) && v(h) !== "v2" ? (ne(), ke("div", Fr, [
4626
4614
  pt(pn, {
4627
4615
  json: { url: v(p) }
@@ -4633,7 +4621,7 @@ const Fr = {
4633
4621
  width: "100%",
4634
4622
  src: v(p)
4635
4623
  }, null, 8, xr)
4636
- ])) : Ge("", !0)
4624
+ ])) : Be("", !0)
4637
4625
  ], 64));
4638
4626
  }
4639
4627
  });