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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/README.md +68 -1
  2. package/dist/{App-CAo1izHr.js → App-CBFNBDb2.js} +435 -418
  3. package/dist/AuditLogs-BtSA8b08.js +2016 -0
  4. package/dist/{Bin-DDDfjisJ.js → Bin-CjmS_Tfn.js} +8 -8
  5. package/dist/{Broadcast-BsCulZhE.js → Broadcast-BeePmZa1.js} +22 -21
  6. package/dist/{CampaignAnalytic-CnVYFSkT.js → CampaignAnalytic-CZlnyvOi.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZTHyZ_0y.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Du3Ah4HP.js} +9 -9
  8. package/dist/{Card-DPyQH9qZ.js → Card-C8SzQQ0z.js} +25 -24
  9. package/dist/{Collections-CZCVA969.js → Collections-BXNWTSZH.js} +197 -185
  10. package/dist/{Credit-BTg364-i.js → Credit-CK0-0yD1.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BJx8K6Ja.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BXYpYC7Y.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CdpnNDzR.js +4439 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CfEnSXzg.js → EffectSheet.vue_vue_type_style_index_0_lang--Oyj3KYg.js} +32 -32
  14. package/dist/{Experience-Bk_eUcSX.js → Experience-CWJaj62g.js} +32 -31
  15. package/dist/{FileSaver.min-CXFiZAp7.js → FileSaver.min-lV9H82L5.js} +1 -1
  16. package/dist/{Game-CBnKpFdl.js → Game-zBV1LYAg.js} +19 -18
  17. package/dist/{GiftCardSetup-q75wNV_F.js → GiftCardSetup-Cnq9353j.js} +75 -75
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Cga0Th2O.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CdgSBdrX.js} +7 -7
  19. package/dist/{Goals-Bbbgurfd.js → Goals-Utk08egN.js} +4 -4
  20. package/dist/Grab-DwMmWmbT.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js → ImageInput.vue_vue_type_script_setup_true_lang-CNPeU9xm.js} +1 -1
  22. package/dist/{Index-C8_OWllb.js → Index-Bjgs18xf.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BlCg-jI7.js → LocationPicker.vue_vue_type_script_setup_true_lang-DWnf4lXH.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CACxChIo.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dy_oWJaZ.js} +1 -1
  25. package/dist/{LoyaltyDashboard-DJlE0371.js → LoyaltyDashboard-DmUfujX_.js} +15 -15
  26. package/dist/MainLayout-DlDZQJfy.js +4 -0
  27. package/dist/{MainLayout-Bs2UPvFx.js → MainLayout.vue_vue_type_script_setup_true_lang-yAflY70k.js} +5 -4
  28. package/dist/Marketing-B0iKlHP-.js +269 -0
  29. package/dist/MarketingMaterialEdit-BNHxVb8A.js +1037 -0
  30. package/dist/{Member-C4yqwsMH.js → Member-Bcm3_pWB.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbumjyC_.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CPp4OpOx.js} +43 -50
  32. package/dist/{MemberImportHistory-CbuXCdxC.js → MemberImportHistory-AQgLzB3g.js} +7 -7
  33. package/dist/{MemberList-CpAepPBe.js → MemberList-CkMTo2uD.js} +103 -105
  34. package/dist/{MemberTransactions-BbpXvsSk.js → MemberTransactions-CxLCVjvw.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BaWgxbad.js → MessageInput.vue_vue_type_script_setup_true_lang-4N20f8Sj.js} +14 -14
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CEgMElLo.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DghbYpSQ.js} +1 -1
  37. package/dist/{Mission-Bdb9KVeP.js → Mission-CQS1CoDN.js} +22 -21
  38. package/dist/{Overview-CEiyGMcf.js → Overview-NQ287sgq.js} +23 -22
  39. package/dist/{Overview-D_9JwnFU.js → Overview-UG1IjY7-.js} +145 -144
  40. package/dist/{Point-Bd5cMXQx.js → Point-krMa_mb1.js} +22 -21
  41. package/dist/{Promotion-D9gZDvgR.js → Promotion-vFBmJSti.js} +137 -131
  42. package/dist/{Queue-BnAOL_rp.js → Queue-BusxSPt-.js} +46 -45
  43. package/dist/{Record-D6TWFKe0.js → Record-DjKqn0za.js} +9 -9
  44. package/dist/{Review-DLEgvnc-.js → Review-CqLp8l7U.js} +2 -2
  45. package/dist/ReviewFacebookCallback-D2kMSVFC.js +225 -0
  46. package/dist/{ReviewGoogleCallback-BgAbO3pI.js → ReviewGoogleCallback-B1cHR-o2.js} +5 -5
  47. package/dist/Reward-FeSxgzuS.js +444 -0
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bt-EqsiH.js → RewardGroup.vue_vue_type_script_setup_true_lang-CCxVjBsO.js} +16 -15
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-U403emCF.js +1923 -0
  50. package/dist/{Segment-B9Se5FFw.js → Segment-Nj59F9Nr.js} +304 -305
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-f7AS5vwv.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Kg9m-0DS.js} +31 -30
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-3BKA0UFI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLbDApPL.js} +4 -4
  53. package/dist/Setting-CCIzNxv-.js +574 -0
  54. package/dist/{SettingAdvertisements-CLw-dqiA.js → SettingAdvertisements-CkPyAg5y.js} +12 -12
  55. package/dist/Settings-CYjKGCpa.js +286 -0
  56. package/dist/{Store-B5PPP5zM.js → Store-Bp8Zkzi2.js} +31 -30
  57. package/dist/{StoreRewards-DllyaVBY.js → StoreRewards-DXW5nVyW.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BYVezFI2.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CS6b1cM3.js +7007 -0
  60. package/dist/{Tier-M_TApfju.js → Tier-B8Utn9Qb.js} +2576 -687
  61. package/dist/{Title-Cpltm-I2.js → Title-CwaNSFer.js} +94 -92
  62. package/dist/{Transaction-BYfAYRpv.js → Transaction-ieciAdXP.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BOhfGxVj.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CMwZl4E6.js} +26 -26
  64. package/dist/{Voucher-DHoyg0YZ.js → Voucher-BKfujj6r.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DWHwM6AJ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CkH-rNqZ.js} +16 -16
  66. package/dist/WhatsappAccount-D73WDP7a.js +161 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C3L7vWZE.js +39 -0
  68. package/dist/WhatsappBot-DTWZAXhi.js +878 -0
  69. package/dist/WhatsappBotLogs-DtDcrjs9.js +372 -0
  70. package/dist/WhatsappBotSettings-7_mH9U4y.js +704 -0
  71. package/dist/WhatsappLayout-BVpaFJ8H.js +21 -0
  72. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CMeaNKJt.js +261 -0
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B6tTjLAZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js} +2 -2
  74. package/dist/{app-B_doYklh.js → app-DX7OWVY2.js} +9159 -7383
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-DmbnT_bp.js → base.export-bamzzexi.js} +2 -2
  77. package/dist/browser-BSAOEeIM.js +1478 -0
  78. package/dist/{business-DdVGtTvx.js → business-D3U9HSu9.js} +1 -1
  79. package/dist/{campaign-jEhKmpKg.js → campaign-BqRf2VUO.js} +121 -94
  80. package/dist/{campaign-CVkA08zl.js → campaign-CKfeN2xN.js} +31 -25
  81. package/dist/{campaign.enum-DWu6-kOo.js → campaign.enum-Dx-Zo68Q.js} +3 -2
  82. package/dist/{campaign.fn-BlgEyeFz.js → campaign.fn-DQe5LZuT.js} +82 -82
  83. package/dist/{collectible.enum-CVLkXKml.js → collectible.enum-Liy2wH3s.js} +1 -1
  84. package/dist/{collection.fn-DLNGTrPf.js → collection.fn-BcGqExuE.js} +2 -2
  85. package/dist/{currency-DKS1md4e.js → currency-sjMYWoI8.js} +1 -1
  86. package/dist/duplicateCampaign-CJF3ZLNd.js +51 -0
  87. package/dist/{effect-Bk-zYexf.js → effect-Cv8ugBR3.js} +1 -1
  88. package/dist/{email-addresses-I9A5iLzf.js → email-addresses-CWqtseTn.js} +2 -2
  89. package/dist/{feature-flag-DQti61iR.js → feature-flag-BIh6MM4i.js} +152 -136
  90. package/dist/google-BQK68wbe.js +5 -0
  91. package/dist/{helper-9cPlo6ae.js → helper-WnxOxoRK.js} +1 -1
  92. package/dist/{index-DuvnRxeo.js → index-5TTGGDnF.js} +1 -1
  93. package/dist/{index-CuyzSc1l.js → index-B3CkAr-6.js} +1 -1
  94. package/dist/{index-cgtAlOl9.js → index-B9XVyhtC.js} +8028 -10767
  95. package/dist/{index-ClYX4COd.js → index-BGguMtc0.js} +4 -3
  96. package/dist/{index-CNUXbXvG.js → index-Bdg48Cus.js} +19 -6
  97. package/dist/{index-fHiFL1dW.js → index-BoAmM8QH.js} +29 -15
  98. package/dist/{index-C-OnJpT8.js → index-BtmVXdRR.js} +1 -1
  99. package/dist/{index-1Cdj34z1.js → index-CDTETsXQ.js} +1 -1
  100. package/dist/index-C_H8jFYf.js +2743 -0
  101. package/dist/{index-BxpbI0GH.js → index-CeafUn1o.js} +7 -7
  102. package/dist/{index-Dj51vqab.js → index-CiSTQhs9.js} +4 -4
  103. package/dist/{index-CIwdXphn.js → index-ClvaVYkG.js} +2700 -2613
  104. package/dist/{index-Cj6oxbl0.js → index-CnsSd5Dg.js} +11 -10
  105. package/dist/{index-oNMFyOGe.js → index-D3yYjyaj.js} +8 -7
  106. package/dist/{index-BRm0LMTo.js → index-DDzi_-Lu.js} +611 -252
  107. package/dist/{index-3V8E9GaZ.js → index-DOgDR_QH.js} +2 -2
  108. package/dist/{index-DOE2VR99.js → index-DqZX-A6e.js} +198 -198
  109. package/dist/{index-vKvGJ4Ve.js → index-DxhNNZ-a.js} +2 -2
  110. package/dist/index-DzYFQGSw.js +74 -0
  111. package/dist/index-I9lmcd2w.js +109 -0
  112. package/dist/{index-728mP6kW.js → index-iiWxryxo.js} +683 -581
  113. package/dist/{index-DWkuIfHy.js → index-qI1yx02a.js} +390 -232
  114. package/dist/{index.esm2017-CsF37oA-.js → index.esm2017-GI2alVO5.js} +177 -177
  115. package/dist/{loading-BJJmTFoe.js → loading-Qx5K2WL0.js} +1 -1
  116. package/dist/{lodash-BMJ6_hsa.js → lodash-CeSjJptg.js} +1 -1
  117. package/dist/{member-import-DrGxVJt9.js → member-import-Cq8G7SsW.js} +6 -5
  118. package/dist/{membership-CAqKihwy.js → membership-BbeavSNs.js} +3 -3
  119. package/dist/{money-Bf9d2ZUH.js → money-D8YIFaGA.js} +1 -1
  120. package/dist/{number-CWXlGZa5.js → number-DAubZ5bt.js} +1 -1
  121. package/dist/objectid-DeXFWDMh.js +145 -0
  122. package/dist/{onboarding-Dn9O7r3a.js → onboarding-SyFxaTJY.js} +25 -25
  123. package/dist/{onboardingSetup-BMkDoGy-.js → onboardingSetup-CLpHlBn8.js} +2 -2
  124. package/dist/{plugins-KDgceFWV.js → plugins-BHuaMEYA.js} +3 -3
  125. package/dist/{MarketingMaterialEdit-o88sdvTM.js → remy-icon-BhUGu2NI.js} +2 -1031
  126. package/dist/{reward-eilGRaXi.js → reward-dYWnmAC8.js} +1 -1
  127. package/dist/{rule-Dr9Zjg_o.js → rule-BVsfOP2h.js} +572 -492
  128. package/dist/style.css +1 -1
  129. package/dist/template-BcdtbhUJ.js +188 -0
  130. package/dist/{timezone-C5CIfvHs.js → timezone-CUc7q5Ii.js} +1 -1
  131. package/dist/{transaction.fn-Cr-FLjh0.js → transaction.fn-jF9u_cBy.js} +2 -2
  132. package/dist/{trigger-B0Fv6wbN.js → trigger-COlbQlaB.js} +8 -8
  133. package/dist/useMarketingMaterialActions-Dq6-gsOW.js +125 -0
  134. package/dist/{usePagination-BcA-imTr.js → usePagination-BYZB6ORK.js} +1 -1
  135. package/dist/{user-DRvLwlBE.js → user-DK7L8VFR.js} +1 -1
  136. package/dist/vue-i18n-CDSTH7g5.js +2365 -0
  137. package/dist/{xlsx-CBObn76o.js → xlsx-CKxXlDzD.js} +224 -224
  138. package/dist/{zod-DWU5EdQV.js → zod-DjtAaF0U.js} +1 -1
  139. package/package.json +6 -2
  140. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ijya9Cho.js +0 -3494
  141. package/dist/Marketing-BvRYzFV8.js +0 -236
  142. package/dist/ReviewFacebookCallback-jVlm2O8f.js +0 -238
  143. package/dist/Reward-DBheQiFu.js +0 -442
  144. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CKL8MEld.js +0 -1883
  145. package/dist/Setting-B92JT_Y4.js +0 -2037
  146. package/dist/Settings-BmmM8ZnR.js +0 -179
  147. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3Vvqf6_H.js +0 -1264
  148. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-7ZZ0e5tQ.js +0 -142
  149. package/dist/google-C3S8u0mT.js +0 -4
  150. package/dist/objectid-2DN5a9sY.js +0 -145
  151. package/dist/rule-builder-cz6Dy-no.js +0 -102
  152. package/dist/template-DwbazO8p.js +0 -236
  153. package/dist/useMarketingMaterialActions-CNk3LR9M.js +0 -96
  154. package/dist/vue-i18n-y7bHQpNx.js +0 -2365
