@feedmepos/mf-connect 0.1.38-beta.26 → 0.1.38-beta.27

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 (97) hide show
  1. package/dist/{Analytic-GI7aYtUb.js → Analytic-Dgpp4zkU.js} +13 -13
  2. package/dist/{App-BoklLgkw.js → App-DNRzPvQb.js} +7 -7
  3. package/dist/{AuditLogs-DGAmSC_0.js → AuditLogs-BhG5wShL.js} +10 -10
  4. package/dist/{Bin-BiF3wXhU.js → Bin-BSmAVdOX.js} +8 -8
  5. package/dist/Broadcast-DZ-qedno.js +233 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIGwoDq9.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BS5HDnfb.js} +6 -6
  7. package/dist/{Card-Bzm_iM7j.js → Card-CLTczC6l.js} +16 -16
  8. package/dist/{Collections-CZEDKF0v.js → Collections-CZIk5DSy.js} +6 -6
  9. package/dist/Credit-DGGU3d68.js +228 -0
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Cz4ydsOk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-FxEXBhTK.js} +32 -32
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-d67tWKfX.js → EffectSheet.vue_vue_type_style_index_0_lang-Bx_7FAYn.js} +6 -6
  12. package/dist/Experience-Dd0Xkp_z.js +229 -0
  13. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  14. package/dist/{Game-ooDjLDzG.js → Game-N6iQZPqM.js} +103 -97
  15. package/dist/{Grab-CHmDWK3s.js → Grab-Dn8pP3Vy.js} +10 -10
  16. package/dist/{Index-C9yMbuO8.js → Index-Do0nSsYj.js} +10 -10
  17. package/dist/{Marketing-BvgC-F4p.js → Marketing-BG8L2AVq.js} +6 -6
  18. package/dist/{Member-DP0Cm8yE.js → Member-HQWOfz1g.js} +10 -10
  19. package/dist/{MemberList-BYZ2NfAg.js → MemberList-jfgCK6k3.js} +25 -25
  20. package/dist/{MemberTransactions-DvG4SU0m.js → MemberTransactions-DYOBM90W.js} +1 -1
  21. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C3-IpjMr.js → MessageInput.vue_vue_type_script_setup_true_lang-DdaqUEEb.js} +7 -7
  22. package/dist/{Mission-CBOIiAhx.js → Mission-CkXM1dNO.js} +112 -106
  23. package/dist/{Overview-BqKRh6LC.js → Overview-BJWncUrN.js} +18 -18
  24. package/dist/Point-CfuVogKH.js +232 -0
  25. package/dist/{Promotion-D4HBy-As.js → Promotion-TtgchqMU.js} +11 -11
  26. package/dist/{Queue-BqzI56Vp.js → Queue-xaCqQVUP.js} +11 -11
  27. package/dist/{Record-WtLmMgjU.js → Record-D6z_Pywk.js} +8 -8
  28. package/dist/{Reward-yfsdyC-T.js → Reward-DBzn5tRP.js} +15 -15
  29. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DaB5piDf.js → RewardGroup.vue_vue_type_script_setup_true_lang-CRv8xHpU.js} +11 -11
  30. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DCKbSowE.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bd8pXLRT.js} +13 -13
  31. package/dist/{Segment-hOxwXwqZ.js → Segment-gxBRnKo7.js} +22 -22
  32. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-IfFZG5uK.js → SelectItems.vue_vue_type_script_setup_true_lang-DbC6xTWH.js} +2 -2
  33. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-C9FaS4EF.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BAraQhKS.js} +11 -11
  34. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CNd_-RAr.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CFnFyNya.js} +3 -3
  35. package/dist/{Setting-B7XBouh4.js → Setting-DX7hLnTQ.js} +11 -11
  36. package/dist/{Store-Dbg7gN9h.js → Store-C3GZXKuC.js} +19 -19
  37. package/dist/{StoreRewards-DoBjQyns.js → StoreRewards-CCWDGKLp.js} +13 -13
  38. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C3_usDfP.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DNgDoMR9.js} +21 -21
  39. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C5BP2K1C.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DQmZE9_V.js} +1 -1
  40. package/dist/{Tier-Q9hjmprx.js → Tier-DbWQM6De.js} +20 -20
  41. package/dist/{Title-9h42ZNEa.js → Title-a2bTIZi0.js} +19 -19
  42. package/dist/{Transaction-B_NIJcmb.js → Transaction-f8XwfBob.js} +2 -2
  43. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-EZ42L0jN.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DUQ0fU5s.js} +6 -6
  44. package/dist/{Voucher-OjdoUYOe.js → Voucher-C7Dfsqk6.js} +14 -14
  45. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CgUFty-i.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C5fm0K4i.js} +10 -10
  46. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D9V2WsTX.js → ZodTextField.vue_vue_type_script_setup_true_lang-A-h4HUTJ.js} +1 -1
  47. package/dist/{app-A-A8AXY4.js → app-BOG1dC8a.js} +32 -32
  48. package/dist/{app-psmMhnbB.js → app-jGPh064M.js} +1 -1
  49. package/dist/app.js +1 -1
  50. package/dist/{business-BkIoeq-Q.js → business--P6e14wH.js} +11 -8
  51. package/dist/{campaign-C0gfY75c.js → campaign-CR_hUukZ.js} +9 -9
  52. package/dist/{campaign-CERB2jjK.js → campaign-C_gQlNNb.js} +2 -2
  53. package/dist/{campaign.enum-jpIcwh1C.js → campaign.enum-Dj5o3Gnx.js} +1 -1
  54. package/dist/{campaign.fn-C3JAU897.js → campaign.fn-DQZ0W-EB.js} +3 -3
  55. package/dist/{collectible.enum-PLiXkPXk.js → collectible.enum-DQgguzyG.js} +1 -1
  56. package/dist/{collection.fn-BEgw5oag.js → collection.fn-1jzRWzrr.js} +2 -2
  57. package/dist/{dto-CzjctCKL.js → dto-C3jWvc1e.js} +4 -4
  58. package/dist/{effect-BzkBC2cZ.js → effect-dA2mpaCE.js} +1 -1
  59. package/dist/{email-addresses-BWQOZIxj.js → email-addresses-37_SE2AF.js} +1 -1
  60. package/dist/{export-Bqt9zope.js → export-Cn7Elq59.js} +3 -3
  61. package/dist/{helper-CnEOKaJw.js → helper-1FmJd7OP.js} +1 -1
  62. package/dist/{index-BMLcVoj2.js → index-B4j34swO.js} +1 -1
  63. package/dist/{index-DBN0XD-h.js → index-B9iL1w4-.js} +3 -3
  64. package/dist/{index-DFqn9RQx.js → index-BRALrcjU.js} +3 -3
  65. package/dist/{index-66ugkTKw.js → index-BcEhSpSd.js} +1 -1
  66. package/dist/{index-BD7Rc0qN.js → index-Bv04ElXo.js} +6 -6
  67. package/dist/{index-Cs3ZFd92.js → index-BwBDTG0U.js} +4 -4
  68. package/dist/{index-DnJuxEaY.js → index-C0TBodx0.js} +1 -1
  69. package/dist/{index-DfOMpXlE.js → index-C0uZD6Fb.js} +1 -1
  70. package/dist/{index-DEezTfBN.js → index-CCzzmRaK.js} +3 -3
  71. package/dist/{index-CeDl4txs.js → index-Cq9x3KEB.js} +1 -1
  72. package/dist/{index-DZLqscW5.js → index-DIup5B2H.js} +1 -1
  73. package/dist/{index-yOIVmjex.js → index-Da1osm0C.js} +1 -1
  74. package/dist/{index-D5aQKEmO.js → index-Oly5lYMA.js} +1 -1
  75. package/dist/{index-DIN-0kYC.js → index-YhB238q9.js} +2 -2
  76. package/dist/{index.esm2017-7gQUvseu.js → index.esm2017-pcImat1a.js} +1 -1
  77. package/dist/{loading-CJIHUxKM.js → loading-BIAeRmZo.js} +1 -1
  78. package/dist/{membership-DRnWUdOc.js → membership-D74wSltj.js} +3 -3
  79. package/dist/{money-I2p-gwmi.js → money-DQuZChef.js} +1 -1
  80. package/dist/{number-DldVO4aW.js → number-DORW-adL.js} +1 -1
  81. package/dist/{objectid-B_MkqbEB.js → objectid-CPqo6DS_.js} +5 -5
  82. package/dist/{plugins-D17305Np.js → plugins-BVLU2dc_.js} +2 -2
  83. package/dist/{reward-3PHDIRXM.js → reward-CsZQy2b1.js} +1 -1
  84. package/dist/{rule-BgMw4FoF.js → rule-CtYg9lgQ.js} +3 -3
  85. package/dist/{rule-builder-CmqmCe3P.js → rule-builder-TwHL3OPZ.js} +1 -1
  86. package/dist/{template-BR9R6E1B.js → template-DlLEQKFu.js} +4 -4
  87. package/dist/{timezone-CWS-nhUv.js → timezone-DGJqaz8e.js} +1 -1
  88. package/dist/{trigger-DsYBkR3I.js → trigger-B4JMJKDj.js} +4 -4
  89. package/dist/{user-B3SLxQOc.js → user-ZU2f1nbT.js} +1 -1
  90. package/dist/{vue-i18n-CttzNDMl.js → vue-i18n-BtpjMXUM.js} +2 -2
  91. package/dist/{xlsx-cNTfolRW.js → xlsx-BiJUMUcX.js} +1 -1
  92. package/package.json +1 -1
  93. package/dist/Broadcast-D5ypkyn0.js +0 -227
  94. package/dist/Credit-nieDAS9M.js +0 -222
  95. package/dist/Experience-CKeWLWIk.js +0 -223
  96. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  97. package/dist/Point-14thvTNE.js +0 -226
