@feedmepos/mf-connect 0.0.20-prod → 0.0.22-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 (71) hide show
  1. package/dist/{Analytic-DuwMJh8c.js → Analytic-DiZyXVa2.js} +21 -19
  2. package/dist/App-B56fA1JN.js +176 -0
  3. package/dist/{Broadcast-BUgjgqv9.js → Broadcast-ixoPXMt8.js} +7 -7
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BDU9wbxY.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DlgKZtNO.js} +8 -8
  5. package/dist/{Card-CwohdmAQ.js → Card-aw5tdKY-.js} +74 -72
  6. package/dist/{Collections-D-JKj4iC.js → Collections-CMD-SLC3.js} +16 -14
  7. package/dist/{Credit-BdKekl3X.js → Credit-CEVk1_sX.js} +7 -7
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DA-7-Qi9.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Co6j2tz0.js} +324 -328
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-lDNh6GmQ.js → EffectSheet.vue_vue_type_style_index_0_lang-xXv4IrKd.js} +5 -5
  10. package/dist/{Experience-KoC4x_ae.js → Experience-CSui9603.js} +7 -7
  11. package/dist/{Game-CTkr8R18.js → Game-PodGVfdS.js} +7 -7
  12. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CDeQRYDy.js → ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js} +1 -1
  13. package/dist/JsonViewer-v8_C7l5N.js +87 -0
  14. package/dist/{MainLayout-Du7UHyf3.js → MainLayout-DpZC6o3R.js} +2 -1
  15. package/dist/{Marketing-CTl2LqXi.js → Marketing-CbrFzK0w.js} +13 -12
  16. package/dist/{Member-hHIz1gGT.js → Member-DnrQEiiV.js} +31 -30
  17. package/dist/{MemberList-Fs95BxUo.js → MemberList-7Te6kVOJ.js} +33 -30
  18. package/dist/{MemberTransactions-nmURocbA.js → MemberTransactions-BUp_0bkL.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Zk21rkMZ.js → MessageInput.vue_vue_type_script_setup_true_lang-BrxCjH9R.js} +2 -2
  20. package/dist/{Mission-B5YwPU71.js → Mission-Bp16rwVh.js} +14 -14
  21. package/dist/{Point-BiOgpyye.js → Point-DnzgCjC2.js} +7 -7
  22. package/dist/{Promotion-Bpvuwixe.js → Promotion-BmhVCYgN.js} +8 -8
  23. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DZlxkB8D.js → RuleGroup.vue_vue_type_script_setup_true_lang-BuELQmoo.js} +16 -15
  24. package/dist/{Segment-DrEpmY4N.js → Segment-CCrLEh0A.js} +19 -18
  25. package/dist/{Setting-D48p2snU.js → Setting-v0gKscv9.js} +11 -10
  26. package/dist/{Store-CT1XE_Sn.js → Store-CHDu8Rop.js} +51 -47
  27. package/dist/StoreRewards-D_vBCPZl.js +429 -0
  28. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DboIoW51.js → StoreTransactions.vue_vue_type_script_setup_true_lang-zDJEaBmd.js} +106 -108
  29. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CtSi80Oy.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CVf5Jjj1.js} +6 -6
  30. package/dist/{Tier-BzZX_Dki.js → Tier-C5gbgtcG.js} +25 -24
  31. package/dist/{Title-C2Ji-YGQ.js → Title-CojucJrP.js} +15 -15
  32. package/dist/{Transaction-BJGKndk-.js → Transaction-D1i5IH7D.js} +1 -1
  33. package/dist/{Voucher-D2dpFJSA.js → Voucher-VuXKhD49.js} +55 -51
  34. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  35. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  36. package/dist/app-Cok2f-SL.js +2974 -0
  37. package/dist/{app-D5_9RvMw.js → app-Df5HEUc7.js} +1 -1
  38. package/dist/app-wDQR6dpb.js +39 -0
  39. package/dist/app.js +2 -2
  40. package/dist/business-zehruO7m.js +78 -0
  41. package/dist/{campaign-BK6-HrgE.js → campaign-BDdGYC5z.js} +7 -7
  42. package/dist/{dto-E-AuMyEO.js → dto-X3oNeL7n.js} +8 -8
  43. package/dist/{effect-DOWJayPu.js → effect-Cl3gXAd9.js} +1 -1
  44. package/dist/{export-DMZdMVnb.js → export-COy97xf1.js} +3 -3
  45. package/dist/{helper-CmlX0eR1.js → helper-BMCigtw-.js} +1 -1
  46. package/dist/{index-Cj1rTpPK.js → index-9ijJtga8.js} +1 -1
  47. package/dist/{app-BAgeAm1l.js → index-BENEb_BE.js} +9660 -13019
  48. package/dist/index-BEWobmlN.js +11 -0
  49. package/dist/{index-QeG7EuE3.js → index-Bi8rxPHs.js} +1 -1
  50. package/dist/{index-gOVUv83Y.js → index-Btbk-4q4.js} +3 -3
  51. package/dist/{index-BkHtyaBf.js → index-CXwywdbf.js} +5 -5
  52. package/dist/{index-BhHZOSyO.js → index-Cl6-R6oj.js} +1 -1
  53. package/dist/{index-DKCHICCa.js → index-DEunD6Nb.js} +46 -39
  54. package/dist/{index-BNy1wU-V.js → index-DcRKYwqb.js} +3 -3
  55. package/dist/{index-BZbJpBo2.js → index-SusoyGmN.js} +6 -7
  56. package/dist/{index-zAvZNHx0.js → index-ucUyNm2f.js} +177 -168
  57. package/dist/{index-RcFvF7Y_.js → index-ueVq8lE0.js} +6 -5
  58. package/dist/{loading-BIURYgSR.js → loading-B7ZGAeOi.js} +28 -26
  59. package/dist/{lodash-CxofWkz4.js → lodash-B5I3zXaY.js} +1 -1
  60. package/dist/{membership-DVEV926P.js → membership-JcEfpV3H.js} +3 -3
  61. package/dist/{money-99JilzxX.js → money-DFguRQja.js} +1 -1
  62. package/dist/number-CojWykn9.js +12 -0
  63. package/dist/{rule-Chwh9Y4B.js → rule-C_lc6_Vf.js} +2 -2
  64. package/dist/{rule-builder-JEF7ltcg.js → rule-builder-C3AmhP2r.js} +1 -1
  65. package/dist/style.css +1 -1
  66. package/dist/{template-B6lZdtyo.js → template-TVj4e3Q0.js} +5 -5
  67. package/dist/{usePagination-4epNDLvW.js → usePagination-JoYaROkV.js} +1 -1
  68. package/dist/{xlsx-DKkkHUS_.js → xlsx-zY8O-RaE.js} +1 -1
  69. package/package.json +1 -1
  70. package/dist/StoreRewards-DsjyanOO.js +0 -433
  71. package/dist/number-BKGHLuLf.js +0 -12
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as D, ref as S, computed as T, onMounted as j, resolveComponent as l, openBlock as c, createElementBlock as g, Fragment as h, createVNode as i, unref as o, withCtx as f, createElementVNode as n, renderList as E, createBlock as C, resolveDynamicComponent as M, toDisplayString as y, h as H } from "vue";
2
2
  import { _ as q } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as z, components as G } from "@feedmepos/ui-library";
