@feedmepos/mf-connect 0.1.38-beta.9 → 0.1.38-beta.92

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 (161) hide show
  1. package/dist/{Analytic-3MN2saaU.js → Analytic-CWhVZ2N2.js} +31 -32
  2. package/dist/{App-Co8X5Wdy.js → App-BzHDZ550.js} +741 -728
  3. package/dist/AuditLogs-DjJOfxWr.js +2013 -0
  4. package/dist/{Bin-8a56ZDib.js → Bin-H9Mc0kOX.js} +10 -10
  5. package/dist/Broadcast-BlKv9pTl.js +266 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVXlfq31.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bfpr1EuT.js} +6 -6
  7. package/dist/{Card-B8_09LJu.js → Card-ByEYCMZi.js} +145 -140
  8. package/dist/Collections-BjlqpQR0.js +540 -0
  9. package/dist/Credit-DyBVTpfr.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-DP50lRfA.js +3120 -0
  14. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BCQxJpVP.js +351 -0
  15. package/dist/Experience-Cf6lxdu_.js +259 -0
  16. package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-BIgeA5yw.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-CCgsa5as.js +330 -0
  20. package/dist/Grab-oIvB2uUc.js +300 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-BuiY288K.js} +49 -48
  22. package/dist/{Index-DLF71mx_.js → Index--bmiSYq2.js} +54 -54
  23. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-BQMZvHq2.js +48 -0
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Bj6wuosW.js} +1 -1
  25. package/dist/{MainLayout-B1aJoR95.js → MainLayout-DTva8da3.js} +1 -1
  26. package/dist/Marketing-D-5rvdRJ.js +236 -0
  27. package/dist/MarketingMaterialEdit-CZvsnFG5.js +1036 -0
  28. package/dist/{Member-Bkw4aqtv.js → Member-CxKA1iM1.js} +38 -37
  29. package/dist/{MemberList-a3PdVYB3.js → MemberList-CmBZ6w5v.js} +485 -489
  30. package/dist/{MemberTransactions-CPDBd-n3.js → MemberTransactions-Dc9uE1Jy.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-pbN8pN1m.js → MessageInput.vue_vue_type_script_setup_true_lang-DiOsNoiJ.js} +10392 -9967
  32. package/dist/Mission-D9ruHJsQ.js +334 -0
  33. package/dist/{Overview-De97NDoe.js → Overview-B4eiwvqi.js} +34 -34
  34. package/dist/Point-MXmcuDtD.js +262 -0
  35. package/dist/Promotion-CBoCcEhJ.js +397 -0
  36. package/dist/{Queue-ISVZxCE2.js → Queue-if5Lji0q.js} +18 -18
  37. package/dist/{Record-2FMByNC6.js → Record-XLXvSqlF.js} +15 -14
  38. package/dist/Review-BKIkmxLd.js +621 -0
  39. package/dist/ReviewFacebookCallback-B6TIL_H7.js +243 -0
  40. package/dist/ReviewGoogleCallback-D3sQbfuc.js +213 -0
  41. package/dist/{Reward-DPRyQ37x.js → Reward-DaymLqOP.js} +16 -16
  42. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Ba7-3bL-.js → RewardGroup.vue_vue_type_script_setup_true_lang-cGyeUFlK.js} +13 -14
  43. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BOJdm376.js +1912 -0
  44. package/dist/Segment-o7srzt8o.js +1015 -0
  45. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DZbyDVid.js → SelectItems.vue_vue_type_script_setup_true_lang-DnA83SVT.js} +23 -23
  46. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-ioMFYIwK.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-RKn_DhW0.js} +12 -12
  47. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-mzGtatEl.js +226 -0
  48. package/dist/Setting-Clbp5X2E.js +2039 -0
  49. package/dist/SettingAdvertisements-D9KTw00Q.js +264 -0
  50. package/dist/Store-DApDz7rO.js +1996 -0
  51. package/dist/StoreRewards-DTraNhDh.js +537 -0
  52. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BusvWI37.js +1130 -0
  53. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D5HOiiLG.js +7007 -0
  54. package/dist/{Tier-CwRj0oJ1.js → Tier-BWiO5an3.js} +562 -480
  55. package/dist/{Title-EII5OxSP.js → Title-Dur74Of5.js} +151 -149
  56. package/dist/{Transaction-1MTkAfej.js → Transaction-x3fZwXdy.js} +2 -2
  57. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BlQVWQHJ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-9XLlfUdp.js} +7 -7
  58. package/dist/Voucher-DH7x7NAS.js +421 -0
  59. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CNn4GR2l.js +421 -0
  60. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CTeGK4bk.js → ZodTextField.vue_vue_type_script_setup_true_lang-W-qWPW20.js} +2 -2
  61. package/dist/app-IRmnrMb8.js +59647 -0
  62. package/dist/app.js +1 -1
  63. package/dist/{business-DjnN-J4U.js → business-BZG7VHN8.js} +11 -8
  64. package/dist/campaign-BUvMmYOk.js +219 -0
  65. package/dist/campaign-BeRxvBzZ.js +254 -0
  66. package/dist/campaign.enum-BmFHrnub.js +26 -0
  67. package/dist/campaign.fn-B0sgTkC-.js +776 -0
  68. package/dist/{collectible.enum-r6N115Lu.js → collectible.enum-J0aolcpF.js} +1 -1
  69. package/dist/{collection.fn-CSsfVv26.js → collection.fn-BOhZm8S0.js} +2 -2
  70. package/dist/dto-CSNH3rWF.js +222 -0
  71. package/dist/duplicateCampaign-CAOL6p7n.js +51 -0
  72. package/dist/effect-DTL3F8d_.js +89 -0
  73. package/dist/{email-addresses-D8uheCCF.js → email-addresses-Bw8rSTHa.js} +2 -2
  74. package/dist/{export-Ver6WiX6.js → export-CY5VAxnU.js} +4 -4
  75. package/dist/{helper-Bg4xoFbh.js → helper-1sIKNm6C.js} +22 -7
  76. package/dist/{index-Dn_bmcns.js → index-BX_igCG6.js} +3 -3
  77. package/dist/index-B_-tEYD0.js +3625 -0
  78. package/dist/{index-BZZ4iF4-.js → index-BultP2zY.js} +23 -12
  79. package/dist/index-CAIsxBzT.js +48 -0
  80. package/dist/index-CVbL8J7-.js +85 -0
  81. package/dist/index-CuvNtC_M.js +61 -0
  82. package/dist/{index-D4JOeJJJ.js → index-D4Bx6J2q.js} +1 -1
  83. package/dist/{index-hJUxCNsF.js → index-DO2AYnVc.js} +1 -1
  84. package/dist/index-DPmqQmoC.js +30289 -0
  85. package/dist/{index-CNhr0_Zx.js → index-DoupH575.js} +617 -191
  86. package/dist/{index-Bb0CHeNx.js → index-DpXwZYX4.js} +3 -3
  87. package/dist/{index-BPQyQc4q.js → index-Gr5htFUW.js} +1 -1
  88. package/dist/index-KC-9_cY4.js +8910 -0
  89. package/dist/index-nMxh2OZ2.js +28900 -0
  90. package/dist/{index.esm2017-hK1Mi9yY.js → index.esm2017-0cVB_6L1.js} +122 -122
  91. package/dist/{loading-kIQFOTwH.js → loading-BUAN8WyV.js} +4 -3
  92. package/dist/{lodash-B5I3zXaY.js → lodash-C7OD0MNW.js} +1 -1
  93. package/dist/{membership--xR-HZoa.js → membership-CZkPkDiM.js} +38 -18
  94. package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
  95. package/dist/{money-c-ITXnlg.js → money-CdTox5sS.js} +1 -1
  96. package/dist/{number-DfZSBLOY.js → number-CxHO_EhJ.js} +1 -1
  97. package/dist/objectid-DL2GZe9v.js +145 -0
  98. package/dist/{campaign-BpJ1O6KS.js → plugins-BR4hQ6yY.js} +677 -699
  99. package/dist/remy-D_Deb3ue.js +13 -0
  100. package/dist/{reward-CE0ifMHS.js → reward-DWwwkcS3.js} +1 -1
  101. package/dist/{rule-DrjdmpaB.js → rule-CY_w8dsS.js} +505 -487
  102. package/dist/rule-builder-DMdUBkxB.js +102 -0
  103. package/dist/string-Gcy5IM_H.js +32 -0
  104. package/dist/style.css +11 -2
  105. package/dist/template-tuIzBpOC.js +188 -0
  106. package/dist/timezone-Dt3UFIE2.js +1156 -0
  107. package/dist/trigger-B9pWO76n.js +213 -0
  108. package/dist/useMarketingMaterialActions-C7XoKutU.js +96 -0
  109. package/dist/usePagination-Dvqiv0Ms.js +220 -0
  110. package/dist/{user-Cl3IotYV.js → user-DlrL0A8u.js} +15 -14
  111. package/dist/{vue-i18n-DKh0SMhL.js → vue-i18n-B2srUL0h.js} +449 -449
  112. package/dist/{xlsx-BDBzdOuM.js → xlsx-B9pnBbNc.js} +1 -1
  113. package/dist/{zod-Bg2FbC-D.js → zod-CO0ds3MB.js} +32 -31
  114. package/package.json +14 -6
  115. package/dist/AuditLogs-DTq6IAuc.js +0 -1887
  116. package/dist/Broadcast-UreS5Kiq.js +0 -227
  117. package/dist/Collections-B0I5ULxR.js +0 -465
  118. package/dist/Credit-B4Ad8DWP.js +0 -222
  119. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
  120. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DjgACf9F.js +0 -2185
  121. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-y5JnuIev.js +0 -347
  122. package/dist/Experience-xO5KpTTm.js +0 -223
  123. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  124. package/dist/Game-ChgrVvz5.js +0 -278
  125. package/dist/Marketing-BlmRXSGl.js +0 -20073
  126. package/dist/Mission-B07wK0HX.js +0 -296
  127. package/dist/Point-Ckj9QIeH.js +0 -226
  128. package/dist/Promotion-aGNCOeRN.js +0 -289
  129. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DWj-421v.js +0 -1751
  130. package/dist/Segment-CRMNJ11X.js +0 -882
  131. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cfp8XXdO.js +0 -147
  132. package/dist/Setting-c0FWRZsD.js +0 -1936
  133. package/dist/Store-Bm1_15s8.js +0 -1842
  134. package/dist/StoreRewards-BCQHHfay.js +0 -423
  135. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfTF2l-D.js +0 -1029
  136. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-rvhoxo0w.js +0 -139
  137. package/dist/Voucher-CYvjCb-v.js +0 -384
  138. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-63Jr71dJ.js +0 -419
  139. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  140. package/dist/app-BJLHk8ao.js +0 -33357
  141. package/dist/app-BzIk1ojT.js +0 -7086
  142. package/dist/campaign-BHNS5kXt.js +0 -96
  143. package/dist/campaign.enum-CJDWE_Om.js +0 -20
  144. package/dist/campaign.fn-C0HQE9uh.js +0 -758
  145. package/dist/dto-Byq51uVH.js +0 -214
  146. package/dist/effect-Do3yTM-_.js +0 -78
  147. package/dist/index-B1V9UnI9.js +0 -76
  148. package/dist/index-BM9CWjC6.js +0 -38
  149. package/dist/index-CsaQJMAR.js +0 -66
  150. package/dist/index-D6VxioBg.js +0 -30038
  151. package/dist/index-DGKlRWn3.js +0 -32260
  152. package/dist/index-DLKyOu7W.js +0 -8861
  153. package/dist/index-DyYF6HYL.js +0 -121
  154. package/dist/index-UXtH44XQ.js +0 -3120
  155. package/dist/objectid-DKbha9-x.js +0 -145
  156. package/dist/plugins-DtakupKW.js +0 -208
  157. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
  158. package/dist/rule-builder-B_hCyq3x.js +0 -89
  159. package/dist/template-WI4a-lFY.js +0 -190
  160. package/dist/trigger-DieDHht3.js +0 -144
  161. package/dist/usePagination-BeF5K3M7.js +0 -223
