@feedmepos/mf-connect 0.1.126-dev → 0.1.127-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 (145) hide show
  1. package/dist/{App-B_Yp6cvN.js → App-BMF6m0GU.js} +216 -224
  2. package/dist/{Bin-CmIpEIwe.js → Bin-Dkn-CjZE.js} +8 -8
  3. package/dist/{Broadcast-DkV4BdU_.js → Broadcast-DqaP4ON2.js} +21 -22
  4. package/dist/{CampaignAnalytic-Dkwo_lpB.js → CampaignAnalytic-2Iuxh8-x.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Ch8Gblw6.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C8MlNehK.js} +9 -8
  6. package/dist/{Card-DXCkG34M.js → Card-Cv9eldq8.js} +22 -22
  7. package/dist/{Collections-CybPfSO4.js → Collections-CK-hxHpa.js} +185 -197
  8. package/dist/{Credit-B-KUzWsX.js → Credit-CDE4ACVm.js} +20 -21
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CWHYeYVD.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CTvIDOWy.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DUJKivXA.js +3638 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-nMcH6y5e.js → EffectSheet.vue_vue_type_style_index_0_lang-CuPhm1uG.js} +33 -33
  12. package/dist/{Experience-Q2NHpa-V.js → Experience-lLK_RR69.js} +31 -32
  13. package/dist/{FileSaver.min-CKw2rn-J.js → FileSaver.min-zDxJKfBO.js} +1 -1
  14. package/dist/{Game-lZvkg04z.js → Game-DCdfJkil.js} +18 -19
  15. package/dist/{GiftCardSetup-CPRju80_.js → GiftCardSetup-DfF1OpFk.js} +31 -31
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Ci686UoB.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-Dbx9bwJM.js} +7 -7
  17. package/dist/{Goals-asGsUeVv.js → Goals-t0wbcWxG.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-nk87zPWH.js → ImageInput.vue_vue_type_script_setup_true_lang-Bur6iCYa.js} +1 -1
  19. package/dist/{Index-DIasPS4Y.js → Index-BUF8U-h8.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DkOn8p1v.js → LocationPicker.vue_vue_type_script_setup_true_lang-kIOc-Px5.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BdSkxiP-.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DRmLpXsg.js} +1 -1
  22. package/dist/{LoyaltyDashboard-DlCsZ3YX.js → LoyaltyDashboard-8laUXBGQ.js} +15 -15
  23. package/dist/{MainLayout-DLObnTAA.js → MainLayout-BeuKKVNP.js} +1 -1
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-DigSZKt1.js → MainLayout.vue_vue_type_script_setup_true_lang-C7E3h_Zr.js} +3 -3
  25. package/dist/{Marketing-JflPW-w9.js → Marketing-DZG0oIs-.js} +4 -4
  26. package/dist/{MarketingMaterialEdit-fSAB3YVb.js → MarketingMaterialEdit--RDayaUN.js} +211 -214
  27. package/dist/{Member-CzNahXTj.js → Member-DeEQr2ef.js} +7 -7
  28. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-bqWUIbMG.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dmf4WtSt.js} +47 -39
  29. package/dist/{MemberImportHistory--r_A_2Es.js → MemberImportHistory-DMXVl1qI.js} +7 -7
  30. package/dist/{MemberList-CQZQ4sN8.js → MemberList-zqeFDkEZ.js} +105 -103
  31. package/dist/{MemberTransactions-BPg9JaUA.js → MemberTransactions-BBQPNfFG.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BhIFChx-.js → MessageInput.vue_vue_type_script_setup_true_lang-C_8yL5GL.js} +12 -12
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CdGSNqEp.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-9r-eGARm.js} +1 -1
  34. package/dist/{Mission-CYCB3YQc.js → Mission-TO8w3ucB.js} +21 -22
  35. package/dist/{Overview-DuNuUYYq.js → Overview-CPUpEzPd.js} +20 -20
  36. package/dist/{Overview-B5ylMBHT.js → Overview-D6YBYVxK.js} +144 -145
  37. package/dist/{Point-DG-Uwj25.js → Point-BSq4CRcb.js} +21 -22
  38. package/dist/{Promotion-DqxBQ1yO.js → Promotion-DgPNNfk7.js} +131 -137
  39. package/dist/{Queue-Cy8LGt_Y.js → Queue-CYyabVYT.js} +45 -45
  40. package/dist/{Record-CzXbu41w.js → Record-n7s29IZH.js} +9 -9
  41. package/dist/{Review-7VL6gIqp.js → Review-DIYulCVl.js} +2 -2
  42. package/dist/ReviewFacebookCallback-D07x5BnV.js +238 -0
  43. package/dist/{ReviewGoogleCallback-1JXR_f5O.js → ReviewGoogleCallback-CnESXIH-.js} +5 -5
  44. package/dist/{Reward-BKhUDEu3.js → Reward-D_L2DgT9.js} +16 -16
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DjjCytWF.js → RewardGroup.vue_vue_type_script_setup_true_lang-Dsk2VqB8.js} +13 -13
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BjyiiTSY.js +1884 -0
  47. package/dist/{Segment-DdHDJhaS.js → Segment-BbGE6AOZ.js} +306 -303
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-9kGUkHMi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-xrdOyWX8.js} +14 -14
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DeFw0px7.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CTsORsDg.js} +4 -4
  50. package/dist/{Setting-DZKGXw-i.js → Setting-B9i2ufr7.js} +17 -17
  51. package/dist/{SettingAdvertisements-BBNs8tCw.js → SettingAdvertisements-Cuczz1wK.js} +12 -12
  52. package/dist/Settings-CCSXjpUC.js +179 -0
  53. package/dist/{Store-C8IlE4IH.js → Store-CoxREXJ-.js} +28 -28
  54. package/dist/{StoreRewards-DWygRLR1.js → StoreRewards-CzkznvA1.js} +15 -15
  55. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CeYYws6P.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BtwDM2Fr.js} +24 -24
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-tSfwcDBG.js +142 -0
  57. package/dist/{Tier-7RoxGHsP.js → Tier-DyOlzjE0.js} +687 -2582
  58. package/dist/{Title-0q2Z4HIe.js → Title-C3__B-bw.js} +94 -95
  59. package/dist/{Transaction-CFasERdg.js → Transaction-B_v-lbed.js} +2 -2
  60. package/dist/{Upselling-DM9R6pYw.js → Upselling-D_5nBzIN.js} +3 -3
  61. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BDjwcgnc.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CE5eo992.js} +26 -26
  62. package/dist/{Voucher-BkzW2hVV.js → Voucher-KxXwge4O.js} +19 -19
  63. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DaE4xa3x.js → VoucherEditor.vue_vue_type_script_setup_true_lang-nbLXmJ5Q.js} +12 -12
  64. package/dist/{WhatsappAccount-C3WpDF9O.js → WhatsappAccount-C8kinTmg.js} +6 -6
  65. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BxC_3h52.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-ydBfMtzM.js} +1 -1
  66. package/dist/{WhatsappBot-DZb-Dn3s.js → WhatsappBot-BuD45ou8.js} +6 -6
  67. package/dist/{WhatsappBotLogs--KskC32Z.js → WhatsappBotLogs-Dm0HJh_f.js} +6 -6
  68. package/dist/{WhatsappBotSettings-Dns_PqVE.js → WhatsappBotSettings-BNZcj26j.js} +4 -4
  69. package/dist/{WhatsappLayout-NIrFGbId.js → WhatsappLayout-BvBN7H-y.js} +3 -3
  70. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BfD5hHc7.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BzKwTs9R.js} +3 -3
  71. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CJGxy7gf.js → ZodTextField.vue_vue_type_script_setup_true_lang-BY8t6jtW.js} +2 -2
  72. package/dist/{app-B9nLnoBt.js → app-uud8OgB9.js} +3381 -4129
  73. package/dist/app.js +3 -4
  74. package/dist/{base.export-CBzNea0v.js → base.export-Bfxt84QY.js} +2 -2
  75. package/dist/{business-aT2zslwu.js → business-77FEeeil.js} +1 -1
  76. package/dist/{campaign-BDCLKFwN.js → campaign-6WrFDF05.js} +25 -31
  77. package/dist/{campaign-B6nTwt17.js → campaign-CWyU-r8u.js} +113 -126
  78. package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
  79. package/dist/campaign.fn-Ci_av9lZ.js +776 -0
  80. package/dist/{collection.fn-CDna_VLD.js → collection.fn-CO-YhhUM.js} +2 -2
  81. package/dist/{currency-Baum67Wz.js → currency-kWhKZnhN.js} +1 -1
  82. package/dist/{effect-CeJbflOK.js → effect-CjSyUbur.js} +1 -1
  83. package/dist/{email-addresses-Y3vF73J0.js → email-addresses-C_yrJd12.js} +2 -2
  84. package/dist/{feature-flag-zn6Ql9tv.js → feature-flag-DcM82jeJ.js} +84 -84
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-DZvnn-yx.js → helper-G8MwkrFo.js} +1 -1
  87. package/dist/{index-DJIt5tXC.js → index-3axft-Vz.js} +7 -7
  88. package/dist/{index-CDRTiAEu.js → index-6Ey495tl.js} +1 -1
  89. package/dist/{index-r_T5o_hF.js → index-BNjHmUyd.js} +2 -2
  90. package/dist/{index-DXKJsqgW.js → index-BXSokNlS.js} +1 -1
  91. package/dist/{index-B5H4znfe.js → index-Ba4Q_XWF.js} +4 -4
  92. package/dist/{index-BL2zQnXK.js → index-BqHB3euS.js} +3 -3
  93. package/dist/{index-juXxYQ_a.js → index-CVVLKJj_.js} +1242 -1314
  94. package/dist/{index-DCR1GFCA.js → index-CiFPNxgn.js} +234 -380
  95. package/dist/{index-BqniSMV6.js → index-Cj85mCmr.js} +197 -197
  96. package/dist/{index-CMs3aIA6.js → index-CqvjZF-j.js} +6 -19
  97. package/dist/{index-B20FfbEE.js → index-CxyO5j1a.js} +1 -1
  98. package/dist/{index-FgM7b2Sw.js → index-DGrPvdRc.js} +2 -2
  99. package/dist/{index-CPi3Qwmj.js → index-DgT4P2_R.js} +2613 -2699
  100. package/dist/{index-Da0-7h2j.js → index-Dkud56R0.js} +1 -1
  101. package/dist/{index-DHNhIloU.js → index-Dv5Ja20d.js} +1 -1
  102. package/dist/{index-BYUEPfbP.js → index-L_2hhvso.js} +23 -23
  103. package/dist/{index-DXyOBtgF.js → index-RtamQHhy.js} +1 -1
  104. package/dist/{index-B22ojkMy.js → index-h2p2DjKy.js} +2 -2
  105. package/dist/{index-DkBOM8za.js → index-ivVytFih.js} +251 -608
  106. package/dist/{index-njg4JLa-.js → index-sPf1Rhez.js} +8 -8
  107. package/dist/{index.esm2017-Dtk7BscN.js → index.esm2017-DiUbRDfz.js} +57 -57
  108. package/dist/{loading-PoODMkQD.js → loading-BdpH3z-q.js} +1 -1
  109. package/dist/{lodash-TthNgH98.js → lodash-DcC4G06s.js} +1 -1
  110. package/dist/{member-import-D7zs0Jvh.js → member-import-C99OxU-w.js} +1 -1
  111. package/dist/{membership-Cab-iWQ1.js → membership-O5EN0QMl.js} +2 -2
  112. package/dist/{money-9Q306M3g.js → money-CYS7zoiT.js} +1 -1
  113. package/dist/{number-D9M3D435.js → number-D_C66osx.js} +1 -1
  114. package/dist/objectid-Dd0NRad7.js +145 -0
  115. package/dist/{onboarding-D5LKUHVI.js → onboarding-DGx34lkW.js} +25 -25
  116. package/dist/{onboardingSetup-D0jsS6w5.js → onboardingSetup-ALOoxDHE.js} +2 -2
  117. package/dist/{plugins-CDTKQ1Pg.js → plugins-CVh8eTG-.js} +3 -3
  118. package/dist/{reward-De3e9vYS.js → reward-8sP3d8ie.js} +1 -1
  119. package/dist/{rule-trVJgEOe.js → rule-BGMBiCRZ.js} +492 -572
  120. package/dist/rule-builder-DcPK2oqo.js +102 -0
  121. package/dist/style.css +1 -1
  122. package/dist/template-Bku-aSPA.js +275 -0
  123. package/dist/{timezone-DkuByUmb.js → timezone-DML8BuIK.js} +1 -1
  124. package/dist/{transaction.fn-CPE-oQhA.js → transaction.fn-Dmla3R1q.js} +2 -2
  125. package/dist/{trigger-C6oM-8pe.js → trigger-CArDddXr.js} +9 -9
  126. package/dist/{useMarketingMaterialActions-C5scdJQp.js → useMarketingMaterialActions-BX5Ynq8O.js} +4 -4
  127. package/dist/{usePagination-CIuTHSSG.js → usePagination-BdgLVPuo.js} +1 -1
  128. package/dist/{user-Bdlgn2yo.js → user-BgTKHjea.js} +1 -1
  129. package/dist/vue-i18n-DMEbesBm.js +2365 -0
  130. package/dist/{xlsx-CvecxUOG.js → xlsx-WIRNQZAx.js} +166 -166
  131. package/dist/{zod-bniyeWdY.js → zod-Dh_CVWJN.js} +1 -1
  132. package/package.json +2 -6
  133. package/dist/AuditLogs-C1U17evK.js +0 -2016
  134. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C86llTFR.js +0 -4439
  135. package/dist/Grab-BjFLSMpE.js +0 -301
  136. package/dist/ReviewFacebookCallback-BwzuPmrz.js +0 -225
  137. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Vg7pRGIz.js +0 -1923
  138. package/dist/Settings-9v0hnBJZ.js +0 -286
  139. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BiN3uRJ_.js +0 -7007
  140. package/dist/campaign.fn-Ck1t5C1T.js +0 -776
  141. package/dist/duplicateCampaign-BwrMZgaV.js +0 -51
  142. package/dist/google-BQK68wbe.js +0 -5
  143. package/dist/objectid-DKvQl6FD.js +0 -145
  144. package/dist/template-Bj3Tb6bP.js +0 -227
  145. package/dist/vue-i18n-DEpDI-dt.js +0 -2365
