@feedmepos/mf-connect 0.1.38-beta.86 → 0.1.38-beta.88

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 (108) hide show
  1. package/dist/{Analytic-C3QLhhr1.js → Analytic-DoBnba9Q.js} +13 -13
  2. package/dist/{App-BM42X8Bc.js → App-ClzqN-h4.js} +7 -7
  3. package/dist/{AuditLogs-C9YLLdwR.js → AuditLogs-B1KilJEV.js} +9 -9
  4. package/dist/{Bin-ujsok6ox.js → Bin-LxoawFEh.js} +8 -8
  5. package/dist/{Broadcast-DwJ0lTJL.js → Broadcast-dWkIpHs9.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BAOThPBZ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BOLNz-3n.js} +6 -6
  7. package/dist/{Card-Cog8kI-h.js → Card-BHNlMXwu.js} +18 -18
  8. package/dist/{Collections-CKpLacG0.js → Collections-DGcLca1j.js} +7 -7
  9. package/dist/{Credit-B8vn9-XQ.js → Credit-C1TDxF8p.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B68fHxLk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-4LI4VikX.js} +33 -33
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BMkTJfeq.js → EffectSheet.vue_vue_type_style_index_0_lang-ClyHecg7.js} +6 -6
  12. package/dist/{Experience-CZh5yQE7.js → Experience-CamLhhO8.js} +9 -9
  13. package/dist/{FileSaver.min-TDoZgwjv.js → FileSaver.min-BxgPKNUd.js} +1 -1
  14. package/dist/{Game-B4IGlBuZ.js → Game-DPhiOi-g.js} +10 -10
  15. package/dist/{Grab-CGCMfo5l.js → Grab-BTko-A6x.js} +8 -8
  16. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BEST_BzE.js → ImageInput.vue_vue_type_script_setup_true_lang-BIoZdQLo.js} +1 -1
  17. package/dist/{Index-BtQDpaDl.js → Index-CU8BaVOt.js} +10 -10
  18. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-_dtiqS22.js → LocationPicker.vue_vue_type_script_setup_true_lang-DdONaoWV.js} +1 -1
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-C6lOiXZo.js → LottieAnimation.vue_vue_type_script_setup_true_lang-iyQC4Zu6.js} +1 -1
  20. package/dist/{MainLayout-CCWfceEw.js → MainLayout-BXJ9XQWz.js} +1 -1
  21. package/dist/Marketing-3o2cznwF.js +236 -0
  22. package/dist/{MarketingMaterialEdit-CuKXyUNM.js → MarketingMaterialEdit-CqbNHhNX.js} +275 -314
  23. package/dist/{Member-CPW-noAm.js → Member-3JxYSLlT.js} +11 -11
  24. package/dist/{MemberList-DPCwz9Xm.js → MemberList-DZsVwTQI.js} +26 -26
  25. package/dist/{MemberTransactions-BnThgkgf.js → MemberTransactions-CzMOwy7D.js} +1 -1
  26. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-uYwOH1Du.js → MessageInput.vue_vue_type_script_setup_true_lang-xtErr_qj.js} +9 -9
  27. package/dist/{Mission-BduXkfTy.js → Mission-DfyDer-x.js} +10 -10
  28. package/dist/{Overview-DtaIdMIj.js → Overview-DBF28yHc.js} +18 -18
  29. package/dist/{Point-DtjIbu5J.js → Point-CfWLWlMy.js} +9 -9
  30. package/dist/{Promotion-Bxjw7Iac.js → Promotion-CYnc3yik.js} +10 -10
  31. package/dist/{Queue-dbh6eNyd.js → Queue-CilE08ki.js} +10 -10
  32. package/dist/{Record-Dx31uV2f.js → Record-9jQs-8cq.js} +9 -9
  33. package/dist/{Review-OEmKjDCL.js → Review-BF5TOzB-.js} +4 -4
  34. package/dist/{ReviewFacebookCallback-hS4e9pnS.js → ReviewFacebookCallback-7DbgNorD.js} +4 -4
  35. package/dist/{ReviewGoogleCallback-CFtvjjfe.js → ReviewGoogleCallback-BUGKTucD.js} +4 -4
  36. package/dist/{Reward-E3avHwn3.js → Reward-BEmsLTHu.js} +16 -16
  37. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bs_Ydcgu.js → RewardGroup.vue_vue_type_script_setup_true_lang-BZ5Lo-N5.js} +11 -11
  38. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-_4AOLGM1.js → RuleGroup.vue_vue_type_script_setup_true_lang-tv6lD93B.js} +14 -14
  39. package/dist/{Segment-DYK5ArhM.js → Segment-Bi7injIP.js} +24 -24
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CO4npY6n.js → SelectItems.vue_vue_type_script_setup_true_lang-BttOIpG9.js} +2 -2
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-COFUPWot.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BgtKYAT0.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cj3NUgnu.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BFCanhQH.js} +4 -4
  43. package/dist/{Setting-B0_oNLQu.js → Setting-CK_h_bWd.js} +14 -14
  44. package/dist/{SettingAdvertisements-CxdmuEvF.js → SettingAdvertisements-C3SDLELB.js} +12 -12
  45. package/dist/{Store-YOa3U0aD.js → Store-DSxOUEuR.js} +21 -21
  46. package/dist/{StoreRewards-2uDbKk47.js → StoreRewards-BEiLN-hS.js} +15 -15
  47. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CwREjTGl.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BAKu9lmx.js} +21 -21
  48. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DUykQn4h.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DXgvkpna.js} +2 -2
  49. package/dist/{Tier-NDxsbc2m.js → Tier-xMcEw5Lr.js} +23 -23
  50. package/dist/{Title-Dcinkv87.js → Title-Dl-5jtsK.js} +20 -20
  51. package/dist/{Transaction-D6-Lp_Ff.js → Transaction-BR1zJo0K.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CYBsobxf.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BoEMRg-f.js} +6 -6
  53. package/dist/{Voucher-BbU1ZIVw.js → Voucher-DF4EXIXZ.js} +13 -13
  54. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DrsZ7zME.js → VoucherEditor.vue_vue_type_script_setup_true_lang--WNxKVHm.js} +12 -12
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CrAviByb.js → ZodTextField.vue_vue_type_script_setup_true_lang-V308yiUQ.js} +2 -2
  56. package/dist/{app-BWFldX_d.js → app-BmV5ElWE.js} +51 -51
  57. package/dist/app.js +1 -1
  58. package/dist/{business-BCAlq8oY.js → business-BpLUb7_s.js} +1 -1
  59. package/dist/{campaign-B096AFuK.js → campaign-D7KlZ2ZU.js} +1 -1
  60. package/dist/{campaign-Drj2Z6Jn.js → campaign-DijAQR__.js} +8 -8
  61. package/dist/{campaign.enum-BbFVaaKV.js → campaign.enum-DEl-vV8G.js} +1 -1
  62. package/dist/{campaign.fn-BtwIHsju.js → campaign.fn-lqmpiiZf.js} +3 -3
  63. package/dist/{collectible.enum-axN7HDxB.js → collectible.enum-C3p3geaw.js} +1 -1
  64. package/dist/{collection.fn-C_6-ST-9.js → collection.fn-BF8b_sox.js} +2 -2
  65. package/dist/{dto-B3g8zebD.js → dto-Ta2Ywvwu.js} +4 -4
  66. package/dist/{duplicateCampaign-C56LVR47.js → duplicateCampaign-Dhvn1TCh.js} +2 -2
  67. package/dist/{effect-B6jWG9MX.js → effect-Y9Qx_mKu.js} +1 -1
  68. package/dist/{email-addresses-DzeLIT4Z.js → email-addresses-BrzHil8s.js} +2 -2
  69. package/dist/{export-B-f1Fy3c.js → export-C_zGz7tE.js} +3 -3
  70. package/dist/{helper-GZmz60dV.js → helper-CHhDdnS5.js} +1 -1
  71. package/dist/{index-CxF9mi-l.js → index-B0FTTP85.js} +3 -3
  72. package/dist/{index-XvsgDLko.js → index-BevEVPZ9.js} +1 -1
  73. package/dist/{index-D0YPb3ei.js → index-C9pg1w5X.js} +1 -1
  74. package/dist/{index-BG5prXBx.js → index-CoZSpWdi.js} +2 -2
  75. package/dist/{index-COMozQJ9.js → index-D-rVAFtz.js} +3 -3
  76. package/dist/{index-CWQEJ4v7.js → index-D2uQZFJU.js} +1 -1
  77. package/dist/{index-DQZ7Tl1m.js → index-DHCdXvFS.js} +4 -4
  78. package/dist/{index-Bbn2fjlu.js → index-DHRiPyke.js} +1 -1
  79. package/dist/{index-D1l-VEDs.js → index-DINW2hPx.js} +1 -1
  80. package/dist/{index-mse5uWyZ.js → index-RJGtLo7R.js} +6 -6
  81. package/dist/{index-DOb8JUVT.js → index-TmsJLSOs.js} +1 -1
  82. package/dist/{index-CtK9zAMK.js → index-j09zK7Tg.js} +3 -3
  83. package/dist/{index-C-0KBvqk.js → index-zVnbNIES.js} +1 -1
  84. package/dist/{index.esm2017-DlOvWRsl.js → index.esm2017-8a-tM07l.js} +1 -1
  85. package/dist/{loading-Cv6eF2pO.js → loading-CRPth_Wp.js} +1 -1
  86. package/dist/{lodash-DM26yDS-.js → lodash-BikKrY6W.js} +1 -1
  87. package/dist/{membership-BXXSi21x.js → membership-BMhg8ZZQ.js} +3 -3
  88. package/dist/{money-BI22kwrB.js → money-BQHRMCUf.js} +1 -1
  89. package/dist/{number-C5VwsV4p.js → number-BzzVIPXk.js} +1 -1
  90. package/dist/objectid-DM0qSOCS.js +145 -0
  91. package/dist/{plugins-DPC31X3L.js → plugins-CO-MOyVK.js} +3 -3
  92. package/dist/{reward-BbYot1VR.js → reward-C368q13D.js} +1 -1
  93. package/dist/{rule-CDeOgoOU.js → rule-DckH889w.js} +3 -3
  94. package/dist/{rule-builder-D9RdlP0k.js → rule-builder-C_KMAIrV.js} +1 -1
  95. package/dist/style.css +1 -1
  96. package/dist/{template-Bilhj8E_.js → template-EyvAoFhD.js} +6 -6
  97. package/dist/{timezone-BnMBWJA4.js → timezone-CXg8w1QE.js} +2 -2
  98. package/dist/{trigger-mmIQLhyO.js → trigger-CtcO8rO_.js} +5 -5
  99. package/dist/useMarketingMaterialActions-DE25_yLc.js +95 -0
  100. package/dist/{usePagination-CGQTKaBm.js → usePagination-COcWRV8K.js} +1 -1
  101. package/dist/{user-D8GJcZA1.js → user-COuKXgeI.js} +1 -1
  102. package/dist/{vue-i18n-B1B0WjC5.js → vue-i18n-CMa8joJt.js} +2 -2
  103. package/dist/{xlsx-CqGQ7oK_.js → xlsx-D9wt_MBO.js} +1 -1
  104. package/dist/{zod-BT5LlBcK.js → zod-CrB-sb6f.js} +1 -1
  105. package/package.json +1 -1
  106. package/dist/Marketing-BVctpRDr.js +0 -295
  107. package/dist/index-BwRZJSAn.js +0 -36
  108. package/dist/objectid-gjDtRAFa.js +0 -145
