@feedmepos/mf-connect 0.1.46-prod → 0.1.47-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.
Files changed (89) hide show
  1. package/dist/{Analytic--PTYdTCz.js → Analytic-AnuRQDA4.js} +11 -11
  2. package/dist/{App-CCFCux3P.js → App-DP_jCyej.js} +6 -6
  3. package/dist/{Bin-D3mLTCYx.js → Bin-tL4lF6PB.js} +8 -8
  4. package/dist/{Broadcast-17Aiufxx.js → Broadcast-T2a5tN8R.js} +9 -9
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CMVquBaq.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BgPJCH02.js} +6 -6
  6. package/dist/{Card-Bx26e5ll.js → Card-Bi-ODgCc.js} +16 -16
  7. package/dist/{Collections-B_lm_p0s.js → Collections-JHWotZ1I.js} +7 -7
  8. package/dist/{Credit-Bfdh01Hf.js → Credit-DQQCXqS0.js} +9 -9
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DWNvRorl.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-hxuYl-OQ.js} +29 -29
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CkYlghNU.js → EffectSheet.vue_vue_type_style_index_0_lang-ECkaQxuI.js} +6 -6
  11. package/dist/{Experience-DScp4H4M.js → Experience-DzTV21vX.js} +9 -9
  12. package/dist/{Game-Cn2BXwaA.js → Game-DUCx2Dl9.js} +10 -10
  13. package/dist/{Index-BATr5dcp.js → Index-zynxjOOr.js} +10 -10
  14. package/dist/{Marketing-B6lhSaKk.js → Marketing-BBHDVRkR.js} +6 -6
  15. package/dist/{Member-Cr_Ehw_n.js → Member-B09bj6C3.js} +10 -10
  16. package/dist/{MemberList-B5ogB2E6.js → MemberList-DLSLGQ02.js} +25 -25
  17. package/dist/{MemberTransactions-YlC-iE41.js → MemberTransactions-DERMSs7o.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-nTBRadZx.js → MessageInput.vue_vue_type_script_setup_true_lang-CAADF6vv.js} +8 -8
  19. package/dist/{Mission-Bddme86f.js → Mission-DAv0e_ZH.js} +10 -10
  20. package/dist/{Overview-BGOM1IKg.js → Overview-D0rBTEtP.js} +18 -18
  21. package/dist/{Point-vcnTW6lY.js → Point-BeBYi1BT.js} +9 -9
  22. package/dist/{Promotion-DuCvytdc.js → Promotion-BSPU5hP9.js} +10 -10
  23. package/dist/{Queue-Cuw7WTP_.js → Queue-C5IFJ3iE.js} +10 -10
  24. package/dist/{Record-Dc6BPAGi.js → Record-CoFSrv7j.js} +8 -8
  25. package/dist/{Reward-8MFxn8we.js → Reward-COIOBOl-.js} +15 -15
  26. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-8k-usg9S.js → RewardGroup.vue_vue_type_script_setup_true_lang-B9Tl7hqv.js} +11 -11
  27. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DRCwMmo5.js → RuleGroup.vue_vue_type_script_setup_true_lang-BzsYC3k2.js} +591 -580
  28. package/dist/{Segment-BJm5XtlX.js → Segment-DF5SrucQ.js} +227 -227
  29. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-B2LYvXlN.js → SelectItems.vue_vue_type_script_setup_true_lang-BSSfQu3F.js} +2 -2
  30. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaFLnq7P.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DoL_gTKy.js} +11 -11
  31. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DLAqn-0P.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cijyol1Q.js} +3 -3
  32. package/dist/{Setting-CUyfrLYA.js → Setting-Dt0sG_hk.js} +11 -11
  33. package/dist/{Store-DdBnVwnq.js → Store-E2_0EIy8.js} +19 -19
  34. package/dist/{StoreRewards-B_yzVh4Z.js → StoreRewards-DuSsWnTE.js} +13 -13
  35. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BPPoaGqc.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DuatzcJ8.js} +19 -19
  36. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D0ae_2E5.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D_r8I0h7.js} +1 -1
  37. package/dist/{Tier-BpQ8DXK4.js → Tier-CEEHsXkC.js} +20 -20
  38. package/dist/{Title-D6jghz1v.js → Title-BMAWlGeW.js} +19 -19
  39. package/dist/{Transaction-BQWs-6G7.js → Transaction-CLsceq-O.js} +2 -2
  40. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C2dJuE64.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CFLekn9O.js} +6 -6
  41. package/dist/{Voucher-DnL_66X2.js → Voucher-Cd293WYY.js} +13 -13
  42. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-naUCARDO.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Qc5cCqh5.js} +10 -10
  43. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-yj2c4i_u.js → ZodTextField.vue_vue_type_script_setup_true_lang-B8HHh8HU.js} +1 -1
  44. package/dist/{app-Cemiie6P.js → app-aVXsWATU.js} +30 -30
  45. package/dist/{app-Cwax62X-.js → app-jRT7vsk_.js} +1 -1
  46. package/dist/app.js +1 -1
  47. package/dist/{business-BTJVFnrW.js → business-DVlHPzaL.js} +1 -1
  48. package/dist/{campaign-C34w0eci.js → campaign-D9KeUWA7.js} +2 -2
  49. package/dist/{campaign-XX6bwpYj.js → campaign-l-u9A514.js} +9 -9
  50. package/dist/{campaign.enum-CTMwHgAV.js → campaign.enum-Cud82tES.js} +1 -1
  51. package/dist/{campaign.fn-nJl0vZum.js → campaign.fn-C-UojhHv.js} +140 -140
  52. package/dist/{collectible.enum-DpJV0kLI.js → collectible.enum-PrlUDScv.js} +1 -1
  53. package/dist/{collection.fn-D5beOWlp.js → collection.fn-yR-xnV4g.js} +2 -2
  54. package/dist/{dto-CCxjvwZe.js → dto-Cua1OHMY.js} +4 -4
  55. package/dist/{effect-B9ryfTOn.js → effect-B5-eXNEr.js} +1 -1
  56. package/dist/{email-addresses-Bn80jSud.js → email-addresses-BeYh5fr5.js} +1 -1
  57. package/dist/{export-CLB408ho.js → export-BUF4_DUz.js} +3 -3
  58. package/dist/{helper-DgoAVTVe.js → helper-CGwOThAl.js} +1 -1
  59. package/dist/{index-DsgbkezN.js → index-1BGPM6Uy.js} +1 -1
  60. package/dist/{index-JY8MjiBK.js → index-BLdVWQId.js} +3 -3
  61. package/dist/{index-Djq2lySj.js → index-BmL_b0IR.js} +1 -1
  62. package/dist/{index-FMcRNPk_.js → index-C-d_4n-1.js} +1 -1
  63. package/dist/{index-eiHOH5QM.js → index-CB8iWT_p.js} +1 -1
  64. package/dist/{index-D90Ba87K.js → index-Cl2iYM2F.js} +1 -1
  65. package/dist/{index-DCrV9spQ.js → index-Cx8-ipee.js} +6 -6
  66. package/dist/{index-B2BKFdEy.js → index-D5KIp8ZB.js} +1023 -1023
  67. package/dist/{index-t_4aIo1w.js → index-DNTd-FNx.js} +2 -2
  68. package/dist/{index-KYo_FgI8.js → index-DlFVLRKG.js} +3 -3
  69. package/dist/{index-B9wdSOIQ.js → index-aMDi62-C.js} +1 -1
  70. package/dist/{index-bkL81TwC.js → index-hX2mE0gQ.js} +1 -1
  71. package/dist/{index-Blmkh0Ui.js → index-knuJv0ti.js} +4 -4
  72. package/dist/{index-DUtQaOO2.js → index-ng2IXlL1.js} +1 -1
  73. package/dist/{index.esm2017-toVKAoKi.js → index.esm2017-D8stWFci.js} +1 -1
  74. package/dist/{loading-vrEcUlJa.js → loading-c4b7n9Xp.js} +1 -1
  75. package/dist/{membership-ChiyKtoA.js → membership-oBIs4sbL.js} +3 -3
  76. package/dist/{money-tOAuywfS.js → money-AP24H0gk.js} +1 -1
  77. package/dist/{number-DiXSJR50.js → number-CwsAYC_2.js} +1 -1
  78. package/dist/{objectid-C856JGM4.js → objectid-CVDLTdni.js} +5 -5
  79. package/dist/{plugins-p8ID0wqZ.js → plugins-Dn7JDHi7.js} +2 -2
  80. package/dist/{reward-Bo4HsVNH.js → reward-4wdoZeXw.js} +1 -1
  81. package/dist/{rule-LDThYbT7.js → rule-_OJza6tn.js} +3 -3
  82. package/dist/rule-builder-DmlhHAED.js +93 -0
  83. package/dist/{template-C6cnCLah.js → template-BSQLFHf4.js} +4 -4
  84. package/dist/{trigger-ZyJEZVxL.js → trigger-DC9tDnI2.js} +4 -4
  85. package/dist/{user-WDNaXiRu.js → user-CCVOptFD.js} +1 -1
  86. package/dist/{vue-i18n-BWI3POch.js → vue-i18n--_Wu1nMj.js} +201 -201
  87. package/dist/{xlsx-JDV04zZH.js → xlsx-BVMaOi8M.js} +1 -1
  88. package/package.json +1 -1
  89. package/dist/rule-builder-7iBcFApT.js +0 -89
