@feedmepos/mf-connect 0.1.38-beta.6 → 0.1.38-beta.61
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-NBx32reB.js → Analytic-CM7mh-iO.js} +16 -16
- package/dist/{App-CaK9PvMd.js → App-CeCzzsDu.js} +625 -619
- package/dist/AuditLogs-VWx8DFKA.js +1991 -0
- package/dist/{Bin-CL6o1JSs.js → Bin-vUuol_I9.js} +10 -10
- package/dist/Broadcast-6VXz4-IG.js +233 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIySMYGP.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CV-zhJ15.js} +6 -6
- package/dist/{Card-DNdEjt6s.js → Card-CeIeGET1.js} +144 -140
- package/dist/Collections-CF_OcAL3.js +540 -0
- package/dist/Credit-BUqGOyp_.js +226 -0
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-0DMFuBoG.js +3150 -0
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BZfchHlT.js +347 -0
- package/dist/Experience-BxiFH_uV.js +225 -0
- package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-lgg_oBvT.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/Game-BzYW0LfY.js +300 -0
- package/dist/GenerateMaterial-B5A7mx2y.js +589 -0
- package/dist/Grab-BgiMqwvj.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-DZ8DHrQ_.js} +49 -48
- package/dist/{Index-2wokhhFB.js → Index-B85ops8K.js} +54 -54
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B5rIjxYd.js} +1 -1
- package/dist/{MainLayout-B1aJoR95.js → MainLayout-CXGVkD-W.js} +1 -1
- package/dist/Marketing-Bnijl7lA.js +145 -0
- package/dist/MarketingMaterialEdit-BlUKwSoP.js +746 -0
- package/dist/{Member-2xV4Izwa.js → Member-sT853g51.js} +38 -37
- package/dist/{MemberList-CYgBdyJt.js → MemberList-DYT5_fSP.js} +158 -159
- package/dist/{MemberTransactions-DWDV01N4.js → MemberTransactions-Cqce5ebe.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js → MessageInput.vue_vue_type_script_setup_true_lang-Dq0Hswj8.js} +5940 -5668
- package/dist/Mission-Q5_sGgrm.js +304 -0
- package/dist/{Overview-BZjto86d.js → Overview-B0rwrHR1.js} +24 -25
- package/dist/Point-BGYFMvev.js +228 -0
- package/dist/Promotion-0acd63nA.js +364 -0
- package/dist/{Queue-D62r2qjy.js → Queue-SVqRUlD_.js} +14 -15
- package/dist/{Record-0iF3dG7y.js → Record-BTjg4ihy.js} +10 -10
- package/dist/{Reward-C5IEJYu6.js → Reward-DW58VMRO.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-S2Fd0qO8.js → RewardGroup.vue_vue_type_script_setup_true_lang-s1RI55Rc.js} +13 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Os17lXBX.js +1766 -0
- package/dist/{Segment-BknjBrUP.js → Segment-Dny8pxP1.js} +273 -274
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BLQlkp-j.js → SelectItems.vue_vue_type_script_setup_true_lang-Czx7rqiq.js} +12 -12
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaPi4hYB.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-EgVxUG_N.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BoZ0ZpNZ.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CO0fgI3K.js} +4 -4
- package/dist/Setting-CjcnxK34.js +1992 -0
- package/dist/SettingAdvertisements-CIyDF4C8.js +263 -0
- package/dist/Store-B8k5YVqU.js +1934 -0
- package/dist/StoreRewards-BW08rwpL.js +534 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BfFSfE2H.js +1034 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CZkKjUNQ.js +8093 -0
- package/dist/{Tier-B168DtFj.js → Tier-DKzu4tYw.js} +561 -480
- package/dist/{Title-uH0RI1N3.js → Title-BK-TXatJ.js} +149 -147
- package/dist/{Transaction-Bx-pmLrJ.js → Transaction-Duayg1jd.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Ce_55V7l.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BAR9h1TV.js} +7 -7
- package/dist/{Voucher-Dzpz2AEB.js → Voucher-BEVAkNeJ.js} +140 -124
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DvFy9Z6X.js +421 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CfLiUj9f.js → ZodTextField.vue_vue_type_script_setup_true_lang-CU_Sx2PM.js} +2 -2
- package/dist/app-IvbII0ql.js +45026 -0
- package/dist/app.js +1 -1
- package/dist/{business-B65OtB5B.js → business-BFIwFfkq.js} +11 -8
- package/dist/campaign-RuIwxc4y.js +253 -0
- package/dist/{campaign-qGy6uzrC.js → campaign-w9j4I4jn.js} +29 -25
- package/dist/{campaign.enum-CZp2DmXI.js → campaign.enum-IHLsfdik.js} +3 -2
- package/dist/campaign.fn-B_P1MkRV.js +776 -0
- package/dist/{collectible.enum-CN-lnG1m.js → collectible.enum-CUgSjO08.js} +1 -1
- package/dist/{collection.fn-mMwGQWce.js → collection.fn-CrfnNb41.js} +2 -2
- package/dist/dto-jwO_sX9I.js +222 -0
- package/dist/{effect-Bg3yb9T6.js → effect--0g8PNyt.js} +1 -1
- package/dist/{email-addresses-CQsN724N.js → email-addresses-HtsxvXw9.js} +2 -2
- package/dist/{export-BLf2dhFd.js → export-CFEwMRmd.js} +9 -10
- package/dist/{helper-CFaph16Q.js → helper-CCfb24PO.js} +22 -7
- package/dist/index-B-AMMFfT.js +3419 -0
- package/dist/{index-BPyac0fq.js → index-BR3UbZ0F.js} +1 -1
- package/dist/{index-Dy5p_b1S.js → index-BZEM0T2A.js} +1 -1
- package/dist/index-Bflu4Rft.js +8884 -0
- package/dist/{index-Dkmn0jmX.js → index-CR3f3BXQ.js} +2552 -2356
- package/dist/{index-BkySejFg.js → index-CZPcwcUo.js} +3 -3
- package/dist/{index-BPZtjcTm.js → index-CkuPY85X.js} +1 -1
- package/dist/index-CppLPpqB.js +30933 -0
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/{index-BKOgzVx6.js → index-DDYH-IEX.js} +1 -1
- package/dist/{index-DaEQgaiW.js → index-DdZdHioZ.js} +455 -245
- package/dist/{index-BBPIZjw6.js → index-Dic_WcAL.js} +3 -3
- package/dist/{index-CH2d_B8c.js → index-DpjYgKTN.js} +4 -1
- package/dist/index-wzSeRJAd.js +36 -0
- package/dist/{index.esm2017-B9vJTKYg.js → index.esm2017-CUnjzfU-.js} +89 -89
- package/dist/loading-CivgDw5C.js +215 -0
- package/dist/{lodash-B5I3zXaY.js → lodash-BSbv_9TG.js} +1 -1
- package/dist/{membership-Du79A0Pl.js → membership-j2w1YUO-.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-DXgYs2-R.js → money-DL-x8hiT.js} +1 -1
- package/dist/{number-CBMkNZvH.js → number-D1yoFGEr.js} +1 -1
- package/dist/objectid-CHab6j3r.js +145 -0
- package/dist/{campaign-iKI-L84v.js → plugins-P-V4XWmW.js} +784 -777
- package/dist/remy-D_Deb3ue.js +13 -0
- package/dist/{reward-ClX_lWcQ.js → reward-BqMlBQRu.js} +1 -1
- package/dist/{rule-BfidJ75Y.js → rule-CztsLdki.js} +4 -4
- package/dist/rule-builder-DANv7Rmz.js +102 -0
- package/dist/style.css +11 -2
- package/dist/template-Dbz3FhHK.js +188 -0
- package/dist/timezone-BgVqObBq.js +1151 -0
- package/dist/trigger-CbriUibd.js +213 -0
- package/dist/usePagination-DtNK7W0U.js +223 -0
- package/dist/user-CVapqHfr.js +55 -0
- package/dist/vue-i18n-tpDAnnmD.js +2365 -0
- package/dist/{xlsx-Be4bARvl.js → xlsx-EewcN2uY.js} +1 -1
- package/dist/{zod-Bg2FbC-D.js → zod-D-wiCQRJ.js} +32 -31
- package/package.json +13 -5
- package/dist/AuditLogs-C-gCCPvF.js +0 -1887
- package/dist/Broadcast-B2-itjvZ.js +0 -227
- package/dist/Collections-DepGq6WJ.js +0 -465
- package/dist/Credit-D7K0gFwc.js +0 -222
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js +0 -2185
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DrbMJlm5.js +0 -347
- package/dist/Experience-FlBX3eyN.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Game-Cc3D7lKV.js +0 -278
- package/dist/Marketing-D7PXYloN.js +0 -20073
- package/dist/Mission-BSGc9822.js +0 -296
- package/dist/Point-0U4TTdPW.js +0 -226
- package/dist/Promotion-DiUa0GcV.js +0 -289
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CxlamGFP.js +0 -1751
- package/dist/Setting-RLI7RgmN.js +0 -1936
- package/dist/Store-gxmv8hWJ.js +0 -1842
- package/dist/StoreRewards-C_6gY_Nk.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B5uzSYM4.js +0 -1029
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js +0 -139
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-dbA6_6b9.js +0 -419
- package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/app-B90wINOO.js +0 -33357
- package/dist/app-DuUxQ1ZP.js +0 -7086
- package/dist/campaign.fn-DKScnmjX.js +0 -758
- package/dist/dto-C5ri8Nws.js +0 -214
- package/dist/index-BCGDOgxb.js +0 -38
- package/dist/index-BCPBmANe.js +0 -3120
- package/dist/index-BN2Uyvj4.js +0 -30038
- package/dist/index-CrbnfAk8.js +0 -8861
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-DJwQICyC.js +0 -146
- package/dist/loading-MEQuW9Xa.js +0 -71
- package/dist/objectid-BeZTZYqi.js +0 -145
- package/dist/plugins-KiMuDTPp.js +0 -208
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
- package/dist/rule-builder-BTcZx77a.js +0 -89
- package/dist/template-DPpMK30W.js +0 -190
- package/dist/trigger-DLp1bkZP.js +0 -144
- package/dist/usePagination-BeF5K3M7.js +0 -223
- package/dist/user-Cq9CGBHZ.js +0 -54
- package/dist/vue-i18n-COzqUgQy.js +0 -2365
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, ref as f, resolveComponent as s, openBlock as t, createElementBlock as v, Fragment as b, createVNode as r, unref as o, createElementVNode as k, createBlock as l, KeepAlive as x, resolveDynamicComponent as m, createCommentVNode as F } from "vue";
|
|
2
|
-
import { _ as g, a as y } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as C } from "./vue-i18n-
|
|
2
|
+
import { _ as g, a as y } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-BfFSfE2H.js";
|
|
3
|
+
import { u as C } from "./vue-i18n-tpDAnnmD.js";
|
|
4
4
|
const T = { class: "px-24 flex flex-col gap-y-32 pb-24" }, P = /* @__PURE__ */ d({
|
|
5
5
|
__name: "Transaction",
|
|
6
6
|
setup(V) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as y, computed as b, openBlock as i, createBlock as R, unref as l, ref as E, watch as k, resolveComponent as h, createElementBlock as g, createElementVNode as B, Fragment as O, renderList as T, createVNode as V, isRef as U, createCommentVNode as v } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { i as C, R as e } from "./rule-builder-
|
|
4
|
-
import { _ as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { p as N } from "./plugins-
|
|
6
|
-
import { u as S } from "./membership-
|
|
7
|
-
import { _ as j } from "./CustomSelect.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as x } from "./vue-i18n-
|
|
2
|
+
import "./index-Bflu4Rft.js";
|
|
3
|
+
import { i as C, R as e } from "./rule-builder-DANv7Rmz.js";
|
|
4
|
+
import { _ as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-Os17lXBX.js";
|
|
5
|
+
import { p as N } from "./plugins-P-V4XWmW.js";
|
|
6
|
+
import { u as S } from "./membership-j2w1YUO-.js";
|
|
7
|
+
import { _ as j } from "./CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js";
|
|
8
|
+
import { u as x } from "./vue-i18n-tpDAnnmD.js";
|
|
9
9
|
const A = /* @__PURE__ */ y({
|
|
10
10
|
__name: "SegmentConfigurator",
|
|
11
11
|
props: {
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
import { useCoreStore as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import "./index-
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { u as
|
|
16
|
-
import { T as
|
|
17
|
-
import { useRouter as
|
|
18
|
-
import { c as
|
|
19
|
-
import { R as
|
|
20
|
-
var
|
|
21
|
-
const
|
|
1
|
+
import { defineComponent as oe, ref as V, computed as te, h as m, onMounted as ne, resolveComponent as d, openBlock as u, createElementBlock as S, Fragment as U, createVNode as l, unref as t, createElementVNode as c, withCtx as T, renderList as ae, createBlock as h, resolveDynamicComponent as re, createCommentVNode as R, toDisplayString as g } from "vue";
|
|
2
|
+
import { _ as ce } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as ie, components as p } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as O } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
5
|
+
import { a as se, p as le } from "./plugins-P-V4XWmW.js";
|
|
6
|
+
import { useCoreStore as me } from "@feedmepos/mf-common";
|
|
7
|
+
import { u as ue } from "./loading-CivgDw5C.js";
|
|
8
|
+
import { u as de } from "./business-BFIwFfkq.js";
|
|
9
|
+
import { u as pe } from "./campaign-w9j4I4jn.js";
|
|
10
|
+
import { a as fe, b as M, c as H } from "./campaign-RuIwxc4y.js";
|
|
11
|
+
import "./index-BZEM0T2A.js";
|
|
12
|
+
import { u as he } from "./template-Dbz3FhHK.js";
|
|
13
|
+
import { _ as ye } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-0DMFuBoG.js";
|
|
14
|
+
import { _ as ge } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-CO0fgI3K.js";
|
|
15
|
+
import { u as ve } from "./vue-i18n-tpDAnnmD.js";
|
|
16
|
+
import { T as _e } from "./trigger-CbriUibd.js";
|
|
17
|
+
import { useRouter as Ce } from "vue-router";
|
|
18
|
+
import { c as b } from "./index-DpjYgKTN.js";
|
|
19
|
+
import { R as $ } from "./app-IvbII0ql.js";
|
|
20
|
+
var be = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
|
|
21
|
+
const we = { class: "px-24 flex flex-col gap-y-16" }, xe = { class: "flex items-center justify-between w-full" }, ke = { class: "flex gap-8 overflow-x-auto" }, Fe = { class: "space-y-8" }, Ve = { class: "flex w-full gap-4 items-center" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "space-y-4" }, Te = { class: "fm-typo-en-body-lg-600" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = { class: "flex gap-8 items-center" }, Pe = { class: "flex flex-col gap-16 text-center" }, Ee = { class: "fm-typo-en-title-sm-800" }, Ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, oo = /* @__PURE__ */ oe({
|
|
22
22
|
__name: "Voucher",
|
|
23
|
-
setup(
|
|
24
|
-
const { t: a } =
|
|
23
|
+
setup(Ae) {
|
|
24
|
+
const { t: a } = ve(), K = {
|
|
25
25
|
label: a("connect.voucher.createCampaign"),
|
|
26
26
|
value: "create",
|
|
27
27
|
isPrimary: !0,
|
|
28
28
|
prependIcon: "add"
|
|
29
|
-
}, L =
|
|
29
|
+
}, L = ie(), N = he("VOUCHER", L), D = de(), f = pe(), { global: j, minor: P } = ue, E = Ce(), i = V({
|
|
30
30
|
searchKey: "",
|
|
31
31
|
location: [],
|
|
32
32
|
triggerType: []
|
|
33
|
-
}),
|
|
34
|
-
() =>
|
|
35
|
-
(e) =>
|
|
33
|
+
}), v = te(
|
|
34
|
+
() => f.campaigns.voucher.filter(
|
|
35
|
+
(e) => G(e) && X(e)
|
|
36
36
|
)
|
|
37
|
-
),
|
|
37
|
+
), q = _e.VOUCHER.map((e) => ({
|
|
38
38
|
label: e.name,
|
|
39
39
|
value: e.value
|
|
40
40
|
}));
|
|
41
|
-
function
|
|
41
|
+
function G(e) {
|
|
42
42
|
const o = i.value.location;
|
|
43
43
|
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some(
|
|
44
44
|
(r) => {
|
|
@@ -47,27 +47,43 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
47
47
|
}
|
|
48
48
|
) : e.targetLocation.includes(o);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function w(e) {
|
|
51
|
+
return e.hideInApp === !1;
|
|
52
|
+
}
|
|
53
|
+
function x(e) {
|
|
54
|
+
return e.event.type === "SIMPLE_CLAIM" && !w(e);
|
|
55
|
+
}
|
|
56
|
+
function X(e) {
|
|
51
57
|
const o = i.value.triggerType;
|
|
52
58
|
if (!o || o.length === 0) return !0;
|
|
53
59
|
const r = e.event.type;
|
|
54
60
|
return o.includes(r);
|
|
55
61
|
}
|
|
56
|
-
const
|
|
62
|
+
const W = [
|
|
57
63
|
{
|
|
58
64
|
header: a("connect.voucher.voucherTitle"),
|
|
59
|
-
accessorFn: (e) => e.name
|
|
65
|
+
accessorFn: (e) => e.name,
|
|
66
|
+
cell(e) {
|
|
67
|
+
const o = [e.row.original.name];
|
|
68
|
+
return w(e.row.original) && o.push(
|
|
69
|
+
m(p.FmChip, {
|
|
70
|
+
label: "Feedvibe",
|
|
71
|
+
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
72
|
+
compact: !0
|
|
73
|
+
})
|
|
74
|
+
), m("div", { class: "flex items-center gap-4" }, o);
|
|
75
|
+
}
|
|
60
76
|
},
|
|
61
77
|
{
|
|
62
78
|
header: a("connect.voucher.status"),
|
|
63
|
-
accessorFn: (e) =>
|
|
79
|
+
accessorFn: (e) => fe(e),
|
|
64
80
|
cell(e) {
|
|
65
|
-
return
|
|
81
|
+
return M(e.row.original);
|
|
66
82
|
}
|
|
67
83
|
},
|
|
68
84
|
{
|
|
69
85
|
header: a("connect.voucher.summary"),
|
|
70
|
-
accessorFn: (e) =>
|
|
86
|
+
accessorFn: (e) => H(e)
|
|
71
87
|
},
|
|
72
88
|
{
|
|
73
89
|
header: a("connect.voucher.quota"),
|
|
@@ -87,19 +103,19 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
87
103
|
header: a("connect.voucher.actions"),
|
|
88
104
|
cell(e) {
|
|
89
105
|
return m("div", { class: "flex items-center justify-end" }, [
|
|
90
|
-
m(
|
|
106
|
+
m(p.FmButton, {
|
|
91
107
|
icon: "visibility",
|
|
92
108
|
variant: "tertiary",
|
|
93
109
|
iconColor: "neutral-gray-400",
|
|
94
110
|
onClick: async (o) => {
|
|
95
|
-
o.stopPropagation(), await
|
|
96
|
-
name:
|
|
111
|
+
o.stopPropagation(), await E.push({
|
|
112
|
+
name: $["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
97
113
|
params: { id: e.row.original._id }
|
|
98
114
|
});
|
|
99
115
|
}
|
|
100
116
|
}),
|
|
101
117
|
m(
|
|
102
|
-
|
|
118
|
+
p.FmMenu,
|
|
103
119
|
{
|
|
104
120
|
placement: "bottom-end",
|
|
105
121
|
onClick: (o) => {
|
|
@@ -107,7 +123,7 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
107
123
|
}
|
|
108
124
|
},
|
|
109
125
|
{
|
|
110
|
-
"menu-button": () => m(
|
|
126
|
+
"menu-button": () => m(p.FmButton, {
|
|
111
127
|
icon: "more_vert",
|
|
112
128
|
iconColor: "neutral-gray-400",
|
|
113
129
|
variant: "tertiary"
|
|
@@ -115,10 +131,10 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
115
131
|
default: () => {
|
|
116
132
|
const o = [
|
|
117
133
|
m(
|
|
118
|
-
|
|
134
|
+
p.FmMenuItem,
|
|
119
135
|
{
|
|
120
136
|
onClick: async (r) => {
|
|
121
|
-
r.stopPropagation(),
|
|
137
|
+
r.stopPropagation(), A(e.row.original);
|
|
122
138
|
}
|
|
123
139
|
},
|
|
124
140
|
{
|
|
@@ -132,28 +148,22 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
132
148
|
}
|
|
133
149
|
)
|
|
134
150
|
];
|
|
135
|
-
return e.row.original
|
|
136
|
-
m(
|
|
151
|
+
return x(e.row.original) && (o.unshift(
|
|
152
|
+
m(p.FmMenuItem, {
|
|
137
153
|
label: a("connect.voucher.send"),
|
|
138
154
|
onClick: async (r) => {
|
|
139
155
|
var s;
|
|
140
|
-
r.stopPropagation(), (s =
|
|
156
|
+
r.stopPropagation(), (s = k.value) == null || s.showSheet({
|
|
141
157
|
campaignId: e.row.original._id
|
|
142
158
|
});
|
|
143
159
|
}
|
|
144
160
|
})
|
|
145
161
|
), o.unshift(
|
|
146
|
-
m(
|
|
162
|
+
m(p.FmMenuItem, {
|
|
147
163
|
label: a("connect.voucher.share"),
|
|
148
164
|
onClick: async (r) => {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"Cannot share a voucher that is not a simple claim.",
|
|
152
|
-
"Share Voucher",
|
|
153
|
-
"OK"
|
|
154
|
-
);
|
|
155
|
-
await ce(
|
|
156
|
-
`https://${ie().currentBusiness.value._id}.${_e.appUrl}/vouchers/${e.row.original._id}`,
|
|
165
|
+
r.stopPropagation(), await se(
|
|
166
|
+
`https://${me().currentBusiness.value._id}.${be.appUrl}/vouchers/${e.row.original._id}`,
|
|
157
167
|
{
|
|
158
168
|
successMessage: "Voucher link copied to clipboard"
|
|
159
169
|
}
|
|
@@ -167,11 +177,11 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
167
177
|
]);
|
|
168
178
|
}
|
|
169
179
|
}
|
|
170
|
-
],
|
|
171
|
-
async function
|
|
172
|
-
await
|
|
180
|
+
], I = V(), k = V();
|
|
181
|
+
async function A(e) {
|
|
182
|
+
await le.remove(a("connect.voucher.confirmRemove", { name: e.name })) && await P(
|
|
173
183
|
async () => {
|
|
174
|
-
await
|
|
184
|
+
await b.delete(e._id), await f.read("VOUCHER");
|
|
175
185
|
},
|
|
176
186
|
{
|
|
177
187
|
message: a("connect.voucher.removing", { name: e.name }),
|
|
@@ -181,21 +191,21 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
181
191
|
}
|
|
182
192
|
);
|
|
183
193
|
}
|
|
184
|
-
async function
|
|
185
|
-
e ? await o() :
|
|
194
|
+
async function _(e) {
|
|
195
|
+
e ? await o() : N.open(async (r) => {
|
|
186
196
|
await o(r);
|
|
187
197
|
});
|
|
188
198
|
async function o(r) {
|
|
189
199
|
var s;
|
|
190
|
-
(s =
|
|
200
|
+
(s = I.value) == null || s.showSheet(
|
|
191
201
|
!0,
|
|
192
202
|
"VOUCHER",
|
|
193
|
-
e ? await
|
|
203
|
+
e ? await b.readById(e._id) : void 0,
|
|
194
204
|
r
|
|
195
205
|
);
|
|
196
206
|
}
|
|
197
207
|
}
|
|
198
|
-
async function
|
|
208
|
+
async function z(e) {
|
|
199
209
|
e.campaign._id && await new Promise((o) => {
|
|
200
210
|
L.open({
|
|
201
211
|
title: "Confirmation",
|
|
@@ -208,9 +218,9 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
208
218
|
}).onSecondary(async () => {
|
|
209
219
|
o();
|
|
210
220
|
});
|
|
211
|
-
}), await
|
|
221
|
+
}), await P(
|
|
212
222
|
async () => {
|
|
213
|
-
e.campaign._id ? await
|
|
223
|
+
e.campaign._id ? await b.update(e.campaign._id, e) : await b.create(e), await f.read("VOUCHER");
|
|
214
224
|
},
|
|
215
225
|
{
|
|
216
226
|
message: a(
|
|
@@ -222,117 +232,123 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
222
232
|
}
|
|
223
233
|
);
|
|
224
234
|
}
|
|
225
|
-
return
|
|
226
|
-
await
|
|
227
|
-
await
|
|
235
|
+
return ne(async () => {
|
|
236
|
+
await j(async () => {
|
|
237
|
+
await f.read("VOUCHER");
|
|
228
238
|
});
|
|
229
239
|
}), (e, o) => {
|
|
230
|
-
const r = d("FmPageHead"), s = d("FmSearch"),
|
|
231
|
-
return u(),
|
|
240
|
+
const r = d("FmPageHead"), s = d("FmSearch"), Q = d("FmTable"), Z = d("FmChip"), C = d("FmButton"), J = d("FmListItem"), Y = d("FmList"), ee = d("FmCard");
|
|
241
|
+
return u(), S(U, null, [
|
|
232
242
|
l(r, {
|
|
233
243
|
title: t(a)("connect.voucher.title"),
|
|
234
|
-
actions: t(
|
|
235
|
-
"onClick:action": o[0] || (o[0] = () =>
|
|
244
|
+
actions: t(v).length > 0 ? [K] : [],
|
|
245
|
+
"onClick:action": o[0] || (o[0] = () => _())
|
|
236
246
|
}, null, 8, ["title", "actions"]),
|
|
237
|
-
c("div",
|
|
247
|
+
c("div", we, [
|
|
238
248
|
l(s, {
|
|
239
249
|
modelValue: t(i).searchKey,
|
|
240
250
|
"onUpdate:modelValue": o[1] || (o[1] = (n) => t(i).searchKey = n),
|
|
241
|
-
class: "hidden xs
|
|
251
|
+
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
242
252
|
placeholder: t(a)("connect.voucher.search"),
|
|
243
253
|
collapsible: ""
|
|
244
254
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
245
|
-
t(
|
|
246
|
-
c("div",
|
|
247
|
-
c("div",
|
|
248
|
-
l(
|
|
255
|
+
t(f).campaigns.voucher && t(f).campaigns.voucher.length > 0 ? (u(), S(U, { key: 0 }, [
|
|
256
|
+
c("div", xe, [
|
|
257
|
+
c("div", ke, [
|
|
258
|
+
l(O, {
|
|
249
259
|
label: `${t(a)("connect.common.location")}: `,
|
|
250
260
|
"right-icon": "keyboard_arrow_down",
|
|
251
261
|
modelValue: t(i).location,
|
|
252
262
|
"onUpdate:modelValue": o[2] || (o[2] = (n) => t(i).location = n),
|
|
253
263
|
icon: "storefront",
|
|
254
264
|
"show-item-label": !0,
|
|
255
|
-
items: t(
|
|
265
|
+
items: t(D).locationOptions
|
|
256
266
|
}, null, 8, ["label", "modelValue", "items"]),
|
|
257
|
-
l(
|
|
267
|
+
l(O, {
|
|
258
268
|
label: "Type:",
|
|
259
269
|
"right-icon": "keyboard_arrow_down",
|
|
260
270
|
modelValue: t(i).triggerType,
|
|
261
271
|
"onUpdate:modelValue": o[3] || (o[3] = (n) => t(i).triggerType = n),
|
|
262
272
|
icon: "filter_list",
|
|
263
273
|
"show-item-label": !0,
|
|
264
|
-
items: t(
|
|
274
|
+
items: t(q)
|
|
265
275
|
}, null, 8, ["modelValue", "items"])
|
|
266
276
|
]),
|
|
267
277
|
l(s, {
|
|
268
278
|
modelValue: t(i).searchKey,
|
|
269
279
|
"onUpdate:modelValue": o[4] || (o[4] = (n) => t(i).searchKey = n),
|
|
270
|
-
class: "xs:hidden",
|
|
280
|
+
class: "xs:hidden sm:hidden",
|
|
271
281
|
placeholder: t(a)("connect.voucher.search"),
|
|
272
282
|
collapsible: ""
|
|
273
283
|
}, null, 8, ["modelValue", "placeholder"])
|
|
274
284
|
]),
|
|
275
|
-
l(
|
|
276
|
-
class: "xs:hidden",
|
|
277
|
-
"row-data": t(
|
|
278
|
-
"column-defs":
|
|
285
|
+
l(Q, {
|
|
286
|
+
class: "xs:hidden sm:hidden",
|
|
287
|
+
"row-data": t(v),
|
|
288
|
+
"column-defs": W,
|
|
279
289
|
"search-value": t(i).searchKey,
|
|
280
290
|
"column-filter": [],
|
|
281
|
-
onRowClick: o[5] || (o[5] = (n) =>
|
|
282
|
-
"hide-footer": t(
|
|
291
|
+
onRowClick: o[5] || (o[5] = (n) => _(n.original)),
|
|
292
|
+
"hide-footer": t(v).length < 10
|
|
283
293
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
284
|
-
l(
|
|
285
|
-
default:
|
|
286
|
-
(u(!0),
|
|
294
|
+
l(Y, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
295
|
+
default: T(() => [
|
|
296
|
+
(u(!0), S(U, null, ae(t(v).filter(
|
|
287
297
|
(n) => n.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
|
|
288
|
-
), (n) => (u(), h(
|
|
298
|
+
), (n) => (u(), h(J, {
|
|
289
299
|
key: n._id.toString(),
|
|
290
|
-
onClick: (
|
|
300
|
+
onClick: (F) => _(n),
|
|
291
301
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
292
302
|
}, {
|
|
293
|
-
default:
|
|
294
|
-
var
|
|
303
|
+
default: T(() => {
|
|
304
|
+
var F;
|
|
295
305
|
return [
|
|
296
|
-
c("div",
|
|
297
|
-
c("div", ke, [
|
|
298
|
-
(u(), h(ne(t(O)(n)))),
|
|
299
|
-
c("div", xe, g(((k = n.pf_collectible) == null ? void 0 : k.currentReceive) ?? 0) + " claimed ", 1)
|
|
300
|
-
]),
|
|
306
|
+
c("div", Fe, [
|
|
301
307
|
c("div", Ve, [
|
|
302
|
-
|
|
303
|
-
|
|
308
|
+
(u(), h(re(t(M)(n)))),
|
|
309
|
+
w(n) ? (u(), h(Z, {
|
|
310
|
+
key: 0,
|
|
311
|
+
label: "Feedvibe",
|
|
312
|
+
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
313
|
+
compact: ""
|
|
314
|
+
})) : R("", !0),
|
|
315
|
+
c("div", Se, g(((F = n.pf_collectible) == null ? void 0 : F.currentReceive) ?? 0) + " claimed ", 1)
|
|
316
|
+
]),
|
|
317
|
+
c("div", Ue, [
|
|
318
|
+
c("div", Te, g(n.name), 1),
|
|
319
|
+
c("div", Re, g(t(H)(n)), 1)
|
|
304
320
|
])
|
|
305
321
|
]),
|
|
306
322
|
c("div", Le, [
|
|
307
|
-
n
|
|
323
|
+
x(n) ? (u(), h(C, {
|
|
308
324
|
key: 0,
|
|
309
325
|
icon: "visibility",
|
|
310
326
|
"icon-color": "neutral-gray-400",
|
|
311
327
|
variant: "tertiary",
|
|
312
328
|
onClick: async (y) => {
|
|
313
|
-
y.stopPropagation(), await t(
|
|
314
|
-
name: t(
|
|
329
|
+
y.stopPropagation(), await t(E).push({
|
|
330
|
+
name: t($)["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
315
331
|
params: { id: n._id }
|
|
316
332
|
});
|
|
317
333
|
}
|
|
318
|
-
}, null, 8, ["onClick"])) :
|
|
319
|
-
n
|
|
334
|
+
}, null, 8, ["onClick"])) : R("", !0),
|
|
335
|
+
x(n) ? (u(), h(C, {
|
|
320
336
|
key: 1,
|
|
321
337
|
icon: "send",
|
|
322
338
|
"icon-color": "neutral-gray-400",
|
|
323
339
|
variant: "tertiary",
|
|
324
340
|
onClick: (y) => {
|
|
325
|
-
var
|
|
326
|
-
y.stopPropagation(), (
|
|
341
|
+
var B;
|
|
342
|
+
y.stopPropagation(), (B = t(k)) == null || B.showSheet({
|
|
327
343
|
campaignId: n._id
|
|
328
344
|
});
|
|
329
345
|
}
|
|
330
|
-
}, null, 8, ["onClick"])) :
|
|
346
|
+
}, null, 8, ["onClick"])) : R("", !0),
|
|
331
347
|
l(C, {
|
|
332
348
|
icon: "delete",
|
|
333
349
|
"icon-color": "neutral-gray-400",
|
|
334
350
|
variant: "tertiary",
|
|
335
|
-
onClick: (y) => (y.stopPropagation(),
|
|
351
|
+
onClick: (y) => (y.stopPropagation(), A(n))
|
|
336
352
|
}, null, 8, ["onClick"])
|
|
337
353
|
])
|
|
338
354
|
];
|
|
@@ -342,37 +358,37 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
342
358
|
]),
|
|
343
359
|
_: 1
|
|
344
360
|
})
|
|
345
|
-
], 64)) : (u(), h(
|
|
361
|
+
], 64)) : (u(), h(ee, {
|
|
346
362
|
key: 1,
|
|
347
363
|
variant: "outlined",
|
|
348
364
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
349
365
|
}, {
|
|
350
|
-
default:
|
|
366
|
+
default: T(() => [
|
|
351
367
|
o[7] || (o[7] = c("img", {
|
|
352
|
-
src:
|
|
368
|
+
src: ce,
|
|
353
369
|
class: "aspect-square w-[150px]"
|
|
354
370
|
}, null, -1)),
|
|
355
|
-
c("div",
|
|
356
|
-
c("div",
|
|
357
|
-
c("div",
|
|
371
|
+
c("div", Pe, [
|
|
372
|
+
c("div", Ee, g(t(a)("connect.voucher.createVoucherCampaign")), 1),
|
|
373
|
+
c("div", Ie, g(t(a)("connect.voucher.description")), 1)
|
|
358
374
|
]),
|
|
359
375
|
l(C, {
|
|
360
376
|
variant: "primary",
|
|
361
377
|
label: t(a)("connect.voucher.createVoucherCampaign"),
|
|
362
378
|
icon: "add",
|
|
363
|
-
onClick: o[6] || (o[6] = (n) =>
|
|
379
|
+
onClick: o[6] || (o[6] = (n) => _())
|
|
364
380
|
}, null, 8, ["label"])
|
|
365
381
|
]),
|
|
366
382
|
_: 1
|
|
367
383
|
})),
|
|
368
|
-
l(
|
|
384
|
+
l(ye, {
|
|
369
385
|
ref_key: "sheetRef",
|
|
370
|
-
ref:
|
|
371
|
-
"onSubmit:modelValue":
|
|
386
|
+
ref: I,
|
|
387
|
+
"onSubmit:modelValue": z
|
|
372
388
|
}, null, 512),
|
|
373
|
-
l(
|
|
389
|
+
l(ge, {
|
|
374
390
|
ref_key: "sendVoucherSheetRef",
|
|
375
|
-
ref:
|
|
391
|
+
ref: k
|
|
376
392
|
}, null, 512)
|
|
377
393
|
])
|
|
378
394
|
], 64);
|
|
@@ -380,5 +396,5 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
380
396
|
}
|
|
381
397
|
});
|
|
382
398
|
export {
|
|
383
|
-
|
|
399
|
+
oo as default
|
|
384
400
|
};
|