@feedmepos/mf-connect 0.1.119-prod → 0.1.120-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 (131) hide show
  1. package/dist/{App-BN2LKM3u.js → App-DBQZLwTQ.js} +451 -448
  2. package/dist/{Bin-DpQ1atb7.js → Bin-C8ug-z3E.js} +8 -8
  3. package/dist/{Broadcast-c1ZyYClI.js → Broadcast-BLyl7ua-.js} +11 -11
  4. package/dist/{CampaignAnalytic-w1hIlc2r.js → CampaignAnalytic-DIWpaLY0.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7U6evm1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CSB5W-XC.js} +9 -9
  6. package/dist/{Card-De53Xgbe.js → Card-CFozO34o.js} +22 -22
  7. package/dist/{Collections-BL2RD3FU.js → Collections-C2KJLABL.js} +9 -9
  8. package/dist/{Credit-2KvFFcwR.js → Credit-Cdv1Oomb.js} +11 -11
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CKSs2nYE.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Czq59A9J.js} +1 -1
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BXb7v7wc.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-IiOjBexw.js} +36 -36
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js → EffectSheet.vue_vue_type_style_index_0_lang-DbJVoEfI.js} +21 -21
  12. package/dist/{Experience-Cb0jHtVo.js → Experience-Bh9hVvjF.js} +12 -12
  13. package/dist/{FileSaver.min-UDgZF_Cv.js → FileSaver.min-DJN13WN5.js} +1 -1
  14. package/dist/{Game-BnysxSMs.js → Game-i_54Y96a.js} +12 -12
  15. package/dist/{GiftCardSetup-s1OR6xQq.js → GiftCardSetup-ChX81wf5.js} +10 -10
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-D108r20x.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BtobC6W0.js} +7 -7
  17. package/dist/{Goals-BAieLPzR.js → Goals-Bp0iuvWb.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js → ImageInput.vue_vue_type_script_setup_true_lang-BJ35Sv1u.js} +1 -1
  19. package/dist/{Index-DnX16GAE.js → Index-BEZ86XpR.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DeM-WG6m.js → LocationPicker.vue_vue_type_script_setup_true_lang-Esi4t61b.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BAN69FOS.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DHoRYfKp.js} +1 -1
  22. package/dist/{LoyaltyDashboard-D8g6OSbC.js → LoyaltyDashboard-BJqiX1zB.js} +15 -15
  23. package/dist/{MainLayout-DWABjpQn.js → MainLayout-f3eUXes5.js} +1 -1
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COp7iulq.js → MainLayout.vue_vue_type_script_setup_true_lang-CXwyNeyN.js} +3 -3
  25. package/dist/{Marketing-Dagatr0y.js → Marketing-CbD1V11I.js} +4 -4
  26. package/dist/{MarketingMaterialEdit-DYVzNDpM.js → MarketingMaterialEdit-NxEqzSCR.js} +6 -6
  27. package/dist/{Member-DAxdEF_Z.js → Member-CpmRtxRJ.js} +7 -7
  28. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-nBg7Hckj.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DxfSWKF2.js} +23 -23
  29. package/dist/{MemberImportHistory-2gx6FnLh.js → MemberImportHistory-D5j5iW2F.js} +7 -7
  30. package/dist/{MemberList-By_gGl-J.js → MemberList-CkGQedUC.js} +14 -14
  31. package/dist/{MemberTransactions-BEF-4ZNp.js → MemberTransactions-B8I6cpDJ.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Bs8wKx9B.js → MessageInput.vue_vue_type_script_setup_true_lang-BHjD2h_e.js} +10 -10
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DN3mWfKj.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BlsXyucO.js} +1 -1
  34. package/dist/{Mission-jg15lBxo.js → Mission-B3GPwNME.js} +13 -13
  35. package/dist/{Overview-C7WfdzfV.js → Overview-Dn_2Bqvu.js} +20 -20
  36. package/dist/{Overview-BFKLTAk1.js → Overview-HutQPlD3.js} +4 -4
  37. package/dist/{Point-dv9WgWTQ.js → Point-gimlv9IU.js} +13 -13
  38. package/dist/{Promotion-mFPF_8jO.js → Promotion-C_nq6mWA.js} +13 -13
  39. package/dist/{Queue-BQoR_M5H.js → Queue-DSfCWiWX.js} +12 -12
  40. package/dist/{Record-1JZ1N5iX.js → Record-C_BCs5rW.js} +9 -9
  41. package/dist/{Review-B52AxCeT.js → Review-BA0RXTAG.js} +2 -2
  42. package/dist/{ReviewFacebookCallback-ihTdiI8V.js → ReviewFacebookCallback-BoTFdwzG.js} +5 -5
  43. package/dist/{ReviewGoogleCallback-DO6SVFIC.js → ReviewGoogleCallback-CBKtyOA1.js} +5 -5
  44. package/dist/{Reward-Cp4jPAB0.js → Reward-CLEB9wcA.js} +16 -16
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DLD6X13Z.js → RewardGroup.vue_vue_type_script_setup_true_lang-DYMrYduc.js} +13 -13
  46. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-pdHRjCt8.js → RuleGroup.vue_vue_type_script_setup_true_lang-1PAfUilQ.js} +15 -15
  47. package/dist/{Segment-DaKw0YXF.js → Segment-D9vzet_7.js} +26 -26
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bj3OQ_JJ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DNMNxwxH.js} +14 -14
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1Otak97.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-MS7jsy3-.js} +4 -4
  50. package/dist/{Setting-DveUrt8J.js → Setting-CYVYlW3X.js} +14 -14
  51. package/dist/{SettingAdvertisements-QRXOMNnM.js → SettingAdvertisements-V-RMxN0l.js} +12 -12
  52. package/dist/{Settings-D9D-mkBa.js → Settings-B6RE8Grl.js} +5 -5
  53. package/dist/{Store-DjdXRw3V.js → Store-BL_aHl-T.js} +26 -26
  54. package/dist/{StoreRewards-CjlGrc9E.js → StoreRewards-Cy0V00uq.js} +15 -15
  55. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DnwMpqzf.js → StoreTransactions.vue_vue_type_script_setup_true_lang-B2F6Jdoz.js} +24 -24
  56. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dtur9ZLl.js} +2 -2
  57. package/dist/{Tier-D74Oh2np.js → Tier-BYOa0elV.js} +25 -25
  58. package/dist/{Title-CeeviOW8.js → Title-Mv8zK56z.js} +23 -23
  59. package/dist/{Transaction-CWdw0ITl.js → Transaction-C-hY5_sZ.js} +2 -2
  60. package/dist/Upselling-i7NQ3_vb.js +200 -0
  61. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B9nf-9s0.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BEJiKtkq.js} +6 -6
  62. package/dist/{Voucher-C0nNXMtv.js → Voucher-CuQGUgg6.js} +18 -18
  63. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DxZLsQq9.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CYeZiv40.js} +12 -12
  64. package/dist/{WhatsappAccount-CoLSjCQ2.js → WhatsappAccount-DAqV64xJ.js} +6 -6
  65. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DkHPlGgT.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-7-v71uA0.js} +1 -1
  66. package/dist/{WhatsappBot-kLb3kUav.js → WhatsappBot-DtS5lWL8.js} +6 -6
  67. package/dist/{WhatsappBotLogs-jcYaHs0t.js → WhatsappBotLogs-rl1q5Com.js} +6 -6
  68. package/dist/{WhatsappBotSettings-B6jJD61h.js → WhatsappBotSettings-DdAnmkGz.js} +4 -4
  69. package/dist/{WhatsappLayout-C24bIjI2.js → WhatsappLayout-C52eyo8O.js} +3 -3
  70. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-9a_grP76.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DSTy1_mf.js} +3 -3
  71. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js → ZodTextField.vue_vue_type_script_setup_true_lang-FjEnzRs3.js} +2 -2
  72. package/dist/{app-C06bAZj3.js → app-CMT8marC.js} +14674 -13763
  73. package/dist/app.js +1 -1
  74. package/dist/{base.export-CgNRhKu8.js → base.export-Cgl_9TxX.js} +2 -2
  75. package/dist/{business-D23Dt1x4.js → business-BJU9uFPa.js} +1 -1
  76. package/dist/{campaign-FVcbXtrP.js → campaign-B3KsGmmr.js} +2 -2
  77. package/dist/{campaign-DfEvGigm.js → campaign-CVdswQPo.js} +8 -8
  78. package/dist/{campaign.fn-0MNUj1fZ.js → campaign.fn-C400ik1p.js} +100 -100
  79. package/dist/{collection.fn-DC1AMI9o.js → collection.fn-7ybRczFg.js} +2 -2
  80. package/dist/{currency-Bra2RJK4.js → currency-BImoFfSS.js} +1 -1
  81. package/dist/{effect-EL4V3pAu.js → effect-Dxft7tt1.js} +1 -1
  82. package/dist/{email-addresses-Ddtf1x_y.js → email-addresses-WadDwyy9.js} +25 -25
  83. package/dist/{feature-flag-umACX47C.js → feature-flag-CEjA6txQ.js} +1 -1
  84. package/dist/{helper-DqDOnLCf.js → helper-i7dspqHv.js} +1 -1
  85. package/dist/{index-pfmx-Gor.js → index--rOHRSPf.js} +2 -2
  86. package/dist/{index-rcfcslIC.js → index-BHtWZTaZ.js} +3 -3
  87. package/dist/{index-CEh6ryp2.js → index-BOTveS0V.js} +1 -1
  88. package/dist/{index-C3lk4GHF.js → index-BUEY9Vst.js} +1 -1
  89. package/dist/{index-iVbjwKxc.js → index-BVNAEKsI.js} +2 -2
  90. package/dist/{index-BTjhdlN_.js → index-BvssGe0a.js} +1 -1
  91. package/dist/{index-BroF2fC8.js → index-CFRTRXNe.js} +8 -8
  92. package/dist/{index-B_BmgKrh.js → index-CLz7-IQC.js} +2 -2
  93. package/dist/{index-BzwwXWpZ.js → index-CpmyzzYE.js} +1 -1
  94. package/dist/{index-C6p9Lsvf.js → index-CqzEJtk8.js} +1 -1
  95. package/dist/{index-DK9zxpDu.js → index-DOZJA_Ft.js} +3 -3
  96. package/dist/{index-TDCPGtW3.js → index-DObwgxo8.js} +4 -4
  97. package/dist/{index-ByVPdKdB.js → index-DUmMwRCq.js} +4 -4
  98. package/dist/{index-DuCJtx1m.js → index-D_3FBcG0.js} +1 -1
  99. package/dist/{index-Bvk61_w_.js → index-Dg2MUnEL.js} +1 -1
  100. package/dist/{index-C3hAzzS2.js → index-DtOEbDWz.js} +1 -1
  101. package/dist/{index-LjoAs_nX.js → index-J8asdytc.js} +8 -8
  102. package/dist/{index-B2lqC_hH.js → index-Tk2T-Htu.js} +1 -1
  103. package/dist/{index-B3U3KZl0.js → index-evCaDo3a.js} +2 -2
  104. package/dist/{index-BkKu2G2c.js → index-twf1psHJ.js} +2 -2
  105. package/dist/{index.esm2017-DCuQPCX2.js → index.esm2017-DUf9koW-.js} +68 -68
  106. package/dist/{loading-CQm1DKWE.js → loading-DNI2of1-.js} +1 -1
  107. package/dist/{lodash-C2wVbAap.js → lodash-DwcUzWks.js} +1 -1
  108. package/dist/{member-import-BLEmTRso.js → member-import-DX9n0oRI.js} +1 -1
  109. package/dist/{membership-XycnxPEW.js → membership-BLjqUMSC.js} +2 -2
  110. package/dist/{money-DY_QGzd1.js → money-CCeb7GjC.js} +1 -1
  111. package/dist/{number-BHthf4qF.js → number-vmIaciZy.js} +1 -1
  112. package/dist/objectid-BaI3A952.js +145 -0
  113. package/dist/{onboarding-BOJw54Fn.js → onboarding-DJVHySNw.js} +3 -3
  114. package/dist/{onboardingSetup-Cf2u1tXu.js → onboardingSetup-qKNvLCN8.js} +2 -2
  115. package/dist/{plugins-DKQeoL_e.js → plugins-BPBtNB-X.js} +3 -3
  116. package/dist/{reward-D4RIYSpl.js → reward-B-u6A47a.js} +1 -1
  117. package/dist/{rule-Ba-s0L_w.js → rule-22mfpY97.js} +3 -3
  118. package/dist/{rule-builder-D0B0DPao.js → rule-builder-Bg3OydGJ.js} +1 -1
  119. package/dist/style.css +1 -1
  120. package/dist/{template-B40I16Yg.js → template-GnwTAeMg.js} +7 -7
  121. package/dist/{timezone-CAc8xi1h.js → timezone-BD7sKhu-.js} +1 -1
  122. package/dist/{transaction.fn-Cp2hnhyU.js → transaction.fn-CffTt-m0.js} +2 -2
  123. package/dist/{trigger-3ebhNBX7.js → trigger-p1qe5j1P.js} +5 -5
  124. package/dist/{useMarketingMaterialActions-6URv8neP.js → useMarketingMaterialActions-D2DL2Snn.js} +4 -4
  125. package/dist/{usePagination-C-fyMmiy.js → usePagination-C4nIvY9d.js} +1 -1
  126. package/dist/{user-T-iXTrYV.js → user-DAHq0Ejn.js} +1 -1
  127. package/dist/{vue-i18n-DzsxJorb.js → vue-i18n-V_5_FW5c.js} +237 -237
  128. package/dist/{xlsx-B8OqaJfb.js → xlsx-D7YXRI5m.js} +379 -379
  129. package/dist/{zod-DZkNj425.js → zod-B-SxImHf.js} +1 -1
  130. package/package.json +3 -2
  131. package/dist/objectid-CPCAqIiC.js +0 -145
@@ -1,21 +1,21 @@
1
- import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y, watch as ie, resolveComponent as ee, openBlock as W, createElementBlock as me, createVNode as S, unref as _, createElementVNode as I, toDisplayString as R, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
1
+ import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as B, watch as ie, resolveComponent as ee, openBlock as W, createElementBlock as me, createVNode as R, unref as g, createElementVNode as I, toDisplayString as P, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Ae, nextTick as dn } from "vue";
2
2
  import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
3
3
  import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
4
4
  import { u as pn } from "./app-wDQR6dpb.js";
