@feedmepos/mf-connect 0.1.37-prod → 0.1.38-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 (116) hide show
  1. package/dist/Analytic-BjSfI2Ff.js +761 -0
  2. package/dist/{App-Bpo0XZSs.js → App-D11A2JY1.js} +364 -352
  3. package/dist/AuditLogs-DWCFYoRg.js +1887 -0
  4. package/dist/{Bin-ohZ2CZZR.js → Bin-9wV4Ah3M.js} +8 -8
  5. package/dist/{Broadcast-D5x0_-zC.js → Broadcast-I3BtSk8V.js} +40 -40
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYb38NXA.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js} +18 -18
  7. package/dist/{Card-BM-Lrm5y.js → Card-CqALG5RM.js} +159 -159
  8. package/dist/{Collections-Cr4aoJer.js → Collections-rg3SzoUb.js} +103 -91
  9. package/dist/{Credit-DzDVFv4H.js → Credit-BNn1sYZv.js} +74 -74
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs8o9n1V.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js} +491 -488
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-koqrPPqM.js → EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js} +91 -89
  13. package/dist/{Experience-CjaDdbvZ.js → Experience-D_Qm8SUj.js} +41 -41
  14. package/dist/{FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js → FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js} +2 -6
  15. package/dist/{Game-BuiTygow.js → Game-CKXgXm6Q.js} +31 -31
  16. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  17. package/dist/{Index-CQGzUU-w.js → Index-D4DGfUHd.js} +10 -10
  18. package/dist/Marketing-Dn9A1vgH.js +20073 -0
  19. package/dist/Member-B55vWHDd.js +279 -0
  20. package/dist/MemberList-BWTG9Ohy.js +1606 -0
  21. package/dist/MemberOverview-wL_ailso.js +58 -0
  22. package/dist/{MemberTransactions-DzG1fY0c.js → MemberTransactions-CP5EI-W0.js} +1 -1
  23. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js +60279 -0
  24. package/dist/{Mission-BtypT2uF.js → Mission-CFvhROuB.js} +21 -21
  25. package/dist/{Overview-Be7bUtRO.js → Overview-4273yNwL.js} +335 -335
  26. package/dist/{Point-Bw4lnLqp.js → Point-B_-_C919.js} +41 -41
  27. package/dist/Promotion-D2S3COxk.js +289 -0
  28. package/dist/{Queue-CpPEVgn8.js → Queue-BmS1Oi-C.js} +52 -52
  29. package/dist/{Record-DQq4P69i.js → Record-DRBl0M8g.js} +9 -9
  30. package/dist/{Reward-DJH0eM8u.js → Reward-8056NmfK.js} +173 -173
  31. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-_kw_PR0h.js → RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js} +11 -11
  32. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CRGep1RK.js → RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js} +635 -548
  33. package/dist/Segment-Bzq-pyhc.js +882 -0
  34. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dx6Ew9Z_.js → SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js} +2 -2
  35. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B60_8Toi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js} +11 -11
  36. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCaJ3xKT.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js} +3 -3
  37. package/dist/{Setting-GRIUo7vg.js → Setting-BrJfYoru.js} +432 -432
  38. package/dist/{Store-H0UDQpln.js → Store-Bpl_4yZW.js} +211 -211
  39. package/dist/StoreRewards-Cu7n7Pjz.js +423 -0
  40. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js +1029 -0
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D-jL1oGS.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js} +1 -1
  42. package/dist/{Tier-CJufQcIz.js → Tier-_LnXg3n6.js} +106 -106
  43. package/dist/{Title-BBMgGUld.js → Title-B7AGStvx.js} +133 -131
  44. package/dist/{Transaction-DsucPnfp.js → Transaction-Chxv6V7u.js} +2 -2
  45. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CwOcZEQX.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js} +6 -6
  46. package/dist/{Voucher-BPvxKO_w.js → Voucher-C5z2kOq9.js} +153 -123
  47. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js +419 -0
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DMs4XKXM.js → ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js} +1 -1
  49. package/dist/{app-D3MT1deX.js → app-7cvPyHJ7.js} +164 -125
  50. package/dist/{app-Bo0JpadQ.js → app-BVojNX0w.js} +1 -1
  51. package/dist/app.js +4 -3
  52. package/dist/business-CmxV69wT.js +79 -0
  53. package/dist/{campaign-Z3l7BoMg.js → campaign-CT_cNJEL.js} +9 -9
  54. package/dist/{campaign-j1c3ou7l.js → campaign-Dq5C_no-.js} +5 -3
  55. package/dist/{campaign.enum-CVXPc5Pd.js → campaign.enum-dp7yHKzF.js} +1 -1
  56. package/dist/campaign.fn-BYZgKDN7.js +758 -0
  57. package/dist/{collectible.enum-CDSikBAy.js → collectible.enum-DxbB4DxT.js} +1 -1
  58. package/dist/{collection.fn-Bz38mGMa.js → collection.fn-CNZRdUgy.js} +2 -2
  59. package/dist/{dto-D648NN4s.js → dto-CT9zZbv9.js} +4 -4
  60. package/dist/{effect-DbMAmVSR.js → effect-FIlOEC4H.js} +1 -1
  61. package/dist/{email-addresses-KOVDrRiK.js → email-addresses-Ba7xImfX.js} +1 -1
  62. package/dist/{export-cTZf8Avd.js → export-uzjZFNF9.js} +3 -3
  63. package/dist/{helper-BYyfcLqw.js → helper-D4sAZde0.js} +1 -1
  64. package/dist/{index-BIaCtk8e.js → index-B9pl4zRZ.js} +192 -79
  65. package/dist/{index-B4MqsaBz.js → index-BI3m1Ehv.js} +3 -3
  66. package/dist/{index-E-0tTd0_.js → index-BXz54M1s.js} +1 -1
  67. package/dist/{index-BMl2KZts.js → index-BjU8LVUC.js} +11447 -10969
  68. package/dist/index-CH3z92VV.js +31 -0
  69. package/dist/{index-BTb8I_eB.js → index-CNJLP3D5.js} +1 -1
  70. package/dist/{index-BrKXRxe_.js → index-CONvJfKv.js} +1 -1
  71. package/dist/index-CS3Jmojj.js +32260 -0
  72. package/dist/{index-CTPMbFf5.js → index-CUfS9Kp1.js} +10 -9
  73. package/dist/index-CsaQJMAR.js +66 -0
  74. package/dist/{index-nF9iYTlh.js → index-CvBcve-r.js} +1 -1
  75. package/dist/index-CwsMG2cV.js +56 -0
  76. package/dist/{index-B3p0hmIV.js → index-D5rvMvzx.js} +1 -1
  77. package/dist/{index-CvoShC5J.js → index-DNxa8Rqx.js} +536 -461
  78. package/dist/{index-DPBHiqsJ.js → index-l2F5MnLF.js} +1 -1
  79. package/dist/{index.esm2017-DFYwde30.js → index.esm2017-ATcsD5N4.js} +127 -127
  80. package/dist/{loading-vUArhX_O.js → loading-BWGQSrCB.js} +1 -1
  81. package/dist/{membership-BHKv29yt.js → membership-Cc4OZ8-U.js} +3 -3
  82. package/dist/{money-Bl3_QRkE.js → money-D7p8nfun.js} +1 -1
  83. package/dist/{number-hh_S9w7k.js → number-CMJjC4qz.js} +1 -1
  84. package/dist/objectid-D5T27iny.js +145 -0
  85. package/dist/{plugins-CVes2wzE.js → plugins-eQis66QR.js} +2 -2
  86. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  87. package/dist/{reward-ANZOdWzf.js → reward-DrnzbG20.js} +1 -1
  88. package/dist/{rule-BvFk5bQg.js → rule-CtRxkYXB.js} +3 -3
  89. package/dist/{rule-builder-BSN777PN.js → rule-builder-Di9RIYHF.js} +17 -17
  90. package/dist/style.css +1 -1
  91. package/dist/{template-Dh9lDLs_.js → template-C3UfY0v5.js} +64 -64
  92. package/dist/{trigger-C7THbt7R.js → trigger-C9U7Zgad.js} +7 -7
  93. package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
  94. package/dist/{user-DtNR9JY2.js → user-D7n9yYmO.js} +1 -1
  95. package/dist/{vue-i18n-BWyHnm4m.js → vue-i18n-Bz45zC04.js} +387 -387
  96. package/dist/{xlsx-7u9SB0oa.js → xlsx-D4S4qbcZ.js} +226 -226
  97. package/package.json +9 -3
  98. package/dist/Analytic-CavR2bzs.js +0 -427
  99. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
  100. package/dist/Marketing-BSspYuhg.js +0 -319
  101. package/dist/Member-B4S0UNGq.js +0 -287
  102. package/dist/MemberList-CfnUJ3mh.js +0 -1606
  103. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  104. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-hZUWLTWj.js +0 -455
  105. package/dist/Promotion-Bg6x0rAh.js +0 -255
  106. package/dist/Segment-BLB4VWNJ.js +0 -882
  107. package/dist/StoreRewards--TNIFaCo.js +0 -423
  108. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfB8tA5l.js +0 -995
  109. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bg-9YqLP.js +0 -419
  110. package/dist/business-DMALI7ZO.js +0 -78
  111. package/dist/campaign.fn-rsRhHYZP.js +0 -758
  112. package/dist/index-BsCGyJMY.js +0 -29566
  113. package/dist/index-CuvNtC_M.js +0 -61
  114. package/dist/index-DFKmjCG1.js +0 -44
  115. package/dist/index-Dbd4WA4r.js +0 -61
  116. package/dist/objectid-CEyMlMge.js +0 -145
