@feedmepos/mf-connect 0.1.0-beta.2 → 0.1.0-beta.21
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-CZ8gfj2V.js +424 -0
- package/dist/{App-D8a5eW51.js → App-Da9h7lhI.js} +397 -384
- package/dist/{Broadcast-C8jgMe6g.js → Broadcast-m6ehTw7F.js} +32 -32
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pG8WvV4I.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BTKA2Ygl.js} +8 -8
- package/dist/Card-DqZveZ44.js +685 -0
- package/dist/{Collections-lMrdPUuM.js → Collections-XIY6SLgQ.js} +4 -4
- package/dist/{Credit-CJfU5tP4.js → Credit-B6Yg3_al.js} +14 -14
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D1gub9ZP.js +2198 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CzEtOmp0.js → EffectSheet.vue_vue_type_style_index_0_lang-tRUwA8zh.js} +8 -8
- package/dist/{Experience-Bp2ki8gU.js → Experience-CsoneWLZ.js} +8 -8
- package/dist/{Game-BpTf6ebE.js → Game-B029f9yE.js} +15 -15
- package/dist/Index-B2LvLfrR.js +226 -0
- package/dist/Marketing-DUTyDRXu.js +20070 -0
- package/dist/{Member-BSWyy32a.js → Member-CATybMaC.js} +4 -4
- package/dist/MemberList-DxvQ7DnC.js +1045 -0
- package/dist/{MemberTransactions-BzHiXCnp.js → MemberTransactions-fEZyBY9P.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-e-zWg08J.js → MessageInput.vue_vue_type_script_setup_true_lang-BCCEsJZj.js} +2 -2
- package/dist/{Mission-8IGT3T2C.js → Mission-Cl3O0ULj.js} +16 -16
- package/dist/Overview-BVI2xGvT.js +1014 -0
- package/dist/{Point-CbbJ6ohd.js → Point-DSVn47pK.js} +23 -23
- package/dist/{Promotion-BYXCJa_S.js → Promotion-C4HyMpPg.js} +53 -47
- package/dist/Record-BSKXwUu2.js +187 -0
- package/dist/Reward-Cus20Wq5.js +399 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-Dm6Vgx8-.js +151 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CqMCdTsv.js +1597 -0
- package/dist/Segment-DAHJ2FYV.js +567 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DpkIgpqy.js +181 -0
- package/dist/{Setting-CLpvvZTv.js → Setting-D7dKlTiZ.js} +8 -8
- package/dist/Store-DQdWn1Dw.js +1745 -0
- package/dist/{StoreRewards-CUM2irXK.js → StoreRewards-Cut9mJGn.js} +12 -12
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BQscw_Di.js +957 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DEb4OBcX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BVzz2Zkl.js} +1 -1
- package/dist/{Tier-DZTDxWBo.js → Tier-DGpNybHO.js} +15 -15
- package/dist/{Title-C2Dr5ceK.js → Title-D5y8GEwE.js} +15 -15
- package/dist/{Transaction-BL4mS29d.js → Transaction-CCnZouEv.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Cr9DV7hr.js +130 -0
- package/dist/{Voucher-Cx0r2-df.js → Voucher-BJ6RC4SS.js} +31 -31
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-6751WdaT.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DWuAODUF.js → ZodTextField.vue_vue_type_script_setup_true_lang-aq-9V3Gc.js} +1 -1
- package/dist/{app-wE5HTF_Y.js → app-D3chCumI.js} +1279 -1282
- package/dist/{app-B_xuZ5HB.js → app-PfWyqx7U.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-DSv8zM8C.js → business-trsrJyHK.js} +1 -1
- package/dist/{campaign-7y5qquHZ.js → campaign-B1rgdv77.js} +2 -2
- package/dist/collectible.enum-ZoD0ya1M.js +19 -0
- package/dist/{collection.fn-BxVZQAx0.js → collection.fn-CnQjdokW.js} +2 -2
- package/dist/{dto-Ew1QwLci.js → dto-DuJumvC2.js} +12 -20
- package/dist/{effect-BzPh8fRI.js → effect-CFYktLyZ.js} +9 -9
- package/dist/email-addresses-BocLAqLt.js +705 -0
- package/dist/{export-C9tDplkA.js → export-BDxbvd3c.js} +3 -3
- package/dist/{helper-Sz7oQ0F4.js → helper-Bx6u7f_W.js} +1 -1
- package/dist/{index-DH_1nOJ_.js → index-7QsBQpBM.js} +39 -35
- package/dist/{index-z0IfdrZk.js → index-AcoIUTDS.js} +203 -195
- package/dist/{index-C3_4GUiI.js → index-BAUe6Mqp.js} +7 -1
- package/dist/{index-C0lpADCo.js → index-C20tnKDo.js} +1 -1
- package/dist/{index-C-SOz7jt.js → index-CDgSJNKm.js} +1 -1
- package/dist/{index-DBMaUGYI.js → index-CTnZ9dt0.js} +30 -26
- package/dist/index-CUMB0mpB.js +28997 -0
- package/dist/index-CsF6BSZU.js +1067 -0
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-tv4t0Pnh.js → index-DwXHEi0X.js} +1 -1
- package/dist/{index-_3qBsogG.js → index-ZXWgygOr.js} +1500 -1479
- package/dist/index-_v_LQTuR.js +53 -0
- package/dist/index-kLMiwwB-.js +38 -0
- package/dist/{index-gIRszcHf.js → index-pRpTA8Kd.js} +1 -1
- package/dist/{index.esm2017-BnKJDxUo.js → index.esm2017-DuOZ7nuk.js} +33 -33
- package/dist/{loading-Ds-yFYhc.js → loading-BTEwnG5-.js} +591 -597
- package/dist/{membership-DaiVw9qF.js → membership-DkH7qw6W.js} +51 -43
- package/dist/money-BfCdj0Ts.js +15 -0
- package/dist/number-BKHcstZb.js +12 -0
- package/dist/objectid-CumRza_j.js +145 -0
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-DpR3xoxT.js +36 -0
- package/dist/{rule-Cd2M6Ri2.js → rule-Hb9_sJvP.js} +180 -177
- package/dist/{rule-builder-B6og27Q1.js → rule-builder-BhwlX4fv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-DouRWBpv.js → template-PkDFDppy.js} +5 -5
- package/dist/trigger-vLHrldAH.js +114 -0
- package/dist/{vue-i18n-BTlOChXs.js → vue-i18n-ComnFt3O.js} +2 -2
- package/dist/{xlsx-SahfXQ70.js → xlsx-CsUJ1mq4.js} +1 -1
- package/package.json +8 -7
- package/dist/Analytic-DSD9TsKr.js +0 -622
- package/dist/Card-C1K7ULPo.js +0 -825
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js +0 -2809
- package/dist/Marketing-BiKE2gxA.js +0 -316
- package/dist/MemberList-CHlGREyR.js +0 -1733
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Bruh-umZ.js +0 -1753
- package/dist/Segment-DXDNM0yd.js +0 -437
- package/dist/Store-C6-P6bwc.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-JaRdmqif.js +0 -890
- package/dist/index-BQm0C3Jm.js +0 -298
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-D-2nFLsg.js +0 -762
- package/dist/index-Dy4pmQpt.js +0 -29193
- package/dist/money-BHtBdZoz.js +0 -15
- package/dist/number-CZhcB8ef.js +0 -12
|
@@ -1,15 +1,15 @@
|
|
|
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 { u as W, p as X } from "./loading-
|
|
5
|
-
import { u as Y } from "./business-
|
|
6
|
-
import { u as Z } from "./campaign-
|
|
7
|
-
import { g as B,
|
|
8
|
-
import { u as ee } from "./vue-i18n-
|
|
4
|
+
import { u as W, p as X } from "./loading-BTEwnG5-.js";
|
|
5
|
+
import { u as Y } from "./business-trsrJyHK.js";
|
|
6
|
+
import { u as Z } from "./campaign-B1rgdv77.js";
|
|
7
|
+
import { g as B, a as A } from "./dto-DuJumvC2.js";
|
|
8
|
+
import { u as ee } from "./vue-i18n-ComnFt3O.js";
|
|
9
9
|
import { _ as te } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as
|
|
11
|
-
import { u as
|
|
12
|
-
import { c as _ } from "./index-
|
|
10
|
+
import { _ as ae } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-D1gub9ZP.js";
|
|
11
|
+
import { u as oe } from "./template-PkDFDppy.js";
|
|
12
|
+
import { c as _ } from "./index-CDgSJNKm.js";
|
|
13
13
|
const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 }, fe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, ge = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Re = /* @__PURE__ */ N({
|
|
14
14
|
__name: "Broadcast",
|
|
15
15
|
setup(he) {
|
|
@@ -18,7 +18,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
18
18
|
value: "create",
|
|
19
19
|
isPrimary: !0,
|
|
20
20
|
prependIcon: "add"
|
|
21
|
-
}, D =
|
|
21
|
+
}, D = oe("BROADCAST", J()), R = Y(), m = Z(), { global: L, minor: x } = W, T = h((/* @__PURE__ */ new Date()).toISOString()), c = h({
|
|
22
22
|
searchKey: "",
|
|
23
23
|
location: null
|
|
24
24
|
}), f = U(
|
|
@@ -51,8 +51,8 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
51
51
|
variant: "tertiary",
|
|
52
52
|
icon: "delete",
|
|
53
53
|
iconColor: "neutral-gray-400",
|
|
54
|
-
onClick: (
|
|
55
|
-
|
|
54
|
+
onClick: (a) => {
|
|
55
|
+
a.stopPropagation(), S(e.row.original);
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -72,10 +72,10 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
async function g(e) {
|
|
75
|
-
T.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await
|
|
76
|
-
await
|
|
75
|
+
T.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await a() : D.open(async (p) => {
|
|
76
|
+
await a(p);
|
|
77
77
|
});
|
|
78
|
-
async function
|
|
78
|
+
async function a(p) {
|
|
79
79
|
var u;
|
|
80
80
|
(u = C.value) == null || u.showSheet(
|
|
81
81
|
!0,
|
|
@@ -104,18 +104,18 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
104
104
|
await L(async () => {
|
|
105
105
|
await m.read("BROADCAST");
|
|
106
106
|
});
|
|
107
|
-
}), (e,
|
|
107
|
+
}), (e, a) => {
|
|
108
108
|
const p = r("FmPageHead"), u = r("FmSearch"), O = r("FmTable"), F = r("FmButton"), $ = r("FmListItem"), P = r("FmList"), M = r("FmCard");
|
|
109
109
|
return l(), y(b, null, [
|
|
110
110
|
i(p, {
|
|
111
111
|
title: t(s)("connect.campaign.broadcast.title"),
|
|
112
112
|
actions: t(f).length > 0 ? [V] : [],
|
|
113
|
-
"onClick:action":
|
|
113
|
+
"onClick:action": a[0] || (a[0] = () => g())
|
|
114
114
|
}, null, 8, ["title", "actions"]),
|
|
115
115
|
n("div", ne, [
|
|
116
116
|
i(u, {
|
|
117
117
|
modelValue: t(c).searchKey,
|
|
118
|
-
"onUpdate:modelValue":
|
|
118
|
+
"onUpdate:modelValue": a[1] || (a[1] = (o) => t(c).searchKey = o),
|
|
119
119
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
120
120
|
placeholder: t(s)("connect.campaign.common.search"),
|
|
121
121
|
collapsible: ""
|
|
@@ -125,7 +125,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
125
125
|
n("div", ce, [
|
|
126
126
|
i(te, {
|
|
127
127
|
modelValue: t(c).location,
|
|
128
|
-
"onUpdate:modelValue":
|
|
128
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => t(c).location = o),
|
|
129
129
|
label: `${t(s)("connect.campaign.common.location")}: `,
|
|
130
130
|
"show-item-label": !0,
|
|
131
131
|
icon: "storefront",
|
|
@@ -135,7 +135,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
135
135
|
]),
|
|
136
136
|
i(u, {
|
|
137
137
|
modelValue: t(c).searchKey,
|
|
138
|
-
"onUpdate:modelValue":
|
|
138
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => t(c).searchKey = o),
|
|
139
139
|
class: "xs:hidden",
|
|
140
140
|
placeholder: "search",
|
|
141
141
|
collapsible: ""
|
|
@@ -147,34 +147,34 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
147
147
|
"column-defs": I,
|
|
148
148
|
"search-value": t(c).searchKey,
|
|
149
149
|
"column-filter": [],
|
|
150
|
-
onRowClick:
|
|
150
|
+
onRowClick: a[4] || (a[4] = (o) => g(o.original)),
|
|
151
151
|
"hide-footer": !0
|
|
152
152
|
}, null, 8, ["row-data", "search-value"]),
|
|
153
153
|
i(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
154
154
|
default: v(() => [
|
|
155
155
|
(l(!0), y(b, null, E(t(f).filter(
|
|
156
|
-
(
|
|
157
|
-
), (
|
|
158
|
-
key:
|
|
159
|
-
onClick: (k) => g(
|
|
156
|
+
(o) => o.name.toLowerCase().includes(t(c).searchKey.toLowerCase())
|
|
157
|
+
), (o) => (l(), w($, {
|
|
158
|
+
key: o._id.toString(),
|
|
159
|
+
onClick: (k) => g(o),
|
|
160
160
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
161
161
|
}, {
|
|
162
162
|
default: v(() => [
|
|
163
163
|
n("div", ie, [
|
|
164
164
|
n("div", re, [
|
|
165
|
-
(l(), w(H(t(B)(
|
|
166
|
-
n("div", le, d(
|
|
165
|
+
(l(), w(H(t(B)(o)))),
|
|
166
|
+
n("div", le, d(o.currentReceive ?? 0) + " sent ", 1)
|
|
167
167
|
]),
|
|
168
168
|
n("div", me, [
|
|
169
|
-
n("div", de, d(
|
|
170
|
-
n("div", pe, d(t(A)(
|
|
169
|
+
n("div", de, d(o.name), 1),
|
|
170
|
+
n("div", pe, d(t(A)(o)), 1)
|
|
171
171
|
])
|
|
172
172
|
]),
|
|
173
173
|
i(F, {
|
|
174
174
|
icon: "delete",
|
|
175
175
|
"icon-color": "neutral-gray-400",
|
|
176
176
|
variant: "tertiary",
|
|
177
|
-
onClick: (k) => (k.stopPropagation(), S(
|
|
177
|
+
onClick: (k) => (k.stopPropagation(), S(o))
|
|
178
178
|
}, null, 8, ["onClick"])
|
|
179
179
|
]),
|
|
180
180
|
_: 2
|
|
@@ -191,7 +191,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
191
191
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
192
192
|
}, {
|
|
193
193
|
default: v(() => [
|
|
194
|
-
|
|
194
|
+
a[6] || (a[6] = n("img", {
|
|
195
195
|
src: G,
|
|
196
196
|
class: "aspect-square w-[150px]"
|
|
197
197
|
}, null, -1)),
|
|
@@ -203,12 +203,12 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
203
203
|
variant: "primary",
|
|
204
204
|
label: t(s)("connect.campaign.broadcast.create.button"),
|
|
205
205
|
icon: "add",
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: a[5] || (a[5] = (o) => g())
|
|
207
207
|
}, null, 8, ["label"])
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
|
210
210
|
})),
|
|
211
|
-
i(
|
|
211
|
+
i(ae, {
|
|
212
212
|
ref_key: "sheetRef",
|
|
213
213
|
ref: C,
|
|
214
214
|
"onSubmit:modelValue": K
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { R as RuleOperator, _ } from "./index-
|
|
2
|
-
import { i as isRuleGroup } from "./rule-builder-
|
|
1
|
+
import { R as RuleOperator, _ } from "./index-ZXWgygOr.js";
|
|
2
|
+
import { i as isRuleGroup } from "./rule-builder-BhwlX4fv.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-
|
|
10
|
-
import "./index-
|
|
5
|
+
import "./index-CTnZ9dt0.js";
|
|
6
|
+
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-CsF6BSZU.js";
|
|
7
|
+
import "./index-7QsBQpBM.js";
|
|
8
|
+
import "./index-AcoIUTDS.js";
|
|
9
|
+
import "./index-C20tnKDo.js";
|
|
10
|
+
import "./index-_v_LQTuR.js";
|
|
11
11
|
function validateRule(data, r, date) {
|
|
12
12
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
13
13
|
function meetConditions(e) {
|