@feedmepos/mf-connect 0.1.0-beta.42 → 0.1.0-beta.43
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-D4CyKUaD.js → Analytic-CcNooL-g.js} +10 -10
- package/dist/{App-Cu4LXMPd.js → App-zM5JzMTA.js} +6 -6
- package/dist/{Broadcast-Ch0h4h_M.js → Broadcast-DfFQn90A.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ejsdSb6n.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CB9FJjRx.js} +6 -6
- package/dist/{Card-DTKA23ua.js → Card-DDlDoaU2.js} +14 -14
- package/dist/{Collections-avZr7_0f.js → Collections-II8LTxT_.js} +4 -4
- package/dist/{Credit-DTTvZPM1.js → Credit-BmCrxH_y.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-vklFmIsn.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D69JT2Pv.js} +50 -79
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BlaPDy92.js → EffectSheet.vue_vue_type_style_index_0_lang-B2XMOBM5.js} +6 -6
- package/dist/{Experience-DCa6TS0Q.js → Experience-B0Van8WY.js} +8 -8
- package/dist/{Game-BzCGDHtQ.js → Game-C6eyL9l3.js} +8 -8
- package/dist/{Index-r0qwconU.js → Index-LiIELbNK.js} +10 -10
- package/dist/{Marketing-Bo9ORV-U.js → Marketing-D99U72tf.js} +5 -5
- package/dist/{Member-B9Wx7mj-.js → Member-DxbBYc50.js} +4 -4
- package/dist/{MemberList-_zrfJtHx.js → MemberList-U2revmy2.js} +23 -23
- package/dist/{MemberTransactions-Dr3KpbPV.js → MemberTransactions-9CRf3tCM.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D4sApKiB.js → MessageInput.vue_vue_type_script_setup_true_lang-cD5FFR9P.js} +2 -2
- package/dist/{Mission-Dj4HDGzw.js → Mission-TGudgwV7.js} +8 -8
- package/dist/{Overview-BGunrEfp.js → Overview-B03G9nki.js} +263 -253
- package/dist/{Point-DN8wvLPf.js → Point-Cwqk838v.js} +8 -8
- package/dist/{Promotion-Cg1GXv5k.js → Promotion-COYNVAI3.js} +9 -9
- package/dist/{Record-CEkCHJv5.js → Record---BGIYbB.js} +6 -6
- package/dist/{Reward-C9lkdGz1.js → Reward-kwuaaCfG.js} +14 -14
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DhOM3_he.js → RewardGroup.vue_vue_type_script_setup_true_lang-CofAUniA.js} +10 -10
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BT11zrtr.js → RuleGroup.vue_vue_type_script_setup_true_lang-DLshXqMu.js} +12 -12
- package/dist/{Segment-ve4u49Es.js → Segment-BTG35sUt.js} +13 -13
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-W8GOxCe8.js → SelectItems.vue_vue_type_script_setup_true_lang-D3cAojfE.js} +2 -2
- package/dist/{Setting-DPKJ4_dA.js → Setting-DcS6mUOn.js} +9 -9
- package/dist/{Store-BM3tDUR7.js → Store-B8pXMGRZ.js} +17 -17
- package/dist/{StoreRewards-CUSKcJCb.js → StoreRewards-CJnZaJ3z.js} +12 -12
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bv84TRw7.js → StoreTransactions.vue_vue_type_script_setup_true_lang-ZMS-eAIK.js} +17 -17
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BaZt5eEY.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Bjq2VvOp.js} +1 -1
- package/dist/{Tier-BTihXYcH.js → Tier-DOu-QAjN.js} +18 -18
- package/dist/{Title-B9tTTFH5.js → Title-rDDxdZ4r.js} +18 -18
- package/dist/{Transaction-BENAWE73.js → Transaction-AWZQ7ZTe.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Urz6dfyq.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DGtwt2iL.js} +6 -6
- package/dist/{Voucher-BzJjo4fl.js → Voucher-B6KfuR0o.js} +11 -11
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-duHl9hIp.js → VoucherEditor.vue_vue_type_script_setup_true_lang-rvhbBeEe.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D5EZSfkp.js → ZodTextField.vue_vue_type_script_setup_true_lang-DKeylO9L.js} +1 -1
- package/dist/{app-CX_SQVUR.js → app-Cqw8hP5z.js} +1 -1
- package/dist/{app-qb2LBXOm.js → app-zNXPhbUz.js} +28 -28
- package/dist/app.js +1 -1
- package/dist/{business-Do5pRKw2.js → business-CznE6Svn.js} +1 -1
- package/dist/{campaign-iYtyzp9V.js → campaign-CUYac6Su.js} +2 -2
- package/dist/{campaign-Cvi5_asz.js → campaign-Dhr4jure.js} +9 -9
- package/dist/{campaign.enum-D2L8HJBq.js → campaign.enum-CIDeX5hI.js} +1 -1
- package/dist/{campaign.fn-Bnue2bVX.js → campaign.fn-du7oX48w.js} +135 -135
- package/dist/{collectible.enum-GDYQTbAW.js → collectible.enum-BvtHUpIg.js} +1 -1
- package/dist/{collection.fn-BQ_ZEiRJ.js → collection.fn-D0UfJ7nQ.js} +2 -2
- package/dist/{dto-BWPwB9bN.js → dto-B2xriA5R.js} +4 -4
- package/dist/{effect-hTkshcY5.js → effect-Dq0tyIyK.js} +1 -1
- package/dist/{email-addresses-eIVejjI0.js → email-addresses-BrQJLpUq.js} +1 -1
- package/dist/{export-Dp8G7E__.js → export-B05X7Phs.js} +3 -3
- package/dist/{helper-DnxUEmd_.js → helper-Dct_VSQa.js} +1 -1
- package/dist/{index-8pxD1kKV.js → index-7TPJV0gI.js} +3 -3
- package/dist/{index-B_u8s4Lf.js → index-AXhOH9d3.js} +1 -1
- package/dist/{index-Cp6SSFau.js → index-B0ypBnG-.js} +3 -3
- package/dist/{index-CZJLR-Ml.js → index-BCtdvht8.js} +1 -1
- package/dist/{index-CBAYvtxq.js → index-BESZjmTQ.js} +4 -4
- package/dist/{index-CyvoNwdF.js → index-BPGSpiqh.js} +6 -6
- package/dist/{index-CQihq9Bj.js → index-BWQJCRjy.js} +1 -1
- package/dist/{index-Cu-LW6MM.js → index-BpbCfX7D.js} +2 -2
- package/dist/{index-BlzPvIJ2.js → index-BrG4tQij.js} +1 -1
- package/dist/{index-CYPlMFQ2.js → index-D1xG5UeY.js} +1 -1
- package/dist/{index-Cuuhn6YS.js → index-Dej-1u7X.js} +1 -1
- package/dist/{index-BfwVSVMh.js → index-Dt72tLOr.js} +1 -1
- package/dist/{index.esm2017-DmI33Q2P.js → index.esm2017-BsrwN3O8.js} +1 -1
- package/dist/{loading-DKKULV_E.js → loading-DX2ksaO4.js} +4 -4
- package/dist/{membership-BXV1XXY4.js → membership-DIxJebgN.js} +3 -3
- package/dist/{money-CcCkF5IQ.js → money-DyJygY8g.js} +1 -1
- package/dist/{number-C6HhIacF.js → number-C1pLpt8a.js} +1 -1
- package/dist/{objectid-DJhAHBgC.js → objectid-BYuSHnQg.js} +7 -7
- package/dist/{reward-BvR9i8X2.js → reward-DHf6gXlt.js} +1 -1
- package/dist/{rule-DInlRpPw.js → rule-9BPyYlg8.js} +3 -3
- package/dist/{rule-builder-C42YRYbm.js → rule-builder-CClPEyAm.js} +1 -1
- package/dist/{template-aB-zHI0M.js → template-jm2WKKrb.js} +4 -4
- package/dist/{trigger-S-z5eyHz.js → trigger-B_qCtHOV.js} +51 -21
- package/dist/{usePagination-yoBBttw0.js → usePagination-BGl6s-Lb.js} +1 -1
- package/dist/{user-L0aUIwIm.js → user-CiCMNvu8.js} +1 -1
- package/dist/{vue-i18n-FdWz2LOJ.js → vue-i18n-B0cMT7bz.js} +288 -288
- package/package.json +1 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
-
import { c as
|
|
1
|
+
import { defineComponent as q, resolveComponent as _, openBlock as R, createElementBlock as B, Fragment as Y, createVNode as d, withCtx as V, createElementVNode as a, toDisplayString as O, unref as t, renderSlot as ve, ref as F, computed as G, watch as ie, createBlock as D, isRef as W, resolveDynamicComponent as ne, renderList as re, normalizeClass as de, createTextVNode as ce, createCommentVNode as z, h as te, onMounted as ge } from "vue";
|
|
2
|
+
import { _ as we } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { u as Z } from "./vue-i18n-B0cMT7bz.js";
|
|
4
|
+
import { c as _e, p as K, u as ue } from "./loading-DX2ksaO4.js";
|
|
5
5
|
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
6
6
|
import { Z as N } from "./zod-Bg2FbC-D.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as Q, _ as
|
|
9
|
-
import { u as
|
|
10
|
-
import { q as le, r as
|
|
11
|
-
import "./index-
|
|
12
|
-
import { a as be, b as xe } from "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import { C as
|
|
16
|
-
import { t as ee } from "./helper-
|
|
7
|
+
import { u as J } from "./app-wDQR6dpb.js";
|
|
8
|
+
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CofAUniA.js";
|
|
9
|
+
import { u as me } from "./reward-DHf6gXlt.js";
|
|
10
|
+
import { q as le, r as se } from "./index-BESZjmTQ.js";
|
|
11
|
+
import "./index-BpbCfX7D.js";
|
|
12
|
+
import { a as be, b as xe } from "./index-BPGSpiqh.js";
|
|
13
|
+
import "./index-BCtdvht8.js";
|
|
14
|
+
import "./index-B0ypBnG-.js";
|
|
15
|
+
import { C as fe } from "./membership-DIxJebgN.js";
|
|
16
|
+
import { t as ee } from "./helper-Dct_VSQa.js";
|
|
17
17
|
import { c as H } from "./object-qECH92oz.js";
|
|
18
18
|
import { useDialog as Re, components as oe } from "@feedmepos/ui-library";
|
|
19
|
-
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import {
|
|
21
|
-
import { O as
|
|
22
|
-
import { r as
|
|
23
|
-
import { u as
|
|
24
|
-
const
|
|
19
|
+
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DKeylO9L.js";
|
|
20
|
+
import { b as Se, _ as Fe, a as ke } from "./trigger-B_qCtHOV.js";
|
|
21
|
+
import { O as $e } from "./objectid-BYuSHnQg.js";
|
|
22
|
+
import { r as pe } from "./index-AXhOH9d3.js";
|
|
23
|
+
import { u as Pe } from "./business-CznE6Svn.js";
|
|
24
|
+
const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, De = { class: "flex-1 space-y-4" }, je = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
|
|
25
25
|
__name: "ReferralRewadGroupCard",
|
|
26
26
|
props: {
|
|
27
27
|
rewardGroup: {
|
|
@@ -37,23 +37,23 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
37
37
|
setup(k, { emit: m }) {
|
|
38
38
|
const { t: I } = Z(), p = m;
|
|
39
39
|
return (w, f) => {
|
|
40
|
-
const
|
|
41
|
-
return
|
|
40
|
+
const l = _("FmButton"), c = _("FmListItem");
|
|
41
|
+
return R(), B(Y, null, [
|
|
42
42
|
d(c, {
|
|
43
43
|
onClick: f[4] || (f[4] = (u) => p("edit", k.level)),
|
|
44
44
|
class: "!p-0"
|
|
45
45
|
}, {
|
|
46
46
|
default: V(() => [
|
|
47
|
-
a("div",
|
|
48
|
-
a("div",
|
|
49
|
-
a("div",
|
|
50
|
-
a("div",
|
|
51
|
-
a("div",
|
|
47
|
+
a("div", Ve, [
|
|
48
|
+
a("div", Ie, [
|
|
49
|
+
a("div", Te, [
|
|
50
|
+
a("div", Ue, [
|
|
51
|
+
a("div", Ae, O(k.rewardGroup.name), 1)
|
|
52
52
|
])
|
|
53
53
|
])
|
|
54
54
|
]),
|
|
55
|
-
a("div",
|
|
56
|
-
d(
|
|
55
|
+
a("div", Le, [
|
|
56
|
+
d(l, {
|
|
57
57
|
variant: "secondary",
|
|
58
58
|
label: t(I)("connect.referral.reward.add_count"),
|
|
59
59
|
icon: "add",
|
|
@@ -61,7 +61,7 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
61
61
|
u.stopPropagation(), p("addCount", k.level);
|
|
62
62
|
})
|
|
63
63
|
}, null, 8, ["label"]),
|
|
64
|
-
d(
|
|
64
|
+
d(l, {
|
|
65
65
|
icon: "delete",
|
|
66
66
|
onClick: f[1] || (f[1] = (u) => {
|
|
67
67
|
u.stopPropagation(), p("remove", k.level);
|
|
@@ -70,22 +70,22 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
70
70
|
})
|
|
71
71
|
])
|
|
72
72
|
]),
|
|
73
|
-
a("div",
|
|
73
|
+
a("div", Ee, [
|
|
74
74
|
a("div", Be, [
|
|
75
|
-
a("div",
|
|
76
|
-
a("div",
|
|
75
|
+
a("div", Oe, [
|
|
76
|
+
a("div", De, [
|
|
77
77
|
a("div", null, [
|
|
78
78
|
a("div", je, O(k.rewardGroup.name), 1)
|
|
79
79
|
])
|
|
80
80
|
])
|
|
81
81
|
]),
|
|
82
|
-
d(
|
|
82
|
+
d(l, {
|
|
83
83
|
variant: "tertiary",
|
|
84
84
|
icon: "delete",
|
|
85
85
|
onClick: f[2] || (f[2] = (u) => (u.stopPropagation(), p("remove", k.level)))
|
|
86
86
|
})
|
|
87
87
|
]),
|
|
88
|
-
d(
|
|
88
|
+
d(l, {
|
|
89
89
|
class: "w-full",
|
|
90
90
|
variant: "secondary",
|
|
91
91
|
label: "Add count",
|
|
@@ -97,17 +97,17 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
97
97
|
]),
|
|
98
98
|
_: 1
|
|
99
99
|
}),
|
|
100
|
-
|
|
100
|
+
ve(w.$slots, "default")
|
|
101
101
|
], 64);
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
}),
|
|
104
|
+
}), Me = { class: "flex flex-col space-y-16 pr-12" }, Ne = { class: "flex gap-16 items-center" }, He = { class: "fm-typo-en-title-sm-800" }, ze = { class: "flex items-center gap-8" }, Ye = /* @__PURE__ */ q({
|
|
105
105
|
__name: "EditReferralCountSheet",
|
|
106
106
|
emits: ["update"],
|
|
107
107
|
setup(k, { expose: m, emit: I }) {
|
|
108
|
-
const { t: p } = Z(), w = I, f = F(!1),
|
|
109
|
-
var $, U, P, x, v,
|
|
110
|
-
const i = u.value == -1 ? ((P = (U = ($ =
|
|
108
|
+
const { t: p } = Z(), w = I, f = F(!1), l = F({}), c = F(-1), u = F(-1), C = Q(), A = be.superRefine((e, r) => {
|
|
109
|
+
var $, U, P, x, v, E, ae;
|
|
110
|
+
const i = u.value == -1 ? ((P = (U = ($ = C.referralProgram) == null ? void 0 : $.reward[c.value]) == null ? void 0 : U.rewards) == null ? void 0 : P.length) || 0 : u.value, g = (v = (x = C.referralProgram) == null ? void 0 : x.reward[c.value]) == null ? void 0 : v.rewards[i - 1], b = (ae = (E = C.referralProgram) == null ? void 0 : E.reward[c.value]) == null ? void 0 : ae.rewards[i + 1];
|
|
111
111
|
g && e.threshold.from < g.threshold.from + 1 && r.addIssue({
|
|
112
112
|
code: "custom",
|
|
113
113
|
message: `The min referral must be at least ${g.threshold.from + 1}`,
|
|
@@ -118,27 +118,27 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
118
118
|
path: ["option"]
|
|
119
119
|
});
|
|
120
120
|
}), T = G(() => {
|
|
121
|
-
const e = A.safeParse(
|
|
121
|
+
const e = A.safeParse(l.value);
|
|
122
122
|
return e.success ? [] : e.error.errors;
|
|
123
123
|
});
|
|
124
124
|
function M() {
|
|
125
|
-
const e = A.safeParse(
|
|
125
|
+
const e = A.safeParse(l.value);
|
|
126
126
|
e.success && w("update", {
|
|
127
127
|
groupIndex: c.value,
|
|
128
128
|
countIndex: u.value,
|
|
129
129
|
referralCount: e.data
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
async function
|
|
132
|
+
async function j(e, r) {
|
|
133
133
|
var i, g, b, $, U, P;
|
|
134
134
|
if (f.value = e, e && typeof (r == null ? void 0 : r.countIndex) == "number" && r.countIndex >= 0)
|
|
135
|
-
c.value = r.groupIndex, u.value = r.countIndex,
|
|
136
|
-
(i =
|
|
135
|
+
c.value = r.groupIndex, u.value = r.countIndex, l.value = H(
|
|
136
|
+
(i = C.referralProgram) == null ? void 0 : i.reward[r.groupIndex].rewards[r.countIndex]
|
|
137
137
|
);
|
|
138
138
|
else {
|
|
139
139
|
c.value = r.groupIndex, u.value = -1;
|
|
140
|
-
const x = u.value == -1 ? (($ = (b = (g =
|
|
141
|
-
|
|
140
|
+
const x = u.value == -1 ? (($ = (b = (g = C.referralProgram) == null ? void 0 : g.reward[c.value]) == null ? void 0 : b.rewards) == null ? void 0 : $.length) || 0 : u.value, v = (P = (U = C.referralProgram) == null ? void 0 : U.reward[c.value]) == null ? void 0 : P.rewards[x - 1];
|
|
141
|
+
l.value = {
|
|
142
142
|
threshold: {
|
|
143
143
|
from: v != null && v.threshold ? v != null && v.threshold.to ? v.threshold.to + 1 : (v == null ? void 0 : v.threshold.from) + 1 : 1,
|
|
144
144
|
to: null
|
|
@@ -146,8 +146,8 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
146
146
|
rewards: []
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
h.value = [], h.value =
|
|
150
|
-
(x) =>
|
|
149
|
+
h.value = [], h.value = s.value.map(
|
|
150
|
+
(x) => l.value.rewards.includes(x.id)
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
153
|
function L() {
|
|
@@ -163,7 +163,7 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
163
163
|
id: "type",
|
|
164
164
|
header: "Reward type",
|
|
165
165
|
cell(e) {
|
|
166
|
-
return
|
|
166
|
+
return fe[e.row.original.collectibleConfig.type].chip();
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
{
|
|
@@ -175,7 +175,7 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
175
175
|
return r.description;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
],
|
|
178
|
+
], n = me(), o = F([]), s = G(() => n.rewards.map((e) => {
|
|
179
179
|
let r = "No expiry";
|
|
180
180
|
switch (e.option.type) {
|
|
181
181
|
case "VOUCHER":
|
|
@@ -194,35 +194,35 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
194
194
|
};
|
|
195
195
|
}));
|
|
196
196
|
G(() => []);
|
|
197
|
-
function
|
|
198
|
-
const e =
|
|
197
|
+
function S() {
|
|
198
|
+
const e = s.value;
|
|
199
199
|
for (let r = 0; r < e.length; r++) {
|
|
200
200
|
const i = e[r], g = h.value[r];
|
|
201
|
-
g && !
|
|
201
|
+
g && !l.value.rewards.includes(i.id) && l.value.rewards.push(i.id), !g && l.value.rewards.includes(i.id) && (l.value.rewards = l.value.rewards.filter(
|
|
202
202
|
(b) => b != i.id
|
|
203
203
|
));
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
const h = F({});
|
|
207
|
-
return
|
|
208
|
-
showSheet:
|
|
207
|
+
return ie(h, S, { deep: !0 }), m({
|
|
208
|
+
showSheet: j,
|
|
209
209
|
hideSheet: L,
|
|
210
|
-
data:
|
|
210
|
+
data: l
|
|
211
211
|
}), (e, r) => {
|
|
212
212
|
const i = _("FmStepperField"), g = _("FmHelperText"), b = _("FmTable"), $ = _("FmButton"), U = _("FmSideSheet");
|
|
213
|
-
return
|
|
213
|
+
return R(), D(U, {
|
|
214
214
|
"max-width": 1e3,
|
|
215
215
|
modelValue: t(f),
|
|
216
|
-
"onUpdate:modelValue": r[4] || (r[4] = (P) =>
|
|
216
|
+
"onUpdate:modelValue": r[4] || (r[4] = (P) => W(f) ? f.value = P : null),
|
|
217
217
|
header: `${t(u) == -1 ? t(p)("connect.referral.editReferralCountSheet.add") : t(p)("connect.referral.editReferralCountSheet.edit")}`
|
|
218
218
|
}, {
|
|
219
219
|
"side-sheet-footer": V(() => [
|
|
220
|
-
a("div",
|
|
220
|
+
a("div", ze, [
|
|
221
221
|
d($, {
|
|
222
222
|
label: t(p)("connect.editTierSheet.submit"),
|
|
223
223
|
onClick: M,
|
|
224
|
-
disabled: t(T).length > 0 || t(
|
|
225
|
-
loading: t(
|
|
224
|
+
disabled: t(T).length > 0 || t(J)().isLoading,
|
|
225
|
+
loading: t(J)().isLoading
|
|
226
226
|
}, null, 8, ["label", "disabled", "loading"]),
|
|
227
227
|
d($, {
|
|
228
228
|
label: t(p)("connect.editTierSheet.cancel"),
|
|
@@ -232,19 +232,19 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
232
232
|
])
|
|
233
233
|
]),
|
|
234
234
|
default: V(() => [
|
|
235
|
-
d(X, { json: t(
|
|
235
|
+
d(X, { json: t(l) }, null, 8, ["json"]),
|
|
236
236
|
d(X, { json: t(T) }, null, 8, ["json"]),
|
|
237
|
-
a("div",
|
|
237
|
+
a("div", Me, [
|
|
238
238
|
a("div", null, [
|
|
239
|
-
a("div",
|
|
239
|
+
a("div", Ne, [
|
|
240
240
|
d(i, {
|
|
241
|
-
modelValue: t(
|
|
242
|
-
"onUpdate:modelValue": r[0] || (r[0] = (P) => t(
|
|
241
|
+
modelValue: t(l).threshold.from,
|
|
242
|
+
"onUpdate:modelValue": r[0] || (r[0] = (P) => t(l).threshold.from = P),
|
|
243
243
|
"show-steppers": !1,
|
|
244
244
|
rules: [t(N).ruleAtPath(t(A), "threshold.from")]
|
|
245
245
|
}, {
|
|
246
246
|
label: V(() => [
|
|
247
|
-
(
|
|
247
|
+
(R(), D(ne(
|
|
248
248
|
t(N).toInputLabel(
|
|
249
249
|
t(N).typeAtPath(t(A), "threshold.from"),
|
|
250
250
|
t(p)(
|
|
@@ -256,13 +256,13 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
256
256
|
_: 1
|
|
257
257
|
}, 8, ["modelValue", "rules"]),
|
|
258
258
|
d(i, {
|
|
259
|
-
modelValue: t(
|
|
260
|
-
"onUpdate:modelValue": r[1] || (r[1] = (P) => t(
|
|
259
|
+
modelValue: t(l).threshold.to,
|
|
260
|
+
"onUpdate:modelValue": r[1] || (r[1] = (P) => t(l).threshold.to = P),
|
|
261
261
|
"show-steppers": !1,
|
|
262
262
|
rules: [t(N).ruleAtPath(t(A), "threshold.to")]
|
|
263
263
|
}, {
|
|
264
264
|
label: V(() => [
|
|
265
|
-
(
|
|
265
|
+
(R(), D(ne(
|
|
266
266
|
t(N).toInputLabel(
|
|
267
267
|
t(N).typeAtPath(t(A), "threshold.to"),
|
|
268
268
|
t(p)(
|
|
@@ -280,14 +280,14 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
280
280
|
}, null, 8, ["text", "state"]),
|
|
281
281
|
r[5] || (r[5] = a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " When max. referral count is not set, it will default unlimited ", -1))
|
|
282
282
|
]),
|
|
283
|
-
a("div",
|
|
283
|
+
a("div", He, O(t(p)("connect.referral.editReferralCountSheet.referrer_reward")), 1),
|
|
284
284
|
d(b, {
|
|
285
285
|
modelValue: t(h),
|
|
286
|
-
"onUpdate:modelValue": r[2] || (r[2] = (P) =>
|
|
286
|
+
"onUpdate:modelValue": r[2] || (r[2] = (P) => W(h) ? h.value = P : null),
|
|
287
287
|
selection: "multiple",
|
|
288
288
|
"column-filter": t(o),
|
|
289
289
|
"column-defs": y,
|
|
290
|
-
"row-data": t(
|
|
290
|
+
"row-data": t(s),
|
|
291
291
|
"page-size": 10
|
|
292
292
|
}, null, 8, ["modelValue", "column-filter", "row-data"])
|
|
293
293
|
])
|
|
@@ -296,7 +296,7 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
296
296
|
}, 8, ["modelValue", "header"]);
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
}),
|
|
299
|
+
}), qe = { class: "space-y-16" }, Ke = { class: "grid grid-cols-3 gap-16" }, We = { class: "fm-typo-en-title-sm-800" }, Je = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ze = /* @__PURE__ */ q({
|
|
300
300
|
__name: "CriteriaTriggerInput",
|
|
301
301
|
props: {
|
|
302
302
|
modelValue: {
|
|
@@ -313,16 +313,16 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
313
313
|
le.enum.BILL_COMPLETED,
|
|
314
314
|
le.enum.FEEDBACK
|
|
315
315
|
].map((f) => Se[f]));
|
|
316
|
-
return (f,
|
|
316
|
+
return (f, l) => {
|
|
317
317
|
const c = _("FmCard");
|
|
318
|
-
return
|
|
319
|
-
|
|
320
|
-
a("div",
|
|
321
|
-
(
|
|
318
|
+
return R(), B("div", qe, [
|
|
319
|
+
l[0] || (l[0] = a("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Define the conditions that must be met to activate a reward. ", -1)),
|
|
320
|
+
a("div", Ke, [
|
|
321
|
+
(R(!0), B(Y, null, re(t(w), (u) => (R(), D(c, {
|
|
322
322
|
key: u.name,
|
|
323
323
|
variant: "outlined",
|
|
324
324
|
disabled: I.disabled,
|
|
325
|
-
class:
|
|
325
|
+
class: de(["p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-3", {
|
|
326
326
|
"col-span-3": t(w).length == 1,
|
|
327
327
|
"border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": k.modelValue == u.value,
|
|
328
328
|
"hover:bg-fm-color-opacity-sm": k.modelValue != u.value
|
|
@@ -341,31 +341,34 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
341
341
|
]);
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
}),
|
|
344
|
+
}), Qe = { class: "flex items-center gap-x-8" }, Xe = { class: "flex flex-col space-y-16 pr-12" }, er = {
|
|
345
345
|
key: 0,
|
|
346
346
|
class: "space-y-16"
|
|
347
|
-
},
|
|
347
|
+
}, rr = {
|
|
348
|
+
key: 1,
|
|
349
|
+
class: "space-y-16"
|
|
350
|
+
}, tr = { class: "flex items-center gap-8" }, or = /* @__PURE__ */ q({
|
|
348
351
|
__name: "EditCriteriaSheet",
|
|
349
352
|
emits: ["update"],
|
|
350
353
|
setup(k, { expose: m, emit: I }) {
|
|
351
|
-
const { t: p } = Z(), w = I, f = F(!1),
|
|
352
|
-
y.name.length >= 50 &&
|
|
354
|
+
const { t: p } = Z(), w = I, f = F(!1), l = F(-1), c = F({}), u = Q(), C = xe.superRefine((y, n) => {
|
|
355
|
+
y.name.length >= 50 && n.addIssue({
|
|
353
356
|
code: "custom",
|
|
354
357
|
message: "Name must be less than 50 characters"
|
|
355
|
-
}), y.name.length < 1 &&
|
|
358
|
+
}), y.name.length < 1 && n.addIssue({
|
|
356
359
|
code: "custom",
|
|
357
360
|
message: "Name is required"
|
|
358
361
|
});
|
|
359
362
|
}), A = G(() => {
|
|
360
|
-
const y =
|
|
363
|
+
const y = C.safeParse(c.value);
|
|
361
364
|
return y.success ? [] : y.error.errors;
|
|
362
365
|
});
|
|
363
|
-
function T(y,
|
|
366
|
+
function T(y, n) {
|
|
364
367
|
var o;
|
|
365
|
-
f.value = y, y && typeof
|
|
366
|
-
(o = u.referralProgram) == null ? void 0 : o.criteria[
|
|
367
|
-
)) : (
|
|
368
|
-
_id: new
|
|
368
|
+
f.value = y, y && typeof n == "number" && n >= 0 ? (l.value = n, c.value = H(
|
|
369
|
+
(o = u.referralProgram) == null ? void 0 : o.criteria[n]
|
|
370
|
+
)) : (l.value = -1, c.value = {
|
|
371
|
+
_id: new $e().toString(),
|
|
369
372
|
name: "",
|
|
370
373
|
type: "AUTO",
|
|
371
374
|
event: { type: "BILL_COMPLETED" }
|
|
@@ -374,9 +377,9 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
374
377
|
function M() {
|
|
375
378
|
f.value = !1;
|
|
376
379
|
}
|
|
377
|
-
function
|
|
378
|
-
const y =
|
|
379
|
-
y.success && w("update",
|
|
380
|
+
function j() {
|
|
381
|
+
const y = C.safeParse(c.value);
|
|
382
|
+
y.success && w("update", l.value, y.data);
|
|
380
383
|
}
|
|
381
384
|
function L(y) {
|
|
382
385
|
c.value.type = y, y == "AUTO" ? c.value.event = { type: "BILL_COMPLETED" } : c.value.event = void 0;
|
|
@@ -385,61 +388,61 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
385
388
|
showSheet: T,
|
|
386
389
|
hideSheet: M,
|
|
387
390
|
data: c
|
|
388
|
-
}), (y,
|
|
389
|
-
const o = _("FmButton"),
|
|
390
|
-
return
|
|
391
|
+
}), (y, n) => {
|
|
392
|
+
const o = _("FmButton"), s = _("FmRadio"), S = _("FmRadioGroup"), h = _("FmSideSheet");
|
|
393
|
+
return R(), D(h, {
|
|
391
394
|
"max-width": 768,
|
|
392
395
|
modelValue: t(f),
|
|
393
|
-
"onUpdate:modelValue":
|
|
396
|
+
"onUpdate:modelValue": n[6] || (n[6] = (e) => W(f) ? f.value = e : null)
|
|
394
397
|
}, {
|
|
395
398
|
"side-sheet-header": V(() => [
|
|
396
|
-
a("div",
|
|
399
|
+
a("div", Qe, [
|
|
397
400
|
d(o, {
|
|
398
401
|
icon: "arrow_back",
|
|
399
402
|
variant: "tertiary",
|
|
400
|
-
onClick:
|
|
403
|
+
onClick: n[0] || (n[0] = (e) => T(!1))
|
|
401
404
|
}),
|
|
402
|
-
|
|
405
|
+
n[7] || (n[7] = ce("Add Criteria "))
|
|
403
406
|
])
|
|
404
407
|
]),
|
|
405
408
|
"side-sheet-footer": V(() => [
|
|
406
|
-
a("div",
|
|
409
|
+
a("div", tr, [
|
|
407
410
|
d(o, {
|
|
408
411
|
label: t(p)("connect.editTierSheet.submit"),
|
|
409
|
-
onClick:
|
|
410
|
-
disabled: t(A).length > 0 || t(
|
|
411
|
-
loading: t(
|
|
412
|
+
onClick: j,
|
|
413
|
+
disabled: t(A).length > 0 || t(J)().isLoading,
|
|
414
|
+
loading: t(J)().isLoading
|
|
412
415
|
}, null, 8, ["label", "disabled", "loading"]),
|
|
413
416
|
d(o, {
|
|
414
417
|
label: t(p)("connect.editTierSheet.cancel"),
|
|
415
|
-
onClick:
|
|
418
|
+
onClick: n[5] || (n[5] = (e) => T(!1)),
|
|
416
419
|
variant: "tertiary"
|
|
417
420
|
}, null, 8, ["label"])
|
|
418
421
|
])
|
|
419
422
|
]),
|
|
420
423
|
default: V(() => [
|
|
421
424
|
d(X, { json: t(c) }, null, 8, ["json"]),
|
|
422
|
-
a("div",
|
|
423
|
-
|
|
425
|
+
a("div", Xe, [
|
|
426
|
+
n[12] || (n[12] = a("div", { class: "fm-typo-en-title-sm-600" }, "Program Criteria", -1)),
|
|
424
427
|
d(Ce, {
|
|
425
428
|
modelValue: t(c).name,
|
|
426
|
-
"onUpdate:modelValue":
|
|
429
|
+
"onUpdate:modelValue": n[1] || (n[1] = (e) => t(c).name = e),
|
|
427
430
|
label: t(p)("connect.referral.editReferralTierSheet.name"),
|
|
428
|
-
schema: t(N).typeAtPath(t(
|
|
431
|
+
schema: t(N).typeAtPath(t(C), "name")
|
|
429
432
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
430
|
-
|
|
431
|
-
d(
|
|
433
|
+
n[13] || (n[13] = a("div", { class: "fm-typo-en-title-sm-600" }, "Configuration", -1)),
|
|
434
|
+
d(S, {
|
|
432
435
|
"model-value": t(c).type,
|
|
433
436
|
label: "Verify status",
|
|
434
437
|
"onUpdate:modelValue": L
|
|
435
438
|
}, {
|
|
436
439
|
default: V(() => [
|
|
437
|
-
d(
|
|
440
|
+
d(s, {
|
|
438
441
|
value: "AUTO",
|
|
439
442
|
label: "Auto",
|
|
440
443
|
sublabel: "Verify based on rule configuration"
|
|
441
444
|
}),
|
|
442
|
-
d(
|
|
445
|
+
d(s, {
|
|
443
446
|
value: "MANUAL",
|
|
444
447
|
label: "Manual",
|
|
445
448
|
sublabel: "Verify based on manual inspection"
|
|
@@ -447,21 +450,28 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
447
450
|
]),
|
|
448
451
|
_: 1
|
|
449
452
|
}, 8, ["model-value"]),
|
|
450
|
-
t(c).type == "AUTO" ? (
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
d(
|
|
453
|
+
t(c).type == "AUTO" ? (R(), B(Y, { key: 0 }, [
|
|
454
|
+
n[10] || (n[10] = a("div", { class: "fm-typo-en-title-sm-600" }, "Trigger", -1)),
|
|
455
|
+
n[11] || (n[11] = a("div", null, " Select trigger what referee need to complete in order for referral to earn reward ", -1)),
|
|
456
|
+
d(Ze, {
|
|
454
457
|
"model-value": t(c).event.type,
|
|
455
|
-
"onUpdate:modelValue":
|
|
458
|
+
"onUpdate:modelValue": n[2] || (n[2] = (e) => t(c).event.type = e)
|
|
456
459
|
}, null, 8, ["model-value"]),
|
|
457
|
-
t(c).event.type == t(
|
|
458
|
-
|
|
460
|
+
t(c).event.type == t(se).enum.BILL_COMPLETED ? (R(), B("div", er, [
|
|
461
|
+
n[8] || (n[8] = a("div", { class: "fm-typo-en-title-sm-600" }, "Spending Criteria", -1)),
|
|
459
462
|
d(Fe, {
|
|
460
463
|
"model-value": t(c).event.rule,
|
|
461
|
-
"onUpdate:modelValue":
|
|
464
|
+
"onUpdate:modelValue": n[3] || (n[3] = (e) => t(c).event.rule = e)
|
|
462
465
|
}, null, 8, ["model-value"])
|
|
463
|
-
])) :
|
|
464
|
-
|
|
466
|
+
])) : z("", !0),
|
|
467
|
+
t(c).event.type == t(se).enum.FEEDBACK ? (R(), B("div", rr, [
|
|
468
|
+
n[9] || (n[9] = a("div", { class: "fm-typo-en-title-sm-600" }, "Feedback Criteria", -1)),
|
|
469
|
+
d(ke, {
|
|
470
|
+
"model-value": t(c).event.rule,
|
|
471
|
+
"onUpdate:modelValue": n[4] || (n[4] = (e) => t(c).event.rule = e)
|
|
472
|
+
}, null, 8, ["model-value"])
|
|
473
|
+
])) : z("", !0)
|
|
474
|
+
], 64)) : z("", !0)
|
|
465
475
|
])
|
|
466
476
|
]),
|
|
467
477
|
_: 1
|
|
@@ -469,7 +479,7 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
|
|
|
469
479
|
};
|
|
470
480
|
}
|
|
471
481
|
});
|
|
472
|
-
function
|
|
482
|
+
function he() {
|
|
473
483
|
const k = F(!1), m = Re();
|
|
474
484
|
return {
|
|
475
485
|
confirmUpdateReferralRecord: async () => {
|
|
@@ -489,10 +499,10 @@ function pe() {
|
|
|
489
499
|
updateReferralRecord: k
|
|
490
500
|
};
|
|
491
501
|
}
|
|
492
|
-
const
|
|
502
|
+
const ar = { class: "flex flex-col space-y-16 mt-24" }, nr = { class: "flex justify-between items-center" }, lr = /* @__PURE__ */ q({
|
|
493
503
|
__name: "ManageCriteriaSheet",
|
|
494
504
|
setup(k, { expose: m }) {
|
|
495
|
-
const { t: I } = Z(), { minor: p } =
|
|
505
|
+
const { t: I } = Z(), { minor: p } = ue, { confirmUpdateReferralRecord: w, updateReferralRecord: f } = he(), l = F(!1), c = F({}), u = Q(), C = F(
|
|
496
506
|
null
|
|
497
507
|
), A = G(() => {
|
|
498
508
|
var o;
|
|
@@ -500,28 +510,28 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
500
510
|
});
|
|
501
511
|
async function T(o) {
|
|
502
512
|
await w(), await p(async () => {
|
|
503
|
-
await
|
|
513
|
+
await pe.update({
|
|
504
514
|
...o,
|
|
505
515
|
updateReferralRecord: f.value
|
|
506
516
|
}), await u.readReferralProgram();
|
|
507
517
|
});
|
|
508
518
|
}
|
|
509
|
-
async function M(o,
|
|
519
|
+
async function M(o, s) {
|
|
510
520
|
var e, r;
|
|
511
|
-
const
|
|
512
|
-
h.criteria[
|
|
521
|
+
const S = o == -1 ? ((e = u.referralProgram) == null ? void 0 : e.criteria.length) || 0 : o, h = H(u.referralProgram);
|
|
522
|
+
h.criteria[S] = s, await T(h), (r = C.value) == null || r.showSheet(!1);
|
|
513
523
|
}
|
|
514
|
-
async function
|
|
524
|
+
async function j(o) {
|
|
515
525
|
var h, e;
|
|
516
|
-
if (!await
|
|
526
|
+
if (!await K.remove(
|
|
517
527
|
"Are you sure to remove criteria",
|
|
518
528
|
"Remove criteria",
|
|
519
529
|
I("connect.prompt.confirm"),
|
|
520
530
|
I("connect.prompt.cancel")
|
|
521
531
|
))
|
|
522
532
|
return;
|
|
523
|
-
const
|
|
524
|
-
|
|
533
|
+
const s = o == -1 ? ((h = u.referralProgram) == null ? void 0 : h.criteria.length) || 0 : o, S = H(u.referralProgram);
|
|
534
|
+
S.criteria.splice(s, 1), await T(S), (e = C.value) == null || e.showSheet(!1);
|
|
525
535
|
}
|
|
526
536
|
const L = [
|
|
527
537
|
{
|
|
@@ -532,7 +542,7 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
532
542
|
header: "Validity method",
|
|
533
543
|
cell(o) {
|
|
534
544
|
return te(oe.FmChip, {
|
|
535
|
-
label:
|
|
545
|
+
label: _e.title(o.row.original.type),
|
|
536
546
|
variant: "plain"
|
|
537
547
|
});
|
|
538
548
|
}
|
|
@@ -545,8 +555,8 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
545
555
|
variant: "tertiary",
|
|
546
556
|
icon: "delete",
|
|
547
557
|
iconColor: "neutral-gray-400",
|
|
548
|
-
onClick: (
|
|
549
|
-
|
|
558
|
+
onClick: (s) => {
|
|
559
|
+
s.stopPropagation(), j(o.row.index);
|
|
550
560
|
}
|
|
551
561
|
})
|
|
552
562
|
];
|
|
@@ -554,38 +564,38 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
554
564
|
}
|
|
555
565
|
];
|
|
556
566
|
function y(o) {
|
|
557
|
-
|
|
567
|
+
l.value = o;
|
|
558
568
|
}
|
|
559
|
-
function
|
|
560
|
-
|
|
569
|
+
function n() {
|
|
570
|
+
l.value = !1;
|
|
561
571
|
}
|
|
562
572
|
return m({
|
|
563
573
|
showSheet: y,
|
|
564
|
-
hideSheet:
|
|
574
|
+
hideSheet: n,
|
|
565
575
|
data: c
|
|
566
|
-
}), (o,
|
|
567
|
-
const
|
|
568
|
-
return
|
|
576
|
+
}), (o, s) => {
|
|
577
|
+
const S = _("FmButton"), h = _("FmTable"), e = _("FmSideSheet");
|
|
578
|
+
return R(), B(Y, null, [
|
|
569
579
|
d(e, {
|
|
570
580
|
"max-width": 768,
|
|
571
|
-
modelValue: t(
|
|
572
|
-
"onUpdate:modelValue":
|
|
581
|
+
modelValue: t(l),
|
|
582
|
+
"onUpdate:modelValue": s[2] || (s[2] = (r) => W(l) ? l.value = r : null),
|
|
573
583
|
header: "Manage Criteria"
|
|
574
584
|
}, {
|
|
575
585
|
default: V(() => [
|
|
576
|
-
a("div",
|
|
577
|
-
a("div",
|
|
578
|
-
|
|
586
|
+
a("div", ar, [
|
|
587
|
+
a("div", nr, [
|
|
588
|
+
s[3] || (s[3] = a("div", null, [
|
|
579
589
|
a("div", { class: "fm-typo-en-title-sm-600" }, "Program Criteria"),
|
|
580
590
|
a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Set participation rules to start your referral program ")
|
|
581
591
|
], -1)),
|
|
582
|
-
d(
|
|
592
|
+
d(S, {
|
|
583
593
|
label: "Add Criteria",
|
|
584
594
|
icon: "add",
|
|
585
595
|
variant: "secondary",
|
|
586
|
-
onClick:
|
|
596
|
+
onClick: s[0] || (s[0] = (r) => {
|
|
587
597
|
var i;
|
|
588
|
-
return (i = t(
|
|
598
|
+
return (i = t(C)) == null ? void 0 : i.showSheet(!0);
|
|
589
599
|
})
|
|
590
600
|
})
|
|
591
601
|
]),
|
|
@@ -595,34 +605,34 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
595
605
|
"page-size": 100,
|
|
596
606
|
"shrink-at": !1,
|
|
597
607
|
"column-defs": L,
|
|
598
|
-
onRowClick:
|
|
608
|
+
onRowClick: s[1] || (s[1] = (r) => {
|
|
599
609
|
var i;
|
|
600
|
-
return (i = t(
|
|
610
|
+
return (i = t(C)) == null ? void 0 : i.showSheet(!0, r.index);
|
|
601
611
|
})
|
|
602
612
|
}, null, 8, ["row-data"])
|
|
603
613
|
])
|
|
604
614
|
]),
|
|
605
615
|
_: 1
|
|
606
616
|
}, 8, ["modelValue"]),
|
|
607
|
-
d(
|
|
617
|
+
d(or, {
|
|
608
618
|
ref_key: "editCriteriaSheetRef",
|
|
609
|
-
ref:
|
|
619
|
+
ref: C,
|
|
610
620
|
onUpdate: M
|
|
611
621
|
}, null, 512)
|
|
612
622
|
], 64);
|
|
613
623
|
};
|
|
614
624
|
}
|
|
615
|
-
}),
|
|
625
|
+
}), sr = { class: "flex flex-col space-y-16 pr-12" }, ir = { class: "fm-typo-en-title-sm-800" }, dr = { class: "flex items-center gap-8" }, cr = /* @__PURE__ */ q({
|
|
616
626
|
__name: "EditRefereeRewardSheet",
|
|
617
627
|
emits: ["update"],
|
|
618
628
|
setup(k, { expose: m, emit: I }) {
|
|
619
|
-
const { t: p } = Z(), w = I, f = F(!1),
|
|
629
|
+
const { t: p } = Z(), w = I, f = F(!1), l = F([]), c = Q();
|
|
620
630
|
function u() {
|
|
621
|
-
w("update",
|
|
631
|
+
w("update", l.value);
|
|
622
632
|
}
|
|
623
|
-
async function
|
|
624
|
-
var
|
|
625
|
-
f.value = o,
|
|
633
|
+
async function C(o) {
|
|
634
|
+
var s, S;
|
|
635
|
+
f.value = o, l.value = ((S = (s = c.referralProgram) == null ? void 0 : s.refereeReward) == null ? void 0 : S.map((h) => h.toString())) || [], n.value = L.value.map((h) => l.value.includes(h.id));
|
|
626
636
|
}
|
|
627
637
|
function A() {
|
|
628
638
|
f.value = !1;
|
|
@@ -637,26 +647,26 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
637
647
|
id: "type",
|
|
638
648
|
header: "Reward type",
|
|
639
649
|
cell(o) {
|
|
640
|
-
return
|
|
650
|
+
return fe[o.row.original.collectibleConfig.type].chip();
|
|
641
651
|
}
|
|
642
652
|
},
|
|
643
653
|
{
|
|
644
654
|
header: "Description",
|
|
645
655
|
accessorFn: (o) => o.description,
|
|
646
656
|
cell(o) {
|
|
647
|
-
const
|
|
648
|
-
if (
|
|
649
|
-
return
|
|
657
|
+
const s = o.row.original;
|
|
658
|
+
if (s.collectible.type == "VOUCHER" || s.selectedReward == null)
|
|
659
|
+
return s.description;
|
|
650
660
|
}
|
|
651
661
|
}
|
|
652
|
-
], M =
|
|
653
|
-
let
|
|
662
|
+
], M = me(), j = F([]), L = G(() => M.rewards.map((o) => {
|
|
663
|
+
let s = "No expiry";
|
|
654
664
|
switch (o.option.type) {
|
|
655
665
|
case "VOUCHER":
|
|
656
|
-
|
|
666
|
+
s = `${o.option.collectibleConfig.options.maxUse} use(s), ${ee(o.option.collectibleConfig.options.validityOption || {})}`;
|
|
657
667
|
break;
|
|
658
668
|
case "LOYALTY":
|
|
659
|
-
|
|
669
|
+
s = `${o.option.earningOption.amount}, ${ee(o.option.validityOption || {})}`;
|
|
660
670
|
break;
|
|
661
671
|
}
|
|
662
672
|
return {
|
|
@@ -664,54 +674,54 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
664
674
|
name: o.name,
|
|
665
675
|
collectible: o.option,
|
|
666
676
|
collectibleConfig: o.collectibleConfig,
|
|
667
|
-
description:
|
|
677
|
+
description: s
|
|
668
678
|
};
|
|
669
679
|
}));
|
|
670
680
|
G(() => []);
|
|
671
681
|
function y() {
|
|
672
682
|
const o = L.value;
|
|
673
|
-
for (let
|
|
674
|
-
const
|
|
675
|
-
h && !
|
|
683
|
+
for (let s = 0; s < o.length; s++) {
|
|
684
|
+
const S = o[s], h = n.value[s];
|
|
685
|
+
h && !l.value.includes(S.id) && l.value.push(S.id), !h && l.value.includes(S.id) && (l.value = l.value.filter((e) => e != S.id));
|
|
676
686
|
}
|
|
677
687
|
}
|
|
678
|
-
const
|
|
679
|
-
return
|
|
680
|
-
showSheet:
|
|
688
|
+
const n = F({});
|
|
689
|
+
return ie(n, y, { deep: !0 }), m({
|
|
690
|
+
showSheet: C,
|
|
681
691
|
hideSheet: A,
|
|
682
|
-
data:
|
|
683
|
-
}), (o,
|
|
684
|
-
const
|
|
685
|
-
return
|
|
692
|
+
data: l
|
|
693
|
+
}), (o, s) => {
|
|
694
|
+
const S = _("FmTable"), h = _("FmButton"), e = _("FmSideSheet");
|
|
695
|
+
return R(), D(e, {
|
|
686
696
|
"max-width": 1e3,
|
|
687
697
|
modelValue: t(f),
|
|
688
|
-
"onUpdate:modelValue":
|
|
698
|
+
"onUpdate:modelValue": s[2] || (s[2] = (r) => W(f) ? f.value = r : null),
|
|
689
699
|
header: "Referee reward"
|
|
690
700
|
}, {
|
|
691
701
|
"side-sheet-footer": V(() => [
|
|
692
|
-
a("div",
|
|
702
|
+
a("div", dr, [
|
|
693
703
|
d(h, {
|
|
694
704
|
label: t(p)("connect.common.save"),
|
|
695
705
|
onClick: u,
|
|
696
|
-
disabled: t(
|
|
697
|
-
loading: t(
|
|
706
|
+
disabled: t(J)().isLoading,
|
|
707
|
+
loading: t(J)().isLoading
|
|
698
708
|
}, null, 8, ["label", "disabled", "loading"]),
|
|
699
709
|
d(h, {
|
|
700
710
|
label: t(p)("connect.common.cancel"),
|
|
701
|
-
onClick:
|
|
711
|
+
onClick: s[1] || (s[1] = (r) => A()),
|
|
702
712
|
variant: "tertiary"
|
|
703
713
|
}, null, 8, ["label"])
|
|
704
714
|
])
|
|
705
715
|
]),
|
|
706
716
|
default: V(() => [
|
|
707
|
-
d(X, { json: t(
|
|
708
|
-
a("div",
|
|
709
|
-
a("div",
|
|
710
|
-
d(
|
|
711
|
-
modelValue: t(
|
|
712
|
-
"onUpdate:modelValue":
|
|
717
|
+
d(X, { json: t(l) }, null, 8, ["json"]),
|
|
718
|
+
a("div", sr, [
|
|
719
|
+
a("div", ir, O(t(p)("connect.referral.refereeRewardSheet.referee_reward")), 1),
|
|
720
|
+
d(S, {
|
|
721
|
+
modelValue: t(n),
|
|
722
|
+
"onUpdate:modelValue": s[0] || (s[0] = (r) => W(n) ? n.value = r : null),
|
|
713
723
|
selection: "multiple",
|
|
714
|
-
"column-filter": t(
|
|
724
|
+
"column-filter": t(j),
|
|
715
725
|
"column-defs": T,
|
|
716
726
|
"row-data": t(L),
|
|
717
727
|
"page-size": 10
|
|
@@ -722,18 +732,18 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
722
732
|
}, 8, ["modelValue"]);
|
|
723
733
|
};
|
|
724
734
|
}
|
|
725
|
-
}),
|
|
735
|
+
}), ur = { class: "fm-typo-en-title-sm-600" }, mr = { class: "grid grid-cols-4 xs:grid-cols-1 gap-4 divide-x xs:divide-x-0" }, fr = { class: "flex gap-x-8" }, pr = { class: "fm-typo-body-lg-600 flex items-center gap-x-4" }, hr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vr = { class: "mb-40" }, gr = {
|
|
726
736
|
key: 0,
|
|
727
737
|
class: "flex flex-col items-center justify-center gap-y-16 p-24"
|
|
728
|
-
},
|
|
738
|
+
}, wr = { class: "flex flex-col gap-16 text-center" }, _r = { class: "fm-typo-en-title-sm-800" }, yr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Hr = /* @__PURE__ */ q({
|
|
729
739
|
__name: "Overview",
|
|
730
740
|
setup(k) {
|
|
731
|
-
const { t: m } = Z(), { minor: I } =
|
|
741
|
+
const { t: m } = Z(), { minor: I } = ue, p = Pe(), w = Q(), { confirmUpdateReferralRecord: f, updateReferralRecord: l } = he(), c = G(() => {
|
|
732
742
|
var e;
|
|
733
743
|
return ((e = w.referralProgram) == null ? void 0 : e.reward) ?? [];
|
|
734
744
|
}), u = F(null);
|
|
735
745
|
F(null);
|
|
736
|
-
const
|
|
746
|
+
const C = F(null), A = F(null), T = F(null), M = G(() => {
|
|
737
747
|
var e, r, i, g;
|
|
738
748
|
return [
|
|
739
749
|
{
|
|
@@ -770,26 +780,26 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
770
780
|
}
|
|
771
781
|
];
|
|
772
782
|
});
|
|
773
|
-
function
|
|
783
|
+
function j(e) {
|
|
774
784
|
var r;
|
|
775
785
|
(r = u.value) == null || r.onManageRewardGroup(e);
|
|
776
786
|
}
|
|
777
787
|
function L(e) {
|
|
778
788
|
var r;
|
|
779
|
-
(r =
|
|
789
|
+
(r = C.value) == null || r.showSheet(!0, {
|
|
780
790
|
groupIndex: e.groupIndex,
|
|
781
791
|
countIndex: e.countIndex
|
|
782
792
|
});
|
|
783
793
|
}
|
|
784
794
|
async function y(e) {
|
|
785
|
-
var P, x, v,
|
|
795
|
+
var P, x, v, E;
|
|
786
796
|
const r = e.countIndex == -1 ? ((x = (P = w.referralProgram) == null ? void 0 : P.reward[e.groupIndex]) == null ? void 0 : x.rewards.length) || 0 : e.countIndex || 0, i = e.referralCount, g = H(
|
|
787
797
|
w.referralProgram
|
|
788
798
|
), b = g.reward[e.groupIndex];
|
|
789
799
|
b.rewards[r] = e.referralCount;
|
|
790
800
|
const $ = b.rewards[r - 1], U = b.rewards[r + 1];
|
|
791
801
|
if ($ && $.threshold.to != i.threshold.from - 1) {
|
|
792
|
-
if (!await
|
|
802
|
+
if (!await K.confirm(
|
|
793
803
|
m(
|
|
794
804
|
"connect.referral.referral_count.update.range_discontinuous.previous",
|
|
795
805
|
{
|
|
@@ -806,7 +816,7 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
806
816
|
$.threshold.to = i.threshold.from - 1;
|
|
807
817
|
}
|
|
808
818
|
if (U && U.threshold.from - 1 != i.threshold.to) {
|
|
809
|
-
if (!await
|
|
819
|
+
if (!await K.confirm(
|
|
810
820
|
m("connect.program.tier.update.range_discontinuous.next", {
|
|
811
821
|
name: U.threshold.from,
|
|
812
822
|
from: U.threshold.from ?? 0,
|
|
@@ -820,9 +830,9 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
820
830
|
return;
|
|
821
831
|
U.threshold.from = (i.threshold.to ?? 0) + 1;
|
|
822
832
|
}
|
|
823
|
-
!U && !((v = i.threshold) != null && v.to) && (i.threshold.to = void 0), await o(g), (
|
|
833
|
+
!U && !((v = i.threshold) != null && v.to) && (i.threshold.to = void 0), await o(g), (E = C.value) == null || E.hideSheet();
|
|
824
834
|
}
|
|
825
|
-
async function
|
|
835
|
+
async function n(e) {
|
|
826
836
|
var i;
|
|
827
837
|
const r = H(w.referralProgram);
|
|
828
838
|
r.refereeReward = e, await o(r), (i = T.value) == null || i.hideSheet();
|
|
@@ -830,9 +840,9 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
830
840
|
async function o(e) {
|
|
831
841
|
await f(), await I(
|
|
832
842
|
async () => {
|
|
833
|
-
await
|
|
843
|
+
await pe.update({
|
|
834
844
|
...e,
|
|
835
|
-
updateReferralRecord:
|
|
845
|
+
updateReferralRecord: l.value
|
|
836
846
|
}), await w.readReferralProgram();
|
|
837
847
|
},
|
|
838
848
|
{
|
|
@@ -841,8 +851,8 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
841
851
|
}
|
|
842
852
|
);
|
|
843
853
|
}
|
|
844
|
-
async function
|
|
845
|
-
if (!await
|
|
854
|
+
async function s(e) {
|
|
855
|
+
if (!await K.remove(
|
|
846
856
|
"Are you sure to remove referral tier",
|
|
847
857
|
"Remove referral tier",
|
|
848
858
|
m("connect.prompt.confirm"),
|
|
@@ -852,8 +862,8 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
852
862
|
const r = H(w.referralProgram);
|
|
853
863
|
r.reward.splice(e, 1), await o(r);
|
|
854
864
|
}
|
|
855
|
-
async function
|
|
856
|
-
if (!await
|
|
865
|
+
async function S(e, r) {
|
|
866
|
+
if (!await K.remove(
|
|
857
867
|
"Are you sure to remove referral count",
|
|
858
868
|
"Remove referral tier",
|
|
859
869
|
m("connect.prompt.confirm"),
|
|
@@ -862,7 +872,7 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
862
872
|
return;
|
|
863
873
|
const i = H(w.referralProgram), g = i.reward[e].rewards[r + 1];
|
|
864
874
|
if (g) {
|
|
865
|
-
if (!await
|
|
875
|
+
if (!await K.confirm(
|
|
866
876
|
m("connect.referral.referral_count.update.range_discontinuous.next", {
|
|
867
877
|
from: g.threshold.from ?? 0,
|
|
868
878
|
to: g.threshold.to ?? 1 / 0,
|
|
@@ -902,39 +912,39 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
902
912
|
iconColor: "neutral-gray-400",
|
|
903
913
|
class: "ml-auto",
|
|
904
914
|
onClick: (r) => {
|
|
905
|
-
r.stopPropagation(), console.log(e.row),
|
|
915
|
+
r.stopPropagation(), console.log(e.row), S(e.row.original.groupIndex, e.row.index);
|
|
906
916
|
}
|
|
907
917
|
});
|
|
908
918
|
}
|
|
909
919
|
}
|
|
910
920
|
];
|
|
911
|
-
return
|
|
921
|
+
return ge(async () => {
|
|
912
922
|
await w.readReferralProgram();
|
|
913
923
|
}), (e, r) => {
|
|
914
924
|
const i = _("FmCard"), g = _("FmIcon"), b = _("FmTooltip"), $ = _("FmButton"), U = _("FmTable"), P = _("FmList");
|
|
915
|
-
return
|
|
916
|
-
|
|
925
|
+
return R(), B(Y, null, [
|
|
926
|
+
z("", !0),
|
|
917
927
|
d(i, {
|
|
918
928
|
variant: "outlined",
|
|
919
929
|
class: "flex flex-col gap-16 p-16"
|
|
920
930
|
}, {
|
|
921
931
|
default: V(() => [
|
|
922
|
-
a("div",
|
|
923
|
-
a("div",
|
|
924
|
-
(
|
|
932
|
+
a("div", ur, O(t(m)("connect.referral.how_it_works.title")), 1),
|
|
933
|
+
a("div", mr, [
|
|
934
|
+
(R(!0), B(Y, null, re(t(M), (x, v) => (R(), B("div", {
|
|
925
935
|
key: v,
|
|
926
|
-
class:
|
|
936
|
+
class: de(["px-8", { "xs:!border-r": v % 2 == 0 }])
|
|
927
937
|
}, [
|
|
928
|
-
a("div",
|
|
938
|
+
a("div", fr, [
|
|
929
939
|
d(g, {
|
|
930
940
|
name: x.icon,
|
|
931
941
|
color: "primary",
|
|
932
942
|
class: "bg-fm-color-system-warning-100 p-8 fm-corner-radius-md max-h-40 max-w-40"
|
|
933
943
|
}, null, 8, ["name"]),
|
|
934
944
|
a("div", null, [
|
|
935
|
-
a("div",
|
|
936
|
-
|
|
937
|
-
x.helperText ? (
|
|
945
|
+
a("div", pr, [
|
|
946
|
+
ce(O(t(m)(x.label)) + " ", 1),
|
|
947
|
+
x.helperText ? (R(), D(b, {
|
|
938
948
|
key: 0,
|
|
939
949
|
content: x.helperText
|
|
940
950
|
}, {
|
|
@@ -946,17 +956,17 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
946
956
|
})
|
|
947
957
|
]),
|
|
948
958
|
_: 2
|
|
949
|
-
}, 1032, ["content"])) :
|
|
959
|
+
}, 1032, ["content"])) : z("", !0)
|
|
950
960
|
]),
|
|
951
|
-
a("div",
|
|
952
|
-
x.action ? (
|
|
961
|
+
a("div", hr, O(x.sublabel), 1),
|
|
962
|
+
x.action ? (R(), D($, {
|
|
953
963
|
key: 0,
|
|
954
964
|
variant: "plain",
|
|
955
965
|
label: x.action,
|
|
956
966
|
disabled: !t(p).isPremium,
|
|
957
967
|
class: "fm-typo-en-body-md-400 !p-0",
|
|
958
968
|
onClick: x.onClick
|
|
959
|
-
}, null, 8, ["label", "disabled", "onClick"])) :
|
|
969
|
+
}, null, 8, ["label", "disabled", "onClick"])) : z("", !0)
|
|
960
970
|
])
|
|
961
971
|
])
|
|
962
972
|
], 2))), 128))
|
|
@@ -964,7 +974,7 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
964
974
|
]),
|
|
965
975
|
_: 1
|
|
966
976
|
}),
|
|
967
|
-
t(c) && t(c).length > 0 ? (
|
|
977
|
+
t(c) && t(c).length > 0 ? (R(), D(i, {
|
|
968
978
|
key: 1,
|
|
969
979
|
variant: "outlined",
|
|
970
980
|
class: "flex flex-col gap-16 p-16"
|
|
@@ -972,27 +982,27 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
972
982
|
default: V(() => [
|
|
973
983
|
d(P, { separator: !0 }, {
|
|
974
984
|
default: V(() => [
|
|
975
|
-
(
|
|
985
|
+
(R(!0), B(Y, null, re(t(c), (x, v) => (R(), D(Ge, {
|
|
976
986
|
key: v,
|
|
977
987
|
"reward-group": x,
|
|
978
988
|
level: v,
|
|
979
|
-
onEdit: (
|
|
980
|
-
onRemove: (
|
|
981
|
-
onAddCount: r[0] || (r[0] = (
|
|
982
|
-
L({ groupIndex:
|
|
989
|
+
onEdit: (E) => j(v),
|
|
990
|
+
onRemove: (E) => s(v),
|
|
991
|
+
onAddCount: r[0] || (r[0] = (E) => {
|
|
992
|
+
L({ groupIndex: E, countIndex: -1 });
|
|
983
993
|
})
|
|
984
994
|
}, {
|
|
985
995
|
default: V(() => [
|
|
986
|
-
a("div",
|
|
996
|
+
a("div", vr, [
|
|
987
997
|
d(U, {
|
|
988
|
-
"row-data": x.rewards.map((
|
|
998
|
+
"row-data": x.rewards.map((E) => ({ ...E, groupIndex: v })),
|
|
989
999
|
"column-defs": h,
|
|
990
1000
|
"hide-footer": !0,
|
|
991
1001
|
"page-size": 50,
|
|
992
|
-
onRowClick: (
|
|
1002
|
+
onRowClick: (E) => L({ groupIndex: v, countIndex: E.index })
|
|
993
1003
|
}, null, 8, ["row-data", "onRowClick"])
|
|
994
1004
|
]),
|
|
995
|
-
x.rewards.length ?
|
|
1005
|
+
x.rewards.length ? z("", !0) : (R(), B("div", gr, [
|
|
996
1006
|
r[3] || (r[3] = a("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
997
1007
|
a("div", { class: "fm-typo-en-title-sm-800" }, "Create progressive reward"),
|
|
998
1008
|
a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Add referral count to configure progression reward to the referral program ")
|
|
@@ -1001,7 +1011,7 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
1001
1011
|
variant: "secondary",
|
|
1002
1012
|
label: "Add count",
|
|
1003
1013
|
icon: "add",
|
|
1004
|
-
onClick: (
|
|
1014
|
+
onClick: (E) => L({ groupIndex: v, countIndex: -1 })
|
|
1005
1015
|
}, null, 8, ["onClick"])
|
|
1006
1016
|
]))
|
|
1007
1017
|
]),
|
|
@@ -1012,52 +1022,52 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
|
|
|
1012
1022
|
})
|
|
1013
1023
|
]),
|
|
1014
1024
|
_: 1
|
|
1015
|
-
})) : (
|
|
1025
|
+
})) : (R(), D(i, {
|
|
1016
1026
|
key: 2,
|
|
1017
1027
|
variant: "outlined",
|
|
1018
1028
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
1019
1029
|
}, {
|
|
1020
1030
|
default: V(() => [
|
|
1021
1031
|
r[4] || (r[4] = a("img", {
|
|
1022
|
-
src:
|
|
1032
|
+
src: we,
|
|
1023
1033
|
class: "aspect-square w-[150px]"
|
|
1024
1034
|
}, null, -1)),
|
|
1025
|
-
a("div",
|
|
1026
|
-
a("div",
|
|
1027
|
-
a("div",
|
|
1035
|
+
a("div", wr, [
|
|
1036
|
+
a("div", _r, O(t(m)("connect.referral.referral_tier_title")), 1),
|
|
1037
|
+
a("div", yr, O(t(m)("connect.referral.referral_tier_description")), 1)
|
|
1028
1038
|
]),
|
|
1029
1039
|
d($, {
|
|
1030
1040
|
variant: "primary",
|
|
1031
1041
|
label: t(m)("connect.referral.add_referral_tier"),
|
|
1032
1042
|
icon: "add",
|
|
1033
1043
|
disabled: !t(p).isPremium,
|
|
1034
|
-
onClick: r[1] || (r[1] = (x) =>
|
|
1044
|
+
onClick: r[1] || (r[1] = (x) => j(-1))
|
|
1035
1045
|
}, null, 8, ["label", "disabled"])
|
|
1036
1046
|
]),
|
|
1037
1047
|
_: 1
|
|
1038
1048
|
})),
|
|
1039
|
-
d(
|
|
1049
|
+
d(ye, {
|
|
1040
1050
|
ref_key: "rewardGroupRef",
|
|
1041
1051
|
ref: u
|
|
1042
1052
|
}, null, 512),
|
|
1043
|
-
d(
|
|
1053
|
+
d(Ye, {
|
|
1044
1054
|
ref_key: "editReferralCountSheetRef",
|
|
1045
|
-
ref:
|
|
1055
|
+
ref: C,
|
|
1046
1056
|
onUpdate: y
|
|
1047
1057
|
}, null, 512),
|
|
1048
|
-
d(
|
|
1058
|
+
d(lr, {
|
|
1049
1059
|
ref_key: "manageCriteriaSheetRef",
|
|
1050
1060
|
ref: A
|
|
1051
1061
|
}, null, 512),
|
|
1052
|
-
d(
|
|
1062
|
+
d(cr, {
|
|
1053
1063
|
ref_key: "editRefereeRewardSheetRef",
|
|
1054
1064
|
ref: T,
|
|
1055
|
-
onUpdate:
|
|
1065
|
+
onUpdate: n
|
|
1056
1066
|
}, null, 512)
|
|
1057
1067
|
], 64);
|
|
1058
1068
|
};
|
|
1059
1069
|
}
|
|
1060
1070
|
});
|
|
1061
1071
|
export {
|
|
1062
|
-
|
|
1072
|
+
Hr as default
|
|
1063
1073
|
};
|