@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,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as C, ref as c, h as s, onMounted as x, resolveComponent as d, openBlock as S, createElementBlock as B, Fragment as M, createVNode as l, unref as o, createElementVNode as u } from "vue";
|
|
2
2
|
import { components as p } from "@feedmepos/ui-library";
|
|
3
|
-
import { u as K } from "./loading-
|
|
4
|
-
import { u as R } from "./business-
|
|
5
|
-
import { C as A } from "./campaign-
|
|
6
|
-
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as K } from "./loading-BkJ3h_4U.js";
|
|
4
|
+
import { u as R } from "./business-Bla8vvZH.js";
|
|
5
|
+
import { C as A } from "./campaign-DYqAyRCY.js";
|
|
6
|
+
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js";
|
|
7
7
|
import { _ as U } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
8
|
-
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as D } from "./vue-i18n-
|
|
8
|
+
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbEX2h2u.js";
|
|
9
|
+
import { u as D } from "./vue-i18n-BQmB8Ex1.js";
|
|
10
10
|
import { h as E } from "./moment-D7p2TMB-.js";
|
|
11
|
-
import { p as I } from "./plugins-
|
|
12
|
-
import { c as g } from "./index-
|
|
11
|
+
import { p as I } from "./plugins-3_mD58dh.js";
|
|
12
|
+
import { c as g } from "./index-C67-z1uf.js";
|
|
13
13
|
const T = { class: "px-24 flex flex-col gap-y-16" }, $ = { class: "flex items-center justify-between w-full" }, j = { class: "flex gap-8 overflow-x-auto" }, oe = /* @__PURE__ */ C({
|
|
14
14
|
__name: "Bin",
|
|
15
15
|
setup(H) {
|
|
@@ -1,26 +1,27 @@
|
|
|
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 { a as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { defineComponent as q, ref as C, computed as z, onMounted as G, resolveComponent as m, openBlock as d, createElementBlock as w, Fragment as v, createVNode as i, unref as a, createElementVNode as n, withCtx as S, renderList as J, createBlock as x, resolveDynamicComponent as Q, toDisplayString as u, createCommentVNode as W, h as k } from "vue";
|
|
2
|
+
import { _ as X } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as Y, components as R } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as Z } from "./plugins-3_mD58dh.js";
|
|
5
|
+
import { u as ee } from "./loading-BkJ3h_4U.js";
|
|
6
|
+
import { u as te } from "./business-Bla8vvZH.js";
|
|
7
|
+
import { u as ae } from "./campaign-BIPNFBY5.js";
|
|
8
|
+
import { a as L, b as O, g as oe } from "./campaign-DYqAyRCY.js";
|
|
9
|
+
import { u as ne, c as se, p as ce } from "./template-fImyGLa7.js";
|
|
10
|
+
import { u as ie } from "./vue-i18n-BQmB8Ex1.js";
|
|
11
|
+
import { _ as re } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
12
|
+
import { _ as le } from "./MessageInput.vue_vue_type_script_setup_true_lang-N8PCSKBx.js";
|
|
13
|
+
import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js";
|
|
14
|
+
import { u as de } from "./onboardingSetup-BLmLAgIV.js";
|
|
15
|
+
import { c as f } from "./index-C67-z1uf.js";
|
|
16
|
+
const pe = { class: "px-24 flex flex-col gap-y-16" }, ue = { class: "flex items-center justify-between w-full" }, fe = { class: "flex gap-8 overflow-x-auto" }, ge = { class: "space-y-8" }, ye = { class: "flex w-full gap-4 items-center" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { 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" }, Ce = { class: "flex items-center gap-8" }, ve = { key: 0 }, Se = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, xe = { class: "flex flex-col gap-16 text-center" }, ke = { class: "fm-typo-en-title-sm-800" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ee = /* @__PURE__ */ q({
|
|
16
17
|
__name: "Broadcast",
|
|
17
|
-
setup(
|
|
18
|
-
const { t: s } =
|
|
18
|
+
setup(Be) {
|
|
19
|
+
const { t: s } = ie(), V = {
|
|
19
20
|
label: s("connect.campaign.common.createCampaign"),
|
|
20
21
|
value: "create",
|
|
21
22
|
isPrimary: !0,
|
|
22
23
|
prependIcon: "add"
|
|
23
|
-
}, T =
|
|
24
|
+
}, T = ne("BROADCAST", Y()), I = te(), p = ae(), { global: K, minor: A } = ee, B = C((/* @__PURE__ */ new Date()).toISOString()), r = C({
|
|
24
25
|
searchKey: "",
|
|
25
26
|
location: []
|
|
26
27
|
});
|
|
@@ -31,7 +32,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
31
32
|
return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
|
|
32
33
|
}) : e.targetLocation.includes(t);
|
|
33
34
|
}
|
|
34
|
-
const g =
|
|
35
|
+
const g = z(
|
|
35
36
|
() => p.campaigns.broadcast.filter((e) => P(e))
|
|
36
37
|
), $ = [
|
|
37
38
|
{
|
|
@@ -40,14 +41,14 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
43
|
header: "Status",
|
|
43
|
-
accessorFn: (e) =>
|
|
44
|
+
accessorFn: (e) => oe(e),
|
|
44
45
|
cell(e) {
|
|
45
|
-
return
|
|
46
|
+
return L(e.row.original);
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
50
|
header: "Summary",
|
|
50
|
-
accessorFn: (e) =>
|
|
51
|
+
accessorFn: (e) => O(e)
|
|
51
52
|
},
|
|
52
53
|
{
|
|
53
54
|
header: "Message sent",
|
|
@@ -57,7 +58,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
57
58
|
header: "Actions",
|
|
58
59
|
cell(e) {
|
|
59
60
|
return k("div", { class: "flex items-center gap-8 justify-end" }, [
|
|
60
|
-
k(
|
|
61
|
+
k(R.FmButton, {
|
|
61
62
|
variant: "tertiary",
|
|
62
63
|
icon: "content_copy",
|
|
63
64
|
iconColor: "neutral-gray-400",
|
|
@@ -65,22 +66,22 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
65
66
|
t.stopPropagation(), await D(e.row.original);
|
|
66
67
|
}
|
|
67
68
|
}),
|
|
68
|
-
k(
|
|
69
|
+
k(R.FmButton, {
|
|
69
70
|
variant: "tertiary",
|
|
70
71
|
icon: "delete",
|
|
71
72
|
iconColor: "neutral-gray-400",
|
|
72
73
|
onClick: (t) => {
|
|
73
|
-
t.stopPropagation(),
|
|
74
|
+
t.stopPropagation(), F(e.row.original);
|
|
74
75
|
}
|
|
75
76
|
})
|
|
76
77
|
]);
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
|
-
],
|
|
80
|
-
async function
|
|
81
|
-
await
|
|
80
|
+
], y = C();
|
|
81
|
+
async function F(e) {
|
|
82
|
+
await Z.remove(
|
|
82
83
|
s("connect.campaign.common.remove.confirm", { name: e.name })
|
|
83
|
-
) && await
|
|
84
|
+
) && await A(
|
|
84
85
|
async () => {
|
|
85
86
|
await f.delete(e._id), await p.read("BROADCAST");
|
|
86
87
|
},
|
|
@@ -92,13 +93,13 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
92
93
|
}
|
|
93
94
|
);
|
|
94
95
|
}
|
|
95
|
-
async function
|
|
96
|
+
async function _(e) {
|
|
96
97
|
B.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await t() : T.open(async (l) => {
|
|
97
98
|
await t(l);
|
|
98
99
|
});
|
|
99
100
|
async function t(l) {
|
|
100
101
|
var c;
|
|
101
|
-
(c =
|
|
102
|
+
(c = y.value) == null || c.showSheet(
|
|
102
103
|
!0,
|
|
103
104
|
"BROADCAST",
|
|
104
105
|
e ? await f.readById(e._id) : void 0,
|
|
@@ -108,11 +109,11 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
108
109
|
}
|
|
109
110
|
async function D(e) {
|
|
110
111
|
var c;
|
|
111
|
-
if (!await
|
|
112
|
+
if (!await se(e.name))
|
|
112
113
|
return;
|
|
113
114
|
B.value = (/* @__PURE__ */ new Date()).toISOString();
|
|
114
|
-
const t = await f.readById(e._id), l =
|
|
115
|
-
(c =
|
|
115
|
+
const t = await f.readById(e._id), l = ce(t);
|
|
116
|
+
(c = y.value) == null || c.showSheet(
|
|
116
117
|
!0,
|
|
117
118
|
"BROADCAST",
|
|
118
119
|
l,
|
|
@@ -120,7 +121,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
120
121
|
);
|
|
121
122
|
}
|
|
122
123
|
async function j(e) {
|
|
123
|
-
await
|
|
124
|
+
await A(
|
|
124
125
|
async () => {
|
|
125
126
|
e.campaign._id ? await f.update(e.campaign._id, e) : await f.create(e), await p.read("BROADCAST");
|
|
126
127
|
},
|
|
@@ -134,20 +135,22 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
134
135
|
}
|
|
135
136
|
);
|
|
136
137
|
}
|
|
137
|
-
|
|
138
|
+
const M = de();
|
|
139
|
+
return G(async () => {
|
|
140
|
+
var e;
|
|
138
141
|
await K(async () => {
|
|
139
142
|
await p.read("BROADCAST");
|
|
140
|
-
});
|
|
143
|
+
}), await M.consume() === "BROADCAST" && ((e = y.value) == null || e.showSheet(!0, "BROADCAST"));
|
|
141
144
|
}), (e, t) => {
|
|
142
|
-
const l = m("FmPageHead"), c = m("FmSearch"),
|
|
143
|
-
return d(),
|
|
145
|
+
const l = m("FmPageHead"), c = m("FmSearch"), N = m("FmTable"), b = m("FmButton"), U = m("FmListItem"), E = m("FmList"), H = m("FmCard");
|
|
146
|
+
return d(), w(v, null, [
|
|
144
147
|
i(l, {
|
|
145
148
|
title: a(s)("connect.campaign.broadcast.title"),
|
|
146
|
-
actions: a(g).length > 0 ? [
|
|
147
|
-
"onClick:action": t[0] || (t[0] = () =>
|
|
149
|
+
actions: a(g).length > 0 ? [V] : [],
|
|
150
|
+
"onClick:action": t[0] || (t[0] = () => _())
|
|
148
151
|
}, null, 8, ["title", "actions"]),
|
|
149
|
-
n("div",
|
|
150
|
-
i(
|
|
152
|
+
n("div", pe, [
|
|
153
|
+
i(le),
|
|
151
154
|
i(c, {
|
|
152
155
|
modelValue: a(r).searchKey,
|
|
153
156
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => a(r).searchKey = o),
|
|
@@ -155,10 +158,10 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
155
158
|
placeholder: a(s)("connect.campaign.common.search"),
|
|
156
159
|
collapsible: ""
|
|
157
160
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
158
|
-
a(p).campaigns.broadcast && a(p).campaigns.broadcast.length > 0 ? (d(),
|
|
159
|
-
n("div",
|
|
160
|
-
n("div",
|
|
161
|
-
i(
|
|
161
|
+
a(p).campaigns.broadcast && a(p).campaigns.broadcast.length > 0 ? (d(), w(v, { key: 0 }, [
|
|
162
|
+
n("div", ue, [
|
|
163
|
+
n("div", fe, [
|
|
164
|
+
i(re, {
|
|
162
165
|
label: `${a(s)("connect.campaign.common.location")}: `,
|
|
163
166
|
"right-icon": "keyboard_arrow_down",
|
|
164
167
|
modelValue: a(r).location,
|
|
@@ -176,49 +179,49 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
176
179
|
collapsible: ""
|
|
177
180
|
}, null, 8, ["modelValue"])
|
|
178
181
|
]),
|
|
179
|
-
i(
|
|
182
|
+
i(N, {
|
|
180
183
|
class: "xs:hidden sm:hidden",
|
|
181
184
|
"row-data": a(g),
|
|
182
185
|
"column-defs": $,
|
|
183
186
|
"search-value": a(r).searchKey,
|
|
184
187
|
"column-filter": [],
|
|
185
|
-
onRowClick: t[4] || (t[4] = (o) =>
|
|
188
|
+
onRowClick: t[4] || (t[4] = (o) => _(o.original)),
|
|
186
189
|
"hide-footer": !0
|
|
187
190
|
}, null, 8, ["row-data", "search-value"]),
|
|
188
|
-
i(
|
|
189
|
-
default:
|
|
190
|
-
(d(!0),
|
|
191
|
+
i(E, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
192
|
+
default: S(() => [
|
|
193
|
+
(d(!0), w(v, null, J(a(g).filter(
|
|
191
194
|
(o) => o.name.toLowerCase().includes(a(r).searchKey.toLowerCase())
|
|
192
|
-
), (o) => (d(),
|
|
195
|
+
), (o) => (d(), x(U, {
|
|
193
196
|
key: o._id.toString(),
|
|
194
|
-
onClick: (
|
|
197
|
+
onClick: (h) => _(o),
|
|
195
198
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
196
199
|
}, {
|
|
197
|
-
default:
|
|
198
|
-
n("div",
|
|
199
|
-
n("div", fe, [
|
|
200
|
-
(d(), S(J(a(V)(o)))),
|
|
201
|
-
n("div", ge, u(o.currentReceive ?? 0) + " sent ", 1)
|
|
202
|
-
]),
|
|
200
|
+
default: S(() => [
|
|
201
|
+
n("div", ge, [
|
|
203
202
|
n("div", ye, [
|
|
204
|
-
|
|
205
|
-
n("div",
|
|
203
|
+
(d(), x(Q(a(L)(o)))),
|
|
204
|
+
n("div", _e, u(o.currentReceive ?? 0) + " sent ", 1)
|
|
205
|
+
]),
|
|
206
|
+
n("div", he, [
|
|
207
|
+
n("div", we, u(o.name), 1),
|
|
208
|
+
n("div", be, u(a(O)(o)), 1)
|
|
206
209
|
])
|
|
207
210
|
]),
|
|
208
|
-
n("div",
|
|
211
|
+
n("div", Ce, [
|
|
209
212
|
i(b, {
|
|
210
213
|
icon: "content_copy",
|
|
211
214
|
"icon-color": "neutral-gray-400",
|
|
212
215
|
variant: "tertiary",
|
|
213
|
-
onClick: async (
|
|
214
|
-
|
|
216
|
+
onClick: async (h) => {
|
|
217
|
+
h.stopPropagation(), await D(o);
|
|
215
218
|
}
|
|
216
219
|
}, null, 8, ["onClick"]),
|
|
217
220
|
i(b, {
|
|
218
221
|
icon: "delete",
|
|
219
222
|
"icon-color": "neutral-gray-400",
|
|
220
223
|
variant: "tertiary",
|
|
221
|
-
onClick: (
|
|
224
|
+
onClick: (h) => (h.stopPropagation(), F(o))
|
|
222
225
|
}, null, 8, ["onClick"])
|
|
223
226
|
])
|
|
224
227
|
]),
|
|
@@ -227,35 +230,35 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
227
230
|
]),
|
|
228
231
|
_: 1
|
|
229
232
|
}),
|
|
230
|
-
a(g).length == 0 ? (d(),
|
|
231
|
-
n("div",
|
|
232
|
-
])) :
|
|
233
|
-
], 64)) : (d(),
|
|
233
|
+
a(g).length == 0 ? (d(), w("div", ve, [
|
|
234
|
+
n("div", Se, u(a(s)("connect.campaign.common.noResults")), 1)
|
|
235
|
+
])) : W("", !0)
|
|
236
|
+
], 64)) : (d(), x(H, {
|
|
234
237
|
key: 1,
|
|
235
238
|
variant: "outlined",
|
|
236
239
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
237
240
|
}, {
|
|
238
|
-
default:
|
|
241
|
+
default: S(() => [
|
|
239
242
|
t[6] || (t[6] = n("img", {
|
|
240
|
-
src:
|
|
243
|
+
src: X,
|
|
241
244
|
class: "aspect-square w-[150px]"
|
|
242
245
|
}, null, -1)),
|
|
243
|
-
n("div",
|
|
244
|
-
n("div",
|
|
245
|
-
n("div",
|
|
246
|
+
n("div", xe, [
|
|
247
|
+
n("div", ke, u(a(s)("connect.campaign.broadcast.create.title")), 1),
|
|
248
|
+
n("div", Ae, u(a(s)("connect.campaign.broadcast.create.description")), 1)
|
|
246
249
|
]),
|
|
247
250
|
i(b, {
|
|
248
251
|
variant: "primary",
|
|
249
252
|
label: a(s)("connect.campaign.broadcast.create.button"),
|
|
250
253
|
icon: "add",
|
|
251
|
-
onClick: t[5] || (t[5] = (o) =>
|
|
254
|
+
onClick: t[5] || (t[5] = (o) => _())
|
|
252
255
|
}, null, 8, ["label"])
|
|
253
256
|
]),
|
|
254
257
|
_: 1
|
|
255
258
|
})),
|
|
256
|
-
i(
|
|
259
|
+
i(me, {
|
|
257
260
|
ref_key: "sheetRef",
|
|
258
|
-
ref:
|
|
261
|
+
ref: y,
|
|
259
262
|
"onSubmit:modelValue": j
|
|
260
263
|
}, null, 512)
|
|
261
264
|
])
|
|
@@ -264,5 +267,5 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-
|
|
|
264
267
|
}
|
|
265
268
|
});
|
|
266
269
|
export {
|
|
267
|
-
|
|
270
|
+
Ee as default
|
|
268
271
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as z, computed as P, resolveComponent as S, openBlock as r, createBlock as x, withCtx as D, createElementBlock as d, createCommentVNode as v, createElementVNode as s, toDisplayString as u, normalizeClass as K, unref as o, Fragment as L, normalizeStyle as ye, createTextVNode as xe, renderList as ee, createVNode as $, ref as Q, onMounted as ke } from "vue";
|
|
2
|
-
import { u as he } from "./vue-i18n-
|
|
2
|
+
import { u as he } from "./vue-i18n-BQmB8Ex1.js";
|
|
3
3
|
import { useCoreStore as we } from "@feedmepos/mf-common";
|
|
4
|
-
import { c as U } from "./index-
|
|
5
|
-
import { u as Re } from "./loading-
|
|
6
|
-
import { s as Me, g as _e } from "./campaign-
|
|
7
|
-
import { C as be } from "./timezone-
|
|
4
|
+
import { c as U } from "./index-C67-z1uf.js";
|
|
5
|
+
import { u as Re } from "./loading-BkJ3h_4U.js";
|
|
6
|
+
import { s as Me, g as _e } from "./campaign-DYqAyRCY.js";
|
|
7
|
+
import { C as be } from "./timezone-DQ7TNXmV.js";
|
|
8
8
|
import { h as Se } from "./moment-D7p2TMB-.js";
|
|
9
9
|
import { s as Ce } from "./index-CuvNtC_M.js";
|
|
10
|
-
import { T as Ie } from "./transaction.fn-
|
|
11
|
-
import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { T as Ie } from "./transaction.fn-OT7ucfCB.js";
|
|
11
|
+
import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_JNdYsBu.js";
|
|
12
12
|
import { useRoute as $e, useRouter as Pe } from "vue-router";
|
|
13
13
|
const Oe = {
|
|
14
14
|
state: "populated",
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { R as RuleOperator, _ } from "./index-
|
|
2
|
-
import { i as isRuleGroup } from "./rule-builder-
|
|
3
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
|
1
|
+
import { R as RuleOperator, _ } from "./index-BqKrePY8.js";
|
|
2
|
+
import { i as isRuleGroup } from "./rule-builder-Co_1uuj4.js";
|
|
3
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, unref, createVNode, toDisplayString, createCommentVNode } from "vue";
|
|
4
4
|
import { useDialog } from "@feedmepos/ui-library";
|
|
5
|
-
import
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
5
|
+
import "./index-B6x6s8mu.js";
|
|
6
|
+
import "./index-DvW-3flw.js";
|
|
7
|
+
import { F as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-CZqwIQXi.js";
|
|
8
|
+
import "./index-D6RDVy95.js";
|
|
9
|
+
import "./index-Dalmv1m4.js";
|
|
10
|
+
import "./index-otcusTFM.js";
|
|
11
|
+
import { u as useBusinessStore } from "./business-Bla8vvZH.js";
|
|
9
12
|
function validateRule(data, r, date) {
|
|
10
13
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
11
14
|
function meetConditions(e) {
|
|
@@ -20,11 +23,11 @@ function validateRule(data, r, date) {
|
|
|
20
23
|
equator: t
|
|
21
24
|
// raw: data,
|
|
22
25
|
}), o;
|
|
23
|
-
const
|
|
26
|
+
const a = rules[n](
|
|
24
27
|
l,
|
|
25
28
|
t
|
|
26
29
|
);
|
|
27
|
-
return o &&
|
|
30
|
+
return o && a;
|
|
28
31
|
},
|
|
29
32
|
!0
|
|
30
33
|
);
|
|
@@ -43,7 +46,7 @@ function validateRule(data, r, date) {
|
|
|
43
46
|
}
|
|
44
47
|
return isRuleGroup(r) ? evaluateRuleResult(getRuleResults(r), r.logic) : meetConditions(r);
|
|
45
48
|
}
|
|
46
|
-
const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = { class: "fm-typo-en-title-sm-600" },
|
|
49
|
+
const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = ["disabled", "onClick"], _hoisted_3 = { class: "flex items-center gap-8" }, _hoisted_4 = { class: "fm-typo-en-title-sm-600" }, _hoisted_5 = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
50
|
__name: "CampaignTypeDialog",
|
|
48
51
|
props: {
|
|
49
52
|
onSelect: {
|
|
@@ -52,7 +55,7 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
|
|
|
52
55
|
}
|
|
53
56
|
},
|
|
54
57
|
setup(e) {
|
|
55
|
-
const o = e, n = useDialog(), t = [
|
|
58
|
+
const o = e, n = useDialog(), t = useBusinessStore(), l = [
|
|
56
59
|
{
|
|
57
60
|
title: "Promotion",
|
|
58
61
|
description: "Special offers or deals made available for a limited time",
|
|
@@ -71,12 +74,14 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
|
|
|
71
74
|
{
|
|
72
75
|
title: "Point",
|
|
73
76
|
description: "Points allow customers to purchase bundle items.",
|
|
74
|
-
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.COIN
|
|
77
|
+
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.COIN,
|
|
78
|
+
premium: !0
|
|
75
79
|
},
|
|
76
80
|
{
|
|
77
81
|
title: "Game",
|
|
78
82
|
description: "The game feature adds a fun and encourage customers to engage more.",
|
|
79
|
-
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.GAME
|
|
83
|
+
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.GAME,
|
|
84
|
+
premium: !0
|
|
80
85
|
},
|
|
81
86
|
{
|
|
82
87
|
title: "Credit",
|
|
@@ -84,30 +89,43 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
|
|
|
84
89
|
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.CREDIT
|
|
85
90
|
}
|
|
86
91
|
];
|
|
87
|
-
function
|
|
88
|
-
|
|
92
|
+
function a(u) {
|
|
93
|
+
var s;
|
|
94
|
+
(s = l.find((c) => c.value === u)) != null && s.premium && !t.isPremium || (n.close(), o.onSelect(u));
|
|
89
95
|
}
|
|
90
|
-
return (
|
|
91
|
-
const c = resolveComponent("FmCard");
|
|
92
|
-
return openBlock(), createBlock(
|
|
96
|
+
return (u, s) => {
|
|
97
|
+
const c = resolveComponent("FmPill"), m = resolveComponent("FmCard");
|
|
98
|
+
return openBlock(), createBlock(m, { class: "p-24 space-y-16" }, {
|
|
93
99
|
default: withCtx(() => [
|
|
94
|
-
|
|
100
|
+
s[0] || (s[0] = createElementVNode("div", { class: "" }, [
|
|
95
101
|
createElementVNode("div", { class: "fm-typo-en-title-sm-800" }, "Add benefit"),
|
|
96
102
|
createElementVNode("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Select the benefit type that you want to reward the selected tier. ")
|
|
97
103
|
], -1)),
|
|
98
104
|
createElementVNode("div", _hoisted_1, [
|
|
99
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(l, (i) => createElementVNode("button", {
|
|
106
|
+
key: i.value,
|
|
107
|
+
type: "button",
|
|
108
|
+
disabled: i.premium && !unref(t).isPremium,
|
|
109
|
+
onClick: (d) => a(i.value),
|
|
110
|
+
class: "w-full text-left disabled:cursor-not-allowed disabled:opacity-50"
|
|
111
|
+
}, [
|
|
112
|
+
createVNode(m, {
|
|
113
|
+
variant: "outlined",
|
|
114
|
+
class: "p-16 space-y-8"
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [
|
|
117
|
+
createElementVNode("div", _hoisted_3, [
|
|
118
|
+
createElementVNode("div", _hoisted_4, toDisplayString(i.title), 1),
|
|
119
|
+
i.premium ? (openBlock(), createBlock(c, {
|
|
120
|
+
key: 0,
|
|
121
|
+
variant: "premium"
|
|
122
|
+
})) : createCommentVNode("", !0)
|
|
123
|
+
]),
|
|
124
|
+
createElementVNode("div", _hoisted_5, toDisplayString(i.description), 1)
|
|
125
|
+
]),
|
|
126
|
+
_: 2
|
|
127
|
+
}, 1024)
|
|
128
|
+
], 8, _hoisted_2)), 64))
|
|
111
129
|
])
|
|
112
130
|
]),
|
|
113
131
|
_: 1
|