@feedmepos/mf-connect 0.1.2-prod → 0.1.4-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 (87) hide show
  1. package/dist/Analytic-07T9poLx.js +423 -0
  2. package/dist/{App-CRTD0U-N.js → App-C6MukSCT.js} +276 -275
  3. package/dist/Broadcast-CzsgeZNO.js +223 -0
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C5zUv0Zx.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BirunpzI.js} +8 -8
  5. package/dist/Card-DQnyWZZf.js +824 -0
  6. package/dist/{Collections-BgbWoLWI.js → Collections-BV7CSqRw.js} +4 -4
  7. package/dist/Credit-CxsbYGLZ.js +220 -0
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C137bE1q.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BKSZYxvb.js} +918 -901
  9. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DpsrI-Z3.js +345 -0
  10. package/dist/Experience-eMUbhq7h.js +221 -0
  11. package/dist/Game-CxAG2ViS.js +255 -0
  12. package/dist/Marketing-CozMj2Y5.js +316 -0
  13. package/dist/Member-DM1dj3F5.js +69 -0
  14. package/dist/{MemberList-ISy05wGZ.js → MemberList-DNjK9BbG.js} +14 -14
  15. package/dist/{MemberTransactions-CXvhJngX.js → MemberTransactions-CsjN3LZA.js} +1 -1
  16. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ca1LO__F.js → MessageInput.vue_vue_type_script_setup_true_lang-DVQE9v2R.js} +2 -2
  17. package/dist/Mission-BugvTPPH.js +261 -0
  18. package/dist/Point-D8BjGtqT.js +222 -0
  19. package/dist/Promotion-mc9KBzoJ.js +253 -0
  20. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-D1eQ3i5D.js → RuleGroup.vue_vue_type_script_setup_true_lang-B2H3D_kZ.js} +15 -15
  21. package/dist/Segment-DZRFA-Pb.js +565 -0
  22. package/dist/Setting-DxNhR44e.js +1871 -0
  23. package/dist/Store-CdkJWpjV.js +1530 -0
  24. package/dist/StoreRewards-Cdturia8.js +400 -0
  25. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-nhS5Dhhk.js → StoreTransactions.vue_vue_type_script_setup_true_lang-D7GcOiUM.js} +10 -10
  26. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DWlpmE56.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-nuCOrrLE.js} +1 -1
  27. package/dist/{Tier-DLrOmrnK.js → Tier-I_MMd39Y.js} +470 -445
  28. package/dist/{Title-MHQuel7h.js → Title-DK5gmUvo.js} +298 -282
  29. package/dist/Transaction-BXpTIMS_.js +39 -0
  30. package/dist/Voucher-BQ5h2G0I.js +490 -0
  31. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-eAP99wyg.js +141 -0
  32. package/dist/app-CL2Wxzv5.js +5639 -0
  33. package/dist/{app-BjOpRVdv.js → app-DTAyCT-G.js} +1 -1
  34. package/dist/app.js +4 -3
  35. package/dist/{business-DveMDDHY.js → business-B9OUlaFZ.js} +1 -1
  36. package/dist/{campaign-CMb05XLt.js → campaign-CNbUA51l.js} +2 -2
  37. package/dist/{collection.fn-BjaBPYMU.js → collection.fn-D_i45T4Q.js} +2 -2
  38. package/dist/dto-B4208_es.js +2770 -0
  39. package/dist/{effect-CxAdSlyD.js → effect-Ye_yr8et.js} +1 -1
  40. package/dist/{email-addresses-Dtr5OALQ.js → email-addresses-Gm7Dyaxy.js} +1 -1
  41. package/dist/{export-DuBekrcg.js → export-Buee5oUV.js} +3 -3
  42. package/dist/{helper-DL6hnmtJ.js → helper-BBlHhMFc.js} +1 -1
  43. package/dist/{index-raYm7Ew2.js → index-BxJgFvym.js} +2 -2
  44. package/dist/{index-gcsOy_cD.js → index-ByaM-yoc.js} +91 -86
  45. package/dist/{index-DISwCnfH.js → index-C0QHb5SL.js} +2 -2
  46. package/dist/{index-Cibwzgac.js → index-C363BG5A.js} +3 -3
  47. package/dist/{index-BZAlqAaJ.js → index-CLL3no-v.js} +1 -1
  48. package/dist/{index-CAQpU5Rv.js → index-ChSVaFk3.js} +1 -1
  49. package/dist/{index-BSIUoSG3.js → index-Co9n8I_5.js} +3 -3
  50. package/dist/index-CoGNKU8v.js +3 -0
  51. package/dist/{index-Dx4pkNRc.js → index-DHGcUMVN.js} +1 -1
  52. package/dist/{index-CgPlJqkX.js → index-DWWtZSrm.js} +1 -1
  53. package/dist/{index-CGHNWhkM.js → index-DdVZgYE4.js} +258 -256
  54. package/dist/{index-BBBytzpn.js → index-Dx3HwWcb.js} +1 -1
  55. package/dist/{index.esm2017-Bs9CWbrs.js → index.esm2017-Dd02dg_O.js} +38 -38
  56. package/dist/{loading-Dj5bx8fg.js → loading-Or1ZDzDS.js} +11 -11
  57. package/dist/{membership-B2avlZoN.js → membership-B8h5ku-v.js} +3 -3
  58. package/dist/{money-CNSWtAf-.js → money-CmsKAJBT.js} +1 -1
  59. package/dist/{number-BA58pjU6.js → number-iEhp7Uai.js} +1 -1
  60. package/dist/{rule-BWazFYuZ.js → rule-BORkgSMK.js} +3 -3
  61. package/dist/{rule-builder-RIloDQBn.js → rule-builder-DEfkSr68.js} +1 -1
  62. package/dist/{template-u01r84LY.js → template-C_Y7bhlI.js} +4 -4
  63. package/dist/{usePagination--B6Wt7C1.js → usePagination-Ci8-uZvb.js} +1 -1
  64. package/dist/vue-i18n-BXzrZRP6.js +2365 -0
  65. package/package.json +7 -4
  66. package/dist/Analytic-AqWU_lJy.js +0 -620
  67. package/dist/Broadcast-utWSrzP9.js +0 -216
  68. package/dist/Card-x6qnEaIt.js +0 -823
  69. package/dist/Credit-CojzmUnh.js +0 -214
  70. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-8l3Dt_Lo.js +0 -344
  71. package/dist/Experience-CPjovKWF.js +0 -211
  72. package/dist/Game-DWcjPfZP.js +0 -250
  73. package/dist/Marketing-CwoI0pFF.js +0 -309
  74. package/dist/Member-oRcVGr20.js +0 -92
  75. package/dist/Mission-Y8s5MQIC.js +0 -248
  76. package/dist/Point-0Fw3qLIW.js +0 -220
  77. package/dist/Promotion-vqM23NPX.js +0 -244
  78. package/dist/Segment-lgzMRCyd.js +0 -564
  79. package/dist/Setting-CFGB53S0.js +0 -1870
  80. package/dist/Store-fJlew3HJ.js +0 -1533
  81. package/dist/StoreRewards-DWq34E4p.js +0 -429
  82. package/dist/Transaction-CYqMFEzc.js +0 -36
  83. package/dist/Voucher-B0QCX_nG.js +0 -485
  84. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +0 -140
  85. package/dist/app-SOHUUM08.js +0 -2974
  86. package/dist/dto-CY7JrHkZ.js +0 -1145
  87. package/dist/index-BMxu_XL-.js +0 -11
