@feedmepos/mf-connect 0.1.30-prod → 0.1.32-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 (90) hide show
  1. package/dist/{Analytic-C_uRY3I5.js → Analytic-DRJEtVnN.js} +11 -11
  2. package/dist/{App-zOAwWGz6.js → App-C1IuGBAJ.js} +7 -7
  3. package/dist/{Bin-CePm_uVx.js → Bin-CM9cU-iH.js} +8 -8
  4. package/dist/{Broadcast-BcRSoknR.js → Broadcast-1Fy8Nob5.js} +9 -9
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-5StwY5c9.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DiAEDcl5.js} +6 -6
  6. package/dist/{Card-Dmyxmub5.js → Card-CnuSjjCj.js} +97 -96
  7. package/dist/{Collections-DiV_e9h-.js → Collections-DAj_A1iu.js} +21 -20
  8. package/dist/{Credit-CkGdHhn2.js → Credit-DLH2GYYz.js} +9 -9
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-SulDMna0.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-C4Sy1K8q.js} +29 -28
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CSY1HXaL.js → EffectSheet.vue_vue_type_style_index_0_lang-D4--kNds.js} +6 -6
  11. package/dist/{Experience-DjsOWpa9.js → Experience-Dgyi4U-L.js} +9 -9
  12. package/dist/FileSaver.min-NlMItPOc.js +74 -0
  13. package/dist/{Game-2_J99uIX.js → Game-VKYjF7hq.js} +10 -10
  14. package/dist/{Index-a1eFJ8i1.js → Index-B0BkKPLD.js} +10 -10
  15. package/dist/{Marketing-Clz0CYrY.js → Marketing-Bzl7m10d.js} +6 -6
  16. package/dist/Member-CDmDoJFr.js +287 -0
  17. package/dist/{MemberList-D-5IP783.js → MemberList-C4l_Q9y1.js} +38 -37
  18. package/dist/{MemberTransactions-B7D_qrLX.js → MemberTransactions-SUlFwOov.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-XhbiT524.js → MessageInput.vue_vue_type_script_setup_true_lang-Buj3xx1j.js} +17 -16
  20. package/dist/{Mission-B7UVVT1j.js → Mission-BriLVrc4.js} +88 -93
  21. package/dist/{Overview-BfZuRgE-.js → Overview-AklJfO0G.js} +64 -63
  22. package/dist/{Point-MGLwWD4B.js → Point-B7VnNPaG.js} +9 -9
  23. package/dist/{Promotion-BrhYslNt.js → Promotion-hlKzzWJD.js} +10 -10
  24. package/dist/{Queue-Bz160bZx.js → Queue-gOxy9cBG.js} +76 -65
  25. package/dist/{Record-DrpOYO01.js → Record-BwWXqFv6.js} +17 -16
  26. package/dist/{Reward-ClX3C1Sp.js → Reward-JKh-M0oD.js} +15 -15
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-0L9iBoC4.js → RewardGroup.vue_vue_type_script_setup_true_lang-DFogiHWh.js} +11 -11
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BlCyumkR.js → RuleGroup.vue_vue_type_script_setup_true_lang-CTOfCYsE.js} +15 -14
  29. package/dist/Segment-BlMx0eoR.js +880 -0
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-D5eLqSso.js → SelectItems.vue_vue_type_script_setup_true_lang-DCsFcqQ5.js} +2 -2
  31. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Cb3yPiSc.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-G01kJeLd.js} +11 -11
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B_RBF59b.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-gUoBLfVo.js} +3 -3
  33. package/dist/{Setting-CgRON4iT.js → Setting-CoKP6Z-F.js} +43 -42
  34. package/dist/{Store-BGbO2NeC.js → Store-CxUagz23.js} +28 -27
  35. package/dist/{StoreRewards-DyCWcVsT.js → StoreRewards-CLSQgaNo.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-ePVWe6Kb.js → StoreTransactions.vue_vue_type_script_setup_true_lang-V4rH3vAQ.js} +26 -25
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DLQOZH-k.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DJ7incG7.js} +1 -1
  38. package/dist/{Tier-B7LRmyHJ.js → Tier-DwTL1xNM.js} +22 -21
  39. package/dist/{Title-DrQaQ7ew.js → Title-DhBL_eYK.js} +19 -19
  40. package/dist/{Transaction-B2M_gPhT.js → Transaction-CRskHsNr.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Bc8cnLBQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DoE7rDgi.js} +6 -6
  42. package/dist/{Voucher-BcVMrpOm.js → Voucher-CxDqASF5.js} +12 -12
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DIfHJ6Sw.js → VoucherEditor.vue_vue_type_script_setup_true_lang-wkihtNI3.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DfinebCV.js → ZodTextField.vue_vue_type_script_setup_true_lang-BeLTXjOv.js} +1 -1
  45. package/dist/{app-BXGrI0oQ.js → app-CTFwjMxq.js} +1 -1
  46. package/dist/{app-Sjl26OK7.js → app-QgT2HXjv.js} +34 -30
  47. package/dist/app.js +1 -1
  48. package/dist/{business-ICKi8JNz.js → business-DhCzKu3V.js} +1 -1
  49. package/dist/{campaign-AiWYrbax.js → campaign-CFggCOe6.js} +9 -9
  50. package/dist/{campaign-BExdhFR9.js → campaign-DAgovrbX.js} +2 -2
  51. package/dist/{campaign.enum-WEt42FO9.js → campaign.enum-pZr63pXN.js} +1 -1
  52. package/dist/{campaign.fn-CHQ63XNa.js → campaign.fn-CM_t1wNu.js} +135 -135
  53. package/dist/{collectible.enum-DFaOnC3D.js → collectible.enum-fbWiJ-v2.js} +1 -1
  54. package/dist/{collection.fn-B3XEjDdU.js → collection.fn-BrbSJ0dj.js} +2 -2
  55. package/dist/{dto-B09V82Pa.js → dto-BcLrcoo_.js} +12 -12
  56. package/dist/{effect-CUcku1wp.js → effect-WVUo2VX0.js} +1 -1
  57. package/dist/{email-addresses-CSpdONTz.js → email-addresses-B8YBttOp.js} +1 -1
  58. package/dist/{export-DJfDtT62.js → export-FilTnKIf.js} +3 -3
  59. package/dist/{helper-CbSsYPpI.js → helper-A-JE89j8.js} +1 -1
  60. package/dist/{index-DsmYdmgu.js → index-BPCfLPV5.js} +1 -1
  61. package/dist/{index-Clj1WSBs.js → index-BSavh-ab.js} +3 -3
  62. package/dist/{index-BSTUrmqB.js → index-C1vwtNMj.js} +6 -6
  63. package/dist/{index-QyxsXvZB.js → index-CK_9lnGD.js} +3 -3
  64. package/dist/{index-B3HoKsL8.js → index-CX4Q-ODj.js} +1 -1
  65. package/dist/{index-D98bOypJ.js → index-CyqffI0r.js} +1 -1
  66. package/dist/{index-DeYzI7Ad.js → index-CzH8ux-h.js} +2 -2
  67. package/dist/{index-DLsHC8RI.js → index-CzbdA0d3.js} +1 -1
  68. package/dist/{plugins-BZn2aS9v.js → index-DFS6jDHm.js} +3784 -3989
  69. package/dist/{index-C1wvmxnj.js → index-DI956UFg.js} +1 -1
  70. package/dist/{index-C_bBUep_.js → index-DvM-OpLR.js} +469 -456
  71. package/dist/{index-BaR_Lcm6.js → index-FsTLGrIL.js} +1 -1
  72. package/dist/{index-ZQcFToUw.js → index-OehNKdCW.js} +1 -1
  73. package/dist/{index.esm2017-D0ExClUr.js → index.esm2017-CScWJGpE.js} +1 -1
  74. package/dist/{loading-BPPrnQNO.js → loading-CXZ39_xw.js} +1 -1
  75. package/dist/{membership-XRsihZq0.js → membership-Bg_pBT1C.js} +54 -48
  76. package/dist/{money-hdSAgWNM.js → money-D4vhiGvs.js} +1 -1
  77. package/dist/{number-DYeV4NB_.js → number-p3U-wKsr.js} +1 -1
  78. package/dist/{objectid-CC8rUDIT.js → objectid-C_k8DXMk.js} +8 -8
  79. package/dist/plugins-BzCgGFW_.js +208 -0
  80. package/dist/{reward-6Gs4Tj0g.js → reward-DL7dVgek.js} +1 -1
  81. package/dist/{rule-builder-C7d79jSS.js → rule-builder-DZEGo8FL.js} +1 -1
  82. package/dist/{rule-BRP3Seyh.js → rule-iUlMzG59.js} +3 -3
  83. package/dist/{template-B0NSZx7m.js → template-FZF9V1B2.js} +4 -4
  84. package/dist/{trigger-B5-fD0op.js → trigger-woPb5C0Z.js} +4 -4
  85. package/dist/{user-t4f-8zfV.js → user-CoOoRDFP.js} +1 -1
  86. package/dist/{vue-i18n-Byc8euZx.js → vue-i18n-5r8XYctA.js} +348 -348
  87. package/dist/{xlsx-C_z356In.js → xlsx-Cx714TFU.js} +1 -1
  88. package/package.json +1 -1
  89. package/dist/Member-TNxdgh6i.js +0 -348
  90. package/dist/Segment-OY9qUZnY.js +0 -578
