@feedmepos/mf-connect 0.1.98-beta.76 → 0.1.98-beta.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/{App-BpNFuouR.js → App-Ddo6B0cR.js} +9 -9
  2. package/dist/{AuditLogs-D7vTaaiU.js → AuditLogs-CTW4pKS6.js} +13 -13
  3. package/dist/{Bin-BDo0Vi0U.js → Bin-54ynGToX.js} +8 -8
  4. package/dist/{Broadcast-Ctz8bCnt.js → Broadcast-Bwnrmqhh.js} +12 -12
  5. package/dist/{CampaignAnalytic-BnxmzdYI.js → CampaignAnalytic-Q_IRT5AD.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bt2T2jVi.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BioWaVBq.js} +8 -8
  7. package/dist/{Card-D9pYLwUX.js → Card-DVfhElpd.js} +23 -23
  8. package/dist/{Collections-BP7_jYJY.js → Collections-D1ncD8Mx.js} +8 -8
  9. package/dist/{Credit-D-3Ri1fe.js → Credit-DXPNdUJ_.js} +12 -12
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2k77nhT.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DiR_5MgW.js} +1 -1
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-FjKUID8K.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-wfV6zhMB.js} +35 -35
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-tfDnADgu.js → EffectSheet.vue_vue_type_style_index_0_lang-NqbdAsJM.js} +6 -6
  13. package/dist/{Experience-CZMQLMe1.js → Experience-B-ksR_d_.js} +13 -13
  14. package/dist/{FileSaver.min-_0SQsF4z.js → FileSaver.min-DcsYCTzs.js} +1 -1
  15. package/dist/{Game-Oy1ys3Vc.js → Game-CPgjDM23.js} +13 -13
  16. package/dist/{GiftCardSetup-DIzgr6Ew.js → GiftCardSetup-DdH3wEOH.js} +10 -10
  17. package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-BmskpBdL.js +424 -0
  18. package/dist/Goals-xDLeFx_e.js +247 -0
  19. package/dist/{Grab-2mznKLou.js → Grab-CggkOy8j.js} +9 -9
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BaA6OJW8.js → ImageInput.vue_vue_type_script_setup_true_lang-Cm-g1p_m.js} +1 -1
  21. package/dist/{Index-BRiQjotA.js → Index-DcJNte9-.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-RnhLgDQA.js → LocationPicker.vue_vue_type_script_setup_true_lang-Ba2mtWTj.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DcHERHsz.js → LottieAnimation.vue_vue_type_script_setup_true_lang-xQYvmoY2.js} +1 -1
  24. package/dist/{LoyaltyDashboard-A0dEiZD0.js → LoyaltyDashboard-BMmC9kTo.js} +19 -16
  25. package/dist/{MainLayout-CAeP3Geb.js → MainLayout-5V9aP_OW.js} +3 -3
  26. package/dist/{Marketing-iXJhsmSi.js → Marketing-C-7HoFsr.js} +4 -4
  27. package/dist/{MarketingMaterialEdit-1s-wm1Sq.js → MarketingMaterialEdit-DKQrW2w-.js} +6 -6
  28. package/dist/{Member-Dn-yYonX.js → Member-BT-tGIGu.js} +7 -7
  29. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-W3-KGb8L.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CMc423yy.js} +24 -24
  30. package/dist/{MemberImportHistory-DKNbehJf.js → MemberImportHistory-4hgNWaYG.js} +7 -7
  31. package/dist/{MemberList-BCYfSkeY.js → MemberList-CHToXvvZ.js} +14 -14
  32. package/dist/{MemberTransactions-0W1jYGG_.js → MemberTransactions-sF8tlSLx.js} +1 -1
  33. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DTBxNZgb.js → MessageInput.vue_vue_type_script_setup_true_lang-CX5N4HN8.js} +10 -10
  34. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DBfJciw7.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-B9xthwp-.js} +1 -1
  35. package/dist/{Mission-CDZLGBOq.js → Mission-DeRwazDk.js} +14 -14
  36. package/dist/{Overview-DfPfT1jl.js → Overview-CGHc1dGA.js} +21 -21
  37. package/dist/{Overview-CNNlp-sj.js → Overview-D1BfB0go.js} +4 -4
  38. package/dist/{Point-CFYSW-kx.js → Point-DLbz1o1i.js} +14 -14
  39. package/dist/{Promotion-E1MiG5Lb.js → Promotion-ND7k0GAt.js} +14 -14
  40. package/dist/{Queue-BlHxfV4T.js → Queue-DSZ6SHw8.js} +13 -13
  41. package/dist/{Record-6EVmRgo2.js → Record-Cgl4Okdd.js} +9 -9
  42. package/dist/{Review-BePSVC45.js → Review-CQYHHkrB.js} +2 -2
  43. package/dist/{ReviewFacebookCallback-BJ-jdMEF.js → ReviewFacebookCallback-D-5cP6tF.js} +5 -5
  44. package/dist/{ReviewGoogleCallback-DxJD3of9.js → ReviewGoogleCallback-BqS0lbMq.js} +5 -5
  45. package/dist/{Reward-Xzyb9DNA.js → Reward-CEP9NauM.js} +16 -16
  46. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-ZKTIxMz2.js → RewardGroup.vue_vue_type_script_setup_true_lang-B3A5Vl9M.js} +14 -14
  47. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BIO78oG3.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dx4fbmfw.js} +15 -15
  48. package/dist/{Segment-Cagj_3Sq.js → Segment-DVptqzgz.js} +26 -26
  49. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dh_ajamB.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-oGVnY7GQ.js} +15 -15
  50. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bd0GtFww.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BTAWB1BA.js} +4 -4
  51. package/dist/{Setting-DHPCKzLm.js → Setting-Cz0VvOFH.js} +14 -14
  52. package/dist/{SettingAdvertisements-bfXYN1hv.js → SettingAdvertisements-D60yC83d.js} +12 -12
  53. package/dist/{Settings-CpFEG6Dd.js → Settings-BrfX54vL.js} +5 -5
  54. package/dist/{Store-CIIIti42.js → Store-9RdTlgUo.js} +27 -27
  55. package/dist/{StoreRewards-CR4zi9ux.js → StoreRewards-Cutn32ZD.js} +15 -15
  56. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BpXk51-h.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CJKQBlfI.js} +25 -25
  57. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CTfox5KD.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-I-fIH-8N.js} +2 -2
  58. package/dist/{Tier-f_UEiHYS.js → Tier-DQBr9R7i.js} +27 -27
  59. package/dist/{Title-7XWLideF.js → Title-Ci9aPFLz.js} +23 -23
  60. package/dist/{Transaction-LRL7sbDu.js → Transaction-DqbHdcPo.js} +2 -2
  61. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CWtm4qIy.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CTmiqIwm.js} +6 -6
  62. package/dist/{Voucher-BqVEkMiW.js → Voucher-4lhxhd9C.js} +18 -18
  63. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DiDpsXqP.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CFi6-VKK.js} +12 -12
  64. package/dist/WhatsappBot-D38goJxM.js +604 -0
  65. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-ByA_M7mT.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dgge7-H4.js} +2 -2
  66. package/dist/{app-DCe_VQSq.js → app-Bb2tSOqF.js} +323 -318
  67. package/dist/app.js +1 -1
  68. package/dist/{base.export-gNtvqhh6.js → base.export-BBOmcZxx.js} +2 -2
  69. package/dist/{business-CvopE1wJ.js → business-CjXvFAZn.js} +1 -1
  70. package/dist/{campaign-D87mJcvH.js → campaign-D2R8I06-.js} +2 -2
  71. package/dist/{campaign-CRQDvYX-.js → campaign-G0f6ljXi.js} +8 -8
  72. package/dist/{campaign.fn-DWNcsYr9.js → campaign.fn-D-rMF_4s.js} +64 -64
  73. package/dist/{collection.fn-CDPBajL8.js → collection.fn-Bvg6FCJb.js} +2 -2
  74. package/dist/{currency-oSov4t8f.js → currency-BeiHwq_q.js} +1 -1
  75. package/dist/{duplicateCampaign-CPMPIPg1.js → duplicateCampaign-Byxy6FXH.js} +2 -2
  76. package/dist/{effect-CeQ-vqGq.js → effect-DqYtqvaw.js} +1 -1
  77. package/dist/{email-addresses-GNLhUzgZ.js → email-addresses-xIlBl9IU.js} +2 -2
  78. package/dist/{helper-CdGkmdxL.js → helper-TqUK4r0b.js} +1 -1
  79. package/dist/{index-CwOnVt6n.js → index-7guDU5qb.js} +7 -7
  80. package/dist/{index-CbzWLlC9.js → index-9FJqvQeE.js} +3 -3
  81. package/dist/{index-CkHztow_.js → index-B1L4q1L0.js} +29 -24
  82. package/dist/{index-CaMlQSvW.js → index-B44CZDQD.js} +2 -2
  83. package/dist/{index-CzvnWHo6.js → index-BDt914jM.js} +1 -1
  84. package/dist/{index-CHLqP0Ec.js → index-BFHYshPb.js} +1 -1
  85. package/dist/{index-Cp2qabkb.js → index-BgECjFM0.js} +5 -5
  86. package/dist/{index-CK2gvgpm.js → index-BvHzJVnj.js} +1 -1
  87. package/dist/{index-V4Fej0RK.js → index-BvjcosEc.js} +3 -3
  88. package/dist/{index-BFsnFZkK.js → index-BxEshHrE.js} +9 -9
  89. package/dist/{index-Ch9ZZ90e.js → index-C7V7AtVf.js} +2 -2
  90. package/dist/{index-DXGfSYbL.js → index-CSI31fuh.js} +4 -4
  91. package/dist/{index-BhcW_yBW.js → index-DG8fSuaM.js} +1 -1
  92. package/dist/{index-CqUDkK17.js → index-DMWHB3Zu.js} +2 -2
  93. package/dist/{index-JSRHjm1v.js → index-DNcisv5D.js} +1 -1
  94. package/dist/{index-DtxAUayi.js → index-D_ix7k3A.js} +2 -2
  95. package/dist/{index-CfsnVMZ5.js → index-Dt8H5FKD.js} +4 -4
  96. package/dist/{index-ShdxYCbF.js → index-XqDLmdvl.js} +2 -2
  97. package/dist/{index-P6H0Nj1-.js → index-nuIbpzmL.js} +1 -1
  98. package/dist/{index-CCDx-XqV.js → index-t-aeCJQI.js} +2 -2
  99. package/dist/{index.esm2017-a1JYIQui.js → index.esm2017-Byww7zVy.js} +37 -37
  100. package/dist/{loading-DBX3vfS4.js → loading-pAf2o94t.js} +1 -1
  101. package/dist/{lodash-BQQbr-v0.js → lodash-CnCxUFbR.js} +1 -1
  102. package/dist/{member-import-CM-7fvI2.js → member-import-D5RxoWpQ.js} +1 -1
  103. package/dist/{membership-DhCbt2tn.js → membership--1r5zMgb.js} +2 -2
  104. package/dist/{money-CqQin-8P.js → money-YS0nj9Vy.js} +1 -1
  105. package/dist/{number-VtG8ZWak.js → number-DpfYNS77.js} +1 -1
  106. package/dist/{objectid-ByBBguim.js → objectid-CzMdDxLC.js} +9 -9
  107. package/dist/onboarding-XAuEF8Fv.js +131 -0
  108. package/dist/{onboardingSetup-B-9izpMN.js → onboardingSetup-CKQDFlu9.js} +2 -2
  109. package/dist/{plugins-B2TWkTg5.js → plugins-CO0TBKil.js} +3 -3
  110. package/dist/{reward-B4QDE-hp.js → reward-CfKDiCkk.js} +1 -1
  111. package/dist/{rule-CzZo6Z5G.js → rule-BuuHD_-S.js} +10 -10
  112. package/dist/style.css +1 -1
  113. package/dist/{template-Co9GIfDK.js → template-DYbZtKQg.js} +6 -6
  114. package/dist/{timezone-CXb1Of5W.js → timezone-C64owf7o.js} +1 -1
  115. package/dist/{transaction.fn-D1shYDAp.js → transaction.fn-ClQ1jH9V.js} +2 -2
  116. package/dist/{trigger-D1iPqyua.js → trigger-DUkCFrPG.js} +5 -5
  117. package/dist/{useMarketingMaterialActions-BWrHG4u3.js → useMarketingMaterialActions-CA2iWa32.js} +3 -3
  118. package/dist/{usePagination-vGg6slc_.js → usePagination-BZmMaVcI.js} +1 -1
  119. package/dist/{user-BL1FGfP0.js → user-beTdsIEQ.js} +1 -1
  120. package/dist/{vue-i18n-GqQ0e2Uh.js → vue-i18n-Cfu8S_JC.js} +357 -357
  121. package/dist/{xlsx-No9Jac5G.js → xlsx-BMeHM9By.js} +651 -651
  122. package/dist/{zod-DCljEP8S.js → zod-DTSByurx.js} +1 -1
  123. package/package.json +1 -1
  124. package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-gdvTQM25.js +0 -417
  125. package/dist/Goals-CO8hZIU2.js +0 -244
  126. package/dist/WhatsappBot-Cu1oY_1Y.js +0 -577
  127. package/dist/onboarding-CK20C51K.js +0 -129
