@feedmepos/mf-connect 0.1.38-beta.8 → 0.1.38-beta.80

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 (159) hide show
  1. package/dist/{Analytic-CJap-Cat.js → Analytic-LOK5TzX0.js} +31 -32
  2. package/dist/{App-CLTtX1QT.js → App-Bk5Z5u5_.js} +617 -607
  3. package/dist/AuditLogs-Rezf9EeA.js +1991 -0
  4. package/dist/{Bin-C2xMLxoE.js → Bin-B8yzS5bD.js} +10 -10
  5. package/dist/Broadcast-CZ0QCvua.js +266 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BCkD7Xfn.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-iJQS2Ck9.js} +6 -6
  7. package/dist/{Card-BPrCNLQy.js → Card-BQOv5yB9.js} +145 -140
  8. package/dist/Collections-qenPlCd2.js +540 -0
  9. package/dist/Credit-BJLskbVu.js +260 -0
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  11. package/dist/DateInput.vue_vue_type_script_setup_true_lang-BN4Q5Y3l.js +54 -0
  12. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
  13. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DKWCWOU_.js +3120 -0
  14. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-Dw1qQfnG.js +351 -0
  15. package/dist/Experience-BjfEiGT8.js +259 -0
  16. package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-C013Tr1o.js} +1 -1
  17. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  18. package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +52 -0
  19. package/dist/Game-Gw_tFjen.js +330 -0
  20. package/dist/Grab-Bdv7SaB9.js +300 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-Ba4L39GL.js} +49 -48
  22. package/dist/{Index-DMdNgISh.js → Index-C67U3YDJ.js} +54 -54
  23. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-pQ8sF5KW.js +48 -0
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-o-eN3J4i.js} +1 -1
  25. package/dist/{MainLayout-B1aJoR95.js → MainLayout-DPjqCyJ5.js} +1 -1
  26. package/dist/Marketing-DtEooXof.js +166 -0
  27. package/dist/MarketingMaterialEdit-Balw055Y.js +1065 -0
  28. package/dist/{Member-CnSXGQi_.js → Member-QA7TQnyw.js} +38 -37
  29. package/dist/{MemberList-DcpEKV1D.js → MemberList-CSJQFYlh.js} +486 -491
  30. package/dist/{MemberTransactions-DeuuEcO5.js → MemberTransactions-D-46vda_.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DLAEPNsq.js → MessageInput.vue_vue_type_script_setup_true_lang-6a7_lw74.js} +13443 -10607
  32. package/dist/Mission-DJVxFbX5.js +334 -0
  33. package/dist/{Overview-elpi-jpI.js → Overview-Btkh3oiI.js} +24 -25
  34. package/dist/Point-CVdF9GtN.js +262 -0
  35. package/dist/Promotion-BtmlvUd3.js +396 -0
  36. package/dist/{Queue-GvBhNEFe.js → Queue-BfiCMsLC.js} +23 -24
  37. package/dist/{Record-CbSxgo8i.js → Record-B07QGPli.js} +10 -10
  38. package/dist/Review-BeZ90jW9.js +621 -0
  39. package/dist/ReviewFacebookCallback-CwAcKaib.js +243 -0
  40. package/dist/ReviewGoogleCallback-CVK6Yc5E.js +213 -0
  41. package/dist/{Reward-QCGlrq89.js → Reward-CyXqNpAa.js} +16 -16
  42. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DSRvoo9z.js → RewardGroup.vue_vue_type_script_setup_true_lang-BICsdgSh.js} +13 -14
  43. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BgKGNK7y.js +1912 -0
  44. package/dist/{Segment-5PndnEUa.js → Segment-B9g57O7g.js} +273 -274
  45. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DXR7bpzY.js → SelectItems.vue_vue_type_script_setup_true_lang-BwDOXE87.js} +23 -23
  46. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmITlNtt.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DXDcJLYF.js} +12 -12
  47. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CROBk6cD.js +226 -0
  48. package/dist/Setting-BHteqZv6.js +2039 -0
  49. package/dist/SettingAdvertisements-CubrbuSL.js +264 -0
  50. package/dist/Store-u6LYUnmp.js +1996 -0
  51. package/dist/StoreRewards-D9h0YnEx.js +535 -0
  52. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-vrYqDGOa.js +1129 -0
  53. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-WgNstmNx.js +7007 -0
  54. package/dist/{Tier-BKKxG29r.js → Tier-CBdi4sPT.js} +561 -480
  55. package/dist/{Title-CReZgw8V.js → Title-BegmN7hs.js} +151 -149
  56. package/dist/{Transaction-HWCmSVaJ.js → Transaction-C6XMd9_r.js} +2 -2
  57. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D00AchXo.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BBf4BP4m.js} +7 -7
  58. package/dist/Voucher-D6hSas_z.js +421 -0
  59. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-ZOlAZ_q5.js +421 -0
  60. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DXF39yC1.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bs8TNiCY.js} +2 -2
  61. package/dist/app-Duwed9mD.js +59309 -0
  62. package/dist/app.js +1 -1
  63. package/dist/{business-Bc-EMd2p.js → business-6oZ8Rgui.js} +11 -8
  64. package/dist/campaign-CzenWLhs.js +219 -0
  65. package/dist/campaign-PYce7g0o.js +253 -0
  66. package/dist/campaign.enum-KHniCp5a.js +26 -0
  67. package/dist/campaign.fn-dOSgHJcU.js +776 -0
  68. package/dist/{collectible.enum-C4dM8khp.js → collectible.enum-BZA1DKIB.js} +1 -1
  69. package/dist/{collection.fn-AjDNdFe1.js → collection.fn-CyfrdKBf.js} +2 -2
  70. package/dist/dto-DYmM2ud_.js +222 -0
  71. package/dist/duplicateCampaign-BXaDK8Q6.js +51 -0
  72. package/dist/effect-DBI_JHbP.js +89 -0
  73. package/dist/{email-addresses-B0SzUCQM.js → email-addresses-BNs-WN79.js} +2 -2
  74. package/dist/{export-Bgz6WcNZ.js → export-DTCCKE2m.js} +4 -4
  75. package/dist/{helper-B1vFwohM.js → helper-CeYr7Anh.js} +22 -7
  76. package/dist/index-38u-cCwD.js +3431 -0
  77. package/dist/{index-Cm2sBagk.js → index-BdjY7GRO.js} +1 -1
  78. package/dist/index-CGMiuxyf.js +85 -0
  79. package/dist/index-CQZbm9P5.js +8912 -0
  80. package/dist/index-Cal60fAm.js +48 -0
  81. package/dist/{index-DT2viYsL.js → index-CnRLkzpg.js} +617 -191
  82. package/dist/index-CuvNtC_M.js +61 -0
  83. package/dist/{index-CSQY21Zb.js → index-D-kPBF9C.js} +3 -3
  84. package/dist/{index-DVQnrex_.js → index-DcFYm1fy.js} +3 -3
  85. package/dist/index-DjONNxbl.js +30289 -0
  86. package/dist/{index-26SopNpv.js → index-ItaoypTr.js} +1 -1
  87. package/dist/index-_jxXI4_v.js +28899 -0
  88. package/dist/{index-DwT9RLst.js → index-nXfjG8UQ.js} +23 -12
  89. package/dist/{index-BIRmS75g.js → index-pHQfP2e7.js} +1 -1
  90. package/dist/{index.esm2017-BAIN70_n.js → index.esm2017-CokFPnqn.js} +185 -185
  91. package/dist/{loading-C6Ouh0mG.js → loading-fZQi5zP8.js} +1 -1
  92. package/dist/{lodash-B5I3zXaY.js → lodash-R-DIRmbj.js} +1 -1
  93. package/dist/{membership-DU0BwIj8.js → membership-CApN5ZJ1.js} +3 -3
  94. package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
  95. package/dist/{money-Bg7GuE5s.js → money-C6I6vVy2.js} +1 -1
  96. package/dist/{number-Ddmqo5D_.js → number-Dq4d381U.js} +1 -1
  97. package/dist/objectid-Kv5GREBk.js +145 -0
  98. package/dist/{campaign-BeF8kTyg.js → plugins-9_UvAdJ2.js} +784 -777
  99. package/dist/remy-NLAa-9Qg.js +46 -0
  100. package/dist/{reward-CN4gvn4c.js → reward-DXHGeGYY.js} +1 -1
  101. package/dist/{rule-CpiqqR0c.js → rule-B_XgRDr-.js} +505 -487
  102. package/dist/rule-builder-BMXyzu8k.js +102 -0
  103. package/dist/style.css +11 -2
  104. package/dist/template-CnyTUzQU.js +188 -0
  105. package/dist/timezone-Izs3ibB-.js +1156 -0
  106. package/dist/trigger-Dda3NmaE.js +213 -0
  107. package/dist/usePagination-Byxk4XVn.js +220 -0
  108. package/dist/user-BZxO8qdh.js +55 -0
  109. package/dist/{vue-i18n-DVmD9I_o.js → vue-i18n-DDbkmbSf.js} +433 -433
  110. package/dist/{xlsx-qJHsnW7k.js → xlsx-D8yNl8dN.js} +1 -1
  111. package/dist/{zod-Bg2FbC-D.js → zod-Xp7TePRP.js} +32 -31
  112. package/package.json +14 -6
  113. package/dist/AuditLogs-DW4rwNOn.js +0 -1887
  114. package/dist/Broadcast-Dhc0j16O.js +0 -227
  115. package/dist/Collections-CsUJEmqz.js +0 -465
  116. package/dist/Credit-Mqa-0XJd.js +0 -222
  117. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
  118. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DWWLxIq-.js +0 -2185
  119. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BiQGZeDc.js +0 -347
  120. package/dist/Experience-BD5C3old.js +0 -223
  121. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  122. package/dist/Game-D4xsi8Ym.js +0 -278
  123. package/dist/Marketing-axcQYl8k.js +0 -20073
  124. package/dist/Mission-BHZiL-GH.js +0 -296
  125. package/dist/Point-gKvdggAl.js +0 -226
  126. package/dist/Promotion-7x2F_sFX.js +0 -289
  127. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-AuN9NgcG.js +0 -1751
  128. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DTlv8ZAn.js +0 -147
  129. package/dist/Setting-Cab47wfH.js +0 -1936
  130. package/dist/Store-BFL3T9B5.js +0 -1842
  131. package/dist/StoreRewards-C43dCJtM.js +0 -423
  132. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-aAj5-nzZ.js +0 -1029
  133. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-K3OPSYrF.js +0 -139
  134. package/dist/Voucher-BhUAcPZg.js +0 -384
  135. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-C0YNez2L.js +0 -419
  136. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  137. package/dist/app-BGaUIdCr.js +0 -7086
  138. package/dist/app-DccKBdW_.js +0 -33357
  139. package/dist/campaign-DbJZEU7P.js +0 -96
  140. package/dist/campaign.enum-PBKYGUQY.js +0 -20
  141. package/dist/campaign.fn-Cq-4LfQj.js +0 -758
  142. package/dist/dto-8NvMMYAb.js +0 -214
  143. package/dist/effect-DZhcEQ5g.js +0 -78
  144. package/dist/index-CQQedv0M.js +0 -32260
  145. package/dist/index-CTgQRqQR.js +0 -30038
  146. package/dist/index-CsaQJMAR.js +0 -66
  147. package/dist/index-DGaywhpY.js +0 -76
  148. package/dist/index-DOfLDlI8.js +0 -8861
  149. package/dist/index-DVpAocyR.js +0 -3120
  150. package/dist/index-DlJGd8RC.js +0 -121
  151. package/dist/index-Dm65CTdy.js +0 -38
  152. package/dist/objectid-MCaJXAgq.js +0 -145
  153. package/dist/plugins-C-CRzeyC.js +0 -208
  154. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
  155. package/dist/rule-builder-DmkJng-x.js +0 -89
  156. package/dist/template-DTZgnkl5.js +0 -190
  157. package/dist/trigger-CPjJ73Rc.js +0 -144
  158. package/dist/usePagination-BeF5K3M7.js +0 -223
  159. package/dist/user-8VIt8A1x.js +0 -54
