@feedmepos/mf-connect 0.1.38-beta.83 → 0.1.38-beta.85

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-DJAlQ2pL.js → Analytic-b8mA9c9Y.js} +13 -13
  2. package/dist/{App-Be9v2Mex.js → App-XFiefZAx.js} +595 -592
  3. package/dist/{AuditLogs-DwtO0cf4.js → AuditLogs-DTcAAlxV.js} +9 -9
  4. package/dist/{Bin-Cxa9zQnN.js → Bin-CzsWUmIN.js} +8 -8
  5. package/dist/{Broadcast-D5KL5PdU.js → Broadcast-D_3C1KYk.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bggy1rRH.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DX5JM6sI.js} +6 -6
  7. package/dist/{Card-lZQHWj1I.js → Card-BmEm66lU.js} +18 -18
  8. package/dist/{Collections-C8qPkQLj.js → Collections-Ry-MQM44.js} +7 -7
  9. package/dist/{Credit-9ysOHfc_.js → Credit-DVVJjxgZ.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-PsT33T3z.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-_WZUfwnP.js} +33 -33
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BL3eRbqu.js → EffectSheet.vue_vue_type_style_index_0_lang-B6KcW1Rh.js} +6 -6
  12. package/dist/{Experience-CA4lgQXP.js → Experience-DyOeEZu2.js} +9 -9
  13. package/dist/{FileSaver.min-BbU3im0h.js → FileSaver.min-D0Xa_nbt.js} +1 -1
  14. package/dist/{Game-YhxaGafX.js → Game-C25Rgy7x.js} +10 -10
  15. package/dist/{Grab-TKwe3os8.js → Grab-BaG_Xwvt.js} +8 -8
  16. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CbEUTniY.js → ImageInput.vue_vue_type_script_setup_true_lang-X9zk3Atr.js} +1 -1
  17. package/dist/{Index-D1LAt3Np.js → Index-BIFAhH2O.js} +10 -10
  18. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-57wNU0SV.js → LocationPicker.vue_vue_type_script_setup_true_lang-DQQVh3ap.js} +1 -1
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-B3YaW9Ot.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BwJaLc8D.js} +1 -1
  20. package/dist/{MainLayout-D6_st4qp.js → MainLayout-BhCYNX3n.js} +1 -1
  21. package/dist/{Marketing-DL5qQws0.js → Marketing-C19yd_BK.js} +99 -100
  22. package/dist/{MarketingMaterialEdit-D1cfcfBu.js → MarketingMaterialEdit-CyKJp44W.js} +411 -409
  23. package/dist/{Member-DTD0mS4Z.js → Member-CINhmBJN.js} +11 -11
  24. package/dist/{MemberList-BUjxE5NK.js → MemberList-BWvurFcu.js} +26 -26
  25. package/dist/{MemberTransactions-CcZDFo0g.js → MemberTransactions-DjxllAVe.js} +1 -1
  26. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-HUuPLKIl.js → MessageInput.vue_vue_type_script_setup_true_lang-BOohwOuN.js} +9 -9
  27. package/dist/{Mission-BzSCDXcq.js → Mission-DHS0FPgm.js} +10 -10
  28. package/dist/{Overview-BSGHpRSU.js → Overview-DFKG3hyX.js} +18 -18
  29. package/dist/{Point-CrQhN0Vf.js → Point-C0lV-lkL.js} +9 -9
  30. package/dist/{Promotion-DeOhdHkm.js → Promotion-aDnFW2P_.js} +10 -10
  31. package/dist/{Queue-DOv6c0Ge.js → Queue-CtH9-eLs.js} +14 -14
  32. package/dist/{Record-M_U9BsVx.js → Record-CQydFJqp.js} +9 -9
  33. package/dist/{Review-BjTjYx14.js → Review-CKsWMX2o.js} +4 -4
  34. package/dist/{ReviewFacebookCallback-YC7Z3b93.js → ReviewFacebookCallback-D4jb1HC4.js} +4 -4
  35. package/dist/{ReviewGoogleCallback-CyyVC3LZ.js → ReviewGoogleCallback-CCXJc9fi.js} +4 -4
  36. package/dist/{Reward-CwoLTenr.js → Reward-BRr8fWN4.js} +16 -16
  37. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C6Ji5bXQ.js → RewardGroup.vue_vue_type_script_setup_true_lang-t4cBlpPd.js} +11 -11
  38. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DS4VODfI.js → RuleGroup.vue_vue_type_script_setup_true_lang-oiLK2FWO.js} +14 -14
  39. package/dist/Segment-BMNT_K48.js +1015 -0
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DZ2CbKu6.js → SelectItems.vue_vue_type_script_setup_true_lang-Co9D6B80.js} +2 -2
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DSLOGG9z.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-RMfUCmZH.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CNO95DBX.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7BP9ow8.js} +4 -4
  43. package/dist/{Setting-DPsDvTr-.js → Setting-Bv6KoqKT.js} +160 -160
  44. package/dist/{SettingAdvertisements-B78nHQWZ.js → SettingAdvertisements-C5EdDN8V.js} +29 -29
  45. package/dist/{Store-CtOsS8xI.js → Store-Iiwd-cqe.js} +21 -21
  46. package/dist/{StoreRewards-DYiTSy_e.js → StoreRewards-B8GCy9Q8.js} +15 -15
  47. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CWjC-H8n.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DCuLpnZz.js} +21 -21
  48. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BsWr5iPt.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CKjg0o86.js} +2 -2
  49. package/dist/{Tier-BjA-f408.js → Tier-C5QHgi86.js} +23 -23
  50. package/dist/{Title-CCyLBahF.js → Title-DCpgwhkh.js} +20 -20
  51. package/dist/{Transaction-CtF7MpPV.js → Transaction-p-jqY2uR.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-_GgNR8VU.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-z_pRXQs5.js} +6 -6
  53. package/dist/{Voucher-CiB7KTLn.js → Voucher-CwPK7CI3.js} +13 -13
  54. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BH4xZfZN.js → VoucherEditor.vue_vue_type_script_setup_true_lang-U3lPcMsO.js} +12 -12
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Desirrtn.js → ZodTextField.vue_vue_type_script_setup_true_lang-DZK3Vhgl.js} +2 -2
  56. package/dist/{app-DwodX_i8.js → app-Bd1PovAE.js} +201 -51
  57. package/dist/app.js +1 -1
  58. package/dist/{business-Cn27thty.js → business-DY9T_8D6.js} +1 -1
  59. package/dist/{campaign-B5A9loZe.js → campaign-Cj8ykwZM.js} +1 -1
  60. package/dist/{campaign-6X21-84u.js → campaign-D9-2cfGS.js} +8 -8
  61. package/dist/{campaign.enum-C4XI-2uW.js → campaign.enum-Dn1IZjm3.js} +1 -1
  62. package/dist/{campaign.fn-Cy8xHdXa.js → campaign.fn-BpmRNefC.js} +49 -49
  63. package/dist/{collectible.enum-BwXbunhX.js → collectible.enum-DwDiqgOQ.js} +1 -1
  64. package/dist/{collection.fn-CoZvQLXf.js → collection.fn-DxxhNNiS.js} +2 -2
  65. package/dist/{dto-CJPgpJeE.js → dto-exJWIIFh.js} +4 -4
  66. package/dist/{duplicateCampaign-Co8IUe8o.js → duplicateCampaign-VlwdEOpi.js} +2 -2
  67. package/dist/{effect-OOGMytqr.js → effect-B1gX3HYy.js} +1 -1
  68. package/dist/{email-addresses-C9y4CjuV.js → email-addresses-C0tfIamr.js} +2 -2
  69. package/dist/{export-CvC5ed4-.js → export-D2LYUW7D.js} +3 -3
  70. package/dist/{helper-CDsjQExO.js → helper-9iFjiuBS.js} +1 -1
  71. package/dist/{index-BqerQCGe.js → index--0-PrELA.js} +1 -1
  72. package/dist/{index-kSWGToWZ.js → index-CBMnWVoT.js} +1 -1
  73. package/dist/{index-B9nPYjQB.js → index-CdANllE-.js} +1 -1
  74. package/dist/index-DBXGg3yg.js +36 -0
  75. package/dist/{index-sFHmfWSg.js → index-DWi7IG9Q.js} +1 -1
  76. package/dist/{index-BfyCSqKW.js → index-DZr_AJes.js} +1 -1
  77. package/dist/{index-Bd45J3-G.js → index-DaIOBj8s.js} +1 -1
  78. package/dist/{index-C1qWtbsk.js → index-E19Gtmxw.js} +3 -3
  79. package/dist/{index-DuFCtWQR.js → index-I9yn8pHU.js} +2 -2
  80. package/dist/{index-BLT69c7j.js → index-TwCRZqdr.js} +557 -559
  81. package/dist/{index-CXx7eJq-.js → index-VnQA51n7.js} +6 -6
  82. package/dist/{index-OpxeXVwt.js → index-_ax9IcMt.js} +1499 -1328
  83. package/dist/{index-Bb4k_x_l.js → index-mkNRK108.js} +1 -1
  84. package/dist/{index-BF8lJP43.js → index-mynItfLE.js} +3 -3
  85. package/dist/{index.esm2017-DaR3DCu-.js → index.esm2017-CbwAxX_t.js} +1 -1
  86. package/dist/{loading-C6rG0eo_.js → loading-BUUuNRb8.js} +1 -1
  87. package/dist/{lodash-CjEq2BFu.js → lodash-DzFwGhp3.js} +1 -1
  88. package/dist/{membership-F6iQ9MVy.js → membership-BSY7S3nW.js} +13 -6
  89. package/dist/{money-5QzsxME5.js → money-DB8eMVCB.js} +1 -1
  90. package/dist/{number-D4fGOH1o.js → number-CmlQv3bk.js} +1 -1
  91. package/dist/{objectid--IshXbfs.js → objectid-DN-4NnaP.js} +5 -5
  92. package/dist/{plugins-DXS2Wod6.js → plugins-DATxgRFK.js} +3 -3
  93. package/dist/remy-D_Deb3ue.js +13 -0
  94. package/dist/{reward-C0xdUVfq.js → reward-C3NsvqTO.js} +1 -1
  95. package/dist/{rule-builder-D0vYClpg.js → rule-builder-EOj4zyYT.js} +1 -1
  96. package/dist/{rule-DOM5_QUx.js → rule-zKaaqUwQ.js} +3 -3
  97. package/dist/{template-B_TviSPw.js → template-KUFfOua-.js} +6 -6
  98. package/dist/{timezone-Ds--TfLn.js → timezone-HIZKEUxS.js} +2 -2
  99. package/dist/{trigger-3i4tC4VG.js → trigger-8HJ7QGEI.js} +12 -12
  100. package/dist/{usePagination-9ioQud_y.js → usePagination-CvSSPoM-.js} +1 -1
  101. package/dist/{user-QfaNByCY.js → user-C5FK05SW.js} +1 -1
  102. package/dist/{vue-i18n-C8QhQx73.js → vue-i18n-VE9cLms0.js} +327 -327
  103. package/dist/{xlsx-DwXQmhHW.js → xlsx-C_8oyTCI.js} +1 -1
  104. package/dist/{zod-BbCQlI-1.js → zod-DrlA6hIW.js} +1 -1
  105. package/package.json +1 -1
  106. package/dist/Segment-CKPt2gET.js +0 -891
  107. package/dist/remy-BnbV5Fsx.js +0 -46
