@feedmepos/mf-connect 0.1.127-prod → 0.1.128-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 (154) hide show
  1. package/dist/{App-BMF6m0GU.js → App-CPSC0ccq.js} +224 -216
  2. package/dist/AuditLogs-CgrYStwa.js +2016 -0
  3. package/dist/{Bin-Dkn-CjZE.js → Bin-Cn7sCPql.js} +8 -8
  4. package/dist/{Broadcast-DqaP4ON2.js → Broadcast-bR7HAyV2.js} +22 -21
  5. package/dist/{CampaignAnalytic-2Iuxh8-x.js → CampaignAnalytic-Dnpw_Jwo.js} +97 -97
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C8MlNehK.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-HaWMLA4s.js} +9 -10
  7. package/dist/{Card-Cv9eldq8.js → Card-BE3Y0KHF.js} +23 -23
  8. package/dist/{Collections-CK-hxHpa.js → Collections-CLSp9Uah.js} +197 -185
  9. package/dist/{Credit-CDE4ACVm.js → Credit-DgMyKROt.js} +21 -20
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CTvIDOWy.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D8eCQE4D.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BB2gszsG.js +4584 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CuPhm1uG.js → EffectSheet.vue_vue_type_style_index_0_lang-CXw7yS8N.js} +33 -33
  13. package/dist/{Experience-lLK_RR69.js → Experience-CCeRbvIe.js} +32 -31
  14. package/dist/{FileSaver.min-zDxJKfBO.js → FileSaver.min-D8Rw2VVN.js} +1 -1
  15. package/dist/{Game-DCdfJkil.js → Game-CYGg8vWQ.js} +19 -18
  16. package/dist/{GiftCardSetup-DfF1OpFk.js → GiftCardSetup-rzea90xr.js} +31 -31
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Dbx9bwJM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BFUBfL-S.js} +140 -128
  18. package/dist/{Goals-t0wbcWxG.js → Goals-BnZfK7a3.js} +4 -4
  19. package/dist/Grab-BRbn6ffm.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Bur6iCYa.js → ImageInput.vue_vue_type_script_setup_true_lang-Cw2imjlQ.js} +1 -1
  21. package/dist/{Index-BUF8U-h8.js → Index-DjZi_lVg.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-kIOc-Px5.js → LocationPicker.vue_vue_type_script_setup_true_lang-B1q4NtuM.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DRmLpXsg.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CUjzbMcb.js} +1 -1
  24. package/dist/{LoyaltyDashboard-8laUXBGQ.js → LoyaltyDashboard-C3TZSSQz.js} +82 -82
  25. package/dist/{MainLayout-BeuKKVNP.js → MainLayout-uNGpBpJi.js} +1 -1
  26. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-C7E3h_Zr.js → MainLayout.vue_vue_type_script_setup_true_lang-0PcswtGl.js} +3 -3
  27. package/dist/{Marketing-DZG0oIs-.js → Marketing-SXmxcw3-.js} +4 -4
  28. package/dist/{MarketingMaterialEdit--RDayaUN.js → MarketingMaterialEdit-DK0tjHpF.js} +214 -211
  29. package/dist/{Member-DeEQr2ef.js → Member-BFSwupq6.js} +7 -7
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dvcasf5O.js +1322 -0
  31. package/dist/{MemberImportHistory-DMXVl1qI.js → MemberImportHistory-z12l_IAQ.js} +7 -7
  32. package/dist/{MemberList-zqeFDkEZ.js → MemberList-DfN7ur0J.js} +103 -105
  33. package/dist/{MemberTransactions-BBQPNfFG.js → MemberTransactions-Bntt4bRR.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C_8yL5GL.js → MessageInput.vue_vue_type_script_setup_true_lang-ComtYItw.js} +12 -12
  35. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-9r-eGARm.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_Imnj16x.js} +1 -1
  36. package/dist/{Mission-TO8w3ucB.js → Mission-CvpeYVjB.js} +22 -21
  37. package/dist/{Overview-CPUpEzPd.js → Overview-BkaFC5La.js} +21 -21
  38. package/dist/{Overview-D6YBYVxK.js → Overview-BtTkltlY.js} +145 -144
  39. package/dist/{Point-BSq4CRcb.js → Point-CpNAFABM.js} +22 -21
  40. package/dist/{Promotion-DgPNNfk7.js → Promotion-B_vD_9UF.js} +137 -131
  41. package/dist/{Queue-CYyabVYT.js → Queue-D5jDhI0f.js} +46 -46
  42. package/dist/{Record-n7s29IZH.js → Record-EsNXzy4D.js} +9 -9
  43. package/dist/{Review-DIYulCVl.js → Review-ByMrkymf.js} +2 -2
  44. package/dist/ReviewFacebookCallback-BDl6NBkw.js +225 -0
  45. package/dist/{ReviewGoogleCallback-CnESXIH-.js → ReviewGoogleCallback-BzU-hUy5.js} +5 -5
  46. package/dist/{Reward-D_L2DgT9.js → Reward-kxAuVGDE.js} +16 -16
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dsk2VqB8.js → RewardGroup.vue_vue_type_script_setup_true_lang-i9B1R3XP.js} +14 -14
  48. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D3MZsh4A.js +1923 -0
  49. package/dist/{Segment-BbGE6AOZ.js → Segment-C5SJs7al.js} +304 -307
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-xrdOyWX8.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-RIerABcb.js} +15 -15
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CTsORsDg.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8jS4gee.js} +4 -4
  52. package/dist/{Setting-B9i2ufr7.js → Setting-zmlu3QcR.js} +17 -17
  53. package/dist/{SettingAdvertisements-Cuczz1wK.js → SettingAdvertisements-DewXGZoE.js} +12 -12
  54. package/dist/Settings-5HU_uY6B.js +286 -0
  55. package/dist/{Store-CoxREXJ-.js → Store-CiTwDcgr.js} +29 -29
  56. package/dist/{StoreRewards-CzkznvA1.js → StoreRewards-DaOJxsVm.js} +15 -15
  57. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BtwDM2Fr.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BTqxeKR4.js} +25 -25
  58. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DlFCI1BT.js +7007 -0
  59. package/dist/{Tier-DyOlzjE0.js → Tier-lNI7GWMP.js} +2583 -688
  60. package/dist/{Title-C3__B-bw.js → Title-CDxDztnl.js} +96 -95
  61. package/dist/{Transaction-B_v-lbed.js → Transaction-CcsUvIns.js} +2 -2
  62. package/dist/{Upselling-D_5nBzIN.js → Upselling-BDirPkWX.js} +3 -3
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CE5eo992.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-hqzfBpop.js} +26 -26
  64. package/dist/{Voucher-KxXwge4O.js → Voucher-CJDo5U_P.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-nbLXmJ5Q.js → VoucherEditor.vue_vue_type_script_setup_true_lang-WjsLHh_E.js} +12 -12
  66. package/dist/{WhatsappAccount-C8kinTmg.js → WhatsappAccount-CQBti7RJ.js} +6 -6
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-ydBfMtzM.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DVNZ774z.js} +1 -1
  68. package/dist/WhatsappBot-91lIlikm.js +882 -0
  69. package/dist/{WhatsappBotLogs-Dm0HJh_f.js → WhatsappBotLogs-PQTwT8e5.js} +66 -66
  70. package/dist/{WhatsappBotSettings-BNZcj26j.js → WhatsappBotSettings-CUES9UL-.js} +5 -5
  71. package/dist/{WhatsappLayout-BvBN7H-y.js → WhatsappLayout-pZGYJj0J.js} +3 -3
  72. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BzKwTs9R.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DAoonwsO.js} +3 -3
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BY8t6jtW.js → ZodTextField.vue_vue_type_script_setup_true_lang-HEIeZYCP.js} +2 -2
  74. package/dist/{app-uud8OgB9.js → app--pRyBODF.js} +4159 -3395
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-Bfxt84QY.js → base.export-CSdCmt-6.js} +2 -2
  77. package/dist/business-BtEfH8Mt.js +83 -0
  78. package/dist/{campaign-CWyU-r8u.js → campaign-CwQjWU63.js} +121 -94
  79. package/dist/{campaign-6WrFDF05.js → campaign-t9ubUkjB.js} +31 -25
  80. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Damu7hgo.js} +3 -2
  81. package/dist/campaign.fn-D3_OzyyQ.js +776 -0
  82. package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-C8LbgIQ7.js} +1 -1
  83. package/dist/{collection.fn-CO-YhhUM.js → collection.fn-BV7pDqa5.js} +2 -2
  84. package/dist/{currency-kWhKZnhN.js → currency-pS0xeJA6.js} +1 -1
  85. package/dist/duplicateCampaign-19CDT2kM.js +51 -0
  86. package/dist/{effect-CjSyUbur.js → effect-B532leFF.js} +1 -1
  87. package/dist/{email-addresses-C_yrJd12.js → email-addresses-CKkT_5O5.js} +2 -2
  88. package/dist/{feature-flag-DcM82jeJ.js → feature-flag-25oDCLLB.js} +84 -84
  89. package/dist/google-BQK68wbe.js +5 -0
  90. package/dist/{helper-G8MwkrFo.js → helper-DxOj04aq.js} +1 -1
  91. package/dist/{index-3axft-Vz.js → index-B3sR1LMa.js} +10 -10
  92. package/dist/{index-ivVytFih.js → index-BCgTcZ7c.js} +609 -252
  93. package/dist/{index-BXSokNlS.js → index-BFJ2FmB4.js} +18 -18
  94. package/dist/{index-CiFPNxgn.js → index-BHnMLtU2.js} +381 -235
  95. package/dist/{index-6Ey495tl.js → index-BLRv_4gJ.js} +1 -1
  96. package/dist/index-BViMt33t.js +10767 -0
  97. package/dist/{index-Dv5Ja20d.js → index-BX6lcJDB.js} +1 -1
  98. package/dist/{index-CVVLKJj_.js → index-C6pr4oIv.js} +1315 -1243
  99. package/dist/{index-Dkud56R0.js → index-C7wVaeC1.js} +1 -1
  100. package/dist/{index-DgT4P2_R.js → index-CBYY3VEG.js} +2700 -2614
  101. package/dist/{index-sPf1Rhez.js → index-C_qmnOKQ.js} +9 -9
  102. package/dist/{index-CqvjZF-j.js → index-ClD2-18P.js} +19 -6
  103. package/dist/{index-h2p2DjKy.js → index-DBT1f1M3.js} +2 -2
  104. package/dist/{index-BNjHmUyd.js → index-DBzCfWxW.js} +2 -2
  105. package/dist/{index-Cj85mCmr.js → index-DEENB4la.js} +664 -664
  106. package/dist/{index-B3LCTMwV.js → index-DSAEs8u0.js} +68 -60
  107. package/dist/{index-L_2hhvso.js → index-DVlo0TO9.js} +23 -23
  108. package/dist/index-DiYuhtNS.js +19528 -0
  109. package/dist/{index-Ba4Q_XWF.js → index-Diw9710S.js} +4 -4
  110. package/dist/{index-CxyO5j1a.js → index-DqQ1q8sX.js} +26 -19
  111. package/dist/{index-RtamQHhy.js → index-ip2EqUEW.js} +1 -1
  112. package/dist/{index-DGrPvdRc.js → index-uCkkfjE3.js} +4 -4
  113. package/dist/{index.esm2017-DiUbRDfz.js → index.esm2017-DRrIFPLo.js} +57 -57
  114. package/dist/{loading-BdpH3z-q.js → loading--SZI7Tpo.js} +1 -1
  115. package/dist/{lodash-DcC4G06s.js → lodash-BZqvXM_P.js} +1 -1
  116. package/dist/{member-import-C99OxU-w.js → member-import-Bmt1OdRW.js} +2 -2
  117. package/dist/{membership-O5EN0QMl.js → membership-BTFpH7Mg.js} +3 -3
  118. package/dist/{money-CYS7zoiT.js → money-BVtlYyxo.js} +1 -1
  119. package/dist/{number-D_C66osx.js → number-DrOdGSrF.js} +1 -1
  120. package/dist/objectid-DdJFC6TI.js +145 -0
  121. package/dist/{onboarding-DGx34lkW.js → onboarding-BjcSBC8v.js} +25 -25
  122. package/dist/{onboardingSetup-ALOoxDHE.js → onboardingSetup-Dcv8i8qd.js} +2 -2
  123. package/dist/{plugins-CVh8eTG-.js → plugins-Iw52rJ1s.js} +3 -3
  124. package/dist/{reward-8sP3d8ie.js → reward-DF9tE7iA.js} +1 -1
  125. package/dist/{rule-BGMBiCRZ.js → rule-rCPhlgAq.js} +572 -492
  126. package/dist/style.css +1 -1
  127. package/dist/template-v1F1rvUU.js +227 -0
  128. package/dist/timezone-BxJDy-bY.js +19 -0
  129. package/dist/{transaction.fn-Dmla3R1q.js → transaction.fn-Cp3ylqFD.js} +2 -2
  130. package/dist/{trigger-CArDddXr.js → trigger-O6JvCms4.js} +9 -9
  131. package/dist/{useMarketingMaterialActions-BX5Ynq8O.js → useMarketingMaterialActions-Cnadk3AO.js} +4 -4
  132. package/dist/{usePagination-BdgLVPuo.js → usePagination-C5lSxdqt.js} +1 -1
  133. package/dist/{user-BgTKHjea.js → user-B7iv0TRE.js} +1 -1
  134. package/dist/vue-i18n-CYFvlTTS.js +2365 -0
  135. package/dist/{xlsx-WIRNQZAx.js → xlsx-DTJ6bUKL.js} +166 -166
  136. package/dist/{zod-Dh_CVWJN.js → zod-cIIx_Ng9.js} +1 -1
  137. package/package.json +7 -3
  138. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DUJKivXA.js +0 -3638
  139. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dmf4WtSt.js +0 -1308
  140. package/dist/ReviewFacebookCallback-D07x5BnV.js +0 -238
  141. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BjyiiTSY.js +0 -1884
  142. package/dist/Settings-CCSXjpUC.js +0 -179
  143. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-tSfwcDBG.js +0 -142
  144. package/dist/WhatsappBot-BuD45ou8.js +0 -878
  145. package/dist/business-77FEeeil.js +0 -82
  146. package/dist/campaign.fn-Ci_av9lZ.js +0 -776
  147. package/dist/google-C3S8u0mT.js +0 -4
  148. package/dist/index-BqHB3euS.js +0 -27551
  149. package/dist/index-C_H8jFYf.js +0 -2743
  150. package/dist/objectid-Dd0NRad7.js +0 -145
  151. package/dist/rule-builder-DcPK2oqo.js +0 -102
  152. package/dist/template-Bku-aSPA.js +0 -275
  153. package/dist/timezone-DML8BuIK.js +0 -20
  154. package/dist/vue-i18n-DMEbesBm.js +0 -2365
