@feedmepos/mf-connect 0.1.98-beta.77 → 0.1.98-beta.79
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.
- package/dist/{App-py_UovMT.js → App-BffPZGzn.js} +9 -9
- package/dist/{AuditLogs-CBYgZ7FH.js → AuditLogs-D3MEmFSx.js} +12 -12
- package/dist/{Bin-ju8M0hFD.js → Bin-Jw_wcgsC.js} +8 -8
- package/dist/{Broadcast-BTb4ylCq.js → Broadcast-DOw7z6bn.js} +12 -12
- package/dist/{CampaignAnalytic-2D7t722G.js → CampaignAnalytic-XXjhRtfl.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BcyTpZwP.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DkWeDf14.js} +7 -7
- package/dist/{Card-BiWlWZ6x.js → Card-D_rB1X9o.js} +22 -22
- package/dist/{Collections-BPOc6UY8.js → Collections-Da1I5--J.js} +8 -8
- package/dist/{Credit-Bb4wVQoC.js → Credit-DJuBjxVe.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DG2U57X1.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CowFIZ3q.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CCT9ozoB.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-pI1jnJn4.js} +1330 -1227
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CsychcNd.js → EffectSheet.vue_vue_type_style_index_0_lang-BrBy93g0.js} +6 -6
- package/dist/{Experience-DBoDu8Cm.js → Experience-F4_hPy4x.js} +13 -13
- package/dist/{FileSaver.min-daHPgPSL.js → FileSaver.min-C-nhkwVc.js} +1 -1
- package/dist/{Game-BiUvjTES.js → Game-Cfe5gux2.js} +13 -13
- package/dist/{GiftCardSetup-BPGb-CL2.js → GiftCardSetup-CGJCg8-o.js} +10 -10
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-DTHFJbl8.js +424 -0
- package/dist/Goals-WWe3kZ3W.js +247 -0
- package/dist/{Grab-MCcNgCKI.js → Grab-Dr49Cz71.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CM7mxUvJ.js → ImageInput.vue_vue_type_script_setup_true_lang-CPB7kKVu.js} +1 -1
- package/dist/{Index-SjcZ2j_i.js → Index-TsViXhvK.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CV97Pgg_.js → LocationPicker.vue_vue_type_script_setup_true_lang-DmXKvvvk.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BOh6ZIXp.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BgRr2Bu5.js} +1 -1
- package/dist/{LoyaltyDashboard-DEW10zj_.js → LoyaltyDashboard-D-sVA0uB.js} +19 -16
- package/dist/{MainLayout-Qqi3QprJ.js → MainLayout-gSvcU53G.js} +3 -3
- package/dist/{Marketing-Dib60MJ-.js → Marketing-BUsNL2jQ.js} +4 -4
- package/dist/{MarketingMaterialEdit-D_QFXzja.js → MarketingMaterialEdit-DtubIpnt.js} +6 -6
- package/dist/{Member-Dcj7oysp.js → Member-9ng7QgMa.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DrUVoRN4.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-qOMNiTrI.js} +23 -23
- package/dist/{MemberImportHistory-0GNHB9xb.js → MemberImportHistory-BsW3XNAv.js} +7 -7
- package/dist/{MemberList-D1EF36nF.js → MemberList-DUky4ceB.js} +14 -14
- package/dist/{MemberTransactions-N7fyQ8Tu.js → MemberTransactions-Bu-la_J4.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-ChOoxM8X.js → MessageInput.vue_vue_type_script_setup_true_lang-BfLVofJG.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DXaA1dNg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CYqH-qT-.js} +1 -1
- package/dist/{Mission-rZt8vCOe.js → Mission-47XKDAIr.js} +14 -14
- package/dist/{Overview-B0QFLXFh.js → Overview-SDSNOe1_.js} +20 -20
- package/dist/{Overview-A705DkOm.js → Overview-fPy87ZWK.js} +4 -4
- package/dist/{Point-DkkRK7il.js → Point-Biql3Qi5.js} +14 -14
- package/dist/{Promotion-xd-T2-dQ.js → Promotion-CBbBWtke.js} +14 -14
- package/dist/{Queue-CDuCwa_c.js → Queue-DJgqg-cC.js} +12 -12
- package/dist/{Record-BHLRFtLP.js → Record-C6Uzc6pD.js} +9 -9
- package/dist/{Review-DXz6MS9O.js → Review-C2pjn38Z.js} +2 -2
- package/dist/{ReviewFacebookCallback-CM0ivdpZ.js → ReviewFacebookCallback-USPINa9z.js} +5 -5
- package/dist/{ReviewGoogleCallback--a0scVu4.js → ReviewGoogleCallback-Br_CV3Pq.js} +5 -5
- package/dist/{Reward-CiuyrrgK.js → Reward-Bl6TyJoX.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D89D4DjD.js → RewardGroup.vue_vue_type_script_setup_true_lang-DVu2-HRI.js} +13 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Dlw-NQtl.js → RuleGroup.vue_vue_type_script_setup_true_lang-DqnvglII.js} +14 -14
- package/dist/{Segment-DyresHK1.js → Segment-BKBNrfz8.js} +25 -25
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CSXVvOb5.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DLskCbGj.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CoPg1oMO.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BT3-tDl-.js} +4 -4
- package/dist/{Setting-BPK8w0eT.js → Setting-BqbtEU61.js} +15 -14
- package/dist/{SettingAdvertisements-93EXzmkv.js → SettingAdvertisements-DoHnZG47.js} +12 -12
- package/dist/{Settings-CVYiGv6m.js → Settings-HlQyk7g8.js} +5 -5
- package/dist/{Store-3e4b8AjN.js → Store-uexWJZhp.js} +26 -26
- package/dist/{StoreRewards-uWqfpsl6.js → StoreRewards-BbkTRt3c.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DuuNYvYB.js → StoreTransactions.vue_vue_type_script_setup_true_lang-K6q2obBY.js} +24 -24
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DhZ7pGPi.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CRfwFvlQ.js} +2 -2
- package/dist/{Tier-DONSsmtj.js → Tier-DN6l1PvI.js} +26 -26
- package/dist/{Title-Ko5lEmYl.js → Title-4w7I9PNy.js} +22 -22
- package/dist/{Transaction-C5tbK2o8.js → Transaction-BypZ5Cbs.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DfWj1srU.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CVaOiG6q.js} +6 -6
- package/dist/{Voucher-BlWeC-0I.js → Voucher-_kyZ6H17.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Aoq8uF1S.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DbrNDu2d.js} +12 -12
- package/dist/{WhatsappBot-BKmZ77uJ.js → WhatsappBot-CgLUjd8a.js} +2 -2
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D6AoU850.js → ZodTextField.vue_vue_type_script_setup_true_lang-B3BOd7wE.js} +2 -2
- package/dist/{app-Qg5rsLCS.js → app-BUdfgxte.js} +269 -214
- package/dist/app.js +1 -1
- package/dist/{base.export-B1bfW8El.js → base.export-gSYuTgGq.js} +2 -2
- package/dist/{business-BLk60Wa-.js → business-CjYxENvr.js} +1 -1
- package/dist/{campaign-DWP1aWZz.js → campaign-CNYzUQiR.js} +2 -2
- package/dist/{campaign-CGE8f5UN.js → campaign-yvttY7Iz.js} +10 -10
- package/dist/{campaign.fn-B1Yt9BZe.js → campaign.fn-Bsb9ItkF.js} +36 -36
- package/dist/{collection.fn-DwnnquLt.js → collection.fn-0klvp7AD.js} +2 -2
- package/dist/{currency-BXNSzxvj.js → currency-UZt1QX64.js} +1 -1
- package/dist/{duplicateCampaign-DS6X_uLQ.js → duplicateCampaign-CCr4vLrU.js} +2 -2
- package/dist/{effect-B1bo4EpE.js → effect-Dx3ZJxHs.js} +1 -1
- package/dist/{email-addresses-BWq7G9Jn.js → email-addresses-C0cqEsI0.js} +2 -2
- package/dist/{helper-Cy2y7vuV.js → helper-C_jOIHaL.js} +1 -1
- package/dist/{index-CI-HrzbP.js → index--qbL3r5K.js} +3 -3
- package/dist/{index-DAH5yRqP.js → index-9LJ75jOS.js} +7 -7
- package/dist/{index-CY0hT3HV.js → index-BLn35ij4.js} +29 -24
- package/dist/{index-Dgd7zWGJ.js → index-BWnVV310.js} +3 -3
- package/dist/{index-BZsEcvBN.js → index-BhP7DpQu.js} +8 -8
- package/dist/{index-ClWk2SqX.js → index-Bru3cF21.js} +1 -1
- package/dist/{index-B0dYeFs8.js → index-C4cDk-o7.js} +1 -1
- package/dist/{index-DyPtIo3J.js → index-Cb9hrU0J.js} +1 -1
- package/dist/{index-1hK_eYK1.js → index-ChgrDBj1.js} +2 -2
- package/dist/{index-D4nk586_.js → index-D3wRc-GN.js} +4 -4
- package/dist/{index-p9YHYXPf.js → index-D8i3eZnu.js} +1 -1
- package/dist/{index-Boag5HJA.js → index-DWdVixHn.js} +4 -4
- package/dist/{index-CNoVkpQ3.js → index-Dr0sT8uH.js} +2 -2
- package/dist/{index-Swe7a4_X.js → index-Dwrv-CFH.js} +2 -2
- package/dist/{index-B8qRU50F.js → index-DyaRNZLw.js} +1 -1
- package/dist/{index-C33MgGOl.js → index-U9Y--r1N.js} +3 -2
- package/dist/{index-BmElc5NY.js → index-kwMMiU8Z.js} +2 -2
- package/dist/{index-CnTaGkOT.js → index-tS9a8fVh.js} +1 -1
- package/dist/{index-BJvX9rG4.js → index-uNe9XFEK.js} +2 -2
- package/dist/{index.esm2017-BIBRdFdm.js → index.esm2017-DqDs52qt.js} +37 -37
- package/dist/{loading-TDsYUHLu.js → loading-DbSZrkUs.js} +1 -1
- package/dist/{lodash-abgtdmvd.js → lodash-DqWWo2-K.js} +1 -1
- package/dist/{member-import-DeU7DbJW.js → member-import-CoVI5_0P.js} +1 -1
- package/dist/{membership-EZT0X6ed.js → membership-SQa4SZUq.js} +2 -2
- package/dist/{money-B86Qgxua.js → money-Cl_T-LaY.js} +1 -1
- package/dist/{number-Dsl9GWdS.js → number-BOrgnhwZ.js} +1 -1
- package/dist/{objectid-D6mg3XC5.js → objectid-CsDYQ9eX.js} +9 -9
- package/dist/onboarding-BLU2SSrI.js +131 -0
- package/dist/{onboardingSetup-BOLuQWax.js → onboardingSetup-jyeouaTv.js} +2 -2
- package/dist/{plugins-Bhi51Nbd.js → plugins-t_9JTEIa.js} +3 -3
- package/dist/{reward-DUv9YGlz.js → reward-BWunDF4U.js} +1 -1
- package/dist/{rule-DhBVl_w3.js → rule-DyUt0gcn.js} +9 -9
- package/dist/{template-zkPMQqZM.js → template-DNh14IvS.js} +6 -6
- package/dist/{timezone-CyvzaL88.js → timezone-DpCfnolZ.js} +1 -1
- package/dist/{transaction.fn-Dq_IkjHc.js → transaction.fn-D8JhcKmt.js} +2 -2
- package/dist/{trigger-COXS9V0F.js → trigger-DYyQ4d7Z.js} +5 -5
- package/dist/{useMarketingMaterialActions-D6IOmaPj.js → useMarketingMaterialActions-BVzjD61l.js} +3 -3
- package/dist/{usePagination-BC3Nh3fc.js → usePagination-jqXEShKi.js} +1 -1
- package/dist/{user-DEiz-sFG.js → user-Bb-YcUvV.js} +1 -1
- package/dist/{vue-i18n-BkZRNKBM.js → vue-i18n-Bud-ZmQ_.js} +195 -195
- package/dist/{xlsx-DQuDEWD0.js → xlsx-NzYW6kUX.js} +224 -224
- package/dist/{zod-lj0bd2h4.js → zod-DK9AcJ_Q.js} +1 -1
- package/package.json +1 -1
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-Ba0tRqlV.js +0 -417
- package/dist/Goals-Lj7OXqCG.js +0 -244
- package/dist/onboarding-X-5Gm3VM.js +0 -129
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as B, ref as O, onMounted as Q, computed as G, resolveComponent as x, openBlock as d, createElementBlock as b, renderSlot as W, toDisplayString as V, createCommentVNode as f, createBlock as u, unref as e, isRef as q, createVNode as w, normalizeClass as Z, watch as X, withCtx as h, resolveDynamicComponent as P, Fragment as _, createElementVNode as k, createTextVNode as ee } from "vue";
|
|
2
|
-
import { z as te, h as le } from "./app-
|
|
3
|
-
import { Z as r } from "./zod-
|
|
4
|
-
import { j as oe, i as ae } from "./index-
|
|
5
|
-
import { u as I } from "./vue-i18n-
|
|
6
|
-
import { s as g } from "./effect-
|
|
7
|
-
import { p as ne } from "./plugins-
|
|
2
|
+
import { z as te, h as le } from "./app-BUdfgxte.js";
|
|
3
|
+
import { Z as r } from "./zod-DK9AcJ_Q.js";
|
|
4
|
+
import { j as oe, i as ae } from "./index-kwMMiU8Z.js";
|
|
5
|
+
import { u as I } from "./vue-i18n-Bud-ZmQ_.js";
|
|
6
|
+
import { s as g } from "./effect-Dx3ZJxHs.js";
|
|
7
|
+
import { p as ne } from "./plugins-t_9JTEIa.js";
|
|
8
8
|
const ie = { class: "flex flex-col gap-8" }, de = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as q, ref as E, computed as G, onMounted as Y, resolveComponent as m, openBlock as d, createElementBlock as C, Fragment as v, createVNode as s, unref as o, createElementVNode as n, withCtx as b, renderList as z, createBlock as k, resolveDynamicComponent as J, toDisplayString as w, h as x } from "vue";
|
|
2
2
|
import { _ as Q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as W, components as F } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Z } from "./plugins-
|
|
5
|
-
import { u as ee } from "./loading-
|
|
6
|
-
import { u as te } from "./business-
|
|
7
|
-
import { u as oe } from "./campaign-
|
|
8
|
-
import { b as B, c as N, a as ae } from "./campaign-
|
|
9
|
-
import { c as ne, p as re } from "./duplicateCampaign-
|
|
10
|
-
import { u as ie } from "./vue-i18n-
|
|
4
|
+
import { p as Z } from "./plugins-t_9JTEIa.js";
|
|
5
|
+
import { u as ee } from "./loading-DbSZrkUs.js";
|
|
6
|
+
import { u as te } from "./business-CjYxENvr.js";
|
|
7
|
+
import { u as oe } from "./campaign-CNYzUQiR.js";
|
|
8
|
+
import { b as B, c as N, a as ae } from "./campaign-yvttY7Iz.js";
|
|
9
|
+
import { c as ne, p as re } from "./duplicateCampaign-CCr4vLrU.js";
|
|
10
|
+
import { u as ie } from "./vue-i18n-Bud-ZmQ_.js";
|
|
11
11
|
import { _ as se } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
12
|
-
import { _ as ce } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as le } from "./template-
|
|
14
|
-
import "./index-
|
|
15
|
-
import { u as me } from "./onboardingSetup-
|
|
12
|
+
import { _ as ce } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-pI1jnJn4.js";
|
|
13
|
+
import { u as le } from "./template-DNh14IvS.js";
|
|
14
|
+
import "./index-Bru3cF21.js";
|
|
15
|
+
import { u as me } from "./onboardingSetup-jyeouaTv.js";
|
|
16
16
|
import { useRouter as pe } from "vue-router";
|
|
17
|
-
import { c as f } from "./index-
|
|
18
|
-
import { R as ue } from "./app-
|
|
17
|
+
import { c as f } from "./index-Dwrv-CFH.js";
|
|
18
|
+
import { R as ue } from "./app-BUdfgxte.js";
|
|
19
19
|
const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-center justify-between w-full" }, ge = { class: "flex gap-8 overflow-x-auto" }, ye = { class: "space-y-8" }, _e = { class: "flex w-full gap-4 items-center" }, he = { class: "space-y-4" }, we = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ce = { class: "flex items-center gap-8" }, ve = { class: "flex flex-col gap-16 text-center" }, be = { class: "fm-typo-en-title-sm-800" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, He = /* @__PURE__ */ q({
|
|
20
20
|
__name: "Experience",
|
|
21
21
|
setup(Fe) {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as J, ref as A, computed as Q, onMounted as X, resolveComponent as m, openBlock as f, createElementBlock as P, Fragment as R, createVNode as r, unref as o, withCtx as b, createElementVNode as n, toDisplayString as g, renderList as Z, createBlock as V, resolveDynamicComponent as ee, h as l } from "vue";
|
|
2
2
|
import { _ as te } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as oe, components as y } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as ae, p as ne } from "./plugins-
|
|
5
|
-
import { u as ie } from "./loading-
|
|
6
|
-
import { u as re } from "./business-
|
|
7
|
-
import { u as se } from "./campaign-
|
|
8
|
-
import { b as T, c as U, a as le } from "./campaign-
|
|
9
|
-
import { c as ce, p as me } from "./duplicateCampaign-
|
|
4
|
+
import { c as ae, p as ne } from "./plugins-t_9JTEIa.js";
|
|
5
|
+
import { u as ie } from "./loading-DbSZrkUs.js";
|
|
6
|
+
import { u as re } from "./business-CjYxENvr.js";
|
|
7
|
+
import { u as se } from "./campaign-CNYzUQiR.js";
|
|
8
|
+
import { b as T, c as U, a as le } from "./campaign-yvttY7Iz.js";
|
|
9
|
+
import { c as ce, p as me } from "./duplicateCampaign-CCr4vLrU.js";
|
|
10
10
|
import { _ as de } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
11
|
-
import { _ as ue } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as pe } from "./template-
|
|
13
|
-
import { u as fe } from "./vue-i18n-
|
|
14
|
-
import { _ as ge } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import "./index-
|
|
11
|
+
import { _ as ue } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-pI1jnJn4.js";
|
|
12
|
+
import { u as pe } from "./template-DNh14IvS.js";
|
|
13
|
+
import { u as fe } from "./vue-i18n-Bud-ZmQ_.js";
|
|
14
|
+
import { _ as ge } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-DLskCbGj.js";
|
|
15
|
+
import "./index-Bru3cF21.js";
|
|
16
16
|
import { useRouter as ye } from "vue-router";
|
|
17
|
-
import { c as h } from "./index-
|
|
18
|
-
import { R as _e } from "./app-
|
|
17
|
+
import { c as h } from "./index-Dwrv-CFH.js";
|
|
18
|
+
import { R as _e } from "./app-BUdfgxte.js";
|
|
19
19
|
const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Ce = { class: "px-24 flex flex-col gap-y-16" }, ve = { class: "flex items-center justify-between w-full" }, xe = { class: "flex gap-8 overflow-x-auto" }, be = { class: "space-y-8" }, ke = { class: "flex w-full gap-4 items-center" }, Fe = { class: "space-y-4" }, Se = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Re = { class: "flex items-center gap-8" }, Ve = { class: "flex flex-col gap-16 text-center" }, Le = { class: "fm-typo-en-title-sm-800" }, Be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = /* @__PURE__ */ J({
|
|
20
20
|
__name: "Game",
|
|
21
21
|
setup(Ee) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as rt, computed as p, ref as d, onMounted as ct, resolveComponent as x, openBlock as u, createElementBlock as m, unref as e, createBlock as J, createCommentVNode as g, createElementVNode as n, createVNode as r, toDisplayString as s, withCtx as P, isRef as b, Fragment as R, renderList as K, normalizeClass as Y, withDirectives as it, withKeys as dt, vModelText as ut, createTextVNode as de } from "vue";
|
|
2
|
-
import { u as mt } from "./loading-
|
|
2
|
+
import { u as mt } from "./loading-DbSZrkUs.js";
|
|
3
3
|
import { u as ft } from "./app-wDQR6dpb.js";
|
|
4
|
-
import { n as E, f as L } from "./plugins-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { g as ue } from "./index-
|
|
7
|
-
import { c as pt } from "./index-
|
|
8
|
-
import { S as Fe } from "./index-
|
|
9
|
-
import { a as vt } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { n as E, f as L } from "./plugins-t_9JTEIa.js";
|
|
5
|
+
import "./index-Bru3cF21.js";
|
|
6
|
+
import { g as ue } from "./index-D8i3eZnu.js";
|
|
7
|
+
import { c as pt } from "./index-Dwrv-CFH.js";
|
|
8
|
+
import { S as Fe } from "./index-U9Y--r1N.js";
|
|
9
|
+
import { a as vt } from "./MessageInput.vue_vue_type_script_setup_true_lang-BfLVofJG.js";
|
|
10
10
|
import { J as gt } from "./JsonViewer-v8_C7l5N.js";
|
|
11
|
-
import { r as Q, s as Te, t as yt, u as bt, v as _t, G as W, w as xt, x as Ct, y as ke, z as me, A as ht } from "./index-
|
|
12
|
-
import { u as At } from "./vue-i18n-
|
|
11
|
+
import { r as Q, s as Te, t as yt, u as bt, v as _t, G as W, w as xt, x as Ct, y as ke, z as me, A as ht } from "./index-D3wRc-GN.js";
|
|
12
|
+
import { u as At } from "./vue-i18n-Bud-ZmQ_.js";
|
|
13
13
|
import { useRouter as Dt, useRoute as Mt } from "vue-router";
|
|
14
|
-
import { R as Et } from "./app-
|
|
14
|
+
import { R as Et } from "./app-BUdfgxte.js";
|
|
15
15
|
var we = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
|
|
16
16
|
const Ft = { class: "px-24 pb-40" }, Tt = { class: "flex items-start gap-12 py-24" }, kt = { class: "flex flex-col gap-4" }, wt = { class: "fm-typo-en-title-md-800 text-fm-color-typo-primary" }, St = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "flex flex-col gap-16 max-w-[860px]" }, Ut = { class: "flex gap-12" }, Vt = { class: "flex flex-col gap-4" }, It = { class: "fm-typo-en-body-lg-600" }, Pt = { class: "flex gap-12" }, Rt = { class: "flex flex-col gap-4" }, Lt = { class: "fm-typo-en-body-lg-600" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ht = { class: "flex flex-wrap items-start gap-12" }, $t = ["src"], Ot = ["aria-label", "title", "onClick"], Xt = { class: "absolute bottom-4 left-4 px-8 py-2 rounded-sm bg-fm-color-neutral-white fm-typo-en-body-sm-600" }, Bt = { class: "flex gap-12" }, zt = { class: "flex flex-col gap-4" }, jt = { class: "fm-typo-en-body-lg-600" }, Jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-8" }, Wt = ["onClick"], Zt = {
|
|
17
17
|
key: 0,
|
|
@@ -0,0 +1,424 @@
|
|
|
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-Bud-ZmQ_.js";
|
|
3
|
+
import { useRouter as be } from "vue-router";
|
|
4
|
+
import { S as fe } from "./index-U9Y--r1N.js";
|
|
5
|
+
import "./index-Bru3cF21.js";
|
|
6
|
+
import { n as te } from "./plugins-t_9JTEIa.js";
|
|
7
|
+
import { u as ne } from "./business-CjYxENvr.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-BLU2SSrI.js";
|
|
9
|
+
import { R as Z } from "./app-BUdfgxte.js";
|
|
10
|
+
const ke = ["aria-label"], M = /* @__PURE__ */ A({
|
|
11
|
+
__name: "SectionChip",
|
|
12
|
+
props: {
|
|
13
|
+
label: {},
|
|
14
|
+
tooltip: {}
|
|
15
|
+
},
|
|
16
|
+
setup(u) {
|
|
17
|
+
const { t: P } = K();
|
|
18
|
+
return (s, C) => {
|
|
19
|
+
const e = 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: w(() => [
|
|
27
|
+
c("button", {
|
|
28
|
+
type: "button",
|
|
29
|
+
class: "inline-flex fm-corner-radius-md",
|
|
30
|
+
"aria-label": t(P)("connect.onboarding.more_about", { section: u.label })
|
|
31
|
+
}, [
|
|
32
|
+
x(e, {
|
|
33
|
+
variant: "plain",
|
|
34
|
+
compact: "",
|
|
35
|
+
label: u.label,
|
|
36
|
+
"right-icon": "help"
|
|
37
|
+
}, null, 8, ["label"])
|
|
38
|
+
], 8, ke)
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 8, ["content"])) : (o(), p(e, {
|
|
42
|
+
key: 1,
|
|
43
|
+
variant: "plain",
|
|
44
|
+
compact: "",
|
|
45
|
+
label: u.label
|
|
46
|
+
}, null, 8, ["label"]));
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}), Ce = { class: "flex items-center gap-16 p-24 flex-wrap" }, $e = { class: "flex flex-col gap-4 flex-1 min-w-[200px]" }, Fe = { class: "fm-typo-en-title-sm-800 text-fm-color-typo-primary" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Be = {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "flex flex-wrap gap-8 mt-4"
|
|
52
|
+
}, Ie = { class: "flex items-center gap-4" }, Ve = {
|
|
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
|
+
}, De = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex-1" }, Pe = {
|
|
56
|
+
key: 1,
|
|
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 = {
|
|
59
|
+
key: 1,
|
|
60
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary"
|
|
61
|
+
}, Re = {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[62ch]"
|
|
64
|
+
}, Te = { class: "flex items-center gap-4 shrink-0" }, dt = /* @__PURE__ */ A({
|
|
65
|
+
__name: "SetupCard",
|
|
66
|
+
props: {
|
|
67
|
+
mode: {},
|
|
68
|
+
placement: {}
|
|
69
|
+
},
|
|
70
|
+
emits: ["customise", "next"],
|
|
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((() => {
|
|
73
|
+
try {
|
|
74
|
+
return localStorage.getItem(G) === "1";
|
|
75
|
+
} catch {
|
|
76
|
+
return !1;
|
|
77
|
+
}
|
|
78
|
+
})());
|
|
79
|
+
function y() {
|
|
80
|
+
a.value = !a.value;
|
|
81
|
+
try {
|
|
82
|
+
localStorage.setItem(G, a.value ? "1" : "0");
|
|
83
|
+
} catch {
|
|
84
|
+
}
|
|
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();
|
|
90
|
+
return m.ids(s.mode).map((d) => i.items.find((S) => S.id === d)).filter((d) => !!d).map((d) => ({
|
|
91
|
+
item: d,
|
|
92
|
+
title: s.mode === "generic" ? d.genericTitle ?? d.title : d.title,
|
|
93
|
+
done: ge(d, v, s.mode),
|
|
94
|
+
manual: "manual" in d.doneWhen,
|
|
95
|
+
recommended: V.has(d.id),
|
|
96
|
+
section: i.sections[d.section],
|
|
97
|
+
extra: d.extraSection ? i.sections[d.extraSection] : void 0
|
|
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(
|
|
100
|
+
s.mode === "generic" ? "connect.onboarding.generic_sub" : "connect.onboarding.goals_sub",
|
|
101
|
+
{ count: B.value, mins: N.value },
|
|
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;
|
|
107
|
+
async function O(i) {
|
|
108
|
+
try {
|
|
109
|
+
await m.patch(i);
|
|
110
|
+
} catch {
|
|
111
|
+
te.error(e("connect.onboarding.save_error"), 3e3);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const le = (i) => O({ removed: { [i]: !0 } }), W = I(() => s.placement === "analytic" && s.mode === "generic"), ae = () => O(
|
|
115
|
+
W.value ? { generic: "closed" } : s.placement === "analytic" ? { analyticDismissed: !0 } : { goalsDismissed: !0 }
|
|
116
|
+
);
|
|
117
|
+
function se() {
|
|
118
|
+
W.value ? O({ generic: "closed" }) : s.placement === "analytic" ? $.push({ name: Z["$connect-GOALS"] }) : C("next");
|
|
119
|
+
}
|
|
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));
|
|
124
|
+
}
|
|
125
|
+
function ce() {
|
|
126
|
+
s.placement === "analytic" ? $.push({ name: Z["$connect-GOALS"] }) : C("customise");
|
|
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, {
|
|
131
|
+
variant: "outlined",
|
|
132
|
+
class: "flex flex-col overflow-hidden"
|
|
133
|
+
}, {
|
|
134
|
+
default: w(() => [
|
|
135
|
+
c("div", Ce, [
|
|
136
|
+
x(V, {
|
|
137
|
+
size: "xxl",
|
|
138
|
+
class: "shrink-0",
|
|
139
|
+
"current-step": t(l),
|
|
140
|
+
"total-steps": Math.max(t(B), 1)
|
|
141
|
+
}, null, 8, ["current-step", "total-steps"]),
|
|
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, {
|
|
147
|
+
key: n.goal.id,
|
|
148
|
+
compact: "",
|
|
149
|
+
variant: n.allDone ? "success" : "plain",
|
|
150
|
+
label: t(e)("connect.onboarding.goal_progress", { goal: n.goal.title, done: n.done, total: n.total })
|
|
151
|
+
}, null, 8, ["variant", "label"]))), 128))
|
|
152
|
+
])) : f("", !0)
|
|
153
|
+
]),
|
|
154
|
+
c("div", Ie, [
|
|
155
|
+
x(S, {
|
|
156
|
+
variant: "tertiary",
|
|
157
|
+
label: t(e)("connect.onboarding.customise"),
|
|
158
|
+
onClick: ce
|
|
159
|
+
}, null, 8, ["label"]),
|
|
160
|
+
x(S, {
|
|
161
|
+
variant: "plain",
|
|
162
|
+
icon: t(a) ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
163
|
+
"aria-label": t(a) ? t(e)("connect.onboarding.expand") : t(e)("connect.onboarding.collapse"),
|
|
164
|
+
"aria-expanded": !t(a),
|
|
165
|
+
onClick: y
|
|
166
|
+
}, null, 8, ["icon", "aria-label", "aria-expanded"]),
|
|
167
|
+
x(S, {
|
|
168
|
+
variant: "plain",
|
|
169
|
+
icon: "close",
|
|
170
|
+
"aria-label": t(e)("connect.onboarding.hide"),
|
|
171
|
+
onClick: ae
|
|
172
|
+
}, null, 8, ["aria-label"])
|
|
173
|
+
])
|
|
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, {
|
|
179
|
+
variant: "primary",
|
|
180
|
+
label: t(e)("connect.onboarding.see_next"),
|
|
181
|
+
onClick: se
|
|
182
|
+
}, null, 8, ["label"])
|
|
183
|
+
])) : (o(), r("ul", Pe, [
|
|
184
|
+
(o(!0), r(L, null, T(t(b), (n) => {
|
|
185
|
+
var H, J, Q, X, Y;
|
|
186
|
+
return o(), r("li", {
|
|
187
|
+
key: n.item.id,
|
|
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
|
+
}, [
|
|
190
|
+
x(re, {
|
|
191
|
+
name: n.done ? "check_circle" : "radio_button_unchecked",
|
|
192
|
+
color: n.done ? "system-success-300" : "neutral-gray-300",
|
|
193
|
+
outline: !n.done,
|
|
194
|
+
class: "shrink-0"
|
|
195
|
+
}, null, 8, ["name", "color", "outline"]),
|
|
196
|
+
c("div", Ge, [
|
|
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, {
|
|
201
|
+
key: 0,
|
|
202
|
+
variant: "info",
|
|
203
|
+
compact: "",
|
|
204
|
+
label: t(e)("connect.onboarding.recommended")
|
|
205
|
+
}, null, 8, ["label"])) : f("", !0),
|
|
206
|
+
(H = n.section) != null && H.premium ? (o(), p(de, {
|
|
207
|
+
key: 1,
|
|
208
|
+
variant: "premium"
|
|
209
|
+
})) : f("", !0),
|
|
210
|
+
n.section ? (o(), p(M, {
|
|
211
|
+
key: 2,
|
|
212
|
+
label: n.section.label,
|
|
213
|
+
tooltip: n.section.tooltip
|
|
214
|
+
}, null, 8, ["label", "tooltip"])) : f("", !0),
|
|
215
|
+
n.extra ? (o(), p(M, {
|
|
216
|
+
key: 3,
|
|
217
|
+
label: n.extra.label,
|
|
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)
|
|
221
|
+
], 64))
|
|
222
|
+
]),
|
|
223
|
+
n.done ? f("", !0) : (o(), r("p", Re, h(n.item.why), 1))
|
|
224
|
+
]),
|
|
225
|
+
c("div", Te, [
|
|
226
|
+
n.done ? (o(), p(S, {
|
|
227
|
+
key: 1,
|
|
228
|
+
variant: "tertiary",
|
|
229
|
+
label: t(e)("connect.onboarding.open_section", { section: (Y = n.section) == null ? void 0 : Y.label }),
|
|
230
|
+
onClick: (R) => q(n.item, !1)
|
|
231
|
+
}, null, 8, ["label", "onClick"])) : (o(), r(L, { key: 0 }, [
|
|
232
|
+
j((Q = n.section) == null ? void 0 : Q.premium) ? (o(), p(S, {
|
|
233
|
+
key: 0,
|
|
234
|
+
variant: "primary",
|
|
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, {
|
|
239
|
+
variant: j((X = n.section) == null ? void 0 : X.premium) ? "tertiary" : "primary",
|
|
240
|
+
label: t(e)("connect.onboarding.set_up"),
|
|
241
|
+
onClick: (R) => q(n.item, !0)
|
|
242
|
+
}, null, 8, ["variant", "label", "onClick"]),
|
|
243
|
+
n.manual ? (o(), p(S, {
|
|
244
|
+
key: 1,
|
|
245
|
+
variant: "secondary",
|
|
246
|
+
label: t(e)("connect.onboarding.mark_done"),
|
|
247
|
+
onClick: (R) => ie(n.item.id)
|
|
248
|
+
}, null, 8, ["label", "onClick"])) : f("", !0)
|
|
249
|
+
], 64)),
|
|
250
|
+
n.done ? f("", !0) : (o(), p(S, {
|
|
251
|
+
key: 2,
|
|
252
|
+
variant: "plain",
|
|
253
|
+
icon: "close",
|
|
254
|
+
class: "opacity-0 group-hover:opacity-100 focus:opacity-100 group-focus-within:opacity-100 [@media(hover:none)]:opacity-100",
|
|
255
|
+
"aria-label": t(e)("connect.onboarding.remove", { title: n.title }),
|
|
256
|
+
onClick: (R) => le(n.item.id)
|
|
257
|
+
}, null, 8, ["aria-label", "onClick"]))
|
|
258
|
+
])
|
|
259
|
+
]);
|
|
260
|
+
}), 128))
|
|
261
|
+
]))
|
|
262
|
+
], 64))
|
|
263
|
+
]),
|
|
264
|
+
_: 1
|
|
265
|
+
});
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
}), Ae = { class: "flex flex-col gap-24" }, Ke = { class: "grid grid-cols-[repeat(auto-fit,minmax(320px,1fr))] xs:grid-cols-1 gap-12" }, ze = ["aria-checked", "aria-disabled", "onClick"], Me = { class: "flex flex-col gap-8 min-w-0" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, je = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, We = { class: "flex flex-wrap gap-8" }, qe = {
|
|
269
|
+
key: 0,
|
|
270
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
271
|
+
}, He = {
|
|
272
|
+
key: 1,
|
|
273
|
+
class: "flex"
|
|
274
|
+
}, Je = { class: "flex items-center gap-12" }, Qe = /* @__PURE__ */ A({
|
|
275
|
+
__name: "GoalPicker",
|
|
276
|
+
props: {
|
|
277
|
+
modelValue: {},
|
|
278
|
+
updating: { type: Boolean }
|
|
279
|
+
},
|
|
280
|
+
emits: ["update:modelValue", "build", "cancel"],
|
|
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 = [
|
|
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)
|
|
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,
|
|
298
|
+
sections: l,
|
|
299
|
+
nudge: N,
|
|
300
|
+
// 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)
|
|
304
|
+
};
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
function G(_, a) {
|
|
308
|
+
a || C(
|
|
309
|
+
"update:modelValue",
|
|
310
|
+
s.modelValue.includes(_) ? s.modelValue.filter((y) => y !== _) : [...s.modelValue, _]
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
return (_, a) => {
|
|
314
|
+
const y = k("FmIcon"), b = k("FmChip"), B = k("FmButton");
|
|
315
|
+
return o(), r("div", Ae, [
|
|
316
|
+
c("div", Ke, [
|
|
317
|
+
(o(!0), r(L, null, T(t(E), (l) => (o(), r("button", {
|
|
318
|
+
key: l.goal.id,
|
|
319
|
+
type: "button",
|
|
320
|
+
role: "checkbox",
|
|
321
|
+
"aria-checked": l.selected,
|
|
322
|
+
"aria-disabled": l.disabled,
|
|
323
|
+
class: me(["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", [
|
|
324
|
+
l.selected ? "border-fm-color-primary" : "border-fm-color-neutral-gray-200",
|
|
325
|
+
l.disabled ? "opacity-60 cursor-not-allowed" : "cursor-pointer"
|
|
326
|
+
]]),
|
|
327
|
+
onClick: (F) => G(l.goal.id, l.disabled)
|
|
328
|
+
}, [
|
|
329
|
+
x(y, {
|
|
330
|
+
name: l.selected ? "check_box" : "check_box_outline_blank",
|
|
331
|
+
color: l.selected ? "primary" : "neutral-gray-300",
|
|
332
|
+
class: "shrink-0",
|
|
333
|
+
"aria-hidden": "true"
|
|
334
|
+
}, null, 8, ["name", "color"]),
|
|
335
|
+
c("span", Me, [
|
|
336
|
+
c("span", Ue, h(l.goal.title), 1),
|
|
337
|
+
c("span", je, h(l.goal.sub), 1),
|
|
338
|
+
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))
|
|
343
|
+
]),
|
|
344
|
+
l.nudge ? (o(), r("span", qe, h(l.nudge), 1)) : f("", !0),
|
|
345
|
+
l.status ? (o(), r("span", He, [
|
|
346
|
+
x(b, {
|
|
347
|
+
variant: l.disabled ? "success" : "neutral",
|
|
348
|
+
compact: "",
|
|
349
|
+
label: l.status
|
|
350
|
+
}, null, 8, ["variant", "label"])
|
|
351
|
+
])) : f("", !0)
|
|
352
|
+
])
|
|
353
|
+
], 10, ze))), 128))
|
|
354
|
+
]),
|
|
355
|
+
c("div", Je, [
|
|
356
|
+
x(B, {
|
|
357
|
+
variant: "primary",
|
|
358
|
+
label: u.updating ? t(e)("connect.onboarding.update") : t(e)("connect.onboarding.build"),
|
|
359
|
+
disabled: u.modelValue.length === 0,
|
|
360
|
+
onClick: a[0] || (a[0] = (l) => C("build"))
|
|
361
|
+
}, null, 8, ["label", "disabled"]),
|
|
362
|
+
u.updating ? (o(), p(B, {
|
|
363
|
+
key: 0,
|
|
364
|
+
variant: "tertiary",
|
|
365
|
+
label: t(e)("connect.onboarding.cancel"),
|
|
366
|
+
onClick: a[1] || (a[1] = (l) => C("cancel"))
|
|
367
|
+
}, null, 8, ["label"])) : f("", !0)
|
|
368
|
+
])
|
|
369
|
+
]);
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
}), Xe = { class: "flex flex-col gap-24 p-32 xs:p-16 border-1 border-fm-color-neutral-gray-100 fm-corner-radius-lg" }, Ye = { class: "flex items-start gap-16" }, Ze = { class: "flex flex-col gap-8 flex-1" }, we = { class: "fm-typo-en-title-lg-800 text-fm-color-typo-primary" }, et = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-tertiary" }, ut = /* @__PURE__ */ A({
|
|
373
|
+
__name: "GoalPickerPanel",
|
|
374
|
+
props: {
|
|
375
|
+
updating: { type: Boolean },
|
|
376
|
+
dismissible: { type: Boolean }
|
|
377
|
+
},
|
|
378
|
+
emits: ["built", "cancel", "dismiss"],
|
|
379
|
+
setup(u, { emit: P }) {
|
|
380
|
+
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() {
|
|
383
|
+
try {
|
|
384
|
+
await $.patch({
|
|
385
|
+
pickedGoals: m.value,
|
|
386
|
+
built: !0,
|
|
387
|
+
goalsDismissed: !1,
|
|
388
|
+
analyticDismissed: !1
|
|
389
|
+
}), C("built");
|
|
390
|
+
} catch {
|
|
391
|
+
te.error(e("connect.onboarding.save_error"), 3e3);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
return (_, a) => {
|
|
395
|
+
const y = k("FmButton");
|
|
396
|
+
return o(), r("section", Xe, [
|
|
397
|
+
c("div", Ye, [
|
|
398
|
+
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)
|
|
401
|
+
]),
|
|
402
|
+
s.dismissible ? (o(), p(y, {
|
|
403
|
+
key: 0,
|
|
404
|
+
variant: "plain",
|
|
405
|
+
icon: "close",
|
|
406
|
+
"aria-label": t(e)("connect.onboarding.hide"),
|
|
407
|
+
onClick: a[0] || (a[0] = (b) => C("dismiss"))
|
|
408
|
+
}, null, 8, ["aria-label"])) : f("", !0)
|
|
409
|
+
]),
|
|
410
|
+
x(Qe, {
|
|
411
|
+
modelValue: t(m),
|
|
412
|
+
"onUpdate:modelValue": a[1] || (a[1] = (b) => pe(m) ? m.value = b : null),
|
|
413
|
+
updating: u.updating,
|
|
414
|
+
onBuild: E,
|
|
415
|
+
onCancel: a[2] || (a[2] = (b) => C("cancel"))
|
|
416
|
+
}, null, 8, ["modelValue", "updating"])
|
|
417
|
+
]);
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
export {
|
|
422
|
+
ut as _,
|
|
423
|
+
dt as a
|
|
424
|
+
};
|