@feedmepos/mf-connect 0.1.24-prod → 0.1.26-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Analytic-DH3odpBh.js → Analytic-WXmpLkLU.js} +18 -17
- package/dist/{App-DT9d3Bm2.js → App-jBGNDeCb.js} +6 -6
- package/dist/{Bin-CEFG1nRH.js → Bin-COj4GqKe.js} +19 -18
- package/dist/{Broadcast-B_rv159-.js → Broadcast-vIqSNTJh.js} +13 -12
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DzD9-r4-.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVtfunGL.js} +14 -8
- package/dist/{Card-Dyya8J2U.js → Card-CGyBry4S.js} +57 -55
- package/dist/{Collections-Dl2FDFOD.js → Collections-BeQ_uFRE.js} +23 -21
- package/dist/{Credit-B9mz3eUI.js → Credit-DWsgc_P1.js} +35 -34
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-TrKmONi5.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DxPsGM7d.js} +28 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CVCgGHg4.js → EffectSheet.vue_vue_type_style_index_0_lang-DlCdWAqB.js} +6 -6
- package/dist/{Experience-CGwG9JGa.js → Experience-DQ5ofpRU.js} +13 -12
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
- package/dist/Game-dl01-cxh.js +278 -0
- package/dist/{Index-D0IkkcBH.js → Index-B33SYml2.js} +14 -13
- package/dist/{Marketing-HmC8ZXqz.js → Marketing-CqWuI9r1.js} +8 -7
- package/dist/Member-PuWzURyR.js +348 -0
- package/dist/{MemberList-_MFrJqht.js → MemberList-dQljjKIC.js} +275 -269
- package/dist/{MemberTransactions-kUyU9Qn6.js → MemberTransactions-BH1U_v3f.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DypmZY2G.js → MessageInput.vue_vue_type_script_setup_true_lang-ZSNwpN6m.js} +7 -7
- package/dist/{Mission-OUjm7KRr.js → Mission-PjsS8VTH.js} +118 -96
- package/dist/{Overview-F2AvMo-g.js → Overview-B6zXdxIf.js} +63 -62
- package/dist/{Point-K9poYQjB.js → Point-DhYeSbYo.js} +11 -10
- package/dist/{Promotion-DpS6PQFU.js → Promotion-4yBcCEQA.js} +12 -11
- package/dist/Queue-BCOe370v.js +249 -0
- package/dist/{Record-CZMB7xKL.js → Record-FxeE4KZe.js} +21 -19
- package/dist/{Reward-zMCEkbO5.js → Reward-B4licTuW.js} +19 -18
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dj73NYhp.js → RewardGroup.vue_vue_type_script_setup_true_lang-CKWOhSQh.js} +13 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-FyuAHi5K.js → RuleGroup.vue_vue_type_script_setup_true_lang-BbOzaj63.js} +12 -12
- package/dist/{Segment-LthACAfl.js → Segment-DONb4N1l.js} +19 -17
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DRe6Gyov.js → SelectItems.vue_vue_type_script_setup_true_lang-CvHYZpGm.js} +2 -2
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-NDwwOZSM.js +188 -0
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Z9Nb9b6-.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D2ixqrV7.js} +3 -3
- package/dist/{Setting-8ASd681E.js → Setting-BQOcVtGa.js} +20 -19
- package/dist/{Store-C-bmQP0K.js → Store-BlaFXTeO.js} +24 -23
- package/dist/{StoreRewards-Bu3DWaCn.js → StoreRewards-Lqc34UoD.js} +15 -14
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C5dViJNi.js +994 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Bn7aoYqw.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-e_31o0i7.js} +1 -1
- package/dist/{Tier-DDKUGBRg.js → Tier-B26lO0SB.js} +25 -24
- package/dist/{Title-Cup_EWfZ.js → Title-BASSyfhP.js} +28 -27
- package/dist/{Transaction-BqvgfyiW.js → Transaction-BbzBRylw.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BCkXievQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BFyl96zy.js} +6 -6
- package/dist/{Voucher-Dxk6zfcN.js → Voucher-A_GG0E5t.js} +38 -37
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DmswMNi5.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CCGtKQTW.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D-UPL1Rc.js → ZodTextField.vue_vue_type_script_setup_true_lang-DGNqvOl5.js} +1 -1
- package/dist/{app-bidojB9R.js → app-C7FQYfsn.js} +1 -1
- package/dist/{app-BDUrJlXZ.js → app-DV-5XPYF.js} +235 -166
- package/dist/app.js +1 -1
- package/dist/{business-CFOn3-Hz.js → business-C8PXQSRE.js} +1 -1
- package/dist/{campaign-DyzzIbnA.js → campaign-B4eKVpps.js} +9 -9
- package/dist/{campaign-BVIiGyq9.js → campaign-CuZ6u4yy.js} +2 -2
- package/dist/{campaign.enum-aFjayQfJ.js → campaign.enum-xbqqPDwY.js} +1 -1
- package/dist/{campaign.fn-BKADpFTx.js → campaign.fn-GFFtrWsz.js} +133 -133
- package/dist/{collectible.enum-vEUgo0YF.js → collectible.enum-DB4oBcfv.js} +1 -1
- package/dist/{collection.fn-D2Kbz9yq.js → collection.fn-BwpscyTl.js} +2 -2
- package/dist/{dto-CKxtFHko.js → dto-Cr20KGr0.js} +4 -4
- package/dist/{effect-BEWKDhDB.js → effect-D9-UiBiK.js} +1 -1
- package/dist/{email-addresses-BWDg5Wvf.js → email-addresses-F3hoXmRI.js} +1 -1
- package/dist/{export-DO-WeD6l.js → export-BIPF1ilY.js} +3 -3
- package/dist/{helper-CSGr0Zgt.js → helper-Tf1bFEee.js} +1 -1
- package/dist/{index-UVHHFXyh.js → index-B2jAIO5k.js} +1162 -1129
- package/dist/{index-Dw_jc7Et.js → index-BYzdfZKb.js} +3 -3
- package/dist/{index-BgJVKNYg.js → index-BhlEaLpy.js} +24 -21
- package/dist/{index-BV4M35iK.js → index-Bkw-11Tg.js} +2 -2
- package/dist/{index-CFXFhGs9.js → index-BvqdtS9H.js} +1 -1
- package/dist/{index-DVsh-nBE.js → index-CpUyyTF6.js} +1 -1
- package/dist/{index-CUlYeKKH.js → index-D4XX55M5.js} +1 -1
- package/dist/{index-CEjeBL2U.js → index-Dow2N7x1.js} +1 -1
- package/dist/{index--Mrx1FRI.js → index-IOTB7rGH.js} +1 -1
- package/dist/{index-CoMMyOsj.js → index-bb6Kd8k_.js} +10 -10
- package/dist/{index-DSBnWOie.js → index-gTmOLzQU.js} +1 -1
- package/dist/{index-Bg3caQS6.js → index-mjBmZtX2.js} +1273 -1273
- package/dist/{index.esm2017-CDzvT_fP.js → index.esm2017-Y_0J3nbR.js} +137 -137
- package/dist/loading-BbC_ZIPE.js +71 -0
- package/dist/{membership-DK9FNo2Y.js → membership-BM_2_hUW.js} +3 -3
- package/dist/{money-DJYiw0es.js → money-BsBmwalY.js} +1 -1
- package/dist/{number-BjhqQBza.js → number-QqpGrk9q.js} +1 -1
- package/dist/objectid-DQj-P2cH.js +145 -0
- package/dist/{loading-CWihCJvJ.js → plugins-DKPF0eaB.js} +1535 -1601
- package/dist/{reward-DlE5Zt3d.js → reward-Yl3EdHrH.js} +1 -1
- package/dist/{rule-a2_WCjR8.js → rule-DW_bLKtu.js} +3 -3
- package/dist/{rule-builder-Q8iGSpDV.js → rule-builder-BoITzEtm.js} +1 -1
- package/dist/{template-3faxO3XM.js → template-BSQzNJs5.js} +4 -4
- package/dist/{trigger-Cnvhgqkj.js → trigger-Bel1H8iR.js} +11 -11
- package/dist/usePagination-JoYaROkV.js +223 -0
- package/dist/{user-CoiXBmet.js → user-Dg2HfZlK.js} +1 -1
- package/dist/vue-i18n-CvvsV6dR.js +2365 -0
- package/dist/{usePagination-dNrSGtRV.js → xlsx-1oIZztwO.js} +2979 -3200
- package/package.json +3 -1
- package/dist/Game-DbhOlio1.js +0 -256
- package/dist/Member-NSQ2nHzW.js +0 -69
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CDRpkUaP.js +0 -1105
- package/dist/objectid-Cep7PkzN.js +0 -145
- package/dist/vue-i18n-B2XH0K8P.js +0 -2365
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as _e, ref as $, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as ce, createTextVNode as de, createCommentVNode as z, h as te, onMounted as ve } from "vue";
|
|
2
2
|
import { _ as ge } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
-
import {
|
|
3
|
+
import { u as Z } from "./vue-i18n-CvvsV6dR.js";
|
|
4
|
+
import { u as ue } from "./loading-BbC_ZIPE.js";
|
|
5
|
+
import { c as we, p as K } from "./plugins-DKPF0eaB.js";
|
|
5
6
|
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
6
7
|
import { Z as N } from "./zod-Bg2FbC-D.js";
|
|
7
8
|
import { u as W } from "./app-wDQR6dpb.js";
|
|
8
|
-
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as me } from "./reward-
|
|
10
|
-
import {
|
|
11
|
-
import "./index-
|
|
12
|
-
import { a as be, b as xe } from "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import { C as fe } from "./membership-
|
|
16
|
-
import { t as ee } from "./helper-
|
|
9
|
+
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CKWOhSQh.js";
|
|
10
|
+
import { u as me } from "./reward-Yl3EdHrH.js";
|
|
11
|
+
import { j as le, k as se } from "./index-B2jAIO5k.js";
|
|
12
|
+
import "./index-Bkw-11Tg.js";
|
|
13
|
+
import { a as be, b as xe } from "./index-bb6Kd8k_.js";
|
|
14
|
+
import "./index-D4XX55M5.js";
|
|
15
|
+
import "./index-BYzdfZKb.js";
|
|
16
|
+
import { C as fe } from "./membership-BM_2_hUW.js";
|
|
17
|
+
import { t as ee } from "./helper-Tf1bFEee.js";
|
|
17
18
|
import { c as H } from "./object-qECH92oz.js";
|
|
18
19
|
import { useDialog as Ce, components as oe } from "@feedmepos/ui-library";
|
|
19
|
-
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { T as Se, _ as $e, a as
|
|
21
|
-
import { O as
|
|
22
|
-
import { r as pe } from "./index-
|
|
23
|
-
import { u as Pe } from "./business-
|
|
20
|
+
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DGNqvOl5.js";
|
|
21
|
+
import { T as Se, _ as $e, a as ke } from "./trigger-Bel1H8iR.js";
|
|
22
|
+
import { O as Fe } from "./objectid-DQj-P2cH.js";
|
|
23
|
+
import { r as pe } from "./index-CpUyyTF6.js";
|
|
24
|
+
import { u as Pe } from "./business-C8PXQSRE.js";
|
|
24
25
|
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" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
|
|
25
26
|
__name: "ReferralRewadGroupCard",
|
|
26
27
|
props: {
|
|
@@ -34,13 +35,13 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
emits: ["edit", "addCount", "remove"],
|
|
37
|
-
setup(
|
|
38
|
+
setup(k, { emit: n }) {
|
|
38
39
|
const { t: I } = Z(), p = n;
|
|
39
40
|
return (g, m) => {
|
|
40
41
|
const l = w("FmButton"), d = w("FmListItem");
|
|
41
42
|
return C(), B(Y, null, [
|
|
42
43
|
c(d, {
|
|
43
|
-
onClick: m[4] || (m[4] = (u) => p("edit",
|
|
44
|
+
onClick: m[4] || (m[4] = (u) => p("edit", k.level)),
|
|
44
45
|
class: "!p-0"
|
|
45
46
|
}, {
|
|
46
47
|
default: V(() => [
|
|
@@ -48,7 +49,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
48
49
|
a("div", Ie, [
|
|
49
50
|
a("div", Te, [
|
|
50
51
|
a("div", Ue, [
|
|
51
|
-
a("div", Ae, O(
|
|
52
|
+
a("div", Ae, O(k.rewardGroup.name), 1)
|
|
52
53
|
])
|
|
53
54
|
])
|
|
54
55
|
]),
|
|
@@ -58,13 +59,13 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
58
59
|
label: r(I)("connect.referral.reward.add_count"),
|
|
59
60
|
icon: "add",
|
|
60
61
|
onClick: m[0] || (m[0] = (u) => {
|
|
61
|
-
u.stopPropagation(), p("addCount",
|
|
62
|
+
u.stopPropagation(), p("addCount", k.level);
|
|
62
63
|
})
|
|
63
64
|
}, null, 8, ["label"]),
|
|
64
65
|
c(l, {
|
|
65
66
|
icon: "delete",
|
|
66
67
|
onClick: m[1] || (m[1] = (u) => {
|
|
67
|
-
u.stopPropagation(), p("remove",
|
|
68
|
+
u.stopPropagation(), p("remove", k.level);
|
|
68
69
|
}),
|
|
69
70
|
variant: "tertiary"
|
|
70
71
|
})
|
|
@@ -75,14 +76,14 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
75
76
|
a("div", Oe, [
|
|
76
77
|
a("div", je, [
|
|
77
78
|
a("div", null, [
|
|
78
|
-
a("div", De, O(
|
|
79
|
+
a("div", De, O(k.rewardGroup.name), 1)
|
|
79
80
|
])
|
|
80
81
|
])
|
|
81
82
|
]),
|
|
82
83
|
c(l, {
|
|
83
84
|
variant: "tertiary",
|
|
84
85
|
icon: "delete",
|
|
85
|
-
onClick: m[2] || (m[2] = (u) => (u.stopPropagation(), p("remove",
|
|
86
|
+
onClick: m[2] || (m[2] = (u) => (u.stopPropagation(), p("remove", k.level)))
|
|
86
87
|
})
|
|
87
88
|
]),
|
|
88
89
|
c(l, {
|
|
@@ -91,7 +92,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
91
92
|
label: "Add count",
|
|
92
93
|
disabled: !0,
|
|
93
94
|
icon: "add",
|
|
94
|
-
onClick: m[3] || (m[3] = (u) => (u.stopPropagation(), p("addCount",
|
|
95
|
+
onClick: m[3] || (m[3] = (u) => (u.stopPropagation(), p("addCount", k.level)))
|
|
95
96
|
})
|
|
96
97
|
])
|
|
97
98
|
]),
|
|
@@ -104,10 +105,10 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
104
105
|
}), Me = { class: "flex flex-col space-y-16 pr-12" }, Ne = { class: "flex gap-16 items-center" }, He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ze = { class: "fm-typo-en-title-sm-800" }, Ye = { class: "flex items-center gap-8" }, qe = /* @__PURE__ */ q({
|
|
105
106
|
__name: "EditReferralCountSheet",
|
|
106
107
|
emits: ["update"],
|
|
107
|
-
setup(
|
|
108
|
+
setup(k, { expose: n, emit: I }) {
|
|
108
109
|
const { t: p } = Z(), g = I, m = $(!1), l = $({}), d = $(-1), u = $(-1), R = Q(), A = be.superRefine((e, t) => {
|
|
109
|
-
var
|
|
110
|
-
const i = u.value == -1 ? ((P = (U = (
|
|
110
|
+
var F, U, P, x, _, E, ae;
|
|
111
|
+
const i = u.value == -1 ? ((P = (U = (F = R.referralProgram) == null ? void 0 : F.reward[d.value]) == null ? void 0 : U.rewards) == null ? void 0 : P.length) || 0 : u.value, v = (_ = (x = R.referralProgram) == null ? void 0 : x.reward[d.value]) == null ? void 0 : _.rewards[i - 1], b = (ae = (E = R.referralProgram) == null ? void 0 : E.reward[d.value]) == null ? void 0 : ae.rewards[i + 1];
|
|
111
112
|
v && e.threshold.from < v.threshold.from + 1 && t.addIssue({
|
|
112
113
|
code: "custom",
|
|
113
114
|
message: `The min referral must be at least ${v.threshold.from + 1}`,
|
|
@@ -130,14 +131,14 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
133
|
async function D(e, t) {
|
|
133
|
-
var i, v, b,
|
|
134
|
+
var i, v, b, F, U, P;
|
|
134
135
|
if (m.value = e, e && typeof (t == null ? void 0 : t.countIndex) == "number" && t.countIndex >= 0)
|
|
135
136
|
d.value = t.groupIndex, u.value = t.countIndex, l.value = H(
|
|
136
137
|
(i = R.referralProgram) == null ? void 0 : i.reward[t.groupIndex].rewards[t.countIndex]
|
|
137
138
|
);
|
|
138
139
|
else {
|
|
139
140
|
d.value = t.groupIndex, u.value = -1;
|
|
140
|
-
const x = u.value == -1 ? ((
|
|
141
|
+
const x = u.value == -1 ? ((F = (b = (v = R.referralProgram) == null ? void 0 : v.reward[d.value]) == null ? void 0 : b.rewards) == null ? void 0 : F.length) || 0 : u.value, _ = (P = (U = R.referralProgram) == null ? void 0 : U.reward[d.value]) == null ? void 0 : P.rewards[x - 1];
|
|
141
142
|
l.value = {
|
|
142
143
|
threshold: {
|
|
143
144
|
from: _ != null && _.threshold ? _ != null && _.threshold.to ? _.threshold.to + 1 : (_ == null ? void 0 : _.threshold.from) + 1 : 1,
|
|
@@ -209,7 +210,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
209
210
|
hideSheet: L,
|
|
210
211
|
data: l
|
|
211
212
|
}), (e, t) => {
|
|
212
|
-
const i = w("FmStepperField"), v = w("FmHelperText"), b = w("FmTable"),
|
|
213
|
+
const i = w("FmStepperField"), v = w("FmHelperText"), b = w("FmTable"), F = w("FmButton"), U = w("FmSideSheet");
|
|
213
214
|
return C(), j(U, {
|
|
214
215
|
"max-width": 1e3,
|
|
215
216
|
modelValue: r(m),
|
|
@@ -218,13 +219,13 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
218
219
|
}, {
|
|
219
220
|
"side-sheet-footer": V(() => [
|
|
220
221
|
a("div", Ye, [
|
|
221
|
-
c(
|
|
222
|
+
c(F, {
|
|
222
223
|
label: r(p)("connect.editTierSheet.submit"),
|
|
223
224
|
onClick: M,
|
|
224
225
|
disabled: r(T).length > 0 || r(W)().isLoading,
|
|
225
226
|
loading: r(W)().isLoading
|
|
226
227
|
}, null, 8, ["label", "disabled", "loading"]),
|
|
227
|
-
c(
|
|
228
|
+
c(F, {
|
|
228
229
|
label: r(p)("connect.editTierSheet.cancel"),
|
|
229
230
|
onClick: t[3] || (t[3] = (P) => L()),
|
|
230
231
|
variant: "tertiary"
|
|
@@ -310,8 +311,8 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
310
311
|
}
|
|
311
312
|
},
|
|
312
313
|
emits: ["update:model-value"],
|
|
313
|
-
setup(
|
|
314
|
-
const I =
|
|
314
|
+
setup(k, { emit: n }) {
|
|
315
|
+
const I = k, p = n, g = G(() => [
|
|
315
316
|
le.enum.BILL_COMPLETED,
|
|
316
317
|
le.enum.FEEDBACK
|
|
317
318
|
].map((m) => Se[m]));
|
|
@@ -326,8 +327,8 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
326
327
|
disabled: I.disabled,
|
|
327
328
|
class: ce(["p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-3", {
|
|
328
329
|
"col-span-3": r(g).length == 1,
|
|
329
|
-
"border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]":
|
|
330
|
-
"hover:bg-fm-color-opacity-sm":
|
|
330
|
+
"border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": k.modelValue == u.value,
|
|
331
|
+
"hover:bg-fm-color-opacity-sm": k.modelValue != u.value
|
|
331
332
|
}]),
|
|
332
333
|
onClick: () => {
|
|
333
334
|
I.modelValue != u.value && !I.disabled && p("update:model-value", u.value);
|
|
@@ -352,7 +353,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
352
353
|
}, cr = /* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-600" }, "Feedback Criteria", -1), dr = { class: "flex items-center gap-8" }, ur = /* @__PURE__ */ q({
|
|
353
354
|
__name: "EditCriteriaSheet",
|
|
354
355
|
emits: ["update"],
|
|
355
|
-
setup(
|
|
356
|
+
setup(k, { expose: n, emit: I }) {
|
|
356
357
|
const { t: p } = Z(), g = I, m = $(!1), l = $(-1), d = $({}), u = Q(), R = xe.superRefine((y, f) => {
|
|
357
358
|
y.name.length >= 50 && f.addIssue({
|
|
358
359
|
code: "custom",
|
|
@@ -370,7 +371,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
370
371
|
m.value = y, y && typeof f == "number" && f >= 0 ? (l.value = f, d.value = H(
|
|
371
372
|
(o = u.referralProgram) == null ? void 0 : o.criteria[f]
|
|
372
373
|
)) : (l.value = -1, d.value = {
|
|
373
|
-
_id: new
|
|
374
|
+
_id: new Fe().toString(),
|
|
374
375
|
name: "",
|
|
375
376
|
type: "AUTO",
|
|
376
377
|
event: { type: "BILL_COMPLETED" }
|
|
@@ -468,7 +469,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
468
469
|
])) : z("", !0),
|
|
469
470
|
r(d).event.type == r(se).enum.FEEDBACK ? (C(), B("div", ir, [
|
|
470
471
|
cr,
|
|
471
|
-
c(
|
|
472
|
+
c(ke, {
|
|
472
473
|
"model-value": r(d).event.rule,
|
|
473
474
|
"onUpdate:modelValue": f[4] || (f[4] = (e) => r(d).event.rule = e)
|
|
474
475
|
}, null, 8, ["model-value"])
|
|
@@ -482,7 +483,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
482
483
|
}
|
|
483
484
|
});
|
|
484
485
|
function he() {
|
|
485
|
-
const
|
|
486
|
+
const k = $(!1), n = Ce();
|
|
486
487
|
return {
|
|
487
488
|
confirmUpdateReferralRecord: async () => {
|
|
488
489
|
await new Promise((p) => {
|
|
@@ -492,13 +493,13 @@ function he() {
|
|
|
492
493
|
primaryActions: { text: "Update all", close: !0 },
|
|
493
494
|
secondaryActions: { text: "Update future only", close: !0 }
|
|
494
495
|
}).onPrimary(async () => {
|
|
495
|
-
|
|
496
|
+
k.value = !0, p();
|
|
496
497
|
}).onSecondary(async () => {
|
|
497
|
-
|
|
498
|
+
k.value = !1, p();
|
|
498
499
|
});
|
|
499
500
|
});
|
|
500
501
|
},
|
|
501
|
-
updateReferralRecord:
|
|
502
|
+
updateReferralRecord: k
|
|
502
503
|
};
|
|
503
504
|
}
|
|
504
505
|
const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex justify-between items-center" }, pr = /* @__PURE__ */ a("div", null, [
|
|
@@ -506,7 +507,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
506
507
|
/* @__PURE__ */ a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Set participation rules to start your referral program ")
|
|
507
508
|
], -1), hr = /* @__PURE__ */ q({
|
|
508
509
|
__name: "ManageCriteriaSheet",
|
|
509
|
-
setup(
|
|
510
|
+
setup(k, { expose: n }) {
|
|
510
511
|
const { t: I } = Z(), { minor: p } = ue, { confirmUpdateReferralRecord: g, updateReferralRecord: m } = he(), l = $(!1), d = $({}), u = Q(), R = $(
|
|
511
512
|
null
|
|
512
513
|
), A = G(() => {
|
|
@@ -627,7 +628,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
627
628
|
}), _r = { class: "flex flex-col space-y-16 pr-12" }, vr = { class: "fm-typo-en-title-sm-800" }, gr = { class: "flex items-center gap-8" }, wr = /* @__PURE__ */ q({
|
|
628
629
|
__name: "EditRefereeRewardSheet",
|
|
629
630
|
emits: ["update"],
|
|
630
|
-
setup(
|
|
631
|
+
setup(k, { expose: n, emit: I }) {
|
|
631
632
|
const { t: p } = Z(), g = I, m = $(!1), l = $([]), d = Q();
|
|
632
633
|
function u() {
|
|
633
634
|
g("update", l.value);
|
|
@@ -737,15 +738,15 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
737
738
|
}), yr = { class: "fm-typo-en-title-sm-600" }, br = { class: "grid grid-cols-4 xs:grid-cols-1 gap-4 divide-x xs:divide-x-0" }, xr = { class: "flex gap-x-8" }, Cr = { class: "fm-typo-body-lg-600 flex items-center gap-x-4" }, Rr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sr = { class: "mb-40" }, $r = {
|
|
738
739
|
key: 0,
|
|
739
740
|
class: "flex flex-col items-center justify-center gap-y-16 p-24"
|
|
740
|
-
},
|
|
741
|
+
}, kr = /* @__PURE__ */ a("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
741
742
|
/* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-800" }, "Create progressive reward"),
|
|
742
743
|
/* @__PURE__ */ 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 ")
|
|
743
|
-
], -1),
|
|
744
|
+
], -1), Fr = /* @__PURE__ */ a("img", {
|
|
744
745
|
src: ge,
|
|
745
746
|
class: "aspect-square w-[150px]"
|
|
746
|
-
}, null, -1), Pr = { class: "flex flex-col gap-16 text-center" }, Vr = { class: "fm-typo-en-title-sm-800" }, Ir = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
747
|
+
}, null, -1), Pr = { class: "flex flex-col gap-16 text-center" }, Vr = { class: "fm-typo-en-title-sm-800" }, Ir = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, tt = /* @__PURE__ */ q({
|
|
747
748
|
__name: "Overview",
|
|
748
|
-
setup(
|
|
749
|
+
setup(k) {
|
|
749
750
|
const { t: n } = Z(), { minor: I } = ue, p = Pe(), g = Q(), { confirmUpdateReferralRecord: m, updateReferralRecord: l } = he(), d = G(() => {
|
|
750
751
|
var e;
|
|
751
752
|
return ((e = g.referralProgram) == null ? void 0 : e.reward) ?? [];
|
|
@@ -807,15 +808,15 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
807
808
|
g.referralProgram
|
|
808
809
|
), b = v.reward[e.groupIndex];
|
|
809
810
|
b.rewards[t] = e.referralCount;
|
|
810
|
-
const
|
|
811
|
-
if (
|
|
811
|
+
const F = b.rewards[t - 1], U = b.rewards[t + 1];
|
|
812
|
+
if (F && F.threshold.to != i.threshold.from - 1) {
|
|
812
813
|
if (!await K.confirm(
|
|
813
814
|
n(
|
|
814
815
|
"connect.referral.referral_count.update.range_discontinuous.previous",
|
|
815
816
|
{
|
|
816
|
-
name:
|
|
817
|
-
from:
|
|
818
|
-
to:
|
|
817
|
+
name: F.threshold.from,
|
|
818
|
+
from: F.threshold.from ?? 0,
|
|
819
|
+
to: F.threshold.to ?? 1 / 0,
|
|
819
820
|
newTo: i.threshold.from - 1
|
|
820
821
|
}
|
|
821
822
|
),
|
|
@@ -823,7 +824,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
823
824
|
n("connect.referral.referral_count.remove.next_range")
|
|
824
825
|
))
|
|
825
826
|
return;
|
|
826
|
-
|
|
827
|
+
F.threshold.to = i.threshold.from - 1;
|
|
827
828
|
}
|
|
828
829
|
if (U && U.threshold.from - 1 != i.threshold.to) {
|
|
829
830
|
if (!await K.confirm(
|
|
@@ -931,7 +932,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
931
932
|
return ve(async () => {
|
|
932
933
|
await g.readReferralProgram();
|
|
933
934
|
}), (e, t) => {
|
|
934
|
-
const i = w("FmCard"), v = w("FmIcon"), b = w("FmTooltip"),
|
|
935
|
+
const i = w("FmCard"), v = w("FmIcon"), b = w("FmTooltip"), F = w("FmButton"), U = w("FmTable"), P = w("FmList");
|
|
935
936
|
return C(), B(Y, null, [
|
|
936
937
|
z("", !0),
|
|
937
938
|
c(i, {
|
|
@@ -969,7 +970,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
969
970
|
}, 1032, ["content"])) : z("", !0)
|
|
970
971
|
]),
|
|
971
972
|
a("div", Rr, O(x.sublabel), 1),
|
|
972
|
-
x.action ? (C(), j(
|
|
973
|
+
x.action ? (C(), j(F, {
|
|
973
974
|
key: 0,
|
|
974
975
|
variant: "plain",
|
|
975
976
|
label: x.action,
|
|
@@ -1013,8 +1014,8 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
1013
1014
|
}, null, 8, ["row-data", "onRowClick"])
|
|
1014
1015
|
]),
|
|
1015
1016
|
x.rewards.length ? z("", !0) : (C(), B("div", $r, [
|
|
1016
|
-
|
|
1017
|
-
c(
|
|
1017
|
+
kr,
|
|
1018
|
+
c(F, {
|
|
1018
1019
|
variant: "secondary",
|
|
1019
1020
|
label: "Add count",
|
|
1020
1021
|
icon: "add",
|
|
@@ -1035,12 +1036,12 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
1035
1036
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
1036
1037
|
}, {
|
|
1037
1038
|
default: V(() => [
|
|
1038
|
-
|
|
1039
|
+
Fr,
|
|
1039
1040
|
a("div", Pr, [
|
|
1040
1041
|
a("div", Vr, O(r(n)("connect.referral.referral_tier_title")), 1),
|
|
1041
1042
|
a("div", Ir, O(r(n)("connect.referral.referral_tier_description")), 1)
|
|
1042
1043
|
]),
|
|
1043
|
-
c(
|
|
1044
|
+
c(F, {
|
|
1044
1045
|
variant: "primary",
|
|
1045
1046
|
label: r(n)("connect.referral.add_referral_tier"),
|
|
1046
1047
|
icon: "add",
|
|
@@ -1073,5 +1074,5 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
1073
1074
|
}
|
|
1074
1075
|
});
|
|
1075
1076
|
export {
|
|
1076
|
-
|
|
1077
|
+
tt as default
|
|
1077
1078
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { defineComponent as j, ref as P, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as b, Fragment as w, createVNode as r, unref as t, withCtx as y, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as C, resolveDynamicComponent as q } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as G, components as J } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Q
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
4
|
+
import { p as Q } from "./plugins-DKPF0eaB.js";
|
|
5
|
+
import { u as W } from "./loading-BbC_ZIPE.js";
|
|
6
|
+
import { u as X } from "./business-C8PXQSRE.js";
|
|
7
|
+
import { u as Y } from "./campaign-CuZ6u4yy.js";
|
|
8
|
+
import { g as Z, a as V, b as I } from "./campaign-B4eKVpps.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 _ } from "./index-
|
|
10
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DxPsGM7d.js";
|
|
11
|
+
import { u as oe } from "./template-BSQzNJs5.js";
|
|
12
|
+
import { u as ae } from "./vue-i18n-CvvsV6dR.js";
|
|
13
|
+
import { c as _ } from "./index-gTmOLzQU.js";
|
|
13
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 = /* @__PURE__ */ n("img", {
|
|
14
15
|
src: z,
|
|
15
16
|
class: "aspect-square w-[150px]"
|
|
16
|
-
}, null, -1), _e = { class: "flex flex-col gap-16 text-center" }, he = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
17
|
+
}, null, -1), _e = { class: "flex flex-col gap-16 text-center" }, he = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = /* @__PURE__ */ j({
|
|
17
18
|
__name: "Point",
|
|
18
19
|
setup(we) {
|
|
19
20
|
const { t: s } = ae(), B = {
|
|
@@ -219,5 +220,5 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
219
220
|
}
|
|
220
221
|
});
|
|
221
222
|
export {
|
|
222
|
-
|
|
223
|
+
Ne as default
|
|
223
224
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { defineComponent as H, ref as P, computed as q, h as z, onMounted as G, resolveComponent as r, openBlock as m, createElementBlock as h, Fragment as w, createVNode as i, unref as n, createElementVNode as s, withCtx as v, renderList as J, createBlock as b, resolveDynamicComponent as Q, toDisplayString as g } from "vue";
|
|
2
2
|
import { _ as W } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as X, components as Y } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as O, p as I
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { c as O, p as I } from "./plugins-DKPF0eaB.js";
|
|
5
|
+
import { u as Z } from "./loading-BbC_ZIPE.js";
|
|
6
|
+
import { u as ee } from "./business-C8PXQSRE.js";
|
|
7
|
+
import { u as oe } from "./campaign-CuZ6u4yy.js";
|
|
8
|
+
import { u as te } from "./vue-i18n-CvvsV6dR.js";
|
|
9
|
+
import { g as ne, a as V } from "./campaign-B4eKVpps.js";
|
|
10
|
+
import { e as L } from "./effect-D9-UiBiK.js";
|
|
10
11
|
import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
11
|
-
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as ce } from "./template-
|
|
13
|
-
import { c as u } from "./index-
|
|
12
|
+
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DxPsGM7d.js";
|
|
13
|
+
import { u as ce } from "./template-BSQzNJs5.js";
|
|
14
|
+
import { c as u } from "./index-gTmOLzQU.js";
|
|
14
15
|
const 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" }, me = { class: "space-y-8" }, pe = { class: "flex w-full gap-4 items-center" }, de = { 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" }, ye = /* @__PURE__ */ s("img", {
|
|
15
16
|
src: W,
|
|
16
17
|
class: "aspect-square w-[150px]"
|
|
17
|
-
}, null, -1), ge = { 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" },
|
|
18
|
+
}, null, -1), ge = { 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" }, Me = /* @__PURE__ */ H({
|
|
18
19
|
__name: "Promotion",
|
|
19
20
|
setup(we) {
|
|
20
21
|
const { t } = te(), T = {
|
|
@@ -250,5 +251,5 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
250
251
|
}
|
|
251
252
|
});
|
|
252
253
|
export {
|
|
253
|
-
|
|
254
|
+
Me as default
|
|
254
255
|
};
|