@feedmepos/mf-connect 0.1.117-prod → 0.1.118-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 (139) hide show
  1. package/README.md +64 -1
  2. package/dist/{App-CAo1izHr.js → App-BHcTqLff.js} +422 -413
  3. package/dist/{Bin-DDDfjisJ.js → Bin-DWhXJmHo.js} +8 -8
  4. package/dist/{Broadcast-BsCulZhE.js → Broadcast-Ct1DL8Pd.js} +11 -11
  5. package/dist/{CampaignAnalytic-CnVYFSkT.js → CampaignAnalytic-BSEKCM-4.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZTHyZ_0y.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxRg2Wu8.js} +10 -9
  7. package/dist/{Card-DPyQH9qZ.js → Card-B7DwrAPH.js} +25 -24
  8. package/dist/{Collections-CZCVA969.js → Collections-BJw4JJq_.js} +9 -9
  9. package/dist/{Credit-BTg364-i.js → Credit-BteIGXkp.js} +11 -11
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BJx8K6Ja.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CSFwIzOS.js} +1 -1
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ijya9Cho.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js} +194 -192
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CfEnSXzg.js → EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js} +8 -8
  13. package/dist/{Experience-Bk_eUcSX.js → Experience-C_VQVfJX.js} +12 -12
  14. package/dist/{FileSaver.min-CXFiZAp7.js → FileSaver.min-CMiQUZQE.js} +1 -1
  15. package/dist/{Game-CBnKpFdl.js → Game-BiHMrMBF.js} +12 -12
  16. package/dist/{GiftCardSetup-q75wNV_F.js → GiftCardSetup-DtJIm6oI.js} +57 -57
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Cga0Th2O.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js} +7 -7
  18. package/dist/{Goals-Bbbgurfd.js → Goals-B7VjLMDT.js} +4 -4
  19. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js → ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js} +1 -1
  20. package/dist/{Index-C8_OWllb.js → Index-D_DIHKZG.js} +10 -10
  21. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BlCg-jI7.js → LocationPicker.vue_vue_type_script_setup_true_lang-DSwB0Ubn.js} +1 -1
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CACxChIo.js → LottieAnimation.vue_vue_type_script_setup_true_lang-dk8_eVwd.js} +1 -1
  23. package/dist/{LoyaltyDashboard-DJlE0371.js → LoyaltyDashboard-DOgHeJdK.js} +15 -15
  24. package/dist/MainLayout-CfYgoXLS.js +4 -0
  25. package/dist/{MainLayout-Bs2UPvFx.js → MainLayout.vue_vue_type_script_setup_true_lang-Bz2LGHUd.js} +5 -4
  26. package/dist/Marketing-B6TCrwaR.js +269 -0
  27. package/dist/MarketingMaterialEdit-Bu3a9NGj.js +1034 -0
  28. package/dist/{Member-C4yqwsMH.js → Member-X51KrYXV.js} +7 -7
  29. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbumjyC_.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CYU21JaO.js} +27 -26
  30. package/dist/{MemberImportHistory-CbuXCdxC.js → MemberImportHistory-CHd9fx7E.js} +7 -7
  31. package/dist/{MemberList-CpAepPBe.js → MemberList-D4L3bSlw.js} +14 -14
  32. package/dist/{MemberTransactions-BbpXvsSk.js → MemberTransactions-CEgjfhnX.js} +1 -1
  33. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BaWgxbad.js → MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js} +12 -12
  34. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CEgMElLo.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-YZQkKG66.js} +1 -1
  35. package/dist/{Mission-Bdb9KVeP.js → Mission-BEVtvY0-.js} +13 -13
  36. package/dist/{Overview-D_9JwnFU.js → Overview-4QRkldza.js} +4 -4
  37. package/dist/{Overview-CEiyGMcf.js → Overview-DVoXXZ16.js} +23 -22
  38. package/dist/{Point-Bd5cMXQx.js → Point-BJmebaL9.js} +13 -13
  39. package/dist/{Promotion-D9gZDvgR.js → Promotion-DWZZBofu.js} +13 -13
  40. package/dist/{Queue-BnAOL_rp.js → Queue-DLdsyhCT.js} +15 -14
  41. package/dist/{Record-D6TWFKe0.js → Record-QOD3XELf.js} +9 -9
  42. package/dist/{Review-DLEgvnc-.js → Review-CKmhyuqj.js} +2 -2
  43. package/dist/{ReviewFacebookCallback-jVlm2O8f.js → ReviewFacebookCallback-C6DlaJ_j.js} +5 -5
  44. package/dist/{ReviewGoogleCallback-BgAbO3pI.js → ReviewGoogleCallback-CDriVQPZ.js} +5 -5
  45. package/dist/{Reward-DBheQiFu.js → Reward-DftoZfPN.js} +29 -29
  46. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bt-EqsiH.js → RewardGroup.vue_vue_type_script_setup_true_lang-ZgYX2QwC.js} +16 -15
  47. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CKL8MEld.js → RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js} +18 -17
  48. package/dist/{Segment-B9Se5FFw.js → Segment-URdB0lnl.js} +36 -34
  49. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-f7AS5vwv.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js} +31 -30
  50. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-3BKA0UFI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js} +4 -4
  51. package/dist/Setting-BDIHH2Wk.js +563 -0
  52. package/dist/{SettingAdvertisements-CLw-dqiA.js → SettingAdvertisements-CkJYZnIN.js} +12 -12
  53. package/dist/{Settings-BmmM8ZnR.js → Settings-9gaegvYJ.js} +5 -5
  54. package/dist/{Store-B5PPP5zM.js → Store-CV0kYncl.js} +29 -28
  55. package/dist/{StoreRewards-DllyaVBY.js → StoreRewards-30kSkAZ_.js} +15 -15
  56. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-3Vvqf6_H.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js} +29 -28
  57. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-7ZZ0e5tQ.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js} +2 -2
  58. package/dist/{Tier-M_TApfju.js → Tier-DiQSC3iv.js} +28 -27
  59. package/dist/{Title-Cpltm-I2.js → Title-DixxpjAg.js} +26 -25
  60. package/dist/{Transaction-BYfAYRpv.js → Transaction-DQK4LUGD.js} +2 -2
  61. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BOhfGxVj.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CL-GKkuD.js} +6 -6
  62. package/dist/{Voucher-DHoyg0YZ.js → Voucher-CSVlk_Hr.js} +18 -18
  63. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DWHwM6AJ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CiSoy0Ky.js} +16 -16
  64. package/dist/WhatsappAccount-CQYbv2Ew.js +161 -0
  65. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js +39 -0
  66. package/dist/WhatsappBot-DdO9Bfvh.js +878 -0
  67. package/dist/WhatsappBotLogs-CjjWJGND.js +372 -0
  68. package/dist/WhatsappBotSettings-DYGx-kRr.js +704 -0
  69. package/dist/WhatsappLayout-B6k_79Kl.js +21 -0
  70. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js +261 -0
  71. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B6tTjLAZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js} +2 -2
  72. package/dist/{app-B_doYklh.js → app-CqQeNnGq.js} +7277 -6233
  73. package/dist/app.js +1 -1
  74. package/dist/{base.export-DmbnT_bp.js → base.export-Dls5LQeu.js} +2 -2
  75. package/dist/browser-BSAOEeIM.js +1478 -0
  76. package/dist/{business-DdVGtTvx.js → business-gvLSQklz.js} +1 -1
  77. package/dist/{campaign-jEhKmpKg.js → campaign-BqazvOUj.js} +9 -9
  78. package/dist/{campaign-CVkA08zl.js → campaign-Cd6GmA4U.js} +2 -2
  79. package/dist/{campaign.enum-DWu6-kOo.js → campaign.enum-BqekIiiN.js} +1 -1
  80. package/dist/{campaign.fn-BlgEyeFz.js → campaign.fn-C0oMb1fs.js} +52 -52
  81. package/dist/{collectible.enum-CVLkXKml.js → collectible.enum-Liy2wH3s.js} +1 -1
  82. package/dist/{collection.fn-DLNGTrPf.js → collection.fn-CERMsFPh.js} +2 -2
  83. package/dist/{currency-DKS1md4e.js → currency-IkiKiNg1.js} +1 -1
  84. package/dist/{effect-Bk-zYexf.js → effect-j_T62HBN.js} +1 -1
  85. package/dist/{email-addresses-I9A5iLzf.js → email-addresses-CN1kPlEj.js} +2 -2
  86. package/dist/{feature-flag-DQti61iR.js → feature-flag-DDfyOLsv.js} +159 -143
  87. package/dist/{helper-9cPlo6ae.js → helper-DVUe13eh.js} +1 -1
  88. package/dist/{index-ClYX4COd.js → index-9RBtEPPj.js} +4 -3
  89. package/dist/{index-cgtAlOl9.js → index-BmIfGArh.js} +8028 -10767
  90. package/dist/{index-BxpbI0GH.js → index-BvkqHehI.js} +2 -2
  91. package/dist/{index-oNMFyOGe.js → index-BvoOJdfc.js} +8 -7
  92. package/dist/{index-Cj6oxbl0.js → index-C-IajuP1.js} +11 -10
  93. package/dist/{index-1Cdj34z1.js → index-COuLtOaw.js} +1 -1
  94. package/dist/{index-Dj51vqab.js → index-CPyK4a5J.js} +1 -1
  95. package/dist/{index-CNUXbXvG.js → index-CWGbeg5X.js} +1 -1
  96. package/dist/index-C_H8jFYf.js +2743 -0
  97. package/dist/{index-DuvnRxeo.js → index-C_SaKemI.js} +1 -1
  98. package/dist/{index-DOE2VR99.js → index-Cjy0SXCn.js} +4 -4
  99. package/dist/{index-CIwdXphn.js → index-DALsfLV7.js} +18 -17
  100. package/dist/{index-728mP6kW.js → index-DMiaWY0s.js} +49 -48
  101. package/dist/{index-fHiFL1dW.js → index-D_1pnadB.js} +1 -1
  102. package/dist/{index-C-OnJpT8.js → index-DzbVgUEP.js} +1 -1
  103. package/dist/index-I9lmcd2w.js +109 -0
  104. package/dist/index-UJHdDEG1.js +74 -0
  105. package/dist/{index-vKvGJ4Ve.js → index-ep_Kxxid.js} +2 -2
  106. package/dist/{index-DWkuIfHy.js → index-fNYUguDQ.js} +18 -17
  107. package/dist/{index-CuyzSc1l.js → index-jS16KX9p.js} +1 -1
  108. package/dist/{index-3V8E9GaZ.js → index-k7FFxt_M.js} +2 -2
  109. package/dist/{index-BRm0LMTo.js → index-lzQ6ehOk.js} +21 -19
  110. package/dist/{index.esm2017-CsF37oA-.js → index.esm2017-vJKhLfdu.js} +1 -1
  111. package/dist/{loading-BJJmTFoe.js → loading-jZV2Dm--.js} +1 -1
  112. package/dist/{lodash-BMJ6_hsa.js → lodash-C2pLek0l.js} +1 -1
  113. package/dist/{member-import-DrGxVJt9.js → member-import-BKI7soRD.js} +6 -5
  114. package/dist/{membership-CAqKihwy.js → membership-smdlFpPr.js} +3 -3
  115. package/dist/{money-Bf9d2ZUH.js → money-5XyTnYwW.js} +1 -1
  116. package/dist/{number-CWXlGZa5.js → number-DHU9qJJQ.js} +1 -1
  117. package/dist/objectid-jT5g6pGt.js +145 -0
  118. package/dist/{onboarding-Dn9O7r3a.js → onboarding-C_5pyGx-.js} +3 -3
  119. package/dist/{onboardingSetup-BMkDoGy-.js → onboardingSetup-Bd1V-Ipy.js} +2 -2
  120. package/dist/{plugins-KDgceFWV.js → plugins-D1Ru-da5.js} +3 -3
  121. package/dist/{MarketingMaterialEdit-o88sdvTM.js → remy-icon-BhUGu2NI.js} +2 -1031
  122. package/dist/{reward-eilGRaXi.js → reward-BqPl68Xk.js} +1 -1
  123. package/dist/{rule-Dr9Zjg_o.js → rule-WBrRXwL-.js} +3 -3
  124. package/dist/{rule-builder-cz6Dy-no.js → rule-builder-DAlSbaWh.js} +1 -1
  125. package/dist/{template-DwbazO8p.js → template-DDquG4Xc.js} +7 -7
  126. package/dist/{timezone-C5CIfvHs.js → timezone-O4qrCDcK.js} +1 -1
  127. package/dist/{transaction.fn-Cr-FLjh0.js → transaction.fn-CY_F8Nb8.js} +2 -2
  128. package/dist/{trigger-B0Fv6wbN.js → trigger-D-vySeIB.js} +5 -5
  129. package/dist/useMarketingMaterialActions-kA6SLHy_.js +125 -0
  130. package/dist/{usePagination-BcA-imTr.js → usePagination-AYE_RJH2.js} +1 -1
  131. package/dist/{user-DRvLwlBE.js → user-DJcMkYXP.js} +1 -1
  132. package/dist/{vue-i18n-y7bHQpNx.js → vue-i18n-kXHiDb_1.js} +458 -458
  133. package/dist/{xlsx-CBObn76o.js → xlsx--s3hBdDk.js} +1 -1
  134. package/dist/{zod-DWU5EdQV.js → zod-IpHRbxaJ.js} +1 -1
  135. package/package.json +1 -1
  136. package/dist/Marketing-BvRYzFV8.js +0 -236
  137. package/dist/Setting-B92JT_Y4.js +0 -2037
  138. package/dist/objectid-2DN5a9sY.js +0 -145
  139. package/dist/useMarketingMaterialActions-CNk3LR9M.js +0 -96
