@feedmepos/mf-connect 0.1.9-prod → 0.1.10-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 (90) hide show
  1. package/dist/{Analytic-8Ew7y5t9.js → Analytic-CpSbitWV.js} +24 -23
  2. package/dist/{App-3BVNH3r-.js → App-BPT8XzjX.js} +56 -51
  3. package/dist/{Broadcast-CrsPUhLT.js → Broadcast-CJHpiQeN.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DE300Y56.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DUPqWdIm.js} +7 -7
  5. package/dist/Card-Bvn36zqZ.js +895 -0
  6. package/dist/{Collections-djS9hLI8.js → Collections-Bq6OxsJC.js} +24 -29
  7. package/dist/{Credit-D4KEvIov.js → Credit-Dno_g7dW.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjM81fmS.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-cGbwORhw.js} +648 -1284
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-aEWfdpCg.js → EffectSheet.vue_vue_type_style_index_0_lang-Ho7zwlbb.js} +19 -19
  10. package/dist/{Experience-2FPLO7aV.js → Experience-BC1qSIGO.js} +8 -8
  11. package/dist/{Game-e_UjVJgU.js → Game-C_CKGMBW.js} +8 -8
  12. package/dist/Index-BXFaWTfw.js +255 -0
  13. package/dist/{Marketing-B2hCjZ2r.js → Marketing-Ni0WAie5.js} +5 -5
  14. package/dist/{Member-D_ykRIBb.js → Member-djnisrK1.js} +4 -4
  15. package/dist/{MemberList-LmzzYxEn.js → MemberList-CclU-3B7.js} +193 -189
  16. package/dist/{MemberTransactions-B2vqlKaP.js → MemberTransactions-DVVsv3Ux.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DQ2ubF0N.js → MessageInput.vue_vue_type_script_setup_true_lang-khyDg1m4.js} +2 -2
  18. package/dist/Mission-Z5somdo_.js +273 -0
  19. package/dist/Overview-BvMVz3lQ.js +1074 -0
  20. package/dist/{Point-DFriwWWY.js → Point-DdPukiTg.js} +8 -8
  21. package/dist/{Promotion-Db3IEs2F.js → Promotion-DCqdIwjG.js} +9 -9
  22. package/dist/Record-CvMxXm1B.js +337 -0
  23. package/dist/Reward-CiJHGXfQ.js +441 -0
  24. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CrGCBRmH.js +150 -0
  25. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-tnT6i0Jq.js +1638 -0
  26. package/dist/{Segment-CE8q9JV2.js → Segment-CQb3j-o0.js} +13 -13
  27. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-B7YqIU5D.js +181 -0
  28. package/dist/{Setting-Vcz1S27V.js → Setting-91cK3ssU.js} +31 -31
  29. package/dist/Store-B-uldUKt.js +1744 -0
  30. package/dist/{StoreRewards-Dt30AkWo.js → StoreRewards-dDNeFlA9.js} +12 -12
  31. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BVb1X0aq.js +1132 -0
  32. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-f59onlgt.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Ds0WxGxr.js} +1 -1
  33. package/dist/{Tier-a6yXEtLd.js → Tier-_jMaLj3u.js} +19 -19
  34. package/dist/{Title-A3-2EI0w.js → Title-By7o67aT.js} +19 -19
  35. package/dist/{Transaction-DswABr2P.js → Transaction-BLpEgeI2.js} +2 -2
  36. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Bf_nO9zH.js +130 -0
  37. package/dist/{Voucher-DEoVgZYa.js → Voucher-CG5tfibn.js} +11 -11
  38. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DpQUoXyQ.js +419 -0
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-ccc1vxjS.js → ZodTextField.vue_vue_type_script_setup_true_lang-YwGR2En3.js} +1 -1
  40. package/dist/{app-C23GfQGq.js → app-DDmTqTb7.js} +1 -1
  41. package/dist/{app-C66C2KLW.js → app-vCqTQIeC.js} +424 -273
  42. package/dist/app.js +1 -1
  43. package/dist/{business-DNAVZOSH.js → business-Cz78KGF2.js} +1 -1
  44. package/dist/{campaign-Cv0HaUD1.js → campaign-BBd4o7F_.js} +2 -2
  45. package/dist/campaign.enum-CIhi0b-m.js +20 -0
  46. package/dist/campaign.fn-5silF1DK.js +758 -0
  47. package/dist/collectible.enum-cMIQ6ogq.js +19 -0
  48. package/dist/{collection.fn-Dxzr2oPt.js → collection.fn-BGc7Qeli.js} +2 -2
  49. package/dist/dto-i04OPJfW.js +2018 -0
  50. package/dist/{effect-CUuL8Tci.js → effect-D8UzkYRg.js} +1 -1
  51. package/dist/{email-addresses-Yt3s7i2b.js → email-addresses-u05o35hN.js} +1 -1
  52. package/dist/{export-CNg5YWMm.js → export-BEXuPYEd.js} +3 -3
  53. package/dist/{helper-DzmKNFue.js → helper-RptRJGv6.js} +1 -1
  54. package/dist/{index-Dnf7j71V.js → index-B8s-gucK.js} +9 -3
  55. package/dist/{index-B88e_9YI.js → index-BjHZUhiH.js} +1 -1
  56. package/dist/{index-O9lB54LY.js → index-Bpu2DYUc.js} +1348 -1342
  57. package/dist/{index-BK8X9RF6.js → index-C6-rCMhD.js} +3 -3
  58. package/dist/{index-D0obMrAS.js → index-Cq_ZIbRm.js} +173 -62
  59. package/dist/{index-CsCgQ8gt.js → index-DFAnoAe9.js} +1 -1
  60. package/dist/index-DbyJ6Nyn.js +54 -0
  61. package/dist/{index-yzH5eyKW.js → index-Dt6K2eG8.js} +1 -1
  62. package/dist/{index-9CXt2kbQ.js → index-DwzoqCt8.js} +293 -287
  63. package/dist/index-UfL5qRzR.js +1049 -0
  64. package/dist/index-g8EbRVnr.js +32 -0
  65. package/dist/{index-QuBsnXgx.js → index-hEE_ntHd.js} +1 -1
  66. package/dist/index-vh86FiIQ.js +10 -0
  67. package/dist/{index.esm2017-TpBElhnN.js → index.esm2017-BSzW_yaL.js} +1 -1
  68. package/dist/{loading-ChoC5E9d.js → loading-DjEdwdnj.js} +156 -153
  69. package/dist/{membership-CU-k0-Tf.js → membership-BL9Xs8lD.js} +52 -44
  70. package/dist/{money-DANmyTBj.js → money-D7lq0cx-.js} +1 -1
  71. package/dist/{number-DrocTWDD.js → number-BiDabTkI.js} +1 -1
  72. package/dist/objectid-CXf0jb1W.js +145 -0
  73. package/dist/reward-Cr8rbe5R.js +36 -0
  74. package/dist/{rule-builder-3YRdr18A.js → rule-builder-DPKFZ5UX.js} +1 -1
  75. package/dist/{rule-BQLmpER9.js → rule-vkYJij4h.js} +4 -3
  76. package/dist/{template-DOKU1QkY.js → template-Bep5Y5ch.js} +4 -4
  77. package/dist/trigger-fWhQ3bqv.js +144 -0
  78. package/dist/{usePagination-JGI7x0W7.js → usePagination-DSF5b4hM.js} +1 -1
  79. package/dist/user-9UiaP0xs.js +54 -0
  80. package/dist/{vue-i18n-Bch1JmhI.js → vue-i18n-BhiDOB1j.js} +232 -232
  81. package/package.json +2 -2
  82. package/dist/Card-DndggRLr.js +0 -1036
  83. package/dist/Mission-CsLdMq1M.js +0 -261
  84. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-_P2yImhi.js +0 -1804
  85. package/dist/Store-C8kT7JN5.js +0 -1531
  86. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cc2F_06x.js +0 -1065
  87. package/dist/dto-CcrufW2j.js +0 -2770
  88. package/dist/index-C7745kXl.js +0 -755
  89. package/dist/index-CZ28ywyB.js +0 -298
  90. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,23 +1,24 @@