@@ -1,39 +1,39 @@
1
- import { defineComponent as M, resolveComponent as w, openBlock as u, createBlock as I, unref as p, ref as v, watch as R, createElementBlock as f, createVNode as d, withCtx as F, createElementVNode as c, toDisplayString as x, createStaticVNode as N, computed as j, onMounted as P, nextTick as T, onUnmounted as D, Fragment as S, renderList as $, createCommentVNode as B } from "vue";
1
+ import { defineComponent as M, resolveComponent as w, openBlock as m, createBlock as E, unref as v, ref as g, watch as O, createElementBlock as p, createVNode as d, withCtx as S, createElementVNode as i, toDisplayString as x, createStaticVNode as R, computed as N, onMounted as j, nextTick as P, onUnmounted as T, Fragment as I, renderList as U, createCommentVNode as D } from "vue";
2
2
  import { _ as H } from "./campaign-CpzFl8Vr.js";
3
- import { u as U } from "./vue-i18n-C8QhQx73.js";
4
- import { ChatPanel as V } from "@feedmepos/mf-remy-panel";
5
- import { u as O, m as G } from "./remy-BnbV5Fsx.js";
6
- import { useRouter as q } from "vue-router";
7
- import "./index-sFHmfWSg.js";
8
- import { useSnackbar as z } from "@feedmepos/ui-library";
9
- import { c as K } from "./plugins-DXS2Wod6.js";
10
- import { R as W } from "./app-DwodX_i8.js";
11
- const Z = /* @__PURE__ */ M({
3
+ import { u as F } from "./vue-i18n-VE9cLms0.js";
4
+ import { m as V } from "./index-DBXGg3yg.js";
5
+ import { u as L } from "./remy-D_Deb3ue.js";
6
+ import { useRouter as G } from "vue-router";
7
+ import "./index-DWi7IG9Q.js";
8
+ import { useSnackbar as q } from "@feedmepos/ui-library";
9
+ import { c as z } from "./plugins-DATxgRFK.js";
10
+ import { R as K } from "./app-Bd1PovAE.js";
11
+ const W = /* @__PURE__ */ M({
12
12
  __name: "GenerateMaterialButton",
13
13
  setup(a) {
14
- const { t: l } = U(), s = O();
14
+ const { t: l } = F(), c = L();
15
15
  function o() {
16
- s.activate({
16
+ c.activate({
17
17
  command: "generateMarketingMaterial",
18
18
  fullscreen: !0,
19
19
  forceNewConversation: !0
20
20
  });
21
21
  }
22
22
  return (e, n) => {
23
- const i = w("FmButton");
24
- return u(), I(i, {
25
- label: p(l)("connect.marketing.emptyState.action"),
23
+ const s = w("FmButton");
24
+ return m(), E(s, {
25
+ label: v(l)("connect.marketing.emptyState.action"),
26
26
  "prepend-icon": "wand_stars",
27
27
  onClick: o
28
28
  }, null, 8, ["label"]);
29
29
  };
30
30
  }
31
31
  });
32
- function J() {
33
- const a = z();
32
+ function Z() {
33
+ const a = q();
34
34
  async function l(e) {
35
35
  if (!e) return;
36
- const { headline: n, caption: i, imageUrl: r } = e;
36
+ const { headline: n, caption: s, imageUrl: r } = e;
37
37
  if (!navigator.share) {
38
38
  a.open({
39
39
  message: "Web Share API is not supported in your browser.",
@@ -44,14 +44,14 @@ function J() {
44
44
  try {
45
45
  const t = {
46
46
  title: n,
47
- text: i
47
+ text: s
48
48
  };
49
49
  if (navigator.canShare)
50
50
  try {
51
- const y = await (await fetch(r)).blob(), g = [new File([y], "marketing-material.jpg", {
51
+ const y = await (await fetch(r)).blob(), f = [new File([y], "marketing-material.jpg", {
52
52
  type: y.type || "image/jpeg"
53
53
  })];
54
- navigator.canShare({ files: g }) ? t.files = g : t.url = r;
54
+ navigator.canShare({ files: f }) ? t.files = f : t.url = r;
55
55
  } catch {
56
56
  t.url = r;
57
57
  }
@@ -65,75 +65,75 @@ function J() {
65
65
  });
66
66
  }
67
67
  }
68
- async function s(e) {
68
+ async function c(e) {
69
69
  if (e != null && e.imageUrl)
70
70
  try {
71
- const i = await (await fetch(e.imageUrl)).blob(), r = URL.createObjectURL(i), t = document.createElement("a");
71
+ const s = await (await fetch(e.imageUrl)).blob(), r = URL.createObjectURL(s), t = document.createElement("a");
72
72
  t.href = r, t.download = "marketing-material", t.click(), URL.revokeObjectURL(r);
73
73
  } catch {
74
74
  window.open(e.imageUrl, "_blank");
75
75
  }
76
76
  }
77
77
  async function o(e) {
78
- e != null && e.imageUrl && await K(e.imageUrl, {
78
+ e != null && e.imageUrl && await z(e.imageUrl, {
79
79
  successMessage: "Image link copied to clipboard"
80
80
  });
81
81
  }
82
82
  return {
83
83
  shareMaterial: l,
84
- downloadMaterialImage: s,
84
+ downloadMaterialImage: c,
85
85
  copyMaterialLink: o
86
86
  };
87
87
  }
88
- const Q = /* @__PURE__ */ M({
88
+ const J = /* @__PURE__ */ M({
89
89
  __name: "MarketingMaterialItemActionButton",
90
90
  props: {
91
91
  material: {}
92
92
  },
93
93
  emits: ["update:menuOpened"],
94
94
  setup(a, { emit: l }) {
95
- const s = a, o = l, e = v(!1);
96
- R(e, (h) => {
97
- o("update:menuOpened", h);
95
+ const c = a, o = l, e = g(!1);
96
+ O(e, (_) => {
97
+ o("update:menuOpened", _);
98
98
  });
99
- const { shareMaterial: n, downloadMaterialImage: i, copyMaterialLink: r } = J();
99
+ const { shareMaterial: n, downloadMaterialImage: s, copyMaterialLink: r } = Z();
100
100
  async function t() {
101
- e.value = !1, await n(s.material);
101
+ e.value = !1, await n(c.material);
102
102
  }
103
103
  async function k() {
104
- e.value = !1, await i(s.material);
104
+ e.value = !1, await s(c.material);
105
105
  }
106
106
  async function y() {
107
- e.value = !1, await r(s.material);
107
+ e.value = !1, await r(c.material);
108
108
  }
109
- return (h, g) => {
110
- const m = w("FmButton"), _ = w("FmMenuItem"), C = w("FmMenu");
111
- return u(), f("div", null, [
109
+ return (_, f) => {
110
+ const u = w("FmButton"), h = w("FmMenuItem"), C = w("FmMenu");
111
+ return m(), p("div", null, [
112
112
  d(C, {
113
113
  placement: "right-start",
114
114
  shift: !0,
115
115
  "model-value": e.value,
116
- onMenuChanged: g[0] || (g[0] = (A) => e.value = A)
116
+ onMenuChanged: f[0] || (f[0] = (A) => e.value = A)
117
117
  }, {
118
- "menu-button": F(() => [
119
- d(m, {
118
+ "menu-button": S(() => [
119
+ d(u, {
120
120
  icon: "more_vert",
121
121
  variant: "tertiary",
122
122
  size: "md"
123
123
  })
124
124
  ]),
125
- default: F(() => [
126
- d(_, {
125
+ default: S(() => [
126
+ d(h, {
127
127
  icon: "share",
128
128
  label: "Share",
129
129
  onClick: t
130
130
  }),
131
- d(_, {
131
+ d(h, {
132
132
  icon: "download",
133
133
  label: "Download",
134
134
  onClick: k
135
135
  }),
136
- d(_, {
136
+ d(h, {
137
137
  icon: "content_copy",
138
138
  label: "Copy Link",
139
139
  onClick: y
@@ -144,87 +144,87 @@ const Q = /* @__PURE__ */ M({
144
144
  ]);
145
145
  };
146
146
  }
147
- }), X = { class: "h-[205.5px] w-full overflow-hidden bg-fm-color-neutral-gray-100" }, Y = ["src", "alt"], ee = { class: "p-3" }, te = { class: "flex items-start justify-between gap-2" }, ne = { class: "space-y-1 overflow-hidden" }, ae = { class: "font-semibold text-sm text-gray-900 truncate" }, oe = { class: "text-xs text-gray-500 line-clamp-2" }, re = {
147
+ }), Q = { class: "h-[205.5px] w-full overflow-hidden bg-fm-color-neutral-gray-100" }, X = ["src", "alt"], Y = { class: "p-3" }, ee = { class: "flex items-start justify-between gap-2" }, te = { class: "space-y-1 overflow-hidden" }, ne = { class: "font-semibold text-sm text-gray-900 truncate" }, ae = { class: "text-xs text-gray-500 line-clamp-2" }, oe = {
148
148
  key: 1,
149
149
  class: "p-16 rounded-lg overflow-hidden fm-shadow-light-100 animate-pulse"
150
- }, E = /* @__PURE__ */ M({
150
+ }, $ = /* @__PURE__ */ M({
151
151
  __name: "MarketingMaterialItem",
152
152
  props: {
153
153
  material: {}
154
154
  },
155
155
  setup(a) {
156
- const { t: l } = U(), s = q(), o = v(!1);
157
- return (e, n) => a.material ? (u(), f("div", {
156
+ const { t: l } = F(), c = G(), o = g(!1);
157
+ return (e, n) => a.material ? (m(), p("div", {
158
158
  key: 0,
159
159
  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",
160
160
  onClick: n[1] || (n[1] = () => {
161
- o.value || p(s).push({
162
- name: p(W)["$connect-MARKETING_MATERIAL_EDIT"],
161
+ o.value || v(c).push({
162
+ name: v(K)["$connect-MARKETING_MATERIAL_EDIT"],
163
163
  query: { id: a.material._id }
164
164
  });
165
165
  })
166
166
  }, [
167
- c("div", X, [
168
- c("img", {
167
+ i("div", Q, [
168
+ i("img", {
169
169
  src: a.material.imageUrl,
170
- alt: p(l)("connect.marketing.title"),
170
+ alt: v(l)("connect.marketing.title"),
171
171
  class: "w-full h-full object-cover"
172
- }, null, 8, Y)
172
+ }, null, 8, X)
173
173
  ]),
174
- c("div", ee, [
175
- c("div", te, [
176
- c("div", ne, [
177
- c("p", ae, x(a.material.headline), 1),
178
- c("p", oe, x(a.material.caption), 1)
174
+ i("div", Y, [
175
+ i("div", ee, [
176
+ i("div", te, [
177
+ i("p", ne, x(a.material.headline), 1),
178
+ i("p", ae, x(a.material.caption), 1)
179
179
  ]),
180
- d(Q, {
180
+ d(J, {
181
181
  material: a.material,
182
- "onUpdate:menuOpened": n[0] || (n[0] = (i) => o.value = i)
182
+ "onUpdate:menuOpened": n[0] || (n[0] = (s) => o.value = s)
183
183
  }, null, 8, ["material"])
184
184
  ])
185
185
  ])
186
- ])) : (u(), f("div", re, [...n[2] || (n[2] = [
187
- N('<div class="h-[205.5px] w-full bg-fm-color-neutral-gray-100 rounded"></div><div class="p-3 space-y-1"><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)
186
+ ])) : (m(), p("div", oe, [...n[2] || (n[2] = [
187
+ R('<div class="h-[205.5px] w-full bg-fm-color-neutral-gray-100 rounded"></div><div class="p-3 space-y-1"><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)
188
188
  ])]));
189
189
  }
190
- }), le = {
190
+ }), re = {
191
191
  key: 0,
192
192
  class: "px-24 flex flex-col gap-y-16 py-24"
193
- }, se = { class: "fm-typo-en-title-sm-800" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 text-center" }, ce = {
193
+ }, le = { class: "fm-typo-en-title-sm-800" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 text-center" }, ie = {
194
194
  key: 1,
195
195
  class: "px-24 flex flex-col gap-y-24 pt-24"
196
- }, ue = { class: "grid grid-cols-2 gap-[16px] sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-4" }, L = 20, ke = /* @__PURE__ */ M({
196
+ }, ce = { class: "grid grid-cols-2 gap-[16px] sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-4" }, B = 20, we = /* @__PURE__ */ M({
197
197
  __name: "Marketing",
198
198
  setup(a) {
199
- const { t: l } = U(), s = O(), o = v([]), e = v(!0), n = v(!0), i = v(null), r = v(null);
199
+ const { t: l } = F(), c = L(), o = g([]), e = g(!0), n = g(!0), s = g(null), r = g(null);
200
200
  let t = null;
201
- const k = j(() => ({
201
+ const k = N(() => ({
202
202
  label: l("connect.marketing.emptyState.action"),
203
203
  value: "generate",
204
204
  isPrimary: !0,
205
205
  prependIcon: "wand_stars"
206
206
  }));
207
- function y(m) {
208
- m === "generate" && s.activate({
207
+ function y(u) {
208
+ u === "generate" && c.activate({
209
209
  command: "generateMarketingMaterial",
210
210
  fullscreen: !0,
211
211
  forceNewConversation: !0
212
212
  });
213
213
  }
214
- async function h() {
215
- const m = await G.listMarketingMaterials(
216
- i.value,
217
- L
214
+ async function _() {
215
+ const u = await V.listMarketingMaterials(
216
+ s.value,
217
+ B
218
218
  );
219
- o.value.push(...m.resources), i.value = m.meta.nextCursor, n.value = !!m.meta.nextCursor;
219
+ o.value.push(...u.resources), s.value = u.meta.nextCursor, n.value = !!u.meta.nextCursor;
220
220
  }
221
- function g() {
221
+ function f() {
222
222
  t = new IntersectionObserver(
223
- async ([m]) => {
224
- if (!(!m.isIntersecting || !n.value)) {
223
+ async ([u]) => {
224
+ if (!(!u.isIntersecting || !n.value)) {
225
225
  e.value = !0;
226
226
  try {
227
- await h();
227
+ await _();
228
228
  } catch {
229
229
  } finally {
230
230
  e.value = !1;
@@ -234,61 +234,60 @@ const Q = /* @__PURE__ */ M({
234
234
  { rootMargin: "200px" }
235
235
  ), r.value && t.observe(r.value);
236
236
  }
237
- return P(async () => {
237
+ return j(async () => {
238
238
  try {
239
- await h();
239
+ await _();
240
240
  } catch {
241
241
  } finally {
242
- e.value = !1, await T(), g();
242
+ e.value = !1, await P(), f();
243
243
  }
244
- }), D(() => {
244
+ }), T(() => {
245
245
  t == null || t.disconnect();
246
- }), (m, _) => {
246
+ }), (u, h) => {
247
247
  const C = w("FmPageHead"), A = w("FmCard");
248
- return u(), f(S, null, [
248
+ return m(), p(I, null, [
249
249
  d(C, {
250
- title: p(l)("connect.marketing.title"),
250
+ title: v(l)("connect.marketing.title"),
251
251
  actions: o.value.length > 0 ? [k.value] : [],
252
252
  "onClick:action": y
253
253
  }, null, 8, ["title", "actions"]),
254
- !e.value && o.value.length === 0 ? (u(), f("div", le, [
254
+ !e.value && o.value.length === 0 ? (m(), p("div", re, [
255
255
  d(A, {
256
256
  variant: "outlined",
257
257
  class: "w-full justify-center items-center flex flex-col p-[24px] gap-[24px]"
258
258
  }, {
259
- default: F(() => [
260
- _[0] || (_[0] = c("img", {
259
+ default: S(() => [
260
+ h[0] || (h[0] = i("img", {
261
261
  src: H,
262
262
  class: "w-[150px]"
263
263
  }, null, -1)),
264
- c("p", se, x(p(l)("connect.marketing.emptyState.title")), 1),
265
- c("p", ie, x(p(l)("connect.marketing.emptyState.description")), 1),
266
- d(Z)
264
+ i("p", le, x(v(l)("connect.marketing.emptyState.title")), 1),
265
+ i("p", se, x(v(l)("connect.marketing.emptyState.description")), 1),
266
+ d(W)
267
267
  ]),
268
268
  _: 1
269
269
  })
270
- ])) : (u(), f("div", ce, [
271
- c("div", ue, [
272
- (u(!0), f(S, null, $(o.value, (b) => (u(), I(E, {
270
+ ])) : (m(), p("div", ie, [
271
+ i("div", ce, [
272
+ (m(!0), p(I, null, U(o.value, (b) => (m(), E($, {
273
273
  key: b._id,
274
274
  material: b
275
275
  }, null, 8, ["material"]))), 128)),
276
- e.value ? (u(), f(S, { key: 0 }, $(L, (b) => d(E, {
276
+ e.value ? (m(), p(I, { key: 0 }, U(B, (b) => d($, {
277
277
  key: `skeleton-${b}`,
278
278
  material: null
279
- })), 64)) : B("", !0)
279
+ })), 64)) : D("", !0)
280
280
  ]),
281
- c("div", {
281
+ i("div", {
282
282
  ref_key: "sentinel",
283
283
  ref: r,
284
284
  class: "h-1"
285
285
  }, null, 512)
286
- ])),
287
- p(s).dialogShowing ? (u(), I(p(V), { key: 2 })) : B("", !0)
286
+ ]))
288
287
  ], 64);
289
288
  };
290
289
  }
291
290
  });
292
291
  export {
293
- ke as default
292
+ we as default
294
293
  };