@feedmepos/mf-connect 0.1.0-beta.72 → 0.1.0-beta.74
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-CeQ6Tgo4.js → Analytic-CmX1CjHI.js} +11 -11
- package/dist/{App-B94F1eM6.js → App-T0HK84dx.js} +6 -6
- package/dist/{AuditLogs-CduUWfDd.js → AuditLogs-0ERaLqfa.js} +16 -15
- package/dist/{Bin-muOo03RK.js → Bin-C7utgPUn.js} +8 -8
- package/dist/{Broadcast-CSco_Ev_.js → Broadcast-e2sHc8rv.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cfwv0VSC.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-mlnLZOdy.js} +14 -8
- package/dist/{Card-VojKGWaD.js → Card-Bi1q3NGE.js} +164 -155
- package/dist/{Collections-B8dsbCQ6.js → Collections-CJYy94Sc.js} +19 -18
- package/dist/{Credit-Ck_IuJMF.js → Credit-Mbgev3fe.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CkEPB1Ri.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CCIj2_sx.js} +29 -28
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CA1awHcc.js → EffectSheet.vue_vue_type_style_index_0_lang-CGiI-3HJ.js} +6 -6
- package/dist/{Experience-CP6Lmado.js → Experience-BE9onJDQ.js} +9 -9
- package/dist/{Game-BfkyvrxR.js → Game-CxVwNVRg.js} +10 -10
- package/dist/{Index-CsjZUBT3.js → Index-NdgHNGa3.js} +10 -10
- package/dist/{Marketing-D-P76e73.js → Marketing-Deds20Ye.js} +6 -6
- package/dist/{Member-DplZWFjl.js → Member-BiwCcUbl.js} +106 -97
- package/dist/{MemberList-rmdZQk6G.js → MemberList-DCR44Sk4.js} +287 -282
- package/dist/{MemberTransactions-BLANcbUF.js → MemberTransactions-CYPPTT9t.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cfks94UO.js → MessageInput.vue_vue_type_script_setup_true_lang-j3cmjEyQ.js} +7 -6
- package/dist/{Mission-n-ctxUhM.js → Mission-DYk_Vv35.js} +10 -10
- package/dist/{Overview-DZlApGRk.js → Overview-CsRent_o.js} +20 -19
- package/dist/{Point-COtP0jzH.js → Point-BV5qm3r7.js} +9 -9
- package/dist/{Promotion-DxOTF9a5.js → Promotion-ieE1dY52.js} +10 -10
- package/dist/{Queue-CEIn9dZ3.js → Queue-DkIuyH5Y.js} +76 -67
- package/dist/{Record-3ZeBNdJL.js → Record-BO4eYofF.js} +17 -16
- package/dist/{Reward-QiI0aowk.js → Reward-DcoWW28K.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Cz0tKJVt.js → RewardGroup.vue_vue_type_script_setup_true_lang-6s4ElOcQ.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CrfQAYP9.js → RuleGroup.vue_vue_type_script_setup_true_lang-l-qayOI8.js} +15 -14
- package/dist/Segment-dTpsHadj.js +794 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-C39_J7OP.js → SelectItems.vue_vue_type_script_setup_true_lang-Dei-K3cP.js} +2 -2
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-B0fwBafY.js +188 -0
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DC1qZokI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Dl30f-41.js} +3 -3
- package/dist/{Setting-BUQfywpm.js → Setting-Cnv36Pu0.js} +16 -15
- package/dist/{Store-STKhCXHd.js → Store-CTK5EtS1.js} +28 -27
- package/dist/{StoreRewards-BbyKdrXv.js → StoreRewards-CnHiDS7A.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BWilzG-3.js → StoreTransactions.vue_vue_type_script_setup_true_lang-o8BduJhH.js} +27 -26
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Cau0aOLA.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CDCQIDZh.js} +1 -1
- package/dist/{Tier-yaEA-a64.js → Tier-CcN8habX.js} +22 -21
- package/dist/{Title-BZvC2-Jh.js → Title-DtsvtR89.js} +19 -19
- package/dist/{Transaction-D8Q5tgJB.js → Transaction-NylYY_6m.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BhhdZbR2.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Book86tM.js} +6 -6
- package/dist/{Voucher-troykwYN.js → Voucher-z6XGrJrc.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CA-pu2mD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C0TGO7Cl.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DGgUG7Qj.js → ZodTextField.vue_vue_type_script_setup_true_lang-Du4wOEBs.js} +1 -1
- package/dist/{app-CPknSRjl.js → app-Dew6WljN.js} +1 -1
- package/dist/{app-B89lfub2.js → app-nEHwJezD.js} +34 -34
- package/dist/app.js +1 -1
- package/dist/{business-hK-Tmb19.js → business-CXTuYix4.js} +1 -1
- package/dist/{campaign-Bz2phAKq.js → campaign-BZs7RPUJ.js} +9 -9
- package/dist/{campaign-DxBhaMAH.js → campaign-C18IUOcO.js} +2 -2
- package/dist/{campaign.enum-CaW4wKab.js → campaign.enum-C7o8B5Cf.js} +1 -1
- package/dist/{campaign.fn-VlvF65nU.js → campaign.fn-CP0x2e6M.js} +2 -2
- package/dist/{collectible.enum-CL4zeuNW.js → collectible.enum-QJSyw8dX.js} +1 -1
- package/dist/{collection.fn-DonS6vla.js → collection.fn-_9GY8WUr.js} +2 -2
- package/dist/{dto-Do28C6Us.js → dto-Cwr4tMef.js} +4 -4
- package/dist/{effect-BNoEad9s.js → effect-C3dyQmVR.js} +1 -1
- package/dist/{email-addresses-DVlPQOMF.js → email-addresses-DNwlAZV3.js} +1 -1
- package/dist/{export-B2HL-u8e.js → export-C11NCFgO.js} +3 -3
- package/dist/{helper-B-GwBl7o.js → helper-HHvZd4M_.js} +1 -1
- package/dist/{index-DziwUgQ3.js → index-8MnjnTtN.js} +1 -1
- package/dist/{index-CJfbls_c.js → index-B0zezW3E.js} +1 -1
- package/dist/{index-DLBH6Pz7.js → index-BzIzz7cS.js} +3 -3
- package/dist/{index-DrNO2330.js → index-CCTd1lLH.js} +437 -426
- package/dist/{index-CyLhq-Cu.js → index-CIKyf9ft.js} +1 -1
- package/dist/{index-DDyqoK-5.js → index-CL0DvpMU.js} +1 -1
- package/dist/{index-B1zeyOTK.js → index-CT4Hyf4w.js} +6 -6
- package/dist/{index-zetVbSGH.js → index-CyXkN89w.js} +2 -2
- package/dist/{index-BgaXtrUK.js → index-DJ-RhIDQ.js} +1 -1
- package/dist/{index-C00luv9F.js → index-DM6Zvwcl.js} +1 -1
- package/dist/{index-DdMBH5E3.js → index-DyfTL0NG.js} +1 -1
- package/dist/{plugins-0WrJ_ypd.js → index-jdsxOVkp.js} +2606 -2811
- package/dist/{index-DoLnZ0VU.js → index-yrwLRgg0.js} +3 -3
- package/dist/{index.esm2017-DUs_L3s2.js → index.esm2017-BMFlbxdx.js} +3 -3
- package/dist/{loading-BfH5PK5q.js → loading-ClVTDQc6.js} +1 -1
- package/dist/{membership-BSgYE5mw.js → membership-DqMQPgdF.js} +54 -48
- package/dist/{money-CXqLCoho.js → money-COS1BMzW.js} +1 -1
- package/dist/{number-CGz3yWyy.js → number-BuP5vRmO.js} +1 -1
- package/dist/{objectid-CH4l4E6N.js → objectid-B3LrrWLD.js} +1 -1
- package/dist/plugins-DWMQmNXZ.js +208 -0
- package/dist/{reward-DdFCP398.js → reward-Dh8eazpS.js} +1 -1
- package/dist/{rule-Fkz4cRmK.js → rule-CaiZcfw4.js} +3 -3
- package/dist/{rule-builder-Cq_MnX2R.js → rule-builder-DOHyUDI2.js} +1 -1
- package/dist/{template-DzWwfIhG.js → template-BZCh-lEH.js} +4 -4
- package/dist/{trigger-z_YD5Ld4.js → trigger-CUY_7-so.js} +4 -4
- package/dist/{user-qQossvab.js → user-DWsuhUnL.js} +1 -1
- package/dist/{vue-i18n-CeeBM23W.js → vue-i18n-BXjn2dYe.js} +158 -158
- package/dist/{xlsx-BaKm4Is1.js → xlsx-BGsRNT8x.js} +1 -1
- package/package.json +1 -1
- package/dist/Segment-Df47WLC6.js +0 -568
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CCketLSU.js +0 -186
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { defineComponent as E, ref as u, computed as x, onMounted as L, resolveComponent as s, openBlock as O, createBlock as P, unref as e, isRef as Z, withCtx as h, createElementVNode as v, createVNode as i, toDisplayString as C } from "vue";
|
|
2
|
-
import { u as q } from "./loading-BfH5PK5q.js";
|
|
3
|
-
import { p as z } from "./plugins-0WrJ_ypd.js";
|
|
4
|
-
import { u as D } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { m as G } from "./index-DdMBH5E3.js";
|
|
6
|
-
import "./index-B1zeyOTK.js";
|
|
7
|
-
import { b as H } from "./index-DrNO2330.js";
|
|
8
|
-
import "./index-zetVbSGH.js";
|
|
9
|
-
import "./index-DDyqoK-5.js";
|
|
10
|
-
import "./index-DoLnZ0VU.js";
|
|
11
|
-
import { Z as p } from "./zod-Bg2FbC-D.js";
|
|
12
|
-
import { z as j } from "./app-B89lfub2.js";
|
|
13
|
-
import { u as J } from "./vue-i18n-CeeBM23W.js";
|
|
14
|
-
import { c as K } from "./index-BgaXtrUK.js";
|
|
15
|
-
const Q = { class: "fm-typo-en-body-lg-600" }, W = { class: "fm-typo-en-body-lg-400" }, X = { class: "flex items-center gap-8" }, fe = /* @__PURE__ */ E({
|
|
16
|
-
__name: "SendCollectionSheet",
|
|
17
|
-
emits: ["success"],
|
|
18
|
-
setup(Y, { expose: w, emit: V }) {
|
|
19
|
-
const { t: m } = J(), { minor: I } = q, k = V, a = u({
|
|
20
|
-
memberId: [],
|
|
21
|
-
amount: 1,
|
|
22
|
-
ref: ""
|
|
23
|
-
}), f = u(null), d = u(), b = u([]), r = u(!1), S = u(), T = H.extend({
|
|
24
|
-
ref: j.string().max(50, "Reference must be at most 50 characters").optional()
|
|
25
|
-
}), _ = x(() => {
|
|
26
|
-
var l;
|
|
27
|
-
switch ((l = f.value) == null ? void 0 : l.type) {
|
|
28
|
-
case "MISSION":
|
|
29
|
-
return m("connect.sendCollectionSheet.stamp");
|
|
30
|
-
case "GAME":
|
|
31
|
-
return m("connect.sendCollectionSheet.game_token");
|
|
32
|
-
default:
|
|
33
|
-
return "Unknown";
|
|
34
|
-
}
|
|
35
|
-
}), c = x(() => {
|
|
36
|
-
const l = T.safeParse(a.value);
|
|
37
|
-
return l.success ? [] : l.error.errors;
|
|
38
|
-
});
|
|
39
|
-
function M(l) {
|
|
40
|
-
r.value = !0, f.value = l.campaign, d.value = null, a.value = {
|
|
41
|
-
memberId: [],
|
|
42
|
-
amount: 1,
|
|
43
|
-
ref: ""
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function F() {
|
|
47
|
-
r.value = !1;
|
|
48
|
-
}
|
|
49
|
-
async function g(l) {
|
|
50
|
-
const t = await G.read({
|
|
51
|
-
limit: 25,
|
|
52
|
-
skip: 0,
|
|
53
|
-
sortBy: "_id",
|
|
54
|
-
search: l,
|
|
55
|
-
descending: !1
|
|
56
|
-
});
|
|
57
|
-
b.value = t.resources.map((n) => ({
|
|
58
|
-
label: `${n.name} (${n.phoneNumber})`,
|
|
59
|
-
value: n._id
|
|
60
|
-
})), await new Promise((n) => setTimeout(n, 100));
|
|
61
|
-
}
|
|
62
|
-
async function U() {
|
|
63
|
-
var t;
|
|
64
|
-
await z.confirm(
|
|
65
|
-
m("connect.sendCollectionSheet.confirmation_message", {
|
|
66
|
-
amount: a.value.amount,
|
|
67
|
-
type: _.value,
|
|
68
|
-
memberName: d.value ? (t = b.value.find((n) => n.value === d.value)) == null ? void 0 : t.label : "Unknown Member"
|
|
69
|
-
}),
|
|
70
|
-
m("connect.common.confirm"),
|
|
71
|
-
m("connect.common.confirm"),
|
|
72
|
-
m("connect.common.cancel")
|
|
73
|
-
) && await I(
|
|
74
|
-
async () => {
|
|
75
|
-
var n;
|
|
76
|
-
await K.sendCollection((n = f.value) == null ? void 0 : n._id.toString(), {
|
|
77
|
-
memberId: a.value.memberId,
|
|
78
|
-
amount: a.value.amount,
|
|
79
|
-
ref: a.value.ref
|
|
80
|
-
}), await k("success"), F();
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
message: "Sending claim(s)",
|
|
84
|
-
successMessage: "Claim(s) created"
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
return w({
|
|
89
|
-
showSheet: M,
|
|
90
|
-
hideSheet: F
|
|
91
|
-
}), L(async () => {
|
|
92
|
-
await g("");
|
|
93
|
-
}), (l, t) => {
|
|
94
|
-
const n = s("FmCard"), A = s("FmSelect"), B = s("FmStepperField"), N = s("FmTextField"), R = s("FmForm"), y = s("FmButton"), $ = s("FmSideSheet");
|
|
95
|
-
return O(), P($, {
|
|
96
|
-
"max-width": 560,
|
|
97
|
-
"dismiss-away": !0,
|
|
98
|
-
header: e(m)("connect.sendCollectionSheet.title", {
|
|
99
|
-
type: e(_)
|
|
100
|
-
}),
|
|
101
|
-
modelValue: e(r),
|
|
102
|
-
"onUpdate:modelValue": [
|
|
103
|
-
t[5] || (t[5] = (o) => Z(r) ? r.value = o : null),
|
|
104
|
-
t[6] || (t[6] = (o) => r.value = o)
|
|
105
|
-
]
|
|
106
|
-
}, {
|
|
107
|
-
"side-sheet-footer": h(() => [
|
|
108
|
-
v("div", X, [
|
|
109
|
-
i(y, {
|
|
110
|
-
label: "Send",
|
|
111
|
-
loading: e(D)().isLoading,
|
|
112
|
-
onClick: t[3] || (t[3] = async () => {
|
|
113
|
-
var o;
|
|
114
|
-
return (o = e(S)) == null ? void 0 : o.validateInputs();
|
|
115
|
-
})
|
|
116
|
-
}, null, 8, ["loading"]),
|
|
117
|
-
i(y, {
|
|
118
|
-
label: "Cancel",
|
|
119
|
-
type: "button",
|
|
120
|
-
variant: "tertiary",
|
|
121
|
-
onClick: t[4] || (t[4] = (o) => r.value = !1)
|
|
122
|
-
})
|
|
123
|
-
])
|
|
124
|
-
]),
|
|
125
|
-
default: h(() => [
|
|
126
|
-
i(R, {
|
|
127
|
-
class: "space-y-16",
|
|
128
|
-
ref_key: "form",
|
|
129
|
-
ref: S,
|
|
130
|
-
onValidationSuccess: U,
|
|
131
|
-
blameFormChildOnValidationFailed: ""
|
|
132
|
-
}, {
|
|
133
|
-
default: h(() => [
|
|
134
|
-
i(n, {
|
|
135
|
-
variant: "outlined",
|
|
136
|
-
class: "p-16"
|
|
137
|
-
}, {
|
|
138
|
-
default: h(() => {
|
|
139
|
-
var o;
|
|
140
|
-
return [
|
|
141
|
-
v("div", Q, C(e(m)("connect.campaign.common.campaign")), 1),
|
|
142
|
-
v("div", W, C((o = e(f)) == null ? void 0 : o.name), 1)
|
|
143
|
-
];
|
|
144
|
-
}),
|
|
145
|
-
_: 1
|
|
146
|
-
}),
|
|
147
|
-
i(A, {
|
|
148
|
-
"model-value": e(d),
|
|
149
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) => {
|
|
150
|
-
e(a).memberId = [o], d.value = o;
|
|
151
|
-
}),
|
|
152
|
-
label: "Select member",
|
|
153
|
-
searchable: "",
|
|
154
|
-
items: e(b),
|
|
155
|
-
onSearch: g,
|
|
156
|
-
rules: [(o) => !!o > 0 || "Member is required"],
|
|
157
|
-
"helper-text": "Type to search member",
|
|
158
|
-
"helper-state": e(p).helperState(e(c), "memberId"),
|
|
159
|
-
"error-text": e(p).helperText(e(c), "memberId")
|
|
160
|
-
}, null, 8, ["model-value", "items", "rules", "helper-state", "error-text"]),
|
|
161
|
-
i(B, {
|
|
162
|
-
modelValue: e(a).amount,
|
|
163
|
-
"onUpdate:modelValue": t[1] || (t[1] = (o) => e(a).amount = o),
|
|
164
|
-
label: "Amount",
|
|
165
|
-
"helper-state": e(p).helperState(e(c), "amount"),
|
|
166
|
-
"helper-text": e(p).helperText(e(c), "amount")
|
|
167
|
-
}, null, 8, ["modelValue", "helper-state", "helper-text"]),
|
|
168
|
-
i(N, {
|
|
169
|
-
modelValue: e(a).ref,
|
|
170
|
-
"onUpdate:modelValue": t[2] || (t[2] = (o) => e(a).ref = o),
|
|
171
|
-
label: "Reference (optional)",
|
|
172
|
-
"helper-state": e(p).helperState(e(c), "ref"),
|
|
173
|
-
"helper-text": e(p).helperText(e(c), "ref")
|
|
174
|
-
}, null, 8, ["modelValue", "helper-state", "helper-text"])
|
|
175
|
-
]),
|
|
176
|
-
_: 1
|
|
177
|
-
}, 512)
|
|
178
|
-
]),
|
|
179
|
-
_: 1
|
|
180
|
-
}, 8, ["header", "modelValue"]);
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
export {
|
|
185
|
-
fe as _
|
|
186
|
-
};
|