@feedmepos/mf-connect 0.1.0-beta.53 → 0.1.0-beta.55
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-Ds0tta-W.js → Analytic-Cdl0pynD.js} +11 -11
- package/dist/{App-y5wxjtku.js → App-Cnr64Lkk.js} +6 -6
- package/dist/{AuditLogs-jVbVVyAb.js → AuditLogs-CbPMSX9v.js} +9 -9
- package/dist/{Bin-EiD9mNYl.js → Bin-DSGVW9Rd.js} +8 -8
- package/dist/{Broadcast-BzfYPJwA.js → Broadcast-BlsfmZxM.js} +55 -54
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-S9FXEGMY.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C-zyS5Yd.js} +6 -6
- package/dist/{Card-CKqRyNuC.js → Card-CTQMV02i.js} +15 -15
- package/dist/Collections-0VfEfRph.js +459 -0
- package/dist/{Credit-BYde55tV.js → Credit-7WLpk0id.js} +42 -41
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CLFeMi0j.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Bj7cctC5.js} +48 -45
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B5A8_SKV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BLyfWn8e.js} +28 -28
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CZh54sxJ.js → EffectSheet.vue_vue_type_style_index_0_lang-Fel3csSF.js} +6 -6
- package/dist/{Experience-BDHVOAzP.js → Experience-Dsf_yMPc.js} +39 -38
- package/dist/{Game-D5YOyYL6.js → Game-C0daKd0H.js} +45 -44
- package/dist/{Index-Dt40DwP9.js → Index-BLbMFwMR.js} +10 -10
- package/dist/{Marketing-Bf-zFz9z.js → Marketing-CcM5HLi_.js} +6 -6
- package/dist/{Member-CSfZ3bjG.js → Member-BV6DSKaw.js} +4 -4
- package/dist/{MemberList-B6uUNxLF.js → MemberList-BFtAGHHd.js} +24 -24
- package/dist/{MemberTransactions-Lff73C-p.js → MemberTransactions-CVNSMv_t.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D1H9cg1C.js → MessageInput.vue_vue_type_script_setup_true_lang-DxbMCyo8.js} +2 -2
- package/dist/{Mission-BfFOjuIA.js → Mission-Z0EcE915.js} +36 -35
- package/dist/{Overview-CWH9Bj4k.js → Overview-9lXRD7J5.js} +17 -17
- package/dist/{Point-DkIIKUTy.js → Point-CBJhnR7X.js} +49 -48
- package/dist/{Promotion-Bs83Qcgf.js → Promotion-yiRkaM4L.js} +33 -32
- package/dist/{Record-CIrRLS-G.js → Record-DIgik8LD.js} +7 -7
- package/dist/{Reward-gt3nOqPY.js → Reward-DalahbaW.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CUeeE-Hy.js → RewardGroup.vue_vue_type_script_setup_true_lang-D6WHN9Id.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DjlxIxPV.js → RuleGroup.vue_vue_type_script_setup_true_lang-QOn6FTeY.js} +12 -12
- package/dist/{Segment-BatkkJMx.js → Segment-CDPyd_7N.js} +14 -14
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-P-OHdI1b.js → SelectItems.vue_vue_type_script_setup_true_lang-C-l2Y0wn.js} +2 -2
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Dmw3Ua4W.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-x6xbj4im.js} +3 -3
- package/dist/{Setting-BquuIuO-.js → Setting-BwmJyvOe.js} +10 -10
- package/dist/{Store-xPSiWyzc.js → Store-DB9L-P8I.js} +188 -184
- package/dist/{StoreRewards-BGOp7fFU.js → StoreRewards-B9FcoAr0.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Dip5TvVQ.js → StoreTransactions.vue_vue_type_script_setup_true_lang-FrpJ3Yhg.js} +127 -124
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-9fr_ghEe.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BEKI69h6.js} +1 -1
- package/dist/{Tier-Cy0nb7nm.js → Tier-8WWTqwXM.js} +19 -19
- package/dist/{Title-e7o6NB4D.js → Title-DjiDAkxK.js} +19 -19
- package/dist/{Transaction-CAlhdf7s.js → Transaction-Du_mUxcJ.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-5I5c2bse.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-WQEFqGjy.js} +6 -6
- package/dist/{Voucher-CNkVPW0p.js → Voucher-Bgq2qWdj.js} +44 -43
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CLrpO1vV.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CZjwMNeo.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DTGfUQOt.js → ZodTextField.vue_vue_type_script_setup_true_lang-DHF2ZM8V.js} +1 -1
- package/dist/{app-B9kwYRaf.js → app-D5m2qGR1.js} +30 -30
- package/dist/{app-CwjQW2av.js → app-MZHo8G1N.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-DpWZTdB5.js → business-CuIAPmif.js} +1 -1
- package/dist/{campaign-C0i8L0kd.js → campaign-BGymleSq.js} +2 -2
- package/dist/{campaign-BfoaaEQD.js → campaign-BahEO0au.js} +12 -12
- package/dist/{campaign.enum-Dafd1FVd.js → campaign.enum-LlXtNI93.js} +1 -1
- package/dist/{campaign.fn-BnveqmRa.js → campaign.fn-B3LYYJFX.js} +29 -29
- package/dist/{collectible.enum-ByYase0A.js → collectible.enum-CfHBgbSi.js} +1 -1
- package/dist/{collection.fn-DoDvtLpC.js → collection.fn--2KJ1YxN.js} +2 -2
- package/dist/{dto-WRjmFrfA.js → dto-D2kQA5rh.js} +4 -4
- package/dist/{effect-8vUDqhjn.js → effect-bKVmYG7L.js} +1 -1
- package/dist/{email-addresses-CmpIupHQ.js → email-addresses-DR3mJFRu.js} +1 -1
- package/dist/{export-D5V2w6NT.js → export-CZiBn9tM.js} +3 -3
- package/dist/{helper-O_XVmheZ.js → helper-x72XN1Zs.js} +1 -1
- package/dist/{index-DBlWM9M2.js → index-B10vPRJ9.js} +1 -1
- package/dist/{index-DmPen3ik.js → index-B5_m2dP-.js} +6 -6
- package/dist/{index-CiaBjRyN.js → index-BA8ebNuu.js} +1 -1
- package/dist/{index-BSi-3ZKv.js → index-Bo9j1rpg.js} +2 -2
- package/dist/{index-B_es_G1y.js → index-CDEf_3FP.js} +1155 -1113
- package/dist/{index-BxMw-97Y.js → index-CNJf_nPS.js} +1 -1
- package/dist/{index-Ck3CSnDV.js → index-D7boIVNC.js} +1 -1
- package/dist/{index-fkMOPROn.js → index-DBqwXvjC.js} +3 -3
- package/dist/{index-COJem__Y.js → index-DF-4Oy9D.js} +3 -3
- package/dist/{index-AIhUNoCH.js → index-Dqly8Usi.js} +1 -1
- package/dist/{index-C8iwiKBL.js → index-PXpfFFLc.js} +1 -1
- package/dist/{index-DAKhWupM.js → index-vyW90fOo.js} +1 -1
- package/dist/{index.esm2017-CR2ozJhL.js → index.esm2017-DDc3mvNM.js} +1 -1
- package/dist/{loading-CoPjpwr_.js → loading-CCf3hZNc.js} +1 -1
- package/dist/{membership-DfK6LvzX.js → membership-Dqgxv3Vr.js} +3 -3
- package/dist/{money-BMWdczNZ.js → money-BRaaQ5Ny.js} +1 -1
- package/dist/{number-RoHZMLf4.js → number--SFBsDSw.js} +1 -1
- package/dist/objectid-CuJvifug.js +145 -0
- package/dist/{plugins-Djltfdbf.js → plugins-BpdUIW93.js} +4 -4
- package/dist/{reward-DDht6IgD.js → reward-DDr0IEz9.js} +1 -1
- package/dist/{rule-FKnlDZrl.js → rule-ClLOK6VV.js} +3 -3
- package/dist/{rule-builder-DN9Z65qr.js → rule-builder-Dj60XfsC.js} +1 -1
- package/dist/{template-_deCCxVQ.js → template-BzqqemHf.js} +4 -4
- package/dist/{trigger-DnMqlhsD.js → trigger-DX0hhh5t.js} +4 -4
- package/dist/{user-C9doToN3.js → user-CxLw8DVX.js} +1 -1
- package/dist/{vue-i18n-8j4jiaET.js → vue-i18n-D5RfnNXZ.js} +355 -355
- package/dist/{xlsx-Bb8iqOxg.js → xlsx-Dd-iiJiV.js} +1 -1
- package/package.json +2 -2
- package/dist/Collections-BmKNa3Fe.js +0 -449
- package/dist/objectid-nsRQA3Jm.js +0 -145
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
var te = Object.defineProperty;
|
|
2
|
+
var ae = (g, u, c) => u in g ? te(g, u, { enumerable: !0, configurable: !0, writable: !0, value: c }) : g[u] = c;
|
|
3
|
+
var O = (g, u, c) => ae(g, typeof u != "symbol" ? u + "" : u, c);
|
|
4
|
+
import { defineComponent as J, ref as f, computed as Q, watch as K, resolveComponent as d, openBlock as x, createBlock as z, unref as o, isRef as j, withCtx as I, createElementVNode as C, createVNode as r, createElementBlock as P, Fragment as N, renderList as le, createCommentVNode as R, onMounted as ne, h as S } from "vue";
|
|
5
|
+
import { h as G } from "./moment-BWErdI6_.js";
|
|
6
|
+
import { components as H } from "@feedmepos/ui-library";
|
|
7
|
+
import { a as se } from "./plugins-BpdUIW93.js";
|
|
8
|
+
import { J as re } from "./JsonViewer-v8_C7l5N.js";
|
|
9
|
+
import { u as W } from "./loading-CCf3hZNc.js";
|
|
10
|
+
import { u as ie } from "./app-wDQR6dpb.js";
|
|
11
|
+
import { useRoute as X, useRouter as ue } from "vue-router";
|
|
12
|
+
import { c as q } from "./index-Dqly8Usi.js";
|
|
13
|
+
import { e as p } from "./index-vh86FiIQ.js";
|
|
14
|
+
import { u as Y, w as de } from "./xlsx-Dd-iiJiV.js";
|
|
15
|
+
import { u as ce, _ as me } from "./usePagination-BeF5K3M7.js";
|
|
16
|
+
import { m as pe } from "./index-PXpfFFLc.js";
|
|
17
|
+
import { o as fe } from "./objectId-dwaoBfJX.js";
|
|
18
|
+
const ge = { class: "space-y-16" }, be = { class: "gap-16 grid grid-cols-2" }, Ce = { class: "flex items-center gap-8" }, ve = /* @__PURE__ */ J({
|
|
19
|
+
__name: "CreateCollectionSheet",
|
|
20
|
+
emits: ["success"],
|
|
21
|
+
setup(g, { expose: u, emit: c }) {
|
|
22
|
+
const { minor: w } = W, F = X(), k = f(), _ = f(!1), A = c, b = f(!1);
|
|
23
|
+
function D(s) {
|
|
24
|
+
b.value = s, s && (a.value = {
|
|
25
|
+
quantity: 1,
|
|
26
|
+
code: "",
|
|
27
|
+
codeConfig: {
|
|
28
|
+
length: 8,
|
|
29
|
+
charset: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
30
|
+
prefix: "",
|
|
31
|
+
suffix: "",
|
|
32
|
+
pattern: "########"
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
const a = f({
|
|
37
|
+
quantity: 1,
|
|
38
|
+
code: "",
|
|
39
|
+
codeConfig: {
|
|
40
|
+
length: 8,
|
|
41
|
+
charset: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
42
|
+
prefix: "",
|
|
43
|
+
suffix: "",
|
|
44
|
+
pattern: "########"
|
|
45
|
+
}
|
|
46
|
+
}), E = [
|
|
47
|
+
{
|
|
48
|
+
label: "Bulk codes",
|
|
49
|
+
value: "bulk",
|
|
50
|
+
sublabel: "Bulk generate unique codes"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: "Custom code",
|
|
54
|
+
value: "single",
|
|
55
|
+
sublabel: "Enter your own custom codes"
|
|
56
|
+
}
|
|
57
|
+
], U = [
|
|
58
|
+
{
|
|
59
|
+
label: "Alphanumeric",
|
|
60
|
+
value: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "Alphabetic",
|
|
64
|
+
value: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
65
|
+
},
|
|
66
|
+
{ label: "Alphabetic Lowercase", value: "abcdefghijklmnopqrstuvwxyz" },
|
|
67
|
+
{ label: "Alphabetic Uppercase", value: "ABCDEFGHIJKLMNOPQRSTUVWXYZ" },
|
|
68
|
+
{ label: "Numbers", value: "0123456789" },
|
|
69
|
+
{ label: "Custom", value: "" }
|
|
70
|
+
], v = f(U[0].value), m = f("bulk"), h = f(!1), M = Q(() => F.params.id);
|
|
71
|
+
async function n(s) {
|
|
72
|
+
var e;
|
|
73
|
+
await ((e = k.value) == null ? void 0 : e.validateInputs()), _.value && await w(
|
|
74
|
+
async () => {
|
|
75
|
+
await q.createCollectionByCampaignId(M.value, s), await A("success");
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
message: "Creating claim(s)",
|
|
79
|
+
successMessage: "Claim(s) created"
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
u({
|
|
84
|
+
showSheet: D
|
|
85
|
+
}), K(
|
|
86
|
+
() => m.value,
|
|
87
|
+
(s, e) => {
|
|
88
|
+
e != s && (a.value.code = "", a.value.codeConfig.length = 8, a.value.codeConfig.charset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", a.value.codeConfig.prefix = "", a.value.codeConfig.suffix = "", a.value.codeConfig.pattern = "########");
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
function l(s) {
|
|
92
|
+
if (m.value !== "single") return !1;
|
|
93
|
+
const e = s.split(`
|
|
94
|
+
`).map((i) => i.trim()).filter(Boolean);
|
|
95
|
+
return new Set(e).size !== e.length;
|
|
96
|
+
}
|
|
97
|
+
return K(
|
|
98
|
+
() => a.value.codeConfig.length,
|
|
99
|
+
(s, e) => {
|
|
100
|
+
s != e && (a.value.codeConfig.pattern = "#".repeat(Math.min(16, Number(s))));
|
|
101
|
+
}
|
|
102
|
+
), (s, e) => {
|
|
103
|
+
const i = d("FmRadio"), y = d("FmRadioGroup"), L = d("FmSwitch"), V = d("FmStepperField"), T = d("FmSelect"), B = d("FmTextField"), Z = d("FmTextarea"), ee = d("FmForm"), $ = d("FmButton"), oe = d("FmSideSheet");
|
|
104
|
+
return x(), z(oe, {
|
|
105
|
+
"max-width": 560,
|
|
106
|
+
"dismiss-away": !0,
|
|
107
|
+
header: "Create collection",
|
|
108
|
+
modelValue: o(b),
|
|
109
|
+
"onUpdate:modelValue": [
|
|
110
|
+
e[14] || (e[14] = (t) => j(b) ? b.value = t : null),
|
|
111
|
+
e[15] || (e[15] = (t) => b.value = t)
|
|
112
|
+
]
|
|
113
|
+
}, {
|
|
114
|
+
"side-sheet-footer": I(() => [
|
|
115
|
+
C("div", Ce, [
|
|
116
|
+
r($, {
|
|
117
|
+
label: "Save",
|
|
118
|
+
onClick: e[12] || (e[12] = (t) => n(o(a))),
|
|
119
|
+
loading: o(ie)().isLoading
|
|
120
|
+
}, null, 8, ["loading"]),
|
|
121
|
+
r($, {
|
|
122
|
+
label: "Cancel",
|
|
123
|
+
type: "button",
|
|
124
|
+
variant: "tertiary",
|
|
125
|
+
onClick: e[13] || (e[13] = (t) => b.value = !1)
|
|
126
|
+
})
|
|
127
|
+
])
|
|
128
|
+
]),
|
|
129
|
+
default: I(() => [
|
|
130
|
+
r(re, { json: o(a) }, null, 8, ["json"]),
|
|
131
|
+
r(ee, {
|
|
132
|
+
ref_key: "form",
|
|
133
|
+
ref: k,
|
|
134
|
+
class: "space-y-40",
|
|
135
|
+
onValidationSuccess: e[10] || (e[10] = (t) => _.value = !0),
|
|
136
|
+
onValidationFailed: e[11] || (e[11] = (t) => _.value = !1)
|
|
137
|
+
}, {
|
|
138
|
+
default: I(() => [
|
|
139
|
+
C("div", null, [
|
|
140
|
+
e[16] || (e[16] = C("div", { class: "fm-typo-en-body-lg-600" }, "Code type", -1)),
|
|
141
|
+
r(y, {
|
|
142
|
+
modelValue: o(m),
|
|
143
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => j(m) ? m.value = t : null),
|
|
144
|
+
inline: !1
|
|
145
|
+
}, {
|
|
146
|
+
default: I(() => [
|
|
147
|
+
(x(), P(N, null, le(E, (t) => r(i, {
|
|
148
|
+
key: t.value,
|
|
149
|
+
value: t.value,
|
|
150
|
+
label: t.label,
|
|
151
|
+
sublabel: t.sublabel
|
|
152
|
+
}, null, 8, ["value", "label", "sublabel"])), 64))
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["modelValue"])
|
|
156
|
+
]),
|
|
157
|
+
C("div", ge, [
|
|
158
|
+
e[17] || (e[17] = C("div", { class: "fm-typo-en-body-lg-600" }, "Settings", -1)),
|
|
159
|
+
o(m) === "bulk" ? (x(), P(N, { key: 0 }, [
|
|
160
|
+
r(L, {
|
|
161
|
+
"model-value": o(h),
|
|
162
|
+
"label-placement": "right",
|
|
163
|
+
value: "true",
|
|
164
|
+
label: "Advance code setting",
|
|
165
|
+
required: !0,
|
|
166
|
+
"onUpdate:modelValue": e[1] || (e[1] = () => h.value = !o(h))
|
|
167
|
+
}, null, 8, ["model-value"]),
|
|
168
|
+
o(h) ? (x(), P(N, { key: 0 }, [
|
|
169
|
+
r(V, {
|
|
170
|
+
modelValue: o(a).codeConfig.length,
|
|
171
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => o(a).codeConfig.length = t),
|
|
172
|
+
label: "Code length",
|
|
173
|
+
max: 16,
|
|
174
|
+
min: 1,
|
|
175
|
+
rules: [
|
|
176
|
+
(t) => Number(t) >= 1 || "Code length must at least 1",
|
|
177
|
+
(t) => Number(t) <= 16 || "Code length must less than 16"
|
|
178
|
+
],
|
|
179
|
+
required: !0
|
|
180
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
181
|
+
r(T, {
|
|
182
|
+
label: "Charset",
|
|
183
|
+
"model-value": o(v),
|
|
184
|
+
items: U,
|
|
185
|
+
"helper-text": o(a).codeConfig.charset.length > 62 ? `${o(a).codeConfig.charset.substring(0, 62)}...` : o(a).codeConfig.charset,
|
|
186
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => {
|
|
187
|
+
v.value = t, o(a).codeConfig.charset = t;
|
|
188
|
+
})
|
|
189
|
+
}, null, 8, ["model-value", "helper-text"]),
|
|
190
|
+
o(v) === "" ? (x(), z(B, {
|
|
191
|
+
key: 0,
|
|
192
|
+
modelValue: o(a).codeConfig.charset,
|
|
193
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => o(a).codeConfig.charset = t),
|
|
194
|
+
label: "Custom Charset",
|
|
195
|
+
required: ""
|
|
196
|
+
}, null, 8, ["modelValue"])) : R("", !0),
|
|
197
|
+
C("div", be, [
|
|
198
|
+
r(B, {
|
|
199
|
+
modelValue: o(a).codeConfig.prefix,
|
|
200
|
+
"onUpdate:modelValue": e[5] || (e[5] = (t) => o(a).codeConfig.prefix = t),
|
|
201
|
+
label: "Prefix (Optional)"
|
|
202
|
+
}, null, 8, ["modelValue"]),
|
|
203
|
+
r(B, {
|
|
204
|
+
modelValue: o(a).codeConfig.suffix,
|
|
205
|
+
"onUpdate:modelValue": e[6] || (e[6] = (t) => o(a).codeConfig.suffix = t),
|
|
206
|
+
label: "Suffix (Optional)"
|
|
207
|
+
}, null, 8, ["modelValue"])
|
|
208
|
+
]),
|
|
209
|
+
r(B, {
|
|
210
|
+
modelValue: o(a).codeConfig.pattern,
|
|
211
|
+
"onUpdate:modelValue": e[7] || (e[7] = (t) => o(a).codeConfig.pattern = t),
|
|
212
|
+
label: "Pattern",
|
|
213
|
+
required: !0
|
|
214
|
+
}, null, 8, ["modelValue"])
|
|
215
|
+
], 64)) : R("", !0),
|
|
216
|
+
r(B, {
|
|
217
|
+
modelValue: o(a).quantity,
|
|
218
|
+
"onUpdate:modelValue": e[8] || (e[8] = (t) => o(a).quantity = t),
|
|
219
|
+
label: "Number of code",
|
|
220
|
+
rules: [
|
|
221
|
+
(t) => t >= 1 || "Quantity cannot be less than 1",
|
|
222
|
+
(t) => t <= 1e4 || "Quantity cannot more than 10,000"
|
|
223
|
+
],
|
|
224
|
+
required: !0,
|
|
225
|
+
"helper-text": `${o(a).quantity} claim will be created`
|
|
226
|
+
}, null, 8, ["modelValue", "rules", "helper-text"])
|
|
227
|
+
], 64)) : R("", !0),
|
|
228
|
+
o(m) !== "bulk" ? (x(), z(Z, {
|
|
229
|
+
key: 1,
|
|
230
|
+
modelValue: o(a).code,
|
|
231
|
+
"onUpdate:modelValue": e[9] || (e[9] = (t) => o(a).code = t),
|
|
232
|
+
label: "Custom Code",
|
|
233
|
+
rules: [
|
|
234
|
+
(t) => o(m) != "single" || !!t || "Custom code is required",
|
|
235
|
+
(t) => !l(t) || "Custom code must be unique"
|
|
236
|
+
],
|
|
237
|
+
placeholder: "(For multiple codes, please enter in the new row.)"
|
|
238
|
+
}, null, 8, ["modelValue", "rules"])) : R("", !0)
|
|
239
|
+
])
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 512)
|
|
243
|
+
]),
|
|
244
|
+
_: 1
|
|
245
|
+
}, 8, ["modelValue"]);
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
class xe {
|
|
250
|
+
constructor() {
|
|
251
|
+
O(this, "data", []);
|
|
252
|
+
}
|
|
253
|
+
addRecord(u) {
|
|
254
|
+
this.data.push(u);
|
|
255
|
+
}
|
|
256
|
+
buildExcel() {
|
|
257
|
+
const u = Y.book_new(), c = Y.json_to_sheet(this.data);
|
|
258
|
+
return Y.book_append_sheet(u, c, "Collection"), u;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
const he = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ye = { class: "flex items-center justify-end py-4 xs:hidden" }, Ee = /* @__PURE__ */ J({
|
|
262
|
+
__name: "Collections",
|
|
263
|
+
setup(g) {
|
|
264
|
+
const u = ue(), c = X(), w = f(), F = Q(() => c.params.id), k = f(!1), { custom: _ } = W, A = [
|
|
265
|
+
{
|
|
266
|
+
header: "ID/Code",
|
|
267
|
+
accessorKey: "_id",
|
|
268
|
+
cell(n) {
|
|
269
|
+
return S("div", { class: "flex items-center" }, [
|
|
270
|
+
S(H.FmIcon, {
|
|
271
|
+
name: "content_copy",
|
|
272
|
+
outline: !0,
|
|
273
|
+
size: "sm",
|
|
274
|
+
class: "cursor-pointer mr-4",
|
|
275
|
+
onClick: (l) => {
|
|
276
|
+
l.preventDefault(), l.stopPropagation(), se(
|
|
277
|
+
n.row.original.code || n.row.original._id.toString()
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
}),
|
|
281
|
+
S(
|
|
282
|
+
"div",
|
|
283
|
+
{ class: "pr-2 text-ellipsis overflow-hidden" },
|
|
284
|
+
n.row.original.code || n.row.original._id.toString()
|
|
285
|
+
)
|
|
286
|
+
]);
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
header: "User",
|
|
291
|
+
accessorKey: "user",
|
|
292
|
+
enableSorting: !1,
|
|
293
|
+
cell(n) {
|
|
294
|
+
const l = n.row.original.pf_user;
|
|
295
|
+
return S(
|
|
296
|
+
"div",
|
|
297
|
+
{
|
|
298
|
+
class: "flex items-center gap-x-8"
|
|
299
|
+
},
|
|
300
|
+
[
|
|
301
|
+
S(H.FmAvatar, {
|
|
302
|
+
name: l != null && l.photoUrl || l == null ? void 0 : l.name,
|
|
303
|
+
src: (l == null ? void 0 : l.photoUrl) ?? void 0,
|
|
304
|
+
size: "sm"
|
|
305
|
+
}),
|
|
306
|
+
S("span", l == null ? void 0 : l.name)
|
|
307
|
+
]
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
header: "Phone",
|
|
313
|
+
accessorFn: (n) => {
|
|
314
|
+
var l;
|
|
315
|
+
return ((l = n.pf_user) == null ? void 0 : l.phoneNumber) || "-";
|
|
316
|
+
},
|
|
317
|
+
accessorKey: "pf_user.phoneNumber"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
header: "Balance",
|
|
321
|
+
accessorKey: "balance"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
header: "Created at",
|
|
325
|
+
accessorKey: "_id",
|
|
326
|
+
accessorFn: (n) => G(fe(n._id.toString())).format("DD MMM YYYY")
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
header: "Nearest expired at",
|
|
330
|
+
accessorKey: "expiryBalance",
|
|
331
|
+
accessorFn: (n) => {
|
|
332
|
+
var l;
|
|
333
|
+
return n.expiryBalance && n.expiryBalance.length ? G((l = n.expiryBalance) == null ? void 0 : l[0].expiredAt).format("DD MMM YYYY") : "Never expires";
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
], b = {
|
|
337
|
+
"$connect-STORE_REWARD_COLLECTIONS": pe.readCollectionsByRewardId,
|
|
338
|
+
"$connect-CAMPAIGN_VOUCHER_COLLECTIONS": q.readCollectionsByCampaignId
|
|
339
|
+
}, D = (n) => {
|
|
340
|
+
const l = b[c.name];
|
|
341
|
+
return (s) => l(n, s);
|
|
342
|
+
}, { tableMeta: a, rowData: E, onSort: U, debouncedFetchData: v, onSearch: m } = ce(D(F.value));
|
|
343
|
+
async function h() {
|
|
344
|
+
var n;
|
|
345
|
+
await v(), (n = w.value) == null || n.showSheet(!1);
|
|
346
|
+
}
|
|
347
|
+
async function M() {
|
|
348
|
+
k.value || _(
|
|
349
|
+
async () => {
|
|
350
|
+
var e;
|
|
351
|
+
const n = new xe(), l = (await q.readCollectionsByCampaignId(F.value, {
|
|
352
|
+
limit: 1,
|
|
353
|
+
skip: 0,
|
|
354
|
+
sortBy: p.sortBy,
|
|
355
|
+
descending: p.descending
|
|
356
|
+
})).meta.totalResources ?? 0, s = p.rowsPerPage;
|
|
357
|
+
for (let i = 0; i < l; i += s) {
|
|
358
|
+
const y = {
|
|
359
|
+
...p,
|
|
360
|
+
limit: s,
|
|
361
|
+
skip: (p.page - 1) * p.rowsPerPage,
|
|
362
|
+
sortBy: p.sortBy,
|
|
363
|
+
descending: p.descending
|
|
364
|
+
}, L = await q.readCollectionsByCampaignId(
|
|
365
|
+
F.value,
|
|
366
|
+
y
|
|
367
|
+
);
|
|
368
|
+
for await (const V of L.resources) {
|
|
369
|
+
const T = {
|
|
370
|
+
Id: (V == null ? void 0 : V.code) || ((e = V._id) == null ? void 0 : e.toString()) || ""
|
|
371
|
+
};
|
|
372
|
+
n.addRecord(T);
|
|
373
|
+
}
|
|
374
|
+
p.page++;
|
|
375
|
+
}
|
|
376
|
+
await de(
|
|
377
|
+
n.buildExcel(),
|
|
378
|
+
`members-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
|
|
379
|
+
{
|
|
380
|
+
bookType: "xlsx",
|
|
381
|
+
bookSST: !1,
|
|
382
|
+
type: "array"
|
|
383
|
+
}
|
|
384
|
+
), p.page = 1;
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
isLoading: k
|
|
388
|
+
}
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
return ne(async () => {
|
|
392
|
+
await v();
|
|
393
|
+
}), (n, l) => {
|
|
394
|
+
const s = d("FmPageHead"), e = d("FmSearch");
|
|
395
|
+
return x(), P(N, null, [
|
|
396
|
+
r(s, {
|
|
397
|
+
title: "Collections",
|
|
398
|
+
"back-button": !0,
|
|
399
|
+
actions: [
|
|
400
|
+
{ label: "Export", value: "export", isPrimary: !1 },
|
|
401
|
+
{
|
|
402
|
+
label: "Create collection",
|
|
403
|
+
value: "create",
|
|
404
|
+
isPrimary: !0
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
"onClick:back": l[0] || (l[0] = (i) => o(u).back()),
|
|
408
|
+
"onClick:action": l[1] || (l[1] = (i) => {
|
|
409
|
+
var y;
|
|
410
|
+
i === "create" && ((y = o(w)) == null || y.showSheet(!0)), i === "export" && M();
|
|
411
|
+
})
|
|
412
|
+
}),
|
|
413
|
+
C("div", he, [
|
|
414
|
+
r(e, {
|
|
415
|
+
class: "hidden xs:flex border-b border-fm-color-neutral-gray-100",
|
|
416
|
+
modelValue: o(a).searchValue,
|
|
417
|
+
"onUpdate:modelValue": [
|
|
418
|
+
l[2] || (l[2] = (i) => o(a).searchValue = i),
|
|
419
|
+
o(m)
|
|
420
|
+
],
|
|
421
|
+
placeholder: "Search",
|
|
422
|
+
collapsible: ""
|
|
423
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
424
|
+
C("div", ye, [
|
|
425
|
+
r(e, {
|
|
426
|
+
modelValue: o(a).searchValue,
|
|
427
|
+
"onUpdate:modelValue": [
|
|
428
|
+
l[3] || (l[3] = (i) => o(a).searchValue = i),
|
|
429
|
+
o(m)
|
|
430
|
+
],
|
|
431
|
+
placeholder: "Search",
|
|
432
|
+
collapsible: ""
|
|
433
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
434
|
+
]),
|
|
435
|
+
r(me, {
|
|
436
|
+
loading: o(a).isLoading,
|
|
437
|
+
"row-data": o(E),
|
|
438
|
+
"column-defs": A,
|
|
439
|
+
"row-count": o(a).totalRows,
|
|
440
|
+
"page-count": o(a).pageCount,
|
|
441
|
+
"page-index": o(a).pageIndex,
|
|
442
|
+
"page-size": o(a).pageSize,
|
|
443
|
+
"shrink-at": !1,
|
|
444
|
+
onSortChange: o(U),
|
|
445
|
+
onPageChange: l[4] || (l[4] = (i) => o(v)({ pageSize: i.pageSize, pageIndex: i.pageIndex }))
|
|
446
|
+
}, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"]),
|
|
447
|
+
r(ve, {
|
|
448
|
+
ref_key: "sheetRef",
|
|
449
|
+
ref: w,
|
|
450
|
+
onSuccess: h
|
|
451
|
+
}, null, 512)
|
|
452
|
+
])
|
|
453
|
+
], 64);
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
export {
|
|
458
|
+
Ee as default
|
|
459
|
+
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as l, openBlock as c, createElementBlock as y, Fragment as
|
|
1
|
+
import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as l, openBlock as c, createElementBlock as y, Fragment as C, createVNode as i, unref as a, createElementVNode as n, withCtx as h, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as g, createCommentVNode as z } from "vue";
|
|
2
2
|
import { _ as G } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as J, components as O } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Q } from "./plugins-
|
|
5
|
-
import { u as W } from "./loading-
|
|
6
|
-
import { u as X } from "./business-
|
|
7
|
-
import { u as Y } from "./campaign-
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
13
|
-
import { c as _ } from "./index-
|
|
14
|
-
const
|
|
4
|
+
import { p as Q } from "./plugins-BpdUIW93.js";
|
|
5
|
+
import { u as W } from "./loading-CCf3hZNc.js";
|
|
6
|
+
import { u as X } from "./business-CuIAPmif.js";
|
|
7
|
+
import { u as Y } from "./campaign-BGymleSq.js";
|
|
8
|
+
import { g as Z, a as V, b as L } from "./campaign-BahEO0au.js";
|
|
9
|
+
import { u as ee } from "./vue-i18n-D5RfnNXZ.js";
|
|
10
|
+
import { _ as oe } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
11
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BLyfWn8e.js";
|
|
12
|
+
import { u as ae } from "./template-BzqqemHf.js";
|
|
13
|
+
import { c as _ } from "./index-Dqly8Usi.js";
|
|
14
|
+
const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { key: 0 }, Ie = /* @__PURE__ */ N({
|
|
15
15
|
__name: "Credit",
|
|
16
|
-
setup(
|
|
17
|
-
const { t: r } =
|
|
16
|
+
setup(ye) {
|
|
17
|
+
const { t: r } = ee(), I = {
|
|
18
18
|
label: r("connect.program.common.actions.create", {
|
|
19
19
|
type: r("connect.program.credit.title").toLowerCase()
|
|
20
20
|
}),
|
|
21
21
|
value: "create",
|
|
22
22
|
isPrimary: !0,
|
|
23
23
|
prependIcon: "add"
|
|
24
|
-
}, R =
|
|
24
|
+
}, R = ae("CREDIT", J()), B = X(), m = Y(), { global: D, minor: w } = W, s = S({
|
|
25
25
|
searchKey: "",
|
|
26
26
|
location: null
|
|
27
27
|
}), d = j(
|
|
@@ -35,6 +35,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
header: r("connect.program.common.table.status"),
|
|
38
|
+
accessorFn: (e) => Z(e),
|
|
38
39
|
cell(e) {
|
|
39
40
|
return V(e.row.original);
|
|
40
41
|
}
|
|
@@ -51,13 +52,13 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
51
52
|
icon: "delete",
|
|
52
53
|
iconColor: "neutral-gray-400",
|
|
53
54
|
onClick: (o) => {
|
|
54
|
-
o.stopPropagation(),
|
|
55
|
+
o.stopPropagation(), x(e.row.original);
|
|
55
56
|
}
|
|
56
57
|
});
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
|
-
],
|
|
60
|
-
async function
|
|
60
|
+
], b = S();
|
|
61
|
+
async function x(e) {
|
|
61
62
|
await Q.remove(
|
|
62
63
|
r("connect.program.common.remove.confirm", { name: e.name })
|
|
63
64
|
) && await w(
|
|
@@ -78,7 +79,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
78
79
|
});
|
|
79
80
|
async function o(p) {
|
|
80
81
|
var u;
|
|
81
|
-
(u =
|
|
82
|
+
(u = b.value) == null || u.showSheet(
|
|
82
83
|
!0,
|
|
83
84
|
"CREDIT",
|
|
84
85
|
e ? await _.readById(e._id) : void 0,
|
|
@@ -103,13 +104,13 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
103
104
|
});
|
|
104
105
|
}), (e, o) => {
|
|
105
106
|
const p = l("FmPageHead"), u = l("FmSearch"), K = l("FmTable"), F = l("FmButton"), $ = l("FmListItem"), P = l("FmList"), U = l("FmCard");
|
|
106
|
-
return c(), y(
|
|
107
|
+
return c(), y(C, null, [
|
|
107
108
|
i(p, {
|
|
108
109
|
title: a(r)("connect.program.credit.title"),
|
|
109
110
|
actions: a(d).length > 0 ? [I] : [],
|
|
110
111
|
"onClick:action": o[0] || (o[0] = () => f())
|
|
111
112
|
}, null, 8, ["title", "actions"]),
|
|
112
|
-
n("div",
|
|
113
|
+
n("div", ne, [
|
|
113
114
|
i(u, {
|
|
114
115
|
modelValue: a(s).searchKey,
|
|
115
116
|
"onUpdate:modelValue": o[1] || (o[1] = (t) => a(s).searchKey = t),
|
|
@@ -117,10 +118,10 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
117
118
|
placeholder: "search",
|
|
118
119
|
collapsible: ""
|
|
119
120
|
}, null, 8, ["modelValue"]),
|
|
120
|
-
a(m).campaigns.credit && a(m).campaigns.credit.length > 0 ? (c(), y(
|
|
121
|
-
n("div",
|
|
122
|
-
n("div",
|
|
123
|
-
i(
|
|
121
|
+
a(m).campaigns.credit && a(m).campaigns.credit.length > 0 ? (c(), y(C, { key: 0 }, [
|
|
122
|
+
n("div", re, [
|
|
123
|
+
n("div", se, [
|
|
124
|
+
i(oe, {
|
|
124
125
|
modelValue: a(s).location,
|
|
125
126
|
"onUpdate:modelValue": o[2] || (o[2] = (t) => a(s).location = t),
|
|
126
127
|
label: "Location: ",
|
|
@@ -148,31 +149,31 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
148
149
|
"hide-footer": a(d).length < 10
|
|
149
150
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
150
151
|
i(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
151
|
-
default:
|
|
152
|
-
(c(!0), y(
|
|
152
|
+
default: h(() => [
|
|
153
|
+
(c(!0), y(C, null, H(a(d).filter(
|
|
153
154
|
(t) => t.name.toLowerCase().includes(a(s).searchKey.toLowerCase())
|
|
154
155
|
), (t) => (c(), v($, {
|
|
155
156
|
key: t._id.toString(),
|
|
156
157
|
onClick: (k) => f(t),
|
|
157
158
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
158
159
|
}, {
|
|
159
|
-
default:
|
|
160
|
-
n("div",
|
|
161
|
-
n("div",
|
|
160
|
+
default: h(() => [
|
|
161
|
+
n("div", ie, [
|
|
162
|
+
n("div", le, [
|
|
162
163
|
(c(), v(q(a(V)(t)))),
|
|
163
|
-
n("div",
|
|
164
|
+
n("div", ce, g(t.currentReceive ?? 0) + " used ", 1)
|
|
164
165
|
]),
|
|
165
|
-
n("div",
|
|
166
|
-
n("div",
|
|
167
|
-
n("div",
|
|
166
|
+
n("div", me, [
|
|
167
|
+
n("div", de, g(t.name), 1),
|
|
168
|
+
n("div", pe, g(a(L)(t)), 1)
|
|
168
169
|
]),
|
|
169
|
-
n("div",
|
|
170
|
+
n("div", ue, " Credit received: " + g(t.currentReceive ?? 0), 1)
|
|
170
171
|
]),
|
|
171
172
|
i(F, {
|
|
172
173
|
icon: "delete",
|
|
173
174
|
"icon-color": "neutral-gray-400",
|
|
174
175
|
variant: "tertiary",
|
|
175
|
-
onClick: (k) => (k.stopPropagation(),
|
|
176
|
+
onClick: (k) => (k.stopPropagation(), x(t))
|
|
176
177
|
}, null, 8, ["onClick"])
|
|
177
178
|
]),
|
|
178
179
|
_: 2
|
|
@@ -180,7 +181,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
180
181
|
]),
|
|
181
182
|
_: 1
|
|
182
183
|
}),
|
|
183
|
-
a(d).length == 0 ? (c(), y("div",
|
|
184
|
+
a(d).length == 0 ? (c(), y("div", fe, o[6] || (o[6] = [
|
|
184
185
|
n("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1)
|
|
185
186
|
]))) : z("", !0)
|
|
186
187
|
], 64)) : (c(), v(U, {
|
|
@@ -188,7 +189,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
188
189
|
variant: "outlined",
|
|
189
190
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
190
191
|
}, {
|
|
191
|
-
default:
|
|
192
|
+
default: h(() => [
|
|
192
193
|
o[7] || (o[7] = n("img", {
|
|
193
194
|
src: G,
|
|
194
195
|
class: "aspect-square w-[150px]"
|
|
@@ -206,9 +207,9 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
206
207
|
]),
|
|
207
208
|
_: 1
|
|
208
209
|
})),
|
|
209
|
-
i(
|
|
210
|
+
i(te, {
|
|
210
211
|
ref_key: "sheetRef",
|
|
211
|
-
ref:
|
|
212
|
+
ref: b,
|
|
212
213
|
"onSubmit:modelValue": E
|
|
213
214
|
}, null, 512)
|
|
214
215
|
])
|
|
@@ -217,5 +218,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
217
218
|
}
|
|
218
219
|
});
|
|
219
220
|
export {
|
|
220
|
-
|
|
221
|
+
Ie as default
|
|
221
222
|
};
|