@feedmepos/mf-connect 0.1.118-prod → 0.1.119-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 (149) hide show
  1. package/README.md +12 -8
  2. package/dist/{App-BHcTqLff.js → App-z-u6skb5.js} +349 -337
  3. package/dist/AuditLogs-J0UJ3HJW.js +2016 -0
  4. package/dist/{Bin-DWhXJmHo.js → Bin-Dh9RAgYi.js} +8 -8
  5. package/dist/{Broadcast-Ct1DL8Pd.js → Broadcast-Dg6azPS8.js} +22 -21
  6. package/dist/{CampaignAnalytic-BSEKCM-4.js → CampaignAnalytic-CVB4dstO.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxRg2Wu8.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DYgBeT23.js} +8 -9
  8. package/dist/{Card-B7DwrAPH.js → Card-CY736Ul0.js} +22 -22
  9. package/dist/{Collections-BJw4JJq_.js → Collections-CdTKWkZZ.js} +197 -185
  10. package/dist/{Credit-BteIGXkp.js → Credit-CUhEKlMI.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CSFwIzOS.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CBwgeTXh.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BC4jTtVY.js +4439 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js → EffectSheet.vue_vue_type_style_index_0_lang-D5-EKqG9.js} +30 -30
  14. package/dist/{Experience-C_VQVfJX.js → Experience-CMp09U-6.js} +32 -31
  15. package/dist/{FileSaver.min-CMiQUZQE.js → FileSaver.min-Bq5McdmK.js} +1 -1
  16. package/dist/{Game-BiHMrMBF.js → Game-Dv5NvG-q.js} +19 -18
  17. package/dist/{GiftCardSetup-DtJIm6oI.js → GiftCardSetup-SO2Tk5In.js} +31 -31
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CgG5vHCp.js} +7 -7
  19. package/dist/{Goals-B7VjLMDT.js → Goals-BEwQP4cY.js} +4 -4
  20. package/dist/Grab-npbL7p7S.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js → ImageInput.vue_vue_type_script_setup_true_lang-BDGEqsWE.js} +1 -1
  22. package/dist/{Index-D_DIHKZG.js → Index-8F2LOWng.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DSwB0Ubn.js → LocationPicker.vue_vue_type_script_setup_true_lang-BwAjki7Y.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-dk8_eVwd.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DK4C0Y9j.js} +1 -1
  25. package/dist/{LoyaltyDashboard-DOgHeJdK.js → LoyaltyDashboard-rWm0b8cm.js} +15 -15
  26. package/dist/{MainLayout-CfYgoXLS.js → MainLayout-ezbgp2IQ.js} +1 -1
  27. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Bz2LGHUd.js → MainLayout.vue_vue_type_script_setup_true_lang-1QY5-U5y.js} +3 -3
  28. package/dist/{Marketing-B6TCrwaR.js → Marketing-DcWF4xVc.js} +4 -4
  29. package/dist/{MarketingMaterialEdit-Bu3a9NGj.js → MarketingMaterialEdit-C1bXj_hU.js} +214 -211
  30. package/dist/{Member-X51KrYXV.js → Member-CgDZqGsV.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CYU21JaO.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dh1_j06F.js} +39 -47
  32. package/dist/{MemberImportHistory-CHd9fx7E.js → MemberImportHistory-DT3QJ5se.js} +7 -7
  33. package/dist/{MemberList-D4L3bSlw.js → MemberList-Bm05jnbk.js} +103 -105
  34. package/dist/{MemberTransactions-CEgjfhnX.js → MemberTransactions-D90tTpdC.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js → MessageInput.vue_vue_type_script_setup_true_lang-jvgjOXXA.js} +12 -12
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-YZQkKG66.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CxL-Nh6i.js} +1 -1
  37. package/dist/{Mission-BEVtvY0-.js → Mission-D_l2eJI3.js} +22 -21
  38. package/dist/{Overview-DVoXXZ16.js → Overview-1AYfTeMD.js} +20 -20
  39. package/dist/{Overview-4QRkldza.js → Overview-BOZBnorP.js} +145 -144
  40. package/dist/{Point-BJmebaL9.js → Point-Cqy4XzeG.js} +22 -21
  41. package/dist/{Promotion-DWZZBofu.js → Promotion-9RDNbCgB.js} +137 -131
  42. package/dist/{Queue-DLdsyhCT.js → Queue-D2Eie_np.js} +45 -45
  43. package/dist/{Record-QOD3XELf.js → Record-e4B--FD8.js} +9 -9
  44. package/dist/{Review-CKmhyuqj.js → Review-DcUpSvc-.js} +2 -2
  45. package/dist/ReviewFacebookCallback-BhHdYb4X.js +225 -0
  46. package/dist/{ReviewGoogleCallback-CDriVQPZ.js → ReviewGoogleCallback-JPkamgo2.js} +5 -5
  47. package/dist/Reward-BQJw-R8V.js +444 -0
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-ZgYX2QwC.js → RewardGroup.vue_vue_type_script_setup_true_lang-D_DSQ8q2.js} +13 -13
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DfWjXTx3.js +1923 -0
  50. package/dist/{Segment-URdB0lnl.js → Segment-Cjdqsqqg.js} +303 -306
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-g-CJUZBF.js} +14 -14
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-lbH0b170.js} +4 -4
  53. package/dist/{Setting-BDIHH2Wk.js → Setting-B3HK4mtx.js} +159 -148
  54. package/dist/{SettingAdvertisements-CkJYZnIN.js → SettingAdvertisements-BQFJpdIm.js} +12 -12
  55. package/dist/Settings-DKWkiRuA.js +286 -0
  56. package/dist/{Store-CV0kYncl.js → Store-mp1LyXwr.js} +28 -28
  57. package/dist/{StoreRewards-30kSkAZ_.js → StoreRewards-DiSB6d7_.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BAYKqf-Y.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-be7ksTJw.js +7007 -0
  60. package/dist/{Tier-DiQSC3iv.js → Tier-CxaXh96q.js} +2575 -687
  61. package/dist/{Title-DixxpjAg.js → Title-Byz0TGpi.js} +95 -94
  62. package/dist/{Transaction-DQK4LUGD.js → Transaction-CNXulI3o.js} +2 -2
  63. package/dist/Upselling-Dto64bmE.js +1013 -0
  64. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CL-GKkuD.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C0bfVZf8.js} +26 -26
  65. package/dist/{Voucher-CSVlk_Hr.js → Voucher-CVw3E8Y4.js} +19 -19
  66. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CiSoy0Ky.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C0d3ktXA.js} +12 -12
  67. package/dist/{WhatsappAccount-CQYbv2Ew.js → WhatsappAccount-5vLzjaIV.js} +6 -6
  68. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CwGBRX-Q.js} +1 -1
  69. package/dist/{WhatsappBot-DdO9Bfvh.js → WhatsappBot-BWJbD7Gk.js} +6 -6
  70. package/dist/{WhatsappBotLogs-CjjWJGND.js → WhatsappBotLogs-C8gpmZyC.js} +6 -6
  71. package/dist/{WhatsappBotSettings-DYGx-kRr.js → WhatsappBotSettings-BvPnKHz-.js} +4 -4
  72. package/dist/WhatsappLayout-DJXhXeXf.js +21 -0
  73. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BxUYjrWQ.js} +3 -3
  74. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js → ZodTextField.vue_vue_type_script_setup_true_lang-CkjzVKif.js} +2 -2
  75. package/dist/{app-CqQeNnGq.js → app-BF1vds2J.js} +11496 -10741
  76. package/dist/app.js +4 -3
  77. package/dist/{base.export-Dls5LQeu.js → base.export-B7FU8J4P.js} +2 -2
  78. package/dist/{business-gvLSQklz.js → business-DkUMhys1.js} +1 -1
  79. package/dist/{campaign-Cd6GmA4U.js → campaign-0AgQP43B.js} +34 -28
  80. package/dist/{campaign-BqazvOUj.js → campaign-C9cVkGMF.js} +121 -94
  81. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
  82. package/dist/campaign.fn-N6rJeDUx.js +776 -0
  83. package/dist/{collection.fn-CERMsFPh.js → collection.fn-B_QnW0e3.js} +2 -2
  84. package/dist/{currency-IkiKiNg1.js → currency-XQmondpC.js} +1 -1
  85. package/dist/duplicateCampaign-CvQRWP-Z.js +51 -0
  86. package/dist/{effect-j_T62HBN.js → effect-Mwn1x6qN.js} +1 -1
  87. package/dist/{email-addresses-CN1kPlEj.js → email-addresses-DQQAi6-l.js} +2 -2
  88. package/dist/{feature-flag-DDfyOLsv.js → feature-flag-B1VMMZMd.js} +144 -144
  89. package/dist/google-BQK68wbe.js +5 -0
  90. package/dist/{helper-DVUe13eh.js → helper-D1R8vyjc.js} +1 -1
  91. package/dist/{index-fNYUguDQ.js → index-BU6CU5MP.js} +389 -232
  92. package/dist/{index-DALsfLV7.js → index-Bm43wR8L.js} +2699 -2613
  93. package/dist/{index-jS16KX9p.js → index-Bym-ZIcv.js} +1 -1
  94. package/dist/{index-BvoOJdfc.js → index-C9Nbb7wc.js} +2 -2
  95. package/dist/{index-UJHdDEG1.js → index-CLlGMbnP.js} +1 -1
  96. package/dist/{index-BvkqHehI.js → index-CPB7j8Wn.js} +10 -10
  97. package/dist/{index-COuLtOaw.js → index-CRAuAyO3.js} +1 -1
  98. package/dist/{index-k7FFxt_M.js → index-Cg8Z5eYT.js} +2 -2
  99. package/dist/{index-CPyK4a5J.js → index-CzE9ZPDV.js} +4 -4
  100. package/dist/{index-Cjy0SXCn.js → index-D5BwAYuA.js} +197 -197
  101. package/dist/{index-ep_Kxxid.js → index-DMfCzjiA.js} +2 -2
  102. package/dist/{index-DMiaWY0s.js → index-DQnCdGWe.js} +682 -581
  103. package/dist/{index-D_1pnadB.js → index-DaUhJ6xV.js} +29 -15
  104. package/dist/{index-9RBtEPPj.js → index-P8DDRVa3.js} +1 -1
  105. package/dist/{index-C_SaKemI.js → index-Rs75lw-x.js} +1 -1
  106. package/dist/{index-C-IajuP1.js → index-ZYrey0SM.js} +10 -10
  107. package/dist/{index-CWGbeg5X.js → index-eR9mqPPV.js} +19 -6
  108. package/dist/{index-BmIfGArh.js → index-mOGrVzUV.js} +3 -3
  109. package/dist/{index-lzQ6ehOk.js → index-ug7pxPAX.js} +608 -251
  110. package/dist/{index-DzbVgUEP.js → index-ytSMcSMt.js} +1 -1
  111. package/dist/{index.esm2017-vJKhLfdu.js → index.esm2017-Gkctw9Mb.js} +111 -111
  112. package/dist/{loading-jZV2Dm--.js → loading-kUQqT44G.js} +1 -1
  113. package/dist/{lodash-C2pLek0l.js → lodash-B4AjV7YZ.js} +1 -1
  114. package/dist/{member-import-BKI7soRD.js → member-import-CwDUG5mj.js} +1 -1
  115. package/dist/{membership-smdlFpPr.js → membership-BI6U8-eM.js} +2 -2
  116. package/dist/{money-5XyTnYwW.js → money-Bum-AbB7.js} +1 -1
  117. package/dist/{number-DHU9qJJQ.js → number-uAoNqG-N.js} +1 -1
  118. package/dist/objectid-CPTCMH2h.js +145 -0
  119. package/dist/{onboarding-C_5pyGx-.js → onboarding-wtYzQipv.js} +36 -36
  120. package/dist/{onboardingSetup-Bd1V-Ipy.js → onboardingSetup-DlYM-oqd.js} +2 -2
  121. package/dist/{plugins-D1Ru-da5.js → plugins-BGyTPNfc.js} +3 -3
  122. package/dist/{reward-BqPl68Xk.js → reward-D0xtG-bp.js} +1 -1
  123. package/dist/{rule-WBrRXwL-.js → rule-BAA5-vRj.js} +572 -492
  124. package/dist/style.css +1 -1
  125. package/dist/template-DKgW9ul3.js +188 -0
  126. package/dist/{timezone-O4qrCDcK.js → timezone-Bbw2OeEP.js} +1 -1
  127. package/dist/{transaction.fn-CY_F8Nb8.js → transaction.fn-DZdNjP_E.js} +2 -2
  128. package/dist/{trigger-D-vySeIB.js → trigger-BpotFb7G.js} +9 -9
  129. package/dist/{useMarketingMaterialActions-kA6SLHy_.js → useMarketingMaterialActions-CQ1M0N9c.js} +4 -4
  130. package/dist/{usePagination-AYE_RJH2.js → usePagination-qALFI_Td.js} +1 -1
  131. package/dist/{user-DJcMkYXP.js → user-X_94TRIK.js} +1 -1
  132. package/dist/vue-i18n-CRFpVnMa.js +2365 -0
  133. package/dist/{xlsx--s3hBdDk.js → xlsx-DW48eXDT.js} +224 -224
  134. package/dist/{zod-IpHRbxaJ.js → zod-BAP9II5C.js} +1 -1
  135. package/package.json +8 -3
  136. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js +0 -3496
  137. package/dist/ReviewFacebookCallback-C6DlaJ_j.js +0 -238
  138. package/dist/Reward-DftoZfPN.js +0 -442
  139. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js +0 -1884
  140. package/dist/Settings-9gaegvYJ.js +0 -179
  141. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js +0 -1265
  142. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js +0 -142
  143. package/dist/WhatsappLayout-B6k_79Kl.js +0 -21
  144. package/dist/campaign.fn-C0oMb1fs.js +0 -776
  145. package/dist/google-C3S8u0mT.js +0 -4
  146. package/dist/objectid-jT5g6pGt.js +0 -145
  147. package/dist/rule-builder-DAlSbaWh.js +0 -102
  148. package/dist/template-DDquG4Xc.js +0 -236
  149. package/dist/vue-i18n-kXHiDb_1.js +0 -2365
