@feedmepos/mf-connect 0.1.24-prod → 0.1.25-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 (93) hide show
  1. package/dist/{Analytic-DH3odpBh.js → Analytic-DmQ3d3sr.js} +18 -17
  2. package/dist/{App-DT9d3Bm2.js → App-BK6DtUuH.js} +6 -6
  3. package/dist/{Bin-CEFG1nRH.js → Bin-B7F2tXkP.js} +19 -18
  4. package/dist/{Broadcast-B_rv159-.js → Broadcast-6n2TGBgu.js} +13 -12
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DzD9-r4-.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-_hoK2zXW.js} +14 -8
  6. package/dist/{Card-Dyya8J2U.js → Card-D6AU_9dV.js} +57 -55
  7. package/dist/{Collections-Dl2FDFOD.js → Collections-CMbKkYFL.js} +13 -11
  8. package/dist/{Credit-B9mz3eUI.js → Credit-CqLwf2JA.js} +35 -34
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-TrKmONi5.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js} +28 -27
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CVCgGHg4.js → EffectSheet.vue_vue_type_style_index_0_lang-CaSqYPQ2.js} +6 -6
  11. package/dist/{Experience-CGwG9JGa.js → Experience-OoJ1ODiZ.js} +13 -12
  12. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  13. package/dist/Game-IAfjkExX.js +278 -0
  14. package/dist/{Index-D0IkkcBH.js → Index-DqHXbokQ.js} +14 -13
  15. package/dist/{Marketing-HmC8ZXqz.js → Marketing-DIVehK5x.js} +8 -7
  16. package/dist/Member-BMT7m7s9.js +348 -0
  17. package/dist/{MemberList-_MFrJqht.js → MemberList-C3JMhLW6.js} +270 -269
  18. package/dist/{MemberTransactions-kUyU9Qn6.js → MemberTransactions-lQLljdGi.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DypmZY2G.js → MessageInput.vue_vue_type_script_setup_true_lang-DFPEfDUk.js} +7 -7
  20. package/dist/{Mission-OUjm7KRr.js → Mission-BJsuCVHj.js} +118 -96
  21. package/dist/{Overview-F2AvMo-g.js → Overview-D1AMq951.js} +63 -62
  22. package/dist/{Point-K9poYQjB.js → Point-DGffwTWG.js} +11 -10
  23. package/dist/{Promotion-DpS6PQFU.js → Promotion-Cdu7wiGv.js} +12 -11
  24. package/dist/Queue-Cm4ekHlP.js +249 -0
  25. package/dist/{Record-CZMB7xKL.js → Record-B0JjTQ3K.js} +21 -19
  26. package/dist/{Reward-zMCEkbO5.js → Reward-U0gEl1no.js} +19 -18
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dj73NYhp.js → RewardGroup.vue_vue_type_script_setup_true_lang-CiQHPhkN.js} +13 -12
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-FyuAHi5K.js → RuleGroup.vue_vue_type_script_setup_true_lang-BgKlwCAG.js} +12 -12
  29. package/dist/{Segment-LthACAfl.js → Segment-BsXsG6Ga.js} +19 -17
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DRe6Gyov.js → SelectItems.vue_vue_type_script_setup_true_lang-hPQP_srV.js} +2 -2
  31. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLPLYvOq.js +188 -0
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Z9Nb9b6-.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-rL9NYAk0.js} +3 -3
  33. package/dist/{Setting-8ASd681E.js → Setting-DJxzwVSf.js} +20 -19
  34. package/dist/{Store-C-bmQP0K.js → Store-sTvnMjPJ.js} +24 -23
  35. package/dist/{StoreRewards-Bu3DWaCn.js → StoreRewards-CffMLGzL.js} +15 -14
  36. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CUPPeZj5.js +994 -0
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Bn7aoYqw.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DwhQONu8.js} +1 -1
  38. package/dist/{Tier-DDKUGBRg.js → Tier-BbfX13Ns.js} +25 -24
  39. package/dist/{Title-Cup_EWfZ.js → Title-Bf4fC78d.js} +28 -27
  40. package/dist/{Transaction-BqvgfyiW.js → Transaction-Ef6ee3WD.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BCkXievQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-w66fAQPQ.js} +6 -6
  42. package/dist/{Voucher-Dxk6zfcN.js → Voucher-CCH10Wrp.js} +38 -37
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DmswMNi5.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C31OGqSE.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D-UPL1Rc.js → ZodTextField.vue_vue_type_script_setup_true_lang-BqzMSTXs.js} +1 -1
  45. package/dist/{app-bidojB9R.js → app-D2t3_10I.js} +1 -1
  46. package/dist/{app-BDUrJlXZ.js → app-F5UOtzJ-.js} +235 -166
  47. package/dist/app.js +1 -1
  48. package/dist/{business-CFOn3-Hz.js → business-NXwwmhbL.js} +1 -1
  49. package/dist/{campaign-DyzzIbnA.js → campaign-BWkn-fFd.js} +9 -9
  50. package/dist/{campaign-BVIiGyq9.js → campaign-Iww5PvJV.js} +2 -2
  51. package/dist/{campaign.enum-aFjayQfJ.js → campaign.enum--kHpbveJ.js} +1 -1
  52. package/dist/{campaign.fn-BKADpFTx.js → campaign.fn-D0wKIDQf.js} +142 -142
  53. package/dist/{collectible.enum-vEUgo0YF.js → collectible.enum-BpsFdy57.js} +1 -1
  54. package/dist/{collection.fn-D2Kbz9yq.js → collection.fn-B-_j1A52.js} +2 -2
  55. package/dist/{dto-CKxtFHko.js → dto-CjOlAnWp.js} +4 -4
  56. package/dist/{effect-BEWKDhDB.js → effect-BMe9xjgR.js} +1 -1
  57. package/dist/{email-addresses-BWDg5Wvf.js → email-addresses-BwGoUD7O.js} +1 -1
  58. package/dist/{export-DO-WeD6l.js → export-Bsk4-mYp.js} +3 -3
  59. package/dist/{helper-CSGr0Zgt.js → helper-CiybWTiD.js} +1 -1
  60. package/dist/{index-CUlYeKKH.js → index-7QyaWVGn.js} +1 -1
  61. package/dist/{index-BgJVKNYg.js → index-BAW03Ygy.js} +24 -21
  62. package/dist/{index--Mrx1FRI.js → index-BG_-ksol.js} +1 -1
  63. package/dist/{index-CEjeBL2U.js → index-COTHSMx7.js} +1 -1
  64. package/dist/{index-Dw_jc7Et.js → index-CRa7QWQZ.js} +3 -3
  65. package/dist/{index-DVsh-nBE.js → index-Cs0QJDgH.js} +1 -1
  66. package/dist/{index-UVHHFXyh.js → index-Cu28MWwC.js} +1162 -1129
  67. package/dist/{index-DSBnWOie.js → index-CvKxhzaQ.js} +1 -1
  68. package/dist/{index-Bg3caQS6.js → index-D7AjQ5_0.js} +1273 -1273
  69. package/dist/{index-BV4M35iK.js → index-OLChRkvG.js} +2 -2
  70. package/dist/{index-CFXFhGs9.js → index-WxOdPYZc.js} +1 -1
  71. package/dist/{index-CoMMyOsj.js → index-eJ4ofwfd.js} +10 -10
  72. package/dist/{index.esm2017-CDzvT_fP.js → index.esm2017-DMXNt25X.js} +137 -137
  73. package/dist/loading-CScT_lmc.js +71 -0
  74. package/dist/{membership-DK9FNo2Y.js → membership-DenkPJ5U.js} +3 -3
  75. package/dist/{money-DJYiw0es.js → money-B5hybQjS.js} +1 -1
  76. package/dist/{number-BjhqQBza.js → number-anjTvmBi.js} +1 -1
  77. package/dist/objectid-BHmtsFsO.js +145 -0
  78. package/dist/{loading-CWihCJvJ.js → plugins-VONaCeWn.js} +1535 -1601
  79. package/dist/{reward-DlE5Zt3d.js → reward-FwctH8OP.js} +1 -1
  80. package/dist/{rule-a2_WCjR8.js → rule-BqLIsoB6.js} +3 -3
  81. package/dist/{rule-builder-Q8iGSpDV.js → rule-builder-EwN0tKLd.js} +1 -1
  82. package/dist/{template-3faxO3XM.js → template-bVlMDuHk.js} +4 -4
  83. package/dist/{trigger-Cnvhgqkj.js → trigger-Bh7yq_a0.js} +11 -11
  84. package/dist/usePagination-JoYaROkV.js +223 -0
  85. package/dist/{user-CoiXBmet.js → user-z65INcT0.js} +1 -1
  86. package/dist/vue-i18n-59FFzX8P.js +2365 -0
  87. package/dist/{usePagination-dNrSGtRV.js → xlsx-D9VDeVL9.js} +2979 -3200
  88. package/package.json +3 -1
  89. package/dist/Game-DbhOlio1.js +0 -256
  90. package/dist/Member-NSQ2nHzW.js +0 -69
  91. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CDRpkUaP.js +0 -1105
  92. package/dist/objectid-Cep7PkzN.js +0 -145
  93. package/dist/vue-i18n-B2XH0K8P.js +0 -2365
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-connect",
3
- "version": "0.1.24-prod",
3
+ "version": "0.1.25-prod",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -29,6 +29,7 @@
29
29
  "dotenv": "^16.4.5",
