@feedmepos/mf-connect 0.1.0-beta.5 → 0.1.0-beta.50
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-D-yp03jJ.js +427 -0
- package/dist/{App-C8Qfnkhz.js → App-CeQWTGNK.js} +441 -420
- package/dist/AuditLogs-2qzwcMXR.js +1885 -0
- package/dist/Bin-D1b2NbbA.js +191 -0
- package/dist/{Broadcast-BK-1MQkL.js → Broadcast-bKF9mIns.js} +13 -12
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BLzpFQoc.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B_q5K-cx.js} +6 -8
- package/dist/Card-BCAyfBLi.js +896 -0
- package/dist/{Collections-TA4iW1r0.js → Collections-Yz3F55bv.js} +27 -31
- package/dist/{Credit-Df9iFQjZ.js → Credit-Ceptt_g_.js} +17 -16
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-CLFeMi0j.js +169 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-TjNinQ8e.js +2181 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BCRVyPwl.js → EffectSheet.vue_vue_type_style_index_0_lang-D3Bt-Vuu.js} +6 -6
- package/dist/{Experience-ByLFXKn6.js → Experience-DskHKzfo.js} +26 -25
- package/dist/{Game-B6Ez0pfW.js → Game-IJ6X0AXM.js} +21 -20
- package/dist/Index-CEl2y9X6.js +259 -0
- package/dist/Marketing-CWekLb4c.js +20071 -0
- package/dist/{Member-TobP1ISp.js → Member-BUZPQ5Lb.js} +4 -4
- package/dist/MemberList-BmVNqvbm.js +1598 -0
- package/dist/MemberTransactions-B3XhEOK_.js +45 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CZ-w6iZi.js → MessageInput.vue_vue_type_script_setup_true_lang-C6YIbQtM.js} +6 -6
- package/dist/{Mission-D9uTVo0G.js → Mission-Ci9ed_ph.js} +97 -84
- package/dist/Overview-CU9uhC-k.js +1078 -0
- package/dist/{Point-4rDr-53e.js → Point-wuuR7AEb.js} +26 -25
- package/dist/{Promotion-BKO_dtQk.js → Promotion-BMi3kyE8.js} +55 -48
- package/dist/Record-Wmh-g8WY.js +340 -0
- package/dist/Reward-BL4lxhIB.js +442 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CqXuTxun.js +150 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Dbik0PEw.js +1637 -0
- package/dist/Segment-DObdjyYi.js +568 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BAuM6qP5.js +181 -0
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-BfyRVxWM.js +147 -0
- package/dist/{Setting-B7oISD0D.js → Setting-Dqgnd7TR.js} +610 -586
- package/dist/Store--Z4So__g.js +1744 -0
- package/dist/{StoreRewards-AMxIYhjZ.js → StoreRewards-DPFVXWwm.js} +33 -32
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CNsdA106.js +939 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B2szciPk.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CGOmGozY.js} +1 -1
- package/dist/{Tier-DkxdNj-K.js → Tier-36IfhsnP.js} +327 -318
- package/dist/{Title-VFpCOsMO.js → Title-XH56OOug.js} +199 -184
- package/dist/{Transaction-BgKD8n2L.js → Transaction-BUQcSmBs.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-BVCfeG5T.js +130 -0
- package/dist/Voucher-CvmH0kcF.js +353 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BQOD6uEf.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B2FGvyza.js → ZodTextField.vue_vue_type_script_setup_true_lang-CcIcCt4N.js} +1 -1
- package/dist/{app-DUl5dav5.js → app-DeW5_DB0.js} +1754 -1496
- package/dist/{app-DA-t-2Zt.js → app-TN8KEPMu.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-CeCitOY4.js → business-D1mLhSME.js} +1 -1
- package/dist/campaign-0tnkhu78.js +1810 -0
- package/dist/{campaign-CcLM6e4s.js → campaign-B-12Im0w.js} +2 -2
- package/dist/campaign.enum-C8m-HHZE.js +20 -0
- package/dist/campaign.fn-CxkhbK9i.js +758 -0
- package/dist/collectible.enum-6Syq-vQ6.js +19 -0
- package/dist/{collection.fn-CAEP7YxB.js → collection.fn-BUj75Jp2.js} +2 -2
- package/dist/dto-8wODhIIC.js +214 -0
- package/dist/{effect-Dt7rXOBy.js → effect-BEZEjcJu.js} +9 -9
- package/dist/email-addresses-PwjkdYYD.js +705 -0
- package/dist/{export-CyioiboQ.js → export-BB-0vgwy.js} +5 -5
- package/dist/{helper-FA_9AhGV.js → helper-DOt8-wns.js} +1 -1
- package/dist/{index-DLN4Kzz_.js → index-B1qUjniH.js} +1 -1
- package/dist/index-BTMIZz4v.js +44 -0
- package/dist/{index-igxrd5jC.js → index-By-GlmG7.js} +1500 -1479
- package/dist/index-C7zBkoZ4.js +115 -0
- package/dist/{index-CyNdsVrw.js → index-CNlHabtk.js} +1 -1
- package/dist/{index-DbbO3wip.js → index-CXGiIgdK.js} +48 -4
- package/dist/{index-C20XBD7G.js → index-Cjn1LVjC.js} +2192 -931
- package/dist/index-CpfUrdgw.js +29000 -0
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/index-DZuEmMyY.js +54 -0
- package/dist/{index-CCdXvb92.js → index-D_zwqIhq.js} +1 -1
- package/dist/index-DabUEw_c.js +32 -0
- package/dist/{index-BiFueJiF.js → index-X-FfC49l.js} +258 -192
- package/dist/index-vh86FiIQ.js +10 -0
- package/dist/{index.esm2017-Dl_CdTcK.js → index.esm2017-DJOUiVjR.js} +33 -33
- package/dist/loading-aCWVsOPY.js +71 -0
- package/dist/{membership-DFiY8aVd.js → membership-1etsHC5G.js} +54 -46
- package/dist/money-DzWRURZ5.js +15 -0
- package/dist/number-BxIQO1i3.js +12 -0
- package/dist/objectid-DjhmYkn-.js +145 -0
- package/dist/{loading-CZ0fiViM.js → plugins-CSPFAU50.js} +2990 -3062
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-Bh4Li9f0.js +36 -0
- package/dist/{rule-C3e1xTqN.js → rule-CHTTTUFB.js} +180 -177
- package/dist/{rule-builder-MEVb_AiZ.js → rule-builder-OHfUJTIA.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-C2OKWd_e.js → template-ZGxXqkaC.js} +5 -5
- package/dist/trigger-Ogu5FDs0.js +144 -0
- package/dist/user-DBuU81tO.js +54 -0
- package/dist/{vue-i18n-CjxDUnX6.js → vue-i18n-CKpKQ6iE.js} +216 -216
- package/dist/{xlsx-CtXdl3ls.js → xlsx-DJDZBIeg.js} +1 -1
- package/package.json +9 -7
- package/dist/Analytic-C_ZFR5jh.js +0 -622
- package/dist/Card-C7dUFJKe.js +0 -825
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bgl90veU.js +0 -2813
- package/dist/Marketing-BaqZUeVI.js +0 -316
- package/dist/MemberList-B9cutmEh.js +0 -1733
- package/dist/MemberTransactions-DRHA7AOF.js +0 -38
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BHCoDSTg.js +0 -1753
- package/dist/Segment-Dj8nc3AE.js +0 -437
- package/dist/Store-CJ3wcohQ.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-wXUTfQQF.js +0 -890
- package/dist/Voucher-BbTLt8Pt.js +0 -490
- package/dist/dto-CRJma6eX.js +0 -2770
- package/dist/index-B1e0LtDe.js +0 -99
- package/dist/index-Be2ZYDy_.js +0 -298
- package/dist/index-CDkITvze.js +0 -762
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-DPP5F3bT.js +0 -206
- package/dist/index-Dbo3DDwp.js +0 -29193
- package/dist/money-D8hUEfP4.js +0 -15
- package/dist/number-DL3GAeVt.js +0 -12
- package/dist/user-Bm4KttFq.js +0 -37
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
var oe = Object.defineProperty;
|
|
2
2
|
var te = (f, r, u) => r in f ? oe(f, r, { enumerable: !0, configurable: !0, writable: !0, value: u }) : f[r] = u;
|
|
3
3
|
var $ = (f, r, u) => te(f, typeof r != "symbol" ? r + "" : r, u);
|
|
4
|
-
import { defineComponent as H, ref as p, computed as J, watch as O, resolveComponent as d, openBlock as y, createBlock as T, unref as o, isRef as K, withCtx as I, createElementVNode as b, createVNode as s, createElementBlock as
|
|
4
|
+
import { defineComponent as H, ref as p, computed as J, watch as O, resolveComponent as d, openBlock as y, createBlock as T, unref as o, isRef as K, withCtx as I, createElementVNode as b, createVNode as s, createElementBlock as P, Fragment as N, renderList as ae, createCommentVNode as R, onMounted as le, h as w } from "vue";
|
|
5
5
|
import { h as j } from "./moment-BWErdI6_.js";
|
|
6
6
|
import { components as G } from "@feedmepos/ui-library";
|
|
7
|
-
import {
|
|
7
|
+
import { a as ne } from "./plugins-CSPFAU50.js";
|
|
8
8
|
import { J as se } from "./JsonViewer-v8_C7l5N.js";
|
|
9
|
+
import { u as Q } from "./loading-aCWVsOPY.js";
|
|
9
10
|
import { u as re } from "./app-wDQR6dpb.js";
|
|
10
11
|
import { useRoute as W, useRouter as ie } from "vue-router";
|
|
11
|
-
import { c as A } from "./index-
|
|
12
|
-
import {
|
|
12
|
+
import { c as A } from "./index-C7zBkoZ4.js";
|
|
13
|
+
import { e as m } from "./index-vh86FiIQ.js";
|
|
14
|
+
import { u as z, w as de } from "./xlsx-DJDZBIeg.js";
|
|
13
15
|
import { u as ue, _ as ce } from "./usePagination-BeF5K3M7.js";
|
|
14
|
-
import { m as me } from "./index-
|
|
16
|
+
import { m as me } from "./index-CXGiIgdK.js";
|
|
15
17
|
import { o as pe } from "./objectId-dwaoBfJX.js";
|
|
16
18
|
const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, be = { class: "flex items-center gap-8" }, Ce = /* @__PURE__ */ H({
|
|
17
19
|
__name: "CreateCollectionSheet",
|
|
@@ -91,7 +93,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
91
93
|
t != e && (l.value.codeConfig.pattern = "#".repeat(Math.min(16, Number(t))));
|
|
92
94
|
}
|
|
93
95
|
), (t, e) => {
|
|
94
|
-
const v = d("FmRadio"), i = d("FmRadioGroup"), V = d("FmSwitch"), L = d("FmStepperField"),
|
|
96
|
+
const v = d("FmRadio"), i = d("FmRadioGroup"), V = d("FmSwitch"), L = d("FmStepperField"), S = d("FmSelect"), x = d("FmTextField"), X = d("FmTextarea"), Z = d("FmForm"), Y = d("FmButton"), ee = d("FmSideSheet");
|
|
95
97
|
return y(), T(ee, {
|
|
96
98
|
"max-width": 560,
|
|
97
99
|
"dismiss-away": !0,
|
|
@@ -135,7 +137,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
135
137
|
inline: !1
|
|
136
138
|
}, {
|
|
137
139
|
default: I(() => [
|
|
138
|
-
(y(),
|
|
140
|
+
(y(), P(N, null, ae(D, (a) => s(v, {
|
|
139
141
|
key: a.value,
|
|
140
142
|
value: a.value,
|
|
141
143
|
label: a.label,
|
|
@@ -147,7 +149,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
147
149
|
]),
|
|
148
150
|
b("div", fe, [
|
|
149
151
|
e[17] || (e[17] = b("div", { class: "fm-typo-en-body-lg-600" }, "Settings", -1)),
|
|
150
|
-
o(c) === "bulk" ? (y(),
|
|
152
|
+
o(c) === "bulk" ? (y(), P(N, { key: 0 }, [
|
|
151
153
|
s(V, {
|
|
152
154
|
"model-value": o(h),
|
|
153
155
|
"label-placement": "right",
|
|
@@ -156,7 +158,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
156
158
|
required: !0,
|
|
157
159
|
"onUpdate:modelValue": e[1] || (e[1] = () => h.value = !o(h))
|
|
158
160
|
}, null, 8, ["model-value"]),
|
|
159
|
-
o(h) ? (y(),
|
|
161
|
+
o(h) ? (y(), P(N, { key: 0 }, [
|
|
160
162
|
s(L, {
|
|
161
163
|
modelValue: o(l).codeConfig.length,
|
|
162
164
|
"onUpdate:modelValue": e[2] || (e[2] = (a) => o(l).codeConfig.length = a),
|
|
@@ -169,7 +171,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
169
171
|
],
|
|
170
172
|
required: !0
|
|
171
173
|
}, null, 8, ["modelValue", "rules"]),
|
|
172
|
-
s(
|
|
174
|
+
s(S, {
|
|
173
175
|
label: "Charset",
|
|
174
176
|
"model-value": o(C),
|
|
175
177
|
items: U,
|
|
@@ -184,7 +186,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
184
186
|
"onUpdate:modelValue": e[4] || (e[4] = (a) => o(l).codeConfig.charset = a),
|
|
185
187
|
label: "Custom Charset",
|
|
186
188
|
required: ""
|
|
187
|
-
}, null, 8, ["modelValue"])) :
|
|
189
|
+
}, null, 8, ["modelValue"])) : R("", !0),
|
|
188
190
|
b("div", ge, [
|
|
189
191
|
s(x, {
|
|
190
192
|
modelValue: o(l).codeConfig.prefix,
|
|
@@ -203,7 +205,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
203
205
|
label: "Pattern",
|
|
204
206
|
required: !0
|
|
205
207
|
}, null, 8, ["modelValue"])
|
|
206
|
-
], 64)) :
|
|
208
|
+
], 64)) : R("", !0),
|
|
207
209
|
s(x, {
|
|
208
210
|
modelValue: o(l).quantity,
|
|
209
211
|
"onUpdate:modelValue": e[8] || (e[8] = (a) => o(l).quantity = a),
|
|
@@ -215,7 +217,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
215
217
|
required: !0,
|
|
216
218
|
"helper-text": `${o(l).quantity} claim will be created`
|
|
217
219
|
}, null, 8, ["modelValue", "rules", "helper-text"])
|
|
218
|
-
], 64)) :
|
|
220
|
+
], 64)) : R("", !0),
|
|
219
221
|
o(c) !== "bulk" ? (y(), T(X, {
|
|
220
222
|
key: 1,
|
|
221
223
|
modelValue: o(l).code,
|
|
@@ -223,7 +225,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
223
225
|
label: "Custom Code",
|
|
224
226
|
rules: [(a) => o(c) != "single" || !!a || "Custom code is required"],
|
|
225
227
|
placeholder: "(For multiple codes, please enter in the new row.)"
|
|
226
|
-
}, null, 8, ["modelValue", "rules"])) :
|
|
228
|
+
}, null, 8, ["modelValue", "rules"])) : R("", !0)
|
|
227
229
|
])
|
|
228
230
|
]),
|
|
229
231
|
_: 1
|
|
@@ -246,13 +248,7 @@ class ve {
|
|
|
246
248
|
return z.book_append_sheet(r, u, "Collection"), r;
|
|
247
249
|
}
|
|
248
250
|
}
|
|
249
|
-
const
|
|
250
|
-
sortBy: "_id",
|
|
251
|
-
descending: !1,
|
|
252
|
-
rowsPerPage: 1e3,
|
|
253
|
-
page: 1,
|
|
254
|
-
rowsNumber: 0
|
|
255
|
-
}, xe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ye = { class: "flex items-center justify-end py-4 xs:hidden" }, Ae = /* @__PURE__ */ H({
|
|
251
|
+
const xe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ye = { class: "flex items-center justify-end py-4 xs:hidden" }, qe = /* @__PURE__ */ H({
|
|
256
252
|
__name: "Collections",
|
|
257
253
|
setup(f) {
|
|
258
254
|
const r = ie(), u = W(), F = p(), k = J(() => u.params.id), _ = p(!1), { custom: B } = Q, E = [
|
|
@@ -260,8 +256,8 @@ const m = {
|
|
|
260
256
|
header: "ID/Code",
|
|
261
257
|
accessorKey: "_id",
|
|
262
258
|
cell(n) {
|
|
263
|
-
return
|
|
264
|
-
|
|
259
|
+
return w("div", { class: "flex items-center" }, [
|
|
260
|
+
w(G.FmIcon, {
|
|
265
261
|
name: "content_copy",
|
|
266
262
|
outline: !0,
|
|
267
263
|
size: "sm",
|
|
@@ -272,7 +268,7 @@ const m = {
|
|
|
272
268
|
);
|
|
273
269
|
}
|
|
274
270
|
}),
|
|
275
|
-
|
|
271
|
+
w(
|
|
276
272
|
"div",
|
|
277
273
|
{ class: "pr-2 text-ellipsis overflow-hidden" },
|
|
278
274
|
n.row.original.code || n.row.original._id.toString()
|
|
@@ -286,18 +282,18 @@ const m = {
|
|
|
286
282
|
enableSorting: !1,
|
|
287
283
|
cell(n) {
|
|
288
284
|
const t = n.row.original.pf_user;
|
|
289
|
-
return
|
|
285
|
+
return w(
|
|
290
286
|
"div",
|
|
291
287
|
{
|
|
292
288
|
class: "flex items-center gap-x-8"
|
|
293
289
|
},
|
|
294
290
|
[
|
|
295
|
-
|
|
291
|
+
w(G.FmAvatar, {
|
|
296
292
|
name: t != null && t.photoUrl || t == null ? void 0 : t.name,
|
|
297
293
|
src: (t == null ? void 0 : t.photoUrl) ?? void 0,
|
|
298
294
|
size: "sm"
|
|
299
295
|
}),
|
|
300
|
-
|
|
296
|
+
w("span", t == null ? void 0 : t.name)
|
|
301
297
|
]
|
|
302
298
|
);
|
|
303
299
|
}
|
|
@@ -359,9 +355,9 @@ const m = {
|
|
|
359
355
|
k.value,
|
|
360
356
|
V
|
|
361
357
|
);
|
|
362
|
-
for await (const
|
|
358
|
+
for await (const S of L.resources) {
|
|
363
359
|
const x = {
|
|
364
|
-
Id: (
|
|
360
|
+
Id: (S == null ? void 0 : S.code) || ((v = S._id) == null ? void 0 : v.toString()) || ""
|
|
365
361
|
};
|
|
366
362
|
n.addRecord(x);
|
|
367
363
|
}
|
|
@@ -386,7 +382,7 @@ const m = {
|
|
|
386
382
|
await C();
|
|
387
383
|
}), (n, t) => {
|
|
388
384
|
const e = d("FmPageHead"), v = d("FmSearch");
|
|
389
|
-
return y(),
|
|
385
|
+
return y(), P(N, null, [
|
|
390
386
|
s(e, {
|
|
391
387
|
title: "Collections",
|
|
392
388
|
"back-button": !0,
|
|
@@ -449,5 +445,5 @@ const m = {
|
|
|
449
445
|
}
|
|
450
446
|
});
|
|
451
447
|
export {
|
|
452
|
-
|
|
448
|
+
qe as default
|
|
453
449
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
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 h, createVNode as i, unref as a, createElementVNode as n, withCtx as C, 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
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { p as Q } from "./plugins-CSPFAU50.js";
|
|
5
|
+
import { u as W } from "./loading-aCWVsOPY.js";
|
|
6
|
+
import { u as X } from "./business-D1mLhSME.js";
|
|
7
|
+
import { u as Y } from "./campaign-B-12Im0w.js";
|
|
8
|
+
import { g as V, a as L } from "./campaign-0tnkhu78.js";
|
|
9
|
+
import { u as Z } from "./vue-i18n-CKpKQ6iE.js";
|
|
9
10
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as te } from "./template-
|
|
12
|
-
import { c as _ } from "./index-
|
|
13
|
-
const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 },
|
|
11
|
+
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-TjNinQ8e.js";
|
|
12
|
+
import { u as te } from "./template-ZGxXqkaC.js";
|
|
13
|
+
import { c as _ } from "./index-C7zBkoZ4.js";
|
|
14
|
+
const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 }, Le = /* @__PURE__ */ N({
|
|
14
15
|
__name: "Credit",
|
|
15
16
|
setup(fe) {
|
|
16
17
|
const { t: r } = Z(), I = {
|
|
@@ -50,13 +51,13 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
50
51
|
icon: "delete",
|
|
51
52
|
iconColor: "neutral-gray-400",
|
|
52
53
|
onClick: (o) => {
|
|
53
|
-
o.stopPropagation(),
|
|
54
|
+
o.stopPropagation(), b(e.row.original);
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
],
|
|
59
|
-
async function
|
|
59
|
+
], x = S();
|
|
60
|
+
async function b(e) {
|
|
60
61
|
await Q.remove(
|
|
61
62
|
r("connect.program.common.remove.confirm", { name: e.name })
|
|
62
63
|
) && await w(
|
|
@@ -77,7 +78,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
77
78
|
});
|
|
78
79
|
async function o(p) {
|
|
79
80
|
var u;
|
|
80
|
-
(u =
|
|
81
|
+
(u = x.value) == null || u.showSheet(
|
|
81
82
|
!0,
|
|
82
83
|
"CREDIT",
|
|
83
84
|
e ? await _.readById(e._id) : void 0,
|
|
@@ -171,7 +172,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
171
172
|
icon: "delete",
|
|
172
173
|
"icon-color": "neutral-gray-400",
|
|
173
174
|
variant: "tertiary",
|
|
174
|
-
onClick: (k) => (k.stopPropagation(),
|
|
175
|
+
onClick: (k) => (k.stopPropagation(), b(t))
|
|
175
176
|
}, null, 8, ["onClick"])
|
|
176
177
|
]),
|
|
177
178
|
_: 2
|
|
@@ -207,7 +208,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
207
208
|
})),
|
|
208
209
|
i(oe, {
|
|
209
210
|
ref_key: "sheetRef",
|
|
210
|
-
ref:
|
|
211
|
+
ref: x,
|
|
211
212
|
"onSubmit:modelValue": E
|
|
212
213
|
}, null, 512)
|
|
213
214
|
])
|
|
@@ -216,5 +217,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
216
217
|
}
|
|
217
218
|
});
|
|
218
219
|
export {
|
|
219
|
-
|
|
220
|
+
Le as default
|
|
220
221
|
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent as I, ref as P, resolveComponent as u, openBlock as t, createBlock as y, unref as h, withCtx as d, renderSlot as V, createElementBlock as s, toDisplayString as i, createCommentVNode as S, createVNode as x, normalizeClass as g, createElementVNode as B, Fragment as N, renderList as j } from "vue";
|
|
2
|
+
const q = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "fm-typo-en-body-lg-400 mb-4"
|
|
5
|
+
}, $ = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "fm-typo-en-body-lg-400"
|
|
8
|
+
}, E = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, O = /* @__PURE__ */ I({
|
|
9
|
+
__name: "CustomSelect",
|
|
10
|
+
props: {
|
|
11
|
+
label: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: !1
|
|
14
|
+
},
|
|
15
|
+
placeholder: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: !1
|
|
18
|
+
},
|
|
19
|
+
items: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: !0
|
|
22
|
+
},
|
|
23
|
+
modelValue: {
|
|
24
|
+
type: Object
|
|
25
|
+
},
|
|
26
|
+
zIndex: {
|
|
27
|
+
type: Number
|
|
28
|
+
},
|
|
29
|
+
multiselect: {
|
|
30
|
+
type: Boolean
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["update:model-value"],
|
|
34
|
+
setup(e, { emit: k }) {
|
|
35
|
+
const r = k, m = P(!1);
|
|
36
|
+
return (v, b) => {
|
|
37
|
+
const F = u("FmIcon"), C = u("FmField"), p = u("FmMenuItem"), w = u("FmPopover");
|
|
38
|
+
return t(), y(w, {
|
|
39
|
+
"show-popover": h(m),
|
|
40
|
+
onPopoverChanged: b[0] || (b[0] = (l) => m.value = l),
|
|
41
|
+
"z-index": e.zIndex
|
|
42
|
+
}, {
|
|
43
|
+
"popover-button": d(() => [
|
|
44
|
+
V(v.$slots, "popover-button", {}, () => [
|
|
45
|
+
e.label ? (t(), s("div", q, i(e.label), 1)) : S("", !0),
|
|
46
|
+
x(C, null, {
|
|
47
|
+
append: d(() => [
|
|
48
|
+
V(v.$slots, "append"),
|
|
49
|
+
x(F, {
|
|
50
|
+
name: h(m) ? "expand_less" : "expand_more",
|
|
51
|
+
size: "md",
|
|
52
|
+
color: "black"
|
|
53
|
+
}, null, 8, ["name"])
|
|
54
|
+
]),
|
|
55
|
+
default: d(() => {
|
|
56
|
+
var l;
|
|
57
|
+
return [
|
|
58
|
+
e.multiselect ? (t(), s("div", $, i(e.items.filter((o) => {
|
|
59
|
+
var a;
|
|
60
|
+
return (a = e.modelValue) == null ? void 0 : a.includes(o.value);
|
|
61
|
+
}).map((o) => o.label).join(", ")), 1)) : (t(), s("div", {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: g(["fm-typo-en-body-lg-400", {
|
|
64
|
+
"text-fm-color-typo-secondary": !e.items.find(
|
|
65
|
+
(o) => o.value == e.modelValue
|
|
66
|
+
)
|
|
67
|
+
}])
|
|
68
|
+
}, i(((l = e.items.find((o) => o.value == e.modelValue)) == null ? void 0 : l.label) || e.placeholder), 3))
|
|
69
|
+
];
|
|
70
|
+
}),
|
|
71
|
+
_: 3
|
|
72
|
+
})
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
default: d(() => [
|
|
76
|
+
B("div", E, [
|
|
77
|
+
(t(!0), s(N, null, j(e.items, (l) => {
|
|
78
|
+
var o, a;
|
|
79
|
+
return t(), y(p, {
|
|
80
|
+
class: g(`${e.multiselect ? (o = e.modelValue) != null && o.some((n) => n == l.value) ? "bg-fm-color-system-warning-100" : "" : e.modelValue == l.value}`),
|
|
81
|
+
"has-checkbox": e.multiselect,
|
|
82
|
+
key: l.value,
|
|
83
|
+
"model-value": e.multiselect ? (a = e.modelValue) == null ? void 0 : a.some((n) => n == l.value) : e.modelValue == l.value,
|
|
84
|
+
label: l.label,
|
|
85
|
+
onClick: (n) => {
|
|
86
|
+
var f;
|
|
87
|
+
if (n.stopPropagation(), !e.multiselect)
|
|
88
|
+
m.value = !1, r("update:model-value", l.value);
|
|
89
|
+
else {
|
|
90
|
+
const z = (f = e.modelValue) == null ? void 0 : f.some((c) => c == l.value);
|
|
91
|
+
r(
|
|
92
|
+
"update:model-value",
|
|
93
|
+
z ? (e.modelValue ?? []).filter((c) => c !== l.value) : [...e.modelValue ?? [], l.value]
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, null, 8, ["class", "has-checkbox", "model-value", "label", "onClick"]);
|
|
98
|
+
}), 128))
|
|
99
|
+
])
|
|
100
|
+
]),
|
|
101
|
+
_: 3
|
|
102
|
+
}, 8, ["show-popover", "z-index"]);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
export {
|
|
107
|
+
O as _
|
|
108
|
+
};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { defineComponent as M, ref as V, computed as k, onMounted as R, resolveComponent as s, openBlock as m, createBlock as b, unref as r, withCtx as g, createVNode as y, normalizeClass as _, createCommentVNode as j, createElementVNode as q, toDisplayString as w, createElementBlock as S, Fragment as I, renderList as A, mergeModels as C, useModel as B, watch as L } from "vue";
|
|
2
|
+
import { h as v } from "./moment-BWErdI6_.js";
|
|
3
|
+
const N = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = /* @__PURE__ */ M({
|
|
4
|
+
__name: "FilterChip",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: Array,
|
|
8
|
+
required: !1
|
|
9
|
+
},
|
|
10
|
+
label: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: !1,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
showItemLabel: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
placement: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: !1,
|
|
22
|
+
default: "bottom-end"
|
|
23
|
+
},
|
|
24
|
+
class: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: !1
|
|
27
|
+
},
|
|
28
|
+
disabled: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
required: !1
|
|
31
|
+
},
|
|
32
|
+
items: {
|
|
33
|
+
type: Array,
|
|
34
|
+
required: !0
|
|
35
|
+
},
|
|
36
|
+
icon: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: !1
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ["update:model-value"],
|
|
42
|
+
setup(n, { emit: h }) {
|
|
43
|
+
const a = n, c = h, l = V(!1), e = V({}), d = k(() => {
|
|
44
|
+
if (!e.value || Object.keys(e.value).length == a.items.length)
|
|
45
|
+
return "All";
|
|
46
|
+
{
|
|
47
|
+
const t = Object.keys(e.value).length;
|
|
48
|
+
return `${t > 0 ? t : "None"} selected`;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
function D(t) {
|
|
52
|
+
e.value[t] ? delete e.value[t] : e.value[t] = !0, c("update:model-value", Object.keys(e.value));
|
|
53
|
+
}
|
|
54
|
+
function i() {
|
|
55
|
+
Object.keys(e.value).length > 0 ? e.value = {} : e.value = a.items.reduce((t, o) => (t[o.value] = !0, t), {}), c("update:model-value", Object.keys(e.value));
|
|
56
|
+
}
|
|
57
|
+
return R(() => {
|
|
58
|
+
e.value = a.modelValue.reduce(
|
|
59
|
+
(t, o) => (t[o] = !0, t),
|
|
60
|
+
{}
|
|
61
|
+
), a.modelValue.length == 0;
|
|
62
|
+
}), (t, o) => {
|
|
63
|
+
const p = s("FmIcon"), x = s("FmChip"), F = s("FmMenuItem"), O = s("FmMenu");
|
|
64
|
+
return m(), b(O, {
|
|
65
|
+
placement: n.placement || "bottom-end",
|
|
66
|
+
disabled: n.disabled == !0,
|
|
67
|
+
"model-value": r(l),
|
|
68
|
+
onMenuChanged: o[0] || (o[0] = (u) => l.value = u),
|
|
69
|
+
"close-on-click": !1
|
|
70
|
+
}, {
|
|
71
|
+
"menu-button": g(() => [
|
|
72
|
+
y(x, {
|
|
73
|
+
label: n.label,
|
|
74
|
+
class: _(a.class || "text-fm-color-neutral-gray-400 cursor-pointer")
|
|
75
|
+
}, {
|
|
76
|
+
default: g(() => [
|
|
77
|
+
a.icon ? (m(), b(p, {
|
|
78
|
+
key: 0,
|
|
79
|
+
name: a.icon,
|
|
80
|
+
class: _(a.class),
|
|
81
|
+
outline: "",
|
|
82
|
+
size: "sm"
|
|
83
|
+
}, null, 8, ["name", "class"])) : j("", !0),
|
|
84
|
+
q("div", N, w(a.label) + " " + w(n.showItemLabel ? r(d) : ""), 1),
|
|
85
|
+
y(p, {
|
|
86
|
+
name: r(l) ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
87
|
+
class: _(a.class),
|
|
88
|
+
outline: "",
|
|
89
|
+
size: "sm"
|
|
90
|
+
}, null, 8, ["name", "class"])
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 8, ["label", "class"])
|
|
94
|
+
]),
|
|
95
|
+
default: g(() => [
|
|
96
|
+
y(F, {
|
|
97
|
+
"model-value": Object.keys(r(e)).length === a.items.length,
|
|
98
|
+
label: "All",
|
|
99
|
+
"has-checkbox": !0,
|
|
100
|
+
indeterminate: !0,
|
|
101
|
+
onClick: i
|
|
102
|
+
}, null, 8, ["model-value"]),
|
|
103
|
+
(m(!0), S(I, null, A(a.items ?? [], (u) => (m(), b(F, {
|
|
104
|
+
key: u.value,
|
|
105
|
+
value: u.value,
|
|
106
|
+
label: u.label,
|
|
107
|
+
"has-checkbox": !0,
|
|
108
|
+
"model-value": r(e)[u.value],
|
|
109
|
+
"onUpdate:modelValue": ($) => D(u.value)
|
|
110
|
+
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["placement", "disabled", "model-value"]);
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
}), f = "YYYY-MM-DD", U = /* @__PURE__ */ M({
|
|
117
|
+
__name: "DateRangeChip",
|
|
118
|
+
props: /* @__PURE__ */ C({
|
|
119
|
+
modelValue: {
|
|
120
|
+
type: Object,
|
|
121
|
+
required: !0
|
|
122
|
+
}
|
|
123
|
+
}, {
|
|
124
|
+
dateRange: {
|
|
125
|
+
type: Object,
|
|
126
|
+
default: () => ({
|
|
127
|
+
startDate: v().subtract(7, "day").format(f),
|
|
128
|
+
endDate: v().endOf("day").format(f)
|
|
129
|
+
})
|
|
130
|
+
},
|
|
131
|
+
dateRangeModifiers: {}
|
|
132
|
+
}),
|
|
133
|
+
emits: /* @__PURE__ */ C(["update:model-value"], ["update:dateRange"]),
|
|
134
|
+
setup(n, { emit: h }) {
|
|
135
|
+
const a = n, c = h, l = B(n, "dateRange"), e = k(() => l.value ? `${d.value.startDate ?? "Start"} - ${d.value.endDate ?? "End"}` : "No dates selected."), d = k(() => ({
|
|
136
|
+
startDate: l.value.startDate ? v(l.value.startDate).format(f) : void 0,
|
|
137
|
+
endDate: l.value.endDate ? v(l.value.endDate).format(f) : void 0
|
|
138
|
+
}));
|
|
139
|
+
return R(() => {
|
|
140
|
+
l.value = a.modelValue;
|
|
141
|
+
}), L(
|
|
142
|
+
() => l.value,
|
|
143
|
+
() => {
|
|
144
|
+
c("update:model-value", d.value);
|
|
145
|
+
}
|
|
146
|
+
), (D, i) => {
|
|
147
|
+
const t = s("FmChip"), o = s("FmDateRangePicker");
|
|
148
|
+
return m(), b(o, {
|
|
149
|
+
modelValue: l.value,
|
|
150
|
+
"onUpdate:modelValue": i[0] || (i[0] = (p) => l.value = p),
|
|
151
|
+
"show-predefined-range": ""
|
|
152
|
+
}, {
|
|
153
|
+
"trigger-button": g(() => [
|
|
154
|
+
y(t, {
|
|
155
|
+
label: r(e),
|
|
156
|
+
icon: "calendar_month",
|
|
157
|
+
"right-icon": "keyboard_arrow_down",
|
|
158
|
+
class: "text-fm-color-neutral-gray-400 cursor-pointer"
|
|
159
|
+
}, null, 8, ["label"])
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["modelValue"]);
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
export {
|
|
167
|
+
E as _,
|
|
168
|
+
U as a
|
|
169
|
+
};
|