4
- import { u as J, p as Q } from "./loading-BIURYgSR.js";
5
- import { b as W } from "./app-BAgeAm1l.js";
6
- import { u as X } from "./campaign-BK6-HrgE.js";
7
- import { g as V, b as L } from "./dto-E-AuMyEO.js";
4
+ import { u as J, p as Q } from "./loading-B7ZGAeOi.js";
5
+ import { u as W } from "./business-zehruO7m.js";
6
+ import { u as X } from "./campaign-BDdGYC5z.js";
7
+ import { g as V, b as L } from "./dto-X3oNeL7n.js";
8
8
  import { _ as Y } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DA-7-Qi9.js";
10
- import { u as ee } from "./template-B6lZdtyo.js";
11
- import { c as _ } from "./index-QeG7EuE3.js";
9
+ import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Co6j2tz0.js";
10
+ import { u as ee } from "./template-TVj4e3Q0.js";
11
+ import { c as _ } from "./index-Bi8rxPHs.js";
12
12
  const te = { class: "flex items-center" }, oe = /* @__PURE__ */ n("span", { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, "Point", -1), 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" }, ie = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, re = { 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 = /* @__PURE__ */ n("img", {
13
13
  src: q,
14
14
  class: "aspect-square w-[150px]"
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as A, ref as k, computed as D, onMounted as j, resolveComponent as i, openBlock as c, createElementBlock as g, Fragment as y, createVNode as s, unref as l, createElementVNode as a, withCtx as _, renderList as E, createBlock as h, resolveDynamicComponent as H, toDisplayString as P, h as q } from "vue";
2
2
  import { _ as z } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as G, components as J } from "@feedmepos/ui-library";
4
- import { c as S, u as Q, p as W } from "./loading-BIURYgSR.js";
5
- import { b as X } from "./app-BAgeAm1l.js";
6
- import { u as Y } from "./campaign-BK6-HrgE.js";
7
- import { g as O } from "./dto-E-AuMyEO.js";
8
- import { e as L } from "./effect-DOWJayPu.js";
4
+ import { c as S, u as Q, p as W } from "./loading-B7ZGAeOi.js";
5
+ import { u as X } from "./business-zehruO7m.js";
6
+ import { u as Y } from "./campaign-BDdGYC5z.js";
7
+ import { g as O } from "./dto-X3oNeL7n.js";
8
+ import { e as L } from "./effect-Cl3gXAd9.js";
9
9
  import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DA-7-Qi9.js";
