@feedmepos/mf-connect 0.1.38-beta.6 → 0.1.38-beta.61

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 (148) hide show
  1. package/dist/{Analytic-NBx32reB.js → Analytic-CM7mh-iO.js} +16 -16
  2. package/dist/{App-CaK9PvMd.js → App-CeCzzsDu.js} +625 -619
  3. package/dist/AuditLogs-VWx8DFKA.js +1991 -0
  4. package/dist/{Bin-CL6o1JSs.js → Bin-vUuol_I9.js} +10 -10
  5. package/dist/Broadcast-6VXz4-IG.js +233 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIySMYGP.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CV-zhJ15.js} +6 -6
  7. package/dist/{Card-DNdEjt6s.js → Card-CeIeGET1.js} +144 -140
  8. package/dist/Collections-CF_OcAL3.js +540 -0
  9. package/dist/Credit-BUqGOyp_.js +226 -0
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-0DMFuBoG.js +3150 -0
  13. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BZfchHlT.js +347 -0
  14. package/dist/Experience-BxiFH_uV.js +225 -0
  15. package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-lgg_oBvT.js} +1 -1
  16. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  17. package/dist/Game-BzYW0LfY.js +300 -0
  18. package/dist/GenerateMaterial-B5A7mx2y.js +589 -0
  19. package/dist/Grab-BgiMqwvj.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-DZ8DHrQ_.js} +49 -48
  21. package/dist/{Index-2wokhhFB.js → Index-B85ops8K.js} +54 -54
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B5rIjxYd.js} +1 -1
  23. package/dist/{MainLayout-B1aJoR95.js → MainLayout-CXGVkD-W.js} +1 -1
  24. package/dist/Marketing-Bnijl7lA.js +145 -0
  25. package/dist/MarketingMaterialEdit-BlUKwSoP.js +746 -0
  26. package/dist/{Member-2xV4Izwa.js → Member-sT853g51.js} +38 -37
  27. package/dist/{MemberList-CYgBdyJt.js → MemberList-DYT5_fSP.js} +158 -159
  28. package/dist/{MemberTransactions-DWDV01N4.js → MemberTransactions-Cqce5ebe.js} +1 -1
  29. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js → MessageInput.vue_vue_type_script_setup_true_lang-Dq0Hswj8.js} +5940 -5668
  30. package/dist/Mission-Q5_sGgrm.js +304 -0
  31. package/dist/{Overview-BZjto86d.js → Overview-B0rwrHR1.js} +24 -25
  32. package/dist/Point-BGYFMvev.js +228 -0
  33. package/dist/Promotion-0acd63nA.js +364 -0
  34. package/dist/{Queue-D62r2qjy.js → Queue-SVqRUlD_.js} +14 -15
  35. package/dist/{Record-0iF3dG7y.js → Record-BTjg4ihy.js} +10 -10
  36. package/dist/{Reward-C5IEJYu6.js → Reward-DW58VMRO.js} +16 -16
  37. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-S2Fd0qO8.js → RewardGroup.vue_vue_type_script_setup_true_lang-s1RI55Rc.js} +13 -14
  38. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Os17lXBX.js +1766 -0
  39. package/dist/{Segment-BknjBrUP.js → Segment-Dny8pxP1.js} +273 -274
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BLQlkp-j.js → SelectItems.vue_vue_type_script_setup_true_lang-Czx7rqiq.js} +12 -12
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaPi4hYB.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-EgVxUG_N.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BoZ0ZpNZ.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CO0fgI3K.js} +4 -4
  43. package/dist/Setting-CjcnxK34.js +1992 -0
  44. package/dist/SettingAdvertisements-CIyDF4C8.js +263 -0
  45. package/dist/Store-B8k5YVqU.js +1934 -0
  46. package/dist/StoreRewards-BW08rwpL.js +534 -0
  47. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BfFSfE2H.js +1034 -0
  48. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CZkKjUNQ.js +8093 -0
  49. package/dist/{Tier-B168DtFj.js → Tier-DKzu4tYw.js} +561 -480
  50. package/dist/{Title-uH0RI1N3.js → Title-BK-TXatJ.js} +149 -147
  51. package/dist/{Transaction-Bx-pmLrJ.js → Transaction-Duayg1jd.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Ce_55V7l.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BAR9h1TV.js} +7 -7
  53. package/dist/{Voucher-Dzpz2AEB.js → Voucher-BEVAkNeJ.js} +140 -124
  54. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DvFy9Z6X.js +421 -0
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CfLiUj9f.js → ZodTextField.vue_vue_type_script_setup_true_lang-CU_Sx2PM.js} +2 -2
  56. package/dist/app-IvbII0ql.js +45026 -0
  57. package/dist/app.js +1 -1
  58. package/dist/{business-B65OtB5B.js → business-BFIwFfkq.js} +11 -8
  59. package/dist/campaign-RuIwxc4y.js +253 -0
  60. package/dist/{campaign-qGy6uzrC.js → campaign-w9j4I4jn.js} +29 -25
  61. package/dist/{campaign.enum-CZp2DmXI.js → campaign.enum-IHLsfdik.js} +3 -2
  62. package/dist/campaign.fn-B_P1MkRV.js +776 -0
  63. package/dist/{collectible.enum-CN-lnG1m.js → collectible.enum-CUgSjO08.js} +1 -1
  64. package/dist/{collection.fn-mMwGQWce.js → collection.fn-CrfnNb41.js} +2 -2
  65. package/dist/dto-jwO_sX9I.js +222 -0
  66. package/dist/{effect-Bg3yb9T6.js → effect--0g8PNyt.js} +1 -1
  67. package/dist/{email-addresses-CQsN724N.js → email-addresses-HtsxvXw9.js} +2 -2
  68. package/dist/{export-BLf2dhFd.js → export-CFEwMRmd.js} +9 -10
  69. package/dist/{helper-CFaph16Q.js → helper-CCfb24PO.js} +22 -7
  70. package/dist/index-B-AMMFfT.js +3419 -0
  71. package/dist/{index-BPyac0fq.js → index-BR3UbZ0F.js} +1 -1
  72. package/dist/{index-Dy5p_b1S.js → index-BZEM0T2A.js} +1 -1
  73. package/dist/index-Bflu4Rft.js +8884 -0
  74. package/dist/{index-Dkmn0jmX.js → index-CR3f3BXQ.js} +2552 -2356
  75. package/dist/{index-BkySejFg.js → index-CZPcwcUo.js} +3 -3
  76. package/dist/{index-BPZtjcTm.js → index-CkuPY85X.js} +1 -1
  77. package/dist/index-CppLPpqB.js +30933 -0
  78. package/dist/index-CuvNtC_M.js +61 -0
  79. package/dist/{index-BKOgzVx6.js → index-DDYH-IEX.js} +1 -1
  80. package/dist/{index-DaEQgaiW.js → index-DdZdHioZ.js} +455 -245
  81. package/dist/{index-BBPIZjw6.js → index-Dic_WcAL.js} +3 -3
  82. package/dist/{index-CH2d_B8c.js → index-DpjYgKTN.js} +4 -1
  83. package/dist/index-wzSeRJAd.js +36 -0
  84. package/dist/{index.esm2017-B9vJTKYg.js → index.esm2017-CUnjzfU-.js} +89 -89
  85. package/dist/loading-CivgDw5C.js +215 -0
  86. package/dist/{lodash-B5I3zXaY.js → lodash-BSbv_9TG.js} +1 -1
  87. package/dist/{membership-Du79A0Pl.js → membership-j2w1YUO-.js} +3 -3
  88. package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
  89. package/dist/{money-DXgYs2-R.js → money-DL-x8hiT.js} +1 -1
  90. package/dist/{number-CBMkNZvH.js → number-D1yoFGEr.js} +1 -1
  91. package/dist/objectid-CHab6j3r.js +145 -0
  92. package/dist/{campaign-iKI-L84v.js → plugins-P-V4XWmW.js} +784 -777
  93. package/dist/remy-D_Deb3ue.js +13 -0
  94. package/dist/{reward-ClX_lWcQ.js → reward-BqMlBQRu.js} +1 -1
  95. package/dist/{rule-BfidJ75Y.js → rule-CztsLdki.js} +4 -4
  96. package/dist/rule-builder-DANv7Rmz.js +102 -0
  97. package/dist/style.css +11 -2
  98. package/dist/template-Dbz3FhHK.js +188 -0
  99. package/dist/timezone-BgVqObBq.js +1151 -0
  100. package/dist/trigger-CbriUibd.js +213 -0
  101. package/dist/usePagination-DtNK7W0U.js +223 -0
  102. package/dist/user-CVapqHfr.js +55 -0
  103. package/dist/vue-i18n-tpDAnnmD.js +2365 -0
  104. package/dist/{xlsx-Be4bARvl.js → xlsx-EewcN2uY.js} +1 -1
  105. package/dist/{zod-Bg2FbC-D.js → zod-D-wiCQRJ.js} +32 -31
  106. package/package.json +13 -5
  107. package/dist/AuditLogs-C-gCCPvF.js +0 -1887
  108. package/dist/Broadcast-B2-itjvZ.js +0 -227
  109. package/dist/Collections-DepGq6WJ.js +0 -465
  110. package/dist/Credit-D7K0gFwc.js +0 -222
  111. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
  112. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js +0 -2185
  113. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DrbMJlm5.js +0 -347
  114. package/dist/Experience-FlBX3eyN.js +0 -223
  115. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  116. package/dist/Game-Cc3D7lKV.js +0 -278
  117. package/dist/Marketing-D7PXYloN.js +0 -20073
  118. package/dist/Mission-BSGc9822.js +0 -296
  119. package/dist/Point-0U4TTdPW.js +0 -226
  120. package/dist/Promotion-DiUa0GcV.js +0 -289
  121. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CxlamGFP.js +0 -1751
  122. package/dist/Setting-RLI7RgmN.js +0 -1936
  123. package/dist/Store-gxmv8hWJ.js +0 -1842
  124. package/dist/StoreRewards-C_6gY_Nk.js +0 -423
  125. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B5uzSYM4.js +0 -1029
  126. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js +0 -139
  127. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-dbA6_6b9.js +0 -419
  128. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  129. package/dist/app-B90wINOO.js +0 -33357
  130. package/dist/app-DuUxQ1ZP.js +0 -7086
  131. package/dist/campaign.fn-DKScnmjX.js +0 -758
  132. package/dist/dto-C5ri8Nws.js +0 -214
  133. package/dist/index-BCGDOgxb.js +0 -38
  134. package/dist/index-BCPBmANe.js +0 -3120
  135. package/dist/index-BN2Uyvj4.js +0 -30038
  136. package/dist/index-CrbnfAk8.js +0 -8861
  137. package/dist/index-CsaQJMAR.js +0 -66
  138. package/dist/index-DJwQICyC.js +0 -146
  139. package/dist/loading-MEQuW9Xa.js +0 -71
  140. package/dist/objectid-BeZTZYqi.js +0 -145
  141. package/dist/plugins-KiMuDTPp.js +0 -208
  142. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
  143. package/dist/rule-builder-BTcZx77a.js +0 -89
  144. package/dist/template-DPpMK30W.js +0 -190
  145. package/dist/trigger-DLp1bkZP.js +0 -144
  146. package/dist/usePagination-BeF5K3M7.js +0 -223
  147. package/dist/user-Cq9CGBHZ.js +0 -54
  148. package/dist/vue-i18n-COzqUgQy.js +0 -2365