@@ -1,4 +1,4 @@
1
- import { i as Z } from "./plugins-B2TWkTg5.js";
1
+ import { i as Z } from "./plugins-CO0TBKil.js";
2
2
  import { h as f } from "vue";
3
3
  function u(e, o) {
4
4
  return e.path.join(".") === o;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-connect",
3
- "version": "0.1.98-beta.76",
3
+ "version": "0.1.98-beta.78",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,417 +0,0 @@
1
- import { defineComponent as T, resolveComponent as k, openBlock as o, createBlock as p, withCtx as Z, createElementVNode as i, unref as e, createVNode as x, ref as w, computed as V, toDisplayString as h, createElementBlock as r, Fragment as L, renderList as R, createCommentVNode as y, normalizeClass as de, isRef as ue } from "vue";
2
- import { u as A } from "./vue-i18n-GqQ0e2Uh.js";
3
- import { useRouter as me } from "vue-router";
4
- import { S as pe } from "./index-DtxAUayi.js";
5
- import "./index-CzvnWHo6.js";
6
- import { n as ee } from "./plugins-B2TWkTg5.js";
7
- import { u as te } from "./business-CvopE1wJ.js";
8
- import { u as U, e as be, i as fe, p as ye, g as ne, o as ge, d as _e, c as ve } from "./onboarding-CK20C51K.js";
9
- import { R as Y } from "./app-DCe_VQSq.js";
10
- const xe = ["aria-label"], M = /* @__PURE__ */ T({
11
- __name: "SectionChip",
12
- props: {
13
- label: {},
14
- tooltip: {}
15
- },
16
- setup(u) {
17
- const { t: P } = A();
18
- return (c, C) => {
19
- const t = k("FmChip"), $ = k("FmTooltip");
20
- return u.tooltip ? (o(), p($, {
21
- key: 0,
22
- variant: "plain",
23
- placement: "top",
24
- content: u.tooltip
25
- }, {
26
- default: Z(() => [
27
- i("button", {
28
- type: "button",
29
- class: "inline-flex fm-corner-radius-md",
30
- "aria-label": e(P)("connect.onboarding.more_about", { section: u.label })
31
- }, [
32
- x(t, {
33
- variant: "plain",
34
- compact: "",
35
- label: u.label,
36
- "right-icon": "help"
37
- }, null, 8, ["label"])
38
- ], 8, xe)
39
- ]),
40
- _: 1
41
- }, 8, ["content"])) : (o(), p(t, {
42
- key: 1,
43
- variant: "plain",
44
- compact: "",
45
- label: u.label
46
- }, null, 8, ["label"]));
47
- };
48
- }
49
- }), he = { class: "flex items-center gap-16 p-24 flex-wrap" }, ke = { class: "flex flex-col gap-4 flex-1 min-w-[200px]" }, Ce = { class: "fm-typo-en-title-sm-800 text-fm-color-typo-primary" }, $e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Fe = {
50
- key: 0,
51
- class: "flex flex-wrap gap-8 mt-4"
52
- }, Se = { class: "flex items-center gap-4" }, Be = {
53
- key: 0,
54
- class: "flex items-center gap-16 px-24 py-16 border-t border-fm-color-neutral-gray-100 flex-wrap"
55
- }, Ie = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex-1" }, Ve = {
56
- key: 1,
57
- class: "flex flex-col"
58
- }, De = { class: "flex flex-col gap-4 flex-1 min-w-0" }, Pe = { class: "flex items-center gap-8 flex-wrap" }, Ge = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Le = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary whitespace-nowrap" }, Ee = {
59
- key: 1,
60
- class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary"
61
- }, Ne = {
62
- key: 0,
63
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[62ch]"
64
- }, Oe = { class: "flex items-center gap-4 shrink-0" }, ct = /* @__PURE__ */ T({
65
- __name: "SetupCard",
66
- props: {
67
- mode: {},
68
- placement: {}
69
- },
70
- emits: ["customise", "next"],
71
- setup(u, { emit: P }) {
72
- const c = u, C = P, { t } = A(), $ = me(), m = U(), E = te(), G = `mf-connect-onboarding-collapsed:${c.placement}`, a = w((() => {
73
- try {
74
- return localStorage.getItem(G) === "1";
75
- } catch {
76
- return !1;
77
- }
78
- })());
79
- function g() {
80
- a.value = !a.value;
81
- try {
82
- localStorage.setItem(G, a.value ? "1" : "0");
83
- } catch {
84
- }
85
- }
86
- const b = V(() => {
87
- const s = m.catalog, f = m.state;
88
- if (!s || !f) return [];
89
- const I = c.mode === "goals" ? be(s, f) : /* @__PURE__ */ new Set();
90
- return m.ids(c.mode).map((d) => s.items.find((S) => S.id === d)).filter((d) => !!d).map((d) => ({
91
- item: d,
92
- title: c.mode === "generic" ? d.genericTitle ?? d.title : d.title,
93
- done: fe(d, f, c.mode),
94
- manual: "manual" in d.doneWhen,
95
- recommended: I.has(d.id),
96
- section: s.sections[d.section],
97
- extra: d.extraSection ? s.sections[d.extraSection] : void 0
98
- }));
99
- }), B = V(() => b.value.length), l = V(() => b.value.filter((s) => s.done).length), F = V(() => B.value > 0 && l.value === B.value), N = V(() => m.minsLeft(c.mode)), _ = V(() => F.value ? t("connect.onboarding.all_set_sub") : l.value > 0 ? t("connect.onboarding.progress_sub", { done: l.value, total: B.value, mins: N.value }) : t(
100
- c.mode === "generic" ? "connect.onboarding.generic_sub" : "connect.onboarding.goals_sub",
101
- { count: B.value, mins: N.value },
102
- B.value
103
- )), D = V(() => {
104
- const s = m.catalog, f = m.state;
105
- return c.mode !== "goals" || !s || !f ? [] : ye(s, f).map((I) => ({ goal: I, ...ne(s, f, I) }));
106
- }), K = V(() => F.value ? t("connect.onboarding.all_set_title") : D.value.length === 1 ? t("connect.onboarding.your_goal", { goal: D.value[0].goal.title }) : D.value.length > 1 ? t("connect.onboarding.your_goals") : t("connect.onboarding.start_here")), j = (s) => !!s && !E.isPremium;
107
- async function z(s) {
108
- try {
109
- await m.patch(s);
110
- } catch {
111
- ee.error(t("connect.onboarding.save_error"), 3e3);
112
- }
113
- }
114
- const oe = (s) => z({ removed: { [s]: !0 } }), le = () => z(c.placement === "analytic" ? { analyticDismissed: !0 } : { goalsDismissed: !0 }), ae = (s) => z({ manualDone: { [s]: !0 } });
115
- function W(s, f) {
116
- const I = m.state;
117
- I && $.push(_e(ve(s, I, c.mode), f));
118
- }
119
- function se() {
120
- c.placement === "analytic" ? $.push({ name: Y["$connect-GOALS"] }) : C("customise");
121
- }
122
- return (s, f) => {
123
- const I = k("FmCircularProgress"), d = k("FmChip"), S = k("FmButton"), ie = k("FmIcon"), ce = k("FmPill"), re = k("FmCard");
124
- return o(), p(re, {
125
- variant: "outlined",
126
- class: "flex flex-col overflow-hidden"
127
- }, {
128
- default: Z(() => [
129
- i("div", he, [
130
- x(I, {
131
- size: "xxl",
132
- class: "shrink-0",
133
- "current-step": e(l),
134
- "total-steps": Math.max(e(B), 1)
135
- }, null, 8, ["current-step", "total-steps"]),
136
- i("div", ke, [
137
- i("span", Ce, h(e(K)), 1),
138
- i("span", $e, h(e(_)), 1),
139
- e(D).length ? (o(), r("div", Fe, [
140
- (o(!0), r(L, null, R(e(D), (n) => (o(), p(d, {
141
- key: n.goal.id,
142
- compact: "",
143
- variant: n.allDone ? "success" : "plain",
144
- label: e(t)("connect.onboarding.goal_progress", { goal: n.goal.title, done: n.done, total: n.total })
145
- }, null, 8, ["variant", "label"]))), 128))
146
- ])) : y("", !0)
147
- ]),
148
- i("div", Se, [
149
- x(S, {
150
- variant: "tertiary",
151
- label: e(t)("connect.onboarding.customise"),
152
- onClick: se
153
- }, null, 8, ["label"]),
154
- x(S, {
155
- variant: "plain",
156
- icon: e(a) ? "keyboard_arrow_down" : "keyboard_arrow_up",
157
- "aria-label": e(a) ? e(t)("connect.onboarding.expand") : e(t)("connect.onboarding.collapse"),
158
- "aria-expanded": !e(a),
159
- onClick: g
160
- }, null, 8, ["icon", "aria-label", "aria-expanded"]),
161
- x(S, {
162
- variant: "plain",
163
- icon: "close",
164
- "aria-label": e(t)("connect.onboarding.hide"),
165
- onClick: le
166
- }, null, 8, ["aria-label"])
167
- ])
168
- ]),
169
- e(a) ? y("", !0) : (o(), r(L, { key: 0 }, [
170
- e(F) ? (o(), r("div", Be, [
171
- i("p", Ie, h(e(t)("connect.onboarding.next_line")), 1),
172
- x(S, {
173
- variant: "primary",
174
- label: e(t)("connect.onboarding.see_next"),
175
- onClick: f[0] || (f[0] = (n) => u.placement === "analytic" ? e($).push({ name: e(Y)["$connect-GOALS"] }) : C("next"))
176
- }, null, 8, ["label"])
177
- ])) : (o(), r("ul", Ve, [
178
- (o(!0), r(L, null, R(e(b), (n) => {
179
- var q, H, J, Q, X;
180
- return o(), r("li", {
181
- key: n.item.id,
182
- 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"
183
- }, [
184
- x(ie, {
185
- name: n.done ? "check_circle" : "radio_button_unchecked",
186
- color: n.done ? "system-success-300" : "neutral-gray-300",
187
- outline: !n.done,
188
- class: "shrink-0"
189
- }, null, 8, ["name", "color", "outline"]),
190
- i("div", De, [
191
- i("div", Pe, [
192
- i("span", Ge, h(n.title), 1),
193
- n.done ? (o(), r("span", Ee, h((H = n.section) == null ? void 0 : H.label), 1)) : (o(), r(L, { key: 0 }, [
194
- n.recommended ? (o(), p(d, {
195
- key: 0,
196
- variant: "info",
197
- compact: "",
198
- label: e(t)("connect.onboarding.recommended")
199
- }, null, 8, ["label"])) : y("", !0),
200
- (q = n.section) != null && q.premium ? (o(), p(ce, {
201
- key: 1,
202
- variant: "premium"
203
- })) : y("", !0),
204
- n.section ? (o(), p(M, {
205
- key: 2,
206
- label: n.section.label,
207
- tooltip: n.section.tooltip
208
- }, null, 8, ["label", "tooltip"])) : y("", !0),
209
- n.extra ? (o(), p(M, {
210
- key: 3,
211
- label: n.extra.label,
212
- tooltip: n.extra.tooltip
213
- }, null, 8, ["label", "tooltip"])) : y("", !0),
214
- i("span", Le, " · " + h(e(t)("connect.onboarding.minutes", { mins: n.item.minutes })), 1)
215
- ], 64))
216
- ]),
217
- n.done ? y("", !0) : (o(), r("p", Ne, h(n.item.why), 1))
218
- ]),
219
- i("div", Oe, [
220
- n.done ? (o(), p(S, {
221
- key: 1,
222
- variant: "tertiary",
223
- label: e(t)("connect.onboarding.open_section", { section: (X = n.section) == null ? void 0 : X.label }),
224
- onClick: (O) => W(n.item, !1)
225
- }, null, 8, ["label", "onClick"])) : (o(), r(L, { key: 0 }, [
226
- j((J = n.section) == null ? void 0 : J.premium) ? (o(), p(S, {
227
- key: 0,
228
- variant: "primary",
229
- label: e(t)("connect.onboarding.upgrade_unlock"),
230
- onClick: f[1] || (f[1] = (O) => e(ge)(e(pe).businessId))
231
- }, null, 8, ["label"])) : y("", !0),
232
- x(S, {
233
- variant: j((Q = n.section) == null ? void 0 : Q.premium) ? "tertiary" : "primary",
234
- label: e(t)("connect.onboarding.set_up"),
235
- onClick: (O) => W(n.item, !0)
236
- }, null, 8, ["variant", "label", "onClick"]),
237
- n.manual ? (o(), p(S, {
238
- key: 1,
239
- variant: "secondary",
240
- label: e(t)("connect.onboarding.mark_done"),
241
- onClick: (O) => ae(n.item.id)
242
- }, null, 8, ["label", "onClick"])) : y("", !0)
243
- ], 64)),
244
- n.done ? y("", !0) : (o(), p(S, {
245
- key: 2,
246
- variant: "plain",
247
- icon: "close",
248
- class: "opacity-0 group-hover:opacity-100 focus:opacity-100 group-focus-within:opacity-100 [@media(hover:none)]:opacity-100",
249
- "aria-label": e(t)("connect.onboarding.remove", { title: n.title }),
250
- onClick: (O) => oe(n.item.id)
251
- }, null, 8, ["aria-label", "onClick"]))
252
- ])
253
- ]);
254
- }), 128))
255
- ]))
256
- ], 64))
257
- ]),
258
- _: 1
259
- });
260
- };
261
- }
262
- }), Re = { class: "flex flex-col gap-24" }, Te = { class: "grid grid-cols-[repeat(auto-fit,minmax(320px,1fr))] xs:grid-cols-1 gap-12" }, Ae = ["aria-checked", "aria-disabled", "onClick"], Ke = { class: "flex flex-col gap-8 min-w-0" }, ze = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Ue = { class: "flex flex-wrap gap-8" }, je = {
263
- key: 0,
264
- class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
265
- }, We = {
266
- key: 1,
267
- class: "flex"
268
- }, qe = { class: "flex items-center gap-12" }, He = /* @__PURE__ */ T({
269
- __name: "GoalPicker",
270
- props: {
271
- modelValue: {},
272
- updating: { type: Boolean }
273
- },
274
- emits: ["update:modelValue", "build", "cancel"],
275
- setup(u, { emit: P }) {
276
- const c = u, C = P, { t } = A(), $ = U(), m = te(), E = V(() => {
277
- const v = $.catalog, a = $.state;
278
- return !v || !a ? [] : v.goals.map((g) => {
279
- const b = ne(v, a, g), l = [
280
- ...new Set(
281
- [...g.coreItemIds, ...g.altItemIds].map((_) => {
282
- var D;
283
- return (D = v.items.find((K) => K.id === _)) == null ? void 0 : D.section;
284
- }).filter((_) => !!_)
285
- )
286
- ].map((_) => v.sections[_]).filter((_) => !!_), F = l.filter((_) => _.premium);
287
- let N = "";
288
- return F.length && !m.isPremium && (N = F.length === l.length ? t("connect.onboarding.premium_nudge_all") : t("connect.onboarding.premium_nudge_some", {
289
- sections: F.map((_) => _.label).join(", ")
290
- })), {
291
- goal: g,
292
- sections: l,
293
- nudge: N,
294
- disabled: b.allDone,
295
- status: b.allDone ? t("connect.onboarding.already_set_up") : b.done > 0 ? t("connect.onboarding.partly_set_up", b) : "",
296
- selected: c.modelValue.includes(g.id)
297
- };
298
- });
299
- });
300
- function G(v, a) {
301
- a || C(
302
- "update:modelValue",
303
- c.modelValue.includes(v) ? c.modelValue.filter((g) => g !== v) : [...c.modelValue, v]
304
- );
305
- }
306
- return (v, a) => {
307
- const g = k("FmIcon"), b = k("FmChip"), B = k("FmButton");
308
- return o(), r("div", Re, [
309
- i("div", Te, [
310
- (o(!0), r(L, null, R(e(E), (l) => (o(), r("button", {
311
- key: l.goal.id,
312
- type: "button",
313
- role: "checkbox",
314
- "aria-checked": l.selected,
315
- "aria-disabled": l.disabled,
316
- class: de(["flex items-start gap-12 p-16 text-left fm-corner-radius-lg border-1 bg-fm-color-neutral-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-fm-color-primary", [
317
- l.selected ? "border-fm-color-primary" : "border-fm-color-neutral-gray-200",
318
- l.disabled ? "opacity-60 cursor-not-allowed" : "cursor-pointer"
319
- ]]),
320
- onClick: (F) => G(l.goal.id, l.disabled)
321
- }, [
322
- x(g, {
323
- name: l.selected ? "check_box" : "check_box_outline_blank",
324
- color: l.selected ? "primary" : "neutral-gray-300",
325
- class: "shrink-0",
326
- "aria-hidden": "true"
327
- }, null, 8, ["name", "color"]),
328
- i("span", Ke, [
329
- i("span", ze, h(l.goal.title), 1),
330
- i("span", Me, h(l.goal.sub), 1),
331
- i("span", Ue, [
332
- (o(!0), r(L, null, R(l.sections, (F) => (o(), p(M, {
333
- key: F.label,
334
- label: F.label
335
- }, null, 8, ["label"]))), 128))
336
- ]),
337
- l.nudge ? (o(), r("span", je, h(l.nudge), 1)) : y("", !0),
338
- l.status ? (o(), r("span", We, [
339
- x(b, {
340
- variant: l.disabled ? "success" : "neutral",
341
- compact: "",
342
- label: l.status
343
- }, null, 8, ["variant", "label"])
344
- ])) : y("", !0)
345
- ])
346
- ], 10, Ae))), 128))
347
- ]),
348
- i("div", qe, [
349
- x(B, {
350
- variant: "primary",
351
- label: u.updating ? e(t)("connect.onboarding.update") : e(t)("connect.onboarding.build"),
352
- disabled: u.modelValue.length === 0,
353
- onClick: a[0] || (a[0] = (l) => C("build"))
354
- }, null, 8, ["label", "disabled"]),
355
- u.updating ? (o(), p(B, {
356
- key: 0,
357
- variant: "tertiary",
358
- label: e(t)("connect.onboarding.cancel"),
359
- onClick: a[1] || (a[1] = (l) => C("cancel"))
360
- }, null, 8, ["label"])) : y("", !0)
361
- ])
362
- ]);
363
- };
364
- }
365
- }), Je = { class: "flex flex-col gap-24 p-32 xs:p-16 border-1 border-fm-color-neutral-gray-100 fm-corner-radius-lg" }, Qe = { class: "flex items-start gap-16" }, Xe = { class: "flex flex-col gap-8 flex-1" }, Ye = { class: "fm-typo-en-title-lg-800 text-fm-color-typo-primary" }, Ze = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-tertiary" }, rt = /* @__PURE__ */ T({
366
- __name: "GoalPickerPanel",
367
- props: {
368
- updating: { type: Boolean },
369
- dismissible: { type: Boolean }
370
- },
371
- emits: ["built", "cancel", "dismiss"],
372
- setup(u, { emit: P }) {
373
- var G;
374
- const c = u, C = P, { t } = A(), $ = U(), m = w([...((G = $.state) == null ? void 0 : G.pickedGoals) ?? []]);
375
- async function E() {
376
- try {
377
- await $.patch({
378
- pickedGoals: m.value,
379
- built: !0,
380
- goalsDismissed: !1,
381
- analyticDismissed: !1
382
- }), C("built");
383
- } catch {
384
- ee.error(t("connect.onboarding.save_error"), 3e3);
385
- }
386
- }
387
- return (v, a) => {
388
- const g = k("FmButton");
389
- return o(), r("section", Je, [
390
- i("div", Qe, [
391
- i("div", Xe, [
392
- i("h2", Ye, h(e(t)("connect.onboarding.picker_title")), 1),
393
- i("p", Ze, h(e(t)("connect.onboarding.picker_intro")), 1)
394
- ]),
395
- c.dismissible ? (o(), p(g, {
396
- key: 0,
397
- variant: "plain",
398
- icon: "close",
399
- "aria-label": e(t)("connect.onboarding.hide"),
400
- onClick: a[0] || (a[0] = (b) => C("dismiss"))
401
- }, null, 8, ["aria-label"])) : y("", !0)
402
- ]),
403
- x(He, {
404
- modelValue: e(m),
405
- "onUpdate:modelValue": a[1] || (a[1] = (b) => ue(m) ? m.value = b : null),
406
- updating: u.updating,
407
- onBuild: E,
408
- onCancel: a[2] || (a[2] = (b) => C("cancel"))
409
- }, null, 8, ["modelValue", "updating"])
410
- ]);
411
- };
412
- }
413
- });
414
- export {
415
- rt as _,
416
- ct as a
417
- };
@@ -1,244 +0,0 @@
1
- import { defineComponent as Z, ref as P, computed as u, onMounted as ee, onBeforeUnmount as te, resolveComponent as g, openBlock as n, createElementBlock as s, Fragment as x, createVNode as p, unref as e, createElementVNode as a, toDisplayString as i, createBlock as v, createCommentVNode as f, renderList as L, withCtx as U } from "vue";
2
- import { h as oe } from "./moment-D7p2TMB-.js";
3
- import { u as ne } from "./vue-i18n-GqQ0e2Uh.js";
4
- import { useRouter as ae } from "vue-router";
5
- import { n as le } from "./plugins-B2TWkTg5.js";
6
- import { u as se, h as ie, p as ce, b as re, r as de, d as me, c as ue } from "./onboarding-CK20C51K.js";
7
- import { _ as pe, a as fe } from "./GoalPickerPanel.vue_vue_type_script_setup_true_lang-gdvTQM25.js";
8
- const ye = { class: "px-24 pb-24 flex flex-col gap-24" }, ve = {
9
- key: 0,
10
- class: "flex justify-center py-40"
11
- }, _e = {
12
- key: 1,
13
- class: "flex flex-col items-start gap-12"
14
- }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = {
15
- key: 2,
16
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
17
- }, xe = {
18
- key: 1,
19
- class: "flex flex-col gap-8"
20
- }, he = { class: "fm-typo-en-title-lg-800 text-fm-color-typo-primary" }, ke = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-tertiary" }, Ce = { class: "flex items-center gap-8 flex-wrap" }, Fe = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, we = { key: 1 }, $e = {
21
- key: 2,
22
- class: "flex items-center gap-8"
23
- }, Be = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, Pe = ["aria-expanded"], Se = { class: "flex flex-col gap-4 flex-1" }, Ie = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, De = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, Ee = {
24
- key: 0,
25
- class: "flex flex-col"
26
- }, Le = { class: "flex flex-col gap-4 flex-1 min-w-0" }, Me = { class: "flex items-center gap-8 flex-wrap" }, Ne = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Ve = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, Ye = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Ge = {
27
- key: 0,
28
- class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary"
29
- }, Oe = { class: "flex flex-col" }, Re = { class: "flex flex-col gap-4 flex-1 min-w-0" }, je = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, ze = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, Ae = { class: "flex items-center gap-12" }, Ze = /* @__PURE__ */ Z({
30
- __name: "Goals",
31
- setup(He) {
32
- const { t: o, locale: M } = ne(), q = ae(), m = se(), h = P(!1), k = P(!1), F = P(!1), S = P(!0), c = u(() => m.catalog), r = u(() => m.state), N = u(() => !!c.value && !!r.value && ie(c.value, r.value)), V = u(() => h.value || !N.value), I = u(() => m.ids("goals")), Y = u(
33
- () => I.value.length > 0 && m.doneCount("goals") === I.value.length
34
- ), G = u(
35
- () => c.value && r.value ? ce(c.value, r.value) : []
36
- ), w = u(() => {
37
- if (!c.value || !r.value) return [];
38
- const d = r.value;
39
- return [...new Set(G.value.flatMap((l) => l.coreItemIds))].filter((l) => d.removed[l]);
40
- }), $ = u(
41
- () => c.value && r.value ? re(c.value, r.value) : []
42
- ), C = u(() => {
43
- if (!c.value || !r.value) return [];
44
- const d = c.value.sections;
45
- return de(c.value, r.value, I.value).map(({ item: l, liveSince: _ }) => {
46
- var b;
47
- return {
48
- item: l,
49
- section: ((b = d[l.section]) == null ? void 0 : b.label) ?? "",
50
- liveSince: _ ? oe(_).format("D MMM YYYY") : ""
51
- };
52
- });
53
- }), J = u(() => F.value ? C.value : C.value.slice(0, 5));
54
- async function D(d) {
55
- try {
56
- return await m.patch(d), !0;
57
- } catch {
58
- return le.error(o("connect.onboarding.save_error"), 3e3), !1;
59
- }
60
- }
61
- function B() {
62
- h.value = !0;
63
- }
64
- const K = () => D({ removed: Object.fromEntries(w.value.map((d) => [d, !1])) }), Q = (d) => D({ added: { [d]: !0 }, removed: { [d]: !1 } });
65
- function T(d) {
66
- var _;
67
- const l = (_ = c.value) == null ? void 0 : _.items.find((b) => b.id === d);
68
- !l || !r.value || q.push(me(ue(l, r.value, "goals"), !1));
69
- }
70
- async function O() {
71
- S.value = !0, await m.read(M.value), S.value = !1;
72
- }
73
- const R = () => {
74
- document.visibilityState === "visible" && m.read(M.value);
75
- };
76
- return ee(() => {
77
- O(), document.addEventListener("visibilitychange", R);
78
- }), te(() => document.removeEventListener("visibilitychange", R)), (d, l) => {
79
- var A;
80
- const _ = g("FmPageHead"), b = g("FmCircularProgress"), y = g("FmButton"), W = g("FmChip"), j = g("FmIcon"), X = g("FmPill"), z = g("FmCard");
81
- return n(), s(x, null, [
82
- p(_, {
83
- title: e(o)("connect.navigation.goals")
84
- }, null, 8, ["title"]),
85
- a("div", ye, [
86
- e(S) && !e(m).loaded ? (n(), s("div", ve, [
87
- p(b, { size: "xl" })
88
- ])) : e(m).loaded ? e(c) ? (n(), s(x, { key: 3 }, [
89
- e(V) ? (n(), v(pe, {
90
- key: String(e(h)),
91
- updating: e(N),
92
- onBuilt: l[0] || (l[0] = (t) => h.value = !1),
93
- onCancel: l[1] || (l[1] = (t) => h.value = !1)
94
- }, null, 8, ["updating"])) : (n(), s("div", xe, [
95
- a("h2", he, i(e(o)("connect.onboarding.list_title")), 1),
96
- a("p", ke, i(e(o)("connect.onboarding.list_intro")), 1)
97
- ])),
98
- e(V) ? f("", !0) : (n(), s(x, { key: 2 }, [
99
- a("div", Ce, [
100
- a("span", Fe, i(e(o)("connect.onboarding.scoped_to")), 1),
101
- (n(!0), s(x, null, L(e(G), (t) => (n(), v(W, {
102
- key: t.id,
103
- variant: "neutral",
104
- compact: "",
105
- label: t.title
106
- }, null, 8, ["label"]))), 128)),
107
- p(y, {
108
- variant: "tertiary",
109
- label: e(o)("connect.onboarding.change_goals"),
110
- onClick: B
111
- }, null, 8, ["label"])
112
- ]),
113
- (A = e(r)) != null && A.goalsDismissed ? (n(), s("div", we, [
114
- p(y, {
115
- variant: "secondary",
116
- label: e(o)("connect.onboarding.show_list"),
117
- onClick: l[2] || (l[2] = (t) => D({ goalsDismissed: !1 }))
118
- }, null, 8, ["label"])
119
- ])) : (n(), v(fe, {
120
- key: 0,
121
- mode: "goals",
122
- placement: "goals",
123
- onCustomise: B,
124
- onNext: B
125
- })),
126
- e(w).length ? (n(), s("div", $e, [
127
- a("span", Be, i(e(o)("connect.onboarding.removed", { count: e(w).length }, e(w).length)), 1),
128
- p(y, {
129
- variant: "tertiary",
130
- size: "md",
131
- label: e(o)("connect.onboarding.add_back"),
132
- onClick: K
133
- }, null, 8, ["label"])
134
- ])) : f("", !0),
135
- e($).length && !e(Y) ? (n(), v(z, {
136
- key: 3,
137
- variant: "outlined",
138
- class: "flex flex-col overflow-hidden"
139
- }, {
140
- default: U(() => [
141
- a("button", {
142
- type: "button",
143
- class: "flex items-center gap-12 px-24 py-16 text-left",
144
- "aria-expanded": e(k),
145
- onClick: l[3] || (l[3] = (t) => k.value = !e(k))
146
- }, [
147
- a("span", Se, [
148
- a("span", Ie, i(e(o)("connect.onboarding.alternatives", { count: e($).length }, e($).length)), 1),
149
- a("span", De, i(e(o)("connect.onboarding.alternatives_hint")), 1)
150
- ]),
151
- p(j, {
152
- name: e(k) ? "keyboard_arrow_up" : "keyboard_arrow_down"
153
- }, null, 8, ["name"])
154
- ], 8, Pe),
155
- e(k) ? (n(), s("ul", Ee, [
156
- (n(!0), s(x, null, L(e($), (t) => {
157
- var E, H;
158
- return n(), s("li", {
159
- key: t.item.id,
160
- class: "flex items-center gap-12 px-24 py-16 border-t border-fm-color-neutral-gray-100"
161
- }, [
162
- a("div", Le, [
163
- a("span", Me, [
164
- a("span", Ne, i(t.item.title), 1),
165
- (E = e(c).sections[t.item.section]) != null && E.premium ? (n(), v(X, {
166
- key: 0,
167
- variant: "premium"
168
- })) : f("", !0)
169
- ]),
170
- a("span", Ve, i((H = e(c).sections[t.item.section]) == null ? void 0 : H.label) + " · " + i(e(o)("connect.onboarding.minutes", { mins: t.item.minutes })) + " · " + i(t.item.altBlurb ?? t.item.why), 1)
171
- ]),
172
- p(y, {
173
- variant: "secondary",
174
- label: e(o)("connect.onboarding.add"),
175
- onClick: (Ue) => Q(t.item.id)
176
- }, null, 8, ["label", "onClick"])
177
- ]);
178
- }), 128))
179
- ])) : f("", !0)
180
- ]),
181
- _: 1
182
- })) : f("", !0),
183
- e(Y) ? (n(), v(z, {
184
- key: 4,
185
- variant: "outlined",
186
- class: "flex flex-col gap-16 p-24"
187
- }, {
188
- default: U(() => [
189
- a("span", Ye, i(e(o)("connect.onboarding.recap_title")), 1),
190
- e(C).length ? f("", !0) : (n(), s("p", Ge, i(e(o)("connect.onboarding.recap_empty")), 1)),
191
- a("ul", Oe, [
192
- (n(!0), s(x, null, L(e(J), (t) => (n(), s("li", {
193
- key: t.item.id,
194
- class: "flex items-center gap-12 py-12 border-t border-fm-color-neutral-gray-100 first:border-t-0"
195
- }, [
196
- p(j, {
197
- name: "check_circle",
198
- color: "system-success-300"
199
- }),
200
- a("div", Re, [
201
- a("span", je, i(t.item.title), 1),
202
- a("span", ze, i(t.liveSince ? e(o)("connect.onboarding.live_since", { section: t.section, date: t.liveSince }) : t.section), 1)
203
- ]),
204
- p(y, {
205
- variant: "tertiary",
206
- label: e(o)("connect.onboarding.open_section", { section: t.section }),
207
- onClick: (E) => T(t.item.id)
208
- }, null, 8, ["label", "onClick"])
209
- ]))), 128))
210
- ]),
211
- a("div", Ae, [
212
- e(C).length > 5 ? (n(), v(y, {
213
- key: 0,
214
- variant: "tertiary",
215
- label: e(F) ? e(o)("connect.onboarding.show_less") : e(o)("connect.onboarding.show_all", { count: e(C).length }),
216
- onClick: l[4] || (l[4] = (t) => F.value = !e(F))
217
- }, null, 8, ["label"])) : f("", !0),
218
- p(y, {
219
- variant: "secondary",
220
- label: e(o)("connect.onboarding.pick_goals"),
221
- onClick: B
222
- }, null, 8, ["label"])
223
- ])
224
- ]),
225
- _: 1
226
- })) : f("", !0)
227
- ], 64))
228
- ], 64)) : (n(), s("p", be, i(e(o)("connect.onboarding.unavailable")), 1)) : (n(), s("div", _e, [
229
- a("p", ge, i(e(m).error ? e(o)("connect.onboarding.load_error") : e(o)("connect.onboarding.unavailable")), 1),
230
- e(m).error ? (n(), v(y, {
231
- key: 0,
232
- variant: "secondary",
233
- label: e(o)("connect.onboarding.retry"),
234
- onClick: O
235
- }, null, 8, ["label"])) : f("", !0)
236
- ]))
237
- ])
238
- ], 64);
239
- };
240
- }
241
- });
242
- export {
243
- Ze as default
244
- };