@feedmepos/mf-connect 0.1.87-prod → 0.1.89-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-B9s-dPCT.js → Analytic-Caz3AQQ2.js} +11 -11
- package/dist/{App-Bu9NaLJ4.js → App-D_q4nHiY.js} +7 -7
- package/dist/{Bin-BUUuvk8j.js → Bin-DURa0qe2.js} +8 -8
- package/dist/{Broadcast-VvFRuN2K.js → Broadcast-ByDjXqap.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CgA2btmM.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BD8mWUzO.js} +7 -7
- package/dist/{Card--OD7WD_W.js → Card-BSSzVrbz.js} +19 -19
- package/dist/{Collections-DemrIeUs.js → Collections-CTwUl8W3.js} +8 -8
- package/dist/{Credit-PFNGAhPj.js → Credit-TgZBmYsM.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyuJDS7x.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DZV3JtDl.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BLjGHozS.js → EffectSheet.vue_vue_type_style_index_0_lang-BwOs5NHt.js} +6 -6
- package/dist/{Experience-BCVsnWYw.js → Experience-DUCO6do6.js} +8 -8
- package/dist/{FileSaver.min-BMBGjHQ2.js → FileSaver.min-BaCfYtPG.js} +1 -1
- package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +52 -0
- package/dist/{Game-B3Gxv2v-.js → Game-DcwQSCjZ.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CyMgFI2D.js → ImageInput.vue_vue_type_script_setup_true_lang-BSMwEFqp.js} +1 -1
- package/dist/{Index-R4XrhBHJ.js → Index-Bp2CKHw3.js} +10 -10
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DjpZnU4y.js → LottieAnimation.vue_vue_type_script_setup_true_lang-WWVHvcOU.js} +1 -1
- package/dist/{MainLayout-Cd8eCkPV.js → MainLayout-Q_0POZ4I.js} +1 -1
- package/dist/{Marketing-BzBEJgtQ.js → Marketing-D52IYXPR.js} +6 -6
- package/dist/{Member-CTFEe38e.js → Member-sxjxhLwQ.js} +12 -12
- package/dist/{MemberList-oL4hRjbk.js → MemberList-vLNFHNRw.js} +27 -27
- package/dist/{MemberTransactions-CUzzrl_F.js → MemberTransactions-BeHeN0Rk.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D3X7vfMo.js → MessageInput.vue_vue_type_script_setup_true_lang-B6cF0EC3.js} +9 -9
- package/dist/{Mission-C93sLLDp.js → Mission-CnJCjBhe.js} +9 -9
- package/dist/{Overview-CANS2hu-.js → Overview-B3jRs_Cg.js} +19 -19
- package/dist/{Point-D3Qk09Kr.js → Point-BldY5wb0.js} +8 -8
- package/dist/{Promotion-Dtd_dDh4.js → Promotion-CsGhqlY0.js} +9 -9
- package/dist/{Queue-bAOANEOe.js → Queue-CLa2pSXF.js} +11 -11
- package/dist/{Record-7Nsigxg9.js → Record-JbbAM6lI.js} +9 -9
- package/dist/{Reward-BCCSo5Ao.js → Reward-wgiBCIV3.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-sVQ2XtOZ.js → RewardGroup.vue_vue_type_script_setup_true_lang-DiNlpy7_.js} +12 -12
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-B3Ylb1vx.js +1889 -0
- package/dist/{Segment-BTtsXpEm.js → Segment-BQiZ51Wi.js} +25 -25
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Etmkc-3s.js → SelectItems.vue_vue_type_script_setup_true_lang-DbXFTjAN.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dc2_TQiF.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Be_kiAB6.js} +13 -13
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DS1MWUOc.js +226 -0
- package/dist/Setting-De1lCG6N.js +1989 -0
- package/dist/{SettingAdvertisements-D9Lhamel.js → SettingAdvertisements-OdDM05s7.js} +12 -12
- package/dist/{Store-VZ8appMT.js → Store-D1Q0wOXk.js} +289 -285
- package/dist/{StoreRewards-egMoq16P.js → StoreRewards-2Gdv7uu4.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bh33_foI.js → StoreTransactions.vue_vue_type_script_setup_true_lang-NtxHf8HF.js} +20 -20
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BKzZIJkt.js +140 -0
- package/dist/{Tier-IQfhLdUW.js → Tier-DOnYGgah.js} +22 -22
- package/dist/{Title-DAhwskG_.js → Title-F4XJw6oN.js} +21 -21
- package/dist/{Transaction-DoYHMx8C.js → Transaction-Ws7kBZUE.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B6SAfZCS.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BZb0EXgi.js} +6 -6
- package/dist/{Voucher-CjUzxTj9.js → Voucher-DX8MKz00.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DjwuuQOy.js → VoucherEditor.vue_vue_type_script_setup_true_lang-tUNn1vRE.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-905euk7D.js → ZodTextField.vue_vue_type_script_setup_true_lang-BvgIZlIh.js} +2 -2
- package/dist/{app-BQKaKSTN.js → app-C-nC9SMv.js} +368 -83
- package/dist/app.js +1 -1
- package/dist/{business-D-Y0xqsG.js → business-CrQ_qouH.js} +1 -1
- package/dist/{campaign-C4FU4mF-.js → campaign-CBRSag11.js} +8 -8
- package/dist/{campaign-BO_GMK22.js → campaign-shm1Nb7g.js} +1 -1
- package/dist/{campaign.enum-ME5t80SA.js → campaign.enum-C-p5_XEd.js} +1 -1
- package/dist/{campaign.fn-CpSdTR_Z.js → campaign.fn-BGzZfg1o.js} +185 -185
- package/dist/{collectible.enum-BJNC4deW.js → collectible.enum-DxOoBouZ.js} +1 -1
- package/dist/{collection.fn-BclOhIak.js → collection.fn-BKmv2KVW.js} +2 -2
- package/dist/{dto-CeKAIN4F.js → dto-BRQj35uX.js} +4 -4
- package/dist/{effect-C5coTG7j.js → effect-Bbc7QO26.js} +1 -1
- package/dist/{email-addresses-DdpDo4U3.js → email-addresses-CdmKczY8.js} +2 -2
- package/dist/{export-Cd7RMmWF.js → export-xWupGZRl.js} +3 -3
- package/dist/{helper-8QHPhfxd.js → helper-C_t7u0sc.js} +1 -1
- package/dist/{index-D8LAuyy5.js → index-BHwWZLKa.js} +2 -2
- package/dist/{index-B2UGAU9v.js → index-BaGjDOR2.js} +1 -1
- package/dist/{index-DlwlvbrO.js → index-BxosLsfW.js} +1 -1
- package/dist/{index-e5r6FpSJ.js → index-C6PeL89d.js} +3 -3
- package/dist/{index-CAP90xO7.js → index-CLvFXL_E.js} +4 -4
- package/dist/{index-CdgAq0Pz.js → index-ClEGMTrv.js} +1 -1
- package/dist/{index-M5KI7NIT.js → index-DAhj82tf.js} +1 -1
- package/dist/{index-D_b2gjAX.js → index-DDQaEXt7.js} +1 -1
- package/dist/{index-BJne3mAB.js → index-DW7nPyed.js} +6 -6
- package/dist/{index-Rb7s8Lqk.js → index-DaCQrz9t.js} +3 -3
- package/dist/{index-Ch_6nXW4.js → index-REoHVOcy.js} +1 -1
- package/dist/{index-BJuTIPNg.js → index-RsNRLaWL.js} +1 -1
- package/dist/{index-Csxi8Zcu.js → index-lZq2A3X2.js} +3 -3
- package/dist/{index.esm2017-D6CILdWW.js → index.esm2017-DIVK9KD2.js} +1 -1
- package/dist/{loading-tl9p27VA.js → loading-xptL2Ny2.js} +1 -1
- package/dist/{lodash-fxLQlj7m.js → lodash-88xjswCi.js} +1 -1
- package/dist/{membership-CBpNdC9y.js → membership-eoLCZt_p.js} +3 -3
- package/dist/{money-CNRljtC1.js → money-DcsDa1nm.js} +1 -1
- package/dist/{number-DmTfN_5Y.js → number-BkGWCSrD.js} +1 -1
- package/dist/{objectid-BuanIDxD.js → objectid-gUqB9tj7.js} +6 -6
- package/dist/{plugins-DvsCeess.js → plugins-DoTCd9nY.js} +3 -3
- package/dist/{reward-CW22wI3L.js → reward-Culc3-Rv.js} +1 -1
- package/dist/{rule-C_3XR2Zd.js → rule-DUDjRs8M.js} +3 -3
- package/dist/{rule-builder-DrwCpDKV.js → rule-builder-CkZtoez-.js} +1 -1
- package/dist/{template-CBaQ8LLp.js → template-CxhdtuLf.js} +7 -7
- package/dist/{timezone-DSEM5B5J.js → timezone-CdsdekR2.js} +2 -2
- package/dist/{trigger-3QCLi7tq.js → trigger-CFXIiuLd.js} +5 -5
- package/dist/usePagination-BSeGmTq6.js +177 -0
- package/dist/{user-CY_UexCt.js → user-C7hrMSvV.js} +1 -1
- package/dist/{vue-i18n-DGcpLn5c.js → vue-i18n-BdGyU2Nr.js} +111 -111
- package/dist/{xlsx-rSwsIehi.js → xlsx-BN2KFkI2.js} +1 -1
- package/dist/{zod-BD5VYWIO.js → zod-DvUTBth7.js} +1 -1
- package/package.json +1 -1
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-C2ZrTL5p.js +0 -1767
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DPDq-Juz.js +0 -147
- package/dist/Setting-D5YbEHxm.js +0 -1982
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-qWbACUbe.js +0 -139
- package/dist/usePagination-CZ7RnfzE.js +0 -223
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { defineComponent as ee, ref as z, resolveComponent as S, openBlock as m, createElementBlock as C, createElementVNode as l, createVNode as r, unref as t, createCommentVNode as le, withCtx as E, Fragment as O, renderList as ie, createBlock as J, toDisplayString as $, normalizeClass as re, onMounted as Se, computed as ce, isRef as Ie, createSlots as Me, h as Y, onBeforeMount as Te } from "vue";
|
|
2
2
|
import { _ as Ee } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { n as Ae, p as Re } from "./plugins-
|
|
4
|
-
import { u as De } from "./loading-
|
|
3
|
+
import { n as Ae, p as Re } from "./plugins-DoTCd9nY.js";
|
|
4
|
+
import { u as De } from "./loading-xptL2Ny2.js";
|
|
5
5
|
import { FmButtonVariant as ae, useSnackbar as $e, components as X } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as be, _ as we } from "./usePagination-
|
|
7
|
-
import { u as Fe } from "./vue-i18n-
|
|
8
|
-
import { i as Pe, j as D, c as fe } from "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import { F as ye, z as Ne } from "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import { u as ne, w as he } from "./xlsx-
|
|
15
|
-
import { e as Be, M as Ve } from "./email-addresses-
|
|
16
|
-
import { Z as Ye } from "./zod-
|
|
6
|
+
import { u as be, _ as we } from "./usePagination-BSeGmTq6.js";
|
|
7
|
+
import { u as Fe } from "./vue-i18n-BdGyU2Nr.js";
|
|
8
|
+
import { i as Pe, j as D, c as fe } from "./index-CLvFXL_E.js";
|
|
9
|
+
import "./index-lZq2A3X2.js";
|
|
10
|
+
import { F as ye, z as Ne } from "./index-DaCQrz9t.js";
|
|
11
|
+
import "./index-DW7nPyed.js";
|
|
12
|
+
import "./index-ClEGMTrv.js";
|
|
13
|
+
import "./index-C6PeL89d.js";
|
|
14
|
+
import { u as ne, w as he } from "./xlsx-BN2KFkI2.js";
|
|
15
|
+
import { e as Be, M as Ve } from "./email-addresses-CdmKczY8.js";
|
|
16
|
+
import { Z as Ye } from "./zod-DvUTBth7.js";
|
|
17
17
|
import { u as Ue } from "./app-wDQR6dpb.js";
|
|
18
|
-
import { R as ge } from "./rule-builder-
|
|
19
|
-
import { _ as Le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { _ as ze } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { u as Oe, v as je, w as qe } from "./index.esm2017-
|
|
22
|
-
import { F as He } from "./FileSaver.min-
|
|
18
|
+
import { R as ge } from "./rule-builder-CkZtoez-.js";
|
|
19
|
+
import { _ as Le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BvgIZlIh.js";
|
|
20
|
+
import { _ as ze } from "./RuleGroup.vue_vue_type_script_setup_true_lang-B3Ylb1vx.js";
|
|
21
|
+
import { u as Oe, v as je, w as qe } from "./index.esm2017-DIVK9KD2.js";
|
|
22
|
+
import { F as He } from "./FileSaver.min-BaCfYtPG.js";
|
|
23
23
|
import { h as G } from "./moment-D7p2TMB-.js";
|
|
24
|
-
import { s as N, u as Ge } from "./membership-
|
|
24
|
+
import { s as N, u as Ge } from "./membership-eoLCZt_p.js";
|
|
25
25
|
import { o as Je } from "./objectId-dwaoBfJX.js";
|
|
26
|
-
import { u as ke } from "./business-
|
|
27
|
-
import { f as Qe } from "./number-
|
|
28
|
-
import { t as We } from "./money-
|
|
29
|
-
import "./index-
|
|
26
|
+
import { u as ke } from "./business-CrQ_qouH.js";
|
|
27
|
+
import { f as Qe } from "./number-BkGWCSrD.js";
|
|
28
|
+
import { t as We } from "./money-DcsDa1nm.js";
|
|
29
|
+
import "./index-BxosLsfW.js";
|
|
30
30
|
import { useRouter as Ke } from "vue-router";
|
|
31
|
-
import { m as ve } from "./index-
|
|
32
|
-
import { R as _e } from "./app-
|
|
31
|
+
import { m as ve } from "./index-DDQaEXt7.js";
|
|
32
|
+
import { R as _e } from "./app-C-nC9SMv.js";
|
|
33
33
|
const Ze = Pe.extend({
|
|
34
34
|
_id: ye.optional(),
|
|
35
35
|
business: ye.optional(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as N, computed as f, ref as V, onMounted as H, resolveComponent as _, openBlock as c, createElementBlock as u, createVNode as i, withCtx as S, createElementVNode as p, toDisplayString as q, normalizeClass as A, Fragment as x, renderList as j, createCommentVNode as B } from "vue";
|
|
2
|
-
import { U as D } from "./app-
|
|
3
|
-
import "./index-
|
|
2
|
+
import { U as D } from "./app-C-nC9SMv.js";
|
|
3
|
+
import "./index-DaCQrz9t.js";
|
|
4
4
|
import { c as E } from "./object-qECH92oz.js";
|
|
5
5
|
const M = { class: "flex flex-col flex-nowrap" }, T = { class: "flex gap-16 items-center w-full" }, $ = { class: "flex grow items-center" }, z = { class: "grow text-fm-color-typo-secondary" }, K = { key: 0 }, J = { class: "px-16" }, X = /* @__PURE__ */ N({
|
|
6
6
|
__name: "SelectItems",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as L, ref as p, computed as C, onMounted as P, resolveComponent as i, openBlock as $, createBlock as D, unref as e, isRef as H, withCtx as S, createElementVNode as v, createVNode as c, toDisplayString as w } from "vue";
|
|
2
|
-
import { u as O } from "./loading-
|
|
3
|
-
import { p as Z } from "./plugins-
|
|
2
|
+
import { u as O } from "./loading-xptL2Ny2.js";
|
|
3
|
+
import { p as Z } from "./plugins-DoTCd9nY.js";
|
|
4
4
|
import { u as q } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { m as z } from "./index-
|
|
6
|
-
import { b as G } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import { Z as d } from "./zod-
|
|
13
|
-
import { z as Y } from "./app-
|
|
14
|
-
import { u as j } from "./vue-i18n-
|
|
15
|
-
import { c as J } from "./campaign-
|
|
5
|
+
import { m as z } from "./index-DDQaEXt7.js";
|
|
6
|
+
import { b as G } from "./index-CLvFXL_E.js";
|
|
7
|
+
import "./index-lZq2A3X2.js";
|
|
8
|
+
import "./index-DaCQrz9t.js";
|
|
9
|
+
import "./index-DW7nPyed.js";
|
|
10
|
+
import "./index-ClEGMTrv.js";
|
|
11
|
+
import "./index-C6PeL89d.js";
|
|
12
|
+
import { Z as d } from "./zod-DvUTBth7.js";
|
|
13
|
+
import { z as Y } from "./app-C-nC9SMv.js";
|
|
14
|
+
import { u as j } from "./vue-i18n-BdGyU2Nr.js";
|
|
15
|
+
import { c as J } from "./campaign-shm1Nb7g.js";
|
|
16
16
|
const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-400" }, W = { class: "flex items-center gap-8" }, he = /* @__PURE__ */ L({
|
|
17
17
|
__name: "SendCollectionSheet",
|
|
18
18
|
emits: ["success"],
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { defineComponent as O, ref as p, computed as g, watch as T, onMounted as q, resolveComponent as x, openBlock as I, createBlock as G, unref as t, isRef as k, withCtx as z, createElementVNode as n, createVNode as s, toDisplayString as f, createElementBlock as H, createCommentVNode as K } from "vue";
|
|
2
|
+
import { J as Q } from "./JsonViewer-v8_C7l5N.js";
|
|
3
|
+
import { _ as F } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
|
|
4
|
+
import { u as W } from "./loading-xptL2Ny2.js";
|
|
5
|
+
import { u as X } from "./app-wDQR6dpb.js";
|
|
6
|
+
import { l as Y } from "./lodash-88xjswCi.js";
|
|
7
|
+
import { m as Z } from "./index-DDQaEXt7.js";
|
|
8
|
+
import { c as ee } from "./campaign-shm1Nb7g.js";
|
|
9
|
+
const ae = { class: "space-y-16" }, te = { class: "fm-typo-en-body-md-600" }, oe = { class: "flex items-center justify-end" }, le = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "basis-72 bg-white flex items-center justify-between px-24 pt-6 border-t border-fm-color-border"
|
|
12
|
+
}, ne = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, se = { class: "flex gap-8 items-center" }, ie = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, re = { class: "flex gap-8 items-center" }, ue = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, de = { class: "flex gap-8" }, ce = { class: "flex items-center gap-8" }, Se = /* @__PURE__ */ O({
|
|
13
|
+
__name: "SendVoucherSheet",
|
|
14
|
+
emits: ["success"],
|
|
15
|
+
setup(me, { expose: M, emit: R }) {
|
|
16
|
+
const { minor: j } = W, h = p(""), r = p({}), N = R, m = p(!1), i = p([]);
|
|
17
|
+
function P(o) {
|
|
18
|
+
m.value = !0, h.value = o.campaignId, i.value = [];
|
|
19
|
+
}
|
|
20
|
+
function S() {
|
|
21
|
+
m.value = !1;
|
|
22
|
+
}
|
|
23
|
+
const B = [
|
|
24
|
+
{
|
|
25
|
+
header: "Name",
|
|
26
|
+
accessorFn: (o) => o.name || "No Profile"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
header: "Phone",
|
|
30
|
+
accessorFn: (o) => o.phoneNumber || "-"
|
|
31
|
+
}
|
|
32
|
+
], e = p({
|
|
33
|
+
searchValue: "",
|
|
34
|
+
pageSize: 10,
|
|
35
|
+
pageCount: 0,
|
|
36
|
+
pageIndex: 0,
|
|
37
|
+
totalRows: 0,
|
|
38
|
+
isLoading: !1
|
|
39
|
+
}), u = p([]), L = g(() => e.value.pageIndex + 1), _ = g(
|
|
40
|
+
() => e.value.pageIndex * e.value.pageSize
|
|
41
|
+
), U = g(
|
|
42
|
+
() => Math.min(
|
|
43
|
+
_.value + e.value.pageSize,
|
|
44
|
+
e.value.totalRows
|
|
45
|
+
)
|
|
46
|
+
), w = g(() => e.value.pageIndex > 0), C = g(
|
|
47
|
+
() => e.value.pageIndex < e.value.pageCount - 1
|
|
48
|
+
), b = async (o) => {
|
|
49
|
+
e.value.pageSize = o.pageSize, e.value.pageIndex = o.pageIndex, e.value.isLoading = !0, u.value = [];
|
|
50
|
+
try {
|
|
51
|
+
const a = await Z.read({
|
|
52
|
+
limit: o.pageSize,
|
|
53
|
+
skip: o.pageIndex,
|
|
54
|
+
sortBy: "_id",
|
|
55
|
+
search: e.value.searchValue,
|
|
56
|
+
descending: !1
|
|
57
|
+
});
|
|
58
|
+
u.value = a.resources, e.value.totalRows = a.meta.totalResources ?? 0, e.value.pageCount = a.meta.totalPages ?? 0, r.value = {}, i.value.forEach((d) => {
|
|
59
|
+
const y = u.value.findIndex((c) => c._id == d);
|
|
60
|
+
y > -1 && (r.value[y] = !0);
|
|
61
|
+
});
|
|
62
|
+
} finally {
|
|
63
|
+
e.value.isLoading = !1;
|
|
64
|
+
}
|
|
65
|
+
}, $ = Y.debounce(async () => {
|
|
66
|
+
await b({ pageSize: e.value.pageSize, pageIndex: 0 });
|
|
67
|
+
}, 500), v = async (o) => {
|
|
68
|
+
await b({ pageSize: e.value.pageSize, pageIndex: o });
|
|
69
|
+
}, A = async (o) => {
|
|
70
|
+
await b({ pageSize: o, pageIndex: 0 });
|
|
71
|
+
};
|
|
72
|
+
function E() {
|
|
73
|
+
u.value.length > 0 && (i.value = i.value.filter(
|
|
74
|
+
(o) => !u.value.some((a) => a._id === o) || // Keep if not in current page
|
|
75
|
+
Object.entries(r.value).some(
|
|
76
|
+
([a, d]) => d && u.value[a]._id === o
|
|
77
|
+
// Keep if selected in current page
|
|
78
|
+
)
|
|
79
|
+
));
|
|
80
|
+
for (const [o, a] of Object.entries(r.value))
|
|
81
|
+
if (a) {
|
|
82
|
+
const d = u.value[o]._id;
|
|
83
|
+
i.value.includes(d) || i.value.push(d);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async function D(o) {
|
|
87
|
+
i.value.length < 1 || await j(
|
|
88
|
+
async () => {
|
|
89
|
+
await ee.sendCollection(h.value, {
|
|
90
|
+
memberId: i.value
|
|
91
|
+
}), await N("success"), S();
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
message: "Sending claim(s)",
|
|
95
|
+
successMessage: "Claim(s) created"
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
return T(r, E, { deep: !0 }), M({
|
|
100
|
+
showSheet: P,
|
|
101
|
+
hideSheet: S
|
|
102
|
+
}), q(async () => {
|
|
103
|
+
await b(e.value);
|
|
104
|
+
}), (o, a) => {
|
|
105
|
+
const d = x("FmSearch"), y = x("FmTable"), c = x("FmButton"), J = x("FmSideSheet");
|
|
106
|
+
return I(), G(J, {
|
|
107
|
+
"max-width": 560,
|
|
108
|
+
"dismiss-away": !0,
|
|
109
|
+
header: "Send voucher to",
|
|
110
|
+
modelValue: t(m),
|
|
111
|
+
"onUpdate:modelValue": [
|
|
112
|
+
a[8] || (a[8] = (l) => k(m) ? m.value = l : null),
|
|
113
|
+
a[9] || (a[9] = (l) => m.value = l)
|
|
114
|
+
]
|
|
115
|
+
}, {
|
|
116
|
+
"side-sheet-footer": z(() => [
|
|
117
|
+
n("div", ce, [
|
|
118
|
+
s(c, {
|
|
119
|
+
label: "Send",
|
|
120
|
+
loading: t(X)().isLoading,
|
|
121
|
+
onClick: D
|
|
122
|
+
}, null, 8, ["loading"]),
|
|
123
|
+
s(c, {
|
|
124
|
+
label: "Cancel",
|
|
125
|
+
type: "button",
|
|
126
|
+
variant: "tertiary",
|
|
127
|
+
onClick: a[7] || (a[7] = (l) => m.value = !1)
|
|
128
|
+
})
|
|
129
|
+
])
|
|
130
|
+
]),
|
|
131
|
+
default: z(() => [
|
|
132
|
+
s(Q, { json: t(i) }, null, 8, ["json"]),
|
|
133
|
+
n("div", ae, [
|
|
134
|
+
n("div", te, f(t(i).length) + " members selected ", 1),
|
|
135
|
+
n("div", oe, [
|
|
136
|
+
s(d, {
|
|
137
|
+
class: "mt-4",
|
|
138
|
+
modelValue: t(e).searchValue,
|
|
139
|
+
"onUpdate:modelValue": [
|
|
140
|
+
a[0] || (a[0] = (l) => t(e).searchValue = l),
|
|
141
|
+
t($)
|
|
142
|
+
],
|
|
143
|
+
placeholder: "Search Member",
|
|
144
|
+
collapsible: ""
|
|
145
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
146
|
+
]),
|
|
147
|
+
s(y, {
|
|
148
|
+
modelValue: t(r),
|
|
149
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => k(r) ? r.value = l : null),
|
|
150
|
+
selection: "multiple",
|
|
151
|
+
loading: t(e).isLoading,
|
|
152
|
+
"row-data": t(u),
|
|
153
|
+
"column-defs": B,
|
|
154
|
+
"page-size": t(e).pageSize,
|
|
155
|
+
"page-count": t(e).pageCount,
|
|
156
|
+
"fetch-fn": void 0,
|
|
157
|
+
"hide-footer": ""
|
|
158
|
+
}, null, 8, ["modelValue", "loading", "row-data", "page-size", "page-count"]),
|
|
159
|
+
t(e).totalRows > t(e).pageSize ? (I(), H("div", le, [
|
|
160
|
+
n("div", ne, [
|
|
161
|
+
n("div", se, [
|
|
162
|
+
a[10] || (a[10] = n("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
|
|
163
|
+
s(F, {
|
|
164
|
+
items: [
|
|
165
|
+
{ label: "10", value: 10 },
|
|
166
|
+
{ label: "20", value: 20 },
|
|
167
|
+
{ label: "50", value: 50 }
|
|
168
|
+
],
|
|
169
|
+
value: t(e).pageSize,
|
|
170
|
+
"onUpdate:modelValue": A
|
|
171
|
+
}, null, 8, ["value"])
|
|
172
|
+
]),
|
|
173
|
+
n("span", ie, f(t(_) + 1) + " - " + f(t(U)) + " of " + f(t(e).totalRows) + " items ", 1)
|
|
174
|
+
]),
|
|
175
|
+
n("div", re, [
|
|
176
|
+
s(F, {
|
|
177
|
+
items: Array.from(Array(t(e).pageCount), (l, V) => ({
|
|
178
|
+
label: (V + 1).toString(),
|
|
179
|
+
value: V + 1
|
|
180
|
+
})),
|
|
181
|
+
value: t(L),
|
|
182
|
+
"onUpdate:modelValue": a[2] || (a[2] = (l) => v(l - 1))
|
|
183
|
+
}, null, 8, ["items", "value"]),
|
|
184
|
+
n("span", ue, " of " + f(t(e).pageCount) + " pages ", 1),
|
|
185
|
+
n("div", de, [
|
|
186
|
+
s(c, {
|
|
187
|
+
disabled: !t(w),
|
|
188
|
+
icon: "first_page",
|
|
189
|
+
"icon-color": "neutral-black",
|
|
190
|
+
variant: "tertiary",
|
|
191
|
+
onClick: a[3] || (a[3] = (l) => v(0))
|
|
192
|
+
}, null, 8, ["disabled"]),
|
|
193
|
+
s(c, {
|
|
194
|
+
disabled: !t(w),
|
|
195
|
+
icon: "chevron_left",
|
|
196
|
+
"icon-color": "neutral-black",
|
|
197
|
+
variant: "tertiary",
|
|
198
|
+
onClick: a[4] || (a[4] = (l) => v(t(e).pageIndex - 1))
|
|
199
|
+
}, null, 8, ["disabled"]),
|
|
200
|
+
s(c, {
|
|
201
|
+
disabled: !t(C),
|
|
202
|
+
icon: "chevron_right",
|
|
203
|
+
"icon-color": "neutral-black",
|
|
204
|
+
variant: "tertiary",
|
|
205
|
+
onClick: a[5] || (a[5] = (l) => v(t(e).pageIndex + 1))
|
|
206
|
+
}, null, 8, ["disabled"]),
|
|
207
|
+
s(c, {
|
|
208
|
+
disabled: !t(C),
|
|
209
|
+
icon: "last_page",
|
|
210
|
+
"icon-color": "neutral-black",
|
|
211
|
+
variant: "tertiary",
|
|
212
|
+
onClick: a[6] || (a[6] = (l) => v(t(e).pageCount - 1))
|
|
213
|
+
}, null, 8, ["disabled"])
|
|
214
|
+
])
|
|
215
|
+
])
|
|
216
|
+
])) : K("", !0)
|
|
217
|
+
])
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["modelValue"]);
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
export {
|
|
225
|
+
Se as _
|
|
226
|
+
};
|