@feedmepos/mf-connect 0.1.9-prod → 0.1.11-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-8Ew7y5t9.js → Analytic-Bbt1kP2U.js} +24 -23
  2. package/dist/{App-3BVNH3r-.js → App-CVA65EVC.js} +56 -51
  3. package/dist/{Broadcast-CrsPUhLT.js → Broadcast-BJXK8OE5.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DE300Y56.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DDEx0cK9.js} +7 -7
  5. package/dist/Card-DFiUkfYj.js +895 -0
  6. package/dist/{Collections-djS9hLI8.js → Collections-qVnvveUf.js} +24 -29
  7. package/dist/{Credit-D4KEvIov.js → Credit-BWHTbAG-.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjM81fmS.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-4_cHlWUJ.js} +648 -1284
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-aEWfdpCg.js → EffectSheet.vue_vue_type_style_index_0_lang-DLgZd4HU.js} +19 -19
  10. package/dist/{Experience-2FPLO7aV.js → Experience-BmGSus53.js} +8 -8
  11. package/dist/{Game-e_UjVJgU.js → Game-49w7XN5k.js} +8 -8
  12. package/dist/Index-D-7hsAaE.js +258 -0
  13. package/dist/{Marketing-B2hCjZ2r.js → Marketing-DtbJxS_j.js} +5 -5
  14. package/dist/{Member-D_ykRIBb.js → Member-jZks4pw_.js} +4 -4
  15. package/dist/{MemberList-LmzzYxEn.js → MemberList-BqO54kPC.js} +193 -189
  16. package/dist/{MemberTransactions-B2vqlKaP.js → MemberTransactions-CLK7VmPw.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DQ2ubF0N.js → MessageInput.vue_vue_type_script_setup_true_lang-ef2Qrdvd.js} +2 -2
  18. package/dist/Mission-LGC1CGrB.js +273 -0
  19. package/dist/Overview-Dm_ycoqZ.js +1078 -0
  20. package/dist/{Point-DFriwWWY.js → Point-BBNJ9cc5.js} +8 -8
  21. package/dist/{Promotion-Db3IEs2F.js → Promotion-DFh9IEmP.js} +9 -9
  22. package/dist/Record-oBmJTn3G.js +338 -0
  23. package/dist/Reward-DR_HzrrM.js +441 -0
  24. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-Du_0o2b9.js +150 -0
  25. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CxXugphA.js +1638 -0
  26. package/dist/{Segment-CE8q9JV2.js → Segment-DjyHLWZC.js} +13 -13
  27. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-stTwgie4.js +181 -0
  28. package/dist/{Setting-Vcz1S27V.js → Setting-a7Tw-3ht.js} +31 -31
  29. package/dist/Store-HWGWswEm.js +1744 -0
  30. package/dist/{StoreRewards-Dt30AkWo.js → StoreRewards-s4cX1bFH.js} +12 -12
  31. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dq4qIXZu.js +1132 -0
  32. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-f59onlgt.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BQpbScyf.js} +1 -1
  33. package/dist/{Tier-a6yXEtLd.js → Tier-C7kiLjzE.js} +19 -19
  34. package/dist/{Title-A3-2EI0w.js → Title-BPv1ZiHg.js} +19 -19
  35. package/dist/{Transaction-DswABr2P.js → Transaction-HdR7RiGY.js} +2 -2
  36. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-D3VgIQb-.js +130 -0
  37. package/dist/{Voucher-DEoVgZYa.js → Voucher-Y5Lh5xms.js} +11 -11
  38. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CFKID7mS.js +419 -0
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-ccc1vxjS.js → ZodTextField.vue_vue_type_script_setup_true_lang-6asSbt53.js} +1 -1
  40. package/dist/{app-C23GfQGq.js → app-Bh2mviM1.js} +1 -1
  41. package/dist/{app-C66C2KLW.js → app-MbHo43vs.js} +982 -698
  42. package/dist/app.js +1 -1
  43. package/dist/{business-DNAVZOSH.js → business-DMzeDNMd.js} +1 -1
  44. package/dist/{campaign-Cv0HaUD1.js → campaign-2swZVVbi.js} +2 -2
  45. package/dist/campaign.enum-CHI6p9lH.js +20 -0
  46. package/dist/campaign.fn-DNwV5ZWO.js +758 -0
  47. package/dist/collectible.enum-Y3ALLTcR.js +19 -0
  48. package/dist/{collection.fn-Dxzr2oPt.js → collection.fn-CfvnmVQa.js} +2 -2
  49. package/dist/dto-DseG41FR.js +2018 -0
  50. package/dist/{effect-CUuL8Tci.js → effect-BH4hGy1N.js} +1 -1
  51. package/dist/{email-addresses-Yt3s7i2b.js → email-addresses-doOfKmSj.js} +1 -1
  52. package/dist/{export-CNg5YWMm.js → export-DGrsZa4F.js} +3 -3
  53. package/dist/{helper-DzmKNFue.js → helper-3ohDu5Tn.js} +1 -1
  54. package/dist/{index-BK8X9RF6.js → index-B8HMoADH.js} +3 -3
  55. package/dist/{index-D0obMrAS.js → index-BUzeShnL.js} +173 -62
  56. package/dist/index-BWwF7uuk.js +1049 -0
  57. package/dist/index-BXw9yi-G.js +32 -0
  58. package/dist/{index-yzH5eyKW.js → index-C-ozJGq6.js} +1 -1
  59. package/dist/{index-CsCgQ8gt.js → index-CDT7BpQ3.js} +1 -1
  60. package/dist/{index-Dnf7j71V.js → index-CKfeyWFN.js} +9 -3
  61. package/dist/{index-9CXt2kbQ.js → index-CKji0U5N.js} +293 -287
  62. package/dist/{index-QuBsnXgx.js → index-CVlbqA1t.js} +1 -1
  63. package/dist/{index-B88e_9YI.js → index-D5CHO7oc.js} +1 -1
  64. package/dist/{index-O9lB54LY.js → index-rYTZxC9p.js} +1348 -1342
  65. package/dist/index-vh86FiIQ.js +10 -0
  66. package/dist/index-wBdTUnZ6.js +54 -0
  67. package/dist/{index.esm2017-TpBElhnN.js → index.esm2017-D-hthfW3.js} +1 -1
  68. package/dist/{loading-ChoC5E9d.js → loading-DQnXnCXT.js} +156 -153
  69. package/dist/{membership-CU-k0-Tf.js → membership-C3envHTy.js} +52 -44
  70. package/dist/{money-DANmyTBj.js → money-Dm7B8wUJ.js} +1 -1
  71. package/dist/{number-DrocTWDD.js → number-Swjcamr8.js} +1 -1
  72. package/dist/objectid-xH_8eWzr.js +145 -0
  73. package/dist/reward-DOggYNm3.js +36 -0
  74. package/dist/{rule-BQLmpER9.js → rule-BQy3e3DE.js} +4 -3
  75. package/dist/{rule-builder-3YRdr18A.js → rule-builder-CPWmw5lP.js} +1 -1
  76. package/dist/{template-DOKU1QkY.js → template-Dprn2jD_.js} +4 -4
  77. package/dist/trigger-BUY-zCBi.js +144 -0
  78. package/dist/{usePagination-JGI7x0W7.js → usePagination-CEQLUMQ7.js} +1 -1
  79. package/dist/user-DIK4sBIA.js +54 -0
  80. package/dist/{vue-i18n-Bch1JmhI.js → vue-i18n-B7ledd-g.js} +120 -120
  81. package/package.json +2 -2
  82. package/dist/Card-DndggRLr.js +0 -1036
  83. package/dist/Mission-CsLdMq1M.js +0 -261
  84. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-_P2yImhi.js +0 -1804
  85. package/dist/Store-C8kT7JN5.js +0 -1531
  86. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cc2F_06x.js +0 -1065
  87. package/dist/dto-CcrufW2j.js +0 -2770
  88. package/dist/index-C7745kXl.js +0 -755
  89. package/dist/index-CZ28ywyB.js +0 -298
  90. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,261 +0,0 @@
