@feedmepos/mf-connect 0.1.36-prod → 0.1.38-beta.1

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 (113) hide show
  1. package/dist/Analytic-O-qZWrFp.js +761 -0
  2. package/dist/{App-JwvQzmaf.js → App-BWZ2EE71.js} +364 -352
  3. package/dist/AuditLogs-DlmcFEta.js +1887 -0
  4. package/dist/{Bin-Boq091DE.js → Bin-C-Ha-4yF.js} +8 -8
  5. package/dist/{Broadcast-D7BIjPzg.js → Broadcast-Bo3QS8lS.js} +27 -25
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZFe69JWe.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4vUMzH-l.js} +18 -18
  7. package/dist/{Card-C7v8otBk.js → Card-Bs1TDE0e.js} +159 -159
  8. package/dist/{Collections-C_pyDZJp.js → Collections-Dy5RN7Js.js} +103 -91
  9. package/dist/{Credit-B6I7vIo2.js → Credit-Bqc4dw1s.js} +74 -74
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DHQBxqsk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6AmN3o3.js} +490 -488
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-cqK2WTuO.js → EffectSheet.vue_vue_type_style_index_0_lang-BzwADnKp.js} +91 -89
  13. package/dist/{Experience-RU6iI7eH.js → Experience-C2e2T7B-.js} +42 -42
  14. package/dist/{FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js → FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js} +2 -6
  15. package/dist/{Game-B9Ojuamc.js → Game-C86eEhcx.js} +32 -32
  16. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  17. package/dist/{Index-Dv-YN9YC.js → Index-BRGweFco.js} +10 -10
  18. package/dist/Marketing-CnnrnXbS.js +20073 -0
  19. package/dist/{Member-BX81V3ON.js → Member-B3o0Zhcw.js} +76 -76
  20. package/dist/MemberList-BpE1IjED.js +1606 -0
  21. package/dist/MemberOverview-wL_ailso.js +58 -0
  22. package/dist/{MemberTransactions-C0FinB5E.js → MemberTransactions-C4hao-d9.js} +1 -1
  23. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DZS17c8D.js → MessageInput.vue_vue_type_script_setup_true_lang-D9zfmqLs.js} +36 -36
  24. package/dist/{Mission-BV76Qq3Y.js → Mission-BURXfzjd.js} +21 -21
  25. package/dist/{Overview-CMK4VRZl.js → Overview-D_hrrM4O.js} +335 -335
  26. package/dist/{Point-CQWKh1jv.js → Point-CJXkJY5Q.js} +43 -41
  27. package/dist/Promotion-CunJrh42.js +289 -0
  28. package/dist/{Queue-CFNfJSux.js → Queue-v5Itg9J4.js} +52 -52
  29. package/dist/{Record-7_ssnQnB.js → Record-DJe4tg9R.js} +9 -9
  30. package/dist/{Reward-DOe1Tn2f.js → Reward-Y9aHpny5.js} +173 -173
  31. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BsgR-dCL.js → RewardGroup.vue_vue_type_script_setup_true_lang-1KAjCblO.js} +11 -11
  32. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BPw5L06B.js → RuleGroup.vue_vue_type_script_setup_true_lang-Cr99ikbK.js} +635 -548
  33. package/dist/Segment-DVT8uDn8.js +882 -0
  34. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DPsLdEU8.js → SelectItems.vue_vue_type_script_setup_true_lang-BhJ-oVMb.js} +2 -2
  35. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BAJLRxOM.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-b5bjfBvc.js} +11 -11
  36. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DUUzFkIc.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DoKAgSLE.js} +3 -3
  37. package/dist/{Setting-Bojfmtwf.js → Setting-BU5778gG.js} +432 -432
  38. package/dist/{Store-dfiUtq-f.js → Store-IWg0POAU.js} +211 -211
  39. package/dist/StoreRewards-CIjHcVoh.js +423 -0
  40. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cx05-OPF.js +1029 -0
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D8ey57Te.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BcOvr526.js} +1 -1
  42. package/dist/{Tier-BIDShXJ6.js → Tier-iN30KD7g.js} +107 -107
  43. package/dist/{Title-CDdkVwEu.js → Title-Duh_Srek.js} +133 -131
  44. package/dist/{Transaction-lAUnd1c_.js → Transaction-DLBA7Svl.js} +2 -2
  45. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BwaD8Nwy.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DLD5d43d.js} +6 -6
  46. package/dist/{Voucher-BARDbixZ.js → Voucher-cTvlMN0Y.js} +153 -123
  47. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DkjojUvD.js +419 -0
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CIk3GKLH.js → ZodTextField.vue_vue_type_script_setup_true_lang-C5S-bi5J.js} +1 -1
  49. package/dist/{app-Cq8zUKBx.js → app-A3oEKLq5.js} +1 -1
  50. package/dist/{app-KtD-iU16.js → app-De-yQ1CJ.js} +164 -125
  51. package/dist/app.js +4 -3
  52. package/dist/business-B2JBpm4y.js +79 -0
  53. package/dist/{campaign-NqTts9bj.js → campaign-Bhur0NJx.js} +9 -9
  54. package/dist/{campaign-DwArKZ1r.js → campaign-vkzui6F2.js} +5 -3
  55. package/dist/{campaign.enum-DQayyk1f.js → campaign.enum-DCYkKGhd.js} +1 -1
  56. package/dist/{campaign.fn-6uf_Z5m1.js → campaign.fn--affTEi5.js} +161 -161
  57. package/dist/{collectible.enum-CgjtJh8V.js → collectible.enum-CLBCnfev.js} +1 -1
  58. package/dist/{collection.fn-DuqcY399.js → collection.fn-bA8q0KYy.js} +2 -2
  59. package/dist/{dto-CQRn2lAW.js → dto-RCcWeYE0.js} +4 -4
  60. package/dist/{effect-B-sUUnjd.js → effect-D7qRfPe_.js} +1 -1
  61. package/dist/{email-addresses-D-kPsNBn.js → email-addresses-a8PqViID.js} +1 -1
  62. package/dist/{export-B28oHptg.js → export-BneqNRn4.js} +3 -3
  63. package/dist/{helper-DuBp_oW-.js → helper-DfvvxOyO.js} +1 -1
  64. package/dist/{index-CCNfzZ5t.js → index-2LpkG8Ye.js} +1 -1
  65. package/dist/{index-C2wsUy05.js → index-4kMeSNTr.js} +11447 -10969
  66. package/dist/{index-BgdUU6Za.js → index-B0T9GDIZ.js} +1 -1
  67. package/dist/{index-CczG_ilB.js → index-BWTvsoH0.js} +1 -1
  68. package/dist/index-CMBPIb8x.js +32260 -0
  69. package/dist/{index-DF4V4vur.js → index-CTKMdxSm.js} +1 -1
  70. package/dist/index-CVAWGMus.js +56 -0
  71. package/dist/index-CbsJ6vMJ.js +31 -0
  72. package/dist/{index-CSWnS__O.js → index-CrFUhsZO.js} +1 -1
  73. package/dist/index-CsaQJMAR.js +66 -0
  74. package/dist/{index-CmOaBe_x.js → index-CtDqXnOp.js} +535 -460
  75. package/dist/{index-CECYN1oL.js → index-D0GnMoag.js} +181 -79
  76. package/dist/{index-BCslSeGm.js → index-DMrIQqFt.js} +1 -1
  77. package/dist/{index-BZYbNzed.js → index-DeXvASjP.js} +3 -3
  78. package/dist/{index-CUdis4Jl.js → index-y-7yUm2e.js} +10 -9
  79. package/dist/{index.esm2017-CVwbgLS0.js → index.esm2017-JtyypweZ.js} +127 -127
  80. package/dist/{loading-C-BSh5_w.js → loading-a-FqrwqI.js} +1 -1
  81. package/dist/{membership-BPpTsVq5.js → membership-CGVtil5J.js} +3 -3
  82. package/dist/{money-BSxQcP_f.js → money-CTc1l_Cq.js} +1 -1
  83. package/dist/{number-p7RPdTQ7.js → number-W3R-0nYP.js} +1 -1
  84. package/dist/objectid-BU0Y8iAN.js +145 -0
  85. package/dist/{plugins-5mIceCPA.js → plugins-D2sSgTSl.js} +2 -2
  86. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  87. package/dist/{reward-CaZY5kqg.js → reward-atP8vnNn.js} +1 -1
  88. package/dist/{rule-builder-yn_upY7a.js → rule-builder-BB29ZJ_C.js} +17 -17
  89. package/dist/{rule-DB6XK-iD.js → rule-eA5IvnjB.js} +3 -3
  90. package/dist/style.css +1 -1
  91. package/dist/{template-DbmV0nWD.js → template-DhBeDaAm.js} +64 -64
  92. package/dist/{trigger-DPl3HG2o.js → trigger-Bq_pZj1J.js} +7 -7
  93. package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
  94. package/dist/{user-DzwHXhvX.js → user-B-bhVFIG.js} +1 -1
  95. package/dist/{vue-i18n-BnN9jlFK.js → vue-i18n-D-h8VDSx.js} +343 -343
  96. package/dist/{xlsx-CrsYUgcS.js → xlsx-DsByAcZl.js} +226 -226
  97. package/package.json +5 -3
  98. package/dist/Analytic-C1LCniPD.js +0 -427
  99. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
  100. package/dist/Marketing-CFgCJV0g.js +0 -317
  101. package/dist/MemberList-BjX8ND1p.js +0 -1606
  102. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  103. package/dist/Promotion-CnFaEvhL.js +0 -255
  104. package/dist/Segment-DUP0JWK5.js +0 -882
  105. package/dist/StoreRewards-DJj-oM2n.js +0 -423
  106. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-oRUpDbZ_.js +0 -995
  107. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-bDQs5ACo.js +0 -419
  108. package/dist/business-CFMUx5qO.js +0 -78
  109. package/dist/index-CuJ5OZqA.js +0 -29566
  110. package/dist/index-CuvNtC_M.js +0 -61
  111. package/dist/index-Dbd4WA4r.js +0 -61
  112. package/dist/index-mtAI1Gyn.js +0 -44
  113. package/dist/objectid-DkD1hn1F.js +0 -145
