@feedmepos/mf-connect 0.1.37-prod → 0.1.38-beta.1
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-O-qZWrFp.js +761 -0
- package/dist/{App-Bpo0XZSs.js → App-BWZ2EE71.js} +364 -352
- package/dist/AuditLogs-DlmcFEta.js +1887 -0
- package/dist/{Bin-ohZ2CZZR.js → Bin-C-Ha-4yF.js} +8 -8
- package/dist/{Broadcast-D5x0_-zC.js → Broadcast-Bo3QS8lS.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYb38NXA.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4vUMzH-l.js} +18 -18
- package/dist/{Card-BM-Lrm5y.js → Card-Bs1TDE0e.js} +159 -159
- package/dist/{Collections-Cr4aoJer.js → Collections-Dy5RN7Js.js} +103 -91
- package/dist/{Credit-DzDVFv4H.js → Credit-Bqc4dw1s.js} +74 -74
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs8o9n1V.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6AmN3o3.js} +490 -488
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-koqrPPqM.js → EffectSheet.vue_vue_type_style_index_0_lang-BzwADnKp.js} +91 -89
- package/dist/{Experience-CjaDdbvZ.js → Experience-C2e2T7B-.js} +41 -41
- package/dist/{FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js → FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js} +2 -6
- package/dist/{Game-BuiTygow.js → Game-C86eEhcx.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
- package/dist/{Index-CQGzUU-w.js → Index-BRGweFco.js} +10 -10
- package/dist/Marketing-CnnrnXbS.js +20073 -0
- package/dist/{Member-B4S0UNGq.js → Member-B3o0Zhcw.js} +76 -76
- package/dist/MemberList-BpE1IjED.js +1606 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DzG1fY0c.js → MemberTransactions-C4hao-d9.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-hZUWLTWj.js → MessageInput.vue_vue_type_script_setup_true_lang-D9zfmqLs.js} +36 -36
- package/dist/{Mission-BtypT2uF.js → Mission-BURXfzjd.js} +21 -21
- package/dist/{Overview-Be7bUtRO.js → Overview-D_hrrM4O.js} +335 -335
- package/dist/{Point-Bw4lnLqp.js → Point-CJXkJY5Q.js} +41 -41
- package/dist/Promotion-CunJrh42.js +289 -0
- package/dist/{Queue-CpPEVgn8.js → Queue-v5Itg9J4.js} +52 -52
- package/dist/{Record-DQq4P69i.js → Record-DJe4tg9R.js} +9 -9
- package/dist/{Reward-DJH0eM8u.js → Reward-Y9aHpny5.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-_kw_PR0h.js → RewardGroup.vue_vue_type_script_setup_true_lang-1KAjCblO.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CRGep1RK.js → RuleGroup.vue_vue_type_script_setup_true_lang-Cr99ikbK.js} +635 -548
- package/dist/Segment-DVT8uDn8.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dx6Ew9Z_.js → SelectItems.vue_vue_type_script_setup_true_lang-BhJ-oVMb.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B60_8Toi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-b5bjfBvc.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCaJ3xKT.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DoKAgSLE.js} +3 -3
- package/dist/{Setting-GRIUo7vg.js → Setting-BU5778gG.js} +432 -432
- package/dist/{Store-H0UDQpln.js → Store-IWg0POAU.js} +211 -211
- package/dist/StoreRewards-CIjHcVoh.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cx05-OPF.js +1029 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D-jL1oGS.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BcOvr526.js} +1 -1
- package/dist/{Tier-CJufQcIz.js → Tier-iN30KD7g.js} +106 -106
- package/dist/{Title-BBMgGUld.js → Title-Duh_Srek.js} +133 -131
- package/dist/{Transaction-DsucPnfp.js → Transaction-DLBA7Svl.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CwOcZEQX.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DLD5d43d.js} +6 -6
- package/dist/{Voucher-BPvxKO_w.js → Voucher-cTvlMN0Y.js} +153 -123
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DkjojUvD.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DMs4XKXM.js → ZodTextField.vue_vue_type_script_setup_true_lang-C5S-bi5J.js} +1 -1
- package/dist/{app-Bo0JpadQ.js → app-A3oEKLq5.js} +1 -1
- package/dist/{app-D3MT1deX.js → app-De-yQ1CJ.js} +164 -125
- package/dist/app.js +4 -3
- package/dist/business-B2JBpm4y.js +79 -0
- package/dist/{campaign-Z3l7BoMg.js → campaign-Bhur0NJx.js} +9 -9
- package/dist/{campaign-j1c3ou7l.js → campaign-vkzui6F2.js} +5 -3
- package/dist/{campaign.enum-CVXPc5Pd.js → campaign.enum-DCYkKGhd.js} +1 -1
- package/dist/{campaign.fn-rsRhHYZP.js → campaign.fn--affTEi5.js} +75 -75
- package/dist/{collectible.enum-CDSikBAy.js → collectible.enum-CLBCnfev.js} +1 -1
- package/dist/{collection.fn-Bz38mGMa.js → collection.fn-bA8q0KYy.js} +2 -2
- package/dist/{dto-D648NN4s.js → dto-RCcWeYE0.js} +4 -4
- package/dist/{effect-DbMAmVSR.js → effect-D7qRfPe_.js} +1 -1
- package/dist/{email-addresses-KOVDrRiK.js → email-addresses-a8PqViID.js} +1 -1
- package/dist/{export-cTZf8Avd.js → export-BneqNRn4.js} +3 -3
- package/dist/{helper-BYyfcLqw.js → helper-DfvvxOyO.js} +1 -1
- package/dist/{index-E-0tTd0_.js → index-2LpkG8Ye.js} +1 -1
- package/dist/{index-BMl2KZts.js → index-4kMeSNTr.js} +11447 -10969
- package/dist/{index-BrKXRxe_.js → index-B0T9GDIZ.js} +1 -1
- package/dist/{index-B3p0hmIV.js → index-BWTvsoH0.js} +1 -1
- package/dist/index-CMBPIb8x.js +32260 -0
- package/dist/{index-DPBHiqsJ.js → index-CTKMdxSm.js} +1 -1
- package/dist/index-CVAWGMus.js +56 -0
- package/dist/index-CbsJ6vMJ.js +31 -0
- package/dist/{index-BTb8I_eB.js → index-CrFUhsZO.js} +1 -1
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-CvoShC5J.js → index-CtDqXnOp.js} +535 -460
- package/dist/{index-BIaCtk8e.js → index-D0GnMoag.js} +181 -79
- package/dist/{index-nF9iYTlh.js → index-DMrIQqFt.js} +1 -1
- package/dist/{index-B4MqsaBz.js → index-DeXvASjP.js} +3 -3
- package/dist/{index-CTPMbFf5.js → index-y-7yUm2e.js} +10 -9
- package/dist/{index.esm2017-DFYwde30.js → index.esm2017-JtyypweZ.js} +127 -127
- package/dist/{loading-vUArhX_O.js → loading-a-FqrwqI.js} +1 -1
- package/dist/{membership-BHKv29yt.js → membership-CGVtil5J.js} +3 -3
- package/dist/{money-Bl3_QRkE.js → money-CTc1l_Cq.js} +1 -1
- package/dist/{number-hh_S9w7k.js → number-W3R-0nYP.js} +1 -1
- package/dist/objectid-BU0Y8iAN.js +145 -0
- package/dist/{plugins-CVes2wzE.js → plugins-D2sSgTSl.js} +2 -2
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/{reward-ANZOdWzf.js → reward-atP8vnNn.js} +1 -1
- package/dist/{rule-builder-BSN777PN.js → rule-builder-BB29ZJ_C.js} +17 -17
- package/dist/{rule-BvFk5bQg.js → rule-eA5IvnjB.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{template-Dh9lDLs_.js → template-DhBeDaAm.js} +64 -64
- package/dist/{trigger-C7THbt7R.js → trigger-Bq_pZj1J.js} +7 -7
- package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
- package/dist/{user-DtNR9JY2.js → user-B-bhVFIG.js} +1 -1
- package/dist/{vue-i18n-BWyHnm4m.js → vue-i18n-D-h8VDSx.js} +310 -310
- package/dist/{xlsx-7u9SB0oa.js → xlsx-DsByAcZl.js} +226 -226
- package/package.json +5 -3
- package/dist/Analytic-CavR2bzs.js +0 -427
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/Marketing-BSspYuhg.js +0 -319
- package/dist/MemberList-CfnUJ3mh.js +0 -1606
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/Promotion-Bg6x0rAh.js +0 -255
- package/dist/Segment-BLB4VWNJ.js +0 -882
- package/dist/StoreRewards--TNIFaCo.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfB8tA5l.js +0 -995
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bg-9YqLP.js +0 -419
- package/dist/business-DMALI7ZO.js +0 -78
- package/dist/index-BsCGyJMY.js +0 -29566
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-DFKmjCG1.js +0 -44
- package/dist/index-Dbd4WA4r.js +0 -61
- package/dist/objectid-CEyMlMge.js +0 -145
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-connect",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
"./style": "./dist/style.css"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@feedmepos/core": "
|
|
18
|
+
"@feedmepos/core": "2.14.32",
|
|
19
19
|
"@feedmepos/menu": "1.0.34",
|
|
20
20
|
"@feedmepos/mf-common": "1.12.5",
|
|
21
21
|
"@feedmepos/mf-core-ui": "1.0.20",
|
|
22
22
|
"@feedmepos/ui-library": "1.6.7",
|
|
23
|
+
"@feedmepos/remy-vue-client": "0.2.0-beta.14",
|
|
23
24
|
"@types/qrcode": "^1.5.5",
|
|
24
25
|
"axios": "^1.7.2",
|
|
25
26
|
"bson-objectid": "^2.0.4",
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
"dayjs": "^1.11.12",
|
|
29
30
|
"dotenv": "^16.4.5",
|
|
30
31
|
"email-addresses": "^5.0.0",
|
|
31
|
-
"fabric": "^
|
|
32
|
+
"fabric": "^5.5.1",
|
|
32
33
|
"file-saver": "^2.0.5",
|
|
33
34
|
"firebase": "^10.12.4",
|
|
34
35
|
"i18next": "24.2.1",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"pinia": "^2.1.7",
|
|
38
39
|
"qrcode": "^1.5.3",
|
|
39
40
|
"rrule": "^2.8.1",
|
|
41
|
+
"ua-parser-js": "^2.0.3",
|
|
40
42
|
"unplugin-auto-import": "^0.17.8",
|
|
41
43
|
"uuid": "^10.0.0",
|
|
42
44
|
"vite-plugin-vue-devtools": "^7.6.4",
|
|
@@ -1,427 +0,0 @@
|
|
|
1
|
-
import { defineComponent as j, ref as y, watch as X, onMounted as I, resolveComponent as x, openBlock as d, createBlock as A, withCtx as L, createVNode as h, unref as t, createElementVNode as i, createElementBlock as k, Fragment as $, renderList as D, computed as G, toDisplayString as O, isRef as T, createSlots as Y, createCommentVNode as V, createTextVNode as ee, reactive as te, onBeforeMount as ae } from "vue";
|
|
2
|
-
import { _ as ne } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import "./index-BMl2KZts.js";
|
|
4
|
-
import "./campaign-Z3l7BoMg.js";
|
|
5
|
-
import { useRouter as le } from "vue-router";
|
|
6
|
-
import { c as R } from "./index-B3p0hmIV.js";
|
|
7
|
-
import { _ as oe } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DMs4XKXM.js";
|
|
8
|
-
import { Z as se } from "./zod-Bg2FbC-D.js";
|
|
9
|
-
import { F as re } from "./dto-D648NN4s.js";
|
|
10
|
-
import { J as ie } from "./JsonViewer-v8_C7l5N.js";
|
|
11
|
-
import "./index-BsCGyJMY.js";
|
|
12
|
-
import { useSnackbar as ue } from "@feedmepos/ui-library";
|
|
13
|
-
import { u as ce } from "./app-wDQR6dpb.js";
|
|
14
|
-
import { u as me } from "./loading-vUArhX_O.js";
|
|
15
|
-
import { C as de } from "./campaign.fn-rsRhHYZP.js";
|
|
16
|
-
import { g as pe } from "./object-qECH92oz.js";
|
|
17
|
-
import { u as ve } from "./campaign-j1c3ou7l.js";
|
|
18
|
-
import { u as fe } from "./membership-BHKv29yt.js";
|
|
19
|
-
import { u as ye } from "./vue-i18n-BWyHnm4m.js";
|
|
20
|
-
const _e = { class: "ml-32 flex flex-col" }, ge = /* @__PURE__ */ j({
|
|
21
|
-
__name: "CampaignCard",
|
|
22
|
-
props: {
|
|
23
|
-
title: {},
|
|
24
|
-
items: {},
|
|
25
|
-
modelValue: {}
|
|
26
|
-
},
|
|
27
|
-
emits: ["update:model-value"],
|
|
28
|
-
setup(U, { emit: b }) {
|
|
29
|
-
const u = U, v = b, S = (o) => {
|
|
30
|
-
o ? p.value = u.items.map((a) => a.value) : p.value = [], r.value = o, v("update:model-value", p.value);
|
|
31
|
-
}, _ = (o) => {
|
|
32
|
-
p.value = o, r.value = o.length === u.items.length, v("update:model-value", o);
|
|
33
|
-
}, r = y(!1), p = y([]);
|
|
34
|
-
return X(
|
|
35
|
-
() => u.modelValue,
|
|
36
|
-
() => {
|
|
37
|
-
p.value = u.modelValue.filter(
|
|
38
|
-
(o) => u.items.find((a) => a.value === o)
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
), I(() => {
|
|
42
|
-
p.value = u.modelValue.filter(
|
|
43
|
-
(o) => u.items.find((a) => a.value === o)
|
|
44
|
-
);
|
|
45
|
-
}), (o, a) => {
|
|
46
|
-
const g = x("FmCheckbox"), l = x("FmCard");
|
|
47
|
-
return d(), A(l, {
|
|
48
|
-
variant: "outlined",
|
|
49
|
-
class: "p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-3"
|
|
50
|
-
}, {
|
|
51
|
-
default: L(() => [
|
|
52
|
-
h(g, {
|
|
53
|
-
"model-value": t(r),
|
|
54
|
-
value: "1",
|
|
55
|
-
label: u.title,
|
|
56
|
-
indeterminate: t(p).length > 0,
|
|
57
|
-
"onUpdate:modelValue": S
|
|
58
|
-
}, null, 8, ["model-value", "label", "indeterminate"]),
|
|
59
|
-
i("div", _e, [
|
|
60
|
-
(d(!0), k($, null, D(u.items, (n, c) => (d(), A(g, {
|
|
61
|
-
key: c,
|
|
62
|
-
"model-value": t(p),
|
|
63
|
-
label: n.label,
|
|
64
|
-
value: n.value,
|
|
65
|
-
"onUpdate:modelValue": _
|
|
66
|
-
}, null, 8, ["model-value", "label", "value"]))), 128))
|
|
67
|
-
])
|
|
68
|
-
]),
|
|
69
|
-
_: 1
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}), he = { class: "space-y-16" }, be = { class: "flex items-center" }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary w-[300px]" }, Ce = { class: "space-y-[40px]" }, ke = /* @__PURE__ */ j({
|
|
74
|
-
__name: "LinkCampaign",
|
|
75
|
-
props: {
|
|
76
|
-
modelValue: {
|
|
77
|
-
type: Array,
|
|
78
|
-
required: !0
|
|
79
|
-
},
|
|
80
|
-
campaigns: {
|
|
81
|
-
type: Object,
|
|
82
|
-
required: !0
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
emits: ["update:model-value"],
|
|
86
|
-
setup(U, { emit: b }) {
|
|
87
|
-
const u = y(""), v = y([]), S = U, _ = b, r = G(() => Object.entries(S.campaigns).reduce((o, [a, g]) => {
|
|
88
|
-
const l = g.filter(
|
|
89
|
-
(n) => n.label.toLowerCase().includes(u.value.toLowerCase())
|
|
90
|
-
);
|
|
91
|
-
return l.length > 0 && (o[a] = l), o;
|
|
92
|
-
}, {}));
|
|
93
|
-
function p(o, a) {
|
|
94
|
-
v.value = v.value.filter(
|
|
95
|
-
(g) => !a.map((l) => l.value).includes(g)
|
|
96
|
-
), v.value = [.../* @__PURE__ */ new Set([...v.value, ...o])], _("update:model-value", v.value);
|
|
97
|
-
}
|
|
98
|
-
return I(() => {
|
|
99
|
-
v.value = S.modelValue;
|
|
100
|
-
}), (o, a) => {
|
|
101
|
-
const g = x("FmTextField");
|
|
102
|
-
return d(), k($, null, [
|
|
103
|
-
h(ie, { json: U.campaigns }, null, 8, ["json"]),
|
|
104
|
-
i("div", he, [
|
|
105
|
-
i("div", be, [
|
|
106
|
-
i("div", xe, O(t(v).length) + " campaign(s) linked ", 1),
|
|
107
|
-
h(g, {
|
|
108
|
-
modelValue: t(u),
|
|
109
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) => T(u) ? u.value = l : null),
|
|
110
|
-
"prepend-icon": "search",
|
|
111
|
-
placeholder: "Search",
|
|
112
|
-
class: "w-full"
|
|
113
|
-
}, null, 8, ["modelValue"])
|
|
114
|
-
]),
|
|
115
|
-
i("div", Ce, [
|
|
116
|
-
(d(!0), k($, null, D(t(r), (l, n) => (d(), A(ge, {
|
|
117
|
-
"model-value": t(v),
|
|
118
|
-
title: n,
|
|
119
|
-
items: l,
|
|
120
|
-
"onUpdate:modelValue": (c) => p(c, l)
|
|
121
|
-
}, null, 8, ["model-value", "title", "items", "onUpdate:modelValue"]))), 256))
|
|
122
|
-
])
|
|
123
|
-
])
|
|
124
|
-
], 64);
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
}), Ve = { class: "flex items-center gap-x-8" }, Se = {
|
|
128
|
-
key: 0,
|
|
129
|
-
class: "space-y-16 pr-12"
|
|
130
|
-
}, we = /* @__PURE__ */ i("div", { class: "fm-typo-en-title-sm-800" }, "Group detail", -1), Fe = /* @__PURE__ */ i("div", { class: "fm-typo-en-title-sm-800" }, "Link campaign", -1), Ae = { class: "flex items-center gap-x-16" }, $e = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ue = { class: "mt-16" }, Pe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600 py-8 px-16 bg-gray-100" }, Le = { class: "flex justify-between items-center py-8 px-16 border-b-1" }, Ge = { class: "flex items-center gap-8" }, Me = /* @__PURE__ */ j({
|
|
131
|
-
__name: "AnalyticSheet",
|
|
132
|
-
emits: ["success"],
|
|
133
|
-
setup(U, { expose: b, emit: u }) {
|
|
134
|
-
const v = u, S = ce();
|
|
135
|
-
ue();
|
|
136
|
-
const _ = y(!1), r = y(!1), p = {
|
|
137
|
-
name: "",
|
|
138
|
-
campaigns: []
|
|
139
|
-
}, o = y(""), a = y({ ...p }), g = re.superRefine((s, e) => {
|
|
140
|
-
}), l = y([]), n = y(null), { global: c, minor: w } = me, P = G(() => {
|
|
141
|
-
const s = g.safeParse(a.value);
|
|
142
|
-
return s.success ? [] : s.error.errors;
|
|
143
|
-
});
|
|
144
|
-
function M(s) {
|
|
145
|
-
var e;
|
|
146
|
-
_.value = !0, s ? (n.value = { ...s }, a.value = { ...s, campaigns: (e = s.pf_campaigns) == null ? void 0 : e.map((m) => m._id) }) : (n.value = null, a.value = { ...p });
|
|
147
|
-
}
|
|
148
|
-
function F() {
|
|
149
|
-
_.value = !1, n.value = null;
|
|
150
|
-
}
|
|
151
|
-
function K() {
|
|
152
|
-
r.value = !0;
|
|
153
|
-
}
|
|
154
|
-
async function W() {
|
|
155
|
-
const s = await R.readAll({
|
|
156
|
-
limit: 1e3,
|
|
157
|
-
skip: 0,
|
|
158
|
-
sortBy: "_id",
|
|
159
|
-
search: "",
|
|
160
|
-
descending: !0
|
|
161
|
-
});
|
|
162
|
-
l.value = s.resources.filter(
|
|
163
|
-
(e) => !["MEMBERSHIP", "REWARD_POOL"].includes(e.type) && !["ISSUE_REWARD"].includes("event" in e ? e == null ? void 0 : e.event.type : "")
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
const N = G(() => {
|
|
167
|
-
const s = (m) => m.map((C) => ({
|
|
168
|
-
label: C.name,
|
|
169
|
-
value: C._id
|
|
170
|
-
}));
|
|
171
|
-
return pe(
|
|
172
|
-
l.value,
|
|
173
|
-
(m) => de.formattedType(m.type),
|
|
174
|
-
s
|
|
175
|
-
);
|
|
176
|
-
}), q = G(() => Object.entries(N.value).reduce(
|
|
177
|
-
(s, [e, m]) => {
|
|
178
|
-
const C = m.filter((B) => {
|
|
179
|
-
var E, f;
|
|
180
|
-
return (f = (E = a.value) == null ? void 0 : E.campaigns) == null ? void 0 : f.includes(B.value);
|
|
181
|
-
}).filter(
|
|
182
|
-
(B) => B.label.toLowerCase().includes(o.value.toLowerCase())
|
|
183
|
-
);
|
|
184
|
-
return C.length > 0 && (s[e] = C), s;
|
|
185
|
-
},
|
|
186
|
-
{}
|
|
187
|
-
));
|
|
188
|
-
function J(s) {
|
|
189
|
-
var m, C;
|
|
190
|
-
const e = (m = a.value.campaigns) == null ? void 0 : m.indexOf(s);
|
|
191
|
-
e != null && e > -1 && ((C = a.value.campaigns) == null || C.splice(e, 1));
|
|
192
|
-
}
|
|
193
|
-
async function Z() {
|
|
194
|
-
g.safeParse(a.value).success && await w(
|
|
195
|
-
async () => {
|
|
196
|
-
var e;
|
|
197
|
-
n.value ? await R.updateGroup(
|
|
198
|
-
(e = n.value) == null ? void 0 : e._id,
|
|
199
|
-
a.value
|
|
200
|
-
) : await R.createGroup(a.value), v("success"), F();
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
message: "Saving group",
|
|
204
|
-
successMessage: "Group saved"
|
|
205
|
-
}
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
async function z() {
|
|
209
|
-
await w(
|
|
210
|
-
async () => {
|
|
211
|
-
var s;
|
|
212
|
-
await R.deleteGroup((s = n.value) == null ? void 0 : s._id), v("success"), F();
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
message: "Deleting group",
|
|
216
|
-
successMessage: "Group deleted"
|
|
217
|
-
}
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
return I(async () => {
|
|
221
|
-
await W();
|
|
222
|
-
}), b({
|
|
223
|
-
showSheet: M,
|
|
224
|
-
hideSheet: F
|
|
225
|
-
}), (s, e) => {
|
|
226
|
-
const m = x("FmButton"), C = x("FmTextField"), B = x("FmList"), E = x("FmSideSheet");
|
|
227
|
-
return d(), A(E, {
|
|
228
|
-
modelValue: t(_),
|
|
229
|
-
"onUpdate:modelValue": e[7] || (e[7] = (f) => T(_) ? _.value = f : null),
|
|
230
|
-
header: t(n) ? "Edit group" : "Add group",
|
|
231
|
-
"dismiss-away": "",
|
|
232
|
-
"close-button": !0,
|
|
233
|
-
"max-width": 550
|
|
234
|
-
}, Y({
|
|
235
|
-
"side-sheet-footer": L(() => [
|
|
236
|
-
i("div", Ge, [
|
|
237
|
-
t(r) ? V("", !0) : (d(), k($, { key: 0 }, [
|
|
238
|
-
h(m, {
|
|
239
|
-
label: "Submit",
|
|
240
|
-
onClick: Z,
|
|
241
|
-
disabled: t(P).length > 0 || t(S).isLoading
|
|
242
|
-
}, null, 8, ["disabled"]),
|
|
243
|
-
h(m, {
|
|
244
|
-
label: "Cancel",
|
|
245
|
-
onClick: e[4] || (e[4] = (f) => F()),
|
|
246
|
-
variant: "tertiary"
|
|
247
|
-
}),
|
|
248
|
-
t(n) ? (d(), A(m, {
|
|
249
|
-
key: 0,
|
|
250
|
-
label: "Delete",
|
|
251
|
-
variant: "plain",
|
|
252
|
-
class: "ml-auto fm-color-system-error-300",
|
|
253
|
-
onClick: e[5] || (e[5] = (f) => z())
|
|
254
|
-
})) : V("", !0)
|
|
255
|
-
], 64)),
|
|
256
|
-
t(r) ? (d(), A(m, {
|
|
257
|
-
key: 1,
|
|
258
|
-
label: "Confirm",
|
|
259
|
-
onClick: e[6] || (e[6] = (f) => r.value = !1)
|
|
260
|
-
})) : V("", !0)
|
|
261
|
-
])
|
|
262
|
-
]),
|
|
263
|
-
default: L(() => [
|
|
264
|
-
t(r) ? V("", !0) : (d(), k("div", Se, [
|
|
265
|
-
we,
|
|
266
|
-
h(oe, {
|
|
267
|
-
modelValue: t(a).name,
|
|
268
|
-
"onUpdate:modelValue": e[1] || (e[1] = (f) => t(a).name = f),
|
|
269
|
-
label: "Name",
|
|
270
|
-
schema: t(se).typeAtPath(t(g), "name")
|
|
271
|
-
}, null, 8, ["modelValue", "schema"]),
|
|
272
|
-
Fe,
|
|
273
|
-
i("div", Ae, [
|
|
274
|
-
i("div", $e, O(t(a).campaigns.length) + " campaign(s) linked ", 1),
|
|
275
|
-
h(C, {
|
|
276
|
-
modelValue: t(o),
|
|
277
|
-
"onUpdate:modelValue": e[2] || (e[2] = (f) => T(o) ? o.value = f : null),
|
|
278
|
-
"prepend-icon": "search",
|
|
279
|
-
placeholder: "Search",
|
|
280
|
-
class: "w-auto"
|
|
281
|
-
}, null, 8, ["modelValue"])
|
|
282
|
-
]),
|
|
283
|
-
h(m, {
|
|
284
|
-
variant: "plain",
|
|
285
|
-
icon: "link",
|
|
286
|
-
label: "Link Campaign",
|
|
287
|
-
onClick: K
|
|
288
|
-
})
|
|
289
|
-
])),
|
|
290
|
-
t(r) ? (d(), A(ke, {
|
|
291
|
-
key: 1,
|
|
292
|
-
modelValue: t(a).campaigns,
|
|
293
|
-
"onUpdate:modelValue": e[3] || (e[3] = (f) => t(a).campaigns = f),
|
|
294
|
-
campaigns: t(N)
|
|
295
|
-
}, null, 8, ["modelValue", "campaigns"])) : V("", !0),
|
|
296
|
-
i("div", Ue, [
|
|
297
|
-
t(r) ? V("", !0) : (d(!0), k($, { key: 0 }, D(t(q), (f, Q) => (d(), k("div", null, [
|
|
298
|
-
i("div", Pe, O(Q), 1),
|
|
299
|
-
h(B, { separator: !0 }, {
|
|
300
|
-
default: L(() => [
|
|
301
|
-
(d(!0), k($, null, D(f, (H) => (d(), k("div", Le, [
|
|
302
|
-
i("div", null, O(H.label), 1),
|
|
303
|
-
i("div", null, [
|
|
304
|
-
h(m, {
|
|
305
|
-
icon: "delete",
|
|
306
|
-
onClick: (je) => J(H.value),
|
|
307
|
-
variant: "tertiary"
|
|
308
|
-
}, null, 8, ["onClick"])
|
|
309
|
-
])
|
|
310
|
-
]))), 256))
|
|
311
|
-
]),
|
|
312
|
-
_: 2
|
|
313
|
-
}, 1024)
|
|
314
|
-
]))), 256))
|
|
315
|
-
])
|
|
316
|
-
]),
|
|
317
|
-
_: 2
|
|
318
|
-
}, [
|
|
319
|
-
t(r) ? {
|
|
320
|
-
name: "side-sheet-header",
|
|
321
|
-
fn: L(() => [
|
|
322
|
-
i("div", Ve, [
|
|
323
|
-
h(m, {
|
|
324
|
-
icon: "arrow_back",
|
|
325
|
-
variant: "tertiary",
|
|
326
|
-
onClick: e[0] || (e[0] = (f) => r.value = !1)
|
|
327
|
-
}),
|
|
328
|
-
ee("Link campaign ")
|
|
329
|
-
])
|
|
330
|
-
]),
|
|
331
|
-
key: "0"
|
|
332
|
-
} : void 0
|
|
333
|
-
]), 1032, ["modelValue", "header"]);
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
}), Be = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Re = { class: "space-y-16" }, Ee = { class: "flex items-center justify-end" }, Oe = /* @__PURE__ */ i("img", {
|
|
337
|
-
src: ne,
|
|
338
|
-
class: "w-[150px]"
|
|
339
|
-
}, null, -1), De = /* @__PURE__ */ i("div", { class: "fm-typo-en-title-sm-800 text-center" }, " Analytics Dashboard Temporarily Unavailable ", -1), Te = /* @__PURE__ */ i("div", { class: "fm-typo-body-en-md-400 text-center text-fm-color-typo-secondary" }, " We apologize for the inconvenience. The analytics dashboard is currently under maintenance to improve your experience. Please check back later for updates on system availability. ", -1), rt = /* @__PURE__ */ j({
|
|
340
|
-
__name: "Analytic",
|
|
341
|
-
setup(U) {
|
|
342
|
-
const { t: b } = ye(), u = {
|
|
343
|
-
label: b("connect.analytic.addGroup"),
|
|
344
|
-
value: "create",
|
|
345
|
-
isPrimary: !0,
|
|
346
|
-
prependIcon: "add"
|
|
347
|
-
}, v = ve(), S = y(), _ = y([]), r = y(""), p = te({
|
|
348
|
-
totalCampaign: 0,
|
|
349
|
-
totalProgram: 0,
|
|
350
|
-
totalMember: 0
|
|
351
|
-
}), o = y("1");
|
|
352
|
-
b("connect.analytic.summary.totalCampaign"), b("connect.analytic.summary.totalProgram"), b("connect.analytic.summary.totalMember");
|
|
353
|
-
function a(n) {
|
|
354
|
-
var c;
|
|
355
|
-
o.value = (/* @__PURE__ */ new Date()).toISOString(), (c = S.value) == null || c.showSheet(n);
|
|
356
|
-
}
|
|
357
|
-
async function g() {
|
|
358
|
-
await v.readGroups();
|
|
359
|
-
const n = await R.readAllGrouped({
|
|
360
|
-
limit: 100,
|
|
361
|
-
skip: 0,
|
|
362
|
-
sortBy: "_id",
|
|
363
|
-
search: "",
|
|
364
|
-
descending: !0
|
|
365
|
-
});
|
|
366
|
-
_.value = n.resources;
|
|
367
|
-
}
|
|
368
|
-
G(() => _.value.filter((n) => {
|
|
369
|
-
var c;
|
|
370
|
-
return n.name.includes(r.value) || ((c = n.pf_campaigns) == null ? void 0 : c.filter((w) => w.name.includes(r.value)).length);
|
|
371
|
-
}));
|
|
372
|
-
const l = fe();
|
|
373
|
-
return le(), y(!0), G(() => {
|
|
374
|
-
var n, c, w, P;
|
|
375
|
-
return !l.storeOption || !l.storeOption.company ? -1 : !l.payoutAccount || !l.payoutAccount.enable || l.payoutAccount.status != "APPROVED" ? 0 : (c = (n = l.store) == null ? void 0 : n.categories) != null && c.length ? (P = (w = l.store) == null ? void 0 : w.categories) != null && P.some(
|
|
376
|
-
(M) => M.bundles.some((F) => F.isFeedvibe)
|
|
377
|
-
) ? 3 : 2 : 1;
|
|
378
|
-
}), ae(async () => {
|
|
379
|
-
await l.readMemberStore(), await l.readMembership(), await l.readPayoutAccount();
|
|
380
|
-
}), (n, c) => {
|
|
381
|
-
const w = x("FmPageHead"), P = x("FmSearch"), M = x("FmCard");
|
|
382
|
-
return x("FmButton"), x("FmIcon"), d(), k($, null, [
|
|
383
|
-
h(w, {
|
|
384
|
-
title: t(b)("connect.analytic.title"),
|
|
385
|
-
actions: t(_).length > 0 ? [u] : [],
|
|
386
|
-
"onClick:action": c[0] || (c[0] = (F) => a())
|
|
387
|
-
}, null, 8, ["title", "actions"]),
|
|
388
|
-
i("div", Be, [
|
|
389
|
-
i("div", Re, [
|
|
390
|
-
i("div", Ee, [
|
|
391
|
-
h(P, {
|
|
392
|
-
class: "xs:hidden",
|
|
393
|
-
modelValue: t(r),
|
|
394
|
-
"onUpdate:modelValue": c[1] || (c[1] = (F) => T(r) ? r.value = F : null),
|
|
395
|
-
placeholder: t(b)("connect.analytic.search"),
|
|
396
|
-
collapsible: ""
|
|
397
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
398
|
-
]),
|
|
399
|
-
V("", !0)
|
|
400
|
-
]),
|
|
401
|
-
V("", !0),
|
|
402
|
-
t(_).length ? V("", !0) : (d(), A(M, {
|
|
403
|
-
key: 1,
|
|
404
|
-
variant: "outlined",
|
|
405
|
-
class: "flex flex-col gap-y-24 items-center p-16"
|
|
406
|
-
}, {
|
|
407
|
-
default: L(() => [
|
|
408
|
-
Oe,
|
|
409
|
-
De,
|
|
410
|
-
Te
|
|
411
|
-
]),
|
|
412
|
-
_: 1
|
|
413
|
-
})),
|
|
414
|
-
V("", !0),
|
|
415
|
-
h(Me, {
|
|
416
|
-
ref_key: "sheetRef",
|
|
417
|
-
ref: S,
|
|
418
|
-
onSuccess: g
|
|
419
|
-
}, null, 512)
|
|
420
|
-
])
|
|
421
|
-
], 64);
|
|
422
|
-
};
|
|
423
|
-
}
|
|
424
|
-
});
|
|
425
|
-
export {
|
|
426
|
-
rt as default
|
|
427
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { openBlock as l, createElementBlock as o, createElementVNode as n, defineComponent as $, ref as h, onMounted as j, resolveComponent as m, renderSlot as v, toDisplayString as i, createCommentVNode as b, normalizeStyle as C, unref as s, Fragment as x, createVNode as w, withCtx as f, createTextVNode as g, normalizeClass as R, createBlock as F } from "vue";
|
|
2
|
-
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const z = {}, H = { class: "animate-pulse flex space-x-4 bg-gray-300 dark:bg-gray-700 items-center justify-center rounded w-full h-full" }, N = /* @__PURE__ */ n("svg", {
|
|
4
|
-
class: "dark:text-gray-600 h-10 text-gray-200 w-10",
|
|
5
|
-
"aria-hidden": "true",
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
fill: "currentColor",
|
|
8
|
-
viewBox: "0 0 20 18"
|
|
9
|
-
}, [
|
|
10
|
-
/* @__PURE__ */ n("path", { d: "M18 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm-5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm4.376 10.481A1 1 0 0 1 16 15H4a1 1 0 0 1-.895-1.447l3.5-7A1 1 0 0 1 7.468 6a.965.965 0 0 1 .9.5l2.775 4.757 1.546-1.887a1 1 0 0 1 1.618.1l2.541 4a1 1 0 0 1 .028 1.011Z" })
|
|
11
|
-
], -1), A = [
|
|
12
|
-
N
|
|
13
|
-
];
|
|
14
|
-
function D(e, p) {
|
|
15
|
-
return l(), o("div", H, A);
|
|
16
|
-
}
|
|
17
|
-
const I = /* @__PURE__ */ V(z, [["render", D]]), L = { class: "max-w-full max-h-[400px] space-y-4" }, T = { key: 0 }, U = { class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400" }, Z = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "h-full w-full relative bg-fm-color-neutral-white p-12 border-2 border-dashed border-fm-color-neutral-gray-300 rounded-md flex flex-col items-center justify-center gap-8 hover:border-fm-color-neutral-gray-400"
|
|
20
|
-
}, E = ["src"], M = ["src"], q = { class: "absolute right-0 top-0" }, G = /* @__PURE__ */ $({
|
|
21
|
-
__name: "ImageInput",
|
|
22
|
-
props: {
|
|
23
|
-
required: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: () => !1
|
|
26
|
-
},
|
|
27
|
-
disabled: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: () => !1
|
|
30
|
-
},
|
|
31
|
-
thumbnail: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: () => {
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
file: {
|
|
37
|
-
type: File,
|
|
38
|
-
default: () => {
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
label: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: () => {
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
aspectRatio: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: "2/3"
|
|
49
|
-
},
|
|
50
|
-
imageFit: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: "contain"
|
|
53
|
-
},
|
|
54
|
-
accept: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: ".png, .jpg, .jpeg, .webm"
|
|
57
|
-
},
|
|
58
|
-
recommendedSize: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: "Recommended: 950px x 600px"
|
|
61
|
-
},
|
|
62
|
-
deleteButton: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: !0
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
emits: ["update:file"],
|
|
68
|
-
setup(e, { emit: p }) {
|
|
69
|
-
const r = e, a = h({
|
|
70
|
-
loading: !1,
|
|
71
|
-
imgsrc: r.thumbnail
|
|
72
|
-
}), u = h(!1), y = p;
|
|
73
|
-
async function d(t) {
|
|
74
|
-
return t == null ? (a.value.imgsrc = void 0, y("update:file", null)) : (u.value = !!t.type.startsWith("video/"), a.value.loading = !0, a.value.imgsrc = URL.createObjectURL(t), a.value.loading = !1, y("update:file", t));
|
|
75
|
-
}
|
|
76
|
-
return j(() => {
|
|
77
|
-
var t;
|
|
78
|
-
r.file && d(r.file), (t = r.thumbnail) != null && t.includes("mp4") && (u.value = !0);
|
|
79
|
-
}), (t, c) => {
|
|
80
|
-
const k = m("FmDropField"), S = m("FmHelperText"), _ = m("FmButton");
|
|
81
|
-
return l(), o("div", L, [
|
|
82
|
-
v(t.$slots, "label", {}, () => [
|
|
83
|
-
e.label ? (l(), o("div", T, i(e.label), 1)) : b("", !0)
|
|
84
|
-
]),
|
|
85
|
-
n("div", {
|
|
86
|
-
style: C({ "aspect-ratio": e.aspectRatio }),
|
|
87
|
-
class: "flex flex-col max-h-full max-w-full"
|
|
88
|
-
}, [
|
|
89
|
-
s(a).loading ? (l(), F(I, { key: 1 })) : (l(), o(x, { key: 0 }, [
|
|
90
|
-
s(a).imgsrc ? (l(), o("div", Z, [
|
|
91
|
-
s(u) ? (l(), o("video", {
|
|
92
|
-
key: 1,
|
|
93
|
-
src: s(a).imgsrc || e.thumbnail,
|
|
94
|
-
class: "w-full h-full",
|
|
95
|
-
controls: ""
|
|
96
|
-
}, null, 8, M)) : (l(), o("img", {
|
|
97
|
-
key: 0,
|
|
98
|
-
class: R([`object-${e.imageFit}`, "w-full h-full"]),
|
|
99
|
-
src: s(a).imgsrc || e.thumbnail
|
|
100
|
-
}, null, 10, E)),
|
|
101
|
-
n("div", q, [
|
|
102
|
-
v(t.$slots, "delete-button"),
|
|
103
|
-
e.deleteButton ? (l(), F(_, {
|
|
104
|
-
key: 0,
|
|
105
|
-
class: "!text-neutral-50 !bg-neutral-700",
|
|
106
|
-
icon: "delete",
|
|
107
|
-
variant: "tertiary",
|
|
108
|
-
disabled: e.disabled,
|
|
109
|
-
onClick: c[1] || (c[1] = (B) => d(null))
|
|
110
|
-
}, null, 8, ["disabled"])) : b("", !0)
|
|
111
|
-
])
|
|
112
|
-
])) : (l(), o(x, { key: 0 }, [
|
|
113
|
-
w(k, {
|
|
114
|
-
class: "flex-1 hihiha",
|
|
115
|
-
accept: e.accept,
|
|
116
|
-
disabled: e.disabled,
|
|
117
|
-
onFileUpload: d,
|
|
118
|
-
onFileRejected: c[0] || (c[0] = (B) => d(null))
|
|
119
|
-
}, {
|
|
120
|
-
label: f(() => [
|
|
121
|
-
g(i(void 0))
|
|
122
|
-
]),
|
|
123
|
-
"helper-text": f(() => [
|
|
124
|
-
g(i(void 0))
|
|
125
|
-
]),
|
|
126
|
-
"accept-text": f(() => [
|
|
127
|
-
n("div", U, [
|
|
128
|
-
n("div", null, "(" + i(e.recommendedSize) + ")", 1),
|
|
129
|
-
g(" Accepts " + i(e.accept), 1)
|
|
130
|
-
])
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}, 8, ["accept", "disabled"]),
|
|
134
|
-
w(S, { text: "" })
|
|
135
|
-
], 64))
|
|
136
|
-
], 64))
|
|
137
|
-
], 4)
|
|
138
|
-
]);
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
export {
|
|
143
|
-
G as _
|
|
144
|
-
};
|