@feedmepos/mf-connect 0.1.0-beta.9 → 0.1.1-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 (102) hide show
  1. package/dist/Analytic-C2etD-eu.js +620 -0
  2. package/dist/{App-DQUbRsdA.js → App-DlRvkDpN.js} +58 -59
  3. package/dist/Broadcast-DpCGUS6r.js +216 -0
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D-BFllvG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cj4IcH5D.js} +20 -20
  5. package/dist/Card-DjGC6jmq.js +823 -0
  6. package/dist/Collections-Q2pYWnJF.js +440 -0
  7. package/dist/Credit-DOIq2VYW.js +214 -0
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C_ZKNWzb.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D7ML8ePp.js} +1010 -1026
  9. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CyxWG5I7.js +344 -0
  10. package/dist/Experience-DUst4I0H.js +211 -0
  11. package/dist/Game-CXnQR-wV.js +250 -0
  12. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
  13. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → MainLayout-DpZC6o3R.js} +53 -19
  14. package/dist/Marketing-CZfHsMFC.js +309 -0
  15. package/dist/Member-CX5Ohgeg.js +92 -0
  16. package/dist/MemberList-D8I3SaAs.js +1040 -0
  17. package/dist/MemberOverview-C2n9oJZh.js +58 -0
  18. package/dist/{MemberTransactions-zSxSnUkK.js → MemberTransactions-DfZNbCHD.js} +1 -1
  19. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-BxFVEoBX.js +203 -0
  20. package/dist/Mission-S1pwDbqp.js +248 -0
  21. package/dist/Point-BdLUcGZy.js +220 -0
  22. package/dist/Promotion-DWAeQGkU.js +244 -0
  23. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CTKKhH-r.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dux_NMO5.js} +577 -568
  24. package/dist/Segment-CXSE8Bzf.js +560 -0
  25. package/dist/Setting-CLuXuEId.js +1870 -0
  26. package/dist/Store-Be3cui0S.js +1533 -0
  27. package/dist/StoreRewards-zFy_w8p4.js +429 -0
  28. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-2Jqj_rKv.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DxGJKgbc.js} +10 -10
  29. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BkdSj0cX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dreo45H1.js} +1 -1
  30. package/dist/{Tier-Cpl0FV8L.js → Tier-ChzcISYF.js} +453 -481
  31. package/dist/{Title-CbMDd1Et.js → Title-DQSjhBkT.js} +295 -314
  32. package/dist/Transaction-CeWmWpN_.js +36 -0
  33. package/dist/Voucher-BkLIxiZN.js +485 -0
  34. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
  35. package/dist/app-CLNirPsB.js +2974 -0
  36. package/dist/{app-VxaUCtgl.js → app-DuNsy0aC.js} +1 -1
  37. package/dist/app.js +3 -5
  38. package/dist/{business-DR7jpnLz.js → business-COGiTmLD.js} +1 -1
  39. package/dist/{campaign-MqcTb329.js → campaign-BHZMjQi5.js} +3 -5
  40. package/dist/{collection.fn-CvEoe61K.js → collection.fn-sAxtYO_r.js} +2 -2
  41. package/dist/dto-ndeeV_nc.js +1145 -0
  42. package/dist/{effect-BjjQeiQg.js → effect-BQt0rkdT.js} +9 -9
  43. package/dist/email-addresses-B3PazwKs.js +705 -0
  44. package/dist/{export-B8cvWh5n.js → export-D6r-xNji.js} +3 -3
  45. package/dist/{helper-DfgVNY7B.js → helper-CrjQw_Et.js} +1 -1
  46. package/dist/{index-CWR3qYjb.js → index-Btlj28Vg.js} +1 -1
  47. package/dist/{index-C7zMfUgy.js → index-Buy-yvAZ.js} +319 -304
  48. package/dist/{index-0UYoh1-7.js → index-C3AAy__p.js} +1 -1
  49. package/dist/index-CHAaFSD2.js +11 -0
  50. package/dist/{index-Dap5R3vr.js → index-Cg3RFxc9.js} +91 -102
  51. package/dist/{index-2P9w5u3m.js → index-CqpEhMr6.js} +4 -4
  52. package/dist/{index-BsfWRB8R.js → index-CvHj-wYi.js} +1 -1
  53. package/dist/index-DGLmbBnE.js +28997 -0
  54. package/dist/{index-CJ8Uh2Ja.js → index-DXpd07G3.js} +3 -3
  55. package/dist/{index-B5NufbUt.js → index-Daax_BQa.js} +1 -1
  56. package/dist/{index-C2JNcGc-.js → index-DrLEuIe1.js} +281 -299
  57. package/dist/{index-DBy30v8N.js → index-tSEYvA-2.js} +3 -3
  58. package/dist/{index.esm2017-D1X3PgpO.js → index.esm2017-a5BlZ76G.js} +55 -55
  59. package/dist/{loading-CJ3nOovJ.js → loading-B3XGyQ8W.js} +460 -469
  60. package/dist/{membership-B1cmSRyk.js → membership-GIOJ1ptN.js} +3 -3
  61. package/dist/money-z7VwzhZP.js +15 -0
  62. package/dist/number-DHYb2ua_.js +12 -0
  63. package/dist/{rule-builder-CSmOONdb.js → rule-builder-CcsWd5r9.js} +1 -1
  64. package/dist/{rule-ChWyR-0j.js → rule-iIEblTE4.js} +179 -177
  65. package/dist/style.css +1 -1
  66. package/dist/{template-Cug7aRK0.js → template-DMRMDZOW.js} +63 -63
  67. package/dist/{xlsx-CfgPFFvp.js → usePagination-CNFe0T2B.js} +3176 -2955
  68. package/package.json +5 -8
  69. package/dist/Analytic-CMXUjK_F.js +0 -622
  70. package/dist/Broadcast-DowFtHv6.js +0 -223
  71. package/dist/Card-C7rhL0pV.js +0 -825
  72. package/dist/Collections-B-1wlk3r.js +0 -453
  73. package/dist/Credit-DDjozmoF.js +0 -220
  74. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-pwMuIgs5.js +0 -345
  75. package/dist/Experience-BbE-c1Op.js +0 -221
  76. package/dist/Game-DQdRpaN-.js +0 -255
  77. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
  78. package/dist/MainLayout-B1aJoR95.js +0 -41
  79. package/dist/Marketing-Dgmxzg4h.js +0 -316
  80. package/dist/Member-w23oRVwN.js +0 -69
  81. package/dist/MemberList-BLIdjznQ.js +0 -1735
  82. package/dist/MemberOverview-wL_ailso.js +0 -58
  83. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Dy_lMdZA.js +0 -432
  84. package/dist/Mission-Cjt0E083.js +0 -261
  85. package/dist/Point-CQJL3Ewu.js +0 -222
  86. package/dist/Promotion-BYViH3bu.js +0 -247
  87. package/dist/Segment-B9Jj1ak0.js +0 -437
  88. package/dist/Setting-DXWbgRxs.js +0 -1901
  89. package/dist/Store-Dswk2e_z.js +0 -1511
  90. package/dist/StoreRewards-CNUhG_Ue.js +0 -401
  91. package/dist/Transaction-BB-kk-84.js +0 -39
  92. package/dist/Voucher-b1_Jlm6X.js +0 -490
  93. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-pG-SrXp9.js +0 -56
  94. package/dist/app-DCHKJoql.js +0 -5639
  95. package/dist/dto-jcK3TGB7.js +0 -2770
  96. package/dist/index-Cv7pLAYq.js +0 -3
  97. package/dist/index-LrSSauN2.js +0 -29193
  98. package/dist/money-BEATdGS6.js +0 -15
  99. package/dist/number-CeAYAKCp.js +0 -12
  100. package/dist/usePagination-BeF5K3M7.js +0 -223
  101. package/dist/vue-i18n-BRhKDHdF.js +0 -2365
  102. package/dist/zod-Bg2FbC-D.js +0 -90
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .json-viewer[data-v-d8502b13]{font-family:monospace;white-space:pre-wrap}.fm-effect-sheet>div{padding:0!important;border-radius:0!important}.fm-effect-sheet>div>div>div{padding:0!important}.unlayer-editor[data-v-a9a2bb94]{flex:1;display:flex}.tab-option-selected[data-v-4c2ef18e]{background-color:var(--fm-color-system-orange-100)}::-webkit-scrollbar{height:4px!important;width:8px!important}::-webkit-scrollbar-thumb{background:var(--fm-color-neutral-gray-200)!important;border-radius:1000px!important}.fm-top-sheet--fullscreen-lg{gap:0px!important;padding-bottom:0!important}
1
+ .json-viewer[data-v-d8502b13]{font-family:monospace;white-space:pre-wrap}.fm-effect-sheet>div{padding:0!important;border-radius:0!important}.fm-effect-sheet>div>div>div{padding:0!important}.tab-option-selected[data-v-4c2ef18e]{background-color:var(--fm-color-system-orange-100)}::-webkit-scrollbar{height:4px!important;width:8px!important}::-webkit-scrollbar-thumb{background:var(--fm-color-neutral-gray-200)!important;border-radius:1000px!important}.fm-top-sheet--fullscreen-lg{gap:0px!important;padding-bottom:0!important}
@@ -1,11 +1,11 @@
1
- import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as D, unref as e, ref as E, computed as I, onMounted as j, resolveComponent as c, withCtx as d, createElementVNode as l, createElementBlock as w, createVNode as i, normalizeClass as h, createTextVNode as T, Fragment as S, renderList as N, toDisplayString as g, createCommentVNode as M } from "vue";
2
- import { u as P } from "./campaign-MqcTb329.js";
1
+ import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as D, unref as e, ref as E, computed as I, onMounted as j, resolveComponent as m, withCtx as d, createElementVNode as s, createElementBlock as h, createVNode as a, normalizeClass as w, createTextVNode as T, Fragment as S, renderList as N, toDisplayString as g, createCommentVNode as M } from "vue";
2
+ import { u as P } from "./campaign-BHZMjQi5.js";
3
3
  import { useDialog as q } from "@feedmepos/ui-library";
