@feedmepos/mf-connect 0.0.17-prod → 0.0.19-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 (65) hide show
  1. package/dist/Analytic-Ch5vd0M4.js +759 -0
  2. package/dist/{Broadcast-DzJRPvz5.js → Broadcast-3I89gcxD.js} +7 -7
  3. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7J9gl35.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CXjLvOFM.js} +8 -8
  4. package/dist/{Card-BowvmBJD.js → Card-BEJ03OCX.js} +86 -86
  5. package/dist/{Collections-DHi8bxpj.js → Collections-DOvO-cyf.js} +6 -6
  6. package/dist/{Credit-DakCAG7z.js → Credit-CS_f8MWQ.js} +7 -7
  7. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B6L77rz7.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-4EqJZVlT.js} +20 -20
  8. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-RLmpxA5_.js → EffectSheet.vue_vue_type_style_index_0_lang-CEf5oXj2.js} +5 -5
  9. package/dist/{Experience-CnHloEig.js → Experience-BMRDA9az.js} +7 -7
  10. package/dist/{Game-D-X4EgC-.js → Game-jajGoiRD.js} +7 -7
  11. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DZhanVR2.js → ImageInput.vue_vue_type_script_setup_true_lang-D1HZobOu.js} +1 -1
  12. package/dist/{MainLayout-BAyMP_C8.js → MainLayout-B2So6_3h.js} +1 -1
  13. package/dist/{Marketing-c4QG38L1.js → Marketing-B7ep8HRJ.js} +14 -14
  14. package/dist/{Member-DQBVPHCv.js → Member-dh5AwXCY.js} +2 -2
  15. package/dist/{MemberList-Ci6LRnrH.js → MemberList-BG8RU-_z.js} +11 -11
  16. package/dist/{MemberTransactions-CztAzAA6.js → MemberTransactions-CQVgmcp5.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-B_hDmE8e.js → MessageInput.vue_vue_type_script_setup_true_lang-CEdItTM7.js} +2 -2
  18. package/dist/{Mission-Cj_hi3tv.js → Mission-BRHhSI6-.js} +14 -14
  19. package/dist/{Point-BGDCrLdw.js → Point-Ckemk8sq.js} +7 -7
  20. package/dist/{Promotion-BABafzmp.js → Promotion-BZLQARR5.js} +8 -8
  21. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-C7Tqs2pq.js → RuleGroup.vue_vue_type_script_setup_true_lang-D0qw6tOD.js} +13 -13
  22. package/dist/{Segment-Bh8bddz_.js → Segment-DNuB8-_e.js} +9 -9
  23. package/dist/{Setting-ByrGfBdk.js → Setting-CSHcFTQc.js} +126 -126
  24. package/dist/Store-BOqFpaYd.js +1502 -0
  25. package/dist/{StoreRewards-C5bJ9hxE.js → StoreRewards-BNxVa94v.js} +9 -9
  26. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DaboQyfR.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CKZJmSBk.js} +82 -79
  27. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DTfuVmSz.js +139 -0
  28. package/dist/{Tier-D71DR1ez.js → Tier-pYkfcAIL.js} +16 -16
  29. package/dist/{Title-CxAYzUIx.js → Title-L7b7bGBO.js} +15 -15
  30. package/dist/{Transaction-BWRGkDrb.js → Transaction-BYb73ORt.js} +1 -1
  31. package/dist/{Voucher-BLy2jD1L.js → Voucher-DjGB0Ajs.js} +20 -20
  32. package/dist/{app-BGUDahHa.js → app-CYp3yPPw.js} +1 -1
  33. package/dist/{app-roSGTcOh.js → app-vzsH1VQf.js} +38 -38
  34. package/dist/app.js +1 -1
  35. package/dist/{campaign-B7-BUOfP.js → campaign-Byj6dpxX.js} +2 -2
  36. package/dist/{dto-zv3OTrbd.js → dto-CVEezNuM.js} +37 -37
  37. package/dist/{effect-DLtYeqVg.js → effect-ueqMoqiZ.js} +1 -1
  38. package/dist/{export-Bm6xBE89.js → export-B1vfJQ_D.js} +3 -3
  39. package/dist/{helper-BaLvfRCZ.js → helper-DeFgiHSS.js} +1 -1
  40. package/dist/{index-BmgXoYUK.js → index-B-FWvOVj.js} +1 -1
  41. package/dist/{index-Qr6T_tfL.js → index-B5m-noV5.js} +1 -1
  42. package/dist/{index-aYwIKfns.js → index-BehSlDVX.js} +1 -1
  43. package/dist/index-BqH31bb7.js +291 -0
  44. package/dist/{index-DIA3Lkck.js → index-BrA2zACe.js} +2 -2
  45. package/dist/{index-DiC8aGiv.js → index-C-RRKtNp.js} +5 -5
  46. package/dist/{index-DP2wL3EA.js → index-Cwmk_EmE.js} +6 -5
  47. package/dist/{index-DgAr53Ae.js → index-D4MN0F2_.js} +1 -1
  48. package/dist/{index-DrA3F2aA.js → index-DdEBZ4p_.js} +3 -3
  49. package/dist/{index-D9Ft2U8O.js → index-m6PFUpwd.js} +2 -2
  50. package/dist/{loading-CB6v7hws.js → loading-C7UDAIcq.js} +1312 -1312
  51. package/dist/{lodash-DkICSg8W.js → lodash-Cc-nE72h.js} +1 -1
  52. package/dist/{membership-CFVkuT3Z.js → membership-D-jW62pj.js} +63 -58
  53. package/dist/{money-DMEHb1PR.js → money-gDtjN552.js} +1 -1
  54. package/dist/{number-RVupiUMd.js → number-Cg9DyGBY.js} +2 -2
  55. package/dist/{rule-CpU35zT1.js → rule-BVqVI-WL.js} +2 -2
  56. package/dist/{rule-builder-CrtuA_0Q.js → rule-builder-o8Axr-t4.js} +1 -1
  57. package/dist/style.css +1 -1
  58. package/dist/{template-DxvJmDC3.js → template-ARPGA10Y.js} +5 -5
  59. package/dist/{usePagination-FlXHEH_R.js → usePagination-DTsDtrYI.js} +1 -1
  60. package/dist/{xlsx-BJ7B-X33.js → xlsx-DHfAWgSM.js} +1 -1
  61. package/package.json +2 -2
  62. package/dist/Analytic-CKM1hA08.js +0 -612
  63. package/dist/Store-6lrxcf8I.js +0 -1442
  64. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DUaTP2_0.js +0 -124
  65. package/dist/index-SdCqUstr.js +0 -244
