@feedmepos/mf-connect 0.1.63-prod → 0.1.64-prod

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 (92) hide show
  1. package/dist/{Analytic-CG3hA6fW.js → Analytic-QmZLsf5Y.js} +27 -28
  2. package/dist/{App-CQUFVNES.js → App-BZ10DVVu.js} +7 -7
  3. package/dist/{Bin-whBityJo.js → Bin-Dg8_10SF.js} +8 -8
  4. package/dist/{Broadcast-BRgmIWF2.js → Broadcast-DEtcNkm9.js} +10 -11
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DfATb_0G.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Q0MDLW2t.js} +6 -6
  6. package/dist/{Card-BgIT9bSV.js → Card-ChLbeBqR.js} +16 -16
  7. package/dist/{Collections-DgBll2HL.js → Collections-BzAjOzC5.js} +179 -165
  8. package/dist/{Credit-FVqQqTve.js → Credit-CR00U_HS.js} +10 -11
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CIApefkS.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGEbZizZ.js} +31 -31
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CVRvxR02.js → EffectSheet.vue_vue_type_style_index_0_lang-BT-ZPcZm.js} +6 -6
  11. package/dist/{Experience-C23g_MfA.js → Experience-BCCB6Eyi.js} +27 -28
  12. package/dist/{Game-CqbQTIqS.js → Game-juF6dqSJ.js} +11 -12
  13. package/dist/{Index-D32I90Uf.js → Index-BeDWwop_.js} +10 -10
  14. package/dist/{Marketing-ApmF9GMZ.js → Marketing-DHWefrkK.js} +6 -6
  15. package/dist/{Member-p-MDnwdo.js → Member-DFr_vA5Q.js} +10 -10
  16. package/dist/{MemberList-CWS216Oq.js → MemberList-eK3gn_Mp.js} +25 -25
  17. package/dist/{MemberTransactions-1NaCYExP.js → MemberTransactions-CDFEB188.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ds28eMF3.js → MessageInput.vue_vue_type_script_setup_true_lang-Cbmz7ffr.js} +7 -7
  19. package/dist/{Mission-D2EklQ6k.js → Mission-C6ZBexFm.js} +19 -20
  20. package/dist/{Overview-Q2_jChHL.js → Overview-C2TJPtG8.js} +18 -18
  21. package/dist/{Point-D7IFoiQ5.js → Point-DMdw2JJ-.js} +10 -11
  22. package/dist/{Promotion-BMKAj_VJ.js → Promotion-DH0N0_qI.js} +11 -12
  23. package/dist/{Queue-CckukUf2.js → Queue-PgLRsmYB.js} +10 -10
  24. package/dist/{Record-sjJx9Rxr.js → Record-c6FN2o4L.js} +8 -8
  25. package/dist/{Reward-C33_2GAs.js → Reward-CDaIp4xo.js} +15 -15
  26. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-4Ah1HGJW.js → RewardGroup.vue_vue_type_script_setup_true_lang-CzIZRdrZ.js} +11 -11
  27. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CpDZBVmB.js → RuleGroup.vue_vue_type_script_setup_true_lang-CeB000Yq.js} +13 -13
  28. package/dist/{Segment-CR4_Y82e.js → Segment-Dfg3Dceu.js} +22 -22
  29. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CDZw5i96.js → SelectItems.vue_vue_type_script_setup_true_lang-DOhYq-N5.js} +2 -2
  30. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-pW_AdLpP.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-0ply2Yvm.js} +11 -11
  31. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BS62Yf0v.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-ClUsE-SP.js} +3 -3
  32. package/dist/{Setting-D4RTLzZM.js → Setting-C1SxTuNs.js} +12 -12
  33. package/dist/{SettingAdvertisements-Cc9IMI41.js → SettingAdvertisements-PauF5xCo.js} +9 -9
  34. package/dist/Store-DOa_gydi.js +1924 -0
  35. package/dist/{StoreRewards-CzrZS5Au.js → StoreRewards-B2PcWGV9.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Ci3xQrAn.js → StoreTransactions.vue_vue_type_script_setup_true_lang-B8zs6OJO.js} +361 -343
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DG7dPhv0.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CcoUlJff.js} +1 -1
  38. package/dist/{Tier-9-iKsHxM.js → Tier-BF5loJLD.js} +97 -98
  39. package/dist/{Title-C6TY3BbS.js → Title-C8-Nbm1H.js} +27 -28
  40. package/dist/{Transaction-BGxgNf0y.js → Transaction-xAQBYG9M.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-xiH9sxVn.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CHNGUJzl.js} +6 -6
  42. package/dist/{Voucher-Cdh0PqeF.js → Voucher-Do5B24VG.js} +132 -117
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BRw2nedI.js → VoucherEditor.vue_vue_type_script_setup_true_lang-w_BUEa7v.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D6En5sRQ.js → ZodTextField.vue_vue_type_script_setup_true_lang-BEQa1Di8.js} +1 -1
  45. package/dist/{app-qOoNoXsj.js → app-BkZRzXki.js} +496 -454
  46. package/dist/{app-DIFcDSPz.js → app-DXjVgkbw.js} +1 -1
  47. package/dist/app.js +1 -1
  48. package/dist/{business-D8WOIwU3.js → business-Bq2l2dad.js} +1 -1
  49. package/dist/campaign-B-DvR4TM.js +213 -0
  50. package/dist/{campaign-B5Zcg5dG.js → campaign-CWhtQcJK.js} +9 -9
  51. package/dist/{campaign.enum-BVGqtpbT.js → campaign.enum-BZvK2gj_.js} +1 -1
  52. package/dist/{campaign.fn-BJksX0lC.js → campaign.fn-DDtV9Xn6.js} +46 -46
  53. package/dist/{collectible.enum-CDt5sCg-.js → collectible.enum-viPMgw11.js} +1 -1
  54. package/dist/{collection.fn-BmkwrIEt.js → collection.fn-B7CW6I6M.js} +2 -2
  55. package/dist/{dto-BazhL1Wz.js → dto-DLhMYrOq.js} +4 -4
  56. package/dist/{effect-CERxlyga.js → effect-DsrWui1v.js} +1 -1
  57. package/dist/{email-addresses-XWcL2s8u.js → email-addresses-5DzRD10I.js} +1 -1
  58. package/dist/{export-Ctk6xkHX.js → export-D6yiznb-.js} +3 -3
  59. package/dist/{helper-C36sBB0k.js → helper-DqODSGUO.js} +1 -1
  60. package/dist/{index-COJnc6ip.js → index-B1KJz3-3.js} +1 -1
  61. package/dist/{index-BGirRSvf.js → index-BBNQI_sD.js} +1 -1
  62. package/dist/{index-D-cA3r-f.js → index-BfoX0LlV.js} +1 -1
  63. package/dist/{index-BhcuNARt.js → index-C6aDlxVU.js} +3 -3
  64. package/dist/{index-B9gRFG1Q.js → index-CMMMmPLJ.js} +1 -1
  65. package/dist/{index-Dz55oJOD.js → index-COYuq-0E.js} +530 -523
  66. package/dist/{index-BHPj_XYw.js → index-CYLWyjo9.js} +4 -4
  67. package/dist/{index-BSdS5JkE.js → index-Cn3LliAN.js} +1 -1
  68. package/dist/{index-Dr1iOdke.js → index-CxiSGb7g.js} +112 -104
  69. package/dist/{index-BAjS-mNm.js → index-DF0B1uEN.js} +3 -3
  70. package/dist/{index-CYHzkVmf.js → index-Ds7uV5hU.js} +3 -3
  71. package/dist/{index-1xCqie-s.js → index-aZB_8DEU.js} +1 -1
  72. package/dist/{index-Ctu4ZSkP.js → index-yQ9u5GOr.js} +1 -1
  73. package/dist/{index.esm2017-CwEbNcAn.js → index.esm2017-BaQ693RU.js} +1 -1
  74. package/dist/{loading-DsAWzrAU.js → loading-DnCoACR5.js} +1 -1
  75. package/dist/{membership-CIWA-YIz.js → membership-BTIRstHL.js} +3 -3
  76. package/dist/{money-B8_RYpfI.js → money-B3p9O_Sf.js} +1 -1
  77. package/dist/{number-ClNyxrPX.js → number-B1yJ5c9e.js} +1 -1
  78. package/dist/{objectid-B7Hb21TR.js → objectid-6QnZZQIG.js} +4 -4
  79. package/dist/{plugins-BaCcQwW_.js → plugins-BK0AJhyo.js} +2 -2
  80. package/dist/{reward-Br3L7Y4x.js → reward-Ds8jTVHE.js} +1 -1
  81. package/dist/{rule-CELh8Paa.js → rule-C_tkDOVr.js} +3 -3
  82. package/dist/{rule-builder-Dw3JpYy8.js → rule-builder-Dp-_zF1X.js} +1 -1
  83. package/dist/{template-BIOneLeZ.js → template-DqHrBYuW.js} +4 -4
  84. package/dist/{timezone-Jr40C0YQ.js → timezone-U8Wa5DMW.js} +1 -1
  85. package/dist/{trigger-Bl_yRkKF.js → trigger-CnDGz17H.js} +4 -4
  86. package/dist/{user-C3J0hjK-.js → user-Bz-CPNFh.js} +1 -1
  87. package/dist/{vue-i18n-DbCbvmTz.js → vue-i18n-xX03EJtj.js} +2 -2
  88. package/dist/{xlsx-ClGRNHcc.js → xlsx-Dx7JiSCw.js} +166 -166
  89. package/package.json +1 -1
  90. package/dist/Store-BTE44D1j.js +0 -1842
  91. package/dist/campaign-IEgssyOs.js +0 -94
  92. package/dist/index-DTvC-nBb.js +0 -124