5
- import { u as mn } from "./business-D23Dt1x4.js";
6
- import { u as gn, l as _n } from "./feature-flag-umACX47C.js";
7
- import "./index-BzwwXWpZ.js";
5
+ import { u as mn } from "./business-BJU9uFPa.js";
6
+ import { u as gn, l as _n } from "./feature-flag-CEjA6txQ.js";
7
+ import "./index-CpmyzzYE.js";
8
8
  import { components as j, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
9
- import { u as Tt } from "./vue-i18n-DzsxJorb.js";
10
- import { m as yn } from "./index-DuCJtx1m.js";
11
- import { C as Xe } from "./timezone-CAc8xi1h.js";
12
- import { u as wn } from "./onboarding-BOJw54Fn.js";
13
- import { R as p, A as Tn, a as Qe } from "./app-C06bAZj3.js";
14
- import { J as kn } from "./JsonViewer-v8_C7l5N.js";
15
- import { r as Le, L as bn, g as kt, i as En, a as Sn, _ as Ze, C as et, b as Rn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Pn, j as Cn, k as Et, l as w, m as Nn, F as Ve, n as On, q as oe, o as Ln, p as Mn, s as Un, t as Dn, u as xn } from "./index.esm2017-DCuQPCX2.js";
9
+ import { u as Tt } from "./vue-i18n-V_5_FW5c.js";
10
+ import { m as yn } from "./index-D_3FBcG0.js";
11
+ import { C as Xe } from "./timezone-BD7sKhu-.js";
12
+ import { u as wn } from "./onboarding-DJVHySNw.js";
13
+ import { R as p, g as Tn, A as kn, a as Qe } from "./app-CMT8marC.js";
14
+ import { J as bn } from "./JsonViewer-v8_C7l5N.js";
15
+ import { r as Le, L as En, g as kt, i as Sn, a as Rn, _ as Ze, C as et, b as Pn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Cn, j as Nn, k as Et, l as k, m as On, F as Ve, n as Ln, q as oe, o as Mn, p as Un, s as Dn, t as xn, u as Fn } from "./index.esm2017-DUf9koW-.js";
16
16
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
17
- import { S as tt, c as Fn } from "./index-iVbjwKxc.js";
18
- const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Hn = /* @__PURE__ */ xe({
17
+ import { S as tt, c as Vn } from "./index-BVNAEKsI.js";
18
+ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, jn = /* @__PURE__ */ xe({
19
19
  __name: "NavigationTab",
20
20
  setup(n) {
21
21
  const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
@@ -23,6 +23,7 @@ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class
23
23
  label: e("connect.navigation.analytic"),
24
24
  value: p["$connect-ANALYTIC"]
25
25
  },
26
+ { label: "Upselling", value: p["$connect-UPSELLING"] },
26
27
  {
27
28
  label: e("connect.navigation.campaign"),
28
29
  value: p["$connect-CAMPAIGN"],
@@ -140,69 +141,69 @@ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class
140
141
  label: e("connect.navigation.bin"),
141
142
  value: p["$connect-BIN"]
142
143
  }
143
- ], c = Y(
144
+ ], c = B(
144
145
  () => o.filter(
145
- (h) => h.value !== p["$connect-WHATSAPP"] || r() === "on"
146
+ (f) => (f.value !== p["$connect-WHATSAPP"] || r() === "on") && (f.value !== p["$connect-UPSELLING"] || Tn() !== void 0)
146
147
  )
147
- ), a = yt(), l = wt(), d = o.reduce((h, f) => [...(f.children ?? []).map((g) => g.value), ...h, f.value], []), m = ge(), y = Y(() => {
148
- const h = m.currentCountry.value || "MY";
149
- return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
148
+ ), a = yt(), l = wt(), d = o.reduce((f, w) => [...(w.children ?? []).map((h) => h.value), ...f, w.value], []), m = ge(), v = B(() => {
149
+ const f = m.currentCountry.value || "MY";
150
+ return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
150
151
  });
151
152
  ie(
152
153
  // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
153
154
  // whose identity never changes, so watching it directly fired once via
154
155
  // `immediate` and the highlight then stayed on whatever page loaded first.
155
156
  () => l.matched,
156
- (h) => {
157
- const g = h.map((v) => v.name).reverse().find((v) => d.includes(v));
158
- g && (s.value = g);
157
+ (f) => {
158
+ const h = f.map((_) => _.name).reverse().find((_) => d.includes(_));
159
+ h && (s.value = h);
159
160
  },
160
161
  { immediate: !0 }
161
162
  ), ie(
162
163
  [() => {
163
- var h;
164
- return (h = m.currentBusiness.value) == null ? void 0 : h._id;
164
+ var f;
165
+ return (f = m.currentBusiness.value) == null ? void 0 : f._id;
165
166
  }, () => l.name, t],
166
- ([h]) => {
167
- h && i.read(t.value, h);
167
+ ([f]) => {
168
+ f && i.read(t.value, f);
168
169
  },
169
170
  { immediate: !0 }
170
171
  );
171
- async function T(h) {
172
- await a.push({ name: h });
172
+ async function y(f) {
173
+ await a.push({ name: f });
173
174
  }
174
- return (h, f) => {
175
- var v;
176
- const g = ee("FmCollapsibleTabs");
177
- return W(), me("div", Vn, [
178
- S(g, {
175
+ return (f, w) => {
176
+ var _;
177
+ const h = ee("FmCollapsibleTabs");
178
+ return W(), me("div", $n, [
179
+ R(h, {
179
180
  class: "border-fm-color-neutral-gray-100 border-r px-4",
180
- "model-value": (v = _(s)) == null ? void 0 : v.toString(),
181
- items: _(c),
182
- "onUpdate:modelValue": T
181
+ "model-value": (_ = g(s)) == null ? void 0 : _.toString(),
182
+ items: g(c),
183
+ "onUpdate:modelValue": y
183
184
  }, null, 8, ["model-value", "items"]),
184
- I("div", $n, [
185
- I("div", null, "Timezone: " + R(_(y).split("/")[1].replace("_", " ")), 1),
186
- I("div", null, "(UTC" + R(_(yn).tz(_(y)).format("Z")) + ")", 1)
185
+ I("div", Hn, [
186
+ I("div", null, "Timezone: " + P(g(v).split("/")[1].replace("_", " ")), 1),
187
+ I("div", null, "(UTC" + P(g(yn).tz(g(v)).format("Z")) + ")", 1)
187
188
  ])
188
189
  ]);
189
190
  };
190
191
  }
191
192
  }), St = "feedme_connect_marketing_promo_hidden";
192
- function jn() {
193
+ function Wn() {
193
194
  try {
194
195
  return localStorage.getItem(St) !== null;
195
196
  } catch {
196
197
  return !1;
197
198
  }
198
199
  }
199
- function Wn() {
200
+ function Bn() {
200
201
  try {
201
202
  localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
202
203
  } catch {
203
204
  }
204
205
  }
205
- const Bn = { class: "flex flex-col gap-12" }, Gn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, zn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, qn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Kn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Jn = { class: "flex flex-col gap-24 pb-8" }, Yn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Xn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Qn = { class: "fm-typo-en-body-lg-600" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ei = { class: "shrink-0" }, ti = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ni = { class: "flex w-full flex-col gap-12 px-[16px]" }, ii = { class: "flex flex-wrap items-center gap-12" }, ri = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, si = /* @__PURE__ */ xe({
206
+ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, qn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Kn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Jn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Yn = { class: "flex flex-col gap-24 pb-8" }, Xn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Qn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Zn = { class: "fm-typo-en-body-lg-600" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ti = { class: "shrink-0" }, ni = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ii = { class: "flex w-full flex-col gap-12 px-[16px]" }, ri = { class: "flex flex-wrap items-center gap-12" }, si = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, oi = /* @__PURE__ */ xe({
206
207
  __name: "AiMarketingPromoDialog",
207
208
  setup(n) {
208
209
  let e = !1;
@@ -210,116 +211,116 @@ const Bn = { class: "flex flex-col gap-12" }, Gn = { class: "fm-corner-radius-xx
210
211
  { key: "completeContent", icon: "layers" },
211
212
  { key: "realContext", icon: "storefront" },
212
213
  { key: "socialFormat", icon: "aspect_ratio" }
213
- ], a = Y(() => {
214
- var h;
215
- const T = ((h = r.value) == null ? void 0 : h.permissions) ?? [];
216
- return Tn(
214
+ ], a = B(() => {
215
+ var f;
216
+ const y = ((f = r.value) == null ? void 0 : f.permissions) ?? [];
217
+ return kn(
217
218
  [
218
219
  {
219
220
  action: Qe.Action.manage,
220
221
  subject: Qe.Subject.Business.crm_marketingMaterial
221
222
  }
222
223
  ],
223
- T
224
+ y
224
225
  ).granted;
225
- }), l = Y(
226
+ }), l = B(
226
227
  () => s.value === "MY" && a.value
227
228
  );
228
229
  let d = !1;
229
230
  ie(
230
231
  l,
231
- (T) => {
232
- d || !T || (d = !0, !(jn() || e) && (e = !0, o.value = !0));
232
+ (y) => {
233
+ d || !y || (d = !0, !(Wn() || e) && (e = !0, o.value = !0));
233
234
  },
234
235
  { immediate: !0 }
235
236
  );
236
237
  async function m() {
237
238
  o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
238
239
  }
239
- function y() {
240
- Wn(), o.value = !1;
240
+ function v() {
241
+ Bn(), o.value = !1;
241
242
  }
242
- return (T, h) => {
243
- const f = ee("FmIcon"), g = ee("FmCard"), v = ee("FmButton"), M = ee("FmDialog");
244
- return W(), Oe(M, {
243
+ return (y, f) => {
244
+ const w = ee("FmIcon"), h = ee("FmCard"), _ = ee("FmButton"), b = ee("FmDialog");
245
+ return W(), Oe(b, {
245
246
  modelValue: o.value,
246
- "onUpdate:modelValue": h[0] || (h[0] = (k) => o.value = k),
247
+ "onUpdate:modelValue": f[0] || (f[0] = (T) => o.value = T),
247
248
  "min-width": "min(500px, calc(100% - 48px))",
248
249
  "max-width": "min(860px, calc(100% - 48px))",
249
250
  "max-height": "90vh",
250
251
  "dismiss-away": ""
251
252
  }, {
252
253
  "dialog-header": Z(() => [
253
- I("div", Bn, [
254
- I("div", Gn, [
255
- S(f, {
254
+ I("div", Gn, [
255
+ I("div", zn, [
256
+ R(w, {
256
257
  name: "auto_awesome",
257
258
  size: "sm",
258
259
  color: "primary"
259
260
  }),
260
- I("span", zn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
261
+ I("span", qn, P(g(t)("connect.marketing.whatsNew.badge")), 1)
261
262
  ]),
262
- I("h1", qn, R(_(t)("connect.marketing.whatsNew.title")), 1),
263
- I("p", Kn, R(_(t)("connect.marketing.whatsNew.subtitle")), 1)
263
+ I("h1", Kn, P(g(t)("connect.marketing.whatsNew.title")), 1),
264
+ I("p", Jn, P(g(t)("connect.marketing.whatsNew.subtitle")), 1)
264
265
  ])
265
266
  ]),
266
267
  "dialog-footer": Z(() => [
267
- I("div", ni, [
268
- I("div", ii, [
269
- S(v, {
268
+ I("div", ii, [
269
+ I("div", ri, [
270
+ R(_, {
270
271
  variant: "primary",
271
272
  size: "lg",
272
- label: _(t)("connect.marketing.whatsNew.cta"),
273
+ label: g(t)("connect.marketing.whatsNew.cta"),
273
274
  "append-icon": "arrow_forward",
274
275
  onClick: m
275
276
  }, null, 8, ["label"]),
276
- S(v, {
277
+ R(_, {
277
278
  variant: "tertiary",
278
279
  size: "lg",
279
- label: _(t)("connect.marketing.whatsNew.dismiss"),
280
- onClick: y
280
+ label: g(t)("connect.marketing.whatsNew.dismiss"),
281
+ onClick: v
281
282
  }, null, 8, ["label"])
282
283
  ]),
283
- I("div", ri, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
284
+ I("div", si, P(g(t)("connect.marketing.whatsNew.footnote")), 1)
284
285
  ])
285
286
  ]),
286
287
  default: Z(() => [
287
- I("div", Jn, [
288
- I("div", Yn, [
289
- (W(), me(It, null, ln(c, (k) => S(g, {
290
- key: k.key,
288
+ I("div", Yn, [
289
+ I("div", Xn, [
290
+ (W(), me(It, null, ln(c, (T) => R(h, {
291
+ key: T.key,
291
292
  variant: "outlined",
292
293
  class: "!h-full flex flex-col gap-8 p-16"
293
294
  }, {
294
295
  default: Z(() => [
295
- I("div", Xn, [
296
- S(f, {
297
- name: k.icon,
296
+ I("div", Qn, [
297
+ R(w, {
298
+ name: T.icon,
298
299
  size: "md",
299
300
  color: "primary"
300
301
  }, null, 8, ["name"])
301
302
  ]),
302
- I("div", Qn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
303
- I("div", Zn, R(_(t)(
304
- `connect.marketing.whatsNew.benefits.${k.key}.description`
303
+ I("div", Zn, P(g(t)(`connect.marketing.whatsNew.benefits.${T.key}.title`)), 1),
304
+ I("div", ei, P(g(t)(
305
+ `connect.marketing.whatsNew.benefits.${T.key}.description`
305
306
  )), 1)
306
307
  ]),
307
308
  _: 2
308
309
  }, 1024)), 64))
309
310
  ]),
310
- S(g, {
311
+ R(h, {
311
312
  variant: "outlined",
312
313
  class: "flex items-start gap-12 p-16"
313
314
  }, {
314
315
  default: Z(() => [
315
- I("div", ei, [
316
- S(f, {
316
+ I("div", ti, [
317
+ R(w, {
317
318
  name: "lightbulb",
318
319
  size: "md",
319
320
  color: "primary"
320
321
  })
321
322
  ]),
322
- I("p", ti, R(_(t)("connect.marketing.whatsNew.callout")), 1)
323
+ I("p", ni, P(g(t)("connect.marketing.whatsNew.callout")), 1)
323
324
  ]),
324
325
  _: 1
325
326
  })
@@ -330,7 +331,7 @@ const Bn = { class: "flex flex-col gap-12" }, Gn = { class: "fm-corner-radius-xx
330
331
  };
331
332
  }
332
333
  });
333
- var oi = "firebase", ai = "10.12.4";
334
+ var ai = "firebase", ci = "10.12.4";
334
335
  /**
335
336
  * @license
336
337
  * Copyright 2020 Google LLC
@@ -347,13 +348,13 @@ var oi = "firebase", ai = "10.12.4";
347
348
  * See the License for the specific language governing permissions and
348
349
  * limitations under the License.
349
350
  */
350
- Le(oi, ai, "app");
351
+ Le(ai, ci, "app");
351
352
  function Rt() {
352
353
  return {
353
354
  "dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
354
355
  };
355
356
  }
356
- const ci = Rt, At = new Fe("auth", "Firebase", Rt());
357
+ const li = Rt, Pt = new Fe("auth", "Firebase", Rt());
357
358
  /**
358
359
  * @license
359
360
  * Copyright 2020 Google LLC
@@ -370,8 +371,8 @@ const ci = Rt, At = new Fe("auth", "Firebase", Rt());
370
371
  * See the License for the specific language governing permissions and
371
372
  * limitations under the License.
372
373
  */
373
- const _e = new bn("@firebase/auth");
374
- function li(n, ...e) {
374
+ const _e = new En("@firebase/auth");
375
+ function ui(n, ...e) {
375
376
  _e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
376
377
  }
377
378
  function de(n, ...e) {
@@ -393,38 +394,38 @@ function de(n, ...e) {
393
394
  * See the License for the specific language governing permissions and
394
395
  * limitations under the License.
395
396
  */
396
- function O(n, ...e) {
397
+ function L(n, ...e) {
397
398
  throw He(n, ...e);
398
399
  }
399
- function b(n, ...e) {
400
+ function E(n, ...e) {
400
401
  return He(n, ...e);
401
402
  }
402
- function Pt(n, e, t) {
403
- const i = Object.assign(Object.assign({}, ci()), { [e]: t });
403
+ function At(n, e, t) {
404
+ const i = Object.assign(Object.assign({}, li()), { [e]: t });
404
405
  return new Fe("auth", "Firebase", i).create(e, {
405
406
  appName: n.name
406
407
  });
407
408
  }
408
409
  function H(n) {
409
- return Pt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
410
+ return At(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
410
411
  }
411
412
  function He(n, ...e) {
412
413
  if (typeof n != "string") {
413
414
  const t = e[0], i = [...e.slice(1)];
414
415
  return i[0] && (i[0].appName = n.name), n._errorFactory.create(t, ...i);
415
416
  }
416
- return At.create(n, ...e);
417
+ return Pt.create(n, ...e);
417
418
  }
418
419
  function u(n, e, ...t) {
419
420
  if (!n)
420
421
  throw He(e, ...t);
421
422
  }
422
- function P(n) {
423
+ function C(n) {
423
424
  const e = "INTERNAL ASSERTION FAILED: " + n;
424
425
  throw de(e), new Error(e);
425
426
  }
426
- function L(n, e) {
427
- n || P(e);
427
+ function M(n, e) {
428
+ n || C(e);
428
429
  }
429
430
  /**
430
431
  * @license
@@ -446,7 +447,7 @@ function Me() {
446
447
  var n;
447
448
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
448
449
  }
449
- function ui() {
450
+ function di() {
450
451
  return nt() === "http:" || nt() === "https:";
451
452
  }
452
453
  function nt() {
@@ -469,15 +470,15 @@ function nt() {
469
470
  * See the License for the specific language governing permissions and
470
471
  * limitations under the License.
471
472
  */
472
- function di() {
473
+ function hi() {
473
474
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
474
475
  // This is especially true for Cordova apps which have unreliable
475
476
  // navigator.onLine behavior unless cordova-plugin-network-information is
476
477
  // installed which overwrites the native navigator.onLine value and
477
478
  // defines navigator.connection.
478
- (ui() || Rn() || "connection" in navigator) ? navigator.onLine : !0;
479
+ (di() || Pn() || "connection" in navigator) ? navigator.onLine : !0;
479
480
  }
480
- function hi() {
481
+ function fi() {
481
482
  if (typeof navigator > "u")
482
483
  return null;
483
484
  const n = navigator;
@@ -507,10 +508,10 @@ function hi() {
507
508
  */
508
509
  class ae {
509
510
  constructor(e, t) {
510
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = En() || Sn();
511
+ this.shortDelay = e, this.longDelay = t, M(t > e, "Short delay should be less than long delay!"), this.isMobile = Sn() || Rn();
511
512
  }
512
513
  get() {
513
- return di() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
514
+ return hi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
514
515
  }
515
516
  }
516
517
  /**
@@ -530,7 +531,7 @@ class ae {
530
531
  * limitations under the License.
531
532
  */
532
533
  function je(n, e) {
533
- L(n.emulator, "Emulator should always be set here");
534
+ M(n.emulator, "Emulator should always be set here");
534
535
  const { url: t } = n.emulator;
535
536
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
536
537
  }
@@ -563,7 +564,7 @@ class Ct {
563
564
  return globalThis.fetch;
564
565
  if (typeof fetch < "u")
565
566
  return fetch;
566
- P("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
567
+ C("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
567
568
  }
568
569
  static headers() {
569
570
  if (this.headersImpl)
@@ -574,7 +575,7 @@ class Ct {
574
575
  return globalThis.Headers;
575
576
  if (typeof Headers < "u")
576
577
  return Headers;
577
- P("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
578
+ C("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
578
579
  }
579
580
  static response() {
580
581
  if (this.responseImpl)
@@ -585,7 +586,7 @@ class Ct {
585
586
  return globalThis.Response;
586
587
  if (typeof Response < "u")
587
588
  return Response;
588
- P("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
589
+ C("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
589
590
  }
590
591
  }
591
592
  /**
@@ -604,7 +605,7 @@ class Ct {
604
605
  * See the License for the specific language governing permissions and
605
606
  * limitations under the License.
606
607
  */
607
- const fi = {
608
+ const pi = {
608
609
  // Custom token errors.
609
610
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
610
611
  // This can only happen if the SDK sends a bad request.
@@ -695,7 +696,7 @@ const fi = {
695
696
  * See the License for the specific language governing permissions and
696
697
  * limitations under the License.
697
698
  */
698
- const pi = new ae(3e4, 6e4);
699
+ const mi = new ae(3e4, 6e4);
699
700
  function Te(n, e) {
700
701
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
701
702
  }
@@ -721,9 +722,9 @@ async function Q(n, e, t, i, r = {}) {
721
722
  }
722
723
  async function Nt(n, e, t) {
723
724
  n._canInitEmulator = !1;
724
- const i = Object.assign(Object.assign({}, fi), e);
725
+ const i = Object.assign(Object.assign({}, pi), e);
725
726
  try {
726
- const r = new mi(n), s = await Promise.race([
727
+ const r = new gi(n), s = await Promise.race([
727
728
  t(),
728
729
  r.promise
729
730
  ]);
@@ -743,18 +744,18 @@ async function Nt(n, e, t) {
743
744
  throw ue(n, "user-disabled", o);
744
745
  const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
745
746
  if (l)
746
- throw Pt(n, d, l);
747
- O(n, d);
747
+ throw At(n, d, l);
748
+ L(n, d);
748
749
  }
749
750
  } catch (r) {
750
751
  if (r instanceof Ve)
751
752
  throw r;
752
- O(n, "network-request-failed", { message: String(r) });
753
+ L(n, "network-request-failed", { message: String(r) });
753
754
  }
754
755
  }
755
756
  async function Ot(n, e, t, i, r = {}) {
756
757
  const s = await Q(n, e, t, i, r);
757
- return "mfaPendingCredential" in s && O(n, "multi-factor-auth-required", {
758
+ return "mfaPendingCredential" in s && L(n, "multi-factor-auth-required", {
758
759
  _serverResponse: s
759
760
  }), s;
760
761
  }
@@ -762,14 +763,14 @@ function Lt(n, e, t, i) {
762
763
  const r = `${e}${t}?${i}`;
763
764
  return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
764
765
  }
765
- class mi {
766
+ class gi {
766
767
  constructor(e) {
767
768
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
768
- this.timer = setTimeout(() => i(b(
769
+ this.timer = setTimeout(() => i(E(
769
770
  this.auth,
770
771
  "network-request-failed"
771
772
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
772
- )), pi.get());
773
+ )), mi.get());
773
774
  });
774
775
  }
775
776
  clearNetworkTimeout() {
@@ -781,7 +782,7 @@ function ue(n, e, t) {
781
782
  appName: n.name
782
783
  };
783
784
  t.email && (i.email = t.email), t.phoneNumber && (i.phoneNumber = t.phoneNumber);
784
- const r = b(n, e, i);
785
+ const r = E(n, e, i);
785
786
  return r.customData._tokenResponse = t, r;
786
787
  }
787
788
  /**
@@ -800,7 +801,7 @@ function ue(n, e, t) {
800
801
  * See the License for the specific language governing permissions and
801
802
  * limitations under the License.
802
803
  */
803
- async function gi(n, e) {
804
+ async function _i(n, e) {
804
805
  return Q(n, "POST", "/v1/accounts:delete", e);
805
806
  }
806
807
  async function Mt(n, e) {
@@ -831,7 +832,7 @@ function ne(n) {
831
832
  } catch {
832
833
  }
833
834
  }
834
- async function _i(n, e = !1) {
835
+ async function vi(n, e = !1) {
835
836
  const t = X(n), i = await t.getIdToken(e), r = We(i);
836
837
  u(
837
838
  r && r.exp && r.auth_time && r.iat,
@@ -858,7 +859,7 @@ function We(n) {
858
859
  if (e === void 0 || t === void 0 || i === void 0)
859
860
  return de("JWT malformed, contained fewer than 3 sections"), null;
860
861
  try {
861
- const r = On(t);
862
+ const r = Ln(t);
862
863
  return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
863
864
  } catch (r) {
864
865
  return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
@@ -902,10 +903,10 @@ async function re(n, e, t = !1) {
902
903
  try {
903
904
  return await e;
904
905
  } catch (i) {
905
- throw i instanceof Ve && vi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
906
+ throw i instanceof Ve && Ii(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
906
907
  }
907
908
  }
908
- function vi({ code: n }) {
909
+ function Ii({ code: n }) {
909
910
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
910
911
  }
911
912
  /**
@@ -924,7 +925,7 @@ function vi({ code: n }) {
924
925
  * See the License for the specific language governing permissions and
925
926
  * limitations under the License.
926
927
  */
927
- class Ii {
928
+ class yi {
928
929
  constructor(e) {
929
930
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
930
931
  }
@@ -1030,7 +1031,7 @@ async function ve(n) {
1030
1031
  );
1031
1032
  const s = r.users[0];
1032
1033
  n._notifyReloadListener(s);
1033
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = wi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1034
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ti(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1034
1035
  uid: s.localId,
1035
1036
  displayName: s.displayName || null,
1036
1037
  photoURL: s.photoUrl || null,
@@ -1044,11 +1045,11 @@ async function ve(n) {
1044
1045
  };
1045
1046
  Object.assign(n, m);
1046
1047
  }
1047
- async function yi(n) {
1048
+ async function wi(n) {
1048
1049
  const e = X(n);
1049
1050
  await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1050
1051
  }
1051
- function wi(n, e) {
1052
+ function Ti(n, e) {
1052
1053
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1053
1054
  }
1054
1055
  function Ut(n) {
@@ -1080,7 +1081,7 @@ function Ut(n) {
1080
1081
  * See the License for the specific language governing permissions and
1081
1082
  * limitations under the License.
1082
1083
  */
1083
- async function Ti(n, e) {
1084
+ async function ki(n, e) {
1084
1085
  const t = await Nt(n, {}, async () => {
1085
1086
  const i = oe({
1086
1087
  grant_type: "refresh_token",
@@ -1101,7 +1102,7 @@ async function Ti(n, e) {
1101
1102
  refreshToken: t.refresh_token
1102
1103
  };
1103
1104
  }
1104
- async function ki(n, e) {
1105
+ async function bi(n, e) {
1105
1106
  return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1106
1107
  }
1107
1108
  /**
@@ -1120,7 +1121,7 @@ async function ki(n, e) {
1120
1121
  * See the License for the specific language governing permissions and
1121
1122
  * limitations under the License.
1122
1123
  */
1123
- class q {
1124
+ class K {
1124
1125
  constructor() {
1125
1126
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
1126
1127
  }
@@ -1165,14 +1166,14 @@ class q {
1165
1166
  this.refreshToken = null;
1166
1167
  }
1167
1168
  async refresh(e, t) {
1168
- const { accessToken: i, refreshToken: r, expiresIn: s } = await Ti(e, t);
1169
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await ki(e, t);
1169
1170
  this.updateTokensAndExpiration(i, r, Number(s));
1170
1171
  }
1171
1172
  updateTokensAndExpiration(e, t, i) {
1172
1173
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + i * 1e3;
1173
1174
  }
1174
1175
  static fromJSON(e, t) {
1175
- const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new q();
1176
+ const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new K();
1176
1177
  return i && (u(typeof i == "string", "internal-error", {
1177
1178
  appName: e
1178
1179
  }), o.refreshToken = i), r && (u(typeof r == "string", "internal-error", {
@@ -1192,10 +1193,10 @@ class q {
1192
1193
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
1193
1194
  }
1194
1195
  _clone() {
1195
- return Object.assign(new q(), this.toJSON());
1196
+ return Object.assign(new K(), this.toJSON());
1196
1197
  }
1197
1198
  _performRefresh() {
1198
- return P("not implemented");
1199
+ return C("not implemented");
1199
1200
  }
1200
1201
  }
1201
1202
  /**
@@ -1217,10 +1218,10 @@ class q {
1217
1218
  function D(n, e) {
1218
1219
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
1219
1220
  }
1220
- class C {
1221
+ class N {
1221
1222
  constructor(e) {
1222
1223
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
1223
- this.providerId = "firebase", this.proactiveRefresh = new Ii(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 Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1224
+ this.providerId = "firebase", this.proactiveRefresh = new yi(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 Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1224
1225
  }
1225
1226
  async getIdToken(e) {
1226
1227
  const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1232,10 +1233,10 @@ class C {
1232
1233
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1233
1234
  }
1234
1235
  getIdTokenResult(e) {
1235
- return _i(this, e);
1236
+ return vi(this, e);
1236
1237
  }
1237
1238
  reload() {
1238
- return yi(this);
1239
+ return wi(this);
1239
1240
  }
1240
1241
  _assign(e) {
1241
1242
  this !== e && (u(
@@ -1246,7 +1247,7 @@ class C {
1246
1247
  ), this.displayName = e.displayName, this.photoURL = e.photoURL, this.email = e.email, this.emailVerified = e.emailVerified, this.phoneNumber = e.phoneNumber, this.isAnonymous = e.isAnonymous, this.tenantId = e.tenantId, this.providerData = e.providerData.map((t) => Object.assign({}, t)), this.metadata._copy(e.metadata), this.stsTokenManager._assign(e.stsTokenManager));
1247
1248
  }
1248
1249
  _clone(e) {
1249
- const t = new C(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1250
+ const t = new N(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1250
1251
  return t.metadata._copy(this.metadata), t;
1251
1252
  }
1252
1253
  _onReload(e) {
@@ -1274,7 +1275,7 @@ class C {
1274
1275
  if (A(this.auth.app))
1275
1276
  return Promise.reject(H(this.auth));
1276
1277
  const e = await this.getIdToken();
1277
- return await re(this, gi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1278
+ return await re(this, _i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1278
1279
  }
1279
1280
  toJSON() {
1280
1281
  return Object.assign(Object.assign({
@@ -1302,20 +1303,20 @@ class C {
1302
1303
  }
1303
1304
  static _fromJSON(e, t) {
1304
1305
  var i, r, s, o, c, a, l, d;
1305
- const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, y = (r = t.email) !== null && r !== void 0 ? r : void 0, T = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, h = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, f = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, v = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1306
+ const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, v = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, f = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, w = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, h = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, _ = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, b = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: T, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1306
1307
  u(
1307
- k && Ye,
1308
+ T && Ye,
1308
1309
  e,
1309
1310
  "internal-error"
1310
1311
  /* AuthErrorCode.INTERNAL_ERROR */
1311
1312
  );
1312
- const on = q.fromJSON(this.name, Ye);
1313
+ const on = K.fromJSON(this.name, Ye);
1313
1314
  u(
1314
- typeof k == "string",
1315
+ typeof T == "string",
1315
1316
  e,
1316
1317
  "internal-error"
1317
1318
  /* AuthErrorCode.INTERNAL_ERROR */
1318
- ), D(m, e.name), D(y, e.name), u(
1319
+ ), D(m, e.name), D(v, e.name), u(
1319
1320
  typeof Ke == "boolean",
1320
1321
  e,
1321
1322
  "internal-error"
@@ -1325,22 +1326,22 @@ class C {
1325
1326
  e,
1326
1327
  "internal-error"
1327
1328
  /* AuthErrorCode.INTERNAL_ERROR */
1328
- ), D(T, e.name), D(h, e.name), D(f, e.name), D(g, e.name), D(v, e.name), D(M, e.name);
1329
- const Ae = new C({
1330
- uid: k,
1329
+ ), D(y, e.name), D(f, e.name), D(w, e.name), D(h, e.name), D(_, e.name), D(b, e.name);
1330
+ const Pe = new N({
1331
+ uid: T,
1331
1332
  auth: e,
1332
- email: y,
1333
+ email: v,
1333
1334
  emailVerified: Ke,
1334
1335
  displayName: m,
1335
1336
  isAnonymous: Je,
1336
- photoURL: h,
1337
- phoneNumber: T,
1338
- tenantId: f,
1337
+ photoURL: f,
1338
+ phoneNumber: y,
1339
+ tenantId: w,
1339
1340
  stsTokenManager: on,
1340
- createdAt: v,
1341
- lastLoginAt: M
1341
+ createdAt: _,
1342
+ lastLoginAt: b
1342
1343
  });
1343
- return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), g && (Ae._redirectEventId = g), Ae;
1344
+ return Re && Array.isArray(Re) && (Pe.providerData = Re.map((an) => Object.assign({}, an))), h && (Pe._redirectEventId = h), Pe;
1344
1345
  }
1345
1346
  /**
1346
1347
  * Initialize a User from an idToken server response
@@ -1348,9 +1349,9 @@ class C {
1348
1349
  * @param idTokenResponse
1349
1350
  */
1350
1351
  static async _fromIdTokenResponse(e, t, i = !1) {
1351
- const r = new q();
1352
+ const r = new K();
1352
1353
  r.updateFromServerResponse(t);
1353
- const s = new C({
1354
+ const s = new N({
1354
1355
  uid: t.localId,
1355
1356
  auth: e,
1356
1357
  stsTokenManager: r,
@@ -1370,9 +1371,9 @@ class C {
1370
1371
  "internal-error"
1371
1372
  /* AuthErrorCode.INTERNAL_ERROR */
1372
1373
  );
1373
- const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new q();
1374
+ const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new K();
1374
1375
  c.updateFromIdToken(i);
1375
- const a = new C({
1376
+ const a = new N({
1376
1377
  uid: r.localId,
1377
1378
  auth: e,
1378
1379
  stsTokenManager: c,
@@ -1409,10 +1410,10 @@ class C {
1409
1410
  * limitations under the License.
1410
1411
  */
1411
1412
  const rt = /* @__PURE__ */ new Map();
1412
- function N(n) {
1413
- L(n instanceof Function, "Expected a class definition");
1413
+ function O(n) {
1414
+ M(n instanceof Function, "Expected a class definition");
1414
1415
  let e = rt.get(n);
1415
- return e ? (L(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), rt.set(n, e), e);
1416
+ return e ? (M(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), rt.set(n, e), e);
1416
1417
  }
1417
1418
  /**
1418
1419
  * @license
@@ -1473,7 +1474,7 @@ const st = Dt;
1473
1474
  function he(n, e, t) {
1474
1475
  return `firebase:${n}:${e}:${t}`;
1475
1476
  }
1476
- class K {
1477
+ class J {
1477
1478
  constructor(e, t, i) {
1478
1479
  this.persistence = e, this.auth = t, this.userKey = i;
1479
1480
  const { config: r, name: s } = this.auth;
@@ -1484,7 +1485,7 @@ class K {
1484
1485
  }
1485
1486
  async getCurrentUser() {
1486
1487
  const e = await this.persistence._get(this.fullUserKey);
1487
- return e ? C._fromJSON(this.auth, e) : null;
1488
+ return e ? N._fromJSON(this.auth, e) : null;
1488
1489
  }
1489
1490
  removeCurrentUser() {
1490
1491
  return this.persistence._remove(this.fullUserKey);
@@ -1504,32 +1505,32 @@ class K {
1504
1505
  }
1505
1506
  static async create(e, t, i = "authUser") {
1506
1507
  if (!t.length)
1507
- return new K(N(st), e, i);
1508
+ return new J(O(st), e, i);
1508
1509
  const r = (await Promise.all(t.map(async (l) => {
1509
1510
  if (await l._isAvailable())
1510
1511
  return l;
1511
1512
  }))).filter((l) => l);
1512
- let s = r[0] || N(st);
1513
+ let s = r[0] || O(st);
1513
1514
  const o = he(i, e.config.apiKey, e.name);
1514
1515
  let c = null;
1515
1516
  for (const l of t)
1516
1517
  try {
1517
1518
  const d = await l._get(o);
1518
1519
  if (d) {
1519
- const m = C._fromJSON(e, d);
1520
+ const m = N._fromJSON(e, d);
1520
1521
  l !== s && (c = m), s = l;
1521
1522
  break;
1522
1523
  }
1523
1524
  } catch {
1524
1525
  }
1525
1526
  const a = r.filter((l) => l._shouldAllowMigration);
1526
- return !s._shouldAllowMigration || !a.length ? new K(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
1527
+ return !s._shouldAllowMigration || !a.length ? new J(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
1527
1528
  if (l !== s)
1528
1529
  try {
1529
1530
  await l._remove(o);
1530
1531
  } catch {
1531
1532
  }
1532
- })), new K(s, e, i));
1533
+ })), new J(s, e, i));
1533
1534
  }
1534
1535
  }
1535
1536
  /**
@@ -1579,42 +1580,42 @@ function ot(n) {
1579
1580
  }
1580
1581
  return "Other";
1581
1582
  }
1582
- function xt(n = w()) {
1583
+ function xt(n = k()) {
1583
1584
  return /firefox\//i.test(n);
1584
1585
  }
1585
- function Be(n = w()) {
1586
+ function Be(n = k()) {
1586
1587
  const e = n.toLowerCase();
1587
1588
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1588
1589
  }
1589
- function Ft(n = w()) {
1590
+ function Ft(n = k()) {
1590
1591
  return /crios\//i.test(n);
1591
1592
  }
1592
- function Vt(n = w()) {
1593
+ function Vt(n = k()) {
1593
1594
  return /iemobile/i.test(n);
1594
1595
  }
1595
- function $t(n = w()) {
1596
+ function $t(n = k()) {
1596
1597
  return /android/i.test(n);
1597
1598
  }
1598
- function Ht(n = w()) {
1599
+ function Ht(n = k()) {
1599
1600
  return /blackberry/i.test(n);
1600
1601
  }
1601
- function jt(n = w()) {
1602
+ function jt(n = k()) {
1602
1603
  return /webos/i.test(n);
1603
1604
  }
1604
- function ke(n = w()) {
1605
+ function ke(n = k()) {
1605
1606
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1606
1607
  }
1607
- function bi(n = w()) {
1608
+ function Ei(n = k()) {
1608
1609
  var e;
1609
1610
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1610
1611
  }
1611
- function Ei() {
1612
- return Ln() && document.documentMode === 10;
1612
+ function Si() {
1613
+ return Mn() && document.documentMode === 10;
1613
1614
  }
1614
- function Wt(n = w()) {
1615
+ function Wt(n = k()) {
1615
1616
  return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1616
1617
  }
1617
- function Si() {
1618
+ function Ri() {
1618
1619
  try {
1619
1620
  return !!(window && window !== window.top);
1620
1621
  } catch {
@@ -1641,10 +1642,10 @@ function Bt(n, e = []) {
1641
1642
  let t;
1642
1643
  switch (n) {
1643
1644
  case "Browser":
1644
- t = ot(w());
1645
+ t = ot(k());
1645
1646
  break;
1646
1647
  case "Worker":
1647
- t = `${ot(w())}-${n}`;
1648
+ t = `${ot(k())}-${n}`;
1648
1649
  break;
1649
1650
  default:
1650
1651
  t = n;
@@ -1668,7 +1669,7 @@ function Bt(n, e = []) {
1668
1669
  * See the License for the specific language governing permissions and
1669
1670
  * limitations under the License.
1670
1671
  */
1671
- class Ri {
1672
+ class Pi {
1672
1673
  constructor(e) {
1673
1674
  this.auth = e, this.queue = [];
1674
1675
  }
@@ -1742,12 +1743,12 @@ async function Ai(n, e = {}) {
1742
1743
  * See the License for the specific language governing permissions and
1743
1744
  * limitations under the License.
1744
1745
  */
1745
- const Pi = 6;
1746
- class Ci {
1746
+ const Ci = 6;
1747
+ class Ni {
1747
1748
  constructor(e) {
1748
1749
  var t, i, r, s;
1749
1750
  const o = e.customStrengthOptions;
1750
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Pi, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1751
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ci, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1751
1752
  }
1752
1753
  validatePassword(e) {
1753
1754
  var t, i, r, s, o, c;
@@ -1830,14 +1831,14 @@ class Ci {
1830
1831
  * See the License for the specific language governing permissions and
1831
1832
  * limitations under the License.
1832
1833
  */
1833
- class Ni {
1834
+ class Oi {
1834
1835
  constructor(e, t, i, r) {
1835
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Ri(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 = At, 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 = r.sdkClientVersion;
1836
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Pi(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 = Pt, 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 = r.sdkClientVersion;
1836
1837
  }
1837
1838
  _initializeWithPersistence(e, t) {
1838
- return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
1839
+ return t && (this._popupRedirectResolver = O(t)), this._initializationPromise = this.queue(async () => {
1839
1840
  var i, r;
1840
- if (!this._deleted && (this.persistenceManager = await K.create(this, e), !this._deleted)) {
1841
+ if (!this._deleted && (this.persistenceManager = await J.create(this, e), !this._deleted)) {
1841
1842
  if (!((i = this._popupRedirectResolver) === null || i === void 0) && i._shouldInitProactively)
1842
1843
  try {
1843
1844
  await this._popupRedirectResolver._initialize(this);
@@ -1868,7 +1869,7 @@ class Ni {
1868
1869
  }
1869
1870
  async initializeCurrentUserFromIdToken(e) {
1870
1871
  try {
1871
- const t = await Mt(this, { idToken: e }), i = await C._fromGetAccountInfoResponse(this, t, e);
1872
+ const t = await Mt(this, { idToken: e }), i = await N._fromGetAccountInfoResponse(this, t, e);
1872
1873
  await this.directlySetCurrentUser(i);
1873
1874
  } catch (t) {
1874
1875
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
@@ -1926,7 +1927,7 @@ class Ni {
1926
1927
  return this.directlySetCurrentUser(e);
1927
1928
  }
1928
1929
  useDeviceLanguage() {
1929
- this.languageCode = hi();
1930
+ this.languageCode = fi();
1930
1931
  }
1931
1932
  async _delete() {
1932
1933
  this._deleted = !0;
@@ -1962,7 +1963,7 @@ class Ni {
1962
1963
  }
1963
1964
  setPersistence(e) {
1964
1965
  return A(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
1965
- await this.assertedPersistence.setPersistence(N(e));
1966
+ await this.assertedPersistence.setPersistence(O(e));
1966
1967
  });
1967
1968
  }
1968
1969
  _getRecaptchaConfig() {
@@ -1977,7 +1978,7 @@ class Ni {
1977
1978
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1978
1979
  }
1979
1980
  async _updatePasswordPolicy() {
1980
- const e = await Ai(this), t = new Ci(e);
1981
+ const e = await Ai(this), t = new Ni(e);
1981
1982
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1982
1983
  }
1983
1984
  _getPersistence() {
@@ -2017,7 +2018,7 @@ class Ni {
2017
2018
  token: e,
2018
2019
  idToken: t
2019
2020
  };
2020
- this.tenantId != null && (i.tenantId = this.tenantId), await ki(this, i);
2021
+ this.tenantId != null && (i.tenantId = this.tenantId), await bi(this, i);
2021
2022
  }
2022
2023
  }
2023
2024
  toJSON() {
@@ -2035,15 +2036,15 @@ class Ni {
2035
2036
  }
2036
2037
  async getOrInitRedirectPersistenceManager(e) {
2037
2038
  if (!this.redirectPersistenceManager) {
2038
- const t = e && N(e) || this._popupRedirectResolver;
2039
+ const t = e && O(e) || this._popupRedirectResolver;
2039
2040
  u(
2040
2041
  t,
2041
2042
  this,
2042
2043
  "argument-error"
2043
2044
  /* AuthErrorCode.ARGUMENT_ERROR */
2044
- ), this.redirectPersistenceManager = await K.create(
2045
+ ), this.redirectPersistenceManager = await J.create(
2045
2046
  this,
2046
- [N(t._redirectPersistence)],
2047
+ [O(t._redirectPersistence)],
2047
2048
  "redirectUser"
2048
2049
  /* KeyName.REDIRECT_USER */
2049
2050
  ), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
@@ -2160,7 +2161,7 @@ class Ni {
2160
2161
  async _getAppCheckToken() {
2161
2162
  var e;
2162
2163
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2163
- return t != null && t.error && li(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2164
+ return t != null && t.error && ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2164
2165
  }
2165
2166
  }
2166
2167
  function be(n) {
@@ -2203,16 +2204,16 @@ let Ge = {
2203
2204
  recaptchaEnterpriseScript: "",
2204
2205
  gapiScript: ""
2205
2206
  };
2206
- function Oi(n) {
2207
+ function Li(n) {
2207
2208
  Ge = n;
2208
2209
  }
2209
- function Li(n) {
2210
+ function Mi(n) {
2210
2211
  return Ge.loadJS(n);
2211
2212
  }
2212
- function Mi() {
2213
+ function Ui() {
2213
2214
  return Ge.gapiScript;
2214
2215
  }
2215
- function Ui(n) {
2216
+ function Di(n) {
2216
2217
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2217
2218
  }
2218
2219
  /**
@@ -2231,13 +2232,13 @@ function Ui(n) {
2231
2232
  * See the License for the specific language governing permissions and
2232
2233
  * limitations under the License.
2233
2234
  */
2234
- function Di(n, e) {
2235
+ function xi(n, e) {
2235
2236
  const t = bt(n, "auth");
2236
2237
  if (t.isInitialized()) {
2237
2238
  const r = t.getImmediate(), s = t.getOptions();
2238
- if (Nn(s, e ?? {}))
2239
+ if (On(s, e ?? {}))
2239
2240
  return r;
2240
- O(
2241
+ L(
2241
2242
  r,
2242
2243
  "already-initialized"
2243
2244
  /* AuthErrorCode.ALREADY_INITIALIZED */
@@ -2245,11 +2246,11 @@ function Di(n, e) {
2245
2246
  }
2246
2247
  return t.initialize({ options: e });
2247
2248
  }
2248
- function xi(n, e) {
2249
- const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2249
+ function Fi(n, e) {
2250
+ const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(O);
2250
2251
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2251
2252
  }
2252
- function Fi(n, e, t) {
2253
+ function Vi(n, e, t) {
2253
2254
  const i = be(n);
2254
2255
  u(
2255
2256
  i._canInitEmulator,
@@ -2262,19 +2263,19 @@ function Fi(n, e, t) {
2262
2263
  "invalid-emulator-scheme"
2263
2264
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2264
2265
  );
2265
- const r = !1, s = Gt(e), { host: o, port: c } = Vi(e), a = c === null ? "" : `:${c}`;
2266
+ const r = !1, s = Gt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
2266
2267
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2267
2268
  host: o,
2268
2269
  port: c,
2269
2270
  protocol: s.replace(":", ""),
2270
2271
  options: Object.freeze({ disableWarnings: r })
2271
- }), $i();
2272
+ }), Hi();
2272
2273
  }
2273
2274
  function Gt(n) {
2274
2275
  const e = n.indexOf(":");
2275
2276
  return e < 0 ? "" : n.substr(0, e + 1);
2276
2277
  }
2277
- function Vi(n) {
2278
+ function $i(n) {
2278
2279
  const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2279
2280
  if (!t)
2280
2281
  return { host: "", port: null };
@@ -2293,7 +2294,7 @@ function ct(n) {
2293
2294
  const e = Number(n);
2294
2295
  return isNaN(e) ? null : e;
2295
2296
  }
2296
- function $i() {
2297
+ function Hi() {
2297
2298
  function n() {
2298
2299
  const e = document.createElement("p"), t = e.style;
2299
2300
  e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
@@ -2327,19 +2328,19 @@ class zt {
2327
2328
  * @returns a JSON-serializable representation of this object.
2328
2329
  */
2329
2330
  toJSON() {
2330
- return P("not implemented");
2331
+ return C("not implemented");
2331
2332
  }
2332
2333
  /** @internal */
2333
2334
  _getIdTokenResponse(e) {
2334
- return P("not implemented");
2335
+ return C("not implemented");
2335
2336
  }
2336
2337
  /** @internal */
2337
2338
  _linkToIdToken(e, t) {
2338
- return P("not implemented");
2339
+ return C("not implemented");
2339
2340
  }
2340
2341
  /** @internal */
2341
2342
  _getReauthenticationResolver(e) {
2342
- return P("not implemented");
2343
+ return C("not implemented");
2343
2344
  }
2344
2345
  }
2345
2346
  /**
@@ -2358,7 +2359,7 @@ class zt {
2358
2359
  * See the License for the specific language governing permissions and
2359
2360
  * limitations under the License.
2360
2361
  */
2361
- async function J(n, e) {
2362
+ async function Y(n, e) {
2362
2363
  return Ot(n, "POST", "/v1/accounts:signInWithIdp", Te(n, e));
2363
2364
  }
2364
2365
  /**
@@ -2377,15 +2378,15 @@ async function J(n, e) {
2377
2378
  * See the License for the specific language governing permissions and
2378
2379
  * limitations under the License.
2379
2380
  */
2380
- const Hi = "http://localhost";
2381
- class B extends zt {
2381
+ const ji = "http://localhost";
2382
+ class G extends zt {
2382
2383
  constructor() {
2383
2384
  super(...arguments), this.pendingToken = null;
2384
2385
  }
2385
2386
  /** @internal */
2386
2387
  static _fromParams(e) {
2387
- const t = new B(e.providerId, e.signInMethod);
2388
- return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : O(
2388
+ const t = new G(e.providerId, e.signInMethod);
2389
+ return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : L(
2389
2390
  "argument-error"
2390
2391
  /* AuthErrorCode.ARGUMENT_ERROR */
2391
2392
  ), t;
@@ -2415,27 +2416,27 @@ class B extends zt {
2415
2416
  const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
2416
2417
  if (!i || !r)
2417
2418
  return null;
2418
- const o = new B(i, r);
2419
+ const o = new G(i, r);
2419
2420
  return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
2420
2421
  }
2421
2422
  /** @internal */
2422
2423
  _getIdTokenResponse(e) {
2423
2424
  const t = this.buildRequest();
2424
- return J(e, t);
2425
+ return Y(e, t);
2425
2426
  }
2426
2427
  /** @internal */
2427
2428
  _linkToIdToken(e, t) {
2428
2429
  const i = this.buildRequest();
2429
- return i.idToken = t, J(e, i);
2430
+ return i.idToken = t, Y(e, i);
2430
2431
  }
2431
2432
  /** @internal */
2432
2433
  _getReauthenticationResolver(e) {
2433
2434
  const t = this.buildRequest();
2434
- return t.autoCreate = !1, J(e, t);
2435
+ return t.autoCreate = !1, Y(e, t);
2435
2436
  }
2436
2437
  buildRequest() {
2437
2438
  const e = {
2438
- requestUri: Hi,
2439
+ requestUri: ji,
2439
2440
  returnSecureToken: !0
2440
2441
  };
2441
2442
  if (this.pendingToken)
@@ -2571,7 +2572,7 @@ class x extends ce {
2571
2572
  * @param accessToken - Facebook access token.
2572
2573
  */
2573
2574
  static credential(e) {
2574
- return B._fromParams({
2575
+ return G._fromParams({
2575
2576
  providerId: x.PROVIDER_ID,
2576
2577
  signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
2577
2578
  accessToken: e
@@ -2643,7 +2644,7 @@ class F extends ce {
2643
2644
  * @param accessToken - Google access token.
2644
2645
  */
2645
2646
  static credential(e, t) {
2646
- return B._fromParams({
2647
+ return G._fromParams({
2647
2648
  providerId: F.PROVIDER_ID,
2648
2649
  signInMethod: F.GOOGLE_SIGN_IN_METHOD,
2649
2650
  idToken: e,
@@ -2711,7 +2712,7 @@ class V extends ce {
2711
2712
  * @param accessToken - Github access token.
2712
2713
  */
2713
2714
  static credential(e) {
2714
- return B._fromParams({
2715
+ return G._fromParams({
2715
2716
  providerId: V.PROVIDER_ID,
2716
2717
  signInMethod: V.GITHUB_SIGN_IN_METHOD,
2717
2718
  accessToken: e
@@ -2776,7 +2777,7 @@ class $ extends ce {
2776
2777
  * @param secret - Twitter secret.
2777
2778
  */
2778
2779
  static credential(e, t) {
2779
- return B._fromParams({
2780
+ return G._fromParams({
2780
2781
  providerId: $.PROVIDER_ID,
2781
2782
  signInMethod: $.TWITTER_SIGN_IN_METHOD,
2782
2783
  oauthToken: e,
@@ -2831,13 +2832,13 @@ $.PROVIDER_ID = "twitter.com";
2831
2832
  * See the License for the specific language governing permissions and
2832
2833
  * limitations under the License.
2833
2834
  */
2834
- class G {
2835
+ class z {
2835
2836
  constructor(e) {
2836
2837
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2837
2838
  }
2838
2839
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2839
- const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
2840
- return new G({
2840
+ const s = await N._fromIdTokenResponse(e, i, r), o = lt(i);
2841
+ return new z({
2841
2842
  user: s,
2842
2843
  providerId: o,
2843
2844
  _tokenResponse: i,
@@ -2851,7 +2852,7 @@ class G {
2851
2852
  !0
2852
2853
  );
2853
2854
  const r = lt(i);
2854
- return new G({
2855
+ return new z({
2855
2856
  user: e,
2856
2857
  providerId: r,
2857
2858
  _tokenResponse: i,
@@ -2897,9 +2898,9 @@ function Kt(n, e, t, i) {
2897
2898
  throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
2898
2899
  });
2899
2900
  }
2900
- async function ji(n, e, t = !1) {
2901
+ async function Wi(n, e, t = !1) {
2901
2902
  const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2902
- return G._forOperation(n, "link", i);
2903
+ return z._forOperation(n, "link", i);
2903
2904
  }
2904
2905
  /**
2905
2906
  * @license
@@ -2917,7 +2918,7 @@ async function ji(n, e, t = !1) {
2917
2918
  * See the License for the specific language governing permissions and
2918
2919
  * limitations under the License.
2919
2920
  */
2920
- async function Wi(n, e, t = !1) {
2921
+ async function Bi(n, e, t = !1) {
2921
2922
  const { auth: i } = n;
2922
2923
  if (A(i.app))
2923
2924
  return Promise.reject(H(i));
@@ -2943,9 +2944,9 @@ async function Wi(n, e, t = !1) {
2943
2944
  i,
2944
2945
  "user-mismatch"
2945
2946
  /* AuthErrorCode.USER_MISMATCH */
2946
- ), G._forOperation(n, r, s);
2947
+ ), z._forOperation(n, r, s);
2947
2948
  } catch (s) {
2948
- throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
2949
+ throw (s == null ? void 0 : s.code) === "auth/user-not-found" && L(
2949
2950
  i,
2950
2951
  "user-mismatch"
2951
2952
  /* AuthErrorCode.USER_MISMATCH */
@@ -2968,10 +2969,10 @@ async function Wi(n, e, t = !1) {
2968
2969
  * See the License for the specific language governing permissions and
2969
2970
  * limitations under the License.
2970
2971
  */
2971
- async function Bi(n, e, t = !1) {
2972
+ async function Gi(n, e, t = !1) {
2972
2973
  if (A(n.app))
2973
2974
  return Promise.reject(H(n));
2974
- const i = "signIn", r = await Kt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
2975
+ const i = "signIn", r = await Kt(n, i, e), s = await z._fromIdTokenResponse(n, i, r);
2975
2976
  return t || await n._updateCurrentUser(s.user), s;
2976
2977
  }
2977
2978
  /**
@@ -2990,7 +2991,7 @@ async function Bi(n, e, t = !1) {
2990
2991
  * See the License for the specific language governing permissions and
2991
2992
  * limitations under the License.
2992
2993
  */
2993
- async function Gi(n, e) {
2994
+ async function zi(n, e) {
2994
2995
  return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
2995
2996
  }
2996
2997
  /**
@@ -3009,19 +3010,19 @@ async function Gi(n, e) {
3009
3010
  * See the License for the specific language governing permissions and
3010
3011
  * limitations under the License.
3011
3012
  */
3012
- async function zi(n, e) {
3013
+ async function qi(n, e) {
3013
3014
  if (A(n.app))
3014
3015
  return Promise.reject(H(n));
3015
- const t = be(n), i = await Gi(t, {
3016
+ const t = be(n), i = await zi(t, {
3016
3017
  token: e,
3017
3018
  returnSecureToken: !0
3018
- }), r = await G._fromIdTokenResponse(t, "signIn", i);
3019
+ }), r = await z._fromIdTokenResponse(t, "signIn", i);
3019
3020
  return await t._updateCurrentUser(r.user), r;
3020
3021
  }
3021
- function qi(n, e, t, i) {
3022
+ function Ki(n, e, t, i) {
3022
3023
  return X(n).onIdTokenChanged(e, t, i);
3023
3024
  }
3024
- function Ki(n, e, t) {
3025
+ function Ji(n, e, t) {
3025
3026
  return X(n).beforeAuthStateChanged(e, t);
3026
3027
  }
3027
3028
  const ye = "__sak";
@@ -3082,18 +3083,18 @@ class Jt {
3082
3083
  * See the License for the specific language governing permissions and
3083
3084
  * limitations under the License.
3084
3085
  */
3085
- function Ji() {
3086
- const n = w();
3086
+ function Yi() {
3087
+ const n = k();
3087
3088
  return Be(n) || ke(n);
3088
3089
  }
3089
- const Yi = 1e3, Xi = 10;
3090
+ const Xi = 1e3, Qi = 10;
3090
3091
  class Yt extends Jt {
3091
3092
  constructor() {
3092
3093
  super(
3093
3094
  () => window.localStorage,
3094
3095
  "LOCAL"
3095
3096
  /* PersistenceType.LOCAL */
3096
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ji() && Si(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3097
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3097
3098
  }
3098
3099
  forAllChangedKeys(e) {
3099
3100
  for (const t of Object.keys(this.listeners)) {
@@ -3120,7 +3121,7 @@ class Yt extends Jt {
3120
3121
  const o = this.storage.getItem(i);
3121
3122
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3122
3123
  }, s = this.storage.getItem(i);
3123
- Ei() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Xi) : r();
3124
+ Si() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Qi) : r();
3124
3125
  }
3125
3126
  notifyListeners(e, t) {
3126
3127
  this.localCache[e] = t;
@@ -3142,7 +3143,7 @@ class Yt extends Jt {
3142
3143
  !0
3143
3144
  );
3144
3145
  });
3145
- }, Yi);
3146
+ }, Xi);
3146
3147
  }
3147
3148
  stopPolling() {
3148
3149
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3172,7 +3173,7 @@ class Yt extends Jt {
3172
3173
  }
3173
3174
  }
3174
3175
  Yt.type = "LOCAL";
3175
- const Qi = Yt;
3176
+ const Zi = Yt;
3176
3177
  /**
3177
3178
  * @license
3178
3179
  * Copyright 2020 Google LLC
@@ -3220,7 +3221,7 @@ const Qt = Xt;
3220
3221
  * See the License for the specific language governing permissions and
3221
3222
  * limitations under the License.
3222
3223
  */
3223
- function Zi(n) {
3224
+ function er(n) {
3224
3225
  return Promise.all(n.map(async (e) => {
3225
3226
  try {
3226
3227
  return {
@@ -3290,7 +3291,7 @@ class Ee {
3290
3291
  eventId: i,
3291
3292
  eventType: r
3292
3293
  });
3293
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Zi(c);
3294
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await er(c);
3294
3295
  t.ports[0].postMessage({
3295
3296
  status: "done",
3296
3297
  eventId: i,
@@ -3358,7 +3359,7 @@ function ze(n = "", e = 10) {
3358
3359
  * See the License for the specific language governing permissions and
3359
3360
  * limitations under the License.
3360
3361
  */
3361
- class er {
3362
+ class tr {
3362
3363
  constructor(e) {
3363
3364
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3364
3365
  }
@@ -3403,9 +3404,9 @@ class er {
3403
3404
  o = {
3404
3405
  messageChannel: r,
3405
3406
  onMessage(m) {
3406
- const y = m;
3407
- if (y.data.eventId === l)
3408
- switch (y.data.status) {
3407
+ const v = m;
3408
+ if (v.data.eventId === l)
3409
+ switch (v.data.status) {
3409
3410
  case "ack":
3410
3411
  clearTimeout(d), s = setTimeout(
3411
3412
  () => {
@@ -3419,7 +3420,7 @@ class er {
3419
3420
  );
3420
3421
  break;
3421
3422
  case "done":
3422
- clearTimeout(s), c(y.data.response);
3423
+ clearTimeout(s), c(v.data.response);
3423
3424
  break;
3424
3425
  default:
3425
3426
  clearTimeout(d), clearTimeout(s), a(new Error(
@@ -3455,11 +3456,11 @@ class er {
3455
3456
  * See the License for the specific language governing permissions and
3456
3457
  * limitations under the License.
3457
3458
  */
3458
- function E() {
3459
+ function S() {
3459
3460
  return window;
3460
3461
  }
3461
- function tr(n) {
3462
- E().location.href = n;
3462
+ function nr(n) {
3463
+ S().location.href = n;
3463
3464
  }
3464
3465
  /**
3465
3466
  * @license
@@ -3478,9 +3479,9 @@ function tr(n) {
3478
3479
  * limitations under the License.
3479
3480
  */
3480
3481
  function Zt() {
3481
- return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3482
+ return typeof S().WorkerGlobalScope < "u" && typeof S().importScripts == "function";
3482
3483
  }
3483
- async function nr() {
3484
+ async function ir() {
3484
3485
  if (!(navigator != null && navigator.serviceWorker))
3485
3486
  return null;
3486
3487
  try {
@@ -3489,11 +3490,11 @@ async function nr() {
3489
3490
  return null;
3490
3491
  }
3491
3492
  }
3492
- function ir() {
3493
+ function rr() {
3493
3494
  var n;
3494
3495
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3495
3496
  }
3496
- function rr() {
3497
+ function sr() {
3497
3498
  return Zt() ? self : null;
3498
3499
  }
3499
3500
  /**
@@ -3512,7 +3513,7 @@ function rr() {
3512
3513
  * See the License for the specific language governing permissions and
3513
3514
  * limitations under the License.
3514
3515
  */
3515
- const en = "firebaseLocalStorageDb", sr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3516
+ const en = "firebaseLocalStorageDb", or = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3516
3517
  class le {
3517
3518
  constructor(e) {
3518
3519
  this.request = e;
@@ -3530,12 +3531,12 @@ class le {
3530
3531
  function Se(n, e) {
3531
3532
  return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3532
3533
  }
3533
- function or() {
3534
+ function ar() {
3534
3535
  const n = indexedDB.deleteDatabase(en);
3535
3536
  return new le(n).toPromise();
3536
3537
  }
3537
3538
  function De() {
3538
- const n = indexedDB.open(en, sr);
3539
+ const n = indexedDB.open(en, or);
3539
3540
  return new Promise((e, t) => {
3540
3541
  n.addEventListener("error", () => {
3541
3542
  t(n.error);
@@ -3548,7 +3549,7 @@ function De() {
3548
3549
  }
3549
3550
  }), n.addEventListener("success", async () => {
3550
3551
  const i = n.result;
3551
- i.objectStoreNames.contains(we) ? e(i) : (i.close(), await or(), e(await De()));
3552
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await ar(), e(await De()));
3552
3553
  });
3553
3554
  });
3554
3555
  }
@@ -3559,7 +3560,7 @@ async function ut(n, e, t) {
3559
3560
  });
3560
3561
  return new le(i).toPromise();
3561
3562
  }
3562
- async function ar(n, e) {
3563
+ async function cr(n, e) {
3563
3564
  const t = Se(n, !1).get(e), i = await new le(t).toPromise();
3564
3565
  return i === void 0 ? null : i.value;
3565
3566
  }
@@ -3567,7 +3568,7 @@ function dt(n, e) {
3567
3568
  const t = Se(n, !0).delete(e);
3568
3569
  return new le(t).toPromise();
3569
3570
  }
3570
- const cr = 800, lr = 3;
3571
+ const lr = 800, ur = 3;
3571
3572
  class nn {
3572
3573
  constructor() {
3573
3574
  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(() => {
@@ -3584,7 +3585,7 @@ class nn {
3584
3585
  const i = await this._openDb();
3585
3586
  return await e(i);
3586
3587
  } catch (i) {
3587
- if (t++ > lr)
3588
+ if (t++ > ur)
3588
3589
  throw i;
3589
3590
  this.db && (this.db.close(), this.db = void 0);
3590
3591
  }
@@ -3600,7 +3601,7 @@ class nn {
3600
3601
  * As the worker we should listen to events from the main window.
3601
3602
  */
3602
3603
  async initializeReceiver() {
3603
- this.receiver = Ee._getInstance(rr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3604
+ this.receiver = Ee._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3604
3605
  keyProcessed: (await this._poll()).includes(t.key)
3605
3606
  })), this.receiver._subscribe("ping", async (e, t) => [
3606
3607
  "keyChanged"
@@ -3616,9 +3617,9 @@ class nn {
3616
3617
  */
3617
3618
  async initializeSender() {
3618
3619
  var e, t;
3619
- if (this.activeServiceWorker = await nr(), !this.activeServiceWorker)
3620
+ if (this.activeServiceWorker = await ir(), !this.activeServiceWorker)
3620
3621
  return;
3621
- this.sender = new er(this.activeServiceWorker);
3622
+ this.sender = new tr(this.activeServiceWorker);
3622
3623
  const i = await this.sender._send(
3623
3624
  "ping",
3624
3625
  {},
@@ -3640,7 +3641,7 @@ class nn {
3640
3641
  * @param key - Storage key which changed.
3641
3642
  */
3642
3643
  async notifyServiceWorker(e) {
3643
- if (!(!this.sender || !this.activeServiceWorker || ir() !== this.activeServiceWorker))
3644
+ if (!(!this.sender || !this.activeServiceWorker || rr() !== this.activeServiceWorker))
3644
3645
  try {
3645
3646
  await this.sender._send(
3646
3647
  "keyChanged",
@@ -3674,7 +3675,7 @@ class nn {
3674
3675
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3675
3676
  }
3676
3677
  async _get(e) {
3677
- const t = await this._withRetries((i) => ar(i, e));
3678
+ const t = await this._withRetries((i) => cr(i, e));
3678
3679
  return this.localCache[e] = t, t;
3679
3680
  }
3680
3681
  async _remove(e) {
@@ -3705,7 +3706,7 @@ class nn {
3705
3706
  r(t);
3706
3707
  }
3707
3708
  startPolling() {
3708
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), cr);
3709
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), lr);
3709
3710
  }
3710
3711
  stopPolling() {
3711
3712
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3718,7 +3719,7 @@ class nn {
3718
3719
  }
3719
3720
  }
3720
3721
  nn.type = "LOCAL";
3721
- const ur = nn;
3722
+ const dr = nn;
3722
3723
  new ae(3e4, 6e4);
3723
3724
  /**
3724
3725
  * @license
@@ -3736,8 +3737,8 @@ new ae(3e4, 6e4);
3736
3737
  * See the License for the specific language governing permissions and
3737
3738
  * limitations under the License.
3738
3739
  */
3739
- function dr(n, e) {
3740
- return e ? N(e) : (u(
3740
+ function hr(n, e) {
3741
+ return e ? O(e) : (u(
3741
3742
  n._popupRedirectResolver,
3742
3743
  n,
3743
3744
  "argument-error"
@@ -3769,13 +3770,13 @@ class qe extends zt {
3769
3770
  ), this.params = e;
3770
3771
  }
3771
3772
  _getIdTokenResponse(e) {
3772
- return J(e, this._buildIdpRequest());
3773
+ return Y(e, this._buildIdpRequest());
3773
3774
  }
3774
3775
  _linkToIdToken(e, t) {
3775
- return J(e, this._buildIdpRequest(t));
3776
+ return Y(e, this._buildIdpRequest(t));
3776
3777
  }
3777
3778
  _getReauthenticationResolver(e) {
3778
- return J(e, this._buildIdpRequest());
3779
+ return Y(e, this._buildIdpRequest());
3779
3780
  }
3780
3781
  _buildIdpRequest(e) {
3781
3782
  const t = {
@@ -3790,26 +3791,26 @@ class qe extends zt {
3790
3791
  return e && (t.idToken = e), t;
3791
3792
  }
3792
3793
  }
3793
- function hr(n) {
3794
- return Bi(n.auth, new qe(n), n.bypassAuthState);
3795
- }
3796
3794
  function fr(n) {
3795
+ return Gi(n.auth, new qe(n), n.bypassAuthState);
3796
+ }
3797
+ function pr(n) {
3797
3798
  const { auth: e, user: t } = n;
3798
3799
  return u(
3799
3800
  t,
3800
3801
  e,
3801
3802
  "internal-error"
3802
3803
  /* AuthErrorCode.INTERNAL_ERROR */
3803
- ), Wi(t, new qe(n), n.bypassAuthState);
3804
+ ), Bi(t, new qe(n), n.bypassAuthState);
3804
3805
  }
3805
- async function pr(n) {
3806
+ async function mr(n) {
3806
3807
  const { auth: e, user: t } = n;
3807
3808
  return u(
3808
3809
  t,
3809
3810
  e,
3810
3811
  "internal-error"
3811
3812
  /* AuthErrorCode.INTERNAL_ERROR */
3812
- ), ji(t, new qe(n), n.bypassAuthState);
3813
+ ), Wi(t, new qe(n), n.bypassAuthState);
3813
3814
  }
3814
3815
  /**
3815
3816
  * @license
@@ -3869,15 +3870,15 @@ class rn {
3869
3870
  switch (e) {
3870
3871
  case "signInViaPopup":
3871
3872
  case "signInViaRedirect":
3872
- return hr;
3873
+ return fr;
3873
3874
  case "linkViaPopup":
3874
3875
  case "linkViaRedirect":
3875
- return pr;
3876
+ return mr;
3876
3877
  case "reauthViaPopup":
3877
3878
  case "reauthViaRedirect":
3878
- return fr;
3879
+ return pr;
3879
3880
  default:
3880
- O(
3881
+ L(
3881
3882
  this.auth,
3882
3883
  "internal-error"
3883
3884
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -3885,10 +3886,10 @@ class rn {
3885
3886
  }
3886
3887
  }
3887
3888
  resolve(e) {
3888
- L(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3889
+ M(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3889
3890
  }
3890
3891
  reject(e) {
3891
- L(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3892
+ M(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3892
3893
  }
3893
3894
  unregisterAndCleanUp() {
3894
3895
  this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
@@ -3910,10 +3911,10 @@ class rn {
3910
3911
  * See the License for the specific language governing permissions and
3911
3912
  * limitations under the License.
3912
3913
  */
3913
- const mr = new ae(2e3, 1e4);
3914
- class z extends rn {
3914
+ const gr = new ae(2e3, 1e4);
3915
+ class q extends rn {
3915
3916
  constructor(e, t, i, r, s) {
3916
- super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
3917
+ super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, q.currentPopupAction && q.currentPopupAction.cancel(), q.currentPopupAction = this;
3917
3918
  }
3918
3919
  async executeNotNull() {
3919
3920
  const e = await this.execute();
@@ -3925,7 +3926,7 @@ class z extends rn {
3925
3926
  ), e;
3926
3927
  }
3927
3928
  async onExecution() {
3928
- L(this.filter.length === 1, "Popup operations only handle one event");
3929
+ M(this.filter.length === 1, "Popup operations only handle one event");
3929
3930
  const e = ze();
3930
3931
  this.authWindow = await this.resolver._openPopup(
3931
3932
  this.auth,
@@ -3936,7 +3937,7 @@ class z extends rn {
3936
3937
  ), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
3937
3938
  this.reject(t);
3938
3939
  }), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
3939
- t || this.reject(b(
3940
+ t || this.reject(E(
3940
3941
  this.auth,
3941
3942
  "web-storage-unsupported"
3942
3943
  /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
@@ -3948,14 +3949,14 @@ class z extends rn {
3948
3949
  return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
3949
3950
  }
3950
3951
  cancel() {
3951
- this.reject(b(
3952
+ this.reject(E(
3952
3953
  this.auth,
3953
3954
  "cancelled-popup-request"
3954
3955
  /* AuthErrorCode.EXPIRED_POPUP_REQUEST */
3955
3956
  ));
3956
3957
  }
3957
3958
  cleanUp() {
3958
- this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, z.currentPopupAction = null;
3959
+ this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, q.currentPopupAction = null;
3959
3960
  }
3960
3961
  pollUserCancellation() {
3961
3962
  const e = () => {
@@ -3963,7 +3964,7 @@ class z extends rn {
3963
3964
  if (!((i = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || i === void 0) && i.closed) {
3964
3965
  this.pollId = window.setTimeout(
3965
3966
  () => {
3966
- this.pollId = null, this.reject(b(
3967
+ this.pollId = null, this.reject(E(
3967
3968
  this.auth,
3968
3969
  "popup-closed-by-user"
3969
3970
  /* AuthErrorCode.POPUP_CLOSED_BY_USER */
@@ -3974,12 +3975,12 @@ class z extends rn {
3974
3975
  );
3975
3976
  return;
3976
3977
  }
3977
- this.pollId = window.setTimeout(e, mr.get());
3978
+ this.pollId = window.setTimeout(e, gr.get());
3978
3979
  };
3979
3980
  e();
3980
3981
  }
3981
3982
  }
3982
- z.currentPopupAction = null;
3983
+ q.currentPopupAction = null;
3983
3984
  /**
3984
3985
  * @license
3985
3986
  * Copyright 2020 Google LLC
@@ -3996,8 +3997,8 @@ z.currentPopupAction = null;
3996
3997
  * See the License for the specific language governing permissions and
3997
3998
  * limitations under the License.
3998
3999
  */
3999
- const gr = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4000
- class _r extends rn {
4000
+ const _r = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4001
+ class vr extends rn {
4001
4002
  constructor(e, t, i = !1) {
4002
4003
  super(e, [
4003
4004
  "signInViaRedirect",
@@ -4015,7 +4016,7 @@ class _r extends rn {
4015
4016
  let e = fe.get(this.auth._key());
4016
4017
  if (!e) {
4017
4018
  try {
4018
- const i = await vr(this.resolver, this.auth) ? await super.execute() : null;
4019
+ const i = await Ir(this.resolver, this.auth) ? await super.execute() : null;
4019
4020
  e = () => Promise.resolve(i);
4020
4021
  } catch (t) {
4021
4022
  e = () => Promise.reject(t);
@@ -4043,26 +4044,26 @@ class _r extends rn {
4043
4044
  cleanUp() {
4044
4045
  }
4045
4046
  }
4046
- async function vr(n, e) {
4047
- const t = wr(e), i = yr(n);
4047
+ async function Ir(n, e) {
4048
+ const t = Tr(e), i = wr(n);
4048
4049
  if (!await i._isAvailable())
4049
4050
  return !1;
4050
4051
  const r = await i._get(t) === "true";
4051
4052
  return await i._remove(t), r;
4052
4053
  }
4053
- function Ir(n, e) {
4054
+ function yr(n, e) {
4054
4055
  fe.set(n._key(), e);
4055
4056
  }
4056
- function yr(n) {
4057
- return N(n._redirectPersistence);
4058
- }
4059
4057
  function wr(n) {
4060
- return he(gr, n.config.apiKey, n.name);
4058
+ return O(n._redirectPersistence);
4061
4059
  }
4062
- async function Tr(n, e, t = !1) {
4060
+ function Tr(n) {
4061
+ return he(_r, n.config.apiKey, n.name);
4062
+ }
4063
+ async function kr(n, e, t = !1) {
4063
4064
  if (A(n.app))
4064
4065
  return Promise.reject(H(n));
4065
- const i = be(n), r = dr(i, e), o = await new _r(i, r, t).execute();
4066
+ const i = be(n), r = hr(i, e), o = await new vr(i, r, t).execute();
4066
4067
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4067
4068
  }
4068
4069
  /**
@@ -4081,8 +4082,8 @@ async function Tr(n, e, t = !1) {
4081
4082
  * See the License for the specific language governing permissions and
4082
4083
  * limitations under the License.
4083
4084
  */
4084
- const kr = 10 * 60 * 1e3;
4085
- class br {
4085
+ const br = 10 * 60 * 1e3;
4086
+ class Er {
4086
4087
  constructor(e) {
4087
4088
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4088
4089
  }
@@ -4098,13 +4099,13 @@ class br {
4098
4099
  let t = !1;
4099
4100
  return this.consumers.forEach((i) => {
4100
4101
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4101
- }), this.hasHandledPotentialRedirect || !Er(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4102
+ }), this.hasHandledPotentialRedirect || !Sr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4102
4103
  }
4103
4104
  sendToConsumer(e, t) {
4104
4105
  var i;
4105
4106
  if (e.error && !sn(e)) {
4106
4107
  const r = ((i = e.error.code) === null || i === void 0 ? void 0 : i.split("auth/")[1]) || "internal-error";
4107
- t.onError(b(this.auth, r));
4108
+ t.onError(E(this.auth, r));
4108
4109
  } else
4109
4110
  t.onAuthEvent(e);
4110
4111
  }
@@ -4113,7 +4114,7 @@ class br {
4113
4114
  return t.filter.includes(e.type) && i;
4114
4115
  }
4115
4116
  hasEventBeenHandled(e) {
4116
- return Date.now() - this.lastProcessedEventTime >= kr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4117
+ return Date.now() - this.lastProcessedEventTime >= br && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4117
4118
  }
4118
4119
  saveEventToCache(e) {
4119
4120
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4125,7 +4126,7 @@ function ht(n) {
4125
4126
  function sn({ type: n, error: e }) {
4126
4127
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4127
4128
  }
4128
- function Er(n) {
4129
+ function Sr(n) {
4129
4130
  switch (n.type) {
4130
4131
  case "signInViaRedirect":
4131
4132
  case "linkViaRedirect":
@@ -4153,7 +4154,7 @@ function Er(n) {
4153
4154
  * See the License for the specific language governing permissions and
4154
4155
  * limitations under the License.
4155
4156
  */
4156
- async function Sr(n, e = {}) {
4157
+ async function Rr(n, e = {}) {
4157
4158
  return Q(n, "GET", "/v1/projects", e);
4158
4159
  }
4159
4160
  /**
@@ -4172,24 +4173,24 @@ async function Sr(n, e = {}) {
4172
4173
  * See the License for the specific language governing permissions and
4173
4174
  * limitations under the License.
4174
4175
  */
4175
- const Rr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
4176
- async function Pr(n) {
4176
+ const Pr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
4177
+ async function Cr(n) {
4177
4178
  if (n.config.emulator)
4178
4179
  return;
4179
- const { authorizedDomains: e } = await Sr(n);
4180
+ const { authorizedDomains: e } = await Rr(n);
4180
4181
  for (const t of e)
4181
4182
  try {
4182
- if (Cr(t))
4183
+ if (Nr(t))
4183
4184
  return;
4184
4185
  } catch {
4185
4186
  }
4186
- O(
4187
+ L(
4187
4188
  n,
4188
4189
  "unauthorized-domain"
4189
4190
  /* AuthErrorCode.INVALID_ORIGIN */
4190
4191
  );
4191
4192
  }
4192
- function Cr(n) {
4193
+ function Nr(n) {
4193
4194
  const e = Me(), { protocol: t, hostname: i } = new URL(e);
4194
4195
  if (n.startsWith("chrome-extension://")) {
4195
4196
  const o = new URL(n);
@@ -4197,7 +4198,7 @@ function Cr(n) {
4197
4198
  }
4198
4199
  if (!Ar.test(t))
4199
4200
  return !1;
4200
- if (Rr.test(n))
4201
+ if (Pr.test(n))
4201
4202
  return i === n;
4202
4203
  const r = n.replace(/\./g, "\\.");
4203
4204
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4218,9 +4219,9 @@ function Cr(n) {
4218
4219
  * See the License for the specific language governing permissions and
4219
4220
  * limitations under the License.
4220
4221
  */
4221
- const Nr = new ae(3e4, 6e4);
4222
+ const Or = new ae(3e4, 6e4);
4222
4223
  function ft() {
4223
- const n = E().___jsl;
4224
+ const n = S().___jsl;
4224
4225
  if (n != null && n.H) {
4225
4226
  for (const e of Object.keys(n.H))
4226
4227
  if (n.H[e].r = n.H[e].r || [], n.H[e].L = n.H[e].L || [], n.H[e].r = [...n.H[e].L], n.CP)
@@ -4228,7 +4229,7 @@ function ft() {
4228
4229
  n.CP[t] = null;
4229
4230
  }
4230
4231
  }
4231
- function Or(n) {
4232
+ function Lr(n) {
4232
4233
  return new Promise((e, t) => {
4233
4234
  var i, r, s;
4234
4235
  function o() {
@@ -4237,36 +4238,36 @@ function Or(n) {
4237
4238
  e(gapi.iframes.getContext());
4238
4239
  },
4239
4240
  ontimeout: () => {
4240
- ft(), t(b(
4241
+ ft(), t(E(
4241
4242
  n,
4242
4243
  "network-request-failed"
4243
4244
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4244
4245
  ));
4245
4246
  },
4246
- timeout: Nr.get()
4247
+ timeout: Or.get()
4247
4248
  });
4248
4249
  }
4249
- if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4250
+ if (!((r = (i = S().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4250
4251
  e(gapi.iframes.getContext());
4251
- else if (!((s = E().gapi) === null || s === void 0) && s.load)
4252
+ else if (!((s = S().gapi) === null || s === void 0) && s.load)
4252
4253
  o();
4253
4254
  else {
4254
- const c = Ui("iframefcb");
4255
- return E()[c] = () => {
4256
- gapi.load ? o() : t(b(
4255
+ const c = Di("iframefcb");
4256
+ return S()[c] = () => {
4257
+ gapi.load ? o() : t(E(
4257
4258
  n,
4258
4259
  "network-request-failed"
4259
4260
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4260
4261
  ));
4261
- }, Li(`${Mi()}?onload=${c}`).catch((a) => t(a));
4262
+ }, Mi(`${Ui()}?onload=${c}`).catch((a) => t(a));
4262
4263
  }
4263
4264
  }).catch((e) => {
4264
4265
  throw pe = null, e;
4265
4266
  });
4266
4267
  }
4267
4268
  let pe = null;
4268
- function Lr(n) {
4269
- return pe = pe || Or(n), pe;
4269
+ function Mr(n) {
4270
+ return pe = pe || Lr(n), pe;
4270
4271
  }
4271
4272
  /**
4272
4273
  * @license
@@ -4284,7 +4285,7 @@ function Lr(n) {
4284
4285
  * See the License for the specific language governing permissions and
4285
4286
  * limitations under the License.
4286
4287
  */
4287
- const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe", xr = {
4288
+ const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe", Fr = {
4288
4289
  style: {
4289
4290
  position: "absolute",
4290
4291
  top: "-100px",
@@ -4293,13 +4294,13 @@ const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe"
4293
4294
  },
4294
4295
  "aria-hidden": "true",
4295
4296
  tabindex: "-1"
4296
- }, Fr = /* @__PURE__ */ new Map([
4297
+ }, Vr = /* @__PURE__ */ new Map([
4297
4298
  ["identitytoolkit.googleapis.com", "p"],
4298
4299
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4299
4300
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4300
4301
  // test
4301
4302
  ]);
4302
- function Vr(n) {
4303
+ function $r(n) {
4303
4304
  const e = n.config;
4304
4305
  u(
4305
4306
  e.authDomain,
@@ -4307,17 +4308,17 @@ function Vr(n) {
4307
4308
  "auth-domain-config-required"
4308
4309
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4309
4310
  );
4310
- const t = e.emulator ? je(e, Dr) : `https://${n.config.authDomain}/${Ur}`, i = {
4311
+ const t = e.emulator ? je(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
4311
4312
  apiKey: e.apiKey,
4312
4313
  appName: n.name,
4313
4314
  v: se
4314
- }, r = Fr.get(n.config.apiHost);
4315
+ }, r = Vr.get(n.config.apiHost);
4315
4316
  r && (i.eid = r);
4316
4317
  const s = n._getFrameworks();
4317
4318
  return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
4318
4319
  }
4319
- async function $r(n) {
4320
- const e = await Lr(n), t = E().gapi;
4320
+ async function Hr(n) {
4321
+ const e = await Mr(n), t = S().gapi;
4321
4322
  return u(
4322
4323
  t,
4323
4324
  n,
@@ -4325,24 +4326,24 @@ async function $r(n) {
4325
4326
  /* AuthErrorCode.INTERNAL_ERROR */
4326
4327
  ), e.open({
4327
4328
  where: document.body,
4328
- url: Vr(n),
4329
+ url: $r(n),
4329
4330
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4330
- attributes: xr,
4331
+ attributes: Fr,
4331
4332
  dontclear: !0
4332
4333
  }, (i) => new Promise(async (r, s) => {
4333
4334
  await i.restyle({
4334
4335
  // Prevent iframe from closing on mouse out.
4335
4336
  setHideOnLeave: !1
4336
4337
  });
4337
- const o = b(
4338
+ const o = E(
4338
4339
  n,
4339
4340
  "network-request-failed"
4340
4341
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4341
- ), c = E().setTimeout(() => {
4342
+ ), c = S().setTimeout(() => {
4342
4343
  s(o);
4343
- }, Mr.get());
4344
+ }, Ur.get());
4344
4345
  function a() {
4345
- E().clearTimeout(c), r(i);
4346
+ S().clearTimeout(c), r(i);
4346
4347
  }
4347
4348
  i.ping(a).then(a, () => {
4348
4349
  s(o);
@@ -4365,12 +4366,12 @@ async function $r(n) {
4365
4366
  * See the License for the specific language governing permissions and
4366
4367
  * limitations under the License.
4367
4368
  */
4368
- const Hr = {
4369
+ const jr = {
4369
4370
  location: "yes",
4370
4371
  resizable: "yes",
4371
4372
  statusbar: "yes",
4372
4373
  toolbar: "no"
4373
- }, jr = 500, Wr = 600, Br = "_blank", Gr = "http://localhost";
4374
+ }, Wr = 500, Br = 600, Gr = "_blank", zr = "http://localhost";
4374
4375
  class pt {
4375
4376
  constructor(e) {
4376
4377
  this.window = e, this.associatedEvent = null;
@@ -4383,19 +4384,19 @@ class pt {
4383
4384
  }
4384
4385
  }
4385
4386
  }
4386
- function zr(n, e, t, i = jr, r = Wr) {
4387
+ function qr(n, e, t, i = Wr, r = Br) {
4387
4388
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4388
4389
  let c = "";
4389
- const a = Object.assign(Object.assign({}, Hr), {
4390
+ const a = Object.assign(Object.assign({}, jr), {
4390
4391
  width: i.toString(),
4391
4392
  height: r.toString(),
4392
4393
  top: s,
4393
4394
  left: o
4394
- }), l = w().toLowerCase();
4395
- t && (c = Ft(l) ? Br : t), xt(l) && (e = e || Gr, a.scrollbars = "yes");
4396
- const d = Object.entries(a).reduce((y, [T, h]) => `${y}${T}=${h},`, "");
4397
- if (bi(l) && c !== "_self")
4398
- return qr(e || "", c), new pt(null);
4395
+ }), l = k().toLowerCase();
4396
+ t && (c = Ft(l) ? Gr : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
4397
+ const d = Object.entries(a).reduce((v, [y, f]) => `${v}${y}=${f},`, "");
4398
+ if (Ei(l) && c !== "_self")
4399
+ return Kr(e || "", c), new pt(null);
4399
4400
  const m = window.open(e || "", c, d);
4400
4401
  u(
4401
4402
  m,
@@ -4409,7 +4410,7 @@ function zr(n, e, t, i = jr, r = Wr) {
4409
4410
  }
4410
4411
  return new pt(m);
4411
4412
  }
4412
- function qr(n, e) {
4413
+ function Kr(n, e) {
4413
4414
  const t = document.createElement("a");
4414
4415
  t.href = n, t.target = e;
4415
4416
  const i = document.createEvent("MouseEvent");
@@ -4431,7 +4432,7 @@ function qr(n, e) {
4431
4432
  * See the License for the specific language governing permissions and
4432
4433
  * limitations under the License.
4433
4434
  */
4434
- const Kr = "__/auth/handler", Jr = "emulator/auth/handler", Yr = encodeURIComponent("fac");
4435
+ const Jr = "__/auth/handler", Yr = "emulator/auth/handler", Xr = encodeURIComponent("fac");
4435
4436
  async function mt(n, e, t, i, r, s) {
4436
4437
  u(
4437
4438
  n.config.authDomain,
@@ -4453,7 +4454,7 @@ async function mt(n, e, t, i, r, s) {
4453
4454
  eventId: r
4454
4455
  };
4455
4456
  if (e instanceof qt) {
4456
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Mn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4457
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Un(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4457
4458
  for (const [d, m] of Object.entries({}))
4458
4459
  o[d] = m;
4459
4460
  }
@@ -4465,11 +4466,11 @@ async function mt(n, e, t, i, r, s) {
4465
4466
  const c = o;
4466
4467
  for (const d of Object.keys(c))
4467
4468
  c[d] === void 0 && delete c[d];
4468
- const a = await n._getAppCheckToken(), l = a ? `#${Yr}=${encodeURIComponent(a)}` : "";
4469
- return `${Xr(n)}?${oe(c).slice(1)}${l}`;
4469
+ const a = await n._getAppCheckToken(), l = a ? `#${Xr}=${encodeURIComponent(a)}` : "";
4470
+ return `${Qr(n)}?${oe(c).slice(1)}${l}`;
4470
4471
  }
4471
- function Xr({ config: n }) {
4472
- return n.emulator ? je(n, Jr) : `https://${n.authDomain}/${Kr}`;
4472
+ function Qr({ config: n }) {
4473
+ return n.emulator ? je(n, Yr) : `https://${n.authDomain}/${Jr}`;
4473
4474
  }
4474
4475
  /**
4475
4476
  * @license
@@ -4488,29 +4489,29 @@ function Xr({ config: n }) {
4488
4489
  * limitations under the License.
4489
4490
  */
4490
4491
  const Ne = "webStorageSupport";
4491
- class Qr {
4492
+ class Zr {
4492
4493
  constructor() {
4493
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = Tr, this._overrideRedirectResult = Ir;
4494
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = kr, this._overrideRedirectResult = yr;
4494
4495
  }
4495
4496
  // Wrapping in async even though we don't await anywhere in order
4496
4497
  // to make sure errors are raised as promise rejections
4497
4498
  async _openPopup(e, t, i, r) {
4498
4499
  var s;
4499
- L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4500
+ M((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4500
4501
  const o = await mt(e, t, i, Me(), r);
4501
- return zr(e, o, ze());
4502
+ return qr(e, o, ze());
4502
4503
  }
4503
4504
  async _openRedirect(e, t, i, r) {
4504
4505
  await this._originValidation(e);
4505
4506
  const s = await mt(e, t, i, Me(), r);
4506
- return tr(s), new Promise(() => {
4507
+ return nr(s), new Promise(() => {
4507
4508
  });
4508
4509
  }
4509
4510
  _initialize(e) {
4510
4511
  const t = e._key();
4511
4512
  if (this.eventManagers[t]) {
4512
4513
  const { manager: r, promise: s } = this.eventManagers[t];
4513
- return r ? Promise.resolve(r) : (L(s, "If manager is not set, promise should be"), s);
4514
+ return r ? Promise.resolve(r) : (M(s, "If manager is not set, promise should be"), s);
4514
4515
  }
4515
4516
  const i = this.initAndGetManager(e);
4516
4517
  return this.eventManagers[t] = { promise: i }, i.catch(() => {
@@ -4518,7 +4519,7 @@ class Qr {
4518
4519
  }), i;
4519
4520
  }
4520
4521
  async initAndGetManager(e) {
4521
- const t = await $r(e), i = new br(e);
4522
+ const t = await Hr(e), i = new Er(e);
4522
4523
  return t.register("authEvent", (r) => (u(
4523
4524
  r == null ? void 0 : r.authEvent,
4524
4525
  e,
@@ -4533,7 +4534,7 @@ class Qr {
4533
4534
  this.iframes[e._key()].send(Ne, { type: Ne }, (r) => {
4534
4535
  var s;
4535
4536
  const o = (s = r == null ? void 0 : r[0]) === null || s === void 0 ? void 0 : s[Ne];
4536
- o !== void 0 && t(!!o), O(
4537
+ o !== void 0 && t(!!o), L(
4537
4538
  e,
4538
4539
  "internal-error"
4539
4540
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -4542,13 +4543,13 @@ class Qr {
4542
4543
  }
4543
4544
  _originValidation(e) {
4544
4545
  const t = e._key();
4545
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Pr(e)), this.originValidationPromises[t];
4546
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
4546
4547
  }
4547
4548
  get _shouldInitProactively() {
4548
4549
  return Wt() || Be() || ke();
4549
4550
  }
4550
4551
  }
4551
- const Zr = Qr;
4552
+ const es = Zr;
4552
4553
  var gt = "@firebase/auth", _t = "1.7.5";
4553
4554
  /**
4554
4555
  * @license
@@ -4566,7 +4567,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4566
4567
  * See the License for the specific language governing permissions and
4567
4568
  * limitations under the License.
4568
4569
  */
4569
- class es {
4570
+ class ts {
4570
4571
  constructor(e) {
4571
4572
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4572
4573
  }
@@ -4617,7 +4618,7 @@ class es {
4617
4618
  * See the License for the specific language governing permissions and
4618
4619
  * limitations under the License.
4619
4620
  */
4620
- function ts(n) {
4621
+ function ns(n) {
4621
4622
  switch (n) {
4622
4623
  case "Node":
4623
4624
  return "node";
@@ -4633,7 +4634,7 @@ function ts(n) {
4633
4634
  return;
4634
4635
  }
4635
4636
  }
4636
- function ns(n) {
4637
+ function is(n) {
4637
4638
  Ze(new et(
4638
4639
  "auth",
4639
4640
  (e, { options: t }) => {
@@ -4647,8 +4648,8 @@ function ns(n) {
4647
4648
  tokenApiHost: "securetoken.googleapis.com",
4648
4649
  apiScheme: "https",
4649
4650
  sdkClientVersion: Bt(n)
4650
- }, l = new Ni(i, r, s, a);
4651
- return xi(l, t), l;
4651
+ }, l = new Oi(i, r, s, a);
4652
+ return Fi(l, t), l;
4652
4653
  },
4653
4654
  "PUBLIC"
4654
4655
  /* ComponentType.PUBLIC */
@@ -4667,14 +4668,14 @@ function ns(n) {
4667
4668
  "auth"
4668
4669
  /* _ComponentName.AUTH */
4669
4670
  ).getImmediate());
4670
- return ((i) => new es(i))(t);
4671
+ return ((i) => new ts(i))(t);
4671
4672
  },
4672
4673
  "PRIVATE"
4673
4674
  /* ComponentType.PRIVATE */
4674
4675
  ).setInstantiationMode(
4675
4676
  "EXPLICIT"
4676
4677
  /* InstantiationMode.EXPLICIT */
4677
- )), Le(gt, _t, ts(n)), Le(gt, _t, "esm2017");
4678
+ )), Le(gt, _t, ns(n)), Le(gt, _t, "esm2017");
4678
4679
  }
4679
4680
  /**
4680
4681
  * @license
@@ -4692,11 +4693,11 @@ function ns(n) {
4692
4693
  * See the License for the specific language governing permissions and
4693
4694
  * limitations under the License.
4694
4695
  */
4695
- const is = 5 * 60, rs = kt("authIdTokenMaxAge") || is;
4696
+ const rs = 5 * 60, ss = kt("authIdTokenMaxAge") || rs;
4696
4697
  let vt = null;
4697
- const ss = (n) => async (e) => {
4698
+ const os = (n) => async (e) => {
4698
4699
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4699
- if (i && i > rs)
4700
+ if (i && i > ss)
4700
4701
  return;
4701
4702
  const r = t == null ? void 0 : t.token;
4702
4703
  vt !== r && (vt = r, await fetch(n, {
@@ -4706,115 +4707,117 @@ const ss = (n) => async (e) => {
4706
4707
  } : {}
4707
4708
  }));
4708
4709
  };
4709
- function os(n = Cn()) {
4710
+ function as(n = Nn()) {
4710
4711
  const e = bt(n, "auth");
4711
4712
  if (e.isInitialized())
4712
4713
  return e.getImmediate();
4713
- const t = Di(n, {
4714
- popupRedirectResolver: Zr,
4714
+ const t = xi(n, {
4715
+ popupRedirectResolver: es,
4715
4716
  persistence: [
4716
- ur,
4717
- Qi,
4717
+ dr,
4718
+ Zi,
4718
4719
  Qt
4719
4720
  ]
4720
4721
  }), i = kt("authTokenSyncURL");
4721
4722
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4722
4723
  const s = new URL(i, location.origin);
4723
4724
  if (location.origin === s.origin) {
4724
- const o = ss(s.toString());
4725
- Ki(t, o, () => o(t.currentUser)), qi(t, (c) => o(c));
4725
+ const o = os(s.toString());
4726
+ Ji(t, o, () => o(t.currentUser)), Ki(t, (c) => o(c));
4726
4727
  }
4727
4728
  }
4728
- const r = Pn("auth");
4729
- return r && Fi(t, `http://${r}`), t;
4729
+ const r = Cn("auth");
4730
+ return r && Vi(t, `http://${r}`), t;
4730
4731
  }
4731
- function as() {
4732
+ function cs() {
4732
4733
  var n, e;
4733
4734
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4734
4735
  }
4735
- Oi({
4736
+ Li({
4736
4737
  loadJS(n) {
4737
4738
  return new Promise((e, t) => {
4738
4739
  const i = document.createElement("script");
4739
4740
  i.setAttribute("src", n), i.onload = e, i.onerror = (r) => {
4740
- const s = b(
4741
+ const s = E(
4741
4742
  "internal-error"
4742
4743
  /* AuthErrorCode.INTERNAL_ERROR */
4743
4744
  );
4744
4745
  s.customData = r, t(s);
4745
- }, i.type = "text/javascript", i.charset = "UTF-8", as().appendChild(i);
4746
+ }, i.type = "text/javascript", i.charset = "UTF-8", cs().appendChild(i);
4746
4747
  });
4747
4748
  },
4748
4749
  gapiScript: "https://apis.google.com/js/api.js",
4749
4750
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4750
4751
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4751
4752
  });
4752
- ns(
4753
+ is(
4753
4754
  "Browser"
4754
4755
  /* ClientPlatform.BROWSER */
4755
4756
  );
4756
- var cs = { 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", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" }, ls = { 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/" };
4757
- const us = {
4757
+ var ls = { 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", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" }, us = { 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/" };
4758
+ const ds = {
4758
4759
  key: 2,
4759
4760
  class: "h-full w-full"
4760
- }, ds = ["src"], Ps = /* @__PURE__ */ xe({
4761
+ }, hs = ["src"], Cs = /* @__PURE__ */ xe({
4761
4762
  __name: "App",
4762
4763
  setup(n) {
4763
- const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = ge();
4764
+ const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = B(
4765
+ () => o.name === p["$connect-UPSELLING"]
4766
+ ), a = te(o.query.showHeader !== "false"), l = te(!1), { currentBusiness: d } = ge();
4764
4767
  ie(
4765
4768
  () => {
4766
- var f;
4767
- return (f = l.value) == null ? void 0 : f._id;
4769
+ var h;
4770
+ return (h = d.value) == null ? void 0 : h._id;
4768
4771
  },
4769
- (f) => {
4770
- f && _n(f);
4772
+ (h) => {
4773
+ h && _n(h);
4771
4774
  },
4772
4775
  { immediate: !0 }
4773
4776
  );
4774
- const d = te(!1), m = Y(() => i.version), y = Y(() => {
4775
- const f = e.currentCountry.value || "MY", g = tt.getIdToken(), v = l.value._id;
4776
- return `${ls.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${f}&token=${g}`;
4777
+ const m = te(!1), v = B(() => i.version), y = B(() => {
4778
+ const h = e.currentCountry.value || "MY", _ = tt.getIdToken(), b = d.value._id;
4779
+ return `${us.marketingV1Portal}/b/${b}/marketing/overview?showHeader=false&country=${h}&token=${_}`;
4777
4780
  });
4778
- async function T() {
4779
- if (Un().length) {
4781
+ async function f() {
4782
+ if (Dn().length) {
4780
4783
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4781
4784
  return;
4782
4785
  }
4783
- const f = Dn(cs.firebase), g = await fn.getCustomToken(), v = os();
4784
- await zi(v, g), xn(f), console.log("initFirebase", f);
4786
+ const h = xn(ls.firebase), _ = await fn.getCustomToken(), b = as();
4787
+ await qi(b, _), Fn(h), console.log("initFirebase", h);
4785
4788
  }
4786
- const h = async () => {
4787
- d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Hn) : e.hideSidebarToggle(!0), await T(), a.value = !0, d.value = !0;
4789
+ const w = async () => {
4790
+ m.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(d.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(jn) : e.hideSidebarToggle(!0), await f(), l.value = !0, m.value = !0;
4788
4791
  };
4789
4792
  return un(() => {
4790
- if (Fn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4791
- const f = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], v = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4792
- f == null || f.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), v == null || v.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4793
+ if (Vn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !a.value) {
4794
+ const h = document.getElementsByClassName("app-header")[0], _ = document.getElementsByClassName("app-sidebar")[0], b = document.getElementsByClassName("app-container")[0], T = document.getElementsByTagName("main")[0];
4795
+ h == null || h.classList.add("!hidden"), _ == null || _.classList.add("!pt-0"), b == null || b.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4793
4796
  }
4794
- l.value != null && (console.log("App mounted, forceRerender"), h());
4797
+ d.value != null && (console.log("App mounted, forceRerender"), w());
4795
4798
  }), ie(
4796
4799
  () => e.currentBusiness.value,
4797
- async (f, g) => {
4798
- console.log("Current business changed"), f != null && f._id != g._id && (console.log("forceRerender when business changes", f, g), h());
4800
+ async (h, _) => {
4801
+ console.log("Current business changed"), h != null && h._id != _._id && (console.log("forceRerender when business changes", h, _), w());
4799
4802
  }
4800
- ), (f, g) => (W(), me(It, null, [
4801
- _(d) && _(m) === "v2" ? (W(), Oe(_(hn), { key: 0 })) : Pe("", !0),
4802
- _(d) && _(m) === "v2" && _(c) ? (W(), Oe(si, { key: 1 })) : Pe("", !0),
4803
- _(d) && _(m) !== "v2" ? (W(), me("div", us, [
4804
- S(kn, {
4805
- json: { url: _(y) }
4803
+ ), (h, _) => (W(), me(It, null, [
4804
+ g(m) && (g(v) === "v2" || g(c)) ? (W(), Oe(g(hn), { key: 0 })) : Ae("", !0),
4805
+ g(m) && g(v) === "v2" && g(a) ? (W(), Oe(oi, { key: 1 })) : Ae("", !0),
4806
+ g(m) && g(v) !== "v2" && !g(c) ? (W(), me("div", ds, [
4807
+ R(bn, {
4808
+ json: { url: g(y) }
4806
4809
  }, null, 8, ["json"]),
4807
4810
  I("iframe", {
4808
4811
  allow: "clipboard-read; clipboard-write",
4809
4812
  frameBorder: "0",
4810
4813
  height: "100%",
4811
4814
  width: "100%",
4812
- src: _(y)
4813
- }, null, 8, ds)
4814
- ])) : Pe("", !0)
4815
+ src: g(y)
4816
+ }, null, 8, hs)
4817
+ ])) : Ae("", !0)
4815
4818
  ], 64));
4816
4819
  }
4817
4820
  });
4818
4821
  export {
4819
- Ps as default
4822
+ Cs as default
4820
4823
  };