1
1
  var ee = Object.defineProperty;
2
2
  var oe = (f, r, d) => r in f ? ee(f, r, { enumerable: !0, configurable: !0, writable: !0, value: d }) : f[r] = d;
3
3
  var z = (f, r, d) => oe(f, typeof r != "symbol" ? r + "" : r, d);
4
- import { defineComponent as G, ref as p, computed as H, watch as O, resolveComponent as u, openBlock as y, createBlock as L, unref as e, isRef as K, withCtx as I, createElementVNode as b, createVNode as s, createElementBlock as P, Fragment as R, renderList as te, createCommentVNode as U, onMounted as ae, h as T } from "vue";
4
+ import { defineComponent as G, ref as p, computed as H, watch as O, resolveComponent as u, openBlock as y, createBlock as L, unref as e, isRef as K, withCtx as I, createElementVNode as b, createVNode as s, createElementBlock as R, Fragment as P, renderList as te, createCommentVNode as U, onMounted as ae, h as T } from "vue";
5
5
  import { h as j } from "./moment-BWErdI6_.js";
6
6
  import { components as le } from "@feedmepos/ui-library";
7
- import { u as J, a as ne } from "./loading-ChoC5E9d.js";
7
+ import { u as J, a as ne } from "./loading-DjEdwdnj.js";
8
8
  import { J as se } from "./JsonViewer-v8_C7l5N.js";