@@ -1,9 +1,9 @@
1
- var ce = Object.defineProperty;
2
- var he = (m, u, d) => u in m ? ce(m, u, { enumerable: !0, configurable: !0, writable: !0, value: d }) : m[u] = d;
3
- var st = (m, u, d) => he(m, typeof u != "symbol" ? u + "" : u, d);
4
- import { ref as ct, readonly as Rt } from "vue";
5
- import { c as lt } from "./app-CqQeNnGq.js";
6
- import { useCoreStore as de } from "@feedmepos/mf-common";
1
+ var de = Object.defineProperty;
2
+ var ve = (m, u, d) => u in m ? de(m, u, { enumerable: !0, configurable: !0, writable: !0, value: d }) : m[u] = d;
3
+ var st = (m, u, d) => ve(m, typeof u != "symbol" ? u + "" : u, d);
4
+ import { ref as ht, readonly as Rt } from "vue";
5
+ import { c as lt } from "./app-BF1vds2J.js";
6
+ import { useCoreStore as ae } from "@feedmepos/mf-common";
7
7
  var Kt = { exports: {} };
8
8
  (function(m, u) {
9
9
  (function(d, v) {
@@ -39,7 +39,7 @@ var Kt = { exports: {} };
39
39
  return a;
40
40
  }, s.apply(this, arguments);
41
41
  };
42
- function O(a, e, t, i) {
42
+ function T(a, e, t, i) {
43
43
  return new (t || (t = Promise))(function(n, r) {
44
44
  function o(f) {
45
45
  try {
@@ -173,13 +173,13 @@ var Kt = { exports: {} };
173
173
  return [t, G(i) ? i : { value: i }];
174
174
  }));
175
175
  }
176
- function ht(a) {
176
+ function dt(a) {
177
177
  return s(s({}, a), { identity: a.identity ? s(s({}, a.identity), { traits: at(a.identity.traits || {}) }) : void 0 });
178
178
  }
179
179
  (function(a) {
180
180
  a.NONE = "NONE", a.DEFAULT_FLAGS = "DEFAULT_FLAGS", a.CACHE = "CACHE", a.SERVER = "SERVER";
181
181
  })(g || (g = {}));
182
- var dt, w = null, re = "FLAGSMITH_EVENT", rt = re, Dt = "https://edge.api.flagsmith.com/api/v1/", Gt = "flagsmith_value_", Jt = "flagsmith_enabled_", Ht = "flagsmith_trait_", oe = function() {
182
+ var vt, w = null, se = "FLAGSMITH_EVENT", rt = se, Dt = "https://edge.api.flagsmith.com/api/v1/", Gt = "flagsmith_value_", Jt = "flagsmith_enabled_", Bt = "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,23 +188,23 @@ var Kt = { exports: {} };
188
188
  var o = "".concat(t.getContext().identity), c = function(h) {
189
189
  var f, l, p, F;
190
190
  if (h && o === "".concat(t.getContext().identity)) {
191
- var k = h.flags, I = h.traits, N = h.identifier;
191
+ var P = h.flags, O = h.traits, j = h.identifier;
192
192
  t.isLoading = !1;
193
- var A = {}, L = {};
194
- I = I || [], (k = k || []).forEach(function(y) {
195
- A[y.feature.name.toLowerCase().replace(/ /g, "_")] = { id: y.feature.id, enabled: y.enabled, value: y.feature_state_value };
196
- }), I.forEach(function(y) {
197
- L[y.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: y.transient, value: y.trait_value };
193
+ var I = {}, A = {};
194
+ O = O || [], (P = P || []).forEach(function(y) {
195
+ I[y.feature.name.toLowerCase().replace(/ /g, "_")] = { id: y.feature.id, enabled: y.enabled, value: y.feature_state_value };
196
+ }), O.forEach(function(y) {
197
+ A[y.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: y.transient, value: y.trait_value };
198
198
  }), t.oldFlags = s({}, t.flags);
199
- var P = _(t.oldFlags, A), Z = _((f = t.evaluationContext.identity) === null || f === void 0 ? void 0 : f.traits, L);
200
- if ((N || Object.keys(L).length) && (t.evaluationContext.identity = s(s({}, t.evaluationContext.identity), { traits: L }), N && (t.evaluationContext.identity.identifier = N)), t.flags = A, t.updateStorage(), t._onChange(t.oldFlags, { isFromServer: !0, flagsChanged: P, traitsChanged: Z }, t._loadedState(null, g.SERVER)), t.datadogRum) try {
199
+ var k = _(t.oldFlags, I), Q = _((f = t.evaluationContext.identity) === null || f === void 0 ? void 0 : f.traits, A);
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, g.SERVER)), t.datadogRum) try {
201
201
  if (t.datadogRum.trackTraits) {
202
- var Q = {};
202
+ var W = {};
203
203
  Object.keys(((l = t.evaluationContext.identity) === null || l === void 0 ? void 0 : l.traits) || {}).map(function(y) {
204
- Q[Ht + y] = t.getTrait(y);
204
+ W[Bt + y] = t.getTrait(y);
205
205
  });
206
- var M = s(s(s({}, t.datadogRum.client.getUser()), { id: t.datadogRum.client.getUser().id || ((p = t.evaluationContext.identity) === null || p === void 0 ? void 0 : p.identifier) }), Q);
207
- t.log("Setting Datadog user", M), t.datadogRum.client.setUser(M);
206
+ var $ = s(s(s({}, t.datadogRum.client.getUser()), { id: t.datadogRum.client.getUser().id || ((p = t.evaluationContext.identity) === null || p === void 0 ? void 0 : p.identifier) }), W);
207
+ t.log("Setting Datadog user", $), t.datadogRum.client.setUser($);
208
208
  }
209
209
  } catch (y) {
210
210
  console.error(y);
@@ -214,7 +214,7 @@ var Kt = { exports: {} };
214
214
  Object.keys(t.flags).map(function(y) {
215
215
  b(E, Gt + y, t.getValue(y, { skipAnalytics: !0 })), b(E, Jt + y, t.hasFeature(y, { skipAnalytics: !0 }));
216
216
  }), Object.keys(((F = t.evaluationContext.identity) === null || F === void 0 ? void 0 : F.traits) || {}).map(function(y) {
217
- b(E, Ht + y, t.getTrait(y));
217
+ b(E, Bt + y, t.getTrait(y));
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 (y) {
220
220
  console.error(y);
@@ -263,7 +263,7 @@ var Kt = { exports: {} };
263
263
  return [r, o == null ? void 0 : o.value];
264
264
  }));
265
265
  }, this.setContext = function(i) {
266
- var n = ht(i);
266
+ var n = dt(i);
267
267
  return t.evaluationContext = s(s({}, n), { environment: n.environment || t.evaluationContext.environment }), t.initialised ? t.getFlags() : Promise.resolve();
268
268
  }, this.getContext = function() {
269
269
  return t.evaluationContext;
@@ -292,26 +292,26 @@ var Kt = { exports: {} };
292
292
  t.evaluationContext.environment && (f.headers["X-Environment-Key"] = t.evaluationContext.environment.apiKey), n && n !== "GET" && (f.headers["Content-Type"] = "application/json; charset=utf-8"), h && Object.assign(f.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, f).then(function(p) {
295
- var F, k, I = "".concat((F = t.evaluationContext.identity) === null || F === void 0 ? void 0 : F.identifier);
296
- if (l === I) {
297
- var N = (k = p.headers) === null || k === void 0 ? void 0 : k.get("x-flagsmith-document-updated-at");
298
- if (N) try {
299
- var A = parseFloat(N);
300
- if (isNaN(A)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
301
- t.timestamp = A;
302
- } catch (L) {
303
- t.log(L, "Failed to parse x-flagsmith-document-updated-at", N);
295
+ var F, P, O = "".concat((F = t.evaluationContext.identity) === null || F === void 0 ? void 0 : F.identifier);
296
+ if (l === O) {
297
+ var j = (P = p.headers) === null || P === void 0 ? void 0 : P.get("x-flagsmith-document-updated-at");
298
+ if (j) try {
299
+ var I = parseFloat(j);
300
+ if (isNaN(I)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
301
+ t.timestamp = I;
302
+ } catch (A) {
303
+ t.log(A, "Failed to parse x-flagsmith-document-updated-at", j);
304
304
  }
305
- return t.log("Fetch response: " + p.status + " " + (n || "GET") + 0 + i), p.text().then(function(L) {
306
- var P = L;
305
+ return t.log("Fetch response: " + p.status + " " + (n || "GET") + 0 + i), p.text().then(function(A) {
306
+ var k = A;
307
307
  try {
308
- P = JSON.parse(L);
308
+ k = JSON.parse(A);
309
309
  } catch {
310
310
  }
311
- return !P && p.status && (P = "API Response: ".concat(p.status)), p.status && p.status >= 200 && p.status < 300 ? P : Promise.reject(new Error(P));
311
+ return !k && p.status && (k = "API Response: ".concat(p.status)), p.status && p.status >= 200 && p.status < 300 ? k : Promise.reject(new Error(k));
312
312
  });
313
313
  }
314
- t.log("Received response with identity mismatch, ignoring response. Requested: ".concat(l, ", Current: ").concat(I));
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
317
  if (t.datadogRum && (t.datadogRum.client.addFeatureFlagEvaluation ? n === "VALUE" ? t.datadogRum.client.addFeatureFlagEvaluation(Gt + i, t.getValue(i, {}, !0)) : t.datadogRum.client.addFeatureFlagEvaluation(Jt + i, t.hasFeature(i, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), t.enableAnalytics) {
@@ -322,75 +322,75 @@ var Kt = { exports: {} };
322
322
  }, this._onChange = function(i, n, r) {
323
323
  var o, c;
324
324
  t.setLoadingState(r), (o = t.onChange) === null || o === void 0 || o.call(t, i, n, t.loadingState), (c = t._trigger) === null || c === void 0 || c.call(t);
325
- }, C = e.fetch ? e.fetch : typeof fetch < "u" ? fetch : lt === null || lt === void 0 ? void 0 : lt.fetch, this.canUseStorage = typeof window < "u" || !!e.browserlessStorage, this.log("Constructing flagsmith instance " + e), e.eventSource && (dt = e.eventSource), e.AsyncStorage && (w = e.AsyncStorage);
325
+ }, C = e.fetch ? e.fetch : typeof fetch < "u" ? fetch : lt === null || lt === void 0 ? void 0 : lt.fetch, this.canUseStorage = typeof window < "u" || !!e.browserlessStorage, this.log("Constructing flagsmith instance " + e), e.eventSource && (vt = e.eventSource), e.AsyncStorage && (w = e.AsyncStorage);
326
326
  }
327
327
  return a.prototype.init = function(e) {
328
328
  var t, i, n;
329
- return O(this, void 0, void 0, function() {
330
- var r, o, c, h, f, l, p, F, k, I, N, A, L, P, Z, Q, M, E, y, gt, W, qt, $, ft, Yt, Zt, pt, Qt, yt, tt, X, Wt, x = this;
331
- return z(this, function(T) {
332
- switch (T.label) {
329
+ return T(this, void 0, void 0, function() {
330
+ var r, o, c, h, f, l, p, F, P, O, j, I, A, k, Q, W, $, E, y, ft, tt, Xt, q, pt, Zt, Yt, yt, Qt, mt, et, X, Wt, x = this;
331
+ return z(this, function(N) {
332
+ switch (N.label) {
333
333
  case 0:
334
- r = ht(e.evaluationContext || this.evaluationContext), T.label = 1;
334
+ r = dt(e.evaluationContext || this.evaluationContext), N.label = 1;
335
335
  case 1:
336
- if (T.trys.push([1, 13, , 14]), o = e.environmentID, c = e.api, h = c === void 0 ? Dt : c, f = e.headers, l = e.onChange, p = e.cacheFlags, F = e.datadogRum, k = e.onError, I = e.defaultFlags, N = e.fetch, A = e.preventFetch, L = e.enableLogs, P = e.enableDynatrace, Z = e.enableAnalytics, Q = e.realtime, M = e.eventSourceUrl, E = M === void 0 ? "https://realtime.flagsmith.com/" : M, y = e.AsyncStorage, gt = e.identity, W = e.traits, qt = e.state, $ = e.cacheOptions, ft = e.angularHttpClient, Yt = e._trigger, Zt = 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
- if (r.identity = gt || W ? { identifier: gt, traits: W ? Object.fromEntries(Object.entries(W).map(function(j) {
338
- return [j[0], { value: j[1] }];
339
- })) : {} } : r.identity, this.evaluationContext = r, this.api = h, this.headers = f, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = l, pt = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Yt || this._trigger, this._triggerLoadingState = Zt || this._triggerLoadingState, this.onError = function(j) {
340
- x.setLoadingState(s(s({}, x.loadingState), { isFetching: !1, isLoading: !1, error: j })), k == null || k(j);
341
- }, this.enableLogs = L || !1, this.cacheOptions = $ ? { skipAPI: !!$.skipAPI, ttl: $.ttl || 0, storageKey: $.storageKey, loadStale: !!$.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."), N && (C = N), this.enableAnalytics = Z || !1, this.flags = Object.assign({}, I) || {}, this.datadogRum = F || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = w !== void 0 && !!p, rt = "FLAGSMITH_EVENT_" + r.environment.apiKey, y && (w = y), Q && typeof window < "u" && this.setupRealtime(E, r.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = s(s({}, this.loadingState), { isLoading: !1, source: g.DEFAULT_FLAGS })), this.setState(qt), this.log("Initialising with properties", e, this), P && (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), ft && (C = /* @__PURE__ */ function(j) {
342
- return function(R, U) {
343
- var H = U.headers, S = U.method, q = U.body;
344
- return new Promise(function(B) {
336
+ if (N.trys.push([1, 13, , 14]), o = e.environmentID, c = e.api, h = c === void 0 ? Dt : c, f = e.headers, l = e.onChange, p = 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/" : $, y = e.AsyncStorage, ft = e.identity, tt = e.traits, Xt = e.state, q = e.cacheOptions, pt = e.angularHttpClient, Zt = e._trigger, Yt = 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
+ if (r.identity = ft || tt ? { identifier: ft, traits: tt ? Object.fromEntries(Object.entries(tt).map(function(L) {
338
+ return [L[0], { value: L[1] }];
339
+ })) : {} } : r.identity, this.evaluationContext = r, this.api = h, this.headers = f, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = l, yt = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Zt || this._trigger, this._triggerLoadingState = Yt || this._triggerLoadingState, this.onError = function(L) {
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 && !!p, rt = "FLAGSMITH_EVENT_" + r.environment.apiKey, y && (w = y), W && typeof window < "u" && this.setupRealtime(E, r.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = s(s({}, this.loadingState), { isLoading: !1, source: g.DEFAULT_FLAGS })), this.setState(Xt), 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(U, R) {
343
+ var B = R.headers, S = R.method, Z = R.body;
344
+ return new Promise(function(H) {
345
345
  switch (S) {
346
346
  case "GET":
347
- return j.get(R, { headers: H }).subscribe(function(J) {
348
- B({ ok: !0, text: function() {
347
+ return L.get(U, { headers: B }).subscribe(function(J) {
348
+ H({ ok: !0, text: function() {
349
349
  return Promise.resolve(J);
350
350
  } });
351
351
  });
352
352
  case "POST":
353
353
  case "PUT":
354
- return j.post(R, q, { headers: H }).subscribe(function(J) {
355
- B({ ok: !0, text: function() {
354
+ return L.post(U, Z, { headers: B }).subscribe(function(J) {
355
+ H({ ok: !0, text: function() {
356
356
  return Promise.resolve(J);
357
357
  } });
358
358
  });
359
359
  }
360
360
  });
361
361
  };
362
- }(ft)), w && this.canUseStorage && w.getItem(rt).then(function(j) {
362
+ }(pt)), w && this.canUseStorage && w.getItem(rt).then(function(L) {
363
363
  try {
364
- x.evaluationEvent = JSON.parse(j) || {};
364
+ x.evaluationEvent = JSON.parse(L) || {};
365
365
  } catch {
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(rt, function(j, R) {
370
- if (R && x.evaluationContext.environment) {
371
- var U = JSON.parse(R);
372
- if (U[x.evaluationContext.environment.apiKey]) {
373
- var H = x.getState();
374
- x.log("Retrieved events from cache", R), x.setState(s(s({}, H), { evaluationEvent: U[x.evaluationContext.environment.apiKey] }));
369
+ }), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), w && this.canUseStorage && w.getItem(rt, function(L, U) {
370
+ if (U && x.evaluationContext.environment) {
371
+ var R = JSON.parse(U);
372
+ if (R[x.evaluationContext.environment.apiKey]) {
373
+ var B = x.getState();
374
+ x.log("Retrieved events from cache", U), x.setState(s(s({}, B), { evaluationEvent: R[x.evaluationContext.environment.apiKey] }));
375
375
  }
376
376
  }
377
377
  })), !p) return [3, 9];
378
378
  if (!w || !this.canUseStorage) return [3, 8];
379
- Qt = function(j, R) {
380
- return O(x, void 0, void 0, function() {
381
- var U, H, S, q, B, J, mt, te, St, Ct, bt, _t, Ft, Et, xt, wt, Ot, It, At, Lt, jt, Nt, Tt, kt, ee = this;
379
+ Qt = function(L, U) {
380
+ return T(x, void 0, void 0, function() {
381
+ var R, B, S, Z, H, J, St, te, Ct, bt, _t, Ft, Et, xt, wt, Ot, It, At, Lt, jt, Nt, Tt, Pt, kt, ee = this;
382
382
  return z(this, function(V) {
383
383
  switch (V.label) {
384
384
  case 0:
385
- if (!R) return [3, 7];
386
- U = null, H = null, V.label = 1;
385
+ if (!U) return [3, 7];
386
+ R = null, B = null, V.label = 1;
387
387
  case 1:
388
- return V.trys.push([1, 5, , 6]), S = JSON.parse(R), q = !1, B = !1, S && S.api === this.api && ((Ct = (St = S.evaluationContext) === null || St === void 0 ? void 0 : St.environment) === null || Ct === void 0 ? void 0 : Ct.apiKey) === ((bt = this.evaluationContext.environment) === null || bt === void 0 ? void 0 : bt.apiKey) && (J = !0, this.evaluationContext.identity && ((Ft = (_t = S.evaluationContext) === null || _t === void 0 ? void 0 : _t.identity) === null || Ft === void 0 ? void 0 : Ft.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((xt = (Et = S.evaluationContext) === null || Et === void 0 ? void 0 : Et.identity) === null || xt === void 0 ? void 0 : xt.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"), B = !0, J = !0)), J && (q = !0, H = _((wt = this.evaluationContext.identity) === null || wt === void 0 ? void 0 : wt.traits, (It = (Ot = S.evaluationContext) === null || Ot === void 0 ? void 0 : Ot.identity) === null || It === void 0 ? void 0 : It.traits), U = _(this.flags, S.flags), this.setState(s(s({}, S), { evaluationContext: ht(s(s({}, S.evaluationContext), { identity: !((At = S.evaluationContext) === null || At === void 0) && At.identity ? s(s({}, (Lt = S.evaluationContext) === null || Lt === void 0 ? void 0 : Lt.identity), { traits: s(s({}, ((Nt = (jt = S.evaluationContext) === null || jt === void 0 ? void 0 : jt.identity) === null || Nt === void 0 ? void 0 : Nt.traits) || {}), W || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", S))), q ? (mt = !A && (!this.cacheOptions.skipAPI || B), this._onChange(null, { isFromServer: !1, flagsChanged: U, traitsChanged: H }, this._loadedState(null, g.CACHE, mt)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && q && !B && this.log("Skipping API, using cache"), mt && this.getFlags().catch(function(ue) {
389
- var Pt;
390
- (Pt = ee.onError) === null || Pt === void 0 || Pt.call(ee, ue);
388
+ return V.trys.push([1, 5, , 6]), S = JSON.parse(U), Z = !1, H = !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"), H = !0, J = !0)), J && (Z = !0, 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), R = _(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 || H), this._onChange(null, { isFromServer: !1, flagsChanged: R, traitsChanged: B }, this._loadedState(null, g.CACHE, St)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Z && !H && this.log("Skipping API, using cache"), St && this.getFlags().catch(function(he) {
389
+ var Ut;
390
+ (Ut = ee.onError) === null || Ut === void 0 || Ut.call(ee, he);
391
391
  }), [3, 4]) : [3, 2];
392
392
  case 2:
393
- return A ? [3, 4] : [4, this.getFlags()];
393
+ return I ? [3, 4] : [4, this.getFlags()];
394
394
  case 3:
395
395
  V.sent(), V.label = 4;
396
396
  case 4:
@@ -400,13 +400,13 @@ var Kt = { exports: {} };
400
400
  case 6:
401
401
  return [3, 10];
402
402
  case 7:
403
- return A ? [3, 9] : [4, this.getFlags()];
403
+ return I ? [3, 9] : [4, this.getFlags()];
404
404
  case 8:
405
405
  return V.sent(), [3, 10];
406
406
  case 9:
407
- if (I) this._onChange(null, { isFromServer: !1, flagsChanged: _({}, this.flags), traitsChanged: _({}, (Tt = this.evaluationContext.identity) === null || Tt === void 0 ? void 0 : Tt.traits) }, this._loadedState(null, g.DEFAULT_FLAGS));
407
+ if (O) this._onChange(null, { isFromServer: !1, flagsChanged: _({}, this.flags), traitsChanged: _({}, (Pt = this.evaluationContext.identity) === null || Pt === void 0 ? void 0 : Pt.traits) }, this._loadedState(null, g.DEFAULT_FLAGS));
408
408
  else {
409
- if (!this.flags) throw new Error(pt);
409
+ if (!this.flags) throw new Error(yt);
410
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, g.DEFAULT_FLAGS));
411
411
  }
412
412
  V.label = 10;
@@ -415,32 +415,32 @@ var Kt = { exports: {} };
415
415
  }
416
416
  });
417
417
  });
418
- }, T.label = 2;
418
+ }, N.label = 2;
419
419
  case 2:
420
- return T.trys.push([2, 7, , 8]), w.getItemSync ? (yt = w.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
420
+ return N.trys.push([2, 7, , 8]), w.getItemSync ? (mt = w.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
421
421
  case 3:
422
422
  return [4, w.getItem(this.getStorageKey())];
423
423
  case 4:
424
- yt = T.sent(), T.label = 5;
424
+ mt = N.sent(), N.label = 5;
425
425
  case 5:
426
- return [4, Qt(null, yt)];
426
+ return [4, Qt(null, mt)];
427
427
  case 6:
428
428
  case 7:
429
- return T.sent(), [3, 8];
429
+ return N.sent(), [3, 8];
430
430
  case 8:
431
431
  return [3, 12];
432
432
  case 9:
433
- return A ? [3, 11] : [4, this.getFlags()];
433
+ return I ? [3, 11] : [4, this.getFlags()];
434
434
  case 10:
435
- return T.sent(), [3, 12];
435
+ return N.sent(), [3, 12];
436
436
  case 11:
437
- if (I) this._onChange(null, { isFromServer: !1, flagsChanged: _({}, I), traitsChanged: _({}, (t = r.identity) === null || t === void 0 ? void 0 : t.traits) }, this._loadedState(null, g.DEFAULT_FLAGS));
438
- else if (this.flags && (tt = null, Object.keys(this.flags).length === 0 && (tt = pt), this._onChange(null, { isFromServer: !1, flagsChanged: _({}, this.flags), traitsChanged: _({}, (i = r.identity) === null || i === void 0 ? void 0 : i.traits) }, this._loadedState(tt, g.DEFAULT_FLAGS)), tt)) throw new Error(tt);
439
- T.label = 12;
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, g.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, g.DEFAULT_FLAGS)), et)) throw new Error(et);
439
+ N.label = 12;
440
440
  case 12:
441
441
  return [3, 14];
442
442
  case 13:
443
- throw X = T.sent(), this.log("Error during initialisation ", X), Wt = X instanceof Error ? X : new Error("".concat(X)), (n = this.onError) === null || n === void 0 || n.call(this, Wt), X;
443
+ throw X = N.sent(), this.log("Error during initialisation ", X), Wt = X instanceof Error ? X : new Error("".concat(X)), (n = this.onError) === null || n === void 0 || n.call(this, Wt), X;
444
444
  case 14:
445
445
  return [2];
446
446
  }
@@ -486,7 +486,7 @@ var Kt = { exports: {} };
486
486
  it(e, this.loadingState) || (this.loadingState = s({}, e), this.log("Loading state changed", e), (t = this._triggerLoadingState) === null || t === void 0 || t.call(this));
487
487
  }, a.prototype.setupRealtime = function(e, t) {
488
488
  var i = this, n = e + "sse/environments/" + t + "/stream";
489
- dt ? this.eventSource || (this.log("Creating event source with url " + n), this.eventSource = new dt(n), this.eventSource.addEventListener("environment_updated", function(r) {
489
+ vt ? this.eventSource || (this.log("Creating event source with url " + n), this.eventSource = new vt(n), this.eventSource.addEventListener("environment_updated", function(r) {
490
490
  var o;
491
491
  try {
492
492
  o = JSON.parse(r.data).updated_at;
@@ -499,9 +499,9 @@ var Kt = { exports: {} };
499
499
  }();
500
500
  function Vt(a) {
501
501
  var e = a.fetch, t = a.AsyncStorage, i = a.eventSource;
502
- return new oe({ fetch: e, AsyncStorage: t, eventSource: i });
502
+ return new le({ fetch: e, AsyncStorage: t, eventSource: i });
503
503
  }
504
- var ot, se = (ot = function(a, e) {
504
+ var ot, ue = (ot = function(a, e) {
505
505
  return ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
506
506
  t.__proto__ = i;
507
507
  } || function(t, i) {
@@ -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
- }, Bt = function(a, e) {
523
+ }, Ht = 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 = [];
@@ -536,19 +536,19 @@ var Kt = { exports: {} };
536
536
  }
537
537
  }
538
538
  return o;
539
- }, vt = function(a, e, t) {
539
+ }, gt = function(a, e, t) {
540
540
  if (arguments.length === 2) for (var i, n = 0, r = e.length; n < r; n++) !i && n in e || (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
541
541
  return a.concat(i || Array.prototype.slice.call(e));
542
- }, le = function(a) {
542
+ }, ce = function(a) {
543
543
  function e() {
544
544
  return a.call(this, `EventSource not available.
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
- return se(e, a), e;
547
+ return ue(e, a), e;
548
548
  }(Error), Mt = function() {
549
549
  function a(e, t) {
550
550
  var i = this;
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 le();
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();
552
552
  this._onevent_wrapped = function(n) {
553
553
  i._onevent(n);
554
554
  }, this._start();
@@ -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 = zt(vt([], Bt(n), !1)), o = r.next(); !o.done; o = r.next())
597
+ for (var r = zt(gt([], Ht(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] = vt(vt([], Bt(n), !1), [t], !1));
617
+ n.includes(t) || (this._listeners[e] = gt(gt([], Ht(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) {
@@ -649,19 +649,19 @@ 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(f, e.headers[f]);
650
650
  n.send(e.body || null);
651
651
  });
652
- }, Xt = Vt({ AsyncStorage: v, fetch: $t, eventSource: Mt });
653
- typeof window < "u" && (window.flagsmith = Xt), d.createFlagsmithInstance = function() {
652
+ }, qt = Vt({ AsyncStorage: v, fetch: $t, eventSource: Mt });
653
+ typeof window < "u" && (window.flagsmith = qt), d.createFlagsmithInstance = function() {
654
654
  return Vt({ AsyncStorage: v, fetch: $t, eventSource: Mt });
655
- }, d.default = Xt, Object.defineProperty(d, "__esModule", { value: !0 });
655
+ }, d.default = qt, Object.defineProperty(d, "__esModule", { value: !0 });
656
656
  });
657
657
  })(Kt, Kt.exports);
658
- var ve = Kt.exports, ge = {
658
+ var ge = Kt.exports, fe = {
659
659
  NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first.",
660
660
  INVALID_CONFIG: "Invalid Flagsmith configuration",
661
661
  FETCH_FAILED: "Failed to fetch Flagsmith configuration",
662
662
  NO_USER_CONTEXT: "User context not set. Call setUser() first.",
663
663
  ALREADY_INITIALIZED: "FeatureFlag is already initialized."
664
- }, ne = "business", K, fe = (K = class {
664
+ }, ne = "business", K, pe = (K = class {
665
665
  constructor() {
666
666
  st(this, "flagsmithClient", null);
667
667
  st(this, "userContext", null);
@@ -671,13 +671,13 @@ var ve = Kt.exports, ge = {
671
671
  }
672
672
  ensureInitialized() {
673
673
  if (!this.flagsmithClient)
674
- throw new Error(ge.NOT_INITIALIZED);
674
+ throw new Error(fe.NOT_INITIALIZED);
675
675
  }
676
676
  async init(u, d = []) {
677
677
  if (!this.flagsmithClient)
678
678
  try {
679
- this.flagsmithClient = ve.createFlagsmithInstance();
680
- const v = d.reduce((s, O) => (s[O.feature.name] = O, s), {});
679
+ this.flagsmithClient = ge.createFlagsmithInstance();
680
+ const v = d.reduce((s, T) => (s[T.feature.name] = T, s), {});
681
681
  await this.flagsmithClient.init({
682
682
  environmentID: u.apiKey,
683
683
  api: (u == null ? void 0 : u.url) ?? "https://feature-flag-proxy.feedme.farm/api/v1/",
@@ -747,14 +747,14 @@ var ve = Kt.exports, ge = {
747
747
  }
748
748
  async getUserFlagValue(u, d, v = null, s) {
749
749
  var z;
750
- const O = this.userContext;
750
+ const T = this.userContext;
751
751
  try {
752
752
  return await this.setUser(u), this.getFlagValue(d, s) ?? v;
753
753
  } catch (D) {
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, O && await this.setUser(O.identifier);
757
+ await ((z = this.flagsmithClient) == null ? void 0 : z.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,15 +763,15 @@ var ve = Kt.exports, ge = {
763
763
  reset() {
764
764
  this.flagsmithClient = null, this.userContext = null;
765
765
  }
766
- }, st(K, "instance"), K), pe = fe.getInstance(), et = ct(!1), ut = ct([]), Y = ct(null);
767
- function ye(m = pe) {
768
- const u = () => et.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), d = async (g, C = []) => {
769
- if (et.value) {
766
+ }, st(K, "instance"), K), ye = pe.getInstance(), nt = ht(!1), ut = ht([]), Y = ht(null);
767
+ function me(m = ye) {
768
+ const u = () => nt.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), d = async (g, C = []) => {
769
+ if (nt.value) {
770
770
  console.warn("FeatureFlag is already initialized.");
771
771
  return;
772
772
  }
773
773
  try {
774
- await m.init(g, C), ut.value = await m.getFlags(), et.value = !0, Y.value = null;
774
+ await m.init(g, C), ut.value = await m.getFlags(), nt.value = !0, Y.value = null;
775
775
  } catch (b) {
776
776
  console.error("Failed to initialize feature flags:", b), Y.value = b;
777
777
  }
@@ -782,7 +782,7 @@ function ye(m = pe) {
782
782
  } catch (C) {
783
783
  console.error("Failed to set user:", C), Y.value = C;
784
784
  }
785
- }, s = async (g) => v(`${ne}-${g}`), O = (g, C, b = null) => {
785
+ }, s = async (g) => v(`${ne}-${g}`), T = (g, C, b = null) => {
786
786
  if (!u()) return b;
787
787
  try {
788
788
  return m.getFlagValue(g, C) ?? b;
@@ -809,76 +809,76 @@ function ye(m = pe) {
809
809
  } catch (g) {
810
810
  console.error("Error resetting feature flags:", g);
811
811
  } finally {
812
- ut.value = [], et.value = !1, Y.value = null;
812
+ ut.value = [], nt.value = !1, Y.value = null;
813
813
  }
814
814
  };
815
815
  return {
816
816
  flags: Rt(ut),
817
- isInitialized: Rt(et),
817
+ isInitialized: Rt(nt),
818
818
  error: Rt(Y),
819
819
  init: d,
820
820
  setUser: v,
821
821
  setBusiness: s,
822
- getFlagValue: O,
822
+ getFlagValue: T,
823
823
  getFlag: z,
824
824
  getUserFlagValue: D,
825
825
  getBusinessFlagValue: it,
826
826
  reset: _
827
827
  };
828
828
  }
829
- var me = () => ye();
830
- function Se(m, u) {
829
+ var Se = () => me();
830
+ function re(m, u) {
831
831
  if (!(m != null && m.enabled)) return !1;
832
832
  const d = (m.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" };
836
- const Ut = {
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
+ const ct = {
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
  }, be = {
842
- APP_INBOX: Ut.broadcastAppInbox,
843
- PUSH: Ut.broadcastPush,
844
- WHATSAPP: Ut.broadcastWhatsapp
842
+ APP_INBOX: ct.broadcastAppInbox,
843
+ PUSH: ct.broadcastPush,
844
+ WHATSAPP: ct.broadcastWhatsapp
845
845
  }, {
846
846
  init: _e,
847
847
  isInitialized: Fe,
848
848
  setBusiness: Ee,
849
- flags: ae,
849
+ flags: oe,
850
850
  error: ie
851
- } = me(), nt = ct("loading");
852
- async function Le(m) {
853
- nt.value = "loading";
851
+ } = Se(), M = ht("loading");
852
+ async function Ae(m) {
853
+ M.value = "loading";
854
854
  try {
855
855
  if (Fe.value || await _e({ apiKey: Ce.featureFlagApiKey }), await Ee(m), ie.value) throw ie.value;
856
- nt.value = "ready";
856
+ M.value = "ready";
857
857
  } catch (u) {
858
- nt.value = "error", console.warn("CONNECT: loadBusinessFlags failed", u);
858
+ M.value = "error", console.warn("CONNECT: loadBusinessFlags failed", u);
859
859
  }
860
860
  }
861
- function xe() {
862
- return (m) => {
863
- var u;
864
- return nt.value === "loading" ? "loading" : nt.value === "error" ? "off" : (u = ae.value.find((d) => d.feature.name === m)) != null && u.enabled ? "on" : "off";
861
+ function Le() {
862
+ const m = ae();
863
+ return () => {
864
+ if (M.value === "loading") return "loading";
865
+ if (M.value === "error") return "off";
866
+ const u = oe.value.find((d) => d.feature.name === ct.whatsappBot);
867
+ return re(u, m.currentCountry.value) ? "on" : "off";
865
868
  };
866
869
  }
867
870
  function je() {
868
- const m = de(), u = xe();
869
- return (d) => {
870
- const v = be[d];
871
- if (!v) return "on";
872
- const s = u(v);
873
- return s !== "on" ? s : Se(
874
- ae.value.find((O) => O.feature.name === v),
871
+ const m = ae();
872
+ return (u) => {
873
+ const d = be[u];
874
+ return d ? M.value === "loading" ? "loading" : M.value === "error" ? "off" : re(
875
+ oe.value.find((v) => v.feature.name === d),
875
876
  m.currentCountry.value
876
- ) ? "on" : "off";
877
+ ) ? "on" : "off" : "on";
877
878
  };
878
879
  }
879
880
  export {
880
- Ut as F,
881
881
  je as a,
882
- Le as l,
883
- xe as u
882
+ Ae as l,
883
+ Le as u
884
884
  };
@@ -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-DALsfLV7.js";
1
+ import { h as l } from "./index-Bm43wR8L.js";
2
2
  function u(t, e) {
3
3
  switch (t) {
4
4
  case "COIN":