@@ -0,0 +1,236 @@
1
+ import { defineComponent as w, resolveComponent as v, openBlock as s, createBlock as N, unref as f, ref as p, watch as R, createElementBlock as m, createVNode as i, withCtx as I, createElementVNode as n, toDisplayString as k, withModifiers as T, createStaticVNode as U, computed as L, onMounted as P, nextTick as D, onUnmounted as H, Fragment as F, renderList as B, createCommentVNode as V } from "vue";
2
+ import { _ as j } from "./campaign-CpzFl8Vr.js";
3
+ import { u as S } from "./vue-i18n-CMa8joJt.js";
4
+ import { u as G, m as q } from "./useMarketingMaterialActions-DE25_yLc.js";
5
+ import { u as O } from "./remy-D_Deb3ue.js";
6
+ import { useRouter as z } from "vue-router";
7
+ import "./index-BevEVPZ9.js";
8
+ import { R as K } from "./app-BmV5ElWE.js";
9
+ const Z = /* @__PURE__ */ w({
10
+ __name: "GenerateMaterialButton",
11
+ setup(o) {
12
+ const { t: r } = S(), c = O();
13
+ function a() {
14
+ c.activate({
15
+ command: "generateMarketingMaterial",
16
+ fullscreen: !0,
17
+ forceNewConversation: !0
18
+ });
19
+ }
20
+ return (e, t) => {
21
+ const u = v("FmButton");
22
+ return s(), N(u, {
23
+ label: f(r)("connect.marketing.emptyState.action"),
24
+ "prepend-icon": "wand_stars",
25
+ onClick: a
26
+ }, null, 8, ["label"]);
27
+ };
28
+ }
29
+ }), J = /* @__PURE__ */ w({
30
+ __name: "MarketingMaterialItemActionButton",
31
+ props: {
32
+ material: {}
33
+ },
34
+ emits: ["update:menuOpened"],
35
+ setup(o, { emit: r }) {
36
+ const c = o, a = r, e = p(!1);
37
+ R(e, (y) => {
38
+ a("update:menuOpened", y);
39
+ });
40
+ const { shareMaterial: t, downloadMaterialImage: u, copyMaterialLink: _ } = G();
41
+ async function d() {
42
+ e.value = !1, await t(c.material);
43
+ }
44
+ async function M() {
45
+ e.value = !1, await u(c.material.imageUrl);
46
+ }
47
+ async function b() {
48
+ e.value = !1, await _(c.material.imageUrl);
49
+ }
50
+ return (y, h) => {
51
+ const l = v("FmButton"), g = v("FmMenuItem"), C = v("FmMenu");
52
+ return s(), m("div", null, [
53
+ i(C, {
54
+ placement: "right-start",
55
+ shift: !0,
56
+ "model-value": e.value,
57
+ onMenuChanged: h[0] || (h[0] = (A) => e.value = A)
58
+ }, {
59
+ "menu-button": I(() => [
60
+ i(l, {
61
+ icon: "more_vert",
62
+ variant: "tertiary",
63
+ size: "md"
64
+ })
65
+ ]),
66
+ default: I(() => [
67
+ i(g, {
68
+ icon: "share",
69
+ label: "Share",
70
+ onClick: d
71
+ }),
72
+ i(g, {
73
+ icon: "download",
74
+ label: "Download",
75
+ onClick: M
76
+ }),
77
+ i(g, {
78
+ icon: "content_copy",
79
+ label: "Copy Link",
80
+ onClick: b
81
+ })
82
+ ]),
83
+ _: 1
84
+ }, 8, ["model-value"])
85
+ ]);
86
+ };
87
+ }
88
+ }), 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 = {
89
+ key: 1,
90
+ class: "rounded-lg overflow-hidden border border-transparent fm-shadow-light-100 animate-pulse bg-white"
91
+ }, $ = /* @__PURE__ */ w({
92
+ __name: "MarketingMaterialItem",
93
+ props: {
94
+ material: {}
95
+ },
96
+ setup(o) {
97
+ const { t: r } = S(), c = z(), a = p(!1);
98
+ return (e, t) => o.material ? (s(), m("div", {
99
+ key: 0,
100
+ 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",
101
+ onClick: t[2] || (t[2] = () => {
102
+ a.value || f(c).push({
103
+ name: f(K)["$connect-MARKETING_MATERIAL_EDIT"],
104
+ query: { id: o.material._id }
105
+ });
106
+ })
107
+ }, [
108
+ n("div", Q, [
109
+ n("img", {
110
+ src: o.material.imageUrl,
111
+ alt: f(r)("connect.marketing.title"),
112
+ class: "w-full h-full object-cover"
113
+ }, null, 8, W)
114
+ ]),
115
+ n("div", X, [
116
+ n("div", Y, [
117
+ n("div", ee, [
118
+ n("p", te, k(o.material.headline), 1),
119
+ n("p", ne, k(o.material.caption), 1)
120
+ ]),
121
+ i(J, {
122
+ material: o.material,
123
+ "onUpdate:menuOpened": t[0] || (t[0] = (u) => a.value = u),
124
+ onClick: t[1] || (t[1] = T(() => {
125
+ }, ["stop"]))
126
+ }, null, 8, ["material"])
127
+ ])
128
+ ])
129
+ ])) : (s(), m("div", ae, [...t[3] || (t[3] = [
130
+ 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)
131
+ ])]));
132
+ }
133
+ }), oe = {
134
+ key: 0,
135
+ class: "px-24 xs:px-12 flex flex-col gap-y-16 py-24 xs:py-16"
136
+ }, re = { class: "fm-typo-en-title-sm-800 text-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 xs:w-full text-center" }, se = {
137
+ key: 1,
138
+ class: "px-24 xs:px-12 flex flex-col gap-y-24 xs:gap-y-16 pt-24 xs:pt-16"
139
+ }, ie = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-16" }, E = 20, _e = /* @__PURE__ */ w({
140
+ __name: "Marketing",
141
+ setup(o) {
142
+ const { t: r } = S(), c = O(), a = p([]), e = p(!0), t = p(!0), u = p(null), _ = p(null);
143
+ let d = null;
144
+ const M = L(() => ({
145
+ label: r("connect.marketing.emptyState.action"),
146
+ value: "generate",
147
+ isPrimary: !0,
148
+ prependIcon: "wand_stars"
149
+ }));
150
+ function b(l) {
151
+ l === "generate" && c.activate({
152
+ command: "generateMarketingMaterial",
153
+ fullscreen: !0,
154
+ forceNewConversation: !0
155
+ });
156
+ }
157
+ async function y() {
158
+ const l = await q.listMarketingMaterials(
159
+ u.value,
160
+ E
161
+ );
162
+ a.value.push(...l.resources), u.value = l.meta.nextCursor, t.value = !!l.meta.nextCursor;
163
+ }
164
+ function h() {
165
+ d = new IntersectionObserver(
166
+ async ([l]) => {
167
+ if (!(!l.isIntersecting || !t.value)) {
168
+ e.value = !0;
169
+ try {
170
+ await y();
171
+ } catch {
172
+ } finally {
173
+ e.value = !1;
174
+ }
175
+ }
176
+ },
177
+ { rootMargin: "200px" }
178
+ ), _.value && d.observe(_.value);
179
+ }
180
+ return P(async () => {
181
+ try {
182
+ await y();
183
+ } catch {
184
+ } finally {
185
+ e.value = !1, await D(), h();
186
+ }
187
+ }), H(() => {
188
+ d == null || d.disconnect();
189
+ }), (l, g) => {
190
+ const C = v("FmPageHead"), A = v("FmCard");
191
+ return s(), m(F, null, [
192
+ i(C, {
193
+ title: f(r)("connect.marketing.title"),
194
+ actions: a.value.length > 0 ? [M.value] : [],
195
+ "onClick:action": b
196
+ }, null, 8, ["title", "actions"]),
197
+ !e.value && a.value.length === 0 ? (s(), m("div", oe, [
198
+ i(A, {
199
+ variant: "outlined",
200
+ class: "w-full justify-center items-center flex flex-col p-[24px] xs:p-16 gap-[24px] xs:gap-16"
201
+ }, {
202
+ default: I(() => [
203
+ g[0] || (g[0] = n("img", {
204
+ src: j,
205
+ class: "w-[150px]"
206
+ }, null, -1)),
207
+ n("p", re, k(f(r)("connect.marketing.emptyState.title")), 1),
208
+ n("p", le, k(f(r)("connect.marketing.emptyState.description")), 1),
209
+ i(Z)
210
+ ]),
211
+ _: 1
212
+ })
213
+ ])) : (s(), m("div", se, [
214
+ n("div", ie, [
215
+ (s(!0), m(F, null, B(a.value, (x) => (s(), N($, {
216
+ key: x._id,
217
+ material: x
218
+ }, null, 8, ["material"]))), 128)),
219
+ e.value ? (s(), m(F, { key: 0 }, B(E, (x) => i($, {
220
+ key: `skeleton-${x}`,
221
+ material: null
222
+ })), 64)) : V("", !0)
223
+ ]),
224
+ n("div", {
225
+ ref_key: "sentinel",
226
+ ref: _,
227
+ class: "h-1"
228
+ }, null, 512)
229
+ ]))
230
+ ], 64);
231
+ };
232
+ }
233
+ });
234
+ export {
235
+ _e as default
236
+ };