@feedmepos/mf-connect 0.0.10-prod → 0.0.11-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 (65) hide show
  1. package/dist/{Analytic-BFeicKpw.js → Analytic-CpXLcGWV.js} +7 -7
  2. package/dist/{Broadcast-D0NyeAPC.js → Broadcast-CEMQS5PI.js} +7 -7
  3. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DAUidvXJ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0Kvpl_V.js} +8 -8
  4. package/dist/{Card-DsFHDP5R.js → Card-BqX-aRK9.js} +177 -182
  5. package/dist/{Collections-mc47YFfd.js → Collections-SRmluAj0.js} +102 -84
  6. package/dist/{Credit-TQYanlxz.js → Credit-DdBKFsII.js} +7 -7
  7. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYNpBySQ.js +2600 -0
  8. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-kA-uGqCI.js → EffectSheet.vue_vue_type_style_index_0_lang-admNNBWu.js} +1864 -1830
  9. package/dist/{Experience-CyASWXXY.js → Experience-CSfRrWqI.js} +7 -7
  10. package/dist/Game-BV--qn0e.js +250 -0
  11. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-D-wHmyMe.js → ImageInput.vue_vue_type_script_setup_true_lang-DpYjrT3G.js} +1 -1
  12. package/dist/{MainLayout-zw-S_EV5.js → MainLayout-B_ZXQrMD.js} +1 -1
  13. package/dist/{Marketing-BcmbBw-5.js → Marketing-Bac3EbOu.js} +4 -4
  14. package/dist/{Member-DWRIIPj-.js → Member-CGMRVEuI.js} +2 -2
  15. package/dist/{MemberList-DNG0mNej.js → MemberList-CSyb4bNE.js} +196 -195
  16. package/dist/{MemberTransactions-xdm0zGuQ.js → MemberTransactions-BdraBHg6.js} +2 -2
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Bqs3tfs_.js → MessageInput.vue_vue_type_script_setup_true_lang-BvAFOoym.js} +2 -2
  18. package/dist/Mission-D8-D99g-.js +248 -0
  19. package/dist/Point-BOI4mT-K.js +220 -0
  20. package/dist/{Promotion-DlxqsZFt.js → Promotion-D0MLMo9m.js} +8 -8
  21. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DcLK4o-E.js → RuleGroup.vue_vue_type_script_setup_true_lang-1L68zx5t.js} +58 -58
  22. package/dist/Segment-BeUbkVj7.js +444 -0
  23. package/dist/{Setting-CWftoE15.js → Setting-uM4iKdyM.js} +386 -379
  24. package/dist/{Store-jqibjN4j.js → Store-BkccNTnM.js} +432 -413
  25. package/dist/{StoreRewards-DWbp79R_.js → StoreRewards-BLgP6Mfv.js} +9 -9
  26. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-b21Sy462.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Z0nqQyi8.js} +39 -38
  27. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BUOfEY4s.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C771jjYx.js} +1 -1
  28. package/dist/{Tier-lymEcCqJ.js → Tier-DwKAfz6f.js} +17 -16
  29. package/dist/{Title-CYkql8-l.js → Title-B1_yd9pC.js} +16 -15
  30. package/dist/{Transaction-Ca_AVh3S.js → Transaction-DcVCMUY4.js} +1 -1
  31. package/dist/{Voucher-DX70cORv.js → Voucher-Djvai5vL.js} +9 -9
  32. package/dist/{app-Bpd1FsZZ.js → app-BvizV9z5.js} +2757 -2743
  33. package/dist/app.js +1 -1
  34. package/dist/{campaign-CfsRf50J.js → campaign-BdSwq7MJ.js} +31 -27
  35. package/dist/dto-CkH5Zama.js +1150 -0
  36. package/dist/{effect-CiUKauPm.js → effect-DT4ivttr.js} +1 -1
  37. package/dist/{export-oV5_2WhN.js → export-BAJL8_2G.js} +3 -3
  38. package/dist/{helper-dCIRT9Az.js → helper-CiIZ1pUo.js} +21 -8
  39. package/dist/{index-Qqifr9f8.js → index-7uOMMdXt.js} +245 -184
  40. package/dist/{index-BL_KPUtI.js → index-8nrxC9d5.js} +1 -1
  41. package/dist/{index-De3pocAb.js → index-B5gJ6P15.js} +269 -21
  42. package/dist/{index-DL_XK8dd.js → index-BLWw_MlC.js} +1363 -1341
  43. package/dist/{index-D9opigZA.js → index-C5N8jeJ1.js} +1 -1
  44. package/dist/{index-Dd41k099.js → index-C8dIiNQb.js} +1 -1
  45. package/dist/{index-XTz7nzez.js → index-Ccn7PGoB.js} +268 -267
  46. package/dist/{index-BYvX1Aa7.js → index-CjZxaXvZ.js} +69 -64
  47. package/dist/{index-BgPP5w8f.js → index-DCs4-zXS.js} +7 -17
  48. package/dist/{index-C8kJRh0b.js → index-DMyaEjMn.js} +26 -20
  49. package/dist/{loading-Baon-6K7.js → loading-C1IzY-n2.js} +1312 -1312
  50. package/dist/{lodash-C7zZd2mb.js → lodash-BMQ4xbjY.js} +1 -1
  51. package/dist/membership-D3I4udu3.js +221 -0
  52. package/dist/{money-CI5RX_Uc.js → money-BQEcWGhZ.js} +1 -1
  53. package/dist/{number-BD3GORAT.js → number-DGx2QPUy.js} +1 -1
  54. package/dist/{rule-BnlZjqSN.js → rule-CvlhLEGy.js} +2 -2
  55. package/dist/{rule-builder-Qvpo2dS_.js → rule-builder-Di3qiIBb.js} +1 -1
  56. package/dist/{template-CG_Y7BYa.js → template-D6Abrya4.js} +5 -5
  57. package/dist/{usePagination-BHEEnWBL.js → usePagination-MhbjQgN7.js} +1 -1
  58. package/dist/{xlsx-DQZIpY73.js → xlsx-mL_3T1k3.js} +226 -226
  59. package/package.json +2 -2
  60. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BtEHnivB.js +0 -2002
  61. package/dist/Game-Tek__-5h.js +0 -242
  62. package/dist/Point-C1mfq_Fd.js +0 -211
  63. package/dist/Segment-BLMz7i-L.js +0 -407
  64. package/dist/dto-COz9T0F3.js +0 -1092
  65. package/dist/membership-Cg82yybg.js +0 -210
