@feedmepos/mf-connect 0.1.66-prod → 0.1.68-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 (91) hide show
  1. package/dist/{Analytic-Dex_Tx2q.js → Analytic-mn6S2yVI.js} +10 -10
  2. package/dist/{App-xTx4Ue3K.js → App-txADlT1z.js} +8 -8
  3. package/dist/{Bin-O12IFgkp.js → Bin-D7LRr3gV.js} +8 -8
  4. package/dist/{Broadcast-CatdGCjW.js → Broadcast-C6wePnIr.js} +8 -8
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-9Sr8o3dw.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C3QkAQeW.js} +6 -6
  6. package/dist/{Card-N92UlALy.js → Card-CGeu289a.js} +16 -16
  7. package/dist/Collections-B7IZD3AS.js +518 -0
  8. package/dist/{Credit-DrEIvXv-.js → Credit-CPs7F-be.js} +8 -8
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-KK0Dqjv5.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BOWLrVko.js} +30 -30
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-UtoDaX_z.js → EffectSheet.vue_vue_type_style_index_0_lang-Bct0b3A6.js} +6 -6
  11. package/dist/{Experience-BaemuCSB.js → Experience-Cdjvf4QQ.js} +8 -8
  12. package/dist/Game-CIgthDBx.js +297 -0
  13. package/dist/{Index-C10pITDk.js → Index-CZ4qViHs.js} +10 -10
  14. package/dist/{Marketing-Bp6IOLLN.js → Marketing-Di36xU4J.js} +26 -26
  15. package/dist/{Member-CMCQWAn4.js → Member-BUN463uF.js} +10 -10
  16. package/dist/{MemberList-8rc8IEUW.js → MemberList-B9Ula0AW.js} +25 -25
  17. package/dist/{MemberTransactions-ScjuvdkZ.js → MemberTransactions-Cd57Udqx.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BuyisyTn.js → MessageInput.vue_vue_type_script_setup_true_lang-sSKdealx.js} +8 -8
  19. package/dist/{Mission-Dy9Id85G.js → Mission-CGOzNov4.js} +9 -9
  20. package/dist/{Overview-BKvCHfda.js → Overview-GdXzr2WH.js} +18 -18
  21. package/dist/{Point-9LTxKPHm.js → Point-BVFY-XiW.js} +8 -8
  22. package/dist/{Promotion-R6MYVkpm.js → Promotion-Dr-tuVjt.js} +9 -9
  23. package/dist/{Queue-DEvVTfHT.js → Queue-PmvC1yWV.js} +10 -10
  24. package/dist/{Record-DM_x9hFV.js → Record-CWPrCH5G.js} +8 -8
  25. package/dist/{Reward-BX8EO2ux.js → Reward-mVzs68RK.js} +15 -15
  26. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-sxGSkGC-.js → RewardGroup.vue_vue_type_script_setup_true_lang-CL6XHyWQ.js} +11 -11
  27. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BIUE1m4e.js → RuleGroup.vue_vue_type_script_setup_true_lang-D5AH06gG.js} +13 -13
  28. package/dist/{Segment-Bbgwifvc.js → Segment-DN8NqF5Z.js} +22 -22
  29. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CIAo_D2b.js → SelectItems.vue_vue_type_script_setup_true_lang-DV7O5NSz.js} +2 -2
  30. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DFlrkNBl.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang--917aYU1.js} +11 -11
  31. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-lfkT2XNF.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bsi65fL4.js} +3 -3
  32. package/dist/{Setting-B-kXzoHH.js → Setting-BERhgbve.js} +14 -14
  33. package/dist/{SettingAdvertisements-CUFXQkkL.js → SettingAdvertisements-C5Sz6c7L.js} +11 -11
  34. package/dist/{Store-D-gx7OUV.js → Store-CaOnUiYt.js} +20 -20
  35. package/dist/{StoreRewards-DHVK_mDe.js → StoreRewards-CLGfESxd.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-7OjLo9R2.js → StoreTransactions.vue_vue_type_script_setup_true_lang-oCL_e3n8.js} +19 -19
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrTeUogI.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DVoEzbkf.js} +1 -1
  38. package/dist/{Tier-ewMN4_G2.js → Tier-CJXn_HWu.js} +19 -19
  39. package/dist/{Title-D_cJiG_c.js → Title-bQptSSy-.js} +18 -18
  40. package/dist/{Transaction-HNGUlBIg.js → Transaction-DvCOmlA4.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Buds4o3e.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-D0UejW9B.js} +6 -6
  42. package/dist/{Voucher-Ba4LIUB8.js → Voucher-WMcaSPAT.js} +43 -43
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DM7nlQQu.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DjWgA-j6.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B9gMqM1N.js → ZodTextField.vue_vue_type_script_setup_true_lang-BVo5ssyj.js} +1 -1
  45. package/dist/{app-CmNTg0jj.js → app-CyCrBGv3.js} +31 -31
  46. package/dist/{app-pVtgk-L3.js → app-DKeD1La_.js} +1 -1
  47. package/dist/app.js +1 -1
  48. package/dist/{business-CziFmjeR.js → business-CLb9l1b1.js} +1 -1
  49. package/dist/{campaign--X1xfS9V.js → campaign-CjAsOKIB.js} +1 -1
  50. package/dist/{campaign-C79gQI9M.js → campaign-D-J_LKoT.js} +9 -9
  51. package/dist/{campaign.enum-D14uCZpw.js → campaign.enum-DWyh4SwC.js} +1 -1
  52. package/dist/{campaign.fn-CMpi6qMn.js → campaign.fn-YRBeuPcA.js} +79 -79
  53. package/dist/{collectible.enum-CDJQ49gX.js → collectible.enum-BgCOtIMq.js} +1 -1
  54. package/dist/{collection.fn-B0nvnq3G.js → collection.fn-DX-zdEXS.js} +2 -2
  55. package/dist/{dto-_8ubkwaG.js → dto-DL0g5qhf.js} +4 -4
  56. package/dist/{effect-BH2SkAIi.js → effect-CL2u9eac.js} +1 -1
  57. package/dist/{email-addresses-vfUr4p6V.js → email-addresses-BhuTtcLm.js} +1 -1
  58. package/dist/{export--YmGGY6M.js → export-DUUhizS2.js} +3 -3
  59. package/dist/{helper-BB2-UXrE.js → helper-I0TJrh8b.js} +1 -1
  60. package/dist/{index-BZH6sxhI.js → index-BfEp-j_0.js} +1 -1
  61. package/dist/{index-7nmLrTPs.js → index-Blm8f_cb.js} +4 -4
  62. package/dist/{index-DEex3XPT.js → index-BmXYRr-L.js} +1 -1
  63. package/dist/{index-BfHEYEgj.js → index-Bse6B8Mt.js} +1 -1
  64. package/dist/{index-DVG8DHie.js → index-BwZAD-K8.js} +1023 -1023
  65. package/dist/{index-DRcdGfYq.js → index-Bxn8VXKm.js} +4 -4
  66. package/dist/{index-BvcJQRo9.js → index-C3Fk7d1Y.js} +11 -6
  67. package/dist/{index-Fo245_nF.js → index-CdZvVrxS.js} +2 -2
  68. package/dist/{index-B3T3EheY.js → index-CutCCmDE.js} +3 -3
  69. package/dist/{index-CmqyrjLD.js → index-DKGii-fX.js} +1 -1
  70. package/dist/{index-9P5UlnE-.js → index-DNqSC7ka.js} +1 -1
  71. package/dist/{index-BuzyJvPQ.js → index-DTTzTXX1.js} +1 -1
  72. package/dist/{index-C17pw-2t.js → index-b6RyWOm9.js} +1 -1
  73. package/dist/{index.esm2017-CjUTe1Ic.js → index.esm2017-B8QUDGVd.js} +103 -103
  74. package/dist/{loading-CC5UWSwO.js → loading-BWmCgmGC.js} +1 -1
  75. package/dist/{membership-Bj6Yp1IE.js → membership-BvayWzl6.js} +3 -3
  76. package/dist/{money-DZKYA9Rl.js → money-C0PooSaL.js} +1 -1
  77. package/dist/{number-DjbpnxQG.js → number-BS2wwgIh.js} +1 -1
  78. package/dist/{objectid-Dx-B6b_I.js → objectid-BNMnEAnn.js} +4 -4
  79. package/dist/{plugins-QrCF9dOz.js → plugins-DzOF3k73.js} +2 -2
  80. package/dist/{reward-De9pannn.js → reward-D58ffPRQ.js} +1 -1
  81. package/dist/{rule-CTzuKmMz.js → rule-DxZ0VW_3.js} +3 -3
  82. package/dist/{rule-builder-Dvn_UafF.js → rule-builder-C9NKIs8v.js} +1 -1
  83. package/dist/{template-D8tUTODZ.js → template-KSzVf-4d.js} +4 -4
  84. package/dist/{timezone-CgFOIlc3.js → timezone-De5grXDM.js} +1 -1
  85. package/dist/{trigger-BdT4xwej.js → trigger-DLx6fvD3.js} +4 -4
  86. package/dist/{user-C61pXmwe.js → user-BZkojoKC.js} +1 -1
  87. package/dist/{vue-i18n-Ermow4kz.js → vue-i18n-Bh-0GwIQ.js} +157 -157
  88. package/dist/{xlsx-CqOQxyoN.js → xlsx-BGzhjrdT.js} +1 -1
  89. package/package.json +1 -1
  90. package/dist/Collections-Cl_pC7iT.js +0 -472
  91. package/dist/Game-Dl7VrCEP.js +0 -283