@@ -1,24 +1,24 @@
1
- import { defineComponent as xe, ref as ee, h as H, Comment as cn, computed as ne, watch as ie, resolveComponent as Z, openBlock as j, createElementBlock as me, createVNode as S, unref as g, createElementVNode as v, toDisplayString as R, createBlock as Oe, withCtx as Q, 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 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";
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-DdVGtTvx.js";
6
- import { l as gn } from "./feature-flag-DQti61iR.js";
7
- import "./index-CuyzSc1l.js";
8
- import { components as G, useSnackbar as _n, useDialog as vn } from "@feedmepos/ui-library";
9
- import { u as Tt } from "./vue-i18n-y7bHQpNx.js";
10
- import { m as In } from "./index-C-OnJpT8.js";
11
- import { C as Xe } from "./timezone-C5CIfvHs.js";
12
- import { u as yn } from "./onboarding-Dn9O7r3a.js";
13
- import { R as p, A as wn, a as Qe } from "./app-B_doYklh.js";
14
- import { J as Tn } from "./JsonViewer-v8_C7l5N.js";
15
- import { r as Le, L as kn, g as kt, i as bn, a as En, _ as Ze, C as et, b as Sn, S as se, c as A, d as Y, E as Fe, e as Rn, f as bt, h as An, j as Pn, k as Et, l as w, m as Cn, F as Ve, n as Nn, q as oe, o as On, p as Ln, s as Mn, t as Un, u as Dn } from "./index.esm2017-CsF37oA-.js";
5
+ import { u as mn } from "./business-gvLSQklz.js";
6
+ import { F as gn, u as _n, l as vn } from "./feature-flag-DDfyOLsv.js";
7
+ import "./index-jS16KX9p.js";
8
+ import { components as j, useSnackbar as In, useDialog as yn } from "@feedmepos/ui-library";
9
+ import { u as Tt } from "./vue-i18n-kXHiDb_1.js";
10
+ import { m as wn } from "./index-DzbVgUEP.js";
11
+ import { C as Xe } from "./timezone-O4qrCDcK.js";
12
+ import { u as Tn } from "./onboarding-C_5pyGx-.js";
13
+ import { R as p, A as kn, a as Qe } from "./app-CqQeNnGq.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 An, S as se, c as A, d as X, E as Fe, e as Pn, f as bt, h as Cn, j as Nn, k as Et, l as w, 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-vJKhLfdu.js";
16
16
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
17
- import { S as tt, c as xn } from "./index-BxpbI0GH.js";
18
- const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, $n = /* @__PURE__ */ xe({
17
+ import { S as tt, c as Vn } from "./index-BvkqHehI.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
- const { t: e, locale: t } = Tt(), i = yn(), r = ee(), s = [
21
+ const { t: e, locale: t } = Tt(), i = Tn(), r = _n(), s = te(), o = [
22
22
  {
23
23
  label: e("connect.navigation.analytic"),
24
24
  value: p["$connect-ANALYTIC"]
@@ -60,7 +60,7 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
60
60
  {
61
61
  label: e("connect.navigation.point"),
62
62
  value: p["$connect-PROGRAM_POINT"],
63
- badge: () => H(G.FmPill, { variant: "premium" })
63
+ badge: () => U(j.FmPill, { variant: "premium" })
64
64
  },
65
65
  {
66
66
  label: e("connect.navigation.credit"),
@@ -69,7 +69,7 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
69
69
  {
70
70
  label: e("connect.navigation.game"),
71
71
  value: p["$connect-PROGRAM_GAME"],
72
- badge: () => H(G.FmPill, { variant: "premium" })
72
+ badge: () => U(j.FmPill, { variant: "premium" })
73
73
  },
74
74
  {
75
75
  label: "Mission",
@@ -88,19 +88,24 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
88
88
  {
89
89
  label: e("connect.navigation.segments"),
90
90
  value: p["$connect-LOYALTY_SEGMENT"],
91
- badge: () => H(G.FmPill, { variant: "premium" })
91
+ badge: () => U(j.FmPill, { variant: "premium" })
92
92
  },
93
93
  {
94
94
  label: e("connect.navigation.card"),
95
95
  value: p["$connect-LOYALTY_CARD"],
96
- badge: () => H(G.FmPill, { variant: "premium" })
96
+ badge: () => U(j.FmPill, { variant: "premium" })
97
97
  }
98
98
  ]
99
99
  },
100
+ {
101
+ label: e("connect.navigation.whatsappBot"),
102
+ value: p["$connect-WHATSAPP"],
103
+ badge: () => U(j.FmPill, { variant: "beta" })
104
+ },
100
105
  {
101
106
  label: e("connect.navigation.referral"),
102
107
  value: p["$connect-REFERRAL"],
103
- badge: () => H(G.FmPill, { variant: "premium" })
108
+ badge: () => U(j.FmPill, { variant: "premium" })
104
109
  },
105
110
  {
106
111
  label: e("connect.navigation.store"),
@@ -121,11 +126,11 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
121
126
  {
122
127
  label: e("connect.navigation.goals"),
123
128
  value: p["$connect-GOALS"],
124
- badge: () => i.goalsRemaining > 0 ? H(G.FmBadge, {
129
+ badge: () => i.goalsRemaining > 0 ? U(j.FmBadge, {
125
130
  variant: "numeric",
126
131
  inline: !0,
127
132
  value: i.goalsRemaining
128
- }) : H(cn)
133
+ }) : U(cn)
129
134
  },
130
135
  {
131
136
  label: e("connect.navigation.setting"),
@@ -135,182 +140,186 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
135
140
  label: e("connect.navigation.bin"),
136
141
  value: p["$connect-BIN"]
137
142
  }
138
- ], o = yt(), c = wt(), a = s.reduce((f, y) => [...(y.children ?? []).map((_) => _.value), ...f, y.value], []), l = ge(), d = ne(() => {
139
- const f = l.currentCountry.value || "MY";
140
- return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
143
+ ], c = Y(
144
+ () => o.filter(
145
+ (h) => h.value !== p["$connect-WHATSAPP"] || r(gn.whatsappBot) === "on"
146
+ )
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];
141
150
  });
142
151
  ie(
143
152
  // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
144
153
  // whose identity never changes, so watching it directly fired once via
145
154
  // `immediate` and the highlight then stayed on whatever page loaded first.
146
- () => c.matched,
147
- (f) => {
148
- const _ = f.map((h) => h.name).reverse().find((h) => a.includes(h));
149
- _ && (r.value = _);
155
+ () => l.matched,
156
+ (h) => {
157
+ const g = h.map((v) => v.name).reverse().find((v) => d.includes(v));
158
+ g && (s.value = g);
150
159
  },
151
160
  { immediate: !0 }
152
161
  ), ie(
153
162
  [() => {
154
- var f;
155
- return (f = l.currentBusiness.value) == null ? void 0 : f._id;
156
- }, () => c.name, t],
157
- ([f]) => {
158
- f && i.read(t.value, f);
163
+ var h;
164
+ return (h = m.currentBusiness.value) == null ? void 0 : h._id;
165
+ }, () => l.name, t],
166
+ ([h]) => {
167
+ h && i.read(t.value, h);
159
168
  },
160
169
  { immediate: !0 }
161
170
  );
162
- async function m(f) {
163
- await o.push({ name: f });
171
+ async function T(h) {
172
+ await a.push({ name: h });
164
173
  }
165
- return (f, y) => {
166
- var h;
167
- const _ = Z("FmCollapsibleTabs");
168
- return j(), me("div", Fn, [
169
- S(_, {
174
+ return (h, f) => {
175
+ var v;
176
+ const g = ee("FmCollapsibleTabs");
177
+ return W(), me("div", $n, [
178
+ S(g, {
170
179
  class: "border-fm-color-neutral-gray-100 border-r px-4",
171
- "model-value": (h = g(r)) == null ? void 0 : h.toString(),
172
- items: s,
173
- "onUpdate:modelValue": m
174
- }, null, 8, ["model-value"]),
175
- v("div", Vn, [
176
- v("div", null, "Timezone: " + R(g(d).split("/")[1].replace("_", " ")), 1),
177
- v("div", null, "(UTC" + R(g(In).tz(g(d)).format("Z")) + ")", 1)
180
+ "model-value": (v = _(s)) == null ? void 0 : v.toString(),
181
+ items: _(c),
182
+ "onUpdate:modelValue": T
183
+ }, null, 8, ["model-value", "items"]),
184
+ I("div", Hn, [
185
+ I("div", null, "Timezone: " + R(_(y).split("/")[1].replace("_", " ")), 1),
186
+ I("div", null, "(UTC" + R(_(wn).tz(_(y)).format("Z")) + ")", 1)
178
187
  ])
179
188
  ]);
180
189
  };
181
190
  }
182
191
  }), St = "feedme_connect_marketing_promo_hidden";
183
- function Hn() {
192
+ function Wn() {
184
193
  try {
185
194
  return localStorage.getItem(St) !== null;
186
195
  } catch {
187
196
  return !1;
188
197
  }
189
198
  }
190
- function jn() {
199
+ function Bn() {
191
200
  try {
192
201
  localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
193
202
  } catch {
194
203
  }
195
204
  }
196
- const Wn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, Gn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, zn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, qn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Kn = { class: "flex flex-col gap-24 pb-8" }, Jn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Yn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Xn = { class: "fm-typo-en-body-lg-600" }, Qn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Zn = { class: "shrink-0" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ti = { class: "flex w-full flex-col gap-12 px-[16px]" }, ni = { class: "flex flex-wrap items-center gap-12" }, ii = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ri = /* @__PURE__ */ xe({
205
+ 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({
197
206
  __name: "AiMarketingPromoDialog",
198
207
  setup(n) {
199
208
  let e = !1;
200
- const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o = ee(!1), c = [
209
+ const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o = te(!1), c = [
201
210
  { key: "completeContent", icon: "layers" },
202
211
  { key: "realContext", icon: "storefront" },
203
212
  { key: "socialFormat", icon: "aspect_ratio" }
204
- ], a = ne(() => {
205
- var _;
206
- const y = ((_ = r.value) == null ? void 0 : _.permissions) ?? [];
207
- return wn(
213
+ ], a = Y(() => {
214
+ var h;
215
+ const T = ((h = r.value) == null ? void 0 : h.permissions) ?? [];
216
+ return kn(
208
217
  [
209
218
  {
210
219
  action: Qe.Action.manage,
211
220
  subject: Qe.Subject.Business.crm_marketingMaterial
212
221
  }
213
222
  ],
214
- y
223
+ T
215
224
  ).granted;
216
- }), l = ne(
225
+ }), l = Y(
217
226
  () => s.value === "MY" && a.value
218
227
  );
219
228
  let d = !1;
220
229
  ie(
221
230
  l,
222
- (y) => {
223
- d || !y || (d = !0, !(Hn() || e) && (e = !0, o.value = !0));
231
+ (T) => {
232
+ d || !T || (d = !0, !(Wn() || e) && (e = !0, o.value = !0));
224
233
  },
225
234
  { immediate: !0 }
226
235
  );
227
236
  async function m() {
228
237
  o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
229
238
  }
230
- function f() {
231
- jn(), o.value = !1;
239
+ function y() {
240
+ Bn(), o.value = !1;
232
241
  }
233
- return (y, _) => {
234
- const h = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
235
- return j(), Oe(M, {
242
+ return (T, h) => {
243
+ const f = ee("FmIcon"), g = ee("FmCard"), v = ee("FmButton"), M = ee("FmDialog");
244
+ return W(), Oe(M, {
236
245
  modelValue: o.value,
237
- "onUpdate:modelValue": _[0] || (_[0] = (k) => o.value = k),
246
+ "onUpdate:modelValue": h[0] || (h[0] = (k) => o.value = k),
238
247
  "min-width": "min(500px, calc(100% - 48px))",
239
248
  "max-width": "min(860px, calc(100% - 48px))",
240
249
  "max-height": "90vh",
241
250
  "dismiss-away": ""
242
251
  }, {
243
- "dialog-header": Q(() => [
244
- v("div", Wn, [
245
- v("div", Bn, [
246
- S(h, {
252
+ "dialog-header": Z(() => [
253
+ I("div", Gn, [
254
+ I("div", zn, [
255
+ S(f, {
247
256
  name: "auto_awesome",
248
257
  size: "sm",
249
258
  color: "primary"
250
259
  }),
251
- v("span", Gn, R(g(t)("connect.marketing.whatsNew.badge")), 1)
260
+ I("span", qn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
252
261
  ]),
253
- v("h1", zn, R(g(t)("connect.marketing.whatsNew.title")), 1),
254
- v("p", qn, R(g(t)("connect.marketing.whatsNew.subtitle")), 1)
262
+ I("h1", Kn, R(_(t)("connect.marketing.whatsNew.title")), 1),
263
+ I("p", Jn, R(_(t)("connect.marketing.whatsNew.subtitle")), 1)
255
264
  ])
256
265
  ]),
257
- "dialog-footer": Q(() => [
258
- v("div", ti, [
259
- v("div", ni, [
260
- S(T, {
266
+ "dialog-footer": Z(() => [
267
+ I("div", ii, [
268
+ I("div", ri, [
269
+ S(v, {
261
270
  variant: "primary",
262
271
  size: "lg",
263
- label: g(t)("connect.marketing.whatsNew.cta"),
272
+ label: _(t)("connect.marketing.whatsNew.cta"),
264
273
  "append-icon": "arrow_forward",
265
274
  onClick: m
266
275
  }, null, 8, ["label"]),
267
- S(T, {
276
+ S(v, {
268
277
  variant: "tertiary",
269
278
  size: "lg",
270
- label: g(t)("connect.marketing.whatsNew.dismiss"),
271
- onClick: f
279
+ label: _(t)("connect.marketing.whatsNew.dismiss"),
280
+ onClick: y
272
281
  }, null, 8, ["label"])
273
282
  ]),
274
- v("div", ii, R(g(t)("connect.marketing.whatsNew.footnote")), 1)
283
+ I("div", si, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
275
284
  ])
276
285
  ]),
277
- default: Q(() => [
278
- v("div", Kn, [
279
- v("div", Jn, [
280
- (j(), me(It, null, ln(c, (k) => S(I, {
286
+ default: Z(() => [
287
+ I("div", Yn, [
288
+ I("div", Xn, [
289
+ (W(), me(It, null, ln(c, (k) => S(g, {
281
290
  key: k.key,
282
291
  variant: "outlined",
283
292
  class: "!h-full flex flex-col gap-8 p-16"
284
293
  }, {
285
- default: Q(() => [
286
- v("div", Yn, [
287
- S(h, {
294
+ default: Z(() => [
295
+ I("div", Qn, [
296
+ S(f, {
288
297
  name: k.icon,
289
298
  size: "md",
290
299
  color: "primary"
291
300
  }, null, 8, ["name"])
292
301
  ]),
293
- v("div", Xn, R(g(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
294
- v("div", Qn, R(g(t)(
302
+ I("div", Zn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
303
+ I("div", ei, R(_(t)(
295
304
  `connect.marketing.whatsNew.benefits.${k.key}.description`
296
305
  )), 1)
297
306
  ]),
298
307
  _: 2
299
308
  }, 1024)), 64))
300
309
  ]),
301
- S(I, {
310
+ S(g, {
302
311
  variant: "outlined",
303
312
  class: "flex items-start gap-12 p-16"
304
313
  }, {
305
- default: Q(() => [
306
- v("div", Zn, [
307
- S(h, {
314
+ default: Z(() => [
315
+ I("div", ti, [
316
+ S(f, {
308
317
  name: "lightbulb",
309
318
  size: "md",
310
319
  color: "primary"
311
320
  })
312
321
  ]),
313
- v("p", ei, R(g(t)("connect.marketing.whatsNew.callout")), 1)
322
+ I("p", ni, R(_(t)("connect.marketing.whatsNew.callout")), 1)
314
323
  ]),
315
324
  _: 1
316
325
  })
@@ -321,7 +330,7 @@ const Wn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
321
330
  };
322
331
  }
323
332
  });
324
- var si = "firebase", oi = "10.12.4";
333
+ var ai = "firebase", ci = "10.12.4";
325
334
  /**
326
335
  * @license
327
336
  * Copyright 2020 Google LLC
@@ -338,13 +347,13 @@ var si = "firebase", oi = "10.12.4";
338
347
  * See the License for the specific language governing permissions and
339
348
  * limitations under the License.
340
349
  */
341
- Le(si, oi, "app");
350
+ Le(ai, ci, "app");
342
351
  function Rt() {
343
352
  return {
344
353
  "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."
345
354
  };
346
355
  }
347
- const ai = Rt, At = new Fe("auth", "Firebase", Rt());
356
+ const li = Rt, At = new Fe("auth", "Firebase", Rt());
348
357
  /**
349
358
  * @license
350
359
  * Copyright 2020 Google LLC
@@ -361,8 +370,8 @@ const ai = Rt, At = new Fe("auth", "Firebase", Rt());
361
370
  * See the License for the specific language governing permissions and
362
371
  * limitations under the License.
363
372
  */
364
- const _e = new kn("@firebase/auth");
365
- function ci(n, ...e) {
373
+ const _e = new En("@firebase/auth");
374
+ function ui(n, ...e) {
366
375
  _e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
367
376
  }
368
377
  function de(n, ...e) {
@@ -391,12 +400,12 @@ function b(n, ...e) {
391
400
  return He(n, ...e);
392
401
  }
393
402
  function Pt(n, e, t) {
394
- const i = Object.assign(Object.assign({}, ai()), { [e]: t });
403
+ const i = Object.assign(Object.assign({}, li()), { [e]: t });
395
404
  return new Fe("auth", "Firebase", i).create(e, {
396
405
  appName: n.name
397
406
  });
398
407
  }
399
- function $(n) {
408
+ function H(n) {
400
409
  return Pt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
401
410
  }
402
411
  function He(n, ...e) {
@@ -437,7 +446,7 @@ function Me() {
437
446
  var n;
438
447
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
439
448
  }
440
- function li() {
449
+ function di() {
441
450
  return nt() === "http:" || nt() === "https:";
442
451
  }
443
452
  function nt() {
@@ -460,15 +469,15 @@ function nt() {
460
469
  * See the License for the specific language governing permissions and
461
470
  * limitations under the License.
462
471
  */
463
- function ui() {
472
+ function hi() {
464
473
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
465
474
  // This is especially true for Cordova apps which have unreliable
466
475
  // navigator.onLine behavior unless cordova-plugin-network-information is
467
476
  // installed which overwrites the native navigator.onLine value and
468
477
  // defines navigator.connection.
469
- (li() || Sn() || "connection" in navigator) ? navigator.onLine : !0;
478
+ (di() || An() || "connection" in navigator) ? navigator.onLine : !0;
470
479
  }
471
- function di() {
480
+ function fi() {
472
481
  if (typeof navigator > "u")
473
482
  return null;
474
483
  const n = navigator;
@@ -498,10 +507,10 @@ function di() {
498
507
  */
499
508
  class ae {
500
509
  constructor(e, t) {
501
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = bn() || En();
510
+ this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = Sn() || Rn();
502
511
  }
503
512
  get() {
504
- return ui() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
513
+ return hi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
505
514
  }
506
515
  }
507
516
  /**
@@ -595,7 +604,7 @@ class Ct {
595
604
  * See the License for the specific language governing permissions and
596
605
  * limitations under the License.
597
606
  */
598
- const hi = {
607
+ const pi = {
599
608
  // Custom token errors.
600
609
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
601
610
  // This can only happen if the SDK sends a bad request.
@@ -686,11 +695,11 @@ const hi = {
686
695
  * See the License for the specific language governing permissions and
687
696
  * limitations under the License.
688
697
  */
689
- const fi = new ae(3e4, 6e4);
698
+ const mi = new ae(3e4, 6e4);
690
699
  function Te(n, e) {
691
700
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
692
701
  }
693
- async function X(n, e, t, i, r = {}) {
702
+ async function Q(n, e, t, i, r = {}) {
694
703
  return Nt(n, r, async () => {
695
704
  let s = {}, o = {};
696
705
  i && (e === "GET" ? o = i : s = {
@@ -712,9 +721,9 @@ async function X(n, e, t, i, r = {}) {
712
721
  }
713
722
  async function Nt(n, e, t) {
714
723
  n._canInitEmulator = !1;
715
- const i = Object.assign(Object.assign({}, hi), e);
724
+ const i = Object.assign(Object.assign({}, pi), e);
716
725
  try {
717
- const r = new pi(n), s = await Promise.race([
726
+ const r = new gi(n), s = await Promise.race([
718
727
  t(),
719
728
  r.promise
720
729
  ]);
@@ -744,7 +753,7 @@ async function Nt(n, e, t) {
744
753
  }
745
754
  }
746
755
  async function Ot(n, e, t, i, r = {}) {
747
- const s = await X(n, e, t, i, r);
756
+ const s = await Q(n, e, t, i, r);
748
757
  return "mfaPendingCredential" in s && O(n, "multi-factor-auth-required", {
749
758
  _serverResponse: s
750
759
  }), s;
@@ -753,14 +762,14 @@ function Lt(n, e, t, i) {
753
762
  const r = `${e}${t}?${i}`;
754
763
  return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
755
764
  }
756
- class pi {
765
+ class gi {
757
766
  constructor(e) {
758
767
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
759
768
  this.timer = setTimeout(() => i(b(
760
769
  this.auth,
761
770
  "network-request-failed"
762
771
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
763
- )), fi.get());
772
+ )), mi.get());
764
773
  });
765
774
  }
766
775
  clearNetworkTimeout() {
@@ -791,11 +800,11 @@ function ue(n, e, t) {
791
800
  * See the License for the specific language governing permissions and
792
801
  * limitations under the License.
793
802
  */
794
- async function mi(n, e) {
795
- return X(n, "POST", "/v1/accounts:delete", e);
803
+ async function _i(n, e) {
804
+ return Q(n, "POST", "/v1/accounts:delete", e);
796
805
  }
797
806
  async function Mt(n, e) {
798
- return X(n, "POST", "/v1/accounts:lookup", e);
807
+ return Q(n, "POST", "/v1/accounts:lookup", e);
799
808
  }
800
809
  /**
801
810
  * @license
@@ -813,7 +822,7 @@ async function Mt(n, e) {
813
822
  * See the License for the specific language governing permissions and
814
823
  * limitations under the License.
815
824
  */
816
- function te(n) {
825
+ function ne(n) {
817
826
  if (n)
818
827
  try {
819
828
  const e = new Date(Number(n));
@@ -822,8 +831,8 @@ function te(n) {
822
831
  } catch {
823
832
  }
824
833
  }
825
- async function gi(n, e = !1) {
826
- const t = Y(n), i = await t.getIdToken(e), r = We(i);
834
+ async function vi(n, e = !1) {
835
+ const t = X(n), i = await t.getIdToken(e), r = We(i);
827
836
  u(
828
837
  r && r.exp && r.auth_time && r.iat,
829
838
  t.auth,
@@ -834,9 +843,9 @@ async function gi(n, e = !1) {
834
843
  return {
835
844
  claims: r,
836
845
  token: i,
837
- authTime: te(Ce(r.auth_time)),
838
- issuedAtTime: te(Ce(r.iat)),
839
- expirationTime: te(Ce(r.exp)),
846
+ authTime: ne(Ce(r.auth_time)),
847
+ issuedAtTime: ne(Ce(r.iat)),
848
+ expirationTime: ne(Ce(r.exp)),
840
849
  signInProvider: o || null,
841
850
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
842
851
  };
@@ -849,7 +858,7 @@ function We(n) {
849
858
  if (e === void 0 || t === void 0 || i === void 0)
850
859
  return de("JWT malformed, contained fewer than 3 sections"), null;
851
860
  try {
852
- const r = Nn(t);
861
+ const r = Ln(t);
853
862
  return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
854
863
  } catch (r) {
855
864
  return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
@@ -893,10 +902,10 @@ async function re(n, e, t = !1) {
893
902
  try {
894
903
  return await e;
895
904
  } catch (i) {
896
- throw i instanceof Ve && _i(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
905
+ throw i instanceof Ve && Ii(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
897
906
  }
898
907
  }
899
- function _i({ code: n }) {
908
+ function Ii({ code: n }) {
900
909
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
901
910
  }
902
911
  /**
@@ -915,7 +924,7 @@ function _i({ code: n }) {
915
924
  * See the License for the specific language governing permissions and
916
925
  * limitations under the License.
917
926
  */
918
- class vi {
927
+ class yi {
919
928
  constructor(e) {
920
929
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
921
930
  }
@@ -982,7 +991,7 @@ class Ue {
982
991
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
983
992
  }
984
993
  _initializeTime() {
985
- this.lastSignInTime = te(this.lastLoginAt), this.creationTime = te(this.createdAt);
994
+ this.lastSignInTime = ne(this.lastLoginAt), this.creationTime = ne(this.createdAt);
986
995
  }
987
996
  _copy(e) {
988
997
  this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
@@ -1021,7 +1030,7 @@ async function ve(n) {
1021
1030
  );
1022
1031
  const s = r.users[0];
1023
1032
  n._notifyReloadListener(s);
1024
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = yi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1033
+ 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 = {
1025
1034
  uid: s.localId,
1026
1035
  displayName: s.displayName || null,
1027
1036
  photoURL: s.photoUrl || null,
@@ -1035,11 +1044,11 @@ async function ve(n) {
1035
1044
  };
1036
1045
  Object.assign(n, m);
1037
1046
  }
1038
- async function Ii(n) {
1039
- const e = Y(n);
1047
+ async function wi(n) {
1048
+ const e = X(n);
1040
1049
  await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1041
1050
  }
1042
- function yi(n, e) {
1051
+ function Ti(n, e) {
1043
1052
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1044
1053
  }
1045
1054
  function Ut(n) {
@@ -1071,7 +1080,7 @@ function Ut(n) {
1071
1080
  * See the License for the specific language governing permissions and
1072
1081
  * limitations under the License.
1073
1082
  */
1074
- async function wi(n, e) {
1083
+ async function ki(n, e) {
1075
1084
  const t = await Nt(n, {}, async () => {
1076
1085
  const i = oe({
1077
1086
  grant_type: "refresh_token",
@@ -1092,8 +1101,8 @@ async function wi(n, e) {
1092
1101
  refreshToken: t.refresh_token
1093
1102
  };
1094
1103
  }
1095
- async function Ti(n, e) {
1096
- return X(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1104
+ async function bi(n, e) {
1105
+ return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1097
1106
  }
1098
1107
  /**
1099
1108
  * @license
@@ -1156,7 +1165,7 @@ class q {
1156
1165
  this.refreshToken = null;
1157
1166
  }
1158
1167
  async refresh(e, t) {
1159
- const { accessToken: i, refreshToken: r, expiresIn: s } = await wi(e, t);
1168
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await ki(e, t);
1160
1169
  this.updateTokensAndExpiration(i, r, Number(s));
1161
1170
  }
1162
1171
  updateTokensAndExpiration(e, t, i) {
@@ -1205,13 +1214,13 @@ class q {
1205
1214
  * See the License for the specific language governing permissions and
1206
1215
  * limitations under the License.
1207
1216
  */
1208
- function U(n, e) {
1217
+ function D(n, e) {
1209
1218
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
1210
1219
  }
1211
1220
  class C {
1212
1221
  constructor(e) {
1213
1222
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
1214
- this.providerId = "firebase", this.proactiveRefresh = new vi(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);
1223
+ 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);
1215
1224
  }
1216
1225
  async getIdToken(e) {
1217
1226
  const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1223,10 +1232,10 @@ class C {
1223
1232
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1224
1233
  }
1225
1234
  getIdTokenResult(e) {
1226
- return gi(this, e);
1235
+ return vi(this, e);
1227
1236
  }
1228
1237
  reload() {
1229
- return Ii(this);
1238
+ return wi(this);
1230
1239
  }
1231
1240
  _assign(e) {
1232
1241
  this !== e && (u(
@@ -1263,9 +1272,9 @@ class C {
1263
1272
  }
1264
1273
  async delete() {
1265
1274
  if (A(this.auth.app))
1266
- return Promise.reject($(this.auth));
1275
+ return Promise.reject(H(this.auth));
1267
1276
  const e = await this.getIdToken();
1268
- return await re(this, mi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1277
+ return await re(this, _i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1269
1278
  }
1270
1279
  toJSON() {
1271
1280
  return Object.assign(Object.assign({
@@ -1293,7 +1302,7 @@ class C {
1293
1302
  }
1294
1303
  static _fromJSON(e, t) {
1295
1304
  var i, r, s, o, c, a, l, d;
1296
- const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, f = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, _ = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, h = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (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;
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;
1297
1306
  u(
1298
1307
  k && Ye,
1299
1308
  e,
@@ -1306,7 +1315,7 @@ class C {
1306
1315
  e,
1307
1316
  "internal-error"
1308
1317
  /* AuthErrorCode.INTERNAL_ERROR */
1309
- ), U(m, e.name), U(f, e.name), u(
1318
+ ), D(m, e.name), D(y, e.name), u(
1310
1319
  typeof Ke == "boolean",
1311
1320
  e,
1312
1321
  "internal-error"
@@ -1316,22 +1325,22 @@ class C {
1316
1325
  e,
1317
1326
  "internal-error"
1318
1327
  /* AuthErrorCode.INTERNAL_ERROR */
1319
- ), U(y, e.name), U(_, e.name), U(h, e.name), U(I, e.name), U(T, e.name), U(M, e.name);
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);
1320
1329
  const Ae = new C({
1321
1330
  uid: k,
1322
1331
  auth: e,
1323
- email: f,
1332
+ email: y,
1324
1333
  emailVerified: Ke,
1325
1334
  displayName: m,
1326
1335
  isAnonymous: Je,
1327
- photoURL: _,
1328
- phoneNumber: y,
1329
- tenantId: h,
1336
+ photoURL: h,
1337
+ phoneNumber: T,
1338
+ tenantId: f,
1330
1339
  stsTokenManager: on,
1331
- createdAt: T,
1340
+ createdAt: v,
1332
1341
  lastLoginAt: M
1333
1342
  });
1334
- return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), I && (Ae._redirectEventId = I), Ae;
1343
+ return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), g && (Ae._redirectEventId = g), Ae;
1335
1344
  }
1336
1345
  /**
1337
1346
  * Initialize a User from an idToken server response
@@ -1595,17 +1604,17 @@ function jt(n = w()) {
1595
1604
  function ke(n = w()) {
1596
1605
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1597
1606
  }
1598
- function ki(n = w()) {
1607
+ function Ei(n = w()) {
1599
1608
  var e;
1600
1609
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1601
1610
  }
1602
- function bi() {
1603
- return On() && document.documentMode === 10;
1611
+ function Si() {
1612
+ return Mn() && document.documentMode === 10;
1604
1613
  }
1605
1614
  function Wt(n = w()) {
1606
1615
  return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1607
1616
  }
1608
- function Ei() {
1617
+ function Ri() {
1609
1618
  try {
1610
1619
  return !!(window && window !== window.top);
1611
1620
  } catch {
@@ -1659,7 +1668,7 @@ function Bt(n, e = []) {
1659
1668
  * See the License for the specific language governing permissions and
1660
1669
  * limitations under the License.
1661
1670
  */
1662
- class Si {
1671
+ class Ai {
1663
1672
  constructor(e) {
1664
1673
  this.auth = e, this.queue = [];
1665
1674
  }
@@ -1714,8 +1723,8 @@ class Si {
1714
1723
  * See the License for the specific language governing permissions and
1715
1724
  * limitations under the License.
1716
1725
  */
1717
- async function Ri(n, e = {}) {
1718
- return X(n, "GET", "/v2/passwordPolicy", Te(n, e));
1726
+ async function Pi(n, e = {}) {
1727
+ return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
1719
1728
  }
1720
1729
  /**
1721
1730
  * @license
@@ -1733,12 +1742,12 @@ async function Ri(n, e = {}) {
1733
1742
  * See the License for the specific language governing permissions and
1734
1743
  * limitations under the License.
1735
1744
  */
1736
- const Ai = 6;
1737
- class Pi {
1745
+ const Ci = 6;
1746
+ class Ni {
1738
1747
  constructor(e) {
1739
1748
  var t, i, r, s;
1740
1749
  const o = e.customStrengthOptions;
1741
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ai, 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;
1750
+ 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;
1742
1751
  }
1743
1752
  validatePassword(e) {
1744
1753
  var t, i, r, s, o, c;
@@ -1821,9 +1830,9 @@ class Pi {
1821
1830
  * See the License for the specific language governing permissions and
1822
1831
  * limitations under the License.
1823
1832
  */
1824
- class Ci {
1833
+ class Oi {
1825
1834
  constructor(e, t, i, r) {
1826
- 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 Si(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;
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 Ai(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;
1827
1836
  }
1828
1837
  _initializeWithPersistence(e, t) {
1829
1838
  return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
@@ -1917,15 +1926,15 @@ class Ci {
1917
1926
  return this.directlySetCurrentUser(e);
1918
1927
  }
1919
1928
  useDeviceLanguage() {
1920
- this.languageCode = di();
1929
+ this.languageCode = fi();
1921
1930
  }
1922
1931
  async _delete() {
1923
1932
  this._deleted = !0;
1924
1933
  }
1925
1934
  async updateCurrentUser(e) {
1926
1935
  if (A(this.app))
1927
- return Promise.reject($(this));
1928
- const t = e ? Y(e) : null;
1936
+ return Promise.reject(H(this));
1937
+ const t = e ? X(e) : null;
1929
1938
  return t && u(
1930
1939
  t.auth.config.apiKey === this.config.apiKey,
1931
1940
  this,
@@ -1945,14 +1954,14 @@ class Ci {
1945
1954
  });
1946
1955
  }
1947
1956
  async signOut() {
1948
- return A(this.app) ? Promise.reject($(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1957
+ return A(this.app) ? Promise.reject(H(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1949
1958
  null,
1950
1959
  /* skipBeforeStateCallbacks */
1951
1960
  !0
1952
1961
  ));
1953
1962
  }
1954
1963
  setPersistence(e) {
1955
- return A(this.app) ? Promise.reject($(this)) : this.queue(async () => {
1964
+ return A(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
1956
1965
  await this.assertedPersistence.setPersistence(N(e));
1957
1966
  });
1958
1967
  }
@@ -1968,7 +1977,7 @@ class Ci {
1968
1977
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1969
1978
  }
1970
1979
  async _updatePasswordPolicy() {
1971
- const e = await Ri(this), t = new Pi(e);
1980
+ const e = await Pi(this), t = new Ni(e);
1972
1981
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1973
1982
  }
1974
1983
  _getPersistence() {
@@ -2008,7 +2017,7 @@ class Ci {
2008
2017
  token: e,
2009
2018
  idToken: t
2010
2019
  };
2011
- this.tenantId != null && (i.tenantId = this.tenantId), await Ti(this, i);
2020
+ this.tenantId != null && (i.tenantId = this.tenantId), await bi(this, i);
2012
2021
  }
2013
2022
  }
2014
2023
  toJSON() {
@@ -2151,15 +2160,15 @@ class Ci {
2151
2160
  async _getAppCheckToken() {
2152
2161
  var e;
2153
2162
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2154
- return t != null && t.error && ci(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2163
+ return t != null && t.error && ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2155
2164
  }
2156
2165
  }
2157
2166
  function be(n) {
2158
- return Y(n);
2167
+ return X(n);
2159
2168
  }
2160
2169
  class at {
2161
2170
  constructor(e) {
2162
- this.auth = e, this.observer = null, this.addObserver = Rn((t) => this.observer = t);
2171
+ this.auth = e, this.observer = null, this.addObserver = Pn((t) => this.observer = t);
2163
2172
  }
2164
2173
  get next() {
2165
2174
  return u(
@@ -2194,16 +2203,16 @@ let Ge = {
2194
2203
  recaptchaEnterpriseScript: "",
2195
2204
  gapiScript: ""
2196
2205
  };
2197
- function Ni(n) {
2206
+ function Li(n) {
2198
2207
  Ge = n;
2199
2208
  }
2200
- function Oi(n) {
2209
+ function Mi(n) {
2201
2210
  return Ge.loadJS(n);
2202
2211
  }
2203
- function Li() {
2212
+ function Ui() {
2204
2213
  return Ge.gapiScript;
2205
2214
  }
2206
- function Mi(n) {
2215
+ function Di(n) {
2207
2216
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2208
2217
  }
2209
2218
  /**
@@ -2222,11 +2231,11 @@ function Mi(n) {
2222
2231
  * See the License for the specific language governing permissions and
2223
2232
  * limitations under the License.
2224
2233
  */
2225
- function Ui(n, e) {
2234
+ function xi(n, e) {
2226
2235
  const t = bt(n, "auth");
2227
2236
  if (t.isInitialized()) {
2228
2237
  const r = t.getImmediate(), s = t.getOptions();
2229
- if (Cn(s, e ?? {}))
2238
+ if (On(s, e ?? {}))
2230
2239
  return r;
2231
2240
  O(
2232
2241
  r,
@@ -2236,11 +2245,11 @@ function Ui(n, e) {
2236
2245
  }
2237
2246
  return t.initialize({ options: e });
2238
2247
  }
2239
- function Di(n, e) {
2248
+ function Fi(n, e) {
2240
2249
  const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2241
2250
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2242
2251
  }
2243
- function xi(n, e, t) {
2252
+ function Vi(n, e, t) {
2244
2253
  const i = be(n);
2245
2254
  u(
2246
2255
  i._canInitEmulator,
@@ -2253,19 +2262,19 @@ function xi(n, e, t) {
2253
2262
  "invalid-emulator-scheme"
2254
2263
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2255
2264
  );
2256
- const r = !1, s = Gt(e), { host: o, port: c } = Fi(e), a = c === null ? "" : `:${c}`;
2265
+ const r = !1, s = Gt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
2257
2266
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2258
2267
  host: o,
2259
2268
  port: c,
2260
2269
  protocol: s.replace(":", ""),
2261
2270
  options: Object.freeze({ disableWarnings: r })
2262
- }), Vi();
2271
+ }), Hi();
2263
2272
  }
2264
2273
  function Gt(n) {
2265
2274
  const e = n.indexOf(":");
2266
2275
  return e < 0 ? "" : n.substr(0, e + 1);
2267
2276
  }
2268
- function Fi(n) {
2277
+ function $i(n) {
2269
2278
  const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2270
2279
  if (!t)
2271
2280
  return { host: "", port: null };
@@ -2284,7 +2293,7 @@ function ct(n) {
2284
2293
  const e = Number(n);
2285
2294
  return isNaN(e) ? null : e;
2286
2295
  }
2287
- function Vi() {
2296
+ function Hi() {
2288
2297
  function n() {
2289
2298
  const e = document.createElement("p"), t = e.style;
2290
2299
  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);
@@ -2368,14 +2377,14 @@ async function J(n, e) {
2368
2377
  * See the License for the specific language governing permissions and
2369
2378
  * limitations under the License.
2370
2379
  */
2371
- const $i = "http://localhost";
2372
- class W extends zt {
2380
+ const ji = "http://localhost";
2381
+ class B extends zt {
2373
2382
  constructor() {
2374
2383
  super(...arguments), this.pendingToken = null;
2375
2384
  }
2376
2385
  /** @internal */
2377
2386
  static _fromParams(e) {
2378
- const t = new W(e.providerId, e.signInMethod);
2387
+ const t = new B(e.providerId, e.signInMethod);
2379
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(
2380
2389
  "argument-error"
2381
2390
  /* AuthErrorCode.ARGUMENT_ERROR */
@@ -2406,7 +2415,7 @@ class W extends zt {
2406
2415
  const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
2407
2416
  if (!i || !r)
2408
2417
  return null;
2409
- const o = new W(i, r);
2418
+ const o = new B(i, r);
2410
2419
  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;
2411
2420
  }
2412
2421
  /** @internal */
@@ -2426,7 +2435,7 @@ class W extends zt {
2426
2435
  }
2427
2436
  buildRequest() {
2428
2437
  const e = {
2429
- requestUri: $i,
2438
+ requestUri: ji,
2430
2439
  returnSecureToken: !0
2431
2440
  };
2432
2441
  if (this.pendingToken)
@@ -2542,7 +2551,7 @@ class ce extends qt {
2542
2551
  * See the License for the specific language governing permissions and
2543
2552
  * limitations under the License.
2544
2553
  */
2545
- class D extends ce {
2554
+ class x extends ce {
2546
2555
  constructor() {
2547
2556
  super(
2548
2557
  "facebook.com"
@@ -2562,9 +2571,9 @@ class D extends ce {
2562
2571
  * @param accessToken - Facebook access token.
2563
2572
  */
2564
2573
  static credential(e) {
2565
- return W._fromParams({
2566
- providerId: D.PROVIDER_ID,
2567
- signInMethod: D.FACEBOOK_SIGN_IN_METHOD,
2574
+ return B._fromParams({
2575
+ providerId: x.PROVIDER_ID,
2576
+ signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
2568
2577
  accessToken: e
2569
2578
  });
2570
2579
  }
@@ -2574,7 +2583,7 @@ class D extends ce {
2574
2583
  * @param userCredential - The user credential.
2575
2584
  */
2576
2585
  static credentialFromResult(e) {
2577
- return D.credentialFromTaggedObject(e);
2586
+ return x.credentialFromTaggedObject(e);
2578
2587
  }
2579
2588
  /**
2580
2589
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2583,20 +2592,20 @@ class D extends ce {
2583
2592
  * @param userCredential - The user credential.
2584
2593
  */
2585
2594
  static credentialFromError(e) {
2586
- return D.credentialFromTaggedObject(e.customData || {});
2595
+ return x.credentialFromTaggedObject(e.customData || {});
2587
2596
  }
2588
2597
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2589
2598
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2590
2599
  return null;
2591
2600
  try {
2592
- return D.credential(e.oauthAccessToken);
2601
+ return x.credential(e.oauthAccessToken);
2593
2602
  } catch {
2594
2603
  return null;
2595
2604
  }
2596
2605
  }
2597
2606
  }
2598
- D.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
2599
- D.PROVIDER_ID = "facebook.com";
2607
+ x.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
2608
+ x.PROVIDER_ID = "facebook.com";
2600
2609
  /**
2601
2610
  * @license
2602
2611
  * Copyright 2020 Google LLC
@@ -2613,7 +2622,7 @@ D.PROVIDER_ID = "facebook.com";
2613
2622
  * See the License for the specific language governing permissions and
2614
2623
  * limitations under the License.
2615
2624
  */
2616
- class x extends ce {
2625
+ class F extends ce {
2617
2626
  constructor() {
2618
2627
  super(
2619
2628
  "google.com"
@@ -2634,9 +2643,9 @@ class x extends ce {
2634
2643
  * @param accessToken - Google access token.
2635
2644
  */
2636
2645
  static credential(e, t) {
2637
- return W._fromParams({
2638
- providerId: x.PROVIDER_ID,
2639
- signInMethod: x.GOOGLE_SIGN_IN_METHOD,
2646
+ return B._fromParams({
2647
+ providerId: F.PROVIDER_ID,
2648
+ signInMethod: F.GOOGLE_SIGN_IN_METHOD,
2640
2649
  idToken: e,
2641
2650
  accessToken: t
2642
2651
  });
@@ -2647,7 +2656,7 @@ class x extends ce {
2647
2656
  * @param userCredential - The user credential.
2648
2657
  */
2649
2658
  static credentialFromResult(e) {
2650
- return x.credentialFromTaggedObject(e);
2659
+ return F.credentialFromTaggedObject(e);
2651
2660
  }
2652
2661
  /**
2653
2662
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2656,7 +2665,7 @@ class x extends ce {
2656
2665
  * @param userCredential - The user credential.
2657
2666
  */
2658
2667
  static credentialFromError(e) {
2659
- return x.credentialFromTaggedObject(e.customData || {});
2668
+ return F.credentialFromTaggedObject(e.customData || {});
2660
2669
  }
2661
2670
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2662
2671
  if (!e)
@@ -2665,14 +2674,14 @@ class x extends ce {
2665
2674
  if (!t && !i)
2666
2675
  return null;
2667
2676
  try {
2668
- return x.credential(t, i);
2677
+ return F.credential(t, i);
2669
2678
  } catch {
2670
2679
  return null;
2671
2680
  }
2672
2681
  }
2673
2682
  }
2674
- x.GOOGLE_SIGN_IN_METHOD = "google.com";
2675
- x.PROVIDER_ID = "google.com";
2683
+ F.GOOGLE_SIGN_IN_METHOD = "google.com";
2684
+ F.PROVIDER_ID = "google.com";
2676
2685
  /**
2677
2686
  * @license
2678
2687
  * Copyright 2020 Google LLC
@@ -2689,7 +2698,7 @@ x.PROVIDER_ID = "google.com";
2689
2698
  * See the License for the specific language governing permissions and
2690
2699
  * limitations under the License.
2691
2700
  */
2692
- class F extends ce {
2701
+ class V extends ce {
2693
2702
  constructor() {
2694
2703
  super(
2695
2704
  "github.com"
@@ -2702,9 +2711,9 @@ class F extends ce {
2702
2711
  * @param accessToken - Github access token.
2703
2712
  */
2704
2713
  static credential(e) {
2705
- return W._fromParams({
2706
- providerId: F.PROVIDER_ID,
2707
- signInMethod: F.GITHUB_SIGN_IN_METHOD,
2714
+ return B._fromParams({
2715
+ providerId: V.PROVIDER_ID,
2716
+ signInMethod: V.GITHUB_SIGN_IN_METHOD,
2708
2717
  accessToken: e
2709
2718
  });
2710
2719
  }
@@ -2714,7 +2723,7 @@ class F extends ce {
2714
2723
  * @param userCredential - The user credential.
2715
2724
  */
2716
2725
  static credentialFromResult(e) {
2717
- return F.credentialFromTaggedObject(e);
2726
+ return V.credentialFromTaggedObject(e);
2718
2727
  }
2719
2728
  /**
2720
2729
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2723,20 +2732,20 @@ class F extends ce {
2723
2732
  * @param userCredential - The user credential.
2724
2733
  */
2725
2734
  static credentialFromError(e) {
2726
- return F.credentialFromTaggedObject(e.customData || {});
2735
+ return V.credentialFromTaggedObject(e.customData || {});
2727
2736
  }
2728
2737
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2729
2738
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2730
2739
  return null;
2731
2740
  try {
2732
- return F.credential(e.oauthAccessToken);
2741
+ return V.credential(e.oauthAccessToken);
2733
2742
  } catch {
2734
2743
  return null;
2735
2744
  }
2736
2745
  }
2737
2746
  }
2738
- F.GITHUB_SIGN_IN_METHOD = "github.com";
2739
- F.PROVIDER_ID = "github.com";
2747
+ V.GITHUB_SIGN_IN_METHOD = "github.com";
2748
+ V.PROVIDER_ID = "github.com";
2740
2749
  /**
2741
2750
  * @license
2742
2751
  * Copyright 2020 Google LLC
@@ -2753,7 +2762,7 @@ F.PROVIDER_ID = "github.com";
2753
2762
  * See the License for the specific language governing permissions and
2754
2763
  * limitations under the License.
2755
2764
  */
2756
- class V extends ce {
2765
+ class $ extends ce {
2757
2766
  constructor() {
2758
2767
  super(
2759
2768
  "twitter.com"
@@ -2767,9 +2776,9 @@ class V extends ce {
2767
2776
  * @param secret - Twitter secret.
2768
2777
  */
2769
2778
  static credential(e, t) {
2770
- return W._fromParams({
2771
- providerId: V.PROVIDER_ID,
2772
- signInMethod: V.TWITTER_SIGN_IN_METHOD,
2779
+ return B._fromParams({
2780
+ providerId: $.PROVIDER_ID,
2781
+ signInMethod: $.TWITTER_SIGN_IN_METHOD,
2773
2782
  oauthToken: e,
2774
2783
  oauthTokenSecret: t
2775
2784
  });
@@ -2780,7 +2789,7 @@ class V extends ce {
2780
2789
  * @param userCredential - The user credential.
2781
2790
  */
2782
2791
  static credentialFromResult(e) {
2783
- return V.credentialFromTaggedObject(e);
2792
+ return $.credentialFromTaggedObject(e);
2784
2793
  }
2785
2794
  /**
2786
2795
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2789,7 +2798,7 @@ class V extends ce {
2789
2798
  * @param userCredential - The user credential.
2790
2799
  */
2791
2800
  static credentialFromError(e) {
2792
- return V.credentialFromTaggedObject(e.customData || {});
2801
+ return $.credentialFromTaggedObject(e.customData || {});
2793
2802
  }
2794
2803
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2795
2804
  if (!e)
@@ -2798,14 +2807,14 @@ class V extends ce {
2798
2807
  if (!t || !i)
2799
2808
  return null;
2800
2809
  try {
2801
- return V.credential(t, i);
2810
+ return $.credential(t, i);
2802
2811
  } catch {
2803
2812
  return null;
2804
2813
  }
2805
2814
  }
2806
2815
  }
2807
- V.TWITTER_SIGN_IN_METHOD = "twitter.com";
2808
- V.PROVIDER_ID = "twitter.com";
2816
+ $.TWITTER_SIGN_IN_METHOD = "twitter.com";
2817
+ $.PROVIDER_ID = "twitter.com";
2809
2818
  /**
2810
2819
  * @license
2811
2820
  * Copyright 2020 Google LLC
@@ -2822,13 +2831,13 @@ V.PROVIDER_ID = "twitter.com";
2822
2831
  * See the License for the specific language governing permissions and
2823
2832
  * limitations under the License.
2824
2833
  */
2825
- class B {
2834
+ class G {
2826
2835
  constructor(e) {
2827
2836
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2828
2837
  }
2829
2838
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2830
2839
  const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
2831
- return new B({
2840
+ return new G({
2832
2841
  user: s,
2833
2842
  providerId: o,
2834
2843
  _tokenResponse: i,
@@ -2842,7 +2851,7 @@ class B {
2842
2851
  !0
2843
2852
  );
2844
2853
  const r = lt(i);
2845
- return new B({
2854
+ return new G({
2846
2855
  user: e,
2847
2856
  providerId: r,
2848
2857
  _tokenResponse: i,
@@ -2888,9 +2897,9 @@ function Kt(n, e, t, i) {
2888
2897
  throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
2889
2898
  });
2890
2899
  }
2891
- async function Hi(n, e, t = !1) {
2900
+ async function Wi(n, e, t = !1) {
2892
2901
  const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2893
- return B._forOperation(n, "link", i);
2902
+ return G._forOperation(n, "link", i);
2894
2903
  }
2895
2904
  /**
2896
2905
  * @license
@@ -2908,10 +2917,10 @@ async function Hi(n, e, t = !1) {
2908
2917
  * See the License for the specific language governing permissions and
2909
2918
  * limitations under the License.
2910
2919
  */
2911
- async function ji(n, e, t = !1) {
2920
+ async function Bi(n, e, t = !1) {
2912
2921
  const { auth: i } = n;
2913
2922
  if (A(i.app))
2914
- return Promise.reject($(i));
2923
+ return Promise.reject(H(i));
2915
2924
  const r = "reauthenticate";
2916
2925
  try {
2917
2926
  const s = await re(n, Kt(i, r, e, n), t);
@@ -2934,7 +2943,7 @@ async function ji(n, e, t = !1) {
2934
2943
  i,
2935
2944
  "user-mismatch"
2936
2945
  /* AuthErrorCode.USER_MISMATCH */
2937
- ), B._forOperation(n, r, s);
2946
+ ), G._forOperation(n, r, s);
2938
2947
  } catch (s) {
2939
2948
  throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
2940
2949
  i,
@@ -2959,10 +2968,10 @@ async function ji(n, e, t = !1) {
2959
2968
  * See the License for the specific language governing permissions and
2960
2969
  * limitations under the License.
2961
2970
  */
2962
- async function Wi(n, e, t = !1) {
2971
+ async function Gi(n, e, t = !1) {
2963
2972
  if (A(n.app))
2964
- return Promise.reject($(n));
2965
- const i = "signIn", r = await Kt(n, i, e), s = await B._fromIdTokenResponse(n, i, r);
2973
+ return Promise.reject(H(n));
2974
+ const i = "signIn", r = await Kt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
2966
2975
  return t || await n._updateCurrentUser(s.user), s;
2967
2976
  }
2968
2977
  /**
@@ -2981,7 +2990,7 @@ async function Wi(n, e, t = !1) {
2981
2990
  * See the License for the specific language governing permissions and
2982
2991
  * limitations under the License.
2983
2992
  */
2984
- async function Bi(n, e) {
2993
+ async function zi(n, e) {
2985
2994
  return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
2986
2995
  }
2987
2996
  /**
@@ -3000,20 +3009,20 @@ async function Bi(n, e) {
3000
3009
  * See the License for the specific language governing permissions and
3001
3010
  * limitations under the License.
3002
3011
  */
3003
- async function Gi(n, e) {
3012
+ async function qi(n, e) {
3004
3013
  if (A(n.app))
3005
- return Promise.reject($(n));
3006
- const t = be(n), i = await Bi(t, {
3014
+ return Promise.reject(H(n));
3015
+ const t = be(n), i = await zi(t, {
3007
3016
  token: e,
3008
3017
  returnSecureToken: !0
3009
- }), r = await B._fromIdTokenResponse(t, "signIn", i);
3018
+ }), r = await G._fromIdTokenResponse(t, "signIn", i);
3010
3019
  return await t._updateCurrentUser(r.user), r;
3011
3020
  }
3012
- function zi(n, e, t, i) {
3013
- return Y(n).onIdTokenChanged(e, t, i);
3021
+ function Ki(n, e, t, i) {
3022
+ return X(n).onIdTokenChanged(e, t, i);
3014
3023
  }
3015
- function qi(n, e, t) {
3016
- return Y(n).beforeAuthStateChanged(e, t);
3024
+ function Ji(n, e, t) {
3025
+ return X(n).beforeAuthStateChanged(e, t);
3017
3026
  }
3018
3027
  const ye = "__sak";
3019
3028
  /**
@@ -3073,18 +3082,18 @@ class Jt {
3073
3082
  * See the License for the specific language governing permissions and
3074
3083
  * limitations under the License.
3075
3084
  */
3076
- function Ki() {
3085
+ function Yi() {
3077
3086
  const n = w();
3078
3087
  return Be(n) || ke(n);
3079
3088
  }
3080
- const Ji = 1e3, Yi = 10;
3089
+ const Xi = 1e3, Qi = 10;
3081
3090
  class Yt extends Jt {
3082
3091
  constructor() {
3083
3092
  super(
3084
3093
  () => window.localStorage,
3085
3094
  "LOCAL"
3086
3095
  /* PersistenceType.LOCAL */
3087
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ki() && Ei(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3096
+ ), 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;
3088
3097
  }
3089
3098
  forAllChangedKeys(e) {
3090
3099
  for (const t of Object.keys(this.listeners)) {
@@ -3111,7 +3120,7 @@ class Yt extends Jt {
3111
3120
  const o = this.storage.getItem(i);
3112
3121
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3113
3122
  }, s = this.storage.getItem(i);
3114
- bi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Yi) : r();
3123
+ Si() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Qi) : r();
3115
3124
  }
3116
3125
  notifyListeners(e, t) {
3117
3126
  this.localCache[e] = t;
@@ -3133,7 +3142,7 @@ class Yt extends Jt {
3133
3142
  !0
3134
3143
  );
3135
3144
  });
3136
- }, Ji);
3145
+ }, Xi);
3137
3146
  }
3138
3147
  stopPolling() {
3139
3148
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3163,7 +3172,7 @@ class Yt extends Jt {
3163
3172
  }
3164
3173
  }
3165
3174
  Yt.type = "LOCAL";
3166
- const Xi = Yt;
3175
+ const Zi = Yt;
3167
3176
  /**
3168
3177
  * @license
3169
3178
  * Copyright 2020 Google LLC
@@ -3211,7 +3220,7 @@ const Qt = Xt;
3211
3220
  * See the License for the specific language governing permissions and
3212
3221
  * limitations under the License.
3213
3222
  */
3214
- function Qi(n) {
3223
+ function er(n) {
3215
3224
  return Promise.all(n.map(async (e) => {
3216
3225
  try {
3217
3226
  return {
@@ -3281,7 +3290,7 @@ class Ee {
3281
3290
  eventId: i,
3282
3291
  eventType: r
3283
3292
  });
3284
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Qi(c);
3293
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await er(c);
3285
3294
  t.ports[0].postMessage({
3286
3295
  status: "done",
3287
3296
  eventId: i,
@@ -3349,7 +3358,7 @@ function ze(n = "", e = 10) {
3349
3358
  * See the License for the specific language governing permissions and
3350
3359
  * limitations under the License.
3351
3360
  */
3352
- class Zi {
3361
+ class tr {
3353
3362
  constructor(e) {
3354
3363
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3355
3364
  }
@@ -3394,9 +3403,9 @@ class Zi {
3394
3403
  o = {
3395
3404
  messageChannel: r,
3396
3405
  onMessage(m) {
3397
- const f = m;
3398
- if (f.data.eventId === l)
3399
- switch (f.data.status) {
3406
+ const y = m;
3407
+ if (y.data.eventId === l)
3408
+ switch (y.data.status) {
3400
3409
  case "ack":
3401
3410
  clearTimeout(d), s = setTimeout(
3402
3411
  () => {
@@ -3410,7 +3419,7 @@ class Zi {
3410
3419
  );
3411
3420
  break;
3412
3421
  case "done":
3413
- clearTimeout(s), c(f.data.response);
3422
+ clearTimeout(s), c(y.data.response);
3414
3423
  break;
3415
3424
  default:
3416
3425
  clearTimeout(d), clearTimeout(s), a(new Error(
@@ -3449,7 +3458,7 @@ class Zi {
3449
3458
  function E() {
3450
3459
  return window;
3451
3460
  }
3452
- function er(n) {
3461
+ function nr(n) {
3453
3462
  E().location.href = n;
3454
3463
  }
3455
3464
  /**
@@ -3471,7 +3480,7 @@ function er(n) {
3471
3480
  function Zt() {
3472
3481
  return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3473
3482
  }
3474
- async function tr() {
3483
+ async function ir() {
3475
3484
  if (!(navigator != null && navigator.serviceWorker))
3476
3485
  return null;
3477
3486
  try {
@@ -3480,11 +3489,11 @@ async function tr() {
3480
3489
  return null;
3481
3490
  }
3482
3491
  }
3483
- function nr() {
3492
+ function rr() {
3484
3493
  var n;
3485
3494
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3486
3495
  }
3487
- function ir() {
3496
+ function sr() {
3488
3497
  return Zt() ? self : null;
3489
3498
  }
3490
3499
  /**
@@ -3503,7 +3512,7 @@ function ir() {
3503
3512
  * See the License for the specific language governing permissions and
3504
3513
  * limitations under the License.
3505
3514
  */
3506
- const en = "firebaseLocalStorageDb", rr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3515
+ const en = "firebaseLocalStorageDb", or = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3507
3516
  class le {
3508
3517
  constructor(e) {
3509
3518
  this.request = e;
@@ -3521,12 +3530,12 @@ class le {
3521
3530
  function Se(n, e) {
3522
3531
  return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3523
3532
  }
3524
- function sr() {
3533
+ function ar() {
3525
3534
  const n = indexedDB.deleteDatabase(en);
3526
3535
  return new le(n).toPromise();
3527
3536
  }
3528
3537
  function De() {
3529
- const n = indexedDB.open(en, rr);
3538
+ const n = indexedDB.open(en, or);
3530
3539
  return new Promise((e, t) => {
3531
3540
  n.addEventListener("error", () => {
3532
3541
  t(n.error);
@@ -3539,7 +3548,7 @@ function De() {
3539
3548
  }
3540
3549
  }), n.addEventListener("success", async () => {
3541
3550
  const i = n.result;
3542
- i.objectStoreNames.contains(we) ? e(i) : (i.close(), await sr(), e(await De()));
3551
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await ar(), e(await De()));
3543
3552
  });
3544
3553
  });
3545
3554
  }
@@ -3550,7 +3559,7 @@ async function ut(n, e, t) {
3550
3559
  });
3551
3560
  return new le(i).toPromise();
3552
3561
  }
3553
- async function or(n, e) {
3562
+ async function cr(n, e) {
3554
3563
  const t = Se(n, !1).get(e), i = await new le(t).toPromise();
3555
3564
  return i === void 0 ? null : i.value;
3556
3565
  }
@@ -3558,7 +3567,7 @@ function dt(n, e) {
3558
3567
  const t = Se(n, !0).delete(e);
3559
3568
  return new le(t).toPromise();
3560
3569
  }
3561
- const ar = 800, cr = 3;
3570
+ const lr = 800, ur = 3;
3562
3571
  class nn {
3563
3572
  constructor() {
3564
3573
  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(() => {
@@ -3575,7 +3584,7 @@ class nn {
3575
3584
  const i = await this._openDb();
3576
3585
  return await e(i);
3577
3586
  } catch (i) {
3578
- if (t++ > cr)
3587
+ if (t++ > ur)
3579
3588
  throw i;
3580
3589
  this.db && (this.db.close(), this.db = void 0);
3581
3590
  }
@@ -3591,7 +3600,7 @@ class nn {
3591
3600
  * As the worker we should listen to events from the main window.
3592
3601
  */
3593
3602
  async initializeReceiver() {
3594
- this.receiver = Ee._getInstance(ir()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3603
+ this.receiver = Ee._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3595
3604
  keyProcessed: (await this._poll()).includes(t.key)
3596
3605
  })), this.receiver._subscribe("ping", async (e, t) => [
3597
3606
  "keyChanged"
@@ -3607,9 +3616,9 @@ class nn {
3607
3616
  */
3608
3617
  async initializeSender() {
3609
3618
  var e, t;
3610
- if (this.activeServiceWorker = await tr(), !this.activeServiceWorker)
3619
+ if (this.activeServiceWorker = await ir(), !this.activeServiceWorker)
3611
3620
  return;
3612
- this.sender = new Zi(this.activeServiceWorker);
3621
+ this.sender = new tr(this.activeServiceWorker);
3613
3622
  const i = await this.sender._send(
3614
3623
  "ping",
3615
3624
  {},
@@ -3631,7 +3640,7 @@ class nn {
3631
3640
  * @param key - Storage key which changed.
3632
3641
  */
3633
3642
  async notifyServiceWorker(e) {
3634
- if (!(!this.sender || !this.activeServiceWorker || nr() !== this.activeServiceWorker))
3643
+ if (!(!this.sender || !this.activeServiceWorker || rr() !== this.activeServiceWorker))
3635
3644
  try {
3636
3645
  await this.sender._send(
3637
3646
  "keyChanged",
@@ -3665,7 +3674,7 @@ class nn {
3665
3674
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3666
3675
  }
3667
3676
  async _get(e) {
3668
- const t = await this._withRetries((i) => or(i, e));
3677
+ const t = await this._withRetries((i) => cr(i, e));
3669
3678
  return this.localCache[e] = t, t;
3670
3679
  }
3671
3680
  async _remove(e) {
@@ -3696,7 +3705,7 @@ class nn {
3696
3705
  r(t);
3697
3706
  }
3698
3707
  startPolling() {
3699
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), ar);
3708
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), lr);
3700
3709
  }
3701
3710
  stopPolling() {
3702
3711
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3709,7 +3718,7 @@ class nn {
3709
3718
  }
3710
3719
  }
3711
3720
  nn.type = "LOCAL";
3712
- const lr = nn;
3721
+ const dr = nn;
3713
3722
  new ae(3e4, 6e4);
3714
3723
  /**
3715
3724
  * @license
@@ -3727,7 +3736,7 @@ new ae(3e4, 6e4);
3727
3736
  * See the License for the specific language governing permissions and
3728
3737
  * limitations under the License.
3729
3738
  */
3730
- function ur(n, e) {
3739
+ function hr(n, e) {
3731
3740
  return e ? N(e) : (u(
3732
3741
  n._popupRedirectResolver,
3733
3742
  n,
@@ -3781,26 +3790,26 @@ class qe extends zt {
3781
3790
  return e && (t.idToken = e), t;
3782
3791
  }
3783
3792
  }
3784
- function dr(n) {
3785
- return Wi(n.auth, new qe(n), n.bypassAuthState);
3793
+ function fr(n) {
3794
+ return Gi(n.auth, new qe(n), n.bypassAuthState);
3786
3795
  }
3787
- function hr(n) {
3796
+ function pr(n) {
3788
3797
  const { auth: e, user: t } = n;
3789
3798
  return u(
3790
3799
  t,
3791
3800
  e,
3792
3801
  "internal-error"
3793
3802
  /* AuthErrorCode.INTERNAL_ERROR */
3794
- ), ji(t, new qe(n), n.bypassAuthState);
3803
+ ), Bi(t, new qe(n), n.bypassAuthState);
3795
3804
  }
3796
- async function fr(n) {
3805
+ async function mr(n) {
3797
3806
  const { auth: e, user: t } = n;
3798
3807
  return u(
3799
3808
  t,
3800
3809
  e,
3801
3810
  "internal-error"
3802
3811
  /* AuthErrorCode.INTERNAL_ERROR */
3803
- ), Hi(t, new qe(n), n.bypassAuthState);
3812
+ ), Wi(t, new qe(n), n.bypassAuthState);
3804
3813
  }
3805
3814
  /**
3806
3815
  * @license
@@ -3860,13 +3869,13 @@ class rn {
3860
3869
  switch (e) {
3861
3870
  case "signInViaPopup":
3862
3871
  case "signInViaRedirect":
3863
- return dr;
3872
+ return fr;
3864
3873
  case "linkViaPopup":
3865
3874
  case "linkViaRedirect":
3866
- return fr;
3875
+ return mr;
3867
3876
  case "reauthViaPopup":
3868
3877
  case "reauthViaRedirect":
3869
- return hr;
3878
+ return pr;
3870
3879
  default:
3871
3880
  O(
3872
3881
  this.auth,
@@ -3901,7 +3910,7 @@ class rn {
3901
3910
  * See the License for the specific language governing permissions and
3902
3911
  * limitations under the License.
3903
3912
  */
3904
- const pr = new ae(2e3, 1e4);
3913
+ const gr = new ae(2e3, 1e4);
3905
3914
  class z extends rn {
3906
3915
  constructor(e, t, i, r, s) {
3907
3916
  super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
@@ -3965,7 +3974,7 @@ class z extends rn {
3965
3974
  );
3966
3975
  return;
3967
3976
  }
3968
- this.pollId = window.setTimeout(e, pr.get());
3977
+ this.pollId = window.setTimeout(e, gr.get());
3969
3978
  };
3970
3979
  e();
3971
3980
  }
@@ -3987,8 +3996,8 @@ z.currentPopupAction = null;
3987
3996
  * See the License for the specific language governing permissions and
3988
3997
  * limitations under the License.
3989
3998
  */
3990
- const mr = "pendingRedirect", fe = /* @__PURE__ */ new Map();
3991
- class gr extends rn {
3999
+ const _r = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4000
+ class vr extends rn {
3992
4001
  constructor(e, t, i = !1) {
3993
4002
  super(e, [
3994
4003
  "signInViaRedirect",
@@ -4006,7 +4015,7 @@ class gr extends rn {
4006
4015
  let e = fe.get(this.auth._key());
4007
4016
  if (!e) {
4008
4017
  try {
4009
- const i = await _r(this.resolver, this.auth) ? await super.execute() : null;
4018
+ const i = await Ir(this.resolver, this.auth) ? await super.execute() : null;
4010
4019
  e = () => Promise.resolve(i);
4011
4020
  } catch (t) {
4012
4021
  e = () => Promise.reject(t);
@@ -4034,26 +4043,26 @@ class gr extends rn {
4034
4043
  cleanUp() {
4035
4044
  }
4036
4045
  }
4037
- async function _r(n, e) {
4038
- const t = yr(e), i = Ir(n);
4046
+ async function Ir(n, e) {
4047
+ const t = Tr(e), i = wr(n);
4039
4048
  if (!await i._isAvailable())
4040
4049
  return !1;
4041
4050
  const r = await i._get(t) === "true";
4042
4051
  return await i._remove(t), r;
4043
4052
  }
4044
- function vr(n, e) {
4053
+ function yr(n, e) {
4045
4054
  fe.set(n._key(), e);
4046
4055
  }
4047
- function Ir(n) {
4056
+ function wr(n) {
4048
4057
  return N(n._redirectPersistence);
4049
4058
  }
4050
- function yr(n) {
4051
- return he(mr, n.config.apiKey, n.name);
4059
+ function Tr(n) {
4060
+ return he(_r, n.config.apiKey, n.name);
4052
4061
  }
4053
- async function wr(n, e, t = !1) {
4062
+ async function kr(n, e, t = !1) {
4054
4063
  if (A(n.app))
4055
- return Promise.reject($(n));
4056
- const i = be(n), r = ur(i, e), o = await new gr(i, r, t).execute();
4064
+ return Promise.reject(H(n));
4065
+ const i = be(n), r = hr(i, e), o = await new vr(i, r, t).execute();
4057
4066
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4058
4067
  }
4059
4068
  /**
@@ -4072,8 +4081,8 @@ async function wr(n, e, t = !1) {
4072
4081
  * See the License for the specific language governing permissions and
4073
4082
  * limitations under the License.
4074
4083
  */
4075
- const Tr = 10 * 60 * 1e3;
4076
- class kr {
4084
+ const br = 10 * 60 * 1e3;
4085
+ class Er {
4077
4086
  constructor(e) {
4078
4087
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4079
4088
  }
@@ -4089,7 +4098,7 @@ class kr {
4089
4098
  let t = !1;
4090
4099
  return this.consumers.forEach((i) => {
4091
4100
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4092
- }), this.hasHandledPotentialRedirect || !br(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4101
+ }), this.hasHandledPotentialRedirect || !Sr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4093
4102
  }
4094
4103
  sendToConsumer(e, t) {
4095
4104
  var i;
@@ -4104,7 +4113,7 @@ class kr {
4104
4113
  return t.filter.includes(e.type) && i;
4105
4114
  }
4106
4115
  hasEventBeenHandled(e) {
4107
- return Date.now() - this.lastProcessedEventTime >= Tr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4116
+ return Date.now() - this.lastProcessedEventTime >= br && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4108
4117
  }
4109
4118
  saveEventToCache(e) {
4110
4119
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4116,7 +4125,7 @@ function ht(n) {
4116
4125
  function sn({ type: n, error: e }) {
4117
4126
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4118
4127
  }
4119
- function br(n) {
4128
+ function Sr(n) {
4120
4129
  switch (n.type) {
4121
4130
  case "signInViaRedirect":
4122
4131
  case "linkViaRedirect":
@@ -4144,8 +4153,8 @@ function br(n) {
4144
4153
  * See the License for the specific language governing permissions and
4145
4154
  * limitations under the License.
4146
4155
  */
4147
- async function Er(n, e = {}) {
4148
- return X(n, "GET", "/v1/projects", e);
4156
+ async function Rr(n, e = {}) {
4157
+ return Q(n, "GET", "/v1/projects", e);
4149
4158
  }
4150
4159
  /**
4151
4160
  * @license
@@ -4163,14 +4172,14 @@ async function Er(n, e = {}) {
4163
4172
  * See the License for the specific language governing permissions and
4164
4173
  * limitations under the License.
4165
4174
  */
4166
- const Sr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Rr = /^https?/;
4167
- async function Ar(n) {
4175
+ const Ar = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Pr = /^https?/;
4176
+ async function Cr(n) {
4168
4177
  if (n.config.emulator)
4169
4178
  return;
4170
- const { authorizedDomains: e } = await Er(n);
4179
+ const { authorizedDomains: e } = await Rr(n);
4171
4180
  for (const t of e)
4172
4181
  try {
4173
- if (Pr(t))
4182
+ if (Nr(t))
4174
4183
  return;
4175
4184
  } catch {
4176
4185
  }
@@ -4180,15 +4189,15 @@ async function Ar(n) {
4180
4189
  /* AuthErrorCode.INVALID_ORIGIN */
4181
4190
  );
4182
4191
  }
4183
- function Pr(n) {
4192
+ function Nr(n) {
4184
4193
  const e = Me(), { protocol: t, hostname: i } = new URL(e);
4185
4194
  if (n.startsWith("chrome-extension://")) {
4186
4195
  const o = new URL(n);
4187
4196
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4188
4197
  }
4189
- if (!Rr.test(t))
4198
+ if (!Pr.test(t))
4190
4199
  return !1;
4191
- if (Sr.test(n))
4200
+ if (Ar.test(n))
4192
4201
  return i === n;
4193
4202
  const r = n.replace(/\./g, "\\.");
4194
4203
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4209,7 +4218,7 @@ function Pr(n) {
4209
4218
  * See the License for the specific language governing permissions and
4210
4219
  * limitations under the License.
4211
4220
  */
4212
- const Cr = new ae(3e4, 6e4);
4221
+ const Or = new ae(3e4, 6e4);
4213
4222
  function ft() {
4214
4223
  const n = E().___jsl;
4215
4224
  if (n != null && n.H) {
@@ -4219,7 +4228,7 @@ function ft() {
4219
4228
  n.CP[t] = null;
4220
4229
  }
4221
4230
  }
4222
- function Nr(n) {
4231
+ function Lr(n) {
4223
4232
  return new Promise((e, t) => {
4224
4233
  var i, r, s;
4225
4234
  function o() {
@@ -4234,7 +4243,7 @@ function Nr(n) {
4234
4243
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4235
4244
  ));
4236
4245
  },
4237
- timeout: Cr.get()
4246
+ timeout: Or.get()
4238
4247
  });
4239
4248
  }
4240
4249
  if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
@@ -4242,22 +4251,22 @@ function Nr(n) {
4242
4251
  else if (!((s = E().gapi) === null || s === void 0) && s.load)
4243
4252
  o();
4244
4253
  else {
4245
- const c = Mi("iframefcb");
4254
+ const c = Di("iframefcb");
4246
4255
  return E()[c] = () => {
4247
4256
  gapi.load ? o() : t(b(
4248
4257
  n,
4249
4258
  "network-request-failed"
4250
4259
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4251
4260
  ));
4252
- }, Oi(`${Li()}?onload=${c}`).catch((a) => t(a));
4261
+ }, Mi(`${Ui()}?onload=${c}`).catch((a) => t(a));
4253
4262
  }
4254
4263
  }).catch((e) => {
4255
4264
  throw pe = null, e;
4256
4265
  });
4257
4266
  }
4258
4267
  let pe = null;
4259
- function Or(n) {
4260
- return pe = pe || Nr(n), pe;
4268
+ function Mr(n) {
4269
+ return pe = pe || Lr(n), pe;
4261
4270
  }
4262
4271
  /**
4263
4272
  * @license
@@ -4275,7 +4284,7 @@ function Or(n) {
4275
4284
  * See the License for the specific language governing permissions and
4276
4285
  * limitations under the License.
4277
4286
  */
4278
- const Lr = new ae(5e3, 15e3), Mr = "__/auth/iframe", Ur = "emulator/auth/iframe", Dr = {
4287
+ const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe", Fr = {
4279
4288
  style: {
4280
4289
  position: "absolute",
4281
4290
  top: "-100px",
@@ -4284,13 +4293,13 @@ const Lr = new ae(5e3, 15e3), Mr = "__/auth/iframe", Ur = "emulator/auth/iframe"
4284
4293
  },
4285
4294
  "aria-hidden": "true",
4286
4295
  tabindex: "-1"
4287
- }, xr = /* @__PURE__ */ new Map([
4296
+ }, Vr = /* @__PURE__ */ new Map([
4288
4297
  ["identitytoolkit.googleapis.com", "p"],
4289
4298
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4290
4299
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4291
4300
  // test
4292
4301
  ]);
4293
- function Fr(n) {
4302
+ function $r(n) {
4294
4303
  const e = n.config;
4295
4304
  u(
4296
4305
  e.authDomain,
@@ -4298,17 +4307,17 @@ function Fr(n) {
4298
4307
  "auth-domain-config-required"
4299
4308
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4300
4309
  );
4301
- const t = e.emulator ? je(e, Ur) : `https://${n.config.authDomain}/${Mr}`, i = {
4310
+ const t = e.emulator ? je(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
4302
4311
  apiKey: e.apiKey,
4303
4312
  appName: n.name,
4304
4313
  v: se
4305
- }, r = xr.get(n.config.apiHost);
4314
+ }, r = Vr.get(n.config.apiHost);
4306
4315
  r && (i.eid = r);
4307
4316
  const s = n._getFrameworks();
4308
4317
  return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
4309
4318
  }
4310
- async function Vr(n) {
4311
- const e = await Or(n), t = E().gapi;
4319
+ async function Hr(n) {
4320
+ const e = await Mr(n), t = E().gapi;
4312
4321
  return u(
4313
4322
  t,
4314
4323
  n,
@@ -4316,9 +4325,9 @@ async function Vr(n) {
4316
4325
  /* AuthErrorCode.INTERNAL_ERROR */
4317
4326
  ), e.open({
4318
4327
  where: document.body,
4319
- url: Fr(n),
4328
+ url: $r(n),
4320
4329
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4321
- attributes: Dr,
4330
+ attributes: Fr,
4322
4331
  dontclear: !0
4323
4332
  }, (i) => new Promise(async (r, s) => {
4324
4333
  await i.restyle({
@@ -4331,7 +4340,7 @@ async function Vr(n) {
4331
4340
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4332
4341
  ), c = E().setTimeout(() => {
4333
4342
  s(o);
4334
- }, Lr.get());
4343
+ }, Ur.get());
4335
4344
  function a() {
4336
4345
  E().clearTimeout(c), r(i);
4337
4346
  }
@@ -4356,12 +4365,12 @@ async function Vr(n) {
4356
4365
  * See the License for the specific language governing permissions and
4357
4366
  * limitations under the License.
4358
4367
  */
4359
- const $r = {
4368
+ const jr = {
4360
4369
  location: "yes",
4361
4370
  resizable: "yes",
4362
4371
  statusbar: "yes",
4363
4372
  toolbar: "no"
4364
- }, Hr = 500, jr = 600, Wr = "_blank", Br = "http://localhost";
4373
+ }, Wr = 500, Br = 600, Gr = "_blank", zr = "http://localhost";
4365
4374
  class pt {
4366
4375
  constructor(e) {
4367
4376
  this.window = e, this.associatedEvent = null;
@@ -4374,19 +4383,19 @@ class pt {
4374
4383
  }
4375
4384
  }
4376
4385
  }
4377
- function Gr(n, e, t, i = Hr, r = jr) {
4386
+ function qr(n, e, t, i = Wr, r = Br) {
4378
4387
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4379
4388
  let c = "";
4380
- const a = Object.assign(Object.assign({}, $r), {
4389
+ const a = Object.assign(Object.assign({}, jr), {
4381
4390
  width: i.toString(),
4382
4391
  height: r.toString(),
4383
4392
  top: s,
4384
4393
  left: o
4385
4394
  }), l = w().toLowerCase();
4386
- t && (c = Ft(l) ? Wr : t), xt(l) && (e = e || Br, a.scrollbars = "yes");
4387
- const d = Object.entries(a).reduce((f, [y, _]) => `${f}${y}=${_},`, "");
4388
- if (ki(l) && c !== "_self")
4389
- return zr(e || "", c), new pt(null);
4395
+ t && (c = Ft(l) ? Gr : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
4396
+ const d = Object.entries(a).reduce((y, [T, h]) => `${y}${T}=${h},`, "");
4397
+ if (Ei(l) && c !== "_self")
4398
+ return Kr(e || "", c), new pt(null);
4390
4399
  const m = window.open(e || "", c, d);
4391
4400
  u(
4392
4401
  m,
@@ -4400,7 +4409,7 @@ function Gr(n, e, t, i = Hr, r = jr) {
4400
4409
  }
4401
4410
  return new pt(m);
4402
4411
  }
4403
- function zr(n, e) {
4412
+ function Kr(n, e) {
4404
4413
  const t = document.createElement("a");
4405
4414
  t.href = n, t.target = e;
4406
4415
  const i = document.createEvent("MouseEvent");
@@ -4422,7 +4431,7 @@ function zr(n, e) {
4422
4431
  * See the License for the specific language governing permissions and
4423
4432
  * limitations under the License.
4424
4433
  */
4425
- const qr = "__/auth/handler", Kr = "emulator/auth/handler", Jr = encodeURIComponent("fac");
4434
+ const Jr = "__/auth/handler", Yr = "emulator/auth/handler", Xr = encodeURIComponent("fac");
4426
4435
  async function mt(n, e, t, i, r, s) {
4427
4436
  u(
4428
4437
  n.config.authDomain,
@@ -4444,7 +4453,7 @@ async function mt(n, e, t, i, r, s) {
4444
4453
  eventId: r
4445
4454
  };
4446
4455
  if (e instanceof qt) {
4447
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Ln(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4456
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Un(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4448
4457
  for (const [d, m] of Object.entries({}))
4449
4458
  o[d] = m;
4450
4459
  }
@@ -4456,11 +4465,11 @@ async function mt(n, e, t, i, r, s) {
4456
4465
  const c = o;
4457
4466
  for (const d of Object.keys(c))
4458
4467
  c[d] === void 0 && delete c[d];
4459
- const a = await n._getAppCheckToken(), l = a ? `#${Jr}=${encodeURIComponent(a)}` : "";
4460
- return `${Yr(n)}?${oe(c).slice(1)}${l}`;
4468
+ const a = await n._getAppCheckToken(), l = a ? `#${Xr}=${encodeURIComponent(a)}` : "";
4469
+ return `${Qr(n)}?${oe(c).slice(1)}${l}`;
4461
4470
  }
4462
- function Yr({ config: n }) {
4463
- return n.emulator ? je(n, Kr) : `https://${n.authDomain}/${qr}`;
4471
+ function Qr({ config: n }) {
4472
+ return n.emulator ? je(n, Yr) : `https://${n.authDomain}/${Jr}`;
4464
4473
  }
4465
4474
  /**
4466
4475
  * @license
@@ -4479,9 +4488,9 @@ function Yr({ config: n }) {
4479
4488
  * limitations under the License.
4480
4489
  */
4481
4490
  const Ne = "webStorageSupport";
4482
- class Xr {
4491
+ class Zr {
4483
4492
  constructor() {
4484
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = wr, this._overrideRedirectResult = vr;
4493
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = kr, this._overrideRedirectResult = yr;
4485
4494
  }
4486
4495
  // Wrapping in async even though we don't await anywhere in order
4487
4496
  // to make sure errors are raised as promise rejections
@@ -4489,12 +4498,12 @@ class Xr {
4489
4498
  var s;
4490
4499
  L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4491
4500
  const o = await mt(e, t, i, Me(), r);
4492
- return Gr(e, o, ze());
4501
+ return qr(e, o, ze());
4493
4502
  }
4494
4503
  async _openRedirect(e, t, i, r) {
4495
4504
  await this._originValidation(e);
4496
4505
  const s = await mt(e, t, i, Me(), r);
4497
- return er(s), new Promise(() => {
4506
+ return nr(s), new Promise(() => {
4498
4507
  });
4499
4508
  }
4500
4509
  _initialize(e) {
@@ -4509,7 +4518,7 @@ class Xr {
4509
4518
  }), i;
4510
4519
  }
4511
4520
  async initAndGetManager(e) {
4512
- const t = await Vr(e), i = new kr(e);
4521
+ const t = await Hr(e), i = new Er(e);
4513
4522
  return t.register("authEvent", (r) => (u(
4514
4523
  r == null ? void 0 : r.authEvent,
4515
4524
  e,
@@ -4533,13 +4542,13 @@ class Xr {
4533
4542
  }
4534
4543
  _originValidation(e) {
4535
4544
  const t = e._key();
4536
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ar(e)), this.originValidationPromises[t];
4545
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
4537
4546
  }
4538
4547
  get _shouldInitProactively() {
4539
4548
  return Wt() || Be() || ke();
4540
4549
  }
4541
4550
  }
4542
- const Qr = Xr;
4551
+ const es = Zr;
4543
4552
  var gt = "@firebase/auth", _t = "1.7.5";
4544
4553
  /**
4545
4554
  * @license
@@ -4557,7 +4566,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4557
4566
  * See the License for the specific language governing permissions and
4558
4567
  * limitations under the License.
4559
4568
  */
4560
- class Zr {
4569
+ class ts {
4561
4570
  constructor(e) {
4562
4571
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4563
4572
  }
@@ -4608,7 +4617,7 @@ class Zr {
4608
4617
  * See the License for the specific language governing permissions and
4609
4618
  * limitations under the License.
4610
4619
  */
4611
- function es(n) {
4620
+ function ns(n) {
4612
4621
  switch (n) {
4613
4622
  case "Node":
4614
4623
  return "node";
@@ -4624,7 +4633,7 @@ function es(n) {
4624
4633
  return;
4625
4634
  }
4626
4635
  }
4627
- function ts(n) {
4636
+ function is(n) {
4628
4637
  Ze(new et(
4629
4638
  "auth",
4630
4639
  (e, { options: t }) => {
@@ -4638,8 +4647,8 @@ function ts(n) {
4638
4647
  tokenApiHost: "securetoken.googleapis.com",
4639
4648
  apiScheme: "https",
4640
4649
  sdkClientVersion: Bt(n)
4641
- }, l = new Ci(i, r, s, a);
4642
- return Di(l, t), l;
4650
+ }, l = new Oi(i, r, s, a);
4651
+ return Fi(l, t), l;
4643
4652
  },
4644
4653
  "PUBLIC"
4645
4654
  /* ComponentType.PUBLIC */
@@ -4658,14 +4667,14 @@ function ts(n) {
4658
4667
  "auth"
4659
4668
  /* _ComponentName.AUTH */
4660
4669
  ).getImmediate());
4661
- return ((i) => new Zr(i))(t);
4670
+ return ((i) => new ts(i))(t);
4662
4671
  },
4663
4672
  "PRIVATE"
4664
4673
  /* ComponentType.PRIVATE */
4665
4674
  ).setInstantiationMode(
4666
4675
  "EXPLICIT"
4667
4676
  /* InstantiationMode.EXPLICIT */
4668
- )), Le(gt, _t, es(n)), Le(gt, _t, "esm2017");
4677
+ )), Le(gt, _t, ns(n)), Le(gt, _t, "esm2017");
4669
4678
  }
4670
4679
  /**
4671
4680
  * @license
@@ -4683,11 +4692,11 @@ function ts(n) {
4683
4692
  * See the License for the specific language governing permissions and
4684
4693
  * limitations under the License.
4685
4694
  */
4686
- const ns = 5 * 60, is = kt("authIdTokenMaxAge") || ns;
4695
+ const rs = 5 * 60, ss = kt("authIdTokenMaxAge") || rs;
4687
4696
  let vt = null;
4688
- const rs = (n) => async (e) => {
4697
+ const os = (n) => async (e) => {
4689
4698
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4690
- if (i && i > is)
4699
+ if (i && i > ss)
4691
4700
  return;
4692
4701
  const r = t == null ? void 0 : t.token;
4693
4702
  vt !== r && (vt = r, await fetch(n, {
@@ -4697,33 +4706,33 @@ const rs = (n) => async (e) => {
4697
4706
  } : {}
4698
4707
  }));
4699
4708
  };
4700
- function ss(n = Pn()) {
4709
+ function as(n = Nn()) {
4701
4710
  const e = bt(n, "auth");
4702
4711
  if (e.isInitialized())
4703
4712
  return e.getImmediate();
4704
- const t = Ui(n, {
4705
- popupRedirectResolver: Qr,
4713
+ const t = xi(n, {
4714
+ popupRedirectResolver: es,
4706
4715
  persistence: [
4707
- lr,
4708
- Xi,
4716
+ dr,
4717
+ Zi,
4709
4718
  Qt
4710
4719
  ]
4711
4720
  }), i = kt("authTokenSyncURL");
4712
4721
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4713
4722
  const s = new URL(i, location.origin);
4714
4723
  if (location.origin === s.origin) {
4715
- const o = rs(s.toString());
4716
- qi(t, o, () => o(t.currentUser)), zi(t, (c) => o(c));
4724
+ const o = os(s.toString());
4725
+ Ji(t, o, () => o(t.currentUser)), Ki(t, (c) => o(c));
4717
4726
  }
4718
4727
  }
4719
- const r = An("auth");
4720
- return r && xi(t, `http://${r}`), t;
4728
+ const r = Cn("auth");
4729
+ return r && Vi(t, `http://${r}`), t;
4721
4730
  }
4722
- function os() {
4731
+ function cs() {
4723
4732
  var n, e;
4724
4733
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4725
4734
  }
4726
- Ni({
4735
+ Li({
4727
4736
  loadJS(n) {
4728
4737
  return new Promise((e, t) => {
4729
4738
  const i = document.createElement("script");
@@ -4733,79 +4742,79 @@ Ni({
4733
4742
  /* AuthErrorCode.INTERNAL_ERROR */
4734
4743
  );
4735
4744
  s.customData = r, t(s);
4736
- }, i.type = "text/javascript", i.charset = "UTF-8", os().appendChild(i);
4745
+ }, i.type = "text/javascript", i.charset = "UTF-8", cs().appendChild(i);
4737
4746
  });
4738
4747
  },
4739
4748
  gapiScript: "https://apis.google.com/js/api.js",
4740
4749
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4741
4750
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4742
4751
  });
4743
- ts(
4752
+ is(
4744
4753
  "Browser"
4745
4754
  /* ClientPlatform.BROWSER */
4746
4755
  );
4747
- var as = { 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" }, cs = { 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/" };
4748
- const ls = {
4756
+ 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/" };
4757
+ const ds = {
4749
4758
  key: 2,
4750
4759
  class: "h-full w-full"
4751
- }, us = ["src"], As = /* @__PURE__ */ xe({
4760
+ }, hs = ["src"], Cs = /* @__PURE__ */ xe({
4752
4761
  __name: "App",
4753
4762
  setup(n) {
4754
- const e = ge(), t = pn(), i = mn(), r = _n(), s = vn(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge();
4763
+ const e = ge(), t = pn(), i = mn(), r = In(), s = yn(), o = wt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = ge();
4755
4764
  ie(
4756
4765
  () => {
4757
- var h;
4758
- return (h = l.value) == null ? void 0 : h._id;
4766
+ var f;
4767
+ return (f = l.value) == null ? void 0 : f._id;
4759
4768
  },
4760
- (h) => {
4761
- h && gn(h);
4769
+ (f) => {
4770
+ f && vn(f);
4762
4771
  },
4763
4772
  { immediate: !0 }
4764
4773
  );
4765
- const d = ee(!1), m = ne(() => i.version), f = ne(() => {
4766
- const h = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
4767
- return `${cs.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${h}&token=${I}`;
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 `${us.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${f}&token=${g}`;
4768
4777
  });
4769
- async function y() {
4770
- if (Mn().length) {
4778
+ async function T() {
4779
+ if (Dn().length) {
4771
4780
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4772
4781
  return;
4773
4782
  }
4774
- const h = Un(as.firebase), I = await fn.getCustomToken(), T = ss();
4775
- await Gi(T, I), Dn(h), console.log("initFirebase", h);
4783
+ const f = xn(ls.firebase), g = await fn.getCustomToken(), v = as();
4784
+ await qi(v, g), Fn(f), console.log("initFirebase", f);
4776
4785
  }
4777
- const _ = async () => {
4778
- d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent($n) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
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(jn) : e.hideSidebarToggle(!0), await T(), a.value = !0, d.value = !0;
4779
4788
  };
4780
4789
  return un(() => {
4781
- if (xn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4782
- const h = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4783
- h == null || h.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4790
+ if (Vn.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);
4784
4793
  }
4785
- l.value != null && (console.log("App mounted, forceRerender"), _());
4794
+ l.value != null && (console.log("App mounted, forceRerender"), h());
4786
4795
  }), ie(
4787
4796
  () => e.currentBusiness.value,
4788
- async (h, I) => {
4789
- console.log("Current business changed"), h != null && h._id != I._id && (console.log("forceRerender when business changes", h, I), _());
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());
4790
4799
  }
4791
- ), (h, I) => (j(), me(It, null, [
4792
- g(d) && g(m) === "v2" ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
4793
- g(d) && g(m) === "v2" && g(c) ? (j(), Oe(ri, { key: 1 })) : Pe("", !0),
4794
- g(d) && g(m) !== "v2" ? (j(), me("div", ls, [
4795
- S(Tn, {
4796
- json: { url: g(f) }
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(oi, { key: 1 })) : Pe("", !0),
4803
+ _(d) && _(m) !== "v2" ? (W(), me("div", ds, [
4804
+ S(bn, {
4805
+ json: { url: _(y) }
4797
4806
  }, null, 8, ["json"]),
4798
- v("iframe", {
4807
+ I("iframe", {
4799
4808
  allow: "clipboard-read; clipboard-write",
4800
4809
  frameBorder: "0",
4801
4810
  height: "100%",
4802
4811
  width: "100%",
4803
- src: g(f)
4804
- }, null, 8, us)
4812
+ src: _(y)
4813
+ }, null, 8, hs)
4805
4814
  ])) : Pe("", !0)
4806
4815
  ], 64));
4807
4816
  }
4808
4817
  });
4809
4818
  export {
4810
- As as default
4819
+ Cs as default
4811
4820
  };