@feedmepos/mf-connect 0.1.38-beta.94 → 0.1.38-beta.96
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-CqvoyDly.js → Analytic-Cl6MRZ5Y.js} +13 -13
- package/dist/{App-DPy72nqL.js → App-D6xNQhUA.js} +7 -7
- package/dist/{AuditLogs-EfyvoZHQ.js → AuditLogs-Ymb_HHtq.js} +9 -9
- package/dist/{Bin-CMtvK3KF.js → Bin-BkpkM6ds.js} +8 -8
- package/dist/{Broadcast-CxmuwQZ0.js → Broadcast-CDVNwfvW.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-h2clGCR2.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BcmEV0Qj.js} +6 -6
- package/dist/{Card-SalQFh8l.js → Card-Com7aqIL.js} +18 -18
- package/dist/{Collections-DZUNnG9S.js → Collections-C4Vp9gey.js} +7 -7
- package/dist/{Credit-BJRXJk5Y.js → Credit-D1dvIX_a.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BqKXIKAC.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang---FQZgB2.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B1CHu12d.js → EffectSheet.vue_vue_type_style_index_0_lang-BbkFC48t.js} +6 -6
- package/dist/{Experience-Daga1Hxh.js → Experience-B9YZ6hGI.js} +9 -9
- package/dist/{FileSaver.min-BIJAQv02.js → FileSaver.min-li5SvE8x.js} +1 -1
- package/dist/{Game-CIq8fmpC.js → Game-DwISe-aL.js} +10 -10
- package/dist/{Grab-CbCuxPZ_.js → Grab-B5gvcLPP.js} +8 -8
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BJwOszse.js → ImageInput.vue_vue_type_script_setup_true_lang-Dxiv-yo0.js} +1 -1
- package/dist/{Index-B0w6zmiz.js → Index-ak_lCZcK.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CnF54xhU.js → LocationPicker.vue_vue_type_script_setup_true_lang-Dp-b99-m.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BECBSkp3.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CF7Xpixl.js} +1 -1
- package/dist/{MainLayout-Dmu6GcED.js → MainLayout-3xAykCh5.js} +1 -1
- package/dist/{Marketing-D_cLVYyl.js → Marketing-D7LWPCfj.js} +4 -4
- package/dist/{MarketingMaterialEdit-DhqvYUjN.js → MarketingMaterialEdit-Lk-kAYh1.js} +6 -6
- package/dist/{Member-VQoMxVJz.js → Member-Y82TPJ3u.js} +11 -11
- package/dist/{MemberList-wvElWZpi.js → MemberList-_UigIkgM.js} +26 -26
- package/dist/{MemberTransactions-SLmE50Lz.js → MemberTransactions-CFa4oc1E.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang--Sx06xLJ.js → MessageInput.vue_vue_type_script_setup_true_lang-3a4hCFiG.js} +3616 -3613
- package/dist/{Mission-DrFxGVba.js → Mission-DsohRaqf.js} +10 -10
- package/dist/{Overview-CepbVHp5.js → Overview-CAbGhHgk.js} +18 -18
- package/dist/{Point-B2toiZyR.js → Point-DnfudGK3.js} +9 -9
- package/dist/{Promotion-YxMtus5E.js → Promotion-C_v4P8Wy.js} +10 -10
- package/dist/{Queue-CLFz6L4o.js → Queue-CFSdepKM.js} +10 -10
- package/dist/{Record-PmddgHd_.js → Record-kD24ZBO3.js} +9 -9
- package/dist/{Review-D6iAhcun.js → Review-DmSc7jiO.js} +4 -4
- package/dist/{ReviewFacebookCallback-B8n1Lg7N.js → ReviewFacebookCallback-DM8oc8ex.js} +4 -4
- package/dist/{ReviewGoogleCallback-B0PCdXQ2.js → ReviewGoogleCallback-BGRI0sGj.js} +4 -4
- package/dist/{Reward-DwzMcovH.js → Reward-Crxk5lfq.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DQLOD23t.js → RewardGroup.vue_vue_type_script_setup_true_lang-C847CpoZ.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-vUdirqlz.js → RuleGroup.vue_vue_type_script_setup_true_lang-CZkiW0Ge.js} +14 -14
- package/dist/{Segment-DXE4ErvT.js → Segment-CK7XhcK0.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BBTu9ZDv.js → SelectItems.vue_vue_type_script_setup_true_lang-BOB11YVT.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6A64Cs_.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B0r4-pZE.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B2YE-JF1.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DDq8hgos.js} +4 -4
- package/dist/{Setting-BzFPbaMK.js → Setting-DsH-2duN.js} +498 -490
- package/dist/{SettingAdvertisements-C5lfJOHc.js → SettingAdvertisements-C7vHq0PB.js} +12 -12
- package/dist/{Store-9ubSP7i2.js → Store-BVGl1725.js} +21 -21
- package/dist/{StoreRewards-BeKcvd4x.js → StoreRewards-DIe7iX8x.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DuuKlvqu.js → StoreTransactions.vue_vue_type_script_setup_true_lang-D9zAtQbf.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C_KQPFfg.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CMcI_iJz.js} +2 -2
- package/dist/{Tier-Dn6QFmFz.js → Tier-BS4NiJp1.js} +23 -23
- package/dist/{Title-DjsjAmmo.js → Title-DXrARWGW.js} +20 -20
- package/dist/{Transaction-j69T_jnU.js → Transaction-Dgh3T8cb.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-u0K_N_7n.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DZdPLnB9.js} +6 -6
- package/dist/{Voucher-C8iuuHUB.js → Voucher-D3l4ZTrh.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-D2uORhE-.js → VoucherEditor.vue_vue_type_script_setup_true_lang-563EURuF.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-4CeykyPW.js → ZodTextField.vue_vue_type_script_setup_true_lang-FpRWchov.js} +2 -2
- package/dist/{app-CiPhkfTa.js → app-C0tPGrWs.js} +51 -51
- package/dist/app.js +1 -1
- package/dist/{business-DbZr47-M.js → business-CLWXU6f0.js} +1 -1
- package/dist/{campaign-CZEJm6Df.js → campaign-DKgeRKw7.js} +8 -8
- package/dist/{campaign-B3TxcS8i.js → campaign-i8P3kLCP.js} +1 -1
- package/dist/{campaign.enum-C85TmsKa.js → campaign.enum-DVLPlZG_.js} +1 -1
- package/dist/{campaign.fn-CEzoUdRF.js → campaign.fn-Db-gV0ZF.js} +218 -218
- package/dist/{collectible.enum-CCCBBcl7.js → collectible.enum-D0MHFeO0.js} +1 -1
- package/dist/{collection.fn-DUtEtPB3.js → collection.fn-DIqyf2rF.js} +2 -2
- package/dist/{dto-DlzmM1L1.js → dto-BxMBmLeL.js} +17 -17
- package/dist/{duplicateCampaign-OQo8zrAK.js → duplicateCampaign-BZAjHZ7v.js} +2 -2
- package/dist/{effect-Dxlhartf.js → effect-B5Ubds7b.js} +1 -1
- package/dist/{email-addresses-DvYwJiqs.js → email-addresses-D2htab8s.js} +2 -2
- package/dist/{export-DoWh2do7.js → export-CzUa2SAK.js} +3 -3
- package/dist/{helper-nbRQAX8c.js → helper-Ck2PaaCy.js} +1 -1
- package/dist/{index-uf8-OCbs.js → index-3MDs-2Hs.js} +1 -1
- package/dist/{index-6BCLe67S.js → index-9Mpu-FQJ.js} +3 -3
- package/dist/{index-tdt2oKrL.js → index-BVktkUxe.js} +6 -6
- package/dist/{index-CwZyQRca.js → index-BqRRzdVz.js} +3 -3
- package/dist/{index-CHPHG0su.js → index-C53E2Vf9.js} +2 -2
- package/dist/{index-CfY3RfIR.js → index-CARYxl4y.js} +1 -1
- package/dist/{index-B_wWEEtv.js → index-ClQoygUj.js} +1 -1
- package/dist/{index-Dbp4G2Ow.js → index-CmfLjBdM.js} +1 -1
- package/dist/{index-B9i8Mp9s.js → index-DI-wKZW-.js} +3 -3
- package/dist/{index-BDrLdZGR.js → index-DupSw3-s.js} +1 -1
- package/dist/{index-VNBY1DPS.js → index-LyXxYzdC.js} +1 -1
- package/dist/{index-D9OUhaR6.js → index-VxK_HA7O.js} +4 -4
- package/dist/{index-2BNcX0q7.js → index-oS9ZmKdF.js} +8 -1
- package/dist/{index.esm2017-DFSyi73f.js → index.esm2017-Dyk_bx2r.js} +37 -37
- package/dist/{loading-Bgl6Kdyv.js → loading-ds3TASHT.js} +1 -1
- package/dist/{lodash-BBeCTooL.js → lodash-DTORdAAU.js} +1 -1
- package/dist/{membership-DoF-XzA8.js → membership-jQlk53aS.js} +3 -3
- package/dist/{money-BxEc8XuQ.js → money-IOz-942z.js} +1 -1
- package/dist/{number-BXxUToPx.js → number-CWOqc967.js} +1 -1
- package/dist/{objectid-BaG_7-dd.js → objectid-CZkezEFg.js} +9 -9
- package/dist/{plugins-CnQ_2wCo.js → plugins-jbR-lWYo.js} +3 -3
- package/dist/{reward-BJRhYB_i.js → reward-DVHTU03b.js} +1 -1
- package/dist/{rule-CHQIMtow.js → rule-9BGK8kms.js} +3 -3
- package/dist/rule-builder-CjeKzJC7.js +126 -0
- package/dist/{template-Dzqh9sny.js → template-DGwpx6Lh.js} +6 -6
- package/dist/{timezone-raa8H06N.js → timezone-Dxm8TTon.js} +2 -2
- package/dist/{trigger-DqTXJT7G.js → trigger-xVvU9McN.js} +5 -5
- package/dist/{useMarketingMaterialActions-DuZVslnQ.js → useMarketingMaterialActions-BNzzZLfT.js} +3 -3
- package/dist/{usePagination-DheXOV9k.js → usePagination-AmQfKdEF.js} +1 -1
- package/dist/{user-CU_zbdpo.js → user-D_fPAb5I.js} +1 -1
- package/dist/{vue-i18n-dj0t6OGT.js → vue-i18n-DDcr-miL.js} +419 -419
- package/dist/{xlsx-A3olJTvH.js → xlsx-BzbVIp2x.js} +1 -1
- package/dist/{zod-Q41nFlsc.js → zod-BRHadijq.js} +1 -1
- package/package.json +2 -2
- package/dist/rule-builder-Dh6Yl7NB.js +0 -102
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { _ as l, l as u } from "./index-DI-wKZW-.js";
|
|
2
|
+
function i(n, t) {
|
|
3
|
+
let e = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
4
|
+
const r = s.length;
|
|
5
|
+
for (let o = 0; o < n; o++)
|
|
6
|
+
e += s.charAt(Math.floor(Math.random() * r));
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
function a(n) {
|
|
10
|
+
return !n.property && "rules" in n;
|
|
11
|
+
}
|
|
12
|
+
function p(n) {
|
|
13
|
+
return "property" in n && !!n.property;
|
|
14
|
+
}
|
|
15
|
+
const d = "g_schedule";
|
|
16
|
+
function f(n) {
|
|
17
|
+
return n.split(/\r?\n/).filter((t) => !t.trim().toUpperCase().startsWith("DTSTART")).join(`
|
|
18
|
+
`).trim();
|
|
19
|
+
}
|
|
20
|
+
function m(n, t = !1) {
|
|
21
|
+
const e = l.cloneDeep(n);
|
|
22
|
+
if (p(e)) {
|
|
23
|
+
const s = e.conditions;
|
|
24
|
+
return !t && s && typeof s._rrule == "string" && (s._rrule = f(
|
|
25
|
+
s._rrule
|
|
26
|
+
)), e;
|
|
27
|
+
}
|
|
28
|
+
if (a(e))
|
|
29
|
+
for (const s in e.rules) {
|
|
30
|
+
const r = e.rules[s], o = t || a(r) && r.name === d;
|
|
31
|
+
e.rules[s] = m(
|
|
32
|
+
r,
|
|
33
|
+
o
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
return e;
|
|
37
|
+
}
|
|
38
|
+
class c {
|
|
39
|
+
static scaffoldGroup(t) {
|
|
40
|
+
return {
|
|
41
|
+
name: t ?? `g_${i(4)}`,
|
|
42
|
+
rules: {},
|
|
43
|
+
logic: ""
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static scaffoldEntry(t) {
|
|
47
|
+
return {
|
|
48
|
+
name: `r_${i(4)}`,
|
|
49
|
+
property: t ?? "",
|
|
50
|
+
conditions: {},
|
|
51
|
+
negated: !1
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
static constructEntry(t, e, s, r) {
|
|
55
|
+
return {
|
|
56
|
+
name: r ?? `e_${i(4)}`,
|
|
57
|
+
property: t,
|
|
58
|
+
conditions: {
|
|
59
|
+
[e]: s
|
|
60
|
+
},
|
|
61
|
+
negated: !1
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
static getLogic(t) {
|
|
65
|
+
return (t.logic ?? "").includes("||") ? "||" : "&&";
|
|
66
|
+
}
|
|
67
|
+
static constructLogic(t, e) {
|
|
68
|
+
const s = e ?? c.getLogic(t);
|
|
69
|
+
return Object.entries(t.rules).map(([r, o]) => a(o) ? r : `${o.negated ? "!" : ""}${r}`).join(` ${s} `);
|
|
70
|
+
}
|
|
71
|
+
static setRuleToGroup(t, e, s) {
|
|
72
|
+
let r = u.cloneDeep(t);
|
|
73
|
+
return Object.keys(r.rules).length === 0 && (r = c.scaffoldGroup(r.name)), Array.isArray(e) ? e.forEach((o) => {
|
|
74
|
+
r.rules[o.name] = o;
|
|
75
|
+
}) : r.rules[e.name] = e, r.logic = c.constructLogic(r, s), r;
|
|
76
|
+
}
|
|
77
|
+
static removeEntry(t, e, s) {
|
|
78
|
+
const r = u.cloneDeep(t);
|
|
79
|
+
return delete r.rules[e], r.logic = c.constructLogic(r, s), r;
|
|
80
|
+
}
|
|
81
|
+
static constructRule(t) {
|
|
82
|
+
switch (t.type) {
|
|
83
|
+
case "timeframe": {
|
|
84
|
+
const e = t.property, s = c.scaffoldGroup("timeframe"), r = [];
|
|
85
|
+
return (t.start || t.end) && r.push(
|
|
86
|
+
c.constructEntry(e, "_isBetween", {
|
|
87
|
+
start: t.start || void 0,
|
|
88
|
+
end: t.end || void 0
|
|
89
|
+
})
|
|
90
|
+
), c.setRuleToGroup(s, r, "&&");
|
|
91
|
+
}
|
|
92
|
+
default:
|
|
93
|
+
throw Error("invalid config type");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
static getRules(t) {
|
|
97
|
+
return t && "rules" in t ? Object.values(t.rules) : [];
|
|
98
|
+
}
|
|
99
|
+
static simplify(t) {
|
|
100
|
+
const [e] = Object.entries(t.conditions);
|
|
101
|
+
return e[0], {
|
|
102
|
+
property: t.property,
|
|
103
|
+
operator: e[0],
|
|
104
|
+
equator: e[1]
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
static isRuleExceed(t, e) {
|
|
108
|
+
const r = Object.keys(t.rules).length + (Array.isArray(e) ? e.length : 1);
|
|
109
|
+
if (r > 10)
|
|
110
|
+
throw new y(10, r);
|
|
111
|
+
return !0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
class y extends Error {
|
|
115
|
+
constructor(t, e) {
|
|
116
|
+
super(
|
|
117
|
+
`Maximum of ${t} rules allowed per group. Attempted to add ${e} rules.`
|
|
118
|
+
), this.name = "MaxRulesExceededError";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
export {
|
|
122
|
+
c as R,
|
|
123
|
+
p as a,
|
|
124
|
+
a as i,
|
|
125
|
+
m as s
|
|
126
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as V, openBlock as r, createBlock as C, resolveDynamicComponent as B, unref as e, ref as E, computed as j, onMounted as P, resolveComponent as d, withCtx as u, createElementVNode as l, createElementBlock as w, createVNode as a, normalizeClass as k, createTextVNode as S, toDisplayString as f, Fragment as L, renderList as N, createCommentVNode as q } from "vue";
|
|
2
|
-
import { u as J } from "./campaign-
|
|
2
|
+
import { u as J } from "./campaign-i8P3kLCP.js";
|
|
3
3
|
import { useDialog as M } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as A } from "./index-
|
|
5
|
-
import { _ as G } from "./lodash-
|
|
6
|
-
import { C as H } from "./campaign-
|
|
4
|
+
import { F as A } from "./index-BVktkUxe.js";
|
|
5
|
+
import { _ as G } from "./lodash-DTORdAAU.js";
|
|
6
|
+
import { C as H } from "./campaign-DKgeRKw7.js";
|
|
7
7
|
import { J as K } from "./JsonViewer-v8_C7l5N.js";
|
|
8
|
-
import { u as Q } from "./vue-i18n-
|
|
9
|
-
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang
|
|
8
|
+
import { u as Q } from "./vue-i18n-DDcr-miL.js";
|
|
9
|
+
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang---FQZgB2.js";
|
|
10
10
|
const U = /* @__PURE__ */ V({
|
|
11
11
|
__name: "CampaignChip",
|
|
12
12
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as q0, c as o0, g as W0 } from "./app-
|
|
1
|
+
import { a as q0, c as o0, g as W0 } from "./app-C0tPGrWs.js";
|
|
2
2
|
import { m as d0 } from "./moment-D7p2TMB-.js";
|
|
3
|
-
import { e as n } from "./index-
|
|
3
|
+
import { e as n } from "./index-C53E2Vf9.js";
|
|
4
4
|
var _ = { exports: {} }, j = { exports: {} };
|
|
5
5
|
const R0 = /* @__PURE__ */ q0(d0);
|
|
6
6
|
(function(S) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as c, openBlock as u, createBlock as p, unref as r } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { R as i } from "./rule-builder-
|
|
4
|
-
import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { m as e, K as d } from "./index-
|
|
6
|
-
import { i as n } from "./plugins-
|
|
2
|
+
import "./index-DI-wKZW-.js";
|
|
3
|
+
import { R as i } from "./rule-builder-CjeKzJC7.js";
|
|
4
|
+
import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CZkiW0Ge.js";
|
|
5
|
+
import { m as e, K as d } from "./index-VxK_HA7O.js";
|
|
6
|
+
import { i as n } from "./plugins-jbR-lWYo.js";
|
|
7
7
|
const L = /* @__PURE__ */ c({
|
|
8
8
|
__name: "BillRuleGroup",
|
|
9
9
|
props: {
|
package/dist/{useMarketingMaterialActions-DuZVslnQ.js → useMarketingMaterialActions-BNzzZLfT.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as o, g as c, b as w } from "./index-
|
|
1
|
+
import { S as o, g as c, b as w } from "./index-C53E2Vf9.js";
|
|
2
2
|
import { useAppStore as h, initializeRemyChat as y } from "@feedmepos/mf-remy-panel";
|
|
3
3
|
import { onMounted as k } from "vue";
|
|
4
|
-
import { u as I } from "./vue-i18n-
|
|
4
|
+
import { u as I } from "./vue-i18n-DDcr-miL.js";
|
|
5
5
|
import { useSnackbar as M } from "@feedmepos/ui-library";
|
|
6
|
-
import { c as v } from "./plugins-
|
|
6
|
+
import { c as v } from "./plugins-jbR-lWYo.js";
|
|
7
7
|
const l = (e) => w(`businesses/${e}/marketing-materials`), j = {
|
|
8
8
|
async createMarketingMaterial(e) {
|
|
9
9
|
const t = o.getBusinessId();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as P, computed as v, ref as w, onMounted as $, watch as M, resolveComponent as D, openBlock as u, createElementBlock as p, createVNode as r, unref as n, createElementVNode as s, createCommentVNode as N, toDisplayString as b } from "vue";
|
|
2
2
|
import { _ as S } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
|
|
3
|
-
import { l as E } from "./lodash-
|
|
3
|
+
import { l as E } from "./lodash-DTORdAAU.js";
|
|
4
4
|
const R = { class: "" }, A = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "w-full flex flex-col gap-16 items-center py-16"
|