@feedmepos/mf-connect 0.1.0-beta.3 → 0.1.0-beta.31

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 (99) hide show
  1. package/dist/Analytic-C-QC9ivZ.js +424 -0
  2. package/dist/{App-gzbM97vW.js → App-NASVRSh2.js} +397 -384
  3. package/dist/{Broadcast-BwYZkTs0.js → Broadcast-Cffg7nbY.js} +32 -32
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DIh9rz6T.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CA4kVwMl.js} +8 -8
  5. package/dist/Card-CmYFb1_Y.js +897 -0
  6. package/dist/{Collections-Df6tlo8S.js → Collections-CibvGIpU.js} +4 -4
  7. package/dist/{Credit-BPel8vA9.js → Credit-Ck6i9ySs.js} +14 -14
  8. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B35zbHHI.js +2198 -0
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BT8ucS5G.js → EffectSheet.vue_vue_type_style_index_0_lang-CQV77_cx.js} +8 -8
  11. package/dist/{Experience-CPpz1Zwx.js → Experience-CWUX2QvS.js} +8 -8
  12. package/dist/{Game-ByLblISC.js → Game-D3cdZrlc.js} +15 -15
  13. package/dist/Index-CWLZiYXT.js +255 -0
  14. package/dist/Marketing-Bol8eY5d.js +20070 -0
  15. package/dist/{Member-CCc_FEZY.js → Member-Cso-T2Xk.js} +4 -4
  16. package/dist/MemberList-Bqns9wko.js +1045 -0
  17. package/dist/{MemberTransactions-DD5ahSbY.js → MemberTransactions-zNw-30Xu.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DSPvWk4C.js → MessageInput.vue_vue_type_script_setup_true_lang-BLS5fNr6.js} +2 -2
  19. package/dist/{Mission-VH4057I-.js → Mission-C0-K0A_5.js} +98 -86
  20. package/dist/Overview-fZ9NvFKz.js +1024 -0
  21. package/dist/{Point-Bu3IlpH4.js → Point-D3gGhQlP.js} +23 -23
  22. package/dist/{Promotion-B45AOHis.js → Promotion-COCJIfu-.js} +53 -47
  23. package/dist/Record-C0a4Cn1U.js +209 -0
  24. package/dist/Reward-D0G4CBYd.js +411 -0
  25. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-zSOwxAcS.js +151 -0
  26. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-AmIdaAeX.js +1639 -0
  27. package/dist/Segment-eBM3aveX.js +567 -0
  28. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BgMuKAjE.js +181 -0
  29. package/dist/{Setting-CF09eRQJ.js → Setting-Dfye6fs5.js} +8 -8
  30. package/dist/Store-rQfwc8d6.js +1745 -0
  31. package/dist/{StoreRewards-0iGExjqQ.js → StoreRewards-DVTNMWdG.js} +12 -12
  32. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3dvBoXz2.js +957 -0
  33. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BEfxin47.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DxGIUrmO.js} +1 -1
  34. package/dist/{Tier-IaeWe7rM.js → Tier-DekrYu5l.js} +327 -317
  35. package/dist/{Title-DD67Zxh5.js → Title-oAWsBqoM.js} +199 -183
  36. package/dist/{Transaction-BsPDnLzB.js → Transaction-Ss2XCksi.js} +2 -2
  37. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-BMIqnBts.js +130 -0
  38. package/dist/{Voucher-M7JfcKo0.js → Voucher-CjPJxdw8.js} +31 -31
  39. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DlWCpoOp.js +419 -0
  40. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-k0lprU2i.js → ZodTextField.vue_vue_type_script_setup_true_lang-FXQNhMrv.js} +1 -1
  41. package/dist/{app-HFICF0vL.js → app-C_zlbFNe.js} +1285 -1283
  42. package/dist/{app-DwujUNP-.js → app-WUJQRyEM.js} +1 -1
  43. package/dist/app.js +1 -1
  44. package/dist/{business-BaF1QJXa.js → business-C0e_E2xp.js} +1 -1
  45. package/dist/{campaign-CTDtmAE9.js → campaign-iWzbtNA5.js} +2 -2
  46. package/dist/collectible.enum-QITAo8Jg.js +19 -0
  47. package/dist/{collection.fn-DMW03W4R.js → collection.fn-R3hvasuZ.js} +2 -2
  48. package/dist/{dto-gpaNZHzQ.js → dto-D_tjJ72q.js} +78 -86
  49. package/dist/{effect-CBUmtwet.js → effect-_bpW5fmr.js} +9 -9
  50. package/dist/email-addresses-DUKn8uD0.js +705 -0
  51. package/dist/{export-Bdh_PbsW.js → export-CEBWZ8ko.js} +3 -3
  52. package/dist/{helper-Cu9elRvl.js → helper-CuF45pbY.js} +1 -1
  53. package/dist/{index-NXiDu42U.js → index-BO8RnVxy.js} +1 -1
  54. package/dist/{index-CArqG03W.js → index-BPc3wxOE.js} +39 -35
  55. package/dist/index-BXTQ6onZ.js +1067 -0
  56. package/dist/index-C4aPU80a.js +38 -0
  57. package/dist/{index-At6yms5t.js → index-CBzSPD25.js} +30 -26
  58. package/dist/{index-Ch6XwPzF.js → index-CR0ZVZQG.js} +1 -1
  59. package/dist/{index-DrGrOgZB.js → index-CXFwMV0s.js} +13 -1
  60. package/dist/index-CsaQJMAR.js +66 -0
  61. package/dist/{index-Dfdg2Q3E.js → index-Dh6xIUXJ.js} +1 -1
  62. package/dist/{index-ogzk-Mj4.js → index-LMvyNoHf.js} +1 -1
  63. package/dist/{index-Crw-Vgo5.js → index-S6sFiBxK.js} +1500 -1479
  64. package/dist/index-SpDFfOz_.js +54 -0
  65. package/dist/{index-CtH2S49l.js → index-Urbp7cdO.js} +203 -195
  66. package/dist/index-pHbs1GrF.js +29000 -0
  67. package/dist/{index.esm2017-CeJpvUbA.js → index.esm2017-BunOalUj.js} +33 -33
  68. package/dist/{loading-Cn8ml_vy.js → loading-CYFsZ9UB.js} +591 -597
  69. package/dist/{membership-CX4AKMlH.js → membership-C9089j0H.js} +51 -43
  70. package/dist/money-D-zGFohv.js +15 -0
  71. package/dist/number-UFl4zW6h.js +12 -0
  72. package/dist/objectid-BKIyQ5iE.js +145 -0
  73. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  74. package/dist/reward-LYKGLzXz.js +36 -0
  75. package/dist/{rule-Cv83Y59R.js → rule-BUUKmR4_.js} +180 -177
  76. package/dist/{rule-builder-Dew4yB5Q.js → rule-builder-9JUuOcMH.js} +1 -1
  77. package/dist/style.css +1 -1
  78. package/dist/{template-CSnbgM1o.js → template-CkXuF0cN.js} +5 -5
  79. package/dist/trigger-DjAx9efN.js +114 -0
  80. package/dist/user-DbsZta3D.js +54 -0
  81. package/dist/{vue-i18n-CNH_IhVd.js → vue-i18n-yYO72Mbp.js} +2 -2
  82. package/dist/{xlsx-D4DUZHix.js → xlsx-Dagi6ArS.js} +1 -1
  83. package/package.json +8 -7
  84. package/dist/Analytic-BC5BA6pN.js +0 -622
  85. package/dist/Card-CBYQGKwY.js +0 -825
  86. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-PsrS7I0r.js +0 -2809
  87. package/dist/Marketing-D0vm80e_.js +0 -316
  88. package/dist/MemberList-CrnipE9y.js +0 -1733
  89. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Ijc2OYh9.js +0 -1753
  90. package/dist/Segment-ZWsp48aC.js +0 -437
  91. package/dist/Store-B_G6Dhmq.js +0 -1511
  92. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CaxUr9zl.js +0 -890
  93. package/dist/index-8MaN7rez.js +0 -762
  94. package/dist/index-BjdHxGDn.js +0 -298
  95. package/dist/index-CuvNtC_M.js +0 -61
  96. package/dist/index-RP0XOPRL.js +0 -29193
  97. package/dist/money-BTejgvKu.js +0 -15
  98. package/dist/number-Cen5TucC.js +0 -12
  99. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as N, ref as h, computed as U, onMounted as j, resolveComponent as r, openBlock as l, createElementBlock as y, Fragment as b, createVNode as i, unref as t, createElementVNode as n, withCtx as v, renderList as E, createBlock as w, resolveDynamicComponent as H, toDisplayString as d, createCommentVNode as q, h as z } from "vue";