11
- import { u as oe } from "./template-B6lZdtyo.js";
12
- import { c as f } from "./index-QeG7EuE3.js";
10
+ import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Co6j2tz0.js";
11
+ import { u as oe } from "./template-TVj4e3Q0.js";
12
+ import { c as f } from "./index-Bi8rxPHs.js";
13
13
  const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, ne = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, ie = { class: "space-y-4" }, re = { class: "fm-typo-en-body-lg-600" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = /* @__PURE__ */ a("img", {
14
14
  src: z,
15
15
  class: "aspect-square w-[150px]"
@@ -1,21 +1,22 @@
1
1
  import { defineComponent as $, computed as I, resolveComponent as g, openBlock as n, createElementBlock as F, createElementVNode as C, createVNode as y, unref as e, createTextVNode as ee, toDisplayString as j, withCtx as M, onMounted as K, createBlock as x, createCommentVNode as A, ref as P, Fragment as Y, renderList as N, normalizeClass as L, watch as ie, resolveDynamicComponent as ae, onBeforeMount as ue, isRef as me, createSlots as de } from "vue";
2
- import { c as pe, C as ce, d as ye, e as ve, f as fe } from "./index-zAvZNHx0.js";
3
- import { R as _, a as be } from "./rule-builder-JEF7ltcg.js";
4
- import { a as ge, R, S as ke, C as H, W as Ve, T as ne, O as Ee } from "./rule-Chwh9Y4B.js";
5
- import { p as Fe } from "./loading-BIURYgSR.js";
2
+ import { c as pe, C as ce, d as ye, e as ve, f as fe } from "./index-ucUyNm2f.js";
3
+ import { R as _, a as be } from "./rule-builder-C3AmhP2r.js";
4
+ import { a as ge, R, S as ke, C as H, W as Ve, T as ne, O as Ee } from "./rule-C_lc6_Vf.js";
5
+ import { p as Fe } from "./loading-B7ZGAeOi.js";
6
6
  import { useDialog as te, useDialogChild as se } from "@feedmepos/ui-library";
7
7
  import { h as J } from "./moment-BWErdI6_.js";
8
- import { z as Se, b as re } from "./app-BAgeAm1l.js";
9
- import { u as z } from "./membership-DVEV926P.js";
10
- import { _ as D } from "./index-BkHtyaBf.js";
8
+ import { z as Se } from "./app-Cok2f-SL.js";
9
+ import { u as z } from "./membership-JcEfpV3H.js";
10
+ import { u as re } from "./business-zehruO7m.js";
11
+ import { _ as D } from "./index-CXwywdbf.js";
11
12
  import { c as le } from "./object-qECH92oz.js";
12
13
  import { Z } from "./ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js";
13
- import { x as xe } from "./app-D5_9RvMw.js";
14
- import "./index-BZbJpBo2.js";
15
- import "./index-RcFvF7Y_.js";
16
- import "./index-gOVUv83Y.js";
17
- import "./index-DKCHICCa.js";
18
- import "./index-BhHZOSyO.js";
14
+ import { x as xe } from "./app-Df5HEUc7.js";
15
+ import "./index-SusoyGmN.js";
16
+ import "./index-ueVq8lE0.js";
17
+ import "./index-Btbk-4q4.js";
18
+ import "./index-DEunD6Nb.js";
19
+ import "./index-Cl6-R6oj.js";
19
20
  const he = { class: "flex items-center justify-between" }, Te = { class: "flex items-center gap-8 xs:flex-wrap" }, Ce = /* @__PURE__ */ C("div", { class: "h-[26px] border-l-2 rounded-md border-fm-color-neutral-gray-100" }, null, -1), Ue = { class: "text-fm-color-primary line-clamp-1 text-ellipsis" }, Re = /* @__PURE__ */ $({
20
21
  __name: "RuleEntry",
21
22
  props: {
@@ -1671,7 +1672,7 @@ const Oe = [
1671
1672
  });
1672
1673
  };
1673
1674
  }
1674
- }), Ut = /* @__PURE__ */ C("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " When ", -1), Gt = /* @__PURE__ */ $({
1675
+ }), Ut = /* @__PURE__ */ C("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " When ", -1), Kt = /* @__PURE__ */ $({
1675
1676
  __name: "RuleGroup",
1676
1677
  props: {
1677
1678
  triggerType: {
@@ -1744,7 +1745,7 @@ const Oe = [
1744
1745
  }
1745
1746
  });
1746
1747
  export {
1747
- Gt as _,
1748
+ Kt as _,
1748
1749
  X as a,
1749
1750
  rt as b
1750
1751
  };
@@ -1,18 +1,19 @@
1
1
  import { defineComponent as A, onMounted as E, openBlock as p, createElementBlock as b, createElementVNode as a, toDisplayString as M, unref as e, createVNode as n, createCommentVNode as q, ref as w, computed as j, resolveComponent as u, createBlock as B, isRef as G, createSlots as J, withCtx as g, Fragment as V, reactive as W, watch as Q, onBeforeMount as X, renderList as ee, h as I } from "vue";
2
2
  import { _ as te } from "./campaign-CpzFl8Vr.js";
3
- import { F as N, p as oe, u as ae } from "./loading-BIURYgSR.js";
3
+ import { F as N, p as oe, u as ae } from "./loading-B7ZGAeOi.js";
4
4
  import { components as L } from "@feedmepos/ui-library";
5
- import { l as se } from "./lodash-CxofWkz4.js";
5
+ import { l as se } from "./lodash-B5I3zXaY.js";
6
6
  import { _ as ne, Z as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js";
7
- import { a as ie } from "./index-gOVUv83Y.js";
8
- import { u as re, b as me } from "./app-BAgeAm1l.js";
9
- import { R as ce } from "./rule-builder-JEF7ltcg.js";
10
- import { _ as de } from "./RuleGroup.vue_vue_type_script_setup_true_lang-DZlxkB8D.js";
7
+ import { a as ie } from "./index-Btbk-4q4.js";
8
+ import { u as re } from "./app-wDQR6dpb.js";
9
+ import { R as me } from "./rule-builder-C3AmhP2r.js";
10
+ import { _ as ce } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BuELQmoo.js";
11
11
  import { h as P } from "./moment-BWErdI6_.js";
12
- import { u as ue, _ as pe } from "./usePagination-4epNDLvW.js";
13
- import { s as k } from "./membership-DVEV926P.js";
14
- import { o as fe } from "./objectId-dwaoBfJX.js";
15
- import { m as ge } from "./index-BNy1wU-V.js";
12
+ import { u as de, _ as ue } from "./usePagination-JoYaROkV.js";
13
+ import { s as k } from "./membership-JcEfpV3H.js";
14
+ import { o as pe } from "./objectId-dwaoBfJX.js";
15
+ import { u as fe } from "./business-zehruO7m.js";
16
+ import { m as ge } from "./index-DcRKYwqb.js";
16
17
  const _e = ie.extend({
17
18
  _id: N.optional(),
18
19
  business: N.optional()
@@ -36,7 +37,7 @@ const _e = ie.extend({
36
37
  },
37
38
  {
38
39
  header: "Customer Since",
39
- accessorFn: (s) => P(fe(s._id.toString())).format("DD MMM YYYY")
40
+ accessorFn: (s) => P(pe(s._id.toString())).format("DD MMM YYYY")
40
41
  },
41
42
  {
42
43
  header: "Birthday",
@@ -52,7 +53,7 @@ const _e = ie.extend({
52
53
  sortBy: "_id",
53
54
  search: s.searchValue,
54
55
  descending: !0
55
- }) : { resources: [], meta: { totalResources: 0, totalPages: 0 } }, { tableMeta: r, rowData: c, onSort: m, debouncedFetchData: d, onSearch: l } = ue(v);
56
+ }) : { resources: [], meta: { totalResources: 0, totalPages: 0 } }, { tableMeta: r, rowData: c, onSort: m, debouncedFetchData: d, onSearch: l } = de(v);
56
57
  return E(async () => {
57
58
  await d();
58
59
  }), (s, F) => (p(), b("div", ve, [
@@ -64,7 +65,7 @@ const _e = ie.extend({
64
65
  a("div", null, "as of " + M(e(P)(s.segment.lastUpdated).format("DD MMM YYYY")), 1)
65
66
  ])
66
67
  ]),
67
- n(pe, {
68
+ n(ue, {
68
69
  loading: e(r).isLoading,
69
70
  "row-data": e(c),
70
71
  "row-count": e(r).totalRows,
@@ -87,7 +88,7 @@ const _e = ie.extend({
87
88
  setup(D, { expose: _, emit: x }) {
88
89
  const v = re(), r = w(!1), c = w(!1), m = {
89
90
  name: "",
90
- rule: ce.scaffoldGroup(),
91
+ rule: me.scaffoldGroup(),
91
92
  members: []
92
93
  }, d = _e, l = w(m), s = j(() => {
93
94
  const t = d.safeParse(l.value);
@@ -167,7 +168,7 @@ const _e = ie.extend({
167
168
  schema: e(le).typeAtPath(e(d), "name")
168
169
  }, null, 8, ["modelValue", "schema"]),
169
170
  Ve,
170
- n(de, {
171
+ n(ce, {
171
172
  "trigger-type": "MEMBERSHIP_JOINED",
172
173
  includeOnly: "user",
173
174
  "model-value": (y = e(l)) == null ? void 0 : y.rule,
@@ -203,10 +204,10 @@ const _e = ie.extend({
203
204
  }, null, -1), Ee = /* @__PURE__ */ a("div", { class: "flex flex-col gap-16 text-center" }, [
204
205
  /* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-800" }, "Create customer segments"),
205
206
  /* @__PURE__ */ a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Segments allow you to categorize your customers based on various criteria, enabling targeted marketing and personalized experiences. ")
206
- ], -1), at = /* @__PURE__ */ A({
207
+ ], -1), st = /* @__PURE__ */ A({
207
208
  __name: "Segment",
208
209
  setup(D) {
209
- const { minor: _ } = ae, x = me(), v = w(0), r = [
210
+ const { minor: _ } = ae, x = fe(), v = w(0), r = [
210
211
  {
211
212
  header: "Name",
212
213
  accessorFn: (o) => o.name
@@ -440,5 +441,5 @@ const _e = ie.extend({
440
441
  }
441
442
  });
442
443
  export {
443
- at as default
444
+ st as default
444
445
  };
@@ -1,14 +1,15 @@
1
1
  import { defineComponent as Re, ref as z, computed as ie, onMounted as De, resolveComponent as L, openBlock as V, createBlock as we, withCtx as G, createElementVNode as b, createVNode as M, unref as h, isRef as ke, createElementBlock as q, Fragment as fe, createTextVNode as Q, toDisplayString as k, renderList as Ie, createCommentVNode as Pe } from "vue";
2
2
  import { h as rt } from "./moment-BWErdI6_.js";
3
3
  import { useDialog as Ve } from "@feedmepos/ui-library";
4
- import { a as xe, u as it, p as st, f as K } from "./loading-BIURYgSR.js";
5
- import { b as be, l as $e, u as at } from "./app-BAgeAm1l.js";
6
- import { u as ze } from "./membership-DVEV926P.js";
7
- import { l as lt } from "./index-RcFvF7Y_.js";
8
- import { _ as Ne } from "./ImageInput.vue_vue_type_script_setup_true_lang-CDeQRYDy.js";
9
- import { _ as ct } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CtSi80Oy.js";
10
- import { _ as ut } from "./MessageInput.vue_vue_type_script_setup_true_lang-Zk21rkMZ.js";
11
- import { m as dt } from "./index-Cj1rTpPK.js";
4
+ import { a as xe, u as it, p as st, f as K } from "./loading-B7ZGAeOi.js";
5
+ import { u as at } from "./app-wDQR6dpb.js";
6
+ import { u as be, l as $e } from "./business-zehruO7m.js";
7
+ import { u as ze } from "./membership-JcEfpV3H.js";
8
+ import { l as lt } from "./index-ueVq8lE0.js";
9
+ import { _ as Ne } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
10
+ import { _ as ct } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CVf5Jjj1.js";
11
+ import { _ as ut } from "./MessageInput.vue_vue_type_script_setup_true_lang-BrxCjH9R.js";
12
+ import { m as dt } from "./index-9ijJtga8.js";
12
13
  import { o as ft } from "./objectId-dwaoBfJX.js";
13
14
  import { a as gt } from "./object-qECH92oz.js";
14
15
  var Z = {}, mt = function() {
@@ -1568,7 +1569,7 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1568
1569
  }, hn = { class: "col-span-2 flex flex-col xs:col-span-3" }, pn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Basic Information", -1), yn = { class: "space-y-24" }, wn = { class: "space-y-8" }, bn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Counter App", -1), vn = { class: "fm-typo-body-lg-400" }, Cn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, _n = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, En = { class: "space-y-8" }, Bn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, An = { class: "space-y-8" }, Mn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1), Sn = { class: "space-y-8" }, Tn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, [
1569
1570
  /* @__PURE__ */ Q(" Free Credit as Discount "),
1570
1571
  /* @__PURE__ */ b("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
1571
- ], -1), In = { class: "space-y-8" }, Pn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Nn = { class: "space-y-8" }, Un = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), Ln = { class: "flex justify-end pb-24" }, Fn = { class: "col-span-1 space-y-8 xs:hidden" }, Rn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), Dn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), kn = { class: "fm-typo-en-body-lg-600" }, Vn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), xn = { class: "fm-typo-en-body-lg-600" }, $n = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), zn = { class: "fm-typo-en-body-lg-600" }, Hn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), Kn = { class: "fm-typo-en-body-lg-600" }, oo = /* @__PURE__ */ Re({
1572
+ ], -1), In = { class: "space-y-8" }, Pn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Nn = { class: "space-y-8" }, Un = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), Ln = { class: "flex justify-end pb-24" }, Fn = { class: "col-span-1 space-y-8 xs:hidden" }, Rn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), Dn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), kn = { class: "fm-typo-en-body-lg-600" }, Vn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), xn = { class: "fm-typo-en-body-lg-600" }, $n = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), zn = { class: "fm-typo-en-body-lg-600" }, Hn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), Kn = { class: "fm-typo-en-body-lg-600" }, ro = /* @__PURE__ */ Re({
1572
1573
  __name: "Setting",
1573
1574
  setup(t) {
1574
1575
  const e = at(), i = be(), r = ze(), { global: o, minor: n } = it, a = Ve(), s = z(), l = z(!1), f = [
@@ -1865,5 +1866,5 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1865
1866
  }
1866
1867
  });
1867
1868
  export {
1868
- oo as default
1869
+ ro as default
1869
1870
  };
@@ -1,21 +1,25 @@
1
1
  import { defineComponent as J, computed as D, resolveComponent as _, openBlock as v, createBlock as E, withCtx as P, createElementVNode as b, createElementBlock as $, createVNode as s, createCommentVNode as j, toDisplayString as le, unref as e, Fragment as L, renderList as oe, ref as A, isRef as ne, reactive as Ie, onMounted as me, watch as he, toRaw as De, createTextVNode as te, h as Be } from "vue";
2
2
  import { _ as Ae } from "./tier-BJDhpH6X.js";
3
3
  import { useDialog as Te, useDialogChild as Ue, components as Ne } from "@feedmepos/ui-library";
4
- import { a as k, z, i as ce, S as Oe, u as be, J as xe, d as Ee } from "./app-BAgeAm1l.js";
5
- import { d as Q, a as Me, u as je, p as pe, n as Le, f as ye } from "./loading-BIURYgSR.js";
6
- import { u as _e, C as ie } from "./membership-DVEV926P.js";
7
- import { a as qe, c as $e } from "./object-qECH92oz.js";
8
- import { _ as ae } from "./lodash-CxofWkz4.js";
9
- import { Z as Y, _ as X, g as K, a as W } from "./ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js";
10
- import { F as He, a as Ke, b as We, c as Pe } from "./index-DKCHICCa.js";
11
- import { _ as ze } from "./index-zAvZNHx0.js";
12
- import { _ as Ye } from "./ImageInput.vue_vue_type_script_setup_true_lang-CDeQRYDy.js";
4
+ import { c as k, e as ce, S as Oe } from "./index-BENEb_BE.js";
5
+ import { d as Q, a as Ee, u as Me, p as pe, n as je, f as ye } from "./loading-B7ZGAeOi.js";
6
+ import { u as xe, C as ie } from "./membership-JcEfpV3H.js";
7
+ import { a as Le, c as $e } from "./object-qECH92oz.js";
8
+ import { _ as ae } from "./lodash-B5I3zXaY.js";
9
+ import { Z as z, _ as X, g as K, a as W } from "./ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js";
10
+ import { z as Y, R as qe } from "./app-Cok2f-SL.js";
11
+ import { F as He, a as Ke, b as We, c as Pe } from "./index-DEunD6Nb.js";
12
+ import { u as be } from "./app-wDQR6dpb.js";
13
+ import { J as _e } from "./JsonViewer-v8_C7l5N.js";
14
+ import { _ as ze } from "./index-ucUyNm2f.js";
15
+ import { _ as Ye } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
13
16
  import { _ as Je } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
14
- import { z as Ge, a as Xe } from "./money-99JilzxX.js";
15
- import { F as Ze } from "./number-BKGHLuLf.js";
16
- import { t as Qe } from "./helper-CmlX0eR1.js";
17
+ import { z as Ge, a as Xe } from "./money-DFguRQja.js";
18
+ import { F as Ze } from "./number-CojWykn9.js";
19
+ import { t as Qe } from "./helper-BMCigtw-.js";
20
+ import "./index-BEWobmlN.js";
17
21
  import { useRouter as et } from "vue-router";
18
- import { m as fe } from "./index-Cj1rTpPK.js";
22
+ import { m as fe } from "./index-9ijJtga8.js";
19
23
  function tt(f) {
20
24
  return Q.DineroFactory(f).toUnit();
21
25
  }
@@ -200,7 +204,7 @@ const lt = { class: "relative h-[120px] aspect-video flex items-center justify-c
200
204
  }
201
205
  },
202
206
  setup(f) {
203
- const g = f, i = Te(), { emitData: S, emitAction: y } = Ue(), l = A(g.initialValue), r = z.string().min(1);
207
+ const g = f, i = Te(), { emitData: S, emitAction: y } = Ue(), l = A(g.initialValue), r = Y.string().min(1);
204
208
  function t() {
205
209
  S(l.value), y("primary"), i.close();
206
210
  }
@@ -214,7 +218,7 @@ const lt = { class: "relative h-[120px] aspect-video flex items-center justify-c
214
218
  modelValue: e(l),
215
219
  "onUpdate:modelValue": o[0] || (o[0] = (n) => ne(l) ? l.value = n : null),
216
220
  label: "Category name",
217
- rules: [e(Y).toRule(e(r))]
221
+ rules: [e(z).toRule(e(r))]
218
222
  }, null, 8, ["modelValue", "rules"]),
219
223
  b("div", yt, [
220
224
  b("div", null, [
@@ -244,7 +248,7 @@ const lt = { class: "relative h-[120px] aspect-video flex items-center justify-c
244
248
  }), bt = { class: "space-y-16" }, gt = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Select a category to create FeedMe CNY 2025 bundle ", -1), ht = { class: "flex items-center justify-end gap-8 pb-16" }, xt = /* @__PURE__ */ J({
245
249
  __name: "SelectCategoryDialog",
246
250
  setup(f) {
247
- const { emitData: g, emitAction: i } = Ue(), S = _e(), y = A(), l = D(
251
+ const { emitData: g, emitAction: i } = Ue(), S = xe(), y = A(), l = D(
248
252
  () => S.sortedStoreCategories.map((r, t) => ({
249
253
  label: r.name,
250
254
  value: t
@@ -503,7 +507,7 @@ const St = { class: "space-y-8" }, Ft = {
503
507
  s(o, {
504
508
  icon: "content_copy",
505
509
  variant: "tertiary",
506
- onClick: t[2] || (t[2] = (p) => e(Me)(e(l)))
510
+ onClick: t[2] || (t[2] = (p) => e(Ee)(e(l)))
507
511
  })
508
512
  ]),
509
513
  _: 1
@@ -531,18 +535,18 @@ const St = { class: "space-y-8" }, Ft = {
531
535
  setup(f, { expose: g, emit: i }) {
532
536
  const S = i, y = A(!1), l = A(), r = A(!1), t = He.extend({
533
537
  company: Ke.extend({
534
- name: z.string().min(1, "Company name is required"),
535
- regNo: z.string().min(1, "Registration number is required"),
538
+ name: Y.string().min(1, "Company name is required"),
539
+ regNo: Y.string().min(1, "Registration number is required"),
536
540
  address: We.extend({
537
- line1: z.string().min(1, "Line 1 is required"),
538
- line2: z.string().optional(),
539
- state: z.string().min(1, "State is required"),
540
- city: z.string().min(1, "City is required"),
541
- postcode: z.string().min(1, "Postcode is required"),
542
- country: z.string().min(1, "Country is required")
541
+ line1: Y.string().min(1, "Line 1 is required"),
542
+ line2: Y.string().optional(),
543
+ state: Y.string().min(1, "State is required"),
544
+ city: Y.string().min(1, "City is required"),
545
+ postcode: Y.string().min(1, "Postcode is required"),
546
+ country: Y.string().min(1, "Country is required")
543
547
  }),
544
- phoneNo: z.string().min(1, "Phone number is required"),
545
- sstRegNo: z.string().optional()
548
+ phoneNo: Y.string().min(1, "Phone number is required"),
549
+ sstRegNo: Y.string().optional()
546
550
  })
547
551
  }), F = D(() => t.safeParse(l.value).success);
548
552
  function d() {
@@ -600,20 +604,20 @@ const St = { class: "space-y-8" }, Ft = {
600
604
  default: P(() => {
601
605
  var w, U;
602
606
  return [
603
- s(xe, { json: e(l) }, null, 8, ["json"]),
607
+ s(_e, { json: e(l) }, null, 8, ["json"]),
604
608
  e(l) && e(l).company ? (v(), $("div", $t, [
605
609
  Pt,
606
610
  s(X, {
607
611
  modelValue: e(l).company.name,
608
612
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e(l).company.name = c),
609
613
  label: "Company name",
610
- schema: e(Y).typeAtPath(e(t), "company.name")
614
+ schema: e(z).typeAtPath(e(t), "company.name")
611
615
  }, null, 8, ["modelValue", "schema"]),
612
616
  s(X, {
613
617
  modelValue: e(l).company.regNo,
614
618
  "onUpdate:modelValue": n[1] || (n[1] = (c) => e(l).company.regNo = c),
615
619
  label: "Registration number",
616
- schema: e(Y).typeAtPath(e(t), "company.regNo")
620
+ schema: e(z).typeAtPath(e(t), "company.regNo")
617
621
  }, null, 8, ["modelValue", "schema"]),
618
622
  s(X, {
619
623
  modelValue: e(l).company.sstRegNo,
@@ -622,7 +626,7 @@ const St = { class: "space-y-8" }, Ft = {
622
626
  n[3] || (n[3] = (c) => c ? null : e(l).inclusiveTaxes = [])
623
627
  ],
624
628
  label: "Tax Registration number",
625
- schema: e(Y).typeAtPath(e(t), "company.sstRegNo")
629
+ schema: e(z).typeAtPath(e(t), "company.sstRegNo")
626
630
  }, null, 8, ["modelValue", "schema"]),
627
631
  (w = e(l).company) != null && w.sstRegNo && e(l).inclusiveTaxes ? (v(), $("div", Tt, [
628
632
  Ut,
@@ -635,33 +639,33 @@ const St = { class: "space-y-8" }, Ft = {
635
639
  modelValue: e(l).company.phoneNo,
636
640
  "onUpdate:modelValue": n[5] || (n[5] = (c) => e(l).company.phoneNo = c),
637
641
  label: "Phone number",
638
- schema: e(Y).typeAtPath(e(t), "company.phoneNo")
642
+ schema: e(z).typeAtPath(e(t), "company.phoneNo")
639
643
  }, null, 8, ["modelValue", "schema"]),
640
644
  kt,
641
645
  s(X, {
642
646
  modelValue: e(l).company.address.line1,
643
647
  "onUpdate:modelValue": n[6] || (n[6] = (c) => e(l).company.address.line1 = c),
644
648
  label: "Line 1",
645
- schema: e(Y).typeAtPath(e(t), "company.address.line1")
649
+ schema: e(z).typeAtPath(e(t), "company.address.line1")
646
650
  }, null, 8, ["modelValue", "schema"]),
647
651
  s(X, {
648
652
  modelValue: e(l).company.address.line2,
649
653
  "onUpdate:modelValue": n[7] || (n[7] = (c) => e(l).company.address.line2 = c),
650
654
  label: "Line 2",
651
- schema: e(Y).typeAtPath(e(t), "company.address.line2")
655
+ schema: e(z).typeAtPath(e(t), "company.address.line2")
652
656
  }, null, 8, ["modelValue", "schema"]),
653
657
  b("div", Rt, [
654
658
  s(X, {
655
659
  modelValue: e(l).company.address.city,
656
660
  "onUpdate:modelValue": n[8] || (n[8] = (c) => e(l).company.address.city = c),
657
661
  label: "City",
658
- schema: e(Y).typeAtPath(e(t), "company.address.city")
662
+ schema: e(z).typeAtPath(e(t), "company.address.city")
659
663
  }, null, 8, ["modelValue", "schema"]),
660
664
  s(X, {
661
665
  modelValue: e(l).company.address.postcode,
662
666
  "onUpdate:modelValue": n[9] || (n[9] = (c) => e(l).company.address.postcode = c),
663
667
  label: "Postcode",
664
- schema: e(Y).typeAtPath(e(t), "company.address.postcode")
668
+ schema: e(z).typeAtPath(e(t), "company.address.postcode")
665
669
  }, null, 8, ["modelValue", "schema"]),
666
670
  b("div", It, [
667
671
  Dt,
@@ -673,7 +677,7 @@ const St = { class: "space-y-8" }, Ft = {
673
677
  s(X, {
674
678
  modelValue: e(l).company.address.state,
675
679
  "onUpdate:modelValue": n[10] || (n[10] = (c) => e(l).company.address.state = c),
676
- schema: e(Y).typeAtPath(e(t), "company.address.state"),
680
+ schema: e(z).typeAtPath(e(t), "company.address.state"),
677
681
  onFocusChanged: n[11] || (n[11] = (c) => r.value = c)
678
682
  }, {
679
683
  append: P(() => [
@@ -712,7 +716,7 @@ const St = { class: "space-y-8" }, Ft = {
712
716
  value: e(k.Config).getCountry().name
713
717
  }
714
718
  ],
715
- rules: [e(Y).ruleAtPath(e(t), "company.address.country")]
719
+ rules: [e(z).ruleAtPath(e(t), "company.address.country")]
716
720
  }, null, 8, ["modelValue", "items", "rules"])
717
721
  ]),
718
722
  b("div", Bt, [
@@ -845,7 +849,7 @@ const Mt = /* @__PURE__ */ J({
845
849
  __name: "EditBundleSheet",
846
850
  emits: ["update"],
847
851
  setup(f, { expose: g, emit: i }) {
848
- const S = i, y = _e(), l = A(!1), r = A({
852
+ const S = i, y = xe(), l = A(!1), r = A({
849
853
  category: 0,
850
854
  index: -1
851
855
  }), t = A(ae.cloneDeep(ge)), F = A(), d = Pe, o = D(() => {
@@ -962,7 +966,7 @@ const Mt = /* @__PURE__ */ J({
962
966
  return Number.isNaN(V) ? 0 : V;
963
967
  });
964
968
  function I() {
965
- t.value.taxTotals = U.value, S("update", Pe.parse(qe(t.value)));
969
+ t.value.taxTotals = U.value, S("update", Pe.parse(Le(t.value)));
966
970
  }
967
971
  function q() {
968
972
  return ae.cloneDeep(ge);
@@ -1001,7 +1005,7 @@ const Mt = /* @__PURE__ */ J({
1001
1005
  default: P(() => {
1002
1006
  var re, Ve, Se, Fe, we;
1003
1007
  return [
1004
- s(xe, { json: e(t) }, null, 8, ["json"]),
1008
+ s(_e, { json: e(t) }, null, 8, ["json"]),
1005
1009
  e(t) ? (v(), $("div", jt, [
1006
1010
  e(k.Config).getCountry().code == "MY" ? (v(), E(V, {
1007
1011
  key: 0,
@@ -1275,7 +1279,7 @@ const to = { class: "px-24 flex flex-col gap-y-16" }, oo = { class: "flex gap-8
1275
1279
  }, null, -1), so = /* @__PURE__ */ b("div", { class: "flex flex-col gap-16 text-center" }, [
1276
1280
  /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Store bundle"),
1277
1281
  /* @__PURE__ */ b("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Add item that you want to let your user spend and get here. It can be bunch of vouchers, benefits, experience and more! ")
1278
- ], -1), wo = /* @__PURE__ */ J({
1282
+ ], -1), Uo = /* @__PURE__ */ J({
1279
1283
  __name: "Store",
1280
1284
  setup(f) {
1281
1285
  const g = {
@@ -1294,10 +1298,10 @@ const to = { class: "px-24 flex flex-col gap-y-16" }, oo = { class: "flex gap-8
1294
1298
  value: "create_category",
1295
1299
  isPrimary: !0,
1296
1300
  prependIcon: "add"
1297
- }, l = et(), r = _e(), { global: t, minor: F } = je, d = Te(), o = D(() => r.sortedStoreCategories), p = A(), m = A();
1301
+ }, l = et(), r = xe(), { global: t, minor: F } = Me, d = Te(), o = D(() => r.sortedStoreCategories), p = A(), m = A();
1298
1302
  async function n(h) {
1299
1303
  var w;
1300
- h === "setting" ? (w = p.value) == null || w.showSheet(!0, r.storeOption) : h === "create_category" ? T(-1) : h === "create_reward" ? await l.push({ name: Ee["$connect-STORE_REWARDS"] }) : h == "payout" && window.open(eo.paymentPortalUrl, "_blank");
1304
+ h === "setting" ? (w = p.value) == null || w.showSheet(!0, r.storeOption) : h === "create_category" ? T(-1) : h === "create_reward" ? await l.push({ name: qe["$connect-STORE_REWARDS"] }) : h == "payout" && window.open(eo.paymentPortalUrl, "_blank");
1301
1305
  }
1302
1306
  async function C(h) {
1303
1307
  await F(
@@ -1349,7 +1353,7 @@ const to = { class: "px-24 flex flex-col gap-y-16" }, oo = { class: "flex gap-8
1349
1353
  w ?? (w = (I = m.value) == null ? void 0 : I.target.category), U ?? (U = (q = m.value) == null ? void 0 : q.target.index);
1350
1354
  const c = $e(o.value), O = c[w];
1351
1355
  if (!O) {
1352
- Le.error("Unexpected error", 2e3);
1356
+ je.error("Unexpected error", 2e3);
1353
1357
  return;
1354
1358
  }
1355
1359
  if (h == null) {
@@ -1445,7 +1449,7 @@ const to = { class: "px-24 flex flex-col gap-y-16" }, oo = { class: "flex gap-8
1445
1449
  }, [
1446
1450
  b("div", oo, [
1447
1451
  b("div", ao, le(I.name), 1),
1448
- s(xe, { json: I }, null, 8, ["json"]),
1452
+ s(_e, { json: I }, null, 8, ["json"]),
1449
1453
  s(c, {
1450
1454
  icon: "edit",
1451
1455
  size: "md",
@@ -1498,5 +1502,5 @@ const to = { class: "px-24 flex flex-col gap-y-16" }, oo = { class: "flex gap-8
1498
1502
  }
1499
1503
  });
1500
1504
  export {
1501
- wo as default
1505
+ Uo as default
1502
1506
  };