@feedmepos/mf-connect 0.1.0-beta.7 → 0.1.0-beta.71

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 (126) hide show
  1. package/dist/Analytic-CnF_WeRZ.js +427 -0
  2. package/dist/{App-DalxIjTu.js → App-DJwSTuRa.js} +445 -420
  3. package/dist/AuditLogs-RarW2PHL.js +1886 -0
  4. package/dist/Bin-BaixTvHW.js +166 -0
  5. package/dist/{Broadcast-uMAvsC--.js → Broadcast-8DEAMhyM.js} +56 -54
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-JxbENan8.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DPXoOupI.js} +6 -8
  7. package/dist/Card-DRwLZ-Mn.js +896 -0
  8. package/dist/Collections-WsPM9v03.js +459 -0
  9. package/dist/{Credit-QlnatflM.js → Credit-DMxRdTzt.js} +36 -34
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  11. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bcj6o4Xi.js +2181 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BE07lc4M.js → EffectSheet.vue_vue_type_style_index_0_lang-CuJ8curT.js} +49 -49
  14. package/dist/{Experience-Czy41ifp.js → Experience-B0BV4Tc_.js} +32 -30
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  16. package/dist/Game-Bu6kJJHx.js +278 -0
  17. package/dist/Index-CX-aPFQt.js +259 -0
  18. package/dist/Marketing-CiVFwl6S.js +20071 -0
  19. package/dist/Member-DZfTtt13.js +333 -0
  20. package/dist/MemberList-CscwsZnv.js +1598 -0
  21. package/dist/MemberTransactions-BWNs6bUm.js +45 -0
  22. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CtM73bcN.js → MessageInput.vue_vue_type_script_setup_true_lang-BrbRudIU.js} +134 -122
  23. package/dist/Mission-CyJ-9Qfl.js +296 -0
  24. package/dist/Overview-DLyt6VId.js +1078 -0
  25. package/dist/{Point-By6ogYy_.js → Point-Cc_0-RKm.js} +55 -53
  26. package/dist/Promotion-KqA8nev2.js +289 -0
  27. package/dist/Queue-i8--zps9.js +249 -0
  28. package/dist/Record-CLUO1JVc.js +340 -0
  29. package/dist/Reward-BEdUKQ3M.js +442 -0
  30. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-B9vnSbWj.js +150 -0
  31. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-B8zw1TmO.js +1727 -0
  32. package/dist/Segment-B8sYajZG.js +568 -0
  33. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-CmmI5Vwl.js +181 -0
  34. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CIcXjbJG.js +186 -0
  35. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DY3FMuIf.js +147 -0
  36. package/dist/Setting-DT8dRb2A.js +1931 -0
  37. package/dist/Store-BhsPWRkR.js +1841 -0
  38. package/dist/StoreRewards-Cx2WDZ3p.js +423 -0
  39. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Byb7GOoh.js +1028 -0
  40. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-nEdCD6la.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Cb-FGTO9.js} +1 -1
  41. package/dist/{Tier-DvAs0-yx.js → Tier-kQy1vGwo.js} +327 -318
  42. package/dist/{Title-B_Trr39o.js → Title-DKv8FqpX.js} +224 -209
  43. package/dist/{Transaction-DCJw-b3H.js → Transaction-CSLllOgl.js} +2 -2
  44. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-CvpBdNBn.js +130 -0
  45. package/dist/Voucher-BP6fmSwu.js +354 -0
  46. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CxQEg_HW.js +419 -0
  47. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DXkhu8e9.js → ZodTextField.vue_vue_type_script_setup_true_lang-aurdXO2X.js} +1 -1
  48. package/dist/app-B3qgrQOd.js +7079 -0
  49. package/dist/app-s3iL79De.js +33357 -0
  50. package/dist/app.js +1 -1
  51. package/dist/business-DG2w8U-i.js +79 -0
  52. package/dist/campaign-BP6Rz-AH.js +1810 -0
  53. package/dist/{campaign--0_yMbMV.js → campaign-WPRZ4BRF.js} +2 -2
  54. package/dist/campaign.enum-CoqrWNTZ.js +20 -0
  55. package/dist/campaign.fn-BRPigTOA.js +758 -0
  56. package/dist/collectible.enum-Dy4sxF43.js +19 -0
  57. package/dist/{collection.fn-3TwPe7aF.js → collection.fn-DGnLyYgV.js} +2 -2
  58. package/dist/dto-xZ9I6-Jr.js +214 -0
  59. package/dist/{effect-BeR0LK61.js → effect-C0XoYTus.js} +33 -16
  60. package/dist/email-addresses-CJ87c7W1.js +705 -0
  61. package/dist/{export-xeLLhqvh.js → export-qlV-AbEl.js} +5 -5
  62. package/dist/{helper-B5iqfKh8.js → helper-DzYe8aNx.js} +1 -1
  63. package/dist/{index-BOdtpNkP.js → index-4vdSri7m.js} +266 -173
  64. package/dist/{index-CU_d8jjU.js → index-BfSj7cUl.js} +1 -1
  65. package/dist/index-Bj0ULpXi.js +29556 -0
  66. package/dist/index-BnZ4yaMH.js +115 -0
  67. package/dist/index-Bo5DJXxs.js +54 -0
  68. package/dist/{index-Ct_wR519.js → index-BuvJH6SU.js} +24 -21
  69. package/dist/index-C2GEs8di.js +32 -0
  70. package/dist/{index-CyKZ-SsN.js → index-CJuOTcCE.js} +1 -1
  71. package/dist/index-CsaQJMAR.js +66 -0
  72. package/dist/{index-DP-dGMJC.js → index-DReysUPw.js} +2230 -871
  73. package/dist/{index-CAn5heDe.js → index-DgCjRb3o.js} +48 -4
  74. package/dist/index-IwITtvVu.js +56 -0
  75. package/dist/{index-Bh-uaaBG.js → index-n3wiQlbk.js} +1506 -1480
  76. package/dist/index-vh86FiIQ.js +10 -0
  77. package/dist/{index.esm2017-5jeDA5Zo.js → index.esm2017-CkJhTmme.js} +154 -154
  78. package/dist/loading-DwJdwl4G.js +71 -0
  79. package/dist/{membership-D0nqqWNZ.js → membership-DvPK3h8f.js} +54 -46
  80. package/dist/money-C_WIbr_x.js +15 -0
  81. package/dist/number-ZeVoGhzP.js +12 -0
  82. package/dist/objectid-8lkX6otO.js +145 -0
  83. package/dist/{loading-C-JDVajU.js → plugins-D20keyDW.js} +2990 -3062
  84. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  85. package/dist/reward-CqnMEq_w.js +36 -0
  86. package/dist/{rule-Dn_GgBCe.js → rule-D7htGgWz.js} +185 -178
  87. package/dist/{rule-builder-BXt29Es4.js → rule-builder-BbJpYQ0n.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/{template-D2Oi3dxP.js → template-BWQCVHm7.js} +5 -5
  90. package/dist/trigger-DMuv0_O7.js +144 -0
  91. package/dist/user-C_v2C0qN.js +54 -0
  92. package/dist/vue-i18n-N8_TEEd0.js +2365 -0
  93. package/dist/{xlsx-CCRCidY2.js → xlsx-CsPDNSTo.js} +1 -1
  94. package/package.json +11 -7
  95. package/dist/Analytic-BMpS6jWb.js +0 -622
  96. package/dist/Card-DV8-g69L.js +0 -825
  97. package/dist/Collections-DRafEHT1.js +0 -453
  98. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-TDoMehSB.js +0 -2813
  99. package/dist/Game-CD3zSitz.js +0 -255
  100. package/dist/Marketing-NNes8z6Q.js +0 -316
  101. package/dist/Member-CTqBgYuV.js +0 -69
  102. package/dist/MemberList-B99tS5ce.js +0 -1733
  103. package/dist/MemberTransactions-D1YCXPOg.js +0 -38
  104. package/dist/Mission-XbBVKBiE.js +0 -261
  105. package/dist/Promotion-DKcBr-RI.js +0 -247
  106. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D1ESqEFO.js +0 -1753
  107. package/dist/Segment-B8cszL-F.js +0 -437
  108. package/dist/Setting-aZYABlMW.js +0 -1901
  109. package/dist/Store-Bx2tyJwe.js +0 -1511
  110. package/dist/StoreRewards-DTp9G6gw.js +0 -401
  111. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B2W7ly5Z.js +0 -890
  112. package/dist/Voucher-jqv3ji90.js +0 -490
  113. package/dist/app-WlcUVbFb.js +0 -5764
  114. package/dist/app-_w0hjM7u.js +0 -53428
  115. package/dist/business-BC4-i1cU.js +0 -78
  116. package/dist/dto-Ns2dLn1B.js +0 -2770
  117. package/dist/index-BWb9vRCi.js +0 -29193
  118. package/dist/index-CpU9aqyW.js +0 -206
  119. package/dist/index-CqO_ZvtD.js +0 -99
  120. package/dist/index-CuvNtC_M.js +0 -61
  121. package/dist/index-DsNsA2uX.js +0 -298
  122. package/dist/index-WAMr3npT.js +0 -762
  123. package/dist/money-hdbrblud.js +0 -15
  124. package/dist/number-CRWGOZaW.js +0 -12
  125. package/dist/user-Bm4KttFq.js +0 -37
  126. package/dist/vue-i18n-Dud8fvmw.js +0 -2365
@@ -0,0 +1,333 @@
1
+ import { defineComponent as U, ref as T, watch as D, resolveComponent as x, openBlock as E, createElementBlock as g, Fragment as C, createElementVNode as k, createVNode as h, unref as i, withCtx as B, renderList as P, createBlock as I, toDisplayString as V, normalizeClass as $, computed as H, createCommentVNode as Y } from "vue";
2
+ import "./index-CJuOTcCE.js";
3
+ import { useDialogChild as q, FmButtonVariant as M, useDialog as G, useSnackbar as J } from "@feedmepos/ui-library";
4
+ import { u as j } from "./vue-i18n-N8_TEEd0.js";
5
+ import { u as S, w as z } from "./xlsx-CsPDNSTo.js";
6
+ import { c as R } from "./_commonjsHelpers-BkfeUUK-.js";
7
+ import { useCoreStore as Q } from "@feedmepos/mf-common";
8
+ import { useRouter as W } from "vue-router";
9
+ import { m as O } from "./index-BuvJH6SU.js";
10
+ import { R as F } from "./app-B3qgrQOd.js";
11
+ var N = { exports: {} };
12
+ (function(A, m) {
13
+ (function(_, r) {
14
+ r();
15
+ })(R, function() {
16
+ function _(e, n) {
17
+ return typeof n > "u" ? n = { autoBom: !1 } : typeof n != "object" && (console.warn("Deprecated: Expected third argument to be a object"), n = { autoBom: !n }), n.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
18
+ }
19
+ function r(e, n, s) {
20
+ var t = new XMLHttpRequest();
21
+ t.open("GET", e), t.responseType = "blob", t.onload = function() {
22
+ d(t.response, n, s);
23
+ }, t.onerror = function() {
24
+ console.error("could not download file");
25
+ }, t.send();
26
+ }
27
+ function b(e) {
28
+ var n = new XMLHttpRequest();
29
+ n.open("HEAD", e, !1);
30
+ try {
31
+ n.send();
32
+ } catch {
33
+ }
34
+ return 200 <= n.status && 299 >= n.status;
35
+ }
36
+ function v(e) {
37
+ try {
38
+ e.dispatchEvent(new MouseEvent("click"));
39
+ } catch {
40
+ var n = document.createEvent("MouseEvents");
41
+ n.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(n);
42
+ }
43
+ }
44
+ var c = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof R == "object" && R.global === R ? R : void 0, f = c.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), d = c.saveAs || (typeof window != "object" || window !== c ? function() {
45
+ } : "download" in HTMLAnchorElement.prototype && !f ? function(e, n, s) {
46
+ var t = c.URL || c.webkitURL, o = document.createElement("a");
47
+ n = n || e.name || "download", o.download = n, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? v(o) : b(o.href) ? r(e, n, s) : v(o, o.target = "_blank")) : (o.href = t.createObjectURL(e), setTimeout(function() {
48
+ t.revokeObjectURL(o.href);
49
+ }, 4e4), setTimeout(function() {
50
+ v(o);
51
+ }, 0));
52
+ } : "msSaveOrOpenBlob" in navigator ? function(e, n, s) {
53
+ if (n = n || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(_(e, s), n);
54
+ else if (b(e)) r(e, n, s);
55
+ else {
56
+ var t = document.createElement("a");
57
+ t.href = e, t.target = "_blank", setTimeout(function() {
58
+ v(t);
59
+ });
60
+ }
61
+ } : function(e, n, s, t) {
62
+ if (t = t || open("", "_blank"), t && (t.document.title = t.document.body.innerText = "downloading..."), typeof e == "string") return r(e, n, s);
63
+ var o = e.type === "application/octet-stream", y = /constructor/i.test(c.HTMLElement) || c.safari, w = /CriOS\/[\d]+/.test(navigator.userAgent);
64
+ if ((w || o && y || f) && typeof FileReader < "u") {
65
+ var l = new FileReader();
66
+ l.onloadend = function() {
67
+ var a = l.result;
68
+ a = w ? a : a.replace(/^data:[^;]*;/, "data:attachment/file;"), t ? t.location.href = a : location = a, t = null;
69
+ }, l.readAsDataURL(e);
70
+ } else {
71
+ var u = c.URL || c.webkitURL, p = u.createObjectURL(e);
72
+ t ? t.location = p : location.href = p, t = null, setTimeout(function() {
73
+ u.revokeObjectURL(p);
74
+ }, 4e4);
75
+ }
76
+ });
77
+ c.saveAs = d.saveAs = d, A.exports = d;
78
+ });
79
+ })(N);
80
+ var X = N.exports;
81
+ const K = { class: "space-y-8 mb-10" }, Z = { class: "flex justify-end" }, ee = {
82
+ key: 1,
83
+ class: /* @__PURE__ */ $([
84
+ "flex items-center",
85
+ "border border-fm-color-neutral-gray-300",
86
+ "p-16 space-x-16 rounded-md"
87
+ ])
88
+ }, te = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, ne = /* @__PURE__ */ U({
89
+ __name: "ImportMemberDialog",
90
+ setup(A) {
91
+ const { t: m } = j(), { emitData: _ } = q(), r = T(null), b = T(null), v = T({
92
+ resetCollectionExpiryBalance: !0
93
+ }), c = [
94
+ "Id",
95
+ "Name",
96
+ "Phone",
97
+ "Email",
98
+ "Gender",
99
+ "CardNo",
100
+ "Birthday",
101
+ "Credit",
102
+ "CreditExpiryDate",
103
+ "Exp",
104
+ "Point",
105
+ "Tier",
106
+ // 'Titles',
107
+ "TotalTransaction",
108
+ "AvgSpent",
109
+ "TotalSpent",
110
+ "LastVisit",
111
+ "Feedback",
112
+ "LastSeasonTierEarned",
113
+ "LastSeasonPointEarned",
114
+ "JoinedAt",
115
+ "JoinedAtLocation",
116
+ "VisitFrequency"
117
+ ], f = [
118
+ {
119
+ label: "CSV",
120
+ icon: "csv",
121
+ value: "csv"
122
+ /* csv */
123
+ },
124
+ {
125
+ label: "Excel",
126
+ icon: "description",
127
+ value: "xlsx"
128
+ /* xlsx */
129
+ }
130
+ ];
131
+ async function d(t) {
132
+ var o, y;
133
+ r.value = ((y = (o = t.target) == null ? void 0 : o.files) == null ? void 0 : y[0]) ?? null;
134
+ }
135
+ async function e(t) {
136
+ switch (t) {
137
+ case "csv":
138
+ n();
139
+ break;
140
+ case "xlsx":
141
+ s();
142
+ break;
143
+ }
144
+ }
145
+ function n() {
146
+ const t = new Blob([c.join(",")], {
147
+ type: "text/csv;charset=utf-8;"
148
+ });
149
+ X.saveAs(t, "ImportMemberTemplate.csv");
150
+ }
151
+ function s() {
152
+ const t = S.aoa_to_sheet([c]), o = S.book_new();
153
+ S.book_append_sheet(o, t, "Sheet1"), z(o, "ImportMemberTemplate.xlsx");
154
+ }
155
+ return D(r, () => {
156
+ _({ file: r.value, config: v.value });
157
+ }), (t, o) => {
158
+ const y = x("FmSwitch"), w = x("FmButton"), l = x("FmMenuItem"), u = x("FmMenu"), p = x("FmDropField");
159
+ return E(), g(C, null, [
160
+ k("div", K, [
161
+ o[3] || (o[3] = k("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
162
+ h(y, {
163
+ "model-value": i(v).resetCollectionExpiryBalance ?? !0,
164
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => i(v).resetCollectionExpiryBalance = a),
165
+ label: "Replace Existing Free Credit",
166
+ sublabel: "When enabled, this will clear existing free credit and replace with new values from the import.",
167
+ "label-placement": "right"
168
+ }, null, 8, ["model-value"])
169
+ ]),
170
+ k("div", Z, [
171
+ h(u, null, {
172
+ "menu-button": B(() => [
173
+ h(w, {
174
+ variant: "tertiary",
175
+ icon: "download",
176
+ label: "Download Template"
177
+ })
178
+ ]),
179
+ default: B(() => [
180
+ (E(), g(C, null, P(f, (a) => h(l, {
181
+ key: a.value,
182
+ icon: a.icon,
183
+ label: a.label,
184
+ onClick: (L) => e(a.value),
185
+ selectable: ""
186
+ }, null, 8, ["icon", "label", "onClick"])), 64))
187
+ ]),
188
+ _: 1
189
+ })
190
+ ]),
191
+ i(r) ? (E(), g("div", ee, [
192
+ h(w, {
193
+ variant: i(M).Tertiary,
194
+ "prepend-icon": "attach_file"
195
+ }, null, 8, ["variant"]),
196
+ k("p", te, V(i(r).name), 1),
197
+ k("label", {
198
+ ref_key: "fileLabelRef",
199
+ ref: b,
200
+ htmlFor: "file"
201
+ }, [
202
+ h(w, {
203
+ variant: i(M).Plain,
204
+ label: i(m)("Replace File"),
205
+ onClick: o[2] || (o[2] = () => {
206
+ var a;
207
+ return (a = i(b)) == null ? void 0 : a.click();
208
+ })
209
+ }, null, 8, ["variant", "label"]),
210
+ k("input", {
211
+ id: "file",
212
+ accept: ".csv, .xlsx",
213
+ class: "hidden",
214
+ type: "file",
215
+ multiple: "",
216
+ onChange: d
217
+ }, null, 32)
218
+ ], 512)
219
+ ])) : (E(), I(p, {
220
+ key: 0,
221
+ onFileUpload: o[1] || (o[1] = (a) => r.value = a),
222
+ accept: ".csv, .xlsx",
223
+ "max-file-size": 2e7
224
+ }))
225
+ ], 64);
226
+ };
227
+ }
228
+ }), oe = { class: "px-24 flex flex-col gap-y-16 pb-24" }, fe = /* @__PURE__ */ U({
229
+ __name: "Member",
230
+ setup(A) {
231
+ var o, y, w;
232
+ const m = W(), { t: _ } = j(), r = G(), b = J(), v = Q(), c = {
233
+ label: _("connect.loyalty.member.import"),
234
+ value: "import",
235
+ isPrimary: !0,
236
+ prependIcon: "download"
237
+ }, f = [
238
+ {
239
+ label: _("connect.loyalty.member.tabs.member_list"),
240
+ value: F["$connect-LOYALTY_MEMBER_LIST"],
241
+ actions: (w = (y = (o = v.sessionUser) == null ? void 0 : o.value) == null ? void 0 : y.role) != null && w.isAdmin ? [c] : []
242
+ }
243
+ ], d = H(() => {
244
+ var u, p, a;
245
+ return m.currentRoute.value.name != F["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
246
+ title: e.value.label,
247
+ actions: e.value.actions,
248
+ description: void 0
249
+ } : (e.value = f[1], {
250
+ backButton: !0,
251
+ title: _("connect.loyalty.member.title"),
252
+ actions: [],
253
+ description: `${(u = n.value) == null ? void 0 : u.name} (${(p = n.value) == null ? void 0 : p._id}) (${(a = n.value) == null ? void 0 : a.phoneNumber})`,
254
+ onBackButton: async () => {
255
+ await m.push({ name: F["$connect-LOYALTY_MEMBER_LIST"] });
256
+ }
257
+ });
258
+ }), e = T(
259
+ f.find((l) => l.value === m.currentRoute.value.name) ?? f[0]
260
+ ), n = T();
261
+ async function s(l) {
262
+ await m.push({ name: l });
263
+ }
264
+ async function t() {
265
+ r.open({
266
+ title: "Upload File",
267
+ closeButton: !0,
268
+ dismissAway: !1,
269
+ contentComponent: ne,
270
+ primaryActions: { text: "Import", close: !1 }
271
+ }).onPrimary(async (l) => {
272
+ if (!l) {
273
+ b.open({
274
+ type: "error",
275
+ title: "Please upload a file"
276
+ });
277
+ return;
278
+ }
279
+ const { file: u, config: p } = l;
280
+ if (!u)
281
+ b.open({
282
+ type: "error",
283
+ title: "Please upload a file"
284
+ });
285
+ else {
286
+ const a = new FormData();
287
+ a.append("file", u), a.append("config", JSON.stringify(p)), await O.import(a), b.open({
288
+ type: "info",
289
+ title: "Import begins soon. Check Queue for updates.",
290
+ action: "View",
291
+ onAction: async () => {
292
+ await m.push({
293
+ name: F["$connect-QUEUE"]
294
+ });
295
+ }
296
+ }), r.close();
297
+ }
298
+ });
299
+ }
300
+ return D(
301
+ () => m.currentRoute.value.name,
302
+ async (l) => {
303
+ e.value = f.find((p) => p.value === l) ?? f[0];
304
+ const u = m.currentRoute.value.params.id;
305
+ u && (n.value = await O.readById(u)), await m.push({ name: l });
306
+ }
307
+ ), (l, u) => {
308
+ const p = x("FmPageHead"), a = x("FmTabs"), L = x("RouterView");
309
+ return E(), g(C, null, [
310
+ h(p, {
311
+ actions: i(d).actions,
312
+ title: i(d).title,
313
+ description: i(d).description,
314
+ "back-button": i(d).backButton,
315
+ "onClick:back": i(d).onBackButton,
316
+ "onClick:action": t
317
+ }, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
318
+ k("div", oe, [
319
+ i(m).currentRoute.value.name != i(F)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (E(), I(a, {
320
+ key: 0,
321
+ "model-value": i(e).value,
322
+ items: f,
323
+ "onUpdate:modelValue": s
324
+ }, null, 8, ["model-value"])) : Y("", !0),
325
+ h(L)
326
+ ])
327
+ ], 64);
328
+ };
329
+ }
330
+ });
331
+ export {
332
+ fe as default
333
+ };