@@ -1,4 +1,4 @@
1
- import { g as ep, c as jt } from "./app-roSGTcOh.js";
1
+ import { g as ep, c as jt } from "./app-vzsH1VQf.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,22 +1,22 @@
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";
1
+ import { components as U } from "@feedmepos/ui-library";
2
+ import { n as o } from "./index-BrA2zACe.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-BehSlDVX.js";
6
+ import { e as c, f as k } from "./app-vzsH1VQf.js";
7
7
  function i(t) {
8
- return p(
8
+ return f(
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
- p(P.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
15
- p("span", { class: "fm-typo-en-body-md-600" }, t.name)
14
+ f(U.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
15
+ f("span", { class: "fm-typo-en-body-md-600" }, t.name)
16
16
  ]
17
17
  );
18
18
  }
19
- const V = {
19
+ const F = {
20
20
  [o.enum.VOUCHER]: {
21
21
  chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
22
22
  icon: "sell",
@@ -84,7 +84,7 @@ const V = {
84
84
  return i(this);
85
85
  }
86
86
  }
87
- }, m = () => U("segments"), k = {
87
+ }, m = () => k("segments"), H = {
88
88
  async readAll(t) {
89
89
  const a = c(
90
90
  await m().get("", { params: t })
@@ -125,54 +125,57 @@ const V = {
125
125
  async delete(t) {
126
126
  return c(await m().delete(t));
127
127
  }
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();
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();
133
133
  }, _ = async () => {
134
- const e = await d.readStore();
135
- a.value = e, A(), L();
134
+ const e = await p.readPayoutAccount();
135
+ l.value = Array.isArray(e) && e.length == 0 ? null : e;
136
136
  }, R = async () => {
137
- const e = await d.readRewards();
138
- l.value = e, T(), S();
137
+ const e = await p.readStore();
138
+ a.value = e, M(), P();
139
139
  }, O = async () => {
140
- const e = await k.readAll({
140
+ const e = await p.readRewards();
141
+ u.value = e, S(), x();
142
+ }, L = async () => {
143
+ const e = await H.readAll({
141
144
  skip: 0,
142
145
  sortBy: "_id",
143
146
  limit: 1e3
144
147
  });
145
- u.value = e.resources, M();
146
- }, A = () => {
148
+ d.value = e.resources, B();
149
+ }, M = () => {
147
150
  var e;
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 })
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 })
152
155
  )
153
- })).sort((r, s) => r.name.localeCompare(s.name, "en", { numeric: !0 }));
154
- }, L = () => {
155
- var e, r, s;
156
- y.value = {
156
+ })).sort((n, s) => n.name.localeCompare(s.name, "en", { numeric: !0 }));
157
+ }, P = () => {
158
+ var e, n, s;
159
+ g.value = {
157
160
  company: (e = a.value) == null ? void 0 : e.company,
158
- inclusiveTaxes: ((r = a.value) == null ? void 0 : r.inclusiveTaxes) ?? [],
161
+ inclusiveTaxes: ((n = a.value) == null ? void 0 : n.inclusiveTaxes) ?? [],
159
162
  stripe: (s = a.value) == null ? void 0 : s.stripe
160
163
  };
161
- }, T = () => {
164
+ }, S = () => {
162
165
  var e;
163
- b.value = [
164
- ...l.value.filter((r) => r.type == "VOUCHER" && r.noCampaign),
166
+ C.value = [
167
+ ...u.value.filter((n) => n.type == "VOUCHER" && n.noCampaign),
165
168
  ...((e = t.value) == null ? void 0 : e.pf_title) ?? []
166
169
  ];
167
- }, S = () => {
168
- var r;
170
+ }, x = () => {
171
+ var n;
169
172
  const e = [
170
- ...l.value.filter(
173
+ ...u.value.filter(
171
174
  (s) => !["VOUCHER", "TIER", "GAME", "TITLE", "STAMP"].includes(s.type)
172
- ).map((s) => ({ ...s, name: V[s.type].name })),
173
- ...((r = t.value) == null ? void 0 : r.pf_title) ?? []
175
+ ).map((s) => ({ ...s, name: F[s.type].name })),
176
+ ...((n = t.value) == null ? void 0 : n.pf_title) ?? []
174
177
  ];
175
- C.value = {
178
+ w.value = {
176
179
  raw: e,
177
180
  items: e.map((s) => ({
178
181
  label: `${s.type === "TITLE" ? "[T] " : ""}${s.name}`,
@@ -180,8 +183,8 @@ const V = {
180
183
  raw: s
181
184
  }))
182
185
  };
183
- }, M = () => {
184
- w.value = u.value.map((e) => ({
186
+ }, B = () => {
187
+ T.value = d.value.map((e) => ({
185
188
  label: e.name,
186
189
  value: e._id,
187
190
  raw: e
@@ -191,26 +194,28 @@ const V = {
191
194
  // State
192
195
  membership: t,
193
196
  store: a,
194
- collectibles: l,
195
- segments: u,
197
+ collectibles: u,
198
+ segments: d,
199
+ payoutAccount: l,
196
200
  // Actions
197
201
  readMembership: I,
198
- readMemberStore: _,
199
- readRewards: R,
200
- readSegments: O,
202
+ readPayoutAccount: _,
203
+ readMemberStore: R,
204
+ readRewards: O,
205
+ readSegments: L,
201
206
  // Getters
202
- membershipInfo: f,
207
+ membershipInfo: y,
203
208
  sortedStoreCategories: h,
204
- storeOption: y,
205
- sortedTiers: g,
206
- sortedTitles: v,
207
- bundleRewards: b,
208
- loyaltyRewards: C,
209
- segmentOptions: w
209
+ storeOption: g,
210
+ sortedTiers: v,
211
+ sortedTitles: b,
212
+ bundleRewards: C,
213
+ loyaltyRewards: w,
214
+ segmentOptions: T
210
215
  };
211
216
  });
212
217
  export {
213
- V as C,
214
- k as s,
215
- j as u
218
+ F as C,
219
+ H as s,
220
+ q as u
216
221
  };
@@ -1,4 +1,4 @@
1
- import { d as r } from "./app-roSGTcOh.js";
1
+ import { a as r } from "./app-vzsH1VQf.js";
2
2
  function n(o) {
3
3
  return r.Dinero.fromNumber({ number: o });
4
4
  }
@@ -1,6 +1,6 @@
1
- import { d as n } from "./app-roSGTcOh.js";
1
+ import { a } from "./app-vzsH1VQf.js";
2
2
  function s(t) {
3
- return n.DineroFactory(t).multiply(100).toFormat(!1);
3
+ return a.DineroFactory(t).multiply(100).toFormat(!1);
4
4
  }
5
5
  function f(t, r = 2, o = !1) {
6
6
  const e = parseFloat(String(t)).toFixed(r);
@@ -1,6 +1,6 @@
1
1
  import { h as O } from "./moment-BWErdI6_.js";
2
- import { u as ee } from "./membership-CFVkuT3Z.js";
3
- import { R as K, a as we } from "./rule-builder-CrtuA_0Q.js";
2
+ import { u as ee } from "./membership-D-jW62pj.js";
3
+ import { R as K, a as we } from "./rule-builder-o8Axr-t4.js";
4
4
  var ue = [
5
5
  "MO",
6
6
  "TU",
@@ -1,4 +1,4 @@
1
- import { l as i } from "./index-DIA3Lkck.js";
1
+ import { l as i } from "./index-BrA2zACe.js";
2
2
  function a(c, t) {
3
3
  let r = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4
4
  const e = s.length;