@feedmepos/mf-connect 0.1.0-beta.5 → 0.1.0-beta.50
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-D-yp03jJ.js +427 -0
- package/dist/{App-C8Qfnkhz.js → App-CeQWTGNK.js} +441 -420
- package/dist/AuditLogs-2qzwcMXR.js +1885 -0
- package/dist/Bin-D1b2NbbA.js +191 -0
- package/dist/{Broadcast-BK-1MQkL.js → Broadcast-bKF9mIns.js} +13 -12
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BLzpFQoc.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B_q5K-cx.js} +6 -8
- package/dist/Card-BCAyfBLi.js +896 -0
- package/dist/{Collections-TA4iW1r0.js → Collections-Yz3F55bv.js} +27 -31
- package/dist/{Credit-Df9iFQjZ.js → Credit-Ceptt_g_.js} +17 -16
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-CLFeMi0j.js +169 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-TjNinQ8e.js +2181 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BCRVyPwl.js → EffectSheet.vue_vue_type_style_index_0_lang-D3Bt-Vuu.js} +6 -6
- package/dist/{Experience-ByLFXKn6.js → Experience-DskHKzfo.js} +26 -25
- package/dist/{Game-B6Ez0pfW.js → Game-IJ6X0AXM.js} +21 -20
- package/dist/Index-CEl2y9X6.js +259 -0
- package/dist/Marketing-CWekLb4c.js +20071 -0
- package/dist/{Member-TobP1ISp.js → Member-BUZPQ5Lb.js} +4 -4
- package/dist/MemberList-BmVNqvbm.js +1598 -0
- package/dist/MemberTransactions-B3XhEOK_.js +45 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CZ-w6iZi.js → MessageInput.vue_vue_type_script_setup_true_lang-C6YIbQtM.js} +6 -6
- package/dist/{Mission-D9uTVo0G.js → Mission-Ci9ed_ph.js} +97 -84
- package/dist/Overview-CU9uhC-k.js +1078 -0
- package/dist/{Point-4rDr-53e.js → Point-wuuR7AEb.js} +26 -25
- package/dist/{Promotion-BKO_dtQk.js → Promotion-BMi3kyE8.js} +55 -48
- package/dist/Record-Wmh-g8WY.js +340 -0
- package/dist/Reward-BL4lxhIB.js +442 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CqXuTxun.js +150 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Dbik0PEw.js +1637 -0
- package/dist/Segment-DObdjyYi.js +568 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BAuM6qP5.js +181 -0
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-BfyRVxWM.js +147 -0
- package/dist/{Setting-B7oISD0D.js → Setting-Dqgnd7TR.js} +610 -586
- package/dist/Store--Z4So__g.js +1744 -0
- package/dist/{StoreRewards-AMxIYhjZ.js → StoreRewards-DPFVXWwm.js} +33 -32
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CNsdA106.js +939 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B2szciPk.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CGOmGozY.js} +1 -1
- package/dist/{Tier-DkxdNj-K.js → Tier-36IfhsnP.js} +327 -318
- package/dist/{Title-VFpCOsMO.js → Title-XH56OOug.js} +199 -184
- package/dist/{Transaction-BgKD8n2L.js → Transaction-BUQcSmBs.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-BVCfeG5T.js +130 -0
- package/dist/Voucher-CvmH0kcF.js +353 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BQOD6uEf.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B2FGvyza.js → ZodTextField.vue_vue_type_script_setup_true_lang-CcIcCt4N.js} +1 -1
- package/dist/{app-DUl5dav5.js → app-DeW5_DB0.js} +1754 -1496
- package/dist/{app-DA-t-2Zt.js → app-TN8KEPMu.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-CeCitOY4.js → business-D1mLhSME.js} +1 -1
- package/dist/campaign-0tnkhu78.js +1810 -0
- package/dist/{campaign-CcLM6e4s.js → campaign-B-12Im0w.js} +2 -2
- package/dist/campaign.enum-C8m-HHZE.js +20 -0
- package/dist/campaign.fn-CxkhbK9i.js +758 -0
- package/dist/collectible.enum-6Syq-vQ6.js +19 -0
- package/dist/{collection.fn-CAEP7YxB.js → collection.fn-BUj75Jp2.js} +2 -2
- package/dist/dto-8wODhIIC.js +214 -0
- package/dist/{effect-Dt7rXOBy.js → effect-BEZEjcJu.js} +9 -9
- package/dist/email-addresses-PwjkdYYD.js +705 -0
- package/dist/{export-CyioiboQ.js → export-BB-0vgwy.js} +5 -5
- package/dist/{helper-FA_9AhGV.js → helper-DOt8-wns.js} +1 -1
- package/dist/{index-DLN4Kzz_.js → index-B1qUjniH.js} +1 -1
- package/dist/index-BTMIZz4v.js +44 -0
- package/dist/{index-igxrd5jC.js → index-By-GlmG7.js} +1500 -1479
- package/dist/index-C7zBkoZ4.js +115 -0
- package/dist/{index-CyNdsVrw.js → index-CNlHabtk.js} +1 -1
- package/dist/{index-DbbO3wip.js → index-CXGiIgdK.js} +48 -4
- package/dist/{index-C20XBD7G.js → index-Cjn1LVjC.js} +2192 -931
- package/dist/index-CpfUrdgw.js +29000 -0
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/index-DZuEmMyY.js +54 -0
- package/dist/{index-CCdXvb92.js → index-D_zwqIhq.js} +1 -1
- package/dist/index-DabUEw_c.js +32 -0
- package/dist/{index-BiFueJiF.js → index-X-FfC49l.js} +258 -192
- package/dist/index-vh86FiIQ.js +10 -0
- package/dist/{index.esm2017-Dl_CdTcK.js → index.esm2017-DJOUiVjR.js} +33 -33
- package/dist/loading-aCWVsOPY.js +71 -0
- package/dist/{membership-DFiY8aVd.js → membership-1etsHC5G.js} +54 -46
- package/dist/money-DzWRURZ5.js +15 -0
- package/dist/number-BxIQO1i3.js +12 -0
- package/dist/objectid-DjhmYkn-.js +145 -0
- package/dist/{loading-CZ0fiViM.js → plugins-CSPFAU50.js} +2990 -3062
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-Bh4Li9f0.js +36 -0
- package/dist/{rule-C3e1xTqN.js → rule-CHTTTUFB.js} +180 -177
- package/dist/{rule-builder-MEVb_AiZ.js → rule-builder-OHfUJTIA.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-C2OKWd_e.js → template-ZGxXqkaC.js} +5 -5
- package/dist/trigger-Ogu5FDs0.js +144 -0
- package/dist/user-DBuU81tO.js +54 -0
- package/dist/{vue-i18n-CjxDUnX6.js → vue-i18n-CKpKQ6iE.js} +216 -216
- package/dist/{xlsx-CtXdl3ls.js → xlsx-DJDZBIeg.js} +1 -1
- package/package.json +9 -7
- package/dist/Analytic-C_ZFR5jh.js +0 -622
- package/dist/Card-C7dUFJKe.js +0 -825
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bgl90veU.js +0 -2813
- package/dist/Marketing-BaqZUeVI.js +0 -316
- package/dist/MemberList-B9cutmEh.js +0 -1733
- package/dist/MemberTransactions-DRHA7AOF.js +0 -38
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BHCoDSTg.js +0 -1753
- package/dist/Segment-Dj8nc3AE.js +0 -437
- package/dist/Store-CJ3wcohQ.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-wXUTfQQF.js +0 -890
- package/dist/Voucher-BbTLt8Pt.js +0 -490
- package/dist/dto-CRJma6eX.js +0 -2770
- package/dist/index-B1e0LtDe.js +0 -99
- package/dist/index-Be2ZYDy_.js +0 -298
- package/dist/index-CDkITvze.js +0 -762
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-DPP5F3bT.js +0 -206
- package/dist/index-Dbo3DDwp.js +0 -29193
- package/dist/money-D8hUEfP4.js +0 -15
- package/dist/number-DL3GAeVt.js +0 -12
- package/dist/user-Bm4KttFq.js +0 -37
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as P, ref as R, onMounted as Q, computed as H, resolveComponent as y, openBlock as s, createElementBlock as x, renderSlot as W, toDisplayString as A, createCommentVNode as v, createBlock as f, unref as e, isRef as q, createVNode as b, normalizeClass as G, watch as X, withCtx as F, resolveDynamicComponent as D, Fragment as _, createElementVNode as h, createTextVNode as ee } from "vue";
|
|
2
|
-
import { z as te } from "./app-
|
|
2
|
+
import { z as te } from "./app-DeW5_DB0.js";
|
|
3
3
|
import { Z as u } from "./zod-Bg2FbC-D.js";
|
|
4
|
-
import {
|
|
5
|
-
import { u as Z } from "./vue-i18n-
|
|
6
|
-
import { s as O } from "./effect-
|
|
7
|
-
import { p as ae } from "./
|
|
8
|
-
import { I as ne } from "./app-
|
|
4
|
+
import { f as le, g as oe } from "./index-By-GlmG7.js";
|
|
5
|
+
import { u as Z } from "./vue-i18n-CKpKQ6iE.js";
|
|
6
|
+
import { s as O } from "./effect-BEZEjcJu.js";
|
|
7
|
+
import { p as ae } from "./plugins-CSPFAU50.js";
|
|
8
|
+
import { I as ne } from "./app-TN8KEPMu.js";
|
|
9
9
|
const ie = { class: "flex flex-col gap-8" }, se = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as
|
|
1
|
+
import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as c, openBlock as m, createElementBlock as _, Fragment as x, createVNode as i, unref as t, createElementVNode as n, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as M, toDisplayString as p, h as H } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as z, components as G } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { p as J } from "./plugins-CSPFAU50.js";
|
|
5
|
+
import { u as Q } from "./loading-aCWVsOPY.js";
|
|
6
|
+
import { u as W } from "./business-D1mLhSME.js";
|
|
7
|
+
import { u as X } from "./campaign-B-12Im0w.js";
|
|
8
|
+
import { g as L, a as V } from "./campaign-0tnkhu78.js";
|
|
9
|
+
import { u as Y } from "./vue-i18n-CKpKQ6iE.js";
|
|
9
10
|
import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as te } from "./template-
|
|
12
|
-
import { c as g } from "./index-
|
|
13
|
-
const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, ne = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" },
|
|
11
|
+
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-TjNinQ8e.js";
|
|
12
|
+
import { u as te } from "./template-ZGxXqkaC.js";
|
|
13
|
+
import { c as g } from "./index-C7zBkoZ4.js";
|
|
14
|
+
const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, ne = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { class: "space-y-4" }, le = { class: "fm-typo-en-body-lg-600" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "flex flex-col gap-16 text-center" }, ue = { class: "fm-typo-en-title-sm-800" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ie = /* @__PURE__ */ D({
|
|
14
15
|
__name: "Experience",
|
|
15
16
|
setup(ye) {
|
|
16
17
|
const { t: s } = Y(), I = {
|
|
@@ -20,7 +21,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
20
21
|
value: "create",
|
|
21
22
|
isPrimary: !0,
|
|
22
23
|
prependIcon: "add"
|
|
23
|
-
}, P = te("POINT", z()), B = W(), l = X(), { global: T, minor: v } =
|
|
24
|
+
}, P = te("POINT", z()), B = W(), l = X(), { global: T, minor: v } = Q, r = S({
|
|
24
25
|
searchKey: "",
|
|
25
26
|
location: null
|
|
26
27
|
}), f = E(
|
|
@@ -58,7 +59,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
58
59
|
}
|
|
59
60
|
], b = S();
|
|
60
61
|
async function C(e) {
|
|
61
|
-
await
|
|
62
|
+
await J.remove(`Are you sure you want to remove ${e.name}?`) && await v(
|
|
62
63
|
async () => {
|
|
63
64
|
await g.delete(e._id), await l.read("POINT");
|
|
64
65
|
},
|
|
@@ -103,15 +104,15 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
103
104
|
await l.read("POINT");
|
|
104
105
|
});
|
|
105
106
|
}), (e, o) => {
|
|
106
|
-
const d =
|
|
107
|
+
const d = c("FmPageHead"), u = c("FmSearch"), R = c("FmTable"), F = c("FmButton"), $ = c("FmListItem"), O = c("FmList"), A = c("FmCard");
|
|
107
108
|
return m(), _(x, null, [
|
|
108
|
-
|
|
109
|
+
i(d, {
|
|
109
110
|
title: t(s)("connect.program.experience.title"),
|
|
110
111
|
actions: t(f).length > 0 ? [I] : [],
|
|
111
112
|
"onClick:action": o[0] || (o[0] = () => y())
|
|
112
113
|
}, null, 8, ["title", "actions"]),
|
|
113
114
|
n("div", oe, [
|
|
114
|
-
|
|
115
|
+
i(u, {
|
|
115
116
|
modelValue: t(r).searchKey,
|
|
116
117
|
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(r).searchKey = a),
|
|
117
118
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
@@ -121,7 +122,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
121
122
|
t(l).campaigns.experience && t(l).campaigns.experience.length > 0 ? (m(), _(x, { key: 0 }, [
|
|
122
123
|
n("div", ae, [
|
|
123
124
|
n("div", ne, [
|
|
124
|
-
|
|
125
|
+
i(Z, {
|
|
125
126
|
modelValue: t(r).location,
|
|
126
127
|
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(r).location = a),
|
|
127
128
|
label: "Location: ",
|
|
@@ -131,7 +132,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
131
132
|
items: t(B).locationItems
|
|
132
133
|
}, null, 8, ["modelValue", "items"])
|
|
133
134
|
]),
|
|
134
|
-
|
|
135
|
+
i(u, {
|
|
135
136
|
modelValue: t(r).searchKey,
|
|
136
137
|
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(r).searchKey = a),
|
|
137
138
|
class: "xs:hidden",
|
|
@@ -139,7 +140,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
139
140
|
collapsible: ""
|
|
140
141
|
}, null, 8, ["modelValue"])
|
|
141
142
|
]),
|
|
142
|
-
|
|
143
|
+
i(R, {
|
|
143
144
|
class: "xs:hidden",
|
|
144
145
|
"row-data": t(f),
|
|
145
146
|
"column-defs": K,
|
|
@@ -148,7 +149,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
148
149
|
onRowClick: o[4] || (o[4] = (a) => y(a.original)),
|
|
149
150
|
"hide-footer": t(f).length < 10
|
|
150
151
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
151
|
-
|
|
152
|
+
i(O, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
152
153
|
default: h(() => [
|
|
153
154
|
(m(!0), _(x, null, j(t(f).filter(
|
|
154
155
|
(a) => a.name.toLowerCase().includes(t(r).searchKey.toLowerCase())
|
|
@@ -161,9 +162,9 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
161
162
|
n("div", se, [
|
|
162
163
|
n("div", re, [
|
|
163
164
|
(m(), w(M(t(L)(a)))),
|
|
164
|
-
n("div",
|
|
165
|
+
n("div", ie, p(a.currentReceive ?? 0) + " used ", 1)
|
|
165
166
|
]),
|
|
166
|
-
n("div",
|
|
167
|
+
n("div", ce, [
|
|
167
168
|
n("div", le, p(a.name), 1),
|
|
168
169
|
n("div", me, p(t(V)(a)), 1)
|
|
169
170
|
]),
|
|
@@ -171,7 +172,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
171
172
|
count: a.currentReceive ?? 0
|
|
172
173
|
})), 1)
|
|
173
174
|
]),
|
|
174
|
-
|
|
175
|
+
i(F, {
|
|
175
176
|
icon: "delete",
|
|
176
177
|
"icon-color": "neutral-gray-400",
|
|
177
178
|
variant: "tertiary",
|
|
@@ -197,7 +198,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
197
198
|
n("div", ue, p(t(s)("connect.program.experience.empty_state.title")), 1),
|
|
198
199
|
n("div", fe, p(t(s)("connect.program.experience.empty_state.description")), 1)
|
|
199
200
|
]),
|
|
200
|
-
|
|
201
|
+
i(F, {
|
|
201
202
|
variant: "primary",
|
|
202
203
|
label: "Create experience program",
|
|
203
204
|
icon: "add",
|
|
@@ -206,7 +207,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
206
207
|
]),
|
|
207
208
|
_: 1
|
|
208
209
|
})),
|
|
209
|
-
|
|
210
|
+
i(ee, {
|
|
210
211
|
ref_key: "sheetRef",
|
|
211
212
|
ref: b,
|
|
212
213
|
"onSubmit:modelValue": N
|
|
@@ -217,5 +218,5 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
217
218
|
}
|
|
218
219
|
});
|
|
219
220
|
export {
|
|
220
|
-
|
|
221
|
+
Ie as default
|
|
221
222
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as D, ref as A, computed as H, onMounted as N, resolveComponent as r, openBlock as d, createElementBlock as x, Fragment as
|
|
1
|
+
import { defineComponent as D, ref as A, computed as H, onMounted as N, resolveComponent as r, openBlock as d, createElementBlock as x, Fragment as v, createVNode as i, unref as o, withCtx as h, createElementVNode as n, toDisplayString as l, renderList as q, createBlock as b, resolveDynamicComponent as z, h as p } from "vue";
|
|
2
2
|
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as O, components as C } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
4
|
+
import { a as Q, p as W } from "./plugins-CSPFAU50.js";
|
|
5
|
+
import { u as X } from "./loading-aCWVsOPY.js";
|
|
6
|
+
import { u as Y } from "./business-D1mLhSME.js";
|
|
7
|
+
import { u as Z } from "./campaign-B-12Im0w.js";
|
|
8
|
+
import { g as B, a as $ } from "./campaign-0tnkhu78.js";
|
|
8
9
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as oe } from "./template-
|
|
11
|
-
import { u as ae } from "./vue-i18n-
|
|
12
|
-
import { c as w } from "./index-
|
|
13
|
-
const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, 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" },
|
|
10
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-TjNinQ8e.js";
|
|
11
|
+
import { u as oe } from "./template-ZGxXqkaC.js";
|
|
12
|
+
import { u as ae } from "./vue-i18n-CKpKQ6iE.js";
|
|
13
|
+
import { c as w } from "./index-C7zBkoZ4.js";
|
|
14
|
+
const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, 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" }, Ee = /* @__PURE__ */ D({
|
|
14
15
|
__name: "Game",
|
|
15
16
|
setup(we) {
|
|
16
17
|
const { t: c } = ae(), E = {
|
|
@@ -20,7 +21,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
20
21
|
value: "create",
|
|
21
22
|
isPrimary: !0,
|
|
22
23
|
prependIcon: "add"
|
|
23
|
-
}, K = oe("GAME", O()), f = Y(), m = Z(), { global: M, minor: k } =
|
|
24
|
+
}, K = oe("GAME", O()), f = Y(), m = Z(), { global: M, minor: k } = X, s = A({
|
|
24
25
|
searchKey: "",
|
|
25
26
|
location: null
|
|
26
27
|
}), g = H(
|
|
@@ -40,7 +41,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
40
41
|
{
|
|
41
42
|
content: e.row.original._id,
|
|
42
43
|
onClick: (t) => {
|
|
43
|
-
t.stopPropagation(),
|
|
44
|
+
t.stopPropagation(), Q(e.row.original._id);
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
47
|
[
|
|
@@ -89,7 +90,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
89
90
|
}
|
|
90
91
|
], F = A();
|
|
91
92
|
async function S(e) {
|
|
92
|
-
await
|
|
93
|
+
await W.remove(`Are you sure you want to remove ${e.name}?`) && await k(
|
|
93
94
|
async () => {
|
|
94
95
|
await w.delete(e._id), await m.read("GAME");
|
|
95
96
|
},
|
|
@@ -130,7 +131,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
130
131
|
});
|
|
131
132
|
}), (e, t) => {
|
|
132
133
|
const u = r("FmPill"), _ = r("FmPageHead"), L = r("FmSearch"), I = r("FmTable"), P = r("FmButton"), T = r("FmListItem"), U = r("FmList"), j = r("FmCard");
|
|
133
|
-
return d(), x(
|
|
134
|
+
return d(), x(v, null, [
|
|
134
135
|
i(_, {
|
|
135
136
|
actions: o(g).length > 0 && o(f).isPremium ? [E] : [],
|
|
136
137
|
"onClick:action": t[0] || (t[0] = () => y())
|
|
@@ -151,7 +152,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
151
152
|
placeholder: "search",
|
|
152
153
|
collapsible: ""
|
|
153
154
|
}, null, 8, ["modelValue"]),
|
|
154
|
-
o(m).campaigns.token && o(m).campaigns.token.length > 0 ? (d(), x(
|
|
155
|
+
o(m).campaigns.token && o(m).campaigns.token.length > 0 ? (d(), x(v, { key: 0 }, [
|
|
155
156
|
n("div", re, [
|
|
156
157
|
n("div", le, [
|
|
157
158
|
i(ee, {
|
|
@@ -183,9 +184,9 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
183
184
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
184
185
|
i(U, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
185
186
|
default: h(() => [
|
|
186
|
-
(d(!0), x(
|
|
187
|
+
(d(!0), x(v, null, q(o(g).filter(
|
|
187
188
|
(a) => a.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
|
|
188
|
-
), (a) => (d(),
|
|
189
|
+
), (a) => (d(), b(T, {
|
|
189
190
|
key: a._id.toString(),
|
|
190
191
|
onClick: (V) => y(a),
|
|
191
192
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
@@ -193,7 +194,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
193
194
|
default: h(() => [
|
|
194
195
|
n("div", ce, [
|
|
195
196
|
n("div", me, [
|
|
196
|
-
(d(),
|
|
197
|
+
(d(), b(z(o(B)(a)))),
|
|
197
198
|
n("div", de, l(a.currentReceive ?? 0) + " used ", 1)
|
|
198
199
|
]),
|
|
199
200
|
n("div", pe, [
|
|
@@ -216,7 +217,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
216
217
|
]),
|
|
217
218
|
_: 1
|
|
218
219
|
})
|
|
219
|
-
], 64)) : (d(),
|
|
220
|
+
], 64)) : (d(), b(j, {
|
|
220
221
|
key: 1,
|
|
221
222
|
variant: "outlined",
|
|
222
223
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
@@ -251,5 +252,5 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
251
252
|
}
|
|
252
253
|
});
|
|
253
254
|
export {
|
|
254
|
-
|
|
255
|
+
Ee as default
|
|
255
256
|
};
|
|
@@ -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-CKpKQ6iE.js";
|
|
3
|
+
import "./index-CNlHabtk.js";
|
|
4
|
+
import { useRouter as K } from "vue-router";
|
|
5
|
+
import { u as Q } from "./loading-aCWVsOPY.js";
|
|
6
|
+
import { f as V, p as X } from "./plugins-CSPFAU50.js";
|
|
7
|
+
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CqXuTxun.js";
|
|
8
|
+
import { useDialog as ee, useSnackbar as ne, FmButtonVariant as p } from "@feedmepos/ui-library";
|
|
9
|
+
import { r as N } from "./index-DabUEw_c.js";
|
|
10
|
+
import { u as ae } from "./reward-Bh4Li9f0.js";
|
|
11
|
+
import { u as oe } from "./business-D1mLhSME.js";
|
|
12
|
+
import { u as te } from "./membership-1etsHC5G.js";
|
|
13
|
+
import { R as S } from "./app-DeW5_DB0.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
|
+
};
|