@@ -1,16 +1,16 @@
1
- import { defineComponent as U, ref as g, watch as O, onMounted as I, resolveComponent as m, openBlock as b, createBlock as j, withCtx as P, createTextVNode as z, toDisplayString as $, createElementVNode as c, createVNode as o, unref as e, createElementBlock as F, createCommentVNode as W, normalizeClass as G, computed as L, Fragment as q, isRef as J } from "vue";
2
- import { u as H } from "./vue-i18n-COzqUgQy.js";
3
- import "./index-Dy5p_b1S.js";
1
+ import { defineComponent as U, ref as g, watch as O, onMounted as I, resolveComponent as m, openBlock as b, createBlock as j, withCtx as P, createTextVNode as z, toDisplayString as B, createElementVNode as c, createVNode as o, unref as e, createElementBlock as F, createCommentVNode as W, normalizeClass as G, computed as L, Fragment as q, isRef as J } from "vue";
2
+ import { u as H } from "./vue-i18n-tpDAnnmD.js";
3
+ import "./index-BZEM0T2A.js";
4
4
  import { useRouter as K } from "vue-router";
5
- import { u as Q } from "./loading-MEQuW9Xa.js";
6
- import { f as V, p as X } from "./plugins-KiMuDTPp.js";
7
- import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-S2Fd0qO8.js";
5
+ import { u as Q } from "./loading-CivgDw5C.js";
6
+ import { f as V, p as X } from "./plugins-P-V4XWmW.js";
7
+ import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-s1RI55Rc.js";
8
8
  import { useDialog as ee, useSnackbar as ne, FmButtonVariant as p } from "@feedmepos/ui-library";