@@ -0,0 +1,444 @@
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
+ import { _ as te } from "./campaign-CpzFl8Vr.js";
3
+ import { F as N, p as oe, u as ae } from "./loading-C1IzY-n2.js";
4
+ import { components as L } from "@feedmepos/ui-library";
5
+ import { l as se } from "./lodash-BMQ4xbjY.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-Ccn7PGoB.js";
8
+ import { u as re, a as me } from "./app-BvizV9z5.js";
9
+ import { R as ce } from "./rule-builder-Di3qiIBb.js";
10
+ import { _ as de } from "./RuleGroup.vue_vue_type_script_setup_true_lang-1L68zx5t.js";
11
+ import { h as P } from "./moment-BWErdI6_.js";
12
+ import { u as ue, _ as pe } from "./usePagination-MhbjQgN7.js";
13
+ import { s as k } from "./membership-D3I4udu3.js";
14
+ import { o as fe } from "./objectId-dwaoBfJX.js";
15
+ import { m as ge } from "./index-C8dIiNQb.js";
16
+ const _e = ie.extend({
17
+ _id: N.optional(),
18
+ business: N.optional()
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 = {
20
+ key: 0,
21
+ class: "w-full flex flex-col gap-16 items-center pt-16"
22
+ }, Fe = /* @__PURE__ */ a("div", { class: "fm-typo-en-body-lg-600" }, "No data found", -1), Ce = /* @__PURE__ */ a("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " No data to show at the current moment. ", -1), ke = [
23
+ Fe,
24
+ Ce
25
+ ], Me = /* @__PURE__ */ A({
26
+ __name: "ReviewSegment",
27
+ props: {
28
+ title: {},
29
+ segment: {}
30
+ },
31
+ setup(D) {
32
+ const _ = D, x = [
33
+ {
34
+ header: "Name",
35
+ accessorFn: (s) => s.name
36
+ },
37
+ {
38
+ header: "Customer Since",
39
+ accessorFn: (s) => P(fe(s._id.toString())).format("DD MMM YYYY")
40
+ },
41
+ {
42
+ header: "Birthday",
43
+ accessorFn: (s) => P(s.birthday).format("DD MMM YYYY")
44
+ },
45
+ {
46
+ header: "Last Visit",
47
+ accessorFn: (s) => P(s.stats.lastVisit).format("DD MMM YYYY")
48
+ }
49
+ ], v = async (s) => _.segment._id ? await k.paginateSegmentUsers(_.segment._id, {
50
+ limit: r.value.pageSize,
51
+ skip: s.pageIndex ?? 0,
52
+ sortBy: "_id",
53
+ search: s.searchValue,
54
+ descending: !0
55
+ }) : { resources: [], meta: { totalResources: 0, totalPages: 0 } }, { tableMeta: r, rowData: c, onSort: m, debouncedFetchData: d, onSearch: l } = ue(v);
56
+ return E(async () => {
57
+ await d();
58
+ }), (s, F) => (p(), b("div", ve, [
59
+ a("div", ye, M(_.title), 1),
60
+ a("div", he, [
61
+ a("div", Se, M(s.segment.members.length), 1),
62
+ a("div", be, [
63
+ xe,
64
+ a("div", null, "as of " + M(e(P)(s.segment.lastUpdated).format("DD MMM YYYY")), 1)
65
+ ])
66
+ ]),
67
+ n(pe, {
68
+ loading: e(r).isLoading,
69
+ "row-data": e(c),
70
+ "row-count": e(r).totalRows,
71
+ "column-defs": x,
72
+ "page-size": e(r).pageSize,
73
+ "page-count": e(r).pageCount,
74
+ "page-index": e(r).pageIndex,
75
+ onSortChange: e(m),
76
+ onPageChange: F[0] || (F[0] = (h) => e(d)({ pageSize: h.pageSize, pageIndex: h.pageIndex }))
77
+ }, null, 8, ["loading", "row-data", "row-count", "page-size", "page-count", "page-index", "onSortChange"]),
78
+ e(c).length == 0 ? (p(), b("div", we, ke)) : q("", !0)
79
+ ]));
80
+ }
81
+ }), $e = { class: "flex items-center gap-x-8" }, Re = /* @__PURE__ */ a("div", null, "Review segment", -1), Ie = {
82
+ key: 0,
83
+ class: "space-y-16 pr-12"
84
+ }, Ve = /* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-800" }, "Segment Filter", -1), Pe = { class: "flex items-center gap-8" }, Be = /* @__PURE__ */ A({
85
+ __name: "SegmentSheet",
86
+ emits: ["update:model-value"],
87
+ setup(D, { expose: _, emit: x }) {
88
+ const v = re(), r = w(!1), c = w(!1), m = {
89
+ name: "",
90
+ rule: ce.scaffoldGroup(),
91
+ members: []
92
+ }, d = _e, l = w(m), s = j(() => {
93
+ const t = d.safeParse(l.value);
94
+ return t.success ? [] : t.error.errors;
95
+ });
96
+ function F(t) {
97
+ r.value = !0, c.value = !1, t ? l.value = { ...t } : l.value = { ...m };
98
+ }
99
+ function h() {
100
+ r.value = !1;
101
+ }
102
+ async function Y() {
103
+ d.safeParse(l.value).success && (c.value = !0);
104
+ }
105
+ function C() {
106
+ c.value = !1;
107
+ }
108
+ async function z() {
109
+ o("update:model-value", l.value);
110
+ }
111
+ E(async () => {
112
+ });
113
+ const o = x;
114
+ return _({
115
+ showSheet: F,
116
+ hideSheet: h
117
+ }), (t, i) => {
118
+ const S = u("FmButton"), $ = u("FmSideSheet");
119
+ return p(), B($, {
120
+ modelValue: e(r),
121
+ "onUpdate:modelValue": i[5] || (i[5] = (y) => G(r) ? r.value = y : null),
122
+ header: "Add segment",
123
+ "dismiss-away": "",
124
+ "close-button": !0,
125
+ "max-width": 1100
126
+ }, J({
127
+ "side-sheet-footer": g(() => [
128
+ a("div", Pe, [
129
+ e(c) ? (p(), b(V, { key: 0 }, [
130
+ n(S, {
131
+ label: "Save Segment",
132
+ onClick: z,
133
+ loading: e(v).isLoading,
134
+ disabled: e(s).length > 0 || e(v).isLoading
135
+ }, null, 8, ["loading", "disabled"]),
136
+ n(S, {
137
+ label: "Cancel",
138
+ onClick: i[3] || (i[3] = (y) => C()),
139
+ variant: "tertiary"
140
+ })
141
+ ], 64)) : (p(), b(V, { key: 1 }, [
142
+ n(S, {
143
+ label: "Review Segment",
144
+ disabled: e(s).length > 0 || e(v).isLoading,
145
+ onClick: Y
146
+ }, null, 8, ["disabled"]),
147
+ n(S, {
148
+ label: "Cancel",
149
+ onClick: i[4] || (i[4] = (y) => h()),
150
+ variant: "tertiary"
151
+ })
152
+ ], 64))
153
+ ])
154
+ ]),
155
+ default: g(() => {
156
+ var y;
157
+ return [
158
+ e(c) ? (p(), B(Me, {
159
+ key: 1,
160
+ title: e(l).name,
161
+ segment: e(l)
162
+ }, null, 8, ["title", "segment"])) : (p(), b("div", Ie, [
163
+ n(ne, {
164
+ modelValue: e(l).name,
165
+ "onUpdate:modelValue": i[1] || (i[1] = (R) => e(l).name = R),
166
+ label: "Segment title",
167
+ schema: e(le).typeAtPath(e(d), "name")
168
+ }, null, 8, ["modelValue", "schema"]),
169
+ Ve,
170
+ n(de, {
171
+ "trigger-type": "MEMBERSHIP_JOINED",
172
+ includeOnly: "user",
173
+ "model-value": (y = e(l)) == null ? void 0 : y.rule,
174
+ "onUpdate:modelValue": i[2] || (i[2] = (R) => {
175
+ e(l).rule = R;
176
+ })
177
+ }, null, 8, ["model-value"])
178
+ ]))
179
+ ];
180
+ }),
181
+ _: 2
182
+ }, [
183
+ e(c) ? {
184
+ name: "side-sheet-header",
185
+ fn: g(() => [
186
+ a("div", $e, [
187
+ n(S, {
188
+ icon: "arrow_back",
189
+ variant: "tertiary",
190
+ onClick: i[0] || (i[0] = (y) => c.value = !1)
191
+ }),
192
+ Re
193
+ ])
194
+ ]),
195
+ key: "0"
196
+ } : void 0
197
+ ]), 1032, ["modelValue"]);
198
+ };
199
+ }
200
+ }), De = { class: "flex items-center" }, Ye = /* @__PURE__ */ a("span", { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, " Segments ", -1), ze = { class: "px-24 flex flex-col gap-y-16" }, Le = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ae = { class: "fm-typo-en-body-md-600" }, Ue = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ne = /* @__PURE__ */ a("img", {
201
+ src: te,
202
+ class: "aspect-square w-[150px]"
203
+ }, null, -1), Ee = /* @__PURE__ */ a("div", { class: "flex flex-col gap-16 text-center" }, [
204
+ /* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-800" }, "Create customer segments"),
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. ")
206
+ ], -1), at = /* @__PURE__ */ A({
207
+ __name: "Segment",
208
+ setup(D) {
209
+ const { minor: _ } = ae, x = me(), v = w(0), r = [
210
+ {
211
+ header: "Name",
212
+ accessorFn: (o) => o.name
213
+ },
214
+ {
215
+ header: "Total Customers in this Segment",
216
+ accessorFn: (o) => o.memberCount ?? 0
217
+ },
218
+ {
219
+ header: "% of customers",
220
+ accessorFn: (o) => ((o.memberCount ?? 0) * 100 / v.value).toFixed(2)
221
+ },
222
+ {
223
+ header: "Actions",
224
+ meta: {
225
+ maxWidth: "100px"
226
+ },
227
+ cell(o) {
228
+ return I("div", { class: "flex items-center justify-end" }, [
229
+ I(
230
+ L.FmMenu,
231
+ {
232
+ placement: "bottom-end",
233
+ onClick: (t) => {
234
+ t.stopPropagation();
235
+ }
236
+ },
237
+ {
238
+ "menu-button": () => I(L.FmButton, {
239
+ icon: "more_vert",
240
+ iconColor: "neutral-gray-400",
241
+ variant: "tertiary"
242
+ }),
243
+ default: () => [
244
+ I(
245
+ L.FmMenuItem,
246
+ {
247
+ onClick: async (t) => {
248
+ t.stopPropagation(), h(o.row.original);
249
+ }
250
+ },
251
+ {
252
+ label: I(
253
+ "div",
254
+ {
255
+ class: "text-fm-color-typo-error fm-typo-en-body-md-400"
256
+ },
257
+ "Remove"
258
+ )
259
+ }
260
+ )
261
+ ]
262
+ }
263
+ )
264
+ ]);
265
+ }
266
+ }
267
+ ], c = W({ searchKey: "", columnFilters: [] }), m = w({
268
+ searchValue: "",
269
+ pageSize: 10,
270
+ pageCount: 0,
271
+ pageIndex: 0,
272
+ totalRows: 0,
273
+ isLoading: !1
274
+ }), d = w([]), l = w(null), s = async (o) => {
275
+ d.value = [], m.value.isLoading = !0;
276
+ const t = await k.readAll({
277
+ limit: o.pageSize,
278
+ skip: o.pageIndex ?? 0,
279
+ sortBy: "_id",
280
+ search: m.value.searchValue,
281
+ descending: !0
282
+ });
283
+ d.value = t.resources, m.value.totalRows = t.meta.totalResources ?? 0, m.value.pageCount = t.meta.totalPages ?? 0, m.value.isLoading = !1;
284
+ };
285
+ async function F() {
286
+ await _(
287
+ async () => {
288
+ await k.refreshSegments(), await s({ pageSize: 10, pageIndex: 0 });
289
+ },
290
+ { message: "Refreshing segmentations" }
291
+ );
292
+ }
293
+ async function h(o) {
294
+ await oe.remove(`Are you sure you want to remove ${o.name}?`) && await _(
295
+ async () => {
296
+ await k.delete(o._id), await s({ pageSize: 10, pageIndex: 0 });
297
+ },
298
+ {
299
+ message: `Removing ${o.name}`,
300
+ successMessage: `Removed ${o.name} successfully`
301
+ }
302
+ );
303
+ }
304
+ async function Y(o) {
305
+ await _(
306
+ async () => {
307
+ var t;
308
+ if (o._id) {
309
+ const { members: i, _id: S, ...$ } = o;
310
+ await k.update(o._id, $);
311
+ } else
312
+ await k.create(o);
313
+ await s({ pageSize: 10, pageIndex: 0 }), (t = l.value) == null || t.hideSheet();
314
+ },
315
+ {
316
+ message: "Saving segment",
317
+ successMessage: "Segment saved"
318
+ }
319
+ );
320
+ }
321
+ function C(o) {
322
+ var t;
323
+ (t = l.value) == null || t.showSheet(o);
324
+ }
325
+ const z = j(() => x.isPremium ? [
326
+ {
327
+ label: "Refresh segments",
328
+ value: "refresh"
329
+ },
330
+ {
331
+ label: "Add segment",
332
+ value: "add",
333
+ isPrimary: !0,
334
+ prependIcon: "add"
335
+ }
336
+ ] : []);
337
+ return Q(
338
+ () => m.value.searchValue,
339
+ se.debounce(() => {
340
+ s({ pageSize: 10, pageIndex: 0 });
341
+ }, 500)
342
+ ), X(async () => {
343
+ const { meta: o } = await ge.read({
344
+ limit: 1,
345
+ skip: 0,
346
+ sortBy: "_id",
347
+ search: m.value.searchValue,
348
+ descending: !1
349
+ });
350
+ v.value = o.totalResources ?? 0, await s({ pageSize: 10, pageIndex: 0 }), await x.readPremium();
351
+ }), (o, t) => {
352
+ const i = u("FmPill"), S = u("FmPageHead"), $ = u("FmTable"), y = u("FmIcon"), R = u("FmMenuItem"), H = u("FmMenu"), T = u("FmListItem"), O = u("FmList"), K = u("FmButton"), Z = u("FmCard");
353
+ return p(), b(V, null, [
354
+ n(S, {
355
+ title: "Segments",
356
+ actions: e(z),
357
+ "onClick:action": t[0] || (t[0] = (f) => f === "add" ? C() : F())
358
+ }, {
359
+ title: g(() => [
360
+ a("div", De, [
361
+ Ye,
362
+ n(i, { variant: "premium" })
363
+ ])
364
+ ]),
365
+ _: 1
366
+ }, 8, ["actions"]),
367
+ a("div", ze, [
368
+ e(d).length > 0 || e(m).searchValue ? (p(), b(V, { key: 0 }, [
369
+ n($, {
370
+ class: "xs:hidden",
371
+ "row-data": e(d),
372
+ "column-defs": r,
373
+ "search-value": e(c).searchKey,
374
+ "column-filter": [],
375
+ "hide-footer": !0,
376
+ onRowClick: t[1] || (t[1] = (f) => {
377
+ C(f.original);
378
+ })
379
+ }, null, 8, ["row-data", "search-value"]),
380
+ n(O, { class: "w-full hidden xs:block" }, {
381
+ default: g(() => [
382
+ (p(!0), b(V, null, ee(e(d), (f) => (p(), B(T, {
383
+ key: f._id.toString(),
384
+ tag: "label",
385
+ onClick: (U) => C(f)
386
+ }, {
387
+ default: g(() => [
388
+ a("div", null, [
389
+ a("div", Le, M((f.memberCount ?? 0).toLocaleString()) + " total customers ", 1),
390
+ a("div", Ae, M(f.name), 1),
391
+ a("div", Ue, M(((f.memberCount ?? 0) * 100 / e(v)).toFixed(2)) + "% of customers ", 1)
392
+ ])
393
+ ]),
394
+ append: g(() => [
395
+ n(H, { "stop-click-propagation": !0 }, {
396
+ "menu-button": g(() => [
397
+ n(y, { name: "more_vert" })
398
+ ]),
399
+ default: g(() => [
400
+ n(R, {
401
+ class: "text-fm-color-typo-error fm-typo-en-body-md-400",
402
+ label: "Remove",
403
+ "onUpdate:modelValue": (U) => U && h(f)
404
+ }, null, 8, ["onUpdate:modelValue"])
405
+ ]),
406
+ _: 2
407
+ }, 1024)
408
+ ]),
409
+ _: 2
410
+ }, 1032, ["onClick"]))), 128))
411
+ ]),
412
+ _: 1
413
+ })
414
+ ], 64)) : (p(), B(Z, {
415
+ key: 1,
416
+ variant: "outlined",
417
+ class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
418
+ }, {
419
+ default: g(() => [
420
+ Ne,
421
+ Ee,
422
+ n(K, {
423
+ variant: "primary",
424
+ label: "Create segment",
425
+ disabled: !e(x).isPremium,
426
+ icon: "add",
427
+ onClick: t[2] || (t[2] = (f) => C())
428
+ }, null, 8, ["disabled"])
429
+ ]),
430
+ _: 1
431
+ })),
432
+ n(Be, {
433
+ ref_key: "sheetRef",
434
+ ref: l,
435
+ "onUpdate:modelValue": Y
436
+ }, null, 512)
437
+ ])
438
+ ], 64);
439
+ };
440
+ }
441
+ });
442
+ export {
443
+ at as default
444
+ };