@@ -1,255 +0,0 @@
1
- import { defineComponent as H, ref as P, computed as q, h as z, onMounted as G, resolveComponent as r, openBlock as m, createElementBlock as h, Fragment as w, createVNode as i, unref as n, createElementVNode as s, withCtx as v, renderList as J, createBlock as b, resolveDynamicComponent as Q, toDisplayString as g } from "vue";
2
- import { _ as W } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as X, components as Y } from "@feedmepos/ui-library";
4
- import { c as O, p as I } from "./plugins-CVes2wzE.js";
5
- import { u as Z } from "./loading-vUArhX_O.js";
6
- import { u as ee } from "./business-DMALI7ZO.js";
7
- import { u as oe } from "./campaign-j1c3ou7l.js";
8
- import { u as te } from "./vue-i18n-BWyHnm4m.js";
9
- import { g as ne, a as V } from "./campaign-Z3l7BoMg.js";
10
- import { e as L } from "./effect-DbMAmVSR.js";
11
- import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
12
- import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs8o9n1V.js";
13
- import { u as ce } from "./template-Dh9lDLs_.js";
14
- import { c as u } from "./index-B3p0hmIV.js";
15
- const 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" }, me = { class: "space-y-8" }, pe = { class: "flex w-full gap-4 items-center" }, de = { 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" }, ye = /* @__PURE__ */ s("img", {
16
- src: W,
17
- class: "aspect-square w-[150px]"
18
- }, null, -1), ge = { 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" }, Me = /* @__PURE__ */ H({
19
- __name: "Promotion",
20
- setup(we) {
21
- const { t } = te(), T = {
22
- label: t("connect.promotion.createCampaign"),
23
- value: "create",
24
- isPrimary: !0,
25
- prependIcon: "add"
26
- }, B = {
27
- label: "Force sync",
28
- value: "sync",
29
- isPrimary: !1,
30
- prependIcon: "refresh"
31
- }, M = ce("PROMOTION", X()), x = ee(), f = oe(), { global: R, minor: _ } = Z, c = P({
32
- searchKey: "",
33
- location: null
34
- }), l = q(
35
- () => f.campaigns.promotion.filter(
36
- (e) => !c.value.location || !e.targetLocation || e.targetLocation.includes(c.value.location)
37
- )
38
- ), K = [
39
- {
40
- header: t("connect.promotion.promotionTitle"),
41
- accessorFn: (e) => e.name
42
- },
43
- {
44
- header: t("connect.promotion.status"),
45
- accessorFn: (e) => ne(e),
46
- cell(e) {
47
- return V(e.row.original);
48
- }
49
- },
50
- {
51
- header: t("connect.promotion.type"),
52
- accessorFn: (e) => `${O.title(e.effect.options.target)} promotion`
53
- },
54
- {
55
- header: t("connect.promotion.summary"),
56
- accessorFn: (e) => L(e.effect)
57
- },
58
- {
59
- header: t("connect.promotion.actions"),
60
- cell(e) {
61
- return z(Y.FmButton, {
62
- variant: "tertiary",
63
- icon: "delete",
64
- iconColor: "neutral-gray-400",
65
- onClick: (a) => {
66
- a.stopPropagation(), F(e.row.original);
67
- }
68
- });
69
- }
70
- }
71
- ], C = P();
72
- async function F(e) {
73
- await I.remove(
74
- t("connect.promotion.confirmRemove", { name: e.name })
75
- ) && await _(
76
- async () => {
77
- await u.delete(e._id), await f.read("PROMOTION");
78
- },
79
- {
80
- message: t("connect.promotion.removing", { name: e.name }),
81
- successMessage: t("connect.promotion.removedSuccessfully", {
82
- name: e.name
83
- })
84
- }
85
- );
86
- }
87
- async function y(e) {
88
- e ? await a() : M.open(async (p) => {
89
- await a(p);
90
- });
91
- async function a(p) {
92
- var d;
93
- (d = C.value) == null || d.showSheet(
94
- !0,
95
- "PROMOTION",
96
- e ? await u.readById(e._id) : void 0,
97
- p
98
- );
99
- }
100
- }
101
- async function N(e) {
102
- await _(
103
- async () => {
104
- e.campaign._id ? await u.update(e.campaign._id, e) : await u.create(e), await f.read("PROMOTION");
105
- },
106
- {
107
- message: t(
108
- e.campaign._id ? "connect.promotion.updating" : "connect.promotion.creating"
109
- ),
110
- successMessage: t(
111
- e.campaign._id ? "connect.promotion.updatedSuccessfully" : "connect.promotion.createdSuccessfully"
112
- )
113
- }
114
- );
115
- }
116
- async function A(e) {
117
- switch (e) {
118
- case "create":
119
- y();
120
- break;
121
- case "sync":
122
- await I.confirm(
123
- "Are you sure you want to synchronize all promotions to POS?",
124
- "Force sync"
125
- ) && _(
126
- async () => {
127
- await u.syncAllPromotion();
128
- },
129
- {
130
- message: "Syncing promotions...",
131
- successMessage: "All promotions synced"
132
- }
133
- );
134
- break;
135
- }
136
- }
137
- return G(async () => {
138
- await R(async () => {
139
- await x.readLocations(), await f.read("PROMOTION");
140
- });
141
- }), (e, a) => {
142
- const p = r("FmPageHead"), d = r("FmSearch"), $ = r("FmTable"), D = r("FmChip"), k = r("FmButton"), U = r("FmListItem"), j = r("FmList"), E = r("FmCard");
143
- return m(), h(w, null, [
144
- i(p, {
145
- title: n(t)("connect.promotion.title"),
146
- actions: n(l).length > 0 ? [T, B] : [],
147
- "onClick:action": A
148
- }, null, 8, ["title", "actions"]),
149
- s("div", ie, [
150
- i(d, {
151
- modelValue: c.value.searchKey,
152
- "onUpdate:modelValue": a[0] || (a[0] = (o) => c.value.searchKey = o),
153
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
154
- placeholder: n(t)("connect.promotion.search"),
155
- collapsible: ""
156
- }, null, 8, ["modelValue", "placeholder"]),
157
- n(l) && n(l).length > 0 ? (m(), h(w, { key: 0 }, [
158
- s("div", re, [
159
- s("div", le, [
160
- i(ae, {
161
- modelValue: c.value.location,
162
- "onUpdate:modelValue": a[1] || (a[1] = (o) => c.value.location = o),
163
- label: n(t)("connect.promotion.location"),
164
- "show-item-label": !0,
165
- icon: "storefront",
166
- placement: "bottom-start",
167
- items: n(x).locationItems
168
- }, null, 8, ["modelValue", "label", "items"])
169
- ]),
170
- i(d, {
171
- modelValue: c.value.searchKey,
172
- "onUpdate:modelValue": a[2] || (a[2] = (o) => c.value.searchKey = o),
173
- class: "xs:hidden",
174
- placeholder: "search",
175
- collapsible: ""
176
- }, null, 8, ["modelValue"])
177
- ]),
178
- i($, {
179
- class: "xs:hidden",
180
- "row-data": n(l),
181
- "column-defs": K,
182
- "search-value": c.value.searchKey,
183
- "column-filter": [],
184
- onRowClick: a[3] || (a[3] = (o) => y(o.original)),
185
- "hide-footer": n(l).length < 10
186
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
187
- i(j, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
188
- default: v(() => [
189
- (m(!0), h(w, null, J(n(l).filter(
190
- (o) => o.name.toLowerCase().includes(c.value.searchKey.toLowerCase())
191
- ), (o) => (m(), b(U, {
192
- key: o._id.toString(),
193
- onClick: (S) => y(o),
194
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
195
- }, {
196
- default: v(() => [
197
- s("div", me, [
198
- s("div", pe, [
199
- (m(), b(Q(n(V)(o)))),
200
- i(D, {
201
- class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
202
- compact: !0,
203
- label: `${n(O).title(o.effect.options.target)} promotion`
204
- }, null, 8, ["label"])
205
- ]),
206
- s("div", de, [
207
- s("div", ue, g(o.name), 1),
208
- s("div", fe, g(n(L)(o.effect)), 1)
209
- ])
210
- ]),
211
- i(k, {
212
- icon: "delete",
213
- "icon-color": "neutral-gray-400",
214
- variant: "tertiary",
215
- onClick: (S) => (S.stopPropagation(), F(o))
216
- }, null, 8, ["onClick"])
217
- ]),
218
- _: 2
219
- }, 1032, ["onClick"]))), 128))
220
- ]),
221
- _: 1
222
- })
223
- ], 64)) : (m(), b(E, {
224
- key: 1,
225
- variant: "outlined",
226
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
227
- }, {
228
- default: v(() => [
229
- ye,
230
- s("div", ge, [
231
- s("div", _e, g(n(t)("connect.promotion.createPromotionCampaign")), 1),
232
- s("div", he, g(n(t)("connect.promotion.description")), 1)
233
- ]),
234
- i(k, {
235
- variant: "primary",
236
- label: n(t)("connect.promotion.createPromotionCampaign"),
237
- icon: "add",
238
- onClick: a[4] || (a[4] = (o) => y())
239
- }, null, 8, ["label"])
240
- ]),
241
- _: 1
242
- }))
243
- ]),
244
- i(se, {
245
- ref_key: "sheetRef",
246
- ref: C,
247
- "onSubmit:modelValue": N
248
- }, null, 512)
249
- ], 64);
250
- };
251
- }
252
- });
253
- export {
254
- Me as default
255
- };