@feedmepos/mf-connect 0.1.98-beta.13 → 0.1.98-beta.15

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 (138) hide show
  1. package/package.json +1 -1
  2. package/dist/App-DQqZfak3.js +0 -4782
  3. package/dist/AuditLogs-C19m85wp.js +0 -2013
  4. package/dist/Bin-GjJ5Q2ae.js +0 -166
  5. package/dist/Broadcast-CVTBL0T0.js +0 -266
  6. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B6BYvVmq.js +0 -120
  7. package/dist/Card-DzYit3v6.js +0 -910
  8. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
  9. package/dist/Collections-CaU7auvn.js +0 -540
  10. package/dist/Credit-B_eUMV0R.js +0 -260
  11. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +0 -128
  12. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  13. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bgcm1S_g.js +0 -3377
  14. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CZLoCJM4.js +0 -351
  15. package/dist/Experience-B7kxE07l.js +0 -259
  16. package/dist/FileSaver.min-BBvy4uPh.js +0 -74
  17. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  18. package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +0 -52
  19. package/dist/Game-B98hcWvR.js +0 -330
  20. package/dist/Grab-RdxV7xhM.js +0 -300
  21. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-BBYekrJp.js +0 -145
  22. package/dist/Index-CvMVxCY5.js +0 -259
  23. package/dist/JsonViewer-v8_C7l5N.js +0 -87
  24. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-D4-wjMg6.js +0 -48
  25. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-Jir8zY8e.js +0 -18737
  26. package/dist/LoyaltyDashboard-B1OzFT4q.js +0 -1082
  27. package/dist/MainLayout-De_edc-D.js +0 -41
  28. package/dist/Marketing-B7-To3XF.js +0 -235
  29. package/dist/MarketingMaterialEdit-DGONncxn.js +0 -1035
  30. package/dist/Member-DEGCrqnh.js +0 -280
  31. package/dist/MemberList-vKYbpLVu.js +0 -1601
  32. package/dist/MemberOverview-wL_ailso.js +0 -58
  33. package/dist/MemberTransactions-CGC3vYKC.js +0 -45
  34. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-BP9YtuPA.js +0 -60802
  35. package/dist/Mission-hxf_AIGL.js +0 -334
  36. package/dist/Overview-NvgUuMYp.js +0 -949
  37. package/dist/Overview-iRLMLoAo.js +0 -1079
  38. package/dist/Point-tkUTXOCe.js +0 -262
  39. package/dist/Promotion-DNUcMKJQ.js +0 -397
  40. package/dist/Queue-5XYiIuG8.js +0 -260
  41. package/dist/Record-B5aYp7eF.js +0 -342
  42. package/dist/Review-BqaHlzXV.js +0 -45
  43. package/dist/ReviewFacebookCallback-BqlFkSB7.js +0 -248
  44. package/dist/ReviewGoogleCallback-ssKL4jh4.js +0 -213
  45. package/dist/Reward-1xOMowTW.js +0 -442
  46. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-Db3FSfIc.js +0 -149
  47. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cmrp2Tia.js +0 -1911
  48. package/dist/Segment-BMBwsUug.js +0 -1014
  49. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DSfdei-h.js +0 -181
  50. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BJVeGJ5J.js +0 -188
  51. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-OBZubKUy.js +0 -226
  52. package/dist/Setting-DWygYkHW.js +0 -2047
  53. package/dist/SettingAdvertisements-TYB1b7dB.js +0 -264
  54. package/dist/Settings-DynjmCPL.js +0 -220
  55. package/dist/Store-DRYkmigC.js +0 -1996
  56. package/dist/StoreRewards-DU8eWbXE.js +0 -540
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BkqBjEFm.js +0 -1130
  58. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-l6KmXVBZ.js +0 -7007
  59. package/dist/Tier-4k8SxKtl.js +0 -969
  60. package/dist/Title-B9lWQ_jl.js +0 -566
  61. package/dist/Transaction-C38Yd0tf.js +0 -39
  62. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-D6tgpKpc.js +0 -130
  63. package/dist/Voucher-BQbqC7RV.js +0 -421
  64. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-erwpbvYi.js +0 -421
  65. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-Dt05b7fU.js +0 -56
  66. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  67. package/dist/app-BTm9mz0r.js +0 -59940
  68. package/dist/app-wDQR6dpb.js +0 -39
  69. package/dist/app.js +0 -7
  70. package/dist/business-B7GwHLce.js +0 -82
  71. package/dist/campaign-BCdKDHgz.js +0 -277
  72. package/dist/campaign-CpzFl8Vr.js +0 -4
  73. package/dist/campaign-DWlsbsKQ.js +0 -219
  74. package/dist/campaign.enum-BgK4maXz.js +0 -26
  75. package/dist/campaign.fn-DxnwGCB2.js +0 -776
  76. package/dist/collectible.enum-CdOSUDwG.js +0 -19
  77. package/dist/duplicateCampaign-BSHe0P-g.js +0 -51
  78. package/dist/effect-C7wkN_13.js +0 -89
  79. package/dist/email-addresses-DJycNI7L.js +0 -705
  80. package/dist/export-uIHWDxuh.js +0 -97
  81. package/dist/feedme.ico +0 -0
  82. package/dist/google-BQK68wbe.js +0 -5
  83. package/dist/helper-czpAhAIw.js +0 -86
  84. package/dist/index-5Sa4xS2m.js +0 -151
  85. package/dist/index-5WGEWCcI.js +0 -3
  86. package/dist/index-B2C7kc4z.js +0 -31
  87. package/dist/index-B5eb6_bi.js +0 -3678
  88. package/dist/index-B7nE1Pb2.js +0 -67
  89. package/dist/index-BFAHLexA.js +0 -32
  90. package/dist/index-BanxlNli.js +0 -8910
  91. package/dist/index-ByHoFriu.js +0 -85
  92. package/dist/index-Ca2bBJuR.js +0 -54
  93. package/dist/index-CuvNtC_M.js +0 -61
  94. package/dist/index-D-kYrDAi.js +0 -30289
  95. package/dist/index-D2gAYMIp.js +0 -28900
  96. package/dist/index-DWxmK2NJ.js +0 -61
  97. package/dist/index-U_rwkNKU.js +0 -2819
  98. package/dist/index-knizSLfz.js +0 -1157
  99. package/dist/index-vh86FiIQ.js +0 -10
  100. package/dist/index.esm2017-DFVkiPjd.js +0 -3069
  101. package/dist/loading-B3OgwEC8.js +0 -72
  102. package/dist/lodash-CiRTkvui.js +0 -3678
  103. package/dist/membership-s2VKnu_8.js +0 -255
  104. package/dist/moment-D7p2TMB-.js +0 -2583
  105. package/dist/money-DqxOXYd0.js +0 -15
  106. package/dist/number-Bt4sacaM.js +0 -12
  107. package/dist/object-BYyQ0PZp.js +0 -18
  108. package/dist/objectId-dwaoBfJX.js +0 -7
  109. package/dist/objectid-CxCupSWP.js +0 -145
  110. package/dist/plugins-CQ1JAqJB.js +0 -1788
  111. package/dist/reward-pjbal-XX.js +0 -36
  112. package/dist/rule-CzU2GAur.js +0 -1969
  113. package/dist/string-Gcy5IM_H.js +0 -32
  114. package/dist/style.css +0 -4
  115. package/dist/template-7yiMSL1f.js +0 -188
  116. package/dist/tier-BJDhpH6X.js +0 -4
  117. package/dist/tiers/tier=1.png +0 -0
  118. package/dist/tiers/tier=2.png +0 -0
  119. package/dist/tiers/tier=3.png +0 -0
  120. package/dist/tiers/tier=4.png +0 -0
  121. package/dist/titles/type=diamond.png +0 -0
  122. package/dist/titles/type=drinks.png +0 -0
  123. package/dist/titles/type=food.png +0 -0
  124. package/dist/titles/type=heart.png +0 -0
  125. package/dist/titles/type=medal.png +0 -0
  126. package/dist/titles/type=spend.png +0 -0
  127. package/dist/titles/type=thank-you.png +0 -0
  128. package/dist/titles/type=thumbs-up.png +0 -0
  129. package/dist/titles/type=years.png +0 -0
  130. package/dist/trigger-C5bqlYHn.js +0 -213
  131. package/dist/tslib.es6-BCqqvLQ_.js +0 -44
  132. package/dist/type_drinks-D6jnpvwV.js +0 -4
  133. package/dist/useMarketingMaterialActions-CW_QRtQb.js +0 -107
  134. package/dist/usePagination-D2pke4vy.js +0 -220
  135. package/dist/user-BcXrT_t5.js +0 -55
  136. package/dist/vue-i18n-CFNkj6JK.js +0 -2365
  137. package/dist/xlsx-DyVY5_Qx.js +0 -15491
  138. package/dist/zod-BD_8DRqQ.js +0 -91
