@feedmepos/mf-connect 0.1.31-prod → 0.1.33-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-CSyE-O7F.js → Analytic-Co2Hg28w.js} +11 -11
- package/dist/{App-CI6T_Ggm.js → App-YD2uTuCN.js} +6 -6
- package/dist/{Bin-D129K0UY.js → Bin-CS5h1RIu.js} +8 -8
- package/dist/{Broadcast-1YnrjwTp.js → Broadcast-CZFyQp7d.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CUBa7vmH.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BemXOK1e.js} +6 -6
- package/dist/{Card-DnKxZI51.js → Card-z8Ulll5P.js} +97 -96
- package/dist/{Collections-H1k_V_JM.js → Collections-C-d6-7_x.js} +21 -20
- package/dist/{Credit-vgVhr8NN.js → Credit-dbi2wB84.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DdqBz-Sf.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyUjlGB0.js} +29 -28
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-yeZq9E-H.js → EffectSheet.vue_vue_type_style_index_0_lang-JLICv-XJ.js} +6 -6
- package/dist/{Experience-DF0WMhAg.js → Experience-Cw6xpFeZ.js} +9 -9
- package/dist/FileSaver.min-NlMItPOc.js +74 -0
- package/dist/{Game-9aC2CMq1.js → Game-B-e2kaT1.js} +10 -10
- package/dist/{Index-raxs8-hT.js → Index-SoIcUgrm.js} +10 -10
- package/dist/{Marketing-BhCFLx2Z.js → Marketing-CVrykKnH.js} +6 -6
- package/dist/Member-DO-Y7K68.js +287 -0
- package/dist/{MemberList-DLJxPc32.js → MemberList-DIN5h-gR.js} +38 -37
- package/dist/{MemberTransactions-cNPt5lU8.js → MemberTransactions-nkBigpMB.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLfpoWwi.js → MessageInput.vue_vue_type_script_setup_true_lang-CJdZuztF.js} +17 -16
- package/dist/{Mission-DTqWDFkL.js → Mission-Be7oWF9U.js} +88 -93
- package/dist/{Overview-Di1RiMiZ.js → Overview-D5vsXK9o.js} +64 -63
- package/dist/{Point-C7vAdfqf.js → Point-CxipyJ-q.js} +9 -9
- package/dist/{Promotion-DwAl2ueC.js → Promotion-CxnPlE2K.js} +10 -10
- package/dist/{Queue-Ckh5U2q9.js → Queue-CmqdtFUH.js} +72 -63
- package/dist/{Record-CS22Hick.js → Record-DMPpt6UJ.js} +17 -16
- package/dist/{Reward-ceTGl-6M.js → Reward-Dq4YJFIA.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-N5HNvabk.js → RewardGroup.vue_vue_type_script_setup_true_lang-DWOILpY3.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Bln0CsrL.js → RuleGroup.vue_vue_type_script_setup_true_lang-PBDAieUm.js} +15 -14
- package/dist/Segment-DLnAIOp1.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CdBSrSG-.js → SelectItems.vue_vue_type_script_setup_true_lang-DJlk6P0T.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-3WYVAiVq.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDQ65Cvv.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D5kPXWZM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CgFxMZkx.js} +3 -3
- package/dist/{Setting-B080_HzI.js → Setting-DD2veGG7.js} +43 -42
- package/dist/{Store-DTeptzE3.js → Store-BHX4yRF4.js} +28 -27
- package/dist/{StoreRewards-CNrENhoO.js → StoreRewards-DcZwldzN.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-D39kPD0g.js → StoreTransactions.vue_vue_type_script_setup_true_lang-0_JejsOU.js} +26 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-YeLylLcx.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DhQNoPO5.js} +1 -1
- package/dist/{Tier-DCtk62vI.js → Tier--njI2EvF.js} +22 -21
- package/dist/{Title-WLmc_Sgb.js → Title-D8YB1KwZ.js} +19 -19
- package/dist/{Transaction-DrZ66hh2.js → Transaction-CzVitP3M.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B934hePK.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Dn0amdd3.js} +6 -6
- package/dist/{Voucher-BWxGUu1r.js → Voucher-DwtCnP8w.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Cwm5rKfF.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DoRivv52.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DgNwerl-.js → ZodTextField.vue_vue_type_script_setup_true_lang-DSB9k75Y.js} +1 -1
- package/dist/{app-CD95Y8ID.js → app-CQRB7I5K.js} +1 -1
- package/dist/{app-DXDpfEp1.js → app-H5Nfj0Kj.js} +34 -30
- package/dist/app.js +1 -1
- package/dist/{business-BMmMPKlg.js → business-BD1xVHsg.js} +1 -1
- package/dist/{campaign-DsHXtfeO.js → campaign-2jAMivOE.js} +2 -2
- package/dist/{campaign-CXiUdGVH.js → campaign-Bb1wuQdY.js} +9 -9
- package/dist/{campaign.enum-BmZUaKGr.js → campaign.enum-OZ3v-5ZH.js} +1 -1
- package/dist/{campaign.fn-0yxgF1-s.js → campaign.fn-DGw-fFB0.js} +78 -78
- package/dist/{collectible.enum-CkHgwpV8.js → collectible.enum-21CN4Vsl.js} +1 -1
- package/dist/{collection.fn-BEL2ePbu.js → collection.fn-DpsET9oE.js} +2 -2
- package/dist/{dto-C9i038zS.js → dto-Ct9pFL11.js} +12 -12
- package/dist/{effect-hnRcV89q.js → effect-CrY62aJn.js} +1 -1
- package/dist/{email-addresses-B3aOGn9Q.js → email-addresses-2mZ3tNRf.js} +1 -1
- package/dist/{export-DhXPjZn4.js → export-cukcGV7Q.js} +3 -3
- package/dist/{helper-B91UqTPy.js → helper-CZvv8YqE.js} +1 -1
- package/dist/{index-DdkPyb-X.js → index-B8uC64Qm.js} +346 -346
- package/dist/{index-CkB8qWx9.js → index-B_PlQ967.js} +1 -1
- package/dist/{plugins-CA83RlbH.js → index-BbeEHgvu.js} +3784 -3989
- package/dist/{index-Bv_q5cPS.js → index-BdzOrIZ7.js} +1 -1
- package/dist/{index-DwUvEDm8.js → index-BkgbBp9l.js} +2 -2
- package/dist/{index-CaQznIQx.js → index-BxEQR5a4.js} +1 -1
- package/dist/{index-Dk0fL4Um.js → index-Bzkan3ZR.js} +1 -1
- package/dist/{index-DUESWqjo.js → index-CB4K6lnR.js} +1 -1
- package/dist/{index-DRolGtez.js → index-Cliq3cQb.js} +3 -3
- package/dist/{index-BpiC24Lh.js → index-D2vULsbp.js} +6 -6
- package/dist/{index-MTD1KXCx.js → index-D_qaVSuj.js} +1 -1
- package/dist/{index-h-U0YoGx.js → index-DvESxk9B.js} +469 -456
- package/dist/{index-mWR-Io8r.js → index-uenvHfm3.js} +1 -1
- package/dist/{index.esm2017-DvR1i10j.js → index.esm2017-D4SYmjlC.js} +1 -1
- package/dist/{loading-CYFHRqwc.js → loading-zALstVD_.js} +1 -1
- package/dist/{membership-t5YCs8vf.js → membership-B4kzNrdV.js} +54 -48
- package/dist/{money-u692Iuhj.js → money-DD93KSIZ.js} +1 -1
- package/dist/{number-BFoRQ3UV.js → number-RE8pNotC.js} +1 -1
- package/dist/{objectid-ySkduRSJ.js → objectid-B79yJhh3.js} +5 -5
- package/dist/plugins-77kIdghj.js +208 -0
- package/dist/{reward-BxAjgaY0.js → reward-DObERFDg.js} +1 -1
- package/dist/{rule-B2-KiDax.js → rule-CmevFzjt.js} +3 -3
- package/dist/{rule-builder-D3z1ZTIu.js → rule-builder-CGw5WvTI.js} +1 -1
- package/dist/{template-Ep0uKJmD.js → template-X_Z36LWQ.js} +4 -4
- package/dist/{trigger-i6Qv7Nko.js → trigger-ybZ3np3i.js} +4 -4
- package/dist/{user-bkYeGrIH.js → user-CTQPhh1u.js} +1 -1
- package/dist/{vue-i18n-2yeRgkZ7.js → vue-i18n-BFISHEOF.js} +112 -112
- package/dist/{xlsx-DIyBpsUe.js → xlsx-B9v9c4jL.js} +379 -379
- package/package.json +1 -1
- package/dist/Member-ej-Yvlr1.js +0 -348
- package/dist/Segment-CT4UwYMZ.js +0 -578
|
@@ -1,27 +1,28 @@
|
|
|
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 { u as ue } from "./loading-
|
|
5
|
-
import { c as we, p as K } from "./plugins-
|
|
3
|
+
import { u as Z } from "./vue-i18n-BFISHEOF.js";
|
|
4
|
+
import { u as ue } from "./loading-zALstVD_.js";
|
|
5
|
+
import { c as we, p as K } from "./plugins-77kIdghj.js";
|
|
6
6
|
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
7
7
|
import { Z as N } from "./zod-Bg2FbC-D.js";
|
|
8
8
|
import { u as W } from "./app-wDQR6dpb.js";
|
|
9
|
-
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as me } from "./reward-
|
|
11
|
-
import {
|
|
12
|
-
import "./index-
|
|
13
|
-
import { a as be, b as xe } from "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
9
|
+
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-DWOILpY3.js";
|
|
10
|
+
import { u as me } from "./reward-DObERFDg.js";
|
|
11
|
+
import { l as le, c as se } from "./index-DvESxk9B.js";
|
|
12
|
+
import "./index-BkgbBp9l.js";
|
|
13
|
+
import { a as be, b as xe } from "./index-D2vULsbp.js";
|
|
14
|
+
import "./index-B_PlQ967.js";
|
|
15
|
+
import "./index-Cliq3cQb.js";
|
|
16
|
+
import "./index-BbeEHgvu.js";
|
|
17
|
+
import { C as fe } from "./membership-B4kzNrdV.js";
|
|
18
|
+
import { t as ee } from "./helper-CZvv8YqE.js";
|
|
18
19
|
import { c as H } from "./object-qECH92oz.js";
|
|
19
20
|
import { useDialog as Ce, components as oe } from "@feedmepos/ui-library";
|
|
20
|
-
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { T as Se, _ as $e, a as
|
|
22
|
-
import { O as
|
|
23
|
-
import { r as pe } from "./index-
|
|
24
|
-
import { u as Pe } from "./business-
|
|
21
|
+
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DSB9k75Y.js";
|
|
22
|
+
import { T as Se, _ as $e, a as Fe } from "./trigger-ybZ3np3i.js";
|
|
23
|
+
import { O as ke } from "./objectid-B79yJhh3.js";
|
|
24
|
+
import { r as pe } from "./index-Bzkan3ZR.js";
|
|
25
|
+
import { u as Pe } from "./business-BD1xVHsg.js";
|
|
25
26
|
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({
|
|
26
27
|
__name: "ReferralRewadGroupCard",
|
|
27
28
|
props: {
|
|
@@ -35,13 +36,13 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
emits: ["edit", "addCount", "remove"],
|
|
38
|
-
setup(
|
|
39
|
+
setup(F, { emit: n }) {
|
|
39
40
|
const { t: I } = Z(), p = n;
|
|
40
41
|
return (g, m) => {
|
|
41
42
|
const l = w("FmButton"), d = w("FmListItem");
|
|
42
43
|
return C(), B(Y, null, [
|
|
43
44
|
c(d, {
|
|
44
|
-
onClick: m[4] || (m[4] = (u) => p("edit",
|
|
45
|
+
onClick: m[4] || (m[4] = (u) => p("edit", F.level)),
|
|
45
46
|
class: "!p-0"
|
|
46
47
|
}, {
|
|
47
48
|
default: V(() => [
|
|
@@ -49,7 +50,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
49
50
|
a("div", Ie, [
|
|
50
51
|
a("div", Te, [
|
|
51
52
|
a("div", Ue, [
|
|
52
|
-
a("div", Ae, O(
|
|
53
|
+
a("div", Ae, O(F.rewardGroup.name), 1)
|
|
53
54
|
])
|
|
54
55
|
])
|
|
55
56
|
]),
|
|
@@ -59,13 +60,13 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
59
60
|
label: r(I)("connect.referral.reward.add_count"),
|
|
60
61
|
icon: "add",
|
|
61
62
|
onClick: m[0] || (m[0] = (u) => {
|
|
62
|
-
u.stopPropagation(), p("addCount",
|
|
63
|
+
u.stopPropagation(), p("addCount", F.level);
|
|
63
64
|
})
|
|
64
65
|
}, null, 8, ["label"]),
|
|
65
66
|
c(l, {
|
|
66
67
|
icon: "delete",
|
|
67
68
|
onClick: m[1] || (m[1] = (u) => {
|
|
68
|
-
u.stopPropagation(), p("remove",
|
|
69
|
+
u.stopPropagation(), p("remove", F.level);
|
|
69
70
|
}),
|
|
70
71
|
variant: "tertiary"
|
|
71
72
|
})
|
|
@@ -76,14 +77,14 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
76
77
|
a("div", Oe, [
|
|
77
78
|
a("div", je, [
|
|
78
79
|
a("div", null, [
|
|
79
|
-
a("div", De, O(
|
|
80
|
+
a("div", De, O(F.rewardGroup.name), 1)
|
|
80
81
|
])
|
|
81
82
|
])
|
|
82
83
|
]),
|
|
83
84
|
c(l, {
|
|
84
85
|
variant: "tertiary",
|
|
85
86
|
icon: "delete",
|
|
86
|
-
onClick: m[2] || (m[2] = (u) => (u.stopPropagation(), p("remove",
|
|
87
|
+
onClick: m[2] || (m[2] = (u) => (u.stopPropagation(), p("remove", F.level)))
|
|
87
88
|
})
|
|
88
89
|
]),
|
|
89
90
|
c(l, {
|
|
@@ -92,7 +93,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
92
93
|
label: "Add count",
|
|
93
94
|
disabled: !0,
|
|
94
95
|
icon: "add",
|
|
95
|
-
onClick: m[3] || (m[3] = (u) => (u.stopPropagation(), p("addCount",
|
|
96
|
+
onClick: m[3] || (m[3] = (u) => (u.stopPropagation(), p("addCount", F.level)))
|
|
96
97
|
})
|
|
97
98
|
])
|
|
98
99
|
]),
|
|
@@ -105,10 +106,10 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
105
106
|
}), 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({
|
|
106
107
|
__name: "EditReferralCountSheet",
|
|
107
108
|
emits: ["update"],
|
|
108
|
-
setup(
|
|
109
|
+
setup(F, { expose: n, emit: I }) {
|
|
109
110
|
const { t: p } = Z(), g = I, m = $(!1), l = $({}), d = $(-1), u = $(-1), R = Q(), A = be.superRefine((e, t) => {
|
|
110
|
-
var
|
|
111
|
-
const i = u.value == -1 ? ((P = (U = (
|
|
111
|
+
var k, U, P, x, _, E, ae;
|
|
112
|
+
const i = u.value == -1 ? ((P = (U = (k = R.referralProgram) == null ? void 0 : k.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];
|
|
112
113
|
v && e.threshold.from < v.threshold.from + 1 && t.addIssue({
|
|
113
114
|
code: "custom",
|
|
114
115
|
message: `The min referral must be at least ${v.threshold.from + 1}`,
|
|
@@ -131,14 +132,14 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
131
132
|
});
|
|
132
133
|
}
|
|
133
134
|
async function D(e, t) {
|
|
134
|
-
var i, v, b,
|
|
135
|
+
var i, v, b, k, U, P;
|
|
135
136
|
if (m.value = e, e && typeof (t == null ? void 0 : t.countIndex) == "number" && t.countIndex >= 0)
|
|
136
137
|
d.value = t.groupIndex, u.value = t.countIndex, l.value = H(
|
|
137
138
|
(i = R.referralProgram) == null ? void 0 : i.reward[t.groupIndex].rewards[t.countIndex]
|
|
138
139
|
);
|
|
139
140
|
else {
|
|
140
141
|
d.value = t.groupIndex, u.value = -1;
|
|
141
|
-
const x = u.value == -1 ? ((
|
|
142
|
+
const x = u.value == -1 ? ((k = (b = (v = R.referralProgram) == null ? void 0 : v.reward[d.value]) == null ? void 0 : b.rewards) == null ? void 0 : k.length) || 0 : u.value, _ = (P = (U = R.referralProgram) == null ? void 0 : U.reward[d.value]) == null ? void 0 : P.rewards[x - 1];
|
|
142
143
|
l.value = {
|
|
143
144
|
threshold: {
|
|
144
145
|
from: _ != null && _.threshold ? _ != null && _.threshold.to ? _.threshold.to + 1 : (_ == null ? void 0 : _.threshold.from) + 1 : 1,
|
|
@@ -210,7 +211,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
210
211
|
hideSheet: L,
|
|
211
212
|
data: l
|
|
212
213
|
}), (e, t) => {
|
|
213
|
-
const i = w("FmStepperField"), v = w("FmHelperText"), b = w("FmTable"),
|
|
214
|
+
const i = w("FmStepperField"), v = w("FmHelperText"), b = w("FmTable"), k = w("FmButton"), U = w("FmSideSheet");
|
|
214
215
|
return C(), j(U, {
|
|
215
216
|
"max-width": 1e3,
|
|
216
217
|
modelValue: r(m),
|
|
@@ -219,13 +220,13 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
219
220
|
}, {
|
|
220
221
|
"side-sheet-footer": V(() => [
|
|
221
222
|
a("div", Ye, [
|
|
222
|
-
c(
|
|
223
|
+
c(k, {
|
|
223
224
|
label: r(p)("connect.editTierSheet.submit"),
|
|
224
225
|
onClick: M,
|
|
225
226
|
disabled: r(T).length > 0 || r(W)().isLoading,
|
|
226
227
|
loading: r(W)().isLoading
|
|
227
228
|
}, null, 8, ["label", "disabled", "loading"]),
|
|
228
|
-
c(
|
|
229
|
+
c(k, {
|
|
229
230
|
label: r(p)("connect.editTierSheet.cancel"),
|
|
230
231
|
onClick: t[3] || (t[3] = (P) => L()),
|
|
231
232
|
variant: "tertiary"
|
|
@@ -311,8 +312,8 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
311
312
|
}
|
|
312
313
|
},
|
|
313
314
|
emits: ["update:model-value"],
|
|
314
|
-
setup(
|
|
315
|
-
const I =
|
|
315
|
+
setup(F, { emit: n }) {
|
|
316
|
+
const I = F, p = n, g = G(() => [
|
|
316
317
|
le.enum.BILL_COMPLETED,
|
|
317
318
|
le.enum.FEEDBACK
|
|
318
319
|
].map((m) => Se[m]));
|
|
@@ -327,8 +328,8 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
327
328
|
disabled: I.disabled,
|
|
328
329
|
class: ce(["p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-3", {
|
|
329
330
|
"col-span-3": r(g).length == 1,
|
|
330
|
-
"border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]":
|
|
331
|
-
"hover:bg-fm-color-opacity-sm":
|
|
331
|
+
"border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": F.modelValue == u.value,
|
|
332
|
+
"hover:bg-fm-color-opacity-sm": F.modelValue != u.value
|
|
332
333
|
}]),
|
|
333
334
|
onClick: () => {
|
|
334
335
|
I.modelValue != u.value && !I.disabled && p("update:model-value", u.value);
|
|
@@ -353,7 +354,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
353
354
|
}, cr = /* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-600" }, "Feedback Criteria", -1), dr = { class: "flex items-center gap-8" }, ur = /* @__PURE__ */ q({
|
|
354
355
|
__name: "EditCriteriaSheet",
|
|
355
356
|
emits: ["update"],
|
|
356
|
-
setup(
|
|
357
|
+
setup(F, { expose: n, emit: I }) {
|
|
357
358
|
const { t: p } = Z(), g = I, m = $(!1), l = $(-1), d = $({}), u = Q(), R = xe.superRefine((y, f) => {
|
|
358
359
|
y.name.length >= 50 && f.addIssue({
|
|
359
360
|
code: "custom",
|
|
@@ -371,7 +372,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
371
372
|
m.value = y, y && typeof f == "number" && f >= 0 ? (l.value = f, d.value = H(
|
|
372
373
|
(o = u.referralProgram) == null ? void 0 : o.criteria[f]
|
|
373
374
|
)) : (l.value = -1, d.value = {
|
|
374
|
-
_id: new
|
|
375
|
+
_id: new ke().toString(),
|
|
375
376
|
name: "",
|
|
376
377
|
type: "AUTO",
|
|
377
378
|
event: { type: "BILL_COMPLETED" }
|
|
@@ -469,7 +470,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
469
470
|
])) : z("", !0),
|
|
470
471
|
r(d).event.type == r(se).enum.FEEDBACK ? (C(), B("div", ir, [
|
|
471
472
|
cr,
|
|
472
|
-
c(
|
|
473
|
+
c(Fe, {
|
|
473
474
|
"model-value": r(d).event.rule,
|
|
474
475
|
"onUpdate:modelValue": f[4] || (f[4] = (e) => r(d).event.rule = e)
|
|
475
476
|
}, null, 8, ["model-value"])
|
|
@@ -483,7 +484,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
483
484
|
}
|
|
484
485
|
});
|
|
485
486
|
function he() {
|
|
486
|
-
const
|
|
487
|
+
const F = $(!1), n = Ce();
|
|
487
488
|
return {
|
|
488
489
|
confirmUpdateReferralRecord: async () => {
|
|
489
490
|
await new Promise((p) => {
|
|
@@ -493,13 +494,13 @@ function he() {
|
|
|
493
494
|
primaryActions: { text: "Update all", close: !0 },
|
|
494
495
|
secondaryActions: { text: "Update future only", close: !0 }
|
|
495
496
|
}).onPrimary(async () => {
|
|
496
|
-
|
|
497
|
+
F.value = !0, p();
|
|
497
498
|
}).onSecondary(async () => {
|
|
498
|
-
|
|
499
|
+
F.value = !1, p();
|
|
499
500
|
});
|
|
500
501
|
});
|
|
501
502
|
},
|
|
502
|
-
updateReferralRecord:
|
|
503
|
+
updateReferralRecord: F
|
|
503
504
|
};
|
|
504
505
|
}
|
|
505
506
|
const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex justify-between items-center" }, pr = /* @__PURE__ */ a("div", null, [
|
|
@@ -507,7 +508,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
507
508
|
/* @__PURE__ */ a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Set participation rules to start your referral program ")
|
|
508
509
|
], -1), hr = /* @__PURE__ */ q({
|
|
509
510
|
__name: "ManageCriteriaSheet",
|
|
510
|
-
setup(
|
|
511
|
+
setup(F, { expose: n }) {
|
|
511
512
|
const { t: I } = Z(), { minor: p } = ue, { confirmUpdateReferralRecord: g, updateReferralRecord: m } = he(), l = $(!1), d = $({}), u = Q(), R = $(
|
|
512
513
|
null
|
|
513
514
|
), A = G(() => {
|
|
@@ -628,7 +629,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
628
629
|
}), _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({
|
|
629
630
|
__name: "EditRefereeRewardSheet",
|
|
630
631
|
emits: ["update"],
|
|
631
|
-
setup(
|
|
632
|
+
setup(F, { expose: n, emit: I }) {
|
|
632
633
|
const { t: p } = Z(), g = I, m = $(!1), l = $([]), d = Q();
|
|
633
634
|
function u() {
|
|
634
635
|
g("update", l.value);
|
|
@@ -738,15 +739,15 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
738
739
|
}), 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 = {
|
|
739
740
|
key: 0,
|
|
740
741
|
class: "flex flex-col items-center justify-center gap-y-16 p-24"
|
|
741
|
-
},
|
|
742
|
+
}, Fr = /* @__PURE__ */ a("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
742
743
|
/* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-800" }, "Create progressive reward"),
|
|
743
744
|
/* @__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 ")
|
|
744
|
-
], -1),
|
|
745
|
+
], -1), kr = /* @__PURE__ */ a("img", {
|
|
745
746
|
src: ge,
|
|
746
747
|
class: "aspect-square w-[150px]"
|
|
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" },
|
|
748
|
+
}, 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" }, ot = /* @__PURE__ */ q({
|
|
748
749
|
__name: "Overview",
|
|
749
|
-
setup(
|
|
750
|
+
setup(F) {
|
|
750
751
|
const { t: n } = Z(), { minor: I } = ue, p = Pe(), g = Q(), { confirmUpdateReferralRecord: m, updateReferralRecord: l } = he(), d = G(() => {
|
|
751
752
|
var e;
|
|
752
753
|
return ((e = g.referralProgram) == null ? void 0 : e.reward) ?? [];
|
|
@@ -808,15 +809,15 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
808
809
|
g.referralProgram
|
|
809
810
|
), b = v.reward[e.groupIndex];
|
|
810
811
|
b.rewards[t] = e.referralCount;
|
|
811
|
-
const
|
|
812
|
-
if (
|
|
812
|
+
const k = b.rewards[t - 1], U = b.rewards[t + 1];
|
|
813
|
+
if (k && k.threshold.to != i.threshold.from - 1) {
|
|
813
814
|
if (!await K.confirm(
|
|
814
815
|
n(
|
|
815
816
|
"connect.referral.referral_count.update.range_discontinuous.previous",
|
|
816
817
|
{
|
|
817
|
-
name:
|
|
818
|
-
from:
|
|
819
|
-
to:
|
|
818
|
+
name: k.threshold.from,
|
|
819
|
+
from: k.threshold.from ?? 0,
|
|
820
|
+
to: k.threshold.to ?? 1 / 0,
|
|
820
821
|
newTo: i.threshold.from - 1
|
|
821
822
|
}
|
|
822
823
|
),
|
|
@@ -824,7 +825,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
824
825
|
n("connect.referral.referral_count.remove.next_range")
|
|
825
826
|
))
|
|
826
827
|
return;
|
|
827
|
-
|
|
828
|
+
k.threshold.to = i.threshold.from - 1;
|
|
828
829
|
}
|
|
829
830
|
if (U && U.threshold.from - 1 != i.threshold.to) {
|
|
830
831
|
if (!await K.confirm(
|
|
@@ -932,7 +933,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
932
933
|
return ve(async () => {
|
|
933
934
|
await g.readReferralProgram();
|
|
934
935
|
}), (e, t) => {
|
|
935
|
-
const i = w("FmCard"), v = w("FmIcon"), b = w("FmTooltip"),
|
|
936
|
+
const i = w("FmCard"), v = w("FmIcon"), b = w("FmTooltip"), k = w("FmButton"), U = w("FmTable"), P = w("FmList");
|
|
936
937
|
return C(), B(Y, null, [
|
|
937
938
|
z("", !0),
|
|
938
939
|
c(i, {
|
|
@@ -970,7 +971,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
970
971
|
}, 1032, ["content"])) : z("", !0)
|
|
971
972
|
]),
|
|
972
973
|
a("div", Rr, O(x.sublabel), 1),
|
|
973
|
-
x.action ? (C(), j(
|
|
974
|
+
x.action ? (C(), j(k, {
|
|
974
975
|
key: 0,
|
|
975
976
|
variant: "plain",
|
|
976
977
|
label: x.action,
|
|
@@ -1014,8 +1015,8 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
1014
1015
|
}, null, 8, ["row-data", "onRowClick"])
|
|
1015
1016
|
]),
|
|
1016
1017
|
x.rewards.length ? z("", !0) : (C(), B("div", $r, [
|
|
1017
|
-
|
|
1018
|
-
c(
|
|
1018
|
+
Fr,
|
|
1019
|
+
c(k, {
|
|
1019
1020
|
variant: "secondary",
|
|
1020
1021
|
label: "Add count",
|
|
1021
1022
|
icon: "add",
|
|
@@ -1036,12 +1037,12 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
1036
1037
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
1037
1038
|
}, {
|
|
1038
1039
|
default: V(() => [
|
|
1039
|
-
|
|
1040
|
+
kr,
|
|
1040
1041
|
a("div", Pr, [
|
|
1041
1042
|
a("div", Vr, O(r(n)("connect.referral.referral_tier_title")), 1),
|
|
1042
1043
|
a("div", Ir, O(r(n)("connect.referral.referral_tier_description")), 1)
|
|
1043
1044
|
]),
|
|
1044
|
-
c(
|
|
1045
|
+
c(k, {
|
|
1045
1046
|
variant: "primary",
|
|
1046
1047
|
label: r(n)("connect.referral.add_referral_tier"),
|
|
1047
1048
|
icon: "add",
|
|
@@ -1074,5 +1075,5 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
|
|
|
1074
1075
|
}
|
|
1075
1076
|
});
|
|
1076
1077
|
export {
|
|
1077
|
-
|
|
1078
|
+
ot as default
|
|
1078
1079
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
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 } from "./plugins-
|
|
5
|
-
import { u as W } from "./loading-
|
|
6
|
-
import { u as X } from "./business-
|
|
7
|
-
import { u as Y } from "./campaign-
|
|
8
|
-
import { g as Z, a as V, b as I } from "./campaign-
|
|
4
|
+
import { p as Q } from "./plugins-77kIdghj.js";
|
|
5
|
+
import { u as W } from "./loading-zALstVD_.js";
|
|
6
|
+
import { u as X } from "./business-BD1xVHsg.js";
|
|
7
|
+
import { u as Y } from "./campaign-2jAMivOE.js";
|
|
8
|
+
import { g as Z, a as V, b as I } from "./campaign-Bb1wuQdY.js";
|
|
9
9
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as oe } from "./template-
|
|
12
|
-
import { u as ae } from "./vue-i18n-
|
|
13
|
-
import { c as _ } from "./index-
|
|
10
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyUjlGB0.js";
|
|
11
|
+
import { u as oe } from "./template-X_Z36LWQ.js";
|
|
12
|
+
import { u as ae } from "./vue-i18n-BFISHEOF.js";
|
|
13
|
+
import { c as _ } from "./index-CB4K6lnR.js";
|
|
14
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", {
|
|
15
15
|
src: z,
|
|
16
16
|
class: "aspect-square w-[150px]"
|
|
@@ -1,17 +1,17 @@
|
|
|
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 } from "./plugins-
|
|
5
|
-
import { u as Z } from "./loading-
|
|
6
|
-
import { u as ee } from "./business-
|
|
7
|
-
import { u as oe } from "./campaign-
|
|
8
|
-
import { u as te } from "./vue-i18n-
|
|
9
|
-
import { g as ne, a as V } from "./campaign-
|
|
10
|
-
import { e as L } from "./effect-
|
|
4
|
+
import { c as O, p as I } from "./plugins-77kIdghj.js";
|
|
5
|
+
import { u as Z } from "./loading-zALstVD_.js";
|
|
6
|
+
import { u as ee } from "./business-BD1xVHsg.js";
|
|
7
|
+
import { u as oe } from "./campaign-2jAMivOE.js";
|
|
8
|
+
import { u as te } from "./vue-i18n-BFISHEOF.js";
|
|
9
|
+
import { g as ne, a as V } from "./campaign-Bb1wuQdY.js";
|
|
10
|
+
import { e as L } from "./effect-CrY62aJn.js";
|
|
11
11
|
import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
12
|
-
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as ce } from "./template-
|
|
14
|
-
import { c as u } from "./index-
|
|
12
|
+
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyUjlGB0.js";
|
|
13
|
+
import { u as ce } from "./template-X_Z36LWQ.js";
|
|
14
|
+
import { c as u } from "./index-CB4K6lnR.js";
|
|
15
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", {
|
|
16
16
|
src: W,
|
|
17
17
|
class: "aspect-square w-[150px]"
|