@@ -1,24 +1,24 @@
1
- import { defineComponent as xe, ref as ee, h as H, Comment as cn, computed as ne, watch as ie, resolveComponent as Z, openBlock as j, createElementBlock as me, createVNode as S, unref as g, createElementVNode as v, toDisplayString as R, createBlock as Oe, withCtx as Q, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
1
+ import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y, watch as ie, resolveComponent as ee, openBlock as j, createElementBlock as me, createVNode as S, unref as _, createElementVNode as I, toDisplayString as R, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
2
2
  import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
3
3
  import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
4
4
  import { u as pn } from "./app-wDQR6dpb.js";
5
- import { u as mn } from "./business-DdVGtTvx.js";
6
- import { l as gn } from "./feature-flag-DQti61iR.js";
7
- import "./index-CuyzSc1l.js";
8
- import { components as G, useSnackbar as _n, useDialog as vn } from "@feedmepos/ui-library";
9
- import { u as Tt } from "./vue-i18n-y7bHQpNx.js";
10
- import { m as In } from "./index-C-OnJpT8.js";
11
- import { C as Xe } from "./timezone-C5CIfvHs.js";
12
- import { u as yn } from "./onboarding-Dn9O7r3a.js";
13
- import { R as p, A as wn, a as Qe } from "./app-B_doYklh.js";
14
- import { J as Tn } from "./JsonViewer-v8_C7l5N.js";
15
- import { r as Le, L as kn, g as kt, i as bn, a as En, _ as Ze, C as et, b as Sn, S as se, c as A, d as Y, E as Fe, e as Rn, f as bt, h as An, j as Pn, k as Et, l as w, m as Cn, F as Ve, n as Nn, q as oe, o as On, p as Ln, s as Mn, t as Un, u as Dn } from "./index.esm2017-CsF37oA-.js";
5
+ import { u as mn } from "./business-D3U9HSu9.js";
6
+ import { u as gn, l as _n } from "./feature-flag-BIh6MM4i.js";
7
+ import "./index-B3CkAr-6.js";
8
+ import { components as W, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
9
+ import { u as Tt } from "./vue-i18n-CDSTH7g5.js";
10
+ import { m as yn } from "./index-BtmVXdRR.js";
11
+ import { C as Xe } from "./timezone-CUc7q5Ii.js";
12
+ import { u as wn } from "./onboarding-SyFxaTJY.js";
13
+ import { R as p, A as Tn, a as Qe } from "./app-DX7OWVY2.js";
14
+ import { J as kn } from "./JsonViewer-v8_C7l5N.js";
15
+ import { r as Le, L as bn, g as kt, i as En, a as Sn, _ as Ze, C as et, b as Rn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Pn, j as Cn, k as Et, l as w, m as Nn, F as Ve, n as On, q as oe, o as Ln, p as Mn, s as Un, t as Dn, u as xn } from "./index.esm2017-GI2alVO5.js";
16
16
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
17
- import { S as tt, c as xn } from "./index-BxpbI0GH.js";
18
- const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, $n = /* @__PURE__ */ xe({
17
+ import { S as tt, c as Fn } from "./index-CeafUn1o.js";
18
+ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Hn = /* @__PURE__ */ xe({
19
19
  __name: "NavigationTab",
20
20
  setup(n) {
21
- const { t: e, locale: t } = Tt(), i = yn(), r = ee(), s = [
21
+ const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
22
22
  {
23
23
  label: e("connect.navigation.analytic"),
24
24
  value: p["$connect-ANALYTIC"]
@@ -38,6 +38,10 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
38
38
  {
39
39
  label: e("connect.navigation.broadcast"),
40
40
  value: p["$connect-CAMPAIGN_BROADCAST"]
41
+ },
42
+ {
43
+ label: e("connect.navigation.grab"),
44
+ value: p["$connect-CAMPAIGN_GRAB"]
41
45
  }
42
46
  ]
43
47
  },
@@ -60,7 +64,7 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
60
64
  {
61
65
  label: e("connect.navigation.point"),
62
66
  value: p["$connect-PROGRAM_POINT"],
63
- badge: () => H(G.FmPill, { variant: "premium" })
67
+ badge: () => U(W.FmPill, { variant: "premium" })
64
68
  },
65
69
  {
66
70
  label: e("connect.navigation.credit"),
@@ -69,7 +73,7 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
69
73
  {
70
74
  label: e("connect.navigation.game"),
71
75
  value: p["$connect-PROGRAM_GAME"],
72
- badge: () => H(G.FmPill, { variant: "premium" })
76
+ badge: () => U(W.FmPill, { variant: "premium" })
73
77
  },
74
78
  {
75
79
  label: "Mission",
@@ -88,19 +92,24 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
88
92
  {
89
93
  label: e("connect.navigation.segments"),
90
94
  value: p["$connect-LOYALTY_SEGMENT"],
91
- badge: () => H(G.FmPill, { variant: "premium" })
95
+ badge: () => U(W.FmPill, { variant: "premium" })
92
96
  },
93
97
  {
94
98
  label: e("connect.navigation.card"),
95
99
  value: p["$connect-LOYALTY_CARD"],
96
- badge: () => H(G.FmPill, { variant: "premium" })
100
+ badge: () => U(W.FmPill, { variant: "premium" })
97
101
  }
98
102
  ]
99
103
  },
104
+ {
105
+ label: e("connect.navigation.whatsappBot"),
106
+ value: p["$connect-WHATSAPP"],
107
+ badge: () => U(W.FmPill, { variant: "beta" })
108
+ },
100
109
  {
101
110
  label: e("connect.navigation.referral"),
102
111
  value: p["$connect-REFERRAL"],
103
- badge: () => H(G.FmPill, { variant: "premium" })
112
+ badge: () => U(W.FmPill, { variant: "premium" })
104
113
  },
105
114
  {
106
115
  label: e("connect.navigation.store"),
@@ -114,6 +123,10 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
114
123
  label: e("connect.navigation.marketingMaterials"),
115
124
  value: p["$connect-MARKETING"]
116
125
  },
126
+ {
127
+ label: e("connect.navigation.auditLogs"),
128
+ value: p["$connect-AUDIT_LOGS"]
129
+ },
117
130
  {
118
131
  label: e("connect.navigation.review"),
119
132
  value: p["$connect-REVIEW"]
@@ -121,11 +134,11 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
121
134
  {
122
135
  label: e("connect.navigation.goals"),
123
136
  value: p["$connect-GOALS"],
124
- badge: () => i.goalsRemaining > 0 ? H(G.FmBadge, {
137
+ badge: () => i.goalsRemaining > 0 ? U(W.FmBadge, {
125
138
  variant: "numeric",
126
139
  inline: !0,
127
140
  value: i.goalsRemaining
128
- }) : H(cn)
141
+ }) : U(cn)
129
142
  },
130
143
  {
131
144
  label: e("connect.navigation.setting"),
@@ -135,52 +148,56 @@ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class
135
148
  label: e("connect.navigation.bin"),
136
149
  value: p["$connect-BIN"]
137
150
  }
138
- ], o = yt(), c = wt(), a = s.reduce((f, y) => [...(y.children ?? []).map((_) => _.value), ...f, y.value], []), l = ge(), d = ne(() => {
139
- const f = l.currentCountry.value || "MY";
140
- return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
151
+ ], c = Y(
152
+ () => o.filter(
153
+ (h) => h.value !== p["$connect-WHATSAPP"] || r() === "on"
154
+ )
155
+ ), a = yt(), l = wt(), d = o.reduce((h, f) => [...(f.children ?? []).map((g) => g.value), ...h, f.value], []), m = ge(), y = Y(() => {
156
+ const h = m.currentCountry.value || "MY";
157
+ return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
141
158
  });
142
159
  ie(
143
160
  // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
144
161
  // whose identity never changes, so watching it directly fired once via
145
162
  // `immediate` and the highlight then stayed on whatever page loaded first.
146
- () => c.matched,
147
- (f) => {
148
- const _ = f.map((h) => h.name).reverse().find((h) => a.includes(h));
149
- _ && (r.value = _);
163
+ () => l.matched,
164
+ (h) => {
165
+ const g = h.map((v) => v.name).reverse().find((v) => d.includes(v));
166
+ g && (s.value = g);
150
167
  },
151
168
  { immediate: !0 }
152
169
  ), ie(
153
170
  [() => {
154
- var f;
155
- return (f = l.currentBusiness.value) == null ? void 0 : f._id;
156
- }, () => c.name, t],
157
- ([f]) => {
158
- f && i.read(t.value, f);
171
+ var h;
172
+ return (h = m.currentBusiness.value) == null ? void 0 : h._id;
173
+ }, () => l.name, t],
174
+ ([h]) => {
175
+ h && i.read(t.value, h);
159
176
  },
160
177
  { immediate: !0 }
161
178
  );
162
- async function m(f) {
163
- await o.push({ name: f });
179
+ async function T(h) {
180
+ await a.push({ name: h });
164
181
  }
165
- return (f, y) => {
166
- var h;
167
- const _ = Z("FmCollapsibleTabs");
168
- return j(), me("div", Fn, [
169
- S(_, {
182
+ return (h, f) => {
183
+ var v;
184
+ const g = ee("FmCollapsibleTabs");
185
+ return j(), me("div", Vn, [
186
+ S(g, {
170
187
  class: "border-fm-color-neutral-gray-100 border-r px-4",
171
- "model-value": (h = g(r)) == null ? void 0 : h.toString(),
172
- items: s,
173
- "onUpdate:modelValue": m
174
- }, null, 8, ["model-value"]),
175
- v("div", Vn, [
176
- v("div", null, "Timezone: " + R(g(d).split("/")[1].replace("_", " ")), 1),
177
- v("div", null, "(UTC" + R(g(In).tz(g(d)).format("Z")) + ")", 1)
188
+ "model-value": (v = _(s)) == null ? void 0 : v.toString(),
189
+ items: _(c),
190
+ "onUpdate:modelValue": T
191
+ }, null, 8, ["model-value", "items"]),
192
+ I("div", $n, [
193
+ I("div", null, "Timezone: " + R(_(y).split("/")[1].replace("_", " ")), 1),
194
+ I("div", null, "(UTC" + R(_(yn).tz(_(y)).format("Z")) + ")", 1)
178
195
  ])
179
196
  ]);
180
197
  };
181
198
  }
182
199
  }), St = "feedme_connect_marketing_promo_hidden";
183
- function Hn() {
200
+ function Wn() {
184
201
  try {
185
202
  return localStorage.getItem(St) !== null;
186
203
  } catch {
@@ -193,124 +210,124 @@ function jn() {
193
210
  } catch {
194
211
  }
195
212
  }
196
- const Wn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, Gn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, zn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, qn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Kn = { class: "flex flex-col gap-24 pb-8" }, Jn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Yn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Xn = { class: "fm-typo-en-body-lg-600" }, Qn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Zn = { class: "shrink-0" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ti = { class: "flex w-full flex-col gap-12 px-[16px]" }, ni = { class: "flex flex-wrap items-center gap-12" }, ii = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ri = /* @__PURE__ */ xe({
213
+ const Bn = { class: "flex flex-col gap-12" }, Gn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, zn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, qn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Kn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Jn = { class: "flex flex-col gap-24 pb-8" }, Yn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Xn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Qn = { class: "fm-typo-en-body-lg-600" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ei = { class: "shrink-0" }, ti = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ni = { class: "flex w-full flex-col gap-12 px-[16px]" }, ii = { class: "flex flex-wrap items-center gap-12" }, ri = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, si = /* @__PURE__ */ xe({
197
214
  __name: "AiMarketingPromoDialog",
198
215
  setup(n) {
199
216
  let e = !1;
200
- const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o = ee(!1), c = [
217
+ const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o = te(!1), c = [
201
218
  { key: "completeContent", icon: "layers" },
202
219
  { key: "realContext", icon: "storefront" },
203
220
  { key: "socialFormat", icon: "aspect_ratio" }
204
- ], a = ne(() => {
205
- var _;
206
- const y = ((_ = r.value) == null ? void 0 : _.permissions) ?? [];
207
- return wn(
221
+ ], a = Y(() => {
222
+ var h;
223
+ const T = ((h = r.value) == null ? void 0 : h.permissions) ?? [];
224
+ return Tn(
208
225
  [
209
226
  {
210
227
  action: Qe.Action.manage,
211
228
  subject: Qe.Subject.Business.crm_marketingMaterial
212
229
  }
213
230
  ],
214
- y
231
+ T
215
232
  ).granted;
216
- }), l = ne(
233
+ }), l = Y(
217
234
  () => s.value === "MY" && a.value
218
235
  );
219
236
  let d = !1;
220
237
  ie(
221
238
  l,
222
- (y) => {
223
- d || !y || (d = !0, !(Hn() || e) && (e = !0, o.value = !0));
239
+ (T) => {
240
+ d || !T || (d = !0, !(Wn() || e) && (e = !0, o.value = !0));
224
241
  },
225
242
  { immediate: !0 }
226
243
  );
227
244
  async function m() {
228
245
  o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
229
246
  }
230
- function f() {
247
+ function y() {
231
248
  jn(), o.value = !1;
232
249
  }
233
- return (y, _) => {
234
- const h = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
250
+ return (T, h) => {
251
+ const f = ee("FmIcon"), g = ee("FmCard"), v = ee("FmButton"), M = ee("FmDialog");
235
252
  return j(), Oe(M, {
236
253
  modelValue: o.value,
237
- "onUpdate:modelValue": _[0] || (_[0] = (k) => o.value = k),
254
+ "onUpdate:modelValue": h[0] || (h[0] = (k) => o.value = k),
238
255
  "min-width": "min(500px, calc(100% - 48px))",
239
256
  "max-width": "min(860px, calc(100% - 48px))",
240
257
  "max-height": "90vh",
241
258
  "dismiss-away": ""
242
259
  }, {
243
- "dialog-header": Q(() => [
244
- v("div", Wn, [
245
- v("div", Bn, [
246
- S(h, {
260
+ "dialog-header": Z(() => [
261
+ I("div", Bn, [
262
+ I("div", Gn, [
263
+ S(f, {
247
264
  name: "auto_awesome",
248
265
  size: "sm",
249
266
  color: "primary"
250
267
  }),
251
- v("span", Gn, R(g(t)("connect.marketing.whatsNew.badge")), 1)
268
+ I("span", zn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
252
269
  ]),
253
- v("h1", zn, R(g(t)("connect.marketing.whatsNew.title")), 1),
254
- v("p", qn, R(g(t)("connect.marketing.whatsNew.subtitle")), 1)
270
+ I("h1", qn, R(_(t)("connect.marketing.whatsNew.title")), 1),
271
+ I("p", Kn, R(_(t)("connect.marketing.whatsNew.subtitle")), 1)
255
272
  ])
256
273
  ]),
257
- "dialog-footer": Q(() => [
258
- v("div", ti, [
259
- v("div", ni, [
260
- S(T, {
274
+ "dialog-footer": Z(() => [
275
+ I("div", ni, [
276
+ I("div", ii, [
277
+ S(v, {
261
278
  variant: "primary",
262
279
  size: "lg",
263
- label: g(t)("connect.marketing.whatsNew.cta"),
280
+ label: _(t)("connect.marketing.whatsNew.cta"),
264
281
  "append-icon": "arrow_forward",
265
282
  onClick: m
266
283
  }, null, 8, ["label"]),
267
- S(T, {
284
+ S(v, {
268
285
  variant: "tertiary",
269
286
  size: "lg",
270
- label: g(t)("connect.marketing.whatsNew.dismiss"),
271
- onClick: f
287
+ label: _(t)("connect.marketing.whatsNew.dismiss"),
288
+ onClick: y
272
289
  }, null, 8, ["label"])
273
290
  ]),
274
- v("div", ii, R(g(t)("connect.marketing.whatsNew.footnote")), 1)
291
+ I("div", ri, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
275
292
  ])
276
293
  ]),
277
- default: Q(() => [
278
- v("div", Kn, [
279
- v("div", Jn, [
280
- (j(), me(It, null, ln(c, (k) => S(I, {
294
+ default: Z(() => [
295
+ I("div", Jn, [
296
+ I("div", Yn, [
297
+ (j(), me(It, null, ln(c, (k) => S(g, {
281
298
  key: k.key,
282
299
  variant: "outlined",
283
300
  class: "!h-full flex flex-col gap-8 p-16"
284
301
  }, {
285
- default: Q(() => [
286
- v("div", Yn, [
287
- S(h, {
302
+ default: Z(() => [
303
+ I("div", Xn, [
304
+ S(f, {
288
305
  name: k.icon,
289
306
  size: "md",
290
307
  color: "primary"
291
308
  }, null, 8, ["name"])
292
309
  ]),
293
- v("div", Xn, R(g(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
294
- v("div", Qn, R(g(t)(
310
+ I("div", Qn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
311
+ I("div", Zn, R(_(t)(
295
312
  `connect.marketing.whatsNew.benefits.${k.key}.description`
296
313
  )), 1)
297
314
  ]),
298
315
  _: 2
299
316
  }, 1024)), 64))
300
317
  ]),
301
- S(I, {
318
+ S(g, {
302
319
  variant: "outlined",
303
320
  class: "flex items-start gap-12 p-16"
304
321
  }, {
305
- default: Q(() => [
306
- v("div", Zn, [
307
- S(h, {
322
+ default: Z(() => [
323
+ I("div", ei, [
324
+ S(f, {
308
325
  name: "lightbulb",
309
326
  size: "md",
310
327
  color: "primary"
311
328
  })
312
329
  ]),
313
- v("p", ei, R(g(t)("connect.marketing.whatsNew.callout")), 1)
330
+ I("p", ti, R(_(t)("connect.marketing.whatsNew.callout")), 1)
314
331
  ]),
315
332
  _: 1
316
333
  })
@@ -321,7 +338,7 @@ const Wn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
321
338
  };
322
339
  }
323
340
  });
324
- var si = "firebase", oi = "10.12.4";
341
+ var oi = "firebase", ai = "10.12.4";
325
342
  /**
326
343
  * @license
327
344
  * Copyright 2020 Google LLC
@@ -338,13 +355,13 @@ var si = "firebase", oi = "10.12.4";
338
355
  * See the License for the specific language governing permissions and
339
356
  * limitations under the License.
340
357
  */
341
- Le(si, oi, "app");
358
+ Le(oi, ai, "app");
342
359
  function Rt() {
343
360
  return {
344
361
  "dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
345
362
  };
346
363
  }
347
- const ai = Rt, At = new Fe("auth", "Firebase", Rt());
364
+ const ci = Rt, At = new Fe("auth", "Firebase", Rt());
348
365
  /**
349
366
  * @license
350
367
  * Copyright 2020 Google LLC
@@ -361,8 +378,8 @@ const ai = Rt, At = new Fe("auth", "Firebase", Rt());
361
378
  * See the License for the specific language governing permissions and
362
379
  * limitations under the License.
363
380
  */
364
- const _e = new kn("@firebase/auth");
365
- function ci(n, ...e) {
381
+ const _e = new bn("@firebase/auth");
382
+ function li(n, ...e) {
366
383
  _e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
367
384
  }
368
385
  function de(n, ...e) {
@@ -391,12 +408,12 @@ function b(n, ...e) {
391
408
  return He(n, ...e);
392
409
  }
393
410
  function Pt(n, e, t) {
394
- const i = Object.assign(Object.assign({}, ai()), { [e]: t });
411
+ const i = Object.assign(Object.assign({}, ci()), { [e]: t });
395
412
  return new Fe("auth", "Firebase", i).create(e, {
396
413
  appName: n.name
397
414
  });
398
415
  }
399
- function $(n) {
416
+ function H(n) {
400
417
  return Pt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
401
418
  }
402
419
  function He(n, ...e) {
@@ -437,7 +454,7 @@ function Me() {
437
454
  var n;
438
455
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
439
456
  }
440
- function li() {
457
+ function ui() {
441
458
  return nt() === "http:" || nt() === "https:";
442
459
  }
443
460
  function nt() {
@@ -460,15 +477,15 @@ function nt() {
460
477
  * See the License for the specific language governing permissions and
461
478
  * limitations under the License.
462
479
  */
463
- function ui() {
480
+ function di() {
464
481
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
465
482
  // This is especially true for Cordova apps which have unreliable
466
483
  // navigator.onLine behavior unless cordova-plugin-network-information is
467
484
  // installed which overwrites the native navigator.onLine value and
468
485
  // defines navigator.connection.
469
- (li() || Sn() || "connection" in navigator) ? navigator.onLine : !0;
486
+ (ui() || Rn() || "connection" in navigator) ? navigator.onLine : !0;
470
487
  }
471
- function di() {
488
+ function hi() {
472
489
  if (typeof navigator > "u")
473
490
  return null;
474
491
  const n = navigator;
@@ -498,10 +515,10 @@ function di() {
498
515
  */
499
516
  class ae {
500
517
  constructor(e, t) {
501
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = bn() || En();
518
+ this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = En() || Sn();
502
519
  }
503
520
  get() {
504
- return ui() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
521
+ return di() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
505
522
  }
506
523
  }
507
524
  /**
@@ -520,7 +537,7 @@ class ae {
520
537
  * See the License for the specific language governing permissions and
521
538
  * limitations under the License.
522
539
  */
523
- function je(n, e) {
540
+ function We(n, e) {
524
541
  L(n.emulator, "Emulator should always be set here");
525
542
  const { url: t } = n.emulator;
526
543
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
@@ -595,7 +612,7 @@ class Ct {
595
612
  * See the License for the specific language governing permissions and
596
613
  * limitations under the License.
597
614
  */
598
- const hi = {
615
+ const fi = {
599
616
  // Custom token errors.
600
617
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
601
618
  // This can only happen if the SDK sends a bad request.
@@ -686,11 +703,11 @@ const hi = {
686
703
  * See the License for the specific language governing permissions and
687
704
  * limitations under the License.
688
705
  */
689
- const fi = new ae(3e4, 6e4);
706
+ const pi = new ae(3e4, 6e4);
690
707
  function Te(n, e) {
691
708
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
692
709
  }
693
- async function X(n, e, t, i, r = {}) {
710
+ async function Q(n, e, t, i, r = {}) {
694
711
  return Nt(n, r, async () => {
695
712
  let s = {}, o = {};
696
713
  i && (e === "GET" ? o = i : s = {
@@ -712,9 +729,9 @@ async function X(n, e, t, i, r = {}) {
712
729
  }
713
730
  async function Nt(n, e, t) {
714
731
  n._canInitEmulator = !1;
715
- const i = Object.assign(Object.assign({}, hi), e);
732
+ const i = Object.assign(Object.assign({}, fi), e);
716
733
  try {
717
- const r = new pi(n), s = await Promise.race([
734
+ const r = new mi(n), s = await Promise.race([
718
735
  t(),
719
736
  r.promise
720
737
  ]);
@@ -744,23 +761,23 @@ async function Nt(n, e, t) {
744
761
  }
745
762
  }
746
763
  async function Ot(n, e, t, i, r = {}) {
747
- const s = await X(n, e, t, i, r);
764
+ const s = await Q(n, e, t, i, r);
748
765
  return "mfaPendingCredential" in s && O(n, "multi-factor-auth-required", {
749
766
  _serverResponse: s
750
767
  }), s;
751
768
  }
752
769
  function Lt(n, e, t, i) {
753
770
  const r = `${e}${t}?${i}`;
754
- return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
771
+ return n.config.emulator ? We(n.config, r) : `${n.config.apiScheme}://${r}`;
755
772
  }
756
- class pi {
773
+ class mi {
757
774
  constructor(e) {
758
775
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
759
776
  this.timer = setTimeout(() => i(b(
760
777
  this.auth,
761
778
  "network-request-failed"
762
779
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
763
- )), fi.get());
780
+ )), pi.get());
764
781
  });
765
782
  }
766
783
  clearNetworkTimeout() {
@@ -791,11 +808,11 @@ function ue(n, e, t) {
791
808
  * See the License for the specific language governing permissions and
792
809
  * limitations under the License.
793
810
  */
794
- async function mi(n, e) {
795
- return X(n, "POST", "/v1/accounts:delete", e);
811
+ async function gi(n, e) {
812
+ return Q(n, "POST", "/v1/accounts:delete", e);
796
813
  }
797
814
  async function Mt(n, e) {
798
- return X(n, "POST", "/v1/accounts:lookup", e);
815
+ return Q(n, "POST", "/v1/accounts:lookup", e);
799
816
  }
800
817
  /**
801
818
  * @license
@@ -813,7 +830,7 @@ async function Mt(n, e) {
813
830
  * See the License for the specific language governing permissions and
814
831
  * limitations under the License.
815
832
  */
816
- function te(n) {
833
+ function ne(n) {
817
834
  if (n)
818
835
  try {
819
836
  const e = new Date(Number(n));
@@ -822,8 +839,8 @@ function te(n) {
822
839
  } catch {
823
840
  }
824
841
  }
825
- async function gi(n, e = !1) {
826
- const t = Y(n), i = await t.getIdToken(e), r = We(i);
842
+ async function _i(n, e = !1) {
843
+ const t = X(n), i = await t.getIdToken(e), r = je(i);
827
844
  u(
828
845
  r && r.exp && r.auth_time && r.iat,
829
846
  t.auth,
@@ -834,9 +851,9 @@ async function gi(n, e = !1) {
834
851
  return {
835
852
  claims: r,
836
853
  token: i,
837
- authTime: te(Ce(r.auth_time)),
838
- issuedAtTime: te(Ce(r.iat)),
839
- expirationTime: te(Ce(r.exp)),
854
+ authTime: ne(Ce(r.auth_time)),
855
+ issuedAtTime: ne(Ce(r.iat)),
856
+ expirationTime: ne(Ce(r.exp)),
840
857
  signInProvider: o || null,
841
858
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
842
859
  };
@@ -844,19 +861,19 @@ async function gi(n, e = !1) {
844
861
  function Ce(n) {
845
862
  return Number(n) * 1e3;
846
863
  }
847
- function We(n) {
864
+ function je(n) {
848
865
  const [e, t, i] = n.split(".");
849
866
  if (e === void 0 || t === void 0 || i === void 0)
850
867
  return de("JWT malformed, contained fewer than 3 sections"), null;
851
868
  try {
852
- const r = Nn(t);
869
+ const r = On(t);
853
870
  return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
854
871
  } catch (r) {
855
872
  return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
856
873
  }
857
874
  }
858
875
  function it(n) {
859
- const e = We(n);
876
+ const e = je(n);
860
877
  return u(
861
878
  e,
862
879
  "internal-error"
@@ -893,10 +910,10 @@ async function re(n, e, t = !1) {
893
910
  try {
894
911
  return await e;
895
912
  } catch (i) {
896
- throw i instanceof Ve && _i(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
913
+ throw i instanceof Ve && vi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
897
914
  }
898
915
  }
899
- function _i({ code: n }) {
916
+ function vi({ code: n }) {
900
917
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
901
918
  }
902
919
  /**
@@ -915,7 +932,7 @@ function _i({ code: n }) {
915
932
  * See the License for the specific language governing permissions and
916
933
  * limitations under the License.
917
934
  */
918
- class vi {
935
+ class Ii {
919
936
  constructor(e) {
920
937
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
921
938
  }
@@ -982,7 +999,7 @@ class Ue {
982
999
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
983
1000
  }
984
1001
  _initializeTime() {
985
- this.lastSignInTime = te(this.lastLoginAt), this.creationTime = te(this.createdAt);
1002
+ this.lastSignInTime = ne(this.lastLoginAt), this.creationTime = ne(this.createdAt);
986
1003
  }
987
1004
  _copy(e) {
988
1005
  this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
@@ -1021,7 +1038,7 @@ async function ve(n) {
1021
1038
  );
1022
1039
  const s = r.users[0];
1023
1040
  n._notifyReloadListener(s);
1024
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = yi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1041
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = wi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1025
1042
  uid: s.localId,
1026
1043
  displayName: s.displayName || null,
1027
1044
  photoURL: s.photoUrl || null,
@@ -1035,11 +1052,11 @@ async function ve(n) {
1035
1052
  };
1036
1053
  Object.assign(n, m);
1037
1054
  }
1038
- async function Ii(n) {
1039
- const e = Y(n);
1055
+ async function yi(n) {
1056
+ const e = X(n);
1040
1057
  await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1041
1058
  }
1042
- function yi(n, e) {
1059
+ function wi(n, e) {
1043
1060
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1044
1061
  }
1045
1062
  function Ut(n) {
@@ -1071,7 +1088,7 @@ function Ut(n) {
1071
1088
  * See the License for the specific language governing permissions and
1072
1089
  * limitations under the License.
1073
1090
  */
1074
- async function wi(n, e) {
1091
+ async function Ti(n, e) {
1075
1092
  const t = await Nt(n, {}, async () => {
1076
1093
  const i = oe({
1077
1094
  grant_type: "refresh_token",
@@ -1092,8 +1109,8 @@ async function wi(n, e) {
1092
1109
  refreshToken: t.refresh_token
1093
1110
  };
1094
1111
  }
1095
- async function Ti(n, e) {
1096
- return X(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1112
+ async function ki(n, e) {
1113
+ return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1097
1114
  }
1098
1115
  /**
1099
1116
  * @license
@@ -1156,7 +1173,7 @@ class q {
1156
1173
  this.refreshToken = null;
1157
1174
  }
1158
1175
  async refresh(e, t) {
1159
- const { accessToken: i, refreshToken: r, expiresIn: s } = await wi(e, t);
1176
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await Ti(e, t);
1160
1177
  this.updateTokensAndExpiration(i, r, Number(s));
1161
1178
  }
1162
1179
  updateTokensAndExpiration(e, t, i) {
@@ -1205,13 +1222,13 @@ class q {
1205
1222
  * See the License for the specific language governing permissions and
1206
1223
  * limitations under the License.
1207
1224
  */
1208
- function U(n, e) {
1225
+ function D(n, e) {
1209
1226
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
1210
1227
  }
1211
1228
  class C {
1212
1229
  constructor(e) {
1213
1230
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
1214
- this.providerId = "firebase", this.proactiveRefresh = new vi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1231
+ this.providerId = "firebase", this.proactiveRefresh = new Ii(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1215
1232
  }
1216
1233
  async getIdToken(e) {
1217
1234
  const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1223,10 +1240,10 @@ class C {
1223
1240
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1224
1241
  }
1225
1242
  getIdTokenResult(e) {
1226
- return gi(this, e);
1243
+ return _i(this, e);
1227
1244
  }
1228
1245
  reload() {
1229
- return Ii(this);
1246
+ return yi(this);
1230
1247
  }
1231
1248
  _assign(e) {
1232
1249
  this !== e && (u(
@@ -1263,9 +1280,9 @@ class C {
1263
1280
  }
1264
1281
  async delete() {
1265
1282
  if (A(this.auth.app))
1266
- return Promise.reject($(this.auth));
1283
+ return Promise.reject(H(this.auth));
1267
1284
  const e = await this.getIdToken();
1268
- return await re(this, mi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1285
+ return await re(this, gi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1269
1286
  }
1270
1287
  toJSON() {
1271
1288
  return Object.assign(Object.assign({
@@ -1293,7 +1310,7 @@ class C {
1293
1310
  }
1294
1311
  static _fromJSON(e, t) {
1295
1312
  var i, r, s, o, c, a, l, d;
1296
- const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, f = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, _ = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, h = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1313
+ const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, y = (r = t.email) !== null && r !== void 0 ? r : void 0, T = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, h = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, f = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, v = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1297
1314
  u(
1298
1315
  k && Ye,
1299
1316
  e,
@@ -1306,7 +1323,7 @@ class C {
1306
1323
  e,
1307
1324
  "internal-error"
1308
1325
  /* AuthErrorCode.INTERNAL_ERROR */
1309
- ), U(m, e.name), U(f, e.name), u(
1326
+ ), D(m, e.name), D(y, e.name), u(
1310
1327
  typeof Ke == "boolean",
1311
1328
  e,
1312
1329
  "internal-error"
@@ -1316,22 +1333,22 @@ class C {
1316
1333
  e,
1317
1334
  "internal-error"
1318
1335
  /* AuthErrorCode.INTERNAL_ERROR */
1319
- ), U(y, e.name), U(_, e.name), U(h, e.name), U(I, e.name), U(T, e.name), U(M, e.name);
1336
+ ), D(T, e.name), D(h, e.name), D(f, e.name), D(g, e.name), D(v, e.name), D(M, e.name);
1320
1337
  const Ae = new C({
1321
1338
  uid: k,
1322
1339
  auth: e,
1323
- email: f,
1340
+ email: y,
1324
1341
  emailVerified: Ke,
1325
1342
  displayName: m,
1326
1343
  isAnonymous: Je,
1327
- photoURL: _,
1328
- phoneNumber: y,
1329
- tenantId: h,
1344
+ photoURL: h,
1345
+ phoneNumber: T,
1346
+ tenantId: f,
1330
1347
  stsTokenManager: on,
1331
- createdAt: T,
1348
+ createdAt: v,
1332
1349
  lastLoginAt: M
1333
1350
  });
1334
- return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), I && (Ae._redirectEventId = I), Ae;
1351
+ return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), g && (Ae._redirectEventId = g), Ae;
1335
1352
  }
1336
1353
  /**
1337
1354
  * Initialize a User from an idToken server response
@@ -1555,7 +1572,7 @@ function ot(n) {
1555
1572
  return "Silk";
1556
1573
  if (Ht(e))
1557
1574
  return "Blackberry";
1558
- if (jt(e))
1575
+ if (Wt(e))
1559
1576
  return "Webos";
1560
1577
  if (Be(e))
1561
1578
  return "Safari";
@@ -1589,23 +1606,23 @@ function $t(n = w()) {
1589
1606
  function Ht(n = w()) {
1590
1607
  return /blackberry/i.test(n);
1591
1608
  }
1592
- function jt(n = w()) {
1609
+ function Wt(n = w()) {
1593
1610
  return /webos/i.test(n);
1594
1611
  }
1595
1612
  function ke(n = w()) {
1596
1613
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1597
1614
  }
1598
- function ki(n = w()) {
1615
+ function bi(n = w()) {
1599
1616
  var e;
1600
1617
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1601
1618
  }
1602
- function bi() {
1603
- return On() && document.documentMode === 10;
1619
+ function Ei() {
1620
+ return Ln() && document.documentMode === 10;
1604
1621
  }
1605
- function Wt(n = w()) {
1606
- return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1622
+ function jt(n = w()) {
1623
+ return ke(n) || $t(n) || Wt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1607
1624
  }
1608
- function Ei() {
1625
+ function Si() {
1609
1626
  try {
1610
1627
  return !!(window && window !== window.top);
1611
1628
  } catch {
@@ -1659,7 +1676,7 @@ function Bt(n, e = []) {
1659
1676
  * See the License for the specific language governing permissions and
1660
1677
  * limitations under the License.
1661
1678
  */
1662
- class Si {
1679
+ class Ri {
1663
1680
  constructor(e) {
1664
1681
  this.auth = e, this.queue = [];
1665
1682
  }
@@ -1714,8 +1731,8 @@ class Si {
1714
1731
  * See the License for the specific language governing permissions and
1715
1732
  * limitations under the License.
1716
1733
  */
1717
- async function Ri(n, e = {}) {
1718
- return X(n, "GET", "/v2/passwordPolicy", Te(n, e));
1734
+ async function Ai(n, e = {}) {
1735
+ return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
1719
1736
  }
1720
1737
  /**
1721
1738
  * @license
@@ -1733,12 +1750,12 @@ async function Ri(n, e = {}) {
1733
1750
  * See the License for the specific language governing permissions and
1734
1751
  * limitations under the License.
1735
1752
  */
1736
- const Ai = 6;
1737
- class Pi {
1753
+ const Pi = 6;
1754
+ class Ci {
1738
1755
  constructor(e) {
1739
1756
  var t, i, r, s;
1740
1757
  const o = e.customStrengthOptions;
1741
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ai, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1758
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Pi, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1742
1759
  }
1743
1760
  validatePassword(e) {
1744
1761
  var t, i, r, s, o, c;
@@ -1821,9 +1838,9 @@ class Pi {
1821
1838
  * See the License for the specific language governing permissions and
1822
1839
  * limitations under the License.
1823
1840
  */
1824
- class Ci {
1841
+ class Ni {
1825
1842
  constructor(e, t, i, r) {
1826
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Si(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1843
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Ri(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1827
1844
  }
1828
1845
  _initializeWithPersistence(e, t) {
1829
1846
  return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
@@ -1917,15 +1934,15 @@ class Ci {
1917
1934
  return this.directlySetCurrentUser(e);
1918
1935
  }
1919
1936
  useDeviceLanguage() {
1920
- this.languageCode = di();
1937
+ this.languageCode = hi();
1921
1938
  }
1922
1939
  async _delete() {
1923
1940
  this._deleted = !0;
1924
1941
  }
1925
1942
  async updateCurrentUser(e) {
1926
1943
  if (A(this.app))
1927
- return Promise.reject($(this));
1928
- const t = e ? Y(e) : null;
1944
+ return Promise.reject(H(this));
1945
+ const t = e ? X(e) : null;
1929
1946
  return t && u(
1930
1947
  t.auth.config.apiKey === this.config.apiKey,
1931
1948
  this,
@@ -1945,14 +1962,14 @@ class Ci {
1945
1962
  });
1946
1963
  }
1947
1964
  async signOut() {
1948
- return A(this.app) ? Promise.reject($(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1965
+ return A(this.app) ? Promise.reject(H(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1949
1966
  null,
1950
1967
  /* skipBeforeStateCallbacks */
1951
1968
  !0
1952
1969
  ));
1953
1970
  }
1954
1971
  setPersistence(e) {
1955
- return A(this.app) ? Promise.reject($(this)) : this.queue(async () => {
1972
+ return A(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
1956
1973
  await this.assertedPersistence.setPersistence(N(e));
1957
1974
  });
1958
1975
  }
@@ -1968,7 +1985,7 @@ class Ci {
1968
1985
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1969
1986
  }
1970
1987
  async _updatePasswordPolicy() {
1971
- const e = await Ri(this), t = new Pi(e);
1988
+ const e = await Ai(this), t = new Ci(e);
1972
1989
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1973
1990
  }
1974
1991
  _getPersistence() {
@@ -2008,7 +2025,7 @@ class Ci {
2008
2025
  token: e,
2009
2026
  idToken: t
2010
2027
  };
2011
- this.tenantId != null && (i.tenantId = this.tenantId), await Ti(this, i);
2028
+ this.tenantId != null && (i.tenantId = this.tenantId), await ki(this, i);
2012
2029
  }
2013
2030
  }
2014
2031
  toJSON() {
@@ -2151,15 +2168,15 @@ class Ci {
2151
2168
  async _getAppCheckToken() {
2152
2169
  var e;
2153
2170
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2154
- return t != null && t.error && ci(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2171
+ return t != null && t.error && li(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2155
2172
  }
2156
2173
  }
2157
2174
  function be(n) {
2158
- return Y(n);
2175
+ return X(n);
2159
2176
  }
2160
2177
  class at {
2161
2178
  constructor(e) {
2162
- this.auth = e, this.observer = null, this.addObserver = Rn((t) => this.observer = t);
2179
+ this.auth = e, this.observer = null, this.addObserver = An((t) => this.observer = t);
2163
2180
  }
2164
2181
  get next() {
2165
2182
  return u(
@@ -2194,16 +2211,16 @@ let Ge = {
2194
2211
  recaptchaEnterpriseScript: "",
2195
2212
  gapiScript: ""
2196
2213
  };
2197
- function Ni(n) {
2214
+ function Oi(n) {
2198
2215
  Ge = n;
2199
2216
  }
2200
- function Oi(n) {
2217
+ function Li(n) {
2201
2218
  return Ge.loadJS(n);
2202
2219
  }
2203
- function Li() {
2220
+ function Mi() {
2204
2221
  return Ge.gapiScript;
2205
2222
  }
2206
- function Mi(n) {
2223
+ function Ui(n) {
2207
2224
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2208
2225
  }
2209
2226
  /**
@@ -2222,11 +2239,11 @@ function Mi(n) {
2222
2239
  * See the License for the specific language governing permissions and
2223
2240
  * limitations under the License.
2224
2241
  */
2225
- function Ui(n, e) {
2242
+ function Di(n, e) {
2226
2243
  const t = bt(n, "auth");
2227
2244
  if (t.isInitialized()) {
2228
2245
  const r = t.getImmediate(), s = t.getOptions();
2229
- if (Cn(s, e ?? {}))
2246
+ if (Nn(s, e ?? {}))
2230
2247
  return r;
2231
2248
  O(
2232
2249
  r,
@@ -2236,11 +2253,11 @@ function Ui(n, e) {
2236
2253
  }
2237
2254
  return t.initialize({ options: e });
2238
2255
  }
2239
- function Di(n, e) {
2256
+ function xi(n, e) {
2240
2257
  const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2241
2258
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2242
2259
  }
2243
- function xi(n, e, t) {
2260
+ function Fi(n, e, t) {
2244
2261
  const i = be(n);
2245
2262
  u(
2246
2263
  i._canInitEmulator,
@@ -2253,19 +2270,19 @@ function xi(n, e, t) {
2253
2270
  "invalid-emulator-scheme"
2254
2271
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2255
2272
  );
2256
- const r = !1, s = Gt(e), { host: o, port: c } = Fi(e), a = c === null ? "" : `:${c}`;
2273
+ const r = !1, s = Gt(e), { host: o, port: c } = Vi(e), a = c === null ? "" : `:${c}`;
2257
2274
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2258
2275
  host: o,
2259
2276
  port: c,
2260
2277
  protocol: s.replace(":", ""),
2261
2278
  options: Object.freeze({ disableWarnings: r })
2262
- }), Vi();
2279
+ }), $i();
2263
2280
  }
2264
2281
  function Gt(n) {
2265
2282
  const e = n.indexOf(":");
2266
2283
  return e < 0 ? "" : n.substr(0, e + 1);
2267
2284
  }
2268
- function Fi(n) {
2285
+ function Vi(n) {
2269
2286
  const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2270
2287
  if (!t)
2271
2288
  return { host: "", port: null };
@@ -2284,7 +2301,7 @@ function ct(n) {
2284
2301
  const e = Number(n);
2285
2302
  return isNaN(e) ? null : e;
2286
2303
  }
2287
- function Vi() {
2304
+ function $i() {
2288
2305
  function n() {
2289
2306
  const e = document.createElement("p"), t = e.style;
2290
2307
  e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
@@ -2368,14 +2385,14 @@ async function J(n, e) {
2368
2385
  * See the License for the specific language governing permissions and
2369
2386
  * limitations under the License.
2370
2387
  */
2371
- const $i = "http://localhost";
2372
- class W extends zt {
2388
+ const Hi = "http://localhost";
2389
+ class B extends zt {
2373
2390
  constructor() {
2374
2391
  super(...arguments), this.pendingToken = null;
2375
2392
  }
2376
2393
  /** @internal */
2377
2394
  static _fromParams(e) {
2378
- const t = new W(e.providerId, e.signInMethod);
2395
+ const t = new B(e.providerId, e.signInMethod);
2379
2396
  return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : O(
2380
2397
  "argument-error"
2381
2398
  /* AuthErrorCode.ARGUMENT_ERROR */
@@ -2406,7 +2423,7 @@ class W extends zt {
2406
2423
  const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
2407
2424
  if (!i || !r)
2408
2425
  return null;
2409
- const o = new W(i, r);
2426
+ const o = new B(i, r);
2410
2427
  return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
2411
2428
  }
2412
2429
  /** @internal */
@@ -2426,7 +2443,7 @@ class W extends zt {
2426
2443
  }
2427
2444
  buildRequest() {
2428
2445
  const e = {
2429
- requestUri: $i,
2446
+ requestUri: Hi,
2430
2447
  returnSecureToken: !0
2431
2448
  };
2432
2449
  if (this.pendingToken)
@@ -2542,7 +2559,7 @@ class ce extends qt {
2542
2559
  * See the License for the specific language governing permissions and
2543
2560
  * limitations under the License.
2544
2561
  */
2545
- class D extends ce {
2562
+ class x extends ce {
2546
2563
  constructor() {
2547
2564
  super(
2548
2565
  "facebook.com"
@@ -2562,9 +2579,9 @@ class D extends ce {
2562
2579
  * @param accessToken - Facebook access token.
2563
2580
  */
2564
2581
  static credential(e) {
2565
- return W._fromParams({
2566
- providerId: D.PROVIDER_ID,
2567
- signInMethod: D.FACEBOOK_SIGN_IN_METHOD,
2582
+ return B._fromParams({
2583
+ providerId: x.PROVIDER_ID,
2584
+ signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
2568
2585
  accessToken: e
2569
2586
  });
2570
2587
  }
@@ -2574,7 +2591,7 @@ class D extends ce {
2574
2591
  * @param userCredential - The user credential.
2575
2592
  */
2576
2593
  static credentialFromResult(e) {
2577
- return D.credentialFromTaggedObject(e);
2594
+ return x.credentialFromTaggedObject(e);
2578
2595
  }
2579
2596
  /**
2580
2597
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2583,20 +2600,20 @@ class D extends ce {
2583
2600
  * @param userCredential - The user credential.
2584
2601
  */
2585
2602
  static credentialFromError(e) {
2586
- return D.credentialFromTaggedObject(e.customData || {});
2603
+ return x.credentialFromTaggedObject(e.customData || {});
2587
2604
  }
2588
2605
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2589
2606
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2590
2607
  return null;
2591
2608
  try {
2592
- return D.credential(e.oauthAccessToken);
2609
+ return x.credential(e.oauthAccessToken);
2593
2610
  } catch {
2594
2611
  return null;
2595
2612
  }
2596
2613
  }
2597
2614
  }
2598
- D.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
2599
- D.PROVIDER_ID = "facebook.com";
2615
+ x.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
2616
+ x.PROVIDER_ID = "facebook.com";
2600
2617
  /**
2601
2618
  * @license
2602
2619
  * Copyright 2020 Google LLC
@@ -2613,7 +2630,7 @@ D.PROVIDER_ID = "facebook.com";
2613
2630
  * See the License for the specific language governing permissions and
2614
2631
  * limitations under the License.
2615
2632
  */
2616
- class x extends ce {
2633
+ class F extends ce {
2617
2634
  constructor() {
2618
2635
  super(
2619
2636
  "google.com"
@@ -2634,9 +2651,9 @@ class x extends ce {
2634
2651
  * @param accessToken - Google access token.
2635
2652
  */
2636
2653
  static credential(e, t) {
2637
- return W._fromParams({
2638
- providerId: x.PROVIDER_ID,
2639
- signInMethod: x.GOOGLE_SIGN_IN_METHOD,
2654
+ return B._fromParams({
2655
+ providerId: F.PROVIDER_ID,
2656
+ signInMethod: F.GOOGLE_SIGN_IN_METHOD,
2640
2657
  idToken: e,
2641
2658
  accessToken: t
2642
2659
  });
@@ -2647,7 +2664,7 @@ class x extends ce {
2647
2664
  * @param userCredential - The user credential.
2648
2665
  */
2649
2666
  static credentialFromResult(e) {
2650
- return x.credentialFromTaggedObject(e);
2667
+ return F.credentialFromTaggedObject(e);
2651
2668
  }
2652
2669
  /**
2653
2670
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2656,7 +2673,7 @@ class x extends ce {
2656
2673
  * @param userCredential - The user credential.
2657
2674
  */
2658
2675
  static credentialFromError(e) {
2659
- return x.credentialFromTaggedObject(e.customData || {});
2676
+ return F.credentialFromTaggedObject(e.customData || {});
2660
2677
  }
2661
2678
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2662
2679
  if (!e)
@@ -2665,14 +2682,14 @@ class x extends ce {
2665
2682
  if (!t && !i)
2666
2683
  return null;
2667
2684
  try {
2668
- return x.credential(t, i);
2685
+ return F.credential(t, i);
2669
2686
  } catch {
2670
2687
  return null;
2671
2688
  }
2672
2689
  }
2673
2690
  }
2674
- x.GOOGLE_SIGN_IN_METHOD = "google.com";
2675
- x.PROVIDER_ID = "google.com";
2691
+ F.GOOGLE_SIGN_IN_METHOD = "google.com";
2692
+ F.PROVIDER_ID = "google.com";
2676
2693
  /**
2677
2694
  * @license
2678
2695
  * Copyright 2020 Google LLC
@@ -2689,7 +2706,7 @@ x.PROVIDER_ID = "google.com";
2689
2706
  * See the License for the specific language governing permissions and
2690
2707
  * limitations under the License.
2691
2708
  */
2692
- class F extends ce {
2709
+ class V extends ce {
2693
2710
  constructor() {
2694
2711
  super(
2695
2712
  "github.com"
@@ -2702,9 +2719,9 @@ class F extends ce {
2702
2719
  * @param accessToken - Github access token.
2703
2720
  */
2704
2721
  static credential(e) {
2705
- return W._fromParams({
2706
- providerId: F.PROVIDER_ID,
2707
- signInMethod: F.GITHUB_SIGN_IN_METHOD,
2722
+ return B._fromParams({
2723
+ providerId: V.PROVIDER_ID,
2724
+ signInMethod: V.GITHUB_SIGN_IN_METHOD,
2708
2725
  accessToken: e
2709
2726
  });
2710
2727
  }
@@ -2714,7 +2731,7 @@ class F extends ce {
2714
2731
  * @param userCredential - The user credential.
2715
2732
  */
2716
2733
  static credentialFromResult(e) {
2717
- return F.credentialFromTaggedObject(e);
2734
+ return V.credentialFromTaggedObject(e);
2718
2735
  }
2719
2736
  /**
2720
2737
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2723,20 +2740,20 @@ class F extends ce {
2723
2740
  * @param userCredential - The user credential.
2724
2741
  */
2725
2742
  static credentialFromError(e) {
2726
- return F.credentialFromTaggedObject(e.customData || {});
2743
+ return V.credentialFromTaggedObject(e.customData || {});
2727
2744
  }
2728
2745
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2729
2746
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2730
2747
  return null;
2731
2748
  try {
2732
- return F.credential(e.oauthAccessToken);
2749
+ return V.credential(e.oauthAccessToken);
2733
2750
  } catch {
2734
2751
  return null;
2735
2752
  }
2736
2753
  }
2737
2754
  }
2738
- F.GITHUB_SIGN_IN_METHOD = "github.com";
2739
- F.PROVIDER_ID = "github.com";
2755
+ V.GITHUB_SIGN_IN_METHOD = "github.com";
2756
+ V.PROVIDER_ID = "github.com";
2740
2757
  /**
2741
2758
  * @license
2742
2759
  * Copyright 2020 Google LLC
@@ -2753,7 +2770,7 @@ F.PROVIDER_ID = "github.com";
2753
2770
  * See the License for the specific language governing permissions and
2754
2771
  * limitations under the License.
2755
2772
  */
2756
- class V extends ce {
2773
+ class $ extends ce {
2757
2774
  constructor() {
2758
2775
  super(
2759
2776
  "twitter.com"
@@ -2767,9 +2784,9 @@ class V extends ce {
2767
2784
  * @param secret - Twitter secret.
2768
2785
  */
2769
2786
  static credential(e, t) {
2770
- return W._fromParams({
2771
- providerId: V.PROVIDER_ID,
2772
- signInMethod: V.TWITTER_SIGN_IN_METHOD,
2787
+ return B._fromParams({
2788
+ providerId: $.PROVIDER_ID,
2789
+ signInMethod: $.TWITTER_SIGN_IN_METHOD,
2773
2790
  oauthToken: e,
2774
2791
  oauthTokenSecret: t
2775
2792
  });
@@ -2780,7 +2797,7 @@ class V extends ce {
2780
2797
  * @param userCredential - The user credential.
2781
2798
  */
2782
2799
  static credentialFromResult(e) {
2783
- return V.credentialFromTaggedObject(e);
2800
+ return $.credentialFromTaggedObject(e);
2784
2801
  }
2785
2802
  /**
2786
2803
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2789,7 +2806,7 @@ class V extends ce {
2789
2806
  * @param userCredential - The user credential.
2790
2807
  */
2791
2808
  static credentialFromError(e) {
2792
- return V.credentialFromTaggedObject(e.customData || {});
2809
+ return $.credentialFromTaggedObject(e.customData || {});
2793
2810
  }
2794
2811
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2795
2812
  if (!e)
@@ -2798,14 +2815,14 @@ class V extends ce {
2798
2815
  if (!t || !i)
2799
2816
  return null;
2800
2817
  try {
2801
- return V.credential(t, i);
2818
+ return $.credential(t, i);
2802
2819
  } catch {
2803
2820
  return null;
2804
2821
  }
2805
2822
  }
2806
2823
  }
2807
- V.TWITTER_SIGN_IN_METHOD = "twitter.com";
2808
- V.PROVIDER_ID = "twitter.com";
2824
+ $.TWITTER_SIGN_IN_METHOD = "twitter.com";
2825
+ $.PROVIDER_ID = "twitter.com";
2809
2826
  /**
2810
2827
  * @license
2811
2828
  * Copyright 2020 Google LLC
@@ -2822,13 +2839,13 @@ V.PROVIDER_ID = "twitter.com";
2822
2839
  * See the License for the specific language governing permissions and
2823
2840
  * limitations under the License.
2824
2841
  */
2825
- class B {
2842
+ class G {
2826
2843
  constructor(e) {
2827
2844
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2828
2845
  }
2829
2846
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2830
2847
  const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
2831
- return new B({
2848
+ return new G({
2832
2849
  user: s,
2833
2850
  providerId: o,
2834
2851
  _tokenResponse: i,
@@ -2842,7 +2859,7 @@ class B {
2842
2859
  !0
2843
2860
  );
2844
2861
  const r = lt(i);
2845
- return new B({
2862
+ return new G({
2846
2863
  user: e,
2847
2864
  providerId: r,
2848
2865
  _tokenResponse: i,
@@ -2888,9 +2905,9 @@ function Kt(n, e, t, i) {
2888
2905
  throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
2889
2906
  });
2890
2907
  }
2891
- async function Hi(n, e, t = !1) {
2908
+ async function Wi(n, e, t = !1) {
2892
2909
  const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2893
- return B._forOperation(n, "link", i);
2910
+ return G._forOperation(n, "link", i);
2894
2911
  }
2895
2912
  /**
2896
2913
  * @license
@@ -2911,7 +2928,7 @@ async function Hi(n, e, t = !1) {
2911
2928
  async function ji(n, e, t = !1) {
2912
2929
  const { auth: i } = n;
2913
2930
  if (A(i.app))
2914
- return Promise.reject($(i));
2931
+ return Promise.reject(H(i));
2915
2932
  const r = "reauthenticate";
2916
2933
  try {
2917
2934
  const s = await re(n, Kt(i, r, e, n), t);
@@ -2921,7 +2938,7 @@ async function ji(n, e, t = !1) {
2921
2938
  "internal-error"
2922
2939
  /* AuthErrorCode.INTERNAL_ERROR */
2923
2940
  );
2924
- const o = We(s.idToken);
2941
+ const o = je(s.idToken);
2925
2942
  u(
2926
2943
  o,
2927
2944
  i,
@@ -2934,7 +2951,7 @@ async function ji(n, e, t = !1) {
2934
2951
  i,
2935
2952
  "user-mismatch"
2936
2953
  /* AuthErrorCode.USER_MISMATCH */
2937
- ), B._forOperation(n, r, s);
2954
+ ), G._forOperation(n, r, s);
2938
2955
  } catch (s) {
2939
2956
  throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
2940
2957
  i,
@@ -2959,10 +2976,10 @@ async function ji(n, e, t = !1) {
2959
2976
  * See the License for the specific language governing permissions and
2960
2977
  * limitations under the License.
2961
2978
  */
2962
- async function Wi(n, e, t = !1) {
2979
+ async function Bi(n, e, t = !1) {
2963
2980
  if (A(n.app))
2964
- return Promise.reject($(n));
2965
- const i = "signIn", r = await Kt(n, i, e), s = await B._fromIdTokenResponse(n, i, r);
2981
+ return Promise.reject(H(n));
2982
+ const i = "signIn", r = await Kt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
2966
2983
  return t || await n._updateCurrentUser(s.user), s;
2967
2984
  }
2968
2985
  /**
@@ -2981,7 +2998,7 @@ async function Wi(n, e, t = !1) {
2981
2998
  * See the License for the specific language governing permissions and
2982
2999
  * limitations under the License.
2983
3000
  */
2984
- async function Bi(n, e) {
3001
+ async function Gi(n, e) {
2985
3002
  return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
2986
3003
  }
2987
3004
  /**
@@ -3000,20 +3017,20 @@ async function Bi(n, e) {
3000
3017
  * See the License for the specific language governing permissions and
3001
3018
  * limitations under the License.
3002
3019
  */
3003
- async function Gi(n, e) {
3020
+ async function zi(n, e) {
3004
3021
  if (A(n.app))
3005
- return Promise.reject($(n));
3006
- const t = be(n), i = await Bi(t, {
3022
+ return Promise.reject(H(n));
3023
+ const t = be(n), i = await Gi(t, {
3007
3024
  token: e,
3008
3025
  returnSecureToken: !0
3009
- }), r = await B._fromIdTokenResponse(t, "signIn", i);
3026
+ }), r = await G._fromIdTokenResponse(t, "signIn", i);
3010
3027
  return await t._updateCurrentUser(r.user), r;
3011
3028
  }
3012
- function zi(n, e, t, i) {
3013
- return Y(n).onIdTokenChanged(e, t, i);
3029
+ function qi(n, e, t, i) {
3030
+ return X(n).onIdTokenChanged(e, t, i);
3014
3031
  }
3015
- function qi(n, e, t) {
3016
- return Y(n).beforeAuthStateChanged(e, t);
3032
+ function Ki(n, e, t) {
3033
+ return X(n).beforeAuthStateChanged(e, t);
3017
3034
  }
3018
3035
  const ye = "__sak";
3019
3036
  /**
@@ -3073,18 +3090,18 @@ class Jt {
3073
3090
  * See the License for the specific language governing permissions and
3074
3091
  * limitations under the License.
3075
3092
  */
3076
- function Ki() {
3093
+ function Ji() {
3077
3094
  const n = w();
3078
3095
  return Be(n) || ke(n);
3079
3096
  }
3080
- const Ji = 1e3, Yi = 10;
3097
+ const Yi = 1e3, Xi = 10;
3081
3098
  class Yt extends Jt {
3082
3099
  constructor() {
3083
3100
  super(
3084
3101
  () => window.localStorage,
3085
3102
  "LOCAL"
3086
3103
  /* PersistenceType.LOCAL */
3087
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ki() && Ei(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3104
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ji() && Si(), this.fallbackToPolling = jt(), this._shouldAllowMigration = !0;
3088
3105
  }
3089
3106
  forAllChangedKeys(e) {
3090
3107
  for (const t of Object.keys(this.listeners)) {
@@ -3111,7 +3128,7 @@ class Yt extends Jt {
3111
3128
  const o = this.storage.getItem(i);
3112
3129
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3113
3130
  }, s = this.storage.getItem(i);
3114
- bi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Yi) : r();
3131
+ Ei() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Xi) : r();
3115
3132
  }
3116
3133
  notifyListeners(e, t) {
3117
3134
  this.localCache[e] = t;
@@ -3133,7 +3150,7 @@ class Yt extends Jt {
3133
3150
  !0
3134
3151
  );
3135
3152
  });
3136
- }, Ji);
3153
+ }, Yi);
3137
3154
  }
3138
3155
  stopPolling() {
3139
3156
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3163,7 +3180,7 @@ class Yt extends Jt {
3163
3180
  }
3164
3181
  }
3165
3182
  Yt.type = "LOCAL";
3166
- const Xi = Yt;
3183
+ const Qi = Yt;
3167
3184
  /**
3168
3185
  * @license
3169
3186
  * Copyright 2020 Google LLC
@@ -3211,7 +3228,7 @@ const Qt = Xt;
3211
3228
  * See the License for the specific language governing permissions and
3212
3229
  * limitations under the License.
3213
3230
  */
3214
- function Qi(n) {
3231
+ function Zi(n) {
3215
3232
  return Promise.all(n.map(async (e) => {
3216
3233
  try {
3217
3234
  return {
@@ -3281,7 +3298,7 @@ class Ee {
3281
3298
  eventId: i,
3282
3299
  eventType: r
3283
3300
  });
3284
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Qi(c);
3301
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Zi(c);
3285
3302
  t.ports[0].postMessage({
3286
3303
  status: "done",
3287
3304
  eventId: i,
@@ -3349,7 +3366,7 @@ function ze(n = "", e = 10) {
3349
3366
  * See the License for the specific language governing permissions and
3350
3367
  * limitations under the License.
3351
3368
  */
3352
- class Zi {
3369
+ class er {
3353
3370
  constructor(e) {
3354
3371
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3355
3372
  }
@@ -3394,9 +3411,9 @@ class Zi {
3394
3411
  o = {
3395
3412
  messageChannel: r,
3396
3413
  onMessage(m) {
3397
- const f = m;
3398
- if (f.data.eventId === l)
3399
- switch (f.data.status) {
3414
+ const y = m;
3415
+ if (y.data.eventId === l)
3416
+ switch (y.data.status) {
3400
3417
  case "ack":
3401
3418
  clearTimeout(d), s = setTimeout(
3402
3419
  () => {
@@ -3410,7 +3427,7 @@ class Zi {
3410
3427
  );
3411
3428
  break;
3412
3429
  case "done":
3413
- clearTimeout(s), c(f.data.response);
3430
+ clearTimeout(s), c(y.data.response);
3414
3431
  break;
3415
3432
  default:
3416
3433
  clearTimeout(d), clearTimeout(s), a(new Error(
@@ -3449,7 +3466,7 @@ class Zi {
3449
3466
  function E() {
3450
3467
  return window;
3451
3468
  }
3452
- function er(n) {
3469
+ function tr(n) {
3453
3470
  E().location.href = n;
3454
3471
  }
3455
3472
  /**
@@ -3471,7 +3488,7 @@ function er(n) {
3471
3488
  function Zt() {
3472
3489
  return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3473
3490
  }
3474
- async function tr() {
3491
+ async function nr() {
3475
3492
  if (!(navigator != null && navigator.serviceWorker))
3476
3493
  return null;
3477
3494
  try {
@@ -3480,11 +3497,11 @@ async function tr() {
3480
3497
  return null;
3481
3498
  }
3482
3499
  }
3483
- function nr() {
3500
+ function ir() {
3484
3501
  var n;
3485
3502
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3486
3503
  }
3487
- function ir() {
3504
+ function rr() {
3488
3505
  return Zt() ? self : null;
3489
3506
  }
3490
3507
  /**
@@ -3503,7 +3520,7 @@ function ir() {
3503
3520
  * See the License for the specific language governing permissions and
3504
3521
  * limitations under the License.
3505
3522
  */
3506
- const en = "firebaseLocalStorageDb", rr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3523
+ const en = "firebaseLocalStorageDb", sr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3507
3524
  class le {
3508
3525
  constructor(e) {
3509
3526
  this.request = e;
@@ -3521,12 +3538,12 @@ class le {
3521
3538
  function Se(n, e) {
3522
3539
  return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3523
3540
  }
3524
- function sr() {
3541
+ function or() {
3525
3542
  const n = indexedDB.deleteDatabase(en);
3526
3543
  return new le(n).toPromise();
3527
3544
  }
3528
3545
  function De() {
3529
- const n = indexedDB.open(en, rr);
3546
+ const n = indexedDB.open(en, sr);
3530
3547
  return new Promise((e, t) => {
3531
3548
  n.addEventListener("error", () => {
3532
3549
  t(n.error);
@@ -3539,7 +3556,7 @@ function De() {
3539
3556
  }
3540
3557
  }), n.addEventListener("success", async () => {
3541
3558
  const i = n.result;
3542
- i.objectStoreNames.contains(we) ? e(i) : (i.close(), await sr(), e(await De()));
3559
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await or(), e(await De()));
3543
3560
  });
3544
3561
  });
3545
3562
  }
@@ -3550,7 +3567,7 @@ async function ut(n, e, t) {
3550
3567
  });
3551
3568
  return new le(i).toPromise();
3552
3569
  }
3553
- async function or(n, e) {
3570
+ async function ar(n, e) {
3554
3571
  const t = Se(n, !1).get(e), i = await new le(t).toPromise();
3555
3572
  return i === void 0 ? null : i.value;
3556
3573
  }
@@ -3558,7 +3575,7 @@ function dt(n, e) {
3558
3575
  const t = Se(n, !0).delete(e);
3559
3576
  return new le(t).toPromise();
3560
3577
  }
3561
- const ar = 800, cr = 3;
3578
+ const cr = 800, lr = 3;
3562
3579
  class nn {
3563
3580
  constructor() {
3564
3581
  this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
@@ -3575,7 +3592,7 @@ class nn {
3575
3592
  const i = await this._openDb();
3576
3593
  return await e(i);
3577
3594
  } catch (i) {
3578
- if (t++ > cr)
3595
+ if (t++ > lr)
3579
3596
  throw i;
3580
3597
  this.db && (this.db.close(), this.db = void 0);
3581
3598
  }
@@ -3591,7 +3608,7 @@ class nn {
3591
3608
  * As the worker we should listen to events from the main window.
3592
3609
  */
3593
3610
  async initializeReceiver() {
3594
- this.receiver = Ee._getInstance(ir()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3611
+ this.receiver = Ee._getInstance(rr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3595
3612
  keyProcessed: (await this._poll()).includes(t.key)
3596
3613
  })), this.receiver._subscribe("ping", async (e, t) => [
3597
3614
  "keyChanged"
@@ -3607,9 +3624,9 @@ class nn {
3607
3624
  */
3608
3625
  async initializeSender() {
3609
3626
  var e, t;
3610
- if (this.activeServiceWorker = await tr(), !this.activeServiceWorker)
3627
+ if (this.activeServiceWorker = await nr(), !this.activeServiceWorker)
3611
3628
  return;
3612
- this.sender = new Zi(this.activeServiceWorker);
3629
+ this.sender = new er(this.activeServiceWorker);
3613
3630
  const i = await this.sender._send(
3614
3631
  "ping",
3615
3632
  {},
@@ -3631,7 +3648,7 @@ class nn {
3631
3648
  * @param key - Storage key which changed.
3632
3649
  */
3633
3650
  async notifyServiceWorker(e) {
3634
- if (!(!this.sender || !this.activeServiceWorker || nr() !== this.activeServiceWorker))
3651
+ if (!(!this.sender || !this.activeServiceWorker || ir() !== this.activeServiceWorker))
3635
3652
  try {
3636
3653
  await this.sender._send(
3637
3654
  "keyChanged",
@@ -3665,7 +3682,7 @@ class nn {
3665
3682
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3666
3683
  }
3667
3684
  async _get(e) {
3668
- const t = await this._withRetries((i) => or(i, e));
3685
+ const t = await this._withRetries((i) => ar(i, e));
3669
3686
  return this.localCache[e] = t, t;
3670
3687
  }
3671
3688
  async _remove(e) {
@@ -3696,7 +3713,7 @@ class nn {
3696
3713
  r(t);
3697
3714
  }
3698
3715
  startPolling() {
3699
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), ar);
3716
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), cr);
3700
3717
  }
3701
3718
  stopPolling() {
3702
3719
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3709,7 +3726,7 @@ class nn {
3709
3726
  }
3710
3727
  }
3711
3728
  nn.type = "LOCAL";
3712
- const lr = nn;
3729
+ const ur = nn;
3713
3730
  new ae(3e4, 6e4);
3714
3731
  /**
3715
3732
  * @license
@@ -3727,7 +3744,7 @@ new ae(3e4, 6e4);
3727
3744
  * See the License for the specific language governing permissions and
3728
3745
  * limitations under the License.
3729
3746
  */
3730
- function ur(n, e) {
3747
+ function dr(n, e) {
3731
3748
  return e ? N(e) : (u(
3732
3749
  n._popupRedirectResolver,
3733
3750
  n,
@@ -3781,10 +3798,10 @@ class qe extends zt {
3781
3798
  return e && (t.idToken = e), t;
3782
3799
  }
3783
3800
  }
3784
- function dr(n) {
3785
- return Wi(n.auth, new qe(n), n.bypassAuthState);
3786
- }
3787
3801
  function hr(n) {
3802
+ return Bi(n.auth, new qe(n), n.bypassAuthState);
3803
+ }
3804
+ function fr(n) {
3788
3805
  const { auth: e, user: t } = n;
3789
3806
  return u(
3790
3807
  t,
@@ -3793,14 +3810,14 @@ function hr(n) {
3793
3810
  /* AuthErrorCode.INTERNAL_ERROR */
3794
3811
  ), ji(t, new qe(n), n.bypassAuthState);
3795
3812
  }
3796
- async function fr(n) {
3813
+ async function pr(n) {
3797
3814
  const { auth: e, user: t } = n;
3798
3815
  return u(
3799
3816
  t,
3800
3817
  e,
3801
3818
  "internal-error"
3802
3819
  /* AuthErrorCode.INTERNAL_ERROR */
3803
- ), Hi(t, new qe(n), n.bypassAuthState);
3820
+ ), Wi(t, new qe(n), n.bypassAuthState);
3804
3821
  }
3805
3822
  /**
3806
3823
  * @license
@@ -3860,13 +3877,13 @@ class rn {
3860
3877
  switch (e) {
3861
3878
  case "signInViaPopup":
3862
3879
  case "signInViaRedirect":
3863
- return dr;
3880
+ return hr;
3864
3881
  case "linkViaPopup":
3865
3882
  case "linkViaRedirect":
3866
- return fr;
3883
+ return pr;
3867
3884
  case "reauthViaPopup":
3868
3885
  case "reauthViaRedirect":
3869
- return hr;
3886
+ return fr;
3870
3887
  default:
3871
3888
  O(
3872
3889
  this.auth,
@@ -3901,7 +3918,7 @@ class rn {
3901
3918
  * See the License for the specific language governing permissions and
3902
3919
  * limitations under the License.
3903
3920
  */
3904
- const pr = new ae(2e3, 1e4);
3921
+ const mr = new ae(2e3, 1e4);
3905
3922
  class z extends rn {
3906
3923
  constructor(e, t, i, r, s) {
3907
3924
  super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
@@ -3965,7 +3982,7 @@ class z extends rn {
3965
3982
  );
3966
3983
  return;
3967
3984
  }
3968
- this.pollId = window.setTimeout(e, pr.get());
3985
+ this.pollId = window.setTimeout(e, mr.get());
3969
3986
  };
3970
3987
  e();
3971
3988
  }
@@ -3987,8 +4004,8 @@ z.currentPopupAction = null;
3987
4004
  * See the License for the specific language governing permissions and
3988
4005
  * limitations under the License.
3989
4006
  */
3990
- const mr = "pendingRedirect", fe = /* @__PURE__ */ new Map();
3991
- class gr extends rn {
4007
+ const gr = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4008
+ class _r extends rn {
3992
4009
  constructor(e, t, i = !1) {
3993
4010
  super(e, [
3994
4011
  "signInViaRedirect",
@@ -4006,7 +4023,7 @@ class gr extends rn {
4006
4023
  let e = fe.get(this.auth._key());
4007
4024
  if (!e) {
4008
4025
  try {
4009
- const i = await _r(this.resolver, this.auth) ? await super.execute() : null;
4026
+ const i = await vr(this.resolver, this.auth) ? await super.execute() : null;
4010
4027
  e = () => Promise.resolve(i);
4011
4028
  } catch (t) {
4012
4029
  e = () => Promise.reject(t);
@@ -4034,26 +4051,26 @@ class gr extends rn {
4034
4051
  cleanUp() {
4035
4052
  }
4036
4053
  }
4037
- async function _r(n, e) {
4038
- const t = yr(e), i = Ir(n);
4054
+ async function vr(n, e) {
4055
+ const t = wr(e), i = yr(n);
4039
4056
  if (!await i._isAvailable())
4040
4057
  return !1;
4041
4058
  const r = await i._get(t) === "true";
4042
4059
  return await i._remove(t), r;
4043
4060
  }
4044
- function vr(n, e) {
4061
+ function Ir(n, e) {
4045
4062
  fe.set(n._key(), e);
4046
4063
  }
4047
- function Ir(n) {
4064
+ function yr(n) {
4048
4065
  return N(n._redirectPersistence);
4049
4066
  }
4050
- function yr(n) {
4051
- return he(mr, n.config.apiKey, n.name);
4067
+ function wr(n) {
4068
+ return he(gr, n.config.apiKey, n.name);
4052
4069
  }
4053
- async function wr(n, e, t = !1) {
4070
+ async function Tr(n, e, t = !1) {
4054
4071
  if (A(n.app))
4055
- return Promise.reject($(n));
4056
- const i = be(n), r = ur(i, e), o = await new gr(i, r, t).execute();
4072
+ return Promise.reject(H(n));
4073
+ const i = be(n), r = dr(i, e), o = await new _r(i, r, t).execute();
4057
4074
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4058
4075
  }
4059
4076
  /**
@@ -4072,8 +4089,8 @@ async function wr(n, e, t = !1) {
4072
4089
  * See the License for the specific language governing permissions and
4073
4090
  * limitations under the License.
4074
4091
  */
4075
- const Tr = 10 * 60 * 1e3;
4076
- class kr {
4092
+ const kr = 10 * 60 * 1e3;
4093
+ class br {
4077
4094
  constructor(e) {
4078
4095
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4079
4096
  }
@@ -4089,7 +4106,7 @@ class kr {
4089
4106
  let t = !1;
4090
4107
  return this.consumers.forEach((i) => {
4091
4108
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4092
- }), this.hasHandledPotentialRedirect || !br(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4109
+ }), this.hasHandledPotentialRedirect || !Er(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4093
4110
  }
4094
4111
  sendToConsumer(e, t) {
4095
4112
  var i;
@@ -4104,7 +4121,7 @@ class kr {
4104
4121
  return t.filter.includes(e.type) && i;
4105
4122
  }
4106
4123
  hasEventBeenHandled(e) {
4107
- return Date.now() - this.lastProcessedEventTime >= Tr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4124
+ return Date.now() - this.lastProcessedEventTime >= kr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4108
4125
  }
4109
4126
  saveEventToCache(e) {
4110
4127
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4116,7 +4133,7 @@ function ht(n) {
4116
4133
  function sn({ type: n, error: e }) {
4117
4134
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4118
4135
  }
4119
- function br(n) {
4136
+ function Er(n) {
4120
4137
  switch (n.type) {
4121
4138
  case "signInViaRedirect":
4122
4139
  case "linkViaRedirect":
@@ -4144,8 +4161,8 @@ function br(n) {
4144
4161
  * See the License for the specific language governing permissions and
4145
4162
  * limitations under the License.
4146
4163
  */
4147
- async function Er(n, e = {}) {
4148
- return X(n, "GET", "/v1/projects", e);
4164
+ async function Sr(n, e = {}) {
4165
+ return Q(n, "GET", "/v1/projects", e);
4149
4166
  }
4150
4167
  /**
4151
4168
  * @license
@@ -4163,14 +4180,14 @@ async function Er(n, e = {}) {
4163
4180
  * See the License for the specific language governing permissions and
4164
4181
  * limitations under the License.
4165
4182
  */
4166
- const Sr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Rr = /^https?/;
4167
- async function Ar(n) {
4183
+ const Rr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
4184
+ async function Pr(n) {
4168
4185
  if (n.config.emulator)
4169
4186
  return;
4170
- const { authorizedDomains: e } = await Er(n);
4187
+ const { authorizedDomains: e } = await Sr(n);
4171
4188
  for (const t of e)
4172
4189
  try {
4173
- if (Pr(t))
4190
+ if (Cr(t))
4174
4191
  return;
4175
4192
  } catch {
4176
4193
  }
@@ -4180,15 +4197,15 @@ async function Ar(n) {
4180
4197
  /* AuthErrorCode.INVALID_ORIGIN */
4181
4198
  );
4182
4199
  }
4183
- function Pr(n) {
4200
+ function Cr(n) {
4184
4201
  const e = Me(), { protocol: t, hostname: i } = new URL(e);
4185
4202
  if (n.startsWith("chrome-extension://")) {
4186
4203
  const o = new URL(n);
4187
4204
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4188
4205
  }
4189
- if (!Rr.test(t))
4206
+ if (!Ar.test(t))
4190
4207
  return !1;
4191
- if (Sr.test(n))
4208
+ if (Rr.test(n))
4192
4209
  return i === n;
4193
4210
  const r = n.replace(/\./g, "\\.");
4194
4211
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4209,7 +4226,7 @@ function Pr(n) {
4209
4226
  * See the License for the specific language governing permissions and
4210
4227
  * limitations under the License.
4211
4228
  */
4212
- const Cr = new ae(3e4, 6e4);
4229
+ const Nr = new ae(3e4, 6e4);
4213
4230
  function ft() {
4214
4231
  const n = E().___jsl;
4215
4232
  if (n != null && n.H) {
@@ -4219,7 +4236,7 @@ function ft() {
4219
4236
  n.CP[t] = null;
4220
4237
  }
4221
4238
  }
4222
- function Nr(n) {
4239
+ function Or(n) {
4223
4240
  return new Promise((e, t) => {
4224
4241
  var i, r, s;
4225
4242
  function o() {
@@ -4234,7 +4251,7 @@ function Nr(n) {
4234
4251
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4235
4252
  ));
4236
4253
  },
4237
- timeout: Cr.get()
4254
+ timeout: Nr.get()
4238
4255
  });
4239
4256
  }
4240
4257
  if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
@@ -4242,22 +4259,22 @@ function Nr(n) {
4242
4259
  else if (!((s = E().gapi) === null || s === void 0) && s.load)
4243
4260
  o();
4244
4261
  else {
4245
- const c = Mi("iframefcb");
4262
+ const c = Ui("iframefcb");
4246
4263
  return E()[c] = () => {
4247
4264
  gapi.load ? o() : t(b(
4248
4265
  n,
4249
4266
  "network-request-failed"
4250
4267
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4251
4268
  ));
4252
- }, Oi(`${Li()}?onload=${c}`).catch((a) => t(a));
4269
+ }, Li(`${Mi()}?onload=${c}`).catch((a) => t(a));
4253
4270
  }
4254
4271
  }).catch((e) => {
4255
4272
  throw pe = null, e;
4256
4273
  });
4257
4274
  }
4258
4275
  let pe = null;
4259
- function Or(n) {
4260
- return pe = pe || Nr(n), pe;
4276
+ function Lr(n) {
4277
+ return pe = pe || Or(n), pe;
4261
4278
  }
4262
4279
  /**
4263
4280
  * @license
@@ -4275,7 +4292,7 @@ function Or(n) {
4275
4292
  * See the License for the specific language governing permissions and
4276
4293
  * limitations under the License.
4277
4294
  */
4278
- const Lr = new ae(5e3, 15e3), Mr = "__/auth/iframe", Ur = "emulator/auth/iframe", Dr = {
4295
+ const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe", xr = {
4279
4296
  style: {
4280
4297
  position: "absolute",
4281
4298
  top: "-100px",
@@ -4284,13 +4301,13 @@ const Lr = new ae(5e3, 15e3), Mr = "__/auth/iframe", Ur = "emulator/auth/iframe"
4284
4301
  },
4285
4302
  "aria-hidden": "true",
4286
4303
  tabindex: "-1"
4287
- }, xr = /* @__PURE__ */ new Map([
4304
+ }, Fr = /* @__PURE__ */ new Map([
4288
4305
  ["identitytoolkit.googleapis.com", "p"],
4289
4306
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4290
4307
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4291
4308
  // test
4292
4309
  ]);
4293
- function Fr(n) {
4310
+ function Vr(n) {
4294
4311
  const e = n.config;
4295
4312
  u(
4296
4313
  e.authDomain,
@@ -4298,17 +4315,17 @@ function Fr(n) {
4298
4315
  "auth-domain-config-required"
4299
4316
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4300
4317
  );
4301
- const t = e.emulator ? je(e, Ur) : `https://${n.config.authDomain}/${Mr}`, i = {
4318
+ const t = e.emulator ? We(e, Dr) : `https://${n.config.authDomain}/${Ur}`, i = {
4302
4319
  apiKey: e.apiKey,
4303
4320
  appName: n.name,
4304
4321
  v: se
4305
- }, r = xr.get(n.config.apiHost);
4322
+ }, r = Fr.get(n.config.apiHost);
4306
4323
  r && (i.eid = r);
4307
4324
  const s = n._getFrameworks();
4308
4325
  return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
4309
4326
  }
4310
- async function Vr(n) {
4311
- const e = await Or(n), t = E().gapi;
4327
+ async function $r(n) {
4328
+ const e = await Lr(n), t = E().gapi;
4312
4329
  return u(
4313
4330
  t,
4314
4331
  n,
@@ -4316,9 +4333,9 @@ async function Vr(n) {
4316
4333
  /* AuthErrorCode.INTERNAL_ERROR */
4317
4334
  ), e.open({
4318
4335
  where: document.body,
4319
- url: Fr(n),
4336
+ url: Vr(n),
4320
4337
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4321
- attributes: Dr,
4338
+ attributes: xr,
4322
4339
  dontclear: !0
4323
4340
  }, (i) => new Promise(async (r, s) => {
4324
4341
  await i.restyle({
@@ -4331,7 +4348,7 @@ async function Vr(n) {
4331
4348
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4332
4349
  ), c = E().setTimeout(() => {
4333
4350
  s(o);
4334
- }, Lr.get());
4351
+ }, Mr.get());
4335
4352
  function a() {
4336
4353
  E().clearTimeout(c), r(i);
4337
4354
  }
@@ -4356,12 +4373,12 @@ async function Vr(n) {
4356
4373
  * See the License for the specific language governing permissions and
4357
4374
  * limitations under the License.
4358
4375
  */
4359
- const $r = {
4376
+ const Hr = {
4360
4377
  location: "yes",
4361
4378
  resizable: "yes",
4362
4379
  statusbar: "yes",
4363
4380
  toolbar: "no"
4364
- }, Hr = 500, jr = 600, Wr = "_blank", Br = "http://localhost";
4381
+ }, Wr = 500, jr = 600, Br = "_blank", Gr = "http://localhost";
4365
4382
  class pt {
4366
4383
  constructor(e) {
4367
4384
  this.window = e, this.associatedEvent = null;
@@ -4374,19 +4391,19 @@ class pt {
4374
4391
  }
4375
4392
  }
4376
4393
  }
4377
- function Gr(n, e, t, i = Hr, r = jr) {
4394
+ function zr(n, e, t, i = Wr, r = jr) {
4378
4395
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4379
4396
  let c = "";
4380
- const a = Object.assign(Object.assign({}, $r), {
4397
+ const a = Object.assign(Object.assign({}, Hr), {
4381
4398
  width: i.toString(),
4382
4399
  height: r.toString(),
4383
4400
  top: s,
4384
4401
  left: o
4385
4402
  }), l = w().toLowerCase();
4386
- t && (c = Ft(l) ? Wr : t), xt(l) && (e = e || Br, a.scrollbars = "yes");
4387
- const d = Object.entries(a).reduce((f, [y, _]) => `${f}${y}=${_},`, "");
4388
- if (ki(l) && c !== "_self")
4389
- return zr(e || "", c), new pt(null);
4403
+ t && (c = Ft(l) ? Br : t), xt(l) && (e = e || Gr, a.scrollbars = "yes");
4404
+ const d = Object.entries(a).reduce((y, [T, h]) => `${y}${T}=${h},`, "");
4405
+ if (bi(l) && c !== "_self")
4406
+ return qr(e || "", c), new pt(null);
4390
4407
  const m = window.open(e || "", c, d);
4391
4408
  u(
4392
4409
  m,
@@ -4400,7 +4417,7 @@ function Gr(n, e, t, i = Hr, r = jr) {
4400
4417
  }
4401
4418
  return new pt(m);
4402
4419
  }
4403
- function zr(n, e) {
4420
+ function qr(n, e) {
4404
4421
  const t = document.createElement("a");
4405
4422
  t.href = n, t.target = e;
4406
4423
  const i = document.createEvent("MouseEvent");
@@ -4422,7 +4439,7 @@ function zr(n, e) {
4422
4439
  * See the License for the specific language governing permissions and
4423
4440
  * limitations under the License.
4424
4441
  */
4425
- const qr = "__/auth/handler", Kr = "emulator/auth/handler", Jr = encodeURIComponent("fac");
4442
+ const Kr = "__/auth/handler", Jr = "emulator/auth/handler", Yr = encodeURIComponent("fac");
4426
4443
  async function mt(n, e, t, i, r, s) {
4427
4444
  u(
4428
4445
  n.config.authDomain,
@@ -4444,7 +4461,7 @@ async function mt(n, e, t, i, r, s) {
4444
4461
  eventId: r
4445
4462
  };
4446
4463
  if (e instanceof qt) {
4447
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Ln(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4464
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Mn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4448
4465
  for (const [d, m] of Object.entries({}))
4449
4466
  o[d] = m;
4450
4467
  }
@@ -4456,11 +4473,11 @@ async function mt(n, e, t, i, r, s) {
4456
4473
  const c = o;
4457
4474
  for (const d of Object.keys(c))
4458
4475
  c[d] === void 0 && delete c[d];
4459
- const a = await n._getAppCheckToken(), l = a ? `#${Jr}=${encodeURIComponent(a)}` : "";
4460
- return `${Yr(n)}?${oe(c).slice(1)}${l}`;
4476
+ const a = await n._getAppCheckToken(), l = a ? `#${Yr}=${encodeURIComponent(a)}` : "";
4477
+ return `${Xr(n)}?${oe(c).slice(1)}${l}`;
4461
4478
  }
4462
- function Yr({ config: n }) {
4463
- return n.emulator ? je(n, Kr) : `https://${n.authDomain}/${qr}`;
4479
+ function Xr({ config: n }) {
4480
+ return n.emulator ? We(n, Jr) : `https://${n.authDomain}/${Kr}`;
4464
4481
  }
4465
4482
  /**
4466
4483
  * @license
@@ -4479,9 +4496,9 @@ function Yr({ config: n }) {
4479
4496
  * limitations under the License.
4480
4497
  */
4481
4498
  const Ne = "webStorageSupport";
4482
- class Xr {
4499
+ class Qr {
4483
4500
  constructor() {
4484
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = wr, this._overrideRedirectResult = vr;
4501
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = Tr, this._overrideRedirectResult = Ir;
4485
4502
  }
4486
4503
  // Wrapping in async even though we don't await anywhere in order
4487
4504
  // to make sure errors are raised as promise rejections
@@ -4489,12 +4506,12 @@ class Xr {
4489
4506
  var s;
4490
4507
  L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4491
4508
  const o = await mt(e, t, i, Me(), r);
4492
- return Gr(e, o, ze());
4509
+ return zr(e, o, ze());
4493
4510
  }
4494
4511
  async _openRedirect(e, t, i, r) {
4495
4512
  await this._originValidation(e);
4496
4513
  const s = await mt(e, t, i, Me(), r);
4497
- return er(s), new Promise(() => {
4514
+ return tr(s), new Promise(() => {
4498
4515
  });
4499
4516
  }
4500
4517
  _initialize(e) {
@@ -4509,7 +4526,7 @@ class Xr {
4509
4526
  }), i;
4510
4527
  }
4511
4528
  async initAndGetManager(e) {
4512
- const t = await Vr(e), i = new kr(e);
4529
+ const t = await $r(e), i = new br(e);
4513
4530
  return t.register("authEvent", (r) => (u(
4514
4531
  r == null ? void 0 : r.authEvent,
4515
4532
  e,
@@ -4533,13 +4550,13 @@ class Xr {
4533
4550
  }
4534
4551
  _originValidation(e) {
4535
4552
  const t = e._key();
4536
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ar(e)), this.originValidationPromises[t];
4553
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Pr(e)), this.originValidationPromises[t];
4537
4554
  }
4538
4555
  get _shouldInitProactively() {
4539
- return Wt() || Be() || ke();
4556
+ return jt() || Be() || ke();
4540
4557
  }
4541
4558
  }
4542
- const Qr = Xr;
4559
+ const Zr = Qr;
4543
4560
  var gt = "@firebase/auth", _t = "1.7.5";
4544
4561
  /**
4545
4562
  * @license
@@ -4557,7 +4574,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4557
4574
  * See the License for the specific language governing permissions and
4558
4575
  * limitations under the License.
4559
4576
  */
4560
- class Zr {
4577
+ class es {
4561
4578
  constructor(e) {
4562
4579
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4563
4580
  }
@@ -4608,7 +4625,7 @@ class Zr {
4608
4625
  * See the License for the specific language governing permissions and
4609
4626
  * limitations under the License.
4610
4627
  */
4611
- function es(n) {
4628
+ function ts(n) {
4612
4629
  switch (n) {
4613
4630
  case "Node":
4614
4631
  return "node";
@@ -4624,7 +4641,7 @@ function es(n) {
4624
4641
  return;
4625
4642
  }
4626
4643
  }
4627
- function ts(n) {
4644
+ function ns(n) {
4628
4645
  Ze(new et(
4629
4646
  "auth",
4630
4647
  (e, { options: t }) => {
@@ -4638,8 +4655,8 @@ function ts(n) {
4638
4655
  tokenApiHost: "securetoken.googleapis.com",
4639
4656
  apiScheme: "https",
4640
4657
  sdkClientVersion: Bt(n)
4641
- }, l = new Ci(i, r, s, a);
4642
- return Di(l, t), l;
4658
+ }, l = new Ni(i, r, s, a);
4659
+ return xi(l, t), l;
4643
4660
  },
4644
4661
  "PUBLIC"
4645
4662
  /* ComponentType.PUBLIC */
@@ -4658,14 +4675,14 @@ function ts(n) {
4658
4675
  "auth"
4659
4676
  /* _ComponentName.AUTH */
4660
4677
  ).getImmediate());
4661
- return ((i) => new Zr(i))(t);
4678
+ return ((i) => new es(i))(t);
4662
4679
  },
4663
4680
  "PRIVATE"
4664
4681
  /* ComponentType.PRIVATE */
4665
4682
  ).setInstantiationMode(
4666
4683
  "EXPLICIT"
4667
4684
  /* InstantiationMode.EXPLICIT */
4668
- )), Le(gt, _t, es(n)), Le(gt, _t, "esm2017");
4685
+ )), Le(gt, _t, ts(n)), Le(gt, _t, "esm2017");
4669
4686
  }
4670
4687
  /**
4671
4688
  * @license
@@ -4683,11 +4700,11 @@ function ts(n) {
4683
4700
  * See the License for the specific language governing permissions and
4684
4701
  * limitations under the License.
4685
4702
  */
4686
- const ns = 5 * 60, is = kt("authIdTokenMaxAge") || ns;
4703
+ const is = 5 * 60, rs = kt("authIdTokenMaxAge") || is;
4687
4704
  let vt = null;
4688
- const rs = (n) => async (e) => {
4705
+ const ss = (n) => async (e) => {
4689
4706
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4690
- if (i && i > is)
4707
+ if (i && i > rs)
4691
4708
  return;
4692
4709
  const r = t == null ? void 0 : t.token;
4693
4710
  vt !== r && (vt = r, await fetch(n, {
@@ -4697,33 +4714,33 @@ const rs = (n) => async (e) => {
4697
4714
  } : {}
4698
4715
  }));
4699
4716
  };
4700
- function ss(n = Pn()) {
4717
+ function os(n = Cn()) {
4701
4718
  const e = bt(n, "auth");
4702
4719
  if (e.isInitialized())
4703
4720
  return e.getImmediate();
4704
- const t = Ui(n, {
4705
- popupRedirectResolver: Qr,
4721
+ const t = Di(n, {
4722
+ popupRedirectResolver: Zr,
4706
4723
  persistence: [
4707
- lr,
4708
- Xi,
4724
+ ur,
4725
+ Qi,
4709
4726
  Qt
4710
4727
  ]
4711
4728
  }), i = kt("authTokenSyncURL");
4712
4729
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4713
4730
  const s = new URL(i, location.origin);
4714
4731
  if (location.origin === s.origin) {
4715
- const o = rs(s.toString());
4716
- qi(t, o, () => o(t.currentUser)), zi(t, (c) => o(c));
4732
+ const o = ss(s.toString());
4733
+ Ki(t, o, () => o(t.currentUser)), qi(t, (c) => o(c));
4717
4734
  }
4718
4735
  }
4719
- const r = An("auth");
4720
- return r && xi(t, `http://${r}`), t;
4736
+ const r = Pn("auth");
4737
+ return r && Fi(t, `http://${r}`), t;
4721
4738
  }
4722
- function os() {
4739
+ function as() {
4723
4740
  var n, e;
4724
4741
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4725
4742
  }
4726
- Ni({
4743
+ Oi({
4727
4744
  loadJS(n) {
4728
4745
  return new Promise((e, t) => {
4729
4746
  const i = document.createElement("script");
@@ -4733,79 +4750,79 @@ Ni({
4733
4750
  /* AuthErrorCode.INTERNAL_ERROR */
4734
4751
  );
4735
4752
  s.customData = r, t(s);
4736
- }, i.type = "text/javascript", i.charset = "UTF-8", os().appendChild(i);
4753
+ }, i.type = "text/javascript", i.charset = "UTF-8", as().appendChild(i);
4737
4754
  });
4738
4755
  },
4739
4756
  gapiScript: "https://apis.google.com/js/api.js",
4740
4757
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4741
4758
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4742
4759
  });
4743
- ts(
4760
+ ns(
4744
4761
  "Browser"
4745
4762
  /* ClientPlatform.BROWSER */
4746
4763
  );
4747
- var as = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" }, cs = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
4748
- const ls = {
4764
+ var cs = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com", importFilesBucketUrl: "feedme-dev-4c3ef.appspot.com", clientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", featureFlagApiKey: "MaGoXrEWuEJNpWgKTqseee" }, ls = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
4765
+ const us = {
4749
4766
  key: 2,
4750
4767
  class: "h-full w-full"
4751
- }, us = ["src"], As = /* @__PURE__ */ xe({
4768
+ }, ds = ["src"], Ps = /* @__PURE__ */ xe({
4752
4769
  __name: "App",
4753
4770
  setup(n) {
4754
- const e = ge(), t = pn(), i = mn(), r = _n(), s = vn(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge();
4771
+ const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = ge();
4755
4772
  ie(
4756
4773
  () => {
4757
- var h;
4758
- return (h = l.value) == null ? void 0 : h._id;
4774
+ var f;
4775
+ return (f = l.value) == null ? void 0 : f._id;
4759
4776
  },
4760
- (h) => {
4761
- h && gn(h);
4777
+ (f) => {
4778
+ f && _n(f);
4762
4779
  },
4763
4780
  { immediate: !0 }
4764
4781
  );
4765
- const d = ee(!1), m = ne(() => i.version), f = ne(() => {
4766
- const h = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
4767
- return `${cs.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${h}&token=${I}`;
4782
+ const d = te(!1), m = Y(() => i.version), y = Y(() => {
4783
+ const f = e.currentCountry.value || "MY", g = tt.getIdToken(), v = l.value._id;
4784
+ return `${ls.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${f}&token=${g}`;
4768
4785
  });
4769
- async function y() {
4770
- if (Mn().length) {
4786
+ async function T() {
4787
+ if (Un().length) {
4771
4788
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4772
4789
  return;
4773
4790
  }
4774
- const h = Un(as.firebase), I = await fn.getCustomToken(), T = ss();
4775
- await Gi(T, I), Dn(h), console.log("initFirebase", h);
4791
+ const f = Dn(cs.firebase), g = await fn.getCustomToken(), v = os();
4792
+ await zi(v, g), xn(f), console.log("initFirebase", f);
4776
4793
  }
4777
- const _ = async () => {
4778
- d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent($n) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
4794
+ const h = async () => {
4795
+ d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Hn) : e.hideSidebarToggle(!0), await T(), a.value = !0, d.value = !0;
4779
4796
  };
4780
4797
  return un(() => {
4781
- if (xn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4782
- const h = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4783
- h == null || h.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4798
+ if (Fn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4799
+ const f = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], v = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4800
+ f == null || f.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), v == null || v.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4784
4801
  }
4785
- l.value != null && (console.log("App mounted, forceRerender"), _());
4802
+ l.value != null && (console.log("App mounted, forceRerender"), h());
4786
4803
  }), ie(
4787
4804
  () => e.currentBusiness.value,
4788
- async (h, I) => {
4789
- console.log("Current business changed"), h != null && h._id != I._id && (console.log("forceRerender when business changes", h, I), _());
4805
+ async (f, g) => {
4806
+ console.log("Current business changed"), f != null && f._id != g._id && (console.log("forceRerender when business changes", f, g), h());
4790
4807
  }
4791
- ), (h, I) => (j(), me(It, null, [
4792
- g(d) && g(m) === "v2" ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
4793
- g(d) && g(m) === "v2" && g(c) ? (j(), Oe(ri, { key: 1 })) : Pe("", !0),
4794
- g(d) && g(m) !== "v2" ? (j(), me("div", ls, [
4795
- S(Tn, {
4796
- json: { url: g(f) }
4808
+ ), (f, g) => (j(), me(It, null, [
4809
+ _(d) && _(m) === "v2" ? (j(), Oe(_(hn), { key: 0 })) : Pe("", !0),
4810
+ _(d) && _(m) === "v2" && _(c) ? (j(), Oe(si, { key: 1 })) : Pe("", !0),
4811
+ _(d) && _(m) !== "v2" ? (j(), me("div", us, [
4812
+ S(kn, {
4813
+ json: { url: _(y) }
4797
4814
  }, null, 8, ["json"]),
4798
- v("iframe", {
4815
+ I("iframe", {
4799
4816
  allow: "clipboard-read; clipboard-write",
4800
4817
  frameBorder: "0",
4801
4818
  height: "100%",
4802
4819
  width: "100%",
4803
- src: g(f)
4804
- }, null, 8, us)
4820
+ src: _(y)
4821
+ }, null, 8, ds)
4805
4822
  ])) : Pe("", !0)
4806
4823
  ], 64));
4807
4824
  }
4808
4825
  });
4809
4826
  export {
4810
- As as default
4827
+ Ps as default
4811
4828
  };