@@ -1,5 +1,5 @@
1
1
  import { defineStore as n } from "pinia";
2
- import { g as r, S as d, b as o } from "./index-JY8MjiBK.js";
2
+ import { g as r, S as d, b as o } from "./index-BLdVWQId.js";
3
3
  import { ref as i } from "vue";
4
4
  const a = () => {
5
5
  const e = d.getBusinessId();
@@ -1,8 +1,8 @@
1
1
  import { h as S } from "./moment-BWErdI6_.js";
2
2
  import { a as de, b as N, c as y } from "./tslib.es6-BCqqvLQ_.js";
3
- import { u as ee } from "./membership-ChiyKtoA.js";
4
- import { R as B, a as pe } from "./rule-builder-7iBcFApT.js";
5
- import { u as Be } from "./business-BTJVFnrW.js";
3
+ import { u as ee } from "./membership-oBIs4sbL.js";
4
+ import { R as B, a as pe } from "./rule-builder-DmlhHAED.js";
5
+ import { u as Be } from "./business-DVlHPzaL.js";
6
6
  var ue = [
7
7
  "MO",
8
8
  "TU",
@@ -0,0 +1,93 @@
1
+ import { l as u } from "./index-DNTd-FNx.js";
2
+ function a(c, t) {
3
+ let e = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4
+ const r = s.length;
5
+ for (let o = 0; o < c; o++)
6
+ e += s.charAt(Math.floor(Math.random() * r));
7
+ return e;
8
+ }
9
+ function l(c) {
10
+ return !c.property && "rules" in c;
11
+ }
12
+ function y(c) {
13
+ return "property" in c && !!c.property;
14
+ }
15
+ class n {
16
+ static scaffoldGroup(t) {
17
+ return {
18
+ name: t ?? `g_${a(4)}`,
19
+ rules: {},
20
+ logic: ""
21
+ };
22
+ }
23
+ static scaffoldEntry(t) {
24
+ return {
25
+ name: `r_${a(4)}`,
26
+ property: t ?? "",
27
+ conditions: {},
28
+ negated: !1
29
+ };
30
+ }
31
+ static constructEntry(t, e, s, r) {
32
+ return {
33
+ name: r ?? `e_${a(4)}`,
34
+ property: t,
35
+ conditions: {
36
+ [e]: s
37
+ },
38
+ negated: !1
39
+ };
40
+ }
41
+ static getLogic(t) {
42
+ return (t.logic ?? "").includes("||") ? "||" : "&&";
43
+ }
44
+ static constructLogic(t, e) {
45
+ const s = e ?? n.getLogic(t);
46
+ return Object.entries(t.rules).map(([r, o]) => l(o) ? r : `${o.negated ? "!" : ""}${r}`).join(` ${s} `);
47
+ }
48
+ static setRuleToGroup(t, e, s) {
49
+ let r = u.cloneDeep(t);
50
+ Object.keys(r.rules).length === 0 && (r = n.scaffoldGroup(r.name));
51
+ const o = 10;
52
+ if (Object.keys(r.rules).length + (Array.isArray(e) ? e.length : 1) > o)
53
+ throw new Error(`Maximum of ${o} rules allowed per group`);
54
+ return Array.isArray(e) ? e.forEach((i) => {
55
+ r.rules[i.name] = i;
56
+ }) : r.rules[e.name] = e, r.logic = n.constructLogic(r, s), r;
57
+ }
58
+ static removeEntry(t, e, s) {
59
+ const r = u.cloneDeep(t);
60
+ return delete r.rules[e], r.logic = n.constructLogic(r, s), r;
61
+ }
62
+ static constructRule(t) {
63
+ switch (t.type) {
64
+ case "timeframe": {
65
+ const e = t.property, s = n.scaffoldGroup("timeframe"), r = [];
66
+ return (t.start || t.end) && r.push(
67
+ n.constructEntry(e, "_isBetween", {
68
+ start: t.start || void 0,
69
+ end: t.end || void 0
70
+ })
71
+ ), n.setRuleToGroup(s, r, "&&");
72
+ }
73
+ default:
74
+ throw Error("invalid config type");
75
+ }
76
+ }
77
+ static getRules(t) {
78
+ return t && "rules" in t ? Object.values(t.rules) : [];
79
+ }
80
+ static simplify(t) {
81
+ const [e] = Object.entries(t.conditions);
82
+ return e[0], {
83
+ property: t.property,
84
+ operator: e[0],
85
+ equator: e[1]
86
+ };
87
+ }
88
+ }
89
+ export {
90
+ n as R,
91
+ y as a,
92
+ l as i
93
+ };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as D, unref as e, ref as E, computed as I, onMounted as j, resolveComponent as m, withCtx as d, createElementVNode as s, createElementBlock as h, createVNode as a, normalizeClass as w, createTextVNode as T, Fragment as S, renderList as N, toDisplayString as g, createCommentVNode as M } from "vue";
2
- import { u as P } from "./campaign-C34w0eci.js";
2
+ import { u as P } from "./campaign-D9KeUWA7.js";
3
3
  import { useDialog as q } from "@feedmepos/ui-library";
4
- import { F as J } from "./index-DCrV9spQ.js";
5
- import { C as A } from "./collection.fn-D5beOWlp.js";
4
+ import { F as J } from "./index-Cx8-ipee.js";
5
+ import { C as A } from "./collection.fn-yR-xnV4g.js";
6
6
  import { s as V } from "./index-CuvNtC_M.js";
7
7
  import { _ as G } from "./lodash-B5I3zXaY.js";
8
- import { C as H } from "./campaign-XX6bwpYj.js";
8
+ import { C as H } from "./campaign-l-u9A514.js";
9
9
  import { J as U } from "./JsonViewer-v8_C7l5N.js";
10
10
  const K = /* @__PURE__ */ L({
11
11
  __name: "CampaignChip",
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as i, openBlock as m, createBlock as s, unref as n } from "vue";
2
- import "./index-t_4aIo1w.js";
3
- import { R as l } from "./rule-builder-7iBcFApT.js";
4
- import { _ as p } from "./RuleGroup.vue_vue_type_script_setup_true_lang-DRCwMmo5.js";
5
- import { l as e, C as E } from "./index-Blmkh0Ui.js";
2
+ import "./index-DNTd-FNx.js";
3
+ import { R as l } from "./rule-builder-DmlhHAED.js";
4
+ import { _ as p } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BzsYC3k2.js";
5
+ import { l as e, C as E } from "./index-knuJv0ti.js";
6
6
  const O = /* @__PURE__ */ i({
7
7
  __name: "BillRuleGroup",
8
8
  props: {
@@ -1,5 +1,5 @@
1
1
  import { components as p } from "@feedmepos/ui-library";
2
- import { a as f } from "./plugins-p8ID0wqZ.js";
2
+ import { a as f } from "./plugins-Dn7JDHi7.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, n = !1) {
5
5
  return c(