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

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 (91) hide show
  1. package/dist/{Analytic-CnF_WeRZ.js → Analytic-DuF55WBS.js} +11 -11
  2. package/dist/{App-DJwSTuRa.js → App-CeGsq1NM.js} +6 -10
  3. package/dist/{AuditLogs-RarW2PHL.js → AuditLogs-B34wZMVU.js} +16 -15
  4. package/dist/{Bin-BaixTvHW.js → Bin-DLoneNTA.js} +8 -8
  5. package/dist/{Broadcast-8DEAMhyM.js → Broadcast-CoOqhL7m.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DPXoOupI.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CE20HRMJ.js} +14 -8
  7. package/dist/{Card-DRwLZ-Mn.js → Card-BpvNfVGg.js} +124 -123
  8. package/dist/{Collections-WsPM9v03.js → Collections-CQHKFHzT.js} +19 -18
  9. package/dist/{Credit-DMxRdTzt.js → Credit-CU9Rq52D.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bcj6o4Xi.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-thu_Lazd.js} +29 -28
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CuJ8curT.js → EffectSheet.vue_vue_type_style_index_0_lang-BV3itQrT.js} +6 -6
  12. package/dist/{Experience-B0BV4Tc_.js → Experience-ClcvzpZh.js} +9 -9
  13. package/dist/{Game-Bu6kJJHx.js → Game-B-3gd3F2.js} +10 -10
  14. package/dist/{Index-CX-aPFQt.js → Index-BUgF1mCN.js} +10 -10
  15. package/dist/{Marketing-CiVFwl6S.js → Marketing-BmaJH7Sb.js} +6 -6
  16. package/dist/Member-Bx61ZEO0.js +357 -0
  17. package/dist/{MemberList-CscwsZnv.js → MemberList-BzKysKUq.js} +282 -282
  18. package/dist/{MemberTransactions-BWNs6bUm.js → MemberTransactions-CXGW_Cb5.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BrbRudIU.js → MessageInput.vue_vue_type_script_setup_true_lang-Cz8rnRI5.js} +7 -6
  20. package/dist/{Mission-CyJ-9Qfl.js → Mission-DjJFBLUZ.js} +10 -10
  21. package/dist/{Overview-DLyt6VId.js → Overview-DY0s8qOT.js} +20 -19
  22. package/dist/{Point-Cc_0-RKm.js → Point-Ci76W501.js} +9 -9
  23. package/dist/{Promotion-KqA8nev2.js → Promotion-_GsyimeM.js} +10 -10
  24. package/dist/{Queue-i8--zps9.js → Queue-yUE7VTjr.js} +86 -77
  25. package/dist/{Record-CLUO1JVc.js → Record-BWE8pJwB.js} +17 -16
  26. package/dist/{Reward-BEdUKQ3M.js → Reward-CLjRxvkB.js} +15 -15
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B9vnSbWj.js → RewardGroup.vue_vue_type_script_setup_true_lang-NhHHUjBT.js} +11 -11
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-B8zw1TmO.js → RuleGroup.vue_vue_type_script_setup_true_lang-mHzVjK4_.js} +15 -14
  29. package/dist/Segment-B5X395PR.js +794 -0
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CmmI5Vwl.js → SelectItems.vue_vue_type_script_setup_true_lang-Et0B0kkB.js} +2 -2
  31. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CTuiaF91.js +188 -0
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DY3FMuIf.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-h0OGy6PZ.js} +3 -3
  33. package/dist/{Setting-DT8dRb2A.js → Setting-DKNukqej.js} +16 -15
  34. package/dist/{Store-BhsPWRkR.js → Store-pVnRDIWv.js} +28 -27
  35. package/dist/{StoreRewards-Cx2WDZ3p.js → StoreRewards-Dta8iaG3.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Byb7GOoh.js → StoreTransactions.vue_vue_type_script_setup_true_lang-C4FK2Hhc.js} +27 -26
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Cb-FGTO9.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D5tEPJlH.js} +1 -1
  38. package/dist/{Tier-kQy1vGwo.js → Tier-b3qzb85f.js} +22 -21
  39. package/dist/{Title-DKv8FqpX.js → Title-BEPkkALw.js} +19 -19
  40. package/dist/{Transaction-CSLllOgl.js → Transaction-CX5bz-8R.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CvpBdNBn.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-J7JgL3ZE.js} +6 -6
  42. package/dist/{Voucher-BP6fmSwu.js → Voucher-B9WhyNoJ.js} +12 -12
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CxQEg_HW.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CpdJV-JH.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-aurdXO2X.js → ZodTextField.vue_vue_type_script_setup_true_lang-Byy8iIcw.js} +1 -1
  45. package/dist/{app-s3iL79De.js → app-BwuFlP4U.js} +1 -1
  46. package/dist/{app-B3qgrQOd.js → app-spXNxwIy.js} +31 -31
  47. package/dist/app.js +1 -1
  48. package/dist/{business-DG2w8U-i.js → business-DL7Au5Jd.js} +1 -1
  49. package/dist/{campaign-BP6Rz-AH.js → campaign-BNZ7-HOT.js} +9 -9
  50. package/dist/{campaign-WPRZ4BRF.js → campaign-CdAByh1F.js} +2 -2
  51. package/dist/{campaign.enum-CoqrWNTZ.js → campaign.enum-BUoLAvv9.js} +1 -1
  52. package/dist/{campaign.fn-BRPigTOA.js → campaign.fn-Vhk4colm.js} +29 -29
  53. package/dist/{collectible.enum-Dy4sxF43.js → collectible.enum-Bj9M_woV.js} +1 -1
  54. package/dist/{collection.fn-DGnLyYgV.js → collection.fn-Cd5Ot0j-.js} +2 -2
  55. package/dist/{dto-xZ9I6-Jr.js → dto-ClbqdGxX.js} +4 -4
  56. package/dist/{effect-C0XoYTus.js → effect-DIJB9gNc.js} +1 -1
  57. package/dist/{email-addresses-CJ87c7W1.js → email-addresses-Ct53VAK9.js} +1 -1
  58. package/dist/{export-qlV-AbEl.js → export-CoufQpmw.js} +3 -3
  59. package/dist/{helper-DzYe8aNx.js → helper-BiWgv5uK.js} +1 -1
  60. package/dist/{index-DReysUPw.js → index-1xiBe8hf.js} +437 -426
  61. package/dist/{index-BnZ4yaMH.js → index-CC4x--Wj.js} +1 -1
  62. package/dist/{index-DgCjRb3o.js → index-CGC8OuAU.js} +1 -1
  63. package/dist/{index-Bo5DJXxs.js → index-Ccxk7UeG.js} +3 -3
  64. package/dist/{index-BfSj7cUl.js → index-CyLEADUO.js} +1 -1
  65. package/dist/{index-4vdSri7m.js → index-D7FRiYhm.js} +6 -6
  66. package/dist/{index-BuvJH6SU.js → index-DVH42wjJ.js} +1 -1
  67. package/dist/{plugins-D20keyDW.js → index-DfRmJZgk.js} +2606 -2811
  68. package/dist/{index-IwITtvVu.js → index-DmakIEWL.js} +1 -1
  69. package/dist/{index-CJuOTcCE.js → index-DovTEaDP.js} +1 -1
  70. package/dist/{index-C2GEs8di.js → index-LFo6ZYQL.js} +1 -1
  71. package/dist/{index-n3wiQlbk.js → index-bJ5pwQkB.js} +2 -2
  72. package/dist/{index-Bj0ULpXi.js → index-qjlKvnh6.js} +3 -3
  73. package/dist/{index.esm2017-CkJhTmme.js → index.esm2017-CRGDx_au.js} +3 -3
  74. package/dist/{loading-DwJdwl4G.js → loading-YDhYfc7H.js} +1 -1
  75. package/dist/{membership-DvPK3h8f.js → membership-BGin-J4X.js} +54 -48
  76. package/dist/{money-C_WIbr_x.js → money-Dy3hgkcf.js} +1 -1
  77. package/dist/{number-ZeVoGhzP.js → number-BAIUanJl.js} +1 -1
  78. package/dist/{objectid-8lkX6otO.js → objectid-Cw3dF6mj.js} +5 -5
  79. package/dist/plugins-D9TQFKpf.js +208 -0
  80. package/dist/{reward-CqnMEq_w.js → reward-DB1n0glJ.js} +1 -1
  81. package/dist/{rule-D7htGgWz.js → rule-BrRyZfJJ.js} +3 -3
  82. package/dist/{rule-builder-BbJpYQ0n.js → rule-builder-CC08hDgq.js} +1 -1
  83. package/dist/{template-BWQCVHm7.js → template-DJlxZIjZ.js} +4 -4
  84. package/dist/{trigger-DMuv0_O7.js → trigger-Dz5Fd0Hc.js} +4 -4
  85. package/dist/{user-C_v2C0qN.js → user-BAE-TiCB.js} +1 -1
  86. package/dist/{vue-i18n-N8_TEEd0.js → vue-i18n-DpoLveH2.js} +158 -158
  87. package/dist/{xlsx-CsPDNSTo.js → xlsx-3tdJPiTp.js} +1 -1
  88. package/package.json +1 -1
  89. package/dist/Member-DZfTtt13.js +0 -333
  90. package/dist/Segment-B8sYajZG.js +0 -568
  91. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CIcXjbJG.js +0 -186
