@feedmepos/mf-connect 0.1.117-dev → 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 (135) hide show
  1. package/README.md +12 -8
  2. package/dist/{App-BpcsgH7K.js → App-CBFNBDb2.js} +275 -275
  3. package/dist/{AuditLogs-BNnUiVnD.js → AuditLogs-BtSA8b08.js} +13 -13
  4. package/dist/{Bin-Cm0wjQeR.js → Bin-CjmS_Tfn.js} +8 -8
  5. package/dist/{Broadcast-BoJaHqnO.js → Broadcast-BeePmZa1.js} +12 -12
  6. package/dist/{CampaignAnalytic-Eg4xZW0B.js → CampaignAnalytic-CZlnyvOi.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BXylK6Ze.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Du3Ah4HP.js} +9 -9
  8. package/dist/{Card-BfkMcFaG.js → Card-C8SzQQ0z.js} +23 -23
  9. package/dist/{Collections-RXmxQbII.js → Collections-BXNWTSZH.js} +8 -8
  10. package/dist/{Credit-CsRPM1jv.js → Credit-CK0-0yD1.js} +12 -12
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2tvK7pw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BXYpYC7Y.js} +1 -1
  12. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CdpnNDzR.js} +1042 -1045
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js → EffectSheet.vue_vue_type_style_index_0_lang--Oyj3KYg.js} +6 -6
  14. package/dist/{Experience-BC8Pj-v9.js → Experience-CWJaj62g.js} +13 -13
  15. package/dist/{FileSaver.min-DzmoQFA0.js → FileSaver.min-lV9H82L5.js} +1 -1
  16. package/dist/{Game-DJXNHFBs.js → Game-zBV1LYAg.js} +13 -13
  17. package/dist/{GiftCardSetup-_0n8lU-t.js → GiftCardSetup-Cnq9353j.js} +10 -10
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-C-AiJdui.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CdgSBdrX.js} +7 -7
  19. package/dist/{Goals-DSZwKpds.js → Goals-Utk08egN.js} +4 -4
  20. package/dist/{Grab-DDc7e-AC.js → Grab-DwMmWmbT.js} +9 -9
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js → ImageInput.vue_vue_type_script_setup_true_lang-CNPeU9xm.js} +1 -1
  22. package/dist/{Index-Cbi0bquE.js → Index-Bjgs18xf.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-GLhMtvzi.js → LocationPicker.vue_vue_type_script_setup_true_lang-DWnf4lXH.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Bt9CO_QR.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dy_oWJaZ.js} +1 -1
  25. package/dist/{LoyaltyDashboard-fK90c27A.js → LoyaltyDashboard-DmUfujX_.js} +15 -15
  26. package/dist/{MainLayout-Bf-l9yL4.js → MainLayout-DlDZQJfy.js} +1 -1
  27. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COR6YYYI.js → MainLayout.vue_vue_type_script_setup_true_lang-yAflY70k.js} +3 -3
  28. package/dist/{Marketing-B7cZGsO-.js → Marketing-B0iKlHP-.js} +4 -4
  29. package/dist/{MarketingMaterialEdit-5IcV2ct6.js → MarketingMaterialEdit-BNHxVb8A.js} +6 -6
  30. package/dist/{Member-BGTrRVdq.js → Member-Bcm3_pWB.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DJr2hV2W.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CPp4OpOx.js} +24 -24
  32. package/dist/{MemberImportHistory--FxkTJmu.js → MemberImportHistory-AQgLzB3g.js} +7 -7
  33. package/dist/{MemberList-EjY5dgwt.js → MemberList-CkMTo2uD.js} +14 -14
  34. package/dist/{MemberTransactions-Oia7LIFK.js → MemberTransactions-CxLCVjvw.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLOQZCYy.js → MessageInput.vue_vue_type_script_setup_true_lang-4N20f8Sj.js} +10 -10
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Ev3bB8cg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DghbYpSQ.js} +1 -1
  37. package/dist/{Mission-BFHYb4aT.js → Mission-CQS1CoDN.js} +14 -14
  38. package/dist/{Overview-BVNyQxFL.js → Overview-NQ287sgq.js} +21 -21
  39. package/dist/{Overview-d5U37aot.js → Overview-UG1IjY7-.js} +4 -4
  40. package/dist/{Point-CXkqH02Z.js → Point-krMa_mb1.js} +14 -14
  41. package/dist/{Promotion-DdxNvlOO.js → Promotion-vFBmJSti.js} +14 -14
  42. package/dist/{Queue-C96oNKyP.js → Queue-BusxSPt-.js} +13 -13
  43. package/dist/{Record-Bj2e2Y4i.js → Record-DjKqn0za.js} +9 -9
  44. package/dist/{Review-CJK5S1oI.js → Review-CqLp8l7U.js} +2 -2
  45. package/dist/{ReviewFacebookCallback-ChG7TRy5.js → ReviewFacebookCallback-D2kMSVFC.js} +5 -5
  46. package/dist/{ReviewGoogleCallback-Dmk4VyGA.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-U47m3AAn.js → RewardGroup.vue_vue_type_script_setup_true_lang-CCxVjBsO.js} +14 -14
  49. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js → RuleGroup.vue_vue_type_script_setup_true_lang-U403emCF.js} +15 -15
  50. package/dist/{Segment-FYvtCkqH.js → Segment-Nj59F9Nr.js} +26 -26
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPZZz2e0.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Kg9m-0DS.js} +15 -15
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLbDApPL.js} +4 -4
  53. package/dist/{Setting-CUAWjCqa.js → Setting-CCIzNxv-.js} +14 -14
  54. package/dist/{SettingAdvertisements-COIQwUD6.js → SettingAdvertisements-CkPyAg5y.js} +12 -12
  55. package/dist/{Settings-D2gFPvmW.js → Settings-CYjKGCpa.js} +5 -5
  56. package/dist/{Store-BAXwiyvx.js → Store-Bp8Zkzi2.js} +27 -27
  57. package/dist/{StoreRewards-2mUavtUg.js → StoreRewards-DXW5nVyW.js} +15 -15
  58. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-5g3yIL1a.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BYVezFI2.js} +25 -25
  59. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CS6b1cM3.js} +2 -2
  60. package/dist/{Tier-BmAOzRHL.js → Tier-B8Utn9Qb.js} +27 -27
  61. package/dist/{Title-DMxiUg30.js → Title-CwaNSFer.js} +23 -23
  62. package/dist/{Transaction-CF6hXEpN.js → Transaction-ieciAdXP.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BON_t0dL.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CMwZl4E6.js} +6 -6
  64. package/dist/{Voucher-DrtITxq-.js → Voucher-BKfujj6r.js} +18 -18
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-1DZOzJKx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CkH-rNqZ.js} +12 -12
  66. package/dist/{WhatsappAccount-Bb0Y7ikk.js → WhatsappAccount-D73WDP7a.js} +66 -64
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C3L7vWZE.js} +1 -1
  68. package/dist/{WhatsappBot-DNvvaPey.js → WhatsappBot-DTWZAXhi.js} +324 -322
  69. package/dist/{WhatsappBotLogs-C8M-1pvv.js → WhatsappBotLogs-DtDcrjs9.js} +11 -11
  70. package/dist/{WhatsappBotSettings-D6egqUyU.js → WhatsappBotSettings-7_mH9U4y.js} +287 -288
  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-CKZscSjU.js → ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js} +2 -2
  74. package/dist/{app-BjdLqYQq.js → app-DX7OWVY2.js} +528 -524
  75. package/dist/app.js +1 -1
  76. package/dist/{base.export-B68z5BF6.js → base.export-bamzzexi.js} +2 -2
  77. package/dist/{business-D9fgkHxb.js → business-D3U9HSu9.js} +1 -1
  78. package/dist/{campaign-Dw_ujovr.js → campaign-BqRf2VUO.js} +8 -8
  79. package/dist/{campaign-eMaPX8r6.js → campaign-CKfeN2xN.js} +2 -2
  80. package/dist/{campaign.fn-DFjGNvmN.js → campaign.fn-DQe5LZuT.js} +38 -38
  81. package/dist/{collection.fn-CCOWtB-c.js → collection.fn-BcGqExuE.js} +2 -2
  82. package/dist/{currency-CTLKReFC.js → currency-sjMYWoI8.js} +1 -1
  83. package/dist/{duplicateCampaign-BcpBfUGL.js → duplicateCampaign-CJF3ZLNd.js} +2 -2
  84. package/dist/{effect-CTI1ZH57.js → effect-Cv8ugBR3.js} +1 -1
  85. package/dist/{email-addresses-B74e3bnB.js → email-addresses-CWqtseTn.js} +2 -2
  86. package/dist/{feature-flag-DVdEaChJ.js → feature-flag-BIh6MM4i.js} +159 -159
  87. package/dist/{helper-as9K-piK.js → helper-WnxOxoRK.js} +1 -1
  88. package/dist/{index-CHU3UePP.js → index-5TTGGDnF.js} +1 -1
  89. package/dist/{index-Ba719MYq.js → index-B3CkAr-6.js} +1 -1
  90. package/dist/{index-Czg-2Ni0.js → index-B9XVyhtC.js} +3 -3
  91. package/dist/{index-BW7FoVEA.js → index-BGguMtc0.js} +1 -1
  92. package/dist/{index-BbVbqe4Y.js → index-Bdg48Cus.js} +2 -2
  93. package/dist/{index-B_wRpO02.js → index-BoAmM8QH.js} +2 -2
  94. package/dist/{index-TAoQpeLQ.js → index-BtmVXdRR.js} +1 -1
  95. package/dist/{index-3LjKJhQa.js → index-CDTETsXQ.js} +1 -1
  96. package/dist/{index-DKI8401o.js → index-CeafUn1o.js} +2 -2
  97. package/dist/{index-QHqcSN2q.js → index-CiSTQhs9.js} +1 -1
  98. package/dist/{index-C5V6u2Qd.js → index-ClvaVYkG.js} +2 -2
  99. package/dist/{index-CWLOcQ6j.js → index-CnsSd5Dg.js} +9 -9
  100. package/dist/{index-B0h0iYWP.js → index-D3yYjyaj.js} +2 -2
  101. package/dist/{index-8mBfDn3M.js → index-DDzi_-Lu.js} +7 -7
  102. package/dist/{index-Ckz6u3ac.js → index-DOgDR_QH.js} +2 -2
  103. package/dist/{index-BEKMTiFb.js → index-DqZX-A6e.js} +3 -3
  104. package/dist/{index-DcZiikOH.js → index-DxhNNZ-a.js} +2 -2
  105. package/dist/{index-wsCCqwdr.js → index-DzYFQGSw.js} +2 -2
  106. package/dist/{index-C-iwb2Ln.js → index-I9lmcd2w.js} +2 -2
  107. package/dist/{index-CQxkDpX0.js → index-iiWxryxo.js} +4 -4
  108. package/dist/{index-BhTrG89b.js → index-qI1yx02a.js} +4 -4
  109. package/dist/{index.esm2017-DL6rTGDW.js → index.esm2017-GI2alVO5.js} +1 -1
  110. package/dist/{loading-x6IScY4K.js → loading-Qx5K2WL0.js} +1 -1
  111. package/dist/{lodash-nwnDizYo.js → lodash-CeSjJptg.js} +1 -1
  112. package/dist/{member-import-C-b01Tyd.js → member-import-Cq8G7SsW.js} +1 -1
  113. package/dist/{membership-DfarOMtO.js → membership-BbeavSNs.js} +2 -2
  114. package/dist/{money-CFn-jR4W.js → money-D8YIFaGA.js} +1 -1
  115. package/dist/{number-CSlyDL2x.js → number-DAubZ5bt.js} +1 -1
  116. package/dist/{objectid-zcT6ESET.js → objectid-DeXFWDMh.js} +6 -6
  117. package/dist/{onboarding-DyaFaaF2.js → onboarding-SyFxaTJY.js} +3 -3
  118. package/dist/{onboardingSetup-DQt91O9f.js → onboardingSetup-CLpHlBn8.js} +2 -2
  119. package/dist/{plugins-DEHr0UOe.js → plugins-BHuaMEYA.js} +3 -3
  120. package/dist/{reward-Du_Pv-4p.js → reward-dYWnmAC8.js} +1 -1
  121. package/dist/{rule-DfqmQTVK.js → rule-BVsfOP2h.js} +10 -10
  122. package/dist/{template-CcbNF4PF.js → template-BcdtbhUJ.js} +6 -6
  123. package/dist/{timezone-_4tabIaK.js → timezone-CUc7q5Ii.js} +1 -1
  124. package/dist/{transaction.fn-C46PHwCV.js → transaction.fn-jF9u_cBy.js} +2 -2
  125. package/dist/{trigger-Dipr6btC.js → trigger-COlbQlaB.js} +5 -5
  126. package/dist/{useMarketingMaterialActions-BAw2ZjeF.js → useMarketingMaterialActions-Dq6-gsOW.js} +4 -4
  127. package/dist/{usePagination-D6RZ18zS.js → usePagination-BYZB6ORK.js} +1 -1
  128. package/dist/{user-BCexQj3Q.js → user-DK7L8VFR.js} +1 -1
  129. package/dist/{vue-i18n-DXvyTCZf.js → vue-i18n-CDSTH7g5.js} +162 -162
  130. package/dist/{xlsx-BTxt_Jg6.js → xlsx-CKxXlDzD.js} +1 -1
  131. package/dist/{zod-T4wMYjWT.js → zod-DjtAaF0U.js} +1 -1
  132. package/package.json +1 -1
  133. package/dist/Reward-Dh2YI0Xb.js +0 -442
  134. package/dist/WhatsappLayout-DeQTPuF6.js +0 -21
  135. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js +0 -253
