@feedmepos/mf-connect 0.1.114-prod → 0.1.115-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/{App-DMYXrCc7.js → App-CvtSY8ZO.js} +350 -338
  2. package/dist/{Bin-CHZolo56.js → Bin-B3gS9QVZ.js} +8 -8
  3. package/dist/Broadcast-DAeb-HaN.js +305 -0
  4. package/dist/{CampaignAnalytic-DgZvsUoF.js → CampaignAnalytic-BfTaHVem.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C42uL_JO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zsei4OfG.js} +9 -9
  6. package/dist/{Card-wRFTJwJ9.js → Card-JFeVIwFs.js} +22 -22
  7. package/dist/{Collections-9G-_9Etz.js → Collections-xcDpEhIm.js} +9 -9
  8. package/dist/{Credit-Bl7IDMCU.js → Credit-C9HJZjDS.js} +11 -11
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BVLJeofG.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DSqVY91w.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D_jXVE2I.js +3494 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Q1f6EQW3.js → EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js} +6 -6
  12. package/dist/{Experience-Cs2iViLv.js → Experience-DszS8gto.js} +12 -12
  13. package/dist/{FileSaver.min-B3Levdbu.js → FileSaver.min-CFVQKaC-.js} +1 -1
  14. package/dist/{Game-oXURgzan.js → Game-DhgeN7E2.js} +12 -12
  15. package/dist/{GiftCardSetup-C2Wu-dRl.js → GiftCardSetup-CWm6IhrS.js} +10 -10
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Da2e89Um.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BuKADvmK.js} +7 -7
  17. package/dist/{Goals-B_xEM7gf.js → Goals-DtRVierH.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BRJR1heE.js → ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js} +1 -1
  19. package/dist/{Index-kuT6W6R_.js → Index-DFRcu_qE.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-7JqHfSk-.js → LocationPicker.vue_vue_type_script_setup_true_lang-B3Br4Xvi.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CI_4S7tW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CjNJj3qj.js} +1 -1
  22. package/dist/{LoyaltyDashboard-CqxHdZcm.js → LoyaltyDashboard-BWHKDPzk.js} +15 -15
  23. package/dist/{MainLayout-CAERFIms.js → MainLayout-BmpNNAiE.js} +3 -3
  24. package/dist/{Marketing-KgcwGErU.js → Marketing-BKK45Eve.js} +4 -4
  25. package/dist/{MarketingMaterialEdit-BvIthCHG.js → MarketingMaterialEdit-x3c_N7Gs.js} +6 -6
  26. package/dist/{Member-B8VZEn9t.js → Member-xEzrBW_p.js} +7 -7
  27. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-B31lVLKh.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DRoC-I0t.js} +24 -24
  28. package/dist/{MemberImportHistory-D9tgHnTS.js → MemberImportHistory-CEQpBBF8.js} +7 -7
  29. package/dist/{MemberList-Hw_xQY1i.js → MemberList-CCvzkHv8.js} +14 -14
  30. package/dist/{MemberTransactions-DiBO4plw.js → MemberTransactions-Bmh39J2W.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CbFt5X89.js → MessageInput.vue_vue_type_script_setup_true_lang-D3Pmk80l.js} +4228 -4176
  32. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BE_-Ed4z.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DIBKAwHP.js} +1 -1
  33. package/dist/{Mission-DpYei3aF.js → Mission-CpUo2Bgw.js} +13 -13
  34. package/dist/{Overview-CARquJCS.js → Overview-CwQqQ1Tn.js} +4 -4
  35. package/dist/{Overview-BFQMmyT6.js → Overview-DcDZmDXA.js} +20 -20
  36. package/dist/{Point-Dd2ykwNv.js → Point-CUNQsQIx.js} +13 -13
  37. package/dist/{Promotion-DXl-W7np.js → Promotion-Cqdim7aW.js} +13 -13
  38. package/dist/{Queue-Cd3N-4iB.js → Queue-CNBVh1UG.js} +30 -30
  39. package/dist/{Record-C3HdDsh5.js → Record-BYwz4l4o.js} +9 -9
  40. package/dist/{Review-Bif3Ub9Z.js → Review-CqLcZFj8.js} +2 -2
  41. package/dist/{ReviewFacebookCallback-mJF54-9l.js → ReviewFacebookCallback-DbSCILNN.js} +5 -5
  42. package/dist/{ReviewGoogleCallback-i-RNLlLm.js → ReviewGoogleCallback-Dg8R7QlO.js} +5 -5
  43. package/dist/{Reward-DHxzrR_7.js → Reward-M8GZ8eHq.js} +16 -16
  44. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DcrFlcSo.js → RewardGroup.vue_vue_type_script_setup_true_lang-BkM9-Sx-.js} +13 -13
  45. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-39f3I4BB.js → RuleGroup.vue_vue_type_script_setup_true_lang-CnaL93TF.js} +15 -15
  46. package/dist/{Segment-Cjpxordk.js → Segment-CrMi6xrp.js} +126 -126
  47. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-6u21xBu6.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DKH5_9db.js} +14 -14
  48. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BOXVzfer.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CyeAQ-hg.js} +4 -4
  49. package/dist/{Setting-Dl9MelHz.js → Setting-BnFRI0Se.js} +15 -14
  50. package/dist/{SettingAdvertisements-aog5fz32.js → SettingAdvertisements-Dh7v4c1D.js} +12 -12
  51. package/dist/{Settings-DvCCClIP.js → Settings-BvT8_tkQ.js} +5 -5
  52. package/dist/{Store-Bq3kw1l2.js → Store-CV-BmK5b.js} +26 -26
  53. package/dist/{StoreRewards-ZGXKEM09.js → StoreRewards-DPhSLvSZ.js} +15 -15
  54. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DscLAF0p.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CDu1QySl.js} +24 -24
  55. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-l_v4FHO0.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js} +2 -2
  56. package/dist/{Tier-CfgpEHY7.js → Tier-ChvYps23.js} +25 -25
  57. package/dist/{Title-B2itYWeD.js → Title-v-Ivswr1.js} +23 -23
  58. package/dist/{Transaction-hJ5ygIcf.js → Transaction-CRqE1Ix0.js} +2 -2
  59. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-8BgGlpTh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B0Uh9iuj.js} +6 -6
  60. package/dist/{Voucher-TG47pGR3.js → Voucher-Bg8FOuzD.js} +18 -18
  61. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CjuXCTxg.js → VoucherEditor.vue_vue_type_script_setup_true_lang-HKxivQMF.js} +12 -12
  62. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BRs-gbP0.js → ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js} +2 -2
  63. package/dist/{app-tPHYkJcQ.js → app-DdNKsn2Q.js} +2100 -1480
  64. package/dist/app.js +1 -1
  65. package/dist/{base.export-BHDVnGj2.js → base.export-R97FrSQL.js} +2 -2
  66. package/dist/{business-HLyWfrXY.js → business-Ce8vq3wQ.js} +1 -1
  67. package/dist/{campaign-5zFgUNLw.js → campaign-BTllt2LH.js} +2 -2
  68. package/dist/campaign-C19If7bW.js +373 -0
  69. package/dist/{campaign.enum-BOkDnP2g.js → campaign.enum-9CCbalR4.js} +1 -1
  70. package/dist/{campaign.fn-BIAoVtJj.js → campaign.fn-B4g03h0A.js} +3 -3
  71. package/dist/{collectible.enum-BbZSAfys.js → collectible.enum-MvqF7mSg.js} +1 -1
  72. package/dist/{collection.fn-DPSgBHnz.js → collection.fn-CR0bD33S.js} +2 -2
  73. package/dist/{currency-BVrMqU6-.js → currency-DmlguGIM.js} +1 -1
  74. package/dist/{effect-BBifVx76.js → effect-Dx3zfl28.js} +1 -1
  75. package/dist/{email-addresses-9C7xHTNv.js → email-addresses-De5PGOY4.js} +2 -2
  76. package/dist/feature-flag-CD9V1V0h.js +868 -0
  77. package/dist/{helper-C08jyQNK.js → helper-CEiv7SaO.js} +1 -1
  78. package/dist/{index-Dk-jg0wN.js → index-649OZ_e1.js} +2 -2
  79. package/dist/{index-96ZiAKj_.js → index-B8meeQoD.js} +1 -1
  80. package/dist/{index-CUle4c2B.js → index-B8yWVB8P.js} +1 -1
  81. package/dist/index-BAXKd9Gg.js +14571 -0
  82. package/dist/{index-BgwZGunW.js → index-BDPnyro2.js} +1 -1
  83. package/dist/{index-D24Q28cH.js → index-BR9h5DTI.js} +1 -1
  84. package/dist/{index-B_334Y_i.js → index-BVdYxi3l.js} +1 -1
  85. package/dist/{index-NJSI4wX4.js → index-BW6eb3n6.js} +276 -173
  86. package/dist/{index-hSRM1smQ.js → index-BYI9ttxy.js} +3 -3
  87. package/dist/{index-DZ-q5O-V.js → index-BquSqx6K.js} +1 -1
  88. package/dist/{index-kCbkOivd.js → index-CBJy9bxB.js} +1 -1
  89. package/dist/{index-Dhyqf1s8.js → index-CPODug8b.js} +3 -3
  90. package/dist/{index-CEe1kJ0T.js → index-CWUrODxL.js} +1 -1
  91. package/dist/{index-DnRMNmUA.js → index-CqOCJTeR.js} +89 -83
  92. package/dist/{index-C_WoO58V.js → index-D4d3l0gw.js} +3 -3
  93. package/dist/{index-hIUtD2eY.js → index-DT3S00_Y.js} +8 -8
  94. package/dist/{index-Yo0tP8KJ.js → index-IZRfmmde.js} +5 -5
  95. package/dist/{index-ihw-WFCa.js → index-__UT3_Ey.js} +2 -2
  96. package/dist/{index-Ciw2TZxV.js → index-xct3mnu8.js} +3 -2
  97. package/dist/{index.esm2017-hN99SQTb.js → index.esm2017-AVbZ9btd.js} +34 -34
  98. package/dist/{loading-CVuY4vQ4.js → loading-BvHm1m3K.js} +1 -1
  99. package/dist/{lodash-GFl9_FMH.js → lodash-Dvrceo7x.js} +1 -1
  100. package/dist/{member-import-CshTzabx.js → member-import-c9avpiSS.js} +1 -1
  101. package/dist/{membership-S0KES3Ex.js → membership-D-pZS634.js} +3 -3
  102. package/dist/{money-JxdX8ru4.js → money-D4skwMkD.js} +1 -1
  103. package/dist/{number-BRLwa-mB.js → number-DJ6ncfT6.js} +1 -1
  104. package/dist/objectid-DEMM_jdR.js +145 -0
  105. package/dist/{onboarding-BSKYeyP7.js → onboarding-t7R1d3h-.js} +3 -3
  106. package/dist/{onboardingSetup-BqT52VRm.js → onboardingSetup-lTaJc0oT.js} +2 -2
  107. package/dist/{plugins-BR_wmMFJ.js → plugins-DQNOWwRC.js} +3 -3
  108. package/dist/{reward-CpCGg_W2.js → reward-BK150pjm.js} +1 -1
  109. package/dist/{rule-Dbg9e8MO.js → rule-COcdAnUu.js} +3 -3
  110. package/dist/{rule-builder-BEIjxsE0.js → rule-builder-Deufb6h_.js} +1 -1
  111. package/dist/style.css +1 -1
  112. package/dist/{template-CS-lExgI.js → template-DeebIqJ_.js} +7 -7
  113. package/dist/{timezone-CDVa-xPr.js → timezone-BP6UC4KL.js} +1 -1
  114. package/dist/{transaction.fn-DrTBoF9T.js → transaction.fn-BY0hzon0.js} +2 -2
  115. package/dist/{trigger-wqGwQfB2.js → trigger-DVBjVPbN.js} +5 -5
  116. package/dist/{useMarketingMaterialActions-DC0gIyIZ.js → useMarketingMaterialActions-DpQCQHFI.js} +3 -3
  117. package/dist/{usePagination-fODgpZZ8.js → usePagination-QT552XyF.js} +1 -1
  118. package/dist/{user-DaLUK1dk.js → user-CmAxNc7T.js} +1 -1
  119. package/dist/{vue-i18n-Dx-KXojZ.js → vue-i18n-Cze706-f.js} +245 -245
  120. package/dist/{xlsx-Bl4_Dtrq.js → xlsx-DAczoc8y.js} +440 -440
  121. package/dist/{zod-CAzWyVqj.js → zod-Aj-GuVQL.js} +1 -1
  122. package/package.json +7 -2
  123. package/dist/Broadcast-ByWvxVhW.js +0 -271
  124. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGpQfV5T.js +0 -2431
  125. package/dist/campaign-awCRccgX.js +0 -228
  126. package/dist/index-CoNJdOx7.js +0 -51
  127. package/dist/objectid-CEHN25HN.js +0 -145
