@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,259 @@
|
|
|
1
|
+
import { defineComponent as U, ref as g, watch as O, onMounted as I, resolveComponent as m, openBlock as b, createBlock as j, withCtx as P, createTextVNode as z, toDisplayString as $, createElementVNode as c, createVNode as o, unref as e, createElementBlock as F, createCommentVNode as W, normalizeClass as G, computed as L, Fragment as q, isRef as J } from "vue";
|
|
2
|
+
import { u as H } from "./vue-i18n-CxMxiW_u.js";
|
|
3
|
+
import "./index-ICbXrXiP.js";
|
|
4
|
+
import { useRouter as K } from "vue-router";
|
|
5
|
+
import { u as Q } from "./loading-CDbkBsRr.js";
|
|
6
|
+
import { f as V, p as X } from "./plugins-DKNh-lBz.js";
|
|
7
|
+
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CUFw56sf.js";
|
|
8
|
+
import { useDialog as ee, useSnackbar as ne, FmButtonVariant as p } from "@feedmepos/ui-library";
|
|
9
|
+
import { r as N } from "./index-g9NNHS8s.js";
|
|
10
|
+
import { u as ae } from "./reward-C2jv5dmJ.js";
|
|
11
|
+
import { u as oe } from "./business-D5AQBRGS.js";
|
|
12
|
+
import { u as te } from "./membership-B8uwuntJ.js";
|
|
13
|
+
import { R as S } from "./app-q6W6-faT.js";
|
|
14
|
+
const re = { class: "space-y-24" }, le = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: /* @__PURE__ */ G([
|
|
17
|
+
"p-16 pl-24 space-x-8",
|
|
18
|
+
"bg-fm-color-primary-oats rounded-lg",
|
|
19
|
+
"flex items-center",
|
|
20
|
+
"justify-between"
|
|
21
|
+
])
|
|
22
|
+
}, ie = { key: 1 }, se = {
|
|
23
|
+
key: 2,
|
|
24
|
+
class: /* @__PURE__ */ G([
|
|
25
|
+
"flex items-center",
|
|
26
|
+
"border border-fm-color-neutral-gray-300",
|
|
27
|
+
"p-16 space-x-16 rounded-md"
|
|
28
|
+
])
|
|
29
|
+
}, ce = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, me = { class: "flex justify-end space-x-8 w-full" }, de = /* @__PURE__ */ U({
|
|
30
|
+
__name: "TermAndConditionDialog",
|
|
31
|
+
props: {
|
|
32
|
+
modelValue: { type: Boolean }
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:modelValue"],
|
|
35
|
+
setup(B, { emit: k }) {
|
|
36
|
+
const y = B;
|
|
37
|
+
ee();
|
|
38
|
+
const s = ne(), { t } = H(), i = Y(), { minor: _ } = Q, d = g(!1), T = k, r = g(null), w = g(null);
|
|
39
|
+
async function h() {
|
|
40
|
+
if (!r.value) {
|
|
41
|
+
s.open({
|
|
42
|
+
type: "error",
|
|
43
|
+
title: "Please upload a file"
|
|
44
|
+
});
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
_(
|
|
48
|
+
async () => {
|
|
49
|
+
d.value = !0;
|
|
50
|
+
const n = await V.update(
|
|
51
|
+
V.referralTermAndConditionPath(),
|
|
52
|
+
r.value
|
|
53
|
+
), a = i.referralProgram;
|
|
54
|
+
a.term_and_condition = n, await N.update(a), d.value = !1, v();
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
successMessage: "Term and Condition uploaded successfully"
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
async function x() {
|
|
62
|
+
await X.confirm(
|
|
63
|
+
t("connect.referral.term_and_condition.confirm_remove"),
|
|
64
|
+
t("connect.common.confirm"),
|
|
65
|
+
t("connect.common.confirm"),
|
|
66
|
+
t("connect.common.cancel")
|
|
67
|
+
) && _(
|
|
68
|
+
async () => {
|
|
69
|
+
d.value = !0, await V.delete(
|
|
70
|
+
V.referralTermAndConditionPath()
|
|
71
|
+
);
|
|
72
|
+
const a = i.referralProgram;
|
|
73
|
+
a.term_and_condition = void 0, await N.update(a), d.value = !1, v();
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
successMessage: "Term and Condition removed successfully"
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function v() {
|
|
81
|
+
r.value = null, T("update:modelValue", !1);
|
|
82
|
+
}
|
|
83
|
+
function l() {
|
|
84
|
+
var n;
|
|
85
|
+
window.open((n = i.referralProgram) == null ? void 0 : n.term_and_condition, "_blank");
|
|
86
|
+
}
|
|
87
|
+
return O(
|
|
88
|
+
() => y.modelValue,
|
|
89
|
+
(n) => {
|
|
90
|
+
r.value = null;
|
|
91
|
+
}
|
|
92
|
+
), I(() => {
|
|
93
|
+
}), (n, a) => {
|
|
94
|
+
const R = m("FmButton"), E = m("FmDropField"), u = m("fm-button"), A = m("fm-dialog");
|
|
95
|
+
return b(), j(A, {
|
|
96
|
+
"model-value": n.modelValue,
|
|
97
|
+
"onUpdate:modelValue": a[3] || (a[3] = (C) => n.$emit("update:modelValue", C)),
|
|
98
|
+
"dismiss-away": ""
|
|
99
|
+
}, {
|
|
100
|
+
"dialog-header": P(() => [
|
|
101
|
+
z($(n.$t("connect.referral.actions.terms")), 1)
|
|
102
|
+
]),
|
|
103
|
+
"dialog-footer": P(() => [
|
|
104
|
+
c("div", me, [
|
|
105
|
+
o(u, {
|
|
106
|
+
variant: e(p).Tertiary,
|
|
107
|
+
label: e(t)("connect.common.cancel"),
|
|
108
|
+
onClick: v
|
|
109
|
+
}, null, 8, ["variant", "label"]),
|
|
110
|
+
o(u, {
|
|
111
|
+
variant: e(p).Primary,
|
|
112
|
+
class: "ml-auto mr-8",
|
|
113
|
+
label: e(t)("connect.common.save"),
|
|
114
|
+
loading: e(d),
|
|
115
|
+
onClick: h
|
|
116
|
+
}, null, 8, ["variant", "label", "loading"])
|
|
117
|
+
])
|
|
118
|
+
]),
|
|
119
|
+
default: P(() => {
|
|
120
|
+
var C;
|
|
121
|
+
return [
|
|
122
|
+
c("div", re, [
|
|
123
|
+
(C = e(i).referralProgram) != null && C.term_and_condition ? (b(), F("div", le, [
|
|
124
|
+
o(R, {
|
|
125
|
+
label: e(t)("View uploaded file"),
|
|
126
|
+
variant: e(p).Plain,
|
|
127
|
+
icon: "file_present",
|
|
128
|
+
onClick: l
|
|
129
|
+
}, null, 8, ["label", "variant"]),
|
|
130
|
+
o(R, {
|
|
131
|
+
variant: e(p).Plain,
|
|
132
|
+
icon: "delete",
|
|
133
|
+
onClick: x
|
|
134
|
+
}, null, 8, ["variant"])
|
|
135
|
+
])) : W("", !0),
|
|
136
|
+
e(r) ? (b(), F("div", se, [
|
|
137
|
+
o(u, {
|
|
138
|
+
variant: e(p).Tertiary,
|
|
139
|
+
"prepend-icon": "attach_file"
|
|
140
|
+
}, null, 8, ["variant"]),
|
|
141
|
+
c("p", ce, $(e(r).name), 1),
|
|
142
|
+
c("label", {
|
|
143
|
+
ref_key: "fileLabelRef",
|
|
144
|
+
ref: w,
|
|
145
|
+
htmlFor: "file"
|
|
146
|
+
}, [
|
|
147
|
+
o(u, {
|
|
148
|
+
variant: e(p).Plain,
|
|
149
|
+
label: e(t)("Replace File"),
|
|
150
|
+
onClick: a[1] || (a[1] = () => {
|
|
151
|
+
var f;
|
|
152
|
+
return (f = e(w)) == null ? void 0 : f.click();
|
|
153
|
+
})
|
|
154
|
+
}, null, 8, ["variant", "label"]),
|
|
155
|
+
c("input", {
|
|
156
|
+
id: "file",
|
|
157
|
+
accept: ".pdf",
|
|
158
|
+
class: "hidden",
|
|
159
|
+
type: "file",
|
|
160
|
+
onChange: a[2] || (a[2] = (f) => {
|
|
161
|
+
var D, M;
|
|
162
|
+
return r.value = ((M = (D = f.target) == null ? void 0 : D.files) == null ? void 0 : M[0]) ?? null;
|
|
163
|
+
})
|
|
164
|
+
}, null, 32)
|
|
165
|
+
], 512)
|
|
166
|
+
])) : (b(), F("div", ie, [
|
|
167
|
+
o(E, {
|
|
168
|
+
onFileUpload: a[0] || (a[0] = (f) => r.value = f),
|
|
169
|
+
accept: ".pdf",
|
|
170
|
+
"max-file-size": 8e6
|
|
171
|
+
})
|
|
172
|
+
]))
|
|
173
|
+
])
|
|
174
|
+
];
|
|
175
|
+
}),
|
|
176
|
+
_: 1
|
|
177
|
+
}, 8, ["model-value"]);
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
}), ue = { class: "flex items-center" }, fe = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, pe = { class: "px-24 flex flex-col gap-y-16 pb-24" }, he = /* @__PURE__ */ U({
|
|
181
|
+
__name: "Index",
|
|
182
|
+
setup(B) {
|
|
183
|
+
const k = ae(), y = g(null), { t: s } = H(), t = K(), i = g(!1), _ = oe(), d = te(), T = L(() => _.isPremium ? [
|
|
184
|
+
{
|
|
185
|
+
label: s("connect.referral.actions.terms"),
|
|
186
|
+
value: "term_and_condition"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
label: s("connect.referral.actions.manage_reward"),
|
|
190
|
+
value: "manage_reward"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
label: s("connect.referral.actions.add_referral_tier"),
|
|
194
|
+
value: "add_referral_tier",
|
|
195
|
+
prependIcon: "add",
|
|
196
|
+
isPrimary: !0
|
|
197
|
+
}
|
|
198
|
+
] : []), r = [
|
|
199
|
+
{
|
|
200
|
+
label: s("connect.referral.tabs.overview"),
|
|
201
|
+
value: S["$connect-REFERRAL_OVERVIEW"],
|
|
202
|
+
actions: []
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
label: s("connect.referral.tabs.record"),
|
|
206
|
+
value: S["$connect-REFERRAL_RECORD"],
|
|
207
|
+
actions: []
|
|
208
|
+
}
|
|
209
|
+
], w = L(() => r.find((l) => l.value === t.currentRoute.value.name) ?? r[0]);
|
|
210
|
+
async function h(l) {
|
|
211
|
+
await t.push({ name: l });
|
|
212
|
+
}
|
|
213
|
+
async function x(l) {
|
|
214
|
+
var n;
|
|
215
|
+
l === "add_referral_tier" && ((n = y.value) == null || n.onManageRewardGroup(-1)), l === "manage_reward" && await t.push({ name: S["$connect-REWARD_TEMPLATE"] }), l === "term_and_condition" && v();
|
|
216
|
+
}
|
|
217
|
+
async function v() {
|
|
218
|
+
i.value = !0;
|
|
219
|
+
}
|
|
220
|
+
return I(async () => {
|
|
221
|
+
await k.readRewards(), await _.readPremium(), await d.readSegments();
|
|
222
|
+
}), (l, n) => {
|
|
223
|
+
const a = m("FmPill"), R = m("FmPageHead"), E = m("FmTabs"), u = m("RouterView");
|
|
224
|
+
return b(), F(q, null, [
|
|
225
|
+
o(R, {
|
|
226
|
+
actions: e(T),
|
|
227
|
+
"onClick:action": x
|
|
228
|
+
}, {
|
|
229
|
+
title: P(() => [
|
|
230
|
+
c("div", ue, [
|
|
231
|
+
c("span", fe, $(e(s)("connect.referral.title")), 1),
|
|
232
|
+
o(a, { variant: "premium" })
|
|
233
|
+
])
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
}, 8, ["actions"]),
|
|
237
|
+
c("div", pe, [
|
|
238
|
+
o(E, {
|
|
239
|
+
"model-value": e(w).value,
|
|
240
|
+
items: r,
|
|
241
|
+
"onUpdate:modelValue": h
|
|
242
|
+
}, null, 8, ["model-value"]),
|
|
243
|
+
o(u)
|
|
244
|
+
]),
|
|
245
|
+
o(de, {
|
|
246
|
+
modelValue: e(i),
|
|
247
|
+
"onUpdate:modelValue": n[0] || (n[0] = (A) => J(i) ? i.value = A : null)
|
|
248
|
+
}, null, 8, ["modelValue"]),
|
|
249
|
+
o(Z, {
|
|
250
|
+
ref_key: "rewardGroupRef",
|
|
251
|
+
ref: y
|
|
252
|
+
}, null, 512)
|
|
253
|
+
], 64);
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
export {
|
|
258
|
+
he as default
|
|
259
|
+
};
|