@feedmepos/mf-connect 0.1.126-prod → 0.1.127-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/{App-DRHHPaMz.js → App-CLrxVFgX.js} +224 -216
  2. package/dist/AuditLogs-DYlfToAk.js +2016 -0
  3. package/dist/{Bin-FkcYLSTm.js → Bin-C0CugBW4.js} +8 -8
  4. package/dist/{Broadcast-Cgqp_BMa.js → Broadcast-DhVQa_WW.js} +22 -21
  5. package/dist/{CampaignAnalytic-kKZ_BwW0.js → CampaignAnalytic-6jeG5U90.js} +97 -97
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CX0mWLjO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cxydrkof.js} +9 -10
  7. package/dist/{Card-Bu1y37hV.js → Card-cpLj34Oy.js} +23 -23
  8. package/dist/{Collections-B3mJkBCT.js → Collections-CdRpJuHO.js} +197 -185
  9. package/dist/{Credit-Bn-2EcVy.js → Credit-E_N_yfnJ.js} +21 -20
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-Cz7pZ7LD.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Dq-2vUqT.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CSXO2bYC.js +4584 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B7XBiv4l.js → EffectSheet.vue_vue_type_style_index_0_lang-BeQZjLIw.js} +33 -33
  13. package/dist/{Experience-CunbmoAu.js → Experience-D9i0ax4C.js} +32 -31
  14. package/dist/{FileSaver.min-ChFSxYyS.js → FileSaver.min-BOE2RBne.js} +1 -1
  15. package/dist/{Game-dFDwx_UJ.js → Game-CirwX_l1.js} +19 -18
  16. package/dist/{GiftCardSetup-DYpEqqX0.js → GiftCardSetup-DpJb_azW.js} +31 -31
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-DxJdI6gc.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-ff6Nfvxe.js} +140 -128
  18. package/dist/{Goals-DuZzgM_K.js → Goals-TejbPs-I.js} +4 -4
  19. package/dist/Grab-CeUX-LlF.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-lDulspkF.js → ImageInput.vue_vue_type_script_setup_true_lang-CnZzRDGS.js} +1 -1
  21. package/dist/{Index-BxB2ohT0.js → Index-gqWBDZBN.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-9sKJE1A5.js → LocationPicker.vue_vue_type_script_setup_true_lang-CzobgD7L.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CxBNYzcz.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DgeD1RQq.js} +1 -1
  24. package/dist/{LoyaltyDashboard-DQzGvQ7j.js → LoyaltyDashboard-R22oQHTd.js} +82 -82
  25. package/dist/{MainLayout-MAZ1S06H.js → MainLayout-pJBEBaM-.js} +1 -1
  26. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-CeF3LU-N.js → MainLayout.vue_vue_type_script_setup_true_lang-IX_utv2Z.js} +3 -3
  27. package/dist/{Marketing-ACF6F7be.js → Marketing-5gMwO1jV.js} +4 -4
  28. package/dist/{MarketingMaterialEdit-B8NfkoHg.js → MarketingMaterialEdit-BaHNX_qE.js} +214 -211
  29. package/dist/{Member-rLxDUOr8.js → Member-Cd0oraEq.js} +7 -7
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DzyM1fW_.js +1322 -0
  31. package/dist/{MemberImportHistory-BuG6DmdV.js → MemberImportHistory-C_RkY3fg.js} +7 -7
  32. package/dist/{MemberList-CC6zm_I6.js → MemberList-CJK1akUC.js} +103 -105
  33. package/dist/{MemberTransactions-Bw2xu6jZ.js → MemberTransactions-DP6schuy.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cav8gQUK.js → MessageInput.vue_vue_type_script_setup_true_lang-BaivunRx.js} +12 -12
  35. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-8wdY4FnI.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DOdYyPp2.js} +1 -1
  36. package/dist/{Mission-DnEcbALs.js → Mission-DJ40IcG9.js} +22 -21
  37. package/dist/{Overview-DShFohlk.js → Overview-CaQlLSBg.js} +145 -144
  38. package/dist/{Overview-COytI5xN.js → Overview-DXHjNmIO.js} +21 -21
  39. package/dist/{Point-CWYwlx0i.js → Point-D0Qqmgai.js} +22 -21
  40. package/dist/{Promotion-LBrQYtad.js → Promotion-CQU2-tpG.js} +137 -131
  41. package/dist/{Queue-DKg5EvDM.js → Queue-B-Uki3qh.js} +46 -46
  42. package/dist/{Record--lYpawLN.js → Record-BvQ0nVja.js} +9 -9
  43. package/dist/{Review-C4pNmJ7n.js → Review-DMfBPU_D.js} +2 -2
  44. package/dist/ReviewFacebookCallback-Bq6JQ7LR.js +225 -0
  45. package/dist/{ReviewGoogleCallback-ge8fL_A-.js → ReviewGoogleCallback-Bg9PFxog.js} +5 -5
  46. package/dist/{Reward-B67r1Bpz.js → Reward-CNC0z98e.js} +16 -16
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bt0Kx2--.js → RewardGroup.vue_vue_type_script_setup_true_lang-DXr-5wJE.js} +14 -14
  48. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-OznhirAU.js +1923 -0
  49. package/dist/{Segment-DeSC3z5G.js → Segment-V0ZQJkN-.js} +304 -307
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DdjC7X1V.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BmFp2pst.js} +15 -15
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Crys59UO.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C0IbEZMG.js} +4 -4
  52. package/dist/{Setting-DiDcMU5E.js → Setting-DCb6IIrk.js} +17 -17
  53. package/dist/{SettingAdvertisements-3wMI9egH.js → SettingAdvertisements-Dc9XfzVl.js} +12 -12
  54. package/dist/Settings-BIjIfmFI.js +286 -0
  55. package/dist/{Store-DgefqByH.js → Store-DkoB_5IF.js} +29 -29
  56. package/dist/{StoreRewards-CS2h5RVB.js → StoreRewards-a4ujLMfY.js} +15 -15
  57. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-gPR8sn4k.js → StoreTransactions.vue_vue_type_script_setup_true_lang-UbMY0RzG.js} +25 -25
  58. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BWjb1wHV.js +7007 -0
  59. package/dist/{Tier-Cye6888q.js → Tier-1WKuUirS.js} +2583 -688
  60. package/dist/{Title-B1eJh5oy.js → Title-CznZg4jL.js} +96 -95
  61. package/dist/{Transaction-ouzdsBUx.js → Transaction-DBRQDmA3.js} +2 -2
  62. package/dist/{Upselling-CdQd2Fuk.js → Upselling-CjZvUUqn.js} +3 -3
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BSlxe1Hf.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DS4hdSE9.js} +26 -26
  64. package/dist/{Voucher-CJJt8VlJ.js → Voucher-Di6VhoSM.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BzbNaK6H.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BjSzCnBw.js} +12 -12
  66. package/dist/{WhatsappAccount-DIxSP6Tp.js → WhatsappAccount-DdXadlHI.js} +6 -6
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-L9Y5lAft.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-Cnlvi-GG.js} +1 -1
  68. package/dist/WhatsappBot-DwhQmZLJ.js +882 -0
  69. package/dist/{WhatsappBotLogs-D8IfLHk3.js → WhatsappBotLogs-BAglKUAZ.js} +66 -66
  70. package/dist/WhatsappBotSettings-DslJTj2X.js +945 -0
  71. package/dist/{WhatsappLayout-3rWwmGRd.js → WhatsappLayout-14847AOz.js} +3 -3
  72. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-C3N-loYJ.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-otzgv6Jh.js} +3 -3
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D1dORvMi.js → ZodTextField.vue_vue_type_script_setup_true_lang-BEY-LOVu.js} +2 -2
  74. package/dist/{app-BXqas0p1.js → app-KbxCI4gY.js} +4204 -3400
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-DQCZiS2E.js → base.export-DH8OxNrx.js} +2 -2
  77. package/dist/business-DuKNr9P7.js +83 -0
  78. package/dist/{campaign-C2X6aa7B.js → campaign-DR5xHhgA.js} +31 -25
  79. package/dist/{campaign-DASPASQ0.js → campaign-Ddv-RZgo.js} +121 -94
  80. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-DsaSpHDQ.js} +3 -2
  81. package/dist/campaign.fn-CJlEovlZ.js +776 -0
  82. package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-CDHT9uk3.js} +1 -1
  83. package/dist/{collection.fn-C7jNdh0A.js → collection.fn-DTZs-hUX.js} +2 -2
  84. package/dist/{currency-BvBM_Io9.js → currency-1-Yhpyv5.js} +1 -1
  85. package/dist/duplicateCampaign-BncSxYSg.js +51 -0
  86. package/dist/{effect-BA1yh6Mj.js → effect-TTD5--LN.js} +1 -1
  87. package/dist/{email-addresses-haS5P7hq.js → email-addresses-pxXp67Al.js} +2 -2
  88. package/dist/{feature-flag-B4bJnuei.js → feature-flag-CFVZl4ed.js} +84 -84
  89. package/dist/google-BQK68wbe.js +5 -0
  90. package/dist/{helper-BtTBvFuA.js → helper-BC_Cl5VR.js} +1 -1
  91. package/dist/{index-ChGZ_S3V.js → index-42Wl_5UE.js} +1 -1
  92. package/dist/{index-Dm2Dvxph.js → index-BRl7Besd.js} +23 -23
  93. package/dist/{index-DAtVp1NI.js → index-BxUMqeaY.js} +2700 -2614
  94. package/dist/{index-Dg972Dfv.js → index-ByFFDLTo.js} +1 -1
  95. package/dist/{index-DtbR7I4C.js → index-CBKbnJRo.js} +9 -9
  96. package/dist/index-CGtlXLTG.js +10767 -0
  97. package/dist/{index-CH-uRaZH.js → index-CRKdLbXL.js} +71 -52
  98. package/dist/{index-B1dAoOWi.js → index-CaHkqz0W.js} +19 -6
  99. package/dist/{index-DeomfIu9.js → index-CcXMYJxc.js} +609 -252
  100. package/dist/{index-B6A6sHpy.js → index-CkiP4iG6.js} +1 -1
  101. package/dist/{index-g_SHjVWE.js → index-D1iOPNg3.js} +1 -1
  102. package/dist/{index-D-D0s8PB.js → index-D2Nq0UoL.js} +381 -235
  103. package/dist/index-D4nA0Z7e.js +19528 -0
  104. package/dist/{index-BV-YiCDM.js → index-DHw8wo7T.js} +2 -2
  105. package/dist/{index-C2rjmdar.js → index-DKOoRHPf.js} +4 -4
  106. package/dist/{index-Q-iHraJ3.js → index-DcbPYZkw.js} +26 -19
  107. package/dist/{index-C7UBk5gq.js → index-DjwrfZk3.js} +35 -17
  108. package/dist/{index-BvFq5REc.js → index-EuZfRdBT.js} +10 -10
  109. package/dist/{index-CJ-BZCvB.js → index-H4XJDOoT.js} +1315 -1243
  110. package/dist/{index-CXznvd79.js → index-ImU7YXN7.js} +4 -4
  111. package/dist/{index-BRTy6G9c.js → index-N4EzkcEu.js} +2 -2
  112. package/dist/{index-CBfVFFME.js → index-j7eLKJK3.js} +198 -198
  113. package/dist/{index.esm2017-B7iE1Ggr.js → index.esm2017-CBo4j3U1.js} +93 -93
  114. package/dist/{loading-BvlSfSVK.js → loading-COAu2l7W.js} +1 -1
  115. package/dist/{lodash-Daey2k0N.js → lodash-Bu1ipIkR.js} +1 -1
  116. package/dist/{member-import-CF9aym_y.js → member-import-CkiTJIqy.js} +2 -2
  117. package/dist/{membership-DfG-fl80.js → membership-BSEeYyiz.js} +3 -3
  118. package/dist/{money-SBIQhxqf.js → money-BOaGQSGa.js} +1 -1
  119. package/dist/{number-Cp1bFK9U.js → number-B2AC2EMT.js} +1 -1
  120. package/dist/objectid-BKw48v5L.js +145 -0
  121. package/dist/{onboarding-bjc7C8O-.js → onboarding-ClA8xAnH.js} +25 -25
  122. package/dist/{onboardingSetup-BAu9TDI6.js → onboardingSetup-DHjnq0H1.js} +2 -2
  123. package/dist/{plugins-Def73Eyk.js → plugins-DewN43sP.js} +3 -3
  124. package/dist/{reward-KecVeztH.js → reward-deDdPQiR.js} +1 -1
  125. package/dist/{rule-kMIC0vOi.js → rule-B8ifutnO.js} +572 -492
  126. package/dist/style.css +1 -1
  127. package/dist/template-z3VMmWei.js +227 -0
  128. package/dist/timezone-BxJDy-bY.js +19 -0
  129. package/dist/{transaction.fn-Bjy5utxD.js → transaction.fn-CBBhq01K.js} +2 -2
  130. package/dist/{trigger-DnnOJVUi.js → trigger-B_quLwWr.js} +9 -9
  131. package/dist/{useMarketingMaterialActions-DMrNOpok.js → useMarketingMaterialActions-DqoRLx1M.js} +4 -4
  132. package/dist/{usePagination-BCY4a-dh.js → usePagination-Q1fPttcp.js} +1 -1
  133. package/dist/{user-BTc0S1Vx.js → user-Bw6h9xn-.js} +1 -1
  134. package/dist/vue-i18n-DpCS1FnK.js +2365 -0
  135. package/dist/{xlsx-DR5oLrEs.js → xlsx--toeD6hC.js} +1 -1
  136. package/dist/{zod-CMq39HWn.js → zod-BkNAcpay.js} +1 -1
  137. package/package.json +6 -2
  138. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DIUEjCFW.js +0 -3638
  139. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Bq3UKX7v.js +0 -1308
  140. package/dist/ReviewFacebookCallback-BYXwKQNG.js +0 -238
  141. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-fLtn32Rw.js +0 -1884
  142. package/dist/Settings-BR6Y1DBZ.js +0 -179
  143. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Cjnkpd1j.js +0 -142
  144. package/dist/WhatsappBot-BXxoaz7-.js +0 -878
  145. package/dist/WhatsappBotSettings-Bq9C7pNZ.js +0 -704
  146. package/dist/business-RsRhXSh8.js +0 -82
  147. package/dist/campaign.fn-BEX99lsa.js +0 -776
  148. package/dist/google-C3S8u0mT.js +0 -4
  149. package/dist/index-C_H8jFYf.js +0 -2743
  150. package/dist/index-D9zjHXFU.js +0 -27551
  151. package/dist/objectid-BMRA1fIL.js +0 -145
  152. package/dist/rule-builder-DgU6P24U.js +0 -102
  153. package/dist/template-BH9vS8A9.js +0 -275
  154. package/dist/timezone-CMX1sJ0a.js +0 -20
  155. package/dist/vue-i18n-7BKLPLxj.js +0 -2365