@@ -1,211 +0,0 @@
1
- import { defineComponent as O, ref as k, computed as U, onMounted as A, 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 D, createBlock as x, resolveDynamicComponent as j, 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-Dj5bx8fg.js";
5
- import { u as Q } from "./business-DveMDDHY.js";
6
- import { u as W } from "./campaign-CMb05XLt.js";
7
- import { g as S, b as V } from "./dto-CY7JrHkZ.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-C137bE1q.js";
10
- import { u as Z } from "./template-u01r84LY.js";
11
- import { c as y } from "./index-CgPlJqkX.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 experience program"),
17
- /* @__PURE__ */ n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Experience help customers gain membership tiers. The more they interact and spend, the higher their membership level, unlocking more rewards and benefits. ")
18
- ], -1), Fe = /* @__PURE__ */ O({
19
- __name: "Experience",
20
- setup(pe) {
21
- const L = {
22
- label: "Create campaign",
23
- value: "create",
24
- isPrimary: !0,
25
- prependIcon: "add"
26
- }, P = Z("POINT", q()), I = Q(), l = W(), { global: T, minor: w } = G, s = k({
27
- searchKey: "",
28
- location: null
29
- }), p = U(
30
- () => l.campaigns.experience.filter(
31
- (e) => !s.value.location || !e.targetLocation || e.targetLocation.includes(s.value.location)
32
- )
33
- ), B = [
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
- ], b = 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("POINT");
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 = b.value) == null || d.showSheet(
81
- !0,
82
- "POINT",
83
- e ? await y.readById(e._id) : void 0,
84
- m
85
- );
86
- }
87
- }
88
- async function $(e) {
89
- await w(
90
- async () => {
91
- e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await l.read("POINT");
92
- },
93
- {
94
- message: `${e.campaign._id ? "Updating" : "Creating"} experience program`,
95
- successMessage: `Experience program ${e.campaign._id ? "updated" : "created"} successfully`
96
- }
97
- );
98
- }
99
- return A(async () => {
100
- await T(async () => {
101
- await l.read("POINT");
102
- });
103
- }), (e, o) => {
104
- const m = i("FmPageHead"), d = i("FmSearch"), E = i("FmTable"), C = i("FmButton"), K = i("FmListItem"), N = i("FmList"), R = i("FmCard");
105
- return c(), g(_, null, [
106
- r(m, {
107
- title: "Experience",
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.experience && a(l).campaigns.experience.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(E, {
141
- class: "xs:hidden",
142
- "row-data": a(p),
143
- "column-defs": B,
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(N, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
150
- default: h(() => [
151
- (c(!0), g(_, null, D(a(p).filter(
152
- (t) => t.name.toLowerCase().includes(a(s).searchKey.toLowerCase())
153
- ), (t) => (c(), x(K, {
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(), x(j(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, " Experience received: " + f(t.currentReceive ?? 0), 1)
169
- ]),
170
- r(C, {
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(), x(R, {
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(C, {
191
- variant: "primary",
192
- label: "Create experience 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: b,
202
- "onSubmit:modelValue": $
203
- }, null, 512)
204
- ])
205
- ], 64);
206
- };
207
- }
208
- });
209
- export {
210
- Fe as default
211
- };
@@ -1,250 +0,0 @@
1
- import { defineComponent as j, ref as L, computed as D, onMounted as H, resolveComponent as l, openBlock as c, createElementBlock as w, Fragment as x, createVNode as i, unref as a, withCtx as y, createElementVNode as n, renderList as N, createBlock as b, resolveDynamicComponent as q, toDisplayString as _, h as m } from "vue";
2
- import { _ as z } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as J, components as v } from "@feedmepos/ui-library";
4
- import { u as O, a as Q, p as W } from "./loading-Dj5bx8fg.js";
5
- import { u as X } from "./business-DveMDDHY.js";
6
- import { u as Y } from "./campaign-CMb05XLt.js";
7
- import { g as A, b as B } from "./dto-CY7JrHkZ.js";
8
- import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C137bE1q.js";
10
- import { u as te } from "./template-u01r84LY.js";
11
- import { c as h } from "./index-CgPlJqkX.js";
12
- const oe = { class: "flex items-center" }, ae = /* @__PURE__ */ n("span", { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, "Game", -1), ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ie = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, ue = { 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" }, fe = /* @__PURE__ */ n("img", {
13
- src: z,
14
- class: "aspect-square w-[150px]"
15
- }, null, -1), ge = /* @__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), Ve = /* @__PURE__ */ j({
19
- __name: "Game",
20
- setup(ye) {
21
- const $ = {
22
- label: "Create campaign",
23
- value: "create",
24
- isPrimary: !0,
25
- prependIcon: "add"
26
- }, E = te("GAME", J()), u = X(), r = Y(), { global: G, minor: C } = O, s = L({
27
- searchKey: "",
28
- location: null
29
- }), p = D(
30
- () => r.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
- v.FmTooltip,
43
- {
44
- content: e.row.original._id,
45
- onClick: (t) => {
46
- t.stopPropagation(), Q(e.row.original._id);
47
- }
48
- },
49
- [
50
- m(v.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 A(e.row.original);
66
- }
67
- },
68
- {
69
- header: "Summary",
70
- accessorFn: (e) => B(e)
71
- //v.effect,
72
- },
73
- {
74
- header: "Token received",
75
- accessorFn: (e) => {
76
- var t;
77
- return ((t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.currentReceive) ?? 0;
78
- }
79
- },
80
- {
81
- header: "Actions",
82
- cell(e) {
83
- return m(v.FmButton, {
84
- variant: "tertiary",
85
- icon: "delete",
86
- iconColor: "neutral-gray-400",
87
- onClick: (t) => {
88
- t.stopPropagation(), F(e.row.original);
89
- }
90
- });
91
- }
92
- }
93
- ], k = L();
94
- async function F(e) {
95
- await W.remove(`Are you sure you want to remove ${e.name}?`) && await C(
96
- async () => {
97
- await h.delete(e._id), await r.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 t() : E.open(async (d) => {
107
- await t(d);
108
- });
109
- async function t(d) {
110
- var g;
111
- (g = k.value) == null || g.showSheet(
112
- !0,
113
- "GAME",
114
- e ? await h.readById(e._id) : void 0,
115
- d
116
- );
117
- }
118
- }
119
- async function M(e) {
120
- await C(
121
- async () => {
122
- e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await r.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 H(async () => {
131
- await G(async () => {
132
- await r.read("GAME"), await u.readPremium();
133
- });
134
- }), (e, t) => {
135
- const d = l("FmPill"), g = l("FmPageHead"), S = l("FmSearch"), R = l("FmTable"), P = l("FmButton"), T = l("FmListItem"), I = l("FmList"), U = l("FmCard");
136
- return c(), w(x, null, [
137
- i(g, {
138
- actions: a(p).length > 0 && a(u).isPremium ? [$] : [],
139
- "onClick:action": t[0] || (t[0] = () => f())
140
- }, {
141
- title: y(() => [
142
- n("div", oe, [
143
- ae,
144
- i(d, { variant: "premium" })
145
- ])
146
- ]),
147
- _: 1
148
- }, 8, ["actions"]),
149
- n("div", ne, [
150
- i(S, {
151
- modelValue: a(s).searchKey,
152
- "onUpdate:modelValue": t[1] || (t[1] = (o) => a(s).searchKey = o),
153
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
154
- placeholder: "search",
155
- collapsible: ""
156
- }, null, 8, ["modelValue"]),
157
- a(r).campaigns.token && a(r).campaigns.token.length > 0 ? (c(), w(x, { key: 0 }, [
158
- n("div", se, [
159
- n("div", ie, [
160
- i(Z, {
161
- modelValue: a(s).location,
162
- "onUpdate:modelValue": t[2] || (t[2] = (o) => a(s).location = o),
163
- label: "Location: ",
164
- "show-item-label": !0,
165
- icon: "storefront",
166
- placement: "bottom-start",
167
- items: a(u).locationItems
168
- }, null, 8, ["modelValue", "items"])
169
- ]),
170
- i(S, {
171
- modelValue: a(s).searchKey,
172
- "onUpdate:modelValue": t[3] || (t[3] = (o) => a(s).searchKey = o),
173
- class: "xs:hidden",
174
- placeholder: "search",
175
- collapsible: ""
176
- }, null, 8, ["modelValue"])
177
- ]),
178
- i(R, {
179
- class: "xs:hidden",
180
- "row-data": a(p),
181
- "column-defs": K,
182
- "search-value": a(s).searchKey,
183
- "column-filter": [],
184
- onRowClick: t[4] || (t[4] = (o) => f(o.original)),
185
- "hide-footer": a(p).length < 10
186
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
187
- i(I, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
188
- default: y(() => [
189
- (c(!0), w(x, null, N(a(p).filter(
190
- (o) => o.name.toLowerCase().includes(a(s).searchKey.toLowerCase())
191
- ), (o) => (c(), b(T, {
192
- key: o._id.toString(),
193
- onClick: (V) => f(o),
194
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
195
- }, {
196
- default: y(() => [
197
- n("div", le, [
198
- n("div", re, [
199
- (c(), b(q(a(A)(o)))),
200
- n("div", ce, _(o.currentReceive ?? 0) + " used ", 1)
201
- ]),
202
- n("div", me, [
203
- n("div", de, _(o.name), 1),
204
- n("div", ue, _(a(B)(o)), 1)
205
- ]),
206
- n("div", pe, " Token received: " + _(o.currentReceive ?? 0), 1)
207
- ]),
208
- i(P, {
209
- icon: "delete",
210
- "icon-color": "neutral-gray-400",
211
- variant: "tertiary",
212
- onClick: (V) => (V.stopPropagation(), F(o))
213
- }, null, 8, ["onClick"])
214
- ]),
215
- _: 2
216
- }, 1032, ["onClick"]))), 128))
217
- ]),
218
- _: 1
219
- })
220
- ], 64)) : (c(), b(U, {
221
- key: 1,
222
- variant: "outlined",
223
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
224
- }, {
225
- default: y(() => [
226
- fe,
227
- ge,
228
- i(P, {
229
- variant: "primary",
230
- label: "Create game program",
231
- icon: "add",
232
- disabled: !a(u).isPremium,
233
- onClick: t[5] || (t[5] = (o) => f())
234
- }, null, 8, ["disabled"])
235
- ]),
236
- _: 1
237
- })),
238
- i(ee, {
239
- ref_key: "sheetRef",
240
- ref: k,
241
- "onSubmit:modelValue": M
242
- }, null, 512)
243
- ])
244
- ], 64);
245
- };
246
- }
247
- });
248
- export {
249
- Ve as default
250
- };