@feedmepos/mf-connect 0.0.16-beta.1 → 0.0.17-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 (72) hide show
  1. package/dist/Analytic-CKM1hA08.js +612 -0
  2. package/dist/{Broadcast-X69Mtv3b.js → Broadcast-DzJRPvz5.js} +7 -7
  3. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VWLBlxy1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7J9gl35.js} +8 -8
  4. package/dist/{Card-D0X3v1UF.js → Card-BowvmBJD.js} +121 -121
  5. package/dist/{Collections-umR6Ehqf.js → Collections-DHi8bxpj.js} +129 -141
  6. package/dist/{Credit-C1EWF7R0.js → Credit-DakCAG7z.js} +7 -7
  7. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bz6TSmbW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-B6L77rz7.js} +22 -24
  8. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-AhWnHG02.js → EffectSheet.vue_vue_type_style_index_0_lang-RLmpxA5_.js} +6 -6
  9. package/dist/{Experience-CqL8wyPm.js → Experience-CnHloEig.js} +7 -7
  10. package/dist/{Game--kYe64EV.js → Game-D-X4EgC-.js} +7 -7
  11. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BjOJ3XSL.js → ImageInput.vue_vue_type_script_setup_true_lang-DZhanVR2.js} +1 -1
  12. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DykNOOFD.js → MainLayout-BAyMP_C8.js} +53 -20
  13. package/dist/{Marketing-CTCQ5ZmZ.js → Marketing-c4QG38L1.js} +25 -25
  14. package/dist/{Member-DCduX7zP.js → Member-DQBVPHCv.js} +2 -2
  15. package/dist/MemberList-Ci6LRnrH.js +1718 -0
  16. package/dist/{MemberTransactions-CTAx5jIV.js → MemberTransactions-CztAzAA6.js} +1 -1
  17. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-B_hDmE8e.js +203 -0
  18. package/dist/{Mission-CVr9rS_D.js → Mission-Cj_hi3tv.js} +7 -7
  19. package/dist/{Point-BnZ6M74y.js → Point-BGDCrLdw.js} +7 -7
  20. package/dist/{Promotion-B0PUve5S.js → Promotion-BABafzmp.js} +8 -8
  21. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CrpJySSp.js → RuleGroup.vue_vue_type_script_setup_true_lang-C7Tqs2pq.js} +14 -14
  22. package/dist/{Segment-B-XpkyM5.js → Segment-Bh8bddz_.js} +18 -19
  23. package/dist/{Setting-Zrj5P_4m.js → Setting-ByrGfBdk.js} +541 -571
  24. package/dist/Store-6lrxcf8I.js +1442 -0
  25. package/dist/{StoreRewards-D8410Q_-.js → StoreRewards-C5bJ9hxE.js} +74 -75
  26. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DS4APaHw.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DaboQyfR.js} +79 -82
  27. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DUaTP2_0.js +124 -0
  28. package/dist/{Tier-DVWJyQ9S.js → Tier-D71DR1ez.js} +68 -71
  29. package/dist/{Title-B5kX64vs.js → Title-CxAYzUIx.js} +75 -78
  30. package/dist/{Transaction-CZBO4v4d.js → Transaction-BWRGkDrb.js} +1 -1
  31. package/dist/{Voucher-se-4JF9B.js → Voucher-BLy2jD1L.js} +37 -37
  32. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
  33. package/dist/{app-B2ImSO3V.js → app-BGUDahHa.js} +1 -1
  34. package/dist/{app-DkI7dYRN.js → app-roSGTcOh.js} +46 -46
  35. package/dist/app.js +1 -1
  36. package/dist/{campaign-BZJuknWK.js → campaign-B7-BUOfP.js} +11 -13
  37. package/dist/{collection.fn-DoCkZ6z4.js → collection.fn-DHlfGYAC.js} +2 -4
  38. package/dist/{dto-BWpvRpK2.js → dto-zv3OTrbd.js} +214 -215
  39. package/dist/{effect-B8kmnKvY.js → effect-DLtYeqVg.js} +1 -1
  40. package/dist/{export-Dm6LYnWo.js → export-Bm6xBE89.js} +3 -3
  41. package/dist/{helper-DR4XK3nv.js → helper-BaLvfRCZ.js} +1 -1
  42. package/dist/{index-DcUrk07Q.js → index-BmgXoYUK.js} +1 -1
  43. package/dist/{index-CuL5-ORK.js → index-D9Ft2U8O.js} +8 -9
  44. package/dist/{index-CWf0mh3a.js → index-DIA3Lkck.js} +2 -2
  45. package/dist/{index-BryrRq8O.js → index-DP2wL3EA.js} +37 -47
  46. package/dist/{index-CkiYkbXb.js → index-DgAr53Ae.js} +1 -1
  47. package/dist/{index-yxJMhfxj.js → index-DiC8aGiv.js} +66 -109
  48. package/dist/{index-boor8e80.js → index-DrA3F2aA.js} +27 -28
  49. package/dist/{index-BxkxVtgm.js → index-Qr6T_tfL.js} +1 -1
  50. package/dist/index-SdCqUstr.js +244 -0
  51. package/dist/{index-Bu4_26qI.js → index-aYwIKfns.js} +1 -1
  52. package/dist/{loading-BzV5acUX.js → loading-CB6v7hws.js} +4 -4
  53. package/dist/{lodash-mg4435Qq.js → lodash-DkICSg8W.js} +1 -1
  54. package/dist/{membership-CqbsLHqx.js → membership-CFVkuT3Z.js} +58 -63
  55. package/dist/{money-DA_gtp3q.js → money-DMEHb1PR.js} +1 -1
  56. package/dist/{number-C388eyOu.js → number-RVupiUMd.js} +3 -3
  57. package/dist/{rule-Clmr5y4j.js → rule-CpU35zT1.js} +2 -2
  58. package/dist/{rule-builder-BgqNbM-P.js → rule-builder-CrtuA_0Q.js} +1 -1
  59. package/dist/style.css +1 -1
  60. package/dist/{template-Dwp7heBA.js → template-DxvJmDC3.js} +6 -6
  61. package/dist/{usePagination-o5fgsZwU.js → usePagination-FlXHEH_R.js} +1 -1
  62. package/dist/{xlsx-BRdh9e2p.js → xlsx-BJ7B-X33.js} +309 -309
  63. package/package.json +2 -2
  64. package/dist/Analytic-C-zZmF5N.js +0 -760
  65. package/dist/MainLayout-D0AoA1tk.js +0 -41
  66. package/dist/MemberList-B0EkXZJu.js +0 -1729
  67. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-C-BtHxSc.js +0 -432
  68. package/dist/Store-B2gywCt2.js +0 -1503
  69. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-ZYjWlDJ1.js +0 -139
  70. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +0 -55
  71. package/dist/index-BobRgQrE.js +0 -291
  72. package/dist/zod-W_PvIofQ.js +0 -90