2
2
  import { _ as G } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as J, components as Q } from "@feedmepos/ui-library";
4
- import { u as W, p as X } from "./loading-Cn8ml_vy.js";
5
- import { u as Y } from "./business-BaF1QJXa.js";
6
- import { u as Z } from "./campaign-CTDtmAE9.js";
7
- import { g as B, b as A } from "./dto-gpaNZHzQ.js";
8
- import { u as ee } from "./vue-i18n-CNH_IhVd.js";
4
+ import { u as W, p as X } from "./loading-CYFsZ9UB.js";
5
+ import { u as Y } from "./business-C0e_E2xp.js";
6
+ import { u as Z } from "./campaign-iWzbtNA5.js";
7
+ import { g as B, a as A } from "./dto-D_tjJ72q.js";
8
+ import { u as ee } from "./vue-i18n-yYO72Mbp.js";
9
9
  import { _ as te } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-PsrS7I0r.js";
11
- import { u as ae } from "./template-CSnbgM1o.js";
12
- import { c as _ } from "./index-NXiDu42U.js";
10
+ import { _ as ae } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B35zbHHI.js";
11
+ import { u as oe } from "./template-CkXuF0cN.js";
12
+ import { c as _ } from "./index-BO8RnVxy.js";
13
13
  const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 }, fe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, ge = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Re = /* @__PURE__ */ N({
14
14
  __name: "Broadcast",
15
15
  setup(he) {
@@ -18,7 +18,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
18
18
  value: "create",
19
19
  isPrimary: !0,
20
20
  prependIcon: "add"
21
- }, D = ae("BROADCAST", J()), R = Y(), m = Z(), { global: L, minor: x } = W, T = h((/* @__PURE__ */ new Date()).toISOString()), c = h({
21
+ }, D = oe("BROADCAST", J()), R = Y(), m = Z(), { global: L, minor: x } = W, T = h((/* @__PURE__ */ new Date()).toISOString()), c = h({
22
22
  searchKey: "",
23
23
  location: null
24
24
  }), f = U(
@@ -51,8 +51,8 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
51
51
  variant: "tertiary",
52
52
  icon: "delete",
53
53
  iconColor: "neutral-gray-400",
54
- onClick: (o) => {
55
- o.stopPropagation(), S(e.row.original);
54
+ onClick: (a) => {
55
+ a.stopPropagation(), S(e.row.original);
56
56
  }
57
57
  });
58
58
  }
@@ -72,10 +72,10 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
72
72
  );
73
73
  }