@@ -0,0 +1,357 @@
1
+ import { defineComponent as D, ref as A, watch as P, resolveComponent as h, openBlock as F, createElementBlock as B, Fragment as S, createElementVNode as x, createVNode as E, unref as r, withCtx as L, renderList as H, createBlock as j, toDisplayString as q, normalizeClass as Y, computed as G, createCommentVNode as J } from "vue";
2
+ import "./index-DovTEaDP.js";
3
+ import { useDialogChild as Q, FmButtonVariant as O, useDialog as z, useSnackbar as W } from "@feedmepos/ui-library";
4
+ import { u as N } from "./vue-i18n-DpoLveH2.js";
5
+ import "./index-D7FRiYhm.js";
6
+ import { c as I } from "./index-1xiBe8hf.js";
7
+ import "./index-bJ5pwQkB.js";
8
+ import "./index-CyLEADUO.js";
9
+ import "./index-Ccxk7UeG.js";
10
+ import { u as M, w as X } from "./xlsx-3tdJPiTp.js";
11
+ import { c as g } from "./_commonjsHelpers-BkfeUUK-.js";
12
+ import { useCoreStore as K } from "@feedmepos/mf-common";
13
+ import { useRouter as Z } from "vue-router";
14
+ import { m as U } from "./index-DVH42wjJ.js";
15
+ import { R as T } from "./app-spXNxwIy.js";
16
+ var V = { exports: {} };
17
+ (function(C, u) {
18
+ (function(d, c) {
19
+ c();
20
+ })(g, function() {
21
+ function d(e, t) {
22
+ return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.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;
23
+ }
24
+ function c(e, t, l) {
25
+ var n = new XMLHttpRequest();
26
+ n.open("GET", e), n.responseType = "blob", n.onload = function() {
27
+ p(n.response, t, l);
28
+ }, n.onerror = function() {
29
+ console.error("could not download file");
30
+ }, n.send();
31
+ }
32
+ function f(e) {
33
+ var t = new XMLHttpRequest();
34
+ t.open("HEAD", e, !1);
35
+ try {
36
+ t.send();
37
+ } catch {
38
+ }
39
+ return 200 <= t.status && 299 >= t.status;
40
+ }
41
+ function m(e) {
42
+ try {
43
+ e.dispatchEvent(new MouseEvent("click"));
44
+ } catch {
45
+ var t = document.createEvent("MouseEvents");
46
+ t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
47
+ }
48
+ }
49
+ var s = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof g == "object" && g.global === g ? g : void 0, R = s.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), p = s.saveAs || (typeof window != "object" || window !== s ? function() {
50
+ } : "download" in HTMLAnchorElement.prototype && !R ? function(e, t, l) {
51
+ var n = s.URL || s.webkitURL, o = document.createElement("a");
52
+ t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? m(o) : f(o.href) ? c(e, t, l) : m(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
53
+ n.revokeObjectURL(o.href);
54
+ }, 4e4), setTimeout(function() {
55
+ m(o);
56
+ }, 0));
57
+ } : "msSaveOrOpenBlob" in navigator ? function(e, t, l) {
58
+ if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(d(e, l), t);
59
+ else if (f(e)) c(e, t, l);
60
+ else {
61
+ var n = document.createElement("a");
62
+ n.href = e, n.target = "_blank", setTimeout(function() {
63
+ m(n);
64
+ });
65
+ }
66
+ } : function(e, t, l, n) {
67
+ if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return c(e, t, l);
68
+ var o = e.type === "application/octet-stream", y = /constructor/i.test(s.HTMLElement) || s.safari, v = /CriOS\/[\d]+/.test(navigator.userAgent);
69
+ if ((v || o && y || R) && typeof FileReader < "u") {
70
+ var _ = new FileReader();
71
+ _.onloadend = function() {
72
+ var a = _.result;
73
+ a = v ? a : a.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = a : location = a, n = null;
74
+ }, _.readAsDataURL(e);
75
+ } else {
76
+ var k = s.URL || s.webkitURL, i = k.createObjectURL(e);
77
+ n ? n.location = i : location.href = i, n = null, setTimeout(function() {
78
+ k.revokeObjectURL(i);
79
+ }, 4e4);
80
+ }
81
+ });
82
+ s.saveAs = p.saveAs = p, C.exports = p;
83
+ });
84
+ })(V);
85
+ var ee = V.exports;
86
+ const te = { class: "space-y-8 mb-10" }, ne = { class: "flex justify-end" }, oe = {
87
+ key: 1,
88
+ class: /* @__PURE__ */ Y([
89
+ "flex items-center",
90
+ "border border-fm-color-neutral-gray-300",
91
+ "p-16 space-x-16 rounded-md"
92
+ ])
93
+ }, ae = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, ie = /* @__PURE__ */ D({
94
+ __name: "ImportMemberDialog",
95
+ setup(C) {
96
+ const { t: u } = N(), { emitData: d } = Q(), c = A(null), f = A(null), m = A({
97
+ resetCollectionExpiryBalance: !0
98
+ }), s = [
99
+ "Id",
100
+ "Name",
101
+ "Phone",
102
+ "Email",
103
+ "Gender",
104
+ "CardNo",
105
+ "Birthday",
106
+ "Credit",
107
+ "CreditExpiryDate",
108
+ "Exp",
109
+ "Point",
110
+ "Tier",
111
+ // 'Titles',
112
+ "TotalTransaction",
113
+ "AvgSpent",
114
+ "TotalSpent",
115
+ "LastVisit",
116
+ "Feedback",
117
+ "LastSeasonTierEarned",
118
+ "LastSeasonPointEarned",
119
+ "JoinedAt",
120
+ "JoinedAtLocation",
121
+ "VisitFrequency"
122
+ ], R = [
123
+ {
124
+ label: "CSV",
125
+ icon: "csv",
126
+ value: "csv"
127
+ /* csv */
128
+ },
129
+ {
130
+ label: "Excel",
131
+ icon: "description",
132
+ value: "xlsx"
133
+ /* xlsx */
134
+ }
135
+ ];
136
+ async function p(n) {
137
+ var o, y;
138
+ c.value = ((y = (o = n.target) == null ? void 0 : o.files) == null ? void 0 : y[0]) ?? null;
139
+ }
140
+ async function e(n) {
141
+ switch (n) {
142
+ case "csv":
143
+ t();
144
+ break;
145
+ case "xlsx":
146
+ l();
147
+ break;
148
+ }
149
+ }
150
+ function t() {
151
+ const n = new Blob([s.join(",")], {
152
+ type: "text/csv;charset=utf-8;"
153
+ });
154
+ ee.saveAs(n, "ImportMemberTemplate.csv");
155
+ }
156
+ function l() {
157
+ const n = M.aoa_to_sheet([s]), o = M.book_new();
158
+ M.book_append_sheet(o, n, "Sheet1"), X(o, "ImportMemberTemplate.xlsx");
159
+ }
160
+ return P(c, () => {
161
+ d({ file: c.value, config: m.value });
162
+ }), (n, o) => {
163
+ const y = h("FmSwitch"), v = h("FmButton"), _ = h("FmMenuItem"), k = h("FmMenu"), i = h("FmDropField");
164
+ return F(), B(S, null, [
165
+ x("div", te, [
166
+ o[3] || (o[3] = x("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
167
+ E(y, {
168
+ "model-value": r(m).resetCollectionExpiryBalance ?? !0,
169
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => r(m).resetCollectionExpiryBalance = a),
170
+ label: "Replace Existing Free Credit",
171
+ sublabel: "When enabled, this will clear existing free credit and replace with new values from the import.",
172
+ "label-placement": "right"
173
+ }, null, 8, ["model-value"])
174
+ ]),
175
+ x("div", ne, [
176
+ E(k, null, {
177
+ "menu-button": L(() => [
178
+ E(v, {
179
+ variant: "tertiary",
180
+ icon: "download",
181
+ label: "Download Template"
182
+ })
183
+ ]),
184
+ default: L(() => [
185
+ (F(), B(S, null, H(R, (a) => E(_, {
186
+ key: a.value,
187
+ icon: a.icon,
188
+ label: a.label,
189
+ onClick: (b) => e(a.value),
190
+ selectable: ""
191
+ }, null, 8, ["icon", "label", "onClick"])), 64))
192
+ ]),
193
+ _: 1
194
+ })
195
+ ]),
196
+ r(c) ? (F(), B("div", oe, [
197
+ E(v, {
198
+ variant: r(O).Tertiary,
199
+ "prepend-icon": "attach_file"
200
+ }, null, 8, ["variant"]),
201
+ x("p", ae, q(r(c).name), 1),
202
+ x("label", {
203
+ ref_key: "fileLabelRef",
204
+ ref: f,
205
+ htmlFor: "file"
206
+ }, [
207
+ E(v, {
208
+ variant: r(O).Plain,
209
+ label: r(u)("Replace File"),
210
+ onClick: o[2] || (o[2] = () => {
211
+ var a;
212
+ return (a = r(f)) == null ? void 0 : a.click();
213
+ })
214
+ }, null, 8, ["variant", "label"]),
215
+ x("input", {
216
+ id: "file",
217
+ accept: ".csv, .xlsx",
218
+ class: "hidden",
219
+ type: "file",
220
+ multiple: "",
221
+ onChange: p
222
+ }, null, 32)
223
+ ], 512)
224
+ ])) : (F(), j(i, {
225
+ key: 0,
226
+ onFileUpload: o[1] || (o[1] = (a) => c.value = a),
227
+ accept: ".csv, .xlsx",
228
+ "max-file-size": 5e6
229
+ }))
230
+ ], 64);
231
+ };
232
+ }
233
+ }), le = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ke = /* @__PURE__ */ D({
234
+ __name: "Member",
235
+ setup(C) {
236
+ var v, _, k;
237
+ const u = Z(), { t: d } = N(), c = z(), f = W(), m = K(), s = {
238
+ label: d("connect.loyalty.member.import"),
239
+ value: "import",
240
+ isPrimary: !0,
241
+ prependIcon: "download"
242
+ }, R = {
243
+ label: d("connect.navigation.queue"),
244
+ value: "queue",
245
+ isPrimary: !1,
246
+ prependIcon: "work_history"
247
+ }, p = [
248
+ {
249
+ label: d("connect.loyalty.member.tabs.member_list"),
250
+ value: T["$connect-LOYALTY_MEMBER_LIST"],
251
+ actions: (k = (_ = (v = m.sessionUser) == null ? void 0 : v.value) == null ? void 0 : _.role) != null && k.isAdmin ? [R, s] : []
252
+ }
253
+ ], e = G(() => {
254
+ var a, b, w;
255
+ return u.currentRoute.value.name != T["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
256
+ title: t.value.label,
257
+ actions: t.value.actions,
258
+ description: void 0
259
+ } : (t.value = p[1], {
260
+ backButton: !0,
261
+ title: d("connect.loyalty.member.title"),
262
+ actions: [],
263
+ description: `${(a = l.value) == null ? void 0 : a.name} (${(b = l.value) == null ? void 0 : b._id}) (${(w = l.value) == null ? void 0 : w.phoneNumber})`,
264
+ onBackButton: async () => {
265
+ await u.push({ name: T["$connect-LOYALTY_MEMBER_LIST"] });
266
+ }
267
+ });
268
+ }), t = A(
269
+ p.find((i) => i.value === u.currentRoute.value.name) ?? p[0]
270
+ ), l = A();
271
+ async function n(i) {
272
+ await u.push({ name: i });
273
+ }
274
+ async function o() {
275
+ c.open({
276
+ title: "Upload File",
277
+ closeButton: !0,
278
+ dismissAway: !1,
279
+ contentComponent: ie,
280
+ primaryActions: { text: "Import", close: !1 }
281
+ }).onPrimary(async (i) => {
282
+ if (!i) {
283
+ f.open({
284
+ type: "error",
285
+ title: "Please upload a file"
286
+ });
287
+ return;
288
+ }
289
+ const { file: a, config: b } = i;
290
+ if (!a)
291
+ f.open({
292
+ type: "error",
293
+ title: "Please upload a file"
294
+ });
295
+ else {
296
+ const w = new FormData();
297
+ w.append("file", a), w.append("config", JSON.stringify(b)), await U.import(w), f.open({
298
+ type: "info",
299
+ title: "Import begins soon. Check Queue for updates.",
300
+ action: "View",
301
+ onAction: async () => {
302
+ await u.push({
303
+ name: T["$connect-QUEUE"],
304
+ query: { type: [I.enum.MEMBER_IMPORTED] }
305
+ });
306
+ }
307
+ }), c.close();
308
+ }
309
+ });
310
+ }
311
+ function y(i) {
312
+ switch (i) {
313
+ case "import":
314
+ o();
315
+ break;
316
+ case "queue":
317
+ u.push({
318
+ name: T["$connect-QUEUE"],
319
+ query: { type: [I.enum.MEMBER_IMPORTED] }
320
+ });
321
+ break;
322
+ }
323
+ }
324
+ return P(
325
+ () => u.currentRoute.value.name,
326
+ async (i) => {
327
+ t.value = p.find((b) => b.value === i) ?? p[0];
328
+ const a = u.currentRoute.value.params.id;
329
+ a && (l.value = await U.readById(a)), await u.push({ name: i });
330
+ }
331
+ ), (i, a) => {
332
+ const b = h("FmPageHead"), w = h("FmTabs"), $ = h("RouterView");
333
+ return F(), B(S, null, [
334
+ E(b, {
335
+ actions: r(e).actions,
336
+ title: r(e).title,
337
+ description: r(e).description,
338
+ "back-button": r(e).backButton,
339
+ "onClick:back": r(e).onBackButton,
340
+ "onClick:action": y
341
+ }, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
342
+ x("div", le, [
343
+ r(u).currentRoute.value.name != r(T)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (F(), j(w, {
344
+ key: 0,
345
+ "model-value": r(t).value,
346
+ items: p,
347
+ "onUpdate:modelValue": n
348
+ }, null, 8, ["model-value"])) : J("", !0),
349
+ E($)
350
+ ])
351
+ ], 64);
352
+ };
353
+ }
354
+ });
355
+ export {
356
+ ke as default
357
+ };