@@ -1,41 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as a, createVNode as c, unref as e, ref as m, resolveComponent as u, normalizeClass as _, createBlock as p, createCommentVNode as h, withDirectives as f, createElementVNode as d, vShow as w } from "vue";
2
- import { _ as v, S as x } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-Jir8zY8e.js";
3
- import { u as r } from "./app-wDQR6dpb.js";
4
- import { useRoute as g } from "vue-router";
5
- const S = { class: "bg-white w-full flex min-h-[calc(100svh-56px)] items-center" }, V = /* @__PURE__ */ n({
6
- __name: "Splash",
7
- setup(l) {
8
- return (s, t) => (o(), a("div", S, [
9
- c(v, {
10
- class: "flex-1",
11
- json: e(x),
12
- width: 100,
13
- height: 100
14
- }, null, 8, ["json"])
15
- ]));
16
- }
17
- }), N = /* @__PURE__ */ n({
18
- __name: "MainLayout",
19
- setup(l) {
20
- const s = g(), t = m(s.query.showHeader !== "false");
21
- return (b, k) => {
22
- const i = u("RouterView");
23
- return o(), a("div", {
24
- class: _([
25
- "bg-fm-color-neutral-white w-full xs:overflow-y-scroll",
26
- e(t) ? "min-h-[calc(100svh-56px)] xs:h-[calc(100svh-56px)]" : "min-h-screen"
27
- ])
28
- }, [
29
- e(r)().isGlobalLoading == !0 ? (o(), p(V, { key: 0 })) : h("", !0),
30
- f(d("div", null, [
31
- c(i)
32
- ], 512), [
33
- [w, e(r)().isGlobalLoading == !1]
34
- ])
35
- ], 2);
36
- };
37
- }
38
- });
39
- export {
40
- N as default
41
- };
@@ -1,235 +0,0 @@
1
- import { defineComponent as b, resolveComponent as v, openBlock as s, createBlock as N, unref as c, ref as f, watch as R, createElementBlock as d, createVNode as i, withCtx as S, createElementVNode as n, toDisplayString as w, withModifiers as T, createStaticVNode as U, computed as L, onMounted as P, nextTick as H, onUnmounted as V, Fragment as I, renderList as B, createCommentVNode as j } from "vue";
2
- import { _ as D } from "./campaign-CpzFl8Vr.js";
3
- import { u as M } from "./vue-i18n-CFNkj6JK.js";
4
- import { u as O, a as G, m as q } from "./useMarketingMaterialActions-CW_QRtQb.js";
5
- import { useRouter as z } from "vue-router";
6
- import "./index-5WGEWCcI.js";
7
- import { R as K } from "./app-BTm9mz0r.js";
8
- const Z = /* @__PURE__ */ b({
9
- __name: "GenerateMaterialButton",
10
- setup(l) {
11
- const { t: r } = M(), u = O();
12
- function a() {
13
- u.activate({
14
- command: "generateMarketingMaterial",
15
- fullscreen: !0,
16
- forceNewConversation: !0
17
- });
18
- }
19
- return (t, e) => {
20
- const m = v("FmButton");
21
- return s(), N(m, {
22
- label: c(r)("connect.marketing.emptyState.action"),
23
- "prepend-icon": "wand_stars",
24
- onClick: a
25
- }, null, 8, ["label"]);
26
- };
27
- }
28
- }), J = /* @__PURE__ */ b({
29
- __name: "MarketingMaterialItemActionButton",
30
- props: {
31
- material: {}
32
- },
33
- emits: ["update:menuOpened"],
34
- setup(l, { emit: r }) {
35
- const u = l, a = r, { t } = M(), e = f(!1);
36
- R(e, (x) => {
37
- a("update:menuOpened", x);
38
- });
39
- const { shareMaterial: m, downloadMaterialImage: _, copyMaterialLink: p } = G();
40
- async function C() {
41
- e.value = !1, await m(u.material);
42
- }
43
- async function A() {
44
- e.value = !1, await _(u.material.imageUrl);
45
- }
46
- async function h() {
47
- e.value = !1, await p(u.material.imageUrl);
48
- }
49
- return (x, o) => {
50
- const k = v("FmButton"), y = v("FmMenuItem"), F = v("FmMenu");
51
- return s(), d("div", null, [
52
- i(F, {
53
- placement: "right-start",
54
- shift: !0,
55
- "model-value": e.value,
56
- onMenuChanged: o[0] || (o[0] = (g) => e.value = g)
57
- }, {
58
- "menu-button": S(() => [
59
- i(k, {
60
- icon: "more_vert",
61
- variant: "tertiary",
62
- size: "md"
63
- })
64
- ]),
65
- default: S(() => [
66
- i(y, {
67
- icon: "share",
68
- label: c(t)("connect.marketing.actions.share"),
69
- onClick: C
70
- }, null, 8, ["label"]),
71
- i(y, {
72
- icon: "download",
73
- label: c(t)("connect.marketing.actions.download"),
74
- onClick: A
75
- }, null, 8, ["label"]),
76
- i(y, {
77
- icon: "content_copy",
78
- label: c(t)("connect.marketing.actions.copyLink"),
79
- onClick: h
80
- }, null, 8, ["label"])
81
- ]),
82
- _: 1
83
- }, 8, ["model-value"])
84
- ]);
85
- };
86
- }
87
- }), Q = { class: "h-[205.5px] w-full overflow-hidden bg-fm-color-neutral-gray-100" }, W = ["src", "alt"], X = { class: "p-3" }, Y = { class: "flex items-start justify-between gap-2" }, ee = { class: "space-y-1 overflow-hidden" }, te = { class: "font-semibold text-sm text-gray-900 truncate" }, ne = { class: "text-xs text-gray-500 line-clamp-2" }, ae = {
88
- key: 1,
89
- class: "rounded-lg overflow-hidden border border-transparent fm-shadow-light-100 animate-pulse bg-white"
90
- }, $ = /* @__PURE__ */ b({
91
- __name: "MarketingMaterialItem",
92
- props: {
93
- material: {}
94
- },
95
- setup(l) {
96
- const { t: r } = M(), u = z(), a = f(!1);
97
- return (t, e) => l.material ? (s(), d("div", {
98
- key: 0,
99
- class: "group rounded-lg overflow-hidden cursor-pointer border border-transparent hover:border-blue-500 hover:bg-blue-50 transition-[border-color,background-color] fm-shadow-light-100 hover:fm-shadow-light-300",
100
- onClick: e[2] || (e[2] = () => {
101
- a.value || c(u).push({
102
- name: c(K)["$connect-MARKETING_MATERIAL_EDIT"],
103
- query: { id: l.material._id }
104
- });
105
- })
106
- }, [
107
- n("div", Q, [
108
- n("img", {
109
- src: l.material.imageUrl,
110
- alt: c(r)("connect.marketing.title"),
111
- class: "w-full h-full object-cover"
112
- }, null, 8, W)
113
- ]),
114
- n("div", X, [
115
- n("div", Y, [
116
- n("div", ee, [
117
- n("p", te, w(l.material.headline), 1),
118
- n("p", ne, w(l.material.caption), 1)
119
- ]),
120
- i(J, {
121
- material: l.material,
122
- "onUpdate:menuOpened": e[0] || (e[0] = (m) => a.value = m),
123
- onClick: e[1] || (e[1] = T(() => {
124
- }, ["stop"]))
125
- }, null, 8, ["material"])
126
- ])
127
- ])
128
- ])) : (s(), d("div", ae, [...e[3] || (e[3] = [
129
- U('<div class="h-[205.5px] w-full bg-fm-color-neutral-gray-100"></div><div class="p-3 space-y-2"><div class="h-[16px] w-3/4 rounded bg-fm-color-neutral-gray-100"></div><div class="h-12 w-full rounded bg-fm-color-neutral-gray-100"></div><div class="h-12 w-2/3 rounded bg-fm-color-neutral-gray-100"></div></div>', 2)
130
- ])]));
131
- }
132
- }), oe = {
133
- key: 0,
134
- class: "px-24 xs:px-12 flex flex-col gap-y-16 py-24 xs:py-16"
135
- }, le = { class: "fm-typo-en-title-sm-800 text-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 xs:w-full text-center" }, se = {
136
- key: 1,
137
- class: "px-24 xs:px-12 flex flex-col gap-y-24 xs:gap-y-16 pt-24 xs:pt-16"
138
- }, ie = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-16" }, E = 20, ve = /* @__PURE__ */ b({
139
- __name: "Marketing",
140
- setup(l) {
141
- const { t: r } = M(), u = O(), a = f([]), t = f(!0), e = f(!0), m = f(null), _ = f(null);
142
- let p = null;
143
- const C = L(() => ({
144
- label: r("connect.marketing.emptyState.action"),
145
- value: "generate",
146
- isPrimary: !0,
147
- prependIcon: "wand_stars"
148
- }));
149
- function A(o) {
150
- o === "generate" && u.activate({
151
- command: "generateMarketingMaterial",
152
- fullscreen: !0,
153
- forceNewConversation: !0
154
- });
155
- }
156
- async function h() {
157
- const o = await q.listMarketingMaterials(
158
- m.value,
159
- E
160
- );
161
- a.value.push(...o.resources), m.value = o.meta.nextCursor, e.value = !!o.meta.nextCursor;
162
- }
163
- function x() {
164
- p = new IntersectionObserver(
165
- async ([o]) => {
166
- if (!(!o.isIntersecting || !e.value || t.value)) {
167
- t.value = !0;
168
- try {
169
- await h();
170
- } catch {
171
- } finally {
172
- t.value = !1;
173
- }
174
- }
175
- },
176
- { rootMargin: "200px" }
177
- ), _.value && p.observe(_.value);
178
- }
179
- return P(async () => {
180
- try {
181
- await h();
182
- } catch {
183
- } finally {
184
- t.value = !1, await H(), x();
185
- }
186
- }), V(() => {
187
- p == null || p.disconnect();
188
- }), (o, k) => {
189
- const y = v("FmPageHead"), F = v("FmCard");
190
- return s(), d(I, null, [
191
- i(y, {
192
- title: c(r)("connect.marketing.title"),
193
- actions: a.value.length > 0 ? [C.value] : [],
194
- "onClick:action": A
195
- }, null, 8, ["title", "actions"]),
196
- !t.value && a.value.length === 0 ? (s(), d("div", oe, [
197
- i(F, {
198
- variant: "outlined",
199
- class: "w-full justify-center items-center flex flex-col p-[24px] xs:p-16 gap-[24px] xs:gap-16"
200
- }, {
201
- default: S(() => [
202
- k[0] || (k[0] = n("img", {
203
- src: D,
204
- class: "w-[150px]"
205
- }, null, -1)),
206
- n("p", le, w(c(r)("connect.marketing.emptyState.title")), 1),
207
- n("p", re, w(c(r)("connect.marketing.emptyState.description")), 1),
208
- i(Z)
209
- ]),
210
- _: 1
211
- })
212
- ])) : (s(), d("div", se, [
213
- n("div", ie, [
214
- (s(!0), d(I, null, B(a.value, (g) => (s(), N($, {
215
- key: g._id,
216
- material: g
217
- }, null, 8, ["material"]))), 128)),
218
- t.value ? (s(), d(I, { key: 0 }, B(E, (g) => i($, {
219
- key: `skeleton-${g}`,
220
- material: null
221
- })), 64)) : j("", !0)
222
- ]),
223
- n("div", {
224
- ref_key: "sentinel",
225
- ref: _,
226
- class: "h-1"
227
- }, null, 512)
228
- ]))
229
- ], 64);
230
- };
231
- }
232
- });
233
- export {
234
- ve as default
235
- };