@feedmepos/mf-connect 0.0.16-beta.10 → 0.0.16-beta.11

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 (86) hide show
  1. package/dist/{Analytic-BVk0jPDU.js → Analytic-Gq7PoNer.js} +32 -20
  2. package/dist/{App-BbAalq1k.js → App-Cikl5jnp.js} +33 -27
  3. package/dist/Broadcast-DU3JnBwZ.js +223 -0
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DiU3MnH0.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0I8IZIR.js} +18 -11
  5. package/dist/Card-hIeQ5XUH.js +825 -0
  6. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
  7. package/dist/Collections-B1SC1rr7.js +453 -0
  8. package/dist/{Credit-Bc9EzdsC.js → Credit-BgwI8DR3.js} +78 -69
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D9VR3P2d.js +2788 -0
  10. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DPgu45MD.js +344 -0
  11. package/dist/{Experience-CgKak5ik.js → Experience-C2Q-zqV6.js} +64 -55
  12. package/dist/{Game-QhfKqrN_.js → Game-DU2pZDGk.js} +54 -45
  13. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  14. package/dist/JsonViewer-v8_C7l5N.js +87 -0
  15. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +18737 -0
  16. package/dist/MainLayout-B1aJoR95.js +41 -0
  17. package/dist/{Marketing-CSx4N7UJ.js → Marketing-DWiTQp9I.js} +79 -72
  18. package/dist/{Member-CY6WMD8D.js → Member-BEXKBFry.js} +25 -22
  19. package/dist/{MemberList-8iRwm7Sz.js → MemberList-DzMdajIf.js} +321 -307
  20. package/dist/{MemberTransactions-CknqkWO3.js → MemberTransactions-Bciankuu.js} +1 -1
  21. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-DH25Hfk3.js +432 -0
  22. package/dist/{Mission-BTy1p7lU.js → Mission-KzwRlaA5.js} +50 -40
  23. package/dist/{Point-A6B_ggSy.js → Point-CSKvZXHc.js} +67 -58
  24. package/dist/Promotion-IiwPhx8p.js +221 -0
  25. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-4zIO3oCr.js +1751 -0
  26. package/dist/{Segment-CFVXtyEj.js → Segment-2Q0PonBb.js} +145 -130
  27. package/dist/{Setting-Jmtw-_DV.js → Setting-Df5vVRt4.js} +167 -154
  28. package/dist/{Store-DQypT-7e.js → Store-C0WXCKs6.js} +504 -489
  29. package/dist/{StoreRewards-M-utm0iI.js → StoreRewards-eSSIO0nk.js} +124 -108
  30. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-B60mQ5kq.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BjnCRKGX.js} +131 -123
  31. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-b0xTcoEp.js +139 -0
  32. package/dist/{Tier-D1jymeLK.js → Tier-v-1FkRU-.js} +144 -125
  33. package/dist/{Title-DN9DIP2k.js → Title-CQ2JWqBW.js} +107 -90
  34. package/dist/{Transaction-BAJvAoU6.js → Transaction-0OouN_6s.js} +2 -2
  35. package/dist/Voucher-CL0cgogx.js +488 -0
  36. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +55 -0
  37. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  38. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  39. package/dist/app-Bd19eW7X.js +5381 -0
  40. package/dist/app-CfS25Z66.js +34797 -0
  41. package/dist/app-wDQR6dpb.js +39 -0
  42. package/dist/app.js +2 -1
  43. package/dist/business-dQh3AEot.js +78 -0
  44. package/dist/campaign-BOl8AgKA.js +96 -0
  45. package/dist/campaign-CpzFl8Vr.js +4 -0
  46. package/dist/collection.fn-B_YsXmrP.js +26 -0
  47. package/dist/dto-B8NfyVPG.js +1169 -0
  48. package/dist/effect-C2jCStXO.js +61 -0
  49. package/dist/{export-DjeNY5Pc.js → export-BtZc3Yzh.js} +19 -16
  50. package/dist/helper-8oGsrM56.js +71 -0
  51. package/dist/index-6FkKY3q0.js +73 -0
  52. package/dist/index-C7oeXRUl.js +95 -0
  53. package/dist/index-CZKYIefW.js +203 -0
  54. package/dist/index-C_0IFnwi.js +2071 -0
  55. package/dist/index-CuvNtC_M.js +61 -0
  56. package/dist/index-DCixRRvz.js +761 -0
  57. package/dist/index-DFgt4-VW.js +38 -0
  58. package/dist/index-DYDhH9bi.js +8832 -0
  59. package/dist/index-Dbd4WA4r.js +61 -0
  60. package/dist/index-Di-kWSmf.js +1737 -0
  61. package/dist/index-Dn0jdj0o.js +28058 -0
  62. package/dist/index-DwKqFNF6.js +3 -0
  63. package/dist/index-HoacsZDk.js +291 -0
  64. package/dist/index-UTQHDUdW.js +94 -0
  65. package/dist/loading-D_AN6p24.js +32697 -0
  66. package/dist/lodash-B5I3zXaY.js +3678 -0
  67. package/dist/membership-Ccrx9R6r.js +221 -0
  68. package/dist/moment-BWErdI6_.js +2578 -0
  69. package/dist/money-waD-f-Zz.js +15 -0
  70. package/dist/number-CwTGGsh9.js +12 -0
  71. package/dist/object-qECH92oz.js +26 -0
  72. package/dist/objectId-dwaoBfJX.js +7 -0
  73. package/dist/rule-DJ07h3Gh.js +1973 -0
  74. package/dist/rule-builder-DJ-acvVD.js +89 -0
  75. package/dist/template-clxvNnbF.js +190 -0
  76. package/dist/usePagination-BeF5K3M7.js +223 -0
  77. package/dist/vue-i18n-BxwiXSkp.js +2365 -0
  78. package/dist/xlsx-BB366cdN.js +15491 -0
  79. package/dist/zod-W_PvIofQ.js +90 -0
  80. package/package.json +2 -2
  81. package/dist/Card-B5in1RMa.js +0 -805
  82. package/dist/Collections-CFCZ9YIG.js +0 -4
  83. package/dist/MainLayout-JbHzENFy.js +0 -4
  84. package/dist/app-BpzzygYP.js +0 -87765
  85. package/dist/money-DKGIIplY.js +0 -15
  86. package/dist/number-tPodRxTN.js +0 -12
