@feedmepos/mf-connect 0.1.98-beta.83 → 0.1.98-beta.85

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 (137) hide show
  1. package/README.md +9 -1
  2. package/dist/{App-DoYDNru4.js → App-BxA547CP.js} +409 -403
  3. package/dist/{AuditLogs-qHYp6lM4.js → AuditLogs-DjsuO-ou.js} +13 -13
  4. package/dist/{Bin-CJvPHkvE.js → Bin-Cp1JuoPV.js} +8 -8
  5. package/dist/{Broadcast-D6ECVLby.js → Broadcast-C-dZ7I7J.js} +12 -12
  6. package/dist/{CampaignAnalytic-DbAO0BOB.js → CampaignAnalytic-CeJrlblr.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-UnagFqxE.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DNshyt4k.js} +8 -8
  8. package/dist/{Card-DbQcw0mC.js → Card-BRkDbHgP.js} +23 -23
  9. package/dist/{Collections-BFStwoAg.js → Collections-KGkn4jVg.js} +8 -8
  10. package/dist/{Credit-BVFgG__U.js → Credit-CYtdA8LR.js} +12 -12
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DXrDsiLw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B_GGXmKj.js} +1 -1
  12. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BBTJuWd_.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CC84YrQj.js} +36 -35
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BCWbz73-.js → EffectSheet.vue_vue_type_style_index_0_lang-Y8euxc9u.js} +6 -6
  14. package/dist/{Experience-CK_YnT2w.js → Experience-DyCWhTIc.js} +13 -13
  15. package/dist/{FileSaver.min-CawPE0hc.js → FileSaver.min-sifwJvOC.js} +1 -1
  16. package/dist/{Game-DrYm5UCq.js → Game-D2dtBGMx.js} +13 -13
  17. package/dist/{GiftCardSetup-CeB4uHzh.js → GiftCardSetup-4_wPeuGx.js} +73 -61
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-DRyzcwuk.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DaXZiLCz.js} +7 -7
  19. package/dist/{Goals-DDssCeP8.js → Goals-BZriqe6a.js} +4 -4
  20. package/dist/{Grab-BruNklz5.js → Grab-DE43gcBH.js} +9 -9
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-JIeTaPKV.js → ImageInput.vue_vue_type_script_setup_true_lang-BSmoRIp3.js} +1 -1
  22. package/dist/{Index-Qk1esxkY.js → Index-3-__a-F8.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Dblb8rtE.js → LocationPicker.vue_vue_type_script_setup_true_lang-DMFmuJHS.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-XepGx2h_.js → LottieAnimation.vue_vue_type_script_setup_true_lang-aCBsAVgf.js} +1 -1
  25. package/dist/{LoyaltyDashboard-VxKYWHoz.js → LoyaltyDashboard-BxqVkHWZ.js} +24 -23
  26. package/dist/MainLayout-VDwSL1-n.js +4 -0
  27. package/dist/{MainLayout-P6XTHUGB.js → MainLayout.vue_vue_type_script_setup_true_lang-DKwbltBD.js} +4 -4
  28. package/dist/{Marketing-CTYdcJfZ.js → Marketing-BkTXd2kV.js} +4 -4
  29. package/dist/{MarketingMaterialEdit-D-1tqOR_.js → MarketingMaterialEdit-DCmGVhn1.js} +6 -6
  30. package/dist/{Member-Dxuq4ZCO.js → Member-BZ-cZyCC.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-vIdcxago.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DeRvNRsk.js} +24 -24
  32. package/dist/{MemberImportHistory-DcofsjnB.js → MemberImportHistory-CunTfazI.js} +7 -7
  33. package/dist/{MemberList-DQ7MGqA_.js → MemberList-H8H9xzMg.js} +14 -14
  34. package/dist/{MemberTransactions--5lBgWBw.js → MemberTransactions-B1GTs17R.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DHst8mwG.js → MessageInput.vue_vue_type_script_setup_true_lang-C2K_acoB.js} +10 -10
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bb-tOtHg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BCRSJoq7.js} +1 -1
  37. package/dist/{Mission-C77jQ0ak.js → Mission-CNXUBVI4.js} +14 -14
  38. package/dist/{Overview-B4G2MVEP.js → Overview-CiIMyx-_.js} +21 -21
  39. package/dist/{Overview-BTDsp_z4.js → Overview-CwoDIRXD.js} +4 -4
  40. package/dist/{Point-CcU9cSwd.js → Point-BpFvqe5M.js} +14 -14
  41. package/dist/{Promotion-BWUpBOOf.js → Promotion-DwcxXXS3.js} +14 -14
  42. package/dist/{Queue-BrMy2YTd.js → Queue-CI9PtRqs.js} +13 -13
  43. package/dist/{Record-CeK0K1Yl.js → Record-Cl73WIoN.js} +9 -9
  44. package/dist/{Review-C3rRbudC.js → Review-BQL9TzxZ.js} +2 -2
  45. package/dist/{ReviewFacebookCallback-DrDIi4eL.js → ReviewFacebookCallback-BVcW6zNJ.js} +5 -5
  46. package/dist/{ReviewGoogleCallback-BXQeRqiH.js → ReviewGoogleCallback-peKv_-nP.js} +5 -5
  47. package/dist/{Reward-nBH1xNNR.js → Reward-6rLOoOkv.js} +16 -16
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-uBaqphhg.js → RewardGroup.vue_vue_type_script_setup_true_lang-CZ2OWRik.js} +14 -14
  49. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DmPpapkp.js → RuleGroup.vue_vue_type_script_setup_true_lang-B7GKzELx.js} +15 -15
  50. package/dist/{Segment-B3pAFkuH.js → Segment-DnrCf_-F.js} +26 -26
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bz13JYlQ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DyYWf2RR.js} +15 -15
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Ct8y-moB.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C-GxdVOH.js} +4 -4
  53. package/dist/{Setting-NGYZe9J1.js → Setting-BlU3XioB.js} +14 -14
  54. package/dist/{SettingAdvertisements-9N8x4lIo.js → SettingAdvertisements-CW9KUQAk.js} +12 -12
  55. package/dist/{Settings-BKJBdYbG.js → Settings-DfKCItWN.js} +5 -5
  56. package/dist/{Store-CnMsvn0G.js → Store-Dh90RjUg.js} +780 -771
  57. package/dist/{StoreRewards-B0DPGAEq.js → StoreRewards-BmEJZR1O.js} +15 -15
  58. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-D__oi--Z.js → StoreTransactions.vue_vue_type_script_setup_true_lang-C-Efc4SV.js} +25 -25
  59. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BRJIcmLs.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Bv0_e1wk.js} +2 -2
  60. package/dist/{Tier-DFn6wpLy.js → Tier-C7EiLGJW.js} +27 -27
  61. package/dist/{Title-BeM9d4fj.js → Title-DPf-0vrF.js} +23 -23
  62. package/dist/{Transaction-DXIDbCJV.js → Transaction-DsAk9Gb9.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CcoMCIWr.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Csojc1fI.js} +6 -6
  64. package/dist/{Voucher-D18h9vy8.js → Voucher-BKp9CMMe.js} +18 -18
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Dyzo3qNu.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Cpn8legF.js} +12 -12
  66. package/dist/WhatsappAccount-DjAL89Re.js +342 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-D25DVRXA.js +97 -0
  68. package/dist/WhatsappBot-CSy_Z1bz.js +581 -0
  69. package/dist/{WhatsappBotSettings-DPBqHZXW.js → WhatsappBotSettings-CxcuCZ-V.js} +4 -4
  70. package/dist/WhatsappBotTickets-DS7_jaE3.js +162 -0
  71. package/dist/WhatsappLayout-Db3329On.js +21 -0
  72. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DL7rIl_N.js → ZodTextField.vue_vue_type_script_setup_true_lang-D6Z-3QOR.js} +2 -2
  73. package/dist/{app-DqMmw6WJ.js → app-BiUEivOU.js} +74 -69
  74. package/dist/app.js +1 -1
  75. package/dist/{base.export-BoqiarPy.js → base.export-Bvf3GR9p.js} +2 -2
  76. package/dist/{business-CcxL-gF3.js → business-DgmJwclv.js} +5 -5
  77. package/dist/{campaign-BE2lgjRF.js → campaign-C9TU71PO.js} +8 -8
  78. package/dist/{campaign-MBz26iMH.js → campaign-DxjYod5y.js} +2 -2
  79. package/dist/{campaign.fn-D5LT2U39.js → campaign.fn-BGdwcW0r.js} +116 -116
  80. package/dist/{collection.fn-CpJyr6Y_.js → collection.fn-B9t79SwE.js} +2 -2
  81. package/dist/{currency-kViea7ZW.js → currency-K9kgZvJm.js} +1 -1
  82. package/dist/{duplicateCampaign-DwFhnGNW.js → duplicateCampaign-CLeVibNm.js} +2 -2
  83. package/dist/{effect-OEQJ_NOd.js → effect-Bj5p3FOF.js} +1 -1
  84. package/dist/{email-addresses-BiqNmeSY.js → email-addresses-CUpmh5j3.js} +2 -2
  85. package/dist/feature-flag-Dfon0BoK.js +18 -0
  86. package/dist/{helper-qe6OtfMQ.js → helper-iVOlqZr5.js} +1 -1
  87. package/dist/{index-C4tRz5aW.js → index-BIqP1bQh.js} +2 -2
  88. package/dist/{index-DNLDqugg.js → index-BRk5I8NE.js} +1 -1
  89. package/dist/{index-BCVOoMJ1.js → index-C57WFxg7.js} +2 -2
  90. package/dist/{index-CDL5im4n.js → index-C641kFzY.js} +1 -1
  91. package/dist/{index-DWW4rV5u.js → index-CGctGLsw.js} +1 -1
  92. package/dist/{index-BjJnzBgb.js → index-COB25nai.js} +583 -576
  93. package/dist/{index-IdvPib7v.js → index-CedoUPYn.js} +2 -2
  94. package/dist/index-Cfr0vxa5.js +1775 -0
  95. package/dist/{index-BCXUZHQr.js → index-Cq0kWJ_W.js} +2 -2
  96. package/dist/{index-uxpFoeBR.js → index-D6CbkBm6.js} +3 -3
  97. package/dist/{index-B2JXMepI.js → index-DAcwqenP.js} +7 -7
  98. package/dist/{index-B6mE0q8e.js → index-DJQVYP1Z.js} +1 -1
  99. package/dist/{index-CM0g-9-V.js → index-DUr59xHS.js} +2 -2
  100. package/dist/{index-CnHeoO9f.js → index-DXNB9FHg.js} +2 -2
  101. package/dist/{index-DopAV1p0.js → index-DgkRREfK.js} +18 -14
  102. package/dist/{index-C01w59Sf.js → index-Dhd9eEjz.js} +1 -1
  103. package/dist/{index-DCO-4L0t.js → index-FcdiLtUc.js} +9 -9
  104. package/dist/{index-B5-ebn1k.js → index-HctLGyyi.js} +4 -4
  105. package/dist/{index-DSkhLfAT.js → index-MVfpQsRI.js} +4 -3
  106. package/dist/{index-DZIBSUS_.js → index-YV22ZWWA.js} +2 -2
  107. package/dist/{index-BivO-FMW.js → index-dEfSQ43r.js} +1 -1
  108. package/dist/{index-CXafRDRN.js → index-onmieavP.js} +5975 -7746
  109. package/dist/{index.esm2017-JBUZVF0b.js → index.esm2017-BUZxOBD5.js} +1 -1
  110. package/dist/{loading-BWIBiviO.js → loading-D3jN17Xy.js} +1 -1
  111. package/dist/{lodash-BzPqU7SK.js → lodash-DvKbipfn.js} +1 -1
  112. package/dist/{member-import-Bf5_v2rw.js → member-import-BuytQk0w.js} +1 -1
  113. package/dist/{membership-D_wss7NM.js → membership-Beh_I5Kj.js} +2 -2
  114. package/dist/{money-Bh3-N1sf.js → money-C3v95tda.js} +1 -1
  115. package/dist/{number-BbQ0fzK1.js → number-Cc7Yq2nP.js} +1 -1
  116. package/dist/{objectid-DXuwIDWq.js → objectid-fKMrrct7.js} +9 -9
  117. package/dist/{onboarding-DspO-Me0.js → onboarding-DJgY8HJr.js} +3 -3
  118. package/dist/{onboardingSetup-MufLiFPA.js → onboardingSetup-DJJLdr11.js} +2 -2
  119. package/dist/{plugins-JFwonds1.js → plugins-CcGeLF_l.js} +3 -3
  120. package/dist/{reward-DgsTibBz.js → reward-4aAVrRc8.js} +1 -1
  121. package/dist/{rule-C9wt-ChP.js → rule-D6x2GyGw.js} +10 -10
  122. package/dist/style.css +1 -1
  123. package/dist/{template-DelWr_nw.js → template-Dafdx5YI.js} +6 -6
  124. package/dist/{timezone-tn-KM65h.js → timezone-BDIlVTOp.js} +1 -1
  125. package/dist/{transaction.fn-n9smufaW.js → transaction.fn-CBVylmzu.js} +2 -2
  126. package/dist/{trigger-C26nxLCh.js → trigger-ChNg0oG9.js} +5 -5
  127. package/dist/{useMarketingMaterialActions-IM2MsMTk.js → useMarketingMaterialActions-LSsbTrFn.js} +3 -3
  128. package/dist/{usePagination-Dtz2hc5n.js → usePagination-CqPRf6q3.js} +1 -1
  129. package/dist/{user-BkwDIIp3.js → user-6kqmEFbR.js} +1 -1
  130. package/dist/{vue-i18n-Dnb3kew0.js → vue-i18n-BJ_ZHWvK.js} +314 -314
  131. package/dist/{xlsx-be-7IH2e.js → xlsx-CWXvmWqg.js} +1 -1
  132. package/dist/{zod-CAhiOJ1R.js → zod-DBefBbjY.js} +1 -1
  133. package/package.json +1 -1
  134. package/dist/WhatsappAccount-Be38M23T.js +0 -325
  135. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DBS9_rbY.js +0 -80
  136. package/dist/WhatsappBot-lyaORqV6.js +0 -561
  137. package/dist/WhatsappBotTickets-D_3v1pKU.js +0 -153
