@feedmepos/mf-connect 0.1.98-beta.7 → 0.1.98-beta.71
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-BonFFUVJ.js → App-B-Onur9k.js} +812 -666
- package/dist/{AuditLogs-CaQisyMC.js → AuditLogs-BnEeKG1C.js} +14 -13
- package/dist/{Bin-Mu8gAiHw.js → Bin-BH9_nATR.js} +8 -8
- package/dist/Broadcast-Gt2ZLLpZ.js +302 -0
- package/dist/CampaignAnalytic-BT6zTgNk.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BoLZVrCU.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-nNLLEzii.js} +6 -5
- package/dist/Card-dD52oor7.js +1084 -0
- package/dist/{Collections-CByXxRW_.js → Collections-7bwYNl3M.js} +14 -13
- package/dist/Credit-qZdlqXqR.js +286 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-DeNn_k19.js +53 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C09W9Qja.js +4213 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BXsAX1Xa.js → EffectSheet.vue_vue_type_style_index_0_lang-Bz1HRBMa.js} +35 -35
- package/dist/{Experience-B7J-aqPK.js → Experience-CAaWgWXP.js} +112 -86
- package/dist/{FileSaver.min-D_F_MSZt.js → FileSaver.min-BpfY6VnX.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-fhrbFb_5.js +356 -0
- package/dist/GiftCardSetup-CTwmNKim.js +736 -0
- package/dist/{Grab-C45MmlD9.js → Grab-BnPfb92x.js} +33 -32
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CPPcB3PC.js → ImageInput.vue_vue_type_script_setup_true_lang-BySju1oT.js} +1 -1
- package/dist/{Index-vQ6uP49O.js → Index-DRwvmm_j.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Cj3hN3tg.js → LocationPicker.vue_vue_type_script_setup_true_lang-Ya4r9NNE.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DU9eIein.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CDwtqqLQ.js} +1 -1
- package/dist/LoyaltyDashboard-8jn6SIWo.js +2865 -0
- package/dist/MainLayout-Bf42AcB1.js +143 -0
- package/dist/{Marketing-B6xMdQvW.js → Marketing-DruTMjiR.js} +7 -6
- package/dist/{MarketingMaterialEdit-0cZN4bek.js → MarketingMaterialEdit-moEHd_gP.js} +15 -14
- package/dist/Member-C9VTQqIm.js +654 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DEsVSWmv.js +1279 -0
- package/dist/MemberImportHistory-DZVwya9v.js +187 -0
- package/dist/MemberList-KusIfy1u.js +334 -0
- package/dist/{MemberTransactions-Bg-ziZy8.js → MemberTransactions-msyjdzlI.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jbDJkbZh.js → MessageInput.vue_vue_type_script_setup_true_lang-DbV-m3cC.js} +5928 -5644
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-1DYGpJnD.js +40 -0
- package/dist/Mission-CUUxpBUF.js +360 -0
- package/dist/{Overview-nsyJGSCq.js → Overview-C9jyKXHX.js} +21 -20
- package/dist/Overview-CYKoF8Hp.js +1316 -0
- package/dist/Point-CPpQ07yp.js +288 -0
- package/dist/Promotion-CJ95m9Qb.js +423 -0
- package/dist/{Queue-Dkipt6fw.js → Queue-CX39ILh_.js} +14 -13
- package/dist/{Record-BFqx6vM-.js → Record-6I0qyXB5.js} +9 -9
- package/dist/Review-DoWu2XNT.js +45 -0
- package/dist/ReviewFacebookCallback-Co-5TnI7.js +238 -0
- package/dist/ReviewGoogleCallback-Ca7ZuMcF.js +213 -0
- package/dist/{Reward-DjFEE7I_.js → Reward-Cx_N6qBJ.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BzZ6VH80.js → RewardGroup.vue_vue_type_script_setup_true_lang-Cn5Yp37p.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-A9jQX4jt.js → RuleGroup.vue_vue_type_script_setup_true_lang-M0c67Dyl.js} +196 -186
- package/dist/{Segment-BAjdUfZ6.js → Segment-Bx0EW966.js} +275 -276
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CAQPFzRH.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-ahvrEUGa.js} +37 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Gkz8jhES.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C7zSfZdl.js} +4 -4
- package/dist/{Setting-BK7y0XC-.js → Setting-DzEK3dWj.js} +14 -14
- package/dist/{SettingAdvertisements-DfQ645xr.js → SettingAdvertisements-BNALbI88.js} +12 -12
- package/dist/Settings-Cw85-xzq.js +230 -0
- package/dist/Store-BSqW1gwf.js +2612 -0
- package/dist/{StoreRewards-usHKOGmB.js → StoreRewards-CJXnS8Qf.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C6tUwHEj.js +1329 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrcWUZuR.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-iylphGuV.js} +2 -2
- package/dist/{Tier-BF3V430O.js → Tier-DfitNxp2.js} +2580 -754
- package/dist/{Title-DwPuqKfJ.js → Title-QCbtOvKB.js} +39 -37
- package/dist/Transaction-dOCzlidD.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DToNRTJS.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Be5X1C-Y.js} +26 -26
- package/dist/{Voucher-DnhVIl_o.js → Voucher-BfoCDwjg.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Btb3UZCn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-0EIYoZ0F.js} +118 -124
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-EFUW9DMY.js → ZodTextField.vue_vue_type_script_setup_true_lang-UdStgKbX.js} +2 -2
- package/dist/{app-i3r-6ZVm.js → app-BxTElIm-.js} +45168 -37577
- package/dist/app.js +1 -1
- package/dist/base.export-BmUK8hMh.js +75 -0
- package/dist/{business-i0Gxk7gG.js → business-DjAiT8tR.js} +5 -5
- package/dist/campaign-DlR3KF9m.js +368 -0
- package/dist/campaign-tAmQNoq7.js +100 -0
- package/dist/{campaign.enum-CbUTfxek.js → campaign.enum-BjwEQd11.js} +1 -1
- package/dist/{campaign.fn-BjHSIDd1.js → campaign.fn-C6kWWIQx.js} +53 -53
- package/dist/{collectible.enum-DN7E_kHg.js → collectible.enum-BrtXpT9S.js} +1 -1
- package/dist/collection.fn-CDhfM3Eq.js +26 -0
- package/dist/currency-10nX5QnT.js +7 -0
- package/dist/{duplicateCampaign-DmdJQEIA.js → duplicateCampaign-6oMZOvfM.js} +11 -11
- package/dist/{effect-DM4AzeQl.js → effect-T4YzuTc5.js} +1 -1
- package/dist/{email-addresses-BlqVJhwZ.js → email-addresses-BjODnJMM.js} +209 -201
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-CkdISSVP.js → helper-BCl5r5yZ.js} +1 -1
- package/dist/{index-DgzNGQgE.js → index-B9ZMIUMa.js} +2083 -2559
- package/dist/{index-CB7ytKOE.js → index-BBsK7TUw.js} +1588 -1522
- package/dist/index-BQk6zTgf.js +32437 -0
- package/dist/index-Bd4clHfr.js +901 -0
- package/dist/index-BeVWchv7.js +14550 -0
- package/dist/index-Bht1Z11w.js +72 -0
- package/dist/{index-FD50UHqf.js → index-BiolIgqR.js} +105 -123
- package/dist/{index-Cl8t41Sk.js → index-BxU--5J5.js} +5 -5
- package/dist/index-Bz6oSli7.js +151 -0
- package/dist/index-C5IfNJUl.js +53 -0
- package/dist/{index-BWsj6lCJ.js → index-CRvUvCMA.js} +14 -14
- package/dist/{index-B6xi1soU.js → index-CnaQt4Pn.js} +1 -1
- package/dist/{index-4EtrCy_K.js → index-Ctja--IE.js} +4 -4
- package/dist/{index-D6qeYVNz.js → index-D8rGhchh.js} +1 -1
- package/dist/{index-BrboOmPq.js → index-DJdTDF9C.js} +347 -216
- package/dist/index-DXiJa8Cw.js +137 -0
- package/dist/{index-CxdLExX0.js → index-DeQKLilv.js} +24 -9
- package/dist/{index-vI-ndGu_.js → index-DhtKt4OL.js} +5 -5
- package/dist/{index.esm2017-BX5CyKoc.js → index.esm2017-CEOegJjn.js} +132 -132
- package/dist/{loading-DTKDhqew.js → loading-Dx4SCvZY.js} +1 -1
- package/dist/{lodash-CCPBsqhe.js → lodash-Dq8OKCKK.js} +1 -1
- package/dist/member-import-DX-jn2uk.js +187 -0
- package/dist/membership-CltAa-gH.js +274 -0
- package/dist/{money-wMK3QkZ5.js → money-DsaAjJTI.js} +1 -1
- package/dist/{number-DjKVlWn0.js → number-DmhHKYgY.js} +1 -1
- package/dist/objectid-BdNv-dZX.js +145 -0
- package/dist/{plugins-D25PaNJk.js → plugins-BFKVM3uC.js} +13 -12
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-E63jqJHm.js → reward--SjvIeyy.js} +1 -1
- package/dist/{rule-RVvPtAnk.js → rule-CAKdNobZ.js} +335 -275
- package/dist/style.css +1 -1
- package/dist/{template-zNxOQaqe.js → template-Cfxc5eM8.js} +6 -6
- package/dist/timezone-D2b-V5XD.js +20 -0
- package/dist/transaction.fn-B5mLY7bz.js +71 -0
- package/dist/{trigger-BXV02FhP.js → trigger-DvYcjRBZ.js} +17 -17
- package/dist/useMarketingMaterialActions-DtqnjMSt.js +96 -0
- package/dist/{usePagination-BPcPhEnp.js → usePagination-DKX24g31.js} +1 -1
- package/dist/{user-Bd8S7R5u.js → user-fWb1NxGO.js} +1 -1
- package/dist/vue-i18n-wJReAVJw.js +2365 -0
- package/dist/{xlsx-_tQC9Ezf.js → xlsx-Mthhu4JR.js} +440 -440
- package/dist/{zod-C1j2GLZP.js → zod-CVpVUgBZ.js} +1 -1
- package/package.json +10 -6
- package/dist/Broadcast-Cy-i-WOT.js +0 -266
- package/dist/Card-f2XOtWxp.js +0 -910
- package/dist/Credit-CcZF4aQS.js +0 -260
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7KZ8GMx.js +0 -3377
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-CUW7NeVG.js +0 -330
- package/dist/LoyaltyDashboard-GqyUwvXz.js +0 -1082
- package/dist/MainLayout-R5NxIBR-.js +0 -41
- package/dist/Member-CC5F6Bmz.js +0 -280
- package/dist/MemberList-Cq4zxopX.js +0 -1601
- package/dist/Mission-DcCZ6tAG.js +0 -334
- package/dist/Point-D1vLd5hL.js +0 -262
- package/dist/Promotion-Cv7MW5RJ.js +0 -397
- package/dist/Review-CKhakUMe.js +0 -1123
- package/dist/ReviewFacebookCallback-xgRpXQAg.js +0 -243
- package/dist/ReviewGoogleCallback-Cqi_43qi.js +0 -208
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DDqK4kV1.js +0 -181
- package/dist/Store-uTRQ6KbC.js +0 -1996
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Bb2sTsuA.js +0 -1130
- package/dist/Transaction-CnTEfMGU.js +0 -39
- package/dist/campaign-CbMlARNI.js +0 -219
- package/dist/campaign-f7FT91GR.js +0 -277
- package/dist/export-DQR-0lmK.js +0 -97
- package/dist/index-COrXX9MR.js +0 -52
- package/dist/index-CWiaP-aV.js +0 -28900
- package/dist/index-jVfDVEtz.js +0 -85
- package/dist/membership-rifuatxU.js +0 -255
- package/dist/objectid-DjpWkCxH.js +0 -145
- package/dist/useMarketingMaterialActions-5TFNqZVo.js +0 -107
- package/dist/vue-i18n-CgMK-TaC.js +0 -2365
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { defineComponent as G, ref as N, computed as Y, h as C, onMounted as z, resolveComponent as m, openBlock as u, createElementBlock as x, Fragment as k, createVNode as i, unref as o, withCtx as w, createElementVNode as n, toDisplayString as f, renderList as J, createBlock as F, resolveDynamicComponent as Q } from "vue";
|
|
2
|
+
import { _ as W } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as X, components as P } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as Z } from "./plugins-BFKVM3uC.js";
|
|
5
|
+
import { u as ee } from "./loading-Dx4SCvZY.js";
|
|
6
|
+
import { u as te } from "./business-DjAiT8tR.js";
|
|
7
|
+
import { u as oe } from "./campaign-tAmQNoq7.js";
|
|
8
|
+
import { a as ae, b as $, c as A } from "./campaign-DlR3KF9m.js";
|
|
9
|
+
import { c as ne, p as ie } from "./duplicateCampaign-6oMZOvfM.js";
|
|
10
|
+
import { _ as re } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
11
|
+
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C09W9Qja.js";
|
|
12
|
+
import { u as le } from "./template-Cfxc5eM8.js";
|
|
13
|
+
import { u as ce } from "./vue-i18n-wJReAVJw.js";
|
|
14
|
+
import "./index-D8rGhchh.js";
|
|
15
|
+
import { useRouter as me } from "vue-router";
|
|
16
|
+
import { c as g } from "./index-Bz6oSli7.js";
|
|
17
|
+
import { R as pe } from "./app-BxTElIm-.js";
|
|
18
|
+
const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, fe = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-center justify-between w-full" }, ye = { class: "flex gap-8 overflow-x-auto" }, _e = { class: "space-y-8" }, he = { class: "flex w-full gap-4 items-center" }, Ce = { class: "space-y-4" }, we = { class: "fm-typo-en-body-lg-600" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = { class: "flex items-center gap-8" }, xe = { class: "flex flex-col gap-16 text-center" }, ke = { class: "fm-typo-en-title-sm-800" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, He = /* @__PURE__ */ G({
|
|
19
|
+
__name: "Point",
|
|
20
|
+
setup(Pe) {
|
|
21
|
+
const { t: r } = ce(), O = me(), R = {
|
|
22
|
+
label: r("connect.program.common.actions.create", {
|
|
23
|
+
type: r("connect.program.point.title").toLowerCase()
|
|
24
|
+
}),
|
|
25
|
+
value: "create",
|
|
26
|
+
isPrimary: !0,
|
|
27
|
+
prependIcon: "add"
|
|
28
|
+
}, D = le("COIN", X()), b = te(), p = oe(), { global: K, minor: L } = ee, l = N({
|
|
29
|
+
searchKey: "",
|
|
30
|
+
location: []
|
|
31
|
+
});
|
|
32
|
+
function T(e) {
|
|
33
|
+
const t = l.value.location;
|
|
34
|
+
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((c) => {
|
|
35
|
+
var s;
|
|
36
|
+
return (s = e == null ? void 0 : e.targetLocation) == null ? void 0 : s.includes(c);
|
|
37
|
+
}) : e.targetLocation.includes(t);
|
|
38
|
+
}
|
|
39
|
+
const y = Y(
|
|
40
|
+
() => p.campaigns.point.filter((e) => T(e))
|
|
41
|
+
), U = [
|
|
42
|
+
{
|
|
43
|
+
header: r("connect.program.common.table.title"),
|
|
44
|
+
accessorFn: (e) => e.name
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
header: r("connect.program.common.table.status"),
|
|
48
|
+
accessorFn: (e) => ae(e),
|
|
49
|
+
cell(e) {
|
|
50
|
+
return $(e.row.original);
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
header: r("connect.program.common.table.summary"),
|
|
55
|
+
accessorFn: (e) => A(e)
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
header: r("connect.program.common.table.actions"),
|
|
59
|
+
cell(e) {
|
|
60
|
+
return C("div", { class: "flex items-center gap-8 justify-end" }, [
|
|
61
|
+
C(P.FmButton, {
|
|
62
|
+
variant: "tertiary",
|
|
63
|
+
icon: "insights",
|
|
64
|
+
iconColor: "neutral-gray-400",
|
|
65
|
+
onClick: async (t) => {
|
|
66
|
+
t.stopPropagation(), await I(e.row.original);
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
C(P.FmButton, {
|
|
70
|
+
variant: "tertiary",
|
|
71
|
+
icon: "content_copy",
|
|
72
|
+
iconColor: "neutral-gray-400",
|
|
73
|
+
onClick: async (t) => {
|
|
74
|
+
t.stopPropagation(), await B(e.row.original);
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
C(P.FmButton, {
|
|
78
|
+
variant: "tertiary",
|
|
79
|
+
icon: "delete",
|
|
80
|
+
iconColor: "neutral-gray-400",
|
|
81
|
+
onClick: (t) => {
|
|
82
|
+
t.stopPropagation(), S(e.row.original);
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
]);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
], v = N();
|
|
89
|
+
async function S(e) {
|
|
90
|
+
await Z.remove(`Are you sure you want to remove ${e.name}?`) && await L(
|
|
91
|
+
async () => {
|
|
92
|
+
await g.delete(e._id), await p.read("COIN");
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
message: `Removing ${e.name}`,
|
|
96
|
+
successMessage: `Removed ${e.name} successfully`
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
async function _(e) {
|
|
101
|
+
e ? await t() : D.open(async (c) => {
|
|
102
|
+
await t(c);
|
|
103
|
+
});
|
|
104
|
+
async function t(c) {
|
|
105
|
+
var s;
|
|
106
|
+
(s = v.value) == null || s.showSheet(
|
|
107
|
+
!0,
|
|
108
|
+
"COIN",
|
|
109
|
+
e ? await g.readById(e._id) : void 0,
|
|
110
|
+
c
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async function I(e) {
|
|
115
|
+
await O.push({
|
|
116
|
+
name: pe["$connect-PROGRAM_POINT_ANALYTIC"],
|
|
117
|
+
params: { id: e._id }
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
async function B(e) {
|
|
121
|
+
var s;
|
|
122
|
+
if (!await ne(e.name))
|
|
123
|
+
return;
|
|
124
|
+
const t = await g.readById(e._id), c = ie(t, {
|
|
125
|
+
keepCollectible: !0
|
|
126
|
+
});
|
|
127
|
+
(s = v.value) == null || s.showSheet(
|
|
128
|
+
!0,
|
|
129
|
+
"COIN",
|
|
130
|
+
c,
|
|
131
|
+
t.template
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
async function E(e) {
|
|
135
|
+
await L(
|
|
136
|
+
async () => {
|
|
137
|
+
e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await p.read("COIN");
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
message: `${e.campaign._id ? "Updating" : "Creating"} point program`,
|
|
141
|
+
successMessage: `Point program ${e.campaign._id ? "updated" : "created"} successfully`
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
return z(async () => {
|
|
146
|
+
await K(async () => {
|
|
147
|
+
await p.read("COIN");
|
|
148
|
+
});
|
|
149
|
+
}), (e, t) => {
|
|
150
|
+
const c = m("FmPill"), s = m("FmPageHead"), V = m("FmSearch"), M = m("FmTable"), h = m("FmButton"), j = m("FmListItem"), H = m("FmList"), q = m("FmCard");
|
|
151
|
+
return u(), x(k, null, [
|
|
152
|
+
i(s, {
|
|
153
|
+
title: o(r)("connect.program.point.title"),
|
|
154
|
+
actions: o(y).length > 0 && o(b).isPremium ? [R] : [],
|
|
155
|
+
"onClick:action": t[0] || (t[0] = () => _())
|
|
156
|
+
}, {
|
|
157
|
+
title: w(() => [
|
|
158
|
+
n("div", de, [
|
|
159
|
+
n("span", ue, f(o(r)("connect.program.point.title")), 1),
|
|
160
|
+
i(c, { variant: "premium" })
|
|
161
|
+
])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["title", "actions"]),
|
|
165
|
+
n("div", fe, [
|
|
166
|
+
i(V, {
|
|
167
|
+
modelValue: o(l).searchKey,
|
|
168
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).searchKey = a),
|
|
169
|
+
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
170
|
+
placeholder: "search",
|
|
171
|
+
collapsible: ""
|
|
172
|
+
}, null, 8, ["modelValue"]),
|
|
173
|
+
o(p).campaigns.point && o(p).campaigns.point.length > 0 ? (u(), x(k, { key: 0 }, [
|
|
174
|
+
n("div", ge, [
|
|
175
|
+
n("div", ye, [
|
|
176
|
+
i(re, {
|
|
177
|
+
label: `${o(r)("connect.common.location")}: `,
|
|
178
|
+
"right-icon": "keyboard_arrow_down",
|
|
179
|
+
modelValue: o(l).location,
|
|
180
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).location = a),
|
|
181
|
+
icon: "storefront",
|
|
182
|
+
"show-item-label": !0,
|
|
183
|
+
items: o(b).locationOptions
|
|
184
|
+
}, null, 8, ["label", "modelValue", "items"])
|
|
185
|
+
]),
|
|
186
|
+
i(V, {
|
|
187
|
+
modelValue: o(l).searchKey,
|
|
188
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).searchKey = a),
|
|
189
|
+
class: "xs:hidden sm:hidden",
|
|
190
|
+
placeholder: "search",
|
|
191
|
+
collapsible: ""
|
|
192
|
+
}, null, 8, ["modelValue"])
|
|
193
|
+
]),
|
|
194
|
+
i(M, {
|
|
195
|
+
class: "xs:hidden sm:hidden",
|
|
196
|
+
"row-data": o(y),
|
|
197
|
+
"column-defs": U,
|
|
198
|
+
"search-value": o(l).searchKey,
|
|
199
|
+
"column-filter": [],
|
|
200
|
+
onRowClick: t[4] || (t[4] = (a) => _(a.original)),
|
|
201
|
+
"hide-footer": o(y).length < 10
|
|
202
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
203
|
+
i(H, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
204
|
+
default: w(() => [
|
|
205
|
+
(u(!0), x(k, null, J(o(y).filter(
|
|
206
|
+
(a) => a.name.toLowerCase().includes(o(l).searchKey.toLowerCase())
|
|
207
|
+
), (a) => (u(), F(j, {
|
|
208
|
+
key: a._id.toString(),
|
|
209
|
+
onClick: (d) => _(a),
|
|
210
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
211
|
+
}, {
|
|
212
|
+
default: w(() => [
|
|
213
|
+
n("div", _e, [
|
|
214
|
+
n("div", he, [
|
|
215
|
+
(u(), F(Q(o($)(a))))
|
|
216
|
+
]),
|
|
217
|
+
n("div", Ce, [
|
|
218
|
+
n("div", we, f(a.name), 1),
|
|
219
|
+
n("div", be, f(o(A)(a)), 1)
|
|
220
|
+
])
|
|
221
|
+
]),
|
|
222
|
+
n("div", ve, [
|
|
223
|
+
i(h, {
|
|
224
|
+
icon: "insights",
|
|
225
|
+
"icon-color": "neutral-gray-400",
|
|
226
|
+
variant: "tertiary",
|
|
227
|
+
onClick: async (d) => {
|
|
228
|
+
d.stopPropagation(), await I(a);
|
|
229
|
+
}
|
|
230
|
+
}, null, 8, ["onClick"]),
|
|
231
|
+
i(h, {
|
|
232
|
+
icon: "content_copy",
|
|
233
|
+
"icon-color": "neutral-gray-400",
|
|
234
|
+
variant: "tertiary",
|
|
235
|
+
onClick: async (d) => {
|
|
236
|
+
d.stopPropagation(), await B(a);
|
|
237
|
+
}
|
|
238
|
+
}, null, 8, ["onClick"]),
|
|
239
|
+
i(h, {
|
|
240
|
+
icon: "delete",
|
|
241
|
+
"icon-color": "neutral-gray-400",
|
|
242
|
+
variant: "tertiary",
|
|
243
|
+
onClick: (d) => (d.stopPropagation(), S(a))
|
|
244
|
+
}, null, 8, ["onClick"])
|
|
245
|
+
])
|
|
246
|
+
]),
|
|
247
|
+
_: 2
|
|
248
|
+
}, 1032, ["onClick"]))), 128))
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
})
|
|
252
|
+
], 64)) : (u(), F(q, {
|
|
253
|
+
key: 1,
|
|
254
|
+
variant: "outlined",
|
|
255
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
256
|
+
}, {
|
|
257
|
+
default: w(() => [
|
|
258
|
+
t[6] || (t[6] = n("img", {
|
|
259
|
+
src: W,
|
|
260
|
+
class: "aspect-square w-[150px]"
|
|
261
|
+
}, null, -1)),
|
|
262
|
+
n("div", xe, [
|
|
263
|
+
n("div", ke, f(o(r)("connect.program.point.empty_state.title")), 1),
|
|
264
|
+
n("div", Fe, f(o(r)("connect.program.point.empty_state.description")), 1)
|
|
265
|
+
]),
|
|
266
|
+
i(h, {
|
|
267
|
+
variant: "primary",
|
|
268
|
+
label: "Create point program",
|
|
269
|
+
disabled: !o(b).isPremium,
|
|
270
|
+
icon: "add",
|
|
271
|
+
onClick: t[5] || (t[5] = (a) => _())
|
|
272
|
+
}, null, 8, ["disabled"])
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
})),
|
|
276
|
+
i(se, {
|
|
277
|
+
ref_key: "sheetRef",
|
|
278
|
+
ref: v,
|
|
279
|
+
"onSubmit:modelValue": E
|
|
280
|
+
}, null, 512)
|
|
281
|
+
])
|
|
282
|
+
], 64);
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
export {
|
|
287
|
+
He as default
|
|
288
|
+
};
|