@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-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-BHDjuMfN.js +426 -0
- package/dist/{App-DsB2o1oB.js → App-BSSze_b9.js} +106 -118
- package/dist/{Bin-DMr7K8Kj.js → Bin-DfzoQbE0.js} +8 -8
- package/dist/{Broadcast-C9akM-TB.js → Broadcast-DsqO4SXX.js} +17 -18
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DQ0x2VJp.js} +6 -5
- package/dist/{Card-DRkIYs0M.js → Card-VxbqomXV.js} +19 -19
- package/dist/{Collections-B0uGC2FE.js → Collections-CvD98I3M.js} +185 -197
- package/dist/{Credit-V5YA_hGx.js → Credit-BhM2m2L2.js} +53 -54
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DvfrrjHc.js +2223 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-CPx9U9fU.js} +6 -6
- package/dist/{Experience-WTWy5yY6.js → Experience-uWQRb-qf.js} +34 -35
- package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-DKNoHTvP.js} +1 -1
- package/dist/{Game-BwOfTCW5.js → Game-BgT3oNx7.js} +15 -16
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-ClqrJbU6.js} +1 -1
- package/dist/{Index-m7l4insz.js → Index-D3RgVj9V.js} +10 -10
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CkCpumzB.js} +1 -1
- package/dist/{MainLayout-Du5kZOtA.js → MainLayout-B2RiPsIR.js} +1 -1
- package/dist/{Marketing-C9pSIdBU.js → Marketing-FrE7k7eW.js} +4 -4
- package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-DGNjEUu-.js} +211 -214
- package/dist/{Member-DUV_vbPI.js → Member-CgTagUQ9.js} +20 -20
- package/dist/{MemberList-Ye4nOk-i.js → MemberList-CKbzsDMX.js} +51 -50
- package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-CnY5cFdv.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-DqivG_O4.js} +11 -11
- package/dist/{Mission-BBmCGpt8.js → Mission-BGNqy7wQ.js} +34 -35
- package/dist/{Overview-DOJj4XvO.js → Overview-CnpF74wa.js} +19 -19
- package/dist/{Point-Bzg6hi6o.js → Point-BHgIy7Bz.js} +29 -30
- package/dist/{Promotion-BMXIp_ef.js → Promotion-CNQvO5Lq.js} +105 -111
- package/dist/{Queue-55G2gtP5.js → Queue-CoPBE0UP.js} +43 -43
- package/dist/{Record-DNPI02c6.js → Record-BuDQ15FJ.js} +10 -10
- package/dist/{Reward-CnP8R2pS.js → Reward-BQlCO3Dk.js} +17 -17
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-nhNr_T7D.js} +12 -12
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-lnxwLa8o.js +1888 -0
- package/dist/{Segment-CxiQnnyj.js → Segment-DKFAXGzY.js} +78 -77
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js → SelectItems.vue_vue_type_script_setup_true_lang-CUR7djaM.js} +3 -3
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CZ3s2W8Q.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbilZk82.js} +4 -4
- package/dist/{Setting-jHAjccod.js → Setting-hrDZ1cQR.js} +248 -259
- package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-CQsx4JqQ.js} +13 -13
- package/dist/{Store-Cu-hKmVa.js → Store-Cgmsklnt.js} +24 -24
- package/dist/{StoreRewards-DILeipMG.js → StoreRewards-CrPO4DKG.js} +16 -16
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-yesp6BoT.js +1118 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BnKybdKJ.js +142 -0
- package/dist/{Tier-BAZ1xuKL.js → Tier-DgKMMyKr.js} +469 -544
- package/dist/{Title-CcNAt47f.js → Title-BKijiEFV.js} +92 -93
- package/dist/{Transaction-D7DO3dKQ.js → Transaction-zHL4q_wj.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DjafpVOa.js} +6 -6
- package/dist/{Voucher-Cq-n1CaC.js → Voucher-DW4-SD1w.js} +27 -28
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-y2wm2Bcu.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-BWZUE554.js} +2 -2
- package/dist/{app-Z-UKRG5V.js → app-B23RANXL.js} +3083 -3663
- package/dist/app.js +3 -4
- package/dist/{business-C7EF6cKC.js → business-BFU-2tpT.js} +1 -1
- package/dist/{campaign-DHBuP4UA.js → campaign-BEKKOWya.js} +64 -114
- package/dist/{campaign--MjoY1Mn.js → campaign-CwlWx58O.js} +7 -13
- package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-5KIiekYl.js} +2 -3
- package/dist/{campaign.fn-Bd34dVnx.js → campaign.fn-CyWn_KL-.js} +130 -130
- package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-DmmR-4Nj.js} +1 -1
- package/dist/collection.fn-BB1OjBHL.js +26 -0
- package/dist/dto-p31OYANk.js +216 -0
- package/dist/{effect-BcB8IlTI.js → effect-DNDXE2iM.js} +1 -1
- package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-DXSkxrZ6.js} +2 -2
- package/dist/{export-CjB7qxZ9.js → export-zMj-UAnF.js} +3 -3
- package/dist/{helper-BSgrCJRv.js → helper-D32ml7Qv.js} +1 -1
- package/dist/{index-HXiYGO4_.js → index-9jgqbdnt.js} +7 -7
- package/dist/{index-hlyg-wxV.js → index-B2OiTtF5.js} +1 -1
- package/dist/{index-CoHWpylO.js → index-B9-jeiQR.js} +1281 -1518
- package/dist/{index-iMPtFp54.js → index-BWHk6oqv.js} +3 -3
- package/dist/{index-hbyCVNa7.js → index-BmmFSQPd.js} +3 -3
- package/dist/{index-CsoBDon4.js → index-CA09A75h.js} +1968 -1996
- package/dist/index-Cc15IFUt.js +55 -0
- package/dist/{index-BpI-BI4H.js → index-CcnOzrwY.js} +1 -1
- package/dist/{index-VlFWaBrg.js → index-DSGHkaP0.js} +1 -1
- package/dist/{index-BoYEqLif.js → index-DvHLsdIR.js} +205 -817
- package/dist/{index-Bf6jNZit.js → index-PrTZHXNT.js} +1 -1
- package/dist/{index-BIAjmMga.js → index-txVWLdtz.js} +1 -1
- package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-BJG8dqci.js} +209 -209
- package/dist/{loading-CSXr0Yqz.js → loading-DuZVM_Ow.js} +1 -1
- package/dist/{lodash-Bh7XKI-R.js → lodash-DqQem5rZ.js} +1 -1
- package/dist/{membership-CfredTm3.js → membership-CvoEzwor.js} +3 -3
- package/dist/{money-BZIST_m9.js → money-B9PJ_JYh.js} +1 -1
- package/dist/{number-DXLR2w95.js → number-GIC15kny.js} +1 -1
- package/dist/object-qECH92oz.js +26 -0
- package/dist/objectid-CtJ4pTf2.js +145 -0
- package/dist/{plugins-4FlbwoES.js → plugins-XAhAFHmZ.js} +95 -94
- package/dist/{reward-DUbl79bZ.js → reward-Dy0Z6PLL.js} +1 -1
- package/dist/{rule-BQUoZ4l_.js → rule-CUu9I1Ly.js} +487 -505
- package/dist/rule-builder-DPmaehAO.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-BHtdbnoX.js +236 -0
- package/dist/{index-CIBPhxlC.js → timezone-BE1YhvLN.js} +20 -21
- package/dist/{trigger-D5g5m6tT.js → trigger-BcHfjuiZ.js} +5 -5
- package/dist/{useMarketingMaterialActions-B-Jlw2Z9.js → useMarketingMaterialActions-YQq4LWOp.js} +3 -3
- package/dist/{usePagination-DHePBBoR.js → usePagination-B1KK2gTx.js} +1 -1
- package/dist/{user-C_ToSo-g.js → user-BTRRi1B3.js} +1 -1
- package/dist/{vue-i18n-BcYh6_51.js → vue-i18n-D8NX5Rry.js} +298 -298
- package/dist/{xlsx-h4G1C-xj.js → xlsx-C9LzK7Kg.js} +1 -1
- package/dist/{zod-CgigfJar.js → zod-D3ciRzE4.js} +1 -1
- package/package.json +4 -8
- package/dist/AuditLogs-BcfgiYnJ.js +0 -2013
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
- package/dist/Grab-DmmwrGzk.js +0 -300
- package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js +0 -48
- package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
- package/dist/Review-CYNPPxYU.js +0 -1141
- package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
- package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js +0 -1911
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js +0 -7007
- package/dist/duplicateCampaign-2ODeDw3a.js +0 -51
- package/dist/index-Bm0QPucw.js +0 -67
- package/dist/index-Bv4MBLQ5.js +0 -52
- package/dist/object-BYyQ0PZp.js +0 -18
- package/dist/objectid-Dg4ZodlT.js +0 -145
- package/dist/template-BoiSG7G7.js +0 -188
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import { defineComponent as le, ref as W, resolveComponent as
|
|
1
|
+
import { defineComponent as le, ref as W, resolveComponent as x, openBlock as r, createElementBlock as k, createElementVNode as s, createVNode as d, unref as e, createCommentVNode as K, withCtx as $, Fragment as Z, renderList as me, createBlock as V, toDisplayString as D, normalizeClass as ce, computed as O, onMounted as we, isRef as Te, createSlots as Ee, h as B, onBeforeMount as De } from "vue";
|
|
2
2
|
import { _ as $e } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { n as Ae, p as Pe } from "./plugins-
|
|
4
|
-
import { u as Re } from "./loading-
|
|
3
|
+
import { n as Ae, p as Pe } from "./plugins-XAhAFHmZ.js";
|
|
4
|
+
import { u as Re } from "./loading-DuZVM_Ow.js";
|
|
5
5
|
import { FmButtonVariant as re, useSnackbar as Ne, components as ae } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as Fe, _ as Ce } from "./usePagination-
|
|
7
|
-
import { u as pe } from "./vue-i18n-
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import "./index-
|
|
11
|
-
import
|
|
12
|
-
import "./index-
|
|
13
|
-
import { u as de, w as ke } from "./xlsx-
|
|
14
|
-
import { e as Ye, M as ze } from "./email-addresses-
|
|
15
|
-
import { Z as Oe } from "./zod-
|
|
6
|
+
import { u as Fe, _ as Ce } from "./usePagination-B1KK2gTx.js";
|
|
7
|
+
import { u as pe } from "./vue-i18n-D8NX5Rry.js";
|
|
8
|
+
import { i as Be, j as U, D as Ue, k as Ve, c as ye } from "./index-B9-jeiQR.js";
|
|
9
|
+
import "./index-CA09A75h.js";
|
|
10
|
+
import { F as ge, z as Le } from "./index-BmmFSQPd.js";
|
|
11
|
+
import "./index-DvHLsdIR.js";
|
|
12
|
+
import "./index-BWHk6oqv.js";
|
|
13
|
+
import { u as de, w as ke } from "./xlsx-C9LzK7Kg.js";
|
|
14
|
+
import { e as Ye, M as ze } from "./email-addresses-DXSkxrZ6.js";
|
|
15
|
+
import { Z as Oe } from "./zod-D3ciRzE4.js";
|
|
16
16
|
import { u as je } from "./app-wDQR6dpb.js";
|
|
17
|
-
import {
|
|
18
|
-
import { _ as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
17
|
+
import { R as ve } from "./rule-builder-DPmaehAO.js";
|
|
18
|
+
import { _ as qe } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BWZUE554.js";
|
|
19
|
+
import { _ as Ge } from "./RuleGroup.vue_vue_type_script_setup_true_lang-lnxwLa8o.js";
|
|
20
|
+
import { u as He, v as Ke, w as Je } from "./index.esm2017-BJG8dqci.js";
|
|
21
|
+
import { F as Qe } from "./FileSaver.min-DKNoHTvP.js";
|
|
21
22
|
import { h as se } from "./moment-D7p2TMB-.js";
|
|
22
|
-
import { s as z, u as We } from "./membership-
|
|
23
|
+
import { s as z, u as We } from "./membership-CvoEzwor.js";
|
|
23
24
|
import { o as Ze } from "./objectId-dwaoBfJX.js";
|
|
24
25
|
import { J as Xe } from "./JsonViewer-v8_C7l5N.js";
|
|
25
|
-
import { u as Ie } from "./business-
|
|
26
|
-
import { f as et } from "./number-
|
|
27
|
-
import { t as tt } from "./money-
|
|
28
|
-
import "./index-
|
|
26
|
+
import { u as Ie } from "./business-BFU-2tpT.js";
|
|
27
|
+
import { f as et } from "./number-GIC15kny.js";
|
|
28
|
+
import { t as tt } from "./money-B9PJ_JYh.js";
|
|
29
|
+
import "./index-B2OiTtF5.js";
|
|
29
30
|
import { useRouter as ot } from "vue-router";
|
|
30
|
-
import { m as _e } from "./index-
|
|
31
|
-
import { R as
|
|
31
|
+
import { m as _e } from "./index-txVWLdtz.js";
|
|
32
|
+
import { R as Se } from "./app-B23RANXL.js";
|
|
32
33
|
const nt = Be.extend({
|
|
33
|
-
_id:
|
|
34
|
-
business:
|
|
34
|
+
_id: ge.optional(),
|
|
35
|
+
business: ge.optional(),
|
|
35
36
|
file: Le.any().nullish()
|
|
36
37
|
});
|
|
37
|
-
var at = { firebase: { apiKey: "
|
|
38
|
+
var at = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" };
|
|
38
39
|
const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
39
40
|
key: 0,
|
|
40
41
|
class: /* @__PURE__ */ ce([
|
|
@@ -72,7 +73,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
72
73
|
async function a() {
|
|
73
74
|
if (c.importFile)
|
|
74
75
|
try {
|
|
75
|
-
const y = He(void 0, at.importFilesBucketUrl), p =
|
|
76
|
+
const y = He(void 0, at.importFilesBucketUrl), p = Ke(y, c.importFile), g = await Je(p);
|
|
76
77
|
window.open(g, "_blank");
|
|
77
78
|
} catch (y) {
|
|
78
79
|
console.log(y), Ae.error("Failed to download uploaded file");
|
|
@@ -87,8 +88,8 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
87
88
|
Qe.saveAs(p, "ImportSegmentTemplate.csv");
|
|
88
89
|
break;
|
|
89
90
|
case "xlsx":
|
|
90
|
-
const g = de.aoa_to_sheet([T]),
|
|
91
|
-
de.book_append_sheet(
|
|
91
|
+
const g = de.aoa_to_sheet([T]), S = de.book_new();
|
|
92
|
+
de.book_append_sheet(S, g, "Sheet1"), ke(S, "ImportSegmentTemplate.xlsx");
|
|
92
93
|
break;
|
|
93
94
|
}
|
|
94
95
|
}
|
|
@@ -96,12 +97,12 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
96
97
|
_.value = y, M("update:file", _.value);
|
|
97
98
|
}
|
|
98
99
|
function A(y) {
|
|
99
|
-
var g,
|
|
100
|
-
const p = ((
|
|
100
|
+
var g, S;
|
|
101
|
+
const p = ((S = (g = y.target) == null ? void 0 : g.files) == null ? void 0 : S[0]) ?? null;
|
|
101
102
|
i(p);
|
|
102
103
|
}
|
|
103
104
|
return (y, p) => {
|
|
104
|
-
const g =
|
|
105
|
+
const g = x("FmButton"), S = x("FmMenuItem"), j = x("FmMenu"), q = x("FmDropField");
|
|
105
106
|
return r(), k("div", st, [
|
|
106
107
|
p[2] || (p[2] = s("div", { class: "fm-typo-en-title-sm-800" }, "Upload File", -1)),
|
|
107
108
|
t.importFile ? (r(), k("div", lt, [
|
|
@@ -111,7 +112,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
111
112
|
icon: "file_present",
|
|
112
113
|
onClick: a
|
|
113
114
|
}, null, 8, ["label", "variant"])
|
|
114
|
-
])) :
|
|
115
|
+
])) : K("", !0),
|
|
115
116
|
s("div", null, [
|
|
116
117
|
s("div", it, [
|
|
117
118
|
d(j, { class: "" }, {
|
|
@@ -123,7 +124,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
123
124
|
})
|
|
124
125
|
]),
|
|
125
126
|
default: $(() => [
|
|
126
|
-
(r(), k(Z, null, me(E, (I) => d(
|
|
127
|
+
(r(), k(Z, null, me(E, (I) => d(S, {
|
|
127
128
|
key: I.value,
|
|
128
129
|
icon: I.icon,
|
|
129
130
|
label: I.label,
|
|
@@ -172,7 +173,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
172
173
|
]);
|
|
173
174
|
};
|
|
174
175
|
}
|
|
175
|
-
}), ut = { class: "space-y-16 pr-12" }, mt = { class: "fm-typo-en-title-md-800" }, pt = { class: "flex space-x-8" }, ft = { class: "fm-typo-en-title-md-800 text-fm-color-primary" }, yt = { class: "text-fm-color-typo-secondary" },
|
|
176
|
+
}), ut = { class: "space-y-16 pr-12" }, mt = { class: "fm-typo-en-title-md-800" }, pt = { class: "flex space-x-8" }, ft = { class: "fm-typo-en-title-md-800 text-fm-color-primary" }, yt = { class: "text-fm-color-typo-secondary" }, xe = /* @__PURE__ */ le({
|
|
176
177
|
__name: "ReviewSegment",
|
|
177
178
|
props: {
|
|
178
179
|
title: {},
|
|
@@ -249,7 +250,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
249
250
|
}, null, 8, ["loading", "row-data", "row-count", "page-size", "page-count", "page-index", "onSortChange"])
|
|
250
251
|
]));
|
|
251
252
|
}
|
|
252
|
-
}), gt = { class: "space-y-24" }, vt = { class: "grid grid-cols-2 gap-16" }, _t = { class: "fm-typo-en-title-sm-800" },
|
|
253
|
+
}), gt = { class: "space-y-24" }, vt = { class: "grid grid-cols-2 gap-16" }, _t = { class: "fm-typo-en-title-sm-800" }, St = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, xt = /* @__PURE__ */ le({
|
|
253
254
|
__name: "SegmentTypeOption",
|
|
254
255
|
props: {
|
|
255
256
|
modelValue: {},
|
|
@@ -273,7 +274,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
273
274
|
u !== c.modelValue && M("update:model-value", u);
|
|
274
275
|
}
|
|
275
276
|
return (u, T) => {
|
|
276
|
-
const E =
|
|
277
|
+
const E = x("FmCard"), a = x("FmHelperText");
|
|
277
278
|
return r(), k("div", gt, [
|
|
278
279
|
s("div", vt, [
|
|
279
280
|
(r(), k(Z, null, me(b, (m) => d(E, {
|
|
@@ -288,7 +289,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
288
289
|
}, {
|
|
289
290
|
default: $(() => [
|
|
290
291
|
s("div", _t, D(m.label), 1),
|
|
291
|
-
s("div",
|
|
292
|
+
s("div", St, D(m.sublabel), 1)
|
|
292
293
|
]),
|
|
293
294
|
_: 2
|
|
294
295
|
}, 1032, ["class", "onClick"])), 64))
|
|
@@ -298,7 +299,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
298
299
|
class: "!mt-4",
|
|
299
300
|
text: t.errorText,
|
|
300
301
|
state: "error"
|
|
301
|
-
}, null, 8, ["text"])) :
|
|
302
|
+
}, null, 8, ["text"])) : K("", !0)
|
|
302
303
|
]);
|
|
303
304
|
};
|
|
304
305
|
}
|
|
@@ -328,7 +329,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
328
329
|
name: "",
|
|
329
330
|
isActive: !0,
|
|
330
331
|
type: U.enum.DYNAMIC,
|
|
331
|
-
rule:
|
|
332
|
+
rule: ve.scaffoldGroup(),
|
|
332
333
|
members: []
|
|
333
334
|
}, E = nt, a = W(T), m = O(() => !!a.value.defaultKey), i = O(
|
|
334
335
|
() => a.value.defaultKey ? `connect.loyalty.segment.default_segments.${a.value.defaultKey.toLowerCase()}` : void 0
|
|
@@ -348,29 +349,29 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
348
349
|
type: v.type ?? (v.importFile ? U.enum.STATIC : U.enum.DYNAMIC)
|
|
349
350
|
} : a.value = { ...T };
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
+
function S() {
|
|
352
353
|
_.value = !1;
|
|
353
354
|
}
|
|
354
355
|
async function j() {
|
|
355
356
|
E.safeParse(a.value).success && (u.value = !0);
|
|
356
357
|
}
|
|
357
358
|
function q(v) {
|
|
358
|
-
v === U.enum.STATIC ?
|
|
359
|
+
v === U.enum.STATIC ? S() : u.value = !1;
|
|
359
360
|
}
|
|
360
361
|
async function I() {
|
|
361
|
-
a.value.type === U.enum.STATIC ? (a.value.rule =
|
|
362
|
+
a.value.type === U.enum.STATIC ? (a.value.rule = ve.scaffoldGroup(), a.value.isActive = !0) : a.value.file = void 0, J("update:model-value", a.value);
|
|
362
363
|
}
|
|
363
364
|
async function G(v) {
|
|
364
365
|
a.value.type = v;
|
|
365
366
|
}
|
|
366
367
|
we(async () => {
|
|
367
368
|
});
|
|
368
|
-
const
|
|
369
|
+
const J = c;
|
|
369
370
|
return f({
|
|
370
371
|
showSheet: g,
|
|
371
|
-
hideSheet:
|
|
372
|
+
hideSheet: S
|
|
372
373
|
}), (v, l) => {
|
|
373
|
-
const P =
|
|
374
|
+
const P = x("FmButton"), X = x("FmChip"), ee = x("FmCard"), te = x("FmSwitch"), o = x("FmSideSheet");
|
|
374
375
|
return r(), V(o, {
|
|
375
376
|
modelValue: e(_),
|
|
376
377
|
"onUpdate:modelValue": l[9] || (l[9] = (n) => Te(_) ? _.value = n : null),
|
|
@@ -384,7 +385,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
384
385
|
e(m) ? (r(), V(P, {
|
|
385
386
|
key: 0,
|
|
386
387
|
label: e(b)("connect.loyalty.segment.default_segments.close"),
|
|
387
|
-
onClick: l[6] || (l[6] = (n) =>
|
|
388
|
+
onClick: l[6] || (l[6] = (n) => S()),
|
|
388
389
|
variant: "tertiary"
|
|
389
390
|
}, null, 8, ["label"])) : e(u) || e(a).type === e(U).enum.STATIC ? (r(), k(Z, { key: 1 }, [
|
|
390
391
|
d(P, {
|
|
@@ -406,7 +407,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
406
407
|
}, null, 8, ["disabled"]),
|
|
407
408
|
d(P, {
|
|
408
409
|
label: "Cancel",
|
|
409
|
-
onClick: l[8] || (l[8] = (n) =>
|
|
410
|
+
onClick: l[8] || (l[8] = (n) => S()),
|
|
410
411
|
variant: "tertiary"
|
|
411
412
|
})
|
|
412
413
|
], 64))
|
|
@@ -416,7 +417,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
416
417
|
var n, F;
|
|
417
418
|
return [
|
|
418
419
|
d(Xe, { json: e(a) }, null, 8, ["json"]),
|
|
419
|
-
e(u) ? (r(), V(
|
|
420
|
+
e(u) ? (r(), V(xe, {
|
|
420
421
|
key: 1,
|
|
421
422
|
title: e(a).name,
|
|
422
423
|
segment: e(a)
|
|
@@ -449,9 +450,9 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
449
450
|
label: "Segment title",
|
|
450
451
|
schema: e(Oe).typeAtPath(e(E), "name")
|
|
451
452
|
}, null, 8, ["modelValue", "schema"])),
|
|
452
|
-
e(m) ?
|
|
453
|
+
e(m) ? K("", !0) : (r(), k("div", Tt, [
|
|
453
454
|
l[11] || (l[11] = s("div", { class: "fm-typo-en-title-sm-800" }, "Segment Type", -1)),
|
|
454
|
-
d(
|
|
455
|
+
d(xt, {
|
|
455
456
|
"model-value": e(a).type,
|
|
456
457
|
"onUpdate:modelValue": l[2] || (l[2] = (w) => {
|
|
457
458
|
G(w);
|
|
@@ -468,7 +469,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
468
469
|
e(a).rule = w;
|
|
469
470
|
})
|
|
470
471
|
}, null, 8, ["model-value"])
|
|
471
|
-
])) : e(m) ?
|
|
472
|
+
])) : e(m) ? K("", !0) : (r(), k("div", Dt, [
|
|
472
473
|
d(dt, {
|
|
473
474
|
importFile: e(a).importFile,
|
|
474
475
|
"onUpdate:file": l[4] || (l[4] = (w) => {
|
|
@@ -485,12 +486,12 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
|
|
|
485
486
|
sublabel: "When enabled, this will recalculate the segment statistics daily.",
|
|
486
487
|
"label-placement": "right"
|
|
487
488
|
}, null, 8, ["model-value"])
|
|
488
|
-
])) :
|
|
489
|
-
e(m) ? (r(), V(
|
|
489
|
+
])) : K("", !0),
|
|
490
|
+
e(m) ? (r(), V(xe, {
|
|
490
491
|
key: (F = e(a)._id) == null ? void 0 : F.toString(),
|
|
491
492
|
title: e(b)("connect.loyalty.segment.default_segments.members"),
|
|
492
493
|
segment: e(a)
|
|
493
|
-
}, null, 8, ["title", "segment"])) :
|
|
494
|
+
}, null, 8, ["title", "segment"])) : K("", !0)
|
|
494
495
|
]))
|
|
495
496
|
];
|
|
496
497
|
}),
|
|
@@ -520,7 +521,7 @@ function ue(t) {
|
|
|
520
521
|
}
|
|
521
522
|
const Nt = {
|
|
522
523
|
mapMemberExportRow: (t) => {
|
|
523
|
-
var a, m, i, A, y, p, g,
|
|
524
|
+
var a, m, i, A, y, p, g, S, j, q, I, G, J, v, l, P, X, ee, te, o, n, F, w, R, H, L, oe, ne;
|
|
524
525
|
const f = O(() => Rt.locations.map((C) => ({
|
|
525
526
|
label: C.name,
|
|
526
527
|
value: C._id
|
|
@@ -544,7 +545,7 @@ const Nt = {
|
|
|
544
545
|
return C[N.name] = Q ? se(Q).format("DD/MM/YYYY") : "", C;
|
|
545
546
|
},
|
|
546
547
|
{}
|
|
547
|
-
), _ = ((p = (y = (A = t.collection) == null ? void 0 : A.CREDIT) == null ? void 0 : y.at(0)) == null ? void 0 : p.balance) || 0, u = ((q = (j = (
|
|
548
|
+
), _ = ((p = (y = (A = t.collection) == null ? void 0 : A.CREDIT) == null ? void 0 : y.at(0)) == null ? void 0 : p.balance) || 0, u = ((q = (j = (S = (g = t.collection) == null ? void 0 : g.CREDIT) == null ? void 0 : S.at(0)) == null ? void 0 : j.expiryBalance) == null ? void 0 : q.reduce(
|
|
548
549
|
(C, N) => C + N.amount,
|
|
549
550
|
0
|
|
550
551
|
)) || 0, T = et(_, 2);
|
|
@@ -559,7 +560,7 @@ const Nt = {
|
|
|
559
560
|
Credit: parseFloat((Number(T) - Number(u)).toFixed(2)),
|
|
560
561
|
FreeCredit: Number(u.toFixed(2)),
|
|
561
562
|
TotalCredit: Number(T),
|
|
562
|
-
Exp: t != null && t.collection ? ((l = (v = (
|
|
563
|
+
Exp: t != null && t.collection ? ((l = (v = (J = t.collection) == null ? void 0 : J.POINT) == null ? void 0 : v.at(0)) == null ? void 0 : l.balance) ?? 0 : 0,
|
|
563
564
|
Point: t != null && t.collection ? ((ee = (X = (P = t.collection) == null ? void 0 : P.COIN) == null ? void 0 : X.at(0)) == null ? void 0 : ee.balance) ?? 0 : 0,
|
|
564
565
|
Level: t != null && t.collection ? ((n = (o = (te = t.collection) == null ? void 0 : te.TIER) == null ? void 0 : o.at(0)) == null ? void 0 : n.balance) ?? 0 : 0,
|
|
565
566
|
Tier: t != null && t.collection ? ((R = (w = (F = t.collection) == null ? void 0 : F.TIER) == null ? void 0 : w.at(0)) == null ? void 0 : R.balance) ?? 0 : 0,
|
|
@@ -581,7 +582,7 @@ const Nt = {
|
|
|
581
582
|
)}`
|
|
582
583
|
};
|
|
583
584
|
}
|
|
584
|
-
}, Bt = { class: "flex items-center" }, Ut = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Vt = { class: "px-24 flex flex-col gap-y-16" }, Lt = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Yt = { class: "flex flex-wrap items-center gap-8" }, zt = { class: "fm-typo-en-body-md-600" }, Ot = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, jt = { class: "flex flex-col gap-16 text-center" }, qt = { class: "fm-typo-en-title-sm-800" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
585
|
+
}, Bt = { class: "flex items-center" }, Ut = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Vt = { class: "px-24 flex flex-col gap-y-16" }, Lt = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Yt = { class: "flex flex-wrap items-center gap-8" }, zt = { class: "fm-typo-en-body-md-600" }, Ot = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, jt = { class: "flex flex-col gap-16 text-center" }, qt = { class: "fm-typo-en-title-sm-800" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = "text-fm-color-typo-info bg-fm-color-system-info-100", ko = /* @__PURE__ */ le({
|
|
585
586
|
__name: "Segment",
|
|
586
587
|
setup(t) {
|
|
587
588
|
const { minor: f } = Re, { t: c } = pe(), M = Ie(), { mapMemberExportRow: b } = Nt, _ = Ne(), u = ot(), T = W(0);
|
|
@@ -661,7 +662,7 @@ const Nt = {
|
|
|
661
662
|
ae.FmMenuItem,
|
|
662
663
|
{
|
|
663
664
|
onClick: async (n) => {
|
|
664
|
-
n.stopPropagation(),
|
|
665
|
+
n.stopPropagation(), J(o.row.original);
|
|
665
666
|
}
|
|
666
667
|
},
|
|
667
668
|
{
|
|
@@ -699,7 +700,7 @@ const Nt = {
|
|
|
699
700
|
]);
|
|
700
701
|
}
|
|
701
702
|
}
|
|
702
|
-
], y = W(null), { tableMeta: p, rowData: g, debouncedFetchData:
|
|
703
|
+
], y = W(null), { tableMeta: p, rowData: g, debouncedFetchData: S } = Fe(
|
|
703
704
|
z.readAll
|
|
704
705
|
), j = O(() => g.value.length === 0 ? !1 : Ve.some(
|
|
705
706
|
(o) => !g.value.some((n) => n.defaultKey === o)
|
|
@@ -725,7 +726,7 @@ const Nt = {
|
|
|
725
726
|
async function I() {
|
|
726
727
|
await f(
|
|
727
728
|
async () => {
|
|
728
|
-
await z.startDefaultSegments(), await
|
|
729
|
+
await z.startDefaultSegments(), await S({ pageSize: 10, pageIndex: 0 });
|
|
729
730
|
},
|
|
730
731
|
{
|
|
731
732
|
message: c(
|
|
@@ -740,7 +741,7 @@ const Nt = {
|
|
|
740
741
|
async function G(o) {
|
|
741
742
|
await Pe.remove(`Are you sure you want to remove ${o.name}?`) && await f(
|
|
742
743
|
async () => {
|
|
743
|
-
await z.delete(o._id), await
|
|
744
|
+
await z.delete(o._id), await S({ pageSize: 10, pageIndex: 0 });
|
|
744
745
|
},
|
|
745
746
|
{
|
|
746
747
|
message: `Removing ${o.name}`,
|
|
@@ -748,7 +749,7 @@ const Nt = {
|
|
|
748
749
|
}
|
|
749
750
|
);
|
|
750
751
|
}
|
|
751
|
-
async function
|
|
752
|
+
async function J(o) {
|
|
752
753
|
const n = {
|
|
753
754
|
sortBy: "_id",
|
|
754
755
|
descending: !1,
|
|
@@ -815,8 +816,8 @@ const Nt = {
|
|
|
815
816
|
action: "View",
|
|
816
817
|
onAction: async () => {
|
|
817
818
|
await u.push({
|
|
818
|
-
name:
|
|
819
|
-
query: { type: [
|
|
819
|
+
name: Se["$connect-QUEUE"],
|
|
820
|
+
query: { type: [ye.enum.SEGMENTATION_IMPORTED] }
|
|
820
821
|
});
|
|
821
822
|
}
|
|
822
823
|
});
|
|
@@ -825,7 +826,7 @@ const Nt = {
|
|
|
825
826
|
await z.update(o._id, R);
|
|
826
827
|
} else
|
|
827
828
|
await z.create(o);
|
|
828
|
-
await
|
|
829
|
+
await S({ pageSize: 10, pageIndex: 0 }), (n = y.value) == null || n.hideSheet();
|
|
829
830
|
},
|
|
830
831
|
{
|
|
831
832
|
message: "Saving segment",
|
|
@@ -875,8 +876,8 @@ const Nt = {
|
|
|
875
876
|
break;
|
|
876
877
|
case "queue":
|
|
877
878
|
u.push({
|
|
878
|
-
name:
|
|
879
|
-
query: { type: [
|
|
879
|
+
name: Se["$connect-QUEUE"],
|
|
880
|
+
query: { type: [ye.enum.SEGMENTATION_IMPORTED] }
|
|
880
881
|
});
|
|
881
882
|
break;
|
|
882
883
|
case "start-default-segments":
|
|
@@ -892,9 +893,9 @@ const Nt = {
|
|
|
892
893
|
search: void 0,
|
|
893
894
|
descending: !1
|
|
894
895
|
});
|
|
895
|
-
T.value = o.totalResources ?? 0, await
|
|
896
|
+
T.value = o.totalResources ?? 0, await S({ pageSize: 10, pageIndex: 0 }), await M.readPremium(), await M.readLocations();
|
|
896
897
|
}), (o, n) => {
|
|
897
|
-
const F =
|
|
898
|
+
const F = x("FmPill"), w = x("FmPageHead"), R = x("FmChip"), H = x("FmIcon"), L = x("FmMenuItem"), oe = x("FmMenu"), ne = x("FmListItem"), C = x("FmList"), N = x("FmButton"), Q = x("FmCard");
|
|
898
899
|
return r(), k(Z, null, [
|
|
899
900
|
d(w, {
|
|
900
901
|
title: "Segments",
|
|
@@ -923,7 +924,7 @@ const Nt = {
|
|
|
923
924
|
onRowClick: n[1] || (n[1] = (h) => {
|
|
924
925
|
l(h.original);
|
|
925
926
|
}),
|
|
926
|
-
onPageChange: e(
|
|
927
|
+
onPageChange: e(S)
|
|
927
928
|
}, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onPageChange"]),
|
|
928
929
|
d(C, { class: "w-full hidden xs:!block" }, {
|
|
929
930
|
default: $(() => [
|
|
@@ -942,7 +943,7 @@ const Nt = {
|
|
|
942
943
|
class: ce(be),
|
|
943
944
|
label: e(c)("connect.loyalty.segment.default_segments.system"),
|
|
944
945
|
compact: ""
|
|
945
|
-
}, null, 8, ["label"])) :
|
|
946
|
+
}, null, 8, ["label"])) : K("", !0)
|
|
946
947
|
]),
|
|
947
948
|
s("div", Ot, D(i(h.memberCount)) + "% of customers ", 1)
|
|
948
949
|
])
|
|
@@ -956,9 +957,9 @@ const Nt = {
|
|
|
956
957
|
d(L, {
|
|
957
958
|
class: "fm-typo-en-body-md-400",
|
|
958
959
|
label: "Export",
|
|
959
|
-
"onUpdate:modelValue": (Y) => Y &&
|
|
960
|
+
"onUpdate:modelValue": (Y) => Y && J(h)
|
|
960
961
|
}, null, 8, ["onUpdate:modelValue"]),
|
|
961
|
-
E(h) ?
|
|
962
|
+
E(h) ? K("", !0) : (r(), V(L, {
|
|
962
963
|
key: 0,
|
|
963
964
|
class: "text-fm-color-typo-error fm-typo-en-body-md-400",
|
|
964
965
|
label: "Remove",
|
|
@@ -1010,5 +1011,5 @@ const Nt = {
|
|
|
1010
1011
|
}
|
|
1011
1012
|
});
|
|
1012
1013
|
export {
|
|
1013
|
-
|
|
1014
|
+
ko as default
|
|
1014
1015
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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 F, createElementVNode as p, toDisplayString as q, normalizeClass as A, Fragment as x, renderList as S, createCommentVNode as B } from "vue";
|
|
2
|
-
import { F as D } from "./app-
|
|
3
|
-
import "./index-
|
|
4
|
-
import { c as E } from "./object-
|
|
2
|
+
import { F as D } from "./app-B23RANXL.js";
|
|
3
|
+
import "./index-BmmFSQPd.js";
|
|
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",
|
|
7
7
|
props: {
|
|
@@ -1,17 +1,17 @@
|
|
|
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-DuZVM_Ow.js";
|
|
3
|
+
import { p as Z } from "./plugins-XAhAFHmZ.js";
|
|
4
4
|
import { u as q } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { m as z } from "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import { Z as d } from "./zod-
|
|
12
|
-
import { z as Y } from "./app-
|
|
13
|
-
import { u as j } from "./vue-i18n-
|
|
14
|
-
import { c as J } from "./campaign
|
|
5
|
+
import { m as z } from "./index-txVWLdtz.js";
|
|
6
|
+
import { b as G } from "./index-B9-jeiQR.js";
|
|
7
|
+
import "./index-CA09A75h.js";
|
|
8
|
+
import "./index-BmmFSQPd.js";
|
|
9
|
+
import "./index-DvHLsdIR.js";
|
|
10
|
+
import "./index-BWHk6oqv.js";
|
|
11
|
+
import { Z as d } from "./zod-D3ciRzE4.js";
|
|
12
|
+
import { z as Y } from "./app-B23RANXL.js";
|
|
13
|
+
import { u as j } from "./vue-i18n-D8NX5Rry.js";
|
|
14
|
+
import { c as J } from "./campaign-CwlWx58O.js";
|
|
15
15
|
const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-400" }, W = { class: "flex items-center gap-8" }, fe = /* @__PURE__ */ L({
|
|
16
16
|
__name: "SendCollectionSheet",
|
|
17
17
|
emits: ["success"],
|
|
@@ -1,11 +1,11 @@
|
|
|
1
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
2
|
import { J as Q } from "./JsonViewer-v8_C7l5N.js";
|
|
3
3
|
import { _ as F } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
|
|
4
|
-
import { u as W } from "./loading-
|
|
4
|
+
import { u as W } from "./loading-DuZVM_Ow.js";
|
|
5
5
|
import { u as X } from "./app-wDQR6dpb.js";
|
|
6
|
-
import { l as Y } from "./lodash-
|
|
7
|
-
import { m as Z } from "./index-
|
|
8
|
-
import { c as ee } from "./campaign
|
|
6
|
+
import { l as Y } from "./lodash-DqQem5rZ.js";
|
|
7
|
+
import { m as Z } from "./index-txVWLdtz.js";
|
|
8
|
+
import { c as ee } from "./campaign-CwlWx58O.js";
|
|
9
9
|
const ae = { class: "space-y-16" }, te = { class: "fm-typo-en-body-md-600" }, oe = { class: "flex items-center justify-end" }, le = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "basis-72 bg-white flex items-center justify-between px-24 pt-6 border-t border-fm-color-border"
|