@@ -1,226 +0,0 @@
1
- import { defineComponent as j, ref as P, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as b, Fragment as w, createVNode as r, unref as t, withCtx as y, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as C, resolveDynamicComponent 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 { p as Q } from "./plugins-D17305Np.js";
5
- import { u as W } from "./loading-CJIHUxKM.js";
6
- import { u as X } from "./business-BkIoeq-Q.js";
7
- import { u as Y } from "./campaign-CERB2jjK.js";
8
- import { g as Z, a as V, b as I } from "./campaign-C0gfY75c.js";
9
- import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Cz4ydsOk.js";
11
- import { u as oe } from "./template-BR9R6E1B.js";
12
- import { u as ae } from "./vue-i18n-CttzNDMl.js";
13
- import { c as _ } from "./index-DfOMpXlE.js";
14
- const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ j({
15
- __name: "Point",
16
- setup(be) {
17
- const { t: s } = ae(), B = {
18
- label: s("connect.program.common.actions.create", {
19
- type: s("connect.program.point.title").toLowerCase()
20
- }),
21
- value: "create",
22
- isPrimary: !0,
23
- prependIcon: "add"
24
- }, $ = oe("COIN", G()), h = X(), m = Y(), { global: K, minor: x } = W, i = P({
25
- searchKey: "",
26
- location: null
27
- }), u = A(
28
- () => m.campaigns.point.filter(
29
- (e) => !i.value.location || !e.targetLocation || e.targetLocation.includes(i.value.location)
30
- )
31
- ), N = [
32
- {
33
- header: s("connect.program.common.table.title"),
34
- accessorFn: (e) => e.name
35
- },
36
- {
37
- header: s("connect.program.common.table.status"),
38
- accessorFn: (e) => Z(e),
39
- cell(e) {
40
- return V(e.row.original);
41
- }
42
- },
43
- {
44
- header: s("connect.program.common.table.summary"),
45
- accessorFn: (e) => I(e)
46
- },
47
- {
48
- header: s("connect.program.common.table.actions"),
49
- cell(e) {
50
- return E(J.FmButton, {
51
- variant: "tertiary",
52
- icon: "delete",
53
- iconColor: "neutral-gray-400",
54
- onClick: (o) => {
55
- o.stopPropagation(), F(e.row.original);
56
- }
57
- });
58
- }
59
- }
60
- ], v = P();
61
- async function F(e) {
62
- await Q.remove(`Are you sure you want to remove ${e.name}?`) && await x(
63
- async () => {
64
- await _.delete(e._id), await m.read("COIN");
65
- },
66
- {
67
- message: `Removing ${e.name}`,
68
- successMessage: `Removed ${e.name} successfully`
69
- }
70
- );
71
- }
72
- async function f(e) {
73
- e ? await o() : $.open(async (p) => {
74
- await o(p);
75
- });
76
- async function o(p) {
77
- var g;
78
- (g = v.value) == null || g.showSheet(
79
- !0,
80
- "COIN",
81
- e ? await _.readById(e._id) : void 0,
82
- p
83
- );
84
- }
85
- }
86
- async function R(e) {
87
- await x(
88
- async () => {
89
- e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await m.read("COIN");
90
- },
91
- {
92
- message: `${e.campaign._id ? "Updating" : "Creating"} point program`,
93
- successMessage: `Point program ${e.campaign._id ? "updated" : "created"} successfully`
94
- }
95
- );
96
- }
97
- return M(async () => {
98
- await K(async () => {
99
- await m.read("COIN");
100
- });
101
- }), (e, o) => {
102
- const p = l("FmPill"), g = l("FmPageHead"), k = l("FmSearch"), O = l("FmTable"), S = l("FmButton"), U = l("FmListItem"), D = l("FmList"), T = l("FmCard");
103
- return d(), b(w, null, [
104
- r(g, {
105
- title: t(s)("connect.program.point.title"),
106
- actions: t(u).length > 0 && t(h).isPremium ? [B] : [],
107
- "onClick:action": o[0] || (o[0] = () => f())
108
- }, {
109
- title: y(() => [
110
- n("div", ne, [
111
- n("span", se, c(t(s)("connect.program.point.title")), 1),
112
- r(p, { variant: "premium" })
113
- ])
114
- ]),
115
- _: 1
116
- }, 8, ["title", "actions"]),
117
- n("div", ie, [
118
- r(k, {
119
- modelValue: t(i).searchKey,
120
- "onUpdate:modelValue": o[1] || (o[1] = (a) => t(i).searchKey = a),
121
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
122
- placeholder: "search",
123
- collapsible: ""
124
- }, null, 8, ["modelValue"]),
125
- t(m).campaigns.point && t(m).campaigns.point.length > 0 ? (d(), b(w, { key: 0 }, [
126
- n("div", re, [
127
- n("div", le, [
128
- r(ee, {
129
- modelValue: t(i).location,
130
- "onUpdate:modelValue": o[2] || (o[2] = (a) => t(i).location = a),
131
- label: "Location: ",
132
- "show-item-label": !0,
133
- icon: "storefront",
134
- placement: "bottom-start",
135
- items: t(h).locationItems
136
- }, null, 8, ["modelValue", "items"])
137
- ]),
138
- r(k, {
139
- modelValue: t(i).searchKey,
140
- "onUpdate:modelValue": o[3] || (o[3] = (a) => t(i).searchKey = a),
141
- class: "xs:hidden",
142
- placeholder: "search",
143
- collapsible: ""
144
- }, null, 8, ["modelValue"])
145
- ]),
146
- r(O, {
147
- class: "xs:hidden",
148
- "row-data": t(u),
149
- "column-defs": N,
150
- "search-value": t(i).searchKey,
151
- "column-filter": [],
152
- onRowClick: o[4] || (o[4] = (a) => f(a.original)),
153
- "hide-footer": t(u).length < 10
154
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
155
- r(D, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
156
- default: y(() => [
157
- (d(!0), b(w, null, H(t(u).filter(
158
- (a) => a.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
159
- ), (a) => (d(), C(U, {
160
- key: a._id.toString(),
161
- onClick: (L) => f(a),
162
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
163
- }, {
164
- default: y(() => [
165
- n("div", ce, [
166
- n("div", me, [
167
- (d(), C(q(t(V)(a)))),
168
- n("div", de, c(t(s)("connect.program.point.used", {
169
- count: a.currentReceive ?? 0
170
- })), 1)
171
- ]),
172
- n("div", pe, [
173
- n("div", ue, c(a.name), 1),
174
- n("div", fe, c(t(I)(a)), 1)
175
- ]),
176
- n("div", ge, " Point received: " + c(a.currentReceive ?? 0), 1)
177
- ]),
178
- r(S, {
179
- icon: "delete",
180
- "icon-color": "neutral-gray-400",
181
- variant: "tertiary",
182
- onClick: (L) => (L.stopPropagation(), F(a))
183
- }, null, 8, ["onClick"])
184
- ]),
185
- _: 2
186
- }, 1032, ["onClick"]))), 128))
187
- ]),
188
- _: 1
189
- })
190
- ], 64)) : (d(), C(T, {
191
- key: 1,
192
- variant: "outlined",
193
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
194
- }, {
195
- default: y(() => [
196
- o[6] || (o[6] = n("img", {
197
- src: z,
198
- class: "aspect-square w-[150px]"
199
- }, null, -1)),
200
- n("div", ye, [
201
- n("div", _e, c(t(s)("connect.program.point.empty_state.title")), 1),
202
- n("div", he, c(t(s)("connect.program.point.empty_state.description")), 1)
203
- ]),
204
- r(S, {
205
- variant: "primary",
206
- label: "Create point program",
207
- disabled: !t(h).isPremium,
208
- icon: "add",
209
- onClick: o[5] || (o[5] = (a) => f())
210
- }, null, 8, ["disabled"])
211
- ]),
212
- _: 1
213
- })),
214
- r(te, {
215
- ref_key: "sheetRef",
216
- ref: v,
217
- "onSubmit:modelValue": R
218
- }, null, 512)
219
- ])
220
- ], 64);
221
- };
222
- }
223
- });
224
- export {
225
- Ke as default
226
- };