@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
@@ -1,242 +0,0 @@
1
- import { defineComponent as U, ref as V, computed as j, onMounted as D, resolveComponent as l, openBlock as c, createElementBlock as _, Fragment as h, createVNode as r, unref as a, createElementVNode as n, withCtx as w, renderList as H, createBlock as x, resolveDynamicComponent as N, toDisplayString as g, h as m } from "vue";
2
- import { _ as q } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as z, components as b } from "@feedmepos/ui-library";
4
- import { u as J, a as O, p as Q } from "./loading-Baon-6K7.js";
5
- import { a as W } from "./app-Bpd1FsZZ.js";
6
- import { u as X } from "./campaign-CfsRf50J.js";
7
- import { g as L, b as A } from "./dto-COz9T0F3.js";
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-BtEHnivB.js";
10
- import { u as ee } from "./template-CG_Y7BYa.js";
11
- import { c as y } from "./index-BgPP5w8f.js";
12
- const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-center justify-between w-full" }, ae = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, se = { 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" }, ie = { class: "fm-typo-en-body-lg-600" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = /* @__PURE__ */ n("img", {
13
- src: q,
14
- class: "aspect-square w-[150px]"
15
- }, null, -1), ue = /* @__PURE__ */ n("div", { class: "flex flex-col gap-16 text-center" }, [
16
- /* @__PURE__ */ n("div", { class: "fm-typo-en-title-sm-800" }, "Create your game program"),
17
- /* @__PURE__ */ n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " The game feature adds a fun element to shopping, encouraging customers to engage more. ")
18
- ], -1), Fe = /* @__PURE__ */ U({
19
- __name: "Game",
20
- setup(pe) {
21
- const B = {
22
- label: "Create campaign",
23
- value: "create",
24
- isPrimary: !0,
25
- prependIcon: "add"
26
- }, $ = ee("GAME", z()), E = W(), i = X(), { global: G, minor: v } = J, s = V({
27
- searchKey: "",
28
- location: null
29
- }), p = j(
30
- () => i.campaigns.token.filter(
31
- (e) => !s.value.location || !e.targetLocation || e.targetLocation.includes(s.value.location)
32
- )
33
- ), K = [
34
- {
35
- header: "Program title",
36
- accessorKey: "name",
37
- // accessorFn: (v) => v.name,
38
- cell(e) {
39
- return m("div", { class: "flex items-center justify-between gap-4" }, [
40
- m("div", { class: "flex items-center" }, [
41
- m(
42
- b.FmTooltip,
43
- {
44
- content: e.row.original._id,
45
- onClick: (o) => {
46
- o.stopPropagation(), O(e.row.original._id);
47
- }
48
- },
49
- [
50
- m(b.FmIcon, {
51
- name: "info",
52
- outline: !0,
53
- size: "sm"
54
- })
55
- ]
56
- )
57
- ]),
58
- m("div", { class: "flex-1" }, e.row.original.name)
59
- ]);
60
- }
61
- },
62
- {
63
- header: "Status",
64
- cell(e) {
65
- return L(e.row.original);
66
- }
67
- },
68
- {
69
- header: "Summary",
70
- accessorFn: (e) => A(e)
71
- //v.effect,
72
- },
73
- {
74
- header: "Token received",
75
- accessorFn: (e) => {
76
- var o;
77
- return ((o = e == null ? void 0 : e.pf_collectible) == null ? void 0 : o.currentReceive) ?? 0;
78
- }
79
- },
80
- {
81
- header: "Actions",
82
- cell(e) {
83
- return m(b.FmButton, {
84
- variant: "tertiary",
85
- icon: "delete",
86
- iconColor: "neutral-gray-400",
87
- onClick: (o) => {
88
- o.stopPropagation(), k(e.row.original);
89
- }
90
- });
91
- }
92
- }
93
- ], C = V();
94
- async function k(e) {
95
- await Q.remove(`Are you sure you want to remove ${e.name}?`) && await v(
96
- async () => {
97
- await y.delete(e._id), await i.read("GAME");
98
- },
99
- {
100
- message: `Removing ${e.name}`,
101
- successMessage: `Removed ${e.name} successfully`
102
- }
103
- );
104
- }
105
- async function f(e) {
106
- e ? await o() : $.open(async (d) => {
107
- await o(d);
108
- });
109
- async function o(d) {
110
- var u;
111
- (u = C.value) == null || u.showSheet(
112
- !0,
113
- "GAME",
114
- e ? await y.readById(e._id) : void 0,
115
- d
116
- );
117
- }
118
- }
119
- async function M(e) {
120
- await v(
121
- async () => {
122
- e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await i.read("GAME");
123
- },
124
- {
125
- message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
126
- successMessage: `Game program ${e.campaign._id ? "updated" : "created"} successfully`
127
- }
128
- );
129
- }
130
- return D(async () => {
131
- await G(async () => {
132
- await i.read("GAME");
133
- });
134
- }), (e, o) => {
135
- const d = l("FmPageHead"), u = l("FmSearch"), R = l("FmTable"), F = l("FmButton"), T = l("FmListItem"), P = l("FmList"), I = l("FmCard");
136
- return c(), _(h, null, [
137
- r(d, {
138
- title: "Game",
139
- actions: a(p).length > 0 ? [B] : [],
140
- "onClick:action": o[0] || (o[0] = () => f())
141
- }, null, 8, ["actions"]),
142
- n("div", oe, [
143
- r(u, {
144
- modelValue: a(s).searchKey,
145
- "onUpdate:modelValue": o[1] || (o[1] = (t) => a(s).searchKey = t),
146
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
147
- placeholder: "search",
148
- collapsible: ""
149
- }, null, 8, ["modelValue"]),
150
- a(i).campaigns.token && a(i).campaigns.token.length > 0 ? (c(), _(h, { key: 0 }, [
151
- n("div", te, [
152
- n("div", ae, [
153
- r(Y, {
154
- modelValue: a(s).location,
155
- "onUpdate:modelValue": o[2] || (o[2] = (t) => a(s).location = t),
156
- label: "Location: ",
157
- "show-item-label": !0,
158
- icon: "storefront",
159
- placement: "bottom-start",
160
- items: a(E).locationItems
161
- }, null, 8, ["modelValue", "items"])
162
- ]),
163
- r(u, {
164
- modelValue: a(s).searchKey,
165
- "onUpdate:modelValue": o[3] || (o[3] = (t) => a(s).searchKey = t),
166
- class: "xs:hidden",
167
- placeholder: "search",
168
- collapsible: ""
169
- }, null, 8, ["modelValue"])
170
- ]),
171
- r(R, {
172
- class: "xs:hidden",
173
- "row-data": a(p),
174
- "column-defs": K,
175
- "search-value": a(s).searchKey,
176
- "column-filter": [],
177
- onRowClick: o[4] || (o[4] = (t) => f(t.original)),
178
- "hide-footer": a(p).length < 10
179
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
180
- r(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
181
- default: w(() => [
182
- (c(!0), _(h, null, H(a(p).filter(
183
- (t) => t.name.toLowerCase().includes(a(s).searchKey.toLowerCase())
184
- ), (t) => (c(), x(T, {
185
- key: t._id.toString(),
186
- onClick: (S) => f(t),
187
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
188
- }, {
189
- default: w(() => [
190
- n("div", ne, [
191
- n("div", se, [
192
- (c(), x(N(a(L)(t)))),
193
- n("div", re, g(t.currentReceive ?? 0) + " used ", 1)
194
- ]),
195
- n("div", le, [
196
- n("div", ie, g(t.name), 1),
197
- n("div", ce, g(a(A)(t)), 1)
198
- ]),
199
- n("div", me, " Token received: " + g(t.currentReceive ?? 0), 1)
200
- ]),
201
- r(F, {
202
- icon: "delete",
203
- "icon-color": "neutral-gray-400",
204
- variant: "tertiary",
205
- onClick: (S) => (S.stopPropagation(), k(t))
206
- }, null, 8, ["onClick"])
207
- ]),
208
- _: 2
209
- }, 1032, ["onClick"]))), 128))
210
- ]),
211
- _: 1
212
- })
213
- ], 64)) : (c(), x(I, {
214
- key: 1,
215
- variant: "outlined",
216
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
217
- }, {
218
- default: w(() => [
219
- de,
220
- ue,
221
- r(F, {
222
- variant: "primary",
223
- label: "Create game program",
224
- icon: "add",
225
- onClick: o[5] || (o[5] = (t) => f())
226
- })
227
- ]),
228
- _: 1
229
- })),
230
- r(Z, {
231
- ref_key: "sheetRef",
232
- ref: C,
233
- "onSubmit:modelValue": M
234
- }, null, 512)
235
- ])
236
- ], 64);
237
- };
238
- }
239
- });
240
- export {
241
- Fe as default
242
- };
@@ -1,211 +0,0 @@
1
- import { defineComponent as A, ref as k, computed as D, onMounted as T, resolveComponent as i, openBlock as c, createElementBlock as g, Fragment as _, createVNode as r, unref as a, createElementVNode as n, withCtx as h, renderList as j, createBlock as C, resolveDynamicComponent as E, toDisplayString as f, h as M } from "vue";
2
- import { _ as H } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as q, components as z } from "@feedmepos/ui-library";
4
- import { u as G, p as J } from "./loading-Baon-6K7.js";
5
- import { a as Q } from "./app-Bpd1FsZZ.js";
6
- import { u as W } from "./campaign-CfsRf50J.js";
7
- import { g as S, b as V } from "./dto-COz9T0F3.js";
8
- import { _ as X } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { _ as Y } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BtEHnivB.js";
10
- import { u as Z } from "./template-CG_Y7BYa.js";
11
- import { c as y } from "./index-BgPP5w8f.js";
12
- const ee = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-center justify-between w-full" }, oe = { class: "flex gap-8 overflow-x-auto" }, ae = { class: "space-y-8" }, ne = { class: "flex w-full gap-4 items-center" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, re = { class: "space-y-4" }, ie = { class: "fm-typo-en-body-lg-600" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = /* @__PURE__ */ n("img", {
13
- src: H,
14
- class: "aspect-square w-[150px]"
15
- }, null, -1), de = /* @__PURE__ */ n("div", { class: "flex flex-col gap-16 text-center" }, [
16
- /* @__PURE__ */ n("div", { class: "fm-typo-en-title-sm-800" }, "Create your point program"),
17
- /* @__PURE__ */ n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Points are virtual point that customers can earn and use to purchase bundle items. ")
18
- ], -1), Fe = /* @__PURE__ */ A({
19
- __name: "Point",
20
- setup(pe) {
21
- const L = {
22
- label: "Create campaign",
23
- value: "create",
24
- isPrimary: !0,
25
- prependIcon: "add"
26
- }, P = Z("COIN", q()), I = Q(), l = W(), { global: B, minor: w } = G, s = k({
27
- searchKey: "",
28
- location: null
29
- }), p = D(
30
- () => l.campaigns.point.filter(
31
- (e) => !s.value.location || !e.targetLocation || e.targetLocation.includes(s.value.location)
32
- )
33
- ), $ = [
34
- {
35
- header: "Program title",
36
- accessorFn: (e) => e.name
37
- },
38
- {
39
- header: "Status",
40
- cell(e) {
41
- return S(e.row.original);
42
- }
43
- },
44
- {
45
- header: "Summary",
46
- accessorFn: (e) => V(e)
47
- //v.effect,
48
- },
49
- {
50
- header: "Actions",
51
- cell(e) {
52
- return M(z.FmButton, {
53
- variant: "tertiary",
54
- icon: "delete",
55
- iconColor: "neutral-gray-400",
56
- onClick: (o) => {
57
- o.stopPropagation(), v(e.row.original);
58
- }
59
- });
60
- }
61
- }
62
- ], x = k();
63
- async function v(e) {
64
- await J.remove(`Are you sure you want to remove ${e.name}?`) && await w(
65
- async () => {
66
- await y.delete(e._id), await l.read("COIN");
67
- },
68
- {
69
- message: `Removing ${e.name}`,
70
- successMessage: `Removed ${e.name} successfully`
71
- }
72
- );
73
- }
74
- async function u(e) {
75
- e ? await o() : P.open(async (m) => {
76
- await o(m);
77
- });
78
- async function o(m) {
79
- var d;
80
- (d = x.value) == null || d.showSheet(
81
- !0,
82
- "COIN",
83
- e ? await y.readById(e._id) : void 0,
84
- m
85
- );
86
- }
87
- }
88
- async function K(e) {
89
- await w(
90
- async () => {
91
- e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await l.read("COIN");
92
- },
93
- {
94
- message: `${e.campaign._id ? "Updating" : "Creating"} point program`,
95
- successMessage: `Point program ${e.campaign._id ? "updated" : "created"} successfully`
96
- }
97
- );
98
- }
99
- return T(async () => {
100
- await B(async () => {
101
- await l.read("COIN");
102
- });
103
- }), (e, o) => {
104
- const m = i("FmPageHead"), d = i("FmSearch"), N = i("FmTable"), b = i("FmButton"), R = i("FmListItem"), O = i("FmList"), U = i("FmCard");
105
- return c(), g(_, null, [
106
- r(m, {
107
- title: "Point",
108
- actions: a(p).length > 0 ? [L] : [],
109
- "onClick:action": o[0] || (o[0] = () => u())
110
- }, null, 8, ["actions"]),
111
- n("div", ee, [
112
- r(d, {
113
- modelValue: a(s).searchKey,
114
- "onUpdate:modelValue": o[1] || (o[1] = (t) => a(s).searchKey = t),
115
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
116
- placeholder: "search",
117
- collapsible: ""
118
- }, null, 8, ["modelValue"]),
119
- a(l).campaigns.point && a(l).campaigns.point.length > 0 ? (c(), g(_, { key: 0 }, [
120
- n("div", te, [
121
- n("div", oe, [
122
- r(X, {
123
- modelValue: a(s).location,
124
- "onUpdate:modelValue": o[2] || (o[2] = (t) => a(s).location = t),
125
- label: "Location: ",
126
- "show-item-label": !0,
127
- icon: "storefront",
128
- placement: "bottom-start",
129
- items: a(I).locationItems
130
- }, null, 8, ["modelValue", "items"])
131
- ]),
132
- r(d, {
133
- modelValue: a(s).searchKey,
134
- "onUpdate:modelValue": o[3] || (o[3] = (t) => a(s).searchKey = t),
135
- class: "xs:hidden",
136
- placeholder: "search",
137
- collapsible: ""
138
- }, null, 8, ["modelValue"])
139
- ]),
140
- r(N, {
141
- class: "xs:hidden",
142
- "row-data": a(p),
143
- "column-defs": $,
144
- "search-value": a(s).searchKey,
145
- "column-filter": [],
146
- onRowClick: o[4] || (o[4] = (t) => u(t.original)),
147
- "hide-footer": a(p).length < 10
148
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
149
- r(O, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
150
- default: h(() => [
151
- (c(!0), g(_, null, j(a(p).filter(
152
- (t) => t.name.toLowerCase().includes(a(s).searchKey.toLowerCase())
153
- ), (t) => (c(), C(R, {
154
- key: t._id.toString(),
155
- onClick: (F) => u(t),
156
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
157
- }, {
158
- default: h(() => [
159
- n("div", ae, [
160
- n("div", ne, [
161
- (c(), C(E(a(S)(t)))),
162
- n("div", se, f(t.currentReceive ?? 0) + " used ", 1)
163
- ]),
164
- n("div", re, [
165
- n("div", ie, f(t.name), 1),
166
- n("div", le, f(a(V)(t)), 1)
167
- ]),
168
- n("div", ce, " Point received: " + f(t.currentReceive ?? 0), 1)
169
- ]),
170
- r(b, {
171
- icon: "delete",
172
- "icon-color": "neutral-gray-400",
173
- variant: "tertiary",
174
- onClick: (F) => (F.stopPropagation(), v(t))
175
- }, null, 8, ["onClick"])
176
- ]),
177
- _: 2
178
- }, 1032, ["onClick"]))), 128))
179
- ]),
180
- _: 1
181
- })
182
- ], 64)) : (c(), C(U, {
183
- key: 1,
184
- variant: "outlined",
185
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
186
- }, {
187
- default: h(() => [
188
- me,
189
- de,
190
- r(b, {
191
- variant: "primary",
192
- label: "Create point program",
193
- icon: "add",
194
- onClick: o[5] || (o[5] = (t) => u())
195
- })
196
- ]),
197
- _: 1
198
- })),
199
- r(Y, {
200
- ref_key: "sheetRef",
201
- ref: x,
202
- "onSubmit:modelValue": K
203
- }, null, 512)
204
- ])
205
- ], 64);
206
- };
207
- }
208
- });
209
- export {
210
- Fe as default
211
- };