@@ -1,12 +1,12 @@
1
- import { defineComponent as A, resolveComponent as k, openBlock as o, createBlock as p, withCtx as w, createElementVNode as c, unref as t, createVNode as x, ref as ee, computed as I, toDisplayString as h, createElementBlock as r, Fragment as L, renderList as T, createCommentVNode as f, normalizeClass as me, isRef as pe } from "vue";
2
- import { u as K } from "./vue-i18n-DMEbesBm.js";
1
+ import { defineComponent as A, resolveComponent as C, openBlock as o, createBlock as f, withCtx as w, createElementVNode as c, unref as t, createVNode as v, ref as ee, computed as V, toDisplayString as k, createElementBlock as r, Fragment as L, renderList as T, createCommentVNode as g, normalizeClass as me, isRef as pe } from "vue";
2
+ import { u as K } from "./vue-i18n-CYFvlTTS.js";
3
3
  import { useRouter as be } from "vue-router";
4
- import { S as fe } from "./index-3axft-Vz.js";
5
- import "./index-Dkud56R0.js";
6
- import { n as te } from "./plugins-CVh8eTG-.js";
7
- import { u as ne } from "./business-77FEeeil.js";
8
- import { u as U, e as ye, i as ge, p as _e, g as oe, o as ve, d as xe, c as he } from "./onboarding-DGx34lkW.js";
9
- import { R as Z } from "./app-uud8OgB9.js";
4
+ import { S as fe } from "./index-B3sR1LMa.js";
5
+ import "./index-C7wVaeC1.js";
6
+ import { n as te } from "./plugins-Iw52rJ1s.js";
7
+ import { u as ne } from "./business-BtEfH8Mt.js";
8
+ import { u as U, e as ge, i as ye, p as _e, g as oe, o as ve, d as xe, c as he } from "./onboarding-BjcSBC8v.js";
9
+ import { R as Z } from "./app--pRyBODF.js";
10
10
  const ke = ["aria-label"], M = /* @__PURE__ */ A({
11
11
  __name: "SectionChip",
12
12
  props: {
@@ -15,9 +15,9 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
15
15
  },
16
16
  setup(u) {
17
17
  const { t: P } = K();
18
- return (s, C) => {
19
- const e = k("FmChip"), $ = k("FmTooltip");
20
- return u.tooltip ? (o(), p($, {
18
+ return (s, $) => {
19
+ const e = C("FmChip"), F = C("FmTooltip");
20
+ return u.tooltip ? (o(), f(F, {
21
21
  key: 0,
22
22
  variant: "plain",
23
23
  placement: "top",
@@ -29,7 +29,7 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
29
29
  class: "inline-flex fm-corner-radius-md",
30
30
  "aria-label": t(P)("connect.onboarding.more_about", { section: u.label })
31
31
  }, [
32
- x(e, {
32
+ v(e, {
33
33
  variant: "plain",
34
34
  compact: "",
35
35
  label: u.label,
@@ -38,7 +38,7 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
38
38
  ], 8, ke)
39
39
  ]),
40
40
  _: 1
41
- }, 8, ["content"])) : (o(), p(e, {
41
+ }, 8, ["content"])) : (o(), f(e, {
42
42
  key: 1,
43
43
  variant: "plain",
44
44
  compact: "",
@@ -55,7 +55,7 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
55
55
  }, De = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex-1" }, Pe = {
56
56
  key: 1,
57
57
  class: "flex flex-col"
58
- }, Ge = { class: "flex flex-col gap-4 flex-1 min-w-0" }, Le = { class: "flex items-center gap-8 flex-wrap" }, Ee = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ne = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary whitespace-nowrap" }, Oe = {
58
+ }, Ge = { class: "flex flex-col gap-4 flex-1 min-w-0" }, Le = { class: "flex items-center gap-8 flex-wrap" }, Ne = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ee = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary whitespace-nowrap" }, Oe = {
59
59
  key: 1,
60
60
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary"
61
61
  }, Re = {
@@ -69,41 +69,41 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
69
69
  },
70
70
  emits: ["customise", "next"],
71
71
  setup(u, { emit: P }) {
72
- const s = u, C = P, { t: e } = K(), $ = be(), m = U(), E = ne(), G = `mf-connect-onboarding-collapsed:${s.placement}`, a = ee((() => {
72
+ const s = u, $ = P, { t: e } = K(), F = be(), m = U(), N = ne(), G = `mf-connect-onboarding-collapsed:${s.placement}`, a = ee((() => {
73
73
  try {
74
74
  return localStorage.getItem(G) === "1";
75
75
  } catch {
76
76
  return !1;
77
77
  }
78
78
  })());
79
- function y() {
79
+ function _() {
80
80
  a.value = !a.value;
81
81
  try {
82
82
  localStorage.setItem(G, a.value ? "1" : "0");
83
83
  } catch {
84
84
  }
85
85
  }
86
- const b = I(() => {
87
- const i = m.catalog, v = m.state;
88
- if (!i || !v) return [];
89
- const V = s.mode === "goals" ? ye(i, v) : /* @__PURE__ */ new Set();
86
+ const p = V(() => {
87
+ const i = m.catalog, h = m.state;
88
+ if (!i || !h) return [];
89
+ const D = s.mode === "goals" ? ge(i, h) : /* @__PURE__ */ new Set();
90
90
  return m.ids(s.mode).map((d) => i.items.find((S) => S.id === d)).filter((d) => !!d).map((d) => ({
91
91
  item: d,
92
92
  title: s.mode === "generic" ? d.genericTitle ?? d.title : d.title,
93
- done: ge(d, v, s.mode),
93
+ done: ye(d, h, s.mode),
94
94
  manual: "manual" in d.doneWhen,
95
- recommended: V.has(d.id),
95
+ recommended: D.has(d.id),
96
96
  section: i.sections[d.section],
97
97
  extra: d.extraSection ? i.sections[d.extraSection] : void 0
98
98
  }));
99
- }), B = I(() => b.value.length), l = I(() => b.value.filter((i) => i.done).length), F = I(() => B.value > 0 && l.value === B.value), N = I(() => m.minsLeft(s.mode)), g = I(() => F.value ? e("connect.onboarding.all_set_sub") : l.value > 0 ? e("connect.onboarding.progress_sub", { done: l.value, total: B.value, mins: N.value }) : e(
99
+ }), B = V(() => p.value.length), l = V(() => p.value.filter((i) => i.done).length), b = V(() => B.value > 0 && l.value === B.value), E = V(() => m.minsLeft(s.mode)), y = V(() => b.value ? e("connect.onboarding.all_set_sub") : l.value > 0 ? e("connect.onboarding.progress_sub", { done: l.value, total: B.value, mins: E.value }) : e(
100
100
  s.mode === "generic" ? "connect.onboarding.generic_sub" : "connect.onboarding.goals_sub",
101
- { count: B.value, mins: N.value },
101
+ { count: B.value, mins: E.value },
102
102
  B.value
103
- )), D = I(() => {
104
- const i = m.catalog, v = m.state;
105
- return s.mode !== "goals" || !i || !v ? [] : _e(i, v).map((V) => ({ goal: V, ...oe(i, v, V) }));
106
- }), z = I(() => F.value ? e("connect.onboarding.all_set_title") : D.value.length === 1 ? e("connect.onboarding.your_goal", { goal: D.value[0].goal.title }) : D.value.length > 1 ? e("connect.onboarding.your_goals") : e("connect.onboarding.start_here")), j = (i) => !!i && !E.isPremium;
103
+ )), I = V(() => {
104
+ const i = m.catalog, h = m.state;
105
+ return s.mode !== "goals" || !i || !h ? [] : _e(i, h).map((D) => ({ goal: D, ...oe(i, h, D) }));
106
+ }), z = V(() => b.value ? e("connect.onboarding.all_set_title") : I.value.length === 1 ? e("connect.onboarding.your_goal", { goal: I.value[0].goal.title }) : I.value.length > 1 ? e("connect.onboarding.your_goals") : e("connect.onboarding.start_here")), j = (i) => !!i && !N.isPremium;
107
107
  async function O(i) {
108
108
  try {
109
109
  await m.patch(i);
@@ -111,60 +111,60 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
111
111
  te.error(e("connect.onboarding.save_error"), 3e3);
112
112
  }
113
113
  }
114
- const le = (i) => O({ removed: { [i]: !0 } }), W = I(() => s.placement === "analytic" && s.mode === "generic"), ae = () => O(
114
+ const le = (i) => O({ removed: { [i]: !0 } }), W = V(() => s.placement === "analytic" && s.mode === "generic"), ae = () => O(
115
115
  W.value ? { generic: "closed" } : s.placement === "analytic" ? { analyticDismissed: !0 } : { goalsDismissed: !0 }
116
116
  );
117
117
  function se() {
118
- W.value ? O({ generic: "closed" }) : s.placement === "analytic" ? $.push({ name: Z["$connect-GOALS"] }) : C("next");
118
+ W.value ? O({ generic: "closed" }) : s.placement === "analytic" ? F.push({ name: Z["$connect-GOALS"] }) : $("next");
119
119
  }
120
120
  const ie = (i) => O({ manualDone: { [i]: !0 } });
121
- function q(i, v) {
122
- const V = m.state;
123
- V && $.push(xe(he(i, V, s.mode), v));
121
+ function q(i, h) {
122
+ const D = m.state;
123
+ D && F.push(xe(he(i, D, s.mode), h));
124
124
  }
125
125
  function ce() {
126
- s.placement === "analytic" ? $.push({ name: Z["$connect-GOALS"] }) : C("customise");
126
+ s.placement === "analytic" ? F.push({ name: Z["$connect-GOALS"] }) : $("customise");
127
127
  }
128
- return (i, v) => {
129
- const V = k("FmCircularProgress"), d = k("FmChip"), S = k("FmButton"), re = k("FmIcon"), de = k("FmPill"), ue = k("FmCard");
130
- return o(), p(ue, {
128
+ return (i, h) => {
129
+ const D = C("FmCircularProgress"), d = C("FmChip"), S = C("FmButton"), re = C("FmIcon"), de = C("FmPill"), ue = C("FmCard");
130
+ return o(), f(ue, {
131
131
  variant: "outlined",
132
132
  class: "flex flex-col overflow-hidden"
133
133
  }, {
134
134
  default: w(() => [
135
135
  c("div", Ce, [
136
- x(V, {
136
+ v(D, {
137
137
  size: "xxl",
138
138
  class: "shrink-0",
139
139
  "current-step": t(l),
140
140
  "total-steps": Math.max(t(B), 1)
141
141
  }, null, 8, ["current-step", "total-steps"]),
142
142
  c("div", $e, [
143
- c("span", Fe, h(t(z)), 1),
144
- c("span", Se, h(t(g)), 1),
145
- t(D).length ? (o(), r("div", Be, [
146
- (o(!0), r(L, null, T(t(D), (n) => (o(), p(d, {
143
+ c("span", Fe, k(t(z)), 1),
144
+ c("span", Se, k(t(y)), 1),
145
+ t(I).length ? (o(), r("div", Be, [
146
+ (o(!0), r(L, null, T(t(I), (n) => (o(), f(d, {
147
147
  key: n.goal.id,
148
148
  compact: "",
149
149
  variant: n.allDone ? "success" : "plain",
150
150
  label: t(e)("connect.onboarding.goal_progress", { goal: n.goal.title, done: n.done, total: n.total })
151
151
  }, null, 8, ["variant", "label"]))), 128))
152
- ])) : f("", !0)
152
+ ])) : g("", !0)
153
153
  ]),
154
154
  c("div", Ie, [
155
- x(S, {
155
+ v(S, {
156
156
  variant: "tertiary",
157
157
  label: t(e)("connect.onboarding.customise"),
158
158
  onClick: ce
159
159
  }, null, 8, ["label"]),
160
- x(S, {
160
+ v(S, {
161
161
  variant: "plain",
162
162
  icon: t(a) ? "keyboard_arrow_down" : "keyboard_arrow_up",
163
163
  "aria-label": t(a) ? t(e)("connect.onboarding.expand") : t(e)("connect.onboarding.collapse"),
164
164
  "aria-expanded": !t(a),
165
- onClick: y
165
+ onClick: _
166
166
  }, null, 8, ["icon", "aria-label", "aria-expanded"]),
167
- x(S, {
167
+ v(S, {
168
168
  variant: "plain",
169
169
  icon: "close",
170
170
  "aria-label": t(e)("connect.onboarding.hide"),
@@ -172,22 +172,22 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
172
172
  }, null, 8, ["aria-label"])
173
173
  ])
174
174
  ]),
175
- t(a) ? f("", !0) : (o(), r(L, { key: 0 }, [
176
- t(F) ? (o(), r("div", Ve, [
177
- c("p", De, h(t(e)("connect.onboarding.next_line")), 1),
178
- x(S, {
175
+ t(a) ? g("", !0) : (o(), r(L, { key: 0 }, [
176
+ t(b) ? (o(), r("div", Ve, [
177
+ c("p", De, k(t(e)("connect.onboarding.next_line")), 1),
178
+ v(S, {
179
179
  variant: "primary",
180
180
  label: t(e)("connect.onboarding.see_next"),
181
181
  onClick: se
182
182
  }, null, 8, ["label"])
183
183
  ])) : (o(), r("ul", Pe, [
184
- (o(!0), r(L, null, T(t(b), (n) => {
184
+ (o(!0), r(L, null, T(t(p), (n) => {
185
185
  var H, J, Q, X, Y;
186
186
  return o(), r("li", {
187
187
  key: n.item.id,
188
188
  class: "group flex items-start gap-16 px-24 py-16 border-t border-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-100 focus-within:bg-fm-color-neutral-gray-100"
189
189
  }, [
190
- x(re, {
190
+ v(re, {
191
191
  name: n.done ? "check_circle" : "radio_button_unchecked",
192
192
  color: n.done ? "system-success-300" : "neutral-gray-300",
193
193
  outline: !n.done,
@@ -195,59 +195,59 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
195
195
  }, null, 8, ["name", "color", "outline"]),
196
196
  c("div", Ge, [
197
197
  c("div", Le, [
198
- c("span", Ee, h(n.title), 1),
199
- n.done ? (o(), r("span", Oe, h((J = n.section) == null ? void 0 : J.label), 1)) : (o(), r(L, { key: 0 }, [
200
- n.recommended ? (o(), p(d, {
198
+ c("span", Ne, k(n.title), 1),
199
+ n.done ? (o(), r("span", Oe, k((J = n.section) == null ? void 0 : J.label), 1)) : (o(), r(L, { key: 0 }, [
200
+ n.recommended ? (o(), f(d, {
201
201
  key: 0,
202
202
  variant: "info",
203
203
  compact: "",
204
204
  label: t(e)("connect.onboarding.recommended")
205
- }, null, 8, ["label"])) : f("", !0),
206
- (H = n.section) != null && H.premium ? (o(), p(de, {
205
+ }, null, 8, ["label"])) : g("", !0),
206
+ (H = n.section) != null && H.premium ? (o(), f(de, {
207
207
  key: 1,
208
208
  variant: "premium"
209
- })) : f("", !0),
210
- n.section ? (o(), p(M, {
209
+ })) : g("", !0),
210
+ n.section ? (o(), f(M, {
211
211
  key: 2,
212
212
  label: n.section.label,
213
213
  tooltip: n.section.tooltip
214
- }, null, 8, ["label", "tooltip"])) : f("", !0),
215
- n.extra ? (o(), p(M, {
214
+ }, null, 8, ["label", "tooltip"])) : g("", !0),
215
+ n.extra ? (o(), f(M, {
216
216
  key: 3,
217
217
  label: n.extra.label,
218
218
  tooltip: n.extra.tooltip
219
- }, null, 8, ["label", "tooltip"])) : f("", !0),
220
- c("span", Ne, " · " + h(t(e)("connect.onboarding.minutes", { mins: n.item.minutes })), 1)
219
+ }, null, 8, ["label", "tooltip"])) : g("", !0),
220
+ c("span", Ee, " · " + k(t(e)("connect.onboarding.minutes", { mins: n.item.minutes })), 1)
221
221
  ], 64))
222
222
  ]),
223
- n.done ? f("", !0) : (o(), r("p", Re, h(n.item.why), 1))
223
+ n.done ? g("", !0) : (o(), r("p", Re, k(n.item.why), 1))
224
224
  ]),
225
225
  c("div", Te, [
226
- n.done ? (o(), p(S, {
226
+ n.done ? (o(), f(S, {
227
227
  key: 1,
228
228
  variant: "tertiary",
229
229
  label: t(e)("connect.onboarding.open_section", { section: (Y = n.section) == null ? void 0 : Y.label }),
230
230
  onClick: (R) => q(n.item, !1)
231
231
  }, null, 8, ["label", "onClick"])) : (o(), r(L, { key: 0 }, [
232
- j((Q = n.section) == null ? void 0 : Q.premium) ? (o(), p(S, {
232
+ j((Q = n.section) == null ? void 0 : Q.premium) ? (o(), f(S, {
233
233
  key: 0,
234
234
  variant: "primary",
235
235
  label: t(e)("connect.onboarding.upgrade_unlock"),
236
- onClick: v[0] || (v[0] = (R) => t(ve)(t(fe).businessId))
237
- }, null, 8, ["label"])) : f("", !0),
238
- x(S, {
236
+ onClick: h[0] || (h[0] = (R) => t(ve)(t(fe).businessId))
237
+ }, null, 8, ["label"])) : g("", !0),
238
+ v(S, {
239
239
  variant: j((X = n.section) == null ? void 0 : X.premium) ? "tertiary" : "primary",
240
240
  label: t(e)("connect.onboarding.set_up"),
241
241
  onClick: (R) => q(n.item, !0)
242
242
  }, null, 8, ["variant", "label", "onClick"]),
243
- n.manual ? (o(), p(S, {
243
+ n.manual ? (o(), f(S, {
244
244
  key: 1,
245
245
  variant: "secondary",
246
246
  label: t(e)("connect.onboarding.mark_done"),
247
247
  onClick: (R) => ie(n.item.id)
248
- }, null, 8, ["label", "onClick"])) : f("", !0)
248
+ }, null, 8, ["label", "onClick"])) : g("", !0)
249
249
  ], 64)),
250
- n.done ? f("", !0) : (o(), p(S, {
250
+ n.done ? g("", !0) : (o(), f(S, {
251
251
  key: 2,
252
252
  variant: "plain",
253
253
  icon: "close",
@@ -279,42 +279,44 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
279
279
  },
280
280
  emits: ["update:modelValue", "build", "cancel"],
281
281
  setup(u, { emit: P }) {
282
- const s = u, C = P, { t: e } = K(), $ = U(), m = ne(), E = I(() => {
283
- const _ = $.catalog, a = $.state;
284
- return !_ || !a ? [] : _.goals.map((y) => {
285
- const b = oe(_, a, y), l = [
282
+ const s = u, $ = P, { t: e } = K(), F = U(), m = ne(), N = V(() => {
283
+ const x = F.catalog, a = F.state;
284
+ return !x || !a ? [] : x.goals.map((_) => {
285
+ const p = oe(x, a, _), l = [
286
286
  ...new Set(
287
- [...y.coreItemIds, ...y.altItemIds].map((g) => {
288
- var D;
289
- return (D = _.items.find((z) => z.id === g)) == null ? void 0 : D.section;
290
- }).filter((g) => !!g)
287
+ [..._.coreItemIds, ..._.altItemIds].map((y) => {
288
+ var I;
289
+ return (I = x.items.find((z) => z.id === y)) == null ? void 0 : I.section;
290
+ }).filter((y) => !!y)
291
291
  )
292
- ].map((g) => _.sections[g]).filter((g) => !!g), F = l.filter((g) => g.premium);
293
- let N = "";
294
- return F.length && !m.isPremium && (N = F.length === l.length ? e("connect.onboarding.premium_nudge_all") : e("connect.onboarding.premium_nudge_some", {
295
- sections: F.map((g) => g.label).join(", ")
296
- })), {
297
- goal: y,
292
+ ].map((y) => x.sections[y]).filter((y) => !!y), b = l.filter((y) => y.premium);
293
+ let E = "";
294
+ if (b.length && !m.isPremium) {
295
+ const y = b.map((I) => I.label).join(", ");
296
+ E = b.length === l.length && b.length === 1 ? e("connect.onboarding.premium_nudge_all") : b.length === l.length ? e("connect.onboarding.premium_nudge_many", { sections: y }) : e("connect.onboarding.premium_nudge_some", { sections: y }, b.length);
297
+ }
298
+ return {
299
+ goal: _,
298
300
  sections: l,
299
- nudge: N,
301
+ nudge: E,
300
302
  // Stays pickable while any of its alternatives is still to set up.
301
- disabled: b.exhausted,
302
- status: b.exhausted ? e("connect.onboarding.already_set_up") : b.done > 0 ? e("connect.onboarding.partly_set_up", b) : "",
303
- selected: s.modelValue.includes(y.id)
303
+ disabled: p.exhausted,
304
+ status: p.exhausted ? e("connect.onboarding.already_set_up") : p.done > 0 ? e("connect.onboarding.partly_set_up", p) : "",
305
+ selected: s.modelValue.includes(_.id)
304
306
  };
305
307
  });
306
308
  });
307
- function G(_, a) {
308
- a || C(
309
+ function G(x, a) {
310
+ a || $(
309
311
  "update:modelValue",
310
- s.modelValue.includes(_) ? s.modelValue.filter((y) => y !== _) : [...s.modelValue, _]
312
+ s.modelValue.includes(x) ? s.modelValue.filter((_) => _ !== x) : [...s.modelValue, x]
311
313
  );
312
314
  }
313
- return (_, a) => {
314
- const y = k("FmIcon"), b = k("FmChip"), B = k("FmButton");
315
+ return (x, a) => {
316
+ const _ = C("FmIcon"), p = C("FmChip"), B = C("FmButton");
315
317
  return o(), r("div", Ae, [
316
318
  c("div", Ke, [
317
- (o(!0), r(L, null, T(t(E), (l) => (o(), r("button", {
319
+ (o(!0), r(L, null, T(t(N), (l) => (o(), r("button", {
318
320
  key: l.goal.id,
319
321
  type: "button",
320
322
  role: "checkbox",
@@ -324,47 +326,57 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
324
326
  l.selected ? "border-fm-color-primary" : "border-fm-color-neutral-gray-200",
325
327
  l.disabled ? "opacity-60 cursor-not-allowed" : "cursor-pointer"
326
328
  ]]),
327
- onClick: (F) => G(l.goal.id, l.disabled)
329
+ onClick: (b) => G(l.goal.id, l.disabled)
328
330
  }, [
329
- x(y, {
331
+ v(_, {
330
332
  name: l.selected ? "check_box" : "check_box_outline_blank",
331
333
  color: l.selected ? "primary" : "neutral-gray-300",
332
334
  class: "shrink-0",
333
335
  "aria-hidden": "true"
334
336
  }, null, 8, ["name", "color"]),
335
337
  c("span", Me, [
336
- c("span", Ue, h(l.goal.title), 1),
337
- c("span", je, h(l.goal.sub), 1),
338
+ c("span", Ue, k(l.goal.title), 1),
339
+ c("span", je, k(l.goal.sub), 1),
338
340
  c("span", We, [
339
- (o(!0), r(L, null, T(l.sections, (F) => (o(), p(M, {
340
- key: F.label,
341
- label: F.label
342
- }, null, 8, ["label"]))), 128))
341
+ (o(!0), r(L, null, T(l.sections, (b) => (o(), r("span", {
342
+ key: b.label,
343
+ class: "inline-flex items-center gap-4"
344
+ }, [
345
+ v(M, {
346
+ label: b.label
347
+ }, null, 8, ["label"]),
348
+ b.isNew ? (o(), f(p, {
349
+ key: 0,
350
+ variant: "info",
351
+ compact: "",
352
+ label: t(e)("connect.onboarding.new_tag")
353
+ }, null, 8, ["label"])) : g("", !0)
354
+ ]))), 128))
343
355
  ]),
344
- l.nudge ? (o(), r("span", qe, h(l.nudge), 1)) : f("", !0),
356
+ l.nudge ? (o(), r("span", qe, k(l.nudge), 1)) : g("", !0),
345
357
  l.status ? (o(), r("span", He, [
346
- x(b, {
358
+ v(p, {
347
359
  variant: l.disabled ? "success" : "neutral",
348
360
  compact: "",
349
361
  label: l.status
350
362
  }, null, 8, ["variant", "label"])
351
- ])) : f("", !0)
363
+ ])) : g("", !0)
352
364
  ])
353
365
  ], 10, ze))), 128))
354
366
  ]),
355
367
  c("div", Je, [
356
- x(B, {
368
+ v(B, {
357
369
  variant: "primary",
358
370
  label: u.updating ? t(e)("connect.onboarding.update") : t(e)("connect.onboarding.build"),
359
371
  disabled: u.modelValue.length === 0,
360
- onClick: a[0] || (a[0] = (l) => C("build"))
372
+ onClick: a[0] || (a[0] = (l) => $("build"))
361
373
  }, null, 8, ["label", "disabled"]),
362
- u.updating ? (o(), p(B, {
374
+ u.updating ? (o(), f(B, {
363
375
  key: 0,
364
376
  variant: "tertiary",
365
377
  label: t(e)("connect.onboarding.cancel"),
366
- onClick: a[1] || (a[1] = (l) => C("cancel"))
367
- }, null, 8, ["label"])) : f("", !0)
378
+ onClick: a[1] || (a[1] = (l) => $("cancel"))
379
+ }, null, 8, ["label"])) : g("", !0)
368
380
  ])
369
381
  ]);
370
382
  };
@@ -378,41 +390,41 @@ const ke = ["aria-label"], M = /* @__PURE__ */ A({
378
390
  emits: ["built", "cancel", "dismiss"],
379
391
  setup(u, { emit: P }) {
380
392
  var G;
381
- const s = u, C = P, { t: e } = K(), $ = U(), m = ee([...((G = $.state) == null ? void 0 : G.pickedGoals) ?? []]);
382
- async function E() {
393
+ const s = u, $ = P, { t: e } = K(), F = U(), m = ee([...((G = F.state) == null ? void 0 : G.pickedGoals) ?? []]);
394
+ async function N() {
383
395
  try {
384
- await $.patch({
396
+ await F.patch({
385
397
  pickedGoals: m.value,
386
398
  built: !0,
387
399
  goalsDismissed: !1,
388
400
  analyticDismissed: !1
389
- }), C("built");
401
+ }), $("built");
390
402
  } catch {
391
403
  te.error(e("connect.onboarding.save_error"), 3e3);
392
404
  }
393
405
  }
394
- return (_, a) => {
395
- const y = k("FmButton");
406
+ return (x, a) => {
407
+ const _ = C("FmButton");
396
408
  return o(), r("section", Xe, [
397
409
  c("div", Ye, [
398
410
  c("div", Ze, [
399
- c("h2", we, h(t(e)("connect.onboarding.picker_title")), 1),
400
- c("p", et, h(t(e)("connect.onboarding.picker_intro")), 1)
411
+ c("h2", we, k(t(e)("connect.onboarding.picker_title")), 1),
412
+ c("p", et, k(t(e)("connect.onboarding.picker_intro")), 1)
401
413
  ]),
402
- s.dismissible ? (o(), p(y, {
414
+ s.dismissible ? (o(), f(_, {
403
415
  key: 0,
404
416
  variant: "plain",
405
417
  icon: "close",
406
418
  "aria-label": t(e)("connect.onboarding.hide"),
407
- onClick: a[0] || (a[0] = (b) => C("dismiss"))
408
- }, null, 8, ["aria-label"])) : f("", !0)
419
+ onClick: a[0] || (a[0] = (p) => $("dismiss"))
420
+ }, null, 8, ["aria-label"])) : g("", !0)
409
421
  ]),
410
- x(Qe, {
422
+ v(Qe, {
411
423
  modelValue: t(m),
412
- "onUpdate:modelValue": a[1] || (a[1] = (b) => pe(m) ? m.value = b : null),
424
+ "onUpdate:modelValue": a[1] || (a[1] = (p) => pe(m) ? m.value = p : null),
413
425
  updating: u.updating,
414
- onBuild: E,
415
- onCancel: a[2] || (a[2] = (b) => C("cancel"))
426
+ onBuild: N,
427
+ onCancel: a[2] || (a[2] = (p) => $("cancel"))
416
428
  }, null, 8, ["modelValue", "updating"])
417
429
  ]);
418
430
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as ee, ref as P, computed as u, onMounted as te, onBeforeUnmount as oe, resolveComponent as g, openBlock as n, createElementBlock as s, Fragment as h, createVNode as p, unref as e, createElementVNode as a, toDisplayString as i, createBlock as y, createCommentVNode as f, renderList as L, withCtx as H } from "vue";
2
2
  import { h as ne } from "./moment-D7p2TMB-.js";
3
- import { u as ae } from "./vue-i18n-DMEbesBm.js";
3
+ import { u as ae } from "./vue-i18n-CYFvlTTS.js";
4
4
  import { useRouter as le } from "vue-router";
5
- import { n as se } from "./plugins-CVh8eTG-.js";
6
- import { u as ie, h as ce, p as re, b as de, r as me, d as ue, c as pe } from "./onboarding-DGx34lkW.js";
7
- import { _ as fe, a as ve } from "./GoalPickerPanel.vue_vue_type_script_setup_true_lang-Dbx9bwJM.js";
5
+ import { n as se } from "./plugins-Iw52rJ1s.js";
6
+ import { u as ie, h as ce, p as re, b as de, r as me, d as ue, c as pe } from "./onboarding-BjcSBC8v.js";
7
+ import { _ as fe, a as ve } from "./GoalPickerPanel.vue_vue_type_script_setup_true_lang-BFUBfL-S.js";
8
8
  const ye = { class: "px-24 pb-24 flex flex-col gap-24" }, _e = {
9
9
  key: 0,
10
10
  class: "flex justify-center py-40"