@@ -1,283 +0,0 @@
1
- import { defineComponent as q, ref as v, computed as z, onMounted as O, resolveComponent as r, openBlock as f, createElementBlock as C, Fragment as b, createVNode as s, unref as o, withCtx as h, createElementVNode as n, toDisplayString as u, renderList as J, createBlock as k, resolveDynamicComponent as Q, h as l } from "vue";
2
- import { _ as W } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as X, components as w } from "@feedmepos/ui-library";
4
- import { a as Y, p as Z } from "./plugins-QrCF9dOz.js";
5
- import { u as ee } from "./loading-CC5UWSwO.js";
6
- import { u as te } from "./business-CziFmjeR.js";
7
- import { u as oe, c as x } from "./campaign--X1xfS9V.js";
8
- import { a as $, b as R, g as ae } from "./campaign-C79gQI9M.js";
9
- import { _ as ne } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
10
- import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-KK0Dqjv5.js";
11
- import { u as ie } from "./template-D8tUTODZ.js";
12
- import { u as re } from "./vue-i18n-Ermow4kz.js";
13
- import { _ as le } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-DFlrkNBl.js";
14
- const ce = { class: "flex items-center" }, me = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, de = { class: "px-24 flex flex-col gap-y-16" }, ue = { class: "flex items-center justify-between w-full" }, pe = { class: "flex gap-8 overflow-x-auto" }, fe = { class: "space-y-8" }, ge = { class: "flex w-full gap-4 items-center" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _e = { class: "space-y-4" }, he = { class: "fm-typo-en-body-lg-600" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = { class: "flex flex-col gap-16 text-center" }, Ce = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ie = /* @__PURE__ */ q({
15
- __name: "Game",
16
- setup(ke) {
17
- const { t: c } = re(), E = {
18
- label: c("connect.program.common.actions.create", {
19
- type: c("connect.program.game.title").toLowerCase()
20
- }),
21
- value: "create",
22
- isPrimary: !0,
23
- prependIcon: "add"
24
- }, K = ie("GAME", X()), g = te(), p = oe(), { global: M, minor: F } = ee, i = v({
25
- searchKey: "",
26
- location: []
27
- });
28
- function G(e) {
29
- const t = i.value.location;
30
- return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((m) => {
31
- var d;
32
- return (d = e == null ? void 0 : e.targetLocation) == null ? void 0 : d.includes(m);
33
- }) : e.targetLocation.includes(t);
34
- }
35
- const y = z(
36
- () => p.campaigns.token.filter((e) => G(e))
37
- ), I = [
38
- {
39
- header: "Program title",
40
- accessorKey: "name",
41
- // accessorFn: (v) => v.name,
42
- cell(e) {
43
- return l("div", { class: "flex items-center justify-between gap-4" }, [
44
- l("div", { class: "flex items-center" }, [
45
- l(
46
- w.FmTooltip,
47
- {
48
- content: e.row.original._id,
49
- onClick: (t) => {
50
- t.stopPropagation(), Y(e.row.original._id);
51
- }
52
- },
53
- [
54
- l(w.FmIcon, {
55
- name: "info",
56
- outline: !0,
57
- size: "sm"
58
- })
59
- ]
60
- )
61
- ]),
62
- l("div", { class: "flex-1" }, e.row.original.name)
63
- ]);
64
- }
65
- },
66
- {
67
- header: "Status",
68
- accessorFn: (e) => ae(e),
69
- cell(e) {
70
- return $(e.row.original);
71
- }
72
- },
73
- {
74
- header: "Summary",
75
- accessorFn: (e) => R(e)
76
- //v.effect,
77
- },
78
- {
79
- header: "Token received",
80
- accessorFn: (e) => {
81
- var t;
82
- return ((t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.currentReceive) ?? 0;
83
- }
84
- },
85
- {
86
- header: "Actions",
87
- cell(e) {
88
- return l("div", { class: "flex items-center gap-8" }, [
89
- l(w.FmButton, {
90
- variant: "tertiary",
91
- icon: "send",
92
- iconColor: "neutral-gray-400",
93
- onClick: (t) => {
94
- t.stopPropagation(), U(e.row.original);
95
- }
96
- }),
97
- l(w.FmButton, {
98
- variant: "tertiary",
99
- icon: "delete",
100
- iconColor: "neutral-gray-400",
101
- onClick: (t) => {
102
- t.stopPropagation(), P(e.row.original);
103
- }
104
- })
105
- ]);
106
- }
107
- }
108
- ], S = v(), L = v();
109
- async function P(e) {
110
- await Z.remove(`Are you sure you want to remove ${e.name}?`) && await F(
111
- async () => {
112
- await x.delete(e._id), await p.read("GAME");
113
- },
114
- {
115
- message: `Removing ${e.name}`,
116
- successMessage: `Removed ${e.name} successfully`
117
- }
118
- );
119
- }
120
- async function _(e) {
121
- e ? await t() : K.open(async (m) => {
122
- await t(m);
123
- });
124
- async function t(m) {
125
- var d;
126
- (d = S.value) == null || d.showSheet(
127
- !0,
128
- "GAME",
129
- e ? await x.readById(e._id) : void 0,
130
- m
131
- );
132
- }
133
- }
134
- async function T(e) {
135
- await F(
136
- async () => {
137
- e.campaign._id ? await x.update(e.campaign._id, e) : await x.create(e), await p.read("GAME");
138
- },
139
- {
140
- message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
141
- successMessage: `Game program ${e.campaign._id ? "updated" : "created"} successfully`
142
- }
143
- );
144
- }
145
- function U(e) {
146
- var t;
147
- (t = L.value) == null || t.showSheet({
148
- campaign: e
149
- });
150
- }
151
- return O(async () => {
152
- await M(async () => {
153
- await p.read("GAME"), await g.readPremium();
154
- });
155
- }), (e, t) => {
156
- const m = r("FmPill"), d = r("FmPageHead"), V = r("FmSearch"), j = r("FmTable"), A = r("FmButton"), D = r("FmListItem"), H = r("FmList"), N = r("FmCard");
157
- return f(), C(b, null, [
158
- s(d, {
159
- actions: o(y).length > 0 && o(g).isPremium ? [E] : [],
160
- "onClick:action": t[0] || (t[0] = () => _())
161
- }, {
162
- title: h(() => [
163
- n("div", ce, [
164
- n("span", me, u(o(c)("connect.program.game.title")), 1),
165
- s(m, { variant: "premium" })
166
- ])
167
- ]),
168
- _: 1
169
- }, 8, ["actions"]),
170
- n("div", de, [
171
- s(V, {
172
- modelValue: o(i).searchKey,
173
- "onUpdate:modelValue": t[1] || (t[1] = (a) => o(i).searchKey = a),
174
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
175
- placeholder: "search",
176
- collapsible: ""
177
- }, null, 8, ["modelValue"]),
178
- o(p).campaigns.token && o(p).campaigns.token.length > 0 ? (f(), C(b, { key: 0 }, [
179
- n("div", ue, [
180
- n("div", pe, [
181
- s(ne, {
182
- label: `${o(c)("connect.common.location")}: `,
183
- "right-icon": "keyboard_arrow_down",
184
- modelValue: o(i).location,
185
- "onUpdate:modelValue": t[2] || (t[2] = (a) => o(i).location = a),
186
- icon: "storefront",
187
- "show-item-label": !0,
188
- items: o(g).locationOptions
189
- }, null, 8, ["label", "modelValue", "items"])
190
- ]),
191
- s(V, {
192
- modelValue: o(i).searchKey,
193
- "onUpdate:modelValue": t[3] || (t[3] = (a) => o(i).searchKey = a),
194
- class: "xs:hidden",
195
- placeholder: "search",
196
- collapsible: ""
197
- }, null, 8, ["modelValue"])
198
- ]),
199
- s(j, {
200
- class: "xs:hidden",
201
- "row-data": o(y),
202
- "column-defs": I,
203
- "search-value": o(i).searchKey,
204
- "column-filter": [],
205
- onRowClick: t[4] || (t[4] = (a) => _(a.original)),
206
- "hide-footer": o(y).length < 10
207
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
208
- s(H, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
209
- default: h(() => [
210
- (f(!0), C(b, null, J(o(y).filter(
211
- (a) => a.name.toLowerCase().includes(o(i).searchKey.toLowerCase())
212
- ), (a) => (f(), k(D, {
213
- key: a._id.toString(),
214
- onClick: (B) => _(a),
215
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
216
- }, {
217
- default: h(() => [
218
- n("div", fe, [
219
- n("div", ge, [
220
- (f(), k(Q(o($)(a)))),
221
- n("div", ye, u(a.currentReceive ?? 0) + " used ", 1)
222
- ]),
223
- n("div", _e, [
224
- n("div", he, u(a.name), 1),
225
- n("div", we, u(o(R)(a)), 1)
226
- ]),
227
- n("div", xe, u(o(c)("connect.program.game.token_received", {
228
- count: a.currentReceive ?? 0
229
- })), 1)
230
- ]),
231
- s(A, {
232
- icon: "delete",
233
- "icon-color": "neutral-gray-400",
234
- variant: "tertiary",
235
- onClick: (B) => (B.stopPropagation(), P(a))
236
- }, null, 8, ["onClick"])
237
- ]),
238
- _: 2
239
- }, 1032, ["onClick"]))), 128))
240
- ]),
241
- _: 1
242
- })
243
- ], 64)) : (f(), k(N, {
244
- key: 1,
245
- variant: "outlined",
246
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
247
- }, {
248
- default: h(() => [
249
- t[6] || (t[6] = n("img", {
250
- src: W,
251
- class: "aspect-square w-[150px]"
252
- }, null, -1)),
253
- n("div", ve, [
254
- n("div", Ce, u(o(c)("connect.program.game.empty_state.title")), 1),
255
- n("div", be, u(o(c)("connect.program.game.empty_state.description")), 1)
256
- ]),
257
- s(A, {
258
- variant: "primary",
259
- label: "Create game program",
260
- icon: "add",
261
- disabled: !o(g).isPremium,
262
- onClick: t[5] || (t[5] = (a) => _())
263
- }, null, 8, ["disabled"])
264
- ]),
265
- _: 1
266
- })),
267
- s(se, {
268
- ref_key: "sheetRef",
269
- ref: S,
270
- "onSubmit:modelValue": T
271
- }, null, 512),
272
- s(le, {
273
- ref_key: "sendCollectionSheetRef",
274
- ref: L
275
- }, null, 512)
276
- ])
277
- ], 64);
278
- };
279
- }
280
- });
281
- export {
282
- Ie as default
283
- };