30
30
  "email-addresses": "^5.0.0",
31
31
  "fabric": "^6.4.2",
32
+ "file-saver": "^2.0.5",
32
33
  "firebase": "^10.12.4",
33
34
  "i18next": "24.2.1",
34
35
  "lodash": "^4.17.21",
@@ -48,6 +49,7 @@
48
49
  "zod-i18n-map": "2.27.0"
49
50
  },
50
51
  "devDependencies": {
52
+ "@types/file-saver": "^2.0.7",
51
53
  "@types/lodash": "^4.17.7",
52
54
  "@types/node": "^18.19.41",
53
55
  "@types/uuid": "^9.0.8",
@@ -1,256 +0,0 @@
1
- import { defineComponent as D, ref as A, computed as H, onMounted as N, resolveComponent as r, openBlock as d, createElementBlock as x, Fragment as b, createVNode as i, unref as t, withCtx as h, createElementVNode as n, toDisplayString as l, renderList as q, createBlock as v, resolveDynamicComponent as z, h as p } from "vue";
2
- import { _ as J } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as O, components as C } from "@feedmepos/ui-library";
4
- import { u as Q, a as W, p as X } from "./loading-CWihCJvJ.js";
5
- import { u as Y } from "./business-CFOn3-Hz.js";
6
- import { u as Z } from "./campaign-BVIiGyq9.js";
7
- import { a as B, b as $, g as ee } from "./campaign-DyzzIbnA.js";
8
- import { _ as te } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-TrKmONi5.js";
10
- import { u as ae } from "./template-3faxO3XM.js";
11
- import { u as ne } from "./vue-i18n-B2XH0K8P.js";
12
- import { c as w } from "./index-DSBnWOie.js";
13
- const se = { class: "flex items-center" }, ie = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, re = { class: "px-24 flex flex-col gap-y-16" }, le = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, me = { class: "space-y-8" }, de = { class: "flex w-full gap-4 items-center" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "space-y-4" }, fe = { class: "fm-typo-en-body-lg-600" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _e = /* @__PURE__ */ n("img", {
14
- src: J,
15
- class: "aspect-square w-[150px]"
16
- }, null, -1), he = { class: "flex flex-col gap-16 text-center" }, we = { class: "fm-typo-en-title-sm-800" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ D({
17
- __name: "Game",
18
- setup(be) {
19
- const { t: c } = ne(), E = {
20
- label: c("connect.program.common.actions.create", {
21
- type: c("connect.program.game.title").toLowerCase()
22
- }),
23
- value: "create",
24
- isPrimary: !0,
25
- prependIcon: "add"
26
- }, K = ae("GAME", O()), f = Y(), m = Z(), { global: M, minor: F } = Q, s = A({
27
- searchKey: "",
28
- location: null
29
- }), g = H(
30
- () => m.campaigns.token.filter(
31
- (e) => !s.value.location || !e.targetLocation || e.targetLocation.includes(s.value.location)
32
- )
33
- ), R = [
34
- {
35
- header: "Program title",
36
- accessorKey: "name",
37
- // accessorFn: (v) => v.name,
38
- cell(e) {
39
- return p("div", { class: "flex items-center justify-between gap-4" }, [
40
- p("div", { class: "flex items-center" }, [
41
- p(
42
- C.FmTooltip,
43
- {
44
- content: e.row.original._id,
45
- onClick: (o) => {
46
- o.stopPropagation(), W(e.row.original._id);
47
- }
48
- },
49
- [
50
- p(C.FmIcon, {
51
- name: "info",
52
- outline: !0,
53
- size: "sm"
54
- })
55
- ]
56
- )
57
- ]),
58
- p("div", { class: "flex-1" }, e.row.original.name)
59
- ]);
60
- }
61
- },
62
- {
63
- header: "Status",
64
- accessorFn: (e) => ee(e),
65
- cell(e) {
66
- return B(e.row.original);
67
- }
68
- },
69
- {
70
- header: "Summary",
71
- accessorFn: (e) => $(e)
72
- //v.effect,
73
- },
74
- {
75
- header: "Token received",
76
- accessorFn: (e) => {
77
- var o;
78
- return ((o = e == null ? void 0 : e.pf_collectible) == null ? void 0 : o.currentReceive) ?? 0;
79
- }
80
- },
81
- {
82
- header: "Actions",
83
- cell(e) {
84
- return p(C.FmButton, {
85
- variant: "tertiary",
86
- icon: "delete",
87
- iconColor: "neutral-gray-400",
88
- onClick: (o) => {
89
- o.stopPropagation(), S(e.row.original);
90
- }
91
- });
92
- }
93
- }
94
- ], k = A();
95
- async function S(e) {
96
- await X.remove(`Are you sure you want to remove ${e.name}?`) && await F(
97
- async () => {
98
- await w.delete(e._id), await m.read("GAME");
99
- },
100
- {
101
- message: `Removing ${e.name}`,
102
- successMessage: `Removed ${e.name} successfully`
103
- }
104
- );
105
- }
106
- async function y(e) {
107
- e ? await o() : K.open(async (u) => {
108
- await o(u);
109
- });
110
- async function o(u) {
111
- var _;
112
- (_ = k.value) == null || _.showSheet(
113
- !0,
114
- "GAME",
115
- e ? await w.readById(e._id) : void 0,
116
- u
117
- );
118
- }
119
- }
120
- async function G(e) {
121
- await F(
122
- async () => {
123
- e.campaign._id ? await w.update(e.campaign._id, e) : await w.create(e), await m.read("GAME");
124
- },
125
- {
126
- message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
127
- successMessage: `Game program ${e.campaign._id ? "updated" : "created"} successfully`
128
- }
129
- );
130
- }
131
- return N(async () => {
132
- await M(async () => {
133
- await m.read("GAME"), await f.readPremium();
134
- });
135
- }), (e, o) => {
136
- const u = r("FmPill"), _ = r("FmPageHead"), L = r("FmSearch"), I = r("FmTable"), P = r("FmButton"), T = r("FmListItem"), U = r("FmList"), j = r("FmCard");
137
- return d(), x(b, null, [
138
- i(_, {
139
- actions: t(g).length > 0 && t(f).isPremium ? [E] : [],
140
- "onClick:action": o[0] || (o[0] = () => y())
141
- }, {
142
- title: h(() => [
143
- n("div", se, [
144
- n("span", ie, l(t(c)("connect.program.game.title")), 1),
145
- i(u, { variant: "premium" })
146
- ])
147
- ]),
148
- _: 1
149
- }, 8, ["actions"]),
150
- n("div", re, [
151
- i(L, {
152
- modelValue: t(s).searchKey,
153
- "onUpdate:modelValue": o[1] || (o[1] = (a) => t(s).searchKey = a),
154
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
155
- placeholder: "search",
156
- collapsible: ""
157
- }, null, 8, ["modelValue"]),
158
- t(m).campaigns.token && t(m).campaigns.token.length > 0 ? (d(), x(b, { key: 0 }, [
159
- n("div", le, [
160
- n("div", ce, [
161
- i(te, {
162
- modelValue: t(s).location,
163
- "onUpdate:modelValue": o[2] || (o[2] = (a) => t(s).location = a),
164
- label: "Location: ",
165
- "show-item-label": !0,
166
- icon: "storefront",
167
- placement: "bottom-start",
168
- items: t(f).locationItems
169
- }, null, 8, ["modelValue", "items"])
170
- ]),
171
- i(L, {
172
- modelValue: t(s).searchKey,
173
- "onUpdate:modelValue": o[3] || (o[3] = (a) => t(s).searchKey = a),
174
- class: "xs:hidden",
175
- placeholder: "search",
176
- collapsible: ""
177
- }, null, 8, ["modelValue"])
178
- ]),
179
- i(I, {
180
- class: "xs:hidden",
181
- "row-data": t(g),
182
- "column-defs": R,
183
- "search-value": t(s).searchKey,
184
- "column-filter": [],
185
- onRowClick: o[4] || (o[4] = (a) => y(a.original)),
186
- "hide-footer": t(g).length < 10
187
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
188
- i(U, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
189
- default: h(() => [
190
- (d(!0), x(b, null, q(t(g).filter(
191
- (a) => a.name.toLowerCase().includes(t(s).searchKey.toLowerCase())
192
- ), (a) => (d(), v(T, {
193
- key: a._id.toString(),
194
- onClick: (V) => y(a),
195
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
196
- }, {
197
- default: h(() => [
198
- n("div", me, [
199
- n("div", de, [
200
- (d(), v(z(t(B)(a)))),
201
- n("div", pe, l(a.currentReceive ?? 0) + " used ", 1)
202
- ]),
203
- n("div", ue, [
204
- n("div", fe, l(a.name), 1),
205
- n("div", ge, l(t($)(a)), 1)
206
- ]),
207
- n("div", ye, l(t(c)("program.game.token_received", {
208
- count: a.currentReceive ?? 0
209
- })), 1)
210
- ]),
211
- i(P, {
212
- icon: "delete",
213
- "icon-color": "neutral-gray-400",
214
- variant: "tertiary",
215
- onClick: (V) => (V.stopPropagation(), S(a))
216
- }, null, 8, ["onClick"])
217
- ]),
218
- _: 2
219
- }, 1032, ["onClick"]))), 128))
220
- ]),
221
- _: 1
222
- })
223
- ], 64)) : (d(), v(j, {
224
- key: 1,
225
- variant: "outlined",
226
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
227
- }, {
228
- default: h(() => [
229
- _e,
230
- n("div", he, [
231
- n("div", we, l(t(c)("connect.program.game.empty_state.title")), 1),
232
- n("div", xe, l(t(c)("connect.program.game.empty_state.description")), 1)
233
- ]),
234
- i(P, {
235
- variant: "primary",
236
- label: "Create game program",
237
- icon: "add",
238
- disabled: !t(f).isPremium,
239
- onClick: o[5] || (o[5] = (a) => y())
240
- }, null, 8, ["disabled"])
241
- ]),
242
- _: 1
243
- })),
244
- i(oe, {
245
- ref_key: "sheetRef",
246
- ref: k,
247
- "onSubmit:modelValue": G
248
- }, null, 512)
249
- ])
250
- ], 64);
251
- };
252
- }
253
- });
254
- export {
255
- Ke as default
256
- };
@@ -1,69 +0,0 @@
1
- import { defineComponent as f, computed as T, ref as d, watch as k, resolveComponent as s, openBlock as _, createElementBlock as B, Fragment as E, createVNode as b, unref as n, createElementVNode as y, createBlock as A, createCommentVNode as L } from "vue";
2
- import "./index--Mrx1FRI.js";
3
- import { u as M } from "./vue-i18n-B2XH0K8P.js";
4
- import { useRouter as N } from "vue-router";
5
- import { m as Y } from "./index-BgJVKNYg.js";
6
- import { R as i } from "./app-BDUrJlXZ.js";
7
- const h = { class: "px-24 flex flex-col gap-y-16 pb-24" }, g = /* @__PURE__ */ f({
8
- __name: "Member",
9
- setup(w) {
10
- const e = N(), { t: p } = M(), o = [
11
- {
12
- label: p("connect.loyalty.member.tabs.member_list"),
13
- value: i["$connect-LOYALTY_MEMBER_LIST"],
14
- actions: []
15
- }
16
- ], r = T(() => {
17
- var a, c, m;
18
- return e.currentRoute.value.name != i["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
19
- title: u.value.label,
20
- actions: u.value.actions,
21
- description: void 0
22
- } : (u.value = o[1], {
23
- backButton: !0,
24
- title: p("connect.loyalty.member.title"),
25
- actions: [],
26
- description: `${(a = l.value) == null ? void 0 : a.name} (${(c = l.value) == null ? void 0 : c._id}) (${(m = l.value) == null ? void 0 : m.phoneNumber})`,
27
- onBackButton: async () => {
28
- await e.push({ name: i["$connect-LOYALTY_MEMBER_LIST"] });
29
- }
30
- });
31
- }), u = d(
32
- o.find((t) => t.value === e.currentRoute.value.name) ?? o[0]
33
- ), l = d();
34
- async function v(t) {
35
- await e.push({ name: t });
36
- }
37
- return k(
38
- () => e.currentRoute.value.name,
39
- async (t) => {
40
- u.value = o.find((c) => c.value === t) ?? o[0];
41
- const a = e.currentRoute.value.params.id;
42
- a && (l.value = await Y.readById(a)), await e.push({ name: t });
43
- }
44
- ), (t, a) => {
45
- const c = s("FmPageHead"), m = s("FmTabs"), R = s("RouterView");
46
- return _(), B(E, null, [
47
- b(c, {
48
- actions: n(r).actions,
49
- title: n(r).title,
50
- description: n(r).description,
51
- "back-button": n(r).backButton,
52
- "onClick:back": n(r).onBackButton
53
- }, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
54
- y("div", h, [
55
- n(e).currentRoute.value.name != n(i)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (_(), A(m, {
56
- key: 0,
57
- "model-value": n(u).value,
58
- items: o,
59
- "onUpdate:modelValue": v
60
- }, null, 8, ["model-value"])) : L("", !0),
61
- b(R)
62
- ])
63
- ], 64);
64
- };
65
- }
66
- });
67
- export {
68
- g as default
69
- };