@feedmepos/mf-connect 0.1.98-beta.21 → 0.1.98-beta.22
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-B3f8GWoR.js → App-DkvPrOD_.js} +10 -9
- package/dist/{AuditLogs-LRHzzpqj.js → AuditLogs-CWYsiJmS.js} +9 -9
- package/dist/{Bin-Y761Ua4-.js → Bin-BeuBpKQM.js} +8 -8
- package/dist/{Broadcast-CdRuG42N.js → Broadcast-Dm-HdR4q.js} +13 -12
- package/dist/CampaignAnalytic-DipDONF1.js +1656 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CsULDH9l.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D4wbIGp6.js} +6 -5
- package/dist/{Card-GZ3ZLnBl.js → Card-i5EhYfDp.js} +18 -18
- package/dist/{Collections-B59fL-oS.js → Collections-B4lpotjz.js} +14 -13
- package/dist/{Credit-DJxzXBam.js → Credit-DbK_BdJJ.js} +119 -93
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C3d8frgZ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-B8Soqc5E.js} +34 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DKUFvacX.js → EffectSheet.vue_vue_type_style_index_0_lang-DzdJH_eS.js} +6 -6
- package/dist/{Experience-lzpvYFPP.js → Experience-W3vkkzi6.js} +112 -86
- package/dist/{FileSaver.min-BXoEv5ve.js → FileSaver.min-BI4NzqgX.js} +1 -1
- package/dist/Game-fftjNIOx.js +356 -0
- package/dist/{Grab-BQgS104D.js → Grab-CMQ8P4g9.js} +32 -31
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Cz9iB9ox.js → ImageInput.vue_vue_type_script_setup_true_lang-DUi11pWY.js} +1 -1
- package/dist/{Index-B5UTBbUy.js → Index-Cnztjepd.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CLLhy4-v.js → LocationPicker.vue_vue_type_script_setup_true_lang-Dy8WW9eT.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BiIqs4zW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DTHvv2lB.js} +1 -1
- package/dist/LoyaltyDashboard-1gKZWq0g.js +1339 -0
- package/dist/{MainLayout-AvQ4_-oT.js → MainLayout-CfKJ6l-r.js} +1 -1
- package/dist/{Marketing-Bn1ygF8d.js → Marketing-Dk_nSJuC.js} +4 -4
- package/dist/{MarketingMaterialEdit-Cw-VPVqE.js → MarketingMaterialEdit-DnO9DNuB.js} +6 -6
- package/dist/{Member-CpEXFHIF.js → Member-CpXKw34e.js} +11 -11
- package/dist/{MemberList-gSEw_idJ.js → MemberList-8ppDIsaQ.js} +36 -35
- package/dist/{MemberTransactions-DEMzj9-y.js → MemberTransactions-B52DV6hR.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-B4Y5KPpw.js → MessageInput.vue_vue_type_script_setup_true_lang-Di0tBK7t.js} +4400 -4431
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-B1Yj3odA.js +38 -0
- package/dist/Mission-dT284_xH.js +360 -0
- package/dist/{Overview-CMudFYOc.js → Overview-CUXmQ5AN.js} +3 -3
- package/dist/{Overview-DjNcF88f.js → Overview-CePgs6nV.js} +18 -18
- package/dist/Point-BLr01-Fi.js +288 -0
- package/dist/Promotion-BJUWwJir.js +423 -0
- package/dist/{Queue-BjoAJoVe.js → Queue-DpjzPA9X.js} +16 -16
- package/dist/{Record-CfZFuwy_.js → Record-D5iz3VhQ.js} +9 -9
- package/dist/{Review-pIAxbjVU.js → Review-BIDSfZ-d.js} +2 -2
- package/dist/{ReviewFacebookCallback-BRW4T-5-.js → ReviewFacebookCallback-Cl4apd5U.js} +5 -5
- package/dist/{ReviewGoogleCallback-B-6EojXR.js → ReviewGoogleCallback-CxQ3jv5Z.js} +5 -5
- package/dist/{Reward-_pdE2XZp.js → Reward-FhUo0v2c.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-S5dh0IGc.js → RewardGroup.vue_vue_type_script_setup_true_lang-9Fdl4-Zk.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-C9B7NmF0.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bh1rez91.js} +16 -15
- package/dist/{Segment-B1EMe-LZ.js → Segment-XrwahyNZ.js} +39 -37
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DAmjk8b3.js → SelectItems.vue_vue_type_script_setup_true_lang-Bd_O16Eo.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-C7sgPf8l.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CB0bY0pg.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DVYTZr_E.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1-fwLJq.js} +4 -4
- package/dist/{Setting-CQQ6zacB.js → Setting-Cs5abyWq.js} +40 -40
- package/dist/{SettingAdvertisements-9Wl9VWbM.js → SettingAdvertisements-C0NbeiB9.js} +12 -12
- package/dist/{Settings-Bvj2ChDR.js → Settings-xdy_sV8_.js} +5 -5
- package/dist/{Store-BdUZ22g6.js → Store-BVn4DGJN.js} +21 -21
- package/dist/{StoreRewards-DsUS_Lu1.js → StoreRewards-BnEDugiP.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Zw-lIDCN.js → StoreTransactions.vue_vue_type_script_setup_true_lang-B63UqQ0d.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BECp3eqQ.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BOIUqr5c.js} +2 -2
- package/dist/{Tier-2-mJ3SNK.js → Tier-BdyyZ6S8.js} +36 -34
- package/dist/{Title-BjeEDjxl.js → Title-Y7GfS9n5.js} +39 -37
- package/dist/{Transaction--U_kJKec.js → Transaction-DF217QY1.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BkLyvjA5.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-QrbU0JEl.js} +6 -6
- package/dist/{Voucher-INa3N_6V.js → Voucher-q9JMtbmK.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-4Quzmc7-.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Cm040eE9.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CPCnBExY.js → ZodTextField.vue_vue_type_script_setup_true_lang-DibJzz40.js} +2 -2
- package/dist/{app-Dlqr-LX4.js → app-BZJkvDm7.js} +3279 -3135
- package/dist/app.js +1 -1
- package/dist/{business-DWrfGEe_.js → business-akMhlJ-M.js} +1 -1
- package/dist/{campaign-DtNt-BqN.js → campaign-BDXIKhhi.js} +74 -96
- package/dist/campaign-hm_reShF.js +100 -0
- package/dist/{campaign.enum-B9-ZpK0C.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/{campaign.fn-COxaWmi_.js → campaign.fn-BFI2Flc_.js} +126 -126
- package/dist/{collectible.enum-CF0VF-r7.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-RUGxb2Zd.js +26 -0
- package/dist/{duplicateCampaign-8ciT68QF.js → duplicateCampaign-DsGtbLbP.js} +2 -2
- package/dist/{effect-CaSn-84h.js → effect-8iyz8Uq4.js} +1 -1
- package/dist/{email-addresses-BiMQ8xIx.js → email-addresses-gyl-C-R_.js} +2 -2
- package/dist/{export-BwBNgCo5.js → export-wupBk3du.js} +3 -3
- package/dist/{helper-CajV_0CM.js → helper-CaxDAXPt.js} +1 -1
- package/dist/{index-CQIciFrH.js → index-BMin5EVt.js} +1 -1
- package/dist/{index-CQj9BQlQ.js → index-BO9SkdZr.js} +105 -123
- package/dist/index-BOcaalDh.js +146 -0
- package/dist/{index-B6ldAC8Y.js → index-BQmxPtoj.js} +1 -1
- package/dist/{index-B6tm_U_M.js → index-Bic6MeUk.js} +18 -17
- package/dist/{index-D1vhLY7l.js → index-C4drX0Ls.js} +1 -1
- package/dist/index-C8cXXcLk.js +45 -0
- package/dist/{index-DBUTFa2h.js → index-CG66mIC4.js} +2 -2
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-Bqcfsd4p.js → index-Cw-UC5sx.js} +8 -7
- package/dist/{index-D1--K-QL.js → index-D4BfoKjK.js} +1 -1
- package/dist/{index-DWBKko92.js → index-DhQlBP7P.js} +6 -6
- package/dist/{index-J8pSZ3WO.js → index-Dvf0YXyw.js} +1 -1
- package/dist/{index-BP5rdioN.js → index-J3y4ZPL5.js} +8027 -10766
- package/dist/{index-CjW6Mj-1.js → index-bZhlsMWI.js} +1 -1
- package/dist/{index-B0ohh62P.js → index-xGCLj50g.js} +230 -351
- package/dist/{index-D90p28Hr.js → index-yYZu6iPh.js} +205 -229
- package/dist/{index.esm2017-QlPanYiW.js → index.esm2017-DgAjf49-.js} +1 -1
- package/dist/{loading-CqqkzWSm.js → loading-DIme5B41.js} +1 -1
- package/dist/{lodash-DmbW2QhA.js → lodash-ssnk3xgl.js} +1 -1
- package/dist/{membership-Dcwyu-rr.js → membership-CNHGvM-v.js} +3 -3
- package/dist/{money-DWr1gi--.js → money-CxE1yyP-.js} +1 -1
- package/dist/{number-CHhHAd1q.js → number-MuiSu5EH.js} +1 -1
- package/dist/{objectid-BsiuHVH8.js → objectid-BKst2tcL.js} +9 -9
- package/dist/{plugins-BxmMI8fo.js → plugins-J8P61v6q.js} +3 -3
- package/dist/{reward-DX0FjsNT.js → reward-CvyDLx6u.js} +1 -1
- package/dist/{rule-DDLcqiHH.js → rule-CidUfHRV.js} +3 -3
- package/dist/rule-builder-CzSwZHFX.js +126 -0
- package/dist/{template-C0lF82yv.js → template-DDFGgRca.js} +6 -6
- package/dist/timezone-C55-EXUa.js +20 -0
- package/dist/{trigger-CsJcg_RY.js → trigger-BHmznST2.js} +5 -5
- package/dist/{useMarketingMaterialActions-B0iV6YzB.js → useMarketingMaterialActions-CRGy07Kl.js} +3 -3
- package/dist/{usePagination-4EISkyGW.js → usePagination-nKd3ToBL.js} +1 -1
- package/dist/{user-DZuSeqRY.js → user-CxxLM4oI.js} +1 -1
- package/dist/{vue-i18n-BKcwYlp1.js → vue-i18n-BIqCnVyc.js} +300 -300
- package/dist/{xlsx-C-7dia55.js → xlsx-CUqEhJg1.js} +1 -1
- package/dist/{zod-DPxXVSRw.js → zod-B3g-tD-1.js} +1 -1
- package/package.json +1 -1
- package/dist/Game-KCxIpXEC.js +0 -330
- package/dist/LoyaltyDashboard-DPHWpaNJ.js +0 -1082
- package/dist/Mission-DMtpauNQ.js +0 -334
- package/dist/Point-CgdTrgXc.js +0 -262
- package/dist/Promotion-DDQodFDb.js +0 -397
- package/dist/campaign-un9Ji1KF.js +0 -219
|
@@ -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-J8P61v6q.js";
|
|
5
|
+
import { u as Z } from "./loading-DIme5B41.js";
|
|
6
|
+
import { u as ee } from "./business-akMhlJ-M.js";
|
|
7
|
+
import { u as te } from "./campaign-hm_reShF.js";
|
|
8
|
+
import { b as V, c as T, a as oe } from "./campaign-BDXIKhhi.js";
|
|
9
|
+
import { c as ae, p as ne } from "./duplicateCampaign-DsGtbLbP.js";
|
|
10
|
+
import { u as re } from "./vue-i18n-BIqCnVyc.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-B8Soqc5E.js";
|
|
13
|
+
import { u as ce } from "./template-DDFGgRca.js";
|
|
14
|
+
import "./index-BMin5EVt.js";
|
|
15
|
+
import { useRouter as le } from "vue-router";
|
|
16
|
+
import { c as f } from "./index-BOcaalDh.js";
|
|
17
|
+
import { R as me } from "./app-BZJkvDm7.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
|
};
|