9
- import { r as N } from "./index-BKOgzVx6.js";
10
- import { u as ae } from "./reward-ClX_lWcQ.js";
11
- import { u as oe } from "./business-B65OtB5B.js";
12
- import { u as te } from "./membership-Du79A0Pl.js";
13
- import { R as S } from "./app-DuUxQ1ZP.js";
9
+ import { r as N } from "./index-DDYH-IEX.js";
10
+ import { u as ae } from "./reward-BqMlBQRu.js";
11
+ import { u as oe } from "./business-BFIwFfkq.js";
12
+ import { u as te } from "./membership-j2w1YUO-.js";
13
+ import { R as $ } from "./app-IvbII0ql.js";
14
14
  const re = { class: "space-y-24" }, le = {
15
15
  key: 0,
16
16
  class: /* @__PURE__ */ G([
@@ -32,10 +32,10 @@ const re = { class: "space-y-24" }, le = {
32
32
  modelValue: { type: Boolean }
33
33
  },
34
34
  emits: ["update:modelValue"],
35
- setup(B, { emit: k }) {
36
- const y = B;
35
+ setup(k, { emit: T }) {
36
+ const y = k;
37
37
  ee();
38
- const s = ne(), { t } = H(), i = Y(), { minor: _ } = Q, d = g(!1), T = k, r = g(null), w = g(null);
38
+ const s = ne(), { t } = H(), i = Y(), { minor: _ } = Q, d = g(!1), x = T, r = g(null), w = g(null);
39
39
  async function h() {
40
40
  if (!r.value) {
41
41
  s.open({
@@ -47,18 +47,18 @@ const re = { class: "space-y-24" }, le = {
47
47
  _(
48
48
  async () => {
49
49
  d.value = !0;
50
- const n = await V.update(
50
+ const a = await V.update(
51
51
  V.referralTermAndConditionPath(),
52
52
  r.value
53
- ), a = i.referralProgram;
54
- a.term_and_condition = n, await N.update(a), d.value = !1, v();
53
+ ), n = i.referralProgram;
54
+ n.term_and_condition = a, await N.update(n), d.value = !1, v();
55
55
  },
56
56
  {
57
57
  successMessage: "Term and Condition uploaded successfully"
58
58
  }
59
59
  );
60
60
  }
61
- async function x() {
61
+ async function E() {
62
62
  await X.confirm(
63
63
  t("connect.referral.term_and_condition.confirm_remove"),
64
64
  t("connect.common.confirm"),
@@ -69,8 +69,8 @@ const re = { class: "space-y-24" }, le = {
69
69
  d.value = !0, await V.delete(
70
70
  V.referralTermAndConditionPath()
71
71
  );
72
- const a = i.referralProgram;
73
- a.term_and_condition = void 0, await N.update(a), d.value = !1, v();
72
+ const n = i.referralProgram;
73
+ n.term_and_condition = void 0, await N.update(n), d.value = !1, v();
74
74
  },
75
75
  {
76
76
  successMessage: "Term and Condition removed successfully"
@@ -78,27 +78,27 @@ const re = { class: "space-y-24" }, le = {
78
78
  );
79
79
  }
80
80
  function v() {
81
- r.value = null, T("update:modelValue", !1);
81
+ r.value = null, x("update:modelValue", !1);
82
82
  }
83
83
  function l() {
84
- var n;
85
- window.open((n = i.referralProgram) == null ? void 0 : n.term_and_condition, "_blank");
84
+ var a;
85
+ window.open((a = i.referralProgram) == null ? void 0 : a.term_and_condition, "_blank");
86
86
  }
87
87
  return O(
88
88
  () => y.modelValue,
89
- (n) => {
89
+ (a) => {
90
90
  r.value = null;
91
91
  }
92
92
  ), I(() => {
93
- }), (n, a) => {
94
- const R = m("FmButton"), E = m("FmDropField"), u = m("fm-button"), A = m("fm-dialog");
95
- return b(), j(A, {
96
- "model-value": n.modelValue,
97
- "onUpdate:modelValue": a[3] || (a[3] = (C) => n.$emit("update:modelValue", C)),
93
+ }), (a, n) => {
94
+ const R = m("FmButton"), A = m("FmDropField"), u = m("fm-button"), S = m("fm-dialog");
95
+ return b(), j(S, {
96
+ "model-value": k.modelValue,
97
+ "onUpdate:modelValue": n[3] || (n[3] = (C) => a.$emit("update:modelValue", C)),
98
98
  "dismiss-away": ""
99
99
  }, {
100
100
  "dialog-header": P(() => [
101
- z($(n.$t("connect.referral.actions.terms")), 1)
101
+ z(B(a.$t("connect.referral.actions.terms")), 1)
102
102
  ]),
103
103
  "dialog-footer": P(() => [
104
104
  c("div", me, [
@@ -130,7 +130,7 @@ const re = { class: "space-y-24" }, le = {
130
130
  o(R, {
131
131
  variant: e(p).Plain,
132
132
  icon: "delete",
133
- onClick: x
133
+ onClick: E
134
134
  }, null, 8, ["variant"])
135
135
  ])) : W("", !0),
136
136
  e(r) ? (b(), F("div", se, [
@@ -138,7 +138,7 @@ const re = { class: "space-y-24" }, le = {
138
138
  variant: e(p).Tertiary,
139
139
  "prepend-icon": "attach_file"
140
140
  }, null, 8, ["variant"]),
141
- c("p", ce, $(e(r).name), 1),
141
+ c("p", ce, B(e(r).name), 1),
142
142
  c("label", {
143
143
  ref_key: "fileLabelRef",
144
144
  ref: w,
@@ -147,7 +147,7 @@ const re = { class: "space-y-24" }, le = {
147
147
  o(u, {
148
148
  variant: e(p).Plain,
149
149
  label: e(t)("Replace File"),
150
- onClick: a[1] || (a[1] = () => {
150
+ onClick: n[1] || (n[1] = () => {
151
151
  var f;
152
152
  return (f = e(w)) == null ? void 0 : f.click();
153
153
  })
@@ -157,15 +157,15 @@ const re = { class: "space-y-24" }, le = {
157
157
  accept: ".pdf",
158
158
  class: "hidden",
159
159
  type: "file",
160
- onChange: a[2] || (a[2] = (f) => {
160
+ onChange: n[2] || (n[2] = (f) => {
161
161
  var D, M;
162
162
  return r.value = ((M = (D = f.target) == null ? void 0 : D.files) == null ? void 0 : M[0]) ?? null;
163
163
  })
164
164
  }, null, 32)
165
165
  ], 512)
166
166
  ])) : (b(), F("div", ie, [
167
- o(E, {
168
- onFileUpload: a[0] || (a[0] = (f) => r.value = f),
167
+ o(A, {
168
+ onFileUpload: n[0] || (n[0] = (f) => r.value = f),
169
169
  accept: ".pdf",
170
170
  "max-file-size": 8e6
171
171
  })
@@ -177,10 +177,10 @@ const re = { class: "space-y-24" }, le = {
177
177
  }, 8, ["model-value"]);
178
178
  };
179
179
  }
180
- }), ue = { class: "flex items-center" }, fe = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, pe = { class: "px-24 flex flex-col gap-y-16 pb-24" }, he = /* @__PURE__ */ U({
180
+ }), ue = { class: "flex items-center" }, fe = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, pe = { class: "px-24 flex flex-col gap-y-16 pb-24" }, xe = /* @__PURE__ */ U({
181
181
  __name: "Index",
182
- setup(B) {
183
- const k = ae(), y = g(null), { t: s } = H(), t = K(), i = g(!1), _ = oe(), d = te(), T = L(() => _.isPremium ? [
182
+ setup(k) {
183
+ const T = ae(), y = g(null), { t: s } = H(), t = K(), i = g(!1), _ = oe(), d = te(), x = L(() => _.isPremium ? [
184
184
  {
185
185
  label: s("connect.referral.actions.terms"),
186
186
  value: "term_and_condition"
@@ -198,44 +198,44 @@ const re = { class: "space-y-24" }, le = {
198
198
  ] : []), r = [
199
199
  {
200
200
  label: s("connect.referral.tabs.overview"),
201
- value: S["$connect-REFERRAL_OVERVIEW"],
201
+ value: $["$connect-REFERRAL_OVERVIEW"],
202
202
  actions: []
203
203
  },
204
204
  {
205
205
  label: s("connect.referral.tabs.record"),
206
- value: S["$connect-REFERRAL_RECORD"],
206
+ value: $["$connect-REFERRAL_RECORD"],
207
207
  actions: []
208
208
  }
209
209
  ], w = L(() => r.find((l) => l.value === t.currentRoute.value.name) ?? r[0]);
210
210
  async function h(l) {
211
211
  await t.push({ name: l });
212
212
  }
213
- async function x(l) {
214
- var n;
215
- l === "add_referral_tier" && ((n = y.value) == null || n.onManageRewardGroup(-1)), l === "manage_reward" && await t.push({ name: S["$connect-REWARD_TEMPLATE"] }), l === "term_and_condition" && v();
213
+ async function E(l) {
214
+ var a;
215
+ l === "add_referral_tier" && ((a = y.value) == null || a.onManageRewardGroup(-1)), l === "manage_reward" && await t.push({ name: $["$connect-REWARD_TEMPLATE"] }), l === "term_and_condition" && v();
216
216
  }
217
217
  async function v() {
218
218
  i.value = !0;
219
219
  }
220
220
  return I(async () => {
221
- await k.readRewards(), await _.readPremium(), await d.readSegments();
222
- }), (l, n) => {
223
- const a = m("FmPill"), R = m("FmPageHead"), E = m("FmTabs"), u = m("RouterView");
221
+ await T.readRewards(), await _.readPremium(), await d.readSegments();
222
+ }), (l, a) => {
223
+ const n = m("FmPill"), R = m("FmPageHead"), A = m("FmTabs"), u = m("RouterView");
224
224
  return b(), F(q, null, [
225
225
  o(R, {
226
- actions: e(T),
227
- "onClick:action": x
226
+ actions: e(x),
227
+ "onClick:action": E
228
228
  }, {
229
229
  title: P(() => [
230
230
  c("div", ue, [
231
- c("span", fe, $(e(s)("connect.referral.title")), 1),
232
- o(a, { variant: "premium" })
231
+ c("span", fe, B(e(s)("connect.referral.title")), 1),
232
+ o(n, { variant: "premium" })
233
233
  ])
234
234
  ]),
235
235
  _: 1
236
236
  }, 8, ["actions"]),
237
237
  c("div", pe, [
238
- o(E, {
238
+ o(A, {
239
239
  "model-value": e(w).value,
240
240
  items: r,
241
241
  "onUpdate:modelValue": h
@@ -244,7 +244,7 @@ const re = { class: "space-y-24" }, le = {
244
244
  ]),
245
245
  o(de, {
246
246
  modelValue: e(i),
247
- "onUpdate:modelValue": n[0] || (n[0] = (A) => J(i) ? i.value = A : null)
247
+ "onUpdate:modelValue": a[0] || (a[0] = (S) => J(i) ? i.value = S : null)
248
248
  }, null, 8, ["modelValue"]),
249
249
  o(Z, {
250
250
  ref_key: "rewardGroupRef",
@@ -255,5 +255,5 @@ const re = { class: "space-y-24" }, le = {
255
255
  }
256
256
  });
257
257
  export {
258
- he as default
258
+ xe as default
259
259
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, watchEffect, computed, watch, openBlock, createElementBlock, normalizeStyle, onBeforeUnmount, resolveComponent, unref, createBlock } from "vue";
2
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./app-IvbII0ql.js";
3
3
  const v = "4.8.0", meta = {
4
4
  g: "LottieFiles AE ",
5
5
  a: "",
@@ -1,5 +1,5 @@
1
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-CyGJxUol.js";
2
+ import { _ as v, S as x } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-B5rIjxYd.js";
3
3
  import { u as r } from "./app-wDQR6dpb.js";
4
4
  import { useRoute as g } from "vue-router";
5
5
  const S = { class: "bg-white w-full flex min-h-[calc(100svh-56px)] items-center" }, V = /* @__PURE__ */ n({
@@ -0,0 +1,145 @@
1
+ import { defineComponent as $, openBlock as n, createElementBlock as a, unref as o, createElementVNode as e, toDisplayString as p, createStaticVNode as S, ref as c, onMounted as B, nextTick as V, onUnmounted as j, resolveComponent as _, Fragment as y, createVNode as d, withCtx as G, renderList as M, createBlock as H, createCommentVNode as O } from "vue";
2
+ import { _ as P } from "./campaign-CpzFl8Vr.js";
3
+ import { u as A } from "./vue-i18n-tpDAnnmD.js";
4
+ import { useRouter as I } from "vue-router";
5
+ import { m as U } from "./index-wzSeRJAd.js";
6
+ import "./index-BZEM0T2A.js";
7
+ import { R as N } from "./app-IvbII0ql.js";
8
+ const D = { class: "aspect-video w-full overflow-hidden bg-fm-color-neutral-gray-100" }, K = ["src", "alt"], L = { class: "p-3 space-y-1" }, q = { class: "font-semibold text-sm text-gray-900 truncate" }, Z = { class: "text-xs text-gray-500 line-clamp-2" }, z = {
9
+ key: 1,
10
+ class: "p-16 rounded-lg overflow-hidden fm-shadow-light-100 animate-pulse"
11
+ }, C = /* @__PURE__ */ $({
12
+ __name: "MarketingMaterialItem",
13
+ props: {
14
+ material: {}
15
+ },
16
+ setup(r) {
17
+ const { t: l } = A(), f = I();
18
+ return (u, t) => r.material ? (n(), a("div", {
19
+ key: 0,
20
+ class: "p-16 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",
21
+ onClick: t[0] || (t[0] = (g) => o(f).push({
22
+ name: o(N)["$connect-MARKETING_MATERIAL_EDIT"],
23
+ query: { id: r.material._id }
24
+ }))
25
+ }, [
26
+ e("div", D, [
27
+ e("img", {
28
+ src: r.material.imageUrl,
29
+ alt: o(l)("connect.marketing.title"),
30
+ class: "w-full h-full object-cover"
31
+ }, null, 8, K)
32
+ ]),
33
+ e("div", L, [
34
+ e("p", q, p(r.material.headline), 1),
35
+ e("p", Z, p(r.material.caption), 1)
36
+ ])
37
+ ])) : (n(), a("div", z, [...t[1] || (t[1] = [
38
+ S('<div class="aspect-video 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)
39
+ ])]));
40
+ }
41
+ }), J = {
42
+ key: 0,
43
+ class: "px-24 flex flex-col gap-y-16"
44
+ }, Q = { class: "fm-typo-en-title-sm-800" }, W = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 text-center" }, X = {
45
+ key: 1,
46
+ class: "px-24 flex flex-col gap-y-16"
47
+ }, Y = { class: "flex justify-end" }, ee = { class: "grid grid-cols-2 gap-12 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-4" }, E = 20, ie = /* @__PURE__ */ $({
48
+ __name: "Marketing",
49
+ setup(r) {
50
+ const { t: l } = A(), f = I(), u = c([]), t = c(!0), g = c(!0), h = c(null), v = c(null);
51
+ let i = null;
52
+ async function x() {
53
+ const s = await U.listMarketingMaterials(
54
+ h.value,
55
+ E
56
+ );
57
+ u.value.push(...s.resources), h.value = s.meta.nextCursor, g.value = !!s.meta.nextCursor;
58
+ }
59
+ function T() {
60
+ i = new IntersectionObserver(
61
+ async ([s]) => {
62
+ if (!(!s.isIntersecting || !g.value)) {
63
+ t.value = !0;
64
+ try {
65
+ await x();
66
+ } catch {
67
+ } finally {
68
+ t.value = !1;
69
+ }
70
+ }
71
+ },
72
+ { rootMargin: "200px" }
73
+ ), v.value && i.observe(v.value);
74
+ }
75
+ B(async () => {
76
+ try {
77
+ await x();
78
+ } catch {
79
+ } finally {
80
+ t.value = !1, await V(), T();
81
+ }
82
+ }), j(() => {
83
+ i == null || i.disconnect();
84
+ });
85
+ function k() {
86
+ f.push({ name: N["$connect-MARKETING_GENERATE"] });
87
+ }
88
+ return (s, b) => {
89
+ const F = _("FmPageHead"), w = _("FmButton"), R = _("FmCard");
90
+ return n(), a(y, null, [
91
+ d(F, {
92
+ title: o(l)("connect.marketing.title"),
93
+ class: "xs:hidden"
94
+ }, null, 8, ["title"]),
95
+ !t.value && u.value.length === 0 ? (n(), a("div", J, [
96
+ d(R, {
97
+ variant: "outlined",
98
+ class: "w-full justify-center items-center flex flex-col p-[24px] gap-[24px]"
99
+ }, {
100
+ default: G(() => [
101
+ b[0] || (b[0] = e("img", {
102
+ src: P,
103
+ class: "w-[150px]"
104
+ }, null, -1)),
105
+ e("p", Q, p(o(l)("connect.marketing.emptyState.title")), 1),
106
+ e("p", W, p(o(l)("connect.marketing.emptyState.description")), 1),
107
+ d(w, {
108
+ label: o(l)("connect.marketing.emptyState.action"),
109
+ "prepend-icon": "add",
110
+ onClick: k
111
+ }, null, 8, ["label"])
112
+ ]),
113
+ _: 1
114
+ })
115
+ ])) : (n(), a("div", X, [
116
+ e("div", Y, [
117
+ d(w, {
118
+ label: o(l)("connect.marketing.emptyState.action"),
119
+ "prepend-icon": "add",
120
+ onClick: k
121
+ }, null, 8, ["label"])
122
+ ]),
123
+ e("div", ee, [
124
+ (n(!0), a(y, null, M(u.value, (m) => (n(), H(C, {
125
+ key: m._id,
126
+ material: m
127
+ }, null, 8, ["material"]))), 128)),
128
+ t.value ? (n(), a(y, { key: 0 }, M(E, (m) => d(C, {
129
+ key: `skeleton-${m}`,
130
+ material: null
131
+ })), 64)) : O("", !0)
132
+ ]),
133
+ e("div", {
134
+ ref_key: "sentinel",
135
+ ref: v,
136
+ class: "h-1"
137
+ }, null, 512)
138
+ ]))
139
+ ], 64);
140
+ };
141
+ }
142
+ });
143
+ export {
144
+ ie as default
145
+ };