9
9
  import { u as re } from "./app-wDQR6dpb.js";
10
10
  import { useRoute as Q, useRouter as ie } from "vue-router";
11
- import { c as N } from "./index-CsCgQ8gt.js";
12
- import { u as Y, a as ue, _ as de, w as ce } from "./usePagination-JGI7x0W7.js";
13
- import { g as me } from "./user-Bm4KttFq.js";
14
- import { m as pe } from "./index-Dnf7j71V.js";
11
+ import { c as N } from "./index-DFAnoAe9.js";
12
+ import { e as m } from "./index-vh86FiIQ.js";
13
+ import { u as Y, a as ue, _ as de, w as ce } from "./usePagination-DSF5b4hM.js";
14
+ import { g as me } from "./user-9UiaP0xs.js";
15
+ import { m as pe } from "./index-B8s-gucK.js";
15
16
  import { o as fe } from "./objectId-dwaoBfJX.js";
16
17
  const ge = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Code type", -1), be = { class: "space-y-16" }, Ce = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Settings", -1), ve = { class: "gap-16 grid grid-cols-2" }, he = { class: "flex items-center gap-8" }, ye = /* @__PURE__ */ G({
17
18
  __name: "CreateCollectionSheet",
18
19
  emits: ["success"],
19
20
  setup(f, { expose: r, emit: d }) {
20
- const { minor: S } = J, F = Q(), k = p(), _ = p(!1), E = d, g = p(!1);
21
+ const { minor: w } = J, F = Q(), k = p(), _ = p(!1), E = d, g = p(!1);
21
22
  function q(l) {
22
23
  g.value = l, l && (a.value = {
23
24
  quantity: 1,
@@ -68,7 +69,7 @@ const ge = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Code t
68
69
  ], C = p(B[0].value), c = p("bulk"), x = p(!1), D = H(() => F.params.id);
69
70
  async function n(l) {
70
71
  var o;
71
- await ((o = k.value) == null ? void 0 : o.validateInputs()), _.value && await S(
72
+ await ((o = k.value) == null ? void 0 : o.validateInputs()), _.value && await w(
72
73
  async () => {
73
74
  await N.createCollectionByCampaignId(D.value, l), await E("success");
74
75
  },
@@ -91,7 +92,7 @@ const ge = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Code t
91
92
  l != o && (a.value.codeConfig.pattern = "#".repeat(Math.min(16, Number(l))));
92
93
  }
93
94
  ), (l, o) => {
94
- const v = u("FmRadio"), i = u("FmRadioGroup"), V = u("FmSwitch"), M = u("FmStepperField"), w = u("FmSelect"), h = u("FmTextField"), W = u("FmTextarea"), X = u("FmForm"), $ = u("FmButton"), Z = u("FmSideSheet");
95
+ const v = u("FmRadio"), i = u("FmRadioGroup"), V = u("FmSwitch"), M = u("FmStepperField"), S = u("FmSelect"), h = u("FmTextField"), W = u("FmTextarea"), X = u("FmForm"), $ = u("FmButton"), Z = u("FmSideSheet");
95
96
  return y(), L(Z, {
96
97
  "max-width": 560,
97
98
  "dismiss-away": !0,
@@ -135,7 +136,7 @@ const ge = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Code t
135
136
  inline: !1
136
137
  }, {
137
138
  default: I(() => [
138
- (y(), P(R, null, te(A, (t) => s(v, {
139
+ (y(), R(P, null, te(A, (t) => s(v, {
139
140
  key: t.value,
140
141
  value: t.value,
141
142
  label: t.label,
@@ -147,7 +148,7 @@ const ge = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Code t
147
148
  ]),
148
149
  b("div", be, [
149
150
  Ce,
150
- e(c) === "bulk" ? (y(), P(R, { key: 0 }, [
151
+ e(c) === "bulk" ? (y(), R(P, { key: 0 }, [
151
152
  s(V, {
152
153
  "model-value": e(x),
153
154
  "label-placement": "right",
@@ -156,7 +157,7 @@ const ge = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Code t
156
157
  required: !0,
157
158
  "onUpdate:modelValue": o[1] || (o[1] = () => x.value = !e(x))
158
159
  }, null, 8, ["model-value"]),
159
- e(x) ? (y(), P(R, { key: 0 }, [
160
+ e(x) ? (y(), R(P, { key: 0 }, [
160
161
  s(M, {
161
162
  modelValue: e(a).codeConfig.length,
162
163
  "onUpdate:modelValue": o[2] || (o[2] = (t) => e(a).codeConfig.length = t),
@@ -169,7 +170,7 @@ const ge = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Code t
169
170
  ],
170
171
  required: !0
171
172
  }, null, 8, ["modelValue", "rules"]),
172
- s(w, {
173
+ s(S, {
173
174
  label: "Charset",
174
175
  "model-value": e(C),
175
176
  items: B,
@@ -246,16 +247,10 @@ class xe {
246
247
  return Y.book_append_sheet(r, d, "Collection"), r;
247
248
  }
248
249
  }
249
- const m = {
250
- sortBy: "_id",
251
- descending: !1,
252
- rowsPerPage: 1e3,
253
- page: 1,
254
- rowsNumber: 0
255
- }, Ve = { class: "px-24 flex flex-col gap-y-32 pb-24" }, we = { class: "flex items-center justify-end py-4 xs:hidden" }, De = /* @__PURE__ */ G({
250
+ const Ve = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Se = { class: "flex items-center justify-end py-4 xs:hidden" }, Me = /* @__PURE__ */ G({
256
251
  __name: "Collections",
257
252
  setup(f) {
258
- const r = ie(), d = Q(), S = p(), F = H(() => d.params.id), k = p(!1), { custom: _ } = J, E = [
253
+ const r = ie(), d = Q(), w = p(), F = H(() => d.params.id), k = p(!1), { custom: _ } = J, E = [
259
254
  {
260
255
  header: "ID/Code",
261
256
  accessorKey: "_id",
@@ -323,7 +318,7 @@ const m = {
323
318
  }, { tableMeta: a, rowData: A, onSort: B, debouncedFetchData: C, onSearch: c } = ue(q(F.value));
324
319
  async function x() {
325
320
  var n;
326
- await C(), (n = S.value) == null || n.showSheet(!1);
321
+ await C(), (n = w.value) == null || n.showSheet(!1);
327
322
  }
328
323
  async function D() {
329
324
  k.value || _(
@@ -346,9 +341,9 @@ const m = {
346
341
  F.value,
347
342
  V
348
343
  );
349
- for await (const w of M.resources) {
344
+ for await (const S of M.resources) {
350
345
  const h = {
351
- Id: (w == null ? void 0 : w.code) || ((v = w._id) == null ? void 0 : v.toString()) || ""
346
+ Id: (S == null ? void 0 : S.code) || ((v = S._id) == null ? void 0 : v.toString()) || ""
352
347
  };
353
348
  n.addRecord(h);
354
349
  }
@@ -373,7 +368,7 @@ const m = {
373
368
  await C();
374
369
  }), (n, l) => {
375
370
  const o = u("FmPageHead"), v = u("FmSearch");
376
- return y(), P(R, null, [
371
+ return y(), R(P, null, [
377
372
  s(o, {
378
373
  title: "Collections",
379
374
  "back-button": !0,
@@ -388,7 +383,7 @@ const m = {
388
383
  "onClick:back": l[0] || (l[0] = (i) => e(r).back()),
389
384
  "onClick:action": l[1] || (l[1] = (i) => {
390
385
  var V;
391
- i === "create" && ((V = e(S)) == null || V.showSheet(!0)), i === "export" && D();
386
+ i === "create" && ((V = e(w)) == null || V.showSheet(!0)), i === "export" && D();
392
387
  })
393
388
  }),
394
389
  b("div", Ve, [
@@ -402,7 +397,7 @@ const m = {
402
397
  placeholder: "Search",
403
398
  collapsible: ""
404
399
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
405
- b("div", we, [
400
+ b("div", Se, [
406
401
  s(v, {
407
402
  modelValue: e(a).searchValue,
408
403
  "onUpdate:modelValue": [
@@ -427,7 +422,7 @@ const m = {
427
422
  }, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"]),
428
423
  s(ye, {
429
424
  ref_key: "sheetRef",
430
- ref: S,
425
+ ref: w,
431
426
  onSuccess: x
432
427
  }, null, 512)
433
428
  ])
@@ -436,5 +431,5 @@ const m = {
436
431
  }
437
432
  });
438
433
  export {
439
- De as default
434
+ Me as default
440
435
  };
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as i, openBlock as l, createElementBlock as y, Fragment as h, createVNode as c, unref as t, createElementVNode as n, withCtx as C, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as g, createCommentVNode as z } from "vue";
2
2
  import { _ as G } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as J, components as O } from "@feedmepos/ui-library";
4
- import { p as Q, u as W } from "./loading-ChoC5E9d.js";
5
- import { u as X } from "./business-DNAVZOSH.js";
6
- import { u as Y } from "./campaign-Cv0HaUD1.js";
7
- import { g as V, a as L } from "./dto-CcrufW2j.js";
8
- import { u as Z } from "./vue-i18n-Bch1JmhI.js";
4
+ import { p as Q, u as W } from "./loading-DjEdwdnj.js";
5
+ import { u as X } from "./business-Cz78KGF2.js";
6
+ import { u as Y } from "./campaign-BBd4o7F_.js";
7
+ import { g as V, a as L } from "./dto-i04OPJfW.js";
8
+ import { u as Z } from "./vue-i18n-BhiDOB1j.js";
9
9
  import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjM81fmS.js";
11
- import { u as te } from "./template-DOKU1QkY.js";
12
- import { c as _ } from "./index-CsCgQ8gt.js";
10
+ import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-cGbwORhw.js";
11
+ import { u as te } from "./template-Bep5Y5ch.js";
12
+ import { c as _ } from "./index-DFAnoAe9.js";
13
13
  const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 }, fe = /* @__PURE__ */ n("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), ye = [
14
14
  fe
15
15
  ], ge = /* @__PURE__ */ n("img", {