@@ -1,22 +1,22 @@
1
- import { components as U } from "@feedmepos/ui-library";
2
- import { n as o } from "./index-CWf0mh3a.js";
3
- import { h as f, ref as r } from "vue";
4
- import { defineStore as V } from "pinia";
5
- import { m as p } from "./index-Bu4_26qI.js";
6
- import { d as c, e as k } from "./app-DkI7dYRN.js";
1
+ import { components as P } from "@feedmepos/ui-library";
2
+ import { n as o } from "./index-DIA3Lkck.js";
3
+ import { h as p, ref as n } from "vue";
4
+ import { defineStore as $ } from "pinia";
5
+ import { m as d } from "./index-aYwIKfns.js";
6
+ import { e as c, f as U } from "./app-roSGTcOh.js";
7
7
  function i(t) {
8
- return f(
8
+ return p(
9
9
  "div",
10
10
  {
11
11
  class: `${t.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
12
12
  },
13
13
  [
14
- f(U.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
15
- f("span", { class: "fm-typo-en-body-md-600" }, t.name)
14
+ p(P.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
15
+ p("span", { class: "fm-typo-en-body-md-600" }, t.name)
16
16
  ]
17
17
  );
18
18
  }
19
- const F = {
19
+ const V = {
20
20
  [o.enum.VOUCHER]: {
21
21
  chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
22
22
  icon: "sell",
@@ -84,7 +84,7 @@ const F = {
84
84
  return i(this);
85
85
  }
86
86
  }
87
- }, m = () => k("segments"), H = {
87
+ }, m = () => U("segments"), k = {
88
88
  async readAll(t) {
89
89
  const a = c(
90
90
  await m().get("", { params: t })
@@ -125,57 +125,54 @@ const F = {
125
125
  async delete(t) {
126
126
  return c(await m().delete(t));
127
127
  }
128
- }, q = V("mf-connect-membership", () => {
129
- var E, A;
130
- const t = r(null), a = r(null), l = r(null), u = r([]), d = r([]), y = r(null), h = r([]), g = r(), v = r(((E = t.value) == null ? void 0 : E.tiers) ?? []), b = r(((A = t.value) == null ? void 0 : A.pf_title) ?? []), C = r([]), w = r({ raw: [], items: [] }), T = r([]), I = async () => {
131
- const e = await p.read();
132
- t.value = e, y.value = e, v.value = e.tiers, b.value = e.pf_title ?? [], S(), x();
128
+ }, j = $("mf-connect-membership", () => {
129
+ var x, E;
130
+ const t = n(null), a = n(null), l = n([]), u = n([]), f = n(null), h = n([]), y = n(), g = n(((x = t.value) == null ? void 0 : x.tiers) ?? []), v = n(((E = t.value) == null ? void 0 : E.pf_title) ?? []), b = n([]), C = n({ raw: [], items: [] }), w = n([]), I = async () => {
131
+ const e = await d.read();
132
+ t.value = e, f.value = e, g.value = e.tiers, v.value = e.pf_title ?? [], T(), S();
133
133
  }, _ = async () => {
134
- const e = await p.readPayoutAccount();
135
- l.value = Array.isArray(e) && e.length == 0 ? null : e;
134
+ const e = await d.readStore();
135
+ a.value = e, A(), L();
136
136
  }, R = async () => {
137
- const e = await p.readStore();
138
- a.value = e, M(), P();
137
+ const e = await d.readRewards();
138
+ l.value = e, T(), S();
139
139
  }, O = async () => {
140
- const e = await p.readRewards();
141
- u.value = e, S(), x();
142
- }, L = async () => {
143
- const e = await H.readAll({
140
+ const e = await k.readAll({
144
141
  skip: 0,
145
142
  sortBy: "_id",
146
143
  limit: 1e3
147
144
  });
148
- d.value = e.resources, B();
149
- }, M = () => {
145
+ u.value = e.resources, M();
146
+ }, A = () => {
150
147
  var e;
151
- h.value = (((e = a.value) == null ? void 0 : e.categories) ?? []).map((n) => ({
152
- ...n,
153
- bundles: n.bundles.sort(
154
- (s, $) => s.name.localeCompare($.name, "en", { numeric: !0 })
148
+ h.value = (((e = a.value) == null ? void 0 : e.categories) ?? []).map((r) => ({
149
+ ...r,
150
+ bundles: r.bundles.sort(
151
+ (s, B) => s.name.localeCompare(B.name, "en", { numeric: !0 })
155
152
  )
156
- })).sort((n, s) => n.name.localeCompare(s.name, "en", { numeric: !0 }));
157
- }, P = () => {
158
- var e, n, s;
159
- g.value = {
153
+ })).sort((r, s) => r.name.localeCompare(s.name, "en", { numeric: !0 }));
154
+ }, L = () => {
155
+ var e, r, s;
156
+ y.value = {
160
157
  company: (e = a.value) == null ? void 0 : e.company,
161
- inclusiveTaxes: ((n = a.value) == null ? void 0 : n.inclusiveTaxes) ?? [],
158
+ inclusiveTaxes: ((r = a.value) == null ? void 0 : r.inclusiveTaxes) ?? [],
162
159
  stripe: (s = a.value) == null ? void 0 : s.stripe
163
160
  };
164
- }, S = () => {
161
+ }, T = () => {
165
162
  var e;
166
- C.value = [
167
- ...u.value.filter((n) => n.type == "VOUCHER" && n.noCampaign),
163
+ b.value = [
164
+ ...l.value.filter((r) => r.type == "VOUCHER" && r.noCampaign),
168
165
  ...((e = t.value) == null ? void 0 : e.pf_title) ?? []
169
166
  ];
170
- }, x = () => {
171
- var n;
167
+ }, S = () => {
168
+ var r;
172
169
  const e = [
173
- ...u.value.filter(
170
+ ...l.value.filter(
174
171
  (s) => !["VOUCHER", "TIER", "GAME", "TITLE", "STAMP"].includes(s.type)
175
- ).map((s) => ({ ...s, name: F[s.type].name })),
176
- ...((n = t.value) == null ? void 0 : n.pf_title) ?? []
172
+ ).map((s) => ({ ...s, name: V[s.type].name })),
173
+ ...((r = t.value) == null ? void 0 : r.pf_title) ?? []
177
174
  ];
178
- w.value = {
175
+ C.value = {
179
176
  raw: e,
180
177
  items: e.map((s) => ({
181
178
  label: `${s.type === "TITLE" ? "[T] " : ""}${s.name}`,
@@ -183,8 +180,8 @@ const F = {
183
180
  raw: s
184
181
  }))
185
182
  };
186
- }, B = () => {
187
- T.value = d.value.map((e) => ({
183
+ }, M = () => {
184
+ w.value = u.value.map((e) => ({
188
185
  label: e.name,
189
186
  value: e._id,
190
187
  raw: e
@@ -194,28 +191,26 @@ const F = {
194
191
  // State
195
192
  membership: t,
196
193
  store: a,
197
- collectibles: u,
198
- segments: d,
199
- payoutAccount: l,
194
+ collectibles: l,
195
+ segments: u,
200
196
  // Actions
201
197
  readMembership: I,
202
- readPayoutAccount: _,
203
- readMemberStore: R,
204
- readRewards: O,
205
- readSegments: L,
198
+ readMemberStore: _,
199
+ readRewards: R,
200
+ readSegments: O,
206
201
  // Getters
207
- membershipInfo: y,
202
+ membershipInfo: f,
208
203
  sortedStoreCategories: h,
209
- storeOption: g,
210
- sortedTiers: v,
211
- sortedTitles: b,
212
- bundleRewards: C,
213
- loyaltyRewards: w,
214
- segmentOptions: T
204
+ storeOption: y,
205
+ sortedTiers: g,
206
+ sortedTitles: v,
207
+ bundleRewards: b,
208
+ loyaltyRewards: C,
209
+ segmentOptions: w
215
210
  };
216
211
  });
217
212
  export {
218
- F as C,
219
- H as s,
220
- q as u
213
+ V as C,
214
+ k as s,
215
+ j as u
221
216
  };
@@ -1,4 +1,4 @@
1
- import { c as r } from "./app-DkI7dYRN.js";
1
+ import { d as r } from "./app-roSGTcOh.js";
2
2
  function n(o) {
3
3
  return r.Dinero.fromNumber({ number: o });
4
4
  }
@@ -1,12 +1,12 @@
1
- import { c as n } from "./app-DkI7dYRN.js";
1
+ import { d as n } from "./app-roSGTcOh.js";
2
2
  function s(t) {
3
3
  return n.DineroFactory(t).multiply(100).toFormat(!1);
4
4
  }
5
- function c(t, r = 2, o = !1) {
5
+ function f(t, r = 2, o = !1) {
6
6
  const e = parseFloat(String(t)).toFixed(r);
7
7
  return o ? parseFloat(e).toString() : e;
8
8
  }
9
9
  export {
10
10
  s as F,
11
- c as f
11
+ f
12
12
  };
@@ -1,6 +1,6 @@
1
1
  import { h as O } from "./moment-BWErdI6_.js";
2
- import { u as ee } from "./membership-CqbsLHqx.js";
3
- import { R as K, a as we } from "./rule-builder-BgqNbM-P.js";
2
+ import { u as ee } from "./membership-CFVkuT3Z.js";
3
+ import { R as K, a as we } from "./rule-builder-CrtuA_0Q.js";
4
4
  var ue = [
5
5
  "MO",
6
6
  "TU",
@@ -1,4 +1,4 @@
1
- import { l as i } from "./index-CWf0mh3a.js";
1
+ import { l as i } from "./index-DIA3Lkck.js";
2
2
  function a(c, t) {
3
3
  let r = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4
4
  const e = s.length;