@@ -1,68 +1,77 @@
1
- import { defineComponent as U, ref as S, computed as j, h as M, onMounted as A, resolveComponent as i, openBlock as c, createElementBlock as f, Fragment as h, createVNode as l, unref as a, createElementVNode as n, withCtx as C, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as g, createCommentVNode as z } from "vue";
2
- import { u as G, M as J, b as O, h as Q, v as V, w as L, B as W, c as _, N as X, j as Y, y as Z, e as ee } from "./app-BpzzygYP.js";
3
- import { useDialog as te, components as oe } from "@feedmepos/ui-library";
4
- const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { 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 }, he = /* @__PURE__ */ U({
1
+ import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as l, openBlock as c, createElementBlock as y, Fragment as h, createVNode as i, unref as a, createElementVNode as n, withCtx as C, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as g, createCommentVNode as z } from "vue";
2
+ import { _ as G } from "./campaign-CpzFl8Vr.js";
3
+ import { useDialog as J, components as O } from "@feedmepos/ui-library";
4
+ import { p as Q, u as W } from "./loading-D_AN6p24.js";
5
+ import { u as X } from "./business-dQh3AEot.js";
6
+ import { u as Y } from "./campaign-BOl8AgKA.js";
7
+ import { g as V, b as L } from "./dto-B8NfyVPG.js";
8
+ import { u as Z } from "./vue-i18n-BxwiXSkp.js";
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-D9VR3P2d.js";
11
+ import { u as te } from "./template-clxvNnbF.js";
12
+ import { c as _ } from "./index-UTQHDUdW.js";
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" }, ie = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { 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 }, Ve = /* @__PURE__ */ N({
5
14
  __name: "Credit",
6
- setup(ye) {
7
- const { t: s } = G(), I = {
8
- label: s("connect.program.common.actions.create", {
9
- type: s("connect.program.credit.title").toLowerCase()
15
+ setup(fe) {
16
+ const { t: r } = Z(), I = {
17
+ label: r("connect.program.common.actions.create", {
18
+ type: r("connect.program.credit.title").toLowerCase()
10
19
  }),
11
20
  value: "create",
12
21
  isPrimary: !0,
13
22
  prependIcon: "add"
14
- }, B = J("CREDIT", te()), R = O(), m = Q(), { global: D, minor: w } = ee, r = S({
23
+ }, R = te("CREDIT", J()), B = X(), m = Y(), { global: D, minor: w } = W, s = S({
15
24
  searchKey: "",
16
25
  location: null
17
26
  }), d = j(
18
27
  () => m.campaigns.credit.filter(
19
- (e) => !r.value.location || !e.targetLocation || e.targetLocation.includes(r.value.location)
28
+ (e) => !s.value.location || !e.targetLocation || e.targetLocation.includes(s.value.location)
20
29
  )
21
30
  ), T = [
22
31
  {
23
- header: s("connect.program.common.table.title"),
32
+ header: r("connect.program.common.table.title"),
24
33
  accessorFn: (e) => e.name
25
34
  },
26
35
  {
27
- header: s("connect.program.common.table.status"),
36
+ header: r("connect.program.common.table.status"),
28
37
  cell(e) {
29
38
  return V(e.row.original);
30
39
  }
31
40
  },
32
41
  {
33
- header: s("connect.program.common.table.summary"),
42
+ header: r("connect.program.common.table.summary"),
34
43
  accessorFn: (e) => L(e)
35
44
  },
36
45
  {
37
- header: s("connect.program.common.table.actions"),
46
+ header: r("connect.program.common.table.actions"),
38
47
  cell(e) {
39
- return M(oe.FmButton, {
48
+ return M(O.FmButton, {
40
49
  variant: "tertiary",
41
50
  icon: "delete",
42
51
  iconColor: "neutral-gray-400",
43
- onClick: (t) => {
44
- t.stopPropagation(), x(e.row.original);
52
+ onClick: (o) => {
53
+ o.stopPropagation(), x(e.row.original);
45
54
  }
46
55
  });
47
56
  }
48
57
  }
49
58
  ], b = S();
50
59
  async function x(e) {
51
- await W.remove(s("program.common.remove.confirm", { name: e.name })) && await w(
60
+ await Q.remove(r("program.common.remove.confirm", { name: e.name })) && await w(
52
61
  async () => {
53
62
  await _.delete(e._id), await m.read("CREDIT");
54
63
  },
55
64
  {
56
- message: s("program.common.remove.removing", { name: e.name }),
57
- successMessage: s("program.common.remove.removed", { name: e.name })
65
+ message: r("program.common.remove.removing", { name: e.name }),
66
+ successMessage: r("program.common.remove.removed", { name: e.name })
58
67
  }
59
68
  );
60
69
  }
61
- async function y(e) {
62
- e ? await t() : B.open(async (p) => {
63
- await t(p);
70
+ async function f(e) {
71
+ e ? await o() : R.open(async (p) => {
72
+ await o(p);
64
73
  });
65
- async function t(p) {
74
+ async function o(p) {
66
75
  var u;
67
76
  (u = b.value) == null || u.showSheet(
68
77
  !0,
@@ -87,78 +96,78 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
87
96
  await D(async () => {
88
97
  await m.read("CREDIT");
89
98
  });
90
- }), (e, t) => {
91
- const p = i("FmPageHead"), u = i("FmSearch"), K = i("FmTable"), F = i("FmButton"), $ = i("FmListItem"), N = i("FmList"), P = i("FmCard");
92
- return c(), f(h, null, [
93
- l(p, {
94
- title: a(s)("connect.program.credit.title"),
99
+ }), (e, o) => {
100
+ const p = l("FmPageHead"), u = l("FmSearch"), K = l("FmTable"), F = l("FmButton"), $ = l("FmListItem"), P = l("FmList"), U = l("FmCard");
101
+ return c(), y(h, null, [
102
+ i(p, {
103
+ title: a(r)("connect.program.credit.title"),
95
104
  actions: a(d).length > 0 ? [I] : [],
96
- "onClick:action": t[0] || (t[0] = () => y())
105
+ "onClick:action": o[0] || (o[0] = () => f())
97
106
  }, null, 8, ["title", "actions"]),
98
107
  n("div", ae, [
99
- l(u, {
100
- modelValue: a(r).searchKey,
101
- "onUpdate:modelValue": t[1] || (t[1] = (o) => a(r).searchKey = o),
108
+ i(u, {
109
+ modelValue: a(s).searchKey,
110
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => a(s).searchKey = t),
102
111
  class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
103
112
  placeholder: "search",
104
113
  collapsible: ""
105
114
  }, null, 8, ["modelValue"]),
106
- a(m).campaigns.credit && a(m).campaigns.credit.length > 0 ? (c(), f(h, { key: 0 }, [
115
+ a(m).campaigns.credit && a(m).campaigns.credit.length > 0 ? (c(), y(h, { key: 0 }, [
107
116
  n("div", ne, [
108
- n("div", se, [
109
- l(X, {
110
- modelValue: a(r).location,
111
- "onUpdate:modelValue": t[2] || (t[2] = (o) => a(r).location = o),
117
+ n("div", re, [
118
+ i(ee, {
119
+ modelValue: a(s).location,
120
+ "onUpdate:modelValue": o[2] || (o[2] = (t) => a(s).location = t),
112
121
  label: "Location: ",
113
122
  "show-item-label": !0,
114
123
  icon: "storefront",
115
124
  placement: "bottom-start",
116
- items: a(R).locationItems
125
+ items: a(B).locationItems
117
126
  }, null, 8, ["modelValue", "items"])
118
127
  ]),
119
- l(u, {
120
- modelValue: a(r).searchKey,
121
- "onUpdate:modelValue": t[3] || (t[3] = (o) => a(r).searchKey = o),
128
+ i(u, {
129
+ modelValue: a(s).searchKey,
130
+ "onUpdate:modelValue": o[3] || (o[3] = (t) => a(s).searchKey = t),
122
131
  class: "xs:hidden",
123
132
  placeholder: "search",
124
133
  collapsible: ""
125
134
  }, null, 8, ["modelValue"])
126
135
  ]),
127
- l(K, {
136
+ i(K, {
128
137
  class: "xs:hidden",
129
138
  "row-data": a(d),
130
139
  "column-defs": T,
131
- "search-value": a(r).searchKey,
140
+ "search-value": a(s).searchKey,
132
141
  "column-filter": [],
133
- onRowClick: t[4] || (t[4] = (o) => y(o.original)),
142
+ onRowClick: o[4] || (o[4] = (t) => f(t.original)),
134
143
  "hide-footer": a(d).length < 10
135
144
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
136
- l(N, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
145
+ i(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
137
146
  default: C(() => [
138
- (c(!0), f(h, null, H(a(d).filter(
139
- (o) => o.name.toLowerCase().includes(a(r).searchKey.toLowerCase())
140
- ), (o) => (c(), v($, {
141
- key: o._id.toString(),
142
- onClick: (k) => y(o),
147
+ (c(!0), y(h, null, H(a(d).filter(
148
+ (t) => t.name.toLowerCase().includes(a(s).searchKey.toLowerCase())
149
+ ), (t) => (c(), v($, {
150
+ key: t._id.toString(),
151
+ onClick: (k) => f(t),
143
152
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
144
153
  }, {
145
154
  default: C(() => [
146
- n("div", re, [
147
- n("div", le, [
148
- (c(), v(q(a(V)(o)))),
149
- n("div", ie, g(o.currentReceive ?? 0) + " used ", 1)
155
+ n("div", se, [
156
+ n("div", ie, [
157
+ (c(), v(q(a(V)(t)))),
158
+ n("div", le, g(t.currentReceive ?? 0) + " used ", 1)
150
159
  ]),
151
160
  n("div", ce, [
152
- n("div", me, g(o.name), 1),
153
- n("div", de, g(a(L)(o)), 1)
161
+ n("div", me, g(t.name), 1),
162
+ n("div", de, g(a(L)(t)), 1)
154
163
  ]),
155
- n("div", pe, " Credit received: " + g(o.currentReceive ?? 0), 1)
164
+ n("div", pe, " Credit received: " + g(t.currentReceive ?? 0), 1)
156
165
  ]),
157
- l(F, {
166
+ i(F, {
158
167
  icon: "delete",
159
168
  "icon-color": "neutral-gray-400",
160
169
  variant: "tertiary",
161
- onClick: (k) => (k.stopPropagation(), x(o))
170
+ onClick: (k) => (k.stopPropagation(), x(t))
162
171
  }, null, 8, ["onClick"])
163
172
  ]),
164
173
  _: 2
@@ -166,33 +175,33 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
166
175
  ]),
167
176
  _: 1
168
177
  }),
169
- a(d).length == 0 ? (c(), f("div", ue, t[6] || (t[6] = [
178
+ a(d).length == 0 ? (c(), y("div", ue, o[6] || (o[6] = [
170
179
  n("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1)
171
180
  ]))) : z("", !0)
172
- ], 64)) : (c(), v(P, {
181
+ ], 64)) : (c(), v(U, {
173
182
  key: 1,
174
183
  variant: "outlined",
175
184
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
176
185
  }, {
177
186
  default: C(() => [
178
- t[7] || (t[7] = n("img", {
179
- src: Y,
187
+ o[7] || (o[7] = n("img", {
188
+ src: G,
180
189
  class: "aspect-square w-[150px]"
181
190
  }, null, -1)),
182
- t[8] || (t[8] = n("div", { class: "flex flex-col gap-16 text-center" }, [
191
+ o[8] || (o[8] = n("div", { class: "flex flex-col gap-16 text-center" }, [
183
192
  n("div", { class: "fm-typo-en-title-sm-800" }, "Create your credit program"),
184
193
  n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Credits are virtual money that customers can use to pay for their purchases, similar to cash within your store. ")
185
194
  ], -1)),
186
- l(F, {
195
+ i(F, {
187
196
  variant: "primary",
188
197
  label: "Create credit program",
189
198
  icon: "add",
190
- onClick: t[5] || (t[5] = (o) => y())
199
+ onClick: o[5] || (o[5] = (t) => f())
191
200
  })
192
201
  ]),
193
202
  _: 1
194
203
  })),
195
- l(Z, {
204
+ i(oe, {
196
205
  ref_key: "sheetRef",
197
206
  ref: b,
198
207
  "onSubmit:modelValue": E
@@ -203,5 +212,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
203
212
  }
204
213
  });
205
214
  export {
206
- he as default
215
+ Ve as default
207
216
  };