@feedmepos/mf-connect 0.1.98-beta.4 → 0.1.98-beta.41
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-BGv_JihW.js → App-C6JJ9uQ8.js} +808 -665
- package/dist/{AuditLogs-53rnjCmD.js → AuditLogs-CAlgtDgx.js} +12 -11
- package/dist/{Bin-B0Q_WpuY.js → Bin-D8jwhwER.js} +8 -8
- package/dist/{Broadcast-PiJE1Syl.js → Broadcast-CP8DRfkT.js} +39 -36
- package/dist/CampaignAnalytic-MVjYBFvu.js +1826 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dz2KsBZl.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DeLURz87.js} +7 -5
- package/dist/{Card-DlqMu3Sl.js → Card-QribXJwZ.js} +21 -20
- package/dist/{Collections-BWcBlDDR.js → Collections-X9xbt43V.js} +14 -13
- package/dist/Credit-QmbsW1eb.js +286 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DCvH0lGA.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-ClNieHSo.js} +35 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B_FyeWq4.js → EffectSheet.vue_vue_type_style_index_0_lang-CrGHTNhg.js} +16 -16
- package/dist/{Experience-DacFmPYy.js → Experience-CPGMg847.js} +112 -86
- package/dist/{FileSaver.min-CMZKiGkX.js → FileSaver.min-CK67LsPG.js} +1 -1
- package/dist/Game-BrkiEFCS.js +356 -0
- package/dist/GiftCardSetup-DXNBHF1A.js +542 -0
- package/dist/{Grab-DaBL5y3H.js → Grab-BgtDzK1B.js} +32 -31
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BaY_nQio.js → ImageInput.vue_vue_type_script_setup_true_lang-Dzv2AkKN.js} +1 -1
- package/dist/{Index-2UrjF35w.js → Index-KJgzalOd.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BuVBZsCN.js → LocationPicker.vue_vue_type_script_setup_true_lang-C6SBLJGQ.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-6wUxYqWe.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dj74lJ7b.js} +1 -1
- package/dist/LoyaltyDashboard-B2JpbC01.js +1345 -0
- package/dist/MainLayout-DlfTKHQ-.js +143 -0
- package/dist/{Marketing-DEp--hFd.js → Marketing-Crx_JQpi.js} +7 -6
- package/dist/{MarketingMaterialEdit-BHL8Ptsu.js → MarketingMaterialEdit-BfsdcMXJ.js} +15 -14
- package/dist/{Member-BU1YxoEV.js → Member-C50Nrsko.js} +14 -13
- package/dist/{MemberList-zjvJBYf0.js → MemberList-C9uUKw1o.js} +37 -35
- package/dist/{MemberTransactions-BvyLV69V.js → MemberTransactions-DZ7zPOHX.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-_YOM1SlS.js → MessageInput.vue_vue_type_script_setup_true_lang-Du_ZGsbX.js} +5434 -5279
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js +38 -0
- package/dist/Mission-D_km8zi6.js +360 -0
- package/dist/{Overview-BToUlbsH.js → Overview-BBieK6qQ.js} +21 -20
- package/dist/Overview-B_kmLOcc.js +1316 -0
- package/dist/Point-D0q9N7f9.js +288 -0
- package/dist/Promotion-DoFTy-NK.js +423 -0
- package/dist/{Queue-D3vUkKN9.js → Queue-Dh5sDRHW.js} +13 -12
- package/dist/{Record-BViEbZZ8.js → Record-0owEBKqN.js} +9 -9
- package/dist/Review-DV2fnpOH.js +45 -0
- package/dist/ReviewFacebookCallback-D8mnAPzR.js +238 -0
- package/dist/ReviewGoogleCallback-CLzt_ox2.js +213 -0
- package/dist/{Reward-CZsvsYW_.js → Reward-Co20Xrss.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BASPLoRa.js → RewardGroup.vue_vue_type_script_setup_true_lang-0qU49c47.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-B90meAnV.js → RuleGroup.vue_vue_type_script_setup_true_lang-qdvaXPhJ.js} +17 -15
- package/dist/{Segment-CN8NEg8w.js → Segment-7dQKeHWK.js} +38 -35
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BGyYQST4.js → SelectItems.vue_vue_type_script_setup_true_lang-BUVrUifO.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BxW-Kc6t.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDsV9TD9.js} +37 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-C9dwcEr5.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DqPZpddc.js} +4 -4
- package/dist/{Setting-DLPbZW11.js → Setting-Bvahxs-y.js} +14 -14
- package/dist/{SettingAdvertisements-BIq8gS5g.js → SettingAdvertisements-fbXLRwfb.js} +12 -12
- package/dist/Settings-C_HWDFN8.js +179 -0
- package/dist/Store-8yBKDR1b.js +2413 -0
- package/dist/{StoreRewards-BoEjVFk6.js → StoreRewards-DKaJvoJs.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bv9ABH1K.js → StoreTransactions.vue_vue_type_script_setup_true_lang-D23XzJD7.js} +400 -455
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DNHgSfIg.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-JaFhCK_L.js} +2 -2
- package/dist/{Tier-kQ6X9h-t.js → Tier-CD-CjXC3.js} +44 -41
- package/dist/{Title-XosVAF2Y.js → Title-C_lcgye8.js} +49 -46
- package/dist/{Transaction-CO6oLPKR.js → Transaction-BvUYm-rT.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-McMR2Y7Y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C3Yacz7K.js} +6 -6
- package/dist/{Voucher-CogaCxx2.js → Voucher-CYaG0GLU.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DjHwHFBq.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DF2JqzRe.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Dor9klZ8.js → ZodTextField.vue_vue_type_script_setup_true_lang-B4UPqSNc.js} +2 -2
- package/dist/{app-C9UPXbDs.js → app-CE5hQ4Uq.js} +6656 -5653
- package/dist/app.js +1 -1
- package/dist/{business-CYpW6-Ls.js → business-CE_4siXc.js} +1 -1
- package/dist/{campaign-BtLa7KeF.js → campaign-BP6rvSpg.js} +74 -96
- package/dist/campaign-CXQtKpeb.js +100 -0
- package/dist/{campaign.enum-DiLhS5il.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/{campaign.fn-CLB9gBHo.js → campaign.fn-DKnBpE1N.js} +119 -119
- package/dist/{collectible.enum-CmwWcfBh.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-Cg16QZSp.js +26 -0
- package/dist/{duplicateCampaign-DGhOBd5l.js → duplicateCampaign-DbtVAGsT.js} +2 -2
- package/dist/{effect-CY5Y6sxy.js → effect-CLI8NI4O.js} +1 -1
- package/dist/{email-addresses-BEnOHWj_.js → email-addresses-DlLiZ1io.js} +2 -2
- package/dist/{export-BgYu7SCd.js → export-6Hr34dBU.js} +3 -3
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-DTDgoyEh.js → helper-vkjFqj70.js} +1 -1
- package/dist/index-BIyKgw4m.js +72 -0
- package/dist/{index-C8ehLvXG.js → index-BLQJ-rv3.js} +1 -1
- package/dist/{index-CP-7qATP.js → index-BbTIqReL.js} +1 -1
- package/dist/index-BuMfQxMf.js +897 -0
- package/dist/index-C8cXXcLk.js +45 -0
- package/dist/{index-kS20rM5m.js → index-CSVhIZSY.js} +589 -580
- package/dist/{index-zF0gIg9H.js → index-CVHacTbc.js} +1 -1
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-goRooQn5.js → index-CmNsGhDf.js} +272 -368
- package/dist/index-CnTeeRyJ.js +53 -0
- package/dist/{index-Ck3PeOQ5.js → index-CzbNobLv.js} +105 -123
- package/dist/index-D06n1h1b.js +146 -0
- package/dist/{index-CNKP1_IW.js → index-D4SDAfbP.js} +8027 -10766
- package/dist/{index-DntoqWT_.js → index-DVnYQ3Hs.js} +1 -1
- package/dist/{index-BZVhi3ZG.js → index-DcjnS5Sv.js} +2 -2
- package/dist/{index-DtyWsBgg.js → index-Dx9h0FNH.js} +1 -1
- package/dist/{index-CDk0Itu1.js → index-YgP4ihQL.js} +1 -1
- package/dist/{index-B4IAURA_.js → index-kedErkLZ.js} +1759 -2480
- package/dist/{index-CLZnH782.js → index-lnQT4P3d.js} +10 -9
- package/dist/{index.esm2017-C79fd6cz.js → index.esm2017-Jhv2lkrq.js} +105 -105
- package/dist/{loading-Dfr_97Ri.js → loading-NY-FPxVY.js} +1 -1
- package/dist/{lodash-BX2mJOxF.js → lodash-BC_P6kLg.js} +1 -1
- package/dist/{membership-ncNOUJwj.js → membership-BWaK-9FY.js} +3 -3
- package/dist/{money-vEtTzt04.js → money-COoh4GXK.js} +1 -1
- package/dist/{number-BjgTlMsp.js → number-BX5OEXgq.js} +1 -1
- package/dist/objectid-1SUSRtmY.js +145 -0
- package/dist/{plugins-BVGqEmE1.js → plugins-ur-FAoye.js} +3 -3
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-BGTLhhzT.js → reward-DSsylZ22.js} +1 -1
- package/dist/{rule-BB2VX3Gy.js → rule-BM9GUd1C.js} +3 -3
- package/dist/rule-builder-gC9LH2AC.js +126 -0
- package/dist/{template-DLiHnpjK.js → template-CUV3AMFI.js} +6 -6
- package/dist/timezone-BFZhekOU.js +20 -0
- package/dist/transaction.fn-C5MlkEIC.js +64 -0
- package/dist/{trigger-DrKnfSoi.js → trigger-CbjiuoSo.js} +14 -14
- package/dist/useMarketingMaterialActions-BLisTieA.js +96 -0
- package/dist/{usePagination-Dgd-onzU.js → usePagination-Caah4sJr.js} +1 -1
- package/dist/{user-BcDUmNrZ.js → user-BZC4P_jL.js} +1 -1
- package/dist/{vue-i18n-DNBGmwox.js → vue-i18n-BYz7XAr_.js} +390 -390
- package/dist/{xlsx-BX-U0_Au.js → xlsx-Bn7BqUFA.js} +1 -1
- package/dist/{zod-Mx51GBPY.js → zod-DHH42rXG.js} +1 -1
- package/package.json +3 -3
- package/dist/Credit-CMfcuj5n.js +0 -260
- package/dist/Game-DXKnGuhR.js +0 -330
- package/dist/LoyaltyDashboard-DIArPp71.js +0 -1082
- package/dist/MainLayout-BjvTxTPG.js +0 -41
- package/dist/Mission-BNYk_aPM.js +0 -334
- package/dist/Point-B-L2326L.js +0 -262
- package/dist/Promotion-sMKGkL4w.js +0 -397
- package/dist/Review-CMBAk-Qu.js +0 -1067
- package/dist/ReviewFacebookCallback-BCJTFy3b.js +0 -243
- package/dist/ReviewGoogleCallback-DKUG075r.js +0 -208
- package/dist/Store-DNB3gUIR.js +0 -1996
- package/dist/campaign-CtoHyXVT.js +0 -219
- package/dist/index-P8Qh2yIP.js +0 -52
- package/dist/objectid-C9DiLwge.js +0 -145
- package/dist/useMarketingMaterialActions-B6zaDbNE.js +0 -107
|
@@ -1,69 +1,81 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as q, ref as B, computed as G, onMounted as X, resolveComponent as m, openBlock as u, createElementBlock as C, Fragment as v, createVNode as s, unref as o, createElementVNode as n, withCtx as b, renderList as Y, createBlock as k, resolveDynamicComponent as z, toDisplayString as h, h as w } from "vue";
|
|
2
2
|
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { useDialog as Q, components as
|
|
4
|
-
import { p as W } from "./plugins-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { b as
|
|
9
|
-
import { c as
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { u as
|
|
14
|
-
|
|
3
|
+
import { useDialog as Q, components as F } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as W } from "./plugins-ur-FAoye.js";
|
|
5
|
+
import { u as Z } from "./loading-NY-FPxVY.js";
|
|
6
|
+
import { u as ee } from "./business-CE_4siXc.js";
|
|
7
|
+
import { u as te } from "./campaign-CXQtKpeb.js";
|
|
8
|
+
import { b as V, c as T, a as oe } from "./campaign-BP6rvSpg.js";
|
|
9
|
+
import { c as ae, p as ne } from "./duplicateCampaign-DbtVAGsT.js";
|
|
10
|
+
import { u as re } from "./vue-i18n-BYz7XAr_.js";
|
|
11
|
+
import { _ as ie } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
12
|
+
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-ClNieHSo.js";
|
|
13
|
+
import { u as ce } from "./template-CUV3AMFI.js";
|
|
14
|
+
import "./index-Dx9h0FNH.js";
|
|
15
|
+
import { useRouter as le } from "vue-router";
|
|
16
|
+
import { c as f } from "./index-D06n1h1b.js";
|
|
17
|
+
import { R as me } from "./app-CE5hQ4Uq.js";
|
|
18
|
+
const pe = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, ue = { class: "flex gap-8 overflow-x-auto" }, fe = { class: "space-y-8" }, ge = { class: "flex w-full gap-4 items-center" }, ye = { class: "space-y-4" }, _e = { class: "fm-typo-en-body-lg-600" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "flex items-center gap-8" }, xe = { class: "flex flex-col gap-16 text-center" }, Ce = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = /* @__PURE__ */ q({
|
|
15
19
|
__name: "Experience",
|
|
16
|
-
setup(
|
|
17
|
-
const { t: r } =
|
|
20
|
+
setup(be) {
|
|
21
|
+
const { t: r } = re(), A = le(), N = {
|
|
18
22
|
label: r("connect.program.common.actions.create", {
|
|
19
23
|
type: r("connect.program.experience.title").toLowerCase()
|
|
20
24
|
}),
|
|
21
25
|
value: "create",
|
|
22
26
|
isPrimary: !0,
|
|
23
27
|
prependIcon: "add"
|
|
24
|
-
},
|
|
28
|
+
}, R = ce("POINT", Q()), E = ee(), p = te(), { global: O, minor: P } = Z, c = B({
|
|
25
29
|
searchKey: "",
|
|
26
30
|
location: []
|
|
27
31
|
});
|
|
28
|
-
function
|
|
32
|
+
function $(e) {
|
|
29
33
|
const t = c.value.location;
|
|
30
34
|
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
|
|
31
35
|
var i;
|
|
32
36
|
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
|
|
33
37
|
}) : e.targetLocation.includes(t);
|
|
34
38
|
}
|
|
35
|
-
const
|
|
36
|
-
() => p.campaigns.experience.filter((e) =>
|
|
37
|
-
),
|
|
39
|
+
const g = G(
|
|
40
|
+
() => p.campaigns.experience.filter((e) => $(e))
|
|
41
|
+
), D = [
|
|
38
42
|
{
|
|
39
43
|
header: "Program title",
|
|
40
44
|
accessorFn: (e) => e.name
|
|
41
45
|
},
|
|
42
46
|
{
|
|
43
47
|
header: "Status",
|
|
44
|
-
accessorFn: (e) =>
|
|
48
|
+
accessorFn: (e) => oe(e),
|
|
45
49
|
cell(e) {
|
|
46
|
-
return
|
|
50
|
+
return V(e.row.original);
|
|
47
51
|
}
|
|
48
52
|
},
|
|
49
53
|
{
|
|
50
54
|
header: "Summary",
|
|
51
|
-
accessorFn: (e) =>
|
|
55
|
+
accessorFn: (e) => T(e)
|
|
52
56
|
//v.effect,
|
|
53
57
|
},
|
|
54
58
|
{
|
|
55
59
|
header: "Actions",
|
|
56
60
|
cell(e) {
|
|
57
|
-
return
|
|
58
|
-
|
|
61
|
+
return w("div", { class: "flex items-center gap-8 justify-end" }, [
|
|
62
|
+
w(F.FmButton, {
|
|
59
63
|
variant: "tertiary",
|
|
60
|
-
icon: "
|
|
64
|
+
icon: "insights",
|
|
61
65
|
iconColor: "neutral-gray-400",
|
|
62
66
|
onClick: async (t) => {
|
|
63
67
|
t.stopPropagation(), await L(e.row.original);
|
|
64
68
|
}
|
|
65
69
|
}),
|
|
66
|
-
|
|
70
|
+
w(F.FmButton, {
|
|
71
|
+
variant: "tertiary",
|
|
72
|
+
icon: "content_copy",
|
|
73
|
+
iconColor: "neutral-gray-400",
|
|
74
|
+
onClick: async (t) => {
|
|
75
|
+
t.stopPropagation(), await I(e.row.original);
|
|
76
|
+
}
|
|
77
|
+
}),
|
|
78
|
+
w(F.FmButton, {
|
|
67
79
|
variant: "tertiary",
|
|
68
80
|
icon: "delete",
|
|
69
81
|
iconColor: "neutral-gray-400",
|
|
@@ -74,11 +86,11 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
74
86
|
]);
|
|
75
87
|
}
|
|
76
88
|
}
|
|
77
|
-
],
|
|
89
|
+
], x = B();
|
|
78
90
|
async function S(e) {
|
|
79
|
-
await W.remove(`Are you sure you want to remove ${e.name}?`) && await
|
|
91
|
+
await W.remove(`Are you sure you want to remove ${e.name}?`) && await P(
|
|
80
92
|
async () => {
|
|
81
|
-
await
|
|
93
|
+
await f.delete(e._id), await p.read("POINT");
|
|
82
94
|
},
|
|
83
95
|
{
|
|
84
96
|
message: `Removing ${e.name}`,
|
|
@@ -86,38 +98,44 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
86
98
|
}
|
|
87
99
|
);
|
|
88
100
|
}
|
|
89
|
-
async function
|
|
90
|
-
e ? await t() :
|
|
101
|
+
async function y(e) {
|
|
102
|
+
e ? await t() : R.open(async (l) => {
|
|
91
103
|
await t(l);
|
|
92
104
|
});
|
|
93
105
|
async function t(l) {
|
|
94
106
|
var i;
|
|
95
|
-
(i =
|
|
107
|
+
(i = x.value) == null || i.showSheet(
|
|
96
108
|
!0,
|
|
97
109
|
"POINT",
|
|
98
|
-
e ? await
|
|
110
|
+
e ? await f.readById(e._id) : void 0,
|
|
99
111
|
l
|
|
100
112
|
);
|
|
101
113
|
}
|
|
102
114
|
}
|
|
103
115
|
async function L(e) {
|
|
116
|
+
await A.push({
|
|
117
|
+
name: me["$connect-PROGRAM_EXPERIENCE_ANALYTIC"],
|
|
118
|
+
params: { id: e._id }
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
async function I(e) {
|
|
104
122
|
var i;
|
|
105
|
-
if (!await
|
|
123
|
+
if (!await ae(e.name))
|
|
106
124
|
return;
|
|
107
|
-
const t = await
|
|
125
|
+
const t = await f.readById(e._id), l = ne(t, {
|
|
108
126
|
keepCollectible: !0
|
|
109
127
|
});
|
|
110
|
-
(i =
|
|
128
|
+
(i = x.value) == null || i.showSheet(
|
|
111
129
|
!0,
|
|
112
130
|
"POINT",
|
|
113
131
|
l,
|
|
114
132
|
t.template
|
|
115
133
|
);
|
|
116
134
|
}
|
|
117
|
-
async function
|
|
118
|
-
await
|
|
135
|
+
async function K(e) {
|
|
136
|
+
await P(
|
|
119
137
|
async () => {
|
|
120
|
-
e.campaign._id ? await
|
|
138
|
+
e.campaign._id ? await f.update(e.campaign._id, e) : await f.create(e), await p.read("POINT");
|
|
121
139
|
},
|
|
122
140
|
{
|
|
123
141
|
message: r("connect.program.common.update.updating", {
|
|
@@ -130,19 +148,19 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
130
148
|
}
|
|
131
149
|
);
|
|
132
150
|
}
|
|
133
|
-
return
|
|
134
|
-
await
|
|
151
|
+
return X(async () => {
|
|
152
|
+
await O(async () => {
|
|
135
153
|
await p.read("POINT");
|
|
136
154
|
});
|
|
137
155
|
}), (e, t) => {
|
|
138
|
-
const l = m("FmPageHead"), i = m("FmSearch"),
|
|
139
|
-
return
|
|
156
|
+
const l = m("FmPageHead"), i = m("FmSearch"), M = m("FmTable"), _ = m("FmButton"), U = m("FmListItem"), j = m("FmList"), H = m("FmCard");
|
|
157
|
+
return u(), C(v, null, [
|
|
140
158
|
s(l, {
|
|
141
159
|
title: o(r)("connect.program.experience.title"),
|
|
142
|
-
actions: o(
|
|
143
|
-
"onClick:action": t[0] || (t[0] = () =>
|
|
160
|
+
actions: o(g).length > 0 ? [N] : [],
|
|
161
|
+
"onClick:action": t[0] || (t[0] = () => y())
|
|
144
162
|
}, null, 8, ["title", "actions"]),
|
|
145
|
-
n("div",
|
|
163
|
+
n("div", pe, [
|
|
146
164
|
s(i, {
|
|
147
165
|
modelValue: o(c).searchKey,
|
|
148
166
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(c).searchKey = a),
|
|
@@ -150,17 +168,17 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
150
168
|
placeholder: o(r)("connect.program.common.search"),
|
|
151
169
|
collapsible: ""
|
|
152
170
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
153
|
-
o(p).campaigns.experience && o(p).campaigns.experience.length > 0 ? (
|
|
154
|
-
n("div",
|
|
155
|
-
n("div",
|
|
156
|
-
s(
|
|
171
|
+
o(p).campaigns.experience && o(p).campaigns.experience.length > 0 ? (u(), C(v, { key: 0 }, [
|
|
172
|
+
n("div", de, [
|
|
173
|
+
n("div", ue, [
|
|
174
|
+
s(ie, {
|
|
157
175
|
label: `${o(r)("connect.common.location")}: `,
|
|
158
176
|
"right-icon": "keyboard_arrow_down",
|
|
159
177
|
modelValue: o(c).location,
|
|
160
178
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(c).location = a),
|
|
161
179
|
icon: "storefront",
|
|
162
180
|
"show-item-label": !0,
|
|
163
|
-
items: o(
|
|
181
|
+
items: o(E).locationOptions
|
|
164
182
|
}, null, 8, ["label", "modelValue", "items"])
|
|
165
183
|
]),
|
|
166
184
|
s(i, {
|
|
@@ -171,48 +189,56 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
171
189
|
collapsible: ""
|
|
172
190
|
}, null, 8, ["modelValue"])
|
|
173
191
|
]),
|
|
174
|
-
s(
|
|
192
|
+
s(M, {
|
|
175
193
|
class: "xs:hidden sm:hidden",
|
|
176
|
-
"row-data": o(
|
|
177
|
-
"column-defs":
|
|
194
|
+
"row-data": o(g),
|
|
195
|
+
"column-defs": D,
|
|
178
196
|
"search-value": o(c).searchKey,
|
|
179
197
|
"column-filter": [],
|
|
180
|
-
onRowClick: t[4] || (t[4] = (a) =>
|
|
181
|
-
"hide-footer": o(
|
|
198
|
+
onRowClick: t[4] || (t[4] = (a) => y(a.original)),
|
|
199
|
+
"hide-footer": o(g).length < 10
|
|
182
200
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
183
|
-
s(
|
|
184
|
-
default:
|
|
185
|
-
(
|
|
201
|
+
s(j, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
202
|
+
default: b(() => [
|
|
203
|
+
(u(!0), C(v, null, Y(o(g).filter(
|
|
186
204
|
(a) => a.name.toLowerCase().includes(o(c).searchKey.toLowerCase())
|
|
187
|
-
), (a) => (
|
|
205
|
+
), (a) => (u(), k(U, {
|
|
188
206
|
key: a._id.toString(),
|
|
189
|
-
onClick: (
|
|
207
|
+
onClick: (d) => y(a),
|
|
190
208
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
191
209
|
}, {
|
|
192
|
-
default:
|
|
193
|
-
n("div",
|
|
194
|
-
n("div",
|
|
195
|
-
(
|
|
210
|
+
default: b(() => [
|
|
211
|
+
n("div", fe, [
|
|
212
|
+
n("div", ge, [
|
|
213
|
+
(u(), k(z(o(V)(a))))
|
|
196
214
|
]),
|
|
197
|
-
n("div",
|
|
198
|
-
n("div",
|
|
199
|
-
n("div",
|
|
215
|
+
n("div", ye, [
|
|
216
|
+
n("div", _e, h(a.name), 1),
|
|
217
|
+
n("div", he, h(o(T)(a)), 1)
|
|
200
218
|
])
|
|
201
219
|
]),
|
|
202
|
-
n("div",
|
|
203
|
-
s(
|
|
220
|
+
n("div", we, [
|
|
221
|
+
s(_, {
|
|
222
|
+
icon: "insights",
|
|
223
|
+
"icon-color": "neutral-gray-400",
|
|
224
|
+
variant: "tertiary",
|
|
225
|
+
onClick: async (d) => {
|
|
226
|
+
d.stopPropagation(), await L(a);
|
|
227
|
+
}
|
|
228
|
+
}, null, 8, ["onClick"]),
|
|
229
|
+
s(_, {
|
|
204
230
|
icon: "content_copy",
|
|
205
231
|
"icon-color": "neutral-gray-400",
|
|
206
232
|
variant: "tertiary",
|
|
207
|
-
onClick: async (
|
|
208
|
-
|
|
233
|
+
onClick: async (d) => {
|
|
234
|
+
d.stopPropagation(), await I(a);
|
|
209
235
|
}
|
|
210
236
|
}, null, 8, ["onClick"]),
|
|
211
|
-
s(
|
|
237
|
+
s(_, {
|
|
212
238
|
icon: "delete",
|
|
213
239
|
"icon-color": "neutral-gray-400",
|
|
214
240
|
variant: "tertiary",
|
|
215
|
-
onClick: (
|
|
241
|
+
onClick: (d) => (d.stopPropagation(), S(a))
|
|
216
242
|
}, null, 8, ["onClick"])
|
|
217
243
|
])
|
|
218
244
|
]),
|
|
@@ -221,33 +247,33 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
221
247
|
]),
|
|
222
248
|
_: 1
|
|
223
249
|
})
|
|
224
|
-
], 64)) : (
|
|
250
|
+
], 64)) : (u(), k(H, {
|
|
225
251
|
key: 1,
|
|
226
252
|
variant: "outlined",
|
|
227
253
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
228
254
|
}, {
|
|
229
|
-
default:
|
|
255
|
+
default: b(() => [
|
|
230
256
|
t[6] || (t[6] = n("img", {
|
|
231
257
|
src: J,
|
|
232
258
|
class: "aspect-square w-[150px]"
|
|
233
259
|
}, null, -1)),
|
|
234
|
-
n("div",
|
|
235
|
-
n("div",
|
|
236
|
-
n("div",
|
|
260
|
+
n("div", xe, [
|
|
261
|
+
n("div", Ce, h(o(r)("connect.program.experience.empty_state.title")), 1),
|
|
262
|
+
n("div", ve, h(o(r)("connect.program.experience.empty_state.description")), 1)
|
|
237
263
|
]),
|
|
238
|
-
s(
|
|
264
|
+
s(_, {
|
|
239
265
|
variant: "primary",
|
|
240
266
|
label: "Create experience program",
|
|
241
267
|
icon: "add",
|
|
242
|
-
onClick: t[5] || (t[5] = (a) =>
|
|
268
|
+
onClick: t[5] || (t[5] = (a) => y())
|
|
243
269
|
})
|
|
244
270
|
]),
|
|
245
271
|
_: 1
|
|
246
272
|
})),
|
|
247
|
-
s(
|
|
273
|
+
s(se, {
|
|
248
274
|
ref_key: "sheetRef",
|
|
249
|
-
ref:
|
|
250
|
-
"onSubmit:modelValue":
|
|
275
|
+
ref: x,
|
|
276
|
+
"onSubmit:modelValue": K
|
|
251
277
|
}, null, 512)
|
|
252
278
|
])
|
|
253
279
|
], 64);
|
|
@@ -255,5 +281,5 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
255
281
|
}
|
|
256
282
|
});
|
|
257
283
|
export {
|
|
258
|
-
|
|
284
|
+
Me as default
|
|
259
285
|
};
|