@@ -0,0 +1,208 @@
1
+ import { u as $, v as C, x as P, w as A, y as S } from "./index.esm2017-CScWJGpE.js";
2
+ import { u as w } from "./app-wDQR6dpb.js";
3
+ import { S as o } from "./index-BSavh-ab.js";
4
+ function L(e, n) {
5
+ let t = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
6
+ const s = r.length;
7
+ for (let a = 0; a < e; a++)
8
+ t += r.charAt(Math.floor(Math.random() * s));
9
+ return t;
10
+ }
11
+ const O = {
12
+ alphabetOnly(e) {
13
+ return e.replace(/[^a-zA-Z]/g, "");
14
+ },
15
+ alphaNumeric(e) {
16
+ return e.replace(/[^a-zA-Z0-9]/g, "");
17
+ },
18
+ numericOnly(e) {
19
+ return e.replace(/[^0-9]/g, "");
20
+ },
21
+ singularOrPlural(e, n, t) {
22
+ const r = e > 1 ? t || `${n}s` : n;
23
+ return `${e} ${r}`;
24
+ }
25
+ }, V = {
26
+ title: (e) => e.replace(
27
+ /\b\w+/g,
28
+ (n) => n.charAt(0).toUpperCase() + n.substring(1).toLowerCase()
29
+ )
30
+ };
31
+ var i = [];
32
+ for (var v = 0; v < 256; ++v)
33
+ i.push((v + 256).toString(16).slice(1));
34
+ function k(e, n = 0) {
35
+ return (i[e[n + 0]] + i[e[n + 1]] + i[e[n + 2]] + i[e[n + 3]] + "-" + i[e[n + 4]] + i[e[n + 5]] + "-" + i[e[n + 6]] + i[e[n + 7]] + "-" + i[e[n + 8]] + i[e[n + 9]] + "-" + i[e[n + 10]] + i[e[n + 11]] + i[e[n + 12]] + i[e[n + 13]] + i[e[n + 14]] + i[e[n + 15]]).toLowerCase();
36
+ }
37
+ var h, R = new Uint8Array(16);
38
+ function _() {
39
+ if (!h && (h = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !h))
40
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
41
+ return h(R);
42
+ }
43
+ var b, p, x = 0, y = 0;
44
+ function E(e, n, t) {
45
+ var r = n && t || 0, s = n || new Array(16);
46
+ e = e || {};
47
+ var a = e.node, c = e.clockseq;
48
+ if (e._v6 || (a || (a = b), c == null && (c = p)), a == null || c == null) {
49
+ var u = e.random || (e.rng || _)();
50
+ a == null && (a = [u[0], u[1], u[2], u[3], u[4], u[5]], !b && !e._v6 && (a[0] |= 1, b = a)), c == null && (c = (u[6] << 8 | u[7]) & 16383, p === void 0 && !e._v6 && (p = c));
51
+ }
52
+ var l = e.msecs !== void 0 ? e.msecs : Date.now(), d = e.nsecs !== void 0 ? e.nsecs : y + 1, I = l - x + (d - y) / 1e4;
53
+ if (I < 0 && e.clockseq === void 0 && (c = c + 1 & 16383), (I < 0 || l > x) && e.nsecs === void 0 && (d = 0), d >= 1e4)
54
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
55
+ x = l, y = d, p = c, l += 122192928e5;
56
+ var m = ((l & 268435455) * 1e4 + d) % 4294967296;
57
+ s[r++] = m >>> 24 & 255, s[r++] = m >>> 16 & 255, s[r++] = m >>> 8 & 255, s[r++] = m & 255;
58
+ var f = l / 4294967296 * 1e4 & 268435455;
59
+ s[r++] = f >>> 8 & 255, s[r++] = f & 255, s[r++] = f >>> 24 & 15 | 16, s[r++] = f >>> 16 & 255, s[r++] = c >>> 8 | 128, s[r++] = c & 255;
60
+ for (var g = 0; g < 6; ++g)
61
+ s[r + g] = a[g];
62
+ return n || k(s);
63
+ }
64
+ async function j(e, n) {
65
+ await new Promise((t) => {
66
+ const r = document.createElement("input");
67
+ r.value = e, document.body.appendChild(r), r.select(), document.execCommand("copy"), document.body.removeChild(r), t("");
68
+ }).then(() => {
69
+ var t;
70
+ (t = w().snackbar) == null || t.open({
71
+ message: (n == null ? void 0 : n.successMessage) || "Copied to clipboard",
72
+ type: "success",
73
+ dismissable: !0
74
+ });
75
+ });
76
+ }
77
+ const T = {
78
+ fileExtension(e) {
79
+ return (e == null ? void 0 : e.type.replace(/video\/|image\//, "")) || void 0;
80
+ },
81
+ generateId(e) {
82
+ return [E(), this.fileExtension(e)].filter(Boolean).join(".");
83
+ },
84
+ campaignPath(e) {
85
+ return `business/${o.getBusinessId()}/campaigns/${e || this.generateId()}`;
86
+ },
87
+ coverImagePath() {
88
+ return `business/${o.getBusinessId()}/membership/design/image.png`;
89
+ },
90
+ advertisementPath(e, n) {
91
+ return `business/${o.getBusinessId()}/membership/advertisement/${e}.${this.fileExtension(n)}`;
92
+ },
93
+ designPath(e, n) {
94
+ return `business/${o.getBusinessId()}/membership/design/${e}.${this.fileExtension(n)}`;
95
+ },
96
+ bundleImagePath(e, n) {
97
+ return `business/${o.getBusinessId()}/membership/bundles/${e || this.generateId(n)}`;
98
+ },
99
+ collectibleImagePath(e, n) {
100
+ return `business/${o.getBusinessId()}/membership/collectibles/${e || this.generateId(n)}`;
101
+ },
102
+ tierImagePath(e, n) {
103
+ return `business/${o.getBusinessId()}/membership/tiers/${e || this.generateId(n)}`;
104
+ },
105
+ referralTermAndConditionPath() {
106
+ return `business/${o.getBusinessId()}/membership/referral/term_and_condition.pdf`;
107
+ },
108
+ async update(e, n, t) {
109
+ const r = $(void 0, t), s = C(r, e);
110
+ return await P(s, n), A(s);
111
+ },
112
+ async delete(e, n) {
113
+ const t = $(void 0, n), r = C(t, e);
114
+ await S(r);
115
+ }
116
+ }, U = {
117
+ get dialog() {
118
+ return w().dialog;
119
+ },
120
+ confirm(e, n = "Confirm", t = "Confirm", r = "Cancel") {
121
+ return new Promise((s) => {
122
+ var a;
123
+ (a = this.dialog) == null || a.open({
124
+ title: n,
125
+ message: e,
126
+ closeButton: !0,
127
+ overlay: !0,
128
+ primaryActions: {
129
+ close: !0,
130
+ text: t
131
+ },
132
+ secondaryActions: {
133
+ variant: "tertiary",
134
+ close: !0,
135
+ text: r
136
+ }
137
+ }).onPrimary(() => {
138
+ s(!0);
139
+ }).onSecondary(() => {
140
+ s(!1);
141
+ }).onClose(() => {
142
+ s(!1);
143
+ });
144
+ });
145
+ },
146
+ remove(e, n = "Remove", t = "Remove", r = "Cancel") {
147
+ return new Promise((s) => {
148
+ var a;
149
+ (a = this.dialog) == null || a.open({
150
+ title: n,
151
+ message: e,
152
+ closeButton: !0,
153
+ overlay: !0,
154
+ primaryActions: {
155
+ close: !0,
156
+ variant: "destructive",
157
+ text: t
158
+ },
159
+ secondaryActions: {
160
+ variant: "tertiary",
161
+ close: !0,
162
+ text: r
163
+ }
164
+ }).onPrimary(() => {
165
+ s(!0);
166
+ }).onClose(() => {
167
+ s(!1);
168
+ });
169
+ });
170
+ }
171
+ }, D = {
172
+ get snackbar() {
173
+ return w().snackbar;
174
+ },
175
+ success(e, n = 2e3) {
176
+ var t;
177
+ return (t = this.snackbar) == null ? void 0 : t.open({ message: e, type: "success" }, n);
178
+ },
179
+ error(e, n = 2e3) {
180
+ var t;
181
+ return (t = this.snackbar) == null ? void 0 : t.open({ message: e, type: "error" }, n);
182
+ },
183
+ info(e, n = 2e3, t = !1) {
184
+ var r;
185
+ return (r = this.snackbar) == null ? void 0 : r.open(
186
+ {
187
+ message: e,
188
+ type: "info",
189
+ dismissable: n !== null,
190
+ spinner: t
191
+ },
192
+ n
193
+ );
194
+ },
195
+ close(e) {
196
+ var n;
197
+ return (n = this.snackbar) == null ? void 0 : n.close(e);
198
+ }
199
+ };
200
+ export {
201
+ j as a,
202
+ O as b,
203
+ V as c,
204
+ T as f,
205
+ D as n,
206
+ U as p,
207
+ L as r
208
+ };
@@ -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-Clj1WSBs.js";
2
+ import { g as r, S as d, b as o } from "./index-BSavh-ab.js";
3
3
  import { ref as i } from "vue";
4
4
  const a = () => {
5
5
  const e = d.getBusinessId();
@@ -1,4 +1,4 @@
1
- import { l as i } from "./index-DeYzI7Ad.js";
1
+ import { l as i } from "./index-CzH8ux-h.js";
2
2
  function a(c, t) {
3
3
  let r = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4
4
  const e = s.length;
@@ -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-XRsihZq0.js";
4
- import { R as B, a as pe } from "./rule-builder-C7d79jSS.js";
5
- import { u as Be } from "./business-ICKi8JNz.js";
3
+ import { u as ee } from "./membership-Bg_pBT1C.js";
4
+ import { R as B, a as pe } from "./rule-builder-DZEGo8FL.js";
5
+ import { u as Be } from "./business-DhCzKu3V.js";
6
6
  var ue = [
7
7
  "MO",
8
8
  "TU",
@@ -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-BExdhFR9.js";
2
+ import { u as P } from "./campaign-DAgovrbX.js";
3
3
  import { useDialog as q } from "@feedmepos/ui-library";
4
- import { F as J } from "./index-BSTUrmqB.js";
5
- import { C as A } from "./collection.fn-B3XEjDdU.js";
4
+ import { F as J } from "./index-C1vwtNMj.js";
5
+ import { C as A } from "./collection.fn-BrbSJ0dj.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-AiWYrbax.js";
8
+ import { C as H } from "./campaign-CFggCOe6.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-DeYzI7Ad.js";
3
- import { R as l } from "./rule-builder-C7d79jSS.js";
4
- import { _ as p } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BlCyumkR.js";
5
- import { j as e, C as E } from "./index-C_bBUep_.js";
2
+ import "./index-CzH8ux-h.js";
3
+ import { R as l } from "./rule-builder-DZEGo8FL.js";
4
+ import { _ as p } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CTOfCYsE.js";
5
+ import { l as e, C as E } from "./index-DvM-OpLR.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-BZn2aS9v.js";
2
+ import { a as f } from "./plugins-BzCgGFW_.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, n = !1) {
5
5
  return c(