@@ -1,317 +0,0 @@
1
- import { openBlock as m, createElementBlock as p, defineComponent as z, ref as S, onMounted as Y, computed as H, h as J, resolveComponent as c, Fragment as x, createVNode as i, unref as r, createElementVNode as s, withCtx as F, renderList as $, createBlock as B, toDisplayString as f, createCommentVNode as j } from "vue";
2
- import { _ as q } from "./campaign-CpzFl8Vr.js";
3
- import { components as G } from "@feedmepos/ui-library";
4
- import { p as X } from "./plugins-5mIceCPA.js";
5
- import { u as Q } from "./loading-C-BSh5_w.js";
6
- import { defineStore as W } from "pinia";
7
- import { F as C } from "./index-BgdUU6Za.js";
8
- import { useCoreStore as Z } from "@feedmepos/mf-common";
9
- import { g as h, S as ee, b as te } from "./index-C2wsUy05.js";
10
- import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { u as ae } from "./campaign-DwArKZ1r.js";
12
- import { h as oe } from "./moment-BWErdI6_.js";
13
- import { u as re } from "./vue-i18n-BnN9jlFK.js";
14
- var se = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc" };
15
- const y = () => {
16
- const o = ee.getBusinessId();
17
- if (!o) throw new Error("Invalid business ID");
18
- return te(`businesses/${o}/marketing-materials/`, {
19
- url: se.backendUrl,
20
- noIdRequired: !0
21
- });
22
- }, L = {
23
- async read() {
24
- return h(await y().get(""));
25
- },
26
- async createMarketing(o) {
27
- return h(await y().post("", o));
28
- },
29
- // add id
30
- async updateMarketing(o, t) {
31
- return h(
32
- await y().put(o, t)
33
- );
34
- },
35
- async deleteMarketing(o) {
36
- return h(await y().delete(o));
37
- }
38
- }, I = W("mf-connect-marketing", {
39
- state: () => {
40
- var o, t;
41
- return {
42
- marketing: [],
43
- defaultMarketing: {
44
- _id: void 0,
45
- business: ((t = (o = Z().currentBusiness) == null ? void 0 : o.value) == null ? void 0 : t._id) ?? "",
46
- name: "",
47
- campaign: null,
48
- keywords: "",
49
- image: "",
50
- headline: {
51
- content: "",
52
- key: void 0
53
- },
54
- assets: [
55
- {
56
- platform: C.enum.FACEBOOK,
57
- contents: [
58
- {
59
- type: "POST",
60
- size: {
61
- width: 1920,
62
- height: 1080
63
- },
64
- images: []
65
- },
66
- {
67
- type: "STORY",
68
- size: {
69
- width: 1080,
70
- height: 1920
71
- },
72
- images: []
73
- }
74
- ]
75
- },
76
- {
77
- platform: C.enum.INSTAGRAM,
78
- contents: [
79
- {
80
- type: "POST",
81
- size: {
82
- width: 1080,
83
- height: 1080
84
- },
85
- images: []
86
- },
87
- {
88
- type: "STORY",
89
- size: {
90
- width: 1080,
91
- height: 1920
92
- },
93
- images: []
94
- },
95
- {
96
- type: "REEL",
97
- size: {
98
- width: 1080,
99
- height: 1920
100
- },
101
- images: []
102
- }
103
- ]
104
- },
105
- {
106
- platform: C.enum.BRAND_APP,
107
- contents: [
108
- {
109
- type: "IMAGE",
110
- size: {
111
- width: 1080,
112
- height: 1920
113
- },
114
- images: []
115
- }
116
- ]
117
- }
118
- ],
119
- captions: [{ language: "en", content: "" }]
120
- }
121
- };
122
- },
123
- actions: {
124
- async readMarketingMaterial() {
125
- const o = await L.read();
126
- this.marketing = o;
127
- }
128
- },
129
- getters: {
130
- state(o) {
131
- return o;
132
- }
133
- }
134
- }), ie = {};
135
- function le(o, t) {
136
- return m(), p("div");
137
- }
138
- const ce = /* @__PURE__ */ ne(ie, [["render", le]]), me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, pe = { class: "space-y-8" }, ue = { class: "fm-typo-en-body-lg-600" }, ge = { class: "fm-typo-en-body-lg-600" }, fe = { key: 0 }, he = /* @__PURE__ */ s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), ye = [
139
- he
140
- ], ke = /* @__PURE__ */ s("img", {
141
- src: q,
142
- class: "w-[150px]"
143
- }, null, -1), _e = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 text-center" }, Le = /* @__PURE__ */ z({
144
- __name: "Marketing",
145
- setup(o) {
146
- const { t } = re(), O = {
147
- label: t("connect.marketing.create"),
148
- value: "create",
149
- isPrimary: !0,
150
- prependIcon: "add"
151
- }, k = S(!1), _ = I(), b = ae(), { global: N, minor: U } = Q;
152
- Y(async () => {
153
- await N(async () => {
154
- await b.read(), await _.readMarketingMaterial();
155
- });
156
- });
157
- const d = H(() => _.marketing.filter(
158
- (n) => n.name.includes(l.value.searchKey.toLowerCase())
159
- )), u = S(
160
- I().defaultMarketing
161
- ), D = [
162
- {
163
- header: t("connect.marketing.table.name"),
164
- accessorFn: (n) => n.name
165
- },
166
- {
167
- header: t("connect.marketing.table.campaign"),
168
- accessorFn: (n) => {
169
- var e;
170
- return n.campaign === null || n.campaign === void 0 ? "-" : (e = b.campaigns.all.find(
171
- (v) => v._id === n.campaign
172
- )) == null ? void 0 : e.name;
173
- }
174
- },
175
- {
176
- header: t("connect.marketing.table.createdDate"),
177
- accessorFn: (n) => {
178
- const e = new Date(
179
- parseInt(n._id.toString().substring(0, 8), 16) * 1e3
180
- );
181
- return oe(e).format("DD MMM YYYY");
182
- }
183
- },
184
- {
185
- header: t("connect.marketing.table.actions"),
186
- cell(n) {
187
- return J(G.FmButton, {
188
- variant: "tertiary",
189
- icon: "delete",
190
- iconColor: "neutral-gray-400",
191
- onClick: (e) => {
192
- e.stopPropagation(), P(n.row.original);
193
- }
194
- });
195
- }
196
- }
197
- ];
198
- async function P(n) {
199
- await X.remove(
200
- t("marketing.delete.confirm", { name: n.name })
201
- ) && await U(
202
- async () => {
203
- await L.deleteMarketing(n._id), await _.readMarketingMaterial();
204
- },
205
- {
206
- message: t("marketing.delete.removing", { name: n.name }),
207
- successMessage: t("marketing.delete.success", { name: n.name })
208
- }
209
- );
210
- }
211
- async function g(n) {
212
- n ? u.value = JSON.parse(JSON.stringify(n)) : u.value = JSON.parse(
213
- JSON.stringify(I().defaultMarketing)
214
- ), k.value = !0;
215
- }
216
- const l = S({
217
- searchKey: ""
218
- });
219
- return (n, e) => {
220
- const v = c("FmPageHead"), V = c("FmSearch"), E = c("FmTable"), T = c("FmButton"), K = c("FmListItem"), A = c("FmList"), R = c("FmCard");
221
- return m(), p(x, null, [
222
- i(v, {
223
- title: r(t)("connect.marketing.title"),
224
- class: "xs:hidden",
225
- actions: r(d).length > 0 ? [O] : [],
226
- "onClick:action": e[0] || (e[0] = () => g())
227
- }, null, 8, ["title", "actions"]),
228
- s("div", me, [
229
- i(V, {
230
- modelValue: l.value.searchKey,
231
- "onUpdate:modelValue": e[1] || (e[1] = (a) => l.value.searchKey = a),
232
- placeholder: r(t)("connect.marketing.search"),
233
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
234
- collapsible: ""
235
- }, null, 8, ["modelValue", "placeholder"]),
236
- i(ce, {
237
- modelValue: u.value,
238
- "onUpdate:modelValue": e[2] || (e[2] = (a) => u.value = a),
239
- "is-open": k.value,
240
- "onUpdate:isOpen": e[3] || (e[3] = (a) => k.value = a)
241
- }, null, 8, ["modelValue", "is-open"]),
242
- r(d).length > 0 ? (m(), p(x, { key: 0 }, [
243
- s("div", de, [
244
- i(V, {
245
- modelValue: l.value.searchKey,
246
- "onUpdate:modelValue": e[4] || (e[4] = (a) => l.value.searchKey = a),
247
- class: "xs:hidden",
248
- placeholder: r(t)("connect.marketing.search"),
249
- collapsible: ""
250
- }, null, 8, ["modelValue", "placeholder"])
251
- ]),
252
- i(E, {
253
- class: "xs:hidden",
254
- "row-data": r(d),
255
- "column-defs": D,
256
- "search-value": l.value.searchKey,
257
- "column-filter": [],
258
- onRowClick: e[5] || (e[5] = (a) => g(a.original)),
259
- "hide-footer": !0
260
- }, null, 8, ["row-data", "search-value"]),
261
- i(A, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
262
- default: F(() => [
263
- (m(!0), p(x, null, $(r(d).filter(
264
- (a) => a.name.toLowerCase().includes(l.value.searchKey.toLowerCase())
265
- ), (a) => (m(), B(K, {
266
- key: a._id.toString(),
267
- onClick: (w) => g(a),
268
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
269
- }, {
270
- default: F(() => {
271
- var w;
272
- return [
273
- s("div", pe, [
274
- s("div", ue, f(a.name), 1),
275
- s("div", ge, f(a.campaign === null || a.campaign === void 0 ? "-" : (w = r(b).campaigns.all.find(
276
- (M) => M._id === a.campaign
277
- )) == null ? void 0 : w.name), 1)
278
- ]),
279
- i(T, {
280
- icon: "delete",
281
- "icon-color": "neutral-gray-400",
282
- variant: "tertiary",
283
- onClick: (M) => (M.stopPropagation(), P(a))
284
- }, null, 8, ["onClick"])
285
- ];
286
- }),
287
- _: 2
288
- }, 1032, ["onClick"]))), 128))
289
- ]),
290
- _: 1
291
- }),
292
- r(d).length == 0 ? (m(), p("div", fe, ye)) : j("", !0)
293
- ], 64)) : (m(), B(R, {
294
- key: 1,
295
- variant: "outlined",
296
- class: "w-full justify-center items-center flex flex-col p-[24px] gap-[24px]"
297
- }, {
298
- default: F(() => [
299
- ke,
300
- s("p", _e, f(r(t)("connect.marketing.emptyState.title")), 1),
301
- s("p", be, f(r(t)("connect.marketing.emptyState.description")), 1),
302
- i(T, {
303
- label: r(t)("connect.marketing.emptyState.action"),
304
- "prepend-icon": "add",
305
- onClick: e[6] || (e[6] = (a) => g())
306
- }, null, 8, ["label"])
307
- ]),
308
- _: 1
309
- }))
310
- ])
311
- ], 64);
312
- };
313
- }
314
- });
315
- export {
316
- Le as default
317
- };