@feedmepos/mf-connect 0.1.0-beta.3 → 0.1.0-beta.31
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-C-QC9ivZ.js +424 -0
- package/dist/{App-gzbM97vW.js → App-NASVRSh2.js} +397 -384
- package/dist/{Broadcast-BwYZkTs0.js → Broadcast-Cffg7nbY.js} +32 -32
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DIh9rz6T.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CA4kVwMl.js} +8 -8
- package/dist/Card-CmYFb1_Y.js +897 -0
- package/dist/{Collections-Df6tlo8S.js → Collections-CibvGIpU.js} +4 -4
- package/dist/{Credit-BPel8vA9.js → Credit-Ck6i9ySs.js} +14 -14
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B35zbHHI.js +2198 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BT8ucS5G.js → EffectSheet.vue_vue_type_style_index_0_lang-CQV77_cx.js} +8 -8
- package/dist/{Experience-CPpz1Zwx.js → Experience-CWUX2QvS.js} +8 -8
- package/dist/{Game-ByLblISC.js → Game-D3cdZrlc.js} +15 -15
- package/dist/Index-CWLZiYXT.js +255 -0
- package/dist/Marketing-Bol8eY5d.js +20070 -0
- package/dist/{Member-CCc_FEZY.js → Member-Cso-T2Xk.js} +4 -4
- package/dist/MemberList-Bqns9wko.js +1045 -0
- package/dist/{MemberTransactions-DD5ahSbY.js → MemberTransactions-zNw-30Xu.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DSPvWk4C.js → MessageInput.vue_vue_type_script_setup_true_lang-BLS5fNr6.js} +2 -2
- package/dist/{Mission-VH4057I-.js → Mission-C0-K0A_5.js} +98 -86
- package/dist/Overview-fZ9NvFKz.js +1024 -0
- package/dist/{Point-Bu3IlpH4.js → Point-D3gGhQlP.js} +23 -23
- package/dist/{Promotion-B45AOHis.js → Promotion-COCJIfu-.js} +53 -47
- package/dist/Record-C0a4Cn1U.js +209 -0
- package/dist/Reward-D0G4CBYd.js +411 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-zSOwxAcS.js +151 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-AmIdaAeX.js +1639 -0
- package/dist/Segment-eBM3aveX.js +567 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BgMuKAjE.js +181 -0
- package/dist/{Setting-CF09eRQJ.js → Setting-Dfye6fs5.js} +8 -8
- package/dist/Store-rQfwc8d6.js +1745 -0
- package/dist/{StoreRewards-0iGExjqQ.js → StoreRewards-DVTNMWdG.js} +12 -12
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3dvBoXz2.js +957 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BEfxin47.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DxGIUrmO.js} +1 -1
- package/dist/{Tier-IaeWe7rM.js → Tier-DekrYu5l.js} +327 -317
- package/dist/{Title-DD67Zxh5.js → Title-oAWsBqoM.js} +199 -183
- package/dist/{Transaction-BsPDnLzB.js → Transaction-Ss2XCksi.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-BMIqnBts.js +130 -0
- package/dist/{Voucher-M7JfcKo0.js → Voucher-CjPJxdw8.js} +31 -31
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DlWCpoOp.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-k0lprU2i.js → ZodTextField.vue_vue_type_script_setup_true_lang-FXQNhMrv.js} +1 -1
- package/dist/{app-HFICF0vL.js → app-C_zlbFNe.js} +1285 -1283
- package/dist/{app-DwujUNP-.js → app-WUJQRyEM.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-BaF1QJXa.js → business-C0e_E2xp.js} +1 -1
- package/dist/{campaign-CTDtmAE9.js → campaign-iWzbtNA5.js} +2 -2
- package/dist/collectible.enum-QITAo8Jg.js +19 -0
- package/dist/{collection.fn-DMW03W4R.js → collection.fn-R3hvasuZ.js} +2 -2
- package/dist/{dto-gpaNZHzQ.js → dto-D_tjJ72q.js} +78 -86
- package/dist/{effect-CBUmtwet.js → effect-_bpW5fmr.js} +9 -9
- package/dist/email-addresses-DUKn8uD0.js +705 -0
- package/dist/{export-Bdh_PbsW.js → export-CEBWZ8ko.js} +3 -3
- package/dist/{helper-Cu9elRvl.js → helper-CuF45pbY.js} +1 -1
- package/dist/{index-NXiDu42U.js → index-BO8RnVxy.js} +1 -1
- package/dist/{index-CArqG03W.js → index-BPc3wxOE.js} +39 -35
- package/dist/index-BXTQ6onZ.js +1067 -0
- package/dist/index-C4aPU80a.js +38 -0
- package/dist/{index-At6yms5t.js → index-CBzSPD25.js} +30 -26
- package/dist/{index-Ch6XwPzF.js → index-CR0ZVZQG.js} +1 -1
- package/dist/{index-DrGrOgZB.js → index-CXFwMV0s.js} +13 -1
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-Dfdg2Q3E.js → index-Dh6xIUXJ.js} +1 -1
- package/dist/{index-ogzk-Mj4.js → index-LMvyNoHf.js} +1 -1
- package/dist/{index-Crw-Vgo5.js → index-S6sFiBxK.js} +1500 -1479
- package/dist/index-SpDFfOz_.js +54 -0
- package/dist/{index-CtH2S49l.js → index-Urbp7cdO.js} +203 -195
- package/dist/index-pHbs1GrF.js +29000 -0
- package/dist/{index.esm2017-CeJpvUbA.js → index.esm2017-BunOalUj.js} +33 -33
- package/dist/{loading-Cn8ml_vy.js → loading-CYFsZ9UB.js} +591 -597
- package/dist/{membership-CX4AKMlH.js → membership-C9089j0H.js} +51 -43
- package/dist/money-D-zGFohv.js +15 -0
- package/dist/number-UFl4zW6h.js +12 -0
- package/dist/objectid-BKIyQ5iE.js +145 -0
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-LYKGLzXz.js +36 -0
- package/dist/{rule-Cv83Y59R.js → rule-BUUKmR4_.js} +180 -177
- package/dist/{rule-builder-Dew4yB5Q.js → rule-builder-9JUuOcMH.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CSnbgM1o.js → template-CkXuF0cN.js} +5 -5
- package/dist/trigger-DjAx9efN.js +114 -0
- package/dist/user-DbsZta3D.js +54 -0
- package/dist/{vue-i18n-CNH_IhVd.js → vue-i18n-yYO72Mbp.js} +2 -2
- package/dist/{xlsx-D4DUZHix.js → xlsx-Dagi6ArS.js} +1 -1
- package/package.json +8 -7
- package/dist/Analytic-BC5BA6pN.js +0 -622
- package/dist/Card-CBYQGKwY.js +0 -825
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-PsrS7I0r.js +0 -2809
- package/dist/Marketing-D0vm80e_.js +0 -316
- package/dist/MemberList-CrnipE9y.js +0 -1733
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Ijc2OYh9.js +0 -1753
- package/dist/Segment-ZWsp48aC.js +0 -437
- package/dist/Store-B_G6Dhmq.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CaxUr9zl.js +0 -890
- package/dist/index-8MaN7rez.js +0 -762
- package/dist/index-BjdHxGDn.js +0 -298
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-RP0XOPRL.js +0 -29193
- package/dist/money-BTejgvKu.js +0 -15
- package/dist/number-Cen5TucC.js +0 -12
- package/dist/user-Bm4KttFq.js +0 -37
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as P, ref as R, onMounted as Q, computed as H, resolveComponent as y, openBlock as s, createElementBlock as x, renderSlot as W, toDisplayString as A, createCommentVNode as v, createBlock as f, unref as e, isRef as q, createVNode as b, normalizeClass as G, watch as X, withCtx as F, resolveDynamicComponent as D, Fragment as _, createElementVNode as h, createTextVNode as ee } from "vue";
|
|
2
|
-
import { z as te } from "./app-
|
|
2
|
+
import { z as te } from "./app-C_zlbFNe.js";
|
|
3
3
|
import { Z as u } from "./zod-Bg2FbC-D.js";
|
|
4
|
-
import { g as le,
|
|
5
|
-
import { u as Z } from "./vue-i18n-
|
|
6
|
-
import { s as O } from "./effect-
|
|
7
|
-
import { p as ae } from "./loading-
|
|
8
|
-
import { I as ne } from "./app-
|
|
4
|
+
import { g as le, f as oe } from "./index-S6sFiBxK.js";
|
|
5
|
+
import { u as Z } from "./vue-i18n-yYO72Mbp.js";
|
|
6
|
+
import { s as O } from "./effect-_bpW5fmr.js";
|
|
7
|
+
import { p as ae } from "./loading-CYFsZ9UB.js";
|
|
8
|
+
import { I as ne } from "./app-WUJQRyEM.js";
|
|
9
9
|
const ie = { class: "flex flex-col gap-8" }, se = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -339,7 +339,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
|
|
|
339
339
|
}
|
|
340
340
|
});
|
|
341
341
|
export {
|
|
342
|
-
|
|
342
|
+
re as _,
|
|
343
343
|
he as a,
|
|
344
|
-
|
|
344
|
+
Ae as b
|
|
345
345
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as x, createVNode as c, unref as t, createElementVNode as n, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as M, toDisplayString as p, h as H } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as z, components as G } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as J, p as Q } from "./loading-
|
|
5
|
-
import { u as W } from "./business-
|
|
6
|
-
import { u as X } from "./campaign-
|
|
7
|
-
import { g as L,
|
|
8
|
-
import { u as Y } from "./vue-i18n-
|
|
4
|
+
import { u as J, p as Q } from "./loading-CYFsZ9UB.js";
|
|
5
|
+
import { u as W } from "./business-C0e_E2xp.js";
|
|
6
|
+
import { u as X } from "./campaign-iWzbtNA5.js";
|
|
7
|
+
import { g as L, a as V } from "./dto-D_tjJ72q.js";
|
|
8
|
+
import { u as Y } from "./vue-i18n-yYO72Mbp.js";
|
|
9
9
|
import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as te } from "./template-
|
|
12
|
-
import { c as g } from "./index-
|
|
10
|
+
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B35zbHHI.js";
|
|
11
|
+
import { u as te } from "./template-CkXuF0cN.js";
|
|
12
|
+
import { c as g } from "./index-BO8RnVxy.js";
|
|
13
13
|
const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, ne = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "space-y-4" }, le = { class: "fm-typo-en-body-lg-600" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "flex flex-col gap-16 text-center" }, ue = { class: "fm-typo-en-title-sm-800" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = /* @__PURE__ */ D({
|
|
14
14
|
__name: "Experience",
|
|
15
15
|
setup(ye) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as D, ref as A, computed as H, onMounted as N, resolveComponent as r, openBlock as d, createElementBlock as x, Fragment as
|
|
1
|
+
import { defineComponent as D, ref as A, computed as H, onMounted as N, resolveComponent as r, openBlock as d, createElementBlock as x, Fragment as v, createVNode as i, unref as o, withCtx as h, createElementVNode as n, toDisplayString as l, renderList as q, createBlock as b, resolveDynamicComponent as z, h as p } from "vue";
|
|
2
2
|
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as O, components as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as Q, a as W, p as X } from "./loading-
|
|
5
|
-
import { u as Y } from "./business-
|
|
6
|
-
import { u as Z } from "./campaign-
|
|
7
|
-
import { g as B,
|
|
4
|
+
import { u as Q, a as W, p as X } from "./loading-CYFsZ9UB.js";
|
|
5
|
+
import { u as Y } from "./business-C0e_E2xp.js";
|
|
6
|
+
import { u as Z } from "./campaign-iWzbtNA5.js";
|
|
7
|
+
import { g as B, a as $ } from "./dto-D_tjJ72q.js";
|
|
8
8
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as oe } from "./template-
|
|
11
|
-
import { u as ae } from "./vue-i18n-
|
|
12
|
-
import { c as w } from "./index-
|
|
9
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B35zbHHI.js";
|
|
10
|
+
import { u as oe } from "./template-CkXuF0cN.js";
|
|
11
|
+
import { u as ae } from "./vue-i18n-yYO72Mbp.js";
|
|
12
|
+
import { c as w } from "./index-BO8RnVxy.js";
|
|
13
13
|
const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = /* @__PURE__ */ D({
|
|
14
14
|
__name: "Game",
|
|
15
15
|
setup(we) {
|
|
@@ -130,7 +130,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
130
130
|
});
|
|
131
131
|
}), (e, t) => {
|
|
132
132
|
const u = r("FmPill"), _ = r("FmPageHead"), L = r("FmSearch"), I = r("FmTable"), P = r("FmButton"), T = r("FmListItem"), U = r("FmList"), j = r("FmCard");
|
|
133
|
-
return d(), x(
|
|
133
|
+
return d(), x(v, null, [
|
|
134
134
|
i(_, {
|
|
135
135
|
actions: o(g).length > 0 && o(f).isPremium ? [E] : [],
|
|
136
136
|
"onClick:action": t[0] || (t[0] = () => y())
|
|
@@ -151,7 +151,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
151
151
|
placeholder: "search",
|
|
152
152
|
collapsible: ""
|
|
153
153
|
}, null, 8, ["modelValue"]),
|
|
154
|
-
o(m).campaigns.token && o(m).campaigns.token.length > 0 ? (d(), x(
|
|
154
|
+
o(m).campaigns.token && o(m).campaigns.token.length > 0 ? (d(), x(v, { key: 0 }, [
|
|
155
155
|
n("div", re, [
|
|
156
156
|
n("div", le, [
|
|
157
157
|
i(ee, {
|
|
@@ -183,9 +183,9 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
183
183
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
184
184
|
i(U, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
185
185
|
default: h(() => [
|
|
186
|
-
(d(!0), x(
|
|
186
|
+
(d(!0), x(v, null, q(o(g).filter(
|
|
187
187
|
(a) => a.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
|
|
188
|
-
), (a) => (d(),
|
|
188
|
+
), (a) => (d(), b(T, {
|
|
189
189
|
key: a._id.toString(),
|
|
190
190
|
onClick: (V) => y(a),
|
|
191
191
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
@@ -193,7 +193,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
193
193
|
default: h(() => [
|
|
194
194
|
n("div", ce, [
|
|
195
195
|
n("div", me, [
|
|
196
|
-
(d(),
|
|
196
|
+
(d(), b(z(o(B)(a)))),
|
|
197
197
|
n("div", de, l(a.currentReceive ?? 0) + " used ", 1)
|
|
198
198
|
]),
|
|
199
199
|
n("div", pe, [
|
|
@@ -216,7 +216,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
216
216
|
]),
|
|
217
217
|
_: 1
|
|
218
218
|
})
|
|
219
|
-
], 64)) : (d(),
|
|
219
|
+
], 64)) : (d(), b(j, {
|
|
220
220
|
key: 1,
|
|
221
221
|
variant: "outlined",
|
|
222
222
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { defineComponent as U, ref as g, watch as O, onMounted as N, resolveComponent as c, openBlock as b, createBlock as j, withCtx as P, createTextVNode as z, createElementVNode as d, createVNode as o, unref as e, createElementBlock as F, createCommentVNode as W, toDisplayString as I, normalizeClass as G, computed as $, Fragment as q, isRef as J } from "vue";
|
|
2
|
+
import { u as H } from "./vue-i18n-yYO72Mbp.js";
|
|
3
|
+
import "./index-Dh6xIUXJ.js";
|
|
4
|
+
import { useRouter as K } from "vue-router";
|
|
5
|
+
import { f as V, p as Q, u as X } from "./loading-CYFsZ9UB.js";
|
|
6
|
+
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-zSOwxAcS.js";
|
|
7
|
+
import { useDialog as ee, useSnackbar as ae, FmButtonVariant as p } from "@feedmepos/ui-library";
|
|
8
|
+
import { r as L } from "./index-C4aPU80a.js";
|
|
9
|
+
import { u as ne } from "./reward-LYKGLzXz.js";
|
|
10
|
+
import { u as oe } from "./business-C0e_E2xp.js";
|
|
11
|
+
import { u as te } from "./membership-C9089j0H.js";
|
|
12
|
+
import { R as S } from "./app-C_zlbFNe.js";
|
|
13
|
+
const re = { class: "space-y-24" }, le = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: /* @__PURE__ */ G([
|
|
16
|
+
"p-16 pl-24 space-x-8",
|
|
17
|
+
"bg-fm-color-primary-oats rounded-lg",
|
|
18
|
+
"flex items-center",
|
|
19
|
+
"justify-between"
|
|
20
|
+
])
|
|
21
|
+
}, ie = { key: 1 }, se = {
|
|
22
|
+
key: 2,
|
|
23
|
+
class: /* @__PURE__ */ G([
|
|
24
|
+
"flex items-center",
|
|
25
|
+
"border border-fm-color-neutral-gray-300",
|
|
26
|
+
"p-16 space-x-16 rounded-md"
|
|
27
|
+
])
|
|
28
|
+
}, de = { class: "fm-typo-en-body-lg-400 flex-1" }, ce = { class: "flex justify-end space-x-8 w-full" }, ue = /* @__PURE__ */ U({
|
|
29
|
+
__name: "TermAndConditionDialog",
|
|
30
|
+
props: {
|
|
31
|
+
modelValue: { type: Boolean }
|
|
32
|
+
},
|
|
33
|
+
emits: ["update:modelValue"],
|
|
34
|
+
setup(B, { emit: T }) {
|
|
35
|
+
const y = B;
|
|
36
|
+
ee();
|
|
37
|
+
const i = ae(), { t: s } = H(), l = Y(), { minor: _ } = X, u = g(!1), k = T, t = g(null), w = g(null);
|
|
38
|
+
async function x() {
|
|
39
|
+
if (!t.value) {
|
|
40
|
+
i.open({
|
|
41
|
+
type: "error",
|
|
42
|
+
title: "Please upload a file"
|
|
43
|
+
});
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
_(
|
|
47
|
+
async () => {
|
|
48
|
+
u.value = !0;
|
|
49
|
+
const n = await V.update(
|
|
50
|
+
V.referralTermAndConditionPath(),
|
|
51
|
+
t.value
|
|
52
|
+
), a = l.referralProgram;
|
|
53
|
+
a.term_and_condition = n, await L.update(a), u.value = !1, v();
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
successMessage: "Term and Condition uploaded successfully"
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
async function h() {
|
|
61
|
+
await Q.confirm(
|
|
62
|
+
"Are you sure you want to remove the term and condition?"
|
|
63
|
+
) && _(
|
|
64
|
+
async () => {
|
|
65
|
+
u.value = !0, await V.delete(
|
|
66
|
+
V.referralTermAndConditionPath()
|
|
67
|
+
);
|
|
68
|
+
const a = l.referralProgram;
|
|
69
|
+
a.term_and_condition = void 0, await L.update(a), u.value = !1, v();
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
successMessage: "Term and Condition removed successfully"
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
function v() {
|
|
77
|
+
t.value = null, k("update:modelValue", !1);
|
|
78
|
+
}
|
|
79
|
+
function r() {
|
|
80
|
+
var n;
|
|
81
|
+
window.open((n = l.referralProgram) == null ? void 0 : n.term_and_condition, "_blank");
|
|
82
|
+
}
|
|
83
|
+
return O(
|
|
84
|
+
() => y.modelValue,
|
|
85
|
+
(n) => {
|
|
86
|
+
t.value = null;
|
|
87
|
+
}
|
|
88
|
+
), N(() => {
|
|
89
|
+
}), (n, a) => {
|
|
90
|
+
const R = c("FmButton"), A = c("FmDropField"), m = c("fm-button"), E = c("fm-dialog");
|
|
91
|
+
return b(), j(E, {
|
|
92
|
+
"model-value": n.modelValue,
|
|
93
|
+
"onUpdate:modelValue": a[3] || (a[3] = (C) => n.$emit("update:modelValue", C)),
|
|
94
|
+
"dismiss-away": ""
|
|
95
|
+
}, {
|
|
96
|
+
"dialog-header": P(() => a[4] || (a[4] = [
|
|
97
|
+
z("Upload Term and Condition")
|
|
98
|
+
])),
|
|
99
|
+
"dialog-footer": P(() => [
|
|
100
|
+
d("div", ce, [
|
|
101
|
+
o(m, {
|
|
102
|
+
variant: e(p).Tertiary,
|
|
103
|
+
label: e(s)("Cancel"),
|
|
104
|
+
onClick: v
|
|
105
|
+
}, null, 8, ["variant", "label"]),
|
|
106
|
+
o(m, {
|
|
107
|
+
variant: e(p).Primary,
|
|
108
|
+
class: "ml-auto mr-8",
|
|
109
|
+
label: e(s)("Save"),
|
|
110
|
+
loading: e(u),
|
|
111
|
+
onClick: x
|
|
112
|
+
}, null, 8, ["variant", "label", "loading"])
|
|
113
|
+
])
|
|
114
|
+
]),
|
|
115
|
+
default: P(() => {
|
|
116
|
+
var C;
|
|
117
|
+
return [
|
|
118
|
+
d("div", re, [
|
|
119
|
+
(C = e(l).referralProgram) != null && C.term_and_condition ? (b(), F("div", le, [
|
|
120
|
+
o(R, {
|
|
121
|
+
label: e(s)("View uploaded file"),
|
|
122
|
+
variant: e(p).Plain,
|
|
123
|
+
icon: "file_present",
|
|
124
|
+
onClick: r
|
|
125
|
+
}, null, 8, ["label", "variant"]),
|
|
126
|
+
o(R, {
|
|
127
|
+
variant: e(p).Plain,
|
|
128
|
+
icon: "delete",
|
|
129
|
+
onClick: h
|
|
130
|
+
}, null, 8, ["variant"])
|
|
131
|
+
])) : W("", !0),
|
|
132
|
+
e(t) ? (b(), F("div", se, [
|
|
133
|
+
o(m, {
|
|
134
|
+
variant: e(p).Tertiary,
|
|
135
|
+
"prepend-icon": "attach_file"
|
|
136
|
+
}, null, 8, ["variant"]),
|
|
137
|
+
d("p", de, I(e(t).name), 1),
|
|
138
|
+
d("label", {
|
|
139
|
+
ref_key: "fileLabelRef",
|
|
140
|
+
ref: w,
|
|
141
|
+
htmlFor: "file"
|
|
142
|
+
}, [
|
|
143
|
+
o(m, {
|
|
144
|
+
variant: e(p).Plain,
|
|
145
|
+
label: e(s)("Replace File"),
|
|
146
|
+
onClick: a[1] || (a[1] = () => {
|
|
147
|
+
var f;
|
|
148
|
+
return (f = e(w)) == null ? void 0 : f.click();
|
|
149
|
+
})
|
|
150
|
+
}, null, 8, ["variant", "label"]),
|
|
151
|
+
d("input", {
|
|
152
|
+
id: "file",
|
|
153
|
+
accept: ".pdf",
|
|
154
|
+
class: "hidden",
|
|
155
|
+
type: "file",
|
|
156
|
+
onChange: a[2] || (a[2] = (f) => {
|
|
157
|
+
var D, M;
|
|
158
|
+
return t.value = ((M = (D = f.target) == null ? void 0 : D.files) == null ? void 0 : M[0]) ?? null;
|
|
159
|
+
})
|
|
160
|
+
}, null, 32)
|
|
161
|
+
], 512)
|
|
162
|
+
])) : (b(), F("div", ie, [
|
|
163
|
+
o(A, {
|
|
164
|
+
onFileUpload: a[0] || (a[0] = (f) => t.value = f),
|
|
165
|
+
accept: ".pdf",
|
|
166
|
+
"max-file-size": 8e6
|
|
167
|
+
})
|
|
168
|
+
]))
|
|
169
|
+
])
|
|
170
|
+
];
|
|
171
|
+
}),
|
|
172
|
+
_: 1
|
|
173
|
+
}, 8, ["model-value"]);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
}), me = { class: "flex items-center" }, fe = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, pe = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ke = /* @__PURE__ */ U({
|
|
177
|
+
__name: "Index",
|
|
178
|
+
setup(B) {
|
|
179
|
+
const T = ne(), y = g(null), { t: i } = H(), s = K(), l = g(!1), _ = oe(), u = te(), k = $(() => _.isPremium ? [
|
|
180
|
+
{
|
|
181
|
+
label: i("connect.referral.actions.terms"),
|
|
182
|
+
value: "term_and_condition"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
label: i("connect.referral.actions.manage_reward"),
|
|
186
|
+
value: "manage_reward"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
label: i("connect.referral.actions.add_referral_tier"),
|
|
190
|
+
value: "add_referral_tier",
|
|
191
|
+
prependIcon: "add",
|
|
192
|
+
isPrimary: !0
|
|
193
|
+
}
|
|
194
|
+
] : []), t = [
|
|
195
|
+
{
|
|
196
|
+
label: i("connect.referral.tabs.overview"),
|
|
197
|
+
value: S["$connect-REFERRAL_OVERVIEW"],
|
|
198
|
+
actions: []
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
label: i("connect.referral.tabs.record"),
|
|
202
|
+
value: S["$connect-REFERRAL_RECORD"],
|
|
203
|
+
actions: []
|
|
204
|
+
}
|
|
205
|
+
], w = $(() => t.find((r) => r.value === s.currentRoute.value.name) ?? t[0]);
|
|
206
|
+
async function x(r) {
|
|
207
|
+
await s.push({ name: r });
|
|
208
|
+
}
|
|
209
|
+
async function h(r) {
|
|
210
|
+
var n;
|
|
211
|
+
r === "add_referral_tier" && ((n = y.value) == null || n.onManageRewardGroup(-1)), r === "manage_reward" && await s.push({ name: S["$connect-REWARD_TEMPLATE"] }), r === "term_and_condition" && v();
|
|
212
|
+
}
|
|
213
|
+
async function v() {
|
|
214
|
+
l.value = !0;
|
|
215
|
+
}
|
|
216
|
+
return N(async () => {
|
|
217
|
+
await T.readRewards(), await _.readPremium(), await u.readSegments();
|
|
218
|
+
}), (r, n) => {
|
|
219
|
+
const a = c("FmPill"), R = c("FmPageHead"), A = c("FmTabs"), m = c("RouterView");
|
|
220
|
+
return b(), F(q, null, [
|
|
221
|
+
o(R, {
|
|
222
|
+
actions: e(k),
|
|
223
|
+
"onClick:action": h
|
|
224
|
+
}, {
|
|
225
|
+
title: P(() => [
|
|
226
|
+
d("div", me, [
|
|
227
|
+
d("span", fe, I(e(i)("connect.referral.title")), 1),
|
|
228
|
+
o(a, { variant: "premium" })
|
|
229
|
+
])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["actions"]),
|
|
233
|
+
d("div", pe, [
|
|
234
|
+
o(A, {
|
|
235
|
+
"model-value": e(w).value,
|
|
236
|
+
items: t,
|
|
237
|
+
"onUpdate:modelValue": x
|
|
238
|
+
}, null, 8, ["model-value"]),
|
|
239
|
+
o(m)
|
|
240
|
+
]),
|
|
241
|
+
o(ue, {
|
|
242
|
+
modelValue: e(l),
|
|
243
|
+
"onUpdate:modelValue": n[0] || (n[0] = (E) => J(l) ? l.value = E : null)
|
|
244
|
+
}, null, 8, ["modelValue"]),
|
|
245
|
+
o(Z, {
|
|
246
|
+
ref_key: "rewardGroupRef",
|
|
247
|
+
ref: y
|
|
248
|
+
}, null, 512)
|
|
249
|
+
], 64);
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
export {
|
|
254
|
+
ke as default
|
|
255
|
+
};
|