@@ -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-DKh0SMhL.js";
3
- import "./index-D4JOeJJJ.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-B2srUL0h.js";
3
+ import "./index-D4Bx6J2q.js";
4
4
  import { useRouter as K } from "vue-router";
5
- import { u as Q } from "./loading-kIQFOTwH.js";
6
- import { f as V, p as X } from "./plugins-DtakupKW.js";
7
- import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-Ba7-3bL-.js";
5
+ import { u as Q } from "./loading-BUAN8WyV.js";
6
+ import { f as V, p as X } from "./plugins-BR4hQ6yY.js";
7
+ import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-cGyeUFlK.js";
8
8
  import { useDialog as ee, useSnackbar as ne, FmButtonVariant as p } from "@feedmepos/ui-library";
9
- import { r as N } from "./index-BPQyQc4q.js";
10
- import { u as ae } from "./reward-CE0ifMHS.js";
11
- import { u as oe } from "./business-DjnN-J4U.js";
12
- import { u as te } from "./membership--xR-HZoa.js";
13
- import { R as S } from "./app-BzIk1ojT.js";
9
+ import { r as N } from "./index-Gr5htFUW.js";
10
+ import { u as ae } from "./reward-DWwwkcS3.js";
11
+ import { u as oe } from "./business-BZG7VHN8.js";
12
+ import { u as te } from "./membership-CZkPkDiM.js";
13
+ import { R as $ } from "./app-IRmnrMb8.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-B2srUL0h.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-IRmnrMb8.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-Bj6wuosW.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,236 @@
1
+ import { defineComponent as b, resolveComponent as v, openBlock as s, createBlock as N, unref as c, ref as f, watch as R, createElementBlock as d, createVNode as i, withCtx as S, createElementVNode as n, toDisplayString as w, withModifiers as T, createStaticVNode as U, computed as L, onMounted as P, nextTick as H, onUnmounted as V, Fragment as I, renderList as B, createCommentVNode as j } from "vue";
2
+ import { _ as D } from "./campaign-CpzFl8Vr.js";
3
+ import { u as M } from "./vue-i18n-B2srUL0h.js";
4
+ import { u as G, m as q } from "./useMarketingMaterialActions-C7XoKutU.js";
5
+ import { u as O } from "./remy-D_Deb3ue.js";
6
+ import { useRouter as z } from "vue-router";
7
+ import "./index-D4Bx6J2q.js";
8
+ import { R as K } from "./app-IRmnrMb8.js";
9
+ const Z = /* @__PURE__ */ b({
10
+ __name: "GenerateMaterialButton",
11
+ setup(l) {
12
+ const { t: r } = M(), u = O();
13
+ function a() {
14
+ u.activate({
15
+ command: "generateMarketingMaterial",
16
+ fullscreen: !0,
17
+ forceNewConversation: !0
18
+ });
19
+ }
20
+ return (t, e) => {
21
+ const m = v("FmButton");
22
+ return s(), N(m, {
23
+ label: c(r)("connect.marketing.emptyState.action"),
24
+ "prepend-icon": "wand_stars",
25
+ onClick: a
26
+ }, null, 8, ["label"]);
27
+ };
28
+ }
29
+ }), J = /* @__PURE__ */ b({
30
+ __name: "MarketingMaterialItemActionButton",
31
+ props: {
32
+ material: {}
33
+ },
34
+ emits: ["update:menuOpened"],
35
+ setup(l, { emit: r }) {
36
+ const u = l, a = r, { t } = M(), e = f(!1);
37
+ R(e, (x) => {
38
+ a("update:menuOpened", x);
39
+ });
40
+ const { shareMaterial: m, downloadMaterialImage: _, copyMaterialLink: p } = G();
41
+ async function C() {
42
+ e.value = !1, await m(u.material);
43
+ }
44
+ async function A() {
45
+ e.value = !1, await _(u.material.imageUrl);
46
+ }
47
+ async function h() {
48
+ e.value = !1, await p(u.material.imageUrl);
49
+ }
50
+ return (x, o) => {
51
+ const k = v("FmButton"), y = v("FmMenuItem"), F = v("FmMenu");
52
+ return s(), d("div", null, [
53
+ i(F, {
54
+ placement: "right-start",
55
+ shift: !0,
56
+ "model-value": e.value,
57
+ onMenuChanged: o[0] || (o[0] = (g) => e.value = g)
58
+ }, {
59
+ "menu-button": S(() => [
60
+ i(k, {
61
+ icon: "more_vert",
62
+ variant: "tertiary",
63
+ size: "md"
64
+ })
65
+ ]),
66
+ default: S(() => [
67
+ i(y, {
68
+ icon: "share",
69
+ label: c(t)("connect.marketing.actions.share"),
70
+ onClick: C
71
+ }, null, 8, ["label"]),
72
+ i(y, {
73
+ icon: "download",
74
+ label: c(t)("connect.marketing.actions.download"),
75
+ onClick: A
76
+ }, null, 8, ["label"]),
77
+ i(y, {
78
+ icon: "content_copy",
79
+ label: c(t)("connect.marketing.actions.copyLink"),
80
+ onClick: h
81
+ }, null, 8, ["label"])
82
+ ]),
83
+ _: 1
84
+ }, 8, ["model-value"])
85
+ ]);
86
+ };
87
+ }
88
+ }), Q = { class: "h-[205.5px] w-full overflow-hidden bg-fm-color-neutral-gray-100" }, W = ["src", "alt"], X = { class: "p-3" }, Y = { class: "flex items-start justify-between gap-2" }, ee = { class: "space-y-1 overflow-hidden" }, te = { class: "font-semibold text-sm text-gray-900 truncate" }, ne = { class: "text-xs text-gray-500 line-clamp-2" }, ae = {
89
+ key: 1,
90
+ class: "rounded-lg overflow-hidden border border-transparent fm-shadow-light-100 animate-pulse bg-white"
91
+ }, $ = /* @__PURE__ */ b({
92
+ __name: "MarketingMaterialItem",
93
+ props: {
94
+ material: {}
95
+ },
96
+ setup(l) {
97
+ const { t: r } = M(), u = z(), a = f(!1);
98
+ return (t, e) => l.material ? (s(), d("div", {
99
+ key: 0,
100
+ class: "group rounded-lg overflow-hidden cursor-pointer border border-transparent hover:border-blue-500 hover:bg-blue-50 transition-[border-color,background-color] fm-shadow-light-100 hover:fm-shadow-light-300",
101
+ onClick: e[2] || (e[2] = () => {
102
+ a.value || c(u).push({
103
+ name: c(K)["$connect-MARKETING_MATERIAL_EDIT"],
104
+ query: { id: l.material._id }
105
+ });
106
+ })
107
+ }, [
108
+ n("div", Q, [
109
+ n("img", {
110
+ src: l.material.imageUrl,
111
+ alt: c(r)("connect.marketing.title"),
112
+ class: "w-full h-full object-cover"
113
+ }, null, 8, W)
114
+ ]),
115
+ n("div", X, [
116
+ n("div", Y, [
117
+ n("div", ee, [
118
+ n("p", te, w(l.material.headline), 1),
119
+ n("p", ne, w(l.material.caption), 1)
120
+ ]),
121
+ i(J, {
122
+ material: l.material,
123
+ "onUpdate:menuOpened": e[0] || (e[0] = (m) => a.value = m),
124
+ onClick: e[1] || (e[1] = T(() => {
125
+ }, ["stop"]))
126
+ }, null, 8, ["material"])
127
+ ])
128
+ ])
129
+ ])) : (s(), d("div", ae, [...e[3] || (e[3] = [
130
+ U('<div class="h-[205.5px] w-full bg-fm-color-neutral-gray-100"></div><div class="p-3 space-y-2"><div class="h-[16px] w-3/4 rounded bg-fm-color-neutral-gray-100"></div><div class="h-12 w-full rounded bg-fm-color-neutral-gray-100"></div><div class="h-12 w-2/3 rounded bg-fm-color-neutral-gray-100"></div></div>', 2)
131
+ ])]));
132
+ }
133
+ }), oe = {
134
+ key: 0,
135
+ class: "px-24 xs:px-12 flex flex-col gap-y-16 py-24 xs:py-16"
136
+ }, le = { class: "fm-typo-en-title-sm-800 text-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 xs:w-full text-center" }, se = {
137
+ key: 1,
138
+ class: "px-24 xs:px-12 flex flex-col gap-y-24 xs:gap-y-16 pt-24 xs:pt-16"
139
+ }, ie = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-16" }, E = 20, _e = /* @__PURE__ */ b({
140
+ __name: "Marketing",
141
+ setup(l) {
142
+ const { t: r } = M(), u = O(), a = f([]), t = f(!0), e = f(!0), m = f(null), _ = f(null);
143
+ let p = null;
144
+ const C = L(() => ({
145
+ label: r("connect.marketing.emptyState.action"),
146
+ value: "generate",
147
+ isPrimary: !0,
148
+ prependIcon: "wand_stars"
149
+ }));
150
+ function A(o) {
151
+ o === "generate" && u.activate({
152
+ command: "generateMarketingMaterial",
153
+ fullscreen: !0,
154
+ forceNewConversation: !0
155
+ });
156
+ }
157
+ async function h() {
158
+ const o = await q.listMarketingMaterials(
159
+ m.value,
160
+ E
161
+ );
162
+ a.value.push(...o.resources), m.value = o.meta.nextCursor, e.value = !!o.meta.nextCursor;
163
+ }
164
+ function x() {
165
+ p = new IntersectionObserver(
166
+ async ([o]) => {
167
+ if (!(!o.isIntersecting || !e.value || t.value)) {
168
+ t.value = !0;
169
+ try {
170
+ await h();
171
+ } catch {
172
+ } finally {
173
+ t.value = !1;
174
+ }
175
+ }
176
+ },
177
+ { rootMargin: "200px" }
178
+ ), _.value && p.observe(_.value);
179
+ }
180
+ return P(async () => {
181
+ try {
182
+ await h();
183
+ } catch {
184
+ } finally {
185
+ t.value = !1, await H(), x();
186
+ }
187
+ }), V(() => {
188
+ p == null || p.disconnect();
189
+ }), (o, k) => {
190
+ const y = v("FmPageHead"), F = v("FmCard");
191
+ return s(), d(I, null, [
192
+ i(y, {
193
+ title: c(r)("connect.marketing.title"),
194
+ actions: a.value.length > 0 ? [C.value] : [],
195
+ "onClick:action": A
196
+ }, null, 8, ["title", "actions"]),
197
+ !t.value && a.value.length === 0 ? (s(), d("div", oe, [
198
+ i(F, {
199
+ variant: "outlined",
200
+ class: "w-full justify-center items-center flex flex-col p-[24px] xs:p-16 gap-[24px] xs:gap-16"
201
+ }, {
202
+ default: S(() => [
203
+ k[0] || (k[0] = n("img", {
204
+ src: D,
205
+ class: "w-[150px]"
206
+ }, null, -1)),
207
+ n("p", le, w(c(r)("connect.marketing.emptyState.title")), 1),
208
+ n("p", re, w(c(r)("connect.marketing.emptyState.description")), 1),
209
+ i(Z)
210
+ ]),
211
+ _: 1
212
+ })
213
+ ])) : (s(), d("div", se, [
214
+ n("div", ie, [
215
+ (s(!0), d(I, null, B(a.value, (g) => (s(), N($, {
216
+ key: g._id,
217
+ material: g
218
+ }, null, 8, ["material"]))), 128)),
219
+ t.value ? (s(), d(I, { key: 0 }, B(E, (g) => i($, {
220
+ key: `skeleton-${g}`,
221
+ material: null
222
+ })), 64)) : j("", !0)
223
+ ]),
224
+ n("div", {
225
+ ref_key: "sentinel",
226
+ ref: _,
227
+ class: "h-1"
228
+ }, null, 512)
229
+ ]))
230
+ ], 64);
231
+ };
232
+ }
233
+ });
234
+ export {
235
+ _e as default
236
+ };