@@ -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-DVmD9I_o.js";
3
- import "./index-Cm2sBagk.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-DDbkmbSf.js";
3
+ import "./index-BdjY7GRO.js";
4
4
  import { useRouter as K } from "vue-router";
5
- import { u as Q } from "./loading-C6Ouh0mG.js";
6
- import { f as V, p as X } from "./plugins-C-CRzeyC.js";
7
- import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-DSRvoo9z.js";
5
+ import { u as Q } from "./loading-fZQi5zP8.js";
6
+ import { f as V, p as X } from "./plugins-9_UvAdJ2.js";
7
+ import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-BICsdgSh.js";
8
8
  import { useDialog as ee, useSnackbar as ne, FmButtonVariant as p } from "@feedmepos/ui-library";
9
- import { r as N } from "./index-26SopNpv.js";
10
- import { u as ae } from "./reward-CN4gvn4c.js";
11
- import { u as oe } from "./business-Bc-EMd2p.js";
12
- import { u as te } from "./membership-DU0BwIj8.js";
13
- import { R as S } from "./app-BGaUIdCr.js";
9
+ import { r as N } from "./index-ItaoypTr.js";
10
+ import { u as ae } from "./reward-DXHGeGYY.js";
11
+ import { u as oe } from "./business-6oZ8Rgui.js";
12
+ import { u as te } from "./membership-CApN5ZJ1.js";
13
+ import { R as $ } from "./app-Duwed9mD.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
  };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as g, openBlock as t, createElementBlock as o, createElementVNode as i, toDisplayString as r, unref as c, createCommentVNode as m, Fragment as y, renderList as _, normalizeClass as d, createVNode as b } from "vue";
