@feedmepos/mf-connect 0.0.12-beta.5 → 0.0.13-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 (72) hide show
  1. package/dist/Analytic-DMbCeTaO.js +612 -0
  2. package/dist/{Broadcast-BFHQPSXL.js → Broadcast-bVaOzrys.js} +7 -7
  3. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1DYJDOy.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cd2midth.js} +8 -8
  4. package/dist/{Card-rOJ8yJg_.js → Card-CdCTfDuP.js} +127 -127
  5. package/dist/{Collections-BT8ihCOa.js → Collections-CQIHkJ4W.js} +129 -141
  6. package/dist/{Credit-D83Jsn7v.js → Credit-DuIm1c4_.js} +7 -7
  7. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang--L-LP0DV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DljWmOEP.js} +258 -242
  8. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-HLzZirO_.js → EffectSheet.vue_vue_type_style_index_0_lang-BuJL01zR.js} +6 -6
  9. package/dist/{Experience-C6uBhQod.js → Experience-DEnMLbsA.js} +7 -7
  10. package/dist/{Game-5P5HWqAL.js → Game-BYS0nrH6.js} +7 -7
  11. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DTDcpMpW.js → ImageInput.vue_vue_type_script_setup_true_lang-DW2tVaY0.js} +1 -1
  12. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CQIJ54m1.js → MainLayout-BkFJubzZ.js} +53 -20
  13. package/dist/{Marketing-ONuItJ_B.js → Marketing-Da0HTlaz.js} +25 -25
  14. package/dist/{Member-SB2IySXY.js → Member-CVe_bRGx.js} +2 -2
  15. package/dist/MemberList-DpUy4gFd.js +1718 -0
  16. package/dist/{MemberTransactions-DPQ6M7eR.js → MemberTransactions-DWdTDUIJ.js} +2 -2
  17. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-1KjmvWsp.js +203 -0
  18. package/dist/{Mission-rdnU6erJ.js → Mission-0eSMWCls.js} +7 -7
  19. package/dist/{Point-C2M66ORj.js → Point-ju1eHI9Z.js} +7 -7
  20. package/dist/{Promotion-DixbjmMJ.js → Promotion-DZjWvnQa.js} +8 -8
  21. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CJsIBnGp.js → RuleGroup.vue_vue_type_script_setup_true_lang-CDPvpj10.js} +14 -14
  22. package/dist/{Segment-j_zQSV7O.js → Segment-Da_kMLWC.js} +18 -19
  23. package/dist/{Setting-ClhkF-bT.js → Setting-CxX35f3G.js} +541 -571
  24. package/dist/Store-DjUI3S8V.js +1442 -0
  25. package/dist/{StoreRewards-Bh90Ml4z.js → StoreRewards-92k0Bvp_.js} +74 -75
  26. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DlbNMiw9.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bsrz-oMi.js} +79 -82
  27. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DNkJ-pFL.js +124 -0
  28. package/dist/{Tier-vxsDt3Kj.js → Tier-2J4GN90t.js} +68 -71
  29. package/dist/{Title-IFyz9vfW.js → Title-B3Dw3w_5.js} +75 -78
  30. package/dist/{Transaction-ETa-y_H9.js → Transaction-Dz6WT5Hb.js} +1 -1
  31. package/dist/{Voucher-BMYcuaPn.js → Voucher-Bf3oSOKc.js} +37 -37
  32. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
  33. package/dist/{app-Bl9KwQq5.js → app-BSmDH0M7.js} +46 -46
  34. package/dist/{app-BqWTxQI-.js → app-C7I-jK_l.js} +1 -1
  35. package/dist/app.js +1 -1
  36. package/dist/{campaign-DI8CmTo2.js → campaign-CmvlWUoI.js} +11 -13
  37. package/dist/{collection.fn-CTEuol1r.js → collection.fn-DHlfGYAC.js} +2 -4
  38. package/dist/{dto-Bdlgo-8k.js → dto-rs6D-mtj.js} +239 -239
  39. package/dist/{effect-BdgYZfgW.js → effect-D8eQcTDU.js} +1 -1
  40. package/dist/{export-Dr_7YvBE.js → export-Bf2h8rMP.js} +3 -3
  41. package/dist/{helper-BygQ4tND.js → helper-BSlBLPdy.js} +1 -1
  42. package/dist/{index-CstgquVp.js → index-B64Y4rdW.js} +2 -2
  43. package/dist/{index-Djv3w5gV.js → index-BVSAl8E2.js} +37 -46
  44. package/dist/{index-DzQwND7p.js → index-CdMMIVsr.js} +217 -232
  45. package/dist/index-CuW8ePVX.js +244 -0
  46. package/dist/{index-DPYzF8No.js → index-D0nFU6ln.js} +1 -1
  47. package/dist/{index-Cv0dYoWA.js → index-fFL3EyTx.js} +68 -105
  48. package/dist/{index-Dhl0c4JQ.js → index-jqxAE4Rp.js} +1 -1
  49. package/dist/{index-BPdhkx4l.js → index-sIR31szI.js} +1 -1
  50. package/dist/{index-BtG8YOzi.js → index-wIa5WSXJ.js} +27 -28
  51. package/dist/{index-CpxxO2-G.js → index-x9e-DyDf.js} +1 -1
  52. package/dist/{loading-DlPkAkzK.js → loading-BxJj39Hj.js} +3156 -3156
  53. package/dist/{lodash-Cjf6EG_s.js → lodash-CrYvSLZb.js} +1 -1
  54. package/dist/{membership-B4-9J74r.js → membership-DKQL_Qp9.js} +73 -84
  55. package/dist/{money-il542E4J.js → money-B1P0wtzb.js} +1 -1
  56. package/dist/{number-WhKft9Yv.js → number-Bc1eguaq.js} +3 -3
  57. package/dist/{rule-XS2i1LKt.js → rule-BblG87FW.js} +2 -2
  58. package/dist/{rule-builder-CdK4IIT9.js → rule-builder-BQdKD4Gy.js} +1 -1
  59. package/dist/style.css +1 -1
  60. package/dist/{template-owB8rrou.js → template-o2RQUsfw.js} +6 -6
  61. package/dist/{usePagination-CxpwPyMW.js → usePagination-BaqNzQhm.js} +1 -1
  62. package/dist/{xlsx-CbJTFamj.js → xlsx-DqRMXFBK.js} +309 -309
  63. package/package.json +1 -1
  64. package/dist/Analytic-CCtweUZA.js +0 -757
  65. package/dist/MainLayout-CWfQ53Qr.js +0 -41
  66. package/dist/MemberList-C2X8fM7F.js +0 -1729
  67. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-CE03Mh2P.js +0 -432
  68. package/dist/Store-CaWIsSZ3.js +0 -1506
  69. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DkpguWBa.js +0 -136
  70. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +0 -55
  71. package/dist/index-_8VUWoAN.js +0 -245
  72. package/dist/zod-W_PvIofQ.js +0 -90
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, ref as i, resolveComponent as p, openBlock as t, createElementBlock as _, createVNode as d, unref as e, createBlock as r, createCommentVNode as f } from "vue";
2
- import { _ as v, a as b } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-DlbNMiw9.js";
3
- import { R as k } from "./app-Bl9KwQq5.js";
2
+ import { _ as v, a as b } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-Bsrz-oMi.js";
3
+ import { R as k } from "./app-BSmDH0M7.js";
4
4
  const x = { class: "flex flex-col gap-y-32 pb-24" }, V = /* @__PURE__ */ m({
5
5
  __name: "MemberTransactions",
6
6
  setup(C) {
@@ -0,0 +1,203 @@
1
+ import { defineComponent as M, ref as C, computed as E, onMounted as D, resolveComponent as l, openBlock as p, createElementBlock as v, createElementVNode as m, createVNode as c, unref as u, withCtx as h, createTextVNode as F, toDisplayString as T, Fragment as j, renderList as k, createBlock as U } from "vue";
2
+ import { p as A } from "./loading-BxJj39Hj.js";
3
+ import { r as B } from "./index-BVSAl8E2.js";
4
+ const L = {
5
+ "user.name": {
6
+ name: "User name"
7
+ },
8
+ "user.birthday": {
9
+ name: "Birthday"
10
+ },
11
+ "user.joinAt": {
12
+ name: "Join at"
13
+ },
14
+ "user.expiringVouchers.days7": {
15
+ name: "Expiring vouchers in 7 days"
16
+ },
17
+ "user.expiringVouchers.days30": {
18
+ name: "Expiring vouchers in 30 days"
19
+ },
20
+ "user.expiringVouchers.days90": {
21
+ name: "Expiring vouchers in 90 days"
22
+ },
23
+ "user.tier": {
24
+ name: "User tier"
25
+ },
26
+ "user.point": {
27
+ name: "User experience"
28
+ },
29
+ "transaction.amount": {
30
+ name: "Reward amount"
31
+ },
32
+ "collectible.name": {
33
+ name: "Reward name"
34
+ }
35
+ }, O = { class: "space-y-0" }, $ = { class: "flex items-center gap-8 justify-between" }, I = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1), N = { class: "relative" }, P = { class: "absolute bottom-[24px] right-[4px]" }, K = /* @__PURE__ */ M({
36
+ __name: "MessageInput",
37
+ props: {
38
+ modelValue: {
39
+ type: Object
40
+ },
41
+ triggerType: {
42
+ type: String,
43
+ default: () => "SCHEDULE"
44
+ },
45
+ helperText: {
46
+ type: String
47
+ },
48
+ helperState: {
49
+ type: String
50
+ },
51
+ variables: {
52
+ type: Object,
53
+ default: () => [
54
+ "user.name",
55
+ "user.birthday",
56
+ "user.joinAt",
57
+ "user.expiringVouchers.days7",
58
+ "user.expiringVouchers.days30",
59
+ "user.expiringVouchers.days90",
60
+ "user.tier",
61
+ "user.point",
62
+ "transaction.amount",
63
+ "collectible.name"
64
+ ]
65
+ },
66
+ placeholder: {
67
+ type: String
68
+ }
69
+ },
70
+ emits: ["update:model-value"],
71
+ setup(r, { emit: V }) {
72
+ const n = r, g = V;
73
+ function S() {
74
+ var t;
75
+ const a = {
76
+ user: {
77
+ name: "John Doe",
78
+ tier: 1,
79
+ point: 1283,
80
+ birthday: (/* @__PURE__ */ new Date("2000-10-02T16:00:00.000Z")).toLocaleDateString(),
81
+ joinAt: (/* @__PURE__ */ new Date("2024-06-14")).toLocaleDateString(),
82
+ expiringVouchers: { days7: 3, days30: 5, days90: 5 }
83
+ },
84
+ transaction: {
85
+ amount: 3
86
+ },
87
+ collectible: {
88
+ name: "RM10 Voucher"
89
+ }
90
+ }, e = B(
91
+ ((t = n.modelValue) == null ? void 0 : t.content) ?? "",
92
+ a
93
+ );
94
+ A.confirm(e, "Preview message", "OK");
95
+ }
96
+ function d(a) {
97
+ g("update:model-value", {
98
+ channel: "SMS",
99
+ content: a,
100
+ language: "en",
101
+ variables: n.variables
102
+ });
103
+ }
104
+ const _ = C(n.helperState || "none"), y = E(() => {
105
+ var t;
106
+ const a = ((t = n.modelValue) == null ? void 0 : t.content.replace(/{{([^}]+)}}/g, (s, o) => {
107
+ switch (o) {
108
+ case "user.name":
109
+ return "1234567890";
110
+ case "user.tier":
111
+ return "1";
112
+ case "user.point":
113
+ return "1000";
114
+ case "user.birthday":
115
+ return "01/01/2024";
116
+ case "user.joinAt":
117
+ return "01/01/2024";
118
+ case "user.expiringVouchers.days7":
119
+ case "user.expiringVouchers.days30":
120
+ case "user.expiringVouchers.days90":
121
+ return "5";
122
+ case "transaction.amount":
123
+ return "100";
124
+ case "collectible.name":
125
+ return "Voucher";
126
+ default:
127
+ return "...";
128
+ }
129
+ })) || "";
130
+ let e = 0;
131
+ for (let s = 0; s < a.length; s++) {
132
+ const o = a.charAt(s);
133
+ /[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(o) || /[{}\\~\[\]|\^€]/.test(o) ? e += 2 : e += 1;
134
+ }
135
+ return `Character used: ${e} ≈ ${Math.ceil(e / 160)} SMS (Every 160 characters will be sent as 1 SMS)`;
136
+ });
137
+ return D(() => {
138
+ g("update:model-value", {
139
+ ...n.modelValue,
140
+ variables: n.variables
141
+ }), n.modelValue || d("");
142
+ }), (a, e) => {
143
+ var x;
144
+ const t = l("FmButton"), s = l("FmTextarea"), o = l("FmMenuItem"), w = l("FmMenu");
145
+ return p(), v("div", O, [
146
+ m("div", $, [
147
+ I,
148
+ c(t, {
149
+ icon: "visibility",
150
+ label: "Preview message",
151
+ variant: "plain",
152
+ onClick: S
153
+ })
154
+ ]),
155
+ m("div", N, [
156
+ c(s, {
157
+ "model-value": (x = r.modelValue) == null ? void 0 : x.content,
158
+ "onUpdate:modelValue": d,
159
+ "show-word-count": !0,
160
+ placeholder: r.placeholder,
161
+ "helper-state": u(_) || "none",
162
+ "helper-text": u(y)
163
+ }, {
164
+ "helper-text": h(() => [
165
+ F(T(u(y)), 1)
166
+ ]),
167
+ _: 1
168
+ }, 8, ["model-value", "placeholder", "helper-state", "helper-text"]),
169
+ m("div", P, [
170
+ c(w, { placement: "left-end" }, {
171
+ "menu-button": h(() => [
172
+ c(t, {
173
+ icon: "add",
174
+ variant: "tertiary",
175
+ size: "md"
176
+ })
177
+ ]),
178
+ default: h(() => [
179
+ (p(!0), v(j, null, k(r.variables.filter(
180
+ (i) => r.triggerType == "SCHEDULE" ? !i.startsWith("transaction.") : !0
181
+ ), (i) => {
182
+ var f;
183
+ return p(), U(o, {
184
+ key: i,
185
+ label: ((f = u(L)[i]) == null ? void 0 : f.name) || i,
186
+ onClick: (R) => {
187
+ var b;
188
+ return d(((b = r.modelValue) == null ? void 0 : b.content) + `{{${i}}}`);
189
+ }
190
+ }, null, 8, ["label", "onClick"]);
191
+ }), 128))
192
+ ]),
193
+ _: 1
194
+ })
195
+ ])
196
+ ])
197
+ ]);
198
+ };
199
+ }
200
+ });
201
+ export {
202
+ K as _
203
+ };
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as I, computed as A, onMounted as D, resolveComponent as r, openBlock as c, createElementBlock as _, Fragment as h, createVNode as i, unref as a, createElementVNode as s, withCtx as w, renderList as E, createBlock as x, resolveDynamicComponent as H, toDisplayString as y, h as m } from "vue";
2
2
  import { _ as q } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as z, components as C } from "@feedmepos/ui-library";