@@ -1,141 +1,133 @@
1
- import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as G, watch as ie, resolveComponent as ee, openBlock as j, createElementBlock as me, createVNode as R, unref as g, createElementVNode as I, toDisplayString as A, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
1
+ import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as B, watch as ie, resolveComponent as ee, openBlock as W, createElementBlock as me, createVNode as R, unref as g, createElementVNode as I, toDisplayString as P, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Ae, 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-aT2zslwu.js";
6
- import { u as gn, l as _n } from "./feature-flag-zn6Ql9tv.js";
7
- import "./index-Da0-7h2j.js";
8
- import { components as W, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
9
- import { u as Tt } from "./vue-i18n-DEpDI-dt.js";
10
- import { m as yn } from "./index-DXyOBtgF.js";
11
- import { C as Xe } from "./timezone-DkuByUmb.js";
12
- import { u as wn } from "./onboarding-D5LKUHVI.js";
13
- import { R as f, g as Tn, A as kn, a as Qe } from "./app-B9nLnoBt.js";
14
- import { J as En } from "./JsonViewer-v8_C7l5N.js";
15
- import { r as Le, L as bn, g as kt, i as Sn, a as Rn, _ as Ze, C as et, b as An, S as se, c as P, d as X, E as Fe, e as Pn, f as Et, h as Cn, j as Nn, k as bt, l as k, m as On, F as Ve, n as Ln, q as oe, o as Mn, p as Un, s as Dn, t as xn, u as Fn } from "./index.esm2017-Dtk7BscN.js";
5
+ import { u as mn } from "./business-77FEeeil.js";
6
+ import { u as gn, l as _n } from "./feature-flag-DcM82jeJ.js";
7
+ import "./index-Dkud56R0.js";
8
+ import { components as j, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
9
+ import { u as Tt } from "./vue-i18n-DMEbesBm.js";
10
+ import { m as yn } from "./index-RtamQHhy.js";
11
+ import { C as Xe } from "./timezone-DML8BuIK.js";
12
+ import { u as wn } from "./onboarding-DGx34lkW.js";
13
+ import { R as p, g as Tn, A as kn, a as Qe } from "./app-uud8OgB9.js";
14
+ import { J as bn } from "./JsonViewer-v8_C7l5N.js";
15
+ import { r as Le, L as En, g as kt, i as Sn, a as Rn, _ as Ze, C as et, b as Pn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Cn, j as Nn, k as Et, l as k, m as On, F as Ve, n as Ln, q as oe, o as Mn, p as Un, s as Dn, t as xn, u as Fn } from "./index.esm2017-DiUbRDfz.js";
16
16
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
17
- import { S as tt, c as Vn } from "./index-DJIt5tXC.js";
18
- const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Wn = /* @__PURE__ */ xe({
17
+ import { S as tt, c as Vn } from "./index-3axft-Vz.js";
18
+ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, jn = /* @__PURE__ */ xe({
19
19
  __name: "NavigationTab",
20
20
  setup(n) {
21
21
  const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
22
22
  {
23
23
  label: e("connect.navigation.analytic"),
24
- value: f["$connect-ANALYTIC"]
24
+ value: p["$connect-ANALYTIC"]
25
25
  },
26
- { label: "Upselling", value: f["$connect-UPSELLING"] },
26
+ { label: "Upselling", value: p["$connect-UPSELLING"] },
27
27
  {
28
28
  label: e("connect.navigation.campaign"),
29
- value: f["$connect-CAMPAIGN"],
29
+ value: p["$connect-CAMPAIGN"],
30
30
  children: [
31
31
  {
32
32
  label: e("connect.navigation.promotion"),
33
- value: f["$connect-CAMPAIGN_PROMOTION"]
33
+ value: p["$connect-CAMPAIGN_PROMOTION"]
34
34
  },
35
35
  {
36
36
  label: e("connect.navigation.voucher"),
37
- value: f["$connect-CAMPAIGN_VOUCHER"]
37
+ value: p["$connect-CAMPAIGN_VOUCHER"]
38
38
  },
39
39
  {
40
40
  label: e("connect.navigation.broadcast"),
41
- value: f["$connect-CAMPAIGN_BROADCAST"]
42
- },
43
- {
44
- label: e("connect.navigation.grab"),
45
- value: f["$connect-CAMPAIGN_GRAB"]
41
+ value: p["$connect-CAMPAIGN_BROADCAST"]
46
42
  }
47
43
  ]
48
44
  },
49
45
  {
50
46
  label: e("connect.navigation.program"),
51
- value: f["$connect-PROGRAM"],
47
+ value: p["$connect-PROGRAM"],
52
48
  children: [
53
49
  {
54
50
  label: e("connect.navigation.tier"),
55
- value: f["$connect-PROGRAM_TIER"]
51
+ value: p["$connect-PROGRAM_TIER"]
56
52
  },
57
53
  {
58
54
  label: e("connect.navigation.title"),
59
- value: f["$connect-PROGRAM_TITLE"]
55
+ value: p["$connect-PROGRAM_TITLE"]
60
56
  },
61
57
  {
62
58
  label: e("connect.navigation.experience"),
63
- value: f["$connect-PROGRAM_EXPERIENCE"]
59
+ value: p["$connect-PROGRAM_EXPERIENCE"]
64
60
  },
65
61
  {
66
62
  label: e("connect.navigation.point"),
67
- value: f["$connect-PROGRAM_POINT"],
68
- badge: () => U(W.FmPill, { variant: "premium" })
63
+ value: p["$connect-PROGRAM_POINT"],
64
+ badge: () => U(j.FmPill, { variant: "premium" })
69
65
  },
70
66
  {
71
67
  label: e("connect.navigation.credit"),
72
- value: f["$connect-PROGRAM_CREDIT"]
68
+ value: p["$connect-PROGRAM_CREDIT"]
73
69
  },
74
70
  {
75
71
  label: e("connect.navigation.game"),
76
- value: f["$connect-PROGRAM_GAME"],
77
- badge: () => U(W.FmPill, { variant: "premium" })
72
+ value: p["$connect-PROGRAM_GAME"],
73
+ badge: () => U(j.FmPill, { variant: "premium" })
78
74
  },
79
75
  {
80
76
  label: "Mission",
81
- value: f["$connect-PROGRAM_MISSION"]
77
+ value: p["$connect-PROGRAM_MISSION"]
82
78
  }
83
79
  ]
84
80
  },
85
81
  {
86
82
  label: e("connect.navigation.loyalty"),
87
- value: f["$connect-LOYALTY"],
83
+ value: p["$connect-LOYALTY"],
88
84
  children: [
89
85
  {
90
86
  label: e("connect.navigation.member"),
91
- value: f["$connect-LOYALTY_MEMBER_LIST"]
87
+ value: p["$connect-LOYALTY_MEMBER_LIST"]
92
88
  },
93
89
  {
94
90
  label: e("connect.navigation.segments"),
95
- value: f["$connect-LOYALTY_SEGMENT"],
96
- badge: () => U(W.FmPill, { variant: "premium" })
91
+ value: p["$connect-LOYALTY_SEGMENT"],
92
+ badge: () => U(j.FmPill, { variant: "premium" })
97
93
  },
98
94
  {
99
95
  label: e("connect.navigation.card"),
100
- value: f["$connect-LOYALTY_CARD"],
101
- badge: () => U(W.FmPill, { variant: "premium" })
96
+ value: p["$connect-LOYALTY_CARD"],
97
+ badge: () => U(j.FmPill, { variant: "premium" })
102
98
  }
103
99
  ]
104
100
  },
105
101
  {
106
102
  label: e("connect.navigation.whatsappBot"),
107
- value: f["$connect-WHATSAPP"],
108
- badge: () => U(W.FmPill, { variant: "beta" })
103
+ value: p["$connect-WHATSAPP"],
104
+ badge: () => U(j.FmPill, { variant: "beta" })
109
105
  },
110
106
  {
111
107
  label: e("connect.navigation.referral"),
112
- value: f["$connect-REFERRAL"],
113
- badge: () => U(W.FmPill, { variant: "premium" })
108
+ value: p["$connect-REFERRAL"],
109
+ badge: () => U(j.FmPill, { variant: "premium" })
114
110
  },
115
111
  {
116
112
  label: e("connect.navigation.store"),
117
- value: f["$connect-STORE"]
113
+ value: p["$connect-STORE"]
118
114
  },
119
115
  {
120
116
  label: e("connect.navigation.transaction"),
121
- value: f["$connect-TRANSACTION"]
117
+ value: p["$connect-TRANSACTION"]
122
118
  },
123
119
  {
124
120
  label: e("connect.navigation.marketingMaterials"),
125
- value: f["$connect-MARKETING"]
126
- },
127
- {
128
- label: e("connect.navigation.auditLogs"),
129
- value: f["$connect-AUDIT_LOGS"]
121
+ value: p["$connect-MARKETING"]
130
122
  },
131
123
  {
132
124
  label: e("connect.navigation.review"),
133
- value: f["$connect-REVIEW"]
125
+ value: p["$connect-REVIEW"]
134
126
  },
135
127
  {
136
128
  label: e("connect.navigation.goals"),
137
- value: f["$connect-GOALS"],
138
- badge: () => i.goalsRemaining > 0 ? U(W.FmBadge, {
129
+ value: p["$connect-GOALS"],
130
+ badge: () => i.goalsRemaining > 0 ? U(j.FmBadge, {
139
131
  variant: "numeric",
140
132
  inline: !0,
141
133
  value: i.goalsRemaining
@@ -143,47 +135,47 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
143
135
  },
144
136
  {
145
137
  label: e("connect.navigation.setting"),
146
- value: f["$connect-SETTING"]
138
+ value: p["$connect-SETTING"]
147
139
  },
148
140
  {
149
141
  label: e("connect.navigation.bin"),
150
- value: f["$connect-BIN"]
142
+ value: p["$connect-BIN"]
151
143
  }
152
- ], c = G(
144
+ ], c = B(
153
145
  () => o.filter(
154
- (p) => (p.value !== f["$connect-WHATSAPP"] || r() === "on") && (p.value !== f["$connect-UPSELLING"] || Tn() !== void 0)
146
+ (f) => (f.value !== p["$connect-WHATSAPP"] || r() === "on") && (f.value !== p["$connect-UPSELLING"] || Tn() !== void 0)
155
147
  )
156
- ), a = yt(), l = wt(), d = o.reduce((p, w) => [...(w.children ?? []).map((h) => h.value), ...p, w.value], []), m = ge(), v = G(() => {
157
- const p = m.currentCountry.value || "MY";
158
- return console.log(`[MF] Timezone set to: ${Xe[p]}`), Xe[p];
148
+ ), a = yt(), l = wt(), d = o.reduce((f, w) => [...(w.children ?? []).map((h) => h.value), ...f, w.value], []), m = ge(), v = B(() => {
149
+ const f = m.currentCountry.value || "MY";
150
+ return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
159
151
  });
160
152
  ie(
161
153
  // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
162
154
  // whose identity never changes, so watching it directly fired once via
163
155
  // `immediate` and the highlight then stayed on whatever page loaded first.
164
156
  () => l.matched,
165
- (p) => {
166
- const h = p.map((_) => _.name).reverse().find((_) => d.includes(_));
157
+ (f) => {
158
+ const h = f.map((_) => _.name).reverse().find((_) => d.includes(_));
167
159
  h && (s.value = h);
168
160
  },
169
161
  { immediate: !0 }
170
162
  ), ie(
171
163
  [() => {
172
- var p;
173
- return (p = m.currentBusiness.value) == null ? void 0 : p._id;
164
+ var f;
165
+ return (f = m.currentBusiness.value) == null ? void 0 : f._id;
174
166
  }, () => l.name, t],
175
- ([p]) => {
176
- p && i.read(t.value, p);
167
+ ([f]) => {
168
+ f && i.read(t.value, f);
177
169
  },
178
170
  { immediate: !0 }
179
171
  );
180
- async function y(p) {
181
- await a.push({ name: p });
172
+ async function y(f) {
173
+ await a.push({ name: f });
182
174
  }
183
- return (p, w) => {
175
+ return (f, w) => {
184
176
  var _;
185
177
  const h = ee("FmCollapsibleTabs");
186
- return j(), me("div", $n, [
178
+ return W(), me("div", $n, [
187
179
  R(h, {
188
180
  class: "border-fm-color-neutral-gray-100 border-r px-4",
189
181
  "model-value": (_ = g(s)) == null ? void 0 : _.toString(),
@@ -191,27 +183,27 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
191
183
  "onUpdate:modelValue": y
192
184
  }, null, 8, ["model-value", "items"]),
193
185
  I("div", Hn, [
194
- I("div", null, "Timezone: " + A(g(v).split("/")[1].replace("_", " ")), 1),
195
- I("div", null, "(UTC" + A(g(yn).tz(g(v)).format("Z")) + ")", 1)
186
+ I("div", null, "Timezone: " + P(g(v).split("/")[1].replace("_", " ")), 1),
187
+ I("div", null, "(UTC" + P(g(yn).tz(g(v)).format("Z")) + ")", 1)
196
188
  ])
197
189
  ]);
198
190
  };
199
191
  }
200
192
  }), St = "feedme_connect_marketing_promo_hidden";
201
- function jn() {
193
+ function Wn() {
202
194
  try {
203
195
  return localStorage.getItem(St) !== null;
204
196
  } catch {
205
197
  return !1;
206
198
  }
207
199
  }
208
- function Gn() {
200
+ function Bn() {
209
201
  try {
210
202
  localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
211
203
  } catch {
212
204
  }
213
205
  }
214
- const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, qn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Kn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Jn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Yn = { class: "flex flex-col gap-24 pb-8" }, Xn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Qn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Zn = { class: "fm-typo-en-body-lg-600" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ti = { class: "shrink-0" }, ni = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ii = { class: "flex w-full flex-col gap-12 px-[16px]" }, ri = { class: "flex flex-wrap items-center gap-12" }, si = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, oi = /* @__PURE__ */ xe({
206
+ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, qn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Kn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Jn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Yn = { class: "flex flex-col gap-24 pb-8" }, Xn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Qn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Zn = { class: "fm-typo-en-body-lg-600" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ti = { class: "shrink-0" }, ni = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ii = { class: "flex w-full flex-col gap-12 px-[16px]" }, ri = { class: "flex flex-wrap items-center gap-12" }, si = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, oi = /* @__PURE__ */ xe({
215
207
  __name: "AiMarketingPromoDialog",
216
208
  setup(n) {
217
209
  let e = !1;
@@ -219,9 +211,9 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
219
211
  { key: "completeContent", icon: "layers" },
220
212
  { key: "realContext", icon: "storefront" },
221
213
  { key: "socialFormat", icon: "aspect_ratio" }
222
- ], a = G(() => {
223
- var p;
224
- const y = ((p = r.value) == null ? void 0 : p.permissions) ?? [];
214
+ ], a = B(() => {
215
+ var f;
216
+ const y = ((f = r.value) == null ? void 0 : f.permissions) ?? [];
225
217
  return kn(
226
218
  [
227
219
  {
@@ -231,45 +223,45 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
231
223
  ],
232
224
  y
233
225
  ).granted;
234
- }), l = G(
226
+ }), l = B(
235
227
  () => s.value === "MY" && a.value
236
228
  );
237
229
  let d = !1;
238
230
  ie(
239
231
  l,
240
232
  (y) => {
241
- d || !y || (d = !0, !(jn() || e) && (e = !0, o.value = !0));
233
+ d || !y || (d = !0, !(Wn() || e) && (e = !0, o.value = !0));
242
234
  },
243
235
  { immediate: !0 }
244
236
  );
245
237
  async function m() {
246
- o.value = !1, await i.push({ name: f["$connect-MARKETING"] });
238
+ o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
247
239
  }
248
240
  function v() {
249
- Gn(), o.value = !1;
241
+ Bn(), o.value = !1;
250
242
  }
251
- return (y, p) => {
252
- const w = ee("FmIcon"), h = ee("FmCard"), _ = ee("FmButton"), E = ee("FmDialog");
253
- return j(), Oe(E, {
243
+ return (y, f) => {
244
+ const w = ee("FmIcon"), h = ee("FmCard"), _ = ee("FmButton"), b = ee("FmDialog");
245
+ return W(), Oe(b, {
254
246
  modelValue: o.value,
255
- "onUpdate:modelValue": p[0] || (p[0] = (T) => o.value = T),
247
+ "onUpdate:modelValue": f[0] || (f[0] = (T) => o.value = T),
256
248
  "min-width": "min(500px, calc(100% - 48px))",
257
249
  "max-width": "min(860px, calc(100% - 48px))",
258
250
  "max-height": "90vh",
259
251
  "dismiss-away": ""
260
252
  }, {
261
253
  "dialog-header": Z(() => [
262
- I("div", Bn, [
254
+ I("div", Gn, [
263
255
  I("div", zn, [
264
256
  R(w, {
265
257
  name: "auto_awesome",
266
258
  size: "sm",
267
259
  color: "primary"
268
260
  }),
269
- I("span", qn, A(g(t)("connect.marketing.whatsNew.badge")), 1)
261
+ I("span", qn, P(g(t)("connect.marketing.whatsNew.badge")), 1)
270
262
  ]),
271
- I("h1", Kn, A(g(t)("connect.marketing.whatsNew.title")), 1),
272
- I("p", Jn, A(g(t)("connect.marketing.whatsNew.subtitle")), 1)
263
+ I("h1", Kn, P(g(t)("connect.marketing.whatsNew.title")), 1),
264
+ I("p", Jn, P(g(t)("connect.marketing.whatsNew.subtitle")), 1)
273
265
  ])
274
266
  ]),
275
267
  "dialog-footer": Z(() => [
@@ -289,13 +281,13 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
289
281
  onClick: v
290
282
  }, null, 8, ["label"])
291
283
  ]),
292
- I("div", si, A(g(t)("connect.marketing.whatsNew.footnote")), 1)
284
+ I("div", si, P(g(t)("connect.marketing.whatsNew.footnote")), 1)
293
285
  ])
294
286
  ]),
295
287
  default: Z(() => [
296
288
  I("div", Yn, [
297
289
  I("div", Xn, [
298
- (j(), me(It, null, ln(c, (T) => R(h, {
290
+ (W(), me(It, null, ln(c, (T) => R(h, {
299
291
  key: T.key,
300
292
  variant: "outlined",
301
293
  class: "!h-full flex flex-col gap-8 p-16"
@@ -308,8 +300,8 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
308
300
  color: "primary"
309
301
  }, null, 8, ["name"])
310
302
  ]),
311
- I("div", Zn, A(g(t)(`connect.marketing.whatsNew.benefits.${T.key}.title`)), 1),
312
- I("div", ei, A(g(t)(
303
+ I("div", Zn, P(g(t)(`connect.marketing.whatsNew.benefits.${T.key}.title`)), 1),
304
+ I("div", ei, P(g(t)(
313
305
  `connect.marketing.whatsNew.benefits.${T.key}.description`
314
306
  )), 1)
315
307
  ]),
@@ -328,7 +320,7 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
328
320
  color: "primary"
329
321
  })
330
322
  ]),
331
- I("p", ni, A(g(t)("connect.marketing.whatsNew.callout")), 1)
323
+ I("p", ni, P(g(t)("connect.marketing.whatsNew.callout")), 1)
332
324
  ]),
333
325
  _: 1
334
326
  })
@@ -362,7 +354,7 @@ function Rt() {
362
354
  "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."
363
355
  };
364
356
  }
365
- const li = Rt, At = new Fe("auth", "Firebase", Rt());
357
+ const li = Rt, Pt = new Fe("auth", "Firebase", Rt());
366
358
  /**
367
359
  * @license
368
360
  * Copyright 2020 Google LLC
@@ -379,12 +371,12 @@ const li = Rt, At = new Fe("auth", "Firebase", Rt());
379
371
  * See the License for the specific language governing permissions and
380
372
  * limitations under the License.
381
373
  */
382
- const _e = new bn("@firebase/auth");
374
+ const _e = new En("@firebase/auth");
383
375
  function ui(n, ...e) {
384
- _e.logLevel <= bt.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
376
+ _e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
385
377
  }
386
378
  function de(n, ...e) {
387
- _e.logLevel <= bt.ERROR && _e.error(`Auth (${se}): ${n}`, ...e);
379
+ _e.logLevel <= Et.ERROR && _e.error(`Auth (${se}): ${n}`, ...e);
388
380
  }
389
381
  /**
390
382
  * @license
@@ -405,24 +397,24 @@ function de(n, ...e) {
405
397
  function L(n, ...e) {
406
398
  throw He(n, ...e);
407
399
  }
408
- function b(n, ...e) {
400
+ function E(n, ...e) {
409
401
  return He(n, ...e);
410
402
  }
411
- function Pt(n, e, t) {
403
+ function At(n, e, t) {
412
404
  const i = Object.assign(Object.assign({}, li()), { [e]: t });
413
405
  return new Fe("auth", "Firebase", i).create(e, {
414
406
  appName: n.name
415
407
  });
416
408
  }
417
409
  function H(n) {
418
- return Pt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
410
+ return At(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
419
411
  }
420
412
  function He(n, ...e) {
421
413
  if (typeof n != "string") {
422
414
  const t = e[0], i = [...e.slice(1)];
423
415
  return i[0] && (i[0].appName = n.name), n._errorFactory.create(t, ...i);
424
416
  }
425
- return At.create(n, ...e);
417
+ return Pt.create(n, ...e);
426
418
  }
427
419
  function u(n, e, ...t) {
428
420
  if (!n)
@@ -484,7 +476,7 @@ function hi() {
484
476
  // navigator.onLine behavior unless cordova-plugin-network-information is
485
477
  // installed which overwrites the native navigator.onLine value and
486
478
  // defines navigator.connection.
487
- (di() || An() || "connection" in navigator) ? navigator.onLine : !0;
479
+ (di() || Pn() || "connection" in navigator) ? navigator.onLine : !0;
488
480
  }
489
481
  function fi() {
490
482
  if (typeof navigator > "u")
@@ -538,7 +530,7 @@ class ae {
538
530
  * See the License for the specific language governing permissions and
539
531
  * limitations under the License.
540
532
  */
541
- function We(n, e) {
533
+ function je(n, e) {
542
534
  M(n.emulator, "Emulator should always be set here");
543
535
  const { url: t } = n.emulator;
544
536
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
@@ -752,7 +744,7 @@ async function Nt(n, e, t) {
752
744
  throw ue(n, "user-disabled", o);
753
745
  const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
754
746
  if (l)
755
- throw Pt(n, d, l);
747
+ throw At(n, d, l);
756
748
  L(n, d);
757
749
  }
758
750
  } catch (r) {
@@ -769,12 +761,12 @@ async function Ot(n, e, t, i, r = {}) {
769
761
  }
770
762
  function Lt(n, e, t, i) {
771
763
  const r = `${e}${t}?${i}`;
772
- return n.config.emulator ? We(n.config, r) : `${n.config.apiScheme}://${r}`;
764
+ return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
773
765
  }
774
766
  class gi {
775
767
  constructor(e) {
776
768
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
777
- this.timer = setTimeout(() => i(b(
769
+ this.timer = setTimeout(() => i(E(
778
770
  this.auth,
779
771
  "network-request-failed"
780
772
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -790,7 +782,7 @@ function ue(n, e, t) {
790
782
  appName: n.name
791
783
  };
792
784
  t.email && (i.email = t.email), t.phoneNumber && (i.phoneNumber = t.phoneNumber);
793
- const r = b(n, e, i);
785
+ const r = E(n, e, i);
794
786
  return r.customData._tokenResponse = t, r;
795
787
  }
796
788
  /**
@@ -841,7 +833,7 @@ function ne(n) {
841
833
  }
842
834
  }
843
835
  async function vi(n, e = !1) {
844
- const t = X(n), i = await t.getIdToken(e), r = je(i);
836
+ const t = X(n), i = await t.getIdToken(e), r = We(i);
845
837
  u(
846
838
  r && r.exp && r.auth_time && r.iat,
847
839
  t.auth,
@@ -862,7 +854,7 @@ async function vi(n, e = !1) {
862
854
  function Ce(n) {
863
855
  return Number(n) * 1e3;
864
856
  }
865
- function je(n) {
857
+ function We(n) {
866
858
  const [e, t, i] = n.split(".");
867
859
  if (e === void 0 || t === void 0 || i === void 0)
868
860
  return de("JWT malformed, contained fewer than 3 sections"), null;
@@ -874,7 +866,7 @@ function je(n) {
874
866
  }
875
867
  }
876
868
  function it(n) {
877
- const e = je(n);
869
+ const e = We(n);
878
870
  return u(
879
871
  e,
880
872
  "internal-error"
@@ -1110,7 +1102,7 @@ async function ki(n, e) {
1110
1102
  refreshToken: t.refresh_token
1111
1103
  };
1112
1104
  }
1113
- async function Ei(n, e) {
1105
+ async function bi(n, e) {
1114
1106
  return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1115
1107
  }
1116
1108
  /**
@@ -1280,7 +1272,7 @@ class N {
1280
1272
  e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), i = !0), t && await ve(this), await this.auth._persistUserIfCurrent(this), i && this.auth._notifyListenersIfCurrent(this);
1281
1273
  }
1282
1274
  async delete() {
1283
- if (P(this.auth.app))
1275
+ if (A(this.auth.app))
1284
1276
  return Promise.reject(H(this.auth));
1285
1277
  const e = await this.getIdToken();
1286
1278
  return await re(this, _i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
@@ -1311,7 +1303,7 @@ class N {
1311
1303
  }
1312
1304
  static _fromJSON(e, t) {
1313
1305
  var i, r, s, o, c, a, l, d;
1314
- const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, v = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, p = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, w = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, h = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, _ = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, E = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: T, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1306
+ const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, v = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, f = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, w = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, h = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, _ = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, b = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: T, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1315
1307
  u(
1316
1308
  T && Ye,
1317
1309
  e,
@@ -1334,22 +1326,22 @@ class N {
1334
1326
  e,
1335
1327
  "internal-error"
1336
1328
  /* AuthErrorCode.INTERNAL_ERROR */
1337
- ), D(y, e.name), D(p, e.name), D(w, e.name), D(h, e.name), D(_, e.name), D(E, e.name);
1338
- const Ae = new N({
1329
+ ), D(y, e.name), D(f, e.name), D(w, e.name), D(h, e.name), D(_, e.name), D(b, e.name);
1330
+ const Pe = new N({
1339
1331
  uid: T,
1340
1332
  auth: e,
1341
1333
  email: v,
1342
1334
  emailVerified: Ke,
1343
1335
  displayName: m,
1344
1336
  isAnonymous: Je,
1345
- photoURL: p,
1337
+ photoURL: f,
1346
1338
  phoneNumber: y,
1347
1339
  tenantId: w,
1348
1340
  stsTokenManager: on,
1349
1341
  createdAt: _,
1350
- lastLoginAt: E
1342
+ lastLoginAt: b
1351
1343
  });
1352
- return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), h && (Ae._redirectEventId = h), Ae;
1344
+ return Re && Array.isArray(Re) && (Pe.providerData = Re.map((an) => Object.assign({}, an))), h && (Pe._redirectEventId = h), Pe;
1353
1345
  }
1354
1346
  /**
1355
1347
  * Initialize a User from an idToken server response
@@ -1573,9 +1565,9 @@ function ot(n) {
1573
1565
  return "Silk";
1574
1566
  if (Ht(e))
1575
1567
  return "Blackberry";
1576
- if (Wt(e))
1568
+ if (jt(e))
1577
1569
  return "Webos";
1578
- if (Ge(e))
1570
+ if (Be(e))
1579
1571
  return "Safari";
1580
1572
  if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
1581
1573
  return "Chrome";
@@ -1591,7 +1583,7 @@ function ot(n) {
1591
1583
  function xt(n = k()) {
1592
1584
  return /firefox\//i.test(n);
1593
1585
  }
1594
- function Ge(n = k()) {
1586
+ function Be(n = k()) {
1595
1587
  const e = n.toLowerCase();
1596
1588
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1597
1589
  }
@@ -1607,21 +1599,21 @@ function $t(n = k()) {
1607
1599
  function Ht(n = k()) {
1608
1600
  return /blackberry/i.test(n);
1609
1601
  }
1610
- function Wt(n = k()) {
1602
+ function jt(n = k()) {
1611
1603
  return /webos/i.test(n);
1612
1604
  }
1613
1605
  function ke(n = k()) {
1614
1606
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1615
1607
  }
1616
- function bi(n = k()) {
1608
+ function Ei(n = k()) {
1617
1609
  var e;
1618
1610
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1619
1611
  }
1620
1612
  function Si() {
1621
1613
  return Mn() && document.documentMode === 10;
1622
1614
  }
1623
- function jt(n = k()) {
1624
- return ke(n) || $t(n) || Wt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1615
+ function Wt(n = k()) {
1616
+ return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1625
1617
  }
1626
1618
  function Ri() {
1627
1619
  try {
@@ -1646,7 +1638,7 @@ function Ri() {
1646
1638
  * See the License for the specific language governing permissions and
1647
1639
  * limitations under the License.
1648
1640
  */
1649
- function Gt(n, e = []) {
1641
+ function Bt(n, e = []) {
1650
1642
  let t;
1651
1643
  switch (n) {
1652
1644
  case "Browser":
@@ -1677,7 +1669,7 @@ function Gt(n, e = []) {
1677
1669
  * See the License for the specific language governing permissions and
1678
1670
  * limitations under the License.
1679
1671
  */
1680
- class Ai {
1672
+ class Pi {
1681
1673
  constructor(e) {
1682
1674
  this.auth = e, this.queue = [];
1683
1675
  }
@@ -1732,7 +1724,7 @@ class Ai {
1732
1724
  * See the License for the specific language governing permissions and
1733
1725
  * limitations under the License.
1734
1726
  */
1735
- async function Pi(n, e = {}) {
1727
+ async function Ai(n, e = {}) {
1736
1728
  return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
1737
1729
  }
1738
1730
  /**
@@ -1841,7 +1833,7 @@ class Ni {
1841
1833
  */
1842
1834
  class Oi {
1843
1835
  constructor(e, t, i, r) {
1844
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Ai(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1836
+ 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 Pi(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 = Pt, 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;
1845
1837
  }
1846
1838
  _initializeWithPersistence(e, t) {
1847
1839
  return t && (this._popupRedirectResolver = O(t)), this._initializationPromise = this.queue(async () => {
@@ -1885,7 +1877,7 @@ class Oi {
1885
1877
  }
1886
1878
  async initializeCurrentUser(e) {
1887
1879
  var t;
1888
- if (P(this.app)) {
1880
+ if (A(this.app)) {
1889
1881
  const o = this.app.settings.authIdToken;
1890
1882
  return o ? new Promise((c) => {
1891
1883
  setTimeout(() => this.initializeCurrentUserFromIdToken(o).then(c, c));
@@ -1941,7 +1933,7 @@ class Oi {
1941
1933
  this._deleted = !0;
1942
1934
  }
1943
1935
  async updateCurrentUser(e) {
1944
- if (P(this.app))
1936
+ if (A(this.app))
1945
1937
  return Promise.reject(H(this));
1946
1938
  const t = e ? X(e) : null;
1947
1939
  return t && u(
@@ -1963,14 +1955,14 @@ class Oi {
1963
1955
  });
1964
1956
  }
1965
1957
  async signOut() {
1966
- return P(this.app) ? Promise.reject(H(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1958
+ return A(this.app) ? Promise.reject(H(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1967
1959
  null,
1968
1960
  /* skipBeforeStateCallbacks */
1969
1961
  !0
1970
1962
  ));
1971
1963
  }
1972
1964
  setPersistence(e) {
1973
- return P(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
1965
+ return A(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
1974
1966
  await this.assertedPersistence.setPersistence(O(e));
1975
1967
  });
1976
1968
  }
@@ -1986,7 +1978,7 @@ class Oi {
1986
1978
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1987
1979
  }
1988
1980
  async _updatePasswordPolicy() {
1989
- const e = await Pi(this), t = new Ni(e);
1981
+ const e = await Ai(this), t = new Ni(e);
1990
1982
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1991
1983
  }
1992
1984
  _getPersistence() {
@@ -2026,7 +2018,7 @@ class Oi {
2026
2018
  token: e,
2027
2019
  idToken: t
2028
2020
  };
2029
- this.tenantId != null && (i.tenantId = this.tenantId), await Ei(this, i);
2021
+ this.tenantId != null && (i.tenantId = this.tenantId), await bi(this, i);
2030
2022
  }
2031
2023
  }
2032
2024
  toJSON() {
@@ -2139,7 +2131,7 @@ class Oi {
2139
2131
  ), this.persistenceManager;
2140
2132
  }
2141
2133
  _logFramework(e) {
2142
- !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Gt(this.config.clientPlatform, this._getFrameworks()));
2134
+ !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
2143
2135
  }
2144
2136
  _getFrameworks() {
2145
2137
  return this.frameworks;
@@ -2172,12 +2164,12 @@ class Oi {
2172
2164
  return t != null && t.error && ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2173
2165
  }
2174
2166
  }
2175
- function Ee(n) {
2167
+ function be(n) {
2176
2168
  return X(n);
2177
2169
  }
2178
2170
  class at {
2179
2171
  constructor(e) {
2180
- this.auth = e, this.observer = null, this.addObserver = Pn((t) => this.observer = t);
2172
+ this.auth = e, this.observer = null, this.addObserver = An((t) => this.observer = t);
2181
2173
  }
2182
2174
  get next() {
2183
2175
  return u(
@@ -2204,7 +2196,7 @@ class at {
2204
2196
  * See the License for the specific language governing permissions and
2205
2197
  * limitations under the License.
2206
2198
  */
2207
- let Be = {
2199
+ let Ge = {
2208
2200
  async loadJS() {
2209
2201
  throw new Error("Unable to load external scripts");
2210
2202
  },
@@ -2213,13 +2205,13 @@ let Be = {
2213
2205
  gapiScript: ""
2214
2206
  };
2215
2207
  function Li(n) {
2216
- Be = n;
2208
+ Ge = n;
2217
2209
  }
2218
2210
  function Mi(n) {
2219
- return Be.loadJS(n);
2211
+ return Ge.loadJS(n);
2220
2212
  }
2221
2213
  function Ui() {
2222
- return Be.gapiScript;
2214
+ return Ge.gapiScript;
2223
2215
  }
2224
2216
  function Di(n) {
2225
2217
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
@@ -2241,7 +2233,7 @@ function Di(n) {
2241
2233
  * limitations under the License.
2242
2234
  */
2243
2235
  function xi(n, e) {
2244
- const t = Et(n, "auth");
2236
+ const t = bt(n, "auth");
2245
2237
  if (t.isInitialized()) {
2246
2238
  const r = t.getImmediate(), s = t.getOptions();
2247
2239
  if (On(s, e ?? {}))
@@ -2259,7 +2251,7 @@ function Fi(n, e) {
2259
2251
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2260
2252
  }
2261
2253
  function Vi(n, e, t) {
2262
- const i = Ee(n);
2254
+ const i = be(n);
2263
2255
  u(
2264
2256
  i._canInitEmulator,
2265
2257
  i,
@@ -2271,7 +2263,7 @@ function Vi(n, e, t) {
2271
2263
  "invalid-emulator-scheme"
2272
2264
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2273
2265
  );
2274
- const r = !1, s = Bt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
2266
+ const r = !1, s = Gt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
2275
2267
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2276
2268
  host: o,
2277
2269
  port: c,
@@ -2279,12 +2271,12 @@ function Vi(n, e, t) {
2279
2271
  options: Object.freeze({ disableWarnings: r })
2280
2272
  }), Hi();
2281
2273
  }
2282
- function Bt(n) {
2274
+ function Gt(n) {
2283
2275
  const e = n.indexOf(":");
2284
2276
  return e < 0 ? "" : n.substr(0, e + 1);
2285
2277
  }
2286
2278
  function $i(n) {
2287
- const e = Bt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2279
+ const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2288
2280
  if (!t)
2289
2281
  return { host: "", port: null };
2290
2282
  const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
@@ -2386,14 +2378,14 @@ async function Y(n, e) {
2386
2378
  * See the License for the specific language governing permissions and
2387
2379
  * limitations under the License.
2388
2380
  */
2389
- const Wi = "http://localhost";
2390
- class B extends zt {
2381
+ const ji = "http://localhost";
2382
+ class G extends zt {
2391
2383
  constructor() {
2392
2384
  super(...arguments), this.pendingToken = null;
2393
2385
  }
2394
2386
  /** @internal */
2395
2387
  static _fromParams(e) {
2396
- const t = new B(e.providerId, e.signInMethod);
2388
+ const t = new G(e.providerId, e.signInMethod);
2397
2389
  return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : L(
2398
2390
  "argument-error"
2399
2391
  /* AuthErrorCode.ARGUMENT_ERROR */
@@ -2424,7 +2416,7 @@ class B extends zt {
2424
2416
  const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
2425
2417
  if (!i || !r)
2426
2418
  return null;
2427
- const o = new B(i, r);
2419
+ const o = new G(i, r);
2428
2420
  return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
2429
2421
  }
2430
2422
  /** @internal */
@@ -2444,7 +2436,7 @@ class B extends zt {
2444
2436
  }
2445
2437
  buildRequest() {
2446
2438
  const e = {
2447
- requestUri: Wi,
2439
+ requestUri: ji,
2448
2440
  returnSecureToken: !0
2449
2441
  };
2450
2442
  if (this.pendingToken)
@@ -2580,7 +2572,7 @@ class x extends ce {
2580
2572
  * @param accessToken - Facebook access token.
2581
2573
  */
2582
2574
  static credential(e) {
2583
- return B._fromParams({
2575
+ return G._fromParams({
2584
2576
  providerId: x.PROVIDER_ID,
2585
2577
  signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
2586
2578
  accessToken: e
@@ -2652,7 +2644,7 @@ class F extends ce {
2652
2644
  * @param accessToken - Google access token.
2653
2645
  */
2654
2646
  static credential(e, t) {
2655
- return B._fromParams({
2647
+ return G._fromParams({
2656
2648
  providerId: F.PROVIDER_ID,
2657
2649
  signInMethod: F.GOOGLE_SIGN_IN_METHOD,
2658
2650
  idToken: e,
@@ -2720,7 +2712,7 @@ class V extends ce {
2720
2712
  * @param accessToken - Github access token.
2721
2713
  */
2722
2714
  static credential(e) {
2723
- return B._fromParams({
2715
+ return G._fromParams({
2724
2716
  providerId: V.PROVIDER_ID,
2725
2717
  signInMethod: V.GITHUB_SIGN_IN_METHOD,
2726
2718
  accessToken: e
@@ -2785,7 +2777,7 @@ class $ extends ce {
2785
2777
  * @param secret - Twitter secret.
2786
2778
  */
2787
2779
  static credential(e, t) {
2788
- return B._fromParams({
2780
+ return G._fromParams({
2789
2781
  providerId: $.PROVIDER_ID,
2790
2782
  signInMethod: $.TWITTER_SIGN_IN_METHOD,
2791
2783
  oauthToken: e,
@@ -2906,7 +2898,7 @@ function Kt(n, e, t, i) {
2906
2898
  throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
2907
2899
  });
2908
2900
  }
2909
- async function ji(n, e, t = !1) {
2901
+ async function Wi(n, e, t = !1) {
2910
2902
  const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2911
2903
  return z._forOperation(n, "link", i);
2912
2904
  }
@@ -2926,9 +2918,9 @@ async function ji(n, e, t = !1) {
2926
2918
  * See the License for the specific language governing permissions and
2927
2919
  * limitations under the License.
2928
2920
  */
2929
- async function Gi(n, e, t = !1) {
2921
+ async function Bi(n, e, t = !1) {
2930
2922
  const { auth: i } = n;
2931
- if (P(i.app))
2923
+ if (A(i.app))
2932
2924
  return Promise.reject(H(i));
2933
2925
  const r = "reauthenticate";
2934
2926
  try {
@@ -2939,7 +2931,7 @@ async function Gi(n, e, t = !1) {
2939
2931
  "internal-error"
2940
2932
  /* AuthErrorCode.INTERNAL_ERROR */
2941
2933
  );
2942
- const o = je(s.idToken);
2934
+ const o = We(s.idToken);
2943
2935
  u(
2944
2936
  o,
2945
2937
  i,
@@ -2977,8 +2969,8 @@ async function Gi(n, e, t = !1) {
2977
2969
  * See the License for the specific language governing permissions and
2978
2970
  * limitations under the License.
2979
2971
  */
2980
- async function Bi(n, e, t = !1) {
2981
- if (P(n.app))
2972
+ async function Gi(n, e, t = !1) {
2973
+ if (A(n.app))
2982
2974
  return Promise.reject(H(n));
2983
2975
  const i = "signIn", r = await Kt(n, i, e), s = await z._fromIdTokenResponse(n, i, r);
2984
2976
  return t || await n._updateCurrentUser(s.user), s;
@@ -3019,9 +3011,9 @@ async function zi(n, e) {
3019
3011
  * limitations under the License.
3020
3012
  */
3021
3013
  async function qi(n, e) {
3022
- if (P(n.app))
3014
+ if (A(n.app))
3023
3015
  return Promise.reject(H(n));
3024
- const t = Ee(n), i = await zi(t, {
3016
+ const t = be(n), i = await zi(t, {
3025
3017
  token: e,
3026
3018
  returnSecureToken: !0
3027
3019
  }), r = await z._fromIdTokenResponse(t, "signIn", i);
@@ -3093,7 +3085,7 @@ class Jt {
3093
3085
  */
3094
3086
  function Yi() {
3095
3087
  const n = k();
3096
- return Ge(n) || ke(n);
3088
+ return Be(n) || ke(n);
3097
3089
  }
3098
3090
  const Xi = 1e3, Qi = 10;
3099
3091
  class Yt extends Jt {
@@ -3102,7 +3094,7 @@ class Yt extends Jt {
3102
3094
  () => window.localStorage,
3103
3095
  "LOCAL"
3104
3096
  /* PersistenceType.LOCAL */
3105
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling = jt(), this._shouldAllowMigration = !0;
3097
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3106
3098
  }
3107
3099
  forAllChangedKeys(e) {
3108
3100
  for (const t of Object.keys(this.listeners)) {
@@ -3260,7 +3252,7 @@ function er(n) {
3260
3252
  * See the License for the specific language governing permissions and
3261
3253
  * limitations under the License.
3262
3254
  */
3263
- class be {
3255
+ class Ee {
3264
3256
  constructor(e) {
3265
3257
  this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
3266
3258
  }
@@ -3274,7 +3266,7 @@ class be {
3274
3266
  const t = this.receivers.find((r) => r.isListeningto(e));
3275
3267
  if (t)
3276
3268
  return t;
3277
- const i = new be(e);
3269
+ const i = new Ee(e);
3278
3270
  return this.receivers.push(i), i;
3279
3271
  }
3280
3272
  isListeningto(e) {
@@ -3328,7 +3320,7 @@ class be {
3328
3320
  this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
3329
3321
  }
3330
3322
  }
3331
- be.receivers = [];
3323
+ Ee.receivers = [];
3332
3324
  /**
3333
3325
  * @license
3334
3326
  * Copyright 2020 Google LLC
@@ -3609,7 +3601,7 @@ class nn {
3609
3601
  * As the worker we should listen to events from the main window.
3610
3602
  */
3611
3603
  async initializeReceiver() {
3612
- this.receiver = be._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3604
+ this.receiver = Ee._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3613
3605
  keyProcessed: (await this._poll()).includes(t.key)
3614
3606
  })), this.receiver._subscribe("ping", async (e, t) => [
3615
3607
  "keyChanged"
@@ -3800,7 +3792,7 @@ class qe extends zt {
3800
3792
  }
3801
3793
  }
3802
3794
  function fr(n) {
3803
- return Bi(n.auth, new qe(n), n.bypassAuthState);
3795
+ return Gi(n.auth, new qe(n), n.bypassAuthState);
3804
3796
  }
3805
3797
  function pr(n) {
3806
3798
  const { auth: e, user: t } = n;
@@ -3809,7 +3801,7 @@ function pr(n) {
3809
3801
  e,
3810
3802
  "internal-error"
3811
3803
  /* AuthErrorCode.INTERNAL_ERROR */
3812
- ), Gi(t, new qe(n), n.bypassAuthState);
3804
+ ), Bi(t, new qe(n), n.bypassAuthState);
3813
3805
  }
3814
3806
  async function mr(n) {
3815
3807
  const { auth: e, user: t } = n;
@@ -3818,7 +3810,7 @@ async function mr(n) {
3818
3810
  e,
3819
3811
  "internal-error"
3820
3812
  /* AuthErrorCode.INTERNAL_ERROR */
3821
- ), ji(t, new qe(n), n.bypassAuthState);
3813
+ ), Wi(t, new qe(n), n.bypassAuthState);
3822
3814
  }
3823
3815
  /**
3824
3816
  * @license
@@ -3945,7 +3937,7 @@ class q extends rn {
3945
3937
  ), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
3946
3938
  this.reject(t);
3947
3939
  }), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
3948
- t || this.reject(b(
3940
+ t || this.reject(E(
3949
3941
  this.auth,
3950
3942
  "web-storage-unsupported"
3951
3943
  /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
@@ -3957,7 +3949,7 @@ class q extends rn {
3957
3949
  return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
3958
3950
  }
3959
3951
  cancel() {
3960
- this.reject(b(
3952
+ this.reject(E(
3961
3953
  this.auth,
3962
3954
  "cancelled-popup-request"
3963
3955
  /* AuthErrorCode.EXPIRED_POPUP_REQUEST */
@@ -3972,7 +3964,7 @@ class q extends rn {
3972
3964
  if (!((i = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || i === void 0) && i.closed) {
3973
3965
  this.pollId = window.setTimeout(
3974
3966
  () => {
3975
- this.pollId = null, this.reject(b(
3967
+ this.pollId = null, this.reject(E(
3976
3968
  this.auth,
3977
3969
  "popup-closed-by-user"
3978
3970
  /* AuthErrorCode.POPUP_CLOSED_BY_USER */
@@ -4069,9 +4061,9 @@ function Tr(n) {
4069
4061
  return he(_r, n.config.apiKey, n.name);
4070
4062
  }
4071
4063
  async function kr(n, e, t = !1) {
4072
- if (P(n.app))
4064
+ if (A(n.app))
4073
4065
  return Promise.reject(H(n));
4074
- const i = Ee(n), r = hr(i, e), o = await new vr(i, r, t).execute();
4066
+ const i = be(n), r = hr(i, e), o = await new vr(i, r, t).execute();
4075
4067
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4076
4068
  }
4077
4069
  /**
@@ -4090,8 +4082,8 @@ async function kr(n, e, t = !1) {
4090
4082
  * See the License for the specific language governing permissions and
4091
4083
  * limitations under the License.
4092
4084
  */
4093
- const Er = 10 * 60 * 1e3;
4094
- class br {
4085
+ const br = 10 * 60 * 1e3;
4086
+ class Er {
4095
4087
  constructor(e) {
4096
4088
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4097
4089
  }
@@ -4113,7 +4105,7 @@ class br {
4113
4105
  var i;
4114
4106
  if (e.error && !sn(e)) {
4115
4107
  const r = ((i = e.error.code) === null || i === void 0 ? void 0 : i.split("auth/")[1]) || "internal-error";
4116
- t.onError(b(this.auth, r));
4108
+ t.onError(E(this.auth, r));
4117
4109
  } else
4118
4110
  t.onAuthEvent(e);
4119
4111
  }
@@ -4122,7 +4114,7 @@ class br {
4122
4114
  return t.filter.includes(e.type) && i;
4123
4115
  }
4124
4116
  hasEventBeenHandled(e) {
4125
- return Date.now() - this.lastProcessedEventTime >= Er && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4117
+ return Date.now() - this.lastProcessedEventTime >= br && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4126
4118
  }
4127
4119
  saveEventToCache(e) {
4128
4120
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4181,7 +4173,7 @@ async function Rr(n, e = {}) {
4181
4173
  * See the License for the specific language governing permissions and
4182
4174
  * limitations under the License.
4183
4175
  */
4184
- const Ar = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Pr = /^https?/;
4176
+ const Pr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
4185
4177
  async function Cr(n) {
4186
4178
  if (n.config.emulator)
4187
4179
  return;
@@ -4204,9 +4196,9 @@ function Nr(n) {
4204
4196
  const o = new URL(n);
4205
4197
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4206
4198
  }
4207
- if (!Pr.test(t))
4199
+ if (!Ar.test(t))
4208
4200
  return !1;
4209
- if (Ar.test(n))
4201
+ if (Pr.test(n))
4210
4202
  return i === n;
4211
4203
  const r = n.replace(/\./g, "\\.");
4212
4204
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4246,7 +4238,7 @@ function Lr(n) {
4246
4238
  e(gapi.iframes.getContext());
4247
4239
  },
4248
4240
  ontimeout: () => {
4249
- ft(), t(b(
4241
+ ft(), t(E(
4250
4242
  n,
4251
4243
  "network-request-failed"
4252
4244
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -4262,7 +4254,7 @@ function Lr(n) {
4262
4254
  else {
4263
4255
  const c = Di("iframefcb");
4264
4256
  return S()[c] = () => {
4265
- gapi.load ? o() : t(b(
4257
+ gapi.load ? o() : t(E(
4266
4258
  n,
4267
4259
  "network-request-failed"
4268
4260
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -4316,7 +4308,7 @@ function $r(n) {
4316
4308
  "auth-domain-config-required"
4317
4309
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4318
4310
  );
4319
- const t = e.emulator ? We(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
4311
+ const t = e.emulator ? je(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
4320
4312
  apiKey: e.apiKey,
4321
4313
  appName: n.name,
4322
4314
  v: se
@@ -4343,7 +4335,7 @@ async function Hr(n) {
4343
4335
  // Prevent iframe from closing on mouse out.
4344
4336
  setHideOnLeave: !1
4345
4337
  });
4346
- const o = b(
4338
+ const o = E(
4347
4339
  n,
4348
4340
  "network-request-failed"
4349
4341
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -4374,12 +4366,12 @@ async function Hr(n) {
4374
4366
  * See the License for the specific language governing permissions and
4375
4367
  * limitations under the License.
4376
4368
  */
4377
- const Wr = {
4369
+ const jr = {
4378
4370
  location: "yes",
4379
4371
  resizable: "yes",
4380
4372
  statusbar: "yes",
4381
4373
  toolbar: "no"
4382
- }, jr = 500, Gr = 600, Br = "_blank", zr = "http://localhost";
4374
+ }, Wr = 500, Br = 600, Gr = "_blank", zr = "http://localhost";
4383
4375
  class pt {
4384
4376
  constructor(e) {
4385
4377
  this.window = e, this.associatedEvent = null;
@@ -4392,18 +4384,18 @@ class pt {
4392
4384
  }
4393
4385
  }
4394
4386
  }
4395
- function qr(n, e, t, i = jr, r = Gr) {
4387
+ function qr(n, e, t, i = Wr, r = Br) {
4396
4388
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4397
4389
  let c = "";
4398
- const a = Object.assign(Object.assign({}, Wr), {
4390
+ const a = Object.assign(Object.assign({}, jr), {
4399
4391
  width: i.toString(),
4400
4392
  height: r.toString(),
4401
4393
  top: s,
4402
4394
  left: o
4403
4395
  }), l = k().toLowerCase();
4404
- t && (c = Ft(l) ? Br : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
4405
- const d = Object.entries(a).reduce((v, [y, p]) => `${v}${y}=${p},`, "");
4406
- if (bi(l) && c !== "_self")
4396
+ t && (c = Ft(l) ? Gr : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
4397
+ const d = Object.entries(a).reduce((v, [y, f]) => `${v}${y}=${f},`, "");
4398
+ if (Ei(l) && c !== "_self")
4407
4399
  return Kr(e || "", c), new pt(null);
4408
4400
  const m = window.open(e || "", c, d);
4409
4401
  u(
@@ -4478,7 +4470,7 @@ async function mt(n, e, t, i, r, s) {
4478
4470
  return `${Qr(n)}?${oe(c).slice(1)}${l}`;
4479
4471
  }
4480
4472
  function Qr({ config: n }) {
4481
- return n.emulator ? We(n, Yr) : `https://${n.authDomain}/${Jr}`;
4473
+ return n.emulator ? je(n, Yr) : `https://${n.authDomain}/${Jr}`;
4482
4474
  }
4483
4475
  /**
4484
4476
  * @license
@@ -4527,7 +4519,7 @@ class Zr {
4527
4519
  }), i;
4528
4520
  }
4529
4521
  async initAndGetManager(e) {
4530
- const t = await Hr(e), i = new br(e);
4522
+ const t = await Hr(e), i = new Er(e);
4531
4523
  return t.register("authEvent", (r) => (u(
4532
4524
  r == null ? void 0 : r.authEvent,
4533
4525
  e,
@@ -4554,7 +4546,7 @@ class Zr {
4554
4546
  return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
4555
4547
  }
4556
4548
  get _shouldInitProactively() {
4557
- return jt() || Ge() || ke();
4549
+ return Wt() || Be() || ke();
4558
4550
  }
4559
4551
  }
4560
4552
  const es = Zr;
@@ -4655,7 +4647,7 @@ function is(n) {
4655
4647
  apiHost: "identitytoolkit.googleapis.com",
4656
4648
  tokenApiHost: "securetoken.googleapis.com",
4657
4649
  apiScheme: "https",
4658
- sdkClientVersion: Gt(n)
4650
+ sdkClientVersion: Bt(n)
4659
4651
  }, l = new Oi(i, r, s, a);
4660
4652
  return Fi(l, t), l;
4661
4653
  },
@@ -4672,7 +4664,7 @@ function is(n) {
4672
4664
  })), Ze(new et(
4673
4665
  "auth-internal",
4674
4666
  (e) => {
4675
- const t = Ee(e.getProvider(
4667
+ const t = be(e.getProvider(
4676
4668
  "auth"
4677
4669
  /* _ComponentName.AUTH */
4678
4670
  ).getImmediate());
@@ -4716,7 +4708,7 @@ const os = (n) => async (e) => {
4716
4708
  }));
4717
4709
  };
4718
4710
  function as(n = Nn()) {
4719
- const e = Et(n, "auth");
4711
+ const e = bt(n, "auth");
4720
4712
  if (e.isInitialized())
4721
4713
  return e.getImmediate();
4722
4714
  const t = xi(n, {
@@ -4746,7 +4738,7 @@ Li({
4746
4738
  return new Promise((e, t) => {
4747
4739
  const i = document.createElement("script");
4748
4740
  i.setAttribute("src", n), i.onload = e, i.onerror = (r) => {
4749
- const s = b(
4741
+ const s = E(
4750
4742
  "internal-error"
4751
4743
  /* AuthErrorCode.INTERNAL_ERROR */
4752
4744
  );
@@ -4762,15 +4754,15 @@ is(
4762
4754
  "Browser"
4763
4755
  /* ClientPlatform.BROWSER */
4764
4756
  );
4765
- var ls = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com", importFilesBucketUrl: "feedme-dev-4c3ef.appspot.com", clientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", featureFlagApiKey: "MaGoXrEWuEJNpWgKTqseee" }, us = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
4757
+ var ls = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" }, us = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
4766
4758
  const ds = {
4767
4759
  key: 2,
4768
4760
  class: "h-full w-full"
4769
4761
  }, hs = ["src"], Cs = /* @__PURE__ */ xe({
4770
4762
  __name: "App",
4771
4763
  setup(n) {
4772
- const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = G(
4773
- () => o.name === f["$connect-UPSELLING"]
4764
+ const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = B(
4765
+ () => o.name === p["$connect-UPSELLING"]
4774
4766
  ), a = te(o.query.showHeader !== "false"), l = te(!1), { currentBusiness: d } = ge();
4775
4767
  ie(
4776
4768
  () => {
@@ -4782,25 +4774,25 @@ const ds = {
4782
4774
  },
4783
4775
  { immediate: !0 }
4784
4776
  );
4785
- const m = te(!1), v = G(() => i.version), y = G(() => {
4786
- const h = e.currentCountry.value || "MY", _ = tt.getIdToken(), E = d.value._id;
4787
- return `${us.marketingV1Portal}/b/${E}/marketing/overview?showHeader=false&country=${h}&token=${_}`;
4777
+ const m = te(!1), v = B(() => i.version), y = B(() => {
4778
+ const h = e.currentCountry.value || "MY", _ = tt.getIdToken(), b = d.value._id;
4779
+ return `${us.marketingV1Portal}/b/${b}/marketing/overview?showHeader=false&country=${h}&token=${_}`;
4788
4780
  });
4789
- async function p() {
4781
+ async function f() {
4790
4782
  if (Dn().length) {
4791
4783
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4792
4784
  return;
4793
4785
  }
4794
- const h = xn(ls.firebase), _ = await fn.getCustomToken(), E = as();
4795
- await qi(E, _), Fn(h), console.log("initFirebase", h);
4786
+ const h = xn(ls.firebase), _ = await fn.getCustomToken(), b = as();
4787
+ await qi(b, _), Fn(h), console.log("initFirebase", h);
4796
4788
  }
4797
4789
  const w = async () => {
4798
- m.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(d.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(Wn) : e.hideSidebarToggle(!0), await p(), l.value = !0, m.value = !0;
4790
+ m.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(d.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(jn) : e.hideSidebarToggle(!0), await f(), l.value = !0, m.value = !0;
4799
4791
  };
4800
4792
  return un(() => {
4801
4793
  if (Vn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !a.value) {
4802
- const h = document.getElementsByClassName("app-header")[0], _ = document.getElementsByClassName("app-sidebar")[0], E = document.getElementsByClassName("app-container")[0], T = document.getElementsByTagName("main")[0];
4803
- h == null || h.classList.add("!hidden"), _ == null || _.classList.add("!pt-0"), E == null || E.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4794
+ const h = document.getElementsByClassName("app-header")[0], _ = document.getElementsByClassName("app-sidebar")[0], b = document.getElementsByClassName("app-container")[0], T = document.getElementsByTagName("main")[0];
4795
+ h == null || h.classList.add("!hidden"), _ == null || _.classList.add("!pt-0"), b == null || b.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4804
4796
  }
4805
4797
  d.value != null && (console.log("App mounted, forceRerender"), w());
4806
4798
  }), ie(
@@ -4808,11 +4800,11 @@ const ds = {
4808
4800
  async (h, _) => {
4809
4801
  console.log("Current business changed"), h != null && h._id != _._id && (console.log("forceRerender when business changes", h, _), w());
4810
4802
  }
4811
- ), (h, _) => (j(), me(It, null, [
4812
- g(m) && (g(v) === "v2" || g(c)) ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
4813
- g(m) && g(v) === "v2" && g(a) ? (j(), Oe(oi, { key: 1 })) : Pe("", !0),
4814
- g(m) && g(v) !== "v2" && !g(c) ? (j(), me("div", ds, [
4815
- R(En, {
4803
+ ), (h, _) => (W(), me(It, null, [
4804
+ g(m) && (g(v) === "v2" || g(c)) ? (W(), Oe(g(hn), { key: 0 })) : Ae("", !0),
4805
+ g(m) && g(v) === "v2" && g(a) ? (W(), Oe(oi, { key: 1 })) : Ae("", !0),
4806
+ g(m) && g(v) !== "v2" && !g(c) ? (W(), me("div", ds, [
4807
+ R(bn, {
4816
4808
  json: { url: g(y) }
4817
4809
  }, null, 8, ["json"]),
4818
4810
  I("iframe", {
@@ -4822,7 +4814,7 @@ const ds = {
4822
4814
  width: "100%",
4823
4815
  src: g(y)
4824
4816
  }, null, 8, hs)
4825
- ])) : Pe("", !0)
4817
+ ])) : Ae("", !0)
4826
4818
  ], 64));
4827
4819
  }
4828
4820
  });