74
74
  async function g(e) {
75
- T.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await o() : D.open(async (p) => {
76
- await o(p);
75
+ T.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await a() : D.open(async (p) => {
76
+ await a(p);
77
77
  });
78
- async function o(p) {
78
+ async function a(p) {
79
79
  var u;
80
80
  (u = C.value) == null || u.showSheet(
81
81
  !0,
@@ -104,18 +104,18 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
104
104
  await L(async () => {
105
105
  await m.read("BROADCAST");
106
106
  });
107
- }), (e, o) => {
107
+ }), (e, a) => {
108
108
  const p = r("FmPageHead"), u = r("FmSearch"), O = r("FmTable"), F = r("FmButton"), $ = r("FmListItem"), P = r("FmList"), M = r("FmCard");
109
109
  return l(), y(b, null, [
110
110
  i(p, {
111
111
  title: t(s)("connect.campaign.broadcast.title"),
112
112
  actions: t(f).length > 0 ? [V] : [],
113
- "onClick:action": o[0] || (o[0] = () => g())
113
+ "onClick:action": a[0] || (a[0] = () => g())
114
114
  }, null, 8, ["title", "actions"]),
115
115
  n("div", ne, [
116
116
  i(u, {
117
117
  modelValue: t(c).searchKey,
118
- "onUpdate:modelValue": o[1] || (o[1] = (a) => t(c).searchKey = a),
118
+ "onUpdate:modelValue": a[1] || (a[1] = (o) => t(c).searchKey = o),
119
119
  class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
120
120
  placeholder: t(s)("connect.campaign.common.search"),
121
121
  collapsible: ""
@@ -125,7 +125,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
125
125
  n("div", ce, [
126
126
  i(te, {
127
127
  modelValue: t(c).location,
128
- "onUpdate:modelValue": o[2] || (o[2] = (a) => t(c).location = a),
128
+ "onUpdate:modelValue": a[2] || (a[2] = (o) => t(c).location = o),
129
129
  label: `${t(s)("connect.campaign.common.location")}: `,
130
130
  "show-item-label": !0,
131
131
  icon: "storefront",
@@ -135,7 +135,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
135
135
  ]),
136
136
  i(u, {
137
137
  modelValue: t(c).searchKey,
138
- "onUpdate:modelValue": o[3] || (o[3] = (a) => t(c).searchKey = a),
138
+ "onUpdate:modelValue": a[3] || (a[3] = (o) => t(c).searchKey = o),
139
139
  class: "xs:hidden",
140
140
  placeholder: "search",
141
141
  collapsible: ""
@@ -147,34 +147,34 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
147
147
  "column-defs": I,
148
148
  "search-value": t(c).searchKey,
149
149
  "column-filter": [],
150
- onRowClick: o[4] || (o[4] = (a) => g(a.original)),
150
+ onRowClick: a[4] || (a[4] = (o) => g(o.original)),
151
151
  "hide-footer": !0
152
152
  }, null, 8, ["row-data", "search-value"]),
153
153
  i(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
154
154
  default: v(() => [
155
155
  (l(!0), y(b, null, E(t(f).filter(
156
- (a) => a.name.toLowerCase().includes(t(c).searchKey.toLowerCase())
157
- ), (a) => (l(), w($, {
158
- key: a._id.toString(),
159
- onClick: (k) => g(a),
156
+ (o) => o.name.toLowerCase().includes(t(c).searchKey.toLowerCase())
157
+ ), (o) => (l(), w($, {
158
+ key: o._id.toString(),
159
+ onClick: (k) => g(o),
160
160
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
161
161
  }, {
162
162
  default: v(() => [
163
163
  n("div", ie, [
164
164
  n("div", re, [
165
- (l(), w(H(t(B)(a)))),
166
- n("div", le, d(a.currentReceive ?? 0) + " sent ", 1)
165
+ (l(), w(H(t(B)(o)))),
166
+ n("div", le, d(o.currentReceive ?? 0) + " sent ", 1)
167
167
  ]),
168
168
  n("div", me, [
169
- n("div", de, d(a.name), 1),
170
- n("div", pe, d(t(A)(a)), 1)
169
+ n("div", de, d(o.name), 1),
170
+ n("div", pe, d(t(A)(o)), 1)
171
171
  ])
172
172
  ]),
173
173
  i(F, {
174
174
  icon: "delete",
175
175
  "icon-color": "neutral-gray-400",
176
176
  variant: "tertiary",
177
- onClick: (k) => (k.stopPropagation(), S(a))
177
+ onClick: (k) => (k.stopPropagation(), S(o))
178
178
  }, null, 8, ["onClick"])
179
179
  ]),
180
180
  _: 2
@@ -191,7 +191,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
191
191
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
192
192
  }, {
193
193
  default: v(() => [
194
- o[6] || (o[6] = n("img", {
194
+ a[6] || (a[6] = n("img", {
195
195
  src: G,
196
196
  class: "aspect-square w-[150px]"
197
197
  }, null, -1)),
@@ -203,12 +203,12 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
203
203
  variant: "primary",
204
204
  label: t(s)("connect.campaign.broadcast.create.button"),
205
205
  icon: "add",
206
- onClick: o[5] || (o[5] = (a) => g())
206
+ onClick: a[5] || (a[5] = (o) => g())
207
207
  }, null, 8, ["label"])
208
208
  ]),
209
209
  _: 1
210
210
  })),
211
- i(oe, {
211
+ i(ae, {
212
212
  ref_key: "sheetRef",
213
213
  ref: C,
214
214
  "onSubmit:modelValue": K
@@ -1,13 +1,13 @@
1
- import { R as RuleOperator, _ } from "./index-Crw-Vgo5.js";
2
- import { i as isRuleGroup } from "./rule-builder-Dew4yB5Q.js";
1
+ import { R as RuleOperator, _ } from "./index-S6sFiBxK.js";
2
+ import { i as isRuleGroup } from "./rule-builder-9JUuOcMH.js";
3
3
  import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
4
4
  import { useDialog } from "@feedmepos/ui-library";
5
- import "./index-At6yms5t.js";
6
- import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-8MaN7rez.js";
7
- import "./index-CArqG03W.js";
8
- import "./index-CtH2S49l.js";
9
- import "./index-BjdHxGDn.js";
10
- import "./index-ogzk-Mj4.js";
5
+ import "./index-CBzSPD25.js";
6
+ import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-BXTQ6onZ.js";
7
+ import "./index-BPc3wxOE.js";
8
+ import "./index-Urbp7cdO.js";
9
+ import "./index-LMvyNoHf.js";
10
+ import "./index-SpDFfOz_.js";
11
11
  function validateRule(data, r, date) {
12
12
  const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
13
13
  function meetConditions(e) {