@feedmepos/mf-connect 0.1.0-beta.47 → 0.1.0-beta.49
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-lSdhbAE5.js → Analytic-DTJ_SOI3.js} +18 -17
- package/dist/{App-5yWxPSqa.js → App-Cls9g4sA.js} +10 -6
- package/dist/AuditLogs-xbOKPoQS.js +1885 -0
- package/dist/{Broadcast-BkDCNB93.js → Broadcast-UeoV6_0x.js} +36 -35
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-2l4qBEIr.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BPl_0m0I.js} +6 -6
- package/dist/{Card-CKh6sC-j.js → Card-DSK_2b0H.js} +23 -21
- package/dist/{Collections-D81rKHHA.js → Collections-U63Y-tw8.js} +11 -9
- package/dist/{Credit-Swf1Bccg.js → Credit-CC1k4c10.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-CFGREAre.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BUPBXZWy.js} +28 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DN186Ykx.js → EffectSheet.vue_vue_type_style_index_0_lang-DnjTCWUk.js} +6 -6
- package/dist/{Experience-DoAwLHvr.js → Experience-UBLCm5X8.js} +26 -25
- package/dist/{Game-B4-8bZaf.js → Game-DN8qNmAV.js} +14 -13
- package/dist/{Index-O-qPz_45.js → Index-Cp5Iqmgq.js} +14 -13
- package/dist/{Marketing-A8TyRzoX.js → Marketing-BTZSeQdq.js} +8 -7
- package/dist/{Member-C9uQuhVr.js → Member-DKGZpaNY.js} +4 -4
- package/dist/{MemberList--aWor7_G.js → MemberList-BDv5O7_F.js} +33 -31
- package/dist/{MemberTransactions-C-01Qdmx.js → MemberTransactions-Cp_g2uYy.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cdx1rPtp.js → MessageInput.vue_vue_type_script_setup_true_lang-TBeUosVs.js} +6 -6
- package/dist/{Mission-Ln1_nTS2.js → Mission-Cte8Jtyj.js} +14 -13
- package/dist/{Overview-BJlPQi5S.js → Overview-COeyTvML.js} +19 -18
- package/dist/{Point-wi6j4ns_.js → Point-Cu5_d5X1.js} +11 -10
- package/dist/{Promotion-hahMm7v9.js → Promotion-Cf8ct95o.js} +12 -11
- package/dist/{Record-BO7qqPQP.js → Record-BTsMyNzQ.js} +19 -17
- package/dist/{Reward-DQhrs6So.js → Reward-Bcx7bCEh.js} +33 -32
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-a7CjUVso.js → RewardGroup.vue_vue_type_script_setup_true_lang-CwApma5p.js} +13 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CIkop4iY.js → RuleGroup.vue_vue_type_script_setup_true_lang-Cg3bA1cc.js} +12 -12
- package/dist/{Segment-Cdi_lkEd.js → Segment-BfMpM62H.js} +19 -17
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DIpnyCH_.js → SelectItems.vue_vue_type_script_setup_true_lang-CqZIHzA3.js} +2 -2
- package/dist/{Setting-CEmkP1ak.js → Setting-Btim3PZq.js} +20 -19
- package/dist/{Store-BXcCorEJ.js → Store-BbiTlkAz.js} +24 -23
- package/dist/{StoreRewards-C6s4S1bR.js → StoreRewards-hbNthA-_.js} +33 -32
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dv58wFeO.js +939 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-9XLezVlo.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BJvBo7sT.js} +1 -1
- package/dist/{Tier-ymDmSa8e.js → Tier-Ddj_dwc8.js} +25 -24
- package/dist/{Title-DyT8EwGd.js → Title-CA6b8UxN.js} +28 -27
- package/dist/{Transaction-BqfYCKHC.js → Transaction-yp6PDE_8.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D8OzqKdh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DoCmo4D7.js} +6 -6
- package/dist/{Voucher-B4H6izT-.js → Voucher-CGB4koQI.js} +14 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BzUCl5A0.js → VoucherEditor.vue_vue_type_script_setup_true_lang-aYXqbp2E.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Qyn1rKwq.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bz77dtVR.js} +1 -1
- package/dist/{app-DFhKMlXT.js → app-BpikVDEt.js} +121 -57
- package/dist/{app-fgJef1gk.js → app-DG6xKzyo.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-CWVg8oTw.js → business-DPl8ug6e.js} +1 -1
- package/dist/{campaign-DqE4D_Ie.js → campaign-CLF6bWG4.js} +2 -2
- package/dist/{campaign-CXx39lOY.js → campaign-D9xub_rP.js} +9 -9
- package/dist/{campaign.enum-BhHy5QqC.js → campaign.enum-DJijW358.js} +1 -1
- package/dist/{campaign.fn-DpRMdaoZ.js → campaign.fn-DgyMbDS2.js} +147 -147
- package/dist/{collectible.enum-CsAoXB-o.js → collectible.enum-q3RNa6ac.js} +1 -1
- package/dist/{collection.fn-BgfqVgLc.js → collection.fn-DQdOmMPm.js} +2 -2
- package/dist/{dto-CbOlUDXO.js → dto-Gtphhk7f.js} +4 -4
- package/dist/{effect-DVzBcdAh.js → effect-b6TK6WqX.js} +1 -1
- package/dist/{email-addresses-D7cuPyCu.js → email-addresses-BOOXVJIb.js} +1 -1
- package/dist/{export-fqAmDRzH.js → export-DB-hJPwq.js} +3 -3
- package/dist/{helper-Cr9hVBrL.js → helper-DaoMEMRy.js} +1 -1
- package/dist/{index-CoGSXqP_.js → index-BeE1k0xs.js} +115 -57
- package/dist/{index-c-mT7CUc.js → index-BsYcA4d4.js} +1 -1
- package/dist/{index-BYziLSU1.js → index-CC24qW42.js} +1 -1
- package/dist/{index-CLKiPqHH.js → index-CGCV3Q39.js} +3 -3
- package/dist/{index-CLeEuF1Q.js → index-CSmO-8Va.js} +1 -1
- package/dist/{index-Lrwmot9Q.js → index-Dd_g3RuO.js} +1 -1
- package/dist/{index-B-VO7A5g.js → index-DplAli0B.js} +11 -10
- package/dist/{index-BrZ9oOl8.js → index-V4sEiiYS.js} +1 -1
- package/dist/{index-zaKL-M_1.js → index-lAMRbOeY.js} +1 -1
- package/dist/{index-BpqE7ONp.js → index-rU6SAS58.js} +5 -5
- package/dist/{index-iHW9prE9.js → index-tXvAp_RD.js} +1 -1
- package/dist/{index-1fDhAPmJ.js → index-zaGTl_qB.js} +2 -2
- package/dist/{index.esm2017-CZ5oluks.js → index.esm2017-BpKyZnrS.js} +33 -33
- package/dist/loading-aAPveWkt.js +71 -0
- package/dist/{membership-D9qRdNxE.js → membership-CdHkfBpk.js} +3 -3
- package/dist/{money-B-nNBD6W.js → money-yvgF4-JZ.js} +1 -1
- package/dist/{number--UNR-Ea-.js → number-5CZfadpH.js} +1 -1
- package/dist/objectid-Cz3ihSHZ.js +145 -0
- package/dist/{loading-D84WknQA.js → plugins-CFwYNZo0.js} +2893 -2959
- package/dist/{reward-tqNSZbg2.js → reward-DfX_2rEr.js} +1 -1
- package/dist/{rule-tJ5_2tKg.js → rule-D_HCGBXt.js} +3 -3
- package/dist/{rule-builder-djwiKBYX.js → rule-builder-DaJ2wADR.js} +1 -1
- package/dist/{template-DrDV1Aex.js → template-BFcHBZjo.js} +4 -4
- package/dist/{trigger-ChRRXEa5.js → trigger-BnfqcoU-.js} +4 -4
- package/dist/usePagination-BeF5K3M7.js +223 -0
- package/dist/{user-CwS7aiK5.js → user-bXWIOEFL.js} +1 -1
- package/dist/{vue-i18n-BLCr04dZ.js → vue-i18n-kVKjcgAi.js} +353 -353
- package/dist/{usePagination--wzkJiPp.js → xlsx-C0oaHSzL.js} +2962 -3183
- package/package.json +2 -1
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-e2Phr4sy.js +0 -1099
- package/dist/objectid-DJNlN9do.js +0 -145
|
@@ -2,17 +2,18 @@ import { defineComponent as qe, ref as z, computed as ce, onMounted as Ge, resol
|
|
|
2
2
|
import { h as bt } from "./moment-BWErdI6_.js";
|
|
3
3
|
import { Z as ze } from "./zod-Bg2FbC-D.js";
|
|
4
4
|
import { useDialog as Xe } from "@feedmepos/ui-library";
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as Ae, l as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
5
|
+
import { u as vt } from "./loading-aAPveWkt.js";
|
|
6
|
+
import { u as Ct } from "./app-wDQR6dpb.js";
|
|
7
|
+
import { u as Ae, l as Ze } from "./business-DPl8ug6e.js";
|
|
8
|
+
import { u as We } from "./membership-CdHkfBpk.js";
|
|
9
|
+
import { a as et, p as Et, f as j } from "./plugins-CFwYNZo0.js";
|
|
10
|
+
import { E as At, p as Bt } from "./index-DplAli0B.js";
|
|
10
11
|
import { _ as He } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
|
|
11
|
-
import { _ as _t } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { _ as Mt } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as St } from "./vue-i18n-
|
|
14
|
-
import { m as Ke } from "./index-
|
|
15
|
-
import { S as It } from "./index-
|
|
12
|
+
import { _ as _t } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BJvBo7sT.js";
|
|
13
|
+
import { _ as Mt } from "./MessageInput.vue_vue_type_script_setup_true_lang-TBeUosVs.js";
|
|
14
|
+
import { u as St } from "./vue-i18n-kVKjcgAi.js";
|
|
15
|
+
import { m as Ke } from "./index-BsYcA4d4.js";
|
|
16
|
+
import { S as It } from "./index-CGCV3Q39.js";
|
|
16
17
|
import { o as Pt } from "./objectId-dwaoBfJX.js";
|
|
17
18
|
import { a as Tt } from "./object-qECH92oz.js";
|
|
18
19
|
var ne = {}, Nt = function() {
|
|
@@ -1504,12 +1505,12 @@ var En = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "ht
|
|
|
1504
1505
|
const An = { class: "flex items-start" }, Bn = { class: "flex flex-col gap-16 mt-16" }, _n = ["src"], Mn = /* @__PURE__ */ qe({
|
|
1505
1506
|
__name: "LinkDeviceDialog",
|
|
1506
1507
|
setup(t) {
|
|
1507
|
-
const e = Ae(), i =
|
|
1508
|
+
const e = Ae(), i = We(), r = Xe(), o = z(), n = z(), l = En.crmUrl, s = z(), a = ce(() => i.membership), f = ce(() => {
|
|
1508
1509
|
var g, d;
|
|
1509
1510
|
return `https://${(g = a.value) != null && g.url ? a.value.url : (d = a.value) == null ? void 0 : d.business}.${l}`;
|
|
1510
1511
|
});
|
|
1511
1512
|
async function m(g) {
|
|
1512
|
-
const d = await
|
|
1513
|
+
const d = await Ze.getOtp(g);
|
|
1513
1514
|
return `${f.value}?link-device=${d.otp}`;
|
|
1514
1515
|
}
|
|
1515
1516
|
async function B(g) {
|
|
@@ -1556,7 +1557,7 @@ const An = { class: "flex items-start" }, Bn = { class: "flex flex-col gap-16 mt
|
|
|
1556
1557
|
class: "mx-auto",
|
|
1557
1558
|
variant: "plain",
|
|
1558
1559
|
icon: "content_copy",
|
|
1559
|
-
onClick: d[2] || (d[2] = (h) => u(
|
|
1560
|
+
onClick: d[2] || (d[2] = (h) => u(et)(u(s)))
|
|
1560
1561
|
})
|
|
1561
1562
|
])
|
|
1562
1563
|
]),
|
|
@@ -1569,10 +1570,10 @@ var Je = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "ht
|
|
|
1569
1570
|
const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, In = { class: "fm-typo-en-title-md-800" }, Pn = {
|
|
1570
1571
|
key: 0,
|
|
1571
1572
|
class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
|
|
1572
|
-
}, Tn = { class: "col-span-2 flex flex-col xs:col-span-3" }, Nn = { class: "fm-typo-en-title-sm-800" }, Un = { class: "space-y-24" }, Ln = { class: "space-y-8" }, Fn = { class: "fm-typo-en-title-sm-800" }, Rn = { class: "fm-typo-body-lg-400" }, Dn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, kn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Vn = { class: "space-y-8" }, xn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, $n = { class: "space-y-8" }, zn = { class: "space-y-8" }, Hn = { class: "space-y-8" }, Kn = { class: "space-y-8" }, On = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Yn = { class: "space-y-8" }, jn = { class: "flex justify-end pb-24" }, Jn = { class: "col-span-1 space-y-8 xs:hidden" }, qn = { class: "fm-typo-en-body-lg-600" }, Gn = { class: "fm-typo-en-body-lg-600" }, Qn = { class: "fm-typo-en-body-lg-600" }, Xn = { class: "fm-typo-en-body-lg-600" },
|
|
1573
|
+
}, Tn = { class: "col-span-2 flex flex-col xs:col-span-3" }, Nn = { class: "fm-typo-en-title-sm-800" }, Un = { class: "space-y-24" }, Ln = { class: "space-y-8" }, Fn = { class: "fm-typo-en-title-sm-800" }, Rn = { class: "fm-typo-body-lg-400" }, Dn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, kn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Vn = { class: "space-y-8" }, xn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, $n = { class: "space-y-8" }, zn = { class: "space-y-8" }, Hn = { class: "space-y-8" }, Kn = { class: "space-y-8" }, On = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Yn = { class: "space-y-8" }, jn = { class: "flex justify-end pb-24" }, Jn = { class: "col-span-1 space-y-8 xs:hidden" }, qn = { class: "fm-typo-en-body-lg-600" }, Gn = { class: "fm-typo-en-body-lg-600" }, Qn = { class: "fm-typo-en-body-lg-600" }, Xn = { class: "fm-typo-en-body-lg-600" }, yo = /* @__PURE__ */ qe({
|
|
1573
1574
|
__name: "Setting",
|
|
1574
1575
|
setup(t) {
|
|
1575
|
-
const e =
|
|
1576
|
+
const e = Ct(), i = Ae(), r = We(), { global: o, minor: n } = vt, l = Xe(), s = z(), a = z(!1), f = z([]), m = z(null), B = At, g = [
|
|
1576
1577
|
(A) => !A || A.length >= 6 || "Invalid URL format, please enter at least 6 characters",
|
|
1577
1578
|
(A) => !A || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(A) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
|
|
1578
1579
|
], d = Je.appUrl, v = ce(() => {
|
|
@@ -1590,13 +1591,13 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1590
1591
|
});
|
|
1591
1592
|
}
|
|
1592
1593
|
async function y(A) {
|
|
1593
|
-
await
|
|
1594
|
+
await Et.remove(
|
|
1594
1595
|
"Are you sure you want to unlink this device?",
|
|
1595
1596
|
"Unlink device",
|
|
1596
1597
|
"Unlink"
|
|
1597
1598
|
) && await n(
|
|
1598
1599
|
async () => {
|
|
1599
|
-
await
|
|
1600
|
+
await Ze.unregisterDevice(A), await i.readLocationDevices();
|
|
1600
1601
|
},
|
|
1601
1602
|
{
|
|
1602
1603
|
message: "Unlinking device",
|
|
@@ -1688,7 +1689,7 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1688
1689
|
I(L, {
|
|
1689
1690
|
icon: "content_copy",
|
|
1690
1691
|
variant: "tertiary",
|
|
1691
|
-
onClick: c[1] || (c[1] = (E) => u(
|
|
1692
|
+
onClick: c[1] || (c[1] = (E) => u(et)(u(v)))
|
|
1692
1693
|
})
|
|
1693
1694
|
]),
|
|
1694
1695
|
_: 1
|
|
@@ -1920,5 +1921,5 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1920
1921
|
}
|
|
1921
1922
|
});
|
|
1922
1923
|
export {
|
|
1923
|
-
|
|
1924
|
+
yo as default
|
|
1924
1925
|
};
|
|
@@ -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-CGCV3Q39.js";
|
|
5
|
+
import { u as Ee } from "./loading-aAPveWkt.js";
|
|
6
|
+
import { u as $e, C as me } from "./membership-CdHkfBpk.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 { d as se, a as Ge, p as he, n as Xe, f as Fe } from "./plugins-CFwYNZo0.js";
|
|
10
|
+
import { u as be } from "./vue-i18n-kVKjcgAi.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-BpikVDEt.js";
|
|
13
|
+
import { s as Qe, t as et, u as tt, v as Oe, w as nt } from "./index-DplAli0B.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-Bz77dtVR.js";
|
|
15
16
|
import { J as ke } from "./JsonViewer-v8_C7l5N.js";
|
|
16
|
-
import { _ as ot } from "./index-
|
|
17
|
+
import { _ as ot } from "./index-zaGTl_qB.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-yvgF4-JZ.js";
|
|
21
|
+
import { F as it } from "./number-5CZfadpH.js";
|
|
22
|
+
import { t as dt } from "./helper-DaoMEMRy.js";
|
|
23
|
+
import "./index-CC24qW42.js";
|
|
24
|
+
import "./index-BeE1k0xs.js";
|
|
25
|
+
import "./index-Dd_g3RuO.js";
|
|
26
|
+
import "./index-rU6SAS58.js";
|
|
27
|
+
import { m as ut } from "./index-lAMRbOeY.js";
|
|
28
|
+
import { m as xe } from "./index-BsYcA4d4.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-CC24qW42.js";
|
|
5
|
+
import { u as Q } from "./loading-aAPveWkt.js";
|
|
6
|
+
import { C as Z, u as X } from "./membership-CdHkfBpk.js";
|
|
7
|
+
import { p as H, f as B } from "./plugins-CFwYNZo0.js";
|
|
8
|
+
import { u as ee } from "./vue-i18n-kVKjcgAi.js";
|
|
9
|
+
import { F as te } from "./index-zaGTl_qB.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-DPl8ug6e.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-Bz77dtVR.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-BJvBo7sT.js";
|
|
18
|
+
import { b as le, a as me } from "./EffectSheet.vue_vue_type_style_index_0_lang-DnjTCWUk.js";
|
|
19
|
+
import { i as ce, t as de } from "./helper-DaoMEMRy.js";
|
|
20
|
+
import { useRouter as pe } from "vue-router";
|
|
21
|
+
import { m as N } from "./index-BsYcA4d4.js";
|
|
22
|
+
import { R as T } from "./app-BpikVDEt.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
|
};
|