@@ -1,23 +1,24 @@
1
- import { defineComponent as xe, ref as ee, h as H, Comment as cn, computed as ne, watch as pe, resolveComponent as Z, openBlock as j, createElementBlock as me, createVNode as S, unref as g, createElementVNode as v, toDisplayString as R, createBlock as Oe, withCtx as Q, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
1
+ import { defineComponent as xe, ref as ee, h as H, Comment as cn, computed as ne, watch as ie, resolveComponent as Z, openBlock as j, createElementBlock as me, createVNode as S, unref as g, createElementVNode as v, toDisplayString as R, createBlock as Oe, withCtx as Q, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
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-HLyWfrXY.js";
6
- import "./index-96ZiAKj_.js";
7
- import { components as G, useSnackbar as gn, useDialog as _n } from "@feedmepos/ui-library";
8
- import { u as Tt } from "./vue-i18n-Dx-KXojZ.js";
9
- import { m as vn } from "./index-D24Q28cH.js";
10
- import { C as Xe } from "./timezone-CDVa-xPr.js";
11
- import { u as In } from "./onboarding-BSKYeyP7.js";
12
- import { R as p, A as yn, a as Qe } from "./app-tPHYkJcQ.js";
13
- import { J as wn } from "./JsonViewer-v8_C7l5N.js";
14
- import { r as Le, L as Tn, g as kt, i as kn, a as bn, _ as Ze, C as et, b as En, S as re, c as A, d as Y, E as Fe, e as Sn, f as bt, h as Rn, j as An, k as Et, l as w, m as Pn, F as Ve, n as Cn, q as se, o as Nn, p as On, s as Ln, t as Mn, u as Un } from "./index.esm2017-hN99SQTb.js";
5
+ import { u as mn } from "./business-Ce8vq3wQ.js";
6
+ import { l as gn } from "./feature-flag-CD9V1V0h.js";
7
+ import "./index-B8meeQoD.js";
8
+ import { components as G, useSnackbar as _n, useDialog as vn } from "@feedmepos/ui-library";
9
+ import { u as Tt } from "./vue-i18n-Cze706-f.js";
10
+ import { m as In } from "./index-BR9h5DTI.js";
11
+ import { C as Xe } from "./timezone-BP6UC4KL.js";
12
+ import { u as yn } from "./onboarding-t7R1d3h-.js";
13
+ import { R as p, A as wn, a as Qe } from "./app-DdNKsn2Q.js";
14
+ import { J as Tn } from "./JsonViewer-v8_C7l5N.js";
15
+ import { r as Le, L as kn, g as kt, i as bn, a as En, _ as Ze, C as et, b as Sn, S as se, c as A, d as Y, E as Fe, e as Rn, f as bt, h as An, j as Pn, k as Et, l as w, m as Cn, F as Ve, n as Nn, q as oe, o as On, p as Ln, s as Mn, t as Un, u as Dn } from "./index.esm2017-AVbZ9btd.js";
15
16
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
16
- import { S as tt, c as Dn } from "./index-Ciw2TZxV.js";
17
- const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Vn = /* @__PURE__ */ xe({
17
+ import { S as tt, c as xn } from "./index-xct3mnu8.js";
18
+ const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, $n = /* @__PURE__ */ xe({
18
19
  __name: "NavigationTab",
19
20
  setup(n) {
20
- const { t: e, locale: t } = Tt(), i = In(), r = ee(), s = [
21
+ const { t: e, locale: t } = Tt(), i = yn(), r = ee(), s = [
21
22
  {
22
23
  label: e("connect.navigation.analytic"),
23
24
  value: p["$connect-ANALYTIC"]
@@ -134,65 +135,65 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
134
135
  label: e("connect.navigation.bin"),
135
136
  value: p["$connect-BIN"]
136
137
  }
137
- ], o = yt(), c = wt(), a = s.reduce((h, y) => [...(y.children ?? []).map((_) => _.value), ...h, y.value], []), l = ge(), d = ne(() => {
138
- const h = l.currentCountry.value || "MY";
139
- return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
138
+ ], o = yt(), c = wt(), a = s.reduce((f, y) => [...(y.children ?? []).map((_) => _.value), ...f, y.value], []), l = ge(), d = ne(() => {
139
+ const f = l.currentCountry.value || "MY";
140
+ return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
140
141
  });
141
- pe(
142
+ ie(
142
143
  // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
143
144
  // whose identity never changes, so watching it directly fired once via
144
145
  // `immediate` and the highlight then stayed on whatever page loaded first.
145
146
  () => c.matched,
146
- (h) => {
147
- const _ = h.map((f) => f.name).reverse().find((f) => a.includes(f));
147
+ (f) => {
148
+ const _ = f.map((h) => h.name).reverse().find((h) => a.includes(h));
148
149
  _ && (r.value = _);
149
150
  },
150
151
  { immediate: !0 }
151
- ), pe(
152
+ ), ie(
152
153
  [() => {
153
- var h;
154
- return (h = l.currentBusiness.value) == null ? void 0 : h._id;
154
+ var f;
155
+ return (f = l.currentBusiness.value) == null ? void 0 : f._id;
155
156
  }, () => c.name, t],
156
- ([h]) => {
157
- h && i.read(t.value, h);
157
+ ([f]) => {
158
+ f && i.read(t.value, f);
158
159
  },
159
160
  { immediate: !0 }
160
161
  );
161
- async function m(h) {
162
- await o.push({ name: h });
162
+ async function m(f) {
163
+ await o.push({ name: f });
163
164
  }
164
- return (h, y) => {
165
- var f;
165
+ return (f, y) => {
166
+ var h;
166
167
  const _ = Z("FmCollapsibleTabs");
167
- return j(), me("div", xn, [
168
+ return j(), me("div", Fn, [
168
169
  S(_, {
169
170
  class: "border-fm-color-neutral-gray-100 border-r px-4",
170
- "model-value": (f = g(r)) == null ? void 0 : f.toString(),
171
+ "model-value": (h = g(r)) == null ? void 0 : h.toString(),
171
172
  items: s,
172
173
  "onUpdate:modelValue": m
173
174
  }, null, 8, ["model-value"]),
174
- v("div", Fn, [
175
+ v("div", Vn, [
175
176
  v("div", null, "Timezone: " + R(g(d).split("/")[1].replace("_", " ")), 1),
176
- v("div", null, "(UTC" + R(g(vn).tz(g(d)).format("Z")) + ")", 1)
177
+ v("div", null, "(UTC" + R(g(In).tz(g(d)).format("Z")) + ")", 1)
177
178
  ])
178
179
  ]);
179
180
  };
180
181
  }
181
182
  }), St = "feedme_connect_marketing_promo_hidden";
182
- function $n() {
183
+ function Hn() {
183
184
  try {
184
185
  return localStorage.getItem(St) !== null;
185
186
  } catch {
186
187
  return !1;
187
188
  }
188
189
  }
189
- function Hn() {
190
+ function jn() {
190
191
  try {
191
192
  localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
192
193
  } catch {
193
194
  }
194
195
  }
195
- const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, Bn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Gn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, zn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, qn = { class: "flex flex-col gap-24 pb-8" }, Kn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Jn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Yn = { class: "fm-typo-en-body-lg-600" }, Xn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Qn = { class: "shrink-0" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ei = { class: "flex w-full flex-col gap-12 px-[16px]" }, ti = { class: "flex flex-wrap items-center gap-12" }, ni = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ii = /* @__PURE__ */ xe({
196
+ const Wn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, Gn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, zn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, qn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Kn = { class: "flex flex-col gap-24 pb-8" }, Jn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Yn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Xn = { class: "fm-typo-en-body-lg-600" }, Qn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Zn = { class: "shrink-0" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ti = { class: "flex w-full flex-col gap-12 px-[16px]" }, ni = { class: "flex flex-wrap items-center gap-12" }, ii = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ri = /* @__PURE__ */ xe({
196
197
  __name: "AiMarketingPromoDialog",
197
198
  setup(n) {
198
199
  let e = !1;
@@ -203,7 +204,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
203
204
  ], a = ne(() => {
204
205
  var _;
205
206
  const y = ((_ = r.value) == null ? void 0 : _.permissions) ?? [];
206
- return yn(
207
+ return wn(
207
208
  [
208
209
  {
209
210
  action: Qe.Action.manage,
@@ -216,21 +217,21 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
216
217
  () => s.value === "MY" && a.value
217
218
  );
218
219
  let d = !1;
219
- pe(
220
+ ie(
220
221
  l,
221
222
  (y) => {
222
- d || !y || (d = !0, !($n() || e) && (e = !0, o.value = !0));
223
+ d || !y || (d = !0, !(Hn() || e) && (e = !0, o.value = !0));
223
224
  },
224
225
  { immediate: !0 }
225
226
  );
226
227
  async function m() {
227
228
  o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
228
229
  }
229
- function h() {
230
- Hn(), o.value = !1;
230
+ function f() {
231
+ jn(), o.value = !1;
231
232
  }
232
233
  return (y, _) => {
233
- const f = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
234
+ const h = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
234
235
  return j(), Oe(M, {
235
236
  modelValue: o.value,
236
237
  "onUpdate:modelValue": _[0] || (_[0] = (k) => o.value = k),
@@ -240,22 +241,22 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
240
241
  "dismiss-away": ""
241
242
  }, {
242
243
  "dialog-header": Q(() => [
243
- v("div", jn, [
244
- v("div", Wn, [
245
- S(f, {
244
+ v("div", Wn, [
245
+ v("div", Bn, [
246
+ S(h, {
246
247
  name: "auto_awesome",
247
248
  size: "sm",
248
249
  color: "primary"
249
250
  }),
250
- v("span", Bn, R(g(t)("connect.marketing.whatsNew.badge")), 1)
251
+ v("span", Gn, R(g(t)("connect.marketing.whatsNew.badge")), 1)
251
252
  ]),
252
- v("h1", Gn, R(g(t)("connect.marketing.whatsNew.title")), 1),
253
- v("p", zn, R(g(t)("connect.marketing.whatsNew.subtitle")), 1)
253
+ v("h1", zn, R(g(t)("connect.marketing.whatsNew.title")), 1),
254
+ v("p", qn, R(g(t)("connect.marketing.whatsNew.subtitle")), 1)
254
255
  ])
255
256
  ]),
256
257
  "dialog-footer": Q(() => [
257
- v("div", ei, [
258
- v("div", ti, [
258
+ v("div", ti, [
259
+ v("div", ni, [
259
260
  S(T, {
260
261
  variant: "primary",
261
262
  size: "lg",
@@ -267,30 +268,30 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
267
268
  variant: "tertiary",
268
269
  size: "lg",
269
270
  label: g(t)("connect.marketing.whatsNew.dismiss"),
270
- onClick: h
271
+ onClick: f
271
272
  }, null, 8, ["label"])
272
273
  ]),
273
- v("div", ni, R(g(t)("connect.marketing.whatsNew.footnote")), 1)
274
+ v("div", ii, R(g(t)("connect.marketing.whatsNew.footnote")), 1)
274
275
  ])
275
276
  ]),
276
277
  default: Q(() => [
277
- v("div", qn, [
278
- v("div", Kn, [
278
+ v("div", Kn, [
279
+ v("div", Jn, [
279
280
  (j(), me(It, null, ln(c, (k) => S(I, {
280
281
  key: k.key,
281
282
  variant: "outlined",
282
283
  class: "!h-full flex flex-col gap-8 p-16"
283
284
  }, {
284
285
  default: Q(() => [
285
- v("div", Jn, [
286
- S(f, {
286
+ v("div", Yn, [
287
+ S(h, {
287
288
  name: k.icon,
288
289
  size: "md",
289
290
  color: "primary"
290
291
  }, null, 8, ["name"])
291
292
  ]),
292
- v("div", Yn, R(g(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
293
- v("div", Xn, R(g(t)(
293
+ v("div", Xn, R(g(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
294
+ v("div", Qn, R(g(t)(
294
295
  `connect.marketing.whatsNew.benefits.${k.key}.description`
295
296
  )), 1)
296
297
  ]),
@@ -302,14 +303,14 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
302
303
  class: "flex items-start gap-12 p-16"
303
304
  }, {
304
305
  default: Q(() => [
305
- v("div", Qn, [
306
- S(f, {
306
+ v("div", Zn, [
307
+ S(h, {
307
308
  name: "lightbulb",
308
309
  size: "md",
309
310
  color: "primary"
310
311
  })
311
312
  ]),
312
- v("p", Zn, R(g(t)("connect.marketing.whatsNew.callout")), 1)
313
+ v("p", ei, R(g(t)("connect.marketing.whatsNew.callout")), 1)
313
314
  ]),
314
315
  _: 1
315
316
  })
@@ -320,7 +321,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
320
321
  };
321
322
  }
322
323
  });
323
- var ri = "firebase", si = "10.12.4";
324
+ var si = "firebase", oi = "10.12.4";
324
325
  /**
325
326
  * @license
326
327
  * Copyright 2020 Google LLC
@@ -337,13 +338,13 @@ var ri = "firebase", si = "10.12.4";
337
338
  * See the License for the specific language governing permissions and
338
339
  * limitations under the License.
339
340
  */
340
- Le(ri, si, "app");
341
+ Le(si, oi, "app");
341
342
  function Rt() {
342
343
  return {
343
344
  "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."
344
345
  };
345
346
  }
346
- const oi = Rt, At = new Fe("auth", "Firebase", Rt());
347
+ const ai = Rt, At = new Fe("auth", "Firebase", Rt());
347
348
  /**
348
349
  * @license
349
350
  * Copyright 2020 Google LLC
@@ -360,12 +361,12 @@ const oi = Rt, At = new Fe("auth", "Firebase", Rt());
360
361
  * See the License for the specific language governing permissions and
361
362
  * limitations under the License.
362
363
  */
363
- const _e = new Tn("@firebase/auth");
364
- function ai(n, ...e) {
365
- _e.logLevel <= Et.WARN && _e.warn(`Auth (${re}): ${n}`, ...e);
364
+ const _e = new kn("@firebase/auth");
365
+ function ci(n, ...e) {
366
+ _e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
366
367
  }
367
- function ue(n, ...e) {
368
- _e.logLevel <= Et.ERROR && _e.error(`Auth (${re}): ${n}`, ...e);
368
+ function de(n, ...e) {
369
+ _e.logLevel <= Et.ERROR && _e.error(`Auth (${se}): ${n}`, ...e);
369
370
  }
370
371
  /**
371
372
  * @license
@@ -390,7 +391,7 @@ function b(n, ...e) {
390
391
  return He(n, ...e);
391
392
  }
392
393
  function Pt(n, e, t) {
393
- const i = Object.assign(Object.assign({}, oi()), { [e]: t });
394
+ const i = Object.assign(Object.assign({}, ai()), { [e]: t });
394
395
  return new Fe("auth", "Firebase", i).create(e, {
395
396
  appName: n.name
396
397
  });
@@ -411,7 +412,7 @@ function u(n, e, ...t) {
411
412
  }
412
413
  function P(n) {
413
414
  const e = "INTERNAL ASSERTION FAILED: " + n;
414
- throw ue(e), new Error(e);
415
+ throw de(e), new Error(e);
415
416
  }
416
417
  function L(n, e) {
417
418
  n || P(e);
@@ -436,7 +437,7 @@ function Me() {
436
437
  var n;
437
438
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
438
439
  }
439
- function ci() {
440
+ function li() {
440
441
  return nt() === "http:" || nt() === "https:";
441
442
  }
442
443
  function nt() {
@@ -459,15 +460,15 @@ function nt() {
459
460
  * See the License for the specific language governing permissions and
460
461
  * limitations under the License.
461
462
  */
462
- function li() {
463
+ function ui() {
463
464
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
464
465
  // This is especially true for Cordova apps which have unreliable
465
466
  // navigator.onLine behavior unless cordova-plugin-network-information is
466
467
  // installed which overwrites the native navigator.onLine value and
467
468
  // defines navigator.connection.
468
- (ci() || En() || "connection" in navigator) ? navigator.onLine : !0;
469
+ (li() || Sn() || "connection" in navigator) ? navigator.onLine : !0;
469
470
  }
470
- function ui() {
471
+ function di() {
471
472
  if (typeof navigator > "u")
472
473
  return null;
473
474
  const n = navigator;
@@ -495,12 +496,12 @@ function ui() {
495
496
  * See the License for the specific language governing permissions and
496
497
  * limitations under the License.
497
498
  */
498
- class oe {
499
+ class ae {
499
500
  constructor(e, t) {
500
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = kn() || bn();
501
+ this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = bn() || En();
501
502
  }
502
503
  get() {
503
- return li() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
504
+ return ui() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
504
505
  }
505
506
  }
506
507
  /**
@@ -594,7 +595,7 @@ class Ct {
594
595
  * See the License for the specific language governing permissions and
595
596
  * limitations under the License.
596
597
  */
597
- const di = {
598
+ const hi = {
598
599
  // Custom token errors.
599
600
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
600
601
  // This can only happen if the SDK sends a bad request.
@@ -685,7 +686,7 @@ const di = {
685
686
  * See the License for the specific language governing permissions and
686
687
  * limitations under the License.
687
688
  */
688
- const hi = new oe(3e4, 6e4);
689
+ const fi = new ae(3e4, 6e4);
689
690
  function Te(n, e) {
690
691
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
691
692
  }
@@ -695,7 +696,7 @@ async function X(n, e, t, i, r = {}) {
695
696
  i && (e === "GET" ? o = i : s = {
696
697
  body: JSON.stringify(i)
697
698
  });
698
- const c = se(Object.assign({ key: n.config.apiKey }, o)).slice(1), a = await n._getAdditionalHeaders();
699
+ const c = oe(Object.assign({ key: n.config.apiKey }, o)).slice(1), a = await n._getAdditionalHeaders();
699
700
  return a[
700
701
  "Content-Type"
701
702
  /* HttpHeader.CONTENT_TYPE */
@@ -711,26 +712,26 @@ async function X(n, e, t, i, r = {}) {
711
712
  }
712
713
  async function Nt(n, e, t) {
713
714
  n._canInitEmulator = !1;
714
- const i = Object.assign(Object.assign({}, di), e);
715
+ const i = Object.assign(Object.assign({}, hi), e);
715
716
  try {
716
- const r = new fi(n), s = await Promise.race([
717
+ const r = new pi(n), s = await Promise.race([
717
718
  t(),
718
719
  r.promise
719
720
  ]);
720
721
  r.clearNetworkTimeout();
721
722
  const o = await s.json();
722
723
  if ("needConfirmation" in o)
723
- throw le(n, "account-exists-with-different-credential", o);
724
+ throw ue(n, "account-exists-with-different-credential", o);
724
725
  if (s.ok && !("errorMessage" in o))
725
726
  return o;
726
727
  {
727
728
  const c = s.ok ? o.errorMessage : o.error.message, [a, l] = c.split(" : ");
728
729
  if (a === "FEDERATED_USER_ID_ALREADY_LINKED")
729
- throw le(n, "credential-already-in-use", o);
730
+ throw ue(n, "credential-already-in-use", o);
730
731
  if (a === "EMAIL_EXISTS")
731
- throw le(n, "email-already-in-use", o);
732
+ throw ue(n, "email-already-in-use", o);
732
733
  if (a === "USER_DISABLED")
733
- throw le(n, "user-disabled", o);
734
+ throw ue(n, "user-disabled", o);
734
735
  const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
735
736
  if (l)
736
737
  throw Pt(n, d, l);
@@ -752,21 +753,21 @@ function Lt(n, e, t, i) {
752
753
  const r = `${e}${t}?${i}`;
753
754
  return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
754
755
  }
755
- class fi {
756
+ class pi {
756
757
  constructor(e) {
757
758
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
758
759
  this.timer = setTimeout(() => i(b(
759
760
  this.auth,
760
761
  "network-request-failed"
761
762
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
762
- )), hi.get());
763
+ )), fi.get());
763
764
  });
764
765
  }
765
766
  clearNetworkTimeout() {
766
767
  clearTimeout(this.timer);
767
768
  }
768
769
  }
769
- function le(n, e, t) {
770
+ function ue(n, e, t) {
770
771
  const i = {
771
772
  appName: n.name
772
773
  };
@@ -790,7 +791,7 @@ function le(n, e, t) {
790
791
  * See the License for the specific language governing permissions and
791
792
  * limitations under the License.
792
793
  */
793
- async function pi(n, e) {
794
+ async function mi(n, e) {
794
795
  return X(n, "POST", "/v1/accounts:delete", e);
795
796
  }
796
797
  async function Mt(n, e) {
@@ -821,7 +822,7 @@ function te(n) {
821
822
  } catch {
822
823
  }
823
824
  }
824
- async function mi(n, e = !1) {
825
+ async function gi(n, e = !1) {
825
826
  const t = Y(n), i = await t.getIdToken(e), r = We(i);
826
827
  u(
827
828
  r && r.exp && r.auth_time && r.iat,
@@ -846,12 +847,12 @@ function Ce(n) {
846
847
  function We(n) {
847
848
  const [e, t, i] = n.split(".");
848
849
  if (e === void 0 || t === void 0 || i === void 0)
849
- return ue("JWT malformed, contained fewer than 3 sections"), null;
850
+ return de("JWT malformed, contained fewer than 3 sections"), null;
850
851
  try {
851
- const r = Cn(t);
852
- return r ? JSON.parse(r) : (ue("Failed to decode base64 JWT payload"), null);
852
+ const r = Nn(t);
853
+ return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
853
854
  } catch (r) {
854
- return ue("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
855
+ return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
855
856
  }
856
857
  }
857
858
  function it(n) {
@@ -886,16 +887,16 @@ function it(n) {
886
887
  * See the License for the specific language governing permissions and
887
888
  * limitations under the License.
888
889
  */
889
- async function ie(n, e, t = !1) {
890
+ async function re(n, e, t = !1) {
890
891
  if (t)
891
892
  return e;
892
893
  try {
893
894
  return await e;
894
895
  } catch (i) {
895
- throw i instanceof Ve && gi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
896
+ throw i instanceof Ve && _i(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
896
897
  }
897
898
  }
898
- function gi({ code: n }) {
899
+ function _i({ code: n }) {
899
900
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
900
901
  }
901
902
  /**
@@ -914,7 +915,7 @@ function gi({ code: n }) {
914
915
  * See the License for the specific language governing permissions and
915
916
  * limitations under the License.
916
917
  */
917
- class _i {
918
+ class vi {
918
919
  constructor(e) {
919
920
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
920
921
  }
@@ -1011,7 +1012,7 @@ class Ue {
1011
1012
  */
1012
1013
  async function ve(n) {
1013
1014
  var e;
1014
- const t = n.auth, i = await n.getIdToken(), r = await ie(n, Mt(t, { idToken: i }));
1015
+ const t = n.auth, i = await n.getIdToken(), r = await re(n, Mt(t, { idToken: i }));
1015
1016
  u(
1016
1017
  r == null ? void 0 : r.users.length,
1017
1018
  t,
@@ -1020,7 +1021,7 @@ async function ve(n) {
1020
1021
  );
1021
1022
  const s = r.users[0];
1022
1023
  n._notifyReloadListener(s);
1023
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ii(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1024
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = yi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1024
1025
  uid: s.localId,
1025
1026
  displayName: s.displayName || null,
1026
1027
  photoURL: s.photoUrl || null,
@@ -1034,11 +1035,11 @@ async function ve(n) {
1034
1035
  };
1035
1036
  Object.assign(n, m);
1036
1037
  }
1037
- async function vi(n) {
1038
+ async function Ii(n) {
1038
1039
  const e = Y(n);
1039
1040
  await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1040
1041
  }
1041
- function Ii(n, e) {
1042
+ function yi(n, e) {
1042
1043
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1043
1044
  }
1044
1045
  function Ut(n) {
@@ -1070,9 +1071,9 @@ function Ut(n) {
1070
1071
  * See the License for the specific language governing permissions and
1071
1072
  * limitations under the License.
1072
1073
  */
1073
- async function yi(n, e) {
1074
+ async function wi(n, e) {
1074
1075
  const t = await Nt(n, {}, async () => {
1075
- const i = se({
1076
+ const i = oe({
1076
1077
  grant_type: "refresh_token",
1077
1078
  refresh_token: e
1078
1079
  }).slice(1), { tokenApiHost: r, apiKey: s } = n.config, o = Lt(n, r, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
@@ -1091,7 +1092,7 @@ async function yi(n, e) {
1091
1092
  refreshToken: t.refresh_token
1092
1093
  };
1093
1094
  }
1094
- async function wi(n, e) {
1095
+ async function Ti(n, e) {
1095
1096
  return X(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1096
1097
  }
1097
1098
  /**
@@ -1155,7 +1156,7 @@ class q {
1155
1156
  this.refreshToken = null;
1156
1157
  }
1157
1158
  async refresh(e, t) {
1158
- const { accessToken: i, refreshToken: r, expiresIn: s } = await yi(e, t);
1159
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await wi(e, t);
1159
1160
  this.updateTokensAndExpiration(i, r, Number(s));
1160
1161
  }
1161
1162
  updateTokensAndExpiration(e, t, i) {
@@ -1210,10 +1211,10 @@ function U(n, e) {
1210
1211
  class C {
1211
1212
  constructor(e) {
1212
1213
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
1213
- this.providerId = "firebase", this.proactiveRefresh = new _i(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1214
+ this.providerId = "firebase", this.proactiveRefresh = new vi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1214
1215
  }
1215
1216
  async getIdToken(e) {
1216
- const t = await ie(this, this.stsTokenManager.getToken(this.auth, e));
1217
+ const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
1217
1218
  return u(
1218
1219
  t,
1219
1220
  this.auth,
@@ -1222,10 +1223,10 @@ class C {
1222
1223
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1223
1224
  }
1224
1225
  getIdTokenResult(e) {
1225
- return mi(this, e);
1226
+ return gi(this, e);
1226
1227
  }
1227
1228
  reload() {
1228
- return vi(this);
1229
+ return Ii(this);
1229
1230
  }
1230
1231
  _assign(e) {
1231
1232
  this !== e && (u(
@@ -1264,7 +1265,7 @@ class C {
1264
1265
  if (A(this.auth.app))
1265
1266
  return Promise.reject($(this.auth));
1266
1267
  const e = await this.getIdToken();
1267
- return await ie(this, pi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1268
+ return await re(this, mi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1268
1269
  }
1269
1270
  toJSON() {
1270
1271
  return Object.assign(Object.assign({
@@ -1292,7 +1293,7 @@ class C {
1292
1293
  }
1293
1294
  static _fromJSON(e, t) {
1294
1295
  var i, r, s, o, c, a, l, d;
1295
- const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, h = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, _ = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, f = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1296
+ const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, f = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, _ = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, h = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1296
1297
  u(
1297
1298
  k && Ye,
1298
1299
  e,
@@ -1305,7 +1306,7 @@ class C {
1305
1306
  e,
1306
1307
  "internal-error"
1307
1308
  /* AuthErrorCode.INTERNAL_ERROR */
1308
- ), U(m, e.name), U(h, e.name), u(
1309
+ ), U(m, e.name), U(f, e.name), u(
1309
1310
  typeof Ke == "boolean",
1310
1311
  e,
1311
1312
  "internal-error"
@@ -1315,17 +1316,17 @@ class C {
1315
1316
  e,
1316
1317
  "internal-error"
1317
1318
  /* AuthErrorCode.INTERNAL_ERROR */
1318
- ), U(y, e.name), U(_, e.name), U(f, e.name), U(I, e.name), U(T, e.name), U(M, e.name);
1319
+ ), U(y, e.name), U(_, e.name), U(h, e.name), U(I, e.name), U(T, e.name), U(M, e.name);
1319
1320
  const Ae = new C({
1320
1321
  uid: k,
1321
1322
  auth: e,
1322
- email: h,
1323
+ email: f,
1323
1324
  emailVerified: Ke,
1324
1325
  displayName: m,
1325
1326
  isAnonymous: Je,
1326
1327
  photoURL: _,
1327
1328
  phoneNumber: y,
1328
- tenantId: f,
1329
+ tenantId: h,
1329
1330
  stsTokenManager: on,
1330
1331
  createdAt: T,
1331
1332
  lastLoginAt: M
@@ -1460,14 +1461,14 @@ const st = Dt;
1460
1461
  * See the License for the specific language governing permissions and
1461
1462
  * limitations under the License.
1462
1463
  */
1463
- function de(n, e, t) {
1464
+ function he(n, e, t) {
1464
1465
  return `firebase:${n}:${e}:${t}`;
1465
1466
  }
1466
1467
  class K {
1467
1468
  constructor(e, t, i) {
1468
1469
  this.persistence = e, this.auth = t, this.userKey = i;
1469
1470
  const { config: r, name: s } = this.auth;
1470
- this.fullUserKey = de(this.userKey, r.apiKey, s), this.fullPersistenceKey = de("persistence", r.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
1471
+ this.fullUserKey = he(this.userKey, r.apiKey, s), this.fullPersistenceKey = he("persistence", r.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
1471
1472
  }
1472
1473
  setCurrentUser(e) {
1473
1474
  return this.persistence._set(this.fullUserKey, e.toJSON());
@@ -1500,7 +1501,7 @@ class K {
1500
1501
  return l;
1501
1502
  }))).filter((l) => l);
1502
1503
  let s = r[0] || N(st);
1503
- const o = de(i, e.config.apiKey, e.name);
1504
+ const o = he(i, e.config.apiKey, e.name);
1504
1505
  let c = null;
1505
1506
  for (const l of t)
1506
1507
  try {
@@ -1594,17 +1595,17 @@ function jt(n = w()) {
1594
1595
  function ke(n = w()) {
1595
1596
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1596
1597
  }
1597
- function Ti(n = w()) {
1598
+ function ki(n = w()) {
1598
1599
  var e;
1599
1600
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1600
1601
  }
1601
- function ki() {
1602
- return Nn() && document.documentMode === 10;
1602
+ function bi() {
1603
+ return On() && document.documentMode === 10;
1603
1604
  }
1604
1605
  function Wt(n = w()) {
1605
1606
  return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1606
1607
  }
1607
- function bi() {
1608
+ function Ei() {
1608
1609
  try {
1609
1610
  return !!(window && window !== window.top);
1610
1611
  } catch {
@@ -1640,7 +1641,7 @@ function Bt(n, e = []) {
1640
1641
  t = n;
1641
1642
  }
1642
1643
  const i = e.length ? e.join(",") : "FirebaseCore-web";
1643
- return `${t}/JsCore/${re}/${i}`;
1644
+ return `${t}/JsCore/${se}/${i}`;
1644
1645
  }
1645
1646
  /**
1646
1647
  * @license
@@ -1658,7 +1659,7 @@ function Bt(n, e = []) {
1658
1659
  * See the License for the specific language governing permissions and
1659
1660
  * limitations under the License.
1660
1661
  */
1661
- class Ei {
1662
+ class Si {
1662
1663
  constructor(e) {
1663
1664
  this.auth = e, this.queue = [];
1664
1665
  }
@@ -1713,7 +1714,7 @@ class Ei {
1713
1714
  * See the License for the specific language governing permissions and
1714
1715
  * limitations under the License.
1715
1716
  */
1716
- async function Si(n, e = {}) {
1717
+ async function Ri(n, e = {}) {
1717
1718
  return X(n, "GET", "/v2/passwordPolicy", Te(n, e));
1718
1719
  }
1719
1720
  /**
@@ -1732,12 +1733,12 @@ async function Si(n, e = {}) {
1732
1733
  * See the License for the specific language governing permissions and
1733
1734
  * limitations under the License.
1734
1735
  */
1735
- const Ri = 6;
1736
- class Ai {
1736
+ const Ai = 6;
1737
+ class Pi {
1737
1738
  constructor(e) {
1738
1739
  var t, i, r, s;
1739
1740
  const o = e.customStrengthOptions;
1740
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ri, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1741
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ai, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1741
1742
  }
1742
1743
  validatePassword(e) {
1743
1744
  var t, i, r, s, o, c;
@@ -1820,9 +1821,9 @@ class Ai {
1820
1821
  * See the License for the specific language governing permissions and
1821
1822
  * limitations under the License.
1822
1823
  */
1823
- class Pi {
1824
+ class Ci {
1824
1825
  constructor(e, t, i, r) {
1825
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Ei(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1826
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Si(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1826
1827
  }
1827
1828
  _initializeWithPersistence(e, t) {
1828
1829
  return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
@@ -1916,7 +1917,7 @@ class Pi {
1916
1917
  return this.directlySetCurrentUser(e);
1917
1918
  }
1918
1919
  useDeviceLanguage() {
1919
- this.languageCode = ui();
1920
+ this.languageCode = di();
1920
1921
  }
1921
1922
  async _delete() {
1922
1923
  this._deleted = !0;
@@ -1967,7 +1968,7 @@ class Pi {
1967
1968
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1968
1969
  }
1969
1970
  async _updatePasswordPolicy() {
1970
- const e = await Si(this), t = new Ai(e);
1971
+ const e = await Ri(this), t = new Pi(e);
1971
1972
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1972
1973
  }
1973
1974
  _getPersistence() {
@@ -2007,7 +2008,7 @@ class Pi {
2007
2008
  token: e,
2008
2009
  idToken: t
2009
2010
  };
2010
- this.tenantId != null && (i.tenantId = this.tenantId), await wi(this, i);
2011
+ this.tenantId != null && (i.tenantId = this.tenantId), await Ti(this, i);
2011
2012
  }
2012
2013
  }
2013
2014
  toJSON() {
@@ -2150,7 +2151,7 @@ class Pi {
2150
2151
  async _getAppCheckToken() {
2151
2152
  var e;
2152
2153
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2153
- return t != null && t.error && ai(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2154
+ return t != null && t.error && ci(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2154
2155
  }
2155
2156
  }
2156
2157
  function be(n) {
@@ -2158,7 +2159,7 @@ function be(n) {
2158
2159
  }
2159
2160
  class at {
2160
2161
  constructor(e) {
2161
- this.auth = e, this.observer = null, this.addObserver = Sn((t) => this.observer = t);
2162
+ this.auth = e, this.observer = null, this.addObserver = Rn((t) => this.observer = t);
2162
2163
  }
2163
2164
  get next() {
2164
2165
  return u(
@@ -2193,16 +2194,16 @@ let Ge = {
2193
2194
  recaptchaEnterpriseScript: "",
2194
2195
  gapiScript: ""
2195
2196
  };
2196
- function Ci(n) {
2197
+ function Ni(n) {
2197
2198
  Ge = n;
2198
2199
  }
2199
- function Ni(n) {
2200
+ function Oi(n) {
2200
2201
  return Ge.loadJS(n);
2201
2202
  }
2202
- function Oi() {
2203
+ function Li() {
2203
2204
  return Ge.gapiScript;
2204
2205
  }
2205
- function Li(n) {
2206
+ function Mi(n) {
2206
2207
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2207
2208
  }
2208
2209
  /**
@@ -2221,11 +2222,11 @@ function Li(n) {
2221
2222
  * See the License for the specific language governing permissions and
2222
2223
  * limitations under the License.
2223
2224
  */
2224
- function Mi(n, e) {
2225
+ function Ui(n, e) {
2225
2226
  const t = bt(n, "auth");
2226
2227
  if (t.isInitialized()) {
2227
2228
  const r = t.getImmediate(), s = t.getOptions();
2228
- if (Pn(s, e ?? {}))
2229
+ if (Cn(s, e ?? {}))
2229
2230
  return r;
2230
2231
  O(
2231
2232
  r,
@@ -2235,11 +2236,11 @@ function Mi(n, e) {
2235
2236
  }
2236
2237
  return t.initialize({ options: e });
2237
2238
  }
2238
- function Ui(n, e) {
2239
+ function Di(n, e) {
2239
2240
  const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2240
2241
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2241
2242
  }
2242
- function Di(n, e, t) {
2243
+ function xi(n, e, t) {
2243
2244
  const i = be(n);
2244
2245
  u(
2245
2246
  i._canInitEmulator,
@@ -2252,19 +2253,19 @@ function Di(n, e, t) {
2252
2253
  "invalid-emulator-scheme"
2253
2254
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2254
2255
  );
2255
- const r = !1, s = Gt(e), { host: o, port: c } = xi(e), a = c === null ? "" : `:${c}`;
2256
+ const r = !1, s = Gt(e), { host: o, port: c } = Fi(e), a = c === null ? "" : `:${c}`;
2256
2257
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2257
2258
  host: o,
2258
2259
  port: c,
2259
2260
  protocol: s.replace(":", ""),
2260
2261
  options: Object.freeze({ disableWarnings: r })
2261
- }), Fi();
2262
+ }), Vi();
2262
2263
  }
2263
2264
  function Gt(n) {
2264
2265
  const e = n.indexOf(":");
2265
2266
  return e < 0 ? "" : n.substr(0, e + 1);
2266
2267
  }
2267
- function xi(n) {
2268
+ function Fi(n) {
2268
2269
  const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2269
2270
  if (!t)
2270
2271
  return { host: "", port: null };
@@ -2283,7 +2284,7 @@ function ct(n) {
2283
2284
  const e = Number(n);
2284
2285
  return isNaN(e) ? null : e;
2285
2286
  }
2286
- function Fi() {
2287
+ function Vi() {
2287
2288
  function n() {
2288
2289
  const e = document.createElement("p"), t = e.style;
2289
2290
  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);
@@ -2367,7 +2368,7 @@ async function J(n, e) {
2367
2368
  * See the License for the specific language governing permissions and
2368
2369
  * limitations under the License.
2369
2370
  */
2370
- const Vi = "http://localhost";
2371
+ const $i = "http://localhost";
2371
2372
  class W extends zt {
2372
2373
  constructor() {
2373
2374
  super(...arguments), this.pendingToken = null;
@@ -2425,14 +2426,14 @@ class W extends zt {
2425
2426
  }
2426
2427
  buildRequest() {
2427
2428
  const e = {
2428
- requestUri: Vi,
2429
+ requestUri: $i,
2429
2430
  returnSecureToken: !0
2430
2431
  };
2431
2432
  if (this.pendingToken)
2432
2433
  e.pendingToken = this.pendingToken;
2433
2434
  else {
2434
2435
  const t = {};
2435
- this.idToken && (t.id_token = this.idToken), this.accessToken && (t.access_token = this.accessToken), this.secret && (t.oauth_token_secret = this.secret), t.providerId = this.providerId, this.nonce && !this.pendingToken && (t.nonce = this.nonce), e.postBody = se(t);
2436
+ this.idToken && (t.id_token = this.idToken), this.accessToken && (t.access_token = this.accessToken), this.secret && (t.oauth_token_secret = this.secret), t.providerId = this.providerId, this.nonce && !this.pendingToken && (t.nonce = this.nonce), e.postBody = oe(t);
2436
2437
  }
2437
2438
  return e;
2438
2439
  }
@@ -2506,7 +2507,7 @@ class qt {
2506
2507
  * See the License for the specific language governing permissions and
2507
2508
  * limitations under the License.
2508
2509
  */
2509
- class ae extends qt {
2510
+ class ce extends qt {
2510
2511
  constructor() {
2511
2512
  super(...arguments), this.scopes = [];
2512
2513
  }
@@ -2541,7 +2542,7 @@ class ae extends qt {
2541
2542
  * See the License for the specific language governing permissions and
2542
2543
  * limitations under the License.
2543
2544
  */
2544
- class D extends ae {
2545
+ class D extends ce {
2545
2546
  constructor() {
2546
2547
  super(
2547
2548
  "facebook.com"
@@ -2612,7 +2613,7 @@ D.PROVIDER_ID = "facebook.com";
2612
2613
  * See the License for the specific language governing permissions and
2613
2614
  * limitations under the License.
2614
2615
  */
2615
- class x extends ae {
2616
+ class x extends ce {
2616
2617
  constructor() {
2617
2618
  super(
2618
2619
  "google.com"
@@ -2688,7 +2689,7 @@ x.PROVIDER_ID = "google.com";
2688
2689
  * See the License for the specific language governing permissions and
2689
2690
  * limitations under the License.
2690
2691
  */
2691
- class F extends ae {
2692
+ class F extends ce {
2692
2693
  constructor() {
2693
2694
  super(
2694
2695
  "github.com"
@@ -2752,7 +2753,7 @@ F.PROVIDER_ID = "github.com";
2752
2753
  * See the License for the specific language governing permissions and
2753
2754
  * limitations under the License.
2754
2755
  */
2755
- class V extends ae {
2756
+ class V extends ce {
2756
2757
  constructor() {
2757
2758
  super(
2758
2759
  "twitter.com"
@@ -2887,8 +2888,8 @@ function Kt(n, e, t, i) {
2887
2888
  throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
2888
2889
  });
2889
2890
  }
2890
- async function $i(n, e, t = !1) {
2891
- const i = await ie(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2891
+ async function Hi(n, e, t = !1) {
2892
+ const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2892
2893
  return B._forOperation(n, "link", i);
2893
2894
  }
2894
2895
  /**
@@ -2907,13 +2908,13 @@ async function $i(n, e, t = !1) {
2907
2908
  * See the License for the specific language governing permissions and
2908
2909
  * limitations under the License.
2909
2910
  */
2910
- async function Hi(n, e, t = !1) {
2911
+ async function ji(n, e, t = !1) {
2911
2912
  const { auth: i } = n;
2912
2913
  if (A(i.app))
2913
2914
  return Promise.reject($(i));
2914
2915
  const r = "reauthenticate";
2915
2916
  try {
2916
- const s = await ie(n, Kt(i, r, e, n), t);
2917
+ const s = await re(n, Kt(i, r, e, n), t);
2917
2918
  u(
2918
2919
  s.idToken,
2919
2920
  i,
@@ -2958,7 +2959,7 @@ async function Hi(n, e, t = !1) {
2958
2959
  * See the License for the specific language governing permissions and
2959
2960
  * limitations under the License.
2960
2961
  */
2961
- async function ji(n, e, t = !1) {
2962
+ async function Wi(n, e, t = !1) {
2962
2963
  if (A(n.app))
2963
2964
  return Promise.reject($(n));
2964
2965
  const i = "signIn", r = await Kt(n, i, e), s = await B._fromIdTokenResponse(n, i, r);
@@ -2980,7 +2981,7 @@ async function ji(n, e, t = !1) {
2980
2981
  * See the License for the specific language governing permissions and
2981
2982
  * limitations under the License.
2982
2983
  */
2983
- async function Wi(n, e) {
2984
+ async function Bi(n, e) {
2984
2985
  return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
2985
2986
  }
2986
2987
  /**
@@ -2999,19 +3000,19 @@ async function Wi(n, e) {
2999
3000
  * See the License for the specific language governing permissions and
3000
3001
  * limitations under the License.
3001
3002
  */
3002
- async function Bi(n, e) {
3003
+ async function Gi(n, e) {
3003
3004
  if (A(n.app))
3004
3005
  return Promise.reject($(n));
3005
- const t = be(n), i = await Wi(t, {
3006
+ const t = be(n), i = await Bi(t, {
3006
3007
  token: e,
3007
3008
  returnSecureToken: !0
3008
3009
  }), r = await B._fromIdTokenResponse(t, "signIn", i);
3009
3010
  return await t._updateCurrentUser(r.user), r;
3010
3011
  }
3011
- function Gi(n, e, t, i) {
3012
+ function zi(n, e, t, i) {
3012
3013
  return Y(n).onIdTokenChanged(e, t, i);
3013
3014
  }
3014
- function zi(n, e, t) {
3015
+ function qi(n, e, t) {
3015
3016
  return Y(n).beforeAuthStateChanged(e, t);
3016
3017
  }
3017
3018
  const ye = "__sak";
@@ -3072,18 +3073,18 @@ class Jt {
3072
3073
  * See the License for the specific language governing permissions and
3073
3074
  * limitations under the License.
3074
3075
  */
3075
- function qi() {
3076
+ function Ki() {
3076
3077
  const n = w();
3077
3078
  return Be(n) || ke(n);
3078
3079
  }
3079
- const Ki = 1e3, Ji = 10;
3080
+ const Ji = 1e3, Yi = 10;
3080
3081
  class Yt extends Jt {
3081
3082
  constructor() {
3082
3083
  super(
3083
3084
  () => window.localStorage,
3084
3085
  "LOCAL"
3085
3086
  /* PersistenceType.LOCAL */
3086
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = qi() && bi(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3087
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ki() && Ei(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3087
3088
  }
3088
3089
  forAllChangedKeys(e) {
3089
3090
  for (const t of Object.keys(this.listeners)) {
@@ -3110,7 +3111,7 @@ class Yt extends Jt {
3110
3111
  const o = this.storage.getItem(i);
3111
3112
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3112
3113
  }, s = this.storage.getItem(i);
3113
- ki() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Ji) : r();
3114
+ bi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Yi) : r();
3114
3115
  }
3115
3116
  notifyListeners(e, t) {
3116
3117
  this.localCache[e] = t;
@@ -3132,7 +3133,7 @@ class Yt extends Jt {
3132
3133
  !0
3133
3134
  );
3134
3135
  });
3135
- }, Ki);
3136
+ }, Ji);
3136
3137
  }
3137
3138
  stopPolling() {
3138
3139
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3162,7 +3163,7 @@ class Yt extends Jt {
3162
3163
  }
3163
3164
  }
3164
3165
  Yt.type = "LOCAL";
3165
- const Yi = Yt;
3166
+ const Xi = Yt;
3166
3167
  /**
3167
3168
  * @license
3168
3169
  * Copyright 2020 Google LLC
@@ -3210,7 +3211,7 @@ const Qt = Xt;
3210
3211
  * See the License for the specific language governing permissions and
3211
3212
  * limitations under the License.
3212
3213
  */
3213
- function Xi(n) {
3214
+ function Qi(n) {
3214
3215
  return Promise.all(n.map(async (e) => {
3215
3216
  try {
3216
3217
  return {
@@ -3280,7 +3281,7 @@ class Ee {
3280
3281
  eventId: i,
3281
3282
  eventType: r
3282
3283
  });
3283
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Xi(c);
3284
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Qi(c);
3284
3285
  t.ports[0].postMessage({
3285
3286
  status: "done",
3286
3287
  eventId: i,
@@ -3348,7 +3349,7 @@ function ze(n = "", e = 10) {
3348
3349
  * See the License for the specific language governing permissions and
3349
3350
  * limitations under the License.
3350
3351
  */
3351
- class Qi {
3352
+ class Zi {
3352
3353
  constructor(e) {
3353
3354
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3354
3355
  }
@@ -3393,9 +3394,9 @@ class Qi {
3393
3394
  o = {
3394
3395
  messageChannel: r,
3395
3396
  onMessage(m) {
3396
- const h = m;
3397
- if (h.data.eventId === l)
3398
- switch (h.data.status) {
3397
+ const f = m;
3398
+ if (f.data.eventId === l)
3399
+ switch (f.data.status) {
3399
3400
  case "ack":
3400
3401
  clearTimeout(d), s = setTimeout(
3401
3402
  () => {
@@ -3409,7 +3410,7 @@ class Qi {
3409
3410
  );
3410
3411
  break;
3411
3412
  case "done":
3412
- clearTimeout(s), c(h.data.response);
3413
+ clearTimeout(s), c(f.data.response);
3413
3414
  break;
3414
3415
  default:
3415
3416
  clearTimeout(d), clearTimeout(s), a(new Error(
@@ -3448,7 +3449,7 @@ class Qi {
3448
3449
  function E() {
3449
3450
  return window;
3450
3451
  }
3451
- function Zi(n) {
3452
+ function er(n) {
3452
3453
  E().location.href = n;
3453
3454
  }
3454
3455
  /**
@@ -3470,7 +3471,7 @@ function Zi(n) {
3470
3471
  function Zt() {
3471
3472
  return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3472
3473
  }
3473
- async function er() {
3474
+ async function tr() {
3474
3475
  if (!(navigator != null && navigator.serviceWorker))
3475
3476
  return null;
3476
3477
  try {
@@ -3479,11 +3480,11 @@ async function er() {
3479
3480
  return null;
3480
3481
  }
3481
3482
  }
3482
- function tr() {
3483
+ function nr() {
3483
3484
  var n;
3484
3485
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3485
3486
  }
3486
- function nr() {
3487
+ function ir() {
3487
3488
  return Zt() ? self : null;
3488
3489
  }
3489
3490
  /**
@@ -3502,8 +3503,8 @@ function nr() {
3502
3503
  * See the License for the specific language governing permissions and
3503
3504
  * limitations under the License.
3504
3505
  */
3505
- const en = "firebaseLocalStorageDb", ir = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3506
- class ce {
3506
+ const en = "firebaseLocalStorageDb", rr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3507
+ class le {
3507
3508
  constructor(e) {
3508
3509
  this.request = e;
3509
3510
  }
@@ -3520,12 +3521,12 @@ class ce {
3520
3521
  function Se(n, e) {
3521
3522
  return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3522
3523
  }
3523
- function rr() {
3524
+ function sr() {
3524
3525
  const n = indexedDB.deleteDatabase(en);
3525
- return new ce(n).toPromise();
3526
+ return new le(n).toPromise();
3526
3527
  }
3527
3528
  function De() {
3528
- const n = indexedDB.open(en, ir);
3529
+ const n = indexedDB.open(en, rr);
3529
3530
  return new Promise((e, t) => {
3530
3531
  n.addEventListener("error", () => {
3531
3532
  t(n.error);
@@ -3538,7 +3539,7 @@ function De() {
3538
3539
  }
3539
3540
  }), n.addEventListener("success", async () => {
3540
3541
  const i = n.result;
3541
- i.objectStoreNames.contains(we) ? e(i) : (i.close(), await rr(), e(await De()));
3542
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await sr(), e(await De()));
3542
3543
  });
3543
3544
  });
3544
3545
  }
@@ -3547,17 +3548,17 @@ async function ut(n, e, t) {
3547
3548
  [tn]: e,
3548
3549
  value: t
3549
3550
  });
3550
- return new ce(i).toPromise();
3551
+ return new le(i).toPromise();
3551
3552
  }
3552
- async function sr(n, e) {
3553
- const t = Se(n, !1).get(e), i = await new ce(t).toPromise();
3553
+ async function or(n, e) {
3554
+ const t = Se(n, !1).get(e), i = await new le(t).toPromise();
3554
3555
  return i === void 0 ? null : i.value;
3555
3556
  }
3556
3557
  function dt(n, e) {
3557
3558
  const t = Se(n, !0).delete(e);
3558
- return new ce(t).toPromise();
3559
+ return new le(t).toPromise();
3559
3560
  }
3560
- const or = 800, ar = 3;
3561
+ const ar = 800, cr = 3;
3561
3562
  class nn {
3562
3563
  constructor() {
3563
3564
  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(() => {
@@ -3574,7 +3575,7 @@ class nn {
3574
3575
  const i = await this._openDb();
3575
3576
  return await e(i);
3576
3577
  } catch (i) {
3577
- if (t++ > ar)
3578
+ if (t++ > cr)
3578
3579
  throw i;
3579
3580
  this.db && (this.db.close(), this.db = void 0);
3580
3581
  }
@@ -3590,7 +3591,7 @@ class nn {
3590
3591
  * As the worker we should listen to events from the main window.
3591
3592
  */
3592
3593
  async initializeReceiver() {
3593
- this.receiver = Ee._getInstance(nr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3594
+ this.receiver = Ee._getInstance(ir()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3594
3595
  keyProcessed: (await this._poll()).includes(t.key)
3595
3596
  })), this.receiver._subscribe("ping", async (e, t) => [
3596
3597
  "keyChanged"
@@ -3606,9 +3607,9 @@ class nn {
3606
3607
  */
3607
3608
  async initializeSender() {
3608
3609
  var e, t;
3609
- if (this.activeServiceWorker = await er(), !this.activeServiceWorker)
3610
+ if (this.activeServiceWorker = await tr(), !this.activeServiceWorker)
3610
3611
  return;
3611
- this.sender = new Qi(this.activeServiceWorker);
3612
+ this.sender = new Zi(this.activeServiceWorker);
3612
3613
  const i = await this.sender._send(
3613
3614
  "ping",
3614
3615
  {},
@@ -3630,7 +3631,7 @@ class nn {
3630
3631
  * @param key - Storage key which changed.
3631
3632
  */
3632
3633
  async notifyServiceWorker(e) {
3633
- if (!(!this.sender || !this.activeServiceWorker || tr() !== this.activeServiceWorker))
3634
+ if (!(!this.sender || !this.activeServiceWorker || nr() !== this.activeServiceWorker))
3634
3635
  try {
3635
3636
  await this.sender._send(
3636
3637
  "keyChanged",
@@ -3664,7 +3665,7 @@ class nn {
3664
3665
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3665
3666
  }
3666
3667
  async _get(e) {
3667
- const t = await this._withRetries((i) => sr(i, e));
3668
+ const t = await this._withRetries((i) => or(i, e));
3668
3669
  return this.localCache[e] = t, t;
3669
3670
  }
3670
3671
  async _remove(e) {
@@ -3673,7 +3674,7 @@ class nn {
3673
3674
  async _poll() {
3674
3675
  const e = await this._withRetries((r) => {
3675
3676
  const s = Se(r, !1).getAll();
3676
- return new ce(s).toPromise();
3677
+ return new le(s).toPromise();
3677
3678
  });
3678
3679
  if (!e)
3679
3680
  return [];
@@ -3695,7 +3696,7 @@ class nn {
3695
3696
  r(t);
3696
3697
  }
3697
3698
  startPolling() {
3698
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), or);
3699
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), ar);
3699
3700
  }
3700
3701
  stopPolling() {
3701
3702
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3708,8 +3709,8 @@ class nn {
3708
3709
  }
3709
3710
  }
3710
3711
  nn.type = "LOCAL";
3711
- const cr = nn;
3712
- new oe(3e4, 6e4);
3712
+ const lr = nn;
3713
+ new ae(3e4, 6e4);
3713
3714
  /**
3714
3715
  * @license
3715
3716
  * Copyright 2021 Google LLC
@@ -3726,7 +3727,7 @@ new oe(3e4, 6e4);
3726
3727
  * See the License for the specific language governing permissions and
3727
3728
  * limitations under the License.
3728
3729
  */
3729
- function lr(n, e) {
3730
+ function ur(n, e) {
3730
3731
  return e ? N(e) : (u(
3731
3732
  n._popupRedirectResolver,
3732
3733
  n,
@@ -3780,26 +3781,26 @@ class qe extends zt {
3780
3781
  return e && (t.idToken = e), t;
3781
3782
  }
3782
3783
  }
3783
- function ur(n) {
3784
- return ji(n.auth, new qe(n), n.bypassAuthState);
3785
- }
3786
3784
  function dr(n) {
3785
+ return Wi(n.auth, new qe(n), n.bypassAuthState);
3786
+ }
3787
+ function hr(n) {
3787
3788
  const { auth: e, user: t } = n;
3788
3789
  return u(
3789
3790
  t,
3790
3791
  e,
3791
3792
  "internal-error"
3792
3793
  /* AuthErrorCode.INTERNAL_ERROR */
3793
- ), Hi(t, new qe(n), n.bypassAuthState);
3794
+ ), ji(t, new qe(n), n.bypassAuthState);
3794
3795
  }
3795
- async function hr(n) {
3796
+ async function fr(n) {
3796
3797
  const { auth: e, user: t } = n;
3797
3798
  return u(
3798
3799
  t,
3799
3800
  e,
3800
3801
  "internal-error"
3801
3802
  /* AuthErrorCode.INTERNAL_ERROR */
3802
- ), $i(t, new qe(n), n.bypassAuthState);
3803
+ ), Hi(t, new qe(n), n.bypassAuthState);
3803
3804
  }
3804
3805
  /**
3805
3806
  * @license
@@ -3859,13 +3860,13 @@ class rn {
3859
3860
  switch (e) {
3860
3861
  case "signInViaPopup":
3861
3862
  case "signInViaRedirect":
3862
- return ur;
3863
+ return dr;
3863
3864
  case "linkViaPopup":
3864
3865
  case "linkViaRedirect":
3865
- return hr;
3866
+ return fr;
3866
3867
  case "reauthViaPopup":
3867
3868
  case "reauthViaRedirect":
3868
- return dr;
3869
+ return hr;
3869
3870
  default:
3870
3871
  O(
3871
3872
  this.auth,
@@ -3900,7 +3901,7 @@ class rn {
3900
3901
  * See the License for the specific language governing permissions and
3901
3902
  * limitations under the License.
3902
3903
  */
3903
- const fr = new oe(2e3, 1e4);
3904
+ const pr = new ae(2e3, 1e4);
3904
3905
  class z extends rn {
3905
3906
  constructor(e, t, i, r, s) {
3906
3907
  super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
@@ -3964,7 +3965,7 @@ class z extends rn {
3964
3965
  );
3965
3966
  return;
3966
3967
  }
3967
- this.pollId = window.setTimeout(e, fr.get());
3968
+ this.pollId = window.setTimeout(e, pr.get());
3968
3969
  };
3969
3970
  e();
3970
3971
  }
@@ -3986,8 +3987,8 @@ z.currentPopupAction = null;
3986
3987
  * See the License for the specific language governing permissions and
3987
3988
  * limitations under the License.
3988
3989
  */
3989
- const pr = "pendingRedirect", he = /* @__PURE__ */ new Map();
3990
- class mr extends rn {
3990
+ const mr = "pendingRedirect", fe = /* @__PURE__ */ new Map();
3991
+ class gr extends rn {
3991
3992
  constructor(e, t, i = !1) {
3992
3993
  super(e, [
3993
3994
  "signInViaRedirect",
@@ -4002,17 +4003,17 @@ class mr extends rn {
4002
4003
  * just return it.
4003
4004
  */
4004
4005
  async execute() {
4005
- let e = he.get(this.auth._key());
4006
+ let e = fe.get(this.auth._key());
4006
4007
  if (!e) {
4007
4008
  try {
4008
- const i = await gr(this.resolver, this.auth) ? await super.execute() : null;
4009
+ const i = await _r(this.resolver, this.auth) ? await super.execute() : null;
4009
4010
  e = () => Promise.resolve(i);
4010
4011
  } catch (t) {
4011
4012
  e = () => Promise.reject(t);
4012
4013
  }
4013
- he.set(this.auth._key(), e);
4014
+ fe.set(this.auth._key(), e);
4014
4015
  }
4015
- return this.bypassAuthState || he.set(this.auth._key(), () => Promise.resolve(null)), e();
4016
+ return this.bypassAuthState || fe.set(this.auth._key(), () => Promise.resolve(null)), e();
4016
4017
  }
4017
4018
  async onAuthEvent(e) {
4018
4019
  if (e.type === "signInViaRedirect")
@@ -4033,26 +4034,26 @@ class mr extends rn {
4033
4034
  cleanUp() {
4034
4035
  }
4035
4036
  }
4036
- async function gr(n, e) {
4037
- const t = Ir(e), i = vr(n);
4037
+ async function _r(n, e) {
4038
+ const t = yr(e), i = Ir(n);
4038
4039
  if (!await i._isAvailable())
4039
4040
  return !1;
4040
4041
  const r = await i._get(t) === "true";
4041
4042
  return await i._remove(t), r;
4042
4043
  }
4043
- function _r(n, e) {
4044
- he.set(n._key(), e);
4044
+ function vr(n, e) {
4045
+ fe.set(n._key(), e);
4045
4046
  }
4046
- function vr(n) {
4047
+ function Ir(n) {
4047
4048
  return N(n._redirectPersistence);
4048
4049
  }
4049
- function Ir(n) {
4050
- return de(pr, n.config.apiKey, n.name);
4050
+ function yr(n) {
4051
+ return he(mr, n.config.apiKey, n.name);
4051
4052
  }
4052
- async function yr(n, e, t = !1) {
4053
+ async function wr(n, e, t = !1) {
4053
4054
  if (A(n.app))
4054
4055
  return Promise.reject($(n));
4055
- const i = be(n), r = lr(i, e), o = await new mr(i, r, t).execute();
4056
+ const i = be(n), r = ur(i, e), o = await new gr(i, r, t).execute();
4056
4057
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4057
4058
  }
4058
4059
  /**
@@ -4071,8 +4072,8 @@ async function yr(n, e, t = !1) {
4071
4072
  * See the License for the specific language governing permissions and
4072
4073
  * limitations under the License.
4073
4074
  */
4074
- const wr = 10 * 60 * 1e3;
4075
- class Tr {
4075
+ const Tr = 10 * 60 * 1e3;
4076
+ class kr {
4076
4077
  constructor(e) {
4077
4078
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4078
4079
  }
@@ -4088,7 +4089,7 @@ class Tr {
4088
4089
  let t = !1;
4089
4090
  return this.consumers.forEach((i) => {
4090
4091
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4091
- }), this.hasHandledPotentialRedirect || !kr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4092
+ }), this.hasHandledPotentialRedirect || !br(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4092
4093
  }
4093
4094
  sendToConsumer(e, t) {
4094
4095
  var i;
@@ -4103,7 +4104,7 @@ class Tr {
4103
4104
  return t.filter.includes(e.type) && i;
4104
4105
  }
4105
4106
  hasEventBeenHandled(e) {
4106
- return Date.now() - this.lastProcessedEventTime >= wr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4107
+ return Date.now() - this.lastProcessedEventTime >= Tr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4107
4108
  }
4108
4109
  saveEventToCache(e) {
4109
4110
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4115,7 +4116,7 @@ function ht(n) {
4115
4116
  function sn({ type: n, error: e }) {
4116
4117
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4117
4118
  }
4118
- function kr(n) {
4119
+ function br(n) {
4119
4120
  switch (n.type) {
4120
4121
  case "signInViaRedirect":
4121
4122
  case "linkViaRedirect":
@@ -4143,7 +4144,7 @@ function kr(n) {
4143
4144
  * See the License for the specific language governing permissions and
4144
4145
  * limitations under the License.
4145
4146
  */
4146
- async function br(n, e = {}) {
4147
+ async function Er(n, e = {}) {
4147
4148
  return X(n, "GET", "/v1/projects", e);
4148
4149
  }
4149
4150
  /**
@@ -4162,14 +4163,14 @@ async function br(n, e = {}) {
4162
4163
  * See the License for the specific language governing permissions and
4163
4164
  * limitations under the License.
4164
4165
  */
4165
- const Er = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Sr = /^https?/;
4166
- async function Rr(n) {
4166
+ const Sr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Rr = /^https?/;
4167
+ async function Ar(n) {
4167
4168
  if (n.config.emulator)
4168
4169
  return;
4169
- const { authorizedDomains: e } = await br(n);
4170
+ const { authorizedDomains: e } = await Er(n);
4170
4171
  for (const t of e)
4171
4172
  try {
4172
- if (Ar(t))
4173
+ if (Pr(t))
4173
4174
  return;
4174
4175
  } catch {
4175
4176
  }
@@ -4179,15 +4180,15 @@ async function Rr(n) {
4179
4180
  /* AuthErrorCode.INVALID_ORIGIN */
4180
4181
  );
4181
4182
  }
4182
- function Ar(n) {
4183
+ function Pr(n) {
4183
4184
  const e = Me(), { protocol: t, hostname: i } = new URL(e);
4184
4185
  if (n.startsWith("chrome-extension://")) {
4185
4186
  const o = new URL(n);
4186
4187
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4187
4188
  }
4188
- if (!Sr.test(t))
4189
+ if (!Rr.test(t))
4189
4190
  return !1;
4190
- if (Er.test(n))
4191
+ if (Sr.test(n))
4191
4192
  return i === n;
4192
4193
  const r = n.replace(/\./g, "\\.");
4193
4194
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4208,7 +4209,7 @@ function Ar(n) {
4208
4209
  * See the License for the specific language governing permissions and
4209
4210
  * limitations under the License.
4210
4211
  */
4211
- const Pr = new oe(3e4, 6e4);
4212
+ const Cr = new ae(3e4, 6e4);
4212
4213
  function ft() {
4213
4214
  const n = E().___jsl;
4214
4215
  if (n != null && n.H) {
@@ -4218,7 +4219,7 @@ function ft() {
4218
4219
  n.CP[t] = null;
4219
4220
  }
4220
4221
  }
4221
- function Cr(n) {
4222
+ function Nr(n) {
4222
4223
  return new Promise((e, t) => {
4223
4224
  var i, r, s;
4224
4225
  function o() {
@@ -4233,7 +4234,7 @@ function Cr(n) {
4233
4234
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4234
4235
  ));
4235
4236
  },
4236
- timeout: Pr.get()
4237
+ timeout: Cr.get()
4237
4238
  });
4238
4239
  }
4239
4240
  if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
@@ -4241,22 +4242,22 @@ function Cr(n) {
4241
4242
  else if (!((s = E().gapi) === null || s === void 0) && s.load)
4242
4243
  o();
4243
4244
  else {
4244
- const c = Li("iframefcb");
4245
+ const c = Mi("iframefcb");
4245
4246
  return E()[c] = () => {
4246
4247
  gapi.load ? o() : t(b(
4247
4248
  n,
4248
4249
  "network-request-failed"
4249
4250
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4250
4251
  ));
4251
- }, Ni(`${Oi()}?onload=${c}`).catch((a) => t(a));
4252
+ }, Oi(`${Li()}?onload=${c}`).catch((a) => t(a));
4252
4253
  }
4253
4254
  }).catch((e) => {
4254
- throw fe = null, e;
4255
+ throw pe = null, e;
4255
4256
  });
4256
4257
  }
4257
- let fe = null;
4258
- function Nr(n) {
4259
- return fe = fe || Cr(n), fe;
4258
+ let pe = null;
4259
+ function Or(n) {
4260
+ return pe = pe || Nr(n), pe;
4260
4261
  }
4261
4262
  /**
4262
4263
  * @license
@@ -4274,7 +4275,7 @@ function Nr(n) {
4274
4275
  * See the License for the specific language governing permissions and
4275
4276
  * limitations under the License.
4276
4277
  */
4277
- const Or = new oe(5e3, 15e3), Lr = "__/auth/iframe", Mr = "emulator/auth/iframe", Ur = {
4278
+ const Lr = new ae(5e3, 15e3), Mr = "__/auth/iframe", Ur = "emulator/auth/iframe", Dr = {
4278
4279
  style: {
4279
4280
  position: "absolute",
4280
4281
  top: "-100px",
@@ -4283,13 +4284,13 @@ const Or = new oe(5e3, 15e3), Lr = "__/auth/iframe", Mr = "emulator/auth/iframe"
4283
4284
  },
4284
4285
  "aria-hidden": "true",
4285
4286
  tabindex: "-1"
4286
- }, Dr = /* @__PURE__ */ new Map([
4287
+ }, xr = /* @__PURE__ */ new Map([
4287
4288
  ["identitytoolkit.googleapis.com", "p"],
4288
4289
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4289
4290
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4290
4291
  // test
4291
4292
  ]);
4292
- function xr(n) {
4293
+ function Fr(n) {
4293
4294
  const e = n.config;
4294
4295
  u(
4295
4296
  e.authDomain,
@@ -4297,17 +4298,17 @@ function xr(n) {
4297
4298
  "auth-domain-config-required"
4298
4299
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4299
4300
  );
4300
- const t = e.emulator ? je(e, Mr) : `https://${n.config.authDomain}/${Lr}`, i = {
4301
+ const t = e.emulator ? je(e, Ur) : `https://${n.config.authDomain}/${Mr}`, i = {
4301
4302
  apiKey: e.apiKey,
4302
4303
  appName: n.name,
4303
- v: re
4304
- }, r = Dr.get(n.config.apiHost);
4304
+ v: se
4305
+ }, r = xr.get(n.config.apiHost);
4305
4306
  r && (i.eid = r);
4306
4307
  const s = n._getFrameworks();
4307
- return s.length && (i.fw = s.join(",")), `${t}?${se(i).slice(1)}`;
4308
+ return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
4308
4309
  }
4309
- async function Fr(n) {
4310
- const e = await Nr(n), t = E().gapi;
4310
+ async function Vr(n) {
4311
+ const e = await Or(n), t = E().gapi;
4311
4312
  return u(
4312
4313
  t,
4313
4314
  n,
@@ -4315,9 +4316,9 @@ async function Fr(n) {
4315
4316
  /* AuthErrorCode.INTERNAL_ERROR */
4316
4317
  ), e.open({
4317
4318
  where: document.body,
4318
- url: xr(n),
4319
+ url: Fr(n),
4319
4320
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4320
- attributes: Ur,
4321
+ attributes: Dr,
4321
4322
  dontclear: !0
4322
4323
  }, (i) => new Promise(async (r, s) => {
4323
4324
  await i.restyle({
@@ -4330,7 +4331,7 @@ async function Fr(n) {
4330
4331
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4331
4332
  ), c = E().setTimeout(() => {
4332
4333
  s(o);
4333
- }, Or.get());
4334
+ }, Lr.get());
4334
4335
  function a() {
4335
4336
  E().clearTimeout(c), r(i);
4336
4337
  }
@@ -4355,12 +4356,12 @@ async function Fr(n) {
4355
4356
  * See the License for the specific language governing permissions and
4356
4357
  * limitations under the License.
4357
4358
  */
4358
- const Vr = {
4359
+ const $r = {
4359
4360
  location: "yes",
4360
4361
  resizable: "yes",
4361
4362
  statusbar: "yes",
4362
4363
  toolbar: "no"
4363
- }, $r = 500, Hr = 600, jr = "_blank", Wr = "http://localhost";
4364
+ }, Hr = 500, jr = 600, Wr = "_blank", Br = "http://localhost";
4364
4365
  class pt {
4365
4366
  constructor(e) {
4366
4367
  this.window = e, this.associatedEvent = null;
@@ -4373,19 +4374,19 @@ class pt {
4373
4374
  }
4374
4375
  }
4375
4376
  }
4376
- function Br(n, e, t, i = $r, r = Hr) {
4377
+ function Gr(n, e, t, i = Hr, r = jr) {
4377
4378
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4378
4379
  let c = "";
4379
- const a = Object.assign(Object.assign({}, Vr), {
4380
+ const a = Object.assign(Object.assign({}, $r), {
4380
4381
  width: i.toString(),
4381
4382
  height: r.toString(),
4382
4383
  top: s,
4383
4384
  left: o
4384
4385
  }), l = w().toLowerCase();
4385
- t && (c = Ft(l) ? jr : t), xt(l) && (e = e || Wr, a.scrollbars = "yes");
4386
- const d = Object.entries(a).reduce((h, [y, _]) => `${h}${y}=${_},`, "");
4387
- if (Ti(l) && c !== "_self")
4388
- return Gr(e || "", c), new pt(null);
4386
+ t && (c = Ft(l) ? Wr : t), xt(l) && (e = e || Br, a.scrollbars = "yes");
4387
+ const d = Object.entries(a).reduce((f, [y, _]) => `${f}${y}=${_},`, "");
4388
+ if (ki(l) && c !== "_self")
4389
+ return zr(e || "", c), new pt(null);
4389
4390
  const m = window.open(e || "", c, d);
4390
4391
  u(
4391
4392
  m,
@@ -4399,7 +4400,7 @@ function Br(n, e, t, i = $r, r = Hr) {
4399
4400
  }
4400
4401
  return new pt(m);
4401
4402
  }
4402
- function Gr(n, e) {
4403
+ function zr(n, e) {
4403
4404
  const t = document.createElement("a");
4404
4405
  t.href = n, t.target = e;
4405
4406
  const i = document.createEvent("MouseEvent");
@@ -4421,7 +4422,7 @@ function Gr(n, e) {
4421
4422
  * See the License for the specific language governing permissions and
4422
4423
  * limitations under the License.
4423
4424
  */
4424
- const zr = "__/auth/handler", qr = "emulator/auth/handler", Kr = encodeURIComponent("fac");
4425
+ const qr = "__/auth/handler", Kr = "emulator/auth/handler", Jr = encodeURIComponent("fac");
4425
4426
  async function mt(n, e, t, i, r, s) {
4426
4427
  u(
4427
4428
  n.config.authDomain,
@@ -4439,15 +4440,15 @@ async function mt(n, e, t, i, r, s) {
4439
4440
  appName: n.name,
4440
4441
  authType: t,
4441
4442
  redirectUrl: i,
4442
- v: re,
4443
+ v: se,
4443
4444
  eventId: r
4444
4445
  };
4445
4446
  if (e instanceof qt) {
4446
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", On(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4447
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Ln(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4447
4448
  for (const [d, m] of Object.entries({}))
4448
4449
  o[d] = m;
4449
4450
  }
4450
- if (e instanceof ae) {
4451
+ if (e instanceof ce) {
4451
4452
  const d = e.getScopes().filter((m) => m !== "");
4452
4453
  d.length > 0 && (o.scopes = d.join(","));
4453
4454
  }
@@ -4455,11 +4456,11 @@ async function mt(n, e, t, i, r, s) {
4455
4456
  const c = o;
4456
4457
  for (const d of Object.keys(c))
4457
4458
  c[d] === void 0 && delete c[d];
4458
- const a = await n._getAppCheckToken(), l = a ? `#${Kr}=${encodeURIComponent(a)}` : "";
4459
- return `${Jr(n)}?${se(c).slice(1)}${l}`;
4459
+ const a = await n._getAppCheckToken(), l = a ? `#${Jr}=${encodeURIComponent(a)}` : "";
4460
+ return `${Yr(n)}?${oe(c).slice(1)}${l}`;
4460
4461
  }
4461
- function Jr({ config: n }) {
4462
- return n.emulator ? je(n, qr) : `https://${n.authDomain}/${zr}`;
4462
+ function Yr({ config: n }) {
4463
+ return n.emulator ? je(n, Kr) : `https://${n.authDomain}/${qr}`;
4463
4464
  }
4464
4465
  /**
4465
4466
  * @license
@@ -4478,9 +4479,9 @@ function Jr({ config: n }) {
4478
4479
  * limitations under the License.
4479
4480
  */
4480
4481
  const Ne = "webStorageSupport";
4481
- class Yr {
4482
+ class Xr {
4482
4483
  constructor() {
4483
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = yr, this._overrideRedirectResult = _r;
4484
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = wr, this._overrideRedirectResult = vr;
4484
4485
  }
4485
4486
  // Wrapping in async even though we don't await anywhere in order
4486
4487
  // to make sure errors are raised as promise rejections
@@ -4488,12 +4489,12 @@ class Yr {
4488
4489
  var s;
4489
4490
  L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4490
4491
  const o = await mt(e, t, i, Me(), r);
4491
- return Br(e, o, ze());
4492
+ return Gr(e, o, ze());
4492
4493
  }
4493
4494
  async _openRedirect(e, t, i, r) {
4494
4495
  await this._originValidation(e);
4495
4496
  const s = await mt(e, t, i, Me(), r);
4496
- return Zi(s), new Promise(() => {
4497
+ return er(s), new Promise(() => {
4497
4498
  });
4498
4499
  }
4499
4500
  _initialize(e) {
@@ -4508,7 +4509,7 @@ class Yr {
4508
4509
  }), i;
4509
4510
  }
4510
4511
  async initAndGetManager(e) {
4511
- const t = await Fr(e), i = new Tr(e);
4512
+ const t = await Vr(e), i = new kr(e);
4512
4513
  return t.register("authEvent", (r) => (u(
4513
4514
  r == null ? void 0 : r.authEvent,
4514
4515
  e,
@@ -4532,13 +4533,13 @@ class Yr {
4532
4533
  }
4533
4534
  _originValidation(e) {
4534
4535
  const t = e._key();
4535
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Rr(e)), this.originValidationPromises[t];
4536
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ar(e)), this.originValidationPromises[t];
4536
4537
  }
4537
4538
  get _shouldInitProactively() {
4538
4539
  return Wt() || Be() || ke();
4539
4540
  }
4540
4541
  }
4541
- const Xr = Yr;
4542
+ const Qr = Xr;
4542
4543
  var gt = "@firebase/auth", _t = "1.7.5";
4543
4544
  /**
4544
4545
  * @license
@@ -4556,7 +4557,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4556
4557
  * See the License for the specific language governing permissions and
4557
4558
  * limitations under the License.
4558
4559
  */
4559
- class Qr {
4560
+ class Zr {
4560
4561
  constructor(e) {
4561
4562
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4562
4563
  }
@@ -4607,7 +4608,7 @@ class Qr {
4607
4608
  * See the License for the specific language governing permissions and
4608
4609
  * limitations under the License.
4609
4610
  */
4610
- function Zr(n) {
4611
+ function es(n) {
4611
4612
  switch (n) {
4612
4613
  case "Node":
4613
4614
  return "node";
@@ -4623,7 +4624,7 @@ function Zr(n) {
4623
4624
  return;
4624
4625
  }
4625
4626
  }
4626
- function es(n) {
4627
+ function ts(n) {
4627
4628
  Ze(new et(
4628
4629
  "auth",
4629
4630
  (e, { options: t }) => {
@@ -4637,8 +4638,8 @@ function es(n) {
4637
4638
  tokenApiHost: "securetoken.googleapis.com",
4638
4639
  apiScheme: "https",
4639
4640
  sdkClientVersion: Bt(n)
4640
- }, l = new Pi(i, r, s, a);
4641
- return Ui(l, t), l;
4641
+ }, l = new Ci(i, r, s, a);
4642
+ return Di(l, t), l;
4642
4643
  },
4643
4644
  "PUBLIC"
4644
4645
  /* ComponentType.PUBLIC */
@@ -4657,14 +4658,14 @@ function es(n) {
4657
4658
  "auth"
4658
4659
  /* _ComponentName.AUTH */
4659
4660
  ).getImmediate());
4660
- return ((i) => new Qr(i))(t);
4661
+ return ((i) => new Zr(i))(t);
4661
4662
  },
4662
4663
  "PRIVATE"
4663
4664
  /* ComponentType.PRIVATE */
4664
4665
  ).setInstantiationMode(
4665
4666
  "EXPLICIT"
4666
4667
  /* InstantiationMode.EXPLICIT */
4667
- )), Le(gt, _t, Zr(n)), Le(gt, _t, "esm2017");
4668
+ )), Le(gt, _t, es(n)), Le(gt, _t, "esm2017");
4668
4669
  }
4669
4670
  /**
4670
4671
  * @license
@@ -4682,11 +4683,11 @@ function es(n) {
4682
4683
  * See the License for the specific language governing permissions and
4683
4684
  * limitations under the License.
4684
4685
  */
4685
- const ts = 5 * 60, ns = kt("authIdTokenMaxAge") || ts;
4686
+ const ns = 5 * 60, is = kt("authIdTokenMaxAge") || ns;
4686
4687
  let vt = null;
4687
- const is = (n) => async (e) => {
4688
+ const rs = (n) => async (e) => {
4688
4689
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4689
- if (i && i > ns)
4690
+ if (i && i > is)
4690
4691
  return;
4691
4692
  const r = t == null ? void 0 : t.token;
4692
4693
  vt !== r && (vt = r, await fetch(n, {
@@ -4696,33 +4697,33 @@ const is = (n) => async (e) => {
4696
4697
  } : {}
4697
4698
  }));
4698
4699
  };
4699
- function rs(n = An()) {
4700
+ function ss(n = Pn()) {
4700
4701
  const e = bt(n, "auth");
4701
4702
  if (e.isInitialized())
4702
4703
  return e.getImmediate();
4703
- const t = Mi(n, {
4704
- popupRedirectResolver: Xr,
4704
+ const t = Ui(n, {
4705
+ popupRedirectResolver: Qr,
4705
4706
  persistence: [
4706
- cr,
4707
- Yi,
4707
+ lr,
4708
+ Xi,
4708
4709
  Qt
4709
4710
  ]
4710
4711
  }), i = kt("authTokenSyncURL");
4711
4712
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4712
4713
  const s = new URL(i, location.origin);
4713
4714
  if (location.origin === s.origin) {
4714
- const o = is(s.toString());
4715
- zi(t, o, () => o(t.currentUser)), Gi(t, (c) => o(c));
4715
+ const o = rs(s.toString());
4716
+ qi(t, o, () => o(t.currentUser)), zi(t, (c) => o(c));
4716
4717
  }
4717
4718
  }
4718
- const r = Rn("auth");
4719
- return r && Di(t, `http://${r}`), t;
4719
+ const r = An("auth");
4720
+ return r && xi(t, `http://${r}`), t;
4720
4721
  }
4721
- function ss() {
4722
+ function os() {
4722
4723
  var n, e;
4723
4724
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4724
4725
  }
4725
- Ci({
4726
+ Ni({
4726
4727
  loadJS(n) {
4727
4728
  return new Promise((e, t) => {
4728
4729
  const i = document.createElement("script");
@@ -4732,68 +4733,79 @@ Ci({
4732
4733
  /* AuthErrorCode.INTERNAL_ERROR */
4733
4734
  );
4734
4735
  s.customData = r, t(s);
4735
- }, i.type = "text/javascript", i.charset = "UTF-8", ss().appendChild(i);
4736
+ }, i.type = "text/javascript", i.charset = "UTF-8", os().appendChild(i);
4736
4737
  });
4737
4738
  },
4738
4739
  gapiScript: "https://apis.google.com/js/api.js",
4739
4740
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4740
4741
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4741
4742
  });
4742
- es(
4743
+ ts(
4743
4744
  "Browser"
4744
4745
  /* ClientPlatform.BROWSER */
4745
4746
  );
4746
- var os = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" }, as = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
4747
- const cs = {
4747
+ var as = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" }, cs = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
4748
+ const ls = {
4748
4749
  key: 2,
4749
4750
  class: "h-full w-full"
4750
- }, ls = ["src"], Ss = /* @__PURE__ */ xe({
4751
+ }, us = ["src"], As = /* @__PURE__ */ xe({
4751
4752
  __name: "App",
4752
4753
  setup(n) {
4753
- const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge(), d = ee(!1), m = ne(() => i.version), h = ne(() => {
4754
- const f = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
4755
- return `${as.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${f}&token=${I}`;
4754
+ const e = ge(), t = pn(), i = mn(), r = _n(), s = vn(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge();
4755
+ ie(
4756
+ () => {
4757
+ var h;
4758
+ return (h = l.value) == null ? void 0 : h._id;
4759
+ },
4760
+ (h) => {
4761
+ h && gn(h);
4762
+ },
4763
+ { immediate: !0 }
4764
+ );
4765
+ const d = ee(!1), m = ne(() => i.version), f = ne(() => {
4766
+ const h = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
4767
+ return `${cs.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${h}&token=${I}`;
4756
4768
  });
4757
4769
  async function y() {
4758
- if (Ln().length) {
4770
+ if (Mn().length) {
4759
4771
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4760
4772
  return;
4761
4773
  }
4762
- const f = Mn(os.firebase), I = await fn.getCustomToken(), T = rs();
4763
- await Bi(T, I), Un(f), console.log("initFirebase", f);
4774
+ const h = Un(as.firebase), I = await fn.getCustomToken(), T = ss();
4775
+ await Gi(T, I), Dn(h), console.log("initFirebase", h);
4764
4776
  }
4765
4777
  const _ = async () => {
4766
- d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Vn) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
4778
+ d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent($n) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
4767
4779
  };
4768
4780
  return un(() => {
4769
- if (Dn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4770
- const f = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4771
- f == null || f.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4781
+ if (xn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4782
+ const h = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4783
+ h == null || h.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4772
4784
  }
4773
4785
  l.value != null && (console.log("App mounted, forceRerender"), _());
4774
- }), pe(
4786
+ }), ie(
4775
4787
  () => e.currentBusiness.value,
4776
- async (f, I) => {
4777
- console.log("Current business changed"), f != null && f._id != I._id && (console.log("forceRerender when business changes", f, I), _());
4788
+ async (h, I) => {
4789
+ console.log("Current business changed"), h != null && h._id != I._id && (console.log("forceRerender when business changes", h, I), _());
4778
4790
  }
4779
- ), (f, I) => (j(), me(It, null, [
4791
+ ), (h, I) => (j(), me(It, null, [
4780
4792
  g(d) && g(m) === "v2" ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
4781
- g(d) && g(m) === "v2" && g(c) ? (j(), Oe(ii, { key: 1 })) : Pe("", !0),
4782
- g(d) && g(m) !== "v2" ? (j(), me("div", cs, [
4783
- S(wn, {
4784
- json: { url: g(h) }
4793
+ g(d) && g(m) === "v2" && g(c) ? (j(), Oe(ri, { key: 1 })) : Pe("", !0),
4794
+ g(d) && g(m) !== "v2" ? (j(), me("div", ls, [
4795
+ S(Tn, {
4796
+ json: { url: g(f) }
4785
4797
  }, null, 8, ["json"]),
4786
4798
  v("iframe", {
4787
4799
  allow: "clipboard-read; clipboard-write",
4788
4800
  frameBorder: "0",
4789
4801
  height: "100%",
4790
4802
  width: "100%",
4791
- src: g(h)
4792
- }, null, 8, ls)
4803
+ src: g(f)
4804
+ }, null, 8, us)
4793
4805
  ])) : Pe("", !0)
4794
4806
  ], 64));
4795
4807
  }
4796
4808
  });
4797
4809
  export {
4798
- Ss as default
4810
+ As as default
4799
4811
  };