@@ -1,4 +1,4 @@
1
- import { z as e } from "./index-C_H8jFYf.js";
1
+ import { z as e } from "./index-CGtlXLTG.js";
2
2
  const E = e.enum([
3
3
  "VOUCHER",
4
4
  "CREDIT",
@@ -1,5 +1,5 @@
1
- import "./index-DAtVp1NI.js";
2
- import "./index-D9zjHXFU.js";
1
+ import "./index-BxUMqeaY.js";
2
+ import "./index-D4nA0Z7e.js";
3
3
  function r(e) {
4
4
  switch (e) {
5
5
  case "PROMOTION":
@@ -1,4 +1,4 @@
1
- import { c as t } from "./index-BvFq5REc.js";
1
+ import { c as t } from "./index-EuZfRdBT.js";
2
2
  function a(r, o = !0) {
3
3
  return t.DineroFactory(r).toFormat(o);
4
4
  }
@@ -0,0 +1,51 @@
1
+ import { p as l, i } from "./plugins-DewN43sP.js";
2
+ import { _ as r } from "./lodash-Bu1ipIkR.js";
3
+ function v(e) {
4
+ return l.confirm(
5
+ i.global.t("connect.common.duplicate.confirmMessage", { name: e }),
6
+ i.global.t("connect.common.duplicate.title"),
7
+ i.global.t("connect.common.duplicate.proceed")
8
+ );
9
+ }
10
+ const f = ["LOYALTY", "NO_REWARD"], s = {
11
+ GAME: [(e) => {
12
+ var o;
13
+ return (o = e == null ? void 0 : e.game) == null ? void 0 : o.rewards;
14
+ }],
15
+ MISSION: [
16
+ (e) => e == null ? void 0 : e.rewards,
17
+ (e) => {
18
+ var o;
19
+ return (o = e == null ? void 0 : e.mission) == null ? void 0 : o.rewards;
20
+ }
21
+ ],
22
+ REWARD_POOL: [(e) => e == null ? void 0 : e.rewards]
23
+ };
24
+ function u(e, o) {
25
+ e && e.forEach((t) => {
26
+ o.includes(t.type ?? "") || (t.collectible = null, t.type === "VOUCHER" && t.collectibleConfig && (t.collectibleConfig._id = void 0));
27
+ });
28
+ }
29
+ function d(e) {
30
+ e._id = void 0;
31
+ }
32
+ function C(e, o) {
33
+ e.campaign && (e.campaign._id = void 0, e.campaign.currentReceive = void 0, e.campaign.notifyCampaign = void 0, o || (e.campaign.collectible = void 0));
34
+ }
35
+ function R(e, o) {
36
+ e.configs && (e.configs.currentReceive = void 0, o || (e.configs._id = void 0));
37
+ }
38
+ function E(e) {
39
+ const o = s[(e == null ? void 0 : e.type) ?? ""];
40
+ o && o.forEach((t) => {
41
+ u(t(e), f);
42
+ });
43
+ }
44
+ function A(e, o = {}) {
45
+ const t = r.cloneDeep(e), { keepCollectible: n = !1 } = o, c = t.campaign;
46
+ return d(t), C(t, n), R(t, n), E(c), t;
47
+ }
48
+ export {
49
+ v as c,
50
+ A as p
51
+ };
@@ -1,4 +1,4 @@
1
- import { c as r } from "./index-BvFq5REc.js";
1
+ import { c as r } from "./index-EuZfRdBT.js";
2
2
  function p(n) {
3
3
  if (!n)
4
4
  return null;
@@ -1,8 +1,8 @@
1
1
  var ur = Object.defineProperty;
2
2
  var ir = (S, b, h) => b in S ? ur(S, b, { enumerable: !0, configurable: !0, writable: !0, value: h }) : S[b] = h;
3
3
  var xn = (S, b, h) => ir(S, typeof b != "symbol" ? b + "" : b, h);
4
- import { u as en } from "./xlsx-DR5oLrEs.js";
5
- import { b as ar } from "./app-BXqas0p1.js";
4
+ import { u as en } from "./xlsx--toeD6hC.js";
5
+ import { b as ar } from "./app-KbxCI4gY.js";
6
6
  class fr {
7
7
  constructor() {
8
8
  xn(this, "data", []);
@@ -2,7 +2,7 @@ var de = Object.defineProperty;
2
2
  var ve = (g, u, d) => u in g ? de(g, u, { enumerable: !0, configurable: !0, writable: !0, value: d }) : g[u] = d;
3
3
  var lt = (g, u, d) => ve(g, typeof u != "symbol" ? u + "" : u, d);
4
4
  import { ref as ht, readonly as Ut } from "vue";
5
- import { c as ut } from "./app-BXqas0p1.js";
5
+ import { c as ut } from "./app-KbxCI4gY.js";
6
6
  import { useCoreStore as Dt } from "@feedmepos/mf-common";
7
7
  var Kt = { exports: {} };
8
8
  (function(g, u) {
@@ -64,7 +64,7 @@ var Kt = { exports: {} };
64
64
  h((i = i.apply(a, [])).next());
65
65
  });
66
66
  }
67
- function z(a, e) {
67
+ function H(a, e) {
68
68
  var t, i, n, r, o = { label: 0, sent: function() {
69
69
  if (1 & n[0]) throw n[1];
70
70
  return n[1];
@@ -150,7 +150,7 @@ var Kt = { exports: {} };
150
150
  }
151
151
  return e != e && t != t;
152
152
  };
153
- function _(a, e) {
153
+ function b(a, e) {
154
154
  var t = Object.keys(e || {}).filter(function(i) {
155
155
  var n = a == null ? void 0 : a[i], r = e == null ? void 0 : e[i];
156
156
  return !at(n, r);
@@ -160,7 +160,7 @@ var Kt = { exports: {} };
160
160
  }), Object.keys(t).length ? t : null;
161
161
  }
162
162
  var f, C;
163
- function b(a, e, t) {
163
+ function _(a, e, t) {
164
164
  var i = "shortString", n = !0;
165
165
  typeof t == "number" && (i = "javaDouble", n = !1), a[i] = a[i] || {}, a[i][e] = n ? t + "" : t;
166
166
  }
@@ -179,7 +179,7 @@ var Kt = { exports: {} };
179
179
  (function(a) {
180
180
  a.NONE = "NONE", a.DEFAULT_FLAGS = "DEFAULT_FLAGS", a.CACHE = "CACHE", a.SERVER = "SERVER";
181
181
  })(f || (f = {}));
182
- var vt, w = null, se = "FLAGSMITH_EVENT", ot = se, Bt = "https://edge.api.flagsmith.com/api/v1/", Ht = "flagsmith_value_", Vt = "flagsmith_enabled_", zt = "flagsmith_trait_", le = function() {
182
+ var vt, w = null, se = "FLAGSMITH_EVENT", ot = se, Bt = "https://edge.api.flagsmith.com/api/v1/", Vt = "flagsmith_value_", zt = "flagsmith_enabled_", Ht = "flagsmith_trait_", le = function() {
183
183
  function a(e) {
184
184
  var t = this;
185
185
  this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
@@ -188,20 +188,20 @@ var Kt = { exports: {} };
188
188
  var o = "".concat(t.getContext().identity), c = function(h) {
189
189
  var p, l, y, F;
190
190
  if (h && o === "".concat(t.getContext().identity)) {
191
- var R = h.flags, O = h.traits, j = h.identifier;
191
+ var P = h.flags, O = h.traits, j = h.identifier;
192
192
  t.isLoading = !1;
193
193
  var I = {}, A = {};
194
- O = O || [], (R = R || []).forEach(function(m) {
194
+ O = O || [], (P = P || []).forEach(function(m) {
195
195
  I[m.feature.name.toLowerCase().replace(/ /g, "_")] = { id: m.feature.id, enabled: m.enabled, value: m.feature_state_value };
196
196
  }), O.forEach(function(m) {
197
197
  A[m.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: m.transient, value: m.trait_value };
198
198
  }), t.oldFlags = s({}, t.flags);
199
- var k = _(t.oldFlags, I), Q = _((p = t.evaluationContext.identity) === null || p === void 0 ? void 0 : p.traits, A);
199
+ var k = b(t.oldFlags, I), Q = b((p = t.evaluationContext.identity) === null || p === void 0 ? void 0 : p.traits, A);
200
200
  if ((j || Object.keys(A).length) && (t.evaluationContext.identity = s(s({}, t.evaluationContext.identity), { traits: A }), j && (t.evaluationContext.identity.identifier = j)), t.flags = I, t.updateStorage(), t._onChange(t.oldFlags, { isFromServer: !0, flagsChanged: k, traitsChanged: Q }, t._loadedState(null, f.SERVER)), t.datadogRum) try {
201
201
  if (t.datadogRum.trackTraits) {
202
202
  var W = {};
203
203
  Object.keys(((l = t.evaluationContext.identity) === null || l === void 0 ? void 0 : l.traits) || {}).map(function(m) {
204
- W[zt + m] = t.getTrait(m);
204
+ W[Ht + m] = t.getTrait(m);
205
205
  });
206
206
  var $ = s(s(s({}, t.datadogRum.client.getUser()), { id: t.datadogRum.client.getUser().id || ((y = t.evaluationContext.identity) === null || y === void 0 ? void 0 : y.identifier) }), W);
207
207
  t.log("Setting Datadog user", $), t.datadogRum.client.setUser($);
@@ -212,9 +212,9 @@ var Kt = { exports: {} };
212
212
  if (t.dtrum) try {
213
213
  var E = { javaDouble: {}, date: {}, shortString: {}, javaLongOrObject: {} };
214
214
  Object.keys(t.flags).map(function(m) {
215
- b(E, Ht + m, t.getValue(m, { skipAnalytics: !0 })), b(E, Vt + m, t.hasFeature(m, { skipAnalytics: !0 }));
215
+ _(E, Vt + m, t.getValue(m, { skipAnalytics: !0 })), _(E, zt + m, t.hasFeature(m, { skipAnalytics: !0 }));
216
216
  }), Object.keys(((F = t.evaluationContext.identity) === null || F === void 0 ? void 0 : F.traits) || {}).map(function(m) {
217
- b(E, zt + m, t.getTrait(m));
217
+ _(E, Ht + m, t.getTrait(m));
218
218
  }), t.log("Sending javaLongOrObject traits to dynatrace", E.javaLongOrObject), t.log("Sending date traits to dynatrace", E.date), t.log("Sending shortString traits to dynatrace", E.shortString), t.log("Sending javaDouble to dynatrace", E.javaDouble), t.dtrum.sendSessionProperties(E.javaLongOrObject, E.date, E.shortString, E.javaDouble);
219
219
  } catch (m) {
220
220
  console.error(m);
@@ -292,9 +292,9 @@ var Kt = { exports: {} };
292
292
  t.evaluationContext.environment && (p.headers["X-Environment-Key"] = t.evaluationContext.environment.apiKey), n && n !== "GET" && (p.headers["Content-Type"] = "application/json; charset=utf-8"), h && Object.assign(p.headers, h), C || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
293
293
  var l = "".concat((o = t.evaluationContext.identity) === null || o === void 0 ? void 0 : o.identifier);
294
294
  return C(i, p).then(function(y) {
295
- var F, R, O = "".concat((F = t.evaluationContext.identity) === null || F === void 0 ? void 0 : F.identifier);
295
+ var F, P, O = "".concat((F = t.evaluationContext.identity) === null || F === void 0 ? void 0 : F.identifier);
296
296
  if (l === O) {
297
- var j = (R = y.headers) === null || R === void 0 ? void 0 : R.get("x-flagsmith-document-updated-at");
297
+ var j = (P = y.headers) === null || P === void 0 ? void 0 : P.get("x-flagsmith-document-updated-at");
298
298
  if (j) try {
299
299
  var I = parseFloat(j);
300
300
  if (isNaN(I)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
@@ -314,7 +314,7 @@ var Kt = { exports: {} };
314
314
  t.log("Received response with identity mismatch, ignoring response. Requested: ".concat(l, ", Current: ").concat(O));
315
315
  });
316
316
  }, this.evaluateFlag = function(i, n) {
317
- if (t.datadogRum && (t.datadogRum.client.addFeatureFlagEvaluation ? n === "VALUE" ? t.datadogRum.client.addFeatureFlagEvaluation(Ht + i, t.getValue(i, {}, !0)) : t.datadogRum.client.addFeatureFlagEvaluation(Vt + i, t.hasFeature(i, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), t.enableAnalytics) {
317
+ if (t.datadogRum && (t.datadogRum.client.addFeatureFlagEvaluation ? n === "VALUE" ? t.datadogRum.client.addFeatureFlagEvaluation(Vt + i, t.getValue(i, {}, !0)) : t.datadogRum.client.addFeatureFlagEvaluation(zt + i, t.hasFeature(i, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), t.enableAnalytics) {
318
318
  if (!t.evaluationEvent || !t.evaluationContext.environment) return;
319
319
  t.evaluationEvent[t.evaluationContext.environment.apiKey] || (t.evaluationEvent[t.evaluationContext.environment.apiKey] = {}), t.evaluationEvent[t.evaluationContext.environment.apiKey][i] === void 0 && (t.evaluationEvent[t.evaluationContext.environment.apiKey][i] = 0), t.evaluationEvent[t.evaluationContext.environment.apiKey][i] += 1;
320
320
  }
@@ -327,31 +327,31 @@ var Kt = { exports: {} };
327
327
  return a.prototype.init = function(e) {
328
328
  var t, i, n;
329
329
  return T(this, void 0, void 0, function() {
330
- var r, o, c, h, p, l, y, F, R, O, j, I, A, k, Q, W, $, E, m, ft, tt, Qt, X, pt, Wt, te, yt, ee, mt, et, q, ne, x = this;
331
- return z(this, function(N) {
330
+ var r, o, c, h, p, l, y, F, P, O, j, I, A, k, Q, W, $, E, m, ft, tt, Qt, q, pt, Wt, te, yt, ee, mt, et, X, ne, x = this;
331
+ return H(this, function(N) {
332
332
  switch (N.label) {
333
333
  case 0:
334
334
  r = dt(e.evaluationContext || this.evaluationContext), N.label = 1;
335
335
  case 1:
336
- if (N.trys.push([1, 13, , 14]), o = e.environmentID, c = e.api, h = c === void 0 ? Bt : c, p = e.headers, l = e.onChange, y = e.cacheFlags, F = e.datadogRum, R = e.onError, O = e.defaultFlags, j = e.fetch, I = e.preventFetch, A = e.enableLogs, k = e.enableDynatrace, Q = e.enableAnalytics, W = e.realtime, $ = e.eventSourceUrl, E = $ === void 0 ? "https://realtime.flagsmith.com/" : $, m = e.AsyncStorage, ft = e.identity, tt = e.traits, Qt = e.state, X = e.cacheOptions, pt = e.angularHttpClient, Wt = e._trigger, te = e._triggerLoadingState, r.environment = o ? { apiKey: o } : r.environment, !r.environment || !r.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
336
+ if (N.trys.push([1, 13, , 14]), o = e.environmentID, c = e.api, h = c === void 0 ? Bt : c, p = e.headers, l = e.onChange, y = e.cacheFlags, F = e.datadogRum, P = e.onError, O = e.defaultFlags, j = e.fetch, I = e.preventFetch, A = e.enableLogs, k = e.enableDynatrace, Q = e.enableAnalytics, W = e.realtime, $ = e.eventSourceUrl, E = $ === void 0 ? "https://realtime.flagsmith.com/" : $, m = e.AsyncStorage, ft = e.identity, tt = e.traits, Qt = e.state, q = e.cacheOptions, pt = e.angularHttpClient, Wt = e._trigger, te = e._triggerLoadingState, r.environment = o ? { apiKey: o } : r.environment, !r.environment || !r.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
337
337
  if (r.identity = ft || tt ? { identifier: ft, traits: tt ? Object.fromEntries(Object.entries(tt).map(function(L) {
338
338
  return [L[0], { value: L[1] }];
339
339
  })) : {} } : r.identity, this.evaluationContext = r, this.api = h, this.headers = p, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = l, yt = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Wt || this._trigger, this._triggerLoadingState = te || this._triggerLoadingState, this.onError = function(L) {
340
- x.setLoadingState(s(s({}, x.loadingState), { isFetching: !1, isLoading: !1, error: L })), R == null || R(L);
341
- }, this.enableLogs = A || !1, this.cacheOptions = X ? { skipAPI: !!X.skipAPI, ttl: X.ttl || 0, storageKey: X.storageKey, loadStale: !!X.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), j && (C = j), this.enableAnalytics = Q || !1, this.flags = Object.assign({}, O) || {}, this.datadogRum = F || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = w !== void 0 && !!y, ot = "FLAGSMITH_EVENT_" + r.environment.apiKey, m && (w = m), W && typeof window < "u" && this.setupRealtime(E, r.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = s(s({}, this.loadingState), { isLoading: !1, source: f.DEFAULT_FLAGS })), this.setState(Qt), this.log("Initialising with properties", e, this), k && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), pt && (C = /* @__PURE__ */ function(L) {
342
- return function(P, U) {
343
- var H = U.headers, S = U.method, Y = U.body;
340
+ x.setLoadingState(s(s({}, x.loadingState), { isFetching: !1, isLoading: !1, error: L })), P == null || P(L);
341
+ }, this.enableLogs = A || !1, this.cacheOptions = q ? { skipAPI: !!q.skipAPI, ttl: q.ttl || 0, storageKey: q.storageKey, loadStale: !!q.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), j && (C = j), this.enableAnalytics = Q || !1, this.flags = Object.assign({}, O) || {}, this.datadogRum = F || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = w !== void 0 && !!y, ot = "FLAGSMITH_EVENT_" + r.environment.apiKey, m && (w = m), W && typeof window < "u" && this.setupRealtime(E, r.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = s(s({}, this.loadingState), { isLoading: !1, source: f.DEFAULT_FLAGS })), this.setState(Qt), this.log("Initialising with properties", e, this), k && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), pt && (C = /* @__PURE__ */ function(L) {
342
+ return function(R, U) {
343
+ var V = U.headers, S = U.method, Z = U.body;
344
344
  return new Promise(function(M) {
345
345
  switch (S) {
346
346
  case "GET":
347
- return L.get(P, { headers: H }).subscribe(function(J) {
347
+ return L.get(R, { headers: V }).subscribe(function(J) {
348
348
  M({ ok: !0, text: function() {
349
349
  return Promise.resolve(J);
350
350
  } });
351
351
  });
352
352
  case "POST":
353
353
  case "PUT":
354
- return L.post(P, Y, { headers: H }).subscribe(function(J) {
354
+ return L.post(R, Z, { headers: V }).subscribe(function(J) {
355
355
  M({ ok: !0, text: function() {
356
356
  return Promise.resolve(J);
357
357
  } });
@@ -366,50 +366,50 @@ var Kt = { exports: {} };
366
366
  x.evaluationEvent = {};
367
367
  }
368
368
  x.analyticsInterval = setInterval(x.analyticsFlags, x.ticks);
369
- }), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), w && this.canUseStorage && w.getItem(ot, function(L, P) {
370
- if (P && x.evaluationContext.environment) {
371
- var U = JSON.parse(P);
369
+ }), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), w && this.canUseStorage && w.getItem(ot, function(L, R) {
370
+ if (R && x.evaluationContext.environment) {
371
+ var U = JSON.parse(R);
372
372
  if (U[x.evaluationContext.environment.apiKey]) {
373
- var H = x.getState();
374
- x.log("Retrieved events from cache", P), x.setState(s(s({}, H), { evaluationEvent: U[x.evaluationContext.environment.apiKey] }));
373
+ var V = x.getState();
374
+ x.log("Retrieved events from cache", R), x.setState(s(s({}, V), { evaluationEvent: U[x.evaluationContext.environment.apiKey] }));
375
375
  }
376
376
  }
377
377
  })), !y) return [3, 9];
378
378
  if (!w || !this.canUseStorage) return [3, 8];
379
- ee = function(L, P) {
379
+ ee = function(L, R) {
380
380
  return T(x, void 0, void 0, function() {
381
- var U, H, S, Y, M, J, St, ie, Ct, bt, _t, Ft, Et, xt, wt, Ot, It, At, Lt, jt, Nt, Tt, Rt, kt, ae = this;
382
- return z(this, function(V) {
383
- switch (V.label) {
381
+ var U, V, S, Z, M, J, St, ie, Ct, _t, bt, Ft, Et, xt, wt, Ot, It, At, Lt, jt, Nt, Tt, Pt, kt, ae = this;
382
+ return H(this, function(z) {
383
+ switch (z.label) {
384
384
  case 0:
385
- if (!P) return [3, 7];
386
- U = null, H = null, V.label = 1;
385
+ if (!R) return [3, 7];
386
+ U = null, V = null, z.label = 1;
387
387
  case 1:
388
- return V.trys.push([1, 5, , 6]), S = JSON.parse(P), Y = !1, M = !1, S && S.api === this.api && ((bt = (Ct = S.evaluationContext) === null || Ct === void 0 ? void 0 : Ct.environment) === null || bt === void 0 ? void 0 : bt.apiKey) === ((_t = this.evaluationContext.environment) === null || _t === void 0 ? void 0 : _t.apiKey) && (J = !0, this.evaluationContext.identity && ((Et = (Ft = S.evaluationContext) === null || Ft === void 0 ? void 0 : Ft.identity) === null || Et === void 0 ? void 0 : Et.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((wt = (xt = S.evaluationContext) === null || xt === void 0 ? void 0 : xt.identity) === null || wt === void 0 ? void 0 : wt.identifier) + " to " + this.evaluationContext.identity.identifier), J = !1), this.cacheOptions.ttl && (!S.ts || (/* @__PURE__ */ new Date()).valueOf() - S.ts > this.cacheOptions.ttl) && (S.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + S.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - S.ts) + "ms"), J = !1) : S.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + S.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - S.ts) + "ms"), M = !0, J = !0)), J && (Y = !0, H = _((Ot = this.evaluationContext.identity) === null || Ot === void 0 ? void 0 : Ot.traits, (At = (It = S.evaluationContext) === null || It === void 0 ? void 0 : It.identity) === null || At === void 0 ? void 0 : At.traits), U = _(this.flags, S.flags), this.setState(s(s({}, S), { evaluationContext: dt(s(s({}, S.evaluationContext), { identity: !((Lt = S.evaluationContext) === null || Lt === void 0) && Lt.identity ? s(s({}, (jt = S.evaluationContext) === null || jt === void 0 ? void 0 : jt.identity), { traits: s(s({}, ((Tt = (Nt = S.evaluationContext) === null || Nt === void 0 ? void 0 : Nt.identity) === null || Tt === void 0 ? void 0 : Tt.traits) || {}), tt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", S))), Y ? (St = !I && (!this.cacheOptions.skipAPI || M), this._onChange(null, { isFromServer: !1, flagsChanged: U, traitsChanged: H }, this._loadedState(null, f.CACHE, St)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Y && !M && this.log("Skipping API, using cache"), St && this.getFlags().catch(function(he) {
389
- var Pt;
390
- (Pt = ae.onError) === null || Pt === void 0 || Pt.call(ae, he);
388
+ return z.trys.push([1, 5, , 6]), S = JSON.parse(R), Z = !1, M = !1, S && S.api === this.api && ((_t = (Ct = S.evaluationContext) === null || Ct === void 0 ? void 0 : Ct.environment) === null || _t === void 0 ? void 0 : _t.apiKey) === ((bt = this.evaluationContext.environment) === null || bt === void 0 ? void 0 : bt.apiKey) && (J = !0, this.evaluationContext.identity && ((Et = (Ft = S.evaluationContext) === null || Ft === void 0 ? void 0 : Ft.identity) === null || Et === void 0 ? void 0 : Et.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((wt = (xt = S.evaluationContext) === null || xt === void 0 ? void 0 : xt.identity) === null || wt === void 0 ? void 0 : wt.identifier) + " to " + this.evaluationContext.identity.identifier), J = !1), this.cacheOptions.ttl && (!S.ts || (/* @__PURE__ */ new Date()).valueOf() - S.ts > this.cacheOptions.ttl) && (S.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + S.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - S.ts) + "ms"), J = !1) : S.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + S.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - S.ts) + "ms"), M = !0, J = !0)), J && (Z = !0, V = b((Ot = this.evaluationContext.identity) === null || Ot === void 0 ? void 0 : Ot.traits, (At = (It = S.evaluationContext) === null || It === void 0 ? void 0 : It.identity) === null || At === void 0 ? void 0 : At.traits), U = b(this.flags, S.flags), this.setState(s(s({}, S), { evaluationContext: dt(s(s({}, S.evaluationContext), { identity: !((Lt = S.evaluationContext) === null || Lt === void 0) && Lt.identity ? s(s({}, (jt = S.evaluationContext) === null || jt === void 0 ? void 0 : jt.identity), { traits: s(s({}, ((Tt = (Nt = S.evaluationContext) === null || Nt === void 0 ? void 0 : Nt.identity) === null || Tt === void 0 ? void 0 : Tt.traits) || {}), tt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", S))), Z ? (St = !I && (!this.cacheOptions.skipAPI || M), this._onChange(null, { isFromServer: !1, flagsChanged: U, traitsChanged: V }, this._loadedState(null, f.CACHE, St)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Z && !M && this.log("Skipping API, using cache"), St && this.getFlags().catch(function(he) {
389
+ var Rt;
390
+ (Rt = ae.onError) === null || Rt === void 0 || Rt.call(ae, he);
391
391
  }), [3, 4]) : [3, 2];
392
392
  case 2:
393
393
  return I ? [3, 4] : [4, this.getFlags()];
394
394
  case 3:
395
- V.sent(), V.label = 4;
395
+ z.sent(), z.label = 4;
396
396
  case 4:
397
397
  return [3, 6];
398
398
  case 5:
399
- return ie = V.sent(), this.log("Exception fetching cached logs", ie), [3, 6];
399
+ return ie = z.sent(), this.log("Exception fetching cached logs", ie), [3, 6];
400
400
  case 6:
401
401
  return [3, 10];
402
402
  case 7:
403
403
  return I ? [3, 9] : [4, this.getFlags()];
404
404
  case 8:
405
- return V.sent(), [3, 10];
405
+ return z.sent(), [3, 10];
406
406
  case 9:
407
- if (O) this._onChange(null, { isFromServer: !1, flagsChanged: _({}, this.flags), traitsChanged: _({}, (Rt = this.evaluationContext.identity) === null || Rt === void 0 ? void 0 : Rt.traits) }, this._loadedState(null, f.DEFAULT_FLAGS));
407
+ if (O) this._onChange(null, { isFromServer: !1, flagsChanged: b({}, this.flags), traitsChanged: b({}, (Pt = this.evaluationContext.identity) === null || Pt === void 0 ? void 0 : Pt.traits) }, this._loadedState(null, f.DEFAULT_FLAGS));
408
408
  else {
409
409
  if (!this.flags) throw new Error(yt);
410
- this._onChange(null, { isFromServer: !1, flagsChanged: _({}, this.flags), traitsChanged: _({}, (kt = this.evaluationContext.identity) === null || kt === void 0 ? void 0 : kt.traits) }, this._loadedState(null, f.DEFAULT_FLAGS));
410
+ this._onChange(null, { isFromServer: !1, flagsChanged: b({}, this.flags), traitsChanged: b({}, (kt = this.evaluationContext.identity) === null || kt === void 0 ? void 0 : kt.traits) }, this._loadedState(null, f.DEFAULT_FLAGS));
411
411
  }
412
- V.label = 10;
412
+ z.label = 10;
413
413
  case 10:
414
414
  return [2];
415
415
  }
@@ -434,13 +434,13 @@ var Kt = { exports: {} };
434
434
  case 10:
435
435
  return N.sent(), [3, 12];
436
436
  case 11:
437
- if (O) this._onChange(null, { isFromServer: !1, flagsChanged: _({}, O), traitsChanged: _({}, (t = r.identity) === null || t === void 0 ? void 0 : t.traits) }, this._loadedState(null, f.DEFAULT_FLAGS));
438
- else if (this.flags && (et = null, Object.keys(this.flags).length === 0 && (et = yt), this._onChange(null, { isFromServer: !1, flagsChanged: _({}, this.flags), traitsChanged: _({}, (i = r.identity) === null || i === void 0 ? void 0 : i.traits) }, this._loadedState(et, f.DEFAULT_FLAGS)), et)) throw new Error(et);
437
+ if (O) this._onChange(null, { isFromServer: !1, flagsChanged: b({}, O), traitsChanged: b({}, (t = r.identity) === null || t === void 0 ? void 0 : t.traits) }, this._loadedState(null, f.DEFAULT_FLAGS));
438
+ else if (this.flags && (et = null, Object.keys(this.flags).length === 0 && (et = yt), this._onChange(null, { isFromServer: !1, flagsChanged: b({}, this.flags), traitsChanged: b({}, (i = r.identity) === null || i === void 0 ? void 0 : i.traits) }, this._loadedState(et, f.DEFAULT_FLAGS)), et)) throw new Error(et);
439
439
  N.label = 12;
440
440
  case 12:
441
441
  return [3, 14];
442
442
  case 13:
443
- throw q = N.sent(), this.log("Error during initialisation ", q), ne = q instanceof Error ? q : new Error("".concat(q)), (n = this.onError) === null || n === void 0 || n.call(this, ne), q;
443
+ throw X = N.sent(), this.log("Error during initialisation ", X), ne = X instanceof Error ? X : new Error("".concat(X)), (n = this.onError) === null || n === void 0 || n.call(this, ne), X;
444
444
  case 14:
445
445
  return [2];
446
446
  }
@@ -520,7 +520,7 @@ var Kt = { exports: {} };
520
520
  return a && i >= a.length && (a = void 0), { value: a && a[i++], done: !a };
521
521
  } };
522
522
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
523
- }, Xt = function(a, e) {
523
+ }, qt = function(a, e) {
524
524
  var t = typeof Symbol == "function" && a[Symbol.iterator];
525
525
  if (!t) return a;
526
526
  var i, n, r = t.call(a), o = [];
@@ -545,7 +545,7 @@ var Kt = { exports: {} };
545
545
  Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
546
546
  }
547
547
  return ue(e, a), e;
548
- }(Error), qt = function() {
548
+ }(Error), Xt = function() {
549
549
  function a(e, t) {
550
550
  var i = this;
551
551
  if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration = t != null ? Object.assign({}, t) : void 0, this.withCredentials = !1, this._eventSource = null, this._lastEventId = null, this._timer = null, this._listeners = { open: [], error: [], message: [] }, this.url = e.toString(), this.readyState = this.CONNECTING, this.max_retry_time = 3e3, this.eventSourceClass = globalThis.FlagsmithEventSource, this._configuration != null && (this._configuration.lastEventId && (this._lastEventId = this._configuration.lastEventId, delete this._configuration.lastEventId), this._configuration.max_retry_time && (this.max_retry_time = this._configuration.max_retry_time, delete this._configuration.max_retry_time), this._configuration.eventSourceClass && (this.eventSourceClass = this._configuration.eventSourceClass, delete this._configuration.eventSourceClass)), this.eventSourceClass == null || typeof this.eventSourceClass != "function") throw new ce();
@@ -594,7 +594,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
594
594
  e && e.lastEventId && (this._lastEventId = e.lastEventId);
595
595
  var n = this._listeners[e.type];
596
596
  if (n != null) try {
597
- for (var r = $t(gt([], Xt(n), !1)), o = r.next(); !o.done; o = r.next())
597
+ for (var r = $t(gt([], qt(n), !1)), o = r.next(); !o.done; o = r.next())
598
598
  o.value.call(this, e);
599
599
  } catch (c) {
600
600
  t = { error: c };
@@ -614,7 +614,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
614
614
  }, a.prototype.addEventListener = function(e, t, i) {
615
615
  this._listeners[e] == null && (this._listeners[e] = [], this._eventSource != null && this._eventSource.addEventListener(e, this._onevent_wrapped));
616
616
  var n = this._listeners[e];
617
- n.includes(t) || (this._listeners[e] = gt(gt([], Xt(n), !1), [t], !1));
617
+ n.includes(t) || (this._listeners[e] = gt(gt([], qt(n), !1), [t], !1));
618
618
  }, a.prototype.removeEventListener = function(e, t, i) {
619
619
  var n = this._listeners[e];
620
620
  this._listeners[e] = n.filter(function(r) {
@@ -623,7 +623,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
623
623
  }, a;
624
624
  }();
625
625
  globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
626
- var Yt = function(a, e) {
626
+ var Zt = function(a, e) {
627
627
  return e = e || {}, new Promise(function(t, i) {
628
628
  var n = new XMLHttpRequest(), r = [], o = [], c = {}, h = function() {
629
629
  return { ok: (n.status / 100 | 0) == 2, statusText: n.statusText, status: n.status, url: n.responseURL, text: function() {
@@ -649,10 +649,10 @@ Consider loading an EventSource polyfill and making it available globally as Eve
649
649
  }, n.onerror = i, n.withCredentials = e.credentials == "include", e.headers) n.setRequestHeader(p, e.headers[p]);
650
650
  n.send(e.body || null);
651
651
  });
652
- }, Zt = Mt({ AsyncStorage: v, fetch: Yt, eventSource: qt });
653
- typeof window < "u" && (window.flagsmith = Zt), d.createFlagsmithInstance = function() {
654
- return Mt({ AsyncStorage: v, fetch: Yt, eventSource: qt });
655
- }, d.default = Zt, Object.defineProperty(d, "__esModule", { value: !0 });
652
+ }, Yt = Mt({ AsyncStorage: v, fetch: Zt, eventSource: Xt });
653
+ typeof window < "u" && (window.flagsmith = Yt), d.createFlagsmithInstance = function() {
654
+ return Mt({ AsyncStorage: v, fetch: Zt, eventSource: Xt });
655
+ }, d.default = Yt, Object.defineProperty(d, "__esModule", { value: !0 });
656
656
  });
657
657
  })(Kt, Kt.exports);
658
658
  var ge = Kt.exports, fe = {
@@ -746,7 +746,7 @@ var ge = Kt.exports, fe = {
746
746
  };
747
747
  }
748
748
  async getUserFlagValue(u, d, v = null, s) {
749
- var z;
749
+ var H;
750
750
  const T = this.userContext;
751
751
  try {
752
752
  return await this.setUser(u), this.getFlagValue(d, s) ?? v;
@@ -754,7 +754,7 @@ var ge = Kt.exports, fe = {
754
754
  return console.error(`Error getting user flag value for ${d}:`, D), v;
755
755
  } finally {
756
756
  try {
757
- await ((z = this.flagsmithClient) == null ? void 0 : z.logout()), this.userContext = null, T && await this.setUser(T.identifier);
757
+ await ((H = this.flagsmithClient) == null ? void 0 : H.logout()), this.userContext = null, T && await this.setUser(T.identifier);
758
758
  } catch (D) {
759
759
  console.error("Error during cleanup:", D);
760
760
  }
@@ -763,7 +763,7 @@ var ge = Kt.exports, fe = {
763
763
  reset() {
764
764
  this.flagsmithClient = null, this.userContext = null;
765
765
  }
766
- }, lt(K, "instance"), K), ye = pe.getInstance(), nt = ht(!1), ct = ht([]), Z = ht(null);
766
+ }, lt(K, "instance"), K), ye = pe.getInstance(), nt = ht(!1), ct = ht([]), Y = ht(null);
767
767
  function me(g = ye) {
768
768
  const u = () => nt.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), d = async (f, C = []) => {
769
769
  if (nt.value) {
@@ -771,59 +771,59 @@ function me(g = ye) {
771
771
  return;
772
772
  }
773
773
  try {
774
- await g.init(f, C), ct.value = await g.getFlags(), nt.value = !0, Z.value = null;
775
- } catch (b) {
776
- console.error("Failed to initialize feature flags:", b), Z.value = b;
774
+ await g.init(f, C), ct.value = await g.getFlags(), nt.value = !0, Y.value = null;
775
+ } catch (_) {
776
+ console.error("Failed to initialize feature flags:", _), Y.value = _;
777
777
  }
778
778
  }, v = async (f) => {
779
779
  if (u())
780
780
  try {
781
- await g.setUser(f), ct.value = await g.getFlags(), Z.value = null;
781
+ await g.setUser(f), ct.value = await g.getFlags(), Y.value = null;
782
782
  } catch (C) {
783
- console.error("Failed to set user:", C), Z.value = C;
783
+ console.error("Failed to set user:", C), Y.value = C;
784
784
  }
785
- }, s = async (f) => v(`${re}-${f}`), T = (f, C, b = null) => {
786
- if (!u()) return b;
785
+ }, s = async (f) => v(`${re}-${f}`), T = (f, C, _ = null) => {
786
+ if (!u()) return _;
787
787
  try {
788
- return g.getFlagValue(f, C) ?? b;
788
+ return g.getFlagValue(f, C) ?? _;
789
789
  } catch (G) {
790
- return console.error(`Error getting flag value for ${f}:`, G), b;
790
+ return console.error(`Error getting flag value for ${f}:`, G), _;
791
791
  }
792
- }, z = (f, C) => {
792
+ }, H = (f, C) => {
793
793
  if (!u()) return C ?? null;
794
794
  try {
795
795
  return g.getFlag(f) ?? C ?? null;
796
- } catch (b) {
797
- return console.error(`Error getting flag for ${f}:`, b), C ?? null;
796
+ } catch (_) {
797
+ return console.error(`Error getting flag for ${f}:`, _), C ?? null;
798
798
  }
799
- }, D = async (f, C, b = null, G) => {
800
- if (!u()) return b;
799
+ }, D = async (f, C, _ = null, G) => {
800
+ if (!u()) return _;
801
801
  try {
802
- return await g.getUserFlagValue(f, C, b, G);
802
+ return await g.getUserFlagValue(f, C, _, G);
803
803
  } catch (rt) {
804
- return console.error(`Error getting user flag value for ${C}:`, rt), b;
804
+ return console.error(`Error getting user flag value for ${C}:`, rt), _;
805
805
  }
806
- }, at = async (f, C, b = null, G) => D(`${re}-${f}`, C, b, G), _ = () => {
806
+ }, at = async (f, C, _ = null, G) => D(`${re}-${f}`, C, _, G), b = () => {
807
807
  try {
808
808
  g.reset();
809
809
  } catch (f) {
810
810
  console.error("Error resetting feature flags:", f);
811
811
  } finally {
812
- ct.value = [], nt.value = !1, Z.value = null;
812
+ ct.value = [], nt.value = !1, Y.value = null;
813
813
  }
814
814
  };
815
815
  return {
816
816
  flags: Ut(ct),
817
817
  isInitialized: Ut(nt),
818
- error: Ut(Z),
818
+ error: Ut(Y),
819
819
  init: d,
820
820
  setUser: v,
821
821
  setBusiness: s,
822
822
  getFlagValue: T,
823
- getFlag: z,
823
+ getFlag: H,
824
824
  getUserFlagValue: D,
825
825
  getBusinessFlagValue: at,
826
- reset: _
826
+ reset: b
827
827
  };
828
828
  }
829
829
  var Se = () => me();
@@ -832,19 +832,19 @@ function Gt(g, u) {
832
832
  const d = (g.value ?? "").split(",").map((v) => v.trim().toUpperCase()).filter(Boolean);
833
833
  return !d.length || d.includes("*") ? !0 : !!u && d.includes(u.toUpperCase());
834
834
  }
835
- var Ce = { 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" };
835
+ var Ce = { 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" };
836
836
  const it = {
837
837
  broadcastAppInbox: "connect_broadcast_app_inbox_countries",
838
838
  broadcastPush: "connect_broadcast_push_countries",
839
839
  broadcastWhatsapp: "connect_broadcast_whatsapp_countries",
840
840
  whatsappBot: "connect_whatsapp_bot",
841
841
  autoRevertReward: "connect_auto_revert_reward_countries"
842
- }, be = {
842
+ }, _e = {
843
843
  APP_INBOX: it.broadcastAppInbox,
844
844
  PUSH: it.broadcastPush,
845
845
  WHATSAPP: it.broadcastWhatsapp
846
846
  }, {
847
- init: _e,
847
+ init: be,
848
848
  isInitialized: Fe,
849
849
  setBusiness: Ee,
850
850
  flags: Jt,
@@ -853,7 +853,7 @@ const it = {
853
853
  async function Ae(g) {
854
854
  B.value = "loading";
855
855
  try {
856
- if (Fe.value || await _e({ apiKey: Ce.featureFlagApiKey }), await Ee(g), oe.value) throw oe.value;
856
+ if (Fe.value || await be({ apiKey: Ce.featureFlagApiKey }), await Ee(g), oe.value) throw oe.value;
857
857
  B.value = "ready";
858
858
  } catch (u) {
859
859
  B.value = "error", console.warn("CONNECT: loadBusinessFlags failed", u);
@@ -871,7 +871,7 @@ function Le() {
871
871
  function je() {
872
872
  const g = Dt();
873
873
  return (u) => {
874
- const d = be[u];
874
+ const d = _e[u];
875
875
  return d ? B.value === "loading" ? "loading" : B.value === "error" ? "off" : Gt(
876
876
  Jt.value.find((v) => v.feature.name === d),
877
877
  g.currentCountry.value
@@ -0,0 +1,5 @@
1
+ const c = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='%231877F2'%3e%3cpath%20d='M24%2012.073c0-6.627-5.373-12-12-12s-12%205.373-12%2012c0%205.99%204.388%2010.954%2010.125%2011.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007%201.792-4.669%204.533-4.669%201.312%200%202.686.235%202.686.235v2.953H15.83c-1.491%200-1.956.925-1.956%201.874v2.25h3.328l-.532%203.47h-2.796v8.385C19.612%2023.027%2024%2018.062%2024%2012.073z'/%3e%3c/svg%3e", l = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%3e%3cpath%20fill='%23EA4335'%20d='M24%209.5c3.14%200%205.95%201.08%208.17%202.86l6.08-6.08C34.46%203.1%2029.5%201%2024%201%2014.82%201%206.96%206.48%203.22%2014.44l7.08%205.5C12.08%2013.66%2017.58%209.5%2024%209.5z'/%3e%3cpath%20fill='%234285F4'%20d='M46.52%2024.5c0-1.64-.15-3.22-.42-4.74H24v8.98h12.7c-.55%202.96-2.2%205.46-4.68%207.14l7.18%205.58C43.18%2037.36%2046.52%2031.38%2046.52%2024.5z'/%3e%3cpath%20fill='%23FBBC05'%20d='M10.3%2028.56A14.56%2014.56%200%200%201%209.5%2024c0-1.58.27-3.1.76-4.52l-7.08-5.5A23.94%2023.94%200%200%200%200%2024c0%203.86.92%207.5%202.56%2010.72l7.74-6.16z'/%3e%3cpath%20fill='%2334A853'%20d='M24%2047c5.5%200%2010.12-1.82%2013.48-4.94l-7.18-5.58c-1.82%201.22-4.14%201.94-6.3%201.94-6.42%200-11.92-4.16-13.7-9.86l-7.74%206.16C6.96%2041.52%2014.82%2047%2024%2047z'/%3e%3cpath%20fill='none'%20d='M0%200h48v48H0z'/%3e%3c/svg%3e";
2
+ export {
3
+ c as f,
4
+ l as g
5
+ };
@@ -1,4 +1,4 @@
1
- import { j as l } from "./index-DAtVp1NI.js";
1
+ import { h as l } from "./index-BxUMqeaY.js";
2
2
  function u(t, e) {
3
3
  switch (t) {
4
4
  case "COIN":
@@ -1,3 +1,3 @@
1
1
  import "vue-router";
2
- import { R as o } from "./app-BXqas0p1.js";
2
+ import { R as o } from "./app-KbxCI4gY.js";
3
3
  o["$connect-DASHBOARD"];