@feedmepos/mf-connect 0.1.71-prod → 0.1.72-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/{Analytic-DIzZEv_G.js → Analytic-CxQKbOnR.js} +163 -163
- package/dist/{App-DrnbBc_l.js → App-C0HCgYW2.js} +7 -7
- package/dist/{Bin-Bt_ru3Gd.js → Bin-BFx6j8vs.js} +8 -8
- package/dist/{Broadcast-Bn5ZjKqo.js → Broadcast-CUfwWq6_.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BojGwK_6.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-2oosZTlv.js} +6 -6
- package/dist/{Card-sBhDvBXT.js → Card-DsMVa01V.js} +16 -16
- package/dist/{Collections-Duct2pSH.js → Collections-DSbNXU78.js} +7 -7
- package/dist/{Credit-D3mJTvRc.js → Credit-Dp-tSMfE.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-_60iFOeG.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BW7V_Nsq.js} +817 -794
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-D7QHcodO.js +348 -0
- package/dist/{Experience-CIGwlErx.js → Experience-DkQbI88m.js} +8 -8
- package/dist/{Game-Canf-7L-.js → Game-BJvtVGC7.js} +9 -9
- package/dist/{Index-25eVdVm7.js → Index-BcHe2Qqe.js} +10 -10
- package/dist/{Marketing-krqaA6fv.js → Marketing-BaYjdZpb.js} +6 -6
- package/dist/{Member-Bt0NaXiS.js → Member-BzrcLN4X.js} +10 -10
- package/dist/{MemberList-CXk-T9r2.js → MemberList-_uD6WR--.js} +25 -25
- package/dist/{MemberTransactions-Dg-A6a0v.js → MemberTransactions-DIG5noli.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DtpDrupj.js → MessageInput.vue_vue_type_script_setup_true_lang-Cm4jVJBM.js} +7 -7
- package/dist/{Mission-CsxpvhsB.js → Mission-B0h7ECrd.js} +9 -9
- package/dist/{Overview-BUlq3MuQ.js → Overview-BfjTYcaf.js} +18 -18
- package/dist/{Point-DvPTk5wL.js → Point-yBqZgf08.js} +8 -8
- package/dist/{Promotion-BWygpn4X.js → Promotion-Bh8yiwPe.js} +9 -9
- package/dist/{Queue-iD4D04Z-.js → Queue-CMMyxmWP.js} +10 -10
- package/dist/{Record-CritfdkX.js → Record-DSLpbGVk.js} +8 -8
- package/dist/{Reward-DuZ73-kd.js → Reward-BzAIdcgx.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B1073xkE.js → RewardGroup.vue_vue_type_script_setup_true_lang-DoGsPRbi.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-1CJRrkoS.js → RuleGroup.vue_vue_type_script_setup_true_lang-B7qMLC2M.js} +595 -591
- package/dist/{Segment-C8rNVlEi.js → Segment-BVH3YC8I.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BmWRTRMe.js → SelectItems.vue_vue_type_script_setup_true_lang-BkHWRVba.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BaP2tykA.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D-4QjkWh.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CqICTY8X.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CzCSXHge.js} +3 -3
- package/dist/{Setting-BwLCOkXJ.js → Setting-CFLtqHFJ.js} +12 -12
- package/dist/{SettingAdvertisements-Bjw1RSKB.js → SettingAdvertisements-CvFG5Fun.js} +11 -11
- package/dist/{Store-DEtsM22Y.js → Store-CHcszdPx.js} +19 -19
- package/dist/{StoreRewards-DVzCi6nY.js → StoreRewards-BXrXO3Cg.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DKWElE0N.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Clou5scZ.js} +19 -19
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CS_3d3zl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BEpXudTV.js} +1 -1
- package/dist/{Tier-qUFmMLZe.js → Tier-98o6YCz1.js} +19 -19
- package/dist/{Title-Qk0xODw6.js → Title-BmvCMh9F.js} +18 -18
- package/dist/{Transaction-Be-VAdL0.js → Transaction-D07dnpCB.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Lcgh9b36.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DHvItthe.js} +6 -6
- package/dist/{Voucher-DjiXcyL2.js → Voucher-BX5Dy6oL.js} +12 -12
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BlXCP_IR.js +421 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B0KU6cW2.js → ZodTextField.vue_vue_type_script_setup_true_lang-TkZAyKkk.js} +1 -1
- package/dist/{app-BYt1acSS.js → app-7Ivt_7kS.js} +1974 -914
- package/dist/{app-CVDxFFOq.js → app-C98aAmiY.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-COPU_15m.js → business-B55rTB5S.js} +1 -1
- package/dist/{campaign-CANP8DZ7.js → campaign-RS-eYMBW.js} +1 -1
- package/dist/campaign-dSphYCws.js +226 -0
- package/dist/{campaign.enum-YFcT9qdL.js → campaign.enum-BZRXf9TI.js} +1 -1
- package/dist/{campaign.fn-CF0vxr00.js → campaign.fn-D_b763b6.js} +82 -82
- package/dist/{collectible.enum-CKyUdzxK.js → collectible.enum-ANnJMtnj.js} +1 -1
- package/dist/{collection.fn-CLGxII_6.js → collection.fn-BObHG1bS.js} +2 -2
- package/dist/{dto-D2FwEDQQ.js → dto-BA2PX6Mi.js} +4 -4
- package/dist/{effect-C_AEVoTp.js → effect-DDAGMMzr.js} +1 -1
- package/dist/{email-addresses-BWnpaUzY.js → email-addresses-jx17hvtN.js} +1 -1
- package/dist/{export-7MCVnb85.js → export-DI_2PZhY.js} +3 -3
- package/dist/{helper-BwCpzGpj.js → helper-ApDLcgT1.js} +1 -1
- package/dist/{index-doXz2Xnd.js → index-B5J1HBw3.js} +1 -1
- package/dist/{index-B776PH8X.js → index-BCOxYH7r.js} +1 -1
- package/dist/{index-CY9fLTpI.js → index-BbNMr2Lt.js} +3 -3
- package/dist/{index-BWctDnVc.js → index-C1tcqVNm.js} +3 -3
- package/dist/{index-B7v1Tn5m.js → index-CEeIezsZ.js} +1 -1
- package/dist/{index-D_Yyiihg.js → index-CN0ree8J.js} +1 -1
- package/dist/{index-DhJ4RwuN.js → index-Cl85lvDM.js} +1 -1
- package/dist/{index-BRPLDaar.js → index-CtpRdZKH.js} +2 -2
- package/dist/{index-BCcnESMx.js → index-DUfWM7U3.js} +1023 -1023
- package/dist/{index-CvWUVGAn.js → index-D_9bRGRa.js} +1 -1
- package/dist/{index-BdTNXQvR.js → index-Dg6gbVXO.js} +1 -1
- package/dist/{index-vEDs6OGV.js → index-Dpe36Jv6.js} +4 -4
- package/dist/{index-DMD1qL3R.js → index-DtB1XLw6.js} +183 -178
- package/dist/{index.esm2017-BwgUTaPG.js → index.esm2017-CcAT1nnu.js} +1 -1
- package/dist/{loading-CpAYlxoG.js → loading-Hh5FSOP9.js} +1 -1
- package/dist/{membership-CgJ7PFUR.js → membership-DXQf9Mj3.js} +3 -3
- package/dist/{money-CQGmkTRp.js → money-OBHKTSCa.js} +1 -1
- package/dist/{number-B_oM4a_k.js → number-DTqujv4j.js} +1 -1
- package/dist/{objectid-Dwu4f87A.js → objectid-BkZDKSpn.js} +1 -1
- package/dist/{campaign-DRXh3QJ1.js → plugins-CQqQawn6.js} +784 -776
- package/dist/{reward-CAhovk_1.js → reward-n9uPwsH1.js} +1 -1
- package/dist/{rule-b2BC4jY8.js → rule-BgsibUNE.js} +3 -3
- package/dist/{rule-builder-w8uO1XAF.js → rule-builder-BkzqGukH.js} +1 -1
- package/dist/template-gXT-yGOY.js +188 -0
- package/dist/{timezone-Di5x-2AC.js → timezone-X-iXAUqa.js} +1 -1
- package/dist/{trigger-B9EDmE6z.js → trigger-DEZuV7Fw.js} +4 -4
- package/dist/{user-BCB96Qct.js → user-DG_FfcGk.js} +1 -1
- package/dist/{vue-i18n-DddYl0c6.js → vue-i18n-BB1YkgAs.js} +317 -317
- package/dist/{xlsx-Dj8VVXnA.js → xlsx-CJQa9ako.js} +166 -166
- package/package.json +1 -1
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-Sk5ub0FZ.js +0 -348
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DHySLFcf.js +0 -419
- package/dist/plugins-Bo72kWn7.js +0 -208
- package/dist/template-DDBscrPK.js +0 -190
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as D, unref as e, ref as E, computed as I, onMounted as j, resolveComponent as c, withCtx as d, createElementVNode as l, createElementBlock as w, createVNode as i, normalizeClass as h, createTextVNode as T, Fragment as S, renderList as N, toDisplayString as g, createCommentVNode as M } from "vue";
|
|
2
|
-
import { u as P } from "./campaign-CANP8DZ7.js";
|
|
3
|
-
import { useDialog as q } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as J } from "./index-DMD1qL3R.js";
|
|
5
|
-
import { C as A } from "./collection.fn-CLGxII_6.js";
|
|
6
|
-
import { s as V } from "./index-CuvNtC_M.js";
|
|
7
|
-
import { _ as G } from "./lodash-B5I3zXaY.js";
|
|
8
|
-
import { C as H } from "./campaign-DRXh3QJ1.js";
|
|
9
|
-
import { J as U } from "./JsonViewer-v8_C7l5N.js";
|
|
10
|
-
const K = /* @__PURE__ */ L({
|
|
11
|
-
__name: "CampaignChip",
|
|
12
|
-
props: {
|
|
13
|
-
type: { type: String, required: !0 }
|
|
14
|
-
},
|
|
15
|
-
setup(u) {
|
|
16
|
-
const a = H[u.type];
|
|
17
|
-
return (o, t) => (r(), C(D(e(a).chip())));
|
|
18
|
-
}
|
|
19
|
-
}), Q = { class: "flex flex-nowrap gap-x-2 grow h-full" }, R = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "p-8 w-1/4"
|
|
22
|
-
}, W = { class: "flex flex-col grow p-24" }, X = { class: "space-y-4" }, Y = { class: "fm-typo-en-title-sm-800" }, Z = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, ee = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, te = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, ne = { class: "fm-typo-en-title-sm-800" }, oe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, se = { class: "flex gap-4 items-end justify-end py-8" }, le = /* @__PURE__ */ L({
|
|
23
|
-
__name: "TemplateDialog",
|
|
24
|
-
props: {
|
|
25
|
-
campaignType: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: () => {
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
onOk: {
|
|
31
|
-
type: Function,
|
|
32
|
-
required: !0
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
setup(u) {
|
|
36
|
-
const p = q(), a = P(), o = u, t = E({
|
|
37
|
-
intention: null,
|
|
38
|
-
template: null
|
|
39
|
-
}), b = I(() => {
|
|
40
|
-
const m = (a.templates ?? []).filter(
|
|
41
|
-
() => !0
|
|
42
|
-
//t.intention && t.intention.length > 0
|
|
43
|
-
);
|
|
44
|
-
return o.campaignType ? m.filter(
|
|
45
|
-
(n) => {
|
|
46
|
-
var y, f;
|
|
47
|
-
return ((f = (y = n.defaultValue) == null ? void 0 : y.campaign) == null ? void 0 : f.type) === o.campaignType;
|
|
48
|
-
}
|
|
49
|
-
) : t.value.intention === null ? G.sampleSize(m, 7) : m.filter(
|
|
50
|
-
(n) => n.intention.includes(t.value.intention)
|
|
51
|
-
);
|
|
52
|
-
});
|
|
53
|
-
j(async () => {
|
|
54
|
-
await a.readTemplates();
|
|
55
|
-
});
|
|
56
|
-
function O() {
|
|
57
|
-
o.onOk(void 0), p.close();
|
|
58
|
-
}
|
|
59
|
-
function $() {
|
|
60
|
-
const m = t.value.template;
|
|
61
|
-
o.onOk(a.templates.find((n) => n._id === m)), p.close();
|
|
62
|
-
}
|
|
63
|
-
return (m, n) => {
|
|
64
|
-
const y = c("FmChip"), f = c("FmListItem"), z = c("FmList"), k = c("FmCard"), v = c("FmButton"), B = c("FmSpacer");
|
|
65
|
-
return r(), C(k, { class: "h-[534px] max-w-6xl" }, {
|
|
66
|
-
default: d(() => [
|
|
67
|
-
l("div", Q, [
|
|
68
|
-
o.campaignType ? M("", !0) : (r(), w("div", R, [
|
|
69
|
-
i(z, null, {
|
|
70
|
-
default: d(() => [
|
|
71
|
-
i(f, {
|
|
72
|
-
class: h([{
|
|
73
|
-
"bg-fm-color-system-warning-100": e(t).intention === null
|
|
74
|
-
}, "rounded-sm"]),
|
|
75
|
-
onClick: n[0] || (n[0] = (s) => {
|
|
76
|
-
e(t).intention = null, e(t).template = null;
|
|
77
|
-
})
|
|
78
|
-
}, {
|
|
79
|
-
append: d(() => [
|
|
80
|
-
i(y, {
|
|
81
|
-
label: "Hot",
|
|
82
|
-
variant: "critical"
|
|
83
|
-
})
|
|
84
|
-
]),
|
|
85
|
-
default: d(() => [
|
|
86
|
-
n[2] || (n[2] = T(" Most popular ", -1))
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
}, 8, ["class"]),
|
|
90
|
-
(r(!0), w(S, null, N(e(J).options, (s, x) => (r(), C(f, {
|
|
91
|
-
key: x,
|
|
92
|
-
class: h(["rounded-sm", {
|
|
93
|
-
"bg-fm-color-system-warning-100": e(t).intention === s
|
|
94
|
-
}]),
|
|
95
|
-
style: { padding: "8px 16px" },
|
|
96
|
-
onClick: (_) => {
|
|
97
|
-
e(t).intention = s, e(t).template = null;
|
|
98
|
-
}
|
|
99
|
-
}, {
|
|
100
|
-
default: d(() => [
|
|
101
|
-
T(g(e(V)(s)), 1)
|
|
102
|
-
]),
|
|
103
|
-
_: 2
|
|
104
|
-
}, 1032, ["class", "onClick"]))), 128))
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
})
|
|
108
|
-
])),
|
|
109
|
-
l("div", W, [
|
|
110
|
-
l("div", X, [
|
|
111
|
-
l("div", Y, g(o.campaignType ? e(V)(
|
|
112
|
-
`${e(A).formattedType(o.campaignType)} campaign`
|
|
113
|
-
) : "Template list"), 1),
|
|
114
|
-
n[3] || (n[3] = l("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Get started faster with templates that flex with your business. ", -1))
|
|
115
|
-
]),
|
|
116
|
-
l("div", Z, [
|
|
117
|
-
i(U, { json: e(b) }, null, 8, ["json"]),
|
|
118
|
-
l("div", ee, [
|
|
119
|
-
(r(!0), w(S, null, N(e(b), (s, x) => (r(), C(k, {
|
|
120
|
-
key: x,
|
|
121
|
-
variant: "outlined",
|
|
122
|
-
class: h(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
|
|
123
|
-
"bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(t).template === s._id.toString()
|
|
124
|
-
}]),
|
|
125
|
-
onClick: (_) => e(t).template = s._id.toString()
|
|
126
|
-
}, {
|
|
127
|
-
default: d(() => {
|
|
128
|
-
var _, F;
|
|
129
|
-
return [
|
|
130
|
-
l("div", te, [
|
|
131
|
-
i(K, {
|
|
132
|
-
type: (F = (_ = s.defaultValue) == null ? void 0 : _.campaign) == null ? void 0 : F.type
|
|
133
|
-
}, null, 8, ["type"])
|
|
134
|
-
]),
|
|
135
|
-
l("div", ne, g(s.name), 1),
|
|
136
|
-
l("p", oe, g(s.description), 1)
|
|
137
|
-
];
|
|
138
|
-
}),
|
|
139
|
-
_: 2
|
|
140
|
-
}, 1032, ["class", "onClick"]))), 128))
|
|
141
|
-
])
|
|
142
|
-
]),
|
|
143
|
-
l("div", se, [
|
|
144
|
-
i(v, {
|
|
145
|
-
class: "sm:w-full xs:w-full",
|
|
146
|
-
variant: "plain",
|
|
147
|
-
label: "Custom Campaign",
|
|
148
|
-
size: "md",
|
|
149
|
-
onClick: O
|
|
150
|
-
}),
|
|
151
|
-
i(B, { class: "sm:hidden xs:hidden" }),
|
|
152
|
-
i(v, {
|
|
153
|
-
class: "sm:w-full xs:w-full",
|
|
154
|
-
variant: "tertiary",
|
|
155
|
-
label: "Cancel",
|
|
156
|
-
size: "md",
|
|
157
|
-
onClick: n[1] || (n[1] = (s) => e(p).close())
|
|
158
|
-
}),
|
|
159
|
-
i(v, {
|
|
160
|
-
class: "sm:w-full xs:w-full",
|
|
161
|
-
variant: "primary",
|
|
162
|
-
label: "Start",
|
|
163
|
-
size: "md",
|
|
164
|
-
disabled: !e(t).template,
|
|
165
|
-
onClick: $
|
|
166
|
-
}, null, 8, ["disabled"])
|
|
167
|
-
])
|
|
168
|
-
])
|
|
169
|
-
])
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
});
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
}), ye = (u, p) => ({
|
|
176
|
-
open: async (a) => {
|
|
177
|
-
p.open({
|
|
178
|
-
title: "",
|
|
179
|
-
dialogComponent: le,
|
|
180
|
-
dialogComponentProps: {
|
|
181
|
-
campaignType: u,
|
|
182
|
-
onOk: async (o) => (console.debug(o, "selected template"), await a(o))
|
|
183
|
-
},
|
|
184
|
-
overlay: !0
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
export {
|
|
189
|
-
ye as u
|
|
190
|
-
};
|