4
- import { u as G, a as J, p as Q } from "./loading-DlPkAkzK.js";
5
- import { a as W } from "./app-Bl9KwQq5.js";
6
- import { u as X } from "./campaign-DI8CmTo2.js";
7
- import { g as M, b as V } from "./dto-Bdlgo-8k.js";
4
+ import { u as G, a as J, p as Q } from "./loading-BxJj39Hj.js";
5
+ import { a as W } from "./app-BSmDH0M7.js";
6
+ import { u as X } from "./campaign-CmvlWUoI.js";
7
+ import { g as M, b as V } from "./dto-rs6D-mtj.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--L-LP0DV.js";
10
- import { u as ee } from "./template-owB8rrou.js";
9
+ import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DljWmOEP.js";
10
+ import { u as ee } from "./template-o2RQUsfw.js";
11
11
  import { s as oe } from "./index-CuvNtC_M.js";
12
- import { c as g } from "./index-Dhl0c4JQ.js";
12
+ import { c as g } from "./index-jqxAE4Rp.js";
13
13
  const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, ce = { class: "fm-typo-en-body-lg-600" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = /* @__PURE__ */ s("img", {
14
14
  src: q,
15
15
  class: "aspect-square w-[150px]"
@@ -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-DlPkAkzK.js";
5
- import { a as W } from "./app-Bl9KwQq5.js";
6
- import { u as X } from "./campaign-DI8CmTo2.js";
7
- import { g as V, b as L } from "./dto-Bdlgo-8k.js";
4
+ import { u as J, p as Q } from "./loading-BxJj39Hj.js";
5
+ import { a as W } from "./app-BSmDH0M7.js";
6
+ import { u as X } from "./campaign-CmvlWUoI.js";
7
+ import { g as V, b as L } from "./dto-rs6D-mtj.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--L-LP0DV.js";
10
- import { u as ee } from "./template-owB8rrou.js";
11
- import { c as _ } from "./index-Dhl0c4JQ.js";
9
+ import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DljWmOEP.js";
10
+ import { u as ee } from "./template-o2RQUsfw.js";
11
+ import { c as _ } from "./index-jqxAE4Rp.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-DlPkAkzK.js";
5
- import { a as X } from "./app-Bl9KwQq5.js";
6
- import { u as Y } from "./campaign-DI8CmTo2.js";
7
- import { g as O } from "./dto-Bdlgo-8k.js";
8
- import { e as L } from "./effect-BdgYZfgW.js";
4
+ import { c as S, u as Q, p as W } from "./loading-BxJj39Hj.js";
5
+ import { a as X } from "./app-BSmDH0M7.js";
6
+ import { u as Y } from "./campaign-CmvlWUoI.js";
7
+ import { g as O } from "./dto-rs6D-mtj.js";
8
+ import { e as L } from "./effect-D8eQcTDU.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--L-LP0DV.js";
11
- import { u as oe } from "./template-owB8rrou.js";
12
- import { c as f } from "./index-Dhl0c4JQ.js";
10
+ import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DljWmOEP.js";
11
+ import { u as oe } from "./template-o2RQUsfw.js";
12
+ import { c as f } from "./index-jqxAE4Rp.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,21 @@
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-DzQwND7p.js";
3
- import { R as _, a as be } from "./rule-builder-CdK4IIT9.js";
4
- import { a as ge, R, S as ke, C as H, W as Ve, T as ne, O as Ee } from "./rule-XS2i1LKt.js";
5
- import { p as Fe } from "./loading-DlPkAkzK.js";
2
+ import { c as pe, C as ce, d as ye, e as ve, f as fe } from "./index-CdMMIVsr.js";
3
+ import { R as _, a as be } from "./rule-builder-BQdKD4Gy.js";
4
+ import { a as ge, R, S as ke, C as H, W as Ve, T as ne, O as Ee } from "./rule-BblG87FW.js";
5
+ import { p as Fe } from "./loading-BxJj39Hj.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, a as re } from "./app-Bl9KwQq5.js";
9
- import { u as z } from "./membership-B4-9J74r.js";
10
- import { _ as D } from "./index-Cv0dYoWA.js";
8
+ import { z as Se, a as re } from "./app-BSmDH0M7.js";
9
+ import { u as z } from "./membership-DKQL_Qp9.js";
10
+ import { _ as D } from "./index-fFL3EyTx.js";
11
11
  import { c as le } from "./object-qECH92oz.js";
12
- import { Z } from "./zod-W_PvIofQ.js";
13
- import { x as xe } from "./app-BqWTxQI-.js";
14
- import "./index-CstgquVp.js";
15
- import "./index-Djv3w5gV.js";
16
- import "./index-BtG8YOzi.js";
17
- import "./index-_8VUWoAN.js";
18
- import "./index-BPdhkx4l.js";
12
+ import { Z } from "./ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js";
13
+ import { x as xe } from "./app-C7I-jK_l.js";
14
+ import "./index-B64Y4rdW.js";
15
+ import "./index-BVSAl8E2.js";
16
+ import "./index-wIa5WSXJ.js";
17
+ import "./index-CuW8ePVX.js";
18
+ import "./index-sIR31szI.js";
19
19
  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
20
  __name: "RuleEntry",
21
21
  props: {
@@ -1,20 +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-DlPkAkzK.js";
3
+ import { F as N, p as oe, u as ae } from "./loading-BxJj39Hj.js";
4
4
  import { components as L } from "@feedmepos/ui-library";
5
- import { l as se } from "./lodash-Cjf6EG_s.js";
6
- import { Z as ne } from "./zod-W_PvIofQ.js";
7
- import { a as le } from "./index-BtG8YOzi.js";
8
- import { u as ie, a as re } from "./app-Bl9KwQq5.js";
9
- import { R as me } from "./rule-builder-CdK4IIT9.js";
10
- import { _ as ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js";
11
- import { _ as de } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CJsIBnGp.js";
5
+ import { l as se } from "./lodash-CrYvSLZb.js";
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-wIa5WSXJ.js";
8
+ import { u as re, a as me } from "./app-BSmDH0M7.js";
9
+ import { R as ce } from "./rule-builder-BQdKD4Gy.js";
10
+ import { _ as de } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CDPvpj10.js";
12
11
  import { h as P } from "./moment-BWErdI6_.js";
13
- import { u as ue, _ as pe } from "./usePagination-CxpwPyMW.js";
14
- import { s as k } from "./membership-B4-9J74r.js";
12
+ import { u as ue, _ as pe } from "./usePagination-BaqNzQhm.js";
13
+ import { s as k } from "./membership-DKQL_Qp9.js";
15
14
  import { o as fe } from "./objectId-dwaoBfJX.js";
16
- import { m as ge } from "./index-DPYzF8No.js";
17
- const _e = le.extend({
15
+ import { m as ge } from "./index-D0nFU6ln.js";
16
+ const _e = ie.extend({
18
17
  _id: N.optional(),
19
18
  business: N.optional()
20
19
  }), ve = { class: "space-y-16 pr-12" }, ye = { class: "fm-typo-en-title-md-800" }, he = { class: "flex space-x-8" }, Se = { class: "fm-typo-en-title-md-800 text-fm-color-primary" }, be = { class: "text-fm-color-typo-secondary" }, xe = /* @__PURE__ */ a("div", null, "contacts in your segment", -1), we = {
@@ -86,9 +85,9 @@ const _e = le.extend({
86
85
  __name: "SegmentSheet",
87
86
  emits: ["update:model-value"],
88
87
  setup(D, { expose: _, emit: x }) {
89
- const v = ie(), r = w(!1), c = w(!1), m = {
88
+ const v = re(), r = w(!1), c = w(!1), m = {
90
89
  name: "",
91
- rule: me.scaffoldGroup(),
90
+ rule: ce.scaffoldGroup(),
92
91
  members: []
93
92
  }, d = _e, l = w(m), s = j(() => {
94
93
  const t = d.safeParse(l.value);
@@ -161,11 +160,11 @@ const _e = le.extend({
161
160
  title: e(l).name,
162
161
  segment: e(l)
163
162
  }, null, 8, ["title", "segment"])) : (p(), b("div", Ie, [
164
- n(ce, {
163
+ n(ne, {
165
164
  modelValue: e(l).name,
166
165
  "onUpdate:modelValue": i[1] || (i[1] = (R) => e(l).name = R),
167
166
  label: "Segment title",
168
- schema: e(ne).typeAtPath(e(d), "name")
167
+ schema: e(le).typeAtPath(e(d), "name")
169
168
  }, null, 8, ["modelValue", "schema"]),
170
169
  Ve,
171
170
  n(de, {
@@ -204,10 +203,10 @@ const _e = le.extend({
204
203
  }, null, -1), Ee = /* @__PURE__ */ a("div", { class: "flex flex-col gap-16 text-center" }, [
205
204
  /* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-800" }, "Create customer segments"),
206
205
  /* @__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. ")
207
- ], -1), st = /* @__PURE__ */ A({
206
+ ], -1), at = /* @__PURE__ */ A({
208
207
  __name: "Segment",
209
208
  setup(D) {
210
- const { minor: _ } = ae, x = re(), v = w(0), r = [
209
+ const { minor: _ } = ae, x = me(), v = w(0), r = [
211
210
  {
212
211
  header: "Name",
213
212
  accessorFn: (o) => o.name
@@ -441,5 +440,5 @@ const _e = le.extend({
441
440
  }
442
441
  });
443
442
  export {
444
- st as default
443
+ at as default
445
444
  };