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

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-JNYAk4CC.js → Analytic-C3QLhhr1.js} +13 -13
  2. package/dist/{App-DmsDi2wy.js → App-BM42X8Bc.js} +595 -592
  3. package/dist/{AuditLogs-BXGKb27x.js → AuditLogs-C9YLLdwR.js} +9 -9
  4. package/dist/{Bin-B4A5OEWa.js → Bin-ujsok6ox.js} +8 -8
  5. package/dist/{Broadcast--KA6CzAt.js → Broadcast-DwJ0lTJL.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BLgbi9Ay.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BAOThPBZ.js} +6 -6
  7. package/dist/{Card-1LToO52r.js → Card-Cog8kI-h.js} +18 -18
  8. package/dist/{Collections-Bsh0d9Vt.js → Collections-CKpLacG0.js} +7 -7
  9. package/dist/{Credit-CDMm-DIO.js → Credit-B8vn9-XQ.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BVJYCoL_.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-B68fHxLk.js} +33 -33
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BubuNkFX.js → EffectSheet.vue_vue_type_style_index_0_lang-BMkTJfeq.js} +6 -6
  12. package/dist/{Experience-Bj9Qein1.js → Experience-CZh5yQE7.js} +9 -9
  13. package/dist/{FileSaver.min-QC_R9D8d.js → FileSaver.min-TDoZgwjv.js} +1 -1
  14. package/dist/{Game-1_RyyjSp.js → Game-B4IGlBuZ.js} +10 -10
  15. package/dist/{Grab-BcDuAzA4.js → Grab-CGCMfo5l.js} +8 -8
  16. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BC_mSBKl.js → ImageInput.vue_vue_type_script_setup_true_lang-BEST_BzE.js} +1 -1
  17. package/dist/{Index-Bqjte7_5.js → Index-BtQDpaDl.js} +10 -10
  18. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DaD9zlKU.js → LocationPicker.vue_vue_type_script_setup_true_lang-_dtiqS22.js} +1 -1
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BJ4Nvy04.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C6lOiXZo.js} +1 -1
  20. package/dist/{MainLayout-BeqXvRXR.js → MainLayout-CCWfceEw.js} +1 -1
  21. package/dist/{Marketing-DmTGoj3J.js → Marketing-BVctpRDr.js} +98 -97
  22. package/dist/{MarketingMaterialEdit-B9SmW25F.js → MarketingMaterialEdit-CuKXyUNM.js} +411 -410
  23. package/dist/{Member-DAWjFh1O.js → Member-CPW-noAm.js} +11 -11
  24. package/dist/{MemberList-P8M-8Zbj.js → MemberList-DPCwz9Xm.js} +26 -26
  25. package/dist/{MemberTransactions-BshW4hj3.js → MemberTransactions-BnThgkgf.js} +1 -1
  26. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CtuaxcCE.js → MessageInput.vue_vue_type_script_setup_true_lang-uYwOH1Du.js} +9 -9
  27. package/dist/{Mission-ByNlmu_a.js → Mission-BduXkfTy.js} +10 -10
  28. package/dist/{Overview-DvG2OLhj.js → Overview-DtaIdMIj.js} +18 -18
  29. package/dist/{Point-DtCL1Tge.js → Point-DtjIbu5J.js} +9 -9
  30. package/dist/{Promotion-B54PNXRT.js → Promotion-Bxjw7Iac.js} +10 -10
  31. package/dist/{Queue-BU0DAPKs.js → Queue-dbh6eNyd.js} +10 -10
  32. package/dist/{Record-C_FsdGCx.js → Record-Dx31uV2f.js} +9 -9
  33. package/dist/{Review-xIPGVc1i.js → Review-OEmKjDCL.js} +4 -4
  34. package/dist/{ReviewFacebookCallback-DbMoj41Y.js → ReviewFacebookCallback-hS4e9pnS.js} +4 -4
  35. package/dist/{ReviewGoogleCallback-Gz04oqDQ.js → ReviewGoogleCallback-CFtvjjfe.js} +4 -4
  36. package/dist/{Reward-DqSz1odZ.js → Reward-E3avHwn3.js} +16 -16
  37. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-iycjfGJv.js → RewardGroup.vue_vue_type_script_setup_true_lang-Bs_Ydcgu.js} +11 -11
  38. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-D-DMk_q0.js → RuleGroup.vue_vue_type_script_setup_true_lang-_4AOLGM1.js} +14 -14
  39. package/dist/{Segment-D7PV1ffO.js → Segment-DYK5ArhM.js} +24 -24
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BQRM6r3r.js → SelectItems.vue_vue_type_script_setup_true_lang-CO4npY6n.js} +2 -2
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-mcUrkTEx.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-COFUPWot.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1b5-Zle.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cj3NUgnu.js} +4 -4
  43. package/dist/{Setting-BetOevCY.js → Setting-B0_oNLQu.js} +14 -14
  44. package/dist/{SettingAdvertisements-CxF11hkc.js → SettingAdvertisements-CxdmuEvF.js} +12 -12
  45. package/dist/{Store-DRPKpxqC.js → Store-YOa3U0aD.js} +21 -21
  46. package/dist/{StoreRewards-PdygaAMM.js → StoreRewards-2uDbKk47.js} +15 -15
  47. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DauIR84r.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CwREjTGl.js} +21 -21
  48. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-iuc9PY3R.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DUykQn4h.js} +2 -2
  49. package/dist/{Tier-CG3J1vx1.js → Tier-NDxsbc2m.js} +23 -23
  50. package/dist/{Title-DW19FtBx.js → Title-Dcinkv87.js} +20 -20
  51. package/dist/{Transaction-DKNpK966.js → Transaction-D6-Lp_Ff.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CnJ0NaT1.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CYBsobxf.js} +6 -6
  53. package/dist/{Voucher-BQ9VdAgX.js → Voucher-BbU1ZIVw.js} +13 -13
  54. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DwoRNvwG.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DrsZ7zME.js} +12 -12
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C73ImjeV.js → ZodTextField.vue_vue_type_script_setup_true_lang-CrAviByb.js} +2 -2
  56. package/dist/{app-C0qcZ_C3.js → app-BWFldX_d.js} +227 -227
  57. package/dist/app.js +1 -1
  58. package/dist/{business-DYnnKWrO.js → business-BCAlq8oY.js} +1 -1
  59. package/dist/{campaign-BBY__PcK.js → campaign-B096AFuK.js} +1 -1
  60. package/dist/{campaign-CKA9wEbZ.js → campaign-Drj2Z6Jn.js} +8 -8
  61. package/dist/{campaign.enum-Dxa81fhf.js → campaign.enum-BbFVaaKV.js} +1 -1
  62. package/dist/{campaign.fn-DjENPBfV.js → campaign.fn-BtwIHsju.js} +23 -23
  63. package/dist/{collectible.enum-oFDirUXs.js → collectible.enum-axN7HDxB.js} +1 -1
  64. package/dist/{collection.fn-8fcTEShb.js → collection.fn-C_6-ST-9.js} +2 -2
  65. package/dist/{dto-DilwadZt.js → dto-B3g8zebD.js} +4 -4
  66. package/dist/{duplicateCampaign-D1ZTNBe9.js → duplicateCampaign-C56LVR47.js} +2 -2
  67. package/dist/{effect-fupxOEt1.js → effect-B6jWG9MX.js} +1 -1
  68. package/dist/{email-addresses-CMS9HeG2.js → email-addresses-DzeLIT4Z.js} +2 -2
  69. package/dist/{export-RwlXa6Qv.js → export-B-f1Fy3c.js} +3 -3
  70. package/dist/{helper-DJCPv7PM.js → helper-GZmz60dV.js} +1 -1
  71. package/dist/{index-eRaU6Xac.js → index-BG5prXBx.js} +2 -2
  72. package/dist/{index-D2a9E657.js → index-Bbn2fjlu.js} +1 -1
  73. package/dist/index-BwRZJSAn.js +36 -0
  74. package/dist/{index-CjIoVmnU.js → index-C-0KBvqk.js} +1 -1
  75. package/dist/{index-2PEWUv3P.js → index-COMozQJ9.js} +3 -3
  76. package/dist/{index-DqCMuPw6.js → index-CWQEJ4v7.js} +1 -1
  77. package/dist/{index-C1zYngv4.js → index-CtK9zAMK.js} +3 -3
  78. package/dist/{index-BFsuyNQA.js → index-CxF9mi-l.js} +3 -3
  79. package/dist/{index-Bo94fQEb.js → index-D0YPb3ei.js} +1 -1
  80. package/dist/{index-Si3-mU1k.js → index-D1l-VEDs.js} +1 -1
  81. package/dist/{index-CdEle8Cv.js → index-DOb8JUVT.js} +1 -1
  82. package/dist/{index-BvB5G3bI.js → index-DQZ7Tl1m.js} +4 -4
  83. package/dist/{index-IMvedqa3.js → index-XvsgDLko.js} +1 -1
  84. package/dist/{index-BzbteuNi.js → index-mse5uWyZ.js} +6 -6
  85. package/dist/{index.esm2017-DboY2zyr.js → index.esm2017-DlOvWRsl.js} +1 -1
  86. package/dist/{loading-C4ajrnT4.js → loading-Cv6eF2pO.js} +1 -1
  87. package/dist/{lodash-BN85b-mv.js → lodash-DM26yDS-.js} +1 -1
  88. package/dist/{membership-1yNSUrBo.js → membership-BXXSi21x.js} +3 -3
  89. package/dist/{money-CpraQZps.js → money-BI22kwrB.js} +1 -1
  90. package/dist/{number-BviuRsPW.js → number-C5VwsV4p.js} +1 -1
  91. package/dist/objectid-gjDtRAFa.js +145 -0
  92. package/dist/{plugins-6gr3a6Jy.js → plugins-DPC31X3L.js} +3 -3
  93. package/dist/remy-D_Deb3ue.js +13 -0
  94. package/dist/{reward-CNSlRDZC.js → reward-BbYot1VR.js} +1 -1
  95. package/dist/{rule-B1dCQScJ.js → rule-CDeOgoOU.js} +3 -3
  96. package/dist/{rule-builder-Ch0AU-h6.js → rule-builder-D9RdlP0k.js} +1 -1
  97. package/dist/{template-DzgmoMMz.js → template-Bilhj8E_.js} +6 -6
  98. package/dist/{timezone-BM7x2HXX.js → timezone-BnMBWJA4.js} +2 -2
  99. package/dist/{trigger--f942qWD.js → trigger-mmIQLhyO.js} +5 -5
  100. package/dist/{usePagination-CdEsBI1Z.js → usePagination-CGQTKaBm.js} +1 -1
  101. package/dist/{user-DX2zCe2B.js → user-D8GJcZA1.js} +1 -1
  102. package/dist/{vue-i18n-Dq3IeM3R.js → vue-i18n-B1B0WjC5.js} +306 -306
  103. package/dist/{xlsx-7Dgnafdi.js → xlsx-CqGQ7oK_.js} +1 -1
  104. package/dist/{zod-Qa7M8fle.js → zod-BT5LlBcK.js} +1 -1
  105. package/package.json +1 -1
  106. package/dist/objectid-RJ2bzO-R.js +0 -145
  107. package/dist/remy-1dcYv-0_.js +0 -46