@@ -1,139 +1,141 @@
1
- import { defineComponent as xe, ref as ee, h as U, Comment as cn, computed as ne, watch as pe, resolveComponent as Z, openBlock as W, createElementBlock as me, createVNode as S, unref as g, createElementVNode as v, toDisplayString as R, createBlock as Oe, withCtx as Q, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
1
+ import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y, watch as pe, resolveComponent as ee, openBlock as j, createElementBlock as me, createVNode as S, unref as _, createElementVNode as v, 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-CcxL-gF3.js";
6
- import "./index-CDL5im4n.js";
7
- import { components as j, useSnackbar as gn, useDialog as _n } from "@feedmepos/ui-library";
8
- import { u as Tt } from "./vue-i18n-Dnb3kew0.js";
9
- import { m as vn } from "./index-DNLDqugg.js";
10
- import { C as Xe } from "./timezone-tn-KM65h.js";
11
- import { u as In } from "./onboarding-DspO-Me0.js";
12
- import { R as f, A as yn, a as Qe } from "./app-DqMmw6WJ.js";
13
- import { J as wn } from "./JsonViewer-v8_C7l5N.js";
14
- import { r as Le, L as Tn, g as kt, i as kn, a as bn, _ as Ze, C as et, b as En, S as re, c as A, d as Y, E as Fe, e as Sn, f as bt, h as Rn, j as An, k as Et, l as w, m as Pn, F as Ve, n as Cn, q as se, o as Nn, p as On, s as Ln, t as Mn, u as Un } from "./index.esm2017-JBUZVF0b.js";
5
+ import { u as mn } from "./business-DgmJwclv.js";
6
+ import "./index-C641kFzY.js";
7
+ import { components as W, useSnackbar as gn, useDialog as _n } from "@feedmepos/ui-library";
8
+ import { u as Tt } from "./vue-i18n-BJ_ZHWvK.js";
9
+ import { m as vn } from "./index-BRk5I8NE.js";
10
+ import { i as In } from "./feature-flag-Dfon0BoK.js";
11
+ import { C as Xe } from "./timezone-BDIlVTOp.js";
12
+ import { u as yn } from "./onboarding-DJgY8HJr.js";
13
+ import { R as h, A as wn, a as Qe } from "./app-BiUEivOU.js";
14
+ import { J as Tn } from "./JsonViewer-v8_C7l5N.js";
15
+ import { r as Le, L as kn, g as kt, i as bn, a as En, _ as Ze, C as et, b as Sn, S as re, c as A, d as X, E as Fe, e as Rn, f as bt, h as An, j as Pn, k as Et, l as w, m as Cn, F as Ve, n as Nn, q as se, o as On, p as Ln, s as Mn, t as Un, u as Dn } from "./index.esm2017-BUZxOBD5.js";
15
16
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
16
- import { S as tt, c as Dn } from "./index-CXafRDRN.js";
17
- const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Vn = /* @__PURE__ */ xe({
17
+ import { c as xn } from "./index-onmieavP.js";
18
+ import { S as tt } from "./index-Cfr0vxa5.js";
19
+ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, $n = /* @__PURE__ */ xe({
18
20
  __name: "NavigationTab",
19
21
  setup(n) {
20
- const { t: e, locale: t } = Tt(), i = In(), r = ee(), s = [
22
+ const { t: e, locale: t } = Tt(), i = yn(), r = te(), s = [
21
23
  {
22
24
  label: e("connect.navigation.analytic"),
23
- value: f["$connect-ANALYTIC"]
25
+ value: h["$connect-ANALYTIC"]
24
26
  },
25
27
  {
26
28
  label: e("connect.navigation.campaign"),
27
- value: f["$connect-CAMPAIGN"],
29
+ value: h["$connect-CAMPAIGN"],
28
30
  children: [
29
31
  {
30
32
  label: e("connect.navigation.promotion"),
31
- value: f["$connect-CAMPAIGN_PROMOTION"]
33
+ value: h["$connect-CAMPAIGN_PROMOTION"]
32
34
  },
33
35
  {
34
36
  label: e("connect.navigation.voucher"),
35
- value: f["$connect-CAMPAIGN_VOUCHER"]
37
+ value: h["$connect-CAMPAIGN_VOUCHER"]
36
38
  },
37
39
  {
38
40
  label: e("connect.navigation.broadcast"),
39
- value: f["$connect-CAMPAIGN_BROADCAST"]
41
+ value: h["$connect-CAMPAIGN_BROADCAST"]
40
42
  },
41
43
  {
42
44
  label: e("connect.navigation.grab"),
43
- value: f["$connect-CAMPAIGN_GRAB"]
45
+ value: h["$connect-CAMPAIGN_GRAB"]
44
46
  }
45
47
  ]
46
48
  },
47
49
  {
48
50
  label: e("connect.navigation.program"),
49
- value: f["$connect-PROGRAM"],
51
+ value: h["$connect-PROGRAM"],
50
52
  children: [
51
53
  {
52
54
  label: e("connect.navigation.tier"),
53
- value: f["$connect-PROGRAM_TIER"]
55
+ value: h["$connect-PROGRAM_TIER"]
54
56
  },
55
57
  {
56
58
  label: e("connect.navigation.title"),
57
- value: f["$connect-PROGRAM_TITLE"]
59
+ value: h["$connect-PROGRAM_TITLE"]
58
60
  },
59
61
  {
60
62
  label: e("connect.navigation.experience"),
61
- value: f["$connect-PROGRAM_EXPERIENCE"]
63
+ value: h["$connect-PROGRAM_EXPERIENCE"]
62
64
  },
63
65
  {
64
66
  label: e("connect.navigation.point"),
65
- value: f["$connect-PROGRAM_POINT"],
66
- badge: () => U(j.FmPill, { variant: "premium" })
67
+ value: h["$connect-PROGRAM_POINT"],
68
+ badge: () => U(W.FmPill, { variant: "premium" })
67
69
  },
68
70
  {
69
71
  label: e("connect.navigation.credit"),
70
- value: f["$connect-PROGRAM_CREDIT"]
72
+ value: h["$connect-PROGRAM_CREDIT"]
71
73
  },
72
74
  {
73
75
  label: e("connect.navigation.game"),
74
- value: f["$connect-PROGRAM_GAME"],
75
- badge: () => U(j.FmPill, { variant: "premium" })
76
+ value: h["$connect-PROGRAM_GAME"],
77
+ badge: () => U(W.FmPill, { variant: "premium" })
76
78
  },
77
79
  {
78
80
  label: "Mission",
79
- value: f["$connect-PROGRAM_MISSION"]
81
+ value: h["$connect-PROGRAM_MISSION"]
80
82
  }
81
83
  ]
82
84
  },
83
85
  {
84
86
  label: e("connect.navigation.loyalty"),
85
- value: f["$connect-LOYALTY"],
87
+ value: h["$connect-LOYALTY"],
86
88
  children: [
87
89
  {
88
90
  label: e("connect.navigation.member"),
89
- value: f["$connect-LOYALTY_MEMBER_LIST"]
91
+ value: h["$connect-LOYALTY_MEMBER_LIST"]
90
92
  },
91
93
  {
92
94
  label: e("connect.navigation.segments"),
93
- value: f["$connect-LOYALTY_SEGMENT"],
94
- badge: () => U(j.FmPill, { variant: "premium" })
95
+ value: h["$connect-LOYALTY_SEGMENT"],
96
+ badge: () => U(W.FmPill, { variant: "premium" })
95
97
  },
96
98
  {
97
99
  label: e("connect.navigation.card"),
98
- value: f["$connect-LOYALTY_CARD"],
99
- badge: () => U(j.FmPill, { variant: "premium" })
100
+ value: h["$connect-LOYALTY_CARD"],
101
+ badge: () => U(W.FmPill, { variant: "premium" })
100
102
  }
101
103
  ]
102
104
  },
103
105
  {
104
106
  label: e("connect.navigation.whatsappBot"),
105
- value: f["$connect-WHATSAPP"],
106
- badge: () => U(j.FmPill, { variant: "beta" })
107
+ value: h["$connect-WHATSAPP"],
108
+ badge: () => U(W.FmPill, { variant: "beta" })
107
109
  },
108
110
  {
109
111
  label: e("connect.navigation.referral"),
110
- value: f["$connect-REFERRAL"],
111
- badge: () => U(j.FmPill, { variant: "premium" })
112
+ value: h["$connect-REFERRAL"],
113
+ badge: () => U(W.FmPill, { variant: "premium" })
112
114
  },
113
115
  {
114
116
  label: e("connect.navigation.store"),
115
- value: f["$connect-STORE"]
117
+ value: h["$connect-STORE"]
116
118
  },
117
119
  {
118
120
  label: e("connect.navigation.transaction"),
119
- value: f["$connect-TRANSACTION"]
121
+ value: h["$connect-TRANSACTION"]
120
122
  },
121
123
  {
122
124
  label: e("connect.navigation.marketingMaterials"),
123
- value: f["$connect-MARKETING"]
125
+ value: h["$connect-MARKETING"]
124
126
  },
125
127
  {
126
128
  label: e("connect.navigation.auditLogs"),
127
- value: f["$connect-AUDIT_LOGS"]
129
+ value: h["$connect-AUDIT_LOGS"]
128
130
  },
129
131
  {
130
132
  label: e("connect.navigation.review"),
131
- value: f["$connect-REVIEW"]
133
+ value: h["$connect-REVIEW"]
132
134
  },
133
135
  {
134
136
  label: e("connect.navigation.goals"),
135
- value: f["$connect-GOALS"],
136
- badge: () => i.goalsRemaining > 0 ? U(j.FmBadge, {
137
+ value: h["$connect-GOALS"],
138
+ badge: () => i.goalsRemaining > 0 ? U(W.FmBadge, {
137
139
  variant: "numeric",
138
140
  inline: !0,
139
141
  value: i.goalsRemaining
@@ -141,188 +143,192 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
141
143
  },
142
144
  {
143
145
  label: e("connect.navigation.setting"),
144
- value: f["$connect-SETTING"]
146
+ value: h["$connect-SETTING"]
145
147
  },
146
148
  {
147
149
  label: e("connect.navigation.bin"),
148
- value: f["$connect-BIN"]
150
+ value: h["$connect-BIN"]
149
151
  }
150
- ], o = yt(), c = wt(), a = s.reduce((h, y) => [...(y.children ?? []).map((_) => _.value), ...h, y.value], []), l = ge(), d = ne(() => {
151
- const h = l.currentCountry.value || "MY";
152
- return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
152
+ ], o = Y(
153
+ () => s.filter(
154
+ (f) => f.value !== h["$connect-WHATSAPP"] || In()
155
+ )
156
+ ), c = yt(), a = wt(), l = s.reduce((f, I) => [...(I.children ?? []).map((p) => p.value), ...f, I.value], []), d = ge(), m = Y(() => {
157
+ const f = d.currentCountry.value || "MY";
158
+ return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
153
159
  });
154
160
  pe(
155
161
  // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
156
162
  // whose identity never changes, so watching it directly fired once via
157
163
  // `immediate` and the highlight then stayed on whatever page loaded first.
158
- () => c.matched,
159
- (h) => {
160
- const _ = h.map((p) => p.name).reverse().find((p) => a.includes(p));
161
- _ && (r.value = _);
164
+ () => a.matched,
165
+ (f) => {
166
+ const p = f.map((g) => g.name).reverse().find((g) => l.includes(g));
167
+ p && (r.value = p);
162
168
  },
163
169
  { immediate: !0 }
164
170
  ), pe(
165
171
  [() => {
166
- var h;
167
- return (h = l.currentBusiness.value) == null ? void 0 : h._id;
168
- }, () => c.name, t],
169
- ([h]) => {
170
- h && i.read(t.value, h);
172
+ var f;
173
+ return (f = d.currentBusiness.value) == null ? void 0 : f._id;
174
+ }, () => a.name, t],
175
+ ([f]) => {
176
+ f && i.read(t.value, f);
171
177
  },
172
178
  { immediate: !0 }
173
179
  );
174
- async function m(h) {
175
- await o.push({ name: h });
180
+ async function y(f) {
181
+ await c.push({ name: f });
176
182
  }
177
- return (h, y) => {
178
- var p;
179
- const _ = Z("FmCollapsibleTabs");
180
- return W(), me("div", xn, [
181
- S(_, {
183
+ return (f, I) => {
184
+ var g;
185
+ const p = ee("FmCollapsibleTabs");
186
+ return j(), me("div", Fn, [
187
+ S(p, {
182
188
  class: "border-fm-color-neutral-gray-100 border-r px-4",
183
- "model-value": (p = g(r)) == null ? void 0 : p.toString(),
184
- items: s,
185
- "onUpdate:modelValue": m
186
- }, null, 8, ["model-value"]),
187
- v("div", Fn, [
188
- v("div", null, "Timezone: " + R(g(d).split("/")[1].replace("_", " ")), 1),
189
- v("div", null, "(UTC" + R(g(vn).tz(g(d)).format("Z")) + ")", 1)
189
+ "model-value": (g = _(r)) == null ? void 0 : g.toString(),
190
+ items: _(o),
191
+ "onUpdate:modelValue": y
192
+ }, null, 8, ["model-value", "items"]),
193
+ v("div", Vn, [
194
+ v("div", null, "Timezone: " + R(_(m).split("/")[1].replace("_", " ")), 1),
195
+ v("div", null, "(UTC" + R(_(vn).tz(_(m)).format("Z")) + ")", 1)
190
196
  ])
191
197
  ]);
192
198
  };
193
199
  }
194
200
  }), St = "feedme_connect_marketing_promo_hidden";
195
- function $n() {
201
+ function Hn() {
196
202
  try {
197
203
  return localStorage.getItem(St) !== null;
198
204
  } catch {
199
205
  return !1;
200
206
  }
201
207
  }
202
- function Hn() {
208
+ function Wn() {
203
209
  try {
204
210
  localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
205
211
  } catch {
206
212
  }
207
213
  }
208
- const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, Gn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Bn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, zn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, qn = { class: "flex flex-col gap-24 pb-8" }, Kn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Jn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Yn = { class: "fm-typo-en-body-lg-600" }, Xn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Qn = { class: "shrink-0" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ei = { class: "flex w-full flex-col gap-12 px-[16px]" }, ti = { class: "flex flex-wrap items-center gap-12" }, ni = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ii = /* @__PURE__ */ xe({
214
+ const jn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, Gn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, zn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, qn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Kn = { class: "flex flex-col gap-24 pb-8" }, Jn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Yn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Xn = { class: "fm-typo-en-body-lg-600" }, Qn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Zn = { class: "shrink-0" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ti = { class: "flex w-full flex-col gap-12 px-[16px]" }, ni = { class: "flex flex-wrap items-center gap-12" }, ii = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ri = /* @__PURE__ */ xe({
209
215
  __name: "AiMarketingPromoDialog",
210
216
  setup(n) {
211
217
  let e = !1;
212
- const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o = ee(!1), c = [
218
+ const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o = te(!1), c = [
213
219
  { key: "completeContent", icon: "layers" },
214
220
  { key: "realContext", icon: "storefront" },
215
221
  { key: "socialFormat", icon: "aspect_ratio" }
216
- ], a = ne(() => {
217
- var _;
218
- const y = ((_ = r.value) == null ? void 0 : _.permissions) ?? [];
219
- return yn(
222
+ ], a = Y(() => {
223
+ var I;
224
+ const f = ((I = r.value) == null ? void 0 : I.permissions) ?? [];
225
+ return wn(
220
226
  [
221
227
  {
222
228
  action: Qe.Action.manage,
223
229
  subject: Qe.Subject.Business.crm_marketingMaterial
224
230
  }
225
231
  ],
226
- y
232
+ f
227
233
  ).granted;
228
- }), l = ne(
234
+ }), l = Y(
229
235
  () => s.value === "MY" && a.value
230
236
  );
231
237
  let d = !1;
232
238
  pe(
233
239
  l,
234
- (y) => {
235
- d || !y || (d = !0, !($n() || e) && (e = !0, o.value = !0));
240
+ (f) => {
241
+ d || !f || (d = !0, !(Hn() || e) && (e = !0, o.value = !0));
236
242
  },
237
243
  { immediate: !0 }
238
244
  );
239
245
  async function m() {
240
- o.value = !1, await i.push({ name: f["$connect-MARKETING"] });
246
+ o.value = !1, await i.push({ name: h["$connect-MARKETING"] });
241
247
  }
242
- function h() {
243
- Hn(), o.value = !1;
248
+ function y() {
249
+ Wn(), o.value = !1;
244
250
  }
245
- return (y, _) => {
246
- const p = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
247
- return W(), Oe(M, {
251
+ return (f, I) => {
252
+ const p = ee("FmIcon"), g = ee("FmCard"), T = ee("FmButton"), M = ee("FmDialog");
253
+ return j(), Oe(M, {
248
254
  modelValue: o.value,
249
- "onUpdate:modelValue": _[0] || (_[0] = (k) => o.value = k),
255
+ "onUpdate:modelValue": I[0] || (I[0] = (k) => o.value = k),
250
256
  "min-width": "min(500px, calc(100% - 48px))",
251
257
  "max-width": "min(860px, calc(100% - 48px))",
252
258
  "max-height": "90vh",
253
259
  "dismiss-away": ""
254
260
  }, {
255
- "dialog-header": Q(() => [
261
+ "dialog-header": Z(() => [
256
262
  v("div", jn, [
257
- v("div", Wn, [
263
+ v("div", Bn, [
258
264
  S(p, {
259
265
  name: "auto_awesome",
260
266
  size: "sm",
261
267
  color: "primary"
262
268
  }),
263
- v("span", Gn, R(g(t)("connect.marketing.whatsNew.badge")), 1)
269
+ v("span", Gn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
264
270
  ]),
265
- v("h1", Bn, R(g(t)("connect.marketing.whatsNew.title")), 1),
266
- v("p", zn, R(g(t)("connect.marketing.whatsNew.subtitle")), 1)
271
+ v("h1", zn, R(_(t)("connect.marketing.whatsNew.title")), 1),
272
+ v("p", qn, R(_(t)("connect.marketing.whatsNew.subtitle")), 1)
267
273
  ])
268
274
  ]),
269
- "dialog-footer": Q(() => [
270
- v("div", ei, [
271
- v("div", ti, [
275
+ "dialog-footer": Z(() => [
276
+ v("div", ti, [
277
+ v("div", ni, [
272
278
  S(T, {
273
279
  variant: "primary",
274
280
  size: "lg",
275
- label: g(t)("connect.marketing.whatsNew.cta"),
281
+ label: _(t)("connect.marketing.whatsNew.cta"),
276
282
  "append-icon": "arrow_forward",
277
283
  onClick: m
278
284
  }, null, 8, ["label"]),
279
285
  S(T, {
280
286
  variant: "tertiary",
281
287
  size: "lg",
282
- label: g(t)("connect.marketing.whatsNew.dismiss"),
283
- onClick: h
288
+ label: _(t)("connect.marketing.whatsNew.dismiss"),
289
+ onClick: y
284
290
  }, null, 8, ["label"])
285
291
  ]),
286
- v("div", ni, R(g(t)("connect.marketing.whatsNew.footnote")), 1)
292
+ v("div", ii, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
287
293
  ])
288
294
  ]),
289
- default: Q(() => [
290
- v("div", qn, [
291
- v("div", Kn, [
292
- (W(), me(It, null, ln(c, (k) => S(I, {
295
+ default: Z(() => [
296
+ v("div", Kn, [
297
+ v("div", Jn, [
298
+ (j(), me(It, null, ln(c, (k) => S(g, {
293
299
  key: k.key,
294
300
  variant: "outlined",
295
301
  class: "!h-full flex flex-col gap-8 p-16"
296
302
  }, {
297
- default: Q(() => [
298
- v("div", Jn, [
303
+ default: Z(() => [
304
+ v("div", Yn, [
299
305
  S(p, {
300
306
  name: k.icon,
301
307
  size: "md",
302
308
  color: "primary"
303
309
  }, null, 8, ["name"])
304
310
  ]),
305
- v("div", Yn, R(g(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
306
- v("div", Xn, R(g(t)(
311
+ v("div", Xn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
312
+ v("div", Qn, R(_(t)(
307
313
  `connect.marketing.whatsNew.benefits.${k.key}.description`
308
314
  )), 1)
309
315
  ]),
310
316
  _: 2
311
317
  }, 1024)), 64))
312
318
  ]),
313
- S(I, {
319
+ S(g, {
314
320
  variant: "outlined",
315
321
  class: "flex items-start gap-12 p-16"
316
322
  }, {
317
- default: Q(() => [
318
- v("div", Qn, [
323
+ default: Z(() => [
324
+ v("div", Zn, [
319
325
  S(p, {
320
326
  name: "lightbulb",
321
327
  size: "md",
322
328
  color: "primary"
323
329
  })
324
330
  ]),
325
- v("p", Zn, R(g(t)("connect.marketing.whatsNew.callout")), 1)
331
+ v("p", ei, R(_(t)("connect.marketing.whatsNew.callout")), 1)
326
332
  ]),
327
333
  _: 1
328
334
  })
@@ -333,7 +339,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
333
339
  };
334
340
  }
335
341
  });
336
- var ri = "firebase", si = "10.12.4";
342
+ var si = "firebase", oi = "10.12.4";
337
343
  /**
338
344
  * @license
339
345
  * Copyright 2020 Google LLC
@@ -350,13 +356,13 @@ var ri = "firebase", si = "10.12.4";
350
356
  * See the License for the specific language governing permissions and
351
357
  * limitations under the License.
352
358
  */
353
- Le(ri, si, "app");
359
+ Le(si, oi, "app");
354
360
  function Rt() {
355
361
  return {
356
362
  "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."
357
363
  };
358
364
  }
359
- const oi = Rt, At = new Fe("auth", "Firebase", Rt());
365
+ const ai = Rt, At = new Fe("auth", "Firebase", Rt());
360
366
  /**
361
367
  * @license
362
368
  * Copyright 2020 Google LLC
@@ -373,8 +379,8 @@ const oi = Rt, At = new Fe("auth", "Firebase", Rt());
373
379
  * See the License for the specific language governing permissions and
374
380
  * limitations under the License.
375
381
  */
376
- const _e = new Tn("@firebase/auth");
377
- function ai(n, ...e) {
382
+ const _e = new kn("@firebase/auth");
383
+ function ci(n, ...e) {
378
384
  _e.logLevel <= Et.WARN && _e.warn(`Auth (${re}): ${n}`, ...e);
379
385
  }
380
386
  function ue(n, ...e) {
@@ -403,7 +409,7 @@ function b(n, ...e) {
403
409
  return He(n, ...e);
404
410
  }
405
411
  function Pt(n, e, t) {
406
- const i = Object.assign(Object.assign({}, oi()), { [e]: t });
412
+ const i = Object.assign(Object.assign({}, ai()), { [e]: t });
407
413
  return new Fe("auth", "Firebase", i).create(e, {
408
414
  appName: n.name
409
415
  });
@@ -449,7 +455,7 @@ function Me() {
449
455
  var n;
450
456
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
451
457
  }
452
- function ci() {
458
+ function li() {
453
459
  return nt() === "http:" || nt() === "https:";
454
460
  }
455
461
  function nt() {
@@ -472,15 +478,15 @@ function nt() {
472
478
  * See the License for the specific language governing permissions and
473
479
  * limitations under the License.
474
480
  */
475
- function li() {
481
+ function ui() {
476
482
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
477
483
  // This is especially true for Cordova apps which have unreliable
478
484
  // navigator.onLine behavior unless cordova-plugin-network-information is
479
485
  // installed which overwrites the native navigator.onLine value and
480
486
  // defines navigator.connection.
481
- (ci() || En() || "connection" in navigator) ? navigator.onLine : !0;
487
+ (li() || Sn() || "connection" in navigator) ? navigator.onLine : !0;
482
488
  }
483
- function ui() {
489
+ function di() {
484
490
  if (typeof navigator > "u")
485
491
  return null;
486
492
  const n = navigator;
@@ -510,10 +516,10 @@ function ui() {
510
516
  */
511
517
  class oe {
512
518
  constructor(e, t) {
513
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = kn() || bn();
519
+ this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = bn() || En();
514
520
  }
515
521
  get() {
516
- return li() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
522
+ return ui() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
517
523
  }
518
524
  }
519
525
  /**
@@ -532,7 +538,7 @@ class oe {
532
538
  * See the License for the specific language governing permissions and
533
539
  * limitations under the License.
534
540
  */
535
- function je(n, e) {
541
+ function We(n, e) {
536
542
  L(n.emulator, "Emulator should always be set here");
537
543
  const { url: t } = n.emulator;
538
544
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
@@ -607,7 +613,7 @@ class Ct {
607
613
  * See the License for the specific language governing permissions and
608
614
  * limitations under the License.
609
615
  */
610
- const di = {
616
+ const hi = {
611
617
  // Custom token errors.
612
618
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
613
619
  // This can only happen if the SDK sends a bad request.
@@ -698,11 +704,11 @@ const di = {
698
704
  * See the License for the specific language governing permissions and
699
705
  * limitations under the License.
700
706
  */
701
- const hi = new oe(3e4, 6e4);
707
+ const fi = new oe(3e4, 6e4);
702
708
  function Te(n, e) {
703
709
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
704
710
  }
705
- async function X(n, e, t, i, r = {}) {
711
+ async function Q(n, e, t, i, r = {}) {
706
712
  return Nt(n, r, async () => {
707
713
  let s = {}, o = {};
708
714
  i && (e === "GET" ? o = i : s = {
@@ -724,9 +730,9 @@ async function X(n, e, t, i, r = {}) {
724
730
  }
725
731
  async function Nt(n, e, t) {
726
732
  n._canInitEmulator = !1;
727
- const i = Object.assign(Object.assign({}, di), e);
733
+ const i = Object.assign(Object.assign({}, hi), e);
728
734
  try {
729
- const r = new fi(n), s = await Promise.race([
735
+ const r = new pi(n), s = await Promise.race([
730
736
  t(),
731
737
  r.promise
732
738
  ]);
@@ -756,23 +762,23 @@ async function Nt(n, e, t) {
756
762
  }
757
763
  }
758
764
  async function Ot(n, e, t, i, r = {}) {
759
- const s = await X(n, e, t, i, r);
765
+ const s = await Q(n, e, t, i, r);
760
766
  return "mfaPendingCredential" in s && O(n, "multi-factor-auth-required", {
761
767
  _serverResponse: s
762
768
  }), s;
763
769
  }
764
770
  function Lt(n, e, t, i) {
765
771
  const r = `${e}${t}?${i}`;
766
- return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
772
+ return n.config.emulator ? We(n.config, r) : `${n.config.apiScheme}://${r}`;
767
773
  }
768
- class fi {
774
+ class pi {
769
775
  constructor(e) {
770
776
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
771
777
  this.timer = setTimeout(() => i(b(
772
778
  this.auth,
773
779
  "network-request-failed"
774
780
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
775
- )), hi.get());
781
+ )), fi.get());
776
782
  });
777
783
  }
778
784
  clearNetworkTimeout() {
@@ -803,11 +809,11 @@ function le(n, e, t) {
803
809
  * See the License for the specific language governing permissions and
804
810
  * limitations under the License.
805
811
  */
806
- async function pi(n, e) {
807
- return X(n, "POST", "/v1/accounts:delete", e);
812
+ async function mi(n, e) {
813
+ return Q(n, "POST", "/v1/accounts:delete", e);
808
814
  }
809
815
  async function Mt(n, e) {
810
- return X(n, "POST", "/v1/accounts:lookup", e);
816
+ return Q(n, "POST", "/v1/accounts:lookup", e);
811
817
  }
812
818
  /**
813
819
  * @license
@@ -825,7 +831,7 @@ async function Mt(n, e) {
825
831
  * See the License for the specific language governing permissions and
826
832
  * limitations under the License.
827
833
  */
828
- function te(n) {
834
+ function ne(n) {
829
835
  if (n)
830
836
  try {
831
837
  const e = new Date(Number(n));
@@ -834,8 +840,8 @@ function te(n) {
834
840
  } catch {
835
841
  }
836
842
  }
837
- async function mi(n, e = !1) {
838
- const t = Y(n), i = await t.getIdToken(e), r = We(i);
843
+ async function gi(n, e = !1) {
844
+ const t = X(n), i = await t.getIdToken(e), r = je(i);
839
845
  u(
840
846
  r && r.exp && r.auth_time && r.iat,
841
847
  t.auth,
@@ -846,9 +852,9 @@ async function mi(n, e = !1) {
846
852
  return {
847
853
  claims: r,
848
854
  token: i,
849
- authTime: te(Ce(r.auth_time)),
850
- issuedAtTime: te(Ce(r.iat)),
851
- expirationTime: te(Ce(r.exp)),
855
+ authTime: ne(Ce(r.auth_time)),
856
+ issuedAtTime: ne(Ce(r.iat)),
857
+ expirationTime: ne(Ce(r.exp)),
852
858
  signInProvider: o || null,
853
859
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
854
860
  };
@@ -856,19 +862,19 @@ async function mi(n, e = !1) {
856
862
  function Ce(n) {
857
863
  return Number(n) * 1e3;
858
864
  }
859
- function We(n) {
865
+ function je(n) {
860
866
  const [e, t, i] = n.split(".");
861
867
  if (e === void 0 || t === void 0 || i === void 0)
862
868
  return ue("JWT malformed, contained fewer than 3 sections"), null;
863
869
  try {
864
- const r = Cn(t);
870
+ const r = Nn(t);
865
871
  return r ? JSON.parse(r) : (ue("Failed to decode base64 JWT payload"), null);
866
872
  } catch (r) {
867
873
  return ue("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
868
874
  }
869
875
  }
870
876
  function it(n) {
871
- const e = We(n);
877
+ const e = je(n);
872
878
  return u(
873
879
  e,
874
880
  "internal-error"
@@ -905,10 +911,10 @@ async function ie(n, e, t = !1) {
905
911
  try {
906
912
  return await e;
907
913
  } catch (i) {
908
- throw i instanceof Ve && gi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
914
+ throw i instanceof Ve && _i(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
909
915
  }
910
916
  }
911
- function gi({ code: n }) {
917
+ function _i({ code: n }) {
912
918
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
913
919
  }
914
920
  /**
@@ -927,7 +933,7 @@ function gi({ code: n }) {
927
933
  * See the License for the specific language governing permissions and
928
934
  * limitations under the License.
929
935
  */
930
- class _i {
936
+ class vi {
931
937
  constructor(e) {
932
938
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
933
939
  }
@@ -994,7 +1000,7 @@ class Ue {
994
1000
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
995
1001
  }
996
1002
  _initializeTime() {
997
- this.lastSignInTime = te(this.lastLoginAt), this.creationTime = te(this.createdAt);
1003
+ this.lastSignInTime = ne(this.lastLoginAt), this.creationTime = ne(this.createdAt);
998
1004
  }
999
1005
  _copy(e) {
1000
1006
  this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
@@ -1033,7 +1039,7 @@ async function ve(n) {
1033
1039
  );
1034
1040
  const s = r.users[0];
1035
1041
  n._notifyReloadListener(s);
1036
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ii(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1042
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = yi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1037
1043
  uid: s.localId,
1038
1044
  displayName: s.displayName || null,
1039
1045
  photoURL: s.photoUrl || null,
@@ -1047,11 +1053,11 @@ async function ve(n) {
1047
1053
  };
1048
1054
  Object.assign(n, m);
1049
1055
  }
1050
- async function vi(n) {
1051
- const e = Y(n);
1056
+ async function Ii(n) {
1057
+ const e = X(n);
1052
1058
  await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1053
1059
  }
1054
- function Ii(n, e) {
1060
+ function yi(n, e) {
1055
1061
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1056
1062
  }
1057
1063
  function Ut(n) {
@@ -1083,7 +1089,7 @@ function Ut(n) {
1083
1089
  * See the License for the specific language governing permissions and
1084
1090
  * limitations under the License.
1085
1091
  */
1086
- async function yi(n, e) {
1092
+ async function wi(n, e) {
1087
1093
  const t = await Nt(n, {}, async () => {
1088
1094
  const i = se({
1089
1095
  grant_type: "refresh_token",
@@ -1104,8 +1110,8 @@ async function yi(n, e) {
1104
1110
  refreshToken: t.refresh_token
1105
1111
  };
1106
1112
  }
1107
- async function wi(n, e) {
1108
- return X(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1113
+ async function Ti(n, e) {
1114
+ return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1109
1115
  }
1110
1116
  /**
1111
1117
  * @license
@@ -1168,7 +1174,7 @@ class q {
1168
1174
  this.refreshToken = null;
1169
1175
  }
1170
1176
  async refresh(e, t) {
1171
- const { accessToken: i, refreshToken: r, expiresIn: s } = await yi(e, t);
1177
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await wi(e, t);
1172
1178
  this.updateTokensAndExpiration(i, r, Number(s));
1173
1179
  }
1174
1180
  updateTokensAndExpiration(e, t, i) {
@@ -1223,7 +1229,7 @@ function D(n, e) {
1223
1229
  class C {
1224
1230
  constructor(e) {
1225
1231
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
1226
- this.providerId = "firebase", this.proactiveRefresh = new _i(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);
1232
+ this.providerId = "firebase", this.proactiveRefresh = new vi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1227
1233
  }
1228
1234
  async getIdToken(e) {
1229
1235
  const t = await ie(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1235,10 +1241,10 @@ class C {
1235
1241
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1236
1242
  }
1237
1243
  getIdTokenResult(e) {
1238
- return mi(this, e);
1244
+ return gi(this, e);
1239
1245
  }
1240
1246
  reload() {
1241
- return vi(this);
1247
+ return Ii(this);
1242
1248
  }
1243
1249
  _assign(e) {
1244
1250
  this !== e && (u(
@@ -1277,7 +1283,7 @@ class C {
1277
1283
  if (A(this.auth.app))
1278
1284
  return Promise.reject(H(this.auth));
1279
1285
  const e = await this.getIdToken();
1280
- return await ie(this, pi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1286
+ return await ie(this, mi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1281
1287
  }
1282
1288
  toJSON() {
1283
1289
  return Object.assign(Object.assign({
@@ -1305,7 +1311,7 @@ class C {
1305
1311
  }
1306
1312
  static _fromJSON(e, t) {
1307
1313
  var i, r, s, o, c, a, l, d;
1308
- const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, h = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, _ = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, p = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1314
+ const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, y = (r = t.email) !== null && r !== void 0 ? r : void 0, f = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, I = (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, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1309
1315
  u(
1310
1316
  k && Ye,
1311
1317
  e,
@@ -1318,7 +1324,7 @@ class C {
1318
1324
  e,
1319
1325
  "internal-error"
1320
1326
  /* AuthErrorCode.INTERNAL_ERROR */
1321
- ), D(m, e.name), D(h, e.name), u(
1327
+ ), D(m, e.name), D(y, e.name), u(
1322
1328
  typeof Ke == "boolean",
1323
1329
  e,
1324
1330
  "internal-error"
@@ -1328,22 +1334,22 @@ class C {
1328
1334
  e,
1329
1335
  "internal-error"
1330
1336
  /* AuthErrorCode.INTERNAL_ERROR */
1331
- ), D(y, e.name), D(_, e.name), D(p, e.name), D(I, e.name), D(T, e.name), D(M, e.name);
1337
+ ), D(f, e.name), D(I, e.name), D(p, e.name), D(g, e.name), D(T, e.name), D(M, e.name);
1332
1338
  const Ae = new C({
1333
1339
  uid: k,
1334
1340
  auth: e,
1335
- email: h,
1341
+ email: y,
1336
1342
  emailVerified: Ke,
1337
1343
  displayName: m,
1338
1344
  isAnonymous: Je,
1339
- photoURL: _,
1340
- phoneNumber: y,
1345
+ photoURL: I,
1346
+ phoneNumber: f,
1341
1347
  tenantId: p,
1342
1348
  stsTokenManager: on,
1343
1349
  createdAt: T,
1344
1350
  lastLoginAt: M
1345
1351
  });
1346
- return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), I && (Ae._redirectEventId = I), Ae;
1352
+ return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), g && (Ae._redirectEventId = g), Ae;
1347
1353
  }
1348
1354
  /**
1349
1355
  * Initialize a User from an idToken server response
@@ -1567,9 +1573,9 @@ function ot(n) {
1567
1573
  return "Silk";
1568
1574
  if (Ht(e))
1569
1575
  return "Blackberry";
1570
- if (jt(e))
1576
+ if (Wt(e))
1571
1577
  return "Webos";
1572
- if (Ge(e))
1578
+ if (Be(e))
1573
1579
  return "Safari";
1574
1580
  if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
1575
1581
  return "Chrome";
@@ -1585,7 +1591,7 @@ function ot(n) {
1585
1591
  function xt(n = w()) {
1586
1592
  return /firefox\//i.test(n);
1587
1593
  }
1588
- function Ge(n = w()) {
1594
+ function Be(n = w()) {
1589
1595
  const e = n.toLowerCase();
1590
1596
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1591
1597
  }
@@ -1601,23 +1607,23 @@ function $t(n = w()) {
1601
1607
  function Ht(n = w()) {
1602
1608
  return /blackberry/i.test(n);
1603
1609
  }
1604
- function jt(n = w()) {
1610
+ function Wt(n = w()) {
1605
1611
  return /webos/i.test(n);
1606
1612
  }
1607
1613
  function ke(n = w()) {
1608
1614
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1609
1615
  }
1610
- function Ti(n = w()) {
1616
+ function ki(n = w()) {
1611
1617
  var e;
1612
1618
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1613
1619
  }
1614
- function ki() {
1615
- return Nn() && document.documentMode === 10;
1620
+ function bi() {
1621
+ return On() && document.documentMode === 10;
1616
1622
  }
1617
- function Wt(n = w()) {
1618
- return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1623
+ function jt(n = w()) {
1624
+ return ke(n) || $t(n) || Wt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1619
1625
  }
1620
- function bi() {
1626
+ function Ei() {
1621
1627
  try {
1622
1628
  return !!(window && window !== window.top);
1623
1629
  } catch {
@@ -1640,7 +1646,7 @@ function bi() {
1640
1646
  * See the License for the specific language governing permissions and
1641
1647
  * limitations under the License.
1642
1648
  */
1643
- function Gt(n, e = []) {
1649
+ function Bt(n, e = []) {
1644
1650
  let t;
1645
1651
  switch (n) {
1646
1652
  case "Browser":
@@ -1671,7 +1677,7 @@ function Gt(n, e = []) {
1671
1677
  * See the License for the specific language governing permissions and
1672
1678
  * limitations under the License.
1673
1679
  */
1674
- class Ei {
1680
+ class Si {
1675
1681
  constructor(e) {
1676
1682
  this.auth = e, this.queue = [];
1677
1683
  }
@@ -1726,8 +1732,8 @@ class Ei {
1726
1732
  * See the License for the specific language governing permissions and
1727
1733
  * limitations under the License.
1728
1734
  */
1729
- async function Si(n, e = {}) {
1730
- return X(n, "GET", "/v2/passwordPolicy", Te(n, e));
1735
+ async function Ri(n, e = {}) {
1736
+ return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
1731
1737
  }
1732
1738
  /**
1733
1739
  * @license
@@ -1745,12 +1751,12 @@ async function Si(n, e = {}) {
1745
1751
  * See the License for the specific language governing permissions and
1746
1752
  * limitations under the License.
1747
1753
  */
1748
- const Ri = 6;
1749
- class Ai {
1754
+ const Ai = 6;
1755
+ class Pi {
1750
1756
  constructor(e) {
1751
1757
  var t, i, r, s;
1752
1758
  const o = e.customStrengthOptions;
1753
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ri, 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;
1759
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ai, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1754
1760
  }
1755
1761
  validatePassword(e) {
1756
1762
  var t, i, r, s, o, c;
@@ -1833,9 +1839,9 @@ class Ai {
1833
1839
  * See the License for the specific language governing permissions and
1834
1840
  * limitations under the License.
1835
1841
  */
1836
- class Pi {
1842
+ class Ci {
1837
1843
  constructor(e, t, i, r) {
1838
- 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 Ei(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;
1844
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Si(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1839
1845
  }
1840
1846
  _initializeWithPersistence(e, t) {
1841
1847
  return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
@@ -1929,7 +1935,7 @@ class Pi {
1929
1935
  return this.directlySetCurrentUser(e);
1930
1936
  }
1931
1937
  useDeviceLanguage() {
1932
- this.languageCode = ui();
1938
+ this.languageCode = di();
1933
1939
  }
1934
1940
  async _delete() {
1935
1941
  this._deleted = !0;
@@ -1937,7 +1943,7 @@ class Pi {
1937
1943
  async updateCurrentUser(e) {
1938
1944
  if (A(this.app))
1939
1945
  return Promise.reject(H(this));
1940
- const t = e ? Y(e) : null;
1946
+ const t = e ? X(e) : null;
1941
1947
  return t && u(
1942
1948
  t.auth.config.apiKey === this.config.apiKey,
1943
1949
  this,
@@ -1980,7 +1986,7 @@ class Pi {
1980
1986
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1981
1987
  }
1982
1988
  async _updatePasswordPolicy() {
1983
- const e = await Si(this), t = new Ai(e);
1989
+ const e = await Ri(this), t = new Pi(e);
1984
1990
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1985
1991
  }
1986
1992
  _getPersistence() {
@@ -2020,7 +2026,7 @@ class Pi {
2020
2026
  token: e,
2021
2027
  idToken: t
2022
2028
  };
2023
- this.tenantId != null && (i.tenantId = this.tenantId), await wi(this, i);
2029
+ this.tenantId != null && (i.tenantId = this.tenantId), await Ti(this, i);
2024
2030
  }
2025
2031
  }
2026
2032
  toJSON() {
@@ -2133,7 +2139,7 @@ class Pi {
2133
2139
  ), this.persistenceManager;
2134
2140
  }
2135
2141
  _logFramework(e) {
2136
- !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Gt(this.config.clientPlatform, this._getFrameworks()));
2142
+ !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
2137
2143
  }
2138
2144
  _getFrameworks() {
2139
2145
  return this.frameworks;
@@ -2163,15 +2169,15 @@ class Pi {
2163
2169
  async _getAppCheckToken() {
2164
2170
  var e;
2165
2171
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2166
- return t != null && t.error && ai(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2172
+ return t != null && t.error && ci(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2167
2173
  }
2168
2174
  }
2169
2175
  function be(n) {
2170
- return Y(n);
2176
+ return X(n);
2171
2177
  }
2172
2178
  class at {
2173
2179
  constructor(e) {
2174
- this.auth = e, this.observer = null, this.addObserver = Sn((t) => this.observer = t);
2180
+ this.auth = e, this.observer = null, this.addObserver = Rn((t) => this.observer = t);
2175
2181
  }
2176
2182
  get next() {
2177
2183
  return u(
@@ -2198,7 +2204,7 @@ class at {
2198
2204
  * See the License for the specific language governing permissions and
2199
2205
  * limitations under the License.
2200
2206
  */
2201
- let Be = {
2207
+ let Ge = {
2202
2208
  async loadJS() {
2203
2209
  throw new Error("Unable to load external scripts");
2204
2210
  },
@@ -2206,16 +2212,16 @@ let Be = {
2206
2212
  recaptchaEnterpriseScript: "",
2207
2213
  gapiScript: ""
2208
2214
  };
2209
- function Ci(n) {
2210
- Be = n;
2211
- }
2212
2215
  function Ni(n) {
2213
- return Be.loadJS(n);
2216
+ Ge = n;
2214
2217
  }
2215
- function Oi() {
2216
- return Be.gapiScript;
2218
+ function Oi(n) {
2219
+ return Ge.loadJS(n);
2217
2220
  }
2218
- function Li(n) {
2221
+ function Li() {
2222
+ return Ge.gapiScript;
2223
+ }
2224
+ function Mi(n) {
2219
2225
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2220
2226
  }
2221
2227
  /**
@@ -2234,11 +2240,11 @@ function Li(n) {
2234
2240
  * See the License for the specific language governing permissions and
2235
2241
  * limitations under the License.
2236
2242
  */
2237
- function Mi(n, e) {
2243
+ function Ui(n, e) {
2238
2244
  const t = bt(n, "auth");
2239
2245
  if (t.isInitialized()) {
2240
2246
  const r = t.getImmediate(), s = t.getOptions();
2241
- if (Pn(s, e ?? {}))
2247
+ if (Cn(s, e ?? {}))
2242
2248
  return r;
2243
2249
  O(
2244
2250
  r,
@@ -2248,11 +2254,11 @@ function Mi(n, e) {
2248
2254
  }
2249
2255
  return t.initialize({ options: e });
2250
2256
  }
2251
- function Ui(n, e) {
2257
+ function Di(n, e) {
2252
2258
  const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2253
2259
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2254
2260
  }
2255
- function Di(n, e, t) {
2261
+ function xi(n, e, t) {
2256
2262
  const i = be(n);
2257
2263
  u(
2258
2264
  i._canInitEmulator,
@@ -2265,20 +2271,20 @@ function Di(n, e, t) {
2265
2271
  "invalid-emulator-scheme"
2266
2272
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2267
2273
  );
2268
- const r = !1, s = Bt(e), { host: o, port: c } = xi(e), a = c === null ? "" : `:${c}`;
2274
+ const r = !1, s = Gt(e), { host: o, port: c } = Fi(e), a = c === null ? "" : `:${c}`;
2269
2275
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2270
2276
  host: o,
2271
2277
  port: c,
2272
2278
  protocol: s.replace(":", ""),
2273
2279
  options: Object.freeze({ disableWarnings: r })
2274
- }), Fi();
2280
+ }), Vi();
2275
2281
  }
2276
- function Bt(n) {
2282
+ function Gt(n) {
2277
2283
  const e = n.indexOf(":");
2278
2284
  return e < 0 ? "" : n.substr(0, e + 1);
2279
2285
  }
2280
- function xi(n) {
2281
- const e = Bt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2286
+ function Fi(n) {
2287
+ const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2282
2288
  if (!t)
2283
2289
  return { host: "", port: null };
2284
2290
  const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
@@ -2296,7 +2302,7 @@ function ct(n) {
2296
2302
  const e = Number(n);
2297
2303
  return isNaN(e) ? null : e;
2298
2304
  }
2299
- function Fi() {
2305
+ function Vi() {
2300
2306
  function n() {
2301
2307
  const e = document.createElement("p"), t = e.style;
2302
2308
  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);
@@ -2380,14 +2386,14 @@ async function J(n, e) {
2380
2386
  * See the License for the specific language governing permissions and
2381
2387
  * limitations under the License.
2382
2388
  */
2383
- const Vi = "http://localhost";
2384
- class G extends zt {
2389
+ const $i = "http://localhost";
2390
+ class B extends zt {
2385
2391
  constructor() {
2386
2392
  super(...arguments), this.pendingToken = null;
2387
2393
  }
2388
2394
  /** @internal */
2389
2395
  static _fromParams(e) {
2390
- const t = new G(e.providerId, e.signInMethod);
2396
+ const t = new B(e.providerId, e.signInMethod);
2391
2397
  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(
2392
2398
  "argument-error"
2393
2399
  /* AuthErrorCode.ARGUMENT_ERROR */
@@ -2418,7 +2424,7 @@ class G extends zt {
2418
2424
  const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
2419
2425
  if (!i || !r)
2420
2426
  return null;
2421
- const o = new G(i, r);
2427
+ const o = new B(i, r);
2422
2428
  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;
2423
2429
  }
2424
2430
  /** @internal */
@@ -2438,7 +2444,7 @@ class G extends zt {
2438
2444
  }
2439
2445
  buildRequest() {
2440
2446
  const e = {
2441
- requestUri: Vi,
2447
+ requestUri: $i,
2442
2448
  returnSecureToken: !0
2443
2449
  };
2444
2450
  if (this.pendingToken)
@@ -2574,7 +2580,7 @@ class x extends ae {
2574
2580
  * @param accessToken - Facebook access token.
2575
2581
  */
2576
2582
  static credential(e) {
2577
- return G._fromParams({
2583
+ return B._fromParams({
2578
2584
  providerId: x.PROVIDER_ID,
2579
2585
  signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
2580
2586
  accessToken: e
@@ -2646,7 +2652,7 @@ class F extends ae {
2646
2652
  * @param accessToken - Google access token.
2647
2653
  */
2648
2654
  static credential(e, t) {
2649
- return G._fromParams({
2655
+ return B._fromParams({
2650
2656
  providerId: F.PROVIDER_ID,
2651
2657
  signInMethod: F.GOOGLE_SIGN_IN_METHOD,
2652
2658
  idToken: e,
@@ -2714,7 +2720,7 @@ class V extends ae {
2714
2720
  * @param accessToken - Github access token.
2715
2721
  */
2716
2722
  static credential(e) {
2717
- return G._fromParams({
2723
+ return B._fromParams({
2718
2724
  providerId: V.PROVIDER_ID,
2719
2725
  signInMethod: V.GITHUB_SIGN_IN_METHOD,
2720
2726
  accessToken: e
@@ -2779,7 +2785,7 @@ class $ extends ae {
2779
2785
  * @param secret - Twitter secret.
2780
2786
  */
2781
2787
  static credential(e, t) {
2782
- return G._fromParams({
2788
+ return B._fromParams({
2783
2789
  providerId: $.PROVIDER_ID,
2784
2790
  signInMethod: $.TWITTER_SIGN_IN_METHOD,
2785
2791
  oauthToken: e,
@@ -2834,13 +2840,13 @@ $.PROVIDER_ID = "twitter.com";
2834
2840
  * See the License for the specific language governing permissions and
2835
2841
  * limitations under the License.
2836
2842
  */
2837
- class B {
2843
+ class G {
2838
2844
  constructor(e) {
2839
2845
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2840
2846
  }
2841
2847
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2842
2848
  const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
2843
- return new B({
2849
+ return new G({
2844
2850
  user: s,
2845
2851
  providerId: o,
2846
2852
  _tokenResponse: i,
@@ -2854,7 +2860,7 @@ class B {
2854
2860
  !0
2855
2861
  );
2856
2862
  const r = lt(i);
2857
- return new B({
2863
+ return new G({
2858
2864
  user: e,
2859
2865
  providerId: r,
2860
2866
  _tokenResponse: i,
@@ -2900,9 +2906,9 @@ function Kt(n, e, t, i) {
2900
2906
  throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
2901
2907
  });
2902
2908
  }
2903
- async function $i(n, e, t = !1) {
2909
+ async function Hi(n, e, t = !1) {
2904
2910
  const i = await ie(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2905
- return B._forOperation(n, "link", i);
2911
+ return G._forOperation(n, "link", i);
2906
2912
  }
2907
2913
  /**
2908
2914
  * @license
@@ -2920,7 +2926,7 @@ async function $i(n, e, t = !1) {
2920
2926
  * See the License for the specific language governing permissions and
2921
2927
  * limitations under the License.
2922
2928
  */
2923
- async function Hi(n, e, t = !1) {
2929
+ async function Wi(n, e, t = !1) {
2924
2930
  const { auth: i } = n;
2925
2931
  if (A(i.app))
2926
2932
  return Promise.reject(H(i));
@@ -2933,7 +2939,7 @@ async function Hi(n, e, t = !1) {
2933
2939
  "internal-error"
2934
2940
  /* AuthErrorCode.INTERNAL_ERROR */
2935
2941
  );
2936
- const o = We(s.idToken);
2942
+ const o = je(s.idToken);
2937
2943
  u(
2938
2944
  o,
2939
2945
  i,
@@ -2946,7 +2952,7 @@ async function Hi(n, e, t = !1) {
2946
2952
  i,
2947
2953
  "user-mismatch"
2948
2954
  /* AuthErrorCode.USER_MISMATCH */
2949
- ), B._forOperation(n, r, s);
2955
+ ), G._forOperation(n, r, s);
2950
2956
  } catch (s) {
2951
2957
  throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
2952
2958
  i,
@@ -2974,7 +2980,7 @@ async function Hi(n, e, t = !1) {
2974
2980
  async function ji(n, e, t = !1) {
2975
2981
  if (A(n.app))
2976
2982
  return Promise.reject(H(n));
2977
- const i = "signIn", r = await Kt(n, i, e), s = await B._fromIdTokenResponse(n, i, r);
2983
+ const i = "signIn", r = await Kt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
2978
2984
  return t || await n._updateCurrentUser(s.user), s;
2979
2985
  }
2980
2986
  /**
@@ -2993,7 +2999,7 @@ async function ji(n, e, t = !1) {
2993
2999
  * See the License for the specific language governing permissions and
2994
3000
  * limitations under the License.
2995
3001
  */
2996
- async function Wi(n, e) {
3002
+ async function Bi(n, e) {
2997
3003
  return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
2998
3004
  }
2999
3005
  /**
@@ -3015,17 +3021,17 @@ async function Wi(n, e) {
3015
3021
  async function Gi(n, e) {
3016
3022
  if (A(n.app))
3017
3023
  return Promise.reject(H(n));
3018
- const t = be(n), i = await Wi(t, {
3024
+ const t = be(n), i = await Bi(t, {
3019
3025
  token: e,
3020
3026
  returnSecureToken: !0
3021
- }), r = await B._fromIdTokenResponse(t, "signIn", i);
3027
+ }), r = await G._fromIdTokenResponse(t, "signIn", i);
3022
3028
  return await t._updateCurrentUser(r.user), r;
3023
3029
  }
3024
- function Bi(n, e, t, i) {
3025
- return Y(n).onIdTokenChanged(e, t, i);
3030
+ function zi(n, e, t, i) {
3031
+ return X(n).onIdTokenChanged(e, t, i);
3026
3032
  }
3027
- function zi(n, e, t) {
3028
- return Y(n).beforeAuthStateChanged(e, t);
3033
+ function qi(n, e, t) {
3034
+ return X(n).beforeAuthStateChanged(e, t);
3029
3035
  }
3030
3036
  const ye = "__sak";
3031
3037
  /**
@@ -3085,18 +3091,18 @@ class Jt {
3085
3091
  * See the License for the specific language governing permissions and
3086
3092
  * limitations under the License.
3087
3093
  */
3088
- function qi() {
3094
+ function Ki() {
3089
3095
  const n = w();
3090
- return Ge(n) || ke(n);
3096
+ return Be(n) || ke(n);
3091
3097
  }
3092
- const Ki = 1e3, Ji = 10;
3098
+ const Ji = 1e3, Yi = 10;
3093
3099
  class Yt extends Jt {
3094
3100
  constructor() {
3095
3101
  super(
3096
3102
  () => window.localStorage,
3097
3103
  "LOCAL"
3098
3104
  /* PersistenceType.LOCAL */
3099
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = qi() && bi(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3105
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ki() && Ei(), this.fallbackToPolling = jt(), this._shouldAllowMigration = !0;
3100
3106
  }
3101
3107
  forAllChangedKeys(e) {
3102
3108
  for (const t of Object.keys(this.listeners)) {
@@ -3123,7 +3129,7 @@ class Yt extends Jt {
3123
3129
  const o = this.storage.getItem(i);
3124
3130
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3125
3131
  }, s = this.storage.getItem(i);
3126
- ki() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Ji) : r();
3132
+ bi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Yi) : r();
3127
3133
  }
3128
3134
  notifyListeners(e, t) {
3129
3135
  this.localCache[e] = t;
@@ -3145,7 +3151,7 @@ class Yt extends Jt {
3145
3151
  !0
3146
3152
  );
3147
3153
  });
3148
- }, Ki);
3154
+ }, Ji);
3149
3155
  }
3150
3156
  stopPolling() {
3151
3157
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3175,7 +3181,7 @@ class Yt extends Jt {
3175
3181
  }
3176
3182
  }
3177
3183
  Yt.type = "LOCAL";
3178
- const Yi = Yt;
3184
+ const Xi = Yt;
3179
3185
  /**
3180
3186
  * @license
3181
3187
  * Copyright 2020 Google LLC
@@ -3223,7 +3229,7 @@ const Qt = Xt;
3223
3229
  * See the License for the specific language governing permissions and
3224
3230
  * limitations under the License.
3225
3231
  */
3226
- function Xi(n) {
3232
+ function Qi(n) {
3227
3233
  return Promise.all(n.map(async (e) => {
3228
3234
  try {
3229
3235
  return {
@@ -3293,7 +3299,7 @@ class Ee {
3293
3299
  eventId: i,
3294
3300
  eventType: r
3295
3301
  });
3296
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Xi(c);
3302
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Qi(c);
3297
3303
  t.ports[0].postMessage({
3298
3304
  status: "done",
3299
3305
  eventId: i,
@@ -3361,7 +3367,7 @@ function ze(n = "", e = 10) {
3361
3367
  * See the License for the specific language governing permissions and
3362
3368
  * limitations under the License.
3363
3369
  */
3364
- class Qi {
3370
+ class Zi {
3365
3371
  constructor(e) {
3366
3372
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3367
3373
  }
@@ -3406,9 +3412,9 @@ class Qi {
3406
3412
  o = {
3407
3413
  messageChannel: r,
3408
3414
  onMessage(m) {
3409
- const h = m;
3410
- if (h.data.eventId === l)
3411
- switch (h.data.status) {
3415
+ const y = m;
3416
+ if (y.data.eventId === l)
3417
+ switch (y.data.status) {
3412
3418
  case "ack":
3413
3419
  clearTimeout(d), s = setTimeout(
3414
3420
  () => {
@@ -3422,7 +3428,7 @@ class Qi {
3422
3428
  );
3423
3429
  break;
3424
3430
  case "done":
3425
- clearTimeout(s), c(h.data.response);
3431
+ clearTimeout(s), c(y.data.response);
3426
3432
  break;
3427
3433
  default:
3428
3434
  clearTimeout(d), clearTimeout(s), a(new Error(
@@ -3461,7 +3467,7 @@ class Qi {
3461
3467
  function E() {
3462
3468
  return window;
3463
3469
  }
3464
- function Zi(n) {
3470
+ function er(n) {
3465
3471
  E().location.href = n;
3466
3472
  }
3467
3473
  /**
@@ -3483,7 +3489,7 @@ function Zi(n) {
3483
3489
  function Zt() {
3484
3490
  return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3485
3491
  }
3486
- async function er() {
3492
+ async function tr() {
3487
3493
  if (!(navigator != null && navigator.serviceWorker))
3488
3494
  return null;
3489
3495
  try {
@@ -3492,11 +3498,11 @@ async function er() {
3492
3498
  return null;
3493
3499
  }
3494
3500
  }
3495
- function tr() {
3501
+ function nr() {
3496
3502
  var n;
3497
3503
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3498
3504
  }
3499
- function nr() {
3505
+ function ir() {
3500
3506
  return Zt() ? self : null;
3501
3507
  }
3502
3508
  /**
@@ -3515,7 +3521,7 @@ function nr() {
3515
3521
  * See the License for the specific language governing permissions and
3516
3522
  * limitations under the License.
3517
3523
  */
3518
- const en = "firebaseLocalStorageDb", ir = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3524
+ const en = "firebaseLocalStorageDb", rr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3519
3525
  class ce {
3520
3526
  constructor(e) {
3521
3527
  this.request = e;
@@ -3533,12 +3539,12 @@ class ce {
3533
3539
  function Se(n, e) {
3534
3540
  return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3535
3541
  }
3536
- function rr() {
3542
+ function sr() {
3537
3543
  const n = indexedDB.deleteDatabase(en);
3538
3544
  return new ce(n).toPromise();
3539
3545
  }
3540
3546
  function De() {
3541
- const n = indexedDB.open(en, ir);
3547
+ const n = indexedDB.open(en, rr);
3542
3548
  return new Promise((e, t) => {
3543
3549
  n.addEventListener("error", () => {
3544
3550
  t(n.error);
@@ -3551,7 +3557,7 @@ function De() {
3551
3557
  }
3552
3558
  }), n.addEventListener("success", async () => {
3553
3559
  const i = n.result;
3554
- i.objectStoreNames.contains(we) ? e(i) : (i.close(), await rr(), e(await De()));
3560
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await sr(), e(await De()));
3555
3561
  });
3556
3562
  });
3557
3563
  }
@@ -3562,7 +3568,7 @@ async function ut(n, e, t) {
3562
3568
  });
3563
3569
  return new ce(i).toPromise();
3564
3570
  }
3565
- async function sr(n, e) {
3571
+ async function or(n, e) {
3566
3572
  const t = Se(n, !1).get(e), i = await new ce(t).toPromise();
3567
3573
  return i === void 0 ? null : i.value;
3568
3574
  }
@@ -3570,7 +3576,7 @@ function dt(n, e) {
3570
3576
  const t = Se(n, !0).delete(e);
3571
3577
  return new ce(t).toPromise();
3572
3578
  }
3573
- const or = 800, ar = 3;
3579
+ const ar = 800, cr = 3;
3574
3580
  class nn {
3575
3581
  constructor() {
3576
3582
  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(() => {
@@ -3587,7 +3593,7 @@ class nn {
3587
3593
  const i = await this._openDb();
3588
3594
  return await e(i);
3589
3595
  } catch (i) {
3590
- if (t++ > ar)
3596
+ if (t++ > cr)
3591
3597
  throw i;
3592
3598
  this.db && (this.db.close(), this.db = void 0);
3593
3599
  }
@@ -3603,7 +3609,7 @@ class nn {
3603
3609
  * As the worker we should listen to events from the main window.
3604
3610
  */
3605
3611
  async initializeReceiver() {
3606
- this.receiver = Ee._getInstance(nr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3612
+ this.receiver = Ee._getInstance(ir()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3607
3613
  keyProcessed: (await this._poll()).includes(t.key)
3608
3614
  })), this.receiver._subscribe("ping", async (e, t) => [
3609
3615
  "keyChanged"
@@ -3619,9 +3625,9 @@ class nn {
3619
3625
  */
3620
3626
  async initializeSender() {
3621
3627
  var e, t;
3622
- if (this.activeServiceWorker = await er(), !this.activeServiceWorker)
3628
+ if (this.activeServiceWorker = await tr(), !this.activeServiceWorker)
3623
3629
  return;
3624
- this.sender = new Qi(this.activeServiceWorker);
3630
+ this.sender = new Zi(this.activeServiceWorker);
3625
3631
  const i = await this.sender._send(
3626
3632
  "ping",
3627
3633
  {},
@@ -3643,7 +3649,7 @@ class nn {
3643
3649
  * @param key - Storage key which changed.
3644
3650
  */
3645
3651
  async notifyServiceWorker(e) {
3646
- if (!(!this.sender || !this.activeServiceWorker || tr() !== this.activeServiceWorker))
3652
+ if (!(!this.sender || !this.activeServiceWorker || nr() !== this.activeServiceWorker))
3647
3653
  try {
3648
3654
  await this.sender._send(
3649
3655
  "keyChanged",
@@ -3677,7 +3683,7 @@ class nn {
3677
3683
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3678
3684
  }
3679
3685
  async _get(e) {
3680
- const t = await this._withRetries((i) => sr(i, e));
3686
+ const t = await this._withRetries((i) => or(i, e));
3681
3687
  return this.localCache[e] = t, t;
3682
3688
  }
3683
3689
  async _remove(e) {
@@ -3708,7 +3714,7 @@ class nn {
3708
3714
  r(t);
3709
3715
  }
3710
3716
  startPolling() {
3711
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), or);
3717
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), ar);
3712
3718
  }
3713
3719
  stopPolling() {
3714
3720
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3721,7 +3727,7 @@ class nn {
3721
3727
  }
3722
3728
  }
3723
3729
  nn.type = "LOCAL";
3724
- const cr = nn;
3730
+ const lr = nn;
3725
3731
  new oe(3e4, 6e4);
3726
3732
  /**
3727
3733
  * @license
@@ -3739,7 +3745,7 @@ new oe(3e4, 6e4);
3739
3745
  * See the License for the specific language governing permissions and
3740
3746
  * limitations under the License.
3741
3747
  */
3742
- function lr(n, e) {
3748
+ function ur(n, e) {
3743
3749
  return e ? N(e) : (u(
3744
3750
  n._popupRedirectResolver,
3745
3751
  n,
@@ -3793,26 +3799,26 @@ class qe extends zt {
3793
3799
  return e && (t.idToken = e), t;
3794
3800
  }
3795
3801
  }
3796
- function ur(n) {
3802
+ function dr(n) {
3797
3803
  return ji(n.auth, new qe(n), n.bypassAuthState);
3798
3804
  }
3799
- function dr(n) {
3805
+ function hr(n) {
3800
3806
  const { auth: e, user: t } = n;
3801
3807
  return u(
3802
3808
  t,
3803
3809
  e,
3804
3810
  "internal-error"
3805
3811
  /* AuthErrorCode.INTERNAL_ERROR */
3806
- ), Hi(t, new qe(n), n.bypassAuthState);
3812
+ ), Wi(t, new qe(n), n.bypassAuthState);
3807
3813
  }
3808
- async function hr(n) {
3814
+ async function fr(n) {
3809
3815
  const { auth: e, user: t } = n;
3810
3816
  return u(
3811
3817
  t,
3812
3818
  e,
3813
3819
  "internal-error"
3814
3820
  /* AuthErrorCode.INTERNAL_ERROR */
3815
- ), $i(t, new qe(n), n.bypassAuthState);
3821
+ ), Hi(t, new qe(n), n.bypassAuthState);
3816
3822
  }
3817
3823
  /**
3818
3824
  * @license
@@ -3872,13 +3878,13 @@ class rn {
3872
3878
  switch (e) {
3873
3879
  case "signInViaPopup":
3874
3880
  case "signInViaRedirect":
3875
- return ur;
3881
+ return dr;
3876
3882
  case "linkViaPopup":
3877
3883
  case "linkViaRedirect":
3878
- return hr;
3884
+ return fr;
3879
3885
  case "reauthViaPopup":
3880
3886
  case "reauthViaRedirect":
3881
- return dr;
3887
+ return hr;
3882
3888
  default:
3883
3889
  O(
3884
3890
  this.auth,
@@ -3913,7 +3919,7 @@ class rn {
3913
3919
  * See the License for the specific language governing permissions and
3914
3920
  * limitations under the License.
3915
3921
  */
3916
- const fr = new oe(2e3, 1e4);
3922
+ const pr = new oe(2e3, 1e4);
3917
3923
  class z extends rn {
3918
3924
  constructor(e, t, i, r, s) {
3919
3925
  super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
@@ -3977,7 +3983,7 @@ class z extends rn {
3977
3983
  );
3978
3984
  return;
3979
3985
  }
3980
- this.pollId = window.setTimeout(e, fr.get());
3986
+ this.pollId = window.setTimeout(e, pr.get());
3981
3987
  };
3982
3988
  e();
3983
3989
  }
@@ -3999,8 +4005,8 @@ z.currentPopupAction = null;
3999
4005
  * See the License for the specific language governing permissions and
4000
4006
  * limitations under the License.
4001
4007
  */
4002
- const pr = "pendingRedirect", he = /* @__PURE__ */ new Map();
4003
- class mr extends rn {
4008
+ const mr = "pendingRedirect", he = /* @__PURE__ */ new Map();
4009
+ class gr extends rn {
4004
4010
  constructor(e, t, i = !1) {
4005
4011
  super(e, [
4006
4012
  "signInViaRedirect",
@@ -4018,7 +4024,7 @@ class mr extends rn {
4018
4024
  let e = he.get(this.auth._key());
4019
4025
  if (!e) {
4020
4026
  try {
4021
- const i = await gr(this.resolver, this.auth) ? await super.execute() : null;
4027
+ const i = await _r(this.resolver, this.auth) ? await super.execute() : null;
4022
4028
  e = () => Promise.resolve(i);
4023
4029
  } catch (t) {
4024
4030
  e = () => Promise.reject(t);
@@ -4046,26 +4052,26 @@ class mr extends rn {
4046
4052
  cleanUp() {
4047
4053
  }
4048
4054
  }
4049
- async function gr(n, e) {
4050
- const t = Ir(e), i = vr(n);
4055
+ async function _r(n, e) {
4056
+ const t = yr(e), i = Ir(n);
4051
4057
  if (!await i._isAvailable())
4052
4058
  return !1;
4053
4059
  const r = await i._get(t) === "true";
4054
4060
  return await i._remove(t), r;
4055
4061
  }
4056
- function _r(n, e) {
4062
+ function vr(n, e) {
4057
4063
  he.set(n._key(), e);
4058
4064
  }
4059
- function vr(n) {
4065
+ function Ir(n) {
4060
4066
  return N(n._redirectPersistence);
4061
4067
  }
4062
- function Ir(n) {
4063
- return de(pr, n.config.apiKey, n.name);
4068
+ function yr(n) {
4069
+ return de(mr, n.config.apiKey, n.name);
4064
4070
  }
4065
- async function yr(n, e, t = !1) {
4071
+ async function wr(n, e, t = !1) {
4066
4072
  if (A(n.app))
4067
4073
  return Promise.reject(H(n));
4068
- const i = be(n), r = lr(i, e), o = await new mr(i, r, t).execute();
4074
+ const i = be(n), r = ur(i, e), o = await new gr(i, r, t).execute();
4069
4075
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4070
4076
  }
4071
4077
  /**
@@ -4084,8 +4090,8 @@ async function yr(n, e, t = !1) {
4084
4090
  * See the License for the specific language governing permissions and
4085
4091
  * limitations under the License.
4086
4092
  */
4087
- const wr = 10 * 60 * 1e3;
4088
- class Tr {
4093
+ const Tr = 10 * 60 * 1e3;
4094
+ class kr {
4089
4095
  constructor(e) {
4090
4096
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4091
4097
  }
@@ -4101,7 +4107,7 @@ class Tr {
4101
4107
  let t = !1;
4102
4108
  return this.consumers.forEach((i) => {
4103
4109
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4104
- }), this.hasHandledPotentialRedirect || !kr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4110
+ }), this.hasHandledPotentialRedirect || !br(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4105
4111
  }
4106
4112
  sendToConsumer(e, t) {
4107
4113
  var i;
@@ -4116,7 +4122,7 @@ class Tr {
4116
4122
  return t.filter.includes(e.type) && i;
4117
4123
  }
4118
4124
  hasEventBeenHandled(e) {
4119
- return Date.now() - this.lastProcessedEventTime >= wr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4125
+ return Date.now() - this.lastProcessedEventTime >= Tr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4120
4126
  }
4121
4127
  saveEventToCache(e) {
4122
4128
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4128,7 +4134,7 @@ function ht(n) {
4128
4134
  function sn({ type: n, error: e }) {
4129
4135
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4130
4136
  }
4131
- function kr(n) {
4137
+ function br(n) {
4132
4138
  switch (n.type) {
4133
4139
  case "signInViaRedirect":
4134
4140
  case "linkViaRedirect":
@@ -4156,8 +4162,8 @@ function kr(n) {
4156
4162
  * See the License for the specific language governing permissions and
4157
4163
  * limitations under the License.
4158
4164
  */
4159
- async function br(n, e = {}) {
4160
- return X(n, "GET", "/v1/projects", e);
4165
+ async function Er(n, e = {}) {
4166
+ return Q(n, "GET", "/v1/projects", e);
4161
4167
  }
4162
4168
  /**
4163
4169
  * @license
@@ -4175,14 +4181,14 @@ async function br(n, e = {}) {
4175
4181
  * See the License for the specific language governing permissions and
4176
4182
  * limitations under the License.
4177
4183
  */
4178
- const Er = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Sr = /^https?/;
4179
- async function Rr(n) {
4184
+ const Sr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Rr = /^https?/;
4185
+ async function Ar(n) {
4180
4186
  if (n.config.emulator)
4181
4187
  return;
4182
- const { authorizedDomains: e } = await br(n);
4188
+ const { authorizedDomains: e } = await Er(n);
4183
4189
  for (const t of e)
4184
4190
  try {
4185
- if (Ar(t))
4191
+ if (Pr(t))
4186
4192
  return;
4187
4193
  } catch {
4188
4194
  }
@@ -4192,15 +4198,15 @@ async function Rr(n) {
4192
4198
  /* AuthErrorCode.INVALID_ORIGIN */
4193
4199
  );
4194
4200
  }
4195
- function Ar(n) {
4201
+ function Pr(n) {
4196
4202
  const e = Me(), { protocol: t, hostname: i } = new URL(e);
4197
4203
  if (n.startsWith("chrome-extension://")) {
4198
4204
  const o = new URL(n);
4199
4205
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4200
4206
  }
4201
- if (!Sr.test(t))
4207
+ if (!Rr.test(t))
4202
4208
  return !1;
4203
- if (Er.test(n))
4209
+ if (Sr.test(n))
4204
4210
  return i === n;
4205
4211
  const r = n.replace(/\./g, "\\.");
4206
4212
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4221,7 +4227,7 @@ function Ar(n) {
4221
4227
  * See the License for the specific language governing permissions and
4222
4228
  * limitations under the License.
4223
4229
  */
4224
- const Pr = new oe(3e4, 6e4);
4230
+ const Cr = new oe(3e4, 6e4);
4225
4231
  function ft() {
4226
4232
  const n = E().___jsl;
4227
4233
  if (n != null && n.H) {
@@ -4231,7 +4237,7 @@ function ft() {
4231
4237
  n.CP[t] = null;
4232
4238
  }
4233
4239
  }
4234
- function Cr(n) {
4240
+ function Nr(n) {
4235
4241
  return new Promise((e, t) => {
4236
4242
  var i, r, s;
4237
4243
  function o() {
@@ -4246,7 +4252,7 @@ function Cr(n) {
4246
4252
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4247
4253
  ));
4248
4254
  },
4249
- timeout: Pr.get()
4255
+ timeout: Cr.get()
4250
4256
  });
4251
4257
  }
4252
4258
  if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
@@ -4254,22 +4260,22 @@ function Cr(n) {
4254
4260
  else if (!((s = E().gapi) === null || s === void 0) && s.load)
4255
4261
  o();
4256
4262
  else {
4257
- const c = Li("iframefcb");
4263
+ const c = Mi("iframefcb");
4258
4264
  return E()[c] = () => {
4259
4265
  gapi.load ? o() : t(b(
4260
4266
  n,
4261
4267
  "network-request-failed"
4262
4268
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4263
4269
  ));
4264
- }, Ni(`${Oi()}?onload=${c}`).catch((a) => t(a));
4270
+ }, Oi(`${Li()}?onload=${c}`).catch((a) => t(a));
4265
4271
  }
4266
4272
  }).catch((e) => {
4267
4273
  throw fe = null, e;
4268
4274
  });
4269
4275
  }
4270
4276
  let fe = null;
4271
- function Nr(n) {
4272
- return fe = fe || Cr(n), fe;
4277
+ function Or(n) {
4278
+ return fe = fe || Nr(n), fe;
4273
4279
  }
4274
4280
  /**
4275
4281
  * @license
@@ -4287,7 +4293,7 @@ function Nr(n) {
4287
4293
  * See the License for the specific language governing permissions and
4288
4294
  * limitations under the License.
4289
4295
  */
4290
- const Or = new oe(5e3, 15e3), Lr = "__/auth/iframe", Mr = "emulator/auth/iframe", Ur = {
4296
+ const Lr = new oe(5e3, 15e3), Mr = "__/auth/iframe", Ur = "emulator/auth/iframe", Dr = {
4291
4297
  style: {
4292
4298
  position: "absolute",
4293
4299
  top: "-100px",
@@ -4296,13 +4302,13 @@ const Or = new oe(5e3, 15e3), Lr = "__/auth/iframe", Mr = "emulator/auth/iframe"
4296
4302
  },
4297
4303
  "aria-hidden": "true",
4298
4304
  tabindex: "-1"
4299
- }, Dr = /* @__PURE__ */ new Map([
4305
+ }, xr = /* @__PURE__ */ new Map([
4300
4306
  ["identitytoolkit.googleapis.com", "p"],
4301
4307
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4302
4308
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4303
4309
  // test
4304
4310
  ]);
4305
- function xr(n) {
4311
+ function Fr(n) {
4306
4312
  const e = n.config;
4307
4313
  u(
4308
4314
  e.authDomain,
@@ -4310,17 +4316,17 @@ function xr(n) {
4310
4316
  "auth-domain-config-required"
4311
4317
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4312
4318
  );
4313
- const t = e.emulator ? je(e, Mr) : `https://${n.config.authDomain}/${Lr}`, i = {
4319
+ const t = e.emulator ? We(e, Ur) : `https://${n.config.authDomain}/${Mr}`, i = {
4314
4320
  apiKey: e.apiKey,
4315
4321
  appName: n.name,
4316
4322
  v: re
4317
- }, r = Dr.get(n.config.apiHost);
4323
+ }, r = xr.get(n.config.apiHost);
4318
4324
  r && (i.eid = r);
4319
4325
  const s = n._getFrameworks();
4320
4326
  return s.length && (i.fw = s.join(",")), `${t}?${se(i).slice(1)}`;
4321
4327
  }
4322
- async function Fr(n) {
4323
- const e = await Nr(n), t = E().gapi;
4328
+ async function Vr(n) {
4329
+ const e = await Or(n), t = E().gapi;
4324
4330
  return u(
4325
4331
  t,
4326
4332
  n,
@@ -4328,9 +4334,9 @@ async function Fr(n) {
4328
4334
  /* AuthErrorCode.INTERNAL_ERROR */
4329
4335
  ), e.open({
4330
4336
  where: document.body,
4331
- url: xr(n),
4337
+ url: Fr(n),
4332
4338
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4333
- attributes: Ur,
4339
+ attributes: Dr,
4334
4340
  dontclear: !0
4335
4341
  }, (i) => new Promise(async (r, s) => {
4336
4342
  await i.restyle({
@@ -4343,7 +4349,7 @@ async function Fr(n) {
4343
4349
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4344
4350
  ), c = E().setTimeout(() => {
4345
4351
  s(o);
4346
- }, Or.get());
4352
+ }, Lr.get());
4347
4353
  function a() {
4348
4354
  E().clearTimeout(c), r(i);
4349
4355
  }
@@ -4368,12 +4374,12 @@ async function Fr(n) {
4368
4374
  * See the License for the specific language governing permissions and
4369
4375
  * limitations under the License.
4370
4376
  */
4371
- const Vr = {
4377
+ const $r = {
4372
4378
  location: "yes",
4373
4379
  resizable: "yes",
4374
4380
  statusbar: "yes",
4375
4381
  toolbar: "no"
4376
- }, $r = 500, Hr = 600, jr = "_blank", Wr = "http://localhost";
4382
+ }, Hr = 500, Wr = 600, jr = "_blank", Br = "http://localhost";
4377
4383
  class pt {
4378
4384
  constructor(e) {
4379
4385
  this.window = e, this.associatedEvent = null;
@@ -4386,19 +4392,19 @@ class pt {
4386
4392
  }
4387
4393
  }
4388
4394
  }
4389
- function Gr(n, e, t, i = $r, r = Hr) {
4395
+ function Gr(n, e, t, i = Hr, r = Wr) {
4390
4396
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4391
4397
  let c = "";
4392
- const a = Object.assign(Object.assign({}, Vr), {
4398
+ const a = Object.assign(Object.assign({}, $r), {
4393
4399
  width: i.toString(),
4394
4400
  height: r.toString(),
4395
4401
  top: s,
4396
4402
  left: o
4397
4403
  }), l = w().toLowerCase();
4398
- t && (c = Ft(l) ? jr : t), xt(l) && (e = e || Wr, a.scrollbars = "yes");
4399
- const d = Object.entries(a).reduce((h, [y, _]) => `${h}${y}=${_},`, "");
4400
- if (Ti(l) && c !== "_self")
4401
- return Br(e || "", c), new pt(null);
4404
+ t && (c = Ft(l) ? jr : t), xt(l) && (e = e || Br, a.scrollbars = "yes");
4405
+ const d = Object.entries(a).reduce((y, [f, I]) => `${y}${f}=${I},`, "");
4406
+ if (ki(l) && c !== "_self")
4407
+ return zr(e || "", c), new pt(null);
4402
4408
  const m = window.open(e || "", c, d);
4403
4409
  u(
4404
4410
  m,
@@ -4412,7 +4418,7 @@ function Gr(n, e, t, i = $r, r = Hr) {
4412
4418
  }
4413
4419
  return new pt(m);
4414
4420
  }
4415
- function Br(n, e) {
4421
+ function zr(n, e) {
4416
4422
  const t = document.createElement("a");
4417
4423
  t.href = n, t.target = e;
4418
4424
  const i = document.createEvent("MouseEvent");
@@ -4434,7 +4440,7 @@ function Br(n, e) {
4434
4440
  * See the License for the specific language governing permissions and
4435
4441
  * limitations under the License.
4436
4442
  */
4437
- const zr = "__/auth/handler", qr = "emulator/auth/handler", Kr = encodeURIComponent("fac");
4443
+ const qr = "__/auth/handler", Kr = "emulator/auth/handler", Jr = encodeURIComponent("fac");
4438
4444
  async function mt(n, e, t, i, r, s) {
4439
4445
  u(
4440
4446
  n.config.authDomain,
@@ -4456,7 +4462,7 @@ async function mt(n, e, t, i, r, s) {
4456
4462
  eventId: r
4457
4463
  };
4458
4464
  if (e instanceof qt) {
4459
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", On(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4465
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Ln(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4460
4466
  for (const [d, m] of Object.entries({}))
4461
4467
  o[d] = m;
4462
4468
  }
@@ -4468,11 +4474,11 @@ async function mt(n, e, t, i, r, s) {
4468
4474
  const c = o;
4469
4475
  for (const d of Object.keys(c))
4470
4476
  c[d] === void 0 && delete c[d];
4471
- const a = await n._getAppCheckToken(), l = a ? `#${Kr}=${encodeURIComponent(a)}` : "";
4472
- return `${Jr(n)}?${se(c).slice(1)}${l}`;
4477
+ const a = await n._getAppCheckToken(), l = a ? `#${Jr}=${encodeURIComponent(a)}` : "";
4478
+ return `${Yr(n)}?${se(c).slice(1)}${l}`;
4473
4479
  }
4474
- function Jr({ config: n }) {
4475
- return n.emulator ? je(n, qr) : `https://${n.authDomain}/${zr}`;
4480
+ function Yr({ config: n }) {
4481
+ return n.emulator ? We(n, Kr) : `https://${n.authDomain}/${qr}`;
4476
4482
  }
4477
4483
  /**
4478
4484
  * @license
@@ -4491,9 +4497,9 @@ function Jr({ config: n }) {
4491
4497
  * limitations under the License.
4492
4498
  */
4493
4499
  const Ne = "webStorageSupport";
4494
- class Yr {
4500
+ class Xr {
4495
4501
  constructor() {
4496
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = yr, this._overrideRedirectResult = _r;
4502
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = wr, this._overrideRedirectResult = vr;
4497
4503
  }
4498
4504
  // Wrapping in async even though we don't await anywhere in order
4499
4505
  // to make sure errors are raised as promise rejections
@@ -4506,7 +4512,7 @@ class Yr {
4506
4512
  async _openRedirect(e, t, i, r) {
4507
4513
  await this._originValidation(e);
4508
4514
  const s = await mt(e, t, i, Me(), r);
4509
- return Zi(s), new Promise(() => {
4515
+ return er(s), new Promise(() => {
4510
4516
  });
4511
4517
  }
4512
4518
  _initialize(e) {
@@ -4521,7 +4527,7 @@ class Yr {
4521
4527
  }), i;
4522
4528
  }
4523
4529
  async initAndGetManager(e) {
4524
- const t = await Fr(e), i = new Tr(e);
4530
+ const t = await Vr(e), i = new kr(e);
4525
4531
  return t.register("authEvent", (r) => (u(
4526
4532
  r == null ? void 0 : r.authEvent,
4527
4533
  e,
@@ -4545,13 +4551,13 @@ class Yr {
4545
4551
  }
4546
4552
  _originValidation(e) {
4547
4553
  const t = e._key();
4548
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Rr(e)), this.originValidationPromises[t];
4554
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ar(e)), this.originValidationPromises[t];
4549
4555
  }
4550
4556
  get _shouldInitProactively() {
4551
- return Wt() || Ge() || ke();
4557
+ return jt() || Be() || ke();
4552
4558
  }
4553
4559
  }
4554
- const Xr = Yr;
4560
+ const Qr = Xr;
4555
4561
  var gt = "@firebase/auth", _t = "1.7.5";
4556
4562
  /**
4557
4563
  * @license
@@ -4569,7 +4575,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4569
4575
  * See the License for the specific language governing permissions and
4570
4576
  * limitations under the License.
4571
4577
  */
4572
- class Qr {
4578
+ class Zr {
4573
4579
  constructor(e) {
4574
4580
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4575
4581
  }
@@ -4620,7 +4626,7 @@ class Qr {
4620
4626
  * See the License for the specific language governing permissions and
4621
4627
  * limitations under the License.
4622
4628
  */
4623
- function Zr(n) {
4629
+ function es(n) {
4624
4630
  switch (n) {
4625
4631
  case "Node":
4626
4632
  return "node";
@@ -4636,7 +4642,7 @@ function Zr(n) {
4636
4642
  return;
4637
4643
  }
4638
4644
  }
4639
- function es(n) {
4645
+ function ts(n) {
4640
4646
  Ze(new et(
4641
4647
  "auth",
4642
4648
  (e, { options: t }) => {
@@ -4649,9 +4655,9 @@ function es(n) {
4649
4655
  apiHost: "identitytoolkit.googleapis.com",
4650
4656
  tokenApiHost: "securetoken.googleapis.com",
4651
4657
  apiScheme: "https",
4652
- sdkClientVersion: Gt(n)
4653
- }, l = new Pi(i, r, s, a);
4654
- return Ui(l, t), l;
4658
+ sdkClientVersion: Bt(n)
4659
+ }, l = new Ci(i, r, s, a);
4660
+ return Di(l, t), l;
4655
4661
  },
4656
4662
  "PUBLIC"
4657
4663
  /* ComponentType.PUBLIC */
@@ -4670,14 +4676,14 @@ function es(n) {
4670
4676
  "auth"
4671
4677
  /* _ComponentName.AUTH */
4672
4678
  ).getImmediate());
4673
- return ((i) => new Qr(i))(t);
4679
+ return ((i) => new Zr(i))(t);
4674
4680
  },
4675
4681
  "PRIVATE"
4676
4682
  /* ComponentType.PRIVATE */
4677
4683
  ).setInstantiationMode(
4678
4684
  "EXPLICIT"
4679
4685
  /* InstantiationMode.EXPLICIT */
4680
- )), Le(gt, _t, Zr(n)), Le(gt, _t, "esm2017");
4686
+ )), Le(gt, _t, es(n)), Le(gt, _t, "esm2017");
4681
4687
  }
4682
4688
  /**
4683
4689
  * @license
@@ -4695,11 +4701,11 @@ function es(n) {
4695
4701
  * See the License for the specific language governing permissions and
4696
4702
  * limitations under the License.
4697
4703
  */
4698
- const ts = 5 * 60, ns = kt("authIdTokenMaxAge") || ts;
4704
+ const ns = 5 * 60, is = kt("authIdTokenMaxAge") || ns;
4699
4705
  let vt = null;
4700
- const is = (n) => async (e) => {
4706
+ const rs = (n) => async (e) => {
4701
4707
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4702
- if (i && i > ns)
4708
+ if (i && i > is)
4703
4709
  return;
4704
4710
  const r = t == null ? void 0 : t.token;
4705
4711
  vt !== r && (vt = r, await fetch(n, {
@@ -4709,33 +4715,33 @@ const is = (n) => async (e) => {
4709
4715
  } : {}
4710
4716
  }));
4711
4717
  };
4712
- function rs(n = An()) {
4718
+ function ss(n = Pn()) {
4713
4719
  const e = bt(n, "auth");
4714
4720
  if (e.isInitialized())
4715
4721
  return e.getImmediate();
4716
- const t = Mi(n, {
4717
- popupRedirectResolver: Xr,
4722
+ const t = Ui(n, {
4723
+ popupRedirectResolver: Qr,
4718
4724
  persistence: [
4719
- cr,
4720
- Yi,
4725
+ lr,
4726
+ Xi,
4721
4727
  Qt
4722
4728
  ]
4723
4729
  }), i = kt("authTokenSyncURL");
4724
4730
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4725
4731
  const s = new URL(i, location.origin);
4726
4732
  if (location.origin === s.origin) {
4727
- const o = is(s.toString());
4728
- zi(t, o, () => o(t.currentUser)), Bi(t, (c) => o(c));
4733
+ const o = rs(s.toString());
4734
+ qi(t, o, () => o(t.currentUser)), zi(t, (c) => o(c));
4729
4735
  }
4730
4736
  }
4731
- const r = Rn("auth");
4732
- return r && Di(t, `http://${r}`), t;
4737
+ const r = An("auth");
4738
+ return r && xi(t, `http://${r}`), t;
4733
4739
  }
4734
- function ss() {
4740
+ function os() {
4735
4741
  var n, e;
4736
4742
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4737
4743
  }
4738
- Ci({
4744
+ Ni({
4739
4745
  loadJS(n) {
4740
4746
  return new Promise((e, t) => {
4741
4747
  const i = document.createElement("script");
@@ -4745,68 +4751,68 @@ Ci({
4745
4751
  /* AuthErrorCode.INTERNAL_ERROR */
4746
4752
  );
4747
4753
  s.customData = r, t(s);
4748
- }, i.type = "text/javascript", i.charset = "UTF-8", ss().appendChild(i);
4754
+ }, i.type = "text/javascript", i.charset = "UTF-8", os().appendChild(i);
4749
4755
  });
4750
4756
  },
4751
4757
  gapiScript: "https://apis.google.com/js/api.js",
4752
4758
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4753
4759
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4754
4760
  });
4755
- es(
4761
+ ts(
4756
4762
  "Browser"
4757
4763
  /* ClientPlatform.BROWSER */
4758
4764
  );
4759
- var os = { 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" }, as = { 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/" };
4760
- const cs = {
4765
+ var as = { 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" }, cs = { 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/" };
4766
+ const ls = {
4761
4767
  key: 2,
4762
4768
  class: "h-full w-full"
4763
- }, ls = ["src"], Ss = /* @__PURE__ */ xe({
4769
+ }, us = ["src"], Ps = /* @__PURE__ */ xe({
4764
4770
  __name: "App",
4765
4771
  setup(n) {
4766
- const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge(), d = ee(!1), m = ne(() => i.version), h = ne(() => {
4767
- const p = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
4768
- return `${as.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${p}&token=${I}`;
4772
+ const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = ge(), d = te(!1), m = Y(() => i.version), y = Y(() => {
4773
+ const p = e.currentCountry.value || "MY", g = tt.getIdToken(), T = l.value._id;
4774
+ return `${cs.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${p}&token=${g}`;
4769
4775
  });
4770
- async function y() {
4771
- if (Ln().length) {
4776
+ async function f() {
4777
+ if (Mn().length) {
4772
4778
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4773
4779
  return;
4774
4780
  }
4775
- const p = Mn(os.firebase), I = await fn.getCustomToken(), T = rs();
4776
- await Gi(T, I), Un(p), console.log("initFirebase", p);
4781
+ const p = Un(as.firebase), g = await fn.getCustomToken(), T = ss();
4782
+ await Gi(T, g), Dn(p), console.log("initFirebase", p);
4777
4783
  }
4778
- const _ = async () => {
4779
- d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Vn) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
4784
+ const I = async () => {
4785
+ d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent($n) : e.hideSidebarToggle(!0), await f(), a.value = !0, d.value = !0;
4780
4786
  };
4781
4787
  return un(() => {
4782
- if (Dn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4783
- const p = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4784
- p == null || p.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4788
+ if (xn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4789
+ const p = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4790
+ p == null || p.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4785
4791
  }
4786
- l.value != null && (console.log("App mounted, forceRerender"), _());
4792
+ l.value != null && (console.log("App mounted, forceRerender"), I());
4787
4793
  }), pe(
4788
4794
  () => e.currentBusiness.value,
4789
- async (p, I) => {
4790
- console.log("Current business changed"), p != null && p._id != I._id && (console.log("forceRerender when business changes", p, I), _());
4795
+ async (p, g) => {
4796
+ console.log("Current business changed"), p != null && p._id != g._id && (console.log("forceRerender when business changes", p, g), I());
4791
4797
  }
4792
- ), (p, I) => (W(), me(It, null, [
4793
- g(d) && g(m) === "v2" ? (W(), Oe(g(hn), { key: 0 })) : Pe("", !0),
4794
- g(d) && g(m) === "v2" && g(c) ? (W(), Oe(ii, { key: 1 })) : Pe("", !0),
4795
- g(d) && g(m) !== "v2" ? (W(), me("div", cs, [
4796
- S(wn, {
4797
- json: { url: g(h) }
4798
+ ), (p, g) => (j(), me(It, null, [
4799
+ _(d) && _(m) === "v2" ? (j(), Oe(_(hn), { key: 0 })) : Pe("", !0),
4800
+ _(d) && _(m) === "v2" && _(c) ? (j(), Oe(ri, { key: 1 })) : Pe("", !0),
4801
+ _(d) && _(m) !== "v2" ? (j(), me("div", ls, [
4802
+ S(Tn, {
4803
+ json: { url: _(y) }
4798
4804
  }, null, 8, ["json"]),
4799
4805
  v("iframe", {
4800
4806
  allow: "clipboard-read; clipboard-write",
4801
4807
  frameBorder: "0",
4802
4808
  height: "100%",
4803
4809
  width: "100%",
4804
- src: g(h)
4805
- }, null, 8, ls)
4810
+ src: _(y)
4811
+ }, null, 8, us)
4806
4812
  ])) : Pe("", !0)
4807
4813
  ], 64));
4808
4814
  }
4809
4815
  });
4810
4816
  export {
4811
- Ss as default
4817
+ Ps as default
4812
4818
  };