@feedmepos/mf-connect 0.1.118-prod → 0.1.119-dev

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 (149) hide show
  1. package/README.md +12 -8
  2. package/dist/{App-BHcTqLff.js → App-z-u6skb5.js} +349 -337
  3. package/dist/AuditLogs-J0UJ3HJW.js +2016 -0
  4. package/dist/{Bin-DWhXJmHo.js → Bin-Dh9RAgYi.js} +8 -8
  5. package/dist/{Broadcast-Ct1DL8Pd.js → Broadcast-Dg6azPS8.js} +22 -21
  6. package/dist/{CampaignAnalytic-BSEKCM-4.js → CampaignAnalytic-CVB4dstO.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxRg2Wu8.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DYgBeT23.js} +8 -9
  8. package/dist/{Card-B7DwrAPH.js → Card-CY736Ul0.js} +22 -22
  9. package/dist/{Collections-BJw4JJq_.js → Collections-CdTKWkZZ.js} +197 -185
  10. package/dist/{Credit-BteIGXkp.js → Credit-CUhEKlMI.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CSFwIzOS.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CBwgeTXh.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BC4jTtVY.js +4439 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js → EffectSheet.vue_vue_type_style_index_0_lang-D5-EKqG9.js} +30 -30
  14. package/dist/{Experience-C_VQVfJX.js → Experience-CMp09U-6.js} +32 -31
  15. package/dist/{FileSaver.min-CMiQUZQE.js → FileSaver.min-Bq5McdmK.js} +1 -1
  16. package/dist/{Game-BiHMrMBF.js → Game-Dv5NvG-q.js} +19 -18
  17. package/dist/{GiftCardSetup-DtJIm6oI.js → GiftCardSetup-SO2Tk5In.js} +31 -31
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CgG5vHCp.js} +7 -7
  19. package/dist/{Goals-B7VjLMDT.js → Goals-BEwQP4cY.js} +4 -4
  20. package/dist/Grab-npbL7p7S.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js → ImageInput.vue_vue_type_script_setup_true_lang-BDGEqsWE.js} +1 -1
  22. package/dist/{Index-D_DIHKZG.js → Index-8F2LOWng.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DSwB0Ubn.js → LocationPicker.vue_vue_type_script_setup_true_lang-BwAjki7Y.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-dk8_eVwd.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DK4C0Y9j.js} +1 -1
  25. package/dist/{LoyaltyDashboard-DOgHeJdK.js → LoyaltyDashboard-rWm0b8cm.js} +15 -15
  26. package/dist/{MainLayout-CfYgoXLS.js → MainLayout-ezbgp2IQ.js} +1 -1
  27. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Bz2LGHUd.js → MainLayout.vue_vue_type_script_setup_true_lang-1QY5-U5y.js} +3 -3
  28. package/dist/{Marketing-B6TCrwaR.js → Marketing-DcWF4xVc.js} +4 -4
  29. package/dist/{MarketingMaterialEdit-Bu3a9NGj.js → MarketingMaterialEdit-C1bXj_hU.js} +214 -211
  30. package/dist/{Member-X51KrYXV.js → Member-CgDZqGsV.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CYU21JaO.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dh1_j06F.js} +39 -47
  32. package/dist/{MemberImportHistory-CHd9fx7E.js → MemberImportHistory-DT3QJ5se.js} +7 -7
  33. package/dist/{MemberList-D4L3bSlw.js → MemberList-Bm05jnbk.js} +103 -105
  34. package/dist/{MemberTransactions-CEgjfhnX.js → MemberTransactions-D90tTpdC.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js → MessageInput.vue_vue_type_script_setup_true_lang-jvgjOXXA.js} +12 -12
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-YZQkKG66.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CxL-Nh6i.js} +1 -1
  37. package/dist/{Mission-BEVtvY0-.js → Mission-D_l2eJI3.js} +22 -21
  38. package/dist/{Overview-DVoXXZ16.js → Overview-1AYfTeMD.js} +20 -20
  39. package/dist/{Overview-4QRkldza.js → Overview-BOZBnorP.js} +145 -144
  40. package/dist/{Point-BJmebaL9.js → Point-Cqy4XzeG.js} +22 -21
  41. package/dist/{Promotion-DWZZBofu.js → Promotion-9RDNbCgB.js} +137 -131
  42. package/dist/{Queue-DLdsyhCT.js → Queue-D2Eie_np.js} +45 -45
  43. package/dist/{Record-QOD3XELf.js → Record-e4B--FD8.js} +9 -9
  44. package/dist/{Review-CKmhyuqj.js → Review-DcUpSvc-.js} +2 -2
  45. package/dist/ReviewFacebookCallback-BhHdYb4X.js +225 -0
  46. package/dist/{ReviewGoogleCallback-CDriVQPZ.js → ReviewGoogleCallback-JPkamgo2.js} +5 -5
  47. package/dist/Reward-BQJw-R8V.js +444 -0
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-ZgYX2QwC.js → RewardGroup.vue_vue_type_script_setup_true_lang-D_DSQ8q2.js} +13 -13
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DfWjXTx3.js +1923 -0
  50. package/dist/{Segment-URdB0lnl.js → Segment-Cjdqsqqg.js} +303 -306
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-g-CJUZBF.js} +14 -14
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-lbH0b170.js} +4 -4
  53. package/dist/{Setting-BDIHH2Wk.js → Setting-B3HK4mtx.js} +159 -148
  54. package/dist/{SettingAdvertisements-CkJYZnIN.js → SettingAdvertisements-BQFJpdIm.js} +12 -12
  55. package/dist/Settings-DKWkiRuA.js +286 -0
  56. package/dist/{Store-CV0kYncl.js → Store-mp1LyXwr.js} +28 -28
  57. package/dist/{StoreRewards-30kSkAZ_.js → StoreRewards-DiSB6d7_.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BAYKqf-Y.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-be7ksTJw.js +7007 -0
  60. package/dist/{Tier-DiQSC3iv.js → Tier-CxaXh96q.js} +2575 -687
  61. package/dist/{Title-DixxpjAg.js → Title-Byz0TGpi.js} +95 -94
  62. package/dist/{Transaction-DQK4LUGD.js → Transaction-CNXulI3o.js} +2 -2
  63. package/dist/Upselling-Dto64bmE.js +1013 -0
  64. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CL-GKkuD.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C0bfVZf8.js} +26 -26
  65. package/dist/{Voucher-CSVlk_Hr.js → Voucher-CVw3E8Y4.js} +19 -19
  66. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CiSoy0Ky.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C0d3ktXA.js} +12 -12
  67. package/dist/{WhatsappAccount-CQYbv2Ew.js → WhatsappAccount-5vLzjaIV.js} +6 -6
  68. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CwGBRX-Q.js} +1 -1
  69. package/dist/{WhatsappBot-DdO9Bfvh.js → WhatsappBot-BWJbD7Gk.js} +6 -6
  70. package/dist/{WhatsappBotLogs-CjjWJGND.js → WhatsappBotLogs-C8gpmZyC.js} +6 -6
  71. package/dist/{WhatsappBotSettings-DYGx-kRr.js → WhatsappBotSettings-BvPnKHz-.js} +4 -4
  72. package/dist/WhatsappLayout-DJXhXeXf.js +21 -0
  73. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BxUYjrWQ.js} +3 -3
  74. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js → ZodTextField.vue_vue_type_script_setup_true_lang-CkjzVKif.js} +2 -2
  75. package/dist/{app-CqQeNnGq.js → app-BF1vds2J.js} +11496 -10741
  76. package/dist/app.js +4 -3
  77. package/dist/{base.export-Dls5LQeu.js → base.export-B7FU8J4P.js} +2 -2
  78. package/dist/{business-gvLSQklz.js → business-DkUMhys1.js} +1 -1
  79. package/dist/{campaign-Cd6GmA4U.js → campaign-0AgQP43B.js} +34 -28
  80. package/dist/{campaign-BqazvOUj.js → campaign-C9cVkGMF.js} +121 -94
  81. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
  82. package/dist/campaign.fn-N6rJeDUx.js +776 -0
  83. package/dist/{collection.fn-CERMsFPh.js → collection.fn-B_QnW0e3.js} +2 -2
  84. package/dist/{currency-IkiKiNg1.js → currency-XQmondpC.js} +1 -1
  85. package/dist/duplicateCampaign-CvQRWP-Z.js +51 -0
  86. package/dist/{effect-j_T62HBN.js → effect-Mwn1x6qN.js} +1 -1
  87. package/dist/{email-addresses-CN1kPlEj.js → email-addresses-DQQAi6-l.js} +2 -2
  88. package/dist/{feature-flag-DDfyOLsv.js → feature-flag-B1VMMZMd.js} +144 -144
  89. package/dist/google-BQK68wbe.js +5 -0
  90. package/dist/{helper-DVUe13eh.js → helper-D1R8vyjc.js} +1 -1
  91. package/dist/{index-fNYUguDQ.js → index-BU6CU5MP.js} +389 -232
  92. package/dist/{index-DALsfLV7.js → index-Bm43wR8L.js} +2699 -2613
  93. package/dist/{index-jS16KX9p.js → index-Bym-ZIcv.js} +1 -1
  94. package/dist/{index-BvoOJdfc.js → index-C9Nbb7wc.js} +2 -2
  95. package/dist/{index-UJHdDEG1.js → index-CLlGMbnP.js} +1 -1
  96. package/dist/{index-BvkqHehI.js → index-CPB7j8Wn.js} +10 -10
  97. package/dist/{index-COuLtOaw.js → index-CRAuAyO3.js} +1 -1
  98. package/dist/{index-k7FFxt_M.js → index-Cg8Z5eYT.js} +2 -2
  99. package/dist/{index-CPyK4a5J.js → index-CzE9ZPDV.js} +4 -4
  100. package/dist/{index-Cjy0SXCn.js → index-D5BwAYuA.js} +197 -197
  101. package/dist/{index-ep_Kxxid.js → index-DMfCzjiA.js} +2 -2
  102. package/dist/{index-DMiaWY0s.js → index-DQnCdGWe.js} +682 -581
  103. package/dist/{index-D_1pnadB.js → index-DaUhJ6xV.js} +29 -15
  104. package/dist/{index-9RBtEPPj.js → index-P8DDRVa3.js} +1 -1
  105. package/dist/{index-C_SaKemI.js → index-Rs75lw-x.js} +1 -1
  106. package/dist/{index-C-IajuP1.js → index-ZYrey0SM.js} +10 -10
  107. package/dist/{index-CWGbeg5X.js → index-eR9mqPPV.js} +19 -6
  108. package/dist/{index-BmIfGArh.js → index-mOGrVzUV.js} +3 -3
  109. package/dist/{index-lzQ6ehOk.js → index-ug7pxPAX.js} +608 -251
  110. package/dist/{index-DzbVgUEP.js → index-ytSMcSMt.js} +1 -1
  111. package/dist/{index.esm2017-vJKhLfdu.js → index.esm2017-Gkctw9Mb.js} +111 -111
  112. package/dist/{loading-jZV2Dm--.js → loading-kUQqT44G.js} +1 -1
  113. package/dist/{lodash-C2pLek0l.js → lodash-B4AjV7YZ.js} +1 -1
  114. package/dist/{member-import-BKI7soRD.js → member-import-CwDUG5mj.js} +1 -1
  115. package/dist/{membership-smdlFpPr.js → membership-BI6U8-eM.js} +2 -2
  116. package/dist/{money-5XyTnYwW.js → money-Bum-AbB7.js} +1 -1
  117. package/dist/{number-DHU9qJJQ.js → number-uAoNqG-N.js} +1 -1
  118. package/dist/objectid-CPTCMH2h.js +145 -0
  119. package/dist/{onboarding-C_5pyGx-.js → onboarding-wtYzQipv.js} +36 -36
  120. package/dist/{onboardingSetup-Bd1V-Ipy.js → onboardingSetup-DlYM-oqd.js} +2 -2
  121. package/dist/{plugins-D1Ru-da5.js → plugins-BGyTPNfc.js} +3 -3
  122. package/dist/{reward-BqPl68Xk.js → reward-D0xtG-bp.js} +1 -1
  123. package/dist/{rule-WBrRXwL-.js → rule-BAA5-vRj.js} +572 -492
  124. package/dist/style.css +1 -1
  125. package/dist/template-DKgW9ul3.js +188 -0
  126. package/dist/{timezone-O4qrCDcK.js → timezone-Bbw2OeEP.js} +1 -1
  127. package/dist/{transaction.fn-CY_F8Nb8.js → transaction.fn-DZdNjP_E.js} +2 -2
  128. package/dist/{trigger-D-vySeIB.js → trigger-BpotFb7G.js} +9 -9
  129. package/dist/{useMarketingMaterialActions-kA6SLHy_.js → useMarketingMaterialActions-CQ1M0N9c.js} +4 -4
  130. package/dist/{usePagination-AYE_RJH2.js → usePagination-qALFI_Td.js} +1 -1
  131. package/dist/{user-DJcMkYXP.js → user-X_94TRIK.js} +1 -1
  132. package/dist/vue-i18n-CRFpVnMa.js +2365 -0
  133. package/dist/{xlsx--s3hBdDk.js → xlsx-DW48eXDT.js} +224 -224
  134. package/dist/{zod-IpHRbxaJ.js → zod-BAP9II5C.js} +1 -1
  135. package/package.json +8 -3
  136. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js +0 -3496
  137. package/dist/ReviewFacebookCallback-C6DlaJ_j.js +0 -238
  138. package/dist/Reward-DftoZfPN.js +0 -442
  139. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js +0 -1884
  140. package/dist/Settings-9gaegvYJ.js +0 -179
  141. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js +0 -1265
  142. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js +0 -142
  143. package/dist/WhatsappLayout-B6k_79Kl.js +0 -21
  144. package/dist/campaign.fn-C0oMb1fs.js +0 -776
  145. package/dist/google-C3S8u0mT.js +0 -4
  146. package/dist/objectid-jT5g6pGt.js +0 -145
  147. package/dist/rule-builder-DAlSbaWh.js +0 -102
  148. package/dist/template-DDquG4Xc.js +0 -236
  149. package/dist/vue-i18n-kXHiDb_1.js +0 -2365
