@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,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, ref as f, resolveComponent as s, openBlock as t, createElementBlock as v, Fragment as b, createVNode as r, unref as o, createElementVNode as k, createBlock as l, KeepAlive as x, resolveDynamicComponent as m, createCommentVNode as F } from "vue";
|
|
2
|
-
import { _ as g, a as y } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-CmqgxDJ6.js";
|
|
3
|
-
import { u as C } from "./vue-i18n-Cy0bIZpQ.js";
|
|
4
|
-
const T = { class: "px-24 flex flex-col gap-y-32 pb-24" }, P = /* @__PURE__ */ d({
|
|
5
|
-
__name: "Transaction",
|
|
6
|
-
setup(V) {
|
|
7
|
-
const { t: n } = C(), a = [
|
|
8
|
-
{
|
|
9
|
-
label: n("connect.transaction.tabs.collection"),
|
|
10
|
-
value: "collection"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
label: n("connect.transaction.tabs.store"),
|
|
14
|
-
value: "store"
|
|
15
|
-
}
|
|
16
|
-
], e = f(a[0]);
|
|
17
|
-
return (B, c) => {
|
|
18
|
-
const i = s("FmPageHead"), u = s("FmTabs");
|
|
19
|
-
return t(), v(b, null, [
|
|
20
|
-
r(i, {
|
|
21
|
-
title: o(n)("connect.transaction.title")
|
|
22
|
-
}, null, 8, ["title"]),
|
|
23
|
-
k("div", T, [
|
|
24
|
-
r(u, {
|
|
25
|
-
"model-value": o(e).value,
|
|
26
|
-
items: a,
|
|
27
|
-
"onUpdate:modelValue": c[0] || (c[0] = (p) => e.value = a.find((_) => _.value === p))
|
|
28
|
-
}, null, 8, ["model-value"]),
|
|
29
|
-
(t(), l(x, null, [
|
|
30
|
-
o(e).value == "collection" ? (t(), l(m(g), { key: 0 })) : o(e).value == "store" ? (t(), l(m(y), { key: 1 })) : F("", !0)
|
|
31
|
-
], 1024))
|
|
32
|
-
])
|
|
33
|
-
], 64);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
P as default
|
|
39
|
-
};
|
package/dist/Voucher-BcCzreI3.js
DELETED
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ne, ref as T, computed as ae, h as m, onMounted as re, resolveComponent as f, openBlock as d, createElementBlock as P, Fragment as R, createVNode as s, unref as t, createElementVNode as c, withCtx as I, renderList as ce, createBlock as g, resolveDynamicComponent as ie, createCommentVNode as L, toDisplayString as _ } from "vue";
|
|
2
|
-
import { _ as se } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { useDialog as le, components as p } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as N } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
5
|
-
import { c as me, p as ue } from "./plugins-BLcKp-ww.js";
|
|
6
|
-
import { useCoreStore as de } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as pe } from "./loading-DO3WUS3q.js";
|
|
8
|
-
import { u as fe } from "./business-B-PlsFIY.js";
|
|
9
|
-
import { u as ye } from "./campaign-yUUxyk0R.js";
|
|
10
|
-
import { g as he, a as D, b as K } from "./campaign-GkMET7FI.js";
|
|
11
|
-
import { c as ge, p as _e, u as ve } from "./template-DuuTNfO4.js";
|
|
12
|
-
import "./index-BLOFQAMK.js";
|
|
13
|
-
import { _ as Ce } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C06_qwVx.js";
|
|
14
|
-
import { _ as we } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-fHX_ftax.js";
|
|
15
|
-
import { u as be } from "./vue-i18n-Cy0bIZpQ.js";
|
|
16
|
-
import { T as ke } from "./trigger-CtlvsU7_.js";
|
|
17
|
-
import { useRouter as xe } from "vue-router";
|
|
18
|
-
import { c as v } from "./index-BHYKmUkc.js";
|
|
19
|
-
import { R as A } from "./app-DoUnw6pe.js";
|
|
20
|
-
var Fe = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
|
|
21
|
-
const Ve = { class: "px-24 flex flex-col gap-y-16" }, Se = { class: "flex items-center justify-between w-full" }, Ue = { class: "flex gap-8 overflow-x-auto" }, Te = { class: "space-y-8" }, Pe = { class: "flex w-full gap-4 items-center" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ie = { class: "space-y-4" }, Le = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ee = { class: "flex gap-8 items-center" }, Be = { class: "flex flex-col gap-16 text-center" }, Oe = { class: "fm-typo-en-title-sm-800" }, Me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ro = /* @__PURE__ */ ne({
|
|
22
|
-
__name: "Voucher",
|
|
23
|
-
setup(He) {
|
|
24
|
-
const { t: a } = be(), j = {
|
|
25
|
-
label: a("connect.voucher.createCampaign"),
|
|
26
|
-
value: "create",
|
|
27
|
-
isPrimary: !0,
|
|
28
|
-
prependIcon: "add"
|
|
29
|
-
}, E = le(), q = ve("VOUCHER", E), G = fe(), y = ye(), { global: X, minor: B } = pe, k = xe(), l = T({
|
|
30
|
-
searchKey: "",
|
|
31
|
-
location: [],
|
|
32
|
-
triggerType: []
|
|
33
|
-
}), C = ae(
|
|
34
|
-
() => y.campaigns.voucher.filter(
|
|
35
|
-
(e) => z(e) && Q(e)
|
|
36
|
-
)
|
|
37
|
-
), W = ke.VOUCHER.map((e) => ({
|
|
38
|
-
label: e.name,
|
|
39
|
-
value: e.value
|
|
40
|
-
}));
|
|
41
|
-
function z(e) {
|
|
42
|
-
const o = l.value.location;
|
|
43
|
-
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some(
|
|
44
|
-
(r) => {
|
|
45
|
-
var i;
|
|
46
|
-
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(r);
|
|
47
|
-
}
|
|
48
|
-
) : e.targetLocation.includes(o);
|
|
49
|
-
}
|
|
50
|
-
function x(e) {
|
|
51
|
-
return e.hideInApp === !1;
|
|
52
|
-
}
|
|
53
|
-
function F(e) {
|
|
54
|
-
return e.event.type === "SIMPLE_CLAIM" && !x(e);
|
|
55
|
-
}
|
|
56
|
-
function Q(e) {
|
|
57
|
-
const o = l.value.triggerType;
|
|
58
|
-
if (!o || o.length === 0) return !0;
|
|
59
|
-
const r = e.event.type;
|
|
60
|
-
return o.includes(r);
|
|
61
|
-
}
|
|
62
|
-
const Y = [
|
|
63
|
-
{
|
|
64
|
-
header: a("connect.voucher.voucherTitle"),
|
|
65
|
-
accessorFn: (e) => e.name,
|
|
66
|
-
cell(e) {
|
|
67
|
-
const o = [e.row.original.name];
|
|
68
|
-
return x(e.row.original) && o.push(
|
|
69
|
-
m(p.FmChip, {
|
|
70
|
-
label: "Feedvibe",
|
|
71
|
-
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
72
|
-
compact: !0
|
|
73
|
-
})
|
|
74
|
-
), m("div", { class: "flex items-center gap-4" }, o);
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
header: a("connect.voucher.status"),
|
|
79
|
-
accessorFn: (e) => he(e),
|
|
80
|
-
cell(e) {
|
|
81
|
-
return D(e.row.original);
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
header: a("connect.voucher.summary"),
|
|
86
|
-
accessorFn: (e) => K(e)
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
header: a("connect.voucher.quota"),
|
|
90
|
-
accessorFn: (e) => {
|
|
91
|
-
var o;
|
|
92
|
-
return ((o = e.pf_collectible) == null ? void 0 : o.options.maxReceive) ?? "Unlimited";
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
header: a("connect.voucher.claimed"),
|
|
97
|
-
accessorFn: (e) => {
|
|
98
|
-
var o;
|
|
99
|
-
return ((o = e == null ? void 0 : e.pf_collectible) == null ? void 0 : o.currentReceive) ?? 0;
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
header: a("connect.voucher.actions"),
|
|
104
|
-
cell(e) {
|
|
105
|
-
return m("div", { class: "flex items-center justify-end" }, [
|
|
106
|
-
m(p.FmButton, {
|
|
107
|
-
icon: "insights",
|
|
108
|
-
variant: "tertiary",
|
|
109
|
-
iconColor: "neutral-gray-400",
|
|
110
|
-
onClick: async (o) => {
|
|
111
|
-
o.stopPropagation(), await M(e.row.original);
|
|
112
|
-
}
|
|
113
|
-
}),
|
|
114
|
-
m(p.FmButton, {
|
|
115
|
-
icon: "visibility",
|
|
116
|
-
variant: "tertiary",
|
|
117
|
-
iconColor: "neutral-gray-400",
|
|
118
|
-
onClick: async (o) => {
|
|
119
|
-
o.stopPropagation(), await k.push({
|
|
120
|
-
name: A["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
121
|
-
params: { id: e.row.original._id }
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
}),
|
|
125
|
-
m(
|
|
126
|
-
p.FmMenu,
|
|
127
|
-
{
|
|
128
|
-
placement: "bottom-end",
|
|
129
|
-
onClick: (o) => {
|
|
130
|
-
o.stopPropagation();
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"menu-button": () => m(p.FmButton, {
|
|
135
|
-
icon: "more_vert",
|
|
136
|
-
iconColor: "neutral-gray-400",
|
|
137
|
-
variant: "tertiary"
|
|
138
|
-
}),
|
|
139
|
-
default: () => {
|
|
140
|
-
const o = [
|
|
141
|
-
m(p.FmMenuItem, {
|
|
142
|
-
label: a("connect.voucher.duplicate"),
|
|
143
|
-
onClick: async (r) => {
|
|
144
|
-
r.stopPropagation(), await H(e.row.original);
|
|
145
|
-
}
|
|
146
|
-
}),
|
|
147
|
-
m(
|
|
148
|
-
p.FmMenuItem,
|
|
149
|
-
{
|
|
150
|
-
onClick: async (r) => {
|
|
151
|
-
r.stopPropagation(), O(e.row.original);
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
label: m(
|
|
156
|
-
"div",
|
|
157
|
-
{
|
|
158
|
-
class: "text-fm-color-typo-error fm-typo-en-body-md-400"
|
|
159
|
-
},
|
|
160
|
-
a("connect.voucher.remove")
|
|
161
|
-
)
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
];
|
|
165
|
-
return F(e.row.original) && (o.unshift(
|
|
166
|
-
m(p.FmMenuItem, {
|
|
167
|
-
label: a("connect.voucher.send"),
|
|
168
|
-
onClick: async (r) => {
|
|
169
|
-
var i;
|
|
170
|
-
r.stopPropagation(), (i = S.value) == null || i.showSheet({
|
|
171
|
-
campaignId: e.row.original._id
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
})
|
|
175
|
-
), o.unshift(
|
|
176
|
-
m(p.FmMenuItem, {
|
|
177
|
-
label: a("connect.voucher.share"),
|
|
178
|
-
onClick: async (r) => {
|
|
179
|
-
r.stopPropagation(), await me(
|
|
180
|
-
`https://${de().currentBusiness.value._id}.${Fe.appUrl}/vouchers/${e.row.original._id}`,
|
|
181
|
-
{
|
|
182
|
-
successMessage: "Voucher link copied to clipboard"
|
|
183
|
-
}
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
})
|
|
187
|
-
)), o;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
)
|
|
191
|
-
]);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
], V = T(), S = T();
|
|
195
|
-
async function O(e) {
|
|
196
|
-
await ue.remove(a("connect.voucher.confirmRemove", { name: e.name })) && await B(
|
|
197
|
-
async () => {
|
|
198
|
-
await v.delete(e._id), await y.read("VOUCHER");
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
message: a("connect.voucher.removing", { name: e.name }),
|
|
202
|
-
successMessage: a("connect.voucher.removedSuccessfully", {
|
|
203
|
-
name: e.name
|
|
204
|
-
})
|
|
205
|
-
}
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
async function w(e) {
|
|
209
|
-
e ? await o(await v.readById(e._id)) : q.open(async (r) => {
|
|
210
|
-
await o(void 0, r);
|
|
211
|
-
});
|
|
212
|
-
async function o(r, i) {
|
|
213
|
-
var b;
|
|
214
|
-
(b = V.value) == null || b.showSheet(!0, "VOUCHER", r, i);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
async function M(e) {
|
|
218
|
-
await k.push({
|
|
219
|
-
name: A["$connect-CAMPAIGN_VOUCHER_ANALYTIC"],
|
|
220
|
-
params: { id: e._id }
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
async function H(e) {
|
|
224
|
-
var i;
|
|
225
|
-
if (!await ge(e.name))
|
|
226
|
-
return;
|
|
227
|
-
const o = await v.readById(e._id), r = _e(o);
|
|
228
|
-
(i = V.value) == null || i.showSheet(
|
|
229
|
-
!0,
|
|
230
|
-
"VOUCHER",
|
|
231
|
-
r,
|
|
232
|
-
o.template
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
async function Z(e) {
|
|
236
|
-
e.campaign._id && await new Promise((o) => {
|
|
237
|
-
E.open({
|
|
238
|
-
title: "Confirmation",
|
|
239
|
-
message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
|
|
240
|
-
primaryActions: { text: "Update all", close: !0 },
|
|
241
|
-
secondaryActions: { text: "Update future only", close: !0 }
|
|
242
|
-
}).onPrimary(async () => {
|
|
243
|
-
var r;
|
|
244
|
-
e.updateCollections = !0, (r = window.top) == null || r.postMessage("updateAllVoucher", "*"), o();
|
|
245
|
-
}).onSecondary(async () => {
|
|
246
|
-
o();
|
|
247
|
-
});
|
|
248
|
-
}), await B(
|
|
249
|
-
async () => {
|
|
250
|
-
e.campaign._id ? await v.update(e.campaign._id, e) : await v.create(e), await y.read("VOUCHER");
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
message: a(
|
|
254
|
-
e.campaign._id ? "connect.voucher.updating" : "connect.voucher.creating"
|
|
255
|
-
),
|
|
256
|
-
successMessage: a(
|
|
257
|
-
e.campaign._id ? "connect.voucher.updatedSuccessfully" : "connect.voucher.createdSuccessfully"
|
|
258
|
-
)
|
|
259
|
-
}
|
|
260
|
-
);
|
|
261
|
-
}
|
|
262
|
-
return re(async () => {
|
|
263
|
-
await X(async () => {
|
|
264
|
-
await y.read("VOUCHER");
|
|
265
|
-
});
|
|
266
|
-
}), (e, o) => {
|
|
267
|
-
const r = f("FmPageHead"), i = f("FmSearch"), b = f("FmTable"), J = f("FmChip"), h = f("FmButton"), ee = f("FmListItem"), oe = f("FmList"), te = f("FmCard");
|
|
268
|
-
return d(), P(R, null, [
|
|
269
|
-
s(r, {
|
|
270
|
-
title: t(a)("connect.voucher.title"),
|
|
271
|
-
actions: t(C).length > 0 ? [j] : [],
|
|
272
|
-
"onClick:action": o[0] || (o[0] = () => w())
|
|
273
|
-
}, null, 8, ["title", "actions"]),
|
|
274
|
-
c("div", Ve, [
|
|
275
|
-
s(i, {
|
|
276
|
-
modelValue: t(l).searchKey,
|
|
277
|
-
"onUpdate:modelValue": o[1] || (o[1] = (n) => t(l).searchKey = n),
|
|
278
|
-
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
279
|
-
placeholder: t(a)("connect.voucher.search"),
|
|
280
|
-
collapsible: ""
|
|
281
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
282
|
-
t(y).campaigns.voucher && t(y).campaigns.voucher.length > 0 ? (d(), P(R, { key: 0 }, [
|
|
283
|
-
c("div", Se, [
|
|
284
|
-
c("div", Ue, [
|
|
285
|
-
s(N, {
|
|
286
|
-
label: `${t(a)("connect.common.location")}: `,
|
|
287
|
-
"right-icon": "keyboard_arrow_down",
|
|
288
|
-
modelValue: t(l).location,
|
|
289
|
-
"onUpdate:modelValue": o[2] || (o[2] = (n) => t(l).location = n),
|
|
290
|
-
icon: "storefront",
|
|
291
|
-
"show-item-label": !0,
|
|
292
|
-
items: t(G).locationOptions
|
|
293
|
-
}, null, 8, ["label", "modelValue", "items"]),
|
|
294
|
-
s(N, {
|
|
295
|
-
label: "Type:",
|
|
296
|
-
"right-icon": "keyboard_arrow_down",
|
|
297
|
-
modelValue: t(l).triggerType,
|
|
298
|
-
"onUpdate:modelValue": o[3] || (o[3] = (n) => t(l).triggerType = n),
|
|
299
|
-
icon: "filter_list",
|
|
300
|
-
"show-item-label": !0,
|
|
301
|
-
items: t(W)
|
|
302
|
-
}, null, 8, ["modelValue", "items"])
|
|
303
|
-
]),
|
|
304
|
-
s(i, {
|
|
305
|
-
modelValue: t(l).searchKey,
|
|
306
|
-
"onUpdate:modelValue": o[4] || (o[4] = (n) => t(l).searchKey = n),
|
|
307
|
-
class: "xs:hidden sm:hidden",
|
|
308
|
-
placeholder: t(a)("connect.voucher.search"),
|
|
309
|
-
collapsible: ""
|
|
310
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
311
|
-
]),
|
|
312
|
-
s(b, {
|
|
313
|
-
class: "xs:hidden sm:hidden",
|
|
314
|
-
"row-data": t(C),
|
|
315
|
-
"column-defs": Y,
|
|
316
|
-
"search-value": t(l).searchKey,
|
|
317
|
-
"column-filter": [],
|
|
318
|
-
onRowClick: o[5] || (o[5] = (n) => w(n.original)),
|
|
319
|
-
"hide-footer": t(C).length < 10
|
|
320
|
-
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
321
|
-
s(oe, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
322
|
-
default: I(() => [
|
|
323
|
-
(d(!0), P(R, null, ce(t(C).filter(
|
|
324
|
-
(n) => n.name.toLowerCase().includes(t(l).searchKey.toLowerCase())
|
|
325
|
-
), (n) => (d(), g(ee, {
|
|
326
|
-
key: n._id.toString(),
|
|
327
|
-
onClick: (U) => w(n),
|
|
328
|
-
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
329
|
-
}, {
|
|
330
|
-
default: I(() => {
|
|
331
|
-
var U;
|
|
332
|
-
return [
|
|
333
|
-
c("div", Te, [
|
|
334
|
-
c("div", Pe, [
|
|
335
|
-
(d(), g(ie(t(D)(n)))),
|
|
336
|
-
x(n) ? (d(), g(J, {
|
|
337
|
-
key: 0,
|
|
338
|
-
label: "Feedvibe",
|
|
339
|
-
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
340
|
-
compact: ""
|
|
341
|
-
})) : L("", !0),
|
|
342
|
-
c("div", Re, _(((U = n.pf_collectible) == null ? void 0 : U.currentReceive) ?? 0) + " claimed ", 1)
|
|
343
|
-
]),
|
|
344
|
-
c("div", Ie, [
|
|
345
|
-
c("div", Le, _(n.name), 1),
|
|
346
|
-
c("div", Ae, _(t(K)(n)), 1)
|
|
347
|
-
])
|
|
348
|
-
]),
|
|
349
|
-
c("div", Ee, [
|
|
350
|
-
s(h, {
|
|
351
|
-
icon: "insights",
|
|
352
|
-
"icon-color": "neutral-gray-400",
|
|
353
|
-
variant: "tertiary",
|
|
354
|
-
onClick: async (u) => {
|
|
355
|
-
u.stopPropagation(), await M(n);
|
|
356
|
-
}
|
|
357
|
-
}, null, 8, ["onClick"]),
|
|
358
|
-
s(h, {
|
|
359
|
-
icon: "content_copy",
|
|
360
|
-
"icon-color": "neutral-gray-400",
|
|
361
|
-
variant: "tertiary",
|
|
362
|
-
onClick: async (u) => {
|
|
363
|
-
u.stopPropagation(), await H(n);
|
|
364
|
-
}
|
|
365
|
-
}, null, 8, ["onClick"]),
|
|
366
|
-
F(n) ? (d(), g(h, {
|
|
367
|
-
key: 0,
|
|
368
|
-
icon: "visibility",
|
|
369
|
-
"icon-color": "neutral-gray-400",
|
|
370
|
-
variant: "tertiary",
|
|
371
|
-
onClick: async (u) => {
|
|
372
|
-
u.stopPropagation(), await t(k).push({
|
|
373
|
-
name: t(A)["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
374
|
-
params: { id: n._id }
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
}, null, 8, ["onClick"])) : L("", !0),
|
|
378
|
-
F(n) ? (d(), g(h, {
|
|
379
|
-
key: 1,
|
|
380
|
-
icon: "send",
|
|
381
|
-
"icon-color": "neutral-gray-400",
|
|
382
|
-
variant: "tertiary",
|
|
383
|
-
onClick: (u) => {
|
|
384
|
-
var $;
|
|
385
|
-
u.stopPropagation(), ($ = t(S)) == null || $.showSheet({
|
|
386
|
-
campaignId: n._id
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
}, null, 8, ["onClick"])) : L("", !0),
|
|
390
|
-
s(h, {
|
|
391
|
-
icon: "delete",
|
|
392
|
-
"icon-color": "neutral-gray-400",
|
|
393
|
-
variant: "tertiary",
|
|
394
|
-
onClick: (u) => (u.stopPropagation(), O(n))
|
|
395
|
-
}, null, 8, ["onClick"])
|
|
396
|
-
])
|
|
397
|
-
];
|
|
398
|
-
}),
|
|
399
|
-
_: 2
|
|
400
|
-
}, 1032, ["onClick"]))), 128))
|
|
401
|
-
]),
|
|
402
|
-
_: 1
|
|
403
|
-
})
|
|
404
|
-
], 64)) : (d(), g(te, {
|
|
405
|
-
key: 1,
|
|
406
|
-
variant: "outlined",
|
|
407
|
-
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
408
|
-
}, {
|
|
409
|
-
default: I(() => [
|
|
410
|
-
o[7] || (o[7] = c("img", {
|
|
411
|
-
src: se,
|
|
412
|
-
class: "aspect-square w-[150px]"
|
|
413
|
-
}, null, -1)),
|
|
414
|
-
c("div", Be, [
|
|
415
|
-
c("div", Oe, _(t(a)("connect.voucher.createVoucherCampaign")), 1),
|
|
416
|
-
c("div", Me, _(t(a)("connect.voucher.description")), 1)
|
|
417
|
-
]),
|
|
418
|
-
s(h, {
|
|
419
|
-
variant: "primary",
|
|
420
|
-
label: t(a)("connect.voucher.createVoucherCampaign"),
|
|
421
|
-
icon: "add",
|
|
422
|
-
onClick: o[6] || (o[6] = (n) => w())
|
|
423
|
-
}, null, 8, ["label"])
|
|
424
|
-
]),
|
|
425
|
-
_: 1
|
|
426
|
-
})),
|
|
427
|
-
s(Ce, {
|
|
428
|
-
ref_key: "sheetRef",
|
|
429
|
-
ref: V,
|
|
430
|
-
"onSubmit:modelValue": Z
|
|
431
|
-
}, null, 512),
|
|
432
|
-
s(we, {
|
|
433
|
-
ref_key: "sendVoucherSheetRef",
|
|
434
|
-
ref: S
|
|
435
|
-
}, null, 512)
|
|
436
|
-
])
|
|
437
|
-
], 64);
|
|
438
|
-
};
|
|
439
|
-
}
|
|
440
|
-
});
|
|
441
|
-
export {
|
|
442
|
-
ro as default
|
|
443
|
-
};
|
package/dist/export-CN3lbc2j.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
var g = Object.defineProperty;
|
|
2
|
-
var b = (s, e, o) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
|
|
3
|
-
var d = (s, e, o) => b(s, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
-
import { u as a, w as f } from "./xlsx-Ct_b6gSU.js";
|
|
5
|
-
import { u as h } from "./loading-DO3WUS3q.js";
|
|
6
|
-
import { h as x } from "./moment-D7p2TMB-.js";
|
|
7
|
-
import { m as w } from "./index-BlKeV6aM.js";
|
|
8
|
-
class y {
|
|
9
|
-
constructor() {
|
|
10
|
-
d(this, "records", []);
|
|
11
|
-
}
|
|
12
|
-
addRecord(e) {
|
|
13
|
-
this.records.push(e);
|
|
14
|
-
}
|
|
15
|
-
addRecords(e) {
|
|
16
|
-
this.records.push(...e);
|
|
17
|
-
}
|
|
18
|
-
buildExcel() {
|
|
19
|
-
const e = a.json_to_sheet(this.records), o = a.book_new();
|
|
20
|
-
return a.book_append_sheet(o, e, "Sheet1"), o;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
class k extends y {
|
|
24
|
-
}
|
|
25
|
-
const r = {
|
|
26
|
-
sortBy: "_id",
|
|
27
|
-
descending: !1,
|
|
28
|
-
rowsPerPage: 1e3,
|
|
29
|
-
page: 1,
|
|
30
|
-
rowsNumber: 0
|
|
31
|
-
}, { minor: _ } = h;
|
|
32
|
-
async function S({
|
|
33
|
-
exporter: s,
|
|
34
|
-
readFunction: e,
|
|
35
|
-
transformRecord: o,
|
|
36
|
-
filename: t
|
|
37
|
-
}) {
|
|
38
|
-
const c = (await e({
|
|
39
|
-
limit: 1,
|
|
40
|
-
skip: 0,
|
|
41
|
-
sortBy: r.sortBy,
|
|
42
|
-
descending: r.descending
|
|
43
|
-
})).meta.totalResources ?? 0, n = r.rowsPerPage;
|
|
44
|
-
await _(
|
|
45
|
-
async () => {
|
|
46
|
-
for (let i = 0; i < c; i += n) {
|
|
47
|
-
const m = {
|
|
48
|
-
...r,
|
|
49
|
-
limit: n,
|
|
50
|
-
skip: r.page - 1,
|
|
51
|
-
sortBy: r.sortBy,
|
|
52
|
-
descending: r.descending
|
|
53
|
-
}, p = await e(m);
|
|
54
|
-
for (const l of p.resources) {
|
|
55
|
-
const u = o(l);
|
|
56
|
-
s.addRecord(u);
|
|
57
|
-
}
|
|
58
|
-
r.page++;
|
|
59
|
-
}
|
|
60
|
-
await f(
|
|
61
|
-
s.buildExcel(),
|
|
62
|
-
`${t}-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
|
|
63
|
-
{
|
|
64
|
-
bookType: "xlsx",
|
|
65
|
-
bookSST: !1,
|
|
66
|
-
type: "array"
|
|
67
|
-
}
|
|
68
|
-
), r.page = 1;
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
message: `Exporting ${t}...`,
|
|
72
|
-
successMessage: `${t} exported successfully`
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
async function E() {
|
|
77
|
-
return S({
|
|
78
|
-
exporter: new k(),
|
|
79
|
-
readFunction: w.readCards,
|
|
80
|
-
transformRecord: (s) => {
|
|
81
|
-
var e, o;
|
|
82
|
-
return {
|
|
83
|
-
CardNumber: s.serialNumber || "",
|
|
84
|
-
MemberId: ((e = s.pf_member) == null ? void 0 : e._id.toString()) || "",
|
|
85
|
-
Phone: ((o = s.pf_member) == null ? void 0 : o.phoneNumber) || "",
|
|
86
|
-
RedeemedAt: s.redeemedAt ? x(s.redeemedAt).format("DD/MM/YYYY") : ""
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
filename: "cards"
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
export {
|
|
93
|
-
y as B,
|
|
94
|
-
k as C,
|
|
95
|
-
E as a,
|
|
96
|
-
S as e
|
|
97
|
-
};
|