@feedmepos/mf-connect 0.1.2-prod → 0.1.4-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 (87) hide show
  1. package/dist/Analytic-07T9poLx.js +423 -0
  2. package/dist/{App-CRTD0U-N.js → App-C6MukSCT.js} +276 -275
  3. package/dist/Broadcast-CzsgeZNO.js +223 -0
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C5zUv0Zx.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BirunpzI.js} +8 -8
  5. package/dist/Card-DQnyWZZf.js +824 -0
  6. package/dist/{Collections-BgbWoLWI.js → Collections-BV7CSqRw.js} +4 -4
  7. package/dist/Credit-CxsbYGLZ.js +220 -0
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C137bE1q.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BKSZYxvb.js} +918 -901
  9. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DpsrI-Z3.js +345 -0
  10. package/dist/Experience-eMUbhq7h.js +221 -0
  11. package/dist/Game-CxAG2ViS.js +255 -0
  12. package/dist/Marketing-CozMj2Y5.js +316 -0
  13. package/dist/Member-DM1dj3F5.js +69 -0
  14. package/dist/{MemberList-ISy05wGZ.js → MemberList-DNjK9BbG.js} +14 -14
  15. package/dist/{MemberTransactions-CXvhJngX.js → MemberTransactions-CsjN3LZA.js} +1 -1
  16. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ca1LO__F.js → MessageInput.vue_vue_type_script_setup_true_lang-DVQE9v2R.js} +2 -2
  17. package/dist/Mission-BugvTPPH.js +261 -0
  18. package/dist/Point-D8BjGtqT.js +222 -0
  19. package/dist/Promotion-mc9KBzoJ.js +253 -0
  20. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-D1eQ3i5D.js → RuleGroup.vue_vue_type_script_setup_true_lang-B2H3D_kZ.js} +15 -15
  21. package/dist/Segment-DZRFA-Pb.js +565 -0
  22. package/dist/Setting-DxNhR44e.js +1871 -0
  23. package/dist/Store-CdkJWpjV.js +1530 -0
  24. package/dist/StoreRewards-Cdturia8.js +400 -0
  25. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-nhS5Dhhk.js → StoreTransactions.vue_vue_type_script_setup_true_lang-D7GcOiUM.js} +10 -10
  26. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DWlpmE56.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-nuCOrrLE.js} +1 -1
  27. package/dist/{Tier-DLrOmrnK.js → Tier-I_MMd39Y.js} +470 -445
  28. package/dist/{Title-MHQuel7h.js → Title-DK5gmUvo.js} +298 -282
  29. package/dist/Transaction-BXpTIMS_.js +39 -0
  30. package/dist/Voucher-BQ5h2G0I.js +490 -0
  31. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-eAP99wyg.js +141 -0
  32. package/dist/app-CL2Wxzv5.js +5639 -0
  33. package/dist/{app-BjOpRVdv.js → app-DTAyCT-G.js} +1 -1
  34. package/dist/app.js +4 -3
  35. package/dist/{business-DveMDDHY.js → business-B9OUlaFZ.js} +1 -1
  36. package/dist/{campaign-CMb05XLt.js → campaign-CNbUA51l.js} +2 -2
  37. package/dist/{collection.fn-BjaBPYMU.js → collection.fn-D_i45T4Q.js} +2 -2
  38. package/dist/dto-B4208_es.js +2770 -0
  39. package/dist/{effect-CxAdSlyD.js → effect-Ye_yr8et.js} +1 -1
  40. package/dist/{email-addresses-Dtr5OALQ.js → email-addresses-Gm7Dyaxy.js} +1 -1
  41. package/dist/{export-DuBekrcg.js → export-Buee5oUV.js} +3 -3
  42. package/dist/{helper-DL6hnmtJ.js → helper-BBlHhMFc.js} +1 -1
  43. package/dist/{index-raYm7Ew2.js → index-BxJgFvym.js} +2 -2
  44. package/dist/{index-gcsOy_cD.js → index-ByaM-yoc.js} +91 -86
  45. package/dist/{index-DISwCnfH.js → index-C0QHb5SL.js} +2 -2
  46. package/dist/{index-Cibwzgac.js → index-C363BG5A.js} +3 -3
  47. package/dist/{index-BZAlqAaJ.js → index-CLL3no-v.js} +1 -1
  48. package/dist/{index-CAQpU5Rv.js → index-ChSVaFk3.js} +1 -1
  49. package/dist/{index-BSIUoSG3.js → index-Co9n8I_5.js} +3 -3
  50. package/dist/index-CoGNKU8v.js +3 -0
  51. package/dist/{index-Dx4pkNRc.js → index-DHGcUMVN.js} +1 -1
  52. package/dist/{index-CgPlJqkX.js → index-DWWtZSrm.js} +1 -1
  53. package/dist/{index-CGHNWhkM.js → index-DdVZgYE4.js} +258 -256
  54. package/dist/{index-BBBytzpn.js → index-Dx3HwWcb.js} +1 -1
  55. package/dist/{index.esm2017-Bs9CWbrs.js → index.esm2017-Dd02dg_O.js} +38 -38
  56. package/dist/{loading-Dj5bx8fg.js → loading-Or1ZDzDS.js} +11 -11
  57. package/dist/{membership-B2avlZoN.js → membership-B8h5ku-v.js} +3 -3
  58. package/dist/{money-CNSWtAf-.js → money-CmsKAJBT.js} +1 -1
  59. package/dist/{number-BA58pjU6.js → number-iEhp7Uai.js} +1 -1
  60. package/dist/{rule-BWazFYuZ.js → rule-BORkgSMK.js} +3 -3
  61. package/dist/{rule-builder-RIloDQBn.js → rule-builder-DEfkSr68.js} +1 -1
  62. package/dist/{template-u01r84LY.js → template-C_Y7bhlI.js} +4 -4
  63. package/dist/{usePagination--B6Wt7C1.js → usePagination-Ci8-uZvb.js} +1 -1
  64. package/dist/vue-i18n-BXzrZRP6.js +2365 -0
  65. package/package.json +7 -4
  66. package/dist/Analytic-AqWU_lJy.js +0 -620
  67. package/dist/Broadcast-utWSrzP9.js +0 -216
  68. package/dist/Card-x6qnEaIt.js +0 -823
  69. package/dist/Credit-CojzmUnh.js +0 -214
  70. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-8l3Dt_Lo.js +0 -344
  71. package/dist/Experience-CPjovKWF.js +0 -211
  72. package/dist/Game-DWcjPfZP.js +0 -250
  73. package/dist/Marketing-CwoI0pFF.js +0 -309
  74. package/dist/Member-oRcVGr20.js +0 -92
  75. package/dist/Mission-Y8s5MQIC.js +0 -248
  76. package/dist/Point-0Fw3qLIW.js +0 -220
  77. package/dist/Promotion-vqM23NPX.js +0 -244
  78. package/dist/Segment-lgzMRCyd.js +0 -564
  79. package/dist/Setting-CFGB53S0.js +0 -1870
  80. package/dist/Store-fJlew3HJ.js +0 -1533
  81. package/dist/StoreRewards-DWq34E4p.js +0 -429
  82. package/dist/Transaction-CYqMFEzc.js +0 -36
  83. package/dist/Voucher-B0QCX_nG.js +0 -485
  84. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +0 -140
  85. package/dist/app-SOHUUM08.js +0 -2974
  86. package/dist/dto-CY7JrHkZ.js +0 -1145
  87. package/dist/index-BMxu_XL-.js +0 -11
@@ -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-Dj5bx8fg.js";
5
- import { u as X } from "./business-DveMDDHY.js";
6
- import { u as Y } from "./campaign-CMb05XLt.js";
7
- import { g as F, b as k } from "./dto-CY7JrHkZ.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-C137bE1q.js";
10
- import { u as te } from "./template-u01r84LY.js";
11
- import { c as y } from "./index-CgPlJqkX.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
- };