@feedmepos/mf-connect 0.1.117-prod → 0.1.118-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -1
- package/dist/{App-CAo1izHr.js → App-CBFNBDb2.js} +435 -418
- package/dist/AuditLogs-BtSA8b08.js +2016 -0
- package/dist/{Bin-DDDfjisJ.js → Bin-CjmS_Tfn.js} +8 -8
- package/dist/{Broadcast-BsCulZhE.js → Broadcast-BeePmZa1.js} +22 -21
- package/dist/{CampaignAnalytic-CnVYFSkT.js → CampaignAnalytic-CZlnyvOi.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZTHyZ_0y.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Du3Ah4HP.js} +9 -9
- package/dist/{Card-DPyQH9qZ.js → Card-C8SzQQ0z.js} +25 -24
- package/dist/{Collections-CZCVA969.js → Collections-BXNWTSZH.js} +197 -185
- package/dist/{Credit-BTg364-i.js → Credit-CK0-0yD1.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BJx8K6Ja.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BXYpYC7Y.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CdpnNDzR.js +4439 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CfEnSXzg.js → EffectSheet.vue_vue_type_style_index_0_lang--Oyj3KYg.js} +32 -32
- package/dist/{Experience-Bk_eUcSX.js → Experience-CWJaj62g.js} +32 -31
- package/dist/{FileSaver.min-CXFiZAp7.js → FileSaver.min-lV9H82L5.js} +1 -1
- package/dist/{Game-CBnKpFdl.js → Game-zBV1LYAg.js} +19 -18
- package/dist/{GiftCardSetup-q75wNV_F.js → GiftCardSetup-Cnq9353j.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Cga0Th2O.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CdgSBdrX.js} +7 -7
- package/dist/{Goals-Bbbgurfd.js → Goals-Utk08egN.js} +4 -4
- package/dist/Grab-DwMmWmbT.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js → ImageInput.vue_vue_type_script_setup_true_lang-CNPeU9xm.js} +1 -1
- package/dist/{Index-C8_OWllb.js → Index-Bjgs18xf.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BlCg-jI7.js → LocationPicker.vue_vue_type_script_setup_true_lang-DWnf4lXH.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CACxChIo.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dy_oWJaZ.js} +1 -1
- package/dist/{LoyaltyDashboard-DJlE0371.js → LoyaltyDashboard-DmUfujX_.js} +15 -15
- package/dist/MainLayout-DlDZQJfy.js +4 -0
- package/dist/{MainLayout-Bs2UPvFx.js → MainLayout.vue_vue_type_script_setup_true_lang-yAflY70k.js} +5 -4
- package/dist/Marketing-B0iKlHP-.js +269 -0
- package/dist/MarketingMaterialEdit-BNHxVb8A.js +1037 -0
- package/dist/{Member-C4yqwsMH.js → Member-Bcm3_pWB.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbumjyC_.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CPp4OpOx.js} +43 -50
- package/dist/{MemberImportHistory-CbuXCdxC.js → MemberImportHistory-AQgLzB3g.js} +7 -7
- package/dist/{MemberList-CpAepPBe.js → MemberList-CkMTo2uD.js} +103 -105
- package/dist/{MemberTransactions-BbpXvsSk.js → MemberTransactions-CxLCVjvw.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BaWgxbad.js → MessageInput.vue_vue_type_script_setup_true_lang-4N20f8Sj.js} +14 -14
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CEgMElLo.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DghbYpSQ.js} +1 -1
- package/dist/{Mission-Bdb9KVeP.js → Mission-CQS1CoDN.js} +22 -21
- package/dist/{Overview-CEiyGMcf.js → Overview-NQ287sgq.js} +23 -22
- package/dist/{Overview-D_9JwnFU.js → Overview-UG1IjY7-.js} +145 -144
- package/dist/{Point-Bd5cMXQx.js → Point-krMa_mb1.js} +22 -21
- package/dist/{Promotion-D9gZDvgR.js → Promotion-vFBmJSti.js} +137 -131
- package/dist/{Queue-BnAOL_rp.js → Queue-BusxSPt-.js} +46 -45
- package/dist/{Record-D6TWFKe0.js → Record-DjKqn0za.js} +9 -9
- package/dist/{Review-DLEgvnc-.js → Review-CqLp8l7U.js} +2 -2
- package/dist/ReviewFacebookCallback-D2kMSVFC.js +225 -0
- package/dist/{ReviewGoogleCallback-BgAbO3pI.js → ReviewGoogleCallback-B1cHR-o2.js} +5 -5
- package/dist/Reward-FeSxgzuS.js +444 -0
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bt-EqsiH.js → RewardGroup.vue_vue_type_script_setup_true_lang-CCxVjBsO.js} +16 -15
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-U403emCF.js +1923 -0
- package/dist/{Segment-B9Se5FFw.js → Segment-Nj59F9Nr.js} +304 -305
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-f7AS5vwv.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Kg9m-0DS.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-3BKA0UFI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLbDApPL.js} +4 -4
- package/dist/Setting-CCIzNxv-.js +574 -0
- package/dist/{SettingAdvertisements-CLw-dqiA.js → SettingAdvertisements-CkPyAg5y.js} +12 -12
- package/dist/Settings-CYjKGCpa.js +286 -0
- package/dist/{Store-B5PPP5zM.js → Store-Bp8Zkzi2.js} +31 -30
- package/dist/{StoreRewards-DllyaVBY.js → StoreRewards-DXW5nVyW.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BYVezFI2.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CS6b1cM3.js +7007 -0
- package/dist/{Tier-M_TApfju.js → Tier-B8Utn9Qb.js} +2576 -687
- package/dist/{Title-Cpltm-I2.js → Title-CwaNSFer.js} +94 -92
- package/dist/{Transaction-BYfAYRpv.js → Transaction-ieciAdXP.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BOhfGxVj.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CMwZl4E6.js} +26 -26
- package/dist/{Voucher-DHoyg0YZ.js → Voucher-BKfujj6r.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DWHwM6AJ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CkH-rNqZ.js} +16 -16
- package/dist/WhatsappAccount-D73WDP7a.js +161 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C3L7vWZE.js +39 -0
- package/dist/WhatsappBot-DTWZAXhi.js +878 -0
- package/dist/WhatsappBotLogs-DtDcrjs9.js +372 -0
- package/dist/WhatsappBotSettings-7_mH9U4y.js +704 -0
- package/dist/WhatsappLayout-BVpaFJ8H.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CMeaNKJt.js +261 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B6tTjLAZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js} +2 -2
- package/dist/{app-B_doYklh.js → app-DX7OWVY2.js} +9159 -7383
- package/dist/app.js +4 -3
- package/dist/{base.export-DmbnT_bp.js → base.export-bamzzexi.js} +2 -2
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-DdVGtTvx.js → business-D3U9HSu9.js} +1 -1
- package/dist/{campaign-jEhKmpKg.js → campaign-BqRf2VUO.js} +121 -94
- package/dist/{campaign-CVkA08zl.js → campaign-CKfeN2xN.js} +31 -25
- package/dist/{campaign.enum-DWu6-kOo.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/{campaign.fn-BlgEyeFz.js → campaign.fn-DQe5LZuT.js} +82 -82
- package/dist/{collectible.enum-CVLkXKml.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-DLNGTrPf.js → collection.fn-BcGqExuE.js} +2 -2
- package/dist/{currency-DKS1md4e.js → currency-sjMYWoI8.js} +1 -1
- package/dist/duplicateCampaign-CJF3ZLNd.js +51 -0
- package/dist/{effect-Bk-zYexf.js → effect-Cv8ugBR3.js} +1 -1
- package/dist/{email-addresses-I9A5iLzf.js → email-addresses-CWqtseTn.js} +2 -2
- package/dist/{feature-flag-DQti61iR.js → feature-flag-BIh6MM4i.js} +152 -136
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-9cPlo6ae.js → helper-WnxOxoRK.js} +1 -1
- package/dist/{index-DuvnRxeo.js → index-5TTGGDnF.js} +1 -1
- package/dist/{index-CuyzSc1l.js → index-B3CkAr-6.js} +1 -1
- package/dist/{index-cgtAlOl9.js → index-B9XVyhtC.js} +8028 -10767
- package/dist/{index-ClYX4COd.js → index-BGguMtc0.js} +4 -3
- package/dist/{index-CNUXbXvG.js → index-Bdg48Cus.js} +19 -6
- package/dist/{index-fHiFL1dW.js → index-BoAmM8QH.js} +29 -15
- package/dist/{index-C-OnJpT8.js → index-BtmVXdRR.js} +1 -1
- package/dist/{index-1Cdj34z1.js → index-CDTETsXQ.js} +1 -1
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-BxpbI0GH.js → index-CeafUn1o.js} +7 -7
- package/dist/{index-Dj51vqab.js → index-CiSTQhs9.js} +4 -4
- package/dist/{index-CIwdXphn.js → index-ClvaVYkG.js} +2700 -2613
- package/dist/{index-Cj6oxbl0.js → index-CnsSd5Dg.js} +11 -10
- package/dist/{index-oNMFyOGe.js → index-D3yYjyaj.js} +8 -7
- package/dist/{index-BRm0LMTo.js → index-DDzi_-Lu.js} +611 -252
- package/dist/{index-3V8E9GaZ.js → index-DOgDR_QH.js} +2 -2
- package/dist/{index-DOE2VR99.js → index-DqZX-A6e.js} +198 -198
- package/dist/{index-vKvGJ4Ve.js → index-DxhNNZ-a.js} +2 -2
- package/dist/index-DzYFQGSw.js +74 -0
- package/dist/index-I9lmcd2w.js +109 -0
- package/dist/{index-728mP6kW.js → index-iiWxryxo.js} +683 -581
- package/dist/{index-DWkuIfHy.js → index-qI1yx02a.js} +390 -232
- package/dist/{index.esm2017-CsF37oA-.js → index.esm2017-GI2alVO5.js} +177 -177
- package/dist/{loading-BJJmTFoe.js → loading-Qx5K2WL0.js} +1 -1
- package/dist/{lodash-BMJ6_hsa.js → lodash-CeSjJptg.js} +1 -1
- package/dist/{member-import-DrGxVJt9.js → member-import-Cq8G7SsW.js} +6 -5
- package/dist/{membership-CAqKihwy.js → membership-BbeavSNs.js} +3 -3
- package/dist/{money-Bf9d2ZUH.js → money-D8YIFaGA.js} +1 -1
- package/dist/{number-CWXlGZa5.js → number-DAubZ5bt.js} +1 -1
- package/dist/objectid-DeXFWDMh.js +145 -0
- package/dist/{onboarding-Dn9O7r3a.js → onboarding-SyFxaTJY.js} +25 -25
- package/dist/{onboardingSetup-BMkDoGy-.js → onboardingSetup-CLpHlBn8.js} +2 -2
- package/dist/{plugins-KDgceFWV.js → plugins-BHuaMEYA.js} +3 -3
- package/dist/{MarketingMaterialEdit-o88sdvTM.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-eilGRaXi.js → reward-dYWnmAC8.js} +1 -1
- package/dist/{rule-Dr9Zjg_o.js → rule-BVsfOP2h.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-BcdtbhUJ.js +188 -0
- package/dist/{timezone-C5CIfvHs.js → timezone-CUc7q5Ii.js} +1 -1
- package/dist/{transaction.fn-Cr-FLjh0.js → transaction.fn-jF9u_cBy.js} +2 -2
- package/dist/{trigger-B0Fv6wbN.js → trigger-COlbQlaB.js} +8 -8
- package/dist/useMarketingMaterialActions-Dq6-gsOW.js +125 -0
- package/dist/{usePagination-BcA-imTr.js → usePagination-BYZB6ORK.js} +1 -1
- package/dist/{user-DRvLwlBE.js → user-DK7L8VFR.js} +1 -1
- package/dist/vue-i18n-CDSTH7g5.js +2365 -0
- package/dist/{xlsx-CBObn76o.js → xlsx-CKxXlDzD.js} +224 -224
- package/dist/{zod-DWU5EdQV.js → zod-DjtAaF0U.js} +1 -1
- package/package.json +6 -2
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ijya9Cho.js +0 -3494
- package/dist/Marketing-BvRYzFV8.js +0 -236
- package/dist/ReviewFacebookCallback-jVlm2O8f.js +0 -238
- package/dist/Reward-DBheQiFu.js +0 -442
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CKL8MEld.js +0 -1883
- package/dist/Setting-B92JT_Y4.js +0 -2037
- package/dist/Settings-BmmM8ZnR.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3Vvqf6_H.js +0 -1264
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-7ZZ0e5tQ.js +0 -142
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/objectid-2DN5a9sY.js +0 -145
- package/dist/rule-builder-cz6Dy-no.js +0 -102
- package/dist/template-DwbazO8p.js +0 -236
- package/dist/useMarketingMaterialActions-CNk3LR9M.js +0 -96
- package/dist/vue-i18n-y7bHQpNx.js +0 -2365
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, resolveComponent as v, openBlock as s, createBlock as N, unref as c, ref as f, watch as R, createElementBlock as d, createVNode as i, withCtx as S, createElementVNode as n, toDisplayString as w, withModifiers as T, createStaticVNode as U, computed as L, onMounted as P, nextTick as H, onUnmounted as V, Fragment as I, renderList as B, createCommentVNode as j } from "vue";
|
|
2
|
-
import { _ as D } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as M } from "./vue-i18n-y7bHQpNx.js";
|
|
4
|
-
import { u as G, m as q } from "./useMarketingMaterialActions-CNk3LR9M.js";
|
|
5
|
-
import { u as O } from "./remy-Qz_pNsUS.js";
|
|
6
|
-
import { useRouter as z } from "vue-router";
|
|
7
|
-
import "./index-CuyzSc1l.js";
|
|
8
|
-
import { R as K } from "./app-B_doYklh.js";
|
|
9
|
-
const Z = /* @__PURE__ */ b({
|
|
10
|
-
__name: "GenerateMaterialButton",
|
|
11
|
-
setup(l) {
|
|
12
|
-
const { t: r } = M(), u = O();
|
|
13
|
-
function a() {
|
|
14
|
-
u.activate({
|
|
15
|
-
command: "generateMarketingMaterial",
|
|
16
|
-
fullscreen: !0,
|
|
17
|
-
forceNewConversation: !0
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return (t, e) => {
|
|
21
|
-
const m = v("FmButton");
|
|
22
|
-
return s(), N(m, {
|
|
23
|
-
label: c(r)("connect.marketing.emptyState.action"),
|
|
24
|
-
"prepend-icon": "wand_stars",
|
|
25
|
-
onClick: a
|
|
26
|
-
}, null, 8, ["label"]);
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}), J = /* @__PURE__ */ b({
|
|
30
|
-
__name: "MarketingMaterialItemActionButton",
|
|
31
|
-
props: {
|
|
32
|
-
material: {}
|
|
33
|
-
},
|
|
34
|
-
emits: ["update:menuOpened"],
|
|
35
|
-
setup(l, { emit: r }) {
|
|
36
|
-
const u = l, a = r, { t } = M(), e = f(!1);
|
|
37
|
-
R(e, (x) => {
|
|
38
|
-
a("update:menuOpened", x);
|
|
39
|
-
});
|
|
40
|
-
const { shareMaterial: m, downloadMaterialImage: _, copyMaterialLink: p } = G();
|
|
41
|
-
async function C() {
|
|
42
|
-
e.value = !1, await m(u.material);
|
|
43
|
-
}
|
|
44
|
-
async function A() {
|
|
45
|
-
e.value = !1, await _(u.material.imageUrl);
|
|
46
|
-
}
|
|
47
|
-
async function h() {
|
|
48
|
-
e.value = !1, await p(u.material.imageUrl);
|
|
49
|
-
}
|
|
50
|
-
return (x, o) => {
|
|
51
|
-
const k = v("FmButton"), y = v("FmMenuItem"), F = v("FmMenu");
|
|
52
|
-
return s(), d("div", null, [
|
|
53
|
-
i(F, {
|
|
54
|
-
placement: "right-start",
|
|
55
|
-
shift: !0,
|
|
56
|
-
"model-value": e.value,
|
|
57
|
-
onMenuChanged: o[0] || (o[0] = (g) => e.value = g)
|
|
58
|
-
}, {
|
|
59
|
-
"menu-button": S(() => [
|
|
60
|
-
i(k, {
|
|
61
|
-
icon: "more_vert",
|
|
62
|
-
variant: "tertiary",
|
|
63
|
-
size: "md"
|
|
64
|
-
})
|
|
65
|
-
]),
|
|
66
|
-
default: S(() => [
|
|
67
|
-
i(y, {
|
|
68
|
-
icon: "share",
|
|
69
|
-
label: c(t)("connect.marketing.actions.share"),
|
|
70
|
-
onClick: C
|
|
71
|
-
}, null, 8, ["label"]),
|
|
72
|
-
i(y, {
|
|
73
|
-
icon: "download",
|
|
74
|
-
label: c(t)("connect.marketing.actions.download"),
|
|
75
|
-
onClick: A
|
|
76
|
-
}, null, 8, ["label"]),
|
|
77
|
-
i(y, {
|
|
78
|
-
icon: "content_copy",
|
|
79
|
-
label: c(t)("connect.marketing.actions.copyLink"),
|
|
80
|
-
onClick: h
|
|
81
|
-
}, null, 8, ["label"])
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
}, 8, ["model-value"])
|
|
85
|
-
]);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
}), Q = { class: "h-[205.5px] w-full overflow-hidden bg-fm-color-neutral-gray-100" }, W = ["src", "alt"], X = { class: "p-3" }, Y = { class: "flex items-start justify-between gap-2" }, ee = { class: "space-y-1 overflow-hidden" }, te = { class: "font-semibold text-sm text-gray-900 truncate" }, ne = { class: "text-xs text-gray-500 line-clamp-2" }, ae = {
|
|
89
|
-
key: 1,
|
|
90
|
-
class: "rounded-lg overflow-hidden border border-transparent fm-shadow-light-100 animate-pulse bg-white"
|
|
91
|
-
}, $ = /* @__PURE__ */ b({
|
|
92
|
-
__name: "MarketingMaterialItem",
|
|
93
|
-
props: {
|
|
94
|
-
material: {}
|
|
95
|
-
},
|
|
96
|
-
setup(l) {
|
|
97
|
-
const { t: r } = M(), u = z(), a = f(!1);
|
|
98
|
-
return (t, e) => l.material ? (s(), d("div", {
|
|
99
|
-
key: 0,
|
|
100
|
-
class: "group rounded-lg overflow-hidden cursor-pointer border border-transparent hover:border-blue-500 hover:bg-blue-50 transition-[border-color,background-color] fm-shadow-light-100 hover:fm-shadow-light-300",
|
|
101
|
-
onClick: e[2] || (e[2] = () => {
|
|
102
|
-
a.value || c(u).push({
|
|
103
|
-
name: c(K)["$connect-MARKETING_MATERIAL_EDIT"],
|
|
104
|
-
query: { id: l.material._id }
|
|
105
|
-
});
|
|
106
|
-
})
|
|
107
|
-
}, [
|
|
108
|
-
n("div", Q, [
|
|
109
|
-
n("img", {
|
|
110
|
-
src: l.material.imageUrl,
|
|
111
|
-
alt: c(r)("connect.marketing.title"),
|
|
112
|
-
class: "w-full h-full object-cover"
|
|
113
|
-
}, null, 8, W)
|
|
114
|
-
]),
|
|
115
|
-
n("div", X, [
|
|
116
|
-
n("div", Y, [
|
|
117
|
-
n("div", ee, [
|
|
118
|
-
n("p", te, w(l.material.headline), 1),
|
|
119
|
-
n("p", ne, w(l.material.caption), 1)
|
|
120
|
-
]),
|
|
121
|
-
i(J, {
|
|
122
|
-
material: l.material,
|
|
123
|
-
"onUpdate:menuOpened": e[0] || (e[0] = (m) => a.value = m),
|
|
124
|
-
onClick: e[1] || (e[1] = T(() => {
|
|
125
|
-
}, ["stop"]))
|
|
126
|
-
}, null, 8, ["material"])
|
|
127
|
-
])
|
|
128
|
-
])
|
|
129
|
-
])) : (s(), d("div", ae, [...e[3] || (e[3] = [
|
|
130
|
-
U('<div class="h-[205.5px] w-full bg-fm-color-neutral-gray-100"></div><div class="p-3 space-y-2"><div class="h-[16px] w-3/4 rounded bg-fm-color-neutral-gray-100"></div><div class="h-12 w-full rounded bg-fm-color-neutral-gray-100"></div><div class="h-12 w-2/3 rounded bg-fm-color-neutral-gray-100"></div></div>', 2)
|
|
131
|
-
])]));
|
|
132
|
-
}
|
|
133
|
-
}), oe = {
|
|
134
|
-
key: 0,
|
|
135
|
-
class: "px-24 xs:px-12 flex flex-col gap-y-16 py-24 xs:py-16"
|
|
136
|
-
}, le = { class: "fm-typo-en-title-sm-800 text-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 xs:w-full text-center" }, se = {
|
|
137
|
-
key: 1,
|
|
138
|
-
class: "px-24 xs:px-12 flex flex-col gap-y-24 xs:gap-y-16 pt-24 xs:pt-16"
|
|
139
|
-
}, ie = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-16" }, E = 20, _e = /* @__PURE__ */ b({
|
|
140
|
-
__name: "Marketing",
|
|
141
|
-
setup(l) {
|
|
142
|
-
const { t: r } = M(), u = O(), a = f([]), t = f(!0), e = f(!0), m = f(null), _ = f(null);
|
|
143
|
-
let p = null;
|
|
144
|
-
const C = L(() => ({
|
|
145
|
-
label: r("connect.marketing.emptyState.action"),
|
|
146
|
-
value: "generate",
|
|
147
|
-
isPrimary: !0,
|
|
148
|
-
prependIcon: "wand_stars"
|
|
149
|
-
}));
|
|
150
|
-
function A(o) {
|
|
151
|
-
o === "generate" && u.activate({
|
|
152
|
-
command: "generateMarketingMaterial",
|
|
153
|
-
fullscreen: !0,
|
|
154
|
-
forceNewConversation: !0
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
async function h() {
|
|
158
|
-
const o = await q.listMarketingMaterials(
|
|
159
|
-
m.value,
|
|
160
|
-
E
|
|
161
|
-
);
|
|
162
|
-
a.value.push(...o.resources), m.value = o.meta.nextCursor, e.value = !!o.meta.nextCursor;
|
|
163
|
-
}
|
|
164
|
-
function x() {
|
|
165
|
-
p = new IntersectionObserver(
|
|
166
|
-
async ([o]) => {
|
|
167
|
-
if (!(!o.isIntersecting || !e.value || t.value)) {
|
|
168
|
-
t.value = !0;
|
|
169
|
-
try {
|
|
170
|
-
await h();
|
|
171
|
-
} catch {
|
|
172
|
-
} finally {
|
|
173
|
-
t.value = !1;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
{ rootMargin: "200px" }
|
|
178
|
-
), _.value && p.observe(_.value);
|
|
179
|
-
}
|
|
180
|
-
return P(async () => {
|
|
181
|
-
try {
|
|
182
|
-
await h();
|
|
183
|
-
} catch {
|
|
184
|
-
} finally {
|
|
185
|
-
t.value = !1, await H(), x();
|
|
186
|
-
}
|
|
187
|
-
}), V(() => {
|
|
188
|
-
p == null || p.disconnect();
|
|
189
|
-
}), (o, k) => {
|
|
190
|
-
const y = v("FmPageHead"), F = v("FmCard");
|
|
191
|
-
return s(), d(I, null, [
|
|
192
|
-
i(y, {
|
|
193
|
-
title: c(r)("connect.marketing.title"),
|
|
194
|
-
actions: a.value.length > 0 ? [C.value] : [],
|
|
195
|
-
"onClick:action": A
|
|
196
|
-
}, null, 8, ["title", "actions"]),
|
|
197
|
-
!t.value && a.value.length === 0 ? (s(), d("div", oe, [
|
|
198
|
-
i(F, {
|
|
199
|
-
variant: "outlined",
|
|
200
|
-
class: "w-full justify-center items-center flex flex-col p-[24px] xs:p-16 gap-[24px] xs:gap-16"
|
|
201
|
-
}, {
|
|
202
|
-
default: S(() => [
|
|
203
|
-
k[0] || (k[0] = n("img", {
|
|
204
|
-
src: D,
|
|
205
|
-
class: "w-[150px]"
|
|
206
|
-
}, null, -1)),
|
|
207
|
-
n("p", le, w(c(r)("connect.marketing.emptyState.title")), 1),
|
|
208
|
-
n("p", re, w(c(r)("connect.marketing.emptyState.description")), 1),
|
|
209
|
-
i(Z)
|
|
210
|
-
]),
|
|
211
|
-
_: 1
|
|
212
|
-
})
|
|
213
|
-
])) : (s(), d("div", se, [
|
|
214
|
-
n("div", ie, [
|
|
215
|
-
(s(!0), d(I, null, B(a.value, (g) => (s(), N($, {
|
|
216
|
-
key: g._id,
|
|
217
|
-
material: g
|
|
218
|
-
}, null, 8, ["material"]))), 128)),
|
|
219
|
-
t.value ? (s(), d(I, { key: 0 }, B(E, (g) => i($, {
|
|
220
|
-
key: `skeleton-${g}`,
|
|
221
|
-
material: null
|
|
222
|
-
})), 64)) : j("", !0)
|
|
223
|
-
]),
|
|
224
|
-
n("div", {
|
|
225
|
-
ref_key: "sentinel",
|
|
226
|
-
ref: _,
|
|
227
|
-
class: "h-1"
|
|
228
|
-
}, null, 512)
|
|
229
|
-
]))
|
|
230
|
-
], 64);
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
export {
|
|
235
|
-
_e as default
|
|
236
|
-
};
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, computed as M, openBlock as l, createElementBlock as g, normalizeClass as j, createElementVNode as u, createBlock as T, unref as e, toDisplayString as h, createCommentVNode as S, createVNode as y, onMounted as B, ref as P, Fragment as $, renderList as U, resolveComponent as z, isRef as V } from "vue";
|
|
2
|
-
import { u as R } from "./vue-i18n-y7bHQpNx.js";
|
|
3
|
-
import { components as I } from "@feedmepos/ui-library";
|
|
4
|
-
import { r as L } from "./index-Cj6oxbl0.js";
|
|
5
|
-
import { u as A } from "./business-DdVGtTvx.js";
|
|
6
|
-
import { _ as H } from "./LocationPicker.vue_vue_type_script_setup_true_lang-BlCg-jI7.js";
|
|
7
|
-
import { R as D } from "./app-B_doYklh.js";
|
|
8
|
-
import { useRouter as G } from "vue-router";
|
|
9
|
-
const O = ["src"], W = { class: "fm-typo-en-body-md-600 flex-1 truncate" }, q = {
|
|
10
|
-
key: 2,
|
|
11
|
-
class: "fm-typo-en-body-sm-400 text-fm-color-primary-500 shrink-0"
|
|
12
|
-
}, J = /* @__PURE__ */ C({
|
|
13
|
-
__name: "FacebookPageConfig",
|
|
14
|
-
props: {
|
|
15
|
-
page: {},
|
|
16
|
-
expanded: { type: Boolean },
|
|
17
|
-
availableLocations: {}
|
|
18
|
-
},
|
|
19
|
-
emits: ["toggleExpand", "toggleLocation"],
|
|
20
|
-
setup(s, { emit: n }) {
|
|
21
|
-
const _ = s, f = n, { t: i } = R(), m = M(() => _.page.locationIds);
|
|
22
|
-
return (w, p) => (l(), g("div", {
|
|
23
|
-
class: j([
|
|
24
|
-
"rounded-lg border overflow-hidden transition-colors",
|
|
25
|
-
s.expanded ? "border-fm-color-primary-500" : "border-fm-color-neutral-gray-200"
|
|
26
|
-
])
|
|
27
|
-
}, [
|
|
28
|
-
u("button", {
|
|
29
|
-
class: "w-full flex items-center gap-12 p-16 bg-white text-left hover:bg-fm-color-neutral-gray-50 transition-colors",
|
|
30
|
-
onClick: p[0] || (p[0] = (c) => f("toggleExpand"))
|
|
31
|
-
}, [
|
|
32
|
-
s.page.pageProfileImageUrl ? (l(), g("img", {
|
|
33
|
-
key: 0,
|
|
34
|
-
src: s.page.pageProfileImageUrl,
|
|
35
|
-
class: "w-32 h-32 rounded-full shrink-0 object-cover"
|
|
36
|
-
}, null, 8, O)) : (l(), T(e(I).FmIcon, {
|
|
37
|
-
key: 1,
|
|
38
|
-
name: "thumb_up",
|
|
39
|
-
class: "text-fm-color-neutral-gray-400 shrink-0"
|
|
40
|
-
})),
|
|
41
|
-
u("span", W, h(s.page.pageName), 1),
|
|
42
|
-
s.page.locationIds.length > 0 ? (l(), g("span", q, h(e(i)("connect.review.locationsSelected", s.page.locationIds.length)), 1)) : S("", !0),
|
|
43
|
-
y(e(I).FmIcon, {
|
|
44
|
-
name: s.expanded ? "expand_less" : "expand_more",
|
|
45
|
-
class: "text-fm-color-neutral-gray-400 shrink-0"
|
|
46
|
-
}, null, 8, ["name"])
|
|
47
|
-
]),
|
|
48
|
-
s.expanded ? (l(), T(H, {
|
|
49
|
-
key: 0,
|
|
50
|
-
locations: s.availableLocations,
|
|
51
|
-
"selected-ids": e(m),
|
|
52
|
-
onToggle: p[1] || (p[1] = (c) => f("toggleLocation", c))
|
|
53
|
-
}, null, 8, ["locations", "selected-ids"])) : S("", !0)
|
|
54
|
-
], 2));
|
|
55
|
-
}
|
|
56
|
-
}), K = { class: "flex flex-col gap-8" }, Q = /* @__PURE__ */ C({
|
|
57
|
-
__name: "FacebookPageLocationMapping",
|
|
58
|
-
props: {
|
|
59
|
-
pages: {}
|
|
60
|
-
},
|
|
61
|
-
emits: ["update:pages"],
|
|
62
|
-
setup(s, { emit: n }) {
|
|
63
|
-
const _ = s, f = A();
|
|
64
|
-
B(() => f.readLocations());
|
|
65
|
-
const i = n, m = P(null), w = M(() => {
|
|
66
|
-
const r = /* @__PURE__ */ new Set();
|
|
67
|
-
for (const v of _.pages)
|
|
68
|
-
v.locationIds.forEach((a) => r.add(a));
|
|
69
|
-
return r;
|
|
70
|
-
});
|
|
71
|
-
function p(r) {
|
|
72
|
-
const v = new Set(r.locationIds);
|
|
73
|
-
return f.locations.filter((a) => {
|
|
74
|
-
const b = a._id.toString();
|
|
75
|
-
return !w.value.has(b) || v.has(b);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function c(r, v) {
|
|
79
|
-
const a = v._id.toString(), b = _.pages.map((o) => {
|
|
80
|
-
if (o.facebookPageId !== r) return o;
|
|
81
|
-
const t = o.locationIds.includes(a);
|
|
82
|
-
return {
|
|
83
|
-
...o,
|
|
84
|
-
locationIds: t ? o.locationIds.filter((k) => k !== a) : [...o.locationIds, a]
|
|
85
|
-
};
|
|
86
|
-
});
|
|
87
|
-
i("update:pages", b);
|
|
88
|
-
}
|
|
89
|
-
function F(r) {
|
|
90
|
-
m.value = m.value === r ? null : r;
|
|
91
|
-
}
|
|
92
|
-
return (r, v) => (l(), g("div", K, [
|
|
93
|
-
(l(!0), g($, null, U(s.pages, (a) => (l(), T(J, {
|
|
94
|
-
key: a.facebookPageId,
|
|
95
|
-
page: a,
|
|
96
|
-
expanded: e(m) === a.facebookPageId,
|
|
97
|
-
"available-locations": p(a),
|
|
98
|
-
onToggleExpand: (b) => F(a.facebookPageId),
|
|
99
|
-
onToggleLocation: (b) => c(a.facebookPageId, b)
|
|
100
|
-
}, null, 8, ["page", "expanded", "available-locations", "onToggleExpand", "onToggleLocation"]))), 128))
|
|
101
|
-
]));
|
|
102
|
-
}
|
|
103
|
-
}), X = { class: "flex flex-col min-h-full gap-16 p-24" }, Y = {
|
|
104
|
-
key: 0,
|
|
105
|
-
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
106
|
-
}, Z = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ee = {
|
|
107
|
-
key: 1,
|
|
108
|
-
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
109
|
-
}, oe = { class: "fm-typo-en-body-lg-600" }, te = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ne = {
|
|
110
|
-
key: 2,
|
|
111
|
-
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
112
|
-
}, ae = { class: "fm-typo-en-body-lg-600" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ce = { class: "fm-typo-en-body-lg-600" }, le = { class: "flex gap-8 justify-end mt-auto pt-8" }, ve = /* @__PURE__ */ C({
|
|
113
|
-
__name: "ReviewFacebookCallback",
|
|
114
|
-
setup(s) {
|
|
115
|
-
const { t: n } = R(), _ = G();
|
|
116
|
-
function f() {
|
|
117
|
-
return _.replace({ name: D["$connect-REVIEW_SETTINGS"] });
|
|
118
|
-
}
|
|
119
|
-
const i = P([]), m = P(!1), w = P(!1), p = P(!1), c = P(null), F = M(
|
|
120
|
-
() => i.value.some((o) => o.locationIds.length > 0)
|
|
121
|
-
);
|
|
122
|
-
function r(o, t) {
|
|
123
|
-
const k = new Map(
|
|
124
|
-
t.map((d) => [d.facebookPageId, d])
|
|
125
|
-
);
|
|
126
|
-
return o.map((d) => {
|
|
127
|
-
var x;
|
|
128
|
-
return {
|
|
129
|
-
...d,
|
|
130
|
-
locationIds: ((x = k.get(d.facebookPageId)) == null ? void 0 : x.locationIds) ?? []
|
|
131
|
-
};
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
function v(o, t) {
|
|
135
|
-
return o instanceof Error ? o.message : t;
|
|
136
|
-
}
|
|
137
|
-
async function a() {
|
|
138
|
-
var d;
|
|
139
|
-
const o = window.location.hash;
|
|
140
|
-
if (!o) {
|
|
141
|
-
c.value = n("connect.review.noToken");
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
const k = new URLSearchParams(o.slice(1)).get("access_token");
|
|
145
|
-
if (!k) {
|
|
146
|
-
c.value = n("connect.review.noToken");
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
m.value = !0;
|
|
150
|
-
try {
|
|
151
|
-
const x = await L.getSource(), N = ((d = x == null ? void 0 : x.facebook) == null ? void 0 : d.pages) ?? [], E = await L.connectFacebook(k);
|
|
152
|
-
i.value = r((E == null ? void 0 : E.pages) ?? [], N), i.value.length === 0 && (c.value = n("connect.review.facebook.noPages"));
|
|
153
|
-
} catch (x) {
|
|
154
|
-
c.value = v(x, n("connect.review.facebook.failed"));
|
|
155
|
-
} finally {
|
|
156
|
-
m.value = !1;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
async function b() {
|
|
160
|
-
const o = i.value.filter((t) => t.locationIds.length > 0).map((t) => ({
|
|
161
|
-
facebookPageId: t.facebookPageId,
|
|
162
|
-
locationIds: t.locationIds
|
|
163
|
-
}));
|
|
164
|
-
if (o.length === 0) {
|
|
165
|
-
c.value = n("connect.review.noMappings");
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
w.value = !0;
|
|
169
|
-
try {
|
|
170
|
-
await L.updateFacebookPages(o), p.value = !0, setTimeout(f, 2e3);
|
|
171
|
-
} catch (t) {
|
|
172
|
-
c.value = v(t, n("connect.review.facebook.failed"));
|
|
173
|
-
} finally {
|
|
174
|
-
w.value = !1;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return B(a), (o, t) => {
|
|
178
|
-
const k = z("FmPageHead");
|
|
179
|
-
return l(), g($, null, [
|
|
180
|
-
y(k, {
|
|
181
|
-
title: e(n)("connect.navigation.review")
|
|
182
|
-
}, null, 8, ["title"]),
|
|
183
|
-
u("div", X, [
|
|
184
|
-
e(m) ? (l(), g("div", Y, [
|
|
185
|
-
y(e(I).FmIcon, {
|
|
186
|
-
name: "sync",
|
|
187
|
-
size: "xl",
|
|
188
|
-
class: "animate-spin text-fm-color-neutral-gray-400"
|
|
189
|
-
}),
|
|
190
|
-
u("p", Z, h(e(n)("connect.review.facebook.fetching")), 1)
|
|
191
|
-
])) : e(p) ? (l(), g("div", ee, [
|
|
192
|
-
y(e(I).FmIcon, {
|
|
193
|
-
name: "check_circle",
|
|
194
|
-
size: "xl",
|
|
195
|
-
class: "text-fm-color-typo-success"
|
|
196
|
-
}),
|
|
197
|
-
u("p", oe, h(e(n)("connect.review.facebook.success")), 1),
|
|
198
|
-
u("p", te, h(e(n)("connect.review.redirecting")), 1)
|
|
199
|
-
])) : e(c) ? (l(), g("div", ne, [
|
|
200
|
-
y(e(I).FmIcon, {
|
|
201
|
-
name: "error",
|
|
202
|
-
size: "xl",
|
|
203
|
-
class: "text-fm-color-system-error-500"
|
|
204
|
-
}),
|
|
205
|
-
u("p", ae, h(e(n)("connect.review.errorTitle")), 1),
|
|
206
|
-
u("p", se, h(e(c)), 1),
|
|
207
|
-
y(e(I).FmButton, {
|
|
208
|
-
label: e(n)("connect.review.goBack"),
|
|
209
|
-
onClick: t[0] || (t[0] = (d) => f())
|
|
210
|
-
}, null, 8, ["label"])
|
|
211
|
-
])) : e(i).length > 0 ? (l(), g($, { key: 3 }, [
|
|
212
|
-
u("p", ce, h(e(n)("connect.review.facebook.selectPage")), 1),
|
|
213
|
-
y(Q, {
|
|
214
|
-
pages: e(i),
|
|
215
|
-
"onUpdate:pages": t[1] || (t[1] = (d) => V(i) ? i.value = d : null)
|
|
216
|
-
}, null, 8, ["pages"]),
|
|
217
|
-
u("div", le, [
|
|
218
|
-
y(e(I).FmButton, {
|
|
219
|
-
variant: "outlined",
|
|
220
|
-
label: e(n)("connect.review.cancel"),
|
|
221
|
-
onClick: t[2] || (t[2] = (d) => f())
|
|
222
|
-
}, null, 8, ["label"]),
|
|
223
|
-
y(e(I).FmButton, {
|
|
224
|
-
label: e(n)("connect.review.connect"),
|
|
225
|
-
disabled: !e(F),
|
|
226
|
-
loading: e(w),
|
|
227
|
-
onClick: b
|
|
228
|
-
}, null, 8, ["label", "disabled", "loading"])
|
|
229
|
-
])
|
|
230
|
-
], 64)) : S("", !0)
|
|
231
|
-
])
|
|
232
|
-
], 64);
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
export {
|
|
237
|
-
ve as default
|
|
238
|
-
};
|