@@ -2,23 +2,23 @@ import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y,
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-D9fgkHxb.js";
6
- import { F as gn, u as _n, l as vn } from "./feature-flag-DVdEaChJ.js";
7
- import "./index-Ba719MYq.js";
8
- import { components as W, useSnackbar as In, useDialog as yn } from "@feedmepos/ui-library";
9
- import { u as Tt } from "./vue-i18n-DXvyTCZf.js";
10
- import { m as wn } from "./index-TAoQpeLQ.js";
11
- import { C as Xe } from "./timezone-_4tabIaK.js";
12
- import { u as Tn } from "./onboarding-DyaFaaF2.js";
13
- import { R as p, A as kn, a as Qe } from "./app-BjdLqYQq.js";
14
- import { J as bn } from "./JsonViewer-v8_C7l5N.js";
15
- import { r as Le, L as En, g as kt, i as Sn, a as Rn, _ as Ze, C as et, b as An, S as se, c as A, d as X, E as Fe, e as Pn, f as bt, h as Cn, j as Nn, k as Et, l as w, m as On, F as Ve, n as Ln, q as oe, o as Mn, p as Un, s as Dn, t as xn, u as Fn } from "./index.esm2017-DL6rTGDW.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 Vn } from "./index-DKI8401o.js";
18
- const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Wn = /* @__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 = Tn(), r = _n(), s = te(), o = [
21
+ const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
22
22
  {
23
23
  label: e("connect.navigation.analytic"),
24
24
  value: p["$connect-ANALYTIC"]
@@ -150,7 +150,7 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
150
150
  }
151
151
  ], c = Y(
152
152
  () => o.filter(
153
- (h) => h.value !== p["$connect-WHATSAPP"] || r(gn.whatsappBot) === "on"
153
+ (h) => h.value !== p["$connect-WHATSAPP"] || r() === "on"
154
154
  )
155
155
  ), a = yt(), l = wt(), d = o.reduce((h, f) => [...(f.children ?? []).map((g) => g.value), ...h, f.value], []), m = ge(), y = Y(() => {
156
156
  const h = m.currentCountry.value || "MY";
@@ -182,35 +182,35 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
182
182
  return (h, f) => {
183
183
  var v;
184
184
  const g = ee("FmCollapsibleTabs");
185
- return j(), me("div", $n, [
185
+ return j(), me("div", Vn, [
186
186
  S(g, {
187
187
  class: "border-fm-color-neutral-gray-100 border-r px-4",
188
188
  "model-value": (v = _(s)) == null ? void 0 : v.toString(),
189
189
  items: _(c),
190
190
  "onUpdate:modelValue": T
191
191
  }, null, 8, ["model-value", "items"]),
192
- I("div", Hn, [
192
+ I("div", $n, [
193
193
  I("div", null, "Timezone: " + R(_(y).split("/")[1].replace("_", " ")), 1),
194
- I("div", null, "(UTC" + R(_(wn).tz(_(y)).format("Z")) + ")", 1)
194
+ I("div", null, "(UTC" + R(_(yn).tz(_(y)).format("Z")) + ")", 1)
195
195
  ])
196
196
  ]);
197
197
  };
198
198
  }
199
199
  }), St = "feedme_connect_marketing_promo_hidden";
200
- function jn() {
200
+ function Wn() {
201
201
  try {
202
202
  return localStorage.getItem(St) !== null;
203
203
  } catch {
204
204
  return !1;
205
205
  }
206
206
  }
207
- function Gn() {
207
+ function jn() {
208
208
  try {
209
209
  localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
210
210
  } catch {
211
211
  }
212
212
  }
213
- const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, qn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Kn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Jn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Yn = { class: "flex flex-col gap-24 pb-8" }, Xn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Qn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Zn = { class: "fm-typo-en-body-lg-600" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ti = { class: "shrink-0" }, ni = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ii = { class: "flex w-full flex-col gap-12 px-[16px]" }, ri = { class: "flex flex-wrap items-center gap-12" }, si = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, oi = /* @__PURE__ */ xe({
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({
214
214
  __name: "AiMarketingPromoDialog",
215
215
  setup(n) {
216
216
  let e = !1;
@@ -221,7 +221,7 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
221
221
  ], a = Y(() => {
222
222
  var h;
223
223
  const T = ((h = r.value) == null ? void 0 : h.permissions) ?? [];
224
- return kn(
224
+ return Tn(
225
225
  [
226
226
  {
227
227
  action: Qe.Action.manage,
@@ -237,7 +237,7 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
237
237
  ie(
238
238
  l,
239
239
  (T) => {
240
- d || !T || (d = !0, !(jn() || e) && (e = !0, o.value = !0));
240
+ d || !T || (d = !0, !(Wn() || e) && (e = !0, o.value = !0));
241
241
  },
242
242
  { immediate: !0 }
243
243
  );
@@ -245,7 +245,7 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
245
245
  o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
246
246
  }
247
247
  function y() {
248
- Gn(), o.value = !1;
248
+ jn(), o.value = !1;
249
249
  }
250
250
  return (T, h) => {
251
251
  const f = ee("FmIcon"), g = ee("FmCard"), v = ee("FmButton"), M = ee("FmDialog");
@@ -259,21 +259,21 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
259
259
  }, {
260
260
  "dialog-header": Z(() => [
261
261
  I("div", Bn, [
262
- I("div", zn, [
262
+ I("div", Gn, [
263
263
  S(f, {
264
264
  name: "auto_awesome",
265
265
  size: "sm",
266
266
  color: "primary"
267
267
  }),
268
- I("span", qn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
268
+ I("span", zn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
269
269
  ]),
270
- I("h1", Kn, R(_(t)("connect.marketing.whatsNew.title")), 1),
271
- I("p", Jn, R(_(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)
272
272
  ])
273
273
  ]),
274
274
  "dialog-footer": Z(() => [
275
- I("div", ii, [
276
- I("div", ri, [
275
+ I("div", ni, [
276
+ I("div", ii, [
277
277
  S(v, {
278
278
  variant: "primary",
279
279
  size: "lg",
@@ -288,27 +288,27 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
288
288
  onClick: y
289
289
  }, null, 8, ["label"])
290
290
  ]),
291
- I("div", si, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
291
+ I("div", ri, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
292
292
  ])
293
293
  ]),
294
294
  default: Z(() => [
295
- I("div", Yn, [
296
- I("div", Xn, [
295
+ I("div", Jn, [
296
+ I("div", Yn, [
297
297
  (j(), me(It, null, ln(c, (k) => S(g, {
298
298
  key: k.key,
299
299
  variant: "outlined",
300
300
  class: "!h-full flex flex-col gap-8 p-16"
301
301
  }, {
302
302
  default: Z(() => [
303
- I("div", Qn, [
303
+ I("div", Xn, [
304
304
  S(f, {
305
305
  name: k.icon,
306
306
  size: "md",
307
307
  color: "primary"
308
308
  }, null, 8, ["name"])
309
309
  ]),
310
- I("div", Zn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
311
- I("div", ei, R(_(t)(
310
+ I("div", Qn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
311
+ I("div", Zn, R(_(t)(
312
312
  `connect.marketing.whatsNew.benefits.${k.key}.description`
313
313
  )), 1)
314
314
  ]),
@@ -320,14 +320,14 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
320
320
  class: "flex items-start gap-12 p-16"
321
321
  }, {
322
322
  default: Z(() => [
323
- I("div", ti, [
323
+ I("div", ei, [
324
324
  S(f, {
325
325
  name: "lightbulb",
326
326
  size: "md",
327
327
  color: "primary"
328
328
  })
329
329
  ]),
330
- I("p", ni, R(_(t)("connect.marketing.whatsNew.callout")), 1)
330
+ I("p", ti, R(_(t)("connect.marketing.whatsNew.callout")), 1)
331
331
  ]),
332
332
  _: 1
333
333
  })
@@ -338,7 +338,7 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
338
338
  };
339
339
  }
340
340
  });
341
- var ai = "firebase", ci = "10.12.4";
341
+ var oi = "firebase", ai = "10.12.4";
342
342
  /**
343
343
  * @license
344
344
  * Copyright 2020 Google LLC
@@ -355,13 +355,13 @@ var ai = "firebase", ci = "10.12.4";
355
355
  * See the License for the specific language governing permissions and
356
356
  * limitations under the License.
357
357
  */
358
- Le(ai, ci, "app");
358
+ Le(oi, ai, "app");
359
359
  function Rt() {
360
360
  return {
361
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."
362
362
  };
363
363
  }
364
- const li = Rt, At = new Fe("auth", "Firebase", Rt());
364
+ const ci = Rt, At = new Fe("auth", "Firebase", Rt());
365
365
  /**
366
366
  * @license
367
367
  * Copyright 2020 Google LLC
@@ -378,8 +378,8 @@ const li = Rt, At = new Fe("auth", "Firebase", Rt());
378
378
  * See the License for the specific language governing permissions and
379
379
  * limitations under the License.
380
380
  */
381
- const _e = new En("@firebase/auth");
382
- function ui(n, ...e) {
381
+ const _e = new bn("@firebase/auth");
382
+ function li(n, ...e) {
383
383
  _e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
384
384
  }
385
385
  function de(n, ...e) {
@@ -408,7 +408,7 @@ function b(n, ...e) {
408
408
  return He(n, ...e);
409
409
  }
410
410
  function Pt(n, e, t) {
411
- const i = Object.assign(Object.assign({}, li()), { [e]: t });
411
+ const i = Object.assign(Object.assign({}, ci()), { [e]: t });
412
412
  return new Fe("auth", "Firebase", i).create(e, {
413
413
  appName: n.name
414
414
  });
@@ -454,7 +454,7 @@ function Me() {
454
454
  var n;
455
455
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
456
456
  }
457
- function di() {
457
+ function ui() {
458
458
  return nt() === "http:" || nt() === "https:";
459
459
  }
460
460
  function nt() {
@@ -477,15 +477,15 @@ function nt() {
477
477
  * See the License for the specific language governing permissions and
478
478
  * limitations under the License.
479
479
  */
480
- function hi() {
480
+ function di() {
481
481
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
482
482
  // This is especially true for Cordova apps which have unreliable
483
483
  // navigator.onLine behavior unless cordova-plugin-network-information is
484
484
  // installed which overwrites the native navigator.onLine value and
485
485
  // defines navigator.connection.
486
- (di() || An() || "connection" in navigator) ? navigator.onLine : !0;
486
+ (ui() || Rn() || "connection" in navigator) ? navigator.onLine : !0;
487
487
  }
488
- function fi() {
488
+ function hi() {
489
489
  if (typeof navigator > "u")
490
490
  return null;
491
491
  const n = navigator;
@@ -515,10 +515,10 @@ function fi() {
515
515
  */
516
516
  class ae {
517
517
  constructor(e, t) {
518
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = Sn() || Rn();
518
+ this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = En() || Sn();
519
519
  }
520
520
  get() {
521
- return hi() ? 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);
522
522
  }
523
523
  }
524
524
  /**
@@ -612,7 +612,7 @@ class Ct {
612
612
  * See the License for the specific language governing permissions and
613
613
  * limitations under the License.
614
614
  */
615
- const pi = {
615
+ const fi = {
616
616
  // Custom token errors.
617
617
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
618
618
  // This can only happen if the SDK sends a bad request.
@@ -703,7 +703,7 @@ const pi = {
703
703
  * See the License for the specific language governing permissions and
704
704
  * limitations under the License.
705
705
  */
706
- const mi = new ae(3e4, 6e4);
706
+ const pi = new ae(3e4, 6e4);
707
707
  function Te(n, e) {
708
708
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
709
709
  }
@@ -729,9 +729,9 @@ async function Q(n, e, t, i, r = {}) {
729
729
  }
730
730
  async function Nt(n, e, t) {
731
731
  n._canInitEmulator = !1;
732
- const i = Object.assign(Object.assign({}, pi), e);
732
+ const i = Object.assign(Object.assign({}, fi), e);
733
733
  try {
734
- const r = new gi(n), s = await Promise.race([
734
+ const r = new mi(n), s = await Promise.race([
735
735
  t(),
736
736
  r.promise
737
737
  ]);
@@ -770,14 +770,14 @@ function Lt(n, e, t, i) {
770
770
  const r = `${e}${t}?${i}`;
771
771
  return n.config.emulator ? We(n.config, r) : `${n.config.apiScheme}://${r}`;
772
772
  }
773
- class gi {
773
+ class mi {
774
774
  constructor(e) {
775
775
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
776
776
  this.timer = setTimeout(() => i(b(
777
777
  this.auth,
778
778
  "network-request-failed"
779
779
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
780
- )), mi.get());
780
+ )), pi.get());
781
781
  });
782
782
  }
783
783
  clearNetworkTimeout() {
@@ -808,7 +808,7 @@ function ue(n, e, t) {
808
808
  * See the License for the specific language governing permissions and
809
809
  * limitations under the License.
810
810
  */
811
- async function _i(n, e) {
811
+ async function gi(n, e) {
812
812
  return Q(n, "POST", "/v1/accounts:delete", e);
813
813
  }
814
814
  async function Mt(n, e) {
@@ -839,7 +839,7 @@ function ne(n) {
839
839
  } catch {
840
840
  }
841
841
  }
842
- async function vi(n, e = !1) {
842
+ async function _i(n, e = !1) {
843
843
  const t = X(n), i = await t.getIdToken(e), r = je(i);
844
844
  u(
845
845
  r && r.exp && r.auth_time && r.iat,
@@ -866,7 +866,7 @@ function je(n) {
866
866
  if (e === void 0 || t === void 0 || i === void 0)
867
867
  return de("JWT malformed, contained fewer than 3 sections"), null;
868
868
  try {
869
- const r = Ln(t);
869
+ const r = On(t);
870
870
  return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
871
871
  } catch (r) {
872
872
  return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
@@ -910,10 +910,10 @@ async function re(n, e, t = !1) {
910
910
  try {
911
911
  return await e;
912
912
  } catch (i) {
913
- throw i instanceof Ve && Ii(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;
914
914
  }
915
915
  }
916
- function Ii({ code: n }) {
916
+ function vi({ code: n }) {
917
917
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
918
918
  }
919
919
  /**
@@ -932,7 +932,7 @@ function Ii({ code: n }) {
932
932
  * See the License for the specific language governing permissions and
933
933
  * limitations under the License.
934
934
  */
935
- class yi {
935
+ class Ii {
936
936
  constructor(e) {
937
937
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
938
938
  }
@@ -1038,7 +1038,7 @@ async function ve(n) {
1038
1038
  );
1039
1039
  const s = r.users[0];
1040
1040
  n._notifyReloadListener(s);
1041
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ti(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
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 = {
1042
1042
  uid: s.localId,
1043
1043
  displayName: s.displayName || null,
1044
1044
  photoURL: s.photoUrl || null,
@@ -1052,11 +1052,11 @@ async function ve(n) {
1052
1052
  };
1053
1053
  Object.assign(n, m);
1054
1054
  }
1055
- async function wi(n) {
1055
+ async function yi(n) {
1056
1056
  const e = X(n);
1057
1057
  await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1058
1058
  }
1059
- function Ti(n, e) {
1059
+ function wi(n, e) {
1060
1060
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1061
1061
  }
1062
1062
  function Ut(n) {
@@ -1088,7 +1088,7 @@ function Ut(n) {
1088
1088
  * See the License for the specific language governing permissions and
1089
1089
  * limitations under the License.
1090
1090
  */
1091
- async function ki(n, e) {
1091
+ async function Ti(n, e) {
1092
1092
  const t = await Nt(n, {}, async () => {
1093
1093
  const i = oe({
1094
1094
  grant_type: "refresh_token",
@@ -1109,7 +1109,7 @@ async function ki(n, e) {
1109
1109
  refreshToken: t.refresh_token
1110
1110
  };
1111
1111
  }
1112
- async function bi(n, e) {
1112
+ async function ki(n, e) {
1113
1113
  return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1114
1114
  }
1115
1115
  /**
@@ -1173,7 +1173,7 @@ class q {
1173
1173
  this.refreshToken = null;
1174
1174
  }
1175
1175
  async refresh(e, t) {
1176
- const { accessToken: i, refreshToken: r, expiresIn: s } = await ki(e, t);
1176
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await Ti(e, t);
1177
1177
  this.updateTokensAndExpiration(i, r, Number(s));
1178
1178
  }
1179
1179
  updateTokensAndExpiration(e, t, i) {
@@ -1228,7 +1228,7 @@ function D(n, e) {
1228
1228
  class C {
1229
1229
  constructor(e) {
1230
1230
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
1231
- this.providerId = "firebase", this.proactiveRefresh = new yi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
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);
1232
1232
  }
1233
1233
  async getIdToken(e) {
1234
1234
  const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1240,10 +1240,10 @@ class C {
1240
1240
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1241
1241
  }
1242
1242
  getIdTokenResult(e) {
1243
- return vi(this, e);
1243
+ return _i(this, e);
1244
1244
  }
1245
1245
  reload() {
1246
- return wi(this);
1246
+ return yi(this);
1247
1247
  }
1248
1248
  _assign(e) {
1249
1249
  this !== e && (u(
@@ -1282,7 +1282,7 @@ class C {
1282
1282
  if (A(this.auth.app))
1283
1283
  return Promise.reject(H(this.auth));
1284
1284
  const e = await this.getIdToken();
1285
- return await re(this, _i(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();
1286
1286
  }
1287
1287
  toJSON() {
1288
1288
  return Object.assign(Object.assign({
@@ -1574,7 +1574,7 @@ function ot(n) {
1574
1574
  return "Blackberry";
1575
1575
  if (Wt(e))
1576
1576
  return "Webos";
1577
- if (Ge(e))
1577
+ if (Be(e))
1578
1578
  return "Safari";
1579
1579
  if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
1580
1580
  return "Chrome";
@@ -1590,7 +1590,7 @@ function ot(n) {
1590
1590
  function xt(n = w()) {
1591
1591
  return /firefox\//i.test(n);
1592
1592
  }
1593
- function Ge(n = w()) {
1593
+ function Be(n = w()) {
1594
1594
  const e = n.toLowerCase();
1595
1595
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1596
1596
  }
@@ -1612,17 +1612,17 @@ function Wt(n = w()) {
1612
1612
  function ke(n = w()) {
1613
1613
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1614
1614
  }
1615
- function Ei(n = w()) {
1615
+ function bi(n = w()) {
1616
1616
  var e;
1617
1617
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1618
1618
  }
1619
- function Si() {
1620
- return Mn() && document.documentMode === 10;
1619
+ function Ei() {
1620
+ return Ln() && document.documentMode === 10;
1621
1621
  }
1622
1622
  function jt(n = w()) {
1623
1623
  return ke(n) || $t(n) || Wt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1624
1624
  }
1625
- function Ri() {
1625
+ function Si() {
1626
1626
  try {
1627
1627
  return !!(window && window !== window.top);
1628
1628
  } catch {
@@ -1645,7 +1645,7 @@ function Ri() {
1645
1645
  * See the License for the specific language governing permissions and
1646
1646
  * limitations under the License.
1647
1647
  */
1648
- function Gt(n, e = []) {
1648
+ function Bt(n, e = []) {
1649
1649
  let t;
1650
1650
  switch (n) {
1651
1651
  case "Browser":
@@ -1676,7 +1676,7 @@ function Gt(n, e = []) {
1676
1676
  * See the License for the specific language governing permissions and
1677
1677
  * limitations under the License.
1678
1678
  */
1679
- class Ai {
1679
+ class Ri {
1680
1680
  constructor(e) {
1681
1681
  this.auth = e, this.queue = [];
1682
1682
  }
@@ -1731,7 +1731,7 @@ class Ai {
1731
1731
  * See the License for the specific language governing permissions and
1732
1732
  * limitations under the License.
1733
1733
  */
1734
- async function Pi(n, e = {}) {
1734
+ async function Ai(n, e = {}) {
1735
1735
  return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
1736
1736
  }
1737
1737
  /**
@@ -1750,12 +1750,12 @@ async function Pi(n, e = {}) {
1750
1750
  * See the License for the specific language governing permissions and
1751
1751
  * limitations under the License.
1752
1752
  */
1753
- const Ci = 6;
1754
- class Ni {
1753
+ const Pi = 6;
1754
+ class Ci {
1755
1755
  constructor(e) {
1756
1756
  var t, i, r, s;
1757
1757
  const o = e.customStrengthOptions;
1758
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ci, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
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;
1759
1759
  }
1760
1760
  validatePassword(e) {
1761
1761
  var t, i, r, s, o, c;
@@ -1838,9 +1838,9 @@ class Ni {
1838
1838
  * See the License for the specific language governing permissions and
1839
1839
  * limitations under the License.
1840
1840
  */
1841
- class Oi {
1841
+ class Ni {
1842
1842
  constructor(e, t, i, r) {
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 Ai(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
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;
1844
1844
  }
1845
1845
  _initializeWithPersistence(e, t) {
1846
1846
  return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
@@ -1934,7 +1934,7 @@ class Oi {
1934
1934
  return this.directlySetCurrentUser(e);
1935
1935
  }
1936
1936
  useDeviceLanguage() {
1937
- this.languageCode = fi();
1937
+ this.languageCode = hi();
1938
1938
  }
1939
1939
  async _delete() {
1940
1940
  this._deleted = !0;
@@ -1985,7 +1985,7 @@ class Oi {
1985
1985
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1986
1986
  }
1987
1987
  async _updatePasswordPolicy() {
1988
- const e = await Pi(this), t = new Ni(e);
1988
+ const e = await Ai(this), t = new Ci(e);
1989
1989
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1990
1990
  }
1991
1991
  _getPersistence() {
@@ -2025,7 +2025,7 @@ class Oi {
2025
2025
  token: e,
2026
2026
  idToken: t
2027
2027
  };
2028
- this.tenantId != null && (i.tenantId = this.tenantId), await bi(this, i);
2028
+ this.tenantId != null && (i.tenantId = this.tenantId), await ki(this, i);
2029
2029
  }
2030
2030
  }
2031
2031
  toJSON() {
@@ -2138,7 +2138,7 @@ class Oi {
2138
2138
  ), this.persistenceManager;
2139
2139
  }
2140
2140
  _logFramework(e) {
2141
- !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Gt(this.config.clientPlatform, this._getFrameworks()));
2141
+ !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
2142
2142
  }
2143
2143
  _getFrameworks() {
2144
2144
  return this.frameworks;
@@ -2168,7 +2168,7 @@ class Oi {
2168
2168
  async _getAppCheckToken() {
2169
2169
  var e;
2170
2170
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2171
- return t != null && t.error && ui(`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;
2172
2172
  }
2173
2173
  }
2174
2174
  function be(n) {
@@ -2176,7 +2176,7 @@ function be(n) {
2176
2176
  }
2177
2177
  class at {
2178
2178
  constructor(e) {
2179
- this.auth = e, this.observer = null, this.addObserver = Pn((t) => this.observer = t);
2179
+ this.auth = e, this.observer = null, this.addObserver = An((t) => this.observer = t);
2180
2180
  }
2181
2181
  get next() {
2182
2182
  return u(
@@ -2203,7 +2203,7 @@ class at {
2203
2203
  * See the License for the specific language governing permissions and
2204
2204
  * limitations under the License.
2205
2205
  */
2206
- let Be = {
2206
+ let Ge = {
2207
2207
  async loadJS() {
2208
2208
  throw new Error("Unable to load external scripts");
2209
2209
  },
@@ -2211,16 +2211,16 @@ let Be = {
2211
2211
  recaptchaEnterpriseScript: "",
2212
2212
  gapiScript: ""
2213
2213
  };
2214
- function Li(n) {
2215
- Be = n;
2214
+ function Oi(n) {
2215
+ Ge = n;
2216
2216
  }
2217
- function Mi(n) {
2218
- return Be.loadJS(n);
2217
+ function Li(n) {
2218
+ return Ge.loadJS(n);
2219
2219
  }
2220
- function Ui() {
2221
- return Be.gapiScript;
2220
+ function Mi() {
2221
+ return Ge.gapiScript;
2222
2222
  }
2223
- function Di(n) {
2223
+ function Ui(n) {
2224
2224
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2225
2225
  }
2226
2226
  /**
@@ -2239,11 +2239,11 @@ function Di(n) {
2239
2239
  * See the License for the specific language governing permissions and
2240
2240
  * limitations under the License.
2241
2241
  */
2242
- function xi(n, e) {
2242
+ function Di(n, e) {
2243
2243
  const t = bt(n, "auth");
2244
2244
  if (t.isInitialized()) {
2245
2245
  const r = t.getImmediate(), s = t.getOptions();
2246
- if (On(s, e ?? {}))
2246
+ if (Nn(s, e ?? {}))
2247
2247
  return r;
2248
2248
  O(
2249
2249
  r,
@@ -2253,11 +2253,11 @@ function xi(n, e) {
2253
2253
  }
2254
2254
  return t.initialize({ options: e });
2255
2255
  }
2256
- function Fi(n, e) {
2256
+ function xi(n, e) {
2257
2257
  const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2258
2258
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2259
2259
  }
2260
- function Vi(n, e, t) {
2260
+ function Fi(n, e, t) {
2261
2261
  const i = be(n);
2262
2262
  u(
2263
2263
  i._canInitEmulator,
@@ -2270,20 +2270,20 @@ function Vi(n, e, t) {
2270
2270
  "invalid-emulator-scheme"
2271
2271
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2272
2272
  );
2273
- const r = !1, s = Bt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
2273
+ const r = !1, s = Gt(e), { host: o, port: c } = Vi(e), a = c === null ? "" : `:${c}`;
2274
2274
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2275
2275
  host: o,
2276
2276
  port: c,
2277
2277
  protocol: s.replace(":", ""),
2278
2278
  options: Object.freeze({ disableWarnings: r })
2279
- }), Hi();
2279
+ }), $i();
2280
2280
  }
2281
- function Bt(n) {
2281
+ function Gt(n) {
2282
2282
  const e = n.indexOf(":");
2283
2283
  return e < 0 ? "" : n.substr(0, e + 1);
2284
2284
  }
2285
- function $i(n) {
2286
- const e = Bt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2285
+ function Vi(n) {
2286
+ const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2287
2287
  if (!t)
2288
2288
  return { host: "", port: null };
2289
2289
  const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
@@ -2301,7 +2301,7 @@ function ct(n) {
2301
2301
  const e = Number(n);
2302
2302
  return isNaN(e) ? null : e;
2303
2303
  }
2304
- function Hi() {
2304
+ function $i() {
2305
2305
  function n() {
2306
2306
  const e = document.createElement("p"), t = e.style;
2307
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);
@@ -2385,14 +2385,14 @@ async function J(n, e) {
2385
2385
  * See the License for the specific language governing permissions and
2386
2386
  * limitations under the License.
2387
2387
  */
2388
- const Wi = "http://localhost";
2389
- class G extends zt {
2388
+ const Hi = "http://localhost";
2389
+ class B extends zt {
2390
2390
  constructor() {
2391
2391
  super(...arguments), this.pendingToken = null;
2392
2392
  }
2393
2393
  /** @internal */
2394
2394
  static _fromParams(e) {
2395
- const t = new G(e.providerId, e.signInMethod);
2395
+ const t = new B(e.providerId, e.signInMethod);
2396
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(
2397
2397
  "argument-error"
2398
2398
  /* AuthErrorCode.ARGUMENT_ERROR */
@@ -2423,7 +2423,7 @@ class G extends zt {
2423
2423
  const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
2424
2424
  if (!i || !r)
2425
2425
  return null;
2426
- const o = new G(i, r);
2426
+ const o = new B(i, r);
2427
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;
2428
2428
  }
2429
2429
  /** @internal */
@@ -2443,7 +2443,7 @@ class G extends zt {
2443
2443
  }
2444
2444
  buildRequest() {
2445
2445
  const e = {
2446
- requestUri: Wi,
2446
+ requestUri: Hi,
2447
2447
  returnSecureToken: !0
2448
2448
  };
2449
2449
  if (this.pendingToken)
@@ -2579,7 +2579,7 @@ class x extends ce {
2579
2579
  * @param accessToken - Facebook access token.
2580
2580
  */
2581
2581
  static credential(e) {
2582
- return G._fromParams({
2582
+ return B._fromParams({
2583
2583
  providerId: x.PROVIDER_ID,
2584
2584
  signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
2585
2585
  accessToken: e
@@ -2651,7 +2651,7 @@ class F extends ce {
2651
2651
  * @param accessToken - Google access token.
2652
2652
  */
2653
2653
  static credential(e, t) {
2654
- return G._fromParams({
2654
+ return B._fromParams({
2655
2655
  providerId: F.PROVIDER_ID,
2656
2656
  signInMethod: F.GOOGLE_SIGN_IN_METHOD,
2657
2657
  idToken: e,
@@ -2719,7 +2719,7 @@ class V extends ce {
2719
2719
  * @param accessToken - Github access token.
2720
2720
  */
2721
2721
  static credential(e) {
2722
- return G._fromParams({
2722
+ return B._fromParams({
2723
2723
  providerId: V.PROVIDER_ID,
2724
2724
  signInMethod: V.GITHUB_SIGN_IN_METHOD,
2725
2725
  accessToken: e
@@ -2784,7 +2784,7 @@ class $ extends ce {
2784
2784
  * @param secret - Twitter secret.
2785
2785
  */
2786
2786
  static credential(e, t) {
2787
- return G._fromParams({
2787
+ return B._fromParams({
2788
2788
  providerId: $.PROVIDER_ID,
2789
2789
  signInMethod: $.TWITTER_SIGN_IN_METHOD,
2790
2790
  oauthToken: e,
@@ -2839,13 +2839,13 @@ $.PROVIDER_ID = "twitter.com";
2839
2839
  * See the License for the specific language governing permissions and
2840
2840
  * limitations under the License.
2841
2841
  */
2842
- class B {
2842
+ class G {
2843
2843
  constructor(e) {
2844
2844
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2845
2845
  }
2846
2846
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2847
2847
  const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
2848
- return new B({
2848
+ return new G({
2849
2849
  user: s,
2850
2850
  providerId: o,
2851
2851
  _tokenResponse: i,
@@ -2859,7 +2859,7 @@ class B {
2859
2859
  !0
2860
2860
  );
2861
2861
  const r = lt(i);
2862
- return new B({
2862
+ return new G({
2863
2863
  user: e,
2864
2864
  providerId: r,
2865
2865
  _tokenResponse: i,
@@ -2905,9 +2905,9 @@ function Kt(n, e, t, i) {
2905
2905
  throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
2906
2906
  });
2907
2907
  }
2908
- async function ji(n, e, t = !1) {
2908
+ async function Wi(n, e, t = !1) {
2909
2909
  const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2910
- return B._forOperation(n, "link", i);
2910
+ return G._forOperation(n, "link", i);
2911
2911
  }
2912
2912
  /**
2913
2913
  * @license
@@ -2925,7 +2925,7 @@ async function ji(n, e, t = !1) {
2925
2925
  * See the License for the specific language governing permissions and
2926
2926
  * limitations under the License.
2927
2927
  */
2928
- async function Gi(n, e, t = !1) {
2928
+ async function ji(n, e, t = !1) {
2929
2929
  const { auth: i } = n;
2930
2930
  if (A(i.app))
2931
2931
  return Promise.reject(H(i));
@@ -2951,7 +2951,7 @@ async function Gi(n, e, t = !1) {
2951
2951
  i,
2952
2952
  "user-mismatch"
2953
2953
  /* AuthErrorCode.USER_MISMATCH */
2954
- ), B._forOperation(n, r, s);
2954
+ ), G._forOperation(n, r, s);
2955
2955
  } catch (s) {
2956
2956
  throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
2957
2957
  i,
@@ -2979,7 +2979,7 @@ async function Gi(n, e, t = !1) {
2979
2979
  async function Bi(n, e, t = !1) {
2980
2980
  if (A(n.app))
2981
2981
  return Promise.reject(H(n));
2982
- const i = "signIn", r = await Kt(n, i, e), s = await B._fromIdTokenResponse(n, i, r);
2982
+ const i = "signIn", r = await Kt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
2983
2983
  return t || await n._updateCurrentUser(s.user), s;
2984
2984
  }
2985
2985
  /**
@@ -2998,7 +2998,7 @@ async function Bi(n, e, t = !1) {
2998
2998
  * See the License for the specific language governing permissions and
2999
2999
  * limitations under the License.
3000
3000
  */
3001
- async function zi(n, e) {
3001
+ async function Gi(n, e) {
3002
3002
  return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
3003
3003
  }
3004
3004
  /**
@@ -3017,19 +3017,19 @@ async function zi(n, e) {
3017
3017
  * See the License for the specific language governing permissions and
3018
3018
  * limitations under the License.
3019
3019
  */
3020
- async function qi(n, e) {
3020
+ async function zi(n, e) {
3021
3021
  if (A(n.app))
3022
3022
  return Promise.reject(H(n));
3023
- const t = be(n), i = await zi(t, {
3023
+ const t = be(n), i = await Gi(t, {
3024
3024
  token: e,
3025
3025
  returnSecureToken: !0
3026
- }), r = await B._fromIdTokenResponse(t, "signIn", i);
3026
+ }), r = await G._fromIdTokenResponse(t, "signIn", i);
3027
3027
  return await t._updateCurrentUser(r.user), r;
3028
3028
  }
3029
- function Ki(n, e, t, i) {
3029
+ function qi(n, e, t, i) {
3030
3030
  return X(n).onIdTokenChanged(e, t, i);
3031
3031
  }
3032
- function Ji(n, e, t) {
3032
+ function Ki(n, e, t) {
3033
3033
  return X(n).beforeAuthStateChanged(e, t);
3034
3034
  }
3035
3035
  const ye = "__sak";
@@ -3090,18 +3090,18 @@ class Jt {
3090
3090
  * See the License for the specific language governing permissions and
3091
3091
  * limitations under the License.
3092
3092
  */
3093
- function Yi() {
3093
+ function Ji() {
3094
3094
  const n = w();
3095
- return Ge(n) || ke(n);
3095
+ return Be(n) || ke(n);
3096
3096
  }
3097
- const Xi = 1e3, Qi = 10;
3097
+ const Yi = 1e3, Xi = 10;
3098
3098
  class Yt extends Jt {
3099
3099
  constructor() {
3100
3100
  super(
3101
3101
  () => window.localStorage,
3102
3102
  "LOCAL"
3103
3103
  /* PersistenceType.LOCAL */
3104
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling = jt(), 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;
3105
3105
  }
3106
3106
  forAllChangedKeys(e) {
3107
3107
  for (const t of Object.keys(this.listeners)) {
@@ -3128,7 +3128,7 @@ class Yt extends Jt {
3128
3128
  const o = this.storage.getItem(i);
3129
3129
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3130
3130
  }, s = this.storage.getItem(i);
3131
- Si() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Qi) : r();
3131
+ Ei() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Xi) : r();
3132
3132
  }
3133
3133
  notifyListeners(e, t) {
3134
3134
  this.localCache[e] = t;
@@ -3150,7 +3150,7 @@ class Yt extends Jt {
3150
3150
  !0
3151
3151
  );
3152
3152
  });
3153
- }, Xi);
3153
+ }, Yi);
3154
3154
  }
3155
3155
  stopPolling() {
3156
3156
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3180,7 +3180,7 @@ class Yt extends Jt {
3180
3180
  }
3181
3181
  }
3182
3182
  Yt.type = "LOCAL";
3183
- const Zi = Yt;
3183
+ const Qi = Yt;
3184
3184
  /**
3185
3185
  * @license
3186
3186
  * Copyright 2020 Google LLC
@@ -3228,7 +3228,7 @@ const Qt = Xt;
3228
3228
  * See the License for the specific language governing permissions and
3229
3229
  * limitations under the License.
3230
3230
  */
3231
- function er(n) {
3231
+ function Zi(n) {
3232
3232
  return Promise.all(n.map(async (e) => {
3233
3233
  try {
3234
3234
  return {
@@ -3298,7 +3298,7 @@ class Ee {
3298
3298
  eventId: i,
3299
3299
  eventType: r
3300
3300
  });
3301
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await er(c);
3301
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Zi(c);
3302
3302
  t.ports[0].postMessage({
3303
3303
  status: "done",
3304
3304
  eventId: i,
@@ -3366,7 +3366,7 @@ function ze(n = "", e = 10) {
3366
3366
  * See the License for the specific language governing permissions and
3367
3367
  * limitations under the License.
3368
3368
  */
3369
- class tr {
3369
+ class er {
3370
3370
  constructor(e) {
3371
3371
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3372
3372
  }
@@ -3466,7 +3466,7 @@ class tr {
3466
3466
  function E() {
3467
3467
  return window;
3468
3468
  }
3469
- function nr(n) {
3469
+ function tr(n) {
3470
3470
  E().location.href = n;
3471
3471
  }
3472
3472
  /**
@@ -3488,7 +3488,7 @@ function nr(n) {
3488
3488
  function Zt() {
3489
3489
  return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3490
3490
  }
3491
- async function ir() {
3491
+ async function nr() {
3492
3492
  if (!(navigator != null && navigator.serviceWorker))
3493
3493
  return null;
3494
3494
  try {
@@ -3497,11 +3497,11 @@ async function ir() {
3497
3497
  return null;
3498
3498
  }
3499
3499
  }
3500
- function rr() {
3500
+ function ir() {
3501
3501
  var n;
3502
3502
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3503
3503
  }
3504
- function sr() {
3504
+ function rr() {
3505
3505
  return Zt() ? self : null;
3506
3506
  }
3507
3507
  /**
@@ -3520,7 +3520,7 @@ function sr() {
3520
3520
  * See the License for the specific language governing permissions and
3521
3521
  * limitations under the License.
3522
3522
  */
3523
- const en = "firebaseLocalStorageDb", or = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3523
+ const en = "firebaseLocalStorageDb", sr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3524
3524
  class le {
3525
3525
  constructor(e) {
3526
3526
  this.request = e;
@@ -3538,12 +3538,12 @@ class le {
3538
3538
  function Se(n, e) {
3539
3539
  return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3540
3540
  }
3541
- function ar() {
3541
+ function or() {
3542
3542
  const n = indexedDB.deleteDatabase(en);
3543
3543
  return new le(n).toPromise();
3544
3544
  }
3545
3545
  function De() {
3546
- const n = indexedDB.open(en, or);
3546
+ const n = indexedDB.open(en, sr);
3547
3547
  return new Promise((e, t) => {
3548
3548
  n.addEventListener("error", () => {
3549
3549
  t(n.error);
@@ -3556,7 +3556,7 @@ function De() {
3556
3556
  }
3557
3557
  }), n.addEventListener("success", async () => {
3558
3558
  const i = n.result;
3559
- i.objectStoreNames.contains(we) ? e(i) : (i.close(), await ar(), e(await De()));
3559
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await or(), e(await De()));
3560
3560
  });
3561
3561
  });
3562
3562
  }
@@ -3567,7 +3567,7 @@ async function ut(n, e, t) {
3567
3567
  });
3568
3568
  return new le(i).toPromise();
3569
3569
  }
3570
- async function cr(n, e) {
3570
+ async function ar(n, e) {
3571
3571
  const t = Se(n, !1).get(e), i = await new le(t).toPromise();
3572
3572
  return i === void 0 ? null : i.value;
3573
3573
  }
@@ -3575,7 +3575,7 @@ function dt(n, e) {
3575
3575
  const t = Se(n, !0).delete(e);
3576
3576
  return new le(t).toPromise();
3577
3577
  }
3578
- const lr = 800, ur = 3;
3578
+ const cr = 800, lr = 3;
3579
3579
  class nn {
3580
3580
  constructor() {
3581
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(() => {
@@ -3592,7 +3592,7 @@ class nn {
3592
3592
  const i = await this._openDb();
3593
3593
  return await e(i);
3594
3594
  } catch (i) {
3595
- if (t++ > ur)
3595
+ if (t++ > lr)
3596
3596
  throw i;
3597
3597
  this.db && (this.db.close(), this.db = void 0);
3598
3598
  }
@@ -3608,7 +3608,7 @@ class nn {
3608
3608
  * As the worker we should listen to events from the main window.
3609
3609
  */
3610
3610
  async initializeReceiver() {
3611
- this.receiver = Ee._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3611
+ this.receiver = Ee._getInstance(rr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3612
3612
  keyProcessed: (await this._poll()).includes(t.key)
3613
3613
  })), this.receiver._subscribe("ping", async (e, t) => [
3614
3614
  "keyChanged"
@@ -3624,9 +3624,9 @@ class nn {
3624
3624
  */
3625
3625
  async initializeSender() {
3626
3626
  var e, t;
3627
- if (this.activeServiceWorker = await ir(), !this.activeServiceWorker)
3627
+ if (this.activeServiceWorker = await nr(), !this.activeServiceWorker)
3628
3628
  return;
3629
- this.sender = new tr(this.activeServiceWorker);
3629
+ this.sender = new er(this.activeServiceWorker);
3630
3630
  const i = await this.sender._send(
3631
3631
  "ping",
3632
3632
  {},
@@ -3648,7 +3648,7 @@ class nn {
3648
3648
  * @param key - Storage key which changed.
3649
3649
  */
3650
3650
  async notifyServiceWorker(e) {
3651
- if (!(!this.sender || !this.activeServiceWorker || rr() !== this.activeServiceWorker))
3651
+ if (!(!this.sender || !this.activeServiceWorker || ir() !== this.activeServiceWorker))
3652
3652
  try {
3653
3653
  await this.sender._send(
3654
3654
  "keyChanged",
@@ -3682,7 +3682,7 @@ class nn {
3682
3682
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3683
3683
  }
3684
3684
  async _get(e) {
3685
- const t = await this._withRetries((i) => cr(i, e));
3685
+ const t = await this._withRetries((i) => ar(i, e));
3686
3686
  return this.localCache[e] = t, t;
3687
3687
  }
3688
3688
  async _remove(e) {
@@ -3713,7 +3713,7 @@ class nn {
3713
3713
  r(t);
3714
3714
  }
3715
3715
  startPolling() {
3716
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), lr);
3716
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), cr);
3717
3717
  }
3718
3718
  stopPolling() {
3719
3719
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3726,7 +3726,7 @@ class nn {
3726
3726
  }
3727
3727
  }
3728
3728
  nn.type = "LOCAL";
3729
- const dr = nn;
3729
+ const ur = nn;
3730
3730
  new ae(3e4, 6e4);
3731
3731
  /**
3732
3732
  * @license
@@ -3744,7 +3744,7 @@ new ae(3e4, 6e4);
3744
3744
  * See the License for the specific language governing permissions and
3745
3745
  * limitations under the License.
3746
3746
  */
3747
- function hr(n, e) {
3747
+ function dr(n, e) {
3748
3748
  return e ? N(e) : (u(
3749
3749
  n._popupRedirectResolver,
3750
3750
  n,
@@ -3798,26 +3798,26 @@ class qe extends zt {
3798
3798
  return e && (t.idToken = e), t;
3799
3799
  }
3800
3800
  }
3801
- function fr(n) {
3801
+ function hr(n) {
3802
3802
  return Bi(n.auth, new qe(n), n.bypassAuthState);
3803
3803
  }
3804
- function pr(n) {
3804
+ function fr(n) {
3805
3805
  const { auth: e, user: t } = n;
3806
3806
  return u(
3807
3807
  t,
3808
3808
  e,
3809
3809
  "internal-error"
3810
3810
  /* AuthErrorCode.INTERNAL_ERROR */
3811
- ), Gi(t, new qe(n), n.bypassAuthState);
3811
+ ), ji(t, new qe(n), n.bypassAuthState);
3812
3812
  }
3813
- async function mr(n) {
3813
+ async function pr(n) {
3814
3814
  const { auth: e, user: t } = n;
3815
3815
  return u(
3816
3816
  t,
3817
3817
  e,
3818
3818
  "internal-error"
3819
3819
  /* AuthErrorCode.INTERNAL_ERROR */
3820
- ), ji(t, new qe(n), n.bypassAuthState);
3820
+ ), Wi(t, new qe(n), n.bypassAuthState);
3821
3821
  }
3822
3822
  /**
3823
3823
  * @license
@@ -3877,13 +3877,13 @@ class rn {
3877
3877
  switch (e) {
3878
3878
  case "signInViaPopup":
3879
3879
  case "signInViaRedirect":
3880
- return fr;
3880
+ return hr;
3881
3881
  case "linkViaPopup":
3882
3882
  case "linkViaRedirect":
3883
- return mr;
3883
+ return pr;
3884
3884
  case "reauthViaPopup":
3885
3885
  case "reauthViaRedirect":
3886
- return pr;
3886
+ return fr;
3887
3887
  default:
3888
3888
  O(
3889
3889
  this.auth,
@@ -3918,7 +3918,7 @@ class rn {
3918
3918
  * See the License for the specific language governing permissions and
3919
3919
  * limitations under the License.
3920
3920
  */
3921
- const gr = new ae(2e3, 1e4);
3921
+ const mr = new ae(2e3, 1e4);
3922
3922
  class z extends rn {
3923
3923
  constructor(e, t, i, r, s) {
3924
3924
  super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
@@ -3982,7 +3982,7 @@ class z extends rn {
3982
3982
  );
3983
3983
  return;
3984
3984
  }
3985
- this.pollId = window.setTimeout(e, gr.get());
3985
+ this.pollId = window.setTimeout(e, mr.get());
3986
3986
  };
3987
3987
  e();
3988
3988
  }
@@ -4004,8 +4004,8 @@ z.currentPopupAction = null;
4004
4004
  * See the License for the specific language governing permissions and
4005
4005
  * limitations under the License.
4006
4006
  */
4007
- const _r = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4008
- class vr extends rn {
4007
+ const gr = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4008
+ class _r extends rn {
4009
4009
  constructor(e, t, i = !1) {
4010
4010
  super(e, [
4011
4011
  "signInViaRedirect",
@@ -4023,7 +4023,7 @@ class vr extends rn {
4023
4023
  let e = fe.get(this.auth._key());
4024
4024
  if (!e) {
4025
4025
  try {
4026
- const i = await Ir(this.resolver, this.auth) ? await super.execute() : null;
4026
+ const i = await vr(this.resolver, this.auth) ? await super.execute() : null;
4027
4027
  e = () => Promise.resolve(i);
4028
4028
  } catch (t) {
4029
4029
  e = () => Promise.reject(t);
@@ -4051,26 +4051,26 @@ class vr extends rn {
4051
4051
  cleanUp() {
4052
4052
  }
4053
4053
  }
4054
- async function Ir(n, e) {
4055
- const t = Tr(e), i = wr(n);
4054
+ async function vr(n, e) {
4055
+ const t = wr(e), i = yr(n);
4056
4056
  if (!await i._isAvailable())
4057
4057
  return !1;
4058
4058
  const r = await i._get(t) === "true";
4059
4059
  return await i._remove(t), r;
4060
4060
  }
4061
- function yr(n, e) {
4061
+ function Ir(n, e) {
4062
4062
  fe.set(n._key(), e);
4063
4063
  }
4064
- function wr(n) {
4064
+ function yr(n) {
4065
4065
  return N(n._redirectPersistence);
4066
4066
  }
4067
- function Tr(n) {
4068
- return he(_r, n.config.apiKey, n.name);
4067
+ function wr(n) {
4068
+ return he(gr, n.config.apiKey, n.name);
4069
4069
  }
4070
- async function kr(n, e, t = !1) {
4070
+ async function Tr(n, e, t = !1) {
4071
4071
  if (A(n.app))
4072
4072
  return Promise.reject(H(n));
4073
- const i = be(n), r = hr(i, e), o = await new vr(i, r, t).execute();
4073
+ const i = be(n), r = dr(i, e), o = await new _r(i, r, t).execute();
4074
4074
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4075
4075
  }
4076
4076
  /**
@@ -4089,8 +4089,8 @@ async function kr(n, e, t = !1) {
4089
4089
  * See the License for the specific language governing permissions and
4090
4090
  * limitations under the License.
4091
4091
  */
4092
- const br = 10 * 60 * 1e3;
4093
- class Er {
4092
+ const kr = 10 * 60 * 1e3;
4093
+ class br {
4094
4094
  constructor(e) {
4095
4095
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4096
4096
  }
@@ -4106,7 +4106,7 @@ class Er {
4106
4106
  let t = !1;
4107
4107
  return this.consumers.forEach((i) => {
4108
4108
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4109
- }), this.hasHandledPotentialRedirect || !Sr(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;
4110
4110
  }
4111
4111
  sendToConsumer(e, t) {
4112
4112
  var i;
@@ -4121,7 +4121,7 @@ class Er {
4121
4121
  return t.filter.includes(e.type) && i;
4122
4122
  }
4123
4123
  hasEventBeenHandled(e) {
4124
- return Date.now() - this.lastProcessedEventTime >= br && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4124
+ return Date.now() - this.lastProcessedEventTime >= kr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4125
4125
  }
4126
4126
  saveEventToCache(e) {
4127
4127
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4133,7 +4133,7 @@ function ht(n) {
4133
4133
  function sn({ type: n, error: e }) {
4134
4134
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4135
4135
  }
4136
- function Sr(n) {
4136
+ function Er(n) {
4137
4137
  switch (n.type) {
4138
4138
  case "signInViaRedirect":
4139
4139
  case "linkViaRedirect":
@@ -4161,7 +4161,7 @@ function Sr(n) {
4161
4161
  * See the License for the specific language governing permissions and
4162
4162
  * limitations under the License.
4163
4163
  */
4164
- async function Rr(n, e = {}) {
4164
+ async function Sr(n, e = {}) {
4165
4165
  return Q(n, "GET", "/v1/projects", e);
4166
4166
  }
4167
4167
  /**
@@ -4180,14 +4180,14 @@ async function Rr(n, e = {}) {
4180
4180
  * See the License for the specific language governing permissions and
4181
4181
  * limitations under the License.
4182
4182
  */
4183
- const Ar = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Pr = /^https?/;
4184
- async function Cr(n) {
4183
+ const Rr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
4184
+ async function Pr(n) {
4185
4185
  if (n.config.emulator)
4186
4186
  return;
4187
- const { authorizedDomains: e } = await Rr(n);
4187
+ const { authorizedDomains: e } = await Sr(n);
4188
4188
  for (const t of e)
4189
4189
  try {
4190
- if (Nr(t))
4190
+ if (Cr(t))
4191
4191
  return;
4192
4192
  } catch {
4193
4193
  }
@@ -4197,15 +4197,15 @@ async function Cr(n) {
4197
4197
  /* AuthErrorCode.INVALID_ORIGIN */
4198
4198
  );
4199
4199
  }
4200
- function Nr(n) {
4200
+ function Cr(n) {
4201
4201
  const e = Me(), { protocol: t, hostname: i } = new URL(e);
4202
4202
  if (n.startsWith("chrome-extension://")) {
4203
4203
  const o = new URL(n);
4204
4204
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4205
4205
  }
4206
- if (!Pr.test(t))
4206
+ if (!Ar.test(t))
4207
4207
  return !1;
4208
- if (Ar.test(n))
4208
+ if (Rr.test(n))
4209
4209
  return i === n;
4210
4210
  const r = n.replace(/\./g, "\\.");
4211
4211
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4226,7 +4226,7 @@ function Nr(n) {
4226
4226
  * See the License for the specific language governing permissions and
4227
4227
  * limitations under the License.
4228
4228
  */
4229
- const Or = new ae(3e4, 6e4);
4229
+ const Nr = new ae(3e4, 6e4);
4230
4230
  function ft() {
4231
4231
  const n = E().___jsl;
4232
4232
  if (n != null && n.H) {
@@ -4236,7 +4236,7 @@ function ft() {
4236
4236
  n.CP[t] = null;
4237
4237
  }
4238
4238
  }
4239
- function Lr(n) {
4239
+ function Or(n) {
4240
4240
  return new Promise((e, t) => {
4241
4241
  var i, r, s;
4242
4242
  function o() {
@@ -4251,7 +4251,7 @@ function Lr(n) {
4251
4251
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4252
4252
  ));
4253
4253
  },
4254
- timeout: Or.get()
4254
+ timeout: Nr.get()
4255
4255
  });
4256
4256
  }
4257
4257
  if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
@@ -4259,22 +4259,22 @@ function Lr(n) {
4259
4259
  else if (!((s = E().gapi) === null || s === void 0) && s.load)
4260
4260
  o();
4261
4261
  else {
4262
- const c = Di("iframefcb");
4262
+ const c = Ui("iframefcb");
4263
4263
  return E()[c] = () => {
4264
4264
  gapi.load ? o() : t(b(
4265
4265
  n,
4266
4266
  "network-request-failed"
4267
4267
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4268
4268
  ));
4269
- }, Mi(`${Ui()}?onload=${c}`).catch((a) => t(a));
4269
+ }, Li(`${Mi()}?onload=${c}`).catch((a) => t(a));
4270
4270
  }
4271
4271
  }).catch((e) => {
4272
4272
  throw pe = null, e;
4273
4273
  });
4274
4274
  }
4275
4275
  let pe = null;
4276
- function Mr(n) {
4277
- return pe = pe || Lr(n), pe;
4276
+ function Lr(n) {
4277
+ return pe = pe || Or(n), pe;
4278
4278
  }
4279
4279
  /**
4280
4280
  * @license
@@ -4292,7 +4292,7 @@ function Mr(n) {
4292
4292
  * See the License for the specific language governing permissions and
4293
4293
  * limitations under the License.
4294
4294
  */
4295
- const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe", Fr = {
4295
+ const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe", xr = {
4296
4296
  style: {
4297
4297
  position: "absolute",
4298
4298
  top: "-100px",
@@ -4301,13 +4301,13 @@ const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe"
4301
4301
  },
4302
4302
  "aria-hidden": "true",
4303
4303
  tabindex: "-1"
4304
- }, Vr = /* @__PURE__ */ new Map([
4304
+ }, Fr = /* @__PURE__ */ new Map([
4305
4305
  ["identitytoolkit.googleapis.com", "p"],
4306
4306
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4307
4307
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4308
4308
  // test
4309
4309
  ]);
4310
- function $r(n) {
4310
+ function Vr(n) {
4311
4311
  const e = n.config;
4312
4312
  u(
4313
4313
  e.authDomain,
@@ -4315,17 +4315,17 @@ function $r(n) {
4315
4315
  "auth-domain-config-required"
4316
4316
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4317
4317
  );
4318
- const t = e.emulator ? We(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
4318
+ const t = e.emulator ? We(e, Dr) : `https://${n.config.authDomain}/${Ur}`, i = {
4319
4319
  apiKey: e.apiKey,
4320
4320
  appName: n.name,
4321
4321
  v: se
4322
- }, r = Vr.get(n.config.apiHost);
4322
+ }, r = Fr.get(n.config.apiHost);
4323
4323
  r && (i.eid = r);
4324
4324
  const s = n._getFrameworks();
4325
4325
  return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
4326
4326
  }
4327
- async function Hr(n) {
4328
- const e = await Mr(n), t = E().gapi;
4327
+ async function $r(n) {
4328
+ const e = await Lr(n), t = E().gapi;
4329
4329
  return u(
4330
4330
  t,
4331
4331
  n,
@@ -4333,9 +4333,9 @@ async function Hr(n) {
4333
4333
  /* AuthErrorCode.INTERNAL_ERROR */
4334
4334
  ), e.open({
4335
4335
  where: document.body,
4336
- url: $r(n),
4336
+ url: Vr(n),
4337
4337
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4338
- attributes: Fr,
4338
+ attributes: xr,
4339
4339
  dontclear: !0
4340
4340
  }, (i) => new Promise(async (r, s) => {
4341
4341
  await i.restyle({
@@ -4348,7 +4348,7 @@ async function Hr(n) {
4348
4348
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4349
4349
  ), c = E().setTimeout(() => {
4350
4350
  s(o);
4351
- }, Ur.get());
4351
+ }, Mr.get());
4352
4352
  function a() {
4353
4353
  E().clearTimeout(c), r(i);
4354
4354
  }
@@ -4373,12 +4373,12 @@ async function Hr(n) {
4373
4373
  * See the License for the specific language governing permissions and
4374
4374
  * limitations under the License.
4375
4375
  */
4376
- const Wr = {
4376
+ const Hr = {
4377
4377
  location: "yes",
4378
4378
  resizable: "yes",
4379
4379
  statusbar: "yes",
4380
4380
  toolbar: "no"
4381
- }, jr = 500, Gr = 600, Br = "_blank", zr = "http://localhost";
4381
+ }, Wr = 500, jr = 600, Br = "_blank", Gr = "http://localhost";
4382
4382
  class pt {
4383
4383
  constructor(e) {
4384
4384
  this.window = e, this.associatedEvent = null;
@@ -4391,19 +4391,19 @@ class pt {
4391
4391
  }
4392
4392
  }
4393
4393
  }
4394
- function qr(n, e, t, i = jr, r = Gr) {
4394
+ function zr(n, e, t, i = Wr, r = jr) {
4395
4395
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4396
4396
  let c = "";
4397
- const a = Object.assign(Object.assign({}, Wr), {
4397
+ const a = Object.assign(Object.assign({}, Hr), {
4398
4398
  width: i.toString(),
4399
4399
  height: r.toString(),
4400
4400
  top: s,
4401
4401
  left: o
4402
4402
  }), l = w().toLowerCase();
4403
- t && (c = Ft(l) ? Br : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
4403
+ t && (c = Ft(l) ? Br : t), xt(l) && (e = e || Gr, a.scrollbars = "yes");
4404
4404
  const d = Object.entries(a).reduce((y, [T, h]) => `${y}${T}=${h},`, "");
4405
- if (Ei(l) && c !== "_self")
4406
- return Kr(e || "", c), new pt(null);
4405
+ if (bi(l) && c !== "_self")
4406
+ return qr(e || "", c), new pt(null);
4407
4407
  const m = window.open(e || "", c, d);
4408
4408
  u(
4409
4409
  m,
@@ -4417,7 +4417,7 @@ function qr(n, e, t, i = jr, r = Gr) {
4417
4417
  }
4418
4418
  return new pt(m);
4419
4419
  }
4420
- function Kr(n, e) {
4420
+ function qr(n, e) {
4421
4421
  const t = document.createElement("a");
4422
4422
  t.href = n, t.target = e;
4423
4423
  const i = document.createEvent("MouseEvent");
@@ -4439,7 +4439,7 @@ function Kr(n, e) {
4439
4439
  * See the License for the specific language governing permissions and
4440
4440
  * limitations under the License.
4441
4441
  */
4442
- const Jr = "__/auth/handler", Yr = "emulator/auth/handler", Xr = encodeURIComponent("fac");
4442
+ const Kr = "__/auth/handler", Jr = "emulator/auth/handler", Yr = encodeURIComponent("fac");
4443
4443
  async function mt(n, e, t, i, r, s) {
4444
4444
  u(
4445
4445
  n.config.authDomain,
@@ -4461,7 +4461,7 @@ async function mt(n, e, t, i, r, s) {
4461
4461
  eventId: r
4462
4462
  };
4463
4463
  if (e instanceof qt) {
4464
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Un(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()));
4465
4465
  for (const [d, m] of Object.entries({}))
4466
4466
  o[d] = m;
4467
4467
  }
@@ -4473,11 +4473,11 @@ async function mt(n, e, t, i, r, s) {
4473
4473
  const c = o;
4474
4474
  for (const d of Object.keys(c))
4475
4475
  c[d] === void 0 && delete c[d];
4476
- const a = await n._getAppCheckToken(), l = a ? `#${Xr}=${encodeURIComponent(a)}` : "";
4477
- return `${Qr(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}`;
4478
4478
  }
4479
- function Qr({ config: n }) {
4480
- return n.emulator ? We(n, Yr) : `https://${n.authDomain}/${Jr}`;
4479
+ function Xr({ config: n }) {
4480
+ return n.emulator ? We(n, Jr) : `https://${n.authDomain}/${Kr}`;
4481
4481
  }
4482
4482
  /**
4483
4483
  * @license
@@ -4496,9 +4496,9 @@ function Qr({ config: n }) {
4496
4496
  * limitations under the License.
4497
4497
  */
4498
4498
  const Ne = "webStorageSupport";
4499
- class Zr {
4499
+ class Qr {
4500
4500
  constructor() {
4501
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = kr, this._overrideRedirectResult = yr;
4501
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = Tr, this._overrideRedirectResult = Ir;
4502
4502
  }
4503
4503
  // Wrapping in async even though we don't await anywhere in order
4504
4504
  // to make sure errors are raised as promise rejections
@@ -4506,12 +4506,12 @@ class Zr {
4506
4506
  var s;
4507
4507
  L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4508
4508
  const o = await mt(e, t, i, Me(), r);
4509
- return qr(e, o, ze());
4509
+ return zr(e, o, ze());
4510
4510
  }
4511
4511
  async _openRedirect(e, t, i, r) {
4512
4512
  await this._originValidation(e);
4513
4513
  const s = await mt(e, t, i, Me(), r);
4514
- return nr(s), new Promise(() => {
4514
+ return tr(s), new Promise(() => {
4515
4515
  });
4516
4516
  }
4517
4517
  _initialize(e) {
@@ -4526,7 +4526,7 @@ class Zr {
4526
4526
  }), i;
4527
4527
  }
4528
4528
  async initAndGetManager(e) {
4529
- const t = await Hr(e), i = new Er(e);
4529
+ const t = await $r(e), i = new br(e);
4530
4530
  return t.register("authEvent", (r) => (u(
4531
4531
  r == null ? void 0 : r.authEvent,
4532
4532
  e,
@@ -4550,13 +4550,13 @@ class Zr {
4550
4550
  }
4551
4551
  _originValidation(e) {
4552
4552
  const t = e._key();
4553
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
4553
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Pr(e)), this.originValidationPromises[t];
4554
4554
  }
4555
4555
  get _shouldInitProactively() {
4556
- return jt() || Ge() || ke();
4556
+ return jt() || Be() || ke();
4557
4557
  }
4558
4558
  }
4559
- const es = Zr;
4559
+ const Zr = Qr;
4560
4560
  var gt = "@firebase/auth", _t = "1.7.5";
4561
4561
  /**
4562
4562
  * @license
@@ -4574,7 +4574,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4574
4574
  * See the License for the specific language governing permissions and
4575
4575
  * limitations under the License.
4576
4576
  */
4577
- class ts {
4577
+ class es {
4578
4578
  constructor(e) {
4579
4579
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4580
4580
  }
@@ -4625,7 +4625,7 @@ class ts {
4625
4625
  * See the License for the specific language governing permissions and
4626
4626
  * limitations under the License.
4627
4627
  */
4628
- function ns(n) {
4628
+ function ts(n) {
4629
4629
  switch (n) {
4630
4630
  case "Node":
4631
4631
  return "node";
@@ -4641,7 +4641,7 @@ function ns(n) {
4641
4641
  return;
4642
4642
  }
4643
4643
  }
4644
- function is(n) {
4644
+ function ns(n) {
4645
4645
  Ze(new et(
4646
4646
  "auth",
4647
4647
  (e, { options: t }) => {
@@ -4654,9 +4654,9 @@ function is(n) {
4654
4654
  apiHost: "identitytoolkit.googleapis.com",
4655
4655
  tokenApiHost: "securetoken.googleapis.com",
4656
4656
  apiScheme: "https",
4657
- sdkClientVersion: Gt(n)
4658
- }, l = new Oi(i, r, s, a);
4659
- return Fi(l, t), l;
4657
+ sdkClientVersion: Bt(n)
4658
+ }, l = new Ni(i, r, s, a);
4659
+ return xi(l, t), l;
4660
4660
  },
4661
4661
  "PUBLIC"
4662
4662
  /* ComponentType.PUBLIC */
@@ -4675,14 +4675,14 @@ function is(n) {
4675
4675
  "auth"
4676
4676
  /* _ComponentName.AUTH */
4677
4677
  ).getImmediate());
4678
- return ((i) => new ts(i))(t);
4678
+ return ((i) => new es(i))(t);
4679
4679
  },
4680
4680
  "PRIVATE"
4681
4681
  /* ComponentType.PRIVATE */
4682
4682
  ).setInstantiationMode(
4683
4683
  "EXPLICIT"
4684
4684
  /* InstantiationMode.EXPLICIT */
4685
- )), Le(gt, _t, ns(n)), Le(gt, _t, "esm2017");
4685
+ )), Le(gt, _t, ts(n)), Le(gt, _t, "esm2017");
4686
4686
  }
4687
4687
  /**
4688
4688
  * @license
@@ -4700,11 +4700,11 @@ function is(n) {
4700
4700
  * See the License for the specific language governing permissions and
4701
4701
  * limitations under the License.
4702
4702
  */
4703
- const rs = 5 * 60, ss = kt("authIdTokenMaxAge") || rs;
4703
+ const is = 5 * 60, rs = kt("authIdTokenMaxAge") || is;
4704
4704
  let vt = null;
4705
- const os = (n) => async (e) => {
4705
+ const ss = (n) => async (e) => {
4706
4706
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4707
- if (i && i > ss)
4707
+ if (i && i > rs)
4708
4708
  return;
4709
4709
  const r = t == null ? void 0 : t.token;
4710
4710
  vt !== r && (vt = r, await fetch(n, {
@@ -4714,33 +4714,33 @@ const os = (n) => async (e) => {
4714
4714
  } : {}
4715
4715
  }));
4716
4716
  };
4717
- function as(n = Nn()) {
4717
+ function os(n = Cn()) {
4718
4718
  const e = bt(n, "auth");
4719
4719
  if (e.isInitialized())
4720
4720
  return e.getImmediate();
4721
- const t = xi(n, {
4722
- popupRedirectResolver: es,
4721
+ const t = Di(n, {
4722
+ popupRedirectResolver: Zr,
4723
4723
  persistence: [
4724
- dr,
4725
- Zi,
4724
+ ur,
4725
+ Qi,
4726
4726
  Qt
4727
4727
  ]
4728
4728
  }), i = kt("authTokenSyncURL");
4729
4729
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4730
4730
  const s = new URL(i, location.origin);
4731
4731
  if (location.origin === s.origin) {
4732
- const o = os(s.toString());
4733
- Ji(t, o, () => o(t.currentUser)), Ki(t, (c) => o(c));
4732
+ const o = ss(s.toString());
4733
+ Ki(t, o, () => o(t.currentUser)), qi(t, (c) => o(c));
4734
4734
  }
4735
4735
  }
4736
- const r = Cn("auth");
4737
- return r && Vi(t, `http://${r}`), t;
4736
+ const r = Pn("auth");
4737
+ return r && Fi(t, `http://${r}`), t;
4738
4738
  }
4739
- function cs() {
4739
+ function as() {
4740
4740
  var n, e;
4741
4741
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4742
4742
  }
4743
- Li({
4743
+ Oi({
4744
4744
  loadJS(n) {
4745
4745
  return new Promise((e, t) => {
4746
4746
  const i = document.createElement("script");
@@ -4750,52 +4750,52 @@ Li({
4750
4750
  /* AuthErrorCode.INTERNAL_ERROR */
4751
4751
  );
4752
4752
  s.customData = r, t(s);
4753
- }, i.type = "text/javascript", i.charset = "UTF-8", cs().appendChild(i);
4753
+ }, i.type = "text/javascript", i.charset = "UTF-8", as().appendChild(i);
4754
4754
  });
4755
4755
  },
4756
4756
  gapiScript: "https://apis.google.com/js/api.js",
4757
4757
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4758
4758
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4759
4759
  });
4760
- is(
4760
+ ns(
4761
4761
  "Browser"
4762
4762
  /* ClientPlatform.BROWSER */
4763
4763
  );
4764
- var ls = { 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" }, us = { 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 ds = {
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 = {
4766
4766
  key: 2,
4767
4767
  class: "h-full w-full"
4768
- }, hs = ["src"], Cs = /* @__PURE__ */ xe({
4768
+ }, ds = ["src"], Ps = /* @__PURE__ */ xe({
4769
4769
  __name: "App",
4770
4770
  setup(n) {
4771
- const e = ge(), t = pn(), i = mn(), r = In(), s = yn(), o = wt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = ge();
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();
4772
4772
  ie(
4773
4773
  () => {
4774
4774
  var f;
4775
4775
  return (f = l.value) == null ? void 0 : f._id;
4776
4776
  },
4777
4777
  (f) => {
4778
- f && vn(f);
4778
+ f && _n(f);
4779
4779
  },
4780
4780
  { immediate: !0 }
4781
4781
  );
4782
4782
  const d = te(!1), m = Y(() => i.version), y = Y(() => {
4783
4783
  const f = e.currentCountry.value || "MY", g = tt.getIdToken(), v = l.value._id;
4784
- return `${us.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${f}&token=${g}`;
4784
+ return `${ls.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${f}&token=${g}`;
4785
4785
  });
4786
4786
  async function T() {
4787
- if (Dn().length) {
4787
+ if (Un().length) {
4788
4788
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4789
4789
  return;
4790
4790
  }
4791
- const f = xn(ls.firebase), g = await fn.getCustomToken(), v = as();
4792
- await qi(v, g), Fn(f), console.log("initFirebase", f);
4791
+ const f = Dn(cs.firebase), g = await fn.getCustomToken(), v = os();
4792
+ await zi(v, g), xn(f), console.log("initFirebase", f);
4793
4793
  }
4794
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(Wn) : e.hideSidebarToggle(!0), await T(), a.value = !0, d.value = !0;
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;
4796
4796
  };
4797
4797
  return un(() => {
4798
- if (Vn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4798
+ if (Fn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4799
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
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);
4801
4801
  }
@@ -4807,9 +4807,9 @@ const ds = {
4807
4807
  }
4808
4808
  ), (f, g) => (j(), me(It, null, [
4809
4809
  _(d) && _(m) === "v2" ? (j(), Oe(_(hn), { key: 0 })) : Pe("", !0),
4810
- _(d) && _(m) === "v2" && _(c) ? (j(), Oe(oi, { key: 1 })) : Pe("", !0),
4811
- _(d) && _(m) !== "v2" ? (j(), me("div", ds, [
4812
- S(bn, {
4810
+ _(d) && _(m) === "v2" && _(c) ? (j(), Oe(si, { key: 1 })) : Pe("", !0),
4811
+ _(d) && _(m) !== "v2" ? (j(), me("div", us, [
4812
+ S(kn, {
4813
4813
  json: { url: _(y) }
4814
4814
  }, null, 8, ["json"]),
4815
4815
  I("iframe", {
@@ -4818,11 +4818,11 @@ const ds = {
4818
4818
  height: "100%",
4819
4819
  width: "100%",
4820
4820
  src: _(y)
4821
- }, null, 8, hs)
4821
+ }, null, 8, ds)
4822
4822
  ])) : Pe("", !0)
4823
4823
  ], 64));
4824
4824
  }
4825
4825
  });
4826
4826
  export {
4827
- Cs as default
4827
+ Ps as default
4828
4828
  };