@@ -1,132 +1,144 @@
1
- import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y, watch as ie, resolveComponent as ee, openBlock as W, createElementBlock as me, createVNode as S, unref as _, createElementVNode as I, toDisplayString as R, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
1
+ import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y, watch as ie, resolveComponent as ee, openBlock as j, 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-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";
5
+ import { u as mn } from "./business-DkUMhys1.js";
6
+ import { u as gn, l as _n } from "./feature-flag-B1VMMZMd.js";
7
+ import "./index-Bym-ZIcv.js";
8
+ import { components as W, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
9
+ import { u as Tt } from "./vue-i18n-CRFpVnMa.js";
10
+ import { m as yn } from "./index-ytSMcSMt.js";
11
+ import { C as Xe } from "./timezone-Bbw2OeEP.js";
12
+ import { u as wn } from "./onboarding-wtYzQipv.js";
13
+ import { R as f, A as Tn, a as Qe } from "./app-BF1vds2J.js";
14
+ import { J as kn } from "./JsonViewer-v8_C7l5N.js";
15
+ import { r as Le, L as bn, g as kt, i as En, a as Sn, _ as Ze, C as et, b as Rn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Pn, j as Cn, k as Et, l as w, m as Nn, F as Ve, n as On, q as oe, o as Ln, p as Mn, s as Un, t as Dn, u as xn } from "./index.esm2017-Gkctw9Mb.js";
16
16
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
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({
17
+ import { S as tt, c as Fn } from "./index-CPB7j8Wn.js";
18
+ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Hn = /* @__PURE__ */ xe({
19
19
  __name: "NavigationTab",
20
20
  setup(n) {
21
- const { t: e, locale: t } = Tt(), i = Tn(), r = _n(), s = te(), o = [
21
+ const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
22
22
  {
23
23
  label: e("connect.navigation.analytic"),
24
- value: p["$connect-ANALYTIC"]
24
+ value: f["$connect-ANALYTIC"]
25
+ },
26
+ {
27
+ label: e("connect.navigation.upselling"),
28
+ value: f["$connect-UPSELLING"]
25
29
  },
26
30
  {
27
31
  label: e("connect.navigation.campaign"),
28
- value: p["$connect-CAMPAIGN"],
32
+ value: f["$connect-CAMPAIGN"],
29
33
  children: [
30
34
  {
31
35
  label: e("connect.navigation.promotion"),
32
- value: p["$connect-CAMPAIGN_PROMOTION"]
36
+ value: f["$connect-CAMPAIGN_PROMOTION"]
33
37
  },
34
38
  {
35
39
  label: e("connect.navigation.voucher"),
36
- value: p["$connect-CAMPAIGN_VOUCHER"]
40
+ value: f["$connect-CAMPAIGN_VOUCHER"]
37
41
  },
38
42
  {
39
43
  label: e("connect.navigation.broadcast"),
40
- value: p["$connect-CAMPAIGN_BROADCAST"]
44
+ value: f["$connect-CAMPAIGN_BROADCAST"]
45
+ },
46
+ {
47
+ label: e("connect.navigation.grab"),
48
+ value: f["$connect-CAMPAIGN_GRAB"]
41
49
  }
42
50
  ]
43
51
  },
44
52
  {
45
53
  label: e("connect.navigation.program"),
46
- value: p["$connect-PROGRAM"],
54
+ value: f["$connect-PROGRAM"],
47
55
  children: [
48
56
  {
49
57
  label: e("connect.navigation.tier"),
50
- value: p["$connect-PROGRAM_TIER"]
58
+ value: f["$connect-PROGRAM_TIER"]
51
59
  },
52
60
  {
53
61
  label: e("connect.navigation.title"),
54
- value: p["$connect-PROGRAM_TITLE"]
62
+ value: f["$connect-PROGRAM_TITLE"]
55
63
  },
56
64
  {
57
65
  label: e("connect.navigation.experience"),
58
- value: p["$connect-PROGRAM_EXPERIENCE"]
66
+ value: f["$connect-PROGRAM_EXPERIENCE"]
59
67
  },
60
68
  {
61
69
  label: e("connect.navigation.point"),
62
- value: p["$connect-PROGRAM_POINT"],
63
- badge: () => U(j.FmPill, { variant: "premium" })
70
+ value: f["$connect-PROGRAM_POINT"],
71
+ badge: () => U(W.FmPill, { variant: "premium" })
64
72
  },
65
73
  {
66
74
  label: e("connect.navigation.credit"),
67
- value: p["$connect-PROGRAM_CREDIT"]
75
+ value: f["$connect-PROGRAM_CREDIT"]
68
76
  },
69
77
  {
70
78
  label: e("connect.navigation.game"),
71
- value: p["$connect-PROGRAM_GAME"],
72
- badge: () => U(j.FmPill, { variant: "premium" })
79
+ value: f["$connect-PROGRAM_GAME"],
80
+ badge: () => U(W.FmPill, { variant: "premium" })
73
81
  },
74
82
  {
75
83
  label: "Mission",
76
- value: p["$connect-PROGRAM_MISSION"]
84
+ value: f["$connect-PROGRAM_MISSION"]
77
85
  }
78
86
  ]
79
87
  },
80
88
  {
81
89
  label: e("connect.navigation.loyalty"),
82
- value: p["$connect-LOYALTY"],
90
+ value: f["$connect-LOYALTY"],
83
91
  children: [
84
92
  {
85
93
  label: e("connect.navigation.member"),
86
- value: p["$connect-LOYALTY_MEMBER_LIST"]
94
+ value: f["$connect-LOYALTY_MEMBER_LIST"]
87
95
  },
88
96
  {
89
97
  label: e("connect.navigation.segments"),
90
- value: p["$connect-LOYALTY_SEGMENT"],
91
- badge: () => U(j.FmPill, { variant: "premium" })
98
+ value: f["$connect-LOYALTY_SEGMENT"],
99
+ badge: () => U(W.FmPill, { variant: "premium" })
92
100
  },
93
101
  {
94
102
  label: e("connect.navigation.card"),
95
- value: p["$connect-LOYALTY_CARD"],
96
- badge: () => U(j.FmPill, { variant: "premium" })
103
+ value: f["$connect-LOYALTY_CARD"],
104
+ badge: () => U(W.FmPill, { variant: "premium" })
97
105
  }
98
106
  ]
99
107
  },
100
108
  {
101
109
  label: e("connect.navigation.whatsappBot"),
102
- value: p["$connect-WHATSAPP"],
103
- badge: () => U(j.FmPill, { variant: "beta" })
110
+ value: f["$connect-WHATSAPP"],
111
+ badge: () => U(W.FmPill, { variant: "beta" })
104
112
  },
105
113
  {
106
114
  label: e("connect.navigation.referral"),
107
- value: p["$connect-REFERRAL"],
108
- badge: () => U(j.FmPill, { variant: "premium" })
115
+ value: f["$connect-REFERRAL"],
116
+ badge: () => U(W.FmPill, { variant: "premium" })
109
117
  },
110
118
  {
111
119
  label: e("connect.navigation.store"),
112
- value: p["$connect-STORE"]
120
+ value: f["$connect-STORE"]
113
121
  },
114
122
  {
115
123
  label: e("connect.navigation.transaction"),
116
- value: p["$connect-TRANSACTION"]
124
+ value: f["$connect-TRANSACTION"]
117
125
  },
118
126
  {
119
127
  label: e("connect.navigation.marketingMaterials"),
120
- value: p["$connect-MARKETING"]
128
+ value: f["$connect-MARKETING"]
129
+ },
130
+ {
131
+ label: e("connect.navigation.auditLogs"),
132
+ value: f["$connect-AUDIT_LOGS"]
121
133
  },
122
134
  {
123
135
  label: e("connect.navigation.review"),
124
- value: p["$connect-REVIEW"]
136
+ value: f["$connect-REVIEW"]
125
137
  },
126
138
  {
127
139
  label: e("connect.navigation.goals"),
128
- value: p["$connect-GOALS"],
129
- badge: () => i.goalsRemaining > 0 ? U(j.FmBadge, {
140
+ value: f["$connect-GOALS"],
141
+ badge: () => i.goalsRemaining > 0 ? U(W.FmBadge, {
130
142
  variant: "numeric",
131
143
  inline: !0,
132
144
  value: i.goalsRemaining
@@ -134,17 +146,17 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
134
146
  },
135
147
  {
136
148
  label: e("connect.navigation.setting"),
137
- value: p["$connect-SETTING"]
149
+ value: f["$connect-SETTING"]
138
150
  },
139
151
  {
140
152
  label: e("connect.navigation.bin"),
141
- value: p["$connect-BIN"]
153
+ value: f["$connect-BIN"]
142
154
  }
143
155
  ], c = Y(
144
156
  () => o.filter(
145
- (h) => h.value !== p["$connect-WHATSAPP"] || r(gn.whatsappBot) === "on"
157
+ (h) => (h.value !== f["$connect-WHATSAPP"] || r() === "on") && (h.value !== f["$connect-UPSELLING"] || m.namespace.value === "dev" && m.currentCountry.value === "MY")
146
158
  )
147
- ), a = yt(), l = wt(), d = o.reduce((h, f) => [...(f.children ?? []).map((g) => g.value), ...h, f.value], []), m = ge(), y = Y(() => {
159
+ ), a = yt(), l = wt(), d = o.reduce((h, p) => [...(p.children ?? []).map((g) => g.value), ...h, p.value], []), m = ge(), y = Y(() => {
148
160
  const h = m.currentCountry.value || "MY";
149
161
  return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
150
162
  });
@@ -171,19 +183,19 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
171
183
  async function T(h) {
172
184
  await a.push({ name: h });
173
185
  }
174
- return (h, f) => {
186
+ return (h, p) => {
175
187
  var v;
176
188
  const g = ee("FmCollapsibleTabs");
177
- return W(), me("div", $n, [
189
+ return j(), me("div", Vn, [
178
190
  S(g, {
179
191
  class: "border-fm-color-neutral-gray-100 border-r px-4",
180
192
  "model-value": (v = _(s)) == null ? void 0 : v.toString(),
181
193
  items: _(c),
182
194
  "onUpdate:modelValue": T
183
195
  }, null, 8, ["model-value", "items"]),
184
- I("div", Hn, [
196
+ I("div", $n, [
185
197
  I("div", null, "Timezone: " + R(_(y).split("/")[1].replace("_", " ")), 1),
186
- I("div", null, "(UTC" + R(_(wn).tz(_(y)).format("Z")) + ")", 1)
198
+ I("div", null, "(UTC" + R(_(yn).tz(_(y)).format("Z")) + ")", 1)
187
199
  ])
188
200
  ]);
189
201
  };
@@ -196,13 +208,13 @@ function Wn() {
196
208
  return !1;
197
209
  }
198
210
  }
199
- function Bn() {
211
+ function jn() {
200
212
  try {
201
213
  localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
202
214
  } catch {
203
215
  }
204
216
  }
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({
217
+ const Gn = { 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" }, zn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, qn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Kn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Jn = { class: "flex flex-col gap-24 pb-8" }, Yn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Xn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Qn = { class: "fm-typo-en-body-lg-600" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ei = { class: "shrink-0" }, ti = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ni = { class: "flex w-full flex-col gap-12 px-[16px]" }, ii = { class: "flex flex-wrap items-center gap-12" }, ri = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, si = /* @__PURE__ */ xe({
206
218
  __name: "AiMarketingPromoDialog",
207
219
  setup(n) {
208
220
  let e = !1;
@@ -213,7 +225,7 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
213
225
  ], a = Y(() => {
214
226
  var h;
215
227
  const T = ((h = r.value) == null ? void 0 : h.permissions) ?? [];
216
- return kn(
228
+ return Tn(
217
229
  [
218
230
  {
219
231
  action: Qe.Action.manage,
@@ -234,14 +246,14 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
234
246
  { immediate: !0 }
235
247
  );
236
248
  async function m() {
237
- o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
249
+ o.value = !1, await i.push({ name: f["$connect-MARKETING"] });
238
250
  }
239
251
  function y() {
240
- Bn(), o.value = !1;
252
+ jn(), o.value = !1;
241
253
  }
242
254
  return (T, h) => {
243
- const f = ee("FmIcon"), g = ee("FmCard"), v = ee("FmButton"), M = ee("FmDialog");
244
- return W(), Oe(M, {
255
+ const p = ee("FmIcon"), g = ee("FmCard"), v = ee("FmButton"), M = ee("FmDialog");
256
+ return j(), Oe(M, {
245
257
  modelValue: o.value,
246
258
  "onUpdate:modelValue": h[0] || (h[0] = (k) => o.value = k),
247
259
  "min-width": "min(500px, calc(100% - 48px))",
@@ -251,21 +263,21 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
251
263
  }, {
252
264
  "dialog-header": Z(() => [
253
265
  I("div", Gn, [
254
- I("div", zn, [
255
- S(f, {
266
+ I("div", Bn, [
267
+ S(p, {
256
268
  name: "auto_awesome",
257
269
  size: "sm",
258
270
  color: "primary"
259
271
  }),
260
- I("span", qn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
272
+ I("span", zn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
261
273
  ]),
262
- I("h1", Kn, R(_(t)("connect.marketing.whatsNew.title")), 1),
263
- I("p", Jn, R(_(t)("connect.marketing.whatsNew.subtitle")), 1)
274
+ I("h1", qn, R(_(t)("connect.marketing.whatsNew.title")), 1),
275
+ I("p", Kn, R(_(t)("connect.marketing.whatsNew.subtitle")), 1)
264
276
  ])
265
277
  ]),
266
278
  "dialog-footer": Z(() => [
267
- I("div", ii, [
268
- I("div", ri, [
279
+ I("div", ni, [
280
+ I("div", ii, [
269
281
  S(v, {
270
282
  variant: "primary",
271
283
  size: "lg",
@@ -280,27 +292,27 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
280
292
  onClick: y
281
293
  }, null, 8, ["label"])
282
294
  ]),
283
- I("div", si, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
295
+ I("div", ri, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
284
296
  ])
285
297
  ]),
286
298
  default: Z(() => [
287
- I("div", Yn, [
288
- I("div", Xn, [
289
- (W(), me(It, null, ln(c, (k) => S(g, {
299
+ I("div", Jn, [
300
+ I("div", Yn, [
301
+ (j(), me(It, null, ln(c, (k) => S(g, {
290
302
  key: k.key,
291
303
  variant: "outlined",
292
304
  class: "!h-full flex flex-col gap-8 p-16"
293
305
  }, {
294
306
  default: Z(() => [
295
- I("div", Qn, [
296
- S(f, {
307
+ I("div", Xn, [
308
+ S(p, {
297
309
  name: k.icon,
298
310
  size: "md",
299
311
  color: "primary"
300
312
  }, null, 8, ["name"])
301
313
  ]),
302
- I("div", Zn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
303
- I("div", ei, R(_(t)(
314
+ I("div", Qn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
315
+ I("div", Zn, R(_(t)(
304
316
  `connect.marketing.whatsNew.benefits.${k.key}.description`
305
317
  )), 1)
306
318
  ]),
@@ -312,14 +324,14 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
312
324
  class: "flex items-start gap-12 p-16"
313
325
  }, {
314
326
  default: Z(() => [
315
- I("div", ti, [
316
- S(f, {
327
+ I("div", ei, [
328
+ S(p, {
317
329
  name: "lightbulb",
318
330
  size: "md",
319
331
  color: "primary"
320
332
  })
321
333
  ]),
322
- I("p", ni, R(_(t)("connect.marketing.whatsNew.callout")), 1)
334
+ I("p", ti, R(_(t)("connect.marketing.whatsNew.callout")), 1)
323
335
  ]),
324
336
  _: 1
325
337
  })
@@ -330,7 +342,7 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
330
342
  };
331
343
  }
332
344
  });
333
- var ai = "firebase", ci = "10.12.4";
345
+ var oi = "firebase", ai = "10.12.4";
334
346
  /**
335
347
  * @license
336
348
  * Copyright 2020 Google LLC
@@ -347,13 +359,13 @@ var ai = "firebase", ci = "10.12.4";
347
359
  * See the License for the specific language governing permissions and
348
360
  * limitations under the License.
349
361
  */
350
- Le(ai, ci, "app");
362
+ Le(oi, ai, "app");
351
363
  function Rt() {
352
364
  return {
353
365
  "dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
354
366
  };
355
367
  }
356
- const li = Rt, At = new Fe("auth", "Firebase", Rt());
368
+ const ci = Rt, At = new Fe("auth", "Firebase", Rt());
357
369
  /**
358
370
  * @license
359
371
  * Copyright 2020 Google LLC
@@ -370,8 +382,8 @@ const li = Rt, At = new Fe("auth", "Firebase", Rt());
370
382
  * See the License for the specific language governing permissions and
371
383
  * limitations under the License.
372
384
  */
373
- const _e = new En("@firebase/auth");
374
- function ui(n, ...e) {
385
+ const _e = new bn("@firebase/auth");
386
+ function li(n, ...e) {
375
387
  _e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
376
388
  }
377
389
  function de(n, ...e) {
@@ -400,7 +412,7 @@ function b(n, ...e) {
400
412
  return He(n, ...e);
401
413
  }
402
414
  function Pt(n, e, t) {
403
- const i = Object.assign(Object.assign({}, li()), { [e]: t });
415
+ const i = Object.assign(Object.assign({}, ci()), { [e]: t });
404
416
  return new Fe("auth", "Firebase", i).create(e, {
405
417
  appName: n.name
406
418
  });
@@ -446,7 +458,7 @@ function Me() {
446
458
  var n;
447
459
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
448
460
  }
449
- function di() {
461
+ function ui() {
450
462
  return nt() === "http:" || nt() === "https:";
451
463
  }
452
464
  function nt() {
@@ -469,15 +481,15 @@ function nt() {
469
481
  * See the License for the specific language governing permissions and
470
482
  * limitations under the License.
471
483
  */
472
- function hi() {
484
+ function di() {
473
485
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
474
486
  // This is especially true for Cordova apps which have unreliable
475
487
  // navigator.onLine behavior unless cordova-plugin-network-information is
476
488
  // installed which overwrites the native navigator.onLine value and
477
489
  // defines navigator.connection.
478
- (di() || An() || "connection" in navigator) ? navigator.onLine : !0;
490
+ (ui() || Rn() || "connection" in navigator) ? navigator.onLine : !0;
479
491
  }
480
- function fi() {
492
+ function hi() {
481
493
  if (typeof navigator > "u")
482
494
  return null;
483
495
  const n = navigator;
@@ -507,10 +519,10 @@ function fi() {
507
519
  */
508
520
  class ae {
509
521
  constructor(e, t) {
510
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = Sn() || Rn();
522
+ this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = En() || Sn();
511
523
  }
512
524
  get() {
513
- return hi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
525
+ return di() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
514
526
  }
515
527
  }
516
528
  /**
@@ -529,7 +541,7 @@ class ae {
529
541
  * See the License for the specific language governing permissions and
530
542
  * limitations under the License.
531
543
  */
532
- function je(n, e) {
544
+ function We(n, e) {
533
545
  L(n.emulator, "Emulator should always be set here");
534
546
  const { url: t } = n.emulator;
535
547
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
@@ -604,7 +616,7 @@ class Ct {
604
616
  * See the License for the specific language governing permissions and
605
617
  * limitations under the License.
606
618
  */
607
- const pi = {
619
+ const fi = {
608
620
  // Custom token errors.
609
621
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
610
622
  // This can only happen if the SDK sends a bad request.
@@ -695,7 +707,7 @@ const pi = {
695
707
  * See the License for the specific language governing permissions and
696
708
  * limitations under the License.
697
709
  */
698
- const mi = new ae(3e4, 6e4);
710
+ const pi = new ae(3e4, 6e4);
699
711
  function Te(n, e) {
700
712
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
701
713
  }
@@ -721,9 +733,9 @@ async function Q(n, e, t, i, r = {}) {
721
733
  }
722
734
  async function Nt(n, e, t) {
723
735
  n._canInitEmulator = !1;
724
- const i = Object.assign(Object.assign({}, pi), e);
736
+ const i = Object.assign(Object.assign({}, fi), e);
725
737
  try {
726
- const r = new gi(n), s = await Promise.race([
738
+ const r = new mi(n), s = await Promise.race([
727
739
  t(),
728
740
  r.promise
729
741
  ]);
@@ -760,16 +772,16 @@ async function Ot(n, e, t, i, r = {}) {
760
772
  }
761
773
  function Lt(n, e, t, i) {
762
774
  const r = `${e}${t}?${i}`;
763
- return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
775
+ return n.config.emulator ? We(n.config, r) : `${n.config.apiScheme}://${r}`;
764
776
  }
765
- class gi {
777
+ class mi {
766
778
  constructor(e) {
767
779
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
768
780
  this.timer = setTimeout(() => i(b(
769
781
  this.auth,
770
782
  "network-request-failed"
771
783
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
772
- )), mi.get());
784
+ )), pi.get());
773
785
  });
774
786
  }
775
787
  clearNetworkTimeout() {
@@ -800,7 +812,7 @@ function ue(n, e, t) {
800
812
  * See the License for the specific language governing permissions and
801
813
  * limitations under the License.
802
814
  */
803
- async function _i(n, e) {
815
+ async function gi(n, e) {
804
816
  return Q(n, "POST", "/v1/accounts:delete", e);
805
817
  }
806
818
  async function Mt(n, e) {
@@ -831,8 +843,8 @@ function ne(n) {
831
843
  } catch {
832
844
  }
833
845
  }
834
- async function vi(n, e = !1) {
835
- const t = X(n), i = await t.getIdToken(e), r = We(i);
846
+ async function _i(n, e = !1) {
847
+ const t = X(n), i = await t.getIdToken(e), r = je(i);
836
848
  u(
837
849
  r && r.exp && r.auth_time && r.iat,
838
850
  t.auth,
@@ -853,19 +865,19 @@ async function vi(n, e = !1) {
853
865
  function Ce(n) {
854
866
  return Number(n) * 1e3;
855
867
  }
856
- function We(n) {
868
+ function je(n) {
857
869
  const [e, t, i] = n.split(".");
858
870
  if (e === void 0 || t === void 0 || i === void 0)
859
871
  return de("JWT malformed, contained fewer than 3 sections"), null;
860
872
  try {
861
- const r = Ln(t);
873
+ const r = On(t);
862
874
  return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
863
875
  } catch (r) {
864
876
  return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
865
877
  }
866
878
  }
867
879
  function it(n) {
868
- const e = We(n);
880
+ const e = je(n);
869
881
  return u(
870
882
  e,
871
883
  "internal-error"
@@ -902,10 +914,10 @@ async function re(n, e, t = !1) {
902
914
  try {
903
915
  return await e;
904
916
  } catch (i) {
905
- throw i instanceof Ve && Ii(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
917
+ throw i instanceof Ve && vi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
906
918
  }
907
919
  }
908
- function Ii({ code: n }) {
920
+ function vi({ code: n }) {
909
921
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
910
922
  }
911
923
  /**
@@ -924,7 +936,7 @@ function Ii({ code: n }) {
924
936
  * See the License for the specific language governing permissions and
925
937
  * limitations under the License.
926
938
  */
927
- class yi {
939
+ class Ii {
928
940
  constructor(e) {
929
941
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
930
942
  }
@@ -1030,7 +1042,7 @@ async function ve(n) {
1030
1042
  );
1031
1043
  const s = r.users[0];
1032
1044
  n._notifyReloadListener(s);
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 = {
1045
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = wi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1034
1046
  uid: s.localId,
1035
1047
  displayName: s.displayName || null,
1036
1048
  photoURL: s.photoUrl || null,
@@ -1044,11 +1056,11 @@ async function ve(n) {
1044
1056
  };
1045
1057
  Object.assign(n, m);
1046
1058
  }
1047
- async function wi(n) {
1059
+ async function yi(n) {
1048
1060
  const e = X(n);
1049
1061
  await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1050
1062
  }
1051
- function Ti(n, e) {
1063
+ function wi(n, e) {
1052
1064
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1053
1065
  }
1054
1066
  function Ut(n) {
@@ -1080,7 +1092,7 @@ function Ut(n) {
1080
1092
  * See the License for the specific language governing permissions and
1081
1093
  * limitations under the License.
1082
1094
  */
1083
- async function ki(n, e) {
1095
+ async function Ti(n, e) {
1084
1096
  const t = await Nt(n, {}, async () => {
1085
1097
  const i = oe({
1086
1098
  grant_type: "refresh_token",
@@ -1101,7 +1113,7 @@ async function ki(n, e) {
1101
1113
  refreshToken: t.refresh_token
1102
1114
  };
1103
1115
  }
1104
- async function bi(n, e) {
1116
+ async function ki(n, e) {
1105
1117
  return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1106
1118
  }
1107
1119
  /**
@@ -1165,7 +1177,7 @@ class q {
1165
1177
  this.refreshToken = null;
1166
1178
  }
1167
1179
  async refresh(e, t) {
1168
- const { accessToken: i, refreshToken: r, expiresIn: s } = await ki(e, t);
1180
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await Ti(e, t);
1169
1181
  this.updateTokensAndExpiration(i, r, Number(s));
1170
1182
  }
1171
1183
  updateTokensAndExpiration(e, t, i) {
@@ -1220,7 +1232,7 @@ function D(n, e) {
1220
1232
  class C {
1221
1233
  constructor(e) {
1222
1234
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
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);
1235
+ this.providerId = "firebase", this.proactiveRefresh = new Ii(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1224
1236
  }
1225
1237
  async getIdToken(e) {
1226
1238
  const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1232,10 +1244,10 @@ class C {
1232
1244
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1233
1245
  }
1234
1246
  getIdTokenResult(e) {
1235
- return vi(this, e);
1247
+ return _i(this, e);
1236
1248
  }
1237
1249
  reload() {
1238
- return wi(this);
1250
+ return yi(this);
1239
1251
  }
1240
1252
  _assign(e) {
1241
1253
  this !== e && (u(
@@ -1274,7 +1286,7 @@ class C {
1274
1286
  if (A(this.auth.app))
1275
1287
  return Promise.reject(H(this.auth));
1276
1288
  const e = await this.getIdToken();
1277
- return await re(this, _i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1289
+ return await re(this, gi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1278
1290
  }
1279
1291
  toJSON() {
1280
1292
  return Object.assign(Object.assign({
@@ -1302,7 +1314,7 @@ class C {
1302
1314
  }
1303
1315
  static _fromJSON(e, t) {
1304
1316
  var i, r, s, o, c, a, l, d;
1305
- const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, y = (r = t.email) !== null && r !== void 0 ? r : void 0, T = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, h = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, f = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, v = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1317
+ 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, p = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, v = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1306
1318
  u(
1307
1319
  k && Ye,
1308
1320
  e,
@@ -1325,7 +1337,7 @@ class C {
1325
1337
  e,
1326
1338
  "internal-error"
1327
1339
  /* AuthErrorCode.INTERNAL_ERROR */
1328
- ), D(T, e.name), D(h, e.name), D(f, e.name), D(g, e.name), D(v, e.name), D(M, e.name);
1340
+ ), D(T, e.name), D(h, e.name), D(p, e.name), D(g, e.name), D(v, e.name), D(M, e.name);
1329
1341
  const Ae = new C({
1330
1342
  uid: k,
1331
1343
  auth: e,
@@ -1335,7 +1347,7 @@ class C {
1335
1347
  isAnonymous: Je,
1336
1348
  photoURL: h,
1337
1349
  phoneNumber: T,
1338
- tenantId: f,
1350
+ tenantId: p,
1339
1351
  stsTokenManager: on,
1340
1352
  createdAt: v,
1341
1353
  lastLoginAt: M
@@ -1564,9 +1576,9 @@ function ot(n) {
1564
1576
  return "Silk";
1565
1577
  if (Ht(e))
1566
1578
  return "Blackberry";
1567
- if (jt(e))
1579
+ if (Wt(e))
1568
1580
  return "Webos";
1569
- if (Be(e))
1581
+ if (Ge(e))
1570
1582
  return "Safari";
1571
1583
  if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
1572
1584
  return "Chrome";
@@ -1582,7 +1594,7 @@ function ot(n) {
1582
1594
  function xt(n = w()) {
1583
1595
  return /firefox\//i.test(n);
1584
1596
  }
1585
- function Be(n = w()) {
1597
+ function Ge(n = w()) {
1586
1598
  const e = n.toLowerCase();
1587
1599
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1588
1600
  }
@@ -1598,23 +1610,23 @@ function $t(n = w()) {
1598
1610
  function Ht(n = w()) {
1599
1611
  return /blackberry/i.test(n);
1600
1612
  }
1601
- function jt(n = w()) {
1613
+ function Wt(n = w()) {
1602
1614
  return /webos/i.test(n);
1603
1615
  }
1604
1616
  function ke(n = w()) {
1605
1617
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1606
1618
  }
1607
- function Ei(n = w()) {
1619
+ function bi(n = w()) {
1608
1620
  var e;
1609
1621
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1610
1622
  }
1611
- function Si() {
1612
- return Mn() && document.documentMode === 10;
1623
+ function Ei() {
1624
+ return Ln() && document.documentMode === 10;
1613
1625
  }
1614
- function Wt(n = w()) {
1615
- return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1626
+ function jt(n = w()) {
1627
+ return ke(n) || $t(n) || Wt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1616
1628
  }
1617
- function Ri() {
1629
+ function Si() {
1618
1630
  try {
1619
1631
  return !!(window && window !== window.top);
1620
1632
  } catch {
@@ -1637,7 +1649,7 @@ function Ri() {
1637
1649
  * See the License for the specific language governing permissions and
1638
1650
  * limitations under the License.
1639
1651
  */
1640
- function Bt(n, e = []) {
1652
+ function Gt(n, e = []) {
1641
1653
  let t;
1642
1654
  switch (n) {
1643
1655
  case "Browser":
@@ -1668,7 +1680,7 @@ function Bt(n, e = []) {
1668
1680
  * See the License for the specific language governing permissions and
1669
1681
  * limitations under the License.
1670
1682
  */
1671
- class Ai {
1683
+ class Ri {
1672
1684
  constructor(e) {
1673
1685
  this.auth = e, this.queue = [];
1674
1686
  }
@@ -1723,7 +1735,7 @@ class Ai {
1723
1735
  * See the License for the specific language governing permissions and
1724
1736
  * limitations under the License.
1725
1737
  */
1726
- async function Pi(n, e = {}) {
1738
+ async function Ai(n, e = {}) {
1727
1739
  return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
1728
1740
  }
1729
1741
  /**
@@ -1742,12 +1754,12 @@ async function Pi(n, e = {}) {
1742
1754
  * See the License for the specific language governing permissions and
1743
1755
  * limitations under the License.
1744
1756
  */
1745
- const Ci = 6;
1746
- class Ni {
1757
+ const Pi = 6;
1758
+ class Ci {
1747
1759
  constructor(e) {
1748
1760
  var t, i, r, s;
1749
1761
  const o = e.customStrengthOptions;
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;
1762
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Pi, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1751
1763
  }
1752
1764
  validatePassword(e) {
1753
1765
  var t, i, r, s, o, c;
@@ -1830,9 +1842,9 @@ class Ni {
1830
1842
  * See the License for the specific language governing permissions and
1831
1843
  * limitations under the License.
1832
1844
  */
1833
- class Oi {
1845
+ class Ni {
1834
1846
  constructor(e, t, i, r) {
1835
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new 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;
1847
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Ri(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1836
1848
  }
1837
1849
  _initializeWithPersistence(e, t) {
1838
1850
  return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
@@ -1926,7 +1938,7 @@ class Oi {
1926
1938
  return this.directlySetCurrentUser(e);
1927
1939
  }
1928
1940
  useDeviceLanguage() {
1929
- this.languageCode = fi();
1941
+ this.languageCode = hi();
1930
1942
  }
1931
1943
  async _delete() {
1932
1944
  this._deleted = !0;
@@ -1977,7 +1989,7 @@ class Oi {
1977
1989
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1978
1990
  }
1979
1991
  async _updatePasswordPolicy() {
1980
- const e = await Pi(this), t = new Ni(e);
1992
+ const e = await Ai(this), t = new Ci(e);
1981
1993
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1982
1994
  }
1983
1995
  _getPersistence() {
@@ -2017,7 +2029,7 @@ class Oi {
2017
2029
  token: e,
2018
2030
  idToken: t
2019
2031
  };
2020
- this.tenantId != null && (i.tenantId = this.tenantId), await bi(this, i);
2032
+ this.tenantId != null && (i.tenantId = this.tenantId), await ki(this, i);
2021
2033
  }
2022
2034
  }
2023
2035
  toJSON() {
@@ -2130,7 +2142,7 @@ class Oi {
2130
2142
  ), this.persistenceManager;
2131
2143
  }
2132
2144
  _logFramework(e) {
2133
- !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
2145
+ !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Gt(this.config.clientPlatform, this._getFrameworks()));
2134
2146
  }
2135
2147
  _getFrameworks() {
2136
2148
  return this.frameworks;
@@ -2160,7 +2172,7 @@ class Oi {
2160
2172
  async _getAppCheckToken() {
2161
2173
  var e;
2162
2174
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2163
- return t != null && t.error && ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2175
+ return t != null && t.error && li(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2164
2176
  }
2165
2177
  }
2166
2178
  function be(n) {
@@ -2168,7 +2180,7 @@ function be(n) {
2168
2180
  }
2169
2181
  class at {
2170
2182
  constructor(e) {
2171
- this.auth = e, this.observer = null, this.addObserver = Pn((t) => this.observer = t);
2183
+ this.auth = e, this.observer = null, this.addObserver = An((t) => this.observer = t);
2172
2184
  }
2173
2185
  get next() {
2174
2186
  return u(
@@ -2195,7 +2207,7 @@ class at {
2195
2207
  * See the License for the specific language governing permissions and
2196
2208
  * limitations under the License.
2197
2209
  */
2198
- let Ge = {
2210
+ let Be = {
2199
2211
  async loadJS() {
2200
2212
  throw new Error("Unable to load external scripts");
2201
2213
  },
@@ -2203,16 +2215,16 @@ let Ge = {
2203
2215
  recaptchaEnterpriseScript: "",
2204
2216
  gapiScript: ""
2205
2217
  };
2206
- function Li(n) {
2207
- Ge = n;
2218
+ function Oi(n) {
2219
+ Be = n;
2208
2220
  }
2209
- function Mi(n) {
2210
- return Ge.loadJS(n);
2221
+ function Li(n) {
2222
+ return Be.loadJS(n);
2211
2223
  }
2212
- function Ui() {
2213
- return Ge.gapiScript;
2224
+ function Mi() {
2225
+ return Be.gapiScript;
2214
2226
  }
2215
- function Di(n) {
2227
+ function Ui(n) {
2216
2228
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2217
2229
  }
2218
2230
  /**
@@ -2231,11 +2243,11 @@ function Di(n) {
2231
2243
  * See the License for the specific language governing permissions and
2232
2244
  * limitations under the License.
2233
2245
  */
2234
- function xi(n, e) {
2246
+ function Di(n, e) {
2235
2247
  const t = bt(n, "auth");
2236
2248
  if (t.isInitialized()) {
2237
2249
  const r = t.getImmediate(), s = t.getOptions();
2238
- if (On(s, e ?? {}))
2250
+ if (Nn(s, e ?? {}))
2239
2251
  return r;
2240
2252
  O(
2241
2253
  r,
@@ -2245,11 +2257,11 @@ function xi(n, e) {
2245
2257
  }
2246
2258
  return t.initialize({ options: e });
2247
2259
  }
2248
- function Fi(n, e) {
2260
+ function xi(n, e) {
2249
2261
  const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2250
2262
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2251
2263
  }
2252
- function Vi(n, e, t) {
2264
+ function Fi(n, e, t) {
2253
2265
  const i = be(n);
2254
2266
  u(
2255
2267
  i._canInitEmulator,
@@ -2262,20 +2274,20 @@ function Vi(n, e, t) {
2262
2274
  "invalid-emulator-scheme"
2263
2275
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2264
2276
  );
2265
- const r = !1, s = Gt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
2277
+ const r = !1, s = Bt(e), { host: o, port: c } = Vi(e), a = c === null ? "" : `:${c}`;
2266
2278
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2267
2279
  host: o,
2268
2280
  port: c,
2269
2281
  protocol: s.replace(":", ""),
2270
2282
  options: Object.freeze({ disableWarnings: r })
2271
- }), Hi();
2283
+ }), $i();
2272
2284
  }
2273
- function Gt(n) {
2285
+ function Bt(n) {
2274
2286
  const e = n.indexOf(":");
2275
2287
  return e < 0 ? "" : n.substr(0, e + 1);
2276
2288
  }
2277
- function $i(n) {
2278
- const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2289
+ function Vi(n) {
2290
+ const e = Bt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2279
2291
  if (!t)
2280
2292
  return { host: "", port: null };
2281
2293
  const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
@@ -2293,7 +2305,7 @@ function ct(n) {
2293
2305
  const e = Number(n);
2294
2306
  return isNaN(e) ? null : e;
2295
2307
  }
2296
- function Hi() {
2308
+ function $i() {
2297
2309
  function n() {
2298
2310
  const e = document.createElement("p"), t = e.style;
2299
2311
  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);
@@ -2377,14 +2389,14 @@ async function J(n, e) {
2377
2389
  * See the License for the specific language governing permissions and
2378
2390
  * limitations under the License.
2379
2391
  */
2380
- const ji = "http://localhost";
2381
- class B extends zt {
2392
+ const Hi = "http://localhost";
2393
+ class G extends zt {
2382
2394
  constructor() {
2383
2395
  super(...arguments), this.pendingToken = null;
2384
2396
  }
2385
2397
  /** @internal */
2386
2398
  static _fromParams(e) {
2387
- const t = new B(e.providerId, e.signInMethod);
2399
+ const t = new G(e.providerId, e.signInMethod);
2388
2400
  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(
2389
2401
  "argument-error"
2390
2402
  /* AuthErrorCode.ARGUMENT_ERROR */
@@ -2415,7 +2427,7 @@ class B extends zt {
2415
2427
  const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
2416
2428
  if (!i || !r)
2417
2429
  return null;
2418
- const o = new B(i, r);
2430
+ const o = new G(i, r);
2419
2431
  return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
2420
2432
  }
2421
2433
  /** @internal */
@@ -2435,7 +2447,7 @@ class B extends zt {
2435
2447
  }
2436
2448
  buildRequest() {
2437
2449
  const e = {
2438
- requestUri: ji,
2450
+ requestUri: Hi,
2439
2451
  returnSecureToken: !0
2440
2452
  };
2441
2453
  if (this.pendingToken)
@@ -2571,7 +2583,7 @@ class x extends ce {
2571
2583
  * @param accessToken - Facebook access token.
2572
2584
  */
2573
2585
  static credential(e) {
2574
- return B._fromParams({
2586
+ return G._fromParams({
2575
2587
  providerId: x.PROVIDER_ID,
2576
2588
  signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
2577
2589
  accessToken: e
@@ -2643,7 +2655,7 @@ class F extends ce {
2643
2655
  * @param accessToken - Google access token.
2644
2656
  */
2645
2657
  static credential(e, t) {
2646
- return B._fromParams({
2658
+ return G._fromParams({
2647
2659
  providerId: F.PROVIDER_ID,
2648
2660
  signInMethod: F.GOOGLE_SIGN_IN_METHOD,
2649
2661
  idToken: e,
@@ -2711,7 +2723,7 @@ class V extends ce {
2711
2723
  * @param accessToken - Github access token.
2712
2724
  */
2713
2725
  static credential(e) {
2714
- return B._fromParams({
2726
+ return G._fromParams({
2715
2727
  providerId: V.PROVIDER_ID,
2716
2728
  signInMethod: V.GITHUB_SIGN_IN_METHOD,
2717
2729
  accessToken: e
@@ -2776,7 +2788,7 @@ class $ extends ce {
2776
2788
  * @param secret - Twitter secret.
2777
2789
  */
2778
2790
  static credential(e, t) {
2779
- return B._fromParams({
2791
+ return G._fromParams({
2780
2792
  providerId: $.PROVIDER_ID,
2781
2793
  signInMethod: $.TWITTER_SIGN_IN_METHOD,
2782
2794
  oauthToken: e,
@@ -2831,13 +2843,13 @@ $.PROVIDER_ID = "twitter.com";
2831
2843
  * See the License for the specific language governing permissions and
2832
2844
  * limitations under the License.
2833
2845
  */
2834
- class G {
2846
+ class B {
2835
2847
  constructor(e) {
2836
2848
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2837
2849
  }
2838
2850
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2839
2851
  const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
2840
- return new G({
2852
+ return new B({
2841
2853
  user: s,
2842
2854
  providerId: o,
2843
2855
  _tokenResponse: i,
@@ -2851,7 +2863,7 @@ class G {
2851
2863
  !0
2852
2864
  );
2853
2865
  const r = lt(i);
2854
- return new G({
2866
+ return new B({
2855
2867
  user: e,
2856
2868
  providerId: r,
2857
2869
  _tokenResponse: i,
@@ -2899,7 +2911,7 @@ function Kt(n, e, t, i) {
2899
2911
  }
2900
2912
  async function Wi(n, e, t = !1) {
2901
2913
  const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2902
- return G._forOperation(n, "link", i);
2914
+ return B._forOperation(n, "link", i);
2903
2915
  }
2904
2916
  /**
2905
2917
  * @license
@@ -2917,7 +2929,7 @@ async function Wi(n, e, t = !1) {
2917
2929
  * See the License for the specific language governing permissions and
2918
2930
  * limitations under the License.
2919
2931
  */
2920
- async function Bi(n, e, t = !1) {
2932
+ async function ji(n, e, t = !1) {
2921
2933
  const { auth: i } = n;
2922
2934
  if (A(i.app))
2923
2935
  return Promise.reject(H(i));
@@ -2930,7 +2942,7 @@ async function Bi(n, e, t = !1) {
2930
2942
  "internal-error"
2931
2943
  /* AuthErrorCode.INTERNAL_ERROR */
2932
2944
  );
2933
- const o = We(s.idToken);
2945
+ const o = je(s.idToken);
2934
2946
  u(
2935
2947
  o,
2936
2948
  i,
@@ -2943,7 +2955,7 @@ async function Bi(n, e, t = !1) {
2943
2955
  i,
2944
2956
  "user-mismatch"
2945
2957
  /* AuthErrorCode.USER_MISMATCH */
2946
- ), G._forOperation(n, r, s);
2958
+ ), B._forOperation(n, r, s);
2947
2959
  } catch (s) {
2948
2960
  throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
2949
2961
  i,
@@ -2971,7 +2983,7 @@ async function Bi(n, e, t = !1) {
2971
2983
  async function Gi(n, e, t = !1) {
2972
2984
  if (A(n.app))
2973
2985
  return Promise.reject(H(n));
2974
- const i = "signIn", r = await Kt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
2986
+ const i = "signIn", r = await Kt(n, i, e), s = await B._fromIdTokenResponse(n, i, r);
2975
2987
  return t || await n._updateCurrentUser(s.user), s;
2976
2988
  }
2977
2989
  /**
@@ -2990,7 +3002,7 @@ async function Gi(n, e, t = !1) {
2990
3002
  * See the License for the specific language governing permissions and
2991
3003
  * limitations under the License.
2992
3004
  */
2993
- async function zi(n, e) {
3005
+ async function Bi(n, e) {
2994
3006
  return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
2995
3007
  }
2996
3008
  /**
@@ -3009,19 +3021,19 @@ async function zi(n, e) {
3009
3021
  * See the License for the specific language governing permissions and
3010
3022
  * limitations under the License.
3011
3023
  */
3012
- async function qi(n, e) {
3024
+ async function zi(n, e) {
3013
3025
  if (A(n.app))
3014
3026
  return Promise.reject(H(n));
3015
- const t = be(n), i = await zi(t, {
3027
+ const t = be(n), i = await Bi(t, {
3016
3028
  token: e,
3017
3029
  returnSecureToken: !0
3018
- }), r = await G._fromIdTokenResponse(t, "signIn", i);
3030
+ }), r = await B._fromIdTokenResponse(t, "signIn", i);
3019
3031
  return await t._updateCurrentUser(r.user), r;
3020
3032
  }
3021
- function Ki(n, e, t, i) {
3033
+ function qi(n, e, t, i) {
3022
3034
  return X(n).onIdTokenChanged(e, t, i);
3023
3035
  }
3024
- function Ji(n, e, t) {
3036
+ function Ki(n, e, t) {
3025
3037
  return X(n).beforeAuthStateChanged(e, t);
3026
3038
  }
3027
3039
  const ye = "__sak";
@@ -3082,18 +3094,18 @@ class Jt {
3082
3094
  * See the License for the specific language governing permissions and
3083
3095
  * limitations under the License.
3084
3096
  */
3085
- function Yi() {
3097
+ function Ji() {
3086
3098
  const n = w();
3087
- return Be(n) || ke(n);
3099
+ return Ge(n) || ke(n);
3088
3100
  }
3089
- const Xi = 1e3, Qi = 10;
3101
+ const Yi = 1e3, Xi = 10;
3090
3102
  class Yt extends Jt {
3091
3103
  constructor() {
3092
3104
  super(
3093
3105
  () => window.localStorage,
3094
3106
  "LOCAL"
3095
3107
  /* PersistenceType.LOCAL */
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;
3108
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ji() && Si(), this.fallbackToPolling = jt(), this._shouldAllowMigration = !0;
3097
3109
  }
3098
3110
  forAllChangedKeys(e) {
3099
3111
  for (const t of Object.keys(this.listeners)) {
@@ -3120,7 +3132,7 @@ class Yt extends Jt {
3120
3132
  const o = this.storage.getItem(i);
3121
3133
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3122
3134
  }, s = this.storage.getItem(i);
3123
- Si() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Qi) : r();
3135
+ Ei() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Xi) : r();
3124
3136
  }
3125
3137
  notifyListeners(e, t) {
3126
3138
  this.localCache[e] = t;
@@ -3142,7 +3154,7 @@ class Yt extends Jt {
3142
3154
  !0
3143
3155
  );
3144
3156
  });
3145
- }, Xi);
3157
+ }, Yi);
3146
3158
  }
3147
3159
  stopPolling() {
3148
3160
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3172,7 +3184,7 @@ class Yt extends Jt {
3172
3184
  }
3173
3185
  }
3174
3186
  Yt.type = "LOCAL";
3175
- const Zi = Yt;
3187
+ const Qi = Yt;
3176
3188
  /**
3177
3189
  * @license
3178
3190
  * Copyright 2020 Google LLC
@@ -3220,7 +3232,7 @@ const Qt = Xt;
3220
3232
  * See the License for the specific language governing permissions and
3221
3233
  * limitations under the License.
3222
3234
  */
3223
- function er(n) {
3235
+ function Zi(n) {
3224
3236
  return Promise.all(n.map(async (e) => {
3225
3237
  try {
3226
3238
  return {
@@ -3290,7 +3302,7 @@ class Ee {
3290
3302
  eventId: i,
3291
3303
  eventType: r
3292
3304
  });
3293
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await er(c);
3305
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Zi(c);
3294
3306
  t.ports[0].postMessage({
3295
3307
  status: "done",
3296
3308
  eventId: i,
@@ -3358,7 +3370,7 @@ function ze(n = "", e = 10) {
3358
3370
  * See the License for the specific language governing permissions and
3359
3371
  * limitations under the License.
3360
3372
  */
3361
- class tr {
3373
+ class er {
3362
3374
  constructor(e) {
3363
3375
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3364
3376
  }
@@ -3458,7 +3470,7 @@ class tr {
3458
3470
  function E() {
3459
3471
  return window;
3460
3472
  }
3461
- function nr(n) {
3473
+ function tr(n) {
3462
3474
  E().location.href = n;
3463
3475
  }
3464
3476
  /**
@@ -3480,7 +3492,7 @@ function nr(n) {
3480
3492
  function Zt() {
3481
3493
  return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3482
3494
  }
3483
- async function ir() {
3495
+ async function nr() {
3484
3496
  if (!(navigator != null && navigator.serviceWorker))
3485
3497
  return null;
3486
3498
  try {
@@ -3489,11 +3501,11 @@ async function ir() {
3489
3501
  return null;
3490
3502
  }
3491
3503
  }
3492
- function rr() {
3504
+ function ir() {
3493
3505
  var n;
3494
3506
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3495
3507
  }
3496
- function sr() {
3508
+ function rr() {
3497
3509
  return Zt() ? self : null;
3498
3510
  }
3499
3511
  /**
@@ -3512,7 +3524,7 @@ function sr() {
3512
3524
  * See the License for the specific language governing permissions and
3513
3525
  * limitations under the License.
3514
3526
  */
3515
- const en = "firebaseLocalStorageDb", or = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3527
+ const en = "firebaseLocalStorageDb", sr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3516
3528
  class le {
3517
3529
  constructor(e) {
3518
3530
  this.request = e;
@@ -3530,12 +3542,12 @@ class le {
3530
3542
  function Se(n, e) {
3531
3543
  return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3532
3544
  }
3533
- function ar() {
3545
+ function or() {
3534
3546
  const n = indexedDB.deleteDatabase(en);
3535
3547
  return new le(n).toPromise();
3536
3548
  }
3537
3549
  function De() {
3538
- const n = indexedDB.open(en, or);
3550
+ const n = indexedDB.open(en, sr);
3539
3551
  return new Promise((e, t) => {
3540
3552
  n.addEventListener("error", () => {
3541
3553
  t(n.error);
@@ -3548,7 +3560,7 @@ function De() {
3548
3560
  }
3549
3561
  }), n.addEventListener("success", async () => {
3550
3562
  const i = n.result;
3551
- i.objectStoreNames.contains(we) ? e(i) : (i.close(), await ar(), e(await De()));
3563
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await or(), e(await De()));
3552
3564
  });
3553
3565
  });
3554
3566
  }
@@ -3559,7 +3571,7 @@ async function ut(n, e, t) {
3559
3571
  });
3560
3572
  return new le(i).toPromise();
3561
3573
  }
3562
- async function cr(n, e) {
3574
+ async function ar(n, e) {
3563
3575
  const t = Se(n, !1).get(e), i = await new le(t).toPromise();
3564
3576
  return i === void 0 ? null : i.value;
3565
3577
  }
@@ -3567,7 +3579,7 @@ function dt(n, e) {
3567
3579
  const t = Se(n, !0).delete(e);
3568
3580
  return new le(t).toPromise();
3569
3581
  }
3570
- const lr = 800, ur = 3;
3582
+ const cr = 800, lr = 3;
3571
3583
  class nn {
3572
3584
  constructor() {
3573
3585
  this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
@@ -3584,7 +3596,7 @@ class nn {
3584
3596
  const i = await this._openDb();
3585
3597
  return await e(i);
3586
3598
  } catch (i) {
3587
- if (t++ > ur)
3599
+ if (t++ > lr)
3588
3600
  throw i;
3589
3601
  this.db && (this.db.close(), this.db = void 0);
3590
3602
  }
@@ -3600,7 +3612,7 @@ class nn {
3600
3612
  * As the worker we should listen to events from the main window.
3601
3613
  */
3602
3614
  async initializeReceiver() {
3603
- this.receiver = Ee._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3615
+ this.receiver = Ee._getInstance(rr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3604
3616
  keyProcessed: (await this._poll()).includes(t.key)
3605
3617
  })), this.receiver._subscribe("ping", async (e, t) => [
3606
3618
  "keyChanged"
@@ -3616,9 +3628,9 @@ class nn {
3616
3628
  */
3617
3629
  async initializeSender() {
3618
3630
  var e, t;
3619
- if (this.activeServiceWorker = await ir(), !this.activeServiceWorker)
3631
+ if (this.activeServiceWorker = await nr(), !this.activeServiceWorker)
3620
3632
  return;
3621
- this.sender = new tr(this.activeServiceWorker);
3633
+ this.sender = new er(this.activeServiceWorker);
3622
3634
  const i = await this.sender._send(
3623
3635
  "ping",
3624
3636
  {},
@@ -3640,7 +3652,7 @@ class nn {
3640
3652
  * @param key - Storage key which changed.
3641
3653
  */
3642
3654
  async notifyServiceWorker(e) {
3643
- if (!(!this.sender || !this.activeServiceWorker || rr() !== this.activeServiceWorker))
3655
+ if (!(!this.sender || !this.activeServiceWorker || ir() !== this.activeServiceWorker))
3644
3656
  try {
3645
3657
  await this.sender._send(
3646
3658
  "keyChanged",
@@ -3674,7 +3686,7 @@ class nn {
3674
3686
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3675
3687
  }
3676
3688
  async _get(e) {
3677
- const t = await this._withRetries((i) => cr(i, e));
3689
+ const t = await this._withRetries((i) => ar(i, e));
3678
3690
  return this.localCache[e] = t, t;
3679
3691
  }
3680
3692
  async _remove(e) {
@@ -3705,7 +3717,7 @@ class nn {
3705
3717
  r(t);
3706
3718
  }
3707
3719
  startPolling() {
3708
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), lr);
3720
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), cr);
3709
3721
  }
3710
3722
  stopPolling() {
3711
3723
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3718,7 +3730,7 @@ class nn {
3718
3730
  }
3719
3731
  }
3720
3732
  nn.type = "LOCAL";
3721
- const dr = nn;
3733
+ const ur = nn;
3722
3734
  new ae(3e4, 6e4);
3723
3735
  /**
3724
3736
  * @license
@@ -3736,7 +3748,7 @@ new ae(3e4, 6e4);
3736
3748
  * See the License for the specific language governing permissions and
3737
3749
  * limitations under the License.
3738
3750
  */
3739
- function hr(n, e) {
3751
+ function dr(n, e) {
3740
3752
  return e ? N(e) : (u(
3741
3753
  n._popupRedirectResolver,
3742
3754
  n,
@@ -3790,19 +3802,19 @@ class qe extends zt {
3790
3802
  return e && (t.idToken = e), t;
3791
3803
  }
3792
3804
  }
3793
- function fr(n) {
3805
+ function hr(n) {
3794
3806
  return Gi(n.auth, new qe(n), n.bypassAuthState);
3795
3807
  }
3796
- function pr(n) {
3808
+ function fr(n) {
3797
3809
  const { auth: e, user: t } = n;
3798
3810
  return u(
3799
3811
  t,
3800
3812
  e,
3801
3813
  "internal-error"
3802
3814
  /* AuthErrorCode.INTERNAL_ERROR */
3803
- ), Bi(t, new qe(n), n.bypassAuthState);
3815
+ ), ji(t, new qe(n), n.bypassAuthState);
3804
3816
  }
3805
- async function mr(n) {
3817
+ async function pr(n) {
3806
3818
  const { auth: e, user: t } = n;
3807
3819
  return u(
3808
3820
  t,
@@ -3869,13 +3881,13 @@ class rn {
3869
3881
  switch (e) {
3870
3882
  case "signInViaPopup":
3871
3883
  case "signInViaRedirect":
3872
- return fr;
3884
+ return hr;
3873
3885
  case "linkViaPopup":
3874
3886
  case "linkViaRedirect":
3875
- return mr;
3887
+ return pr;
3876
3888
  case "reauthViaPopup":
3877
3889
  case "reauthViaRedirect":
3878
- return pr;
3890
+ return fr;
3879
3891
  default:
3880
3892
  O(
3881
3893
  this.auth,
@@ -3910,7 +3922,7 @@ class rn {
3910
3922
  * See the License for the specific language governing permissions and
3911
3923
  * limitations under the License.
3912
3924
  */
3913
- const gr = new ae(2e3, 1e4);
3925
+ const mr = new ae(2e3, 1e4);
3914
3926
  class z extends rn {
3915
3927
  constructor(e, t, i, r, s) {
3916
3928
  super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
@@ -3974,7 +3986,7 @@ class z extends rn {
3974
3986
  );
3975
3987
  return;
3976
3988
  }
3977
- this.pollId = window.setTimeout(e, gr.get());
3989
+ this.pollId = window.setTimeout(e, mr.get());
3978
3990
  };
3979
3991
  e();
3980
3992
  }
@@ -3996,8 +4008,8 @@ z.currentPopupAction = null;
3996
4008
  * See the License for the specific language governing permissions and
3997
4009
  * limitations under the License.
3998
4010
  */
3999
- const _r = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4000
- class vr extends rn {
4011
+ const gr = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4012
+ class _r extends rn {
4001
4013
  constructor(e, t, i = !1) {
4002
4014
  super(e, [
4003
4015
  "signInViaRedirect",
@@ -4015,7 +4027,7 @@ class vr extends rn {
4015
4027
  let e = fe.get(this.auth._key());
4016
4028
  if (!e) {
4017
4029
  try {
4018
- const i = await Ir(this.resolver, this.auth) ? await super.execute() : null;
4030
+ const i = await vr(this.resolver, this.auth) ? await super.execute() : null;
4019
4031
  e = () => Promise.resolve(i);
4020
4032
  } catch (t) {
4021
4033
  e = () => Promise.reject(t);
@@ -4043,26 +4055,26 @@ class vr extends rn {
4043
4055
  cleanUp() {
4044
4056
  }
4045
4057
  }
4046
- async function Ir(n, e) {
4047
- const t = Tr(e), i = wr(n);
4058
+ async function vr(n, e) {
4059
+ const t = wr(e), i = yr(n);
4048
4060
  if (!await i._isAvailable())
4049
4061
  return !1;
4050
4062
  const r = await i._get(t) === "true";
4051
4063
  return await i._remove(t), r;
4052
4064
  }
4053
- function yr(n, e) {
4065
+ function Ir(n, e) {
4054
4066
  fe.set(n._key(), e);
4055
4067
  }
4056
- function wr(n) {
4068
+ function yr(n) {
4057
4069
  return N(n._redirectPersistence);
4058
4070
  }
4059
- function Tr(n) {
4060
- return he(_r, n.config.apiKey, n.name);
4071
+ function wr(n) {
4072
+ return he(gr, n.config.apiKey, n.name);
4061
4073
  }
4062
- async function kr(n, e, t = !1) {
4074
+ async function Tr(n, e, t = !1) {
4063
4075
  if (A(n.app))
4064
4076
  return Promise.reject(H(n));
4065
- const i = be(n), r = hr(i, e), o = await new vr(i, r, t).execute();
4077
+ const i = be(n), r = dr(i, e), o = await new _r(i, r, t).execute();
4066
4078
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4067
4079
  }
4068
4080
  /**
@@ -4081,8 +4093,8 @@ async function kr(n, e, t = !1) {
4081
4093
  * See the License for the specific language governing permissions and
4082
4094
  * limitations under the License.
4083
4095
  */
4084
- const br = 10 * 60 * 1e3;
4085
- class Er {
4096
+ const kr = 10 * 60 * 1e3;
4097
+ class br {
4086
4098
  constructor(e) {
4087
4099
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4088
4100
  }
@@ -4098,7 +4110,7 @@ class Er {
4098
4110
  let t = !1;
4099
4111
  return this.consumers.forEach((i) => {
4100
4112
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4101
- }), this.hasHandledPotentialRedirect || !Sr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4113
+ }), this.hasHandledPotentialRedirect || !Er(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4102
4114
  }
4103
4115
  sendToConsumer(e, t) {
4104
4116
  var i;
@@ -4113,7 +4125,7 @@ class Er {
4113
4125
  return t.filter.includes(e.type) && i;
4114
4126
  }
4115
4127
  hasEventBeenHandled(e) {
4116
- return Date.now() - this.lastProcessedEventTime >= br && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4128
+ return Date.now() - this.lastProcessedEventTime >= kr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4117
4129
  }
4118
4130
  saveEventToCache(e) {
4119
4131
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4125,7 +4137,7 @@ function ht(n) {
4125
4137
  function sn({ type: n, error: e }) {
4126
4138
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4127
4139
  }
4128
- function Sr(n) {
4140
+ function Er(n) {
4129
4141
  switch (n.type) {
4130
4142
  case "signInViaRedirect":
4131
4143
  case "linkViaRedirect":
@@ -4153,7 +4165,7 @@ function Sr(n) {
4153
4165
  * See the License for the specific language governing permissions and
4154
4166
  * limitations under the License.
4155
4167
  */
4156
- async function Rr(n, e = {}) {
4168
+ async function Sr(n, e = {}) {
4157
4169
  return Q(n, "GET", "/v1/projects", e);
4158
4170
  }
4159
4171
  /**
@@ -4172,14 +4184,14 @@ async function Rr(n, e = {}) {
4172
4184
  * See the License for the specific language governing permissions and
4173
4185
  * limitations under the License.
4174
4186
  */
4175
- const Ar = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Pr = /^https?/;
4176
- async function Cr(n) {
4187
+ const Rr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
4188
+ async function Pr(n) {
4177
4189
  if (n.config.emulator)
4178
4190
  return;
4179
- const { authorizedDomains: e } = await Rr(n);
4191
+ const { authorizedDomains: e } = await Sr(n);
4180
4192
  for (const t of e)
4181
4193
  try {
4182
- if (Nr(t))
4194
+ if (Cr(t))
4183
4195
  return;
4184
4196
  } catch {
4185
4197
  }
@@ -4189,15 +4201,15 @@ async function Cr(n) {
4189
4201
  /* AuthErrorCode.INVALID_ORIGIN */
4190
4202
  );
4191
4203
  }
4192
- function Nr(n) {
4204
+ function Cr(n) {
4193
4205
  const e = Me(), { protocol: t, hostname: i } = new URL(e);
4194
4206
  if (n.startsWith("chrome-extension://")) {
4195
4207
  const o = new URL(n);
4196
4208
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4197
4209
  }
4198
- if (!Pr.test(t))
4210
+ if (!Ar.test(t))
4199
4211
  return !1;
4200
- if (Ar.test(n))
4212
+ if (Rr.test(n))
4201
4213
  return i === n;
4202
4214
  const r = n.replace(/\./g, "\\.");
4203
4215
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4218,7 +4230,7 @@ function Nr(n) {
4218
4230
  * See the License for the specific language governing permissions and
4219
4231
  * limitations under the License.
4220
4232
  */
4221
- const Or = new ae(3e4, 6e4);
4233
+ const Nr = new ae(3e4, 6e4);
4222
4234
  function ft() {
4223
4235
  const n = E().___jsl;
4224
4236
  if (n != null && n.H) {
@@ -4228,7 +4240,7 @@ function ft() {
4228
4240
  n.CP[t] = null;
4229
4241
  }
4230
4242
  }
4231
- function Lr(n) {
4243
+ function Or(n) {
4232
4244
  return new Promise((e, t) => {
4233
4245
  var i, r, s;
4234
4246
  function o() {
@@ -4243,7 +4255,7 @@ function Lr(n) {
4243
4255
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4244
4256
  ));
4245
4257
  },
4246
- timeout: Or.get()
4258
+ timeout: Nr.get()
4247
4259
  });
4248
4260
  }
4249
4261
  if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
@@ -4251,22 +4263,22 @@ function Lr(n) {
4251
4263
  else if (!((s = E().gapi) === null || s === void 0) && s.load)
4252
4264
  o();
4253
4265
  else {
4254
- const c = Di("iframefcb");
4266
+ const c = Ui("iframefcb");
4255
4267
  return E()[c] = () => {
4256
4268
  gapi.load ? o() : t(b(
4257
4269
  n,
4258
4270
  "network-request-failed"
4259
4271
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4260
4272
  ));
4261
- }, Mi(`${Ui()}?onload=${c}`).catch((a) => t(a));
4273
+ }, Li(`${Mi()}?onload=${c}`).catch((a) => t(a));
4262
4274
  }
4263
4275
  }).catch((e) => {
4264
4276
  throw pe = null, e;
4265
4277
  });
4266
4278
  }
4267
4279
  let pe = null;
4268
- function Mr(n) {
4269
- return pe = pe || Lr(n), pe;
4280
+ function Lr(n) {
4281
+ return pe = pe || Or(n), pe;
4270
4282
  }
4271
4283
  /**
4272
4284
  * @license
@@ -4284,7 +4296,7 @@ function Mr(n) {
4284
4296
  * See the License for the specific language governing permissions and
4285
4297
  * limitations under the License.
4286
4298
  */
4287
- const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe", Fr = {
4299
+ const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe", xr = {
4288
4300
  style: {
4289
4301
  position: "absolute",
4290
4302
  top: "-100px",
@@ -4293,13 +4305,13 @@ const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe"
4293
4305
  },
4294
4306
  "aria-hidden": "true",
4295
4307
  tabindex: "-1"
4296
- }, Vr = /* @__PURE__ */ new Map([
4308
+ }, Fr = /* @__PURE__ */ new Map([
4297
4309
  ["identitytoolkit.googleapis.com", "p"],
4298
4310
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4299
4311
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4300
4312
  // test
4301
4313
  ]);
4302
- function $r(n) {
4314
+ function Vr(n) {
4303
4315
  const e = n.config;
4304
4316
  u(
4305
4317
  e.authDomain,
@@ -4307,17 +4319,17 @@ function $r(n) {
4307
4319
  "auth-domain-config-required"
4308
4320
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4309
4321
  );
4310
- const t = e.emulator ? je(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
4322
+ const t = e.emulator ? We(e, Dr) : `https://${n.config.authDomain}/${Ur}`, i = {
4311
4323
  apiKey: e.apiKey,
4312
4324
  appName: n.name,
4313
4325
  v: se
4314
- }, r = Vr.get(n.config.apiHost);
4326
+ }, r = Fr.get(n.config.apiHost);
4315
4327
  r && (i.eid = r);
4316
4328
  const s = n._getFrameworks();
4317
4329
  return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
4318
4330
  }
4319
- async function Hr(n) {
4320
- const e = await Mr(n), t = E().gapi;
4331
+ async function $r(n) {
4332
+ const e = await Lr(n), t = E().gapi;
4321
4333
  return u(
4322
4334
  t,
4323
4335
  n,
@@ -4325,9 +4337,9 @@ async function Hr(n) {
4325
4337
  /* AuthErrorCode.INTERNAL_ERROR */
4326
4338
  ), e.open({
4327
4339
  where: document.body,
4328
- url: $r(n),
4340
+ url: Vr(n),
4329
4341
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4330
- attributes: Fr,
4342
+ attributes: xr,
4331
4343
  dontclear: !0
4332
4344
  }, (i) => new Promise(async (r, s) => {
4333
4345
  await i.restyle({
@@ -4340,7 +4352,7 @@ async function Hr(n) {
4340
4352
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4341
4353
  ), c = E().setTimeout(() => {
4342
4354
  s(o);
4343
- }, Ur.get());
4355
+ }, Mr.get());
4344
4356
  function a() {
4345
4357
  E().clearTimeout(c), r(i);
4346
4358
  }
@@ -4365,12 +4377,12 @@ async function Hr(n) {
4365
4377
  * See the License for the specific language governing permissions and
4366
4378
  * limitations under the License.
4367
4379
  */
4368
- const jr = {
4380
+ const Hr = {
4369
4381
  location: "yes",
4370
4382
  resizable: "yes",
4371
4383
  statusbar: "yes",
4372
4384
  toolbar: "no"
4373
- }, Wr = 500, Br = 600, Gr = "_blank", zr = "http://localhost";
4385
+ }, Wr = 500, jr = 600, Gr = "_blank", Br = "http://localhost";
4374
4386
  class pt {
4375
4387
  constructor(e) {
4376
4388
  this.window = e, this.associatedEvent = null;
@@ -4383,19 +4395,19 @@ class pt {
4383
4395
  }
4384
4396
  }
4385
4397
  }
4386
- function qr(n, e, t, i = Wr, r = Br) {
4398
+ function zr(n, e, t, i = Wr, r = jr) {
4387
4399
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4388
4400
  let c = "";
4389
- const a = Object.assign(Object.assign({}, jr), {
4401
+ const a = Object.assign(Object.assign({}, Hr), {
4390
4402
  width: i.toString(),
4391
4403
  height: r.toString(),
4392
4404
  top: s,
4393
4405
  left: o
4394
4406
  }), l = w().toLowerCase();
4395
- t && (c = Ft(l) ? Gr : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
4407
+ t && (c = Ft(l) ? Gr : t), xt(l) && (e = e || Br, a.scrollbars = "yes");
4396
4408
  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);
4409
+ if (bi(l) && c !== "_self")
4410
+ return qr(e || "", c), new pt(null);
4399
4411
  const m = window.open(e || "", c, d);
4400
4412
  u(
4401
4413
  m,
@@ -4409,7 +4421,7 @@ function qr(n, e, t, i = Wr, r = Br) {
4409
4421
  }
4410
4422
  return new pt(m);
4411
4423
  }
4412
- function Kr(n, e) {
4424
+ function qr(n, e) {
4413
4425
  const t = document.createElement("a");
4414
4426
  t.href = n, t.target = e;
4415
4427
  const i = document.createEvent("MouseEvent");
@@ -4431,7 +4443,7 @@ function Kr(n, e) {
4431
4443
  * See the License for the specific language governing permissions and
4432
4444
  * limitations under the License.
4433
4445
  */
4434
- const Jr = "__/auth/handler", Yr = "emulator/auth/handler", Xr = encodeURIComponent("fac");
4446
+ const Kr = "__/auth/handler", Jr = "emulator/auth/handler", Yr = encodeURIComponent("fac");
4435
4447
  async function mt(n, e, t, i, r, s) {
4436
4448
  u(
4437
4449
  n.config.authDomain,
@@ -4453,7 +4465,7 @@ async function mt(n, e, t, i, r, s) {
4453
4465
  eventId: r
4454
4466
  };
4455
4467
  if (e instanceof qt) {
4456
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Un(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4468
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Mn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4457
4469
  for (const [d, m] of Object.entries({}))
4458
4470
  o[d] = m;
4459
4471
  }
@@ -4465,11 +4477,11 @@ async function mt(n, e, t, i, r, s) {
4465
4477
  const c = o;
4466
4478
  for (const d of Object.keys(c))
4467
4479
  c[d] === void 0 && delete c[d];
4468
- const a = await n._getAppCheckToken(), l = a ? `#${Xr}=${encodeURIComponent(a)}` : "";
4469
- return `${Qr(n)}?${oe(c).slice(1)}${l}`;
4480
+ const a = await n._getAppCheckToken(), l = a ? `#${Yr}=${encodeURIComponent(a)}` : "";
4481
+ return `${Xr(n)}?${oe(c).slice(1)}${l}`;
4470
4482
  }
4471
- function Qr({ config: n }) {
4472
- return n.emulator ? je(n, Yr) : `https://${n.authDomain}/${Jr}`;
4483
+ function Xr({ config: n }) {
4484
+ return n.emulator ? We(n, Jr) : `https://${n.authDomain}/${Kr}`;
4473
4485
  }
4474
4486
  /**
4475
4487
  * @license
@@ -4488,9 +4500,9 @@ function Qr({ config: n }) {
4488
4500
  * limitations under the License.
4489
4501
  */
4490
4502
  const Ne = "webStorageSupport";
4491
- class Zr {
4503
+ class Qr {
4492
4504
  constructor() {
4493
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = kr, this._overrideRedirectResult = yr;
4505
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = Tr, this._overrideRedirectResult = Ir;
4494
4506
  }
4495
4507
  // Wrapping in async even though we don't await anywhere in order
4496
4508
  // to make sure errors are raised as promise rejections
@@ -4498,12 +4510,12 @@ class Zr {
4498
4510
  var s;
4499
4511
  L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4500
4512
  const o = await mt(e, t, i, Me(), r);
4501
- return qr(e, o, ze());
4513
+ return zr(e, o, ze());
4502
4514
  }
4503
4515
  async _openRedirect(e, t, i, r) {
4504
4516
  await this._originValidation(e);
4505
4517
  const s = await mt(e, t, i, Me(), r);
4506
- return nr(s), new Promise(() => {
4518
+ return tr(s), new Promise(() => {
4507
4519
  });
4508
4520
  }
4509
4521
  _initialize(e) {
@@ -4518,7 +4530,7 @@ class Zr {
4518
4530
  }), i;
4519
4531
  }
4520
4532
  async initAndGetManager(e) {
4521
- const t = await Hr(e), i = new Er(e);
4533
+ const t = await $r(e), i = new br(e);
4522
4534
  return t.register("authEvent", (r) => (u(
4523
4535
  r == null ? void 0 : r.authEvent,
4524
4536
  e,
@@ -4542,13 +4554,13 @@ class Zr {
4542
4554
  }
4543
4555
  _originValidation(e) {
4544
4556
  const t = e._key();
4545
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
4557
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Pr(e)), this.originValidationPromises[t];
4546
4558
  }
4547
4559
  get _shouldInitProactively() {
4548
- return Wt() || Be() || ke();
4560
+ return jt() || Ge() || ke();
4549
4561
  }
4550
4562
  }
4551
- const es = Zr;
4563
+ const Zr = Qr;
4552
4564
  var gt = "@firebase/auth", _t = "1.7.5";
4553
4565
  /**
4554
4566
  * @license
@@ -4566,7 +4578,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4566
4578
  * See the License for the specific language governing permissions and
4567
4579
  * limitations under the License.
4568
4580
  */
4569
- class ts {
4581
+ class es {
4570
4582
  constructor(e) {
4571
4583
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4572
4584
  }
@@ -4617,7 +4629,7 @@ class ts {
4617
4629
  * See the License for the specific language governing permissions and
4618
4630
  * limitations under the License.
4619
4631
  */
4620
- function ns(n) {
4632
+ function ts(n) {
4621
4633
  switch (n) {
4622
4634
  case "Node":
4623
4635
  return "node";
@@ -4633,7 +4645,7 @@ function ns(n) {
4633
4645
  return;
4634
4646
  }
4635
4647
  }
4636
- function is(n) {
4648
+ function ns(n) {
4637
4649
  Ze(new et(
4638
4650
  "auth",
4639
4651
  (e, { options: t }) => {
@@ -4646,9 +4658,9 @@ function is(n) {
4646
4658
  apiHost: "identitytoolkit.googleapis.com",
4647
4659
  tokenApiHost: "securetoken.googleapis.com",
4648
4660
  apiScheme: "https",
4649
- sdkClientVersion: Bt(n)
4650
- }, l = new Oi(i, r, s, a);
4651
- return Fi(l, t), l;
4661
+ sdkClientVersion: Gt(n)
4662
+ }, l = new Ni(i, r, s, a);
4663
+ return xi(l, t), l;
4652
4664
  },
4653
4665
  "PUBLIC"
4654
4666
  /* ComponentType.PUBLIC */
@@ -4667,14 +4679,14 @@ function is(n) {
4667
4679
  "auth"
4668
4680
  /* _ComponentName.AUTH */
4669
4681
  ).getImmediate());
4670
- return ((i) => new ts(i))(t);
4682
+ return ((i) => new es(i))(t);
4671
4683
  },
4672
4684
  "PRIVATE"
4673
4685
  /* ComponentType.PRIVATE */
4674
4686
  ).setInstantiationMode(
4675
4687
  "EXPLICIT"
4676
4688
  /* InstantiationMode.EXPLICIT */
4677
- )), Le(gt, _t, ns(n)), Le(gt, _t, "esm2017");
4689
+ )), Le(gt, _t, ts(n)), Le(gt, _t, "esm2017");
4678
4690
  }
4679
4691
  /**
4680
4692
  * @license
@@ -4692,11 +4704,11 @@ function is(n) {
4692
4704
  * See the License for the specific language governing permissions and
4693
4705
  * limitations under the License.
4694
4706
  */
4695
- const rs = 5 * 60, ss = kt("authIdTokenMaxAge") || rs;
4707
+ const is = 5 * 60, rs = kt("authIdTokenMaxAge") || is;
4696
4708
  let vt = null;
4697
- const os = (n) => async (e) => {
4709
+ const ss = (n) => async (e) => {
4698
4710
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4699
- if (i && i > ss)
4711
+ if (i && i > rs)
4700
4712
  return;
4701
4713
  const r = t == null ? void 0 : t.token;
4702
4714
  vt !== r && (vt = r, await fetch(n, {
@@ -4706,33 +4718,33 @@ const os = (n) => async (e) => {
4706
4718
  } : {}
4707
4719
  }));
4708
4720
  };
4709
- function as(n = Nn()) {
4721
+ function os(n = Cn()) {
4710
4722
  const e = bt(n, "auth");
4711
4723
  if (e.isInitialized())
4712
4724
  return e.getImmediate();
4713
- const t = xi(n, {
4714
- popupRedirectResolver: es,
4725
+ const t = Di(n, {
4726
+ popupRedirectResolver: Zr,
4715
4727
  persistence: [
4716
- dr,
4717
- Zi,
4728
+ ur,
4729
+ Qi,
4718
4730
  Qt
4719
4731
  ]
4720
4732
  }), i = kt("authTokenSyncURL");
4721
4733
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4722
4734
  const s = new URL(i, location.origin);
4723
4735
  if (location.origin === s.origin) {
4724
- const o = os(s.toString());
4725
- Ji(t, o, () => o(t.currentUser)), Ki(t, (c) => o(c));
4736
+ const o = ss(s.toString());
4737
+ Ki(t, o, () => o(t.currentUser)), qi(t, (c) => o(c));
4726
4738
  }
4727
4739
  }
4728
- const r = Cn("auth");
4729
- return r && Vi(t, `http://${r}`), t;
4740
+ const r = Pn("auth");
4741
+ return r && Fi(t, `http://${r}`), t;
4730
4742
  }
4731
- function cs() {
4743
+ function as() {
4732
4744
  var n, e;
4733
4745
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4734
4746
  }
4735
- Li({
4747
+ Oi({
4736
4748
  loadJS(n) {
4737
4749
  return new Promise((e, t) => {
4738
4750
  const i = document.createElement("script");
@@ -4742,66 +4754,66 @@ Li({
4742
4754
  /* AuthErrorCode.INTERNAL_ERROR */
4743
4755
  );
4744
4756
  s.customData = r, t(s);
4745
- }, i.type = "text/javascript", i.charset = "UTF-8", cs().appendChild(i);
4757
+ }, i.type = "text/javascript", i.charset = "UTF-8", as().appendChild(i);
4746
4758
  });
4747
4759
  },
4748
4760
  gapiScript: "https://apis.google.com/js/api.js",
4749
4761
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4750
4762
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4751
4763
  });
4752
- is(
4764
+ ns(
4753
4765
  "Browser"
4754
4766
  /* ClientPlatform.BROWSER */
4755
4767
  );
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 = {
4768
+ var cs = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com", importFilesBucketUrl: "feedme-dev-4c3ef.appspot.com", clientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", featureFlagApiKey: "MaGoXrEWuEJNpWgKTqseee" }, ls = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
4769
+ const us = {
4758
4770
  key: 2,
4759
4771
  class: "h-full w-full"
4760
- }, hs = ["src"], Cs = /* @__PURE__ */ xe({
4772
+ }, ds = ["src"], Ps = /* @__PURE__ */ xe({
4761
4773
  __name: "App",
4762
4774
  setup(n) {
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();
4775
+ const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = ge();
4764
4776
  ie(
4765
4777
  () => {
4766
- var f;
4767
- return (f = l.value) == null ? void 0 : f._id;
4778
+ var p;
4779
+ return (p = l.value) == null ? void 0 : p._id;
4768
4780
  },
4769
- (f) => {
4770
- f && vn(f);
4781
+ (p) => {
4782
+ p && _n(p);
4771
4783
  },
4772
4784
  { immediate: !0 }
4773
4785
  );
4774
4786
  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}`;
4787
+ const p = e.currentCountry.value || "MY", g = tt.getIdToken(), v = l.value._id;
4788
+ return `${ls.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${p}&token=${g}`;
4777
4789
  });
4778
4790
  async function T() {
4779
- if (Dn().length) {
4791
+ if (Un().length) {
4780
4792
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4781
4793
  return;
4782
4794
  }
4783
- const f = xn(ls.firebase), g = await fn.getCustomToken(), v = as();
4784
- await qi(v, g), Fn(f), console.log("initFirebase", f);
4795
+ const p = Dn(cs.firebase), g = await fn.getCustomToken(), v = os();
4796
+ await zi(v, g), xn(p), console.log("initFirebase", p);
4785
4797
  }
4786
4798
  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;
4799
+ d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Hn) : e.hideSidebarToggle(!0), await T(), a.value = !0, d.value = !0;
4788
4800
  };
4789
4801
  return un(() => {
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);
4802
+ if (Fn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4803
+ const p = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], v = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4804
+ p == null || p.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), v == null || v.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4793
4805
  }
4794
4806
  l.value != null && (console.log("App mounted, forceRerender"), h());
4795
4807
  }), ie(
4796
4808
  () => e.currentBusiness.value,
4797
- async (f, g) => {
4798
- console.log("Current business changed"), f != null && f._id != g._id && (console.log("forceRerender when business changes", f, g), h());
4809
+ async (p, g) => {
4810
+ console.log("Current business changed"), p != null && p._id != g._id && (console.log("forceRerender when business changes", p, g), h());
4799
4811
  }
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, {
4812
+ ), (p, g) => (j(), me(It, null, [
4813
+ _(d) && _(m) === "v2" ? (j(), Oe(_(hn), { key: 0 })) : Pe("", !0),
4814
+ _(d) && _(m) === "v2" && _(c) ? (j(), Oe(si, { key: 1 })) : Pe("", !0),
4815
+ _(d) && _(m) !== "v2" ? (j(), me("div", us, [
4816
+ S(kn, {
4805
4817
  json: { url: _(y) }
4806
4818
  }, null, 8, ["json"]),
4807
4819
  I("iframe", {
@@ -4810,11 +4822,11 @@ const ds = {
4810
4822
  height: "100%",
4811
4823
  width: "100%",
4812
4824
  src: _(y)
4813
- }, null, 8, hs)
4825
+ }, null, 8, ds)
4814
4826
  ])) : Pe("", !0)
4815
4827
  ], 64));
4816
4828
  }
4817
4829
  });
4818
4830
  export {
4819
- Cs as default
4831
+ Ps as default
4820
4832
  };