@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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { defineStore as T } from "pinia";
|
|
2
|
+
import { ref as R, computed as h } from "vue";
|
|
3
|
+
import { g as A, b as _, S as G } from "./index-U9Y--r1N.js";
|
|
4
|
+
import { F as U, a as $ } from "./index-BLn35ij4.js";
|
|
5
|
+
import { R as i } from "./app-BUdfgxte.js";
|
|
6
|
+
const S = (e) => _(`businesses/${e}/onboarding`), N = {
|
|
7
|
+
async read(e, n) {
|
|
8
|
+
const s = await S(e).get("", {
|
|
9
|
+
params: { locale: n }
|
|
10
|
+
});
|
|
11
|
+
return U.parse(A(s));
|
|
12
|
+
},
|
|
13
|
+
async patch(e, n) {
|
|
14
|
+
const s = await S(e).patch("", n);
|
|
15
|
+
return $.parse(A(s));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var w = { 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/" };
|
|
19
|
+
const y = {
|
|
20
|
+
VOUCHER_WELCOME: i["$connect-CAMPAIGN_VOUCHER"],
|
|
21
|
+
VOUCHER_SPEND_MORE: i["$connect-CAMPAIGN_VOUCHER"],
|
|
22
|
+
VOUCHER_WIN_BACK: i["$connect-CAMPAIGN_VOUCHER"],
|
|
23
|
+
PROMOTION_CUSTOM: i["$connect-CAMPAIGN_PROMOTION"],
|
|
24
|
+
TIER: i["$connect-PROGRAM_TIER"],
|
|
25
|
+
EXPERIENCE: i["$connect-PROGRAM_EXPERIENCE"],
|
|
26
|
+
POINT_SPEND_EARN: i["$connect-PROGRAM_POINT"],
|
|
27
|
+
MISSION: i["$connect-PROGRAM_MISSION"],
|
|
28
|
+
STORE: i["$connect-STORE"],
|
|
29
|
+
BROADCAST: i["$connect-CAMPAIGN_BROADCAST"],
|
|
30
|
+
MARKETING: i["$connect-MARKETING"],
|
|
31
|
+
REVIEW: i["$connect-REVIEW"],
|
|
32
|
+
REFERRAL: i["$connect-REFERRAL"]
|
|
33
|
+
}, k = /* @__PURE__ */ new Set(["STORE", "MARKETING", "REVIEW", "REFERRAL"]), j = (e, n = !0) => ({
|
|
34
|
+
name: y[e],
|
|
35
|
+
query: n && !k.has(e) ? { setup: e } : {}
|
|
36
|
+
}), z = (e) => window.open(`${w.licensePortalUrl}settings?businessId=${e}`, "_blank"), L = (e, n, s) => "manual" in e ? !!s.manualDone[n.id] : e.all.every((c) => !!s.facts[c]), I = (e, n, s) => L(s === "generic" ? e.genericDoneWhen ?? e.doneWhen : e.doneWhen, e, n), V = (e, n, s) => {
|
|
37
|
+
const c = new Set(e.items.map((o) => o.id));
|
|
38
|
+
if (s === "generic" || !P(e, n))
|
|
39
|
+
return e.genericItemIds.filter((o) => c.has(o) && !n.removed[o]);
|
|
40
|
+
const t = [], a = (o) => {
|
|
41
|
+
c.has(o) && !t.includes(o) && !n.removed[o] && t.push(o);
|
|
42
|
+
};
|
|
43
|
+
return E(e, n).forEach((o) => {
|
|
44
|
+
o.coreItemIds.forEach(a), o.altItemIds.filter((u) => n.added[u]).forEach(a);
|
|
45
|
+
}), t;
|
|
46
|
+
}, E = (e, n) => e.goals.filter((s) => n.pickedGoals.includes(s.id)), P = (e, n) => n.built && E(e, n).length > 0, W = (e) => Object.keys(e.facts).length > 0 || Object.keys(e.manualDone).length > 0, Q = (e, n) => P(e, n) ? "goals" : n.generic === "active" ? "generic" : W(n) || n.generic === "closed" ? "picker" : "generic", Y = (e, n) => {
|
|
47
|
+
const s = /* @__PURE__ */ new Set();
|
|
48
|
+
return E(e, n).flatMap(
|
|
49
|
+
(c) => c.altItemIds.filter((t) => !(n.added[t] && !n.removed[t]) && !s.has(t) && s.add(t)).map((t) => ({ goal: c, item: e.items.find((a) => a.id === t) })).filter(
|
|
50
|
+
(t) => !!t.item && !I(t.item, n, "goals")
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
}, Z = (e, n) => new Set(E(e, n).flatMap((s) => s.altItemIds.length ? s.coreItemIds : [])), F = (e, n, s, c) => s.map((t) => e.items.find((a) => a.id === t)).filter((t) => !!t && !I(t, n, c)).reduce((t, a) => t + a.minutes, 0), J = (e, n, s) => {
|
|
54
|
+
const c = (m) => m.map((g) => e.items.find((p) => p.id === g)).filter((g) => !!g), t = c(s.coreItemIds), a = t.filter((m) => I(m, n, "goals")).length, o = t.length > 0 && a === t.length, u = c(s.altItemIds).filter((m) => !I(m, n, "goals")).length;
|
|
55
|
+
return { done: a, total: t.length, allDone: o, remaining: u, exhausted: o && u === 0 };
|
|
56
|
+
}, ee = (e, n, s) => s === "generic" && e.destinationAfter && n.facts[e.destinationAfter.fact] ? e.destinationAfter.destination : e.destination, ne = (e, n, s) => {
|
|
57
|
+
const c = (t) => "manual" in t.doneWhen ? n.manualDone[t.id] : t.doneWhen.all.map((a) => n.liveSince[a] ?? n.facts[a]).sort().at(-1);
|
|
58
|
+
return s.map((t) => e.items.find((a) => a.id === t)).filter((t) => !!t && I(t, n, "goals")).map((t) => ({ item: t, liveSince: c(t) })).sort((t, a) => {
|
|
59
|
+
var o, u;
|
|
60
|
+
return (((o = a.liveSince) == null ? void 0 : o.getTime()) ?? 0) - (((u = t.liveSince) == null ? void 0 : u.getTime()) ?? 0);
|
|
61
|
+
});
|
|
62
|
+
}, H = (e, n, s = /* @__PURE__ */ new Date()) => {
|
|
63
|
+
const c = {
|
|
64
|
+
...e,
|
|
65
|
+
added: { ...e.added, ...n.added },
|
|
66
|
+
removed: { ...e.removed, ...n.removed },
|
|
67
|
+
manualDone: { ...e.manualDone }
|
|
68
|
+
};
|
|
69
|
+
return ["pickedGoals", "built", "analyticDismissed", "goalsDismissed", "generic"].forEach((t) => {
|
|
70
|
+
n[t] !== void 0 && (c[t] = n[t]);
|
|
71
|
+
}), Object.entries(n.manualDone ?? {}).forEach(([t, a]) => {
|
|
72
|
+
a ? c.manualDone[t] = s : delete c.manualDone[t];
|
|
73
|
+
}), c;
|
|
74
|
+
}, te = T("mf-connect-onboarding", () => {
|
|
75
|
+
const e = R(null), n = R(null), s = /* @__PURE__ */ new Map(), c = R(null), t = h(
|
|
76
|
+
() => e.value && e.value.businessId === c.value ? e.value : null
|
|
77
|
+
), a = h(() => {
|
|
78
|
+
var r;
|
|
79
|
+
return ((r = t.value) == null ? void 0 : r.catalog) ?? null;
|
|
80
|
+
}), o = h(() => {
|
|
81
|
+
var r;
|
|
82
|
+
return ((r = t.value) == null ? void 0 : r.state) ?? null;
|
|
83
|
+
});
|
|
84
|
+
let u = "en-US";
|
|
85
|
+
const m = (r, l = G.getBusinessId()) => {
|
|
86
|
+
if (!l) return Promise.resolve();
|
|
87
|
+
u = r, c.value = l;
|
|
88
|
+
const f = s.get(l);
|
|
89
|
+
if (f) return f;
|
|
90
|
+
const v = N.read(l, r).then((d) => {
|
|
91
|
+
c.value === l && (e.value = { ...d, businessId: l }, n.value = null);
|
|
92
|
+
}).catch((d) => {
|
|
93
|
+
c.value === l && (n.value = d);
|
|
94
|
+
}).finally(() => s.delete(l));
|
|
95
|
+
return s.set(l, v), v;
|
|
96
|
+
}, g = async (r) => {
|
|
97
|
+
var v;
|
|
98
|
+
const l = t.value;
|
|
99
|
+
if (!l) return;
|
|
100
|
+
const f = l.businessId;
|
|
101
|
+
e.value = { ...l, state: H(l.state, r) };
|
|
102
|
+
try {
|
|
103
|
+
const d = await N.patch(f, r);
|
|
104
|
+
((v = e.value) == null ? void 0 : v.businessId) === f && (e.value = { ...e.value, state: d });
|
|
105
|
+
} catch (d) {
|
|
106
|
+
throw await m(u, f), d;
|
|
107
|
+
}
|
|
108
|
+
}, p = (r) => a.value && o.value ? V(a.value, o.value, r) : [], O = (r) => {
|
|
109
|
+
if (!a.value || !o.value) return 0;
|
|
110
|
+
const l = a.value.items, f = o.value;
|
|
111
|
+
return p(r).filter((v) => {
|
|
112
|
+
const d = l.find((M) => M.id === v);
|
|
113
|
+
return !!d && I(d, f, r);
|
|
114
|
+
}).length;
|
|
115
|
+
}, b = (r) => a.value && o.value ? F(a.value, o.value, p(r), r) : 0, C = h(() => p("goals").length - O("goals")), D = h(() => !!t.value);
|
|
116
|
+
return { catalog: a, state: o, loaded: D, error: n, read: m, patch: g, ids: p, doneCount: O, minsLeft: b, goalsRemaining: C };
|
|
117
|
+
});
|
|
118
|
+
export {
|
|
119
|
+
Q as a,
|
|
120
|
+
Y as b,
|
|
121
|
+
ee as c,
|
|
122
|
+
j as d,
|
|
123
|
+
Z as e,
|
|
124
|
+
J as g,
|
|
125
|
+
P as h,
|
|
126
|
+
I as i,
|
|
127
|
+
z as o,
|
|
128
|
+
E as p,
|
|
129
|
+
ne as r,
|
|
130
|
+
te as u
|
|
131
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRouter as o } from "vue-router";
|
|
2
|
-
import { b as u } from "./index-
|
|
3
|
-
import { u as n } from "./campaign-
|
|
2
|
+
import { b as u } from "./index-BLn35ij4.js";
|
|
3
|
+
import { u as n } from "./campaign-CNYzUQiR.js";
|
|
4
4
|
const l = () => {
|
|
5
5
|
const s = o(), r = n();
|
|
6
6
|
return { consume: async () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as fe, v as ge, x as Ee, w as Ie, y as Fe } from "./index.esm2017-
|
|
1
|
+
import { u as fe, v as ge, x as Ee, w as Ie, y as Fe } from "./index.esm2017-DqDs52qt.js";
|
|
2
2
|
import { u as oe } from "./app-wDQR6dpb.js";
|
|
3
|
-
import { e as Ae, Z as O, d as de, i as ke, z as De } from "./app-
|
|
3
|
+
import { e as Ae, Z as O, d as de, i as ke, z as De } from "./app-BUdfgxte.js";
|
|
4
4
|
import { detectLocale as Te, createFeedMeI18n as Ke } from "@feedmepos/mf-common";
|
|
5
|
-
import { S as k } from "./index-
|
|
5
|
+
import { S as k } from "./index-U9Y--r1N.js";
|
|
6
6
|
var b = [];
|
|
7
7
|
for (var ee = 0; ee < 256; ++ee)
|
|
8
8
|
b.push((ee + 256).toString(16).slice(1));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as Fe, o as Ze } from "./index-
|
|
1
|
+
import { n as Fe, o as Ze } from "./index-kwMMiU8Z.js";
|
|
2
2
|
import { h as _ } from "./moment-D7p2TMB-.js";
|
|
3
3
|
import { a as pe, b as N, c as y } from "./tslib.es6-BCqqvLQ_.js";
|
|
4
|
-
import { u as re } from "./membership-
|
|
5
|
-
import { R as K, i as he } from "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
4
|
+
import { u as re } from "./membership-SQa4SZUq.js";
|
|
5
|
+
import { R as K, i as he } from "./index-9LJ75jOS.js";
|
|
6
|
+
import "./index-D3wRc-GN.js";
|
|
7
|
+
import "./index-BWnVV310.js";
|
|
8
|
+
import "./index-DWdVixHn.js";
|
|
9
|
+
import "./index-Dr0sT8uH.js";
|
|
10
|
+
import "./index-BLn35ij4.js";
|
|
11
11
|
import "./index-BgECjFM0.js";
|
|
12
|
-
import { u as Ge } from "./business-
|
|
12
|
+
import { u as Ge } from "./business-CjYxENvr.js";
|
|
13
13
|
var fe = [
|
|
14
14
|
"MO",
|
|
15
15
|
"TU",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as V, openBlock as r, createBlock as C, resolveDynamicComponent as B, unref as e, ref as E, computed as j, onMounted as P, resolveComponent as d, withCtx as u, createElementVNode as l, createElementBlock as w, createVNode as a, normalizeClass as k, createTextVNode as S, toDisplayString as f, Fragment as L, renderList as N, createCommentVNode as q } from "vue";
|
|
2
|
-
import { u as J } from "./campaign-
|
|
2
|
+
import { u as J } from "./campaign-CNYzUQiR.js";
|
|
3
3
|
import { useDialog as M } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as A } from "./index-
|
|
5
|
-
import { _ as G } from "./lodash-
|
|
6
|
-
import { C as H } from "./campaign-
|
|
4
|
+
import { F as A } from "./index-9LJ75jOS.js";
|
|
5
|
+
import { _ as G } from "./lodash-DqWWo2-K.js";
|
|
6
|
+
import { C as H } from "./campaign-yvttY7Iz.js";
|
|
7
7
|
import { J as K } from "./JsonViewer-v8_C7l5N.js";
|
|
8
|
-
import { u as Q } from "./vue-i18n-
|
|
9
|
-
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as Q } from "./vue-i18n-Bud-ZmQ_.js";
|
|
9
|
+
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-pI1jnJn4.js";
|
|
10
10
|
const U = /* @__PURE__ */ V({
|
|
11
11
|
__name: "CampaignChip",
|
|
12
12
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import { s as u } from "./index-
|
|
1
|
+
import "./index-D3wRc-GN.js";
|
|
2
|
+
import { s as u } from "./index-Cb9hrU0J.js";
|
|
3
3
|
function i(l) {
|
|
4
4
|
var c, f;
|
|
5
5
|
const e = (c = l.metadata) == null ? void 0 : c.operator, t = typeof e == "string" ? e : [e == null ? void 0 : e.name, e == null ? void 0 : e.phoneNumber, e == null ? void 0 : e.email].filter(Boolean).join(" / ") || (e == null ? void 0 : e.uid);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as u, createBlock as p, unref as r } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { R as i } from "./index-
|
|
4
|
-
import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { c as e, C as d } from "./index-
|
|
6
|
-
import { i as n } from "./plugins-
|
|
2
|
+
import "./index-kwMMiU8Z.js";
|
|
3
|
+
import { R as i } from "./index-9LJ75jOS.js";
|
|
4
|
+
import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-DqnvglII.js";
|
|
5
|
+
import { c as e, C as d } from "./index-DWdVixHn.js";
|
|
6
|
+
import { i as n } from "./plugins-t_9JTEIa.js";
|
|
7
7
|
const L = /* @__PURE__ */ m({
|
|
8
8
|
__name: "BillRuleGroup",
|
|
9
9
|
props: {
|
package/dist/{useMarketingMaterialActions-D6IOmaPj.js → useMarketingMaterialActions-BVzjD61l.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as o, g as c, b } from "./index-
|
|
2
|
-
import { u as w } from "./vue-i18n-
|
|
1
|
+
import { S as o, g as c, b } from "./index-U9Y--r1N.js";
|
|
2
|
+
import { u as w } from "./vue-i18n-Bud-ZmQ_.js";
|
|
3
3
|
import { useSnackbar as h } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as k } from "./plugins-
|
|
4
|
+
import { c as k } from "./plugins-t_9JTEIa.js";
|
|
5
5
|
const l = (e) => b(`businesses/${e}/marketing-materials`), D = {
|
|
6
6
|
async createMarketingMaterial(e) {
|
|
7
7
|
const a = o.getBusinessId();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as P, computed as v, ref as w, onMounted as $, watch as M, resolveComponent as D, openBlock as u, createElementBlock as p, createVNode as r, unref as n, createElementVNode as s, createCommentVNode as N, toDisplayString as b } from "vue";
|
|
2
2
|
import { _ as S } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
|
|
3
|
-
import { l as E } from "./lodash-
|
|
3
|
+
import { l as E } from "./lodash-DqWWo2-K.js";
|
|
4
4
|
const R = { class: "" }, A = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "w-full flex flex-col gap-16 items-center py-16"
|