@feedmepos/mf-connect 0.1.98-beta.5 → 0.1.98-beta.50
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-D_4snNiy.js → App-XRTSw_F1.js} +812 -666
- package/dist/{AuditLogs-KQU1O9_9.js → AuditLogs-CgsvZ-7X.js} +12 -11
- package/dist/{Bin-gp_uuNrE.js → Bin-CDwE00an.js} +8 -8
- package/dist/{Broadcast-CbBaOlnn.js → Broadcast-BOh56jYG.js} +39 -36
- package/dist/CampaignAnalytic-DZkCSGRF.js +1826 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-2bro245w.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DqYRlwCj.js} +7 -5
- package/dist/Card-DZ01wmGw.js +1060 -0
- package/dist/{Collections-CKeOHYZ4.js → Collections-CaIWOlsO.js} +14 -13
- package/dist/Credit-C8TM9q2f.js +286 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bh2O4xdy.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-1UH_Ie4E.js} +34 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BIdb46VQ.js → EffectSheet.vue_vue_type_style_index_0_lang-CVqMqYhi.js} +6 -6
- package/dist/{Experience-B-c5SMns.js → Experience-Cy0K8E9P.js} +112 -86
- package/dist/{FileSaver.min-DWnvGKCg.js → FileSaver.min-ClaVGDxU.js} +1 -1
- package/dist/Game-DxUNIK1H.js +356 -0
- package/dist/GiftCardSetup-DPuRb-29.js +662 -0
- package/dist/{Grab-BLC4GcgE.js → Grab-VSlV6K7E.js} +32 -31
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-l2CmQ0nR.js → ImageInput.vue_vue_type_script_setup_true_lang-BJQzLNY1.js} +1 -1
- package/dist/{Index-DmAG2skd.js → Index-D_xXXqKL.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-UmynGH00.js → LocationPicker.vue_vue_type_script_setup_true_lang-BJl8_bKp.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BThofu65.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BOaXZf3X.js} +1 -1
- package/dist/LoyaltyDashboard-CWPV6CHM.js +2218 -0
- package/dist/MainLayout-CeA24f8v.js +143 -0
- package/dist/{Marketing-DmY25Ri9.js → Marketing-Bw437-ze.js} +7 -6
- package/dist/{MarketingMaterialEdit-DP9pba44.js → MarketingMaterialEdit-x6JdhQDh.js} +15 -14
- package/dist/Member-zLjxWmJf.js +626 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DM9c_Ow1.js +1287 -0
- package/dist/MemberImportHistory-BvvIfn9o.js +187 -0
- package/dist/MemberList-DqqAduX1.js +336 -0
- package/dist/{MemberTransactions-XRvUfeFB.js → MemberTransactions-j4nWa843.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-g7v3ZoUS.js → MessageInput.vue_vue_type_script_setup_true_lang-z9lYA425.js} +5434 -5279
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js +38 -0
- package/dist/Mission-CPXEtNBm.js +360 -0
- package/dist/Overview-Bel0iCe8.js +1316 -0
- package/dist/{Overview-DgmVlUVi.js → Overview-DySRWqyr.js} +21 -20
- package/dist/Point-ClovAwUI.js +288 -0
- package/dist/Promotion-BiiruWmm.js +423 -0
- package/dist/{Queue-DxtykwmI.js → Queue-DY9zRWWp.js} +13 -12
- package/dist/{Record-fLCi2Oyh.js → Record-BJ6M5bXk.js} +9 -9
- package/dist/Review-Cyi-vRyc.js +45 -0
- package/dist/ReviewFacebookCallback-CdSAfiJ7.js +238 -0
- package/dist/ReviewGoogleCallback-COen72wx.js +213 -0
- package/dist/{Reward-BbdiCAiO.js → Reward-B3--b_8h.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Cfjtk46d.js → RewardGroup.vue_vue_type_script_setup_true_lang-DCmSt5io.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CYEBeuQQ.js → RuleGroup.vue_vue_type_script_setup_true_lang-F2B47wb8.js} +17 -15
- package/dist/{Segment-EkGcR2jo.js → Segment-DydGccSi.js} +31 -29
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DND48RGu.js → SelectItems.vue_vue_type_script_setup_true_lang-Bf_1Lw5R.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-sbYDSAFK.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BXrHY1DU.js} +37 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8RmLtRC.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DhitF847.js} +4 -4
- package/dist/{Setting-D3swsR6P.js → Setting-DgXgWy7W.js} +14 -14
- package/dist/{SettingAdvertisements-BjhTK11W.js → SettingAdvertisements-TMTfvGdU.js} +12 -12
- package/dist/Settings-b3K8fH29.js +230 -0
- package/dist/Store-jAGYe4R6.js +2615 -0
- package/dist/{StoreRewards-CyrWuwLi.js → StoreRewards-23IXon0V.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BUTYIDGo.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BroaESpx.js} +400 -455
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DJQ022R4.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-gnjnQhXP.js} +2 -2
- package/dist/{Tier-DrPqr8_e.js → Tier-B_ixl0ZY.js} +44 -41
- package/dist/{Title-CaZtz98p.js → Title-CUc90kzn.js} +49 -46
- package/dist/Transaction-BNVEjOC4.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BsBqk0Rs.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CkbKlnrt.js} +6 -6
- package/dist/{Voucher-BZcr4D0y.js → Voucher-eALK6zg9.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DXQF3LZK.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CEsMYQ-L.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DI-tCQeb.js → ZodTextField.vue_vue_type_script_setup_true_lang-BEAJ5tb7.js} +2 -2
- package/dist/{app-B0vutEt5.js → app-I3z-EN92.js} +7269 -5971
- package/dist/app.js +1 -1
- package/dist/{business-IZLJeLD-.js → business-D_ksG_j8.js} +5 -5
- package/dist/campaign-BKIxUyuf.js +100 -0
- package/dist/{campaign-BPmgteCL.js → campaign-IZaOdcTr.js} +74 -96
- package/dist/{campaign.enum-BCdlLIt6.js → campaign.enum-k3u4N6yI.js} +1 -1
- package/dist/{campaign.fn-BIFWlQvS.js → campaign.fn-DeQTMPoH.js} +116 -116
- package/dist/{collectible.enum-CiuAWn6_.js → collectible.enum-CSQwvFfW.js} +1 -1
- package/dist/collection.fn-BtWAPYLz.js +26 -0
- package/dist/{duplicateCampaign-BouCkl9n.js → duplicateCampaign-BWdWO-Jv.js} +2 -2
- package/dist/{effect-Cov_Xrar.js → effect-BBSG58dq.js} +1 -1
- package/dist/{email-addresses-BiopO9xi.js → email-addresses-CJg5ttqC.js} +2 -2
- package/dist/{export-DAPTBdHb.js → export-BkjhRe8g.js} +3 -3
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-ClFo4nAk.js → helper-DsSVIIP1.js} +1 -1
- package/dist/index-38Rnr26K.js +53 -0
- package/dist/{index-N5t83KgP.js → index-BbBies0f.js} +1902 -2559
- package/dist/index-BmAoVlN8.js +151 -0
- package/dist/{index-BZvvCPbP.js → index-BsAuvfaE.js} +5 -4
- package/dist/{index-Kllafq_o.js → index-C-phzlda.js} +105 -123
- package/dist/{index-CD_3hR1g.js → index-C0qgi7n9.js} +1 -1
- package/dist/index-CPnv5m8Z.js +137 -0
- package/dist/{index-BeK9AXvx.js → index-CV1kOec1.js} +1 -1
- package/dist/{index-CmgQZKyo.js → index-Ckr8ODhI.js} +1 -1
- package/dist/{index-DTSGYksR.js → index-CtF4Z_fd.js} +281 -372
- package/dist/{index-k9DTOKkN.js → index-CtXqXihA.js} +4 -1
- package/dist/index-DCz9v1dd.js +51 -0
- package/dist/index-DdV1nasM.js +896 -0
- package/dist/index-ZPKkCZxS.js +72 -0
- package/dist/{index-k0hHOUBO.js → index-blX95L2R.js} +579 -571
- package/dist/{index-Bm5E2iD6.js → index-f0JDFqAr.js} +14 -14
- package/dist/{index-pKdJ8574.js → index-iagCxZ13.js} +5 -5
- package/dist/{index-C_AuIVay.js → index-wsdEChJx.js} +5 -5
- package/dist/{index.esm2017-ByFUnorr.js → index.esm2017-BMC-Q91P.js} +164 -164
- package/dist/{loading-t4ygCIAa.js → loading-3obmcgAf.js} +1 -1
- package/dist/{lodash-DwGVChOs.js → lodash-C69G7pFG.js} +1 -1
- package/dist/member-import-BxBe9NE7.js +187 -0
- package/dist/{membership-CMCTmRdh.js → membership-_XX1_j55.js} +3 -3
- package/dist/{money-MhQbdVIt.js → money-DZpYudCC.js} +1 -1
- package/dist/{number-klG94_wm.js → number-BbQQzzRA.js} +1 -1
- package/dist/objectid-kWi62XJQ.js +145 -0
- package/dist/{plugins-2py5EcqG.js → plugins-UfVjLlr4.js} +3 -3
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-CE9z-Us7.js → reward-1G2M5tgv.js} +1 -1
- package/dist/{rule-BKNHxNrQ.js → rule-DHHGjLt5.js} +3 -3
- package/dist/rule-builder-CgNmvg5o.js +126 -0
- package/dist/{template-C9yNa_0m.js → template-Ckva65hw.js} +6 -6
- package/dist/timezone-Ddve0ese.js +20 -0
- package/dist/transaction.fn-7n5XLxfA.js +64 -0
- package/dist/{trigger-Dk0tAyDv.js → trigger-F-XaDRpc.js} +14 -14
- package/dist/useMarketingMaterialActions-DIhnstdO.js +96 -0
- package/dist/{usePagination-cF1F_1NH.js → usePagination-C0TcC_Lo.js} +1 -1
- package/dist/{user-CNPPoxKh.js → user-DeuI7T2e.js} +1 -1
- package/dist/{vue-i18n-Bk_KpCO_.js → vue-i18n-DRrphfc1.js} +191 -191
- package/dist/{xlsx-D3muGzk7.js → xlsx-DaY_eyt1.js} +440 -440
- package/dist/{zod-D72USJGr.js → zod-BDdpK5Gp.js} +1 -1
- package/package.json +5 -3
- package/dist/Card-P7MqKEDT.js +0 -910
- package/dist/Credit-Dp5P2k79.js +0 -260
- package/dist/Game-CNSbh93g.js +0 -330
- package/dist/LoyaltyDashboard-Go9ClMrp.js +0 -1082
- package/dist/MainLayout-Dyw9Qqvh.js +0 -41
- package/dist/Member-DKXzaqlL.js +0 -280
- package/dist/MemberList-BJ5nI3Nz.js +0 -1601
- package/dist/Mission-BvHArY3W.js +0 -334
- package/dist/Point-BR0R03i6.js +0 -262
- package/dist/Promotion-DofFeR2N.js +0 -397
- package/dist/Review-7tFJOnrt.js +0 -1076
- package/dist/ReviewFacebookCallback-yl0w_vF9.js +0 -243
- package/dist/ReviewGoogleCallback-Dn_aF2ZD.js +0 -208
- package/dist/Store-U1jysb7b.js +0 -1996
- package/dist/Transaction-Bj6bSo8R.js +0 -39
- package/dist/campaign-Cxp-DOCG.js +0 -219
- package/dist/index-BQ8XZk2Y.js +0 -85
- package/dist/index-KmCk2ksK.js +0 -52
- package/dist/objectid-C4ak1ctJ.js +0 -145
- package/dist/useMarketingMaterialActions-BiXkdMcs.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-UfVjLlr4.js";
|
|
5
|
+
import { u as Z } from "./loading-3obmcgAf.js";
|
|
6
|
+
import { u as ee } from "./business-D_ksG_j8.js";
|
|
7
|
+
import { u as te } from "./campaign-BKIxUyuf.js";
|
|
8
|
+
import { b as V, c as T, a as oe } from "./campaign-IZaOdcTr.js";
|
|
9
|
+
import { c as ae, p as ne } from "./duplicateCampaign-BWdWO-Jv.js";
|
|
10
|
+
import { u as re } from "./vue-i18n-DRrphfc1.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-1UH_Ie4E.js";
|
|
13
|
+
import { u as ce } from "./template-Ckva65hw.js";
|
|
14
|
+
import "./index-Ckr8ODhI.js";
|
|
15
|
+
import { useRouter as le } from "vue-router";
|
|
16
|
+
import { c as f } from "./index-BmAoVlN8.js";
|
|
17
|
+
import { R as me } from "./app-I3z-EN92.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
|
};
|