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

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 (107) hide show
  1. package/dist/{Analytic-C3QLhhr1.js → Analytic-BaA1ekke.js} +13 -13
  2. package/dist/{App-BM42X8Bc.js → App-e99cE_5Z.js} +7 -7
  3. package/dist/{AuditLogs-C9YLLdwR.js → AuditLogs-DfjlyaHP.js} +9 -9
  4. package/dist/{Bin-ujsok6ox.js → Bin-CHlFDIos.js} +8 -8
  5. package/dist/{Broadcast-DwJ0lTJL.js → Broadcast-C9Kat4Mq.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BAOThPBZ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DX1fkDB-.js} +6 -6
  7. package/dist/{Card-Cog8kI-h.js → Card-BE7WbaEo.js} +18 -18
  8. package/dist/{Collections-CKpLacG0.js → Collections-B98IWqo-.js} +7 -7
  9. package/dist/{Credit-B8vn9-XQ.js → Credit-Bnn7aw0u.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B68fHxLk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-cPZkPjqo.js} +33 -33
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BMkTJfeq.js → EffectSheet.vue_vue_type_style_index_0_lang-qvZRCW3Q.js} +6 -6
  12. package/dist/{Experience-CZh5yQE7.js → Experience-F6_b9Bvs.js} +9 -9
  13. package/dist/{FileSaver.min-TDoZgwjv.js → FileSaver.min-9_MTxcsH.js} +1 -1
  14. package/dist/{Game-B4IGlBuZ.js → Game-B5ELfu1H.js} +10 -10
  15. package/dist/{Grab-CGCMfo5l.js → Grab-ZGyeHCaN.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-C2XgeLvq.js} +1 -1
  17. package/dist/{Index-BtQDpaDl.js → Index-shCHzuc6.js} +10 -10
  18. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-_dtiqS22.js → LocationPicker.vue_vue_type_script_setup_true_lang-DwJn6RF4.js} +1 -1
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-C6lOiXZo.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CMQE4OgN.js} +1 -1
  20. package/dist/{MainLayout-CCWfceEw.js → MainLayout-D2oABez8.js} +1 -1
  21. package/dist/Marketing-iYLmr_K-.js +236 -0
  22. package/dist/{MarketingMaterialEdit-CuKXyUNM.js → MarketingMaterialEdit-BQXrRtuF.js} +275 -314
  23. package/dist/{Member-CPW-noAm.js → Member-B6HhRTh1.js} +11 -11
  24. package/dist/{MemberList-DPCwz9Xm.js → MemberList-CKbZtUOP.js} +26 -26
  25. package/dist/{MemberTransactions-BnThgkgf.js → MemberTransactions--JLaF1U4.js} +1 -1
  26. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-uYwOH1Du.js → MessageInput.vue_vue_type_script_setup_true_lang-DAFHPnR-.js} +9 -9
  27. package/dist/{Mission-BduXkfTy.js → Mission-RwzK5aX7.js} +10 -10
  28. package/dist/{Overview-DtaIdMIj.js → Overview-C7ZexnUx.js} +18 -18
  29. package/dist/{Point-DtjIbu5J.js → Point-CoCYad51.js} +9 -9
  30. package/dist/{Promotion-Bxjw7Iac.js → Promotion-DVZN7-K0.js} +10 -10
  31. package/dist/{Queue-dbh6eNyd.js → Queue-BOrvV51q.js} +10 -10
  32. package/dist/{Record-Dx31uV2f.js → Record-P-AbRn6I.js} +9 -9
  33. package/dist/{Review-OEmKjDCL.js → Review-DFkyD0sh.js} +4 -4
  34. package/dist/{ReviewFacebookCallback-hS4e9pnS.js → ReviewFacebookCallback-CZMgR9GI.js} +4 -4
  35. package/dist/{ReviewGoogleCallback-CFtvjjfe.js → ReviewGoogleCallback-CZSgHEbP.js} +4 -4
  36. package/dist/{Reward-E3avHwn3.js → Reward-6xSqB9ML.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-Cuf95qd6.js} +11 -11
  38. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-_4AOLGM1.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bt7K8y_N.js} +14 -14
  39. package/dist/{Segment-DYK5ArhM.js → Segment-CaFTGv1s.js} +24 -24
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CO4npY6n.js → SelectItems.vue_vue_type_script_setup_true_lang-DB7yAOAV.js} +2 -2
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-COFUPWot.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DhGfiUAy.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cj3NUgnu.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-ZTkWcdHS.js} +4 -4
  43. package/dist/{Setting-B0_oNLQu.js → Setting-DmQVsYXj.js} +14 -14
  44. package/dist/{SettingAdvertisements-CxdmuEvF.js → SettingAdvertisements-BaROU8us.js} +12 -12
  45. package/dist/{Store-YOa3U0aD.js → Store-DHyhLBVY.js} +21 -21
  46. package/dist/{StoreRewards-2uDbKk47.js → StoreRewards-D0lsVw6j.js} +15 -15
  47. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CwREjTGl.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DqeErrz2.js} +21 -21
  48. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DUykQn4h.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DE7_71js.js} +2 -2
  49. package/dist/{Tier-NDxsbc2m.js → Tier-gY89ATJZ.js} +23 -23
  50. package/dist/{Title-Dcinkv87.js → Title-IYc-Ha7M.js} +20 -20
  51. package/dist/{Transaction-D6-Lp_Ff.js → Transaction-DYj14beR.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CYBsobxf.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DBg__2Ar.js} +6 -6
  53. package/dist/{Voucher-BbU1ZIVw.js → Voucher-DRe_7iwB.js} +13 -13
  54. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DrsZ7zME.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Cg0QGZfX.js} +12 -12
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CrAviByb.js → ZodTextField.vue_vue_type_script_setup_true_lang-vQpDHFbP.js} +2 -2
  56. package/dist/{app-BWFldX_d.js → app-DKkwrhMa.js} +51 -51
  57. package/dist/app.js +1 -1
  58. package/dist/{business-BCAlq8oY.js → business-B6QJRvwl.js} +1 -1
  59. package/dist/{campaign-Drj2Z6Jn.js → campaign-BOs8XM-E.js} +8 -8
  60. package/dist/{campaign-B096AFuK.js → campaign-hW8Yxlsd.js} +1 -1
  61. package/dist/{campaign.enum-BbFVaaKV.js → campaign.enum-DxMYtWnO.js} +1 -1
  62. package/dist/{campaign.fn-BtwIHsju.js → campaign.fn-DQ65nlYV.js} +3 -3
  63. package/dist/{collectible.enum-axN7HDxB.js → collectible.enum-CZFScnZg.js} +1 -1
  64. package/dist/{collection.fn-C_6-ST-9.js → collection.fn-CidF0dGP.js} +2 -2
  65. package/dist/{dto-B3g8zebD.js → dto-C9Nt1u50.js} +4 -4
  66. package/dist/{duplicateCampaign-C56LVR47.js → duplicateCampaign-DVzt6cpN.js} +2 -2
  67. package/dist/{effect-B6jWG9MX.js → effect-Db6RimwW.js} +1 -1
  68. package/dist/{email-addresses-DzeLIT4Z.js → email-addresses-C02DqWUe.js} +2 -2
  69. package/dist/{export-B-f1Fy3c.js → export-DNIcz3qS.js} +3 -3
  70. package/dist/{helper-GZmz60dV.js → helper-CvXdehK7.js} +1 -1
  71. package/dist/{index-D1l-VEDs.js → index-0pkFDIzd.js} +1 -1
  72. package/dist/{index-CxF9mi-l.js → index-ACEIBNv3.js} +3 -3
  73. package/dist/{index-DQZ7Tl1m.js → index-BZP4FLAP.js} +4 -4
  74. package/dist/{index-D0YPb3ei.js → index-BpfeEFhj.js} +1 -1
  75. package/dist/{index-BG5prXBx.js → index-Bu209ojz.js} +2 -2
  76. package/dist/{index-CWQEJ4v7.js → index-CQIP2wsW.js} +1 -1
  77. package/dist/{index-COMozQJ9.js → index-CWMgwUor.js} +3 -3
  78. package/dist/{index-Bbn2fjlu.js → index-CXpTeJEw.js} +1 -1
  79. package/dist/{index-XvsgDLko.js → index-DfHoeQSp.js} +1 -1
  80. package/dist/{index-CtK9zAMK.js → index-Dj-JcFr3.js} +3 -3
  81. package/dist/{index-DOb8JUVT.js → index-LTtmYSoI.js} +1 -1
  82. package/dist/{index-mse5uWyZ.js → index-X7CT5hzK.js} +6 -6
  83. package/dist/{index-C-0KBvqk.js → index-hJsSB9sR.js} +1 -1
  84. package/dist/{index.esm2017-DlOvWRsl.js → index.esm2017-DAdHJ0oY.js} +1 -1
  85. package/dist/{loading-Cv6eF2pO.js → loading-o0TBim-d.js} +1 -1
  86. package/dist/{lodash-DM26yDS-.js → lodash-BHizN_g6.js} +1 -1
  87. package/dist/{membership-BXXSi21x.js → membership-DzujFWmH.js} +3 -3
  88. package/dist/{money-BI22kwrB.js → money-BNxHlpcD.js} +1 -1
  89. package/dist/{number-C5VwsV4p.js → number-DNDzN4Nd.js} +1 -1
  90. package/dist/{objectid-gjDtRAFa.js → objectid-CnwVzlUD.js} +9 -9
  91. package/dist/{plugins-DPC31X3L.js → plugins-Scxk0oEb.js} +3 -3
  92. package/dist/{reward-BbYot1VR.js → reward-C1iLtW5B.js} +1 -1
  93. package/dist/{rule-CDeOgoOU.js → rule-DI694Swg.js} +3 -3
  94. package/dist/{rule-builder-D9RdlP0k.js → rule-builder-Fx0nmKme.js} +1 -1
  95. package/dist/style.css +1 -1
  96. package/dist/{template-Bilhj8E_.js → template-sj-N6n8x.js} +6 -6
  97. package/dist/{timezone-BnMBWJA4.js → timezone-D9Bi8DEn.js} +2 -2
  98. package/dist/{trigger-mmIQLhyO.js → trigger-D5TZSY4o.js} +5 -5
  99. package/dist/useMarketingMaterialActions-CObsVopg.js +95 -0
  100. package/dist/{usePagination-CGQTKaBm.js → usePagination-CJMZLttm.js} +1 -1
  101. package/dist/{user-D8GJcZA1.js → user-B9EcGV_h.js} +1 -1
  102. package/dist/{vue-i18n-B1B0WjC5.js → vue-i18n-BZ4icio1.js} +247 -247
  103. package/dist/{xlsx-CqGQ7oK_.js → xlsx-P_FiE4nv.js} +1 -1
  104. package/dist/{zod-BT5LlBcK.js → zod-DQqF49Jz.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
@@ -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-BZ4icio1.js";
4
+ import { u as G, m as q } from "./useMarketingMaterialActions-CObsVopg.js";
5
+ import { u as O } from "./remy-D_Deb3ue.js";
6
+ import { useRouter as z } from "vue-router";
7
+ import "./index-DfHoeQSp.js";
8
+ import { R as K } from "./app-DKkwrhMa.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
+ };