1
- import { defineComponent as $, ref as V, computed as E, h as m, onMounted as A, resolveComponent as r, openBlock as d, createElementBlock as h, Fragment as w, createVNode as i, unref as o, createElementVNode as s, withCtx as b, renderList as H, createBlock as x, resolveDynamicComponent as q, toDisplayString as p } from "vue";
2
- import { _ as z } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as G, components as v } from "@feedmepos/ui-library";
4
- import { a as J, p as Q, u as W } from "./loading-ChoC5E9d.js";
5
- import { u as X } from "./business-DNAVZOSH.js";
6
- import { u as Y } from "./campaign-Cv0HaUD1.js";
7
- import { g as L, a as M } from "./dto-CcrufW2j.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-BjM81fmS.js";
10
- import { u as oe } from "./template-DOKU1QkY.js";
11
- import { s as te } from "./index-CuvNtC_M.js";
12
- import { u as ne } from "./vue-i18n-Bch1JmhI.js";
13
- import { c as _ } from "./index-CsCgQ8gt.js";
14
- const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, ie = { 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" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = /* @__PURE__ */ s("img", {
15
- src: z,
16
- class: "aspect-square w-[150px]"
17
- }, null, -1), ge = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ $({
18
- __name: "Mission",
19
- setup(he) {
20
- const { t: n } = ne(), B = {
21
- label: n("connect.program.common.actions.create", {
22
- type: n("connect.program.mission.title").toLowerCase()
23
- }),
24
- value: "create",
25
- isPrimary: !0,
26
- prependIcon: "add"
27
- }, K = oe("MISSION", G()), N = X(), l = Y(), { global: P, minor: C } = W, c = V({
28
- searchKey: "",
29
- location: null
30
- }), u = E(
31
- () => l.campaigns.mission.filter(
32
- (e) => !c.value.location || !e.targetLocation || e.targetLocation.includes(c.value.location)
33
- )
34
- ), R = [
35
- {
36
- header: n("connect.program.common.table.title"),
37
- accessorKey: "name",
38
- // accessorFn: (v) => v.name,
39
- cell(e) {
40
- return m("div", { class: "flex items-center justify-between gap-4" }, [
41
- m("div", { class: "flex items-center" }, [
42
- m(
43
- v.FmTooltip,
44
- {
45
- content: e.row.original._id,
46
- onClick: (t) => {
47
- t.stopPropagation(), J(e.row.original._id);
48
- }
49
- },
50
- [
51
- m(v.FmIcon, {
52
- name: "info",
53
- outline: !0,
54
- size: "sm"
55
- })
56
- ]
57
- )
58
- ]),
59
- m("div", { class: "flex-1" }, e.row.original.name)
60
- ]);
61
- }
62
- },
63
- {
64
- header: n("connect.campaign.mission.type"),
65
- accessorFn: (e) => te(e.mission.type)
66
- //v.effect,
67
- },
68
- {
69
- header: n("connect.program.common.table.status"),
70
- cell(e) {
71
- return L(e.row.original);
72
- }
73
- },
74
- {
75
- header: n("connect.program.common.table.summary"),
76
- accessorFn: (e) => M(e)
77
- //v.effect,
78
- },
79
- {
80
- header: n("connect.campaign.mission.received"),
81
- accessorFn: (e) => {
82
- var t;
83
- return ((t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.currentReceive) ?? 0;
84
- }
85
- },
86
- {
87
- header: n("connect.program.common.table.actions"),
88
- cell(e) {
89
- return m(v.FmButton, {
90
- variant: "tertiary",
91
- icon: "delete",
92
- iconColor: "neutral-gray-400",
93
- onClick: (t) => {
94
- t.stopPropagation(), F(e.row.original);
95
- }
96
- });
97
- }
98
- }
99
- ], S = V();
100
- async function F(e) {
101
- await Q.remove(
102
- n("connect.program.common.remove.confirm", { name: e.name })
103
- ) && await C(
104
- async () => {
105
- await _.delete(e._id), await l.read("MISSION");
106
- },
107
- {
108
- message: n("connect.program.common.remove.removing", { name: e.name }),
109
- successMessage: n("connect.program.common.remove.removed", {
110
- name: e.name
111
- })
112
- }
113
- );
114
- }
115
- async function y(e) {
116
- e ? await t() : K.open(async (f) => {
117
- await t(f);
118
- });
119
- async function t(f) {
120
- var g;
121
- (g = S.value) == null || g.showSheet(
122
- !0,
123
- "MISSION",
124
- e ? await _.readById(e._id) : void 0,
125
- f
126
- );
127
- }
128
- }
129
- async function T(e) {
130
- await C(
131
- async () => {
132
- e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await l.read("MISSION");
133
- },
134
- {
135
- message: n(
136
- e.campaign._id ? "connect.program.common.update.updating" : "connect.program.common.update.creating",
137
- { type: "Mission" }
138
- ),
139
- successMessage: n("connect.program.common.update.success", {
140
- type: "Mission",
141
- action: e.campaign._id ? "updated" : "created"
142
- })
143
- }
144
- );
145
- }
146
- return A(async () => {
147
- await P(async () => {
148
- await l.read("MISSION"), console.log(u);
149
- });
150
- }), (e, t) => {
151
- const f = r("FmPageHead"), g = r("FmSearch"), O = r("FmTable"), k = r("FmButton"), j = r("FmListItem"), D = r("FmList"), U = r("FmCard");
152
- return d(), h(w, null, [
153
- i(f, {
154
- title: o(n)("connect.campaign.mission.title"),
155
- actions: o(u).length > 0 ? [B] : [],
156
- "onClick:action": t[0] || (t[0] = () => y())
157
- }, null, 8, ["title", "actions"]),
158
- s("div", ae, [
159
- i(g, {
160
- modelValue: o(c).searchKey,
161
- "onUpdate:modelValue": t[1] || (t[1] = (a) => o(c).searchKey = a),
162
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
163
- placeholder: o(n)("connect.program.common.search"),
164
- collapsible: ""
165
- }, null, 8, ["modelValue", "placeholder"]),
166
- o(l).campaigns.mission && o(l).campaigns.mission.length > 0 ? (d(), h(w, { key: 0 }, [
167
- s("div", se, [
168
- s("div", ce, [
169
- i(Z, {
170
- modelValue: o(c).location,
171
- "onUpdate:modelValue": t[2] || (t[2] = (a) => o(c).location = a),
172
- label: o(n)("connect.program.common.location"),
173
- "show-item-label": !0,
174
- icon: "storefront",
175
- placement: "bottom-start",
176
- items: o(N).locationItems
177
- }, null, 8, ["modelValue", "label", "items"])
178
- ]),
179
- i(g, {
180
- modelValue: o(c).searchKey,
181
- "onUpdate:modelValue": t[3] || (t[3] = (a) => o(c).searchKey = a),
182
- class: "xs:hidden",
183
- placeholder: "search",
184
- collapsible: ""
185
- }, null, 8, ["modelValue"])
186
- ]),
187
- i(O, {
188
- class: "xs:hidden",
189
- "row-data": o(u),
190
- "column-defs": R,
191
- "search-value": o(c).searchKey,
192
- "column-filter": [],
193
- onRowClick: t[4] || (t[4] = (a) => y(a.original)),
194
- "hide-footer": o(u).length < 10
195
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
196
- i(D, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
197
- default: b(() => [
198
- (d(!0), h(w, null, H(o(u).filter(
199
- (a) => a.name.toLowerCase().includes(o(c).searchKey.toLowerCase())
200
- ), (a) => (d(), x(j, {
201
- key: a._id.toString(),
202
- onClick: (I) => y(a),
203
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
204
- }, {
205
- default: b(() => [
206
- s("div", ie, [
207
- s("div", re, [
208
- (d(), x(q(o(L)(a)))),
209
- s("div", le, p(a.currentReceive ?? 0) + " used ", 1)
210
- ]),
211
- s("div", me, [
212
- s("div", de, p(a.name), 1),
213
- s("div", pe, p(o(M)(a)), 1)
214
- ]),
215
- s("div", ue, " Token received: " + p(a.currentReceive ?? 0), 1)
216
- ]),
217
- i(k, {
218
- icon: "delete",
219
- "icon-color": "neutral-gray-400",
220
- variant: "tertiary",
221
- onClick: (I) => (I.stopPropagation(), F(a))
222
- }, null, 8, ["onClick"])
223
- ]),
224
- _: 2
225
- }, 1032, ["onClick"]))), 128))
226
- ]),
227
- _: 1
228
- })
229
- ], 64)) : (d(), x(U, {
230
- key: 1,
231
- variant: "outlined",
232
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
233
- }, {
234
- default: b(() => [
235
- fe,
236
- s("div", ge, [
237
- s("div", ye, p(o(n)("connect.campaign.mission.createProgram")), 1),
238
- s("div", _e, p(o(n)("connect.campaign.mission.description")), 1)
239
- ]),
240
- i(k, {
241
- variant: "primary",
242
- label: o(n)("connect.campaign.mission.create"),
243
- icon: "add",
244
- onClick: t[5] || (t[5] = (a) => y())
245
- }, null, 8, ["label"])
246
- ]),
247
- _: 1
248
- })),
249
- i(ee, {
250
- ref_key: "sheetRef",
251
- ref: S,
252
- "onSubmit:modelValue": T
253
- }, null, 512)
254
- ])
255
- ], 64);
256
- };
257
- }
258
- });
259
- export {
260
- Ke as default
261
- };