@@ -1,44 +1,43 @@
1
- import { defineComponent as Y, ref as x, computed as ee, h as m, onMounted as oe, resolveComponent as d, openBlock as u, createElementBlock as V, Fragment as S, createVNode as l, unref as t, createElementVNode as c, withCtx as F, renderList as te, createBlock as h, resolveDynamicComponent as ne, toDisplayString as g, createCommentVNode as E } from "vue";
2
- import { _ as ae } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as re, components as f } from "@feedmepos/ui-library";
4
- import { _ as M } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
5
- import { p as A, a as ce } from "./plugins-BaCcQwW_.js";
6
- import { useCoreStore as ie } from "@feedmepos/mf-common";
7
- import { u as se } from "./loading-DsAWzrAU.js";
8
- import { u as le } from "./business-D8WOIwU3.js";
9
- import { u as me } from "./campaign-IEgssyOs.js";
10
- import { g as ue, a as O, b as B } from "./campaign-B5Zcg5dG.js";
11
- import "./index-COJnc6ip.js";
12
- import { u as de } from "./template-BIOneLeZ.js";
13
- import { _ as pe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CIApefkS.js";
14
- import { _ as fe } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-BS62Yf0v.js";
15
- import { u as ye } from "./vue-i18n-DbCbvmTz.js";
16
- import { T as he } from "./trigger-Bl_yRkKF.js";
17
- import { useRouter as ge } from "vue-router";
18
- import { c as w } from "./index-DTvC-nBb.js";
19
- import { R as H } from "./app-qOoNoXsj.js";
20
- var _e = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc" };
21
- const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-center justify-between w-full" }, we = { class: "flex gap-8 overflow-x-auto" }, be = { class: "space-y-8" }, ke = { class: "flex w-full gap-4 items-center" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "space-y-4" }, Se = { class: "fm-typo-en-body-lg-600" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = { class: "flex gap-8 items-center" }, Te = { class: "flex flex-col gap-16 text-center" }, Ue = { class: "fm-typo-en-title-sm-800" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ Y({
1
+ import { defineComponent as oe, ref as V, computed as te, h as m, onMounted as ne, resolveComponent as d, openBlock as u, createElementBlock as S, Fragment as T, createVNode as l, unref as t, createElementVNode as c, withCtx as U, renderList as ae, createBlock as y, resolveDynamicComponent as re, createCommentVNode as R, toDisplayString as g } from "vue";
2
+ import { _ as ce } from "./campaign-CpzFl8Vr.js";
3
+ import { useDialog as ie, components as p } from "@feedmepos/ui-library";
4
+ import { _ as A } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
5
+ import { a as se, p as le } from "./plugins-BK0AJhyo.js";
6
+ import { useCoreStore as me } from "@feedmepos/mf-common";
7
+ import { u as ue } from "./loading-DnCoACR5.js";
8
+ import { u as de } from "./business-Bq2l2dad.js";
9
+ import { u as pe, c as b } from "./campaign-B-DvR4TM.js";
10
+ import { g as fe, a as M, b as H } from "./campaign-CWhtQcJK.js";
11
+ import "./index-B1KJz3-3.js";
12
+ import { u as ye } from "./template-DqHrBYuW.js";
13
+ import { _ as he } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGEbZizZ.js";
14
+ import { _ as ge } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-ClUsE-SP.js";
15
+ import { u as _e } from "./vue-i18n-xX03EJtj.js";
16
+ import { T as ve } from "./trigger-CnDGz17H.js";
17
+ import { useRouter as Ce } from "vue-router";
18
+ import { R as $ } from "./app-BkZRzXki.js";
19
+ var be = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc" };
20
+ const we = { class: "px-24 flex flex-col gap-y-16" }, xe = { class: "flex items-center justify-between w-full" }, ke = { class: "flex gap-8 overflow-x-auto" }, Fe = { class: "space-y-8" }, Ve = { class: "flex w-full gap-4 items-center" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Te = { class: "space-y-4" }, Ue = { class: "fm-typo-en-body-lg-600" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = { class: "flex gap-8 items-center" }, Pe = { class: "flex flex-col gap-16 text-center" }, Ee = { class: "fm-typo-en-title-sm-800" }, Ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, eo = /* @__PURE__ */ oe({
22
21
  __name: "Voucher",
23
- setup(Ie) {
24
- const { t: a } = ye(), $ = {
22
+ setup(Be) {
23
+ const { t: a } = _e(), K = {
25
24
  label: a("connect.voucher.createCampaign"),
26
25
  value: "create",
27
26
  isPrimary: !0,
28
27
  prependIcon: "add"
29
- }, L = re(), K = de("VOUCHER", L), N = le(), p = me(), { global: D, minor: T } = se, U = ge(), i = x({
28
+ }, L = ie(), N = ye("VOUCHER", L), D = de(), f = pe(), { global: j, minor: P } = ue, E = Ce(), i = V({
30
29
  searchKey: "",
31
30
  location: [],
32
31
  triggerType: []
33
- }), _ = ee(
34
- () => p.campaigns.voucher.filter(
35
- (e) => q(e) && G(e)
32
+ }), _ = te(
33
+ () => f.campaigns.voucher.filter(
34
+ (e) => G(e) && X(e)
36
35
  )
37
- ), j = he.VOUCHER.map((e) => ({
36
+ ), q = ve.VOUCHER.map((e) => ({
38
37
  label: e.name,
39
38
  value: e.value
40
39
  }));
41
- function q(e) {
40
+ function G(e) {
42
41
  const o = i.value.location;
43
42
  return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some(
44
43
  (r) => {
@@ -47,27 +46,43 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
47
46
  }
48
47
  ) : e.targetLocation.includes(o);
49
48
  }
50
- function G(e) {
49
+ function w(e) {
50
+ return e.hideInApp === !1;
51
+ }
52
+ function x(e) {
53
+ return e.event.type === "SIMPLE_CLAIM" && !w(e);
54
+ }
55
+ function X(e) {
51
56
  const o = i.value.triggerType;
52
57
  if (!o || o.length === 0) return !0;
53
58
  const r = e.event.type;
54
59
  return o.includes(r);
55
60
  }
56
- const X = [
61
+ const W = [
57
62
  {
58
63
  header: a("connect.voucher.voucherTitle"),
59
- accessorFn: (e) => e.name
64
+ accessorFn: (e) => e.name,
65
+ cell(e) {
66
+ const o = [e.row.original.name];
67
+ return w(e.row.original) && o.push(
68
+ m(p.FmChip, {
69
+ label: "Feedvibe",
70
+ class: "text-fm-color-primary bg-fm-color-system-warning-100",
71
+ compact: !0
72
+ })
73
+ ), m("div", { class: "flex items-center gap-4" }, o);
74
+ }
60
75
  },
61
76
  {
62
77
  header: a("connect.voucher.status"),
63
- accessorFn: (e) => ue(e),
78
+ accessorFn: (e) => fe(e),
64
79
  cell(e) {
65
- return O(e.row.original);
80
+ return M(e.row.original);
66
81
  }
67
82
  },
68
83
  {
69
84
  header: a("connect.voucher.summary"),
70
- accessorFn: (e) => B(e)
85
+ accessorFn: (e) => H(e)
71
86
  },
72
87
  {
73
88
  header: a("connect.voucher.quota"),
@@ -87,19 +102,19 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
87
102
  header: a("connect.voucher.actions"),
88
103
  cell(e) {
89
104
  return m("div", { class: "flex items-center justify-end" }, [
90
- m(f.FmButton, {
105
+ m(p.FmButton, {
91
106
  icon: "visibility",
92
107
  variant: "tertiary",
93
108
  iconColor: "neutral-gray-400",
94
109
  onClick: async (o) => {
95
- o.stopPropagation(), await U.push({
96
- name: H["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
110
+ o.stopPropagation(), await E.push({
111
+ name: $["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
97
112
  params: { id: e.row.original._id }
98
113
  });
99
114
  }
100
115
  }),
101
116
  m(
102
- f.FmMenu,
117
+ p.FmMenu,
103
118
  {
104
119
  placement: "bottom-end",
105
120
  onClick: (o) => {
@@ -107,7 +122,7 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
107
122
  }
108
123
  },
109
124
  {
110
- "menu-button": () => m(f.FmButton, {
125
+ "menu-button": () => m(p.FmButton, {
111
126
  icon: "more_vert",
112
127
  iconColor: "neutral-gray-400",
113
128
  variant: "tertiary"
@@ -115,10 +130,10 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
115
130
  default: () => {
116
131
  const o = [
117
132
  m(
118
- f.FmMenuItem,
133
+ p.FmMenuItem,
119
134
  {
120
135
  onClick: async (r) => {
121
- r.stopPropagation(), I(e.row.original);
136
+ r.stopPropagation(), B(e.row.original);
122
137
  }
123
138
  },
124
139
  {
@@ -132,28 +147,22 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
132
147
  }
133
148
  )
134
149
  ];
135
- return e.row.original.event.type === "SIMPLE_CLAIM" && (o.unshift(
136
- m(f.FmMenuItem, {
150
+ return x(e.row.original) && (o.unshift(
151
+ m(p.FmMenuItem, {
137
152
  label: a("connect.voucher.send"),
138
153
  onClick: async (r) => {
139
154
  var s;
140
- r.stopPropagation(), (s = b.value) == null || s.showSheet({
155
+ r.stopPropagation(), (s = k.value) == null || s.showSheet({
141
156
  campaignId: e.row.original._id
142
157
  });
143
158
  }
144
159
  })
145
160
  ), o.unshift(
146
- m(f.FmMenuItem, {
161
+ m(p.FmMenuItem, {
147
162
  label: a("connect.voucher.share"),
148
163
  onClick: async (r) => {
149
- if (r.stopPropagation(), e.row.original.event.type !== "SIMPLE_CLAIM")
150
- return await A.confirm(
151
- "Cannot share a voucher that is not a simple claim.",
152
- "Share Voucher",
153
- "OK"
154
- );
155
- await ce(
156
- `https://${ie().currentBusiness.value._id}.${_e.appUrl}/vouchers/${e.row.original._id}`,
164
+ r.stopPropagation(), await se(
165
+ `https://${me().currentBusiness.value._id}.${be.appUrl}/vouchers/${e.row.original._id}`,
157
166
  {
158
167
  successMessage: "Voucher link copied to clipboard"
159
168
  }
@@ -167,11 +176,11 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
167
176
  ]);
168
177
  }
169
178
  }
170
- ], P = x(), b = x();
171
- async function I(e) {
172
- await A.remove(a("connect.voucher.confirmRemove", { name: e.name })) && await T(
179
+ ], I = V(), k = V();
180
+ async function B(e) {
181
+ await le.remove(a("connect.voucher.confirmRemove", { name: e.name })) && await P(
173
182
  async () => {
174
- await w.delete(e._id), await p.read("VOUCHER");
183
+ await b.delete(e._id), await f.read("VOUCHER");
175
184
  },
176
185
  {
177
186
  message: a("connect.voucher.removing", { name: e.name }),
@@ -182,20 +191,20 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
182
191
  );
183
192
  }
184
193
  async function v(e) {
185
- e ? await o() : K.open(async (r) => {
194
+ e ? await o() : N.open(async (r) => {
186
195
  await o(r);
187
196
  });
188
197
  async function o(r) {
189
198
  var s;
190
- (s = P.value) == null || s.showSheet(
199
+ (s = I.value) == null || s.showSheet(
191
200
  !0,
192
201
  "VOUCHER",
193
- e ? await w.readById(e._id) : void 0,
202
+ e ? await b.readById(e._id) : void 0,
194
203
  r
195
204
  );
196
205
  }
197
206
  }
198
- async function W(e) {
207
+ async function z(e) {
199
208
  e.campaign._id && await new Promise((o) => {
200
209
  L.open({
201
210
  title: "Confirmation",
@@ -208,9 +217,9 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
208
217
  }).onSecondary(async () => {
209
218
  o();
210
219
  });
211
- }), await T(
220
+ }), await P(
212
221
  async () => {
213
- e.campaign._id ? await w.update(e.campaign._id, e) : await w.create(e), await p.read("VOUCHER");
222
+ e.campaign._id ? await b.update(e.campaign._id, e) : await b.create(e), await f.read("VOUCHER");
214
223
  },
215
224
  {
216
225
  message: a(
@@ -222,19 +231,19 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
222
231
  }
223
232
  );
224
233
  }
225
- return oe(async () => {
226
- await D(async () => {
227
- await p.read("VOUCHER");
234
+ return ne(async () => {
235
+ await j(async () => {
236
+ await f.read("VOUCHER");
228
237
  });
229
238
  }), (e, o) => {
230
- const r = d("FmPageHead"), s = d("FmSearch"), z = d("FmTable"), C = d("FmButton"), Q = d("FmListItem"), Z = d("FmList"), J = d("FmCard");
231
- return u(), V(S, null, [
239
+ const r = d("FmPageHead"), s = d("FmSearch"), Q = d("FmTable"), Z = d("FmChip"), C = d("FmButton"), J = d("FmListItem"), Y = d("FmList"), ee = d("FmCard");
240
+ return u(), S(T, null, [
232
241
  l(r, {
233
242
  title: t(a)("connect.voucher.title"),
234
- actions: t(_).length > 0 ? [$] : [],
243
+ actions: t(_).length > 0 ? [K] : [],
235
244
  "onClick:action": o[0] || (o[0] = () => v())
236
245
  }, null, 8, ["title", "actions"]),
237
- c("div", ve, [
246
+ c("div", we, [
238
247
  l(s, {
239
248
  modelValue: t(i).searchKey,
240
249
  "onUpdate:modelValue": o[1] || (o[1] = (n) => t(i).searchKey = n),
@@ -242,26 +251,26 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
242
251
  placeholder: t(a)("connect.voucher.search"),
243
252
  collapsible: ""
244
253
  }, null, 8, ["modelValue", "placeholder"]),
245
- t(p).campaigns.voucher && t(p).campaigns.voucher.length > 0 ? (u(), V(S, { key: 0 }, [
246
- c("div", Ce, [
247
- c("div", we, [
248
- l(M, {
254
+ t(f).campaigns.voucher && t(f).campaigns.voucher.length > 0 ? (u(), S(T, { key: 0 }, [
255
+ c("div", xe, [
256
+ c("div", ke, [
257
+ l(A, {
249
258
  label: `${t(a)("connect.common.location")}: `,
250
259
  "right-icon": "keyboard_arrow_down",
251
260
  modelValue: t(i).location,
252
261
  "onUpdate:modelValue": o[2] || (o[2] = (n) => t(i).location = n),
253
262
  icon: "storefront",
254
263
  "show-item-label": !0,
255
- items: t(N).locationOptions
264
+ items: t(D).locationOptions
256
265
  }, null, 8, ["label", "modelValue", "items"]),
257
- l(M, {
266
+ l(A, {
258
267
  label: "Type:",
259
268
  "right-icon": "keyboard_arrow_down",
260
269
  modelValue: t(i).triggerType,
261
270
  "onUpdate:modelValue": o[3] || (o[3] = (n) => t(i).triggerType = n),
262
271
  icon: "filter_list",
263
272
  "show-item-label": !0,
264
- items: t(j)
273
+ items: t(q)
265
274
  }, null, 8, ["modelValue", "items"])
266
275
  ]),
267
276
  l(s, {
@@ -272,67 +281,73 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
272
281
  collapsible: ""
273
282
  }, null, 8, ["modelValue", "placeholder"])
274
283
  ]),
275
- l(z, {
284
+ l(Q, {
276
285
  class: "xs:hidden",
277
286
  "row-data": t(_),
278
- "column-defs": X,
287
+ "column-defs": W,
279
288
  "search-value": t(i).searchKey,
280
289
  "column-filter": [],
281
290
  onRowClick: o[5] || (o[5] = (n) => v(n.original)),
282
291
  "hide-footer": t(_).length < 10
283
292
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
284
- l(Z, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
285
- default: F(() => [
286
- (u(!0), V(S, null, te(t(_).filter(
293
+ l(Y, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
294
+ default: U(() => [
295
+ (u(!0), S(T, null, ae(t(_).filter(
287
296
  (n) => n.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
288
- ), (n) => (u(), h(Q, {
297
+ ), (n) => (u(), y(J, {
289
298
  key: n._id.toString(),
290
- onClick: (k) => v(n),
299
+ onClick: (F) => v(n),
291
300
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
292
301
  }, {
293
- default: F(() => {
294
- var k;
302
+ default: U(() => {
303
+ var F;
295
304
  return [
296
- c("div", be, [
297
- c("div", ke, [
298
- (u(), h(ne(t(O)(n)))),
299
- c("div", xe, g(((k = n.pf_collectible) == null ? void 0 : k.currentReceive) ?? 0) + " claimed ", 1)
300
- ]),
305
+ c("div", Fe, [
301
306
  c("div", Ve, [
302
- c("div", Se, g(n.name), 1),
303
- c("div", Fe, g(t(B)(n)), 1)
307
+ (u(), y(re(t(M)(n)))),
308
+ w(n) ? (u(), y(Z, {
309
+ key: 0,
310
+ label: "Feedvibe",
311
+ class: "text-fm-color-primary bg-fm-color-system-warning-100",
312
+ compact: ""
313
+ })) : R("", !0),
314
+ c("div", Se, g(((F = n.pf_collectible) == null ? void 0 : F.currentReceive) ?? 0) + " claimed ", 1)
315
+ ]),
316
+ c("div", Te, [
317
+ c("div", Ue, g(n.name), 1),
318
+ c("div", Re, g(t(H)(n)), 1)
304
319
  ])
305
320
  ]),
306
321
  c("div", Le, [
307
- n.event.type === "SIMPLE_CLAIM" ? (u(), h(C, {
322
+ x(n) ? (u(), y(C, {
308
323
  key: 0,
309
324
  icon: "visibility",
310
325
  "icon-color": "neutral-gray-400",
311
326
  variant: "tertiary",
312
- onClick: async (y) => {
313
- y.stopPropagation(), await t(U).push({
314
- name: t(H)["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
327
+ onClick: async (h) => {
328
+ h.stopPropagation(), await t(E).push({
329
+ name: t($)["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
315
330
  params: { id: n._id }
316
331
  });
317
332
  }
318
- }, null, 8, ["onClick"])) : E("", !0),
319
- n.event.type === "SIMPLE_CLAIM" ? (u(), h(C, {
333
+ }, null, 8, ["onClick"])) : R("", !0),
334
+ x(n) ? (u(), y(C, {
320
335
  key: 1,
321
336
  icon: "send",
322
337
  "icon-color": "neutral-gray-400",
323
338
  variant: "tertiary",
324
- onClick: (y) => {
325
- var R;
326
- y.stopPropagation(), (R = t(b)) == null || R.showSheet({
339
+ onClick: (h) => {
340
+ var O;
341
+ h.stopPropagation(), (O = t(k)) == null || O.showSheet({
327
342
  campaignId: n._id
328
343
  });
329
344
  }
330
- }, null, 8, ["onClick"])) : E("", !0),
345
+ }, null, 8, ["onClick"])) : R("", !0),
331
346
  l(C, {
332
347
  icon: "delete",
333
348
  "icon-color": "neutral-gray-400",
334
349
  variant: "tertiary",
335
- onClick: (y) => (y.stopPropagation(), I(n))
350
+ onClick: (h) => (h.stopPropagation(), B(n))
336
351
  }, null, 8, ["onClick"])
337
352
  ])
338
353
  ];
@@ -342,19 +357,19 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
342
357
  ]),
343
358
  _: 1
344
359
  })
345
- ], 64)) : (u(), h(J, {
360
+ ], 64)) : (u(), y(ee, {
346
361
  key: 1,
347
362
  variant: "outlined",
348
363
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
349
364
  }, {
350
- default: F(() => [
365
+ default: U(() => [
351
366
  o[7] || (o[7] = c("img", {
352
- src: ae,
367
+ src: ce,
353
368
  class: "aspect-square w-[150px]"
354
369
  }, null, -1)),
355
- c("div", Te, [
356
- c("div", Ue, g(t(a)("connect.voucher.createVoucherCampaign")), 1),
357
- c("div", Pe, g(t(a)("connect.voucher.description")), 1)
370
+ c("div", Pe, [
371
+ c("div", Ee, g(t(a)("connect.voucher.createVoucherCampaign")), 1),
372
+ c("div", Ie, g(t(a)("connect.voucher.description")), 1)
358
373
  ]),
359
374
  l(C, {
360
375
  variant: "primary",
@@ -365,14 +380,14 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
365
380
  ]),
366
381
  _: 1
367
382
  })),
368
- l(pe, {
383
+ l(he, {
369
384
  ref_key: "sheetRef",
370
- ref: P,
371
- "onSubmit:modelValue": W
385
+ ref: I,
386
+ "onSubmit:modelValue": z
372
387
  }, null, 512),
373
- l(fe, {
388
+ l(ge, {
374
389
  ref_key: "sendVoucherSheetRef",
375
- ref: b
390
+ ref: k
376
391
  }, null, 512)
377
392
  ])
378
393
  ], 64);
@@ -380,5 +395,5 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
380
395
  }
381
396
  });
382
397
  export {
383
- Je as default
398
+ eo as default
384
399
  };
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as A, ref as w, resolveComponent as c, openBlock as d, createBlock as F, withCtx as f, renderSlot as q, createVNode as m, createTextVNode as S, toDisplayString as I, createElementVNode as n, computed as N, createElementBlock as h, Fragment as U, renderList as z, unref as e, normalizeClass as J, createCommentVNode as P, resolveDynamicComponent as H } from "vue";
2
- import { c as X } from "./index-CYHzkVmf.js";
3
- import { e as K, F as Q } from "./index-Dz55oJOD.js";
4
- import { C as W } from "./membership-CIWA-YIz.js";
2
+ import { c as X } from "./index-Ds7uV5hU.js";
3
+ import { e as K, F as Q } from "./index-COYuq-0E.js";
4
+ import { C as W } from "./membership-BTIRstHL.js";
5
5
  import { Z as g } from "./zod-Bg2FbC-D.js";
6
- import { _ as Y } from "./SelectItems.vue_vue_type_script_setup_true_lang-CDZw5i96.js";
7
- import { u as ee } from "./business-D8WOIwU3.js";
6
+ import { _ as Y } from "./SelectItems.vue_vue_type_script_setup_true_lang-DOhYq-N5.js";
7
+ import { u as ee } from "./business-Bq2l2dad.js";
8
8
  import { useCoreStore as te } from "@feedmepos/mf-common";
9
- import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-D6En5sRQ.js";
9
+ import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BEQa1Di8.js";
10
10
  import { _ as oe } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js";
11
- import { _ as ae, a as ne } from "./EffectSheet.vue_vue_type_style_index_0_lang-CVRvxR02.js";
12
- import { _ as se } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DG7dPhv0.js";
13
- import { u as me } from "./vue-i18n-DbCbvmTz.js";
14
- import { i as re } from "./helper-C36sBB0k.js";
11
+ import { _ as ae, a as ne } from "./EffectSheet.vue_vue_type_style_index_0_lang-BT-ZPcZm.js";
12
+ import { _ as se } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CcoUlJff.js";
13
+ import { u as me } from "./vue-i18n-xX03EJtj.js";
14
+ import { i as re } from "./helper-DqODSGUO.js";
15
15
  const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
16
16
  __name: "MenuSheet",
17
17
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, useAttrs as y, resolveComponent as b, openBlock as l, createBlock as v, mergeProps as x, unref as t, createSlots as g, withCtx as h, createElementVNode as a, toDisplayString as n, renderSlot as k, createElementBlock as F, createCommentVNode as S } from "vue";
2
2
  import { Z as d } from "./zod-Bg2FbC-D.js";
3
- import { u as V } from "./vue-i18n-DbCbvmTz.js";
3
+ import { u as V } from "./vue-i18n-xX03EJtj.js";
4
4
  const B = { class: "fm-typo-en-body-lg-400 flex gap-4 text-fm-color-typo-primary items-center" }, C = {
5
5
  key: 0,
6
6
  class: "text-fm-color-typo-tertiary"