@feedmepos/mf-connect 0.1.110-prod → 0.1.112-prod
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-BIuwkgjE.js → App-CFJcQZEE.js} +522 -500
- package/dist/{Bin-B6PDvhj7.js → Bin-DaqUNsSV.js} +8 -8
- package/dist/{Broadcast-BsUYu9Kq.js → Broadcast-CdAN6JCa.js} +82 -79
- package/dist/{CampaignAnalytic-D0_Kh2Sv.js → CampaignAnalytic-CpP7lgTX.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-bfMr_7XS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BQiQVQBN.js} +49 -31
- package/dist/Card-Bmz5p5Pq.js +1085 -0
- package/dist/{Collections-B0umkbKL.js → Collections-BKND60cK.js} +9 -9
- package/dist/{Credit-DMrHYtmf.js → Credit-DQ_tDm8l.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-IuEHozwd.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CCwpsEWf.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C06_qwVx.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js} +34 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CHCLAOYT.js → EffectSheet.vue_vue_type_style_index_0_lang-wUV_beN0.js} +6 -6
- package/dist/{Experience-3xvTI41j.js → Experience-BOE6jLIS.js} +86 -83
- package/dist/{FileSaver.min-CEjHOYSg.js → FileSaver.min-D0CP0E3N.js} +1 -1
- package/dist/{Game-Drkfnm94.js → Game-B-8by2dp.js} +12 -12
- package/dist/GiftCardSetup-CdqZd1ee.js +748 -0
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-BVTu4uTR.js +424 -0
- package/dist/Goals-xFHNbwt7.js +247 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BYIIaPD9.js → ImageInput.vue_vue_type_script_setup_true_lang-B5Z1AZRV.js} +1 -1
- package/dist/{Index-BNfZ-mAu.js → Index-t6veJ0lU.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CqJLimu2.js → LocationPicker.vue_vue_type_script_setup_true_lang-Deeanc8z.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BnMjqLMU.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B8qOJYoS.js} +1 -1
- package/dist/{LoyaltyDashboard-BmRdWFCw.js → LoyaltyDashboard-DXNBsnM5.js} +1216 -1170
- package/dist/{MainLayout-m4H59w6_.js → MainLayout-CmCboaEn.js} +3 -3
- package/dist/{Marketing-BqdCdc76.js → Marketing-DCq9O5eb.js} +4 -4
- package/dist/{MarketingMaterialEdit-UjCEMJ7c.js → MarketingMaterialEdit-CGLxanxm.js} +6 -6
- package/dist/{Member-BbpQizye.js → Member-BCYmEmhD.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbL7cw4g.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Djrfmj9g.js} +26 -24
- package/dist/{MemberImportHistory-FYMyd_uX.js → MemberImportHistory-D-5NAOfo.js} +7 -7
- package/dist/{MemberList-CFtv0HI5.js → MemberList-IySTKOT_.js} +14 -14
- package/dist/{MemberTransactions-BYpugGs7.js → MemberTransactions-BgQZvc5O.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CDzQ0rnK.js → MessageInput.vue_vue_type_script_setup_true_lang-N8PCSKBx.js} +3369 -3290
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BlhwugZQ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_JNdYsBu.js} +1 -1
- package/dist/{Mission-BMhY1kl1.js → Mission-DtaTKWE2.js} +83 -80
- package/dist/{Overview-BmZelkd_.js → Overview-D-uC2-Pi.js} +4 -4
- package/dist/{Overview-E0KL28Fc.js → Overview-DVMdPa97.js} +57 -55
- package/dist/{Point-BX5p9ZVF.js → Point-jnPIgHMZ.js} +119 -110
- package/dist/{Promotion-D662WYaR.js → Promotion-mdQg-RSh.js} +89 -86
- package/dist/{Queue-CI5rumWZ.js → Queue-D8YY1lbn.js} +20 -18
- package/dist/{Record-DRZVEW0I.js → Record-Dh-rN7a0.js} +9 -9
- package/dist/{Review-yMVGBErp.js → Review-C8B-SIR8.js} +2 -2
- package/dist/{ReviewFacebookCallback-Docv-Uil.js → ReviewFacebookCallback-C3eyH0pS.js} +5 -5
- package/dist/{ReviewGoogleCallback-3xVh_G7M.js → ReviewGoogleCallback-pNF2ICvQ.js} +5 -5
- package/dist/{Reward-lzBLyu0x.js → Reward-D7KPnzXt.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bs32tPvC.js → RewardGroup.vue_vue_type_script_setup_true_lang-C87CDjxP.js} +25 -23
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-fNwFSHL1.js → RuleGroup.vue_vue_type_script_setup_true_lang-D1S2sLOK.js} +17 -15
- package/dist/{Segment-BRPf66q8.js → Segment-Ct8JRTjV.js} +32 -30
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DQmbCewC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-w-UpWetC.js} +38 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-fHX_ftax.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbEX2h2u.js} +4 -4
- package/dist/{Setting-D5k2jymY.js → Setting-C3Binnn_.js} +56 -56
- package/dist/{SettingAdvertisements-1Oc29mzb.js → SettingAdvertisements-BrB-dGPs.js} +12 -12
- package/dist/{Settings-B3OCofxq.js → Settings-D6h2QM6X.js} +5 -5
- package/dist/Store-EKPfHEmY.js +2622 -0
- package/dist/{StoreRewards-C7_RKZ00.js → StoreRewards-B208ENOi.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dy7_GFoi.js +1264 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BW-HTNMr.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-B2KJeL5Y.js} +2 -2
- package/dist/{Tier-8pGUR8GA.js → Tier-CjYiCZy_.js} +342 -338
- package/dist/{Title-DnYVX2k8.js → Title-BXkVolaL.js} +34 -32
- package/dist/Transaction-D1T3aIC3.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-ATWU025y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-flUDCSA5.js} +6 -6
- package/dist/Voucher-DnQ8jNjI.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C1dCFS2S.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Z9GDpO4z.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CbUdt4GK.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dcw8Oi-t.js} +2 -2
- package/dist/{app-DoUnw6pe.js → app-BtGohMqA.js} +6211 -5092
- package/dist/app.js +1 -1
- package/dist/base.export-DulNMo7e.js +75 -0
- package/dist/{business-B-PlsFIY.js → business-Bla8vvZH.js} +1 -1
- package/dist/{campaign-yUUxyk0R.js → campaign-BIPNFBY5.js} +2 -2
- package/dist/{campaign-GkMET7FI.js → campaign-DYqAyRCY.js} +8 -8
- package/dist/{campaign.enum-DbPiwqfi.js → campaign.enum-liUaxkcy.js} +1 -1
- package/dist/{campaign.fn-CF5mOcSE.js → campaign.fn-J7hYcX_7.js} +98 -98
- package/dist/{collectible.enum-CbOzGIud.js → collectible.enum-C0FfRMrW.js} +1 -1
- package/dist/{collection.fn-BByCTXVz.js → collection.fn-DdDMfaFO.js} +2 -2
- package/dist/currency-BrVnqxQ1.js +7 -0
- package/dist/{effect-jriAOaEq.js → effect-gfVmfrm9.js} +1 -1
- package/dist/{email-addresses-DH4xgace.js → email-addresses-Dy8NFNBw.js} +2 -2
- package/dist/{helper-CQjM35T_.js → helper-CMhQctQK.js} +1 -1
- package/dist/{index-v3DTwO9s.js → index-B6x6s8mu.js} +1805 -2128
- package/dist/{index-iZDBfoRk.js → index-BOZ3oVHd.js} +2 -2
- package/dist/{index-MtVkfI7s.js → index-BqKrePY8.js} +3 -3
- package/dist/{index-BLOFQAMK.js → index-C5rRuwhC.js} +1 -1
- package/dist/{index-BHYKmUkc.js → index-C67-z1uf.js} +11 -6
- package/dist/{index-CptAtzHf.js → index-CLiJUFmJ.js} +2 -2
- package/dist/{index-DEmV6_BZ.js → index-CUFuU2eJ.js} +10 -8
- package/dist/index-CZqwIQXi.js +738 -0
- package/dist/{index-D1vRPik1.js → index-CghtzuVO.js} +1 -1
- package/dist/{index-DszI88g9.js → index-Culx-Z9v.js} +20 -14
- package/dist/{index-Dr68iOIO.js → index-D1T4Yf4t.js} +1 -1
- package/dist/{index-Duqxyi9L.js → index-D6RDVy95.js} +1112 -34
- package/dist/index-DKmtDBKS.js +53 -0
- package/dist/{index-De9f7Fwe.js → index-Dalmv1m4.js} +5 -5
- package/dist/{index-DKZEN-aI.js → index-DvW-3flw.js} +4 -3
- package/dist/{index-CCBpqK6M.js → index-dyMdi0Rt.js} +1 -1
- package/dist/index-otcusTFM.js +171 -0
- package/dist/{index-BlKeV6aM.js → index-qJOEwQ_z.js} +4 -1
- package/dist/{index-BPTCREXM.js → index-v1exQSyU.js} +1 -1
- package/dist/{index.esm2017-DvOnDQUA.js → index.esm2017-BLKRIlb9.js} +1 -1
- package/dist/{loading-DO3WUS3q.js → loading-BkJ3h_4U.js} +1 -1
- package/dist/{lodash-6izwukKR.js → lodash-C0Kbs8lQ.js} +1 -1
- package/dist/{member-import-hKbS-7lM.js → member-import-trpK8l8R.js} +1 -1
- package/dist/{membership-buZOqdNV.js → membership-TV1CoyKQ.js} +3 -3
- package/dist/{money-WR6-v2Bl.js → money-BM-DK9iD.js} +1 -1
- package/dist/{number-CjEejmUn.js → number-BclgE86R.js} +1 -1
- package/dist/{objectid-BvtNS241.js → objectid-C2XvpEgx.js} +12 -12
- package/dist/onboarding-BLuoXyCY.js +131 -0
- package/dist/onboardingSetup-BLmLAgIV.js +17 -0
- package/dist/{plugins-BLcKp-ww.js → plugins-3_mD58dh.js} +3 -3
- package/dist/{reward-DCNR2-_F.js → reward-Bo4szVCU.js} +1 -1
- package/dist/{rule-BsdMlDuH.js → rule-Bwy5-zD7.js} +3 -3
- package/dist/{rule-builder-C2z6Ki1X.js → rule-builder-Co_1uuj4.js} +1 -1
- package/dist/{template-DuuTNfO4.js → template-fImyGLa7.js} +7 -7
- package/dist/{timezone-nMBfnPp_.js → timezone-DQ7TNXmV.js} +1 -1
- package/dist/{transaction.fn-CYC2Uh5Y.js → transaction.fn-OT7ucfCB.js} +2 -2
- package/dist/{trigger-CtlvsU7_.js → trigger-BJKHGcNG.js} +14 -14
- package/dist/{useMarketingMaterialActions-Dec-VZh7.js → useMarketingMaterialActions-BX3C1Gga.js} +3 -3
- package/dist/{usePagination-DvJ9IfI_.js → usePagination-Qp0qoWBj.js} +1 -1
- package/dist/{user-CYOAXuDw.js → user-BcE3fiEa.js} +1 -1
- package/dist/{vue-i18n-Cy0bIZpQ.js → vue-i18n-BQmB8Ex1.js} +99 -99
- package/dist/{xlsx-Ct_b6gSU.js → xlsx-DYZ421PG.js} +584 -584
- package/dist/{zod-DZR76_dr.js → zod-DestzeIp.js} +1 -1
- package/package.json +1 -1
- package/dist/Card-D5sknDf_.js +0 -910
- package/dist/Store-B8WVn8ZA.js +0 -1997
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CmqgxDJ6.js +0 -1008
- package/dist/Transaction-YJkVkePM.js +0 -39
- package/dist/Voucher-BcCzreI3.js +0 -443
- package/dist/export-CN3lbc2j.js +0 -97
|
@@ -1,63 +1,65 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { p as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
13
|
-
import "./index-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
1
|
+
import { defineComponent as Y, ref as B, computed as z, h as b, onMounted as J, resolveComponent as m, openBlock as u, createElementBlock as x, Fragment as k, createVNode as i, unref as o, withCtx as v, createElementVNode as n, toDisplayString as f, renderList as Q, createBlock as F, resolveDynamicComponent as W } from "vue";
|
|
2
|
+
import { _ as X } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as Z, components as P } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as ee } from "./plugins-3_mD58dh.js";
|
|
5
|
+
import { u as te } from "./loading-BkJ3h_4U.js";
|
|
6
|
+
import { u as oe } from "./business-Bla8vvZH.js";
|
|
7
|
+
import { u as ae } from "./campaign-BIPNFBY5.js";
|
|
8
|
+
import { g as ne, a as V, b as R } from "./campaign-DYqAyRCY.js";
|
|
9
|
+
import { u as ie, c as re, p as se } from "./template-fImyGLa7.js";
|
|
10
|
+
import { _ as le } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
11
|
+
import { _ as ce } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js";
|
|
12
|
+
import { u as me } from "./vue-i18n-BQmB8Ex1.js";
|
|
13
|
+
import "./index-C5rRuwhC.js";
|
|
14
|
+
import { u as pe } from "./onboardingSetup-BLmLAgIV.js";
|
|
15
|
+
import { a as de } from "./index-D6RDVy95.js";
|
|
16
|
+
import { useRouter as ue } from "vue-router";
|
|
17
|
+
import { c as g } from "./index-C67-z1uf.js";
|
|
18
|
+
import { R as fe } from "./app-BtGohMqA.js";
|
|
19
|
+
const ge = { class: "flex items-center" }, ye = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, _e = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-center justify-between w-full" }, we = { class: "flex gap-8 overflow-x-auto" }, Ce = { class: "space-y-8" }, be = { class: "flex w-full gap-4 items-center" }, ve = { class: "space-y-4" }, xe = { class: "fm-typo-en-body-lg-600" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fe = { class: "flex items-center gap-8" }, Pe = { class: "flex flex-col gap-16 text-center" }, Se = { class: "fm-typo-en-title-sm-800" }, Ne = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ze = /* @__PURE__ */ Y({
|
|
18
20
|
__name: "Point",
|
|
19
|
-
setup(
|
|
20
|
-
const { t:
|
|
21
|
-
label:
|
|
22
|
-
type:
|
|
21
|
+
setup(Ie) {
|
|
22
|
+
const { t: r } = me(), E = ue(), $ = {
|
|
23
|
+
label: r("connect.program.common.actions.create", {
|
|
24
|
+
type: r("connect.program.point.title").toLowerCase()
|
|
23
25
|
}),
|
|
24
26
|
value: "create",
|
|
25
27
|
isPrimary: !0,
|
|
26
28
|
prependIcon: "add"
|
|
27
|
-
}, D =
|
|
29
|
+
}, D = ie("COIN", Z()), y = oe(), p = ae(), { global: T, minor: S } = te, l = B({
|
|
28
30
|
searchKey: "",
|
|
29
31
|
location: []
|
|
30
32
|
});
|
|
31
|
-
function
|
|
33
|
+
function K(e) {
|
|
32
34
|
const t = l.value.location;
|
|
33
35
|
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((c) => {
|
|
34
|
-
var
|
|
35
|
-
return (
|
|
36
|
+
var s;
|
|
37
|
+
return (s = e == null ? void 0 : e.targetLocation) == null ? void 0 : s.includes(c);
|
|
36
38
|
}) : e.targetLocation.includes(t);
|
|
37
39
|
}
|
|
38
|
-
const
|
|
39
|
-
() => p.campaigns.point.filter((e) =>
|
|
40
|
-
),
|
|
40
|
+
const _ = z(
|
|
41
|
+
() => p.campaigns.point.filter((e) => K(e))
|
|
42
|
+
), M = [
|
|
41
43
|
{
|
|
42
|
-
header:
|
|
44
|
+
header: r("connect.program.common.table.title"),
|
|
43
45
|
accessorFn: (e) => e.name
|
|
44
46
|
},
|
|
45
47
|
{
|
|
46
|
-
header:
|
|
47
|
-
accessorFn: (e) =>
|
|
48
|
+
header: r("connect.program.common.table.status"),
|
|
49
|
+
accessorFn: (e) => ne(e),
|
|
48
50
|
cell(e) {
|
|
49
|
-
return
|
|
51
|
+
return V(e.row.original);
|
|
50
52
|
}
|
|
51
53
|
},
|
|
52
54
|
{
|
|
53
|
-
header:
|
|
54
|
-
accessorFn: (e) =>
|
|
55
|
+
header: r("connect.program.common.table.summary"),
|
|
56
|
+
accessorFn: (e) => R(e)
|
|
55
57
|
},
|
|
56
58
|
{
|
|
57
|
-
header:
|
|
59
|
+
header: r("connect.program.common.table.actions"),
|
|
58
60
|
cell(e) {
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
+
return b("div", { class: "flex items-center gap-8 justify-end" }, [
|
|
62
|
+
b(P.FmButton, {
|
|
61
63
|
variant: "tertiary",
|
|
62
64
|
icon: "insights",
|
|
63
65
|
iconColor: "neutral-gray-400",
|
|
@@ -65,28 +67,28 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
65
67
|
t.stopPropagation(), await I(e.row.original);
|
|
66
68
|
}
|
|
67
69
|
}),
|
|
68
|
-
|
|
70
|
+
b(P.FmButton, {
|
|
69
71
|
variant: "tertiary",
|
|
70
72
|
icon: "content_copy",
|
|
71
73
|
iconColor: "neutral-gray-400",
|
|
72
74
|
onClick: async (t) => {
|
|
73
|
-
t.stopPropagation(), await
|
|
75
|
+
t.stopPropagation(), await L(e.row.original);
|
|
74
76
|
}
|
|
75
77
|
}),
|
|
76
|
-
|
|
78
|
+
b(P.FmButton, {
|
|
77
79
|
variant: "tertiary",
|
|
78
80
|
icon: "delete",
|
|
79
81
|
iconColor: "neutral-gray-400",
|
|
80
82
|
onClick: (t) => {
|
|
81
|
-
t.stopPropagation(),
|
|
83
|
+
t.stopPropagation(), N(e.row.original);
|
|
82
84
|
}
|
|
83
85
|
})
|
|
84
86
|
]);
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
|
-
],
|
|
88
|
-
async function
|
|
89
|
-
await
|
|
89
|
+
], h = B();
|
|
90
|
+
async function N(e) {
|
|
91
|
+
await ee.remove(`Are you sure you want to remove ${e.name}?`) && await S(
|
|
90
92
|
async () => {
|
|
91
93
|
await g.delete(e._id), await p.read("COIN");
|
|
92
94
|
},
|
|
@@ -96,13 +98,13 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
96
98
|
}
|
|
97
99
|
);
|
|
98
100
|
}
|
|
99
|
-
async function
|
|
101
|
+
async function w(e) {
|
|
100
102
|
e ? await t() : D.open(async (c) => {
|
|
101
103
|
await t(c);
|
|
102
104
|
});
|
|
103
105
|
async function t(c) {
|
|
104
|
-
var
|
|
105
|
-
(
|
|
106
|
+
var s;
|
|
107
|
+
(s = h.value) == null || s.showSheet(
|
|
106
108
|
!0,
|
|
107
109
|
"COIN",
|
|
108
110
|
e ? await g.readById(e._id) : void 0,
|
|
@@ -111,27 +113,27 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
async function I(e) {
|
|
114
|
-
await
|
|
115
|
-
name:
|
|
116
|
+
await E.push({
|
|
117
|
+
name: fe["$connect-PROGRAM_POINT_ANALYTIC"],
|
|
116
118
|
params: { id: e._id }
|
|
117
119
|
});
|
|
118
120
|
}
|
|
119
|
-
async function
|
|
120
|
-
var
|
|
121
|
-
if (!await
|
|
121
|
+
async function L(e) {
|
|
122
|
+
var s;
|
|
123
|
+
if (!await re(e.name))
|
|
122
124
|
return;
|
|
123
125
|
const t = await g.readById(e._id), c = se(t, {
|
|
124
126
|
keepCollectible: !0
|
|
125
127
|
});
|
|
126
|
-
(
|
|
128
|
+
(s = h.value) == null || s.showSheet(
|
|
127
129
|
!0,
|
|
128
130
|
"COIN",
|
|
129
131
|
c,
|
|
130
132
|
t.template
|
|
131
133
|
);
|
|
132
134
|
}
|
|
133
|
-
async function
|
|
134
|
-
await
|
|
135
|
+
async function U(e) {
|
|
136
|
+
await S(
|
|
135
137
|
async () => {
|
|
136
138
|
e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await p.read("COIN");
|
|
137
139
|
},
|
|
@@ -141,28 +143,35 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
141
143
|
}
|
|
142
144
|
);
|
|
143
145
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
const A = pe();
|
|
147
|
+
return J(async () => {
|
|
148
|
+
var e;
|
|
149
|
+
await T(async () => {
|
|
146
150
|
await p.read("COIN");
|
|
147
|
-
})
|
|
151
|
+
}), await A.consume() === "POINT_SPEND_EARN" && y.isPremium && ((e = h.value) == null || e.showSheet(
|
|
152
|
+
!0,
|
|
153
|
+
"COIN",
|
|
154
|
+
void 0,
|
|
155
|
+
await A.template(de)
|
|
156
|
+
));
|
|
148
157
|
}), (e, t) => {
|
|
149
|
-
const c = m("FmPill"),
|
|
158
|
+
const c = m("FmPill"), s = m("FmPageHead"), O = m("FmSearch"), j = m("FmTable"), C = m("FmButton"), H = m("FmListItem"), q = m("FmList"), G = m("FmCard");
|
|
150
159
|
return u(), x(k, null, [
|
|
151
|
-
i(
|
|
152
|
-
title: o(
|
|
153
|
-
actions: o(
|
|
154
|
-
"onClick:action": t[0] || (t[0] = () =>
|
|
160
|
+
i(s, {
|
|
161
|
+
title: o(r)("connect.program.point.title"),
|
|
162
|
+
actions: o(_).length > 0 && o(y).isPremium ? [$] : [],
|
|
163
|
+
"onClick:action": t[0] || (t[0] = () => w())
|
|
155
164
|
}, {
|
|
156
|
-
title:
|
|
157
|
-
n("div",
|
|
158
|
-
n("span",
|
|
165
|
+
title: v(() => [
|
|
166
|
+
n("div", ge, [
|
|
167
|
+
n("span", ye, f(o(r)("connect.program.point.title")), 1),
|
|
159
168
|
i(c, { variant: "premium" })
|
|
160
169
|
])
|
|
161
170
|
]),
|
|
162
171
|
_: 1
|
|
163
172
|
}, 8, ["title", "actions"]),
|
|
164
|
-
n("div",
|
|
165
|
-
i(
|
|
173
|
+
n("div", _e, [
|
|
174
|
+
i(O, {
|
|
166
175
|
modelValue: o(l).searchKey,
|
|
167
176
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).searchKey = a),
|
|
168
177
|
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
@@ -170,19 +179,19 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
170
179
|
collapsible: ""
|
|
171
180
|
}, null, 8, ["modelValue"]),
|
|
172
181
|
o(p).campaigns.point && o(p).campaigns.point.length > 0 ? (u(), x(k, { key: 0 }, [
|
|
173
|
-
n("div",
|
|
174
|
-
n("div",
|
|
175
|
-
i(
|
|
176
|
-
label: `${o(
|
|
182
|
+
n("div", he, [
|
|
183
|
+
n("div", we, [
|
|
184
|
+
i(le, {
|
|
185
|
+
label: `${o(r)("connect.common.location")}: `,
|
|
177
186
|
"right-icon": "keyboard_arrow_down",
|
|
178
187
|
modelValue: o(l).location,
|
|
179
188
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).location = a),
|
|
180
189
|
icon: "storefront",
|
|
181
190
|
"show-item-label": !0,
|
|
182
|
-
items: o(
|
|
191
|
+
items: o(y).locationOptions
|
|
183
192
|
}, null, 8, ["label", "modelValue", "items"])
|
|
184
193
|
]),
|
|
185
|
-
i(
|
|
194
|
+
i(O, {
|
|
186
195
|
modelValue: o(l).searchKey,
|
|
187
196
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).searchKey = a),
|
|
188
197
|
class: "xs:hidden sm:hidden",
|
|
@@ -190,36 +199,36 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
190
199
|
collapsible: ""
|
|
191
200
|
}, null, 8, ["modelValue"])
|
|
192
201
|
]),
|
|
193
|
-
i(
|
|
202
|
+
i(j, {
|
|
194
203
|
class: "xs:hidden sm:hidden",
|
|
195
|
-
"row-data": o(
|
|
196
|
-
"column-defs":
|
|
204
|
+
"row-data": o(_),
|
|
205
|
+
"column-defs": M,
|
|
197
206
|
"search-value": o(l).searchKey,
|
|
198
207
|
"column-filter": [],
|
|
199
|
-
onRowClick: t[4] || (t[4] = (a) =>
|
|
200
|
-
"hide-footer": o(
|
|
208
|
+
onRowClick: t[4] || (t[4] = (a) => w(a.original)),
|
|
209
|
+
"hide-footer": o(_).length < 10
|
|
201
210
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
202
|
-
i(
|
|
203
|
-
default:
|
|
204
|
-
(u(!0), x(k, null,
|
|
211
|
+
i(q, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
212
|
+
default: v(() => [
|
|
213
|
+
(u(!0), x(k, null, Q(o(_).filter(
|
|
205
214
|
(a) => a.name.toLowerCase().includes(o(l).searchKey.toLowerCase())
|
|
206
|
-
), (a) => (u(), F(
|
|
215
|
+
), (a) => (u(), F(H, {
|
|
207
216
|
key: a._id.toString(),
|
|
208
|
-
onClick: (d) =>
|
|
217
|
+
onClick: (d) => w(a),
|
|
209
218
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
210
219
|
}, {
|
|
211
|
-
default:
|
|
212
|
-
n("div",
|
|
213
|
-
n("div",
|
|
214
|
-
(u(), F(
|
|
220
|
+
default: v(() => [
|
|
221
|
+
n("div", Ce, [
|
|
222
|
+
n("div", be, [
|
|
223
|
+
(u(), F(W(o(V)(a))))
|
|
215
224
|
]),
|
|
216
|
-
n("div",
|
|
217
|
-
n("div",
|
|
218
|
-
n("div",
|
|
225
|
+
n("div", ve, [
|
|
226
|
+
n("div", xe, f(a.name), 1),
|
|
227
|
+
n("div", ke, f(o(R)(a)), 1)
|
|
219
228
|
])
|
|
220
229
|
]),
|
|
221
|
-
n("div",
|
|
222
|
-
i(
|
|
230
|
+
n("div", Fe, [
|
|
231
|
+
i(C, {
|
|
223
232
|
icon: "insights",
|
|
224
233
|
"icon-color": "neutral-gray-400",
|
|
225
234
|
variant: "tertiary",
|
|
@@ -227,19 +236,19 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
227
236
|
d.stopPropagation(), await I(a);
|
|
228
237
|
}
|
|
229
238
|
}, null, 8, ["onClick"]),
|
|
230
|
-
i(
|
|
239
|
+
i(C, {
|
|
231
240
|
icon: "content_copy",
|
|
232
241
|
"icon-color": "neutral-gray-400",
|
|
233
242
|
variant: "tertiary",
|
|
234
243
|
onClick: async (d) => {
|
|
235
|
-
d.stopPropagation(), await
|
|
244
|
+
d.stopPropagation(), await L(a);
|
|
236
245
|
}
|
|
237
246
|
}, null, 8, ["onClick"]),
|
|
238
|
-
i(
|
|
247
|
+
i(C, {
|
|
239
248
|
icon: "delete",
|
|
240
249
|
"icon-color": "neutral-gray-400",
|
|
241
250
|
variant: "tertiary",
|
|
242
|
-
onClick: (d) => (d.stopPropagation(),
|
|
251
|
+
onClick: (d) => (d.stopPropagation(), N(a))
|
|
243
252
|
}, null, 8, ["onClick"])
|
|
244
253
|
])
|
|
245
254
|
]),
|
|
@@ -248,34 +257,34 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
248
257
|
]),
|
|
249
258
|
_: 1
|
|
250
259
|
})
|
|
251
|
-
], 64)) : (u(), F(
|
|
260
|
+
], 64)) : (u(), F(G, {
|
|
252
261
|
key: 1,
|
|
253
262
|
variant: "outlined",
|
|
254
263
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
255
264
|
}, {
|
|
256
|
-
default:
|
|
265
|
+
default: v(() => [
|
|
257
266
|
t[6] || (t[6] = n("img", {
|
|
258
|
-
src:
|
|
267
|
+
src: X,
|
|
259
268
|
class: "aspect-square w-[150px]"
|
|
260
269
|
}, null, -1)),
|
|
261
|
-
n("div",
|
|
262
|
-
n("div",
|
|
263
|
-
n("div",
|
|
270
|
+
n("div", Pe, [
|
|
271
|
+
n("div", Se, f(o(r)("connect.program.point.empty_state.title")), 1),
|
|
272
|
+
n("div", Ne, f(o(r)("connect.program.point.empty_state.description")), 1)
|
|
264
273
|
]),
|
|
265
|
-
i(
|
|
274
|
+
i(C, {
|
|
266
275
|
variant: "primary",
|
|
267
276
|
label: "Create point program",
|
|
268
|
-
disabled: !o(
|
|
277
|
+
disabled: !o(y).isPremium,
|
|
269
278
|
icon: "add",
|
|
270
|
-
onClick: t[5] || (t[5] = (a) =>
|
|
279
|
+
onClick: t[5] || (t[5] = (a) => w())
|
|
271
280
|
}, null, 8, ["disabled"])
|
|
272
281
|
]),
|
|
273
282
|
_: 1
|
|
274
283
|
})),
|
|
275
|
-
i(
|
|
284
|
+
i(ce, {
|
|
276
285
|
ref_key: "sheetRef",
|
|
277
|
-
ref:
|
|
278
|
-
"onSubmit:modelValue":
|
|
286
|
+
ref: h,
|
|
287
|
+
"onSubmit:modelValue": U
|
|
279
288
|
}, null, 512)
|
|
280
289
|
])
|
|
281
290
|
], 64);
|
|
@@ -283,5 +292,5 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
283
292
|
}
|
|
284
293
|
});
|
|
285
294
|
export {
|
|
286
|
-
|
|
295
|
+
ze as default
|
|
287
296
|
};
|