@feedmepos/mf-connect 0.1.0-beta.46 → 0.1.0-beta.48
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-FUBu9S3z.js → Analytic-BiWBlCjy.js} +18 -17
- package/dist/{App-BTwI4KZc.js → App-D0EdXXhP.js} +10 -6
- package/dist/AuditLogs-B2Nld9Po.js +1856 -0
- package/dist/{Broadcast--MGo_2gm.js → Broadcast-D4PumMOO.js} +36 -35
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C32eEMKS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D5IhdwKy.js} +6 -6
- package/dist/{Card-_lhnaxgB.js → Card-B8r77l_c.js} +23 -21
- package/dist/{Collections-0tY22bQ1.js → Collections-DkNX0ENB.js} +11 -9
- package/dist/{Credit-C8TFWJfJ.js → Credit-us-DaVK_.js} +11 -10
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-CLFeMi0j.js +169 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CAmn-C0f.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DuE9a4wa.js} +28 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BbWefC0X.js → EffectSheet.vue_vue_type_style_index_0_lang-DSPI2sPl.js} +6 -6
- package/dist/{Experience-B2Cs3kV_.js → Experience-B5xBVt9X.js} +26 -25
- package/dist/{Game-BjMEeTcC.js → Game-DZQngWps.js} +14 -13
- package/dist/{Index-CXenbxDR.js → Index-D6G1bPFk.js} +14 -13
- package/dist/{Marketing-sjviUACc.js → Marketing-BgVsJdkB.js} +8 -7
- package/dist/{Member-DhCu_i2m.js → Member-Cm0Dh1__.js} +4 -4
- package/dist/MemberList--liSD7XA.js +1598 -0
- package/dist/{MemberTransactions-JdAgL9A7.js → MemberTransactions-BBbIbY5M.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CWPPhyDI.js → MessageInput.vue_vue_type_script_setup_true_lang-B41VEr7k.js} +2 -2
- package/dist/{Mission-D96V1W9h.js → Mission-BjwPhMvr.js} +14 -13
- package/dist/{Overview-CtFzt4nG.js → Overview-ChHHbxMZ.js} +19 -18
- package/dist/{Point-DKS6TqWo.js → Point-DJOghScx.js} +11 -10
- package/dist/{Promotion-BNCoCICl.js → Promotion-CfaXu_lI.js} +16 -15
- package/dist/{Record-CWFW3doO.js → Record-Jgfc7mJg.js} +18 -16
- package/dist/{Reward--6seDEv8.js → Reward-AOM8CBLj.js} +33 -32
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dmcr0wNX.js → RewardGroup.vue_vue_type_script_setup_true_lang-C8FwIGwQ.js} +13 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BQos5vSk.js → RuleGroup.vue_vue_type_script_setup_true_lang-BKZdKB1T.js} +12 -12
- package/dist/{Segment-Cr89cfvW.js → Segment-duLNRLE3.js} +19 -17
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-C68x3EHV.js → SelectItems.vue_vue_type_script_setup_true_lang-DjdIb54T.js} +2 -2
- package/dist/{Setting-OPJw2EOa.js → Setting-O8ZQpi95.js} +131 -130
- package/dist/{Store-Chjs-gWh.js → Store-Dhec11BC.js} +24 -23
- package/dist/{StoreRewards-CaY3y82T.js → StoreRewards-B4wePYvY.js} +33 -32
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DbD2wugh.js +939 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Cs6aAcMz.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BNUxrEoR.js} +1 -1
- package/dist/{Tier-Dwf5hrcP.js → Tier-DZpvxsfn.js} +21 -20
- package/dist/{Title-Czj0Sokt.js → Title-3QqFZn_-.js} +28 -27
- package/dist/{Transaction-Do4zlaUZ.js → Transaction-B5iZ4MUu.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D0SOq2Cy.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CQQ5HcAZ.js} +6 -6
- package/dist/{Voucher-DJ1JeAEz.js → Voucher-B-q9fB-f.js} +14 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-kgipRx1E.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DL0eVHb3.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DK1RrLmn.js → ZodTextField.vue_vue_type_script_setup_true_lang-Deg2sdGO.js} +1 -1
- package/dist/{app-DDx8sR9s.js → app-3eroteiC.js} +1 -1
- package/dist/{app-Do17XyvO.js → app-BCsc9J-D.js} +121 -57
- package/dist/app.js +1 -1
- package/dist/{business-GwBNossl.js → business-Cp6db6DR.js} +1 -1
- package/dist/{campaign-G12OoMgD.js → campaign-BOGJy7S9.js} +2 -2
- package/dist/{campaign-4wHri0ck.js → campaign-D2yrg-Er.js} +9 -9
- package/dist/{campaign.enum-CWktQS4a.js → campaign.enum-CwF2Ajv3.js} +1 -1
- package/dist/{campaign.fn-C6hLLBEd.js → campaign.fn-Bp-ZzEJT.js} +41 -41
- package/dist/{collectible.enum-C0cNljB-.js → collectible.enum-B-71aP1r.js} +1 -1
- package/dist/{collection.fn-DXmHST47.js → collection.fn-DjSa_nTr.js} +2 -2
- package/dist/{dto-g42KsPJu.js → dto-LDNtfFmE.js} +4 -4
- package/dist/{effect-B_WAysaq.js → effect-BmYqIMsW.js} +1 -1
- package/dist/{email-addresses-DNx5SUjl.js → email-addresses-Di8hCXyI.js} +1 -1
- package/dist/{export-BVs2zCzA.js → export-DycH87nL.js} +5 -5
- package/dist/{helper-BYXE9o8R.js → helper-DFhx_pcj.js} +1 -1
- package/dist/{index-DrskJU4Z.js → index-BCbMOBB8.js} +101 -56
- package/dist/{index-BhDVH8vT.js → index-CpKBy2gq.js} +1 -1
- package/dist/{index-De9k8fnO.js → index-D0RI_RQG.js} +16 -5
- package/dist/{index-7Ua3jDRI.js → index-DHA2afdR.js} +1 -1
- package/dist/{index-BYKVuJLF.js → index-D_JGs1_m.js} +1 -1
- package/dist/{index-DQE4ktDO.js → index-DmF2UyFL.js} +1 -1
- package/dist/{index-D_Z1FCNe.js → index-Dvwi4GLz.js} +2 -2
- package/dist/{index-C7D5DHJq.js → index-Dw6vcUmt.js} +1 -1
- package/dist/{index-jNeR4MKb.js → index-EjX7PzTR.js} +3 -3
- package/dist/{index-BoQMvGk2.js → index-JDxeUUHy.js} +5 -5
- package/dist/{index-D1Ss53VQ.js → index-gsJpOkBA.js} +1 -1
- package/dist/{index-2BYEkY-x.js → index-zGjFnt2i.js} +4 -4
- package/dist/{index.esm2017-6PxeTVni.js → index.esm2017-Bx1gO_wH.js} +33 -33
- package/dist/loading-CkL5IkHw.js +100 -0
- package/dist/{membership-B8Ts8Dgq.js → membership-Bsr6Cvle.js} +3 -3
- package/dist/{money-CajYT1U_.js → money-DUBsxwt7.js} +1 -1
- package/dist/{number-DnQECWbC.js → number-D7RIsT0N.js} +1 -1
- package/dist/objectid-B-fcFN1Q.js +145 -0
- package/dist/{loading-CpdyLYxO.js → plugins-Dr9LdRza.js} +3764 -3860
- package/dist/{reward-BeIbbggX.js → reward-BkXDV7ND.js} +1 -1
- package/dist/{rule-BkWJ0Pz8.js → rule-Bq8z_m5L.js} +3 -3
- package/dist/{rule-builder-BKSDbKLq.js → rule-builder-BpUdiP64.js} +1 -1
- package/dist/{template-COxQB5fi.js → template-CKiPP35H.js} +4 -4
- package/dist/{trigger-WQCb5b4r.js → trigger-DCJmo6Nw.js} +4 -4
- package/dist/usePagination-BeF5K3M7.js +223 -0
- package/dist/{user-D-irYIrP.js → user-CjCy_BYx.js} +1 -1
- package/dist/{vue-i18n-BYw4xlLJ.js → vue-i18n-36uLpBY2.js} +326 -326
- package/dist/{usePagination-C4qRAmFC.js → xlsx-C7gDU4gE.js} +2962 -3183
- package/package.json +2 -1
- package/dist/MemberList-BgqTRkpc.js +0 -1554
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BLhLIubz.js +0 -1099
- package/dist/objectid-B7lDV6cM.js +0 -145
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { defineComponent as ee, computed as E, resolveComponent as h, openBlock as v, createBlock as I, withCtx as T, createElementVNode as _, createElementBlock as D, createVNode as r, createCommentVNode as A, toDisplayString as j, unref as e, Fragment as J, renderList as re, ref as R, isRef as oe, reactive as He, onMounted as fe, watch as we, toRaw as qe, createTextVNode as de, h as Ke } from "vue";
|
|
2
2
|
import { _ as We } from "./tier-BJDhpH6X.js";
|
|
3
3
|
import { useDialog as Ae, useDialogChild as Me, components as ze } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as B, e as Ce, S as Ye } from "./index-
|
|
5
|
-
import {
|
|
6
|
-
import { u as $e, C as me } from "./membership-
|
|
7
|
-
import { a as
|
|
4
|
+
import { c as B, e as Ce, S as Ye } from "./index-EjX7PzTR.js";
|
|
5
|
+
import { u as Ee } from "./loading-CkL5IkHw.js";
|
|
6
|
+
import { u as $e, C as me } from "./membership-Bsr6Cvle.js";
|
|
7
|
+
import { a as Je, c as Ne } from "./object-qECH92oz.js";
|
|
8
8
|
import { _ as ue } from "./lodash-B5I3zXaY.js";
|
|
9
|
-
import {
|
|
9
|
+
import { a as se, c as Ge, p as he, n as Xe, f as Fe } from "./plugins-Dr9LdRza.js";
|
|
10
|
+
import { u as be } from "./vue-i18n-36uLpBY2.js";
|
|
10
11
|
import { Z, g as G, a as X } from "./zod-Bg2FbC-D.js";
|
|
11
|
-
import { z as Q, R as Ze } from "./app-
|
|
12
|
-
import { s as Qe, t as et, u as tt, v as Oe, w as nt } from "./index-
|
|
12
|
+
import { z as Q, R as Ze } from "./app-BCsc9J-D.js";
|
|
13
|
+
import { s as Qe, t as et, u as tt, v as Oe, w as nt } from "./index-zGjFnt2i.js";
|
|
13
14
|
import { u as _e } from "./app-wDQR6dpb.js";
|
|
14
|
-
import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Deg2sdGO.js";
|
|
15
16
|
import { J as ke } from "./JsonViewer-v8_C7l5N.js";
|
|
16
|
-
import { _ as ot } from "./index-
|
|
17
|
+
import { _ as ot } from "./index-Dvwi4GLz.js";
|
|
17
18
|
import { _ as lt } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
|
|
18
19
|
import { _ as at } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
19
|
-
import { z as st, a as rt } from "./money-
|
|
20
|
-
import { F as it } from "./number-
|
|
21
|
-
import { t as dt } from "./helper-
|
|
22
|
-
import "./index-
|
|
23
|
-
import "./index-
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./index-
|
|
26
|
-
import { m as ut } from "./index-
|
|
27
|
-
import { m as xe } from "./index-
|
|
20
|
+
import { z as st, a as rt } from "./money-DUBsxwt7.js";
|
|
21
|
+
import { F as it } from "./number-D7RIsT0N.js";
|
|
22
|
+
import { t as dt } from "./helper-DFhx_pcj.js";
|
|
23
|
+
import "./index-gsJpOkBA.js";
|
|
24
|
+
import "./index-BCbMOBB8.js";
|
|
25
|
+
import "./index-DmF2UyFL.js";
|
|
26
|
+
import "./index-JDxeUUHy.js";
|
|
27
|
+
import { m as ut } from "./index-DHA2afdR.js";
|
|
28
|
+
import { m as xe } from "./index-D0RI_RQG.js";
|
|
28
29
|
import { useRouter as ct } from "vue-router";
|
|
29
30
|
function je(g) {
|
|
30
31
|
return se.DineroFactory(g).toUnit();
|
|
@@ -525,7 +526,7 @@ const It = { class: "space-y-8" }, Dt = {
|
|
|
525
526
|
r(u, {
|
|
526
527
|
icon: "content_copy",
|
|
527
528
|
variant: "tertiary",
|
|
528
|
-
onClick: m[2] || (m[2] = (y) => e(
|
|
529
|
+
onClick: m[2] || (m[2] = (y) => e(Ge)(e(b)))
|
|
529
530
|
})
|
|
530
531
|
]),
|
|
531
532
|
_: 1
|
|
@@ -986,7 +987,7 @@ const Jt = /* @__PURE__ */ ee({
|
|
|
986
987
|
return Number.isNaN(C) ? 0 : C;
|
|
987
988
|
});
|
|
988
989
|
function M() {
|
|
989
|
-
t.value.taxTotals = s.value, f("update", Oe.parse(
|
|
990
|
+
t.value.taxTotals = s.value, f("update", Oe.parse(Je(t.value)));
|
|
990
991
|
}
|
|
991
992
|
function k() {
|
|
992
993
|
return ue.cloneDeep(Se);
|
|
@@ -1486,7 +1487,7 @@ const Jt = /* @__PURE__ */ ee({
|
|
|
1486
1487
|
}
|
|
1487
1488
|
});
|
|
1488
1489
|
var mn = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
|
|
1489
|
-
const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8 items-center" }, fn = { class: "fm-typo-en-body-lg-600" }, bn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, vn = { class: "flex flex-col gap-16 text-center" }, gn = { class: "fm-typo-en-title-sm-800" }, hn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
1490
|
+
const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8 items-center" }, fn = { class: "fm-typo-en-body-lg-600" }, bn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, vn = { class: "flex flex-col gap-16 text-center" }, gn = { class: "fm-typo-en-title-sm-800" }, hn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jn = /* @__PURE__ */ ee({
|
|
1490
1491
|
__name: "Store",
|
|
1491
1492
|
setup(g) {
|
|
1492
1493
|
const x = {
|
|
@@ -1563,7 +1564,7 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
|
|
|
1563
1564
|
w != M && (k[M].bundles.splice(U, 1), U = k[w].bundles.length), console.log(w, U, M, "ci, bi, originalCategoryIndex");
|
|
1564
1565
|
const O = k[w];
|
|
1565
1566
|
if (!O) {
|
|
1566
|
-
|
|
1567
|
+
Xe.error("Unexpected error", 2e3);
|
|
1567
1568
|
return;
|
|
1568
1569
|
}
|
|
1569
1570
|
if (s == null) {
|
|
@@ -1739,5 +1740,5 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
|
|
|
1739
1740
|
}
|
|
1740
1741
|
});
|
|
1741
1742
|
export {
|
|
1742
|
-
|
|
1743
|
+
Jn as default
|
|
1743
1744
|
};
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { defineComponent as G, ref as F, computed as j, onMounted as q, resolveComponent as g, openBlock as d, createBlock as b, unref as e, isRef as Y, withCtx as S, createElementVNode as s, createVNode as c, createElementBlock as O, createTextVNode as z, resolveDynamicComponent as M, toDisplayString as $, Fragment as D, createCommentVNode as U, h } from "vue";
|
|
2
2
|
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { components as k } from "@feedmepos/ui-library";
|
|
4
|
-
import "./index-
|
|
5
|
-
import {
|
|
6
|
-
import { C as Z, u as X } from "./membership-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import "./index-gsJpOkBA.js";
|
|
5
|
+
import { u as Q } from "./loading-CkL5IkHw.js";
|
|
6
|
+
import { C as Z, u as X } from "./membership-Bsr6Cvle.js";
|
|
7
|
+
import { p as H, f as B } from "./plugins-Dr9LdRza.js";
|
|
8
|
+
import { u as ee } from "./vue-i18n-36uLpBY2.js";
|
|
9
|
+
import { F as te } from "./index-Dvwi4GLz.js";
|
|
9
10
|
import { c as oe } from "./object-qECH92oz.js";
|
|
10
11
|
import { u as K } from "./app-wDQR6dpb.js";
|
|
11
|
-
import { u as ae } from "./business-
|
|
12
|
+
import { u as ae } from "./business-Cp6db6DR.js";
|
|
12
13
|
import { useCoreStore as ne } from "@feedmepos/mf-common";
|
|
13
14
|
import { Z as v } from "./zod-Bg2FbC-D.js";
|
|
14
|
-
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Deg2sdGO.js";
|
|
15
16
|
import { _ as re } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
|
|
16
|
-
import { _ as ie } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { b as le, a as me } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
18
|
-
import { i as ce, t as de } from "./helper-
|
|
19
|
-
import { useRouter as
|
|
20
|
-
import { m as N } from "./index-
|
|
21
|
-
import { R as T } from "./app-
|
|
22
|
-
const
|
|
17
|
+
import { _ as ie } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BNUxrEoR.js";
|
|
18
|
+
import { b as le, a as me } from "./EffectSheet.vue_vue_type_style_index_0_lang-DSPI2sPl.js";
|
|
19
|
+
import { i as ce, t as de } from "./helper-DFhx_pcj.js";
|
|
20
|
+
import { useRouter as pe } from "vue-router";
|
|
21
|
+
import { m as N } from "./index-D0RI_RQG.js";
|
|
22
|
+
import { R as T } from "./app-BCsc9J-D.js";
|
|
23
|
+
const ue = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "flex flex-col space-y-16 pr-12"
|
|
25
26
|
}, fe = { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, ye = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary flex items-center justify-between" }, we = { class: "flex items-center gap-8" }, ge = /* @__PURE__ */ G({
|
|
26
27
|
__name: "EditRewardSheet",
|
|
27
28
|
emits: ["update"],
|
|
28
29
|
setup(W, { expose: n, emit: P }) {
|
|
29
|
-
const
|
|
30
|
+
const u = P, I = ae(), V = ne(), f = F(!1), a = F(), _ = F(), i = te, l = j(
|
|
30
31
|
() => {
|
|
31
32
|
var r;
|
|
32
33
|
return Z[((r = a.value) == null ? void 0 : r.type) || "VOUCHER"];
|
|
@@ -37,7 +38,7 @@ const pe = {
|
|
|
37
38
|
});
|
|
38
39
|
function L() {
|
|
39
40
|
const r = i.safeParse(a.value);
|
|
40
|
-
r.success &&
|
|
41
|
+
r.success && u("update", r.data);
|
|
41
42
|
}
|
|
42
43
|
function x(r, t, o = {
|
|
43
44
|
isStoreReward: !1,
|
|
@@ -55,7 +56,7 @@ const pe = {
|
|
|
55
56
|
data: a,
|
|
56
57
|
rewardImage: _
|
|
57
58
|
}), (r, t) => {
|
|
58
|
-
const o = g("FmTextarea"), y = g("FmHelperText"),
|
|
59
|
+
const o = g("FmTextarea"), y = g("FmHelperText"), p = g("FmButton"), C = g("FmSideSheet");
|
|
59
60
|
return d(), b(C, {
|
|
60
61
|
"max-width": 560,
|
|
61
62
|
modelValue: e(f),
|
|
@@ -64,13 +65,13 @@ const pe = {
|
|
|
64
65
|
}, {
|
|
65
66
|
"side-sheet-footer": S(() => [
|
|
66
67
|
s("div", we, [
|
|
67
|
-
c(
|
|
68
|
+
c(p, {
|
|
68
69
|
label: "Submit",
|
|
69
70
|
onClick: L,
|
|
70
71
|
disabled: e(A).length > 0 || e(K)().isLoading,
|
|
71
72
|
loading: e(K)().isLoading
|
|
72
73
|
}, null, 8, ["disabled", "loading"]),
|
|
73
|
-
c(
|
|
74
|
+
c(p, {
|
|
74
75
|
label: "Cancel",
|
|
75
76
|
onClick: t[6] || (t[6] = (R) => x(!1)),
|
|
76
77
|
variant: "tertiary"
|
|
@@ -80,7 +81,7 @@ const pe = {
|
|
|
80
81
|
default: S(() => {
|
|
81
82
|
var R, E, w;
|
|
82
83
|
return [
|
|
83
|
-
e(a) ? (d(), O("div",
|
|
84
|
+
e(a) ? (d(), O("div", ue, [
|
|
84
85
|
s("div", fe, [
|
|
85
86
|
t[8] || (t[8] = z(" Reward information ")),
|
|
86
87
|
(d(), b(M(e(l).chip())))
|
|
@@ -171,7 +172,7 @@ const pe = {
|
|
|
171
172
|
}, 8, ["modelValue"]);
|
|
172
173
|
};
|
|
173
174
|
}
|
|
174
|
-
}), ve = { class: "px-24 flex flex-col gap-y-16" }, Re = { class: "flex items-center justify-between w-full" }, be = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
175
|
+
}), ve = { class: "px-24 flex flex-col gap-y-16" }, Re = { class: "flex items-center justify-between w-full" }, be = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ge = /* @__PURE__ */ G({
|
|
175
176
|
__name: "StoreRewards",
|
|
176
177
|
setup(W) {
|
|
177
178
|
const { t: n } = ee(), P = {
|
|
@@ -179,7 +180,7 @@ const pe = {
|
|
|
179
180
|
value: "create",
|
|
180
181
|
isPrimary: !0,
|
|
181
182
|
prependIcon: "add"
|
|
182
|
-
},
|
|
183
|
+
}, u = X(), { global: I, minor: V } = Q, f = pe(), a = F({
|
|
183
184
|
searchKey: "",
|
|
184
185
|
columnFilters: []
|
|
185
186
|
}), _ = [
|
|
@@ -264,7 +265,7 @@ const pe = {
|
|
|
264
265
|
}
|
|
265
266
|
}
|
|
266
267
|
], i = j(
|
|
267
|
-
() =>
|
|
268
|
+
() => u.bundleRewards.filter((t) => t.type == "VOUCHER")
|
|
268
269
|
), l = F();
|
|
269
270
|
function A(t) {
|
|
270
271
|
f.push({
|
|
@@ -286,7 +287,7 @@ const pe = {
|
|
|
286
287
|
n("connect.storeRewards.delete.title")
|
|
287
288
|
) && await V(
|
|
288
289
|
async () => {
|
|
289
|
-
await N.deleteReward(t._id), await
|
|
290
|
+
await N.deleteReward(t._id), await u.readMembership(), await u.readRewards();
|
|
290
291
|
},
|
|
291
292
|
{
|
|
292
293
|
message: n("connect.storeRewards.delete.message"),
|
|
@@ -296,7 +297,7 @@ const pe = {
|
|
|
296
297
|
}
|
|
297
298
|
async function x(t) {
|
|
298
299
|
var y;
|
|
299
|
-
const o = t ? oe(
|
|
300
|
+
const o = t ? oe(u.bundleRewards.find((p) => p._id === t)) : void 0;
|
|
300
301
|
if ((o == null ? void 0 : o.type) === "TITLE") {
|
|
301
302
|
await H.confirm(
|
|
302
303
|
"You cannot edit a title here, please edit it at the Program > Title section.",
|
|
@@ -313,14 +314,14 @@ const pe = {
|
|
|
313
314
|
async function r(t) {
|
|
314
315
|
await V(
|
|
315
316
|
async () => {
|
|
316
|
-
var o, y,
|
|
317
|
+
var o, y, p, C;
|
|
317
318
|
(o = l.value) != null && o.rewardImage && t.image ? await B.delete(t.image) : (y = l.value) != null && y.rewardImage && (t.image = await B.update(
|
|
318
319
|
t.image || B.collectibleImagePath(
|
|
319
320
|
void 0,
|
|
320
321
|
l.value.rewardImage
|
|
321
322
|
),
|
|
322
|
-
(
|
|
323
|
-
)), t._id ? await N.updateReward(t._id, t) : await N.createReward(t), await
|
|
323
|
+
(p = l.value) == null ? void 0 : p.rewardImage
|
|
324
|
+
)), t._id ? await N.updateReward(t._id, t) : await N.createReward(t), await u.readRewards(), (C = l.value) == null || C.showSheet(!1);
|
|
324
325
|
},
|
|
325
326
|
{
|
|
326
327
|
message: "Updating reward",
|
|
@@ -330,10 +331,10 @@ const pe = {
|
|
|
330
331
|
}
|
|
331
332
|
return q(async () => {
|
|
332
333
|
await I(async () => {
|
|
333
|
-
await
|
|
334
|
+
await u.readMembership(), await u.readRewards();
|
|
334
335
|
});
|
|
335
336
|
}), (t, o) => {
|
|
336
|
-
const y = g("FmPageHead"),
|
|
337
|
+
const y = g("FmPageHead"), p = g("FmSearch"), C = g("FmTable"), R = g("FmButton"), E = g("FmCard");
|
|
337
338
|
return d(), O(D, null, [
|
|
338
339
|
c(y, {
|
|
339
340
|
title: e(n)("connect.storeRewards.title"),
|
|
@@ -347,7 +348,7 @@ const pe = {
|
|
|
347
348
|
e(i) && e(i).length > 0 ? (d(), O(D, { key: 0 }, [
|
|
348
349
|
s("div", Re, [
|
|
349
350
|
o[6] || (o[6] = s("div", { class: "flex gap-8" }, null, -1)),
|
|
350
|
-
c(
|
|
351
|
+
c(p, {
|
|
351
352
|
modelValue: e(a).searchKey,
|
|
352
353
|
"onUpdate:modelValue": o[2] || (o[2] = (w) => e(a).searchKey = w),
|
|
353
354
|
class: "",
|
|
@@ -397,5 +398,5 @@ const pe = {
|
|
|
397
398
|
}
|
|
398
399
|
});
|
|
399
400
|
export {
|
|
400
|
-
|
|
401
|
+
Ge as default
|
|
401
402
|
};
|