@feedmepos/mf-connect 0.0.39-prod → 0.1.0-beta.2

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 (101) hide show
  1. package/dist/Analytic-DSD9TsKr.js +622 -0
  2. package/dist/{App-X3fNEBF3.js → App-D8a5eW51.js} +250 -249
  3. package/dist/Broadcast-C8jgMe6g.js +223 -0
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CRYS_tzZ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pG8WvV4I.js} +20 -20
  5. package/dist/Card-C1K7ULPo.js +825 -0
  6. package/dist/Collections-lMrdPUuM.js +453 -0
  7. package/dist/Credit-CJfU5tP4.js +220 -0
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DoZyevfa.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js} +1042 -1011
  9. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CzEtOmp0.js +345 -0
  10. package/dist/Experience-Bp2ki8gU.js +221 -0
  11. package/dist/Game-BpTf6ebE.js +255 -0
  12. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  13. package/dist/{MainLayout-DpZC6o3R.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js} +19 -53
  14. package/dist/MainLayout-B1aJoR95.js +41 -0
  15. package/dist/Marketing-BiKE2gxA.js +316 -0
  16. package/dist/Member-BSWyy32a.js +69 -0
  17. package/dist/MemberList-CHlGREyR.js +1733 -0
  18. package/dist/MemberOverview-wL_ailso.js +58 -0
  19. package/dist/{MemberTransactions-DueaXBCy.js → MemberTransactions-BzHiXCnp.js} +1 -1
  20. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-e-zWg08J.js +432 -0
  21. package/dist/Mission-8IGT3T2C.js +261 -0
  22. package/dist/Point-CbbJ6ohd.js +222 -0
  23. package/dist/Promotion-BYXCJa_S.js +247 -0
  24. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-_RX1J0Br.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bruh-umZ.js} +557 -557
  25. package/dist/Segment-DXDNM0yd.js +437 -0
  26. package/dist/Setting-CLpvvZTv.js +1901 -0
  27. package/dist/Store-C6-P6bwc.js +1511 -0
  28. package/dist/StoreRewards-CUM2irXK.js +401 -0
  29. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CLFiuO5k.js → StoreTransactions.vue_vue_type_script_setup_true_lang-JaRdmqif.js} +10 -10
  30. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CoMQBL4P.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DEb4OBcX.js} +1 -1
  31. package/dist/{Tier-CftEoP_R.js → Tier-DZTDxWBo.js} +481 -453
  32. package/dist/{Title-BsavXbYh.js → Title-C2Dr5ceK.js} +314 -295
  33. package/dist/Transaction-BL4mS29d.js +39 -0
  34. package/dist/Voucher-Cx0r2-df.js +490 -0
  35. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-DWuAODUF.js +56 -0
  36. package/dist/{app-BNmAx3zq.js → app-B_xuZ5HB.js} +1 -1
  37. package/dist/app-wE5HTF_Y.js +5762 -0
  38. package/dist/app.js +5 -3
  39. package/dist/{business-DGL4Ayx0.js → business-DSv8zM8C.js} +1 -1
  40. package/dist/{campaign-D94sS1kM.js → campaign-7y5qquHZ.js} +5 -3
  41. package/dist/{collection.fn-BHJ1ISqO.js → collection.fn-BxVZQAx0.js} +2 -2
  42. package/dist/dto-Ew1QwLci.js +2778 -0
  43. package/dist/{effect-CFRICzlM.js → effect-BzPh8fRI.js} +9 -9
  44. package/dist/{export-w2o9NYcy.js → export-C9tDplkA.js} +3 -3
  45. package/dist/{helper-CUDWQ8vq.js → helper-Sz7oQ0F4.js} +1 -1
  46. package/dist/{index-BGuLhEym.js → index-BQm0C3Jm.js} +3 -3
  47. package/dist/{index-BjwyxNSp.js → index-C-SOz7jt.js} +1 -1
  48. package/dist/{index-BcWJcD9f.js → index-C0lpADCo.js} +1 -1
  49. package/dist/{index-DIq2KVis.js → index-C3_4GUiI.js} +1 -1
  50. package/dist/{index-BPEV5Tzg.js → index-D-2nFLsg.js} +59 -47
  51. package/dist/{index-CFMBSL24.js → index-DBMaUGYI.js} +2 -2
  52. package/dist/{index-CpwFQFTV.js → index-DH_1nOJ_.js} +3 -3
  53. package/dist/index-Dy4pmQpt.js +29193 -0
  54. package/dist/{index-BQ6isIeo.js → index-_3qBsogG.js} +1 -1
  55. package/dist/index-gIRszcHf.js +3 -0
  56. package/dist/{index-VjUw31dN.js → index-tv4t0Pnh.js} +1 -1
  57. package/dist/{index-tZ1aqhks.js → index-z0IfdrZk.js} +319 -281
  58. package/dist/{index.esm2017-zciuPty-.js → index.esm2017-BnKJDxUo.js} +55 -55
  59. package/dist/{loading-GuXe5bYG.js → loading-Ds-yFYhc.js} +469 -460
  60. package/dist/{membership-BHWJVI3e.js → membership-DaiVw9qF.js} +3 -3
  61. package/dist/money-BHtBdZoz.js +15 -0
  62. package/dist/number-CZhcB8ef.js +12 -0
  63. package/dist/{rule-MgNa_8FF.js → rule-Cd2M6Ri2.js} +2 -2
  64. package/dist/{rule-builder-BsBCWzq_.js → rule-builder-B6og27Q1.js} +1 -1
  65. package/dist/style.css +1 -1
  66. package/dist/{template-D6k3lusq.js → template-DouRWBpv.js} +63 -63
  67. package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
  68. package/dist/vue-i18n-BTlOChXs.js +2365 -0
  69. package/dist/{xlsx-ClrA4KOh.js → xlsx-SahfXQ70.js} +517 -517
  70. package/dist/zod-Bg2FbC-D.js +90 -0
  71. package/package.json +7 -4
  72. package/dist/Analytic-DMFueUju.js +0 -620
  73. package/dist/Broadcast-YIfWIXeA.js +0 -216
  74. package/dist/Card-BIxlgQm7.js +0 -824
  75. package/dist/Collections-M6DaHM2W.js +0 -441
  76. package/dist/Credit-BtRy-xoY.js +0 -214
  77. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-D5DNTBSQ.js +0 -344
  78. package/dist/Experience-DGm1lnqj.js +0 -211
  79. package/dist/Game-B8-lG7qq.js +0 -250
  80. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
  81. package/dist/Marketing-DtG3AIWr.js +0 -309
  82. package/dist/Member-K443-9Vy.js +0 -92
  83. package/dist/MemberList-CYXHXFTL.js +0 -1735
  84. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  85. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Bk2HLVmt.js +0 -203
  86. package/dist/Mission-CN5umXXA.js +0 -248
  87. package/dist/Point-XAm6H2p_.js +0 -220
  88. package/dist/Promotion-DsrA4KiE.js +0 -244
  89. package/dist/Segment-CZGGHoAu.js +0 -435
  90. package/dist/Setting-BjfxLKyp.js +0 -1870
  91. package/dist/Store-D_B-vhh3.js +0 -1513
  92. package/dist/StoreRewards-BjHffUKj.js +0 -429
  93. package/dist/Transaction-CdxzoKDG.js +0 -36
  94. package/dist/Voucher-B_9Nv1Mr.js +0 -485
  95. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +0 -140
  96. package/dist/app--1Ks5Hms.js +0 -2974
  97. package/dist/dto-X0Eeujxx.js +0 -1151
  98. package/dist/index-BPNG8N-w.js +0 -11
  99. package/dist/index-DWM9MWGj.js +0 -28058
  100. package/dist/money-CrttVpCp.js +0 -15
  101. package/dist/number-CIndGU4O.js +0 -12
