@feedmepos/mf-connect 0.0.10-prod → 0.0.11-prod
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-BFeicKpw.js → Analytic-CpXLcGWV.js} +7 -7
- package/dist/{Broadcast-D0NyeAPC.js → Broadcast-CEMQS5PI.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DAUidvXJ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0Kvpl_V.js} +8 -8
- package/dist/{Card-DsFHDP5R.js → Card-BqX-aRK9.js} +177 -182
- package/dist/{Collections-mc47YFfd.js → Collections-SRmluAj0.js} +102 -84
- package/dist/{Credit-TQYanlxz.js → Credit-DdBKFsII.js} +7 -7
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYNpBySQ.js +2600 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-kA-uGqCI.js → EffectSheet.vue_vue_type_style_index_0_lang-admNNBWu.js} +1864 -1830
- package/dist/{Experience-CyASWXXY.js → Experience-CSfRrWqI.js} +7 -7
- package/dist/Game-BV--qn0e.js +250 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-D-wHmyMe.js → ImageInput.vue_vue_type_script_setup_true_lang-DpYjrT3G.js} +1 -1
- package/dist/{MainLayout-zw-S_EV5.js → MainLayout-B_ZXQrMD.js} +1 -1
- package/dist/{Marketing-BcmbBw-5.js → Marketing-Bac3EbOu.js} +4 -4
- package/dist/{Member-DWRIIPj-.js → Member-CGMRVEuI.js} +2 -2
- package/dist/{MemberList-DNG0mNej.js → MemberList-CSyb4bNE.js} +196 -195
- package/dist/{MemberTransactions-xdm0zGuQ.js → MemberTransactions-BdraBHg6.js} +2 -2
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Bqs3tfs_.js → MessageInput.vue_vue_type_script_setup_true_lang-BvAFOoym.js} +2 -2
- package/dist/Mission-D8-D99g-.js +248 -0
- package/dist/Point-BOI4mT-K.js +220 -0
- package/dist/{Promotion-DlxqsZFt.js → Promotion-D0MLMo9m.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DcLK4o-E.js → RuleGroup.vue_vue_type_script_setup_true_lang-1L68zx5t.js} +58 -58
- package/dist/Segment-BeUbkVj7.js +444 -0
- package/dist/{Setting-CWftoE15.js → Setting-uM4iKdyM.js} +386 -379
- package/dist/{Store-jqibjN4j.js → Store-BkccNTnM.js} +432 -413
- package/dist/{StoreRewards-DWbp79R_.js → StoreRewards-BLgP6Mfv.js} +9 -9
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-b21Sy462.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Z0nqQyi8.js} +39 -38
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BUOfEY4s.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C771jjYx.js} +1 -1
- package/dist/{Tier-lymEcCqJ.js → Tier-DwKAfz6f.js} +17 -16
- package/dist/{Title-CYkql8-l.js → Title-B1_yd9pC.js} +16 -15
- package/dist/{Transaction-Ca_AVh3S.js → Transaction-DcVCMUY4.js} +1 -1
- package/dist/{Voucher-DX70cORv.js → Voucher-Djvai5vL.js} +9 -9
- package/dist/{app-Bpd1FsZZ.js → app-BvizV9z5.js} +2757 -2743
- package/dist/app.js +1 -1
- package/dist/{campaign-CfsRf50J.js → campaign-BdSwq7MJ.js} +31 -27
- package/dist/dto-CkH5Zama.js +1150 -0
- package/dist/{effect-CiUKauPm.js → effect-DT4ivttr.js} +1 -1
- package/dist/{export-oV5_2WhN.js → export-BAJL8_2G.js} +3 -3
- package/dist/{helper-dCIRT9Az.js → helper-CiIZ1pUo.js} +21 -8
- package/dist/{index-Qqifr9f8.js → index-7uOMMdXt.js} +245 -184
- package/dist/{index-BL_KPUtI.js → index-8nrxC9d5.js} +1 -1
- package/dist/{index-De3pocAb.js → index-B5gJ6P15.js} +269 -21
- package/dist/{index-DL_XK8dd.js → index-BLWw_MlC.js} +1363 -1341
- package/dist/{index-D9opigZA.js → index-C5N8jeJ1.js} +1 -1
- package/dist/{index-Dd41k099.js → index-C8dIiNQb.js} +1 -1
- package/dist/{index-XTz7nzez.js → index-Ccn7PGoB.js} +268 -267
- package/dist/{index-BYvX1Aa7.js → index-CjZxaXvZ.js} +69 -64
- package/dist/{index-BgPP5w8f.js → index-DCs4-zXS.js} +7 -17
- package/dist/{index-C8kJRh0b.js → index-DMyaEjMn.js} +26 -20
- package/dist/{loading-Baon-6K7.js → loading-C1IzY-n2.js} +1312 -1312
- package/dist/{lodash-C7zZd2mb.js → lodash-BMQ4xbjY.js} +1 -1
- package/dist/membership-D3I4udu3.js +221 -0
- package/dist/{money-CI5RX_Uc.js → money-BQEcWGhZ.js} +1 -1
- package/dist/{number-BD3GORAT.js → number-DGx2QPUy.js} +1 -1
- package/dist/{rule-BnlZjqSN.js → rule-CvlhLEGy.js} +2 -2
- package/dist/{rule-builder-Qvpo2dS_.js → rule-builder-Di3qiIBb.js} +1 -1
- package/dist/{template-CG_Y7BYa.js → template-D6Abrya4.js} +5 -5
- package/dist/{usePagination-BHEEnWBL.js → usePagination-MhbjQgN7.js} +1 -1
- package/dist/{xlsx-DQZIpY73.js → xlsx-mL_3T1k3.js} +226 -226
- package/package.json +2 -2
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BtEHnivB.js +0 -2002
- package/dist/Game-Tek__-5h.js +0 -242
- package/dist/Point-C1mfq_Fd.js +0 -211
- package/dist/Segment-BLMz7i-L.js +0 -407
- package/dist/dto-COz9T0F3.js +0 -1092
- package/dist/membership-Cg82yybg.js +0 -210
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
1
|
+
var ee = Object.defineProperty;
|
|
2
|
+
var oe = (b, r, d) => r in b ? ee(b, r, { enumerable: !0, configurable: !0, writable: !0, value: d }) : b[r] = d;
|
|
3
|
+
var z = (b, r, d) => oe(b, typeof r != "symbol" ? r + "" : r, d);
|
|
4
|
+
import { defineComponent as G, ref as g, computed as H, watch as O, resolveComponent as c, openBlock as h, createBlock as L, unref as e, isRef as K, withCtx as R, createElementVNode as v, createVNode as s, createElementBlock as P, Fragment as N, renderList as te, createCommentVNode as U, onMounted as ae, h as T } from "vue";
|
|
5
5
|
import { h as j } from "./moment-BWErdI6_.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
6
|
+
import { u as le, J as ne, R as se } from "./app-BvizV9z5.js";
|
|
7
|
+
import { components as re } from "@feedmepos/ui-library";
|
|
8
|
+
import { u as J, a as ie } from "./loading-C1IzY-n2.js";
|
|
9
|
+
import { useRoute as Q } from "vue-router";
|
|
10
|
+
import { c as E } from "./index-DCs4-zXS.js";
|
|
11
|
+
import { u as Y, w as ue } from "./xlsx-mL_3T1k3.js";
|
|
12
|
+
import { g as de } from "./user-Bm4KttFq.js";
|
|
13
|
+
import { u as ce, _ as me } from "./usePagination-MhbjQgN7.js";
|
|
14
|
+
import { m as pe } from "./index-C5N8jeJ1.js";
|
|
15
|
+
import { o as fe } from "./objectId-dwaoBfJX.js";
|
|
16
|
+
const ge = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Code type", -1), be = { class: "space-y-16" }, Ce = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Settings", -1), ve = { class: "gap-16 grid grid-cols-2" }, he = { class: "flex items-center gap-8" }, ye = /* @__PURE__ */ G({
|
|
16
17
|
__name: "CreateCollectionSheet",
|
|
17
18
|
emits: ["success"],
|
|
18
19
|
setup(b, { expose: r, emit: d }) {
|
|
19
|
-
const { minor: F } =
|
|
20
|
+
const { minor: F } = J, B = Q(), I = g(), k = g(!1), q = d, C = g(!1);
|
|
20
21
|
function m(i) {
|
|
21
22
|
C.value = i, i && (a.value = {
|
|
22
23
|
quantity: 1,
|
|
@@ -64,10 +65,10 @@ const me = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
64
65
|
{ label: "Alphabetic Uppercase", value: "ABCDEFGHIJKLMNOPQRSTUVWXYZ" },
|
|
65
66
|
{ label: "Numbers", value: "0123456789" },
|
|
66
67
|
{ label: "Custom", value: "" }
|
|
67
|
-
], x = g(y[0].value), f = g("bulk"), V = g(!1), n =
|
|
68
|
+
], x = g(y[0].value), f = g("bulk"), V = g(!1), n = H(() => B.params.id);
|
|
68
69
|
async function l(i) {
|
|
69
70
|
var o;
|
|
70
|
-
await ((o =
|
|
71
|
+
await ((o = I.value) == null ? void 0 : o.validateInputs()), k.value && await F(
|
|
71
72
|
async () => {
|
|
72
73
|
await E.createCollectionByCampaignId(n.value, i), await q("success");
|
|
73
74
|
},
|
|
@@ -90,25 +91,25 @@ const me = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
90
91
|
i != o && (a.value.codeConfig.pattern = "#".repeat(Math.min(16, Number(i))));
|
|
91
92
|
}
|
|
92
93
|
), (i, o) => {
|
|
93
|
-
const u = c("FmRadio"),
|
|
94
|
-
return
|
|
94
|
+
const u = c("FmRadio"), w = c("FmRadioGroup"), D = c("FmSwitch"), S = c("FmStepperField"), M = c("FmSelect"), _ = c("FmTextField"), W = c("FmTextarea"), X = c("FmForm"), $ = c("FmButton"), Z = c("FmSideSheet");
|
|
95
|
+
return h(), L(Z, {
|
|
95
96
|
"max-width": 560,
|
|
96
97
|
"dismiss-away": !0,
|
|
97
98
|
header: "Create collection",
|
|
98
99
|
modelValue: e(C),
|
|
99
100
|
"onUpdate:modelValue": [
|
|
100
|
-
o[14] || (o[14] = (t) =>
|
|
101
|
+
o[14] || (o[14] = (t) => K(C) ? C.value = t : null),
|
|
101
102
|
o[15] || (o[15] = (t) => C.value = t)
|
|
102
103
|
]
|
|
103
104
|
}, {
|
|
104
|
-
"side-sheet-footer":
|
|
105
|
-
|
|
106
|
-
s(
|
|
105
|
+
"side-sheet-footer": R(() => [
|
|
106
|
+
v("div", he, [
|
|
107
|
+
s($, {
|
|
107
108
|
label: "Save",
|
|
108
109
|
onClick: o[12] || (o[12] = (t) => l(e(a))),
|
|
109
|
-
loading: e(
|
|
110
|
+
loading: e(le)().isLoading
|
|
110
111
|
}, null, 8, ["loading"]),
|
|
111
|
-
s(
|
|
112
|
+
s($, {
|
|
112
113
|
label: "Cancel",
|
|
113
114
|
type: "button",
|
|
114
115
|
variant: "tertiary",
|
|
@@ -116,25 +117,25 @@ const me = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
116
117
|
})
|
|
117
118
|
])
|
|
118
119
|
]),
|
|
119
|
-
default:
|
|
120
|
-
s(
|
|
121
|
-
s(
|
|
120
|
+
default: R(() => [
|
|
121
|
+
s(ne, { json: e(a) }, null, 8, ["json"]),
|
|
122
|
+
s(X, {
|
|
122
123
|
ref_key: "form",
|
|
123
|
-
ref:
|
|
124
|
+
ref: I,
|
|
124
125
|
class: "space-y-40",
|
|
125
126
|
onValidationSuccess: o[10] || (o[10] = (t) => k.value = !0),
|
|
126
127
|
onValidationFailed: o[11] || (o[11] = (t) => k.value = !1)
|
|
127
128
|
}, {
|
|
128
|
-
default:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
s(
|
|
129
|
+
default: R(() => [
|
|
130
|
+
v("div", null, [
|
|
131
|
+
ge,
|
|
132
|
+
s(w, {
|
|
132
133
|
modelValue: e(f),
|
|
133
|
-
"onUpdate:modelValue": o[0] || (o[0] = (t) =>
|
|
134
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => K(f) ? f.value = t : null),
|
|
134
135
|
inline: !1
|
|
135
136
|
}, {
|
|
136
|
-
default:
|
|
137
|
-
(
|
|
137
|
+
default: R(() => [
|
|
138
|
+
(h(), P(N, null, te(A, (t) => s(u, {
|
|
138
139
|
key: t.value,
|
|
139
140
|
value: t.value,
|
|
140
141
|
label: t.label,
|
|
@@ -144,10 +145,10 @@ const me = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
144
145
|
_: 1
|
|
145
146
|
}, 8, ["modelValue"])
|
|
146
147
|
]),
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
e(f) === "bulk" ? (
|
|
150
|
-
s(
|
|
148
|
+
v("div", be, [
|
|
149
|
+
Ce,
|
|
150
|
+
e(f) === "bulk" ? (h(), P(N, { key: 0 }, [
|
|
151
|
+
s(D, {
|
|
151
152
|
"model-value": e(V),
|
|
152
153
|
"label-placement": "right",
|
|
153
154
|
value: "true",
|
|
@@ -155,8 +156,8 @@ const me = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
155
156
|
required: !0,
|
|
156
157
|
"onUpdate:modelValue": o[1] || (o[1] = () => V.value = !e(V))
|
|
157
158
|
}, null, 8, ["model-value"]),
|
|
158
|
-
e(V) ? (
|
|
159
|
-
s(
|
|
159
|
+
e(V) ? (h(), P(N, { key: 0 }, [
|
|
160
|
+
s(S, {
|
|
160
161
|
modelValue: e(a).codeConfig.length,
|
|
161
162
|
"onUpdate:modelValue": o[2] || (o[2] = (t) => e(a).codeConfig.length = t),
|
|
162
163
|
label: "Code length",
|
|
@@ -168,7 +169,7 @@ const me = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
168
169
|
],
|
|
169
170
|
required: !0
|
|
170
171
|
}, null, 8, ["modelValue", "rules"]),
|
|
171
|
-
s(
|
|
172
|
+
s(M, {
|
|
172
173
|
label: "Charset",
|
|
173
174
|
"model-value": e(x),
|
|
174
175
|
items: y,
|
|
@@ -177,14 +178,14 @@ const me = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
177
178
|
x.value = t, e(a).codeConfig.charset = t;
|
|
178
179
|
})
|
|
179
180
|
}, null, 8, ["model-value", "helper-text"]),
|
|
180
|
-
e(x) === "" ? (
|
|
181
|
+
e(x) === "" ? (h(), L(_, {
|
|
181
182
|
key: 0,
|
|
182
183
|
modelValue: e(a).codeConfig.charset,
|
|
183
184
|
"onUpdate:modelValue": o[4] || (o[4] = (t) => e(a).codeConfig.charset = t),
|
|
184
185
|
label: "Custom Charset",
|
|
185
186
|
required: ""
|
|
186
|
-
}, null, 8, ["modelValue"])) :
|
|
187
|
-
|
|
187
|
+
}, null, 8, ["modelValue"])) : U("", !0),
|
|
188
|
+
v("div", ve, [
|
|
188
189
|
s(_, {
|
|
189
190
|
modelValue: e(a).codeConfig.prefix,
|
|
190
191
|
"onUpdate:modelValue": o[5] || (o[5] = (t) => e(a).codeConfig.prefix = t),
|
|
@@ -202,7 +203,7 @@ const me = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
202
203
|
label: "Pattern",
|
|
203
204
|
required: !0
|
|
204
205
|
}, null, 8, ["modelValue"])
|
|
205
|
-
], 64)) :
|
|
206
|
+
], 64)) : U("", !0),
|
|
206
207
|
s(_, {
|
|
207
208
|
modelValue: e(a).quantity,
|
|
208
209
|
"onUpdate:modelValue": o[8] || (o[8] = (t) => e(a).quantity = t),
|
|
@@ -214,15 +215,15 @@ const me = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
214
215
|
required: !0,
|
|
215
216
|
"helper-text": `${e(a).quantity} claim will be created`
|
|
216
217
|
}, null, 8, ["modelValue", "rules", "helper-text"])
|
|
217
|
-
], 64)) :
|
|
218
|
-
e(f) !== "bulk" ? (
|
|
218
|
+
], 64)) : U("", !0),
|
|
219
|
+
e(f) !== "bulk" ? (h(), L(W, {
|
|
219
220
|
key: 1,
|
|
220
221
|
modelValue: e(a).code,
|
|
221
222
|
"onUpdate:modelValue": o[9] || (o[9] = (t) => e(a).code = t),
|
|
222
223
|
label: "Custom Code",
|
|
223
224
|
rules: [(t) => e(f) != "single" || !!t || "Custom code is required"],
|
|
224
225
|
placeholder: "(For multiple codes, please enter in the new row.)"
|
|
225
|
-
}, null, 8, ["modelValue", "rules"])) :
|
|
226
|
+
}, null, 8, ["modelValue", "rules"])) : U("", !0)
|
|
226
227
|
])
|
|
227
228
|
]),
|
|
228
229
|
_: 1
|
|
@@ -233,16 +234,16 @@ const me = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
233
234
|
};
|
|
234
235
|
}
|
|
235
236
|
});
|
|
236
|
-
class
|
|
237
|
+
class xe {
|
|
237
238
|
constructor() {
|
|
238
|
-
|
|
239
|
+
z(this, "data", []);
|
|
239
240
|
}
|
|
240
241
|
addRecord(r) {
|
|
241
242
|
this.data.push(r);
|
|
242
243
|
}
|
|
243
244
|
buildExcel() {
|
|
244
|
-
const r =
|
|
245
|
-
return
|
|
245
|
+
const r = Y.book_new(), d = Y.json_to_sheet(this.data);
|
|
246
|
+
return Y.book_append_sheet(r, d, "Collection"), r;
|
|
246
247
|
}
|
|
247
248
|
}
|
|
248
249
|
const p = {
|
|
@@ -251,13 +252,33 @@ const p = {
|
|
|
251
252
|
rowsPerPage: 1e3,
|
|
252
253
|
page: 1,
|
|
253
254
|
rowsNumber: 0
|
|
254
|
-
},
|
|
255
|
+
}, Ve = { class: "px-24 flex flex-col gap-y-32 pb-24" }, we = { class: "flex items-center justify-end py-4 xs:hidden" }, De = /* @__PURE__ */ G({
|
|
255
256
|
__name: "Collections",
|
|
256
257
|
setup(b) {
|
|
257
|
-
const r =
|
|
258
|
+
const r = Q(), d = g(), F = H(() => r.params.id), B = g(!1), { custom: I } = J, k = [
|
|
258
259
|
{
|
|
259
260
|
header: "ID/Code",
|
|
260
|
-
|
|
261
|
+
accessorKey: "_id",
|
|
262
|
+
cell(n) {
|
|
263
|
+
return T("div", { class: "flex items-center" }, [
|
|
264
|
+
T(re.FmIcon, {
|
|
265
|
+
name: "content_copy",
|
|
266
|
+
outline: !0,
|
|
267
|
+
size: "sm",
|
|
268
|
+
class: "cursor-pointer mr-4",
|
|
269
|
+
onClick: (l) => {
|
|
270
|
+
l.preventDefault(), l.stopPropagation(), ie(
|
|
271
|
+
n.row.original.code || n.row.original._id.toString()
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
}),
|
|
275
|
+
T(
|
|
276
|
+
"div",
|
|
277
|
+
{ class: "pr-2 text-ellipsis overflow-hidden" },
|
|
278
|
+
n.row.original.code || n.row.original._id.toString()
|
|
279
|
+
)
|
|
280
|
+
]);
|
|
281
|
+
}
|
|
261
282
|
},
|
|
262
283
|
{
|
|
263
284
|
header: "User",
|
|
@@ -265,7 +286,7 @@ const p = {
|
|
|
265
286
|
enableSorting: !1,
|
|
266
287
|
cell(n) {
|
|
267
288
|
const l = n.row.original.pf_user;
|
|
268
|
-
return
|
|
289
|
+
return de(l);
|
|
269
290
|
}
|
|
270
291
|
},
|
|
271
292
|
{
|
|
@@ -283,7 +304,7 @@ const p = {
|
|
|
283
304
|
{
|
|
284
305
|
header: "Created at",
|
|
285
306
|
accessorKey: "_id",
|
|
286
|
-
accessorFn: (n) => j(
|
|
307
|
+
accessorFn: (n) => j(fe(n._id.toString())).format("DD MMM YYYY")
|
|
287
308
|
},
|
|
288
309
|
{
|
|
289
310
|
header: "Nearest expired at",
|
|
@@ -294,49 +315,46 @@ const p = {
|
|
|
294
315
|
}
|
|
295
316
|
}
|
|
296
317
|
], q = {
|
|
297
|
-
"$connect-STORE_REWARD_COLLECTIONS":
|
|
318
|
+
"$connect-STORE_REWARD_COLLECTIONS": pe.readCollectionsByRewardId,
|
|
298
319
|
"$connect-CAMPAIGN_VOUCHER_COLLECTIONS": E.readCollectionsByCampaignId
|
|
299
320
|
}, C = (n) => {
|
|
300
321
|
const l = q[r.name];
|
|
301
322
|
return (i) => l(n, i);
|
|
302
|
-
}, { tableMeta: m, rowData: a, onSort: A, debouncedFetchData: y, onSearch: x } =
|
|
303
|
-
key: "_id",
|
|
304
|
-
descending: !1
|
|
305
|
-
});
|
|
323
|
+
}, { tableMeta: m, rowData: a, onSort: A, debouncedFetchData: y, onSearch: x } = ce(C(F.value));
|
|
306
324
|
async function f() {
|
|
307
325
|
var n;
|
|
308
326
|
await y(), (n = d.value) == null || n.showSheet(!1);
|
|
309
327
|
}
|
|
310
328
|
async function V() {
|
|
311
|
-
B.value ||
|
|
329
|
+
B.value || I(
|
|
312
330
|
async () => {
|
|
313
331
|
var o;
|
|
314
|
-
const n = new
|
|
332
|
+
const n = new xe(), l = (await E.readCollectionsByCampaignId(F.value, {
|
|
315
333
|
limit: 1,
|
|
316
334
|
skip: 0,
|
|
317
335
|
sortBy: p.sortBy,
|
|
318
336
|
descending: p.descending
|
|
319
337
|
})).meta.totalResources ?? 0, i = p.rowsPerPage;
|
|
320
338
|
for (let u = 0; u < l; u += i) {
|
|
321
|
-
const
|
|
339
|
+
const w = {
|
|
322
340
|
...p,
|
|
323
341
|
limit: i,
|
|
324
342
|
skip: (p.page - 1) * p.rowsPerPage,
|
|
325
343
|
sortBy: p.sortBy,
|
|
326
344
|
descending: p.descending
|
|
327
|
-
},
|
|
345
|
+
}, D = await E.readCollectionsByCampaignId(
|
|
328
346
|
F.value,
|
|
329
|
-
|
|
347
|
+
w
|
|
330
348
|
);
|
|
331
|
-
for await (const
|
|
332
|
-
const
|
|
333
|
-
Id: (
|
|
349
|
+
for await (const S of D.resources) {
|
|
350
|
+
const M = {
|
|
351
|
+
Id: (S == null ? void 0 : S.code) || ((o = S._id) == null ? void 0 : o.toString()) || ""
|
|
334
352
|
};
|
|
335
|
-
n.addRecord(
|
|
353
|
+
n.addRecord(M);
|
|
336
354
|
}
|
|
337
355
|
p.page++;
|
|
338
356
|
}
|
|
339
|
-
await
|
|
357
|
+
await ue(
|
|
340
358
|
n.buildExcel(),
|
|
341
359
|
`members-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
|
|
342
360
|
{
|
|
@@ -351,11 +369,11 @@ const p = {
|
|
|
351
369
|
}
|
|
352
370
|
);
|
|
353
371
|
}
|
|
354
|
-
return
|
|
372
|
+
return ae(async () => {
|
|
355
373
|
await y();
|
|
356
374
|
}), (n, l) => {
|
|
357
375
|
const i = c("FmPageHead"), o = c("FmSearch");
|
|
358
|
-
return
|
|
376
|
+
return h(), P(N, null, [
|
|
359
377
|
s(i, {
|
|
360
378
|
title: "Collections",
|
|
361
379
|
"back-button": !0,
|
|
@@ -367,13 +385,13 @@ const p = {
|
|
|
367
385
|
isPrimary: !0
|
|
368
386
|
}
|
|
369
387
|
],
|
|
370
|
-
"onClick:back": l[0] || (l[0] = (u) => e(
|
|
388
|
+
"onClick:back": l[0] || (l[0] = (u) => e(se).back()),
|
|
371
389
|
"onClick:action": l[1] || (l[1] = (u) => {
|
|
372
|
-
var
|
|
373
|
-
u === "create" && ((
|
|
390
|
+
var w;
|
|
391
|
+
u === "create" && ((w = e(d)) == null || w.showSheet(!0)), u === "export" && V();
|
|
374
392
|
})
|
|
375
393
|
}),
|
|
376
|
-
|
|
394
|
+
v("div", Ve, [
|
|
377
395
|
s(o, {
|
|
378
396
|
class: "hidden xs:flex border-b border-fm-color-neutral-gray-100",
|
|
379
397
|
modelValue: e(m).searchValue,
|
|
@@ -384,7 +402,7 @@ const p = {
|
|
|
384
402
|
placeholder: "Search",
|
|
385
403
|
collapsible: ""
|
|
386
404
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
387
|
-
|
|
405
|
+
v("div", we, [
|
|
388
406
|
s(o, {
|
|
389
407
|
modelValue: e(m).searchValue,
|
|
390
408
|
"onUpdate:modelValue": [
|
|
@@ -395,7 +413,7 @@ const p = {
|
|
|
395
413
|
collapsible: ""
|
|
396
414
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
397
415
|
]),
|
|
398
|
-
s(
|
|
416
|
+
s(me, {
|
|
399
417
|
loading: e(m).isLoading,
|
|
400
418
|
"row-data": e(a),
|
|
401
419
|
"column-defs": k,
|
|
@@ -407,7 +425,7 @@ const p = {
|
|
|
407
425
|
onSortChange: e(A),
|
|
408
426
|
onPageChange: l[4] || (l[4] = (u) => e(y)({ pageSize: u.pageSize, pageIndex: u.pageIndex }))
|
|
409
427
|
}, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"]),
|
|
410
|
-
s(
|
|
428
|
+
s(ye, {
|
|
411
429
|
ref_key: "sheetRef",
|
|
412
430
|
ref: d,
|
|
413
431
|
onSuccess: f
|
|
@@ -418,5 +436,5 @@ const p = {
|
|
|
418
436
|
}
|
|
419
437
|
});
|
|
420
438
|
export {
|
|
421
|
-
|
|
439
|
+
De as default
|
|
422
440
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as U, ref as k, computed as A, onMounted as N, resolveComponent as i, openBlock as l, createElementBlock as f, Fragment as g, createVNode as r, unref as o, createElementVNode as s, withCtx as h, renderList as j, createBlock as C, resolveDynamicComponent as M, toDisplayString as y, createCommentVNode as H, h as q } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as G, components as J } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as O, p as Q } from "./loading-
|
|
5
|
-
import { a as W } from "./app-
|
|
6
|
-
import { u as X } from "./campaign-
|
|
7
|
-
import { g as S, b as V } from "./dto-
|
|
4
|
+
import { u as O, p as Q } from "./loading-C1IzY-n2.js";
|
|
5
|
+
import { a as W } from "./app-BvizV9z5.js";
|
|
6
|
+
import { u as X } from "./campaign-BdSwq7MJ.js";
|
|
7
|
+
import { g as S, b as V } from "./dto-CkH5Zama.js";
|
|
8
8
|
import { _ as Y } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
-
import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as ee } from "./template-
|
|
11
|
-
import { c as _ } from "./index-
|
|
9
|
+
import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYNpBySQ.js";
|
|
10
|
+
import { u as ee } from "./template-D6Abrya4.js";
|
|
11
|
+
import { c as _ } from "./index-DCs4-zXS.js";
|
|
12
12
|
const te = { class: "px-24 flex flex-col gap-y-16" }, oe = { class: "flex items-center justify-between w-full" }, ae = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, ne = { class: "flex w-full gap-4 items-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "space-y-4" }, le = { class: "fm-typo-en-body-lg-600" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { key: 0 }, ue = /* @__PURE__ */ s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), pe = [
|
|
13
13
|
ue
|
|
14
14
|
], fe = /* @__PURE__ */ s("img", {
|