2
+ import { u as x } from "./vue-i18n-DDbkmbSf.js";
3
+ import { components as h } from "@feedmepos/ui-library";
4
+ const k = { class: "border-t border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-50 p-12 flex flex-col gap-8" }, v = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-500 px-4" }, S = {
5
+ key: 0,
6
+ class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 px-4 py-8"
7
+ }, C = ["onClick"], I = { class: "fm-typo-en-body-md-400 flex-1 truncate" }, L = {
8
+ key: 0,
9
+ class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 shrink-0"
10
+ }, F = /* @__PURE__ */ g({
11
+ __name: "LocationPicker",
12
+ props: {
13
+ locations: {},
14
+ selectedIds: {}
15
+ },
16
+ emits: ["toggle"],
17
+ setup(n, { emit: p }) {
18
+ const f = n, { t: a } = x(), u = p;
19
+ function s(l) {
20
+ return f.selectedIds.includes(l);
21
+ }
22
+ return (l, w) => (t(), o("div", k, [
23
+ i("p", v, r(c(a)("connect.review.selectLocations")), 1),
24
+ n.locations.length === 0 ? (t(), o("p", S, r(c(a)("connect.review.noAvailableLocations")), 1)) : m("", !0),
25
+ (t(!0), o(y, null, _(n.locations, (e) => (t(), o("button", {
26
+ key: e._id.toString(),
27
+ class: d([
28
+ "flex items-center gap-12 p-12 rounded-lg bg-white border text-left transition-colors",
29
+ s(e._id.toString()) ? "border-fm-color-primary-500 bg-fm-color-primary-50" : "border-fm-color-neutral-gray-200 hover:border-fm-color-primary-300"
30
+ ]),
31
+ onClick: (N) => u("toggle", e)
32
+ }, [
33
+ b(c(h).FmIcon, {
34
+ name: s(e._id.toString()) ? "check_box" : "check_box_outline_blank",
35
+ class: d([
36
+ s(e._id.toString()) ? "text-fm-color-primary-500" : "text-fm-color-neutral-gray-300",
37
+ "shrink-0"
38
+ ])
39
+ }, null, 8, ["name", "class"]),
40
+ i("span", I, r(e.name), 1),
41
+ e.code ? (t(), o("span", L, r(e.code), 1)) : m("", !0)
42
+ ], 10, C))), 128))
43
+ ]));
44
+ }
45
+ });
46
+ export {
47
+ F as _
48
+ };
@@ -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-Duwed9mD.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-o-eN3J4i.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,166 @@
1
+ import { defineComponent as k, resolveComponent as h, openBlock as t, createBlock as x, unref as a, createElementBlock as i, createElementVNode as n, toDisplayString as v, createStaticVNode as R, ref as d, computed as T, onMounted as H, nextTick as V, onUnmounted as O, Fragment as y, createVNode as f, withCtx as U, renderList as C, createCommentVNode as A } from "vue";
2
+ import { _ as j } from "./campaign-CpzFl8Vr.js";
3
+ import { u as w } from "./vue-i18n-DDbkmbSf.js";
4
+ import { ChatPanel as D } from "@feedmepos/mf-remy-panel";
5
+ import { u as I, m as G } from "./remy-NLAa-9Qg.js";
6
+ import { useRouter as L } from "vue-router";
7
+ import "./index-BdjY7GRO.js";
8
+ import { R as q } from "./app-Duwed9mD.js";
9
+ const K = /* @__PURE__ */ k({
10
+ __name: "GenerateMaterialButton",
11
+ setup(l) {
12
+ const { t: o } = w(), c = I();
13
+ function s() {
14
+ c.activate({
15
+ command: "generateMarketingMaterial",
16
+ fullscreen: !0,
17
+ forceNewConversation: !0
18
+ });
19
+ }
20
+ return (e, m) => {
21
+ const p = h("FmButton");
22
+ return t(), x(p, {
23
+ label: a(o)("connect.marketing.emptyState.action"),
24
+ "prepend-icon": "wand_stars",
25
+ onClick: s
26
+ }, null, 8, ["label"]);
27
+ };
28
+ }
29
+ }), Z = { class: "h-[205.5px] w-full overflow-hidden bg-fm-color-neutral-gray-100" }, z = ["src", "alt"], J = { class: "p-3 space-y-1" }, Q = { class: "font-semibold text-sm text-gray-900 truncate" }, W = { class: "text-xs text-gray-500 line-clamp-2" }, X = {
30
+ key: 1,
31
+ class: "p-16 rounded-lg overflow-hidden fm-shadow-light-100 animate-pulse"
32
+ }, S = /* @__PURE__ */ k({
33
+ __name: "MarketingMaterialItem",
34
+ props: {
35
+ material: {}
36
+ },
37
+ setup(l) {
38
+ const { t: o } = w(), c = L();
39
+ return (s, e) => l.material ? (t(), i("div", {
40
+ key: 0,
41
+ 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",
42
+ onClick: e[0] || (e[0] = (m) => a(c).push({
43
+ name: a(q)["$connect-MARKETING_MATERIAL_EDIT"],
44
+ query: { id: l.material._id }
45
+ }))
46
+ }, [
47
+ n("div", Z, [
48
+ n("img", {
49
+ src: l.material.imageUrl,
50
+ alt: a(o)("connect.marketing.title"),
51
+ class: "w-full h-full object-cover"
52
+ }, null, 8, z)
53
+ ]),
54
+ n("div", J, [
55
+ n("p", Q, v(l.material.headline), 1),
56
+ n("p", W, v(l.material.caption), 1)
57
+ ])
58
+ ])) : (t(), i("div", X, [...e[1] || (e[1] = [
59
+ 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)
60
+ ])]));
61
+ }
62
+ }), Y = {
63
+ key: 0,
64
+ class: "px-24 flex flex-col gap-y-16 py-24"
65
+ }, ee = { class: "fm-typo-en-title-sm-800" }, te = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 text-center" }, ne = {
66
+ key: 1,
67
+ class: "px-24 flex flex-col gap-y-24 pt-24"
68
+ }, ae = { class: "grid grid-cols-2 gap-[16px] sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-4" }, $ = 20, me = /* @__PURE__ */ k({
69
+ __name: "Marketing",
70
+ setup(l) {
71
+ const { t: o } = w(), c = I(), s = d([]), e = d(!0), m = d(!0), p = d(null), _ = d(null);
72
+ let u = null;
73
+ const E = T(() => ({
74
+ label: o("connect.marketing.emptyState.action"),
75
+ value: "generate",
76
+ isPrimary: !0,
77
+ prependIcon: "wand_stars"
78
+ }));
79
+ function N(r) {
80
+ r === "generate" && c.activate({
81
+ command: "generateMarketingMaterial",
82
+ fullscreen: !0,
83
+ forceNewConversation: !0
84
+ });
85
+ }
86
+ async function b() {
87
+ const r = await G.listMarketingMaterials(
88
+ p.value,
89
+ $
90
+ );
91
+ s.value.push(...r.resources), p.value = r.meta.nextCursor, m.value = !!r.meta.nextCursor;
92
+ }
93
+ function B() {
94
+ u = new IntersectionObserver(
95
+ async ([r]) => {
96
+ if (!(!r.isIntersecting || !m.value)) {
97
+ e.value = !0;
98
+ try {
99
+ await b();
100
+ } catch {
101
+ } finally {
102
+ e.value = !1;
103
+ }
104
+ }
105
+ },
106
+ { rootMargin: "200px" }
107
+ ), _.value && u.observe(_.value);
108
+ }
109
+ return H(async () => {
110
+ try {
111
+ await b();
112
+ } catch {
113
+ } finally {
114
+ e.value = !1, await V(), B();
115
+ }
116
+ }), O(() => {
117
+ u == null || u.disconnect();
118
+ }), (r, M) => {
119
+ const F = h("FmPageHead"), P = h("FmCard");
120
+ return t(), i(y, null, [
121
+ f(F, {
122
+ title: a(o)("connect.marketing.title"),
123
+ actions: s.value.length > 0 ? [E.value] : [],
124
+ "onClick:action": N
125
+ }, null, 8, ["title", "actions"]),
126
+ !e.value && s.value.length === 0 ? (t(), i("div", Y, [
127
+ f(P, {
128
+ variant: "outlined",
129
+ class: "w-full justify-center items-center flex flex-col p-[24px] gap-[24px]"
130
+ }, {
131
+ default: U(() => [
132
+ M[0] || (M[0] = n("img", {
133
+ src: j,
134
+ class: "w-[150px]"
135
+ }, null, -1)),
136
+ n("p", ee, v(a(o)("connect.marketing.emptyState.title")), 1),
137
+ n("p", te, v(a(o)("connect.marketing.emptyState.description")), 1),
138
+ f(K)
139
+ ]),
140
+ _: 1
141
+ })
142
+ ])) : (t(), i("div", ne, [
143
+ n("div", ae, [
144
+ (t(!0), i(y, null, C(s.value, (g) => (t(), x(S, {
145
+ key: g._id,
146
+ material: g
147
+ }, null, 8, ["material"]))), 128)),
148
+ e.value ? (t(), i(y, { key: 0 }, C($, (g) => f(S, {
149
+ key: `skeleton-${g}`,
150
+ material: null
151
+ })), 64)) : A("", !0)
152
+ ]),
153
+ n("div", {
154
+ ref_key: "sentinel",
155
+ ref: _,
156
+ class: "h-1"
157
+ }, null, 512)
158
+ ])),
159
+ a(c).dialogShowing ? (t(), x(a(D), { key: 2 })) : A("", !0)
160
+ ], 64);
161
+ };
162
+ }
163
+ });
164
+ export {
165
+ me as default
166
+ };