4
- import { F as J } from "./index-C2JNcGc-.js";
5
- import { C as A } from "./collection.fn-CvEoe61K.js";
4
+ import { F as J } from "./index-DrLEuIe1.js";
5
+ import { C as A } from "./collection.fn-sAxtYO_r.js";
6
6
  import { s as V } from "./index-CuvNtC_M.js";
7
7
  import { _ as G } from "./lodash-B5I3zXaY.js";
8
- import { C as H } from "./dto-jcK3TGB7.js";
8
+ import { C as H } from "./dto-ndeeV_nc.js";
9
9
  import { J as U } from "./JsonViewer-v8_C7l5N.js";
10
10
  const K = /* @__PURE__ */ L({
11
11
  __name: "CampaignChip",
@@ -13,13 +13,13 @@ const K = /* @__PURE__ */ L({
13
13
  type: { type: String, required: !0 }
14
14
  },
15
15
  setup(u) {
16
- const a = H[u.type];
17
- return (o, t) => (r(), C(D(e(a).chip())));
16
+ const i = H[u.type];
17
+ return (n, t) => (r(), C(D(e(i).chip())));
18
18
  }
19
19
  }), Q = { class: "flex flex-nowrap gap-x-2 grow h-full" }, R = {
20
20
  key: 0,
21
21
  class: "p-8 w-1/4"
22
- }, W = { class: "flex flex-col grow p-24" }, X = { class: "space-y-4" }, Y = { class: "fm-typo-en-title-sm-800" }, Z = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, ee = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, te = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, ne = { class: "fm-typo-en-title-sm-800" }, oe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, se = { class: "flex gap-4 items-end justify-end py-8" }, le = /* @__PURE__ */ L({
22
+ }, W = { class: "flex flex-col grow p-24" }, X = { class: "space-y-4" }, Y = { class: "fm-typo-en-title-sm-800" }, Z = /* @__PURE__ */ s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Get started faster with templates that flex with your business. ", -1), ee = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, te = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ne = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, oe = { class: "fm-typo-en-title-sm-800" }, se = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, le = { class: "flex gap-4 items-end justify-end py-8" }, ae = /* @__PURE__ */ L({
23
23
  __name: "TemplateDialog",
24
24
  props: {
25
25
  campaignType: {
@@ -33,72 +33,72 @@ const K = /* @__PURE__ */ L({
33
33
  }
34
34
  },
35
35
  setup(u) {
36
- const p = q(), a = P(), o = u, t = E({
36
+ const p = q(), i = P(), n = u, t = E({
37
37
  intention: null,
38
38
  template: null
39
39
  }), b = I(() => {
40
- const m = (a.templates ?? []).filter(
40
+ const c = (i.templates ?? []).filter(
41
41
  () => !0
42
42
  //t.intention && t.intention.length > 0
43
43
  );
44
- return o.campaignType ? m.filter(
45
- (n) => {
46
- var y, f;
47
- return ((f = (y = n.defaultValue) == null ? void 0 : y.campaign) == null ? void 0 : f.type) === o.campaignType;
44
+ return n.campaignType ? c.filter(
45
+ (l) => {
46
+ var _, f;
47
+ return ((f = (_ = l.defaultValue) == null ? void 0 : _.campaign) == null ? void 0 : f.type) === n.campaignType;
48
48
  }
49
- ) : t.value.intention === null ? G.sampleSize(m, 7) : m.filter(
50
- (n) => n.intention.includes(t.value.intention)
49
+ ) : t.value.intention === null ? G.sampleSize(c, 7) : c.filter(
50
+ (l) => l.intention.includes(t.value.intention)
51
51
  );
52
52
  });
53
53
  j(async () => {
54
- await a.readTemplates();
54
+ await i.readTemplates();
55
55
  });
56
56
  function O() {
57
- o.onOk(void 0), p.close();
57
+ n.onOk(void 0), p.close();
58
58
  }
59
59
  function $() {
60
- const m = t.value.template;
61
- o.onOk(a.templates.find((n) => n._id === m)), p.close();
60
+ const c = t.value.template;
61
+ n.onOk(i.templates.find((l) => l._id === c)), p.close();
62
62
  }
63
- return (m, n) => {
64
- const y = c("FmChip"), f = c("FmListItem"), z = c("FmList"), k = c("FmCard"), v = c("FmButton"), B = c("FmSpacer");
63
+ return (c, l) => {
64
+ const _ = m("FmChip"), f = m("FmListItem"), z = m("FmList"), k = m("FmCard"), v = m("FmButton"), B = m("FmSpacer");
65
65
  return r(), C(k, { class: "h-[534px] max-w-6xl" }, {
66
66
  default: d(() => [
67
- l("div", Q, [
68
- o.campaignType ? M("", !0) : (r(), w("div", R, [
69
- i(z, null, {
67
+ s("div", Q, [
68
+ n.campaignType ? M("", !0) : (r(), h("div", R, [
69
+ a(z, null, {
70
70
  default: d(() => [
71
- i(f, {
72
- class: h([{
71
+ a(f, {
72
+ class: w([{
73
73
  "bg-fm-color-system-warning-100": e(t).intention === null
74
74
  }, "rounded-sm"]),
75
- onClick: n[0] || (n[0] = (s) => {
75
+ onClick: l[0] || (l[0] = (o) => {
76
76
  e(t).intention = null, e(t).template = null;
77
77
  })
78
78
  }, {
79
79
  append: d(() => [
80
- i(y, {
80
+ a(_, {
81
81
  label: "Hot",
82
82
  variant: "critical"
83
83
  })
84
84
  ]),
85
85
  default: d(() => [
86
- n[2] || (n[2] = T(" Most popular "))
86
+ T(" Most popular ")
87
87
  ]),
88
88
  _: 1
89
89
  }, 8, ["class"]),
90
- (r(!0), w(S, null, N(e(J).options, (s, x) => (r(), C(f, {
90
+ (r(!0), h(S, null, N(e(J).options, (o, x) => (r(), C(f, {
91
91
  key: x,
92
- class: h(["rounded-sm", {
93
- "bg-fm-color-system-warning-100": e(t).intention === s
92
+ class: w(["rounded-sm", {
93
+ "bg-fm-color-system-warning-100": e(t).intention === o
94
94
  }]),
95
95
  style: { padding: "8px 16px" },
96
- onClick: (_) => {
97
- e(t).intention = s, e(t).template = null;
96
+ onClick: (y) => {
97
+ e(t).intention = o, e(t).template = null;
98
98
  }
99
99
  }, {
100
100
  default: d(() => [
101
- T(g(e(V)(s)), 1)
101
+ T(g(e(V)(o)), 1)
102
102
  ]),
103
103
  _: 2
104
104
  }, 1032, ["class", "onClick"]))), 128))
@@ -106,57 +106,57 @@ const K = /* @__PURE__ */ L({
106
106
  _: 1
107
107
  })
108
108
  ])),
109
- l("div", W, [
110
- l("div", X, [
111
- l("div", Y, g(o.campaignType ? e(V)(
112
- `${e(A).formattedType(o.campaignType)} campaign`
109
+ s("div", W, [
110
+ s("div", X, [
111
+ s("div", Y, g(n.campaignType ? e(V)(
112
+ `${e(A).formattedType(n.campaignType)} campaign`
113
113
  ) : "Template list"), 1),
114
- n[3] || (n[3] = l("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Get started faster with templates that flex with your business. ", -1))
114
+ Z
115
115
  ]),
116
- l("div", Z, [
117
- i(U, { json: e(b) }, null, 8, ["json"]),
118
- l("div", ee, [
119
- (r(!0), w(S, null, N(e(b), (s, x) => (r(), C(k, {
116
+ s("div", ee, [
117
+ a(U, { json: e(b) }, null, 8, ["json"]),
118
+ s("div", te, [
119
+ (r(!0), h(S, null, N(e(b), (o, x) => (r(), C(k, {
120
120
  key: x,
121
121
  variant: "outlined",
122
- class: h(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
123
- "bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(t).template === s._id.toString()
122
+ class: w(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
123
+ "bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(t).template === o._id.toString()
124
124
  }]),
125
- onClick: (_) => e(t).template = s._id.toString()
125
+ onClick: (y) => e(t).template = o._id.toString()
126
126
  }, {
127
127
  default: d(() => {
128
- var _, F;
128
+ var y, F;
129
129
  return [
130
- l("div", te, [
131
- i(K, {
132
- type: (F = (_ = s.defaultValue) == null ? void 0 : _.campaign) == null ? void 0 : F.type
130
+ s("div", ne, [
131
+ a(K, {
132
+ type: (F = (y = o.defaultValue) == null ? void 0 : y.campaign) == null ? void 0 : F.type
133
133
  }, null, 8, ["type"])
134
134
  ]),
135
- l("div", ne, g(s.name), 1),
136
- l("p", oe, g(s.description), 1)
135
+ s("div", oe, g(o.name), 1),
136
+ s("p", se, g(o.description), 1)
137
137
  ];
138
138
  }),
139
139
  _: 2
140
140
  }, 1032, ["class", "onClick"]))), 128))
141
141
  ])
142
142
  ]),
143
- l("div", se, [
144
- i(v, {
143
+ s("div", le, [
144
+ a(v, {
145
145
  class: "sm:w-full xs:w-full",
146
146
  variant: "plain",
147
147
  label: "Custom Campaign",
148
148
  size: "md",
149
149
  onClick: O
150
150
  }),
151
- i(B, { class: "sm:hidden xs:hidden" }),
152
- i(v, {
151
+ a(B, { class: "sm:hidden xs:hidden" }),
152
+ a(v, {
153
153
  class: "sm:w-full xs:w-full",
154
154
  variant: "tertiary",
155
155
  label: "Cancel",
156
156
  size: "md",
157
- onClick: n[1] || (n[1] = (s) => e(p).close())
157
+ onClick: l[1] || (l[1] = (o) => e(p).close())
158
158
  }),
159
- i(v, {
159
+ a(v, {
160
160
  class: "sm:w-full xs:w-full",
161
161
  variant: "primary",
162
162
  label: "Start",
@@ -173,13 +173,13 @@ const K = /* @__PURE__ */ L({
173
173
  };
174
174
  }
175
175
  }), ye = (u, p) => ({
176
- open: async (a) => {
176
+ open: async (i) => {
177
177
  p.open({
178
178
  title: "",
179
- dialogComponent: le,
179
+ dialogComponent: ae,
180
180
  dialogComponentProps: {
181
181
  campaignType: u,
182
- onOk: async (o) => (console.debug(o, "selected template"), await a(o))
182
+ onOk: async (n) => (console.debug(n, "selected template"), await i(n))
183
183
  },
184
184
  overlay: !0
185
185
  });