@@ -1,216 +0,0 @@
1
- import { defineComponent as P, ref as g, computed as U, onMounted as M, resolveComponent as l, openBlock as i, createElementBlock as f, Fragment as _, createVNode as r, unref as a, createElementVNode as s, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as E, toDisplayString as b, createCommentVNode as H, h as q } from "vue";
2
- import { _ as z } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as G, components as J } from "@feedmepos/ui-library";
4
- import { u as Q, p as W } from "./loading-GuXe5bYG.js";
5
- import { u as X } from "./business-DGL4Ayx0.js";
6
- import { u as Y } from "./campaign-D94sS1kM.js";
7
- import { g as F, b as k } from "./dto-X0Eeujxx.js";
8
- import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DoZyevfa.js";
10
- import { u as te } from "./template-D6k3lusq.js";
11
- import { c as y } from "./index-BjwyxNSp.js";
12
- const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "space-y-4" }, ce = { class: "fm-typo-en-body-lg-600" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { key: 0 }, ue = /* @__PURE__ */ s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), pe = [
13
- ue
14
- ], fe = /* @__PURE__ */ s("img", {
15
- src: z,
16
- class: "aspect-square w-[150px]"
17
- }, null, -1), ye = /* @__PURE__ */ s("div", { class: "flex flex-col gap-16 text-center" }, [
18
- /* @__PURE__ */ s("div", { class: "fm-typo-en-title-sm-800" }, " Create your broadcast campaign "),
19
- /* @__PURE__ */ s("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Broadcasting allows you to send text messages to all your customers, informing them about new deals, events, or important updates. ")
20
- ], -1), Ae = /* @__PURE__ */ P({
21
- __name: "Broadcast",
22
- setup(ge) {
23
- const A = {
24
- label: "Create campaign",
25
- value: "create",
26
- isPrimary: !0,
27
- prependIcon: "add"
28
- }, V = te("BROADCAST", G()), R = X(), c = Y(), { global: D, minor: C } = Q, L = g((/* @__PURE__ */ new Date()).toISOString()), n = g({
29
- searchKey: "",
30
- location: null
31
- }), u = U(
32
- () => c.campaigns.broadcast.filter(
33
- (e) => !n.value.location || !e.targetLocation || e.targetLocation.includes(n.value.location)
34
- )
35
- ), T = [
36
- {
37
- header: "Broadcast title",
38
- accessorFn: (e) => e.name
39
- },
40
- {
41
- header: "Status",
42
- cell(e) {
43
- return F(e.row.original);
44
- }
45
- },
46
- {
47
- header: "Summary",
48
- accessorFn: (e) => k(e)
49
- },
50
- {
51
- header: "Message sent",
52
- accessorFn: (e) => e.currentReceive ?? "N/A"
53
- },
54
- {
55
- header: "Actions",
56
- cell(e) {
57
- return q(J.FmButton, {
58
- variant: "tertiary",
59
- icon: "delete",
60
- iconColor: "neutral-gray-400",
61
- onClick: (o) => {
62
- o.stopPropagation(), x(e.row.original);
63
- }
64
- });
65
- }
66
- }
67
- ], v = g();
68
- async function x(e) {
69
- await W.remove(`Are you sure you want to remove ${e.name}?`) && await C(
70
- async () => {
71
- await y.delete(e._id), await c.read("BROADCAST");
72
- },
73
- {
74
- message: `Removing ${e.name}`,
75
- successMessage: `Removed ${e.name} successfully`
76
- }
77
- );
78
- }
79
- async function p(e) {
80
- L.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await o() : V.open(async (m) => {
81
- await o(m);
82
- });
83
- async function o(m) {
84
- var d;
85
- (d = v.value) == null || d.showSheet(
86
- !0,
87
- "BROADCAST",
88
- e ? await y.readById(e._id) : void 0,
89
- m
90
- );
91
- }
92
- }
93
- async function $(e) {
94
- await C(
95
- async () => {
96
- e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await c.read("BROADCAST");
97
- },
98
- {
99
- message: `${e.campaign._id ? "Updating" : "Creating"} broadcast`,
100
- successMessage: `Broadcast ${e.campaign._id ? "updated" : "created"} successfully`
101
- }
102
- );
103
- }
104
- return M(async () => {
105
- await D(async () => {
106
- await c.read("BROADCAST");
107
- });
108
- }), (e, o) => {
109
- const m = l("FmPageHead"), d = l("FmSearch"), K = l("FmTable"), S = l("FmButton"), I = l("FmListItem"), O = l("FmList"), N = l("FmCard");
110
- return i(), f(_, null, [
111
- r(m, {
112
- title: "Broadcast",
113
- actions: a(u).length > 0 ? [A] : [],
114
- "onClick:action": o[0] || (o[0] = () => p())
115
- }, null, 8, ["actions"]),
116
- s("div", oe, [
117
- r(d, {
118
- modelValue: a(n).searchKey,
119
- "onUpdate:modelValue": o[1] || (o[1] = (t) => a(n).searchKey = t),
120
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
121
- placeholder: "search",
122
- collapsible: ""
123
- }, null, 8, ["modelValue"]),
124
- a(c).campaigns.broadcast && a(c).campaigns.broadcast.length > 0 ? (i(), f(_, { key: 0 }, [
125
- s("div", ae, [
126
- s("div", se, [
127
- r(Z, {
128
- modelValue: a(n).location,
129
- "onUpdate:modelValue": o[2] || (o[2] = (t) => a(n).location = t),
130
- label: "Location: ",
131
- "show-item-label": !0,
132
- icon: "storefront",
133
- placement: "bottom-start",
134
- items: a(R).locationItems
135
- }, null, 8, ["modelValue", "items"])
136
- ]),
137
- r(d, {
138
- modelValue: a(n).searchKey,
139
- "onUpdate:modelValue": o[3] || (o[3] = (t) => a(n).searchKey = t),
140
- class: "xs:hidden",
141
- placeholder: "search",
142
- collapsible: ""
143
- }, null, 8, ["modelValue"])
144
- ]),
145
- r(K, {
146
- class: "xs:hidden",
147
- "row-data": a(u),
148
- "column-defs": T,
149
- "search-value": a(n).searchKey,
150
- "column-filter": [],
151
- onRowClick: o[4] || (o[4] = (t) => p(t.original)),
152
- "hide-footer": !0
153
- }, null, 8, ["row-data", "search-value"]),
154
- r(O, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
155
- default: h(() => [
156
- (i(!0), f(_, null, j(a(u).filter(
157
- (t) => t.name.toLowerCase().includes(a(n).searchKey.toLowerCase())
158
- ), (t) => (i(), w(I, {
159
- key: t._id.toString(),
160
- onClick: (B) => p(t),
161
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
162
- }, {
163
- default: h(() => [
164
- s("div", ne, [
165
- s("div", re, [
166
- (i(), w(E(a(F)(t)))),
167
- s("div", le, b(t.currentReceive ?? 0) + " sent ", 1)
168
- ]),
169
- s("div", ie, [
170
- s("div", ce, b(t.name), 1),
171
- s("div", me, b(a(k)(t)), 1)
172
- ])
173
- ]),
174
- r(S, {
175
- icon: "delete",
176
- "icon-color": "neutral-gray-400",
177
- variant: "tertiary",
178
- onClick: (B) => (B.stopPropagation(), x(t))
179
- }, null, 8, ["onClick"])
180
- ]),
181
- _: 2
182
- }, 1032, ["onClick"]))), 128))
183
- ]),
184
- _: 1
185
- }),
186
- a(u).length == 0 ? (i(), f("div", de, pe)) : H("", !0)
187
- ], 64)) : (i(), w(N, {
188
- key: 1,
189
- variant: "outlined",
190
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
191
- }, {
192
- default: h(() => [
193
- fe,
194
- ye,
195
- r(S, {
196
- variant: "primary",
197
- label: "Create broadcast campaign",
198
- icon: "add",
199
- onClick: o[5] || (o[5] = (t) => p())
200
- })
201
- ]),
202
- _: 1
203
- })),
204
- r(ee, {
205
- ref_key: "sheetRef",
206
- ref: v,
207
- "onSubmit:modelValue": $
208
- }, null, 512)
209
- ])
210
- ], 64);
211
- };
212
- }
213
- });
214
- export {
215
- Ae as default
216
- };