@feedmepos/mf-connect 0.1.0-beta.6 → 0.1.0-beta.60
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/Analytic-CXegtSEd.js +427 -0
- package/dist/{App-C2616cfr.js → App-m9A9s3wd.js} +445 -420
- package/dist/AuditLogs-CpUOkyXq.js +1886 -0
- package/dist/Bin-m6mPl3FE.js +166 -0
- package/dist/{Broadcast-CqSwLTAq.js → Broadcast-DNjHnlPp.js} +56 -54
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DrR9Pmtb.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-cjdNZLkE.js} +6 -8
- package/dist/Card-CAvS5aaN.js +896 -0
- package/dist/Collections-3C9I2byH.js +459 -0
- package/dist/{Credit-CPcLgnsq.js → Credit-DcAmLeMb.js} +36 -34
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-wGFMCV-y.js +2181 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D2buK6Dj.js → EffectSheet.vue_vue_type_style_index_0_lang-CIEn1N24.js} +6 -6
- package/dist/{Experience-BoBikt-x.js → Experience-GF9yOrlE.js} +32 -30
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
- package/dist/{Game-DR8PyYZa.js → Game-CzBn_Li3.js} +39 -37
- package/dist/Index-Bhmkdb4n.js +259 -0
- package/dist/Marketing-DlbcOoiN.js +20071 -0
- package/dist/Member-CdXG5uEN.js +317 -0
- package/dist/MemberList-xIOXAHJf.js +1598 -0
- package/dist/MemberTransactions-CsW9vso0.js +45 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhtIZCjT.js → MessageInput.vue_vue_type_script_setup_true_lang-jtjk9NjI.js} +83 -71
- package/dist/{Mission-CMpvz9zN.js → Mission-2UjKrmGe.js} +101 -87
- package/dist/Overview-ClittdS6.js +1078 -0
- package/dist/{Point-DkZn6p9s.js → Point-BON4g7zE.js} +55 -53
- package/dist/{Promotion-B7YzwPc_.js → Promotion-qUEZmmm8.js} +65 -57
- package/dist/Queue-DA4glGdE.js +244 -0
- package/dist/Record-EUAnp1--.js +340 -0
- package/dist/Reward-ChbsdQuW.js +442 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CUFw56sf.js +150 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BKesht7Y.js +1637 -0
- package/dist/Segment-DbwFx6vD.js +568 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-lwpYOWMR.js +181 -0
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbuOPEGY.js +147 -0
- package/dist/Setting-FMTftvlU.js +1931 -0
- package/dist/Store-BkUwiBUq.js +1751 -0
- package/dist/{StoreRewards-6BzVwZqr.js → StoreRewards-Z8uhK0v1.js} +33 -32
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DwFYJ1Iz.js +943 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B6cAveco.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D6mrJp05.js} +1 -1
- package/dist/{Tier-CW-46oJS.js → Tier-COCmcJJF.js} +327 -318
- package/dist/{Title-CE9rWVdi.js → Title-7qCjbur9.js} +199 -184
- package/dist/{Transaction-B21RrC4M.js → Transaction-9FS_K2hv.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Fx-J2gcK.js +130 -0
- package/dist/Voucher-Dx70JAgw.js +354 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CECJsKRJ.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BiVZwBuG.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bne_nxYS.js} +1 -1
- package/dist/{app-CjhXHUQv.js → app-CWKpKW78.js} +1 -1
- package/dist/app-q6W6-faT.js +7059 -0
- package/dist/app.js +1 -1
- package/dist/{business-aHhRUXc0.js → business-D5AQBRGS.js} +1 -1
- package/dist/campaign-BGiM8ccX.js +1810 -0
- package/dist/{campaign-DH9NUNf_.js → campaign-v8MAkDo-.js} +2 -2
- package/dist/campaign.enum-Dro6UEcE.js +20 -0
- package/dist/campaign.fn-DsJUr-gE.js +758 -0
- package/dist/collectible.enum-BH9pX7PE.js +19 -0
- package/dist/{collection.fn-CYlsA-kW.js → collection.fn-CHiRShK_.js} +2 -2
- package/dist/dto-CeX9egUp.js +214 -0
- package/dist/{effect-LSc9YanX.js → effect-DtJQE1cD.js} +9 -9
- package/dist/email-addresses-DKOsgzML.js +705 -0
- package/dist/{export-Cf0-C5Ly.js → export-Daiv_zH9.js} +5 -5
- package/dist/{helper-CiZpeMCM.js → helper-B5Emawnj.js} +1 -1
- package/dist/index-9WBy0L7U.js +54 -0
- package/dist/{index-D6cEOHP4.js → index-BSHuLDD0.js} +1501 -1480
- package/dist/{index-BVb5-Ht8.js → index-CUl_8M_c.js} +259 -173
- package/dist/{index-gxwjKu3-.js → index-CgCcvX_L.js} +2212 -871
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-D_83JP2i.js → index-DrWrGAHJ.js} +48 -4
- package/dist/index-DteeKoFo.js +115 -0
- package/dist/{index-DW3PRjPL.js → index-Dw2RtHKR.js} +1 -1
- package/dist/{index-kPhrD63q.js → index-ICbXrXiP.js} +1 -1
- package/dist/index-Xwc07I54.js +29000 -0
- package/dist/{index-DtsDOuDx.js → index-ZBSI6ViG.js} +24 -21
- package/dist/index-g9NNHS8s.js +32 -0
- package/dist/index-p6F08hhh.js +44 -0
- package/dist/index-vh86FiIQ.js +10 -0
- package/dist/{index.esm2017-B7oVYIbY.js → index.esm2017-B-SDA6Y2.js} +121 -121
- package/dist/loading-CDbkBsRr.js +71 -0
- package/dist/{membership-Dw1ylJ9Y.js → membership-B8uwuntJ.js} +54 -46
- package/dist/money-DRKB3Rpe.js +15 -0
- package/dist/number-DtyC1DJU.js +12 -0
- package/dist/objectid-wGrq9P1h.js +145 -0
- package/dist/{loading-7yq1tinq.js → plugins-DKNh-lBz.js} +3871 -3943
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-C2jv5dmJ.js +36 -0
- package/dist/{rule-C0Q_SHow.js → rule-C5AMTchR.js} +180 -177
- package/dist/{rule-builder-iu17XIof.js → rule-builder-DLOGHT1l.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CyOanTMu.js → template-C-fz1DXI.js} +5 -5
- package/dist/trigger-DTErX60D.js +144 -0
- package/dist/user-CVRoQGCF.js +54 -0
- package/dist/{vue-i18n-B0fLJH7a.js → vue-i18n-CxMxiW_u.js} +366 -366
- package/dist/{xlsx-BYO_bB9J.js → xlsx-CARvMJN_.js} +1 -1
- package/package.json +10 -6
- package/dist/Analytic-muDf0oMG.js +0 -622
- package/dist/Card-bhLoK0ZV.js +0 -825
- package/dist/Collections-DjtsAiol.js +0 -453
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-U_QZneS6.js +0 -2813
- package/dist/Marketing-Dny2nMUl.js +0 -316
- package/dist/Member-CP_smyk8.js +0 -69
- package/dist/MemberList-CR3eYI9p.js +0 -1733
- package/dist/MemberTransactions-RTx_lKFb.js +0 -38
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cs67_GLE.js +0 -1753
- package/dist/Segment-Bb4gHt5V.js +0 -437
- package/dist/Setting-Xj0AVzh3.js +0 -1901
- package/dist/Store-BWRHQ6Ie.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BsFnT8BS.js +0 -890
- package/dist/Voucher-KK9fBI0u.js +0 -490
- package/dist/app-Dvf_JNMf.js +0 -5764
- package/dist/dto-DArfyZAI.js +0 -2770
- package/dist/index-Bi_LGEtY.js +0 -99
- package/dist/index-CiQDG7Cm.js +0 -762
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-DQfjSSMF.js +0 -206
- package/dist/index-DcxssxPi.js +0 -29193
- package/dist/index-DqJVH2kv.js +0 -298
- package/dist/money-CPd0XTNv.js +0 -15
- package/dist/number-BgXY4un8.js +0 -12
- package/dist/user-Bm4KttFq.js +0 -37
|
@@ -0,0 +1,166 @@
|
|
|
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
|
+
import { components as p } from "@feedmepos/ui-library";
|
|
3
|
+
import { u as K } from "./loading-CDbkBsRr.js";
|
|
4
|
+
import { u as R } from "./business-D5AQBRGS.js";
|
|
5
|
+
import { C as A } from "./campaign-BGiM8ccX.js";
|
|
6
|
+
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-wGFMCV-y.js";
|
|
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-BbuOPEGY.js";
|
|
9
|
+
import { u as D } from "./vue-i18n-CxMxiW_u.js";
|
|
10
|
+
import { h as E } from "./moment-BWErdI6_.js";
|
|
11
|
+
import { p as I } from "./plugins-DKNh-lBz.js";
|
|
12
|
+
import { c as g } from "./index-DteeKoFo.js";
|
|
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
|
+
__name: "Bin",
|
|
15
|
+
setup(H) {
|
|
16
|
+
const { t: n } = D(), y = R(), { global: _, minor: b } = K, a = c({
|
|
17
|
+
searchKey: "",
|
|
18
|
+
location: null
|
|
19
|
+
}), m = c([]), w = [
|
|
20
|
+
{
|
|
21
|
+
header: n("connect.campaign.common.title"),
|
|
22
|
+
accessorFn: (e) => e.name
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
header: n("connect.campaign.common.campaignType"),
|
|
26
|
+
cell(e) {
|
|
27
|
+
return A[e.row.original.type].chip();
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
header: n("connect.campaign.common.deletedAt"),
|
|
32
|
+
cell(e) {
|
|
33
|
+
return E(e.row.original.deletedAt).format("D MMM YYYY, hh:mmA");
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
header: n("connect.voucher.actions"),
|
|
38
|
+
cell(e) {
|
|
39
|
+
return s("div", { class: "flex items-center justify-end" }, [
|
|
40
|
+
s(
|
|
41
|
+
p.FmMenu,
|
|
42
|
+
{
|
|
43
|
+
placement: "bottom-end",
|
|
44
|
+
onClick: (t) => {
|
|
45
|
+
t.stopPropagation();
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"menu-button": () => s(p.FmButton, {
|
|
50
|
+
icon: "more_vert",
|
|
51
|
+
iconColor: "neutral-gray-400",
|
|
52
|
+
variant: "tertiary"
|
|
53
|
+
}),
|
|
54
|
+
default: () => [
|
|
55
|
+
s(
|
|
56
|
+
p.FmMenuItem,
|
|
57
|
+
{
|
|
58
|
+
icon: "restore",
|
|
59
|
+
onClick: async (i) => {
|
|
60
|
+
i.stopPropagation(), F(e.row.original);
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: s(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
class: "fm-typo-en-body-md-400"
|
|
68
|
+
},
|
|
69
|
+
n("connect.campaign.common.actions.restore")
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
]);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
], v = c(), V = c();
|
|
80
|
+
async function F(e) {
|
|
81
|
+
await I.confirm(
|
|
82
|
+
n("connect.campaign.common.restore.confirm", { name: e.name })
|
|
83
|
+
) && await b(
|
|
84
|
+
async () => {
|
|
85
|
+
await g.restore(e._id), await f();
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
message: n("connect.campaign.common.restore.restoring", { name: e.name }),
|
|
89
|
+
successMessage: n("connect.campaign.common.restore.restored", {
|
|
90
|
+
name: e.name
|
|
91
|
+
})
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
async function f() {
|
|
96
|
+
const e = await g.readAllDeleted({
|
|
97
|
+
limit: 1e3,
|
|
98
|
+
skip: 0,
|
|
99
|
+
sortBy: "_id",
|
|
100
|
+
descending: !0
|
|
101
|
+
});
|
|
102
|
+
m.value = e.resources;
|
|
103
|
+
}
|
|
104
|
+
return x(async () => {
|
|
105
|
+
await _(async () => {
|
|
106
|
+
await f();
|
|
107
|
+
});
|
|
108
|
+
}), (e, t) => {
|
|
109
|
+
const i = d("FmPageHead"), h = d("FmSearch"), k = d("FmTable");
|
|
110
|
+
return S(), B(M, null, [
|
|
111
|
+
l(i, {
|
|
112
|
+
title: o(n)("connect.bin.title")
|
|
113
|
+
}, null, 8, ["title"]),
|
|
114
|
+
u("div", T, [
|
|
115
|
+
l(h, {
|
|
116
|
+
modelValue: o(a).searchKey,
|
|
117
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => o(a).searchKey = r),
|
|
118
|
+
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
119
|
+
placeholder: o(n)("connect.voucher.search"),
|
|
120
|
+
collapsible: ""
|
|
121
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
122
|
+
u("div", $, [
|
|
123
|
+
u("div", j, [
|
|
124
|
+
l(U, {
|
|
125
|
+
modelValue: o(a).location,
|
|
126
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => o(a).location = r),
|
|
127
|
+
label: o(n)("connect.voucher.location"),
|
|
128
|
+
"show-item-label": !0,
|
|
129
|
+
icon: "storefront",
|
|
130
|
+
placement: "bottom-start",
|
|
131
|
+
items: o(y).locationItems
|
|
132
|
+
}, null, 8, ["modelValue", "label", "items"])
|
|
133
|
+
]),
|
|
134
|
+
l(h, {
|
|
135
|
+
modelValue: o(a).searchKey,
|
|
136
|
+
"onUpdate:modelValue": t[2] || (t[2] = (r) => o(a).searchKey = r),
|
|
137
|
+
class: "xs:hidden",
|
|
138
|
+
placeholder: o(n)("connect.voucher.search"),
|
|
139
|
+
collapsible: ""
|
|
140
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
141
|
+
]),
|
|
142
|
+
l(k, {
|
|
143
|
+
"row-data": o(m),
|
|
144
|
+
"column-defs": w,
|
|
145
|
+
"search-value": o(a).searchKey,
|
|
146
|
+
"column-filter": [],
|
|
147
|
+
onRowClick: t[3] || (t[3] = (r) => e.onEdit(r.original)),
|
|
148
|
+
"hide-footer": o(m).length < 10
|
|
149
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
150
|
+
l(P, {
|
|
151
|
+
ref_key: "sheetRef",
|
|
152
|
+
ref: v,
|
|
153
|
+
"onSubmit:modelValue": e.onUpdate
|
|
154
|
+
}, null, 8, ["onSubmit:modelValue"]),
|
|
155
|
+
l(Y, {
|
|
156
|
+
ref_key: "sendVoucherSheetRef",
|
|
157
|
+
ref: V
|
|
158
|
+
}, null, 512)
|
|
159
|
+
])
|
|
160
|
+
], 64);
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
export {
|
|
165
|
+
oe as default
|
|
166
|
+
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { defineComponent as N, ref as h, computed as U, onMounted as j, resolveComponent as r, openBlock as l, createElementBlock as y, Fragment as b, createVNode as i, unref as t, createElementVNode as n, withCtx as v, renderList as E, createBlock as w, resolveDynamicComponent as H, toDisplayString as d, createCommentVNode as q, h as z } from "vue";
|
|
2
2
|
import { _ as G } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as J, components as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { _ as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
4
|
+
import { p as W } from "./plugins-DKNh-lBz.js";
|
|
5
|
+
import { u as X } from "./loading-CDbkBsRr.js";
|
|
6
|
+
import { u as Y } from "./business-D5AQBRGS.js";
|
|
7
|
+
import { u as Z } from "./campaign-v8MAkDo-.js";
|
|
8
|
+
import { a as B, b as A, g as ee } from "./campaign-BGiM8ccX.js";
|
|
9
|
+
import { u as te } from "./vue-i18n-CxMxiW_u.js";
|
|
10
|
+
import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
11
|
+
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-wGFMCV-y.js";
|
|
12
|
+
import { u as ne } from "./template-C-fz1DXI.js";
|
|
13
|
+
import { c as _ } from "./index-DteeKoFo.js";
|
|
14
|
+
const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-center justify-between w-full" }, ie = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "space-y-4" }, pe = { class: "fm-typo-en-body-lg-600" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { key: 0 }, ge = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, ye = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Te = /* @__PURE__ */ N({
|
|
14
15
|
__name: "Broadcast",
|
|
15
|
-
setup(
|
|
16
|
-
const { t: s } =
|
|
16
|
+
setup(be) {
|
|
17
|
+
const { t: s } = te(), V = {
|
|
17
18
|
label: s("connect.campaign.common.createCampaign"),
|
|
18
19
|
value: "create",
|
|
19
20
|
isPrimary: !0,
|
|
20
21
|
prependIcon: "add"
|
|
21
|
-
}, D =
|
|
22
|
+
}, D = ne("BROADCAST", J()), R = Y(), m = Z(), { global: L, minor: C } = X, T = h((/* @__PURE__ */ new Date()).toISOString()), c = h({
|
|
22
23
|
searchKey: "",
|
|
23
24
|
location: null
|
|
24
25
|
}), f = U(
|
|
@@ -32,6 +33,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
32
33
|
},
|
|
33
34
|
{
|
|
34
35
|
header: "Status",
|
|
36
|
+
accessorFn: (e) => ee(e),
|
|
35
37
|
cell(e) {
|
|
36
38
|
return B(e.row.original);
|
|
37
39
|
}
|
|
@@ -51,17 +53,17 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
51
53
|
variant: "tertiary",
|
|
52
54
|
icon: "delete",
|
|
53
55
|
iconColor: "neutral-gray-400",
|
|
54
|
-
onClick: (
|
|
55
|
-
|
|
56
|
+
onClick: (a) => {
|
|
57
|
+
a.stopPropagation(), S(e.row.original);
|
|
56
58
|
}
|
|
57
59
|
});
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
|
-
],
|
|
62
|
+
], x = h();
|
|
61
63
|
async function S(e) {
|
|
62
|
-
await
|
|
64
|
+
await W.remove(
|
|
63
65
|
s("campaign.common.remove.confirm", { name: e.name })
|
|
64
|
-
) && await
|
|
66
|
+
) && await C(
|
|
65
67
|
async () => {
|
|
66
68
|
await _.delete(e._id), await m.read("BROADCAST");
|
|
67
69
|
},
|
|
@@ -72,12 +74,12 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
72
74
|
);
|
|
73
75
|
}
|
|
74
76
|
async function g(e) {
|
|
75
|
-
T.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await
|
|
76
|
-
await
|
|
77
|
+
T.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await a() : D.open(async (p) => {
|
|
78
|
+
await a(p);
|
|
77
79
|
});
|
|
78
|
-
async function
|
|
80
|
+
async function a(p) {
|
|
79
81
|
var u;
|
|
80
|
-
(u =
|
|
82
|
+
(u = x.value) == null || u.showSheet(
|
|
81
83
|
!0,
|
|
82
84
|
"BROADCAST",
|
|
83
85
|
e ? await _.readById(e._id) : void 0,
|
|
@@ -86,7 +88,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
async function K(e) {
|
|
89
|
-
await
|
|
91
|
+
await C(
|
|
90
92
|
async () => {
|
|
91
93
|
e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await m.read("BROADCAST");
|
|
92
94
|
},
|
|
@@ -104,28 +106,28 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
104
106
|
await L(async () => {
|
|
105
107
|
await m.read("BROADCAST");
|
|
106
108
|
});
|
|
107
|
-
}), (e,
|
|
109
|
+
}), (e, a) => {
|
|
108
110
|
const p = r("FmPageHead"), u = r("FmSearch"), O = r("FmTable"), F = r("FmButton"), $ = r("FmListItem"), P = r("FmList"), M = r("FmCard");
|
|
109
111
|
return l(), y(b, null, [
|
|
110
112
|
i(p, {
|
|
111
113
|
title: t(s)("connect.campaign.broadcast.title"),
|
|
112
114
|
actions: t(f).length > 0 ? [V] : [],
|
|
113
|
-
"onClick:action":
|
|
115
|
+
"onClick:action": a[0] || (a[0] = () => g())
|
|
114
116
|
}, null, 8, ["title", "actions"]),
|
|
115
|
-
n("div",
|
|
117
|
+
n("div", se, [
|
|
116
118
|
i(u, {
|
|
117
119
|
modelValue: t(c).searchKey,
|
|
118
|
-
"onUpdate:modelValue":
|
|
120
|
+
"onUpdate:modelValue": a[1] || (a[1] = (o) => t(c).searchKey = o),
|
|
119
121
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
120
122
|
placeholder: t(s)("connect.campaign.common.search"),
|
|
121
123
|
collapsible: ""
|
|
122
124
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
123
125
|
t(m).campaigns.broadcast && t(m).campaigns.broadcast.length > 0 ? (l(), y(b, { key: 0 }, [
|
|
124
|
-
n("div",
|
|
125
|
-
n("div",
|
|
126
|
-
i(
|
|
126
|
+
n("div", ce, [
|
|
127
|
+
n("div", ie, [
|
|
128
|
+
i(ae, {
|
|
127
129
|
modelValue: t(c).location,
|
|
128
|
-
"onUpdate:modelValue":
|
|
130
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => t(c).location = o),
|
|
129
131
|
label: `${t(s)("connect.campaign.common.location")}: `,
|
|
130
132
|
"show-item-label": !0,
|
|
131
133
|
icon: "storefront",
|
|
@@ -135,7 +137,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
135
137
|
]),
|
|
136
138
|
i(u, {
|
|
137
139
|
modelValue: t(c).searchKey,
|
|
138
|
-
"onUpdate:modelValue":
|
|
140
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => t(c).searchKey = o),
|
|
139
141
|
class: "xs:hidden",
|
|
140
142
|
placeholder: "search",
|
|
141
143
|
collapsible: ""
|
|
@@ -147,34 +149,34 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
147
149
|
"column-defs": I,
|
|
148
150
|
"search-value": t(c).searchKey,
|
|
149
151
|
"column-filter": [],
|
|
150
|
-
onRowClick:
|
|
152
|
+
onRowClick: a[4] || (a[4] = (o) => g(o.original)),
|
|
151
153
|
"hide-footer": !0
|
|
152
154
|
}, null, 8, ["row-data", "search-value"]),
|
|
153
155
|
i(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
154
156
|
default: v(() => [
|
|
155
157
|
(l(!0), y(b, null, E(t(f).filter(
|
|
156
|
-
(
|
|
157
|
-
), (
|
|
158
|
-
key:
|
|
159
|
-
onClick: (k) => g(
|
|
158
|
+
(o) => o.name.toLowerCase().includes(t(c).searchKey.toLowerCase())
|
|
159
|
+
), (o) => (l(), w($, {
|
|
160
|
+
key: o._id.toString(),
|
|
161
|
+
onClick: (k) => g(o),
|
|
160
162
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
161
163
|
}, {
|
|
162
164
|
default: v(() => [
|
|
163
|
-
n("div",
|
|
164
|
-
n("div",
|
|
165
|
-
(l(), w(H(t(B)(
|
|
166
|
-
n("div",
|
|
165
|
+
n("div", re, [
|
|
166
|
+
n("div", le, [
|
|
167
|
+
(l(), w(H(t(B)(o)))),
|
|
168
|
+
n("div", me, d(o.currentReceive ?? 0) + " sent ", 1)
|
|
167
169
|
]),
|
|
168
|
-
n("div",
|
|
169
|
-
n("div",
|
|
170
|
-
n("div",
|
|
170
|
+
n("div", de, [
|
|
171
|
+
n("div", pe, d(o.name), 1),
|
|
172
|
+
n("div", ue, d(t(A)(o)), 1)
|
|
171
173
|
])
|
|
172
174
|
]),
|
|
173
175
|
i(F, {
|
|
174
176
|
icon: "delete",
|
|
175
177
|
"icon-color": "neutral-gray-400",
|
|
176
178
|
variant: "tertiary",
|
|
177
|
-
onClick: (k) => (k.stopPropagation(), S(
|
|
179
|
+
onClick: (k) => (k.stopPropagation(), S(o))
|
|
178
180
|
}, null, 8, ["onClick"])
|
|
179
181
|
]),
|
|
180
182
|
_: 2
|
|
@@ -182,8 +184,8 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
182
184
|
]),
|
|
183
185
|
_: 1
|
|
184
186
|
}),
|
|
185
|
-
t(f).length == 0 ? (l(), y("div",
|
|
186
|
-
n("div",
|
|
187
|
+
t(f).length == 0 ? (l(), y("div", fe, [
|
|
188
|
+
n("div", ge, d(t(s)("connect.campaign.common.noResults")), 1)
|
|
187
189
|
])) : q("", !0)
|
|
188
190
|
], 64)) : (l(), w(M, {
|
|
189
191
|
key: 1,
|
|
@@ -191,26 +193,26 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
191
193
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
192
194
|
}, {
|
|
193
195
|
default: v(() => [
|
|
194
|
-
|
|
196
|
+
a[6] || (a[6] = n("img", {
|
|
195
197
|
src: G,
|
|
196
198
|
class: "aspect-square w-[150px]"
|
|
197
199
|
}, null, -1)),
|
|
198
|
-
n("div",
|
|
199
|
-
n("div",
|
|
200
|
-
n("div",
|
|
200
|
+
n("div", ye, [
|
|
201
|
+
n("div", _e, d(t(s)("connect.campaign.broadcast.create.title")), 1),
|
|
202
|
+
n("div", he, d(t(s)("connect.campaign.broadcast.create.description")), 1)
|
|
201
203
|
]),
|
|
202
204
|
i(F, {
|
|
203
205
|
variant: "primary",
|
|
204
206
|
label: t(s)("connect.campaign.broadcast.create.button"),
|
|
205
207
|
icon: "add",
|
|
206
|
-
onClick:
|
|
208
|
+
onClick: a[5] || (a[5] = (o) => g())
|
|
207
209
|
}, null, 8, ["label"])
|
|
208
210
|
]),
|
|
209
211
|
_: 1
|
|
210
212
|
})),
|
|
211
213
|
i(oe, {
|
|
212
214
|
ref_key: "sheetRef",
|
|
213
|
-
ref:
|
|
215
|
+
ref: x,
|
|
214
216
|
"onSubmit:modelValue": K
|
|
215
217
|
}, null, 512)
|
|
216
218
|
])
|
|
@@ -219,5 +221,5 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
219
221
|
}
|
|
220
222
|
});
|
|
221
223
|
export {
|
|
222
|
-
|
|
224
|
+
Te as default
|
|
223
225
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { R as RuleOperator, _ } from "./index-
|
|
2
|
-
import { i as isRuleGroup } from "./rule-builder-
|
|
1
|
+
import { R as RuleOperator, _ } from "./index-BSHuLDD0.js";
|
|
2
|
+
import { i as isRuleGroup } from "./rule-builder-DLOGHT1l.js";
|
|
3
3
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
|
4
4
|
import { useDialog } from "@feedmepos/ui-library";
|
|
5
|
-
import "./index-
|
|
6
|
-
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-DqJVH2kv.js";
|
|
10
|
-
import "./index-DW3PRjPL.js";
|
|
5
|
+
import "./index-CUl_8M_c.js";
|
|
6
|
+
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-CgCcvX_L.js";
|
|
7
|
+
import "./index-Dw2RtHKR.js";
|
|
8
|
+
import "./index-9WBy0L7U.js";
|
|
11
9
|
function validateRule(data, r, date) {
|
|
12
10
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
13
11
|
function meetConditions(e) {
|