@@ -1,28 +1,28 @@
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";
2
- import { _ as H } from "./campaign-CpzFl8Vr.js";
3
- import { u as U } from "./vue-i18n-Dq3IeM3R.js";
4
- import { ChatPanel as V } from "@feedmepos/mf-remy-panel";
5
- import { u as O, m as G } from "./remy-1dcYv-0_.js";
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, withModifiers as R, createStaticVNode as N, computed as j, onMounted as P, nextTick as T, onUnmounted as D, Fragment as I, renderList as U, createCommentVNode as H } from "vue";
2
+ import { _ as V } from "./campaign-CpzFl8Vr.js";
3
+ import { u as F } from "./vue-i18n-B1B0WjC5.js";
4
+ import { m as G } from "./index-BwRZJSAn.js";
5
+ import { u as L } from "./remy-D_Deb3ue.js";
6
6
  import { useRouter as q } from "vue-router";
7
- import "./index-IMvedqa3.js";
7
+ import "./index-XvsgDLko.js";
8
8
  import { useSnackbar as z } from "@feedmepos/ui-library";
9
- import { c as K } from "./plugins-6gr3a6Jy.js";
10
- import { R as W } from "./app-C0qcZ_C3.js";
9
+ import { c as K } from "./plugins-DPC31X3L.js";
10
+ import { R as W } from "./app-BWFldX_d.js";
11
11
  const Z = /* @__PURE__ */ M({
12
12
  __name: "GenerateMaterialButton",
13
13
  setup(a) {
14
- const { t: l } = U(), s = O();
14
+ const { t: s } = 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 l = w("FmButton");
24
+ return m(), E(l, {
25
+ label: v(s)("connect.marketing.emptyState.action"),
26
26
  "prepend-icon": "wand_stars",
27
27
  onClick: o
28
28
  }, null, 8, ["label"]);
@@ -31,9 +31,9 @@ const Z = /* @__PURE__ */ M({
31
31
  });
32
32
  function J() {
33
33
  const a = z();
34
- async function l(e) {
34
+ async function s(e) {
35
35
  if (!e) return;
36
- const { headline: n, caption: i, imageUrl: r } = e;
36
+ const { headline: n, caption: l, 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: l
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,10 +65,10 @@ 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 l = await (await fetch(e.imageUrl)).blob(), r = URL.createObjectURL(l), 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");
@@ -80,8 +80,8 @@ function J() {
80
80
  });
81
81
  }
82
82
  return {
83
- shareMaterial: l,
84
- downloadMaterialImage: s,
83
+ shareMaterial: s,
84
+ downloadMaterialImage: c,
85
85
  copyMaterialLink: o
86
86
  };
87
87
  }
@@ -91,38 +91,38 @@ const Q = /* @__PURE__ */ M({
91
91
  material: {}
92
92
  },
93
93
  emits: ["update:menuOpened"],
94
- setup(a, { emit: l }) {
95
- const s = a, o = l, e = v(!1);
96
- R(e, (h) => {
94
+ setup(a, { emit: s }) {
95
+ const c = a, o = s, e = g(!1);
96
+ O(e, (h) => {
97
97
  o("update:menuOpened", h);
98
98
  });
99
- const { shareMaterial: n, downloadMaterialImage: i, copyMaterialLink: r } = J();
99
+ const { shareMaterial: n, downloadMaterialImage: l, copyMaterialLink: r } = J();
100
100
  async function t() {
101
- e.value = !1, await n(s.material);
101
+ e.value = !1, await n(c.material);
102
102
  }
103
- async function k() {
104
- e.value = !1, await i(s.material);
103
+ async function b() {
104
+ e.value = !1, await l(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 (h, f) => {
110
+ const u = w("FmButton"), _ = 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(() => [
125
+ default: S(() => [
126
126
  d(_, {
127
127
  icon: "share",
128
128
  label: "Share",
@@ -131,7 +131,7 @@ const Q = /* @__PURE__ */ M({
131
131
  d(_, {
132
132
  icon: "download",
133
133
  label: "Download",
134
- onClick: k
134
+ onClick: b
135
135
  }),
136
136
  d(_, {
137
137
  icon: "content_copy",
@@ -146,82 +146,84 @@ const Q = /* @__PURE__ */ M({
146
146
  }
147
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 = {
148
148
  key: 1,
149
- class: "p-16 rounded-lg overflow-hidden fm-shadow-light-100 animate-pulse"
150
- }, E = /* @__PURE__ */ M({
149
+ class: "rounded-lg overflow-hidden border border-transparent fm-shadow-light-100 animate-pulse bg-white"
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: s } = F(), c = q(), 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
- onClick: n[1] || (n[1] = () => {
161
- o.value || p(s).push({
162
- name: p(W)["$connect-MARKETING_MATERIAL_EDIT"],
160
+ onClick: n[2] || (n[2] = () => {
161
+ o.value || v(c).push({
162
+ name: v(W)["$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", X, [
168
+ i("img", {
169
169
  src: a.material.imageUrl,
170
- alt: p(l)("connect.marketing.title"),
170
+ alt: v(s)("connect.marketing.title"),
171
171
  class: "w-full h-full object-cover"
172
172
  }, null, 8, Y)
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", ee, [
175
+ i("div", te, [
176
+ i("div", ne, [
177
+ i("p", ae, x(a.material.headline), 1),
178
+ i("p", oe, x(a.material.caption), 1)
179
179
  ]),
180
180
  d(Q, {
181
181
  material: a.material,
182
- "onUpdate:menuOpened": n[0] || (n[0] = (i) => o.value = i)
182
+ "onUpdate:menuOpened": n[0] || (n[0] = (l) => o.value = l),
183
+ onClick: n[1] || (n[1] = R(() => {
184
+ }, ["stop"]))
183
185
  }, null, 8, ["material"])
184
186
  ])
185
187
  ])
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)
188
+ ])) : (m(), p("div", re, [...n[3] || (n[3] = [
189
+ N('<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)
188
190
  ])]));
189
191
  }
190
- }), le = {
192
+ }), se = {
191
193
  key: 0,
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 = {
194
+ class: "px-24 xs:px-12 flex flex-col gap-y-16 py-24 xs:py-16"
195
+ }, le = { class: "fm-typo-en-title-sm-800 text-center" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 xs:w-full text-center" }, ce = {
194
196
  key: 1,
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({
197
+ class: "px-24 xs:px-12 flex flex-col gap-y-24 xs:gap-y-16 pt-24 xs:pt-16"
198
+ }, ue = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-16" }, B = 20, be = /* @__PURE__ */ M({
197
199
  __name: "Marketing",
198
200
  setup(a) {
199
- const { t: l } = U(), s = O(), o = v([]), e = v(!0), n = v(!0), i = v(null), r = v(null);
201
+ const { t: s } = F(), c = L(), o = g([]), e = g(!0), n = g(!0), l = g(null), r = g(null);
200
202
  let t = null;
201
- const k = j(() => ({
202
- label: l("connect.marketing.emptyState.action"),
203
+ const b = j(() => ({
204
+ label: s("connect.marketing.emptyState.action"),
203
205
  value: "generate",
204
206
  isPrimary: !0,
205
207
  prependIcon: "wand_stars"
206
208
  }));
207
- function y(m) {
208
- m === "generate" && s.activate({
209
+ function y(u) {
210
+ u === "generate" && c.activate({
209
211
  command: "generateMarketingMaterial",
210
212
  fullscreen: !0,
211
213
  forceNewConversation: !0
212
214
  });
213
215
  }
214
216
  async function h() {
215
- const m = await G.listMarketingMaterials(
216
- i.value,
217
- L
217
+ const u = await G.listMarketingMaterials(
218
+ l.value,
219
+ B
218
220
  );
219
- o.value.push(...m.resources), i.value = m.meta.nextCursor, n.value = !!m.meta.nextCursor;
221
+ o.value.push(...u.resources), l.value = u.meta.nextCursor, n.value = !!u.meta.nextCursor;
220
222
  }
221
- function g() {
223
+ function f() {
222
224
  t = new IntersectionObserver(
223
- async ([m]) => {
224
- if (!(!m.isIntersecting || !n.value)) {
225
+ async ([u]) => {
226
+ if (!(!u.isIntersecting || !n.value)) {
225
227
  e.value = !0;
226
228
  try {
227
229
  await h();
@@ -239,56 +241,55 @@ const Q = /* @__PURE__ */ M({
239
241
  await h();
240
242
  } catch {
241
243
  } finally {
242
- e.value = !1, await T(), g();
244
+ e.value = !1, await T(), f();
243
245
  }
244
246
  }), D(() => {
245
247
  t == null || t.disconnect();
246
- }), (m, _) => {
248
+ }), (u, _) => {
247
249
  const C = w("FmPageHead"), A = w("FmCard");
248
- return u(), f(S, null, [
250
+ return m(), p(I, null, [
249
251
  d(C, {
250
- title: p(l)("connect.marketing.title"),
251
- actions: o.value.length > 0 ? [k.value] : [],
252
+ title: v(s)("connect.marketing.title"),
253
+ actions: o.value.length > 0 ? [b.value] : [],
252
254
  "onClick:action": y
253
255
  }, null, 8, ["title", "actions"]),
254
- !e.value && o.value.length === 0 ? (u(), f("div", le, [
256
+ !e.value && o.value.length === 0 ? (m(), p("div", se, [
255
257
  d(A, {
256
258
  variant: "outlined",
257
- class: "w-full justify-center items-center flex flex-col p-[24px] gap-[24px]"
259
+ class: "w-full justify-center items-center flex flex-col p-[24px] xs:p-16 gap-[24px] xs:gap-16"
258
260
  }, {
259
- default: F(() => [
260
- _[0] || (_[0] = c("img", {
261
- src: H,
261
+ default: S(() => [
262
+ _[0] || (_[0] = i("img", {
263
+ src: V,
262
264
  class: "w-[150px]"
263
265
  }, 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
+ i("p", le, x(v(s)("connect.marketing.emptyState.title")), 1),
267
+ i("p", ie, x(v(s)("connect.marketing.emptyState.description")), 1),
266
268
  d(Z)
267
269
  ]),
268
270
  _: 1
269
271
  })
270
- ])) : (u(), f("div", ce, [
271
- c("div", ue, [
272
- (u(!0), f(S, null, $(o.value, (b) => (u(), I(E, {
273
- key: b._id,
274
- material: b
272
+ ])) : (m(), p("div", ce, [
273
+ i("div", ue, [
274
+ (m(!0), p(I, null, U(o.value, (k) => (m(), E($, {
275
+ key: k._id,
276
+ material: k
275
277
  }, null, 8, ["material"]))), 128)),
276
- e.value ? (u(), f(S, { key: 0 }, $(L, (b) => d(E, {
277
- key: `skeleton-${b}`,
278
+ e.value ? (m(), p(I, { key: 0 }, U(B, (k) => d($, {
279
+ key: `skeleton-${k}`,
278
280
  material: null
279
- })), 64)) : B("", !0)
281
+ })), 64)) : H("", !0)
280
282
  ]),
281
- c("div", {
283
+ i("div", {
282
284
  ref_key: "sentinel",
283
285
  ref: r,
284
286
  class: "h-1"
285
287
  }, null, 512)
286
- ])),
287
- p(s).dialogShowing ? (u(), I(p(V), { key: 2 })) : B("", !0)
288
+ ]))
288
289
  ], 64);
289
290
  };
290
291
  }
291
292
  });
292
293
  export {
293
- ke as default
294
+ be as default
294
295
  };