@feedmepos/mf-connect 0.1.98-beta.7 → 0.1.98-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 (152) hide show
  1. package/dist/{App-BonFFUVJ.js → App-B-Onur9k.js} +812 -666
  2. package/dist/{AuditLogs-CaQisyMC.js → AuditLogs-BnEeKG1C.js} +14 -13
  3. package/dist/{Bin-Mu8gAiHw.js → Bin-BH9_nATR.js} +8 -8
  4. package/dist/Broadcast-Gt2ZLLpZ.js +302 -0
  5. package/dist/CampaignAnalytic-BT6zTgNk.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BoLZVrCU.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-nNLLEzii.js} +6 -5
  7. package/dist/Card-dD52oor7.js +1084 -0
  8. package/dist/{Collections-CByXxRW_.js → Collections-7bwYNl3M.js} +14 -13
  9. package/dist/Credit-qZdlqXqR.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-DeNn_k19.js +53 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C09W9Qja.js +4213 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BXsAX1Xa.js → EffectSheet.vue_vue_type_style_index_0_lang-Bz1HRBMa.js} +35 -35
  13. package/dist/{Experience-B7J-aqPK.js → Experience-CAaWgWXP.js} +112 -86
  14. package/dist/{FileSaver.min-D_F_MSZt.js → FileSaver.min-BpfY6VnX.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-fhrbFb_5.js +356 -0
  17. package/dist/GiftCardSetup-CTwmNKim.js +736 -0
  18. package/dist/{Grab-C45MmlD9.js → Grab-BnPfb92x.js} +33 -32
  19. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CPPcB3PC.js → ImageInput.vue_vue_type_script_setup_true_lang-BySju1oT.js} +1 -1
  20. package/dist/{Index-vQ6uP49O.js → Index-DRwvmm_j.js} +10 -10
  21. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Cj3hN3tg.js → LocationPicker.vue_vue_type_script_setup_true_lang-Ya4r9NNE.js} +1 -1
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DU9eIein.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CDwtqqLQ.js} +1 -1
  23. package/dist/LoyaltyDashboard-8jn6SIWo.js +2865 -0
  24. package/dist/MainLayout-Bf42AcB1.js +143 -0
  25. package/dist/{Marketing-B6xMdQvW.js → Marketing-DruTMjiR.js} +7 -6
  26. package/dist/{MarketingMaterialEdit-0cZN4bek.js → MarketingMaterialEdit-moEHd_gP.js} +15 -14
  27. package/dist/Member-C9VTQqIm.js +654 -0
  28. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DEsVSWmv.js +1279 -0
  29. package/dist/MemberImportHistory-DZVwya9v.js +187 -0
  30. package/dist/MemberList-KusIfy1u.js +334 -0
  31. package/dist/{MemberTransactions-Bg-ziZy8.js → MemberTransactions-msyjdzlI.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jbDJkbZh.js → MessageInput.vue_vue_type_script_setup_true_lang-DbV-m3cC.js} +5928 -5644
  33. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-1DYGpJnD.js +40 -0
  34. package/dist/Mission-CUUxpBUF.js +360 -0
  35. package/dist/{Overview-nsyJGSCq.js → Overview-C9jyKXHX.js} +21 -20
  36. package/dist/Overview-CYKoF8Hp.js +1316 -0
  37. package/dist/Point-CPpQ07yp.js +288 -0
  38. package/dist/Promotion-CJ95m9Qb.js +423 -0
  39. package/dist/{Queue-Dkipt6fw.js → Queue-CX39ILh_.js} +14 -13
  40. package/dist/{Record-BFqx6vM-.js → Record-6I0qyXB5.js} +9 -9
  41. package/dist/Review-DoWu2XNT.js +45 -0
  42. package/dist/ReviewFacebookCallback-Co-5TnI7.js +238 -0
  43. package/dist/ReviewGoogleCallback-Ca7ZuMcF.js +213 -0
  44. package/dist/{Reward-DjFEE7I_.js → Reward-Cx_N6qBJ.js} +35 -35
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BzZ6VH80.js → RewardGroup.vue_vue_type_script_setup_true_lang-Cn5Yp37p.js} +14 -13
  46. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-A9jQX4jt.js → RuleGroup.vue_vue_type_script_setup_true_lang-M0c67Dyl.js} +196 -186
  47. package/dist/{Segment-BAjdUfZ6.js → Segment-Bx0EW966.js} +275 -276
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CAQPFzRH.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-ahvrEUGa.js} +37 -36
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Gkz8jhES.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C7zSfZdl.js} +4 -4
  50. package/dist/{Setting-BK7y0XC-.js → Setting-DzEK3dWj.js} +14 -14
  51. package/dist/{SettingAdvertisements-DfQ645xr.js → SettingAdvertisements-BNALbI88.js} +12 -12
  52. package/dist/Settings-Cw85-xzq.js +230 -0
  53. package/dist/Store-BSqW1gwf.js +2612 -0
  54. package/dist/{StoreRewards-usHKOGmB.js → StoreRewards-CJXnS8Qf.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C6tUwHEj.js +1329 -0
  56. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrcWUZuR.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-iylphGuV.js} +2 -2
  57. package/dist/{Tier-BF3V430O.js → Tier-DfitNxp2.js} +2580 -754
  58. package/dist/{Title-DwPuqKfJ.js → Title-QCbtOvKB.js} +39 -37
  59. package/dist/Transaction-dOCzlidD.js +45 -0
  60. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DToNRTJS.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Be5X1C-Y.js} +26 -26
  61. package/dist/{Voucher-DnhVIl_o.js → Voucher-BfoCDwjg.js} +156 -133
  62. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Btb3UZCn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-0EIYoZ0F.js} +118 -124
  63. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-EFUW9DMY.js → ZodTextField.vue_vue_type_script_setup_true_lang-UdStgKbX.js} +2 -2
  64. package/dist/{app-i3r-6ZVm.js → app-BxTElIm-.js} +45168 -37577
  65. package/dist/app.js +1 -1
  66. package/dist/base.export-BmUK8hMh.js +75 -0
  67. package/dist/{business-i0Gxk7gG.js → business-DjAiT8tR.js} +5 -5
  68. package/dist/campaign-DlR3KF9m.js +368 -0
  69. package/dist/campaign-tAmQNoq7.js +100 -0
  70. package/dist/{campaign.enum-CbUTfxek.js → campaign.enum-BjwEQd11.js} +1 -1
  71. package/dist/{campaign.fn-BjHSIDd1.js → campaign.fn-C6kWWIQx.js} +53 -53
  72. package/dist/{collectible.enum-DN7E_kHg.js → collectible.enum-BrtXpT9S.js} +1 -1
  73. package/dist/collection.fn-CDhfM3Eq.js +26 -0
  74. package/dist/currency-10nX5QnT.js +7 -0
  75. package/dist/{duplicateCampaign-DmdJQEIA.js → duplicateCampaign-6oMZOvfM.js} +11 -11
  76. package/dist/{effect-DM4AzeQl.js → effect-T4YzuTc5.js} +1 -1
  77. package/dist/{email-addresses-BlqVJhwZ.js → email-addresses-BjODnJMM.js} +209 -201
  78. package/dist/google-C3S8u0mT.js +4 -0
  79. package/dist/{helper-CkdISSVP.js → helper-BCl5r5yZ.js} +1 -1
  80. package/dist/{index-DgzNGQgE.js → index-B9ZMIUMa.js} +2083 -2559
  81. package/dist/{index-CB7ytKOE.js → index-BBsK7TUw.js} +1588 -1522
  82. package/dist/index-BQk6zTgf.js +32437 -0
  83. package/dist/index-Bd4clHfr.js +901 -0
  84. package/dist/index-BeVWchv7.js +14550 -0
  85. package/dist/index-Bht1Z11w.js +72 -0
  86. package/dist/{index-FD50UHqf.js → index-BiolIgqR.js} +105 -123
  87. package/dist/{index-Cl8t41Sk.js → index-BxU--5J5.js} +5 -5
  88. package/dist/index-Bz6oSli7.js +151 -0
  89. package/dist/index-C5IfNJUl.js +53 -0
  90. package/dist/{index-BWsj6lCJ.js → index-CRvUvCMA.js} +14 -14
  91. package/dist/{index-B6xi1soU.js → index-CnaQt4Pn.js} +1 -1
  92. package/dist/{index-4EtrCy_K.js → index-Ctja--IE.js} +4 -4
  93. package/dist/{index-D6qeYVNz.js → index-D8rGhchh.js} +1 -1
  94. package/dist/{index-BrboOmPq.js → index-DJdTDF9C.js} +347 -216
  95. package/dist/index-DXiJa8Cw.js +137 -0
  96. package/dist/{index-CxdLExX0.js → index-DeQKLilv.js} +24 -9
  97. package/dist/{index-vI-ndGu_.js → index-DhtKt4OL.js} +5 -5
  98. package/dist/{index.esm2017-BX5CyKoc.js → index.esm2017-CEOegJjn.js} +132 -132
  99. package/dist/{loading-DTKDhqew.js → loading-Dx4SCvZY.js} +1 -1
  100. package/dist/{lodash-CCPBsqhe.js → lodash-Dq8OKCKK.js} +1 -1
  101. package/dist/member-import-DX-jn2uk.js +187 -0
  102. package/dist/membership-CltAa-gH.js +274 -0
  103. package/dist/{money-wMK3QkZ5.js → money-DsaAjJTI.js} +1 -1
  104. package/dist/{number-DjKVlWn0.js → number-DmhHKYgY.js} +1 -1
  105. package/dist/objectid-BdNv-dZX.js +145 -0
  106. package/dist/{plugins-D25PaNJk.js → plugins-BFKVM3uC.js} +13 -12
  107. package/dist/remy-Qz_pNsUS.js +13 -0
  108. package/dist/{reward-E63jqJHm.js → reward--SjvIeyy.js} +1 -1
  109. package/dist/{rule-RVvPtAnk.js → rule-CAKdNobZ.js} +335 -275
  110. package/dist/style.css +1 -1
  111. package/dist/{template-zNxOQaqe.js → template-Cfxc5eM8.js} +6 -6
  112. package/dist/timezone-D2b-V5XD.js +20 -0
  113. package/dist/transaction.fn-B5mLY7bz.js +71 -0
  114. package/dist/{trigger-BXV02FhP.js → trigger-DvYcjRBZ.js} +17 -17
  115. package/dist/useMarketingMaterialActions-DtqnjMSt.js +96 -0
  116. package/dist/{usePagination-BPcPhEnp.js → usePagination-DKX24g31.js} +1 -1
  117. package/dist/{user-Bd8S7R5u.js → user-fWb1NxGO.js} +1 -1
  118. package/dist/vue-i18n-wJReAVJw.js +2365 -0
  119. package/dist/{xlsx-_tQC9Ezf.js → xlsx-Mthhu4JR.js} +440 -440
  120. package/dist/{zod-C1j2GLZP.js → zod-CVpVUgBZ.js} +1 -1
  121. package/package.json +10 -6
  122. package/dist/Broadcast-Cy-i-WOT.js +0 -266
  123. package/dist/Card-f2XOtWxp.js +0 -910
  124. package/dist/Credit-CcZF4aQS.js +0 -260
  125. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  126. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7KZ8GMx.js +0 -3377
  127. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  128. package/dist/Game-CUW7NeVG.js +0 -330
  129. package/dist/LoyaltyDashboard-GqyUwvXz.js +0 -1082
  130. package/dist/MainLayout-R5NxIBR-.js +0 -41
  131. package/dist/Member-CC5F6Bmz.js +0 -280
  132. package/dist/MemberList-Cq4zxopX.js +0 -1601
  133. package/dist/Mission-DcCZ6tAG.js +0 -334
  134. package/dist/Point-D1vLd5hL.js +0 -262
  135. package/dist/Promotion-Cv7MW5RJ.js +0 -397
  136. package/dist/Review-CKhakUMe.js +0 -1123
  137. package/dist/ReviewFacebookCallback-xgRpXQAg.js +0 -243
  138. package/dist/ReviewGoogleCallback-Cqi_43qi.js +0 -208
  139. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DDqK4kV1.js +0 -181
  140. package/dist/Store-uTRQ6KbC.js +0 -1996
  141. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Bb2sTsuA.js +0 -1130
  142. package/dist/Transaction-CnTEfMGU.js +0 -39
  143. package/dist/campaign-CbMlARNI.js +0 -219
  144. package/dist/campaign-f7FT91GR.js +0 -277
  145. package/dist/export-DQR-0lmK.js +0 -97
  146. package/dist/index-COrXX9MR.js +0 -52
  147. package/dist/index-CWiaP-aV.js +0 -28900
  148. package/dist/index-jVfDVEtz.js +0 -85
  149. package/dist/membership-rifuatxU.js +0 -255
  150. package/dist/objectid-DjpWkCxH.js +0 -145
  151. package/dist/useMarketingMaterialActions-5TFNqZVo.js +0 -107
  152. package/dist/vue-i18n-CgMK-TaC.js +0 -2365
@@ -1,41 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as a, createVNode as c, unref as e, ref as m, resolveComponent as u, normalizeClass as _, createBlock as p, createCommentVNode as h, withDirectives as f, createElementVNode as d, vShow as w } from "vue";
2
- import { _ as v, S as x } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-DU9eIein.js";
3
- import { u as r } from "./app-wDQR6dpb.js";
4
- import { useRoute as g } from "vue-router";
5
- const S = { class: "bg-white w-full flex min-h-[calc(100svh-56px)] items-center" }, V = /* @__PURE__ */ n({
6
- __name: "Splash",
7
- setup(l) {
8
- return (s, t) => (o(), a("div", S, [
9
- c(v, {
10
- class: "flex-1",
11
- json: e(x),
12
- width: 100,
13
- height: 100
14
- }, null, 8, ["json"])
15
- ]));
16
- }
17
- }), N = /* @__PURE__ */ n({
18
- __name: "MainLayout",
19
- setup(l) {
20
- const s = g(), t = m(s.query.showHeader !== "false");
21
- return (b, k) => {
22
- const i = u("RouterView");
23
- return o(), a("div", {
24
- class: _([
25
- "bg-fm-color-neutral-white w-full xs:overflow-y-scroll",
26
- e(t) ? "min-h-[calc(100svh-56px)] xs:h-[calc(100svh-56px)]" : "min-h-screen"
27
- ])
28
- }, [
29
- e(r)().isGlobalLoading == !0 ? (o(), p(V, { key: 0 })) : h("", !0),
30
- f(d("div", null, [
31
- c(i)
32
- ], 512), [
33
- [w, e(r)().isGlobalLoading == !1]
34
- ])
35
- ], 2);
36
- };
37
- }
38
- });
39
- export {
40
- N as default
41
- };
@@ -1,280 +0,0 @@
1
- import { defineComponent as L, ref as F, watch as P, resolveComponent as m, openBlock as x, createElementBlock as C, Fragment as R, createElementVNode as b, createVNode as u, unref as n, withCtx as M, renderList as $, createBlock as D, toDisplayString as O, normalizeClass as U, computed as Y, createCommentVNode as q } from "vue";
2
- import "./index-D6qeYVNz.js";
3
- import { useDialogChild as H, FmButtonVariant as S, useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
4
- import { u as N } from "./vue-i18n-CgMK-TaC.js";
5
- import "./index-BrboOmPq.js";
6
- import { c as A } from "./index-DgzNGQgE.js";
7
- import "./index-CB7ytKOE.js";
8
- import "./index-Cl8t41Sk.js";
9
- import "./index-vI-ndGu_.js";
10
- import { u as g, w as j } from "./xlsx-_tQC9Ezf.js";
11
- import { F as z } from "./FileSaver.min-D_F_MSZt.js";
12
- import { useCoreStore as G } from "@feedmepos/mf-common";
13
- import { useRouter as W } from "vue-router";
14
- import { m as I } from "./index-jVfDVEtz.js";
15
- import { R as E } from "./app-i3r-6ZVm.js";
16
- const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
17
- key: 1,
18
- class: /* @__PURE__ */ U([
19
- "flex items-center",
20
- "border border-fm-color-neutral-gray-300",
21
- "p-16 space-x-16 rounded-md"
22
- ])
23
- }, ee = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, te = /* @__PURE__ */ L({
24
- __name: "ImportMemberDialog",
25
- setup(V) {
26
- const { t: a } = N(), { emitData: v } = H(), c = F(null), _ = F(null), w = F({
27
- resetCollectionExpiryBalance: !0
28
- }), s = [
29
- "Id",
30
- "Name",
31
- "Phone",
32
- "Email",
33
- "Gender",
34
- "CardNo",
35
- "Birthday",
36
- "Credit",
37
- "CreditExpiryDate",
38
- "Exp",
39
- "Point",
40
- "Tier",
41
- "Titles",
42
- "TotalTransaction",
43
- "AvgSpent",
44
- "TotalSpent",
45
- "LastVisit",
46
- "Feedback",
47
- "LastSeasonTierEarned",
48
- "LastSeasonPointEarned",
49
- "JoinedAt",
50
- "JoinedAtLocation",
51
- "VisitFrequency"
52
- ], p = [
53
- {
54
- label: "CSV",
55
- icon: "csv",
56
- value: "csv"
57
- /* csv */
58
- },
59
- {
60
- label: "Excel",
61
- icon: "description",
62
- value: "xlsx"
63
- /* xlsx */
64
- }
65
- ];
66
- async function d(i) {
67
- var t, f;
68
- c.value = ((f = (t = i.target) == null ? void 0 : t.files) == null ? void 0 : f[0]) ?? null;
69
- }
70
- async function y(i) {
71
- switch (i) {
72
- case "csv":
73
- T();
74
- break;
75
- case "xlsx":
76
- h();
77
- break;
78
- }
79
- }
80
- function T() {
81
- const i = new Blob([s.join(",")], {
82
- type: "text/csv;charset=utf-8;"
83
- });
84
- z.saveAs(i, "ImportMemberTemplate.csv");
85
- }
86
- function h() {
87
- const i = g.aoa_to_sheet([s]), t = g.book_new();
88
- g.book_append_sheet(t, i, "Sheet1"), j(t, "ImportMemberTemplate.xlsx");
89
- }
90
- return P(c, () => {
91
- v({ file: c.value, config: w.value });
92
- }), (i, t) => {
93
- const f = m("FmSwitch"), k = m("FmButton"), o = m("FmMenuItem"), l = m("FmMenu"), r = m("FmDropField");
94
- return x(), C(R, null, [
95
- b("div", K, [
96
- t[3] || (t[3] = b("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
97
- u(f, {
98
- "model-value": n(w).resetCollectionExpiryBalance ?? !0,
99
- "onUpdate:modelValue": t[0] || (t[0] = (e) => n(w).resetCollectionExpiryBalance = e),
100
- label: "Replace Existing Free Credit",
101
- sublabel: "When enabled, this will clear existing free credit and replace with new values from the import.",
102
- "label-placement": "right"
103
- }, null, 8, ["model-value"])
104
- ]),
105
- b("div", X, [
106
- u(l, null, {
107
- "menu-button": M(() => [
108
- u(k, {
109
- variant: "tertiary",
110
- icon: "download",
111
- label: "Download Template"
112
- })
113
- ]),
114
- default: M(() => [
115
- (x(), C(R, null, $(p, (e) => u(o, {
116
- key: e.value,
117
- icon: e.icon,
118
- label: e.label,
119
- onClick: (B) => y(e.value),
120
- selectable: ""
121
- }, null, 8, ["icon", "label", "onClick"])), 64))
122
- ]),
123
- _: 1
124
- })
125
- ]),
126
- n(c) ? (x(), C("div", Z, [
127
- u(k, {
128
- variant: n(S).Tertiary,
129
- "prepend-icon": "attach_file"
130
- }, null, 8, ["variant"]),
131
- b("p", ee, O(n(c).name), 1),
132
- b("label", {
133
- ref_key: "fileLabelRef",
134
- ref: _,
135
- htmlFor: "file"
136
- }, [
137
- u(k, {
138
- variant: n(S).Plain,
139
- label: n(a)("Replace File"),
140
- onClick: t[2] || (t[2] = () => {
141
- var e;
142
- return (e = n(_)) == null ? void 0 : e.click();
143
- })
144
- }, null, 8, ["variant", "label"]),
145
- b("input", {
146
- id: "file",
147
- accept: ".csv, .xlsx",
148
- class: "hidden",
149
- type: "file",
150
- multiple: "",
151
- onChange: d
152
- }, null, 32)
153
- ], 512)
154
- ])) : (x(), D(r, {
155
- key: 0,
156
- onFileUpload: t[1] || (t[1] = (e) => c.value = e),
157
- accept: ".csv, .xlsx",
158
- "max-file-size": 5e6
159
- }))
160
- ], 64);
161
- };
162
- }
163
- }), ne = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ye = /* @__PURE__ */ L({
164
- __name: "Member",
165
- setup(V) {
166
- var t, f, k;
167
- const a = W(), { t: v } = N(), c = J(), _ = Q(), w = G();
168
- v("connect.loyalty.member.import"), v("connect.navigation.queue");
169
- const s = [
170
- {
171
- label: v("connect.loyalty.member.tabs.member_list"),
172
- value: E["$connect-LOYALTY_MEMBER_LIST"],
173
- actions: (k = (f = (t = w.sessionUser) == null ? void 0 : t.value) == null ? void 0 : f.role) != null && k.isAdmin ? [] : []
174
- }
175
- ], p = Y(() => {
176
- var l, r, e;
177
- return a.currentRoute.value.name != E["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
178
- title: d.value.label,
179
- actions: d.value.actions,
180
- description: void 0
181
- } : (d.value = s[1], {
182
- backButton: !0,
183
- title: v("connect.loyalty.member.title"),
184
- actions: [],
185
- description: `${(l = y.value) == null ? void 0 : l.name} (${(r = y.value) == null ? void 0 : r._id}) (${(e = y.value) == null ? void 0 : e.phoneNumber})`,
186
- onBackButton: async () => {
187
- await a.push({ name: E["$connect-LOYALTY_MEMBER_LIST"] });
188
- }
189
- });
190
- }), d = F(
191
- s.find((o) => o.value === a.currentRoute.value.name) ?? s[0]
192
- ), y = F();
193
- async function T(o) {
194
- await a.push({ name: o });
195
- }
196
- async function h() {
197
- c.open({
198
- title: "Upload File",
199
- closeButton: !0,
200
- dismissAway: !1,
201
- contentComponent: te,
202
- primaryActions: { text: "Import", close: !1 }
203
- }).onPrimary(async (o) => {
204
- if (!o) {
205
- _.open({
206
- type: "error",
207
- title: "Please upload a file"
208
- });
209
- return;
210
- }
211
- const { file: l, config: r } = o;
212
- if (!l)
213
- _.open({
214
- type: "error",
215
- title: "Please upload a file"
216
- });
217
- else {
218
- const e = new FormData();
219
- e.append("file", l), e.append("config", JSON.stringify(r)), await I.import(e), _.open({
220
- type: "info",
221
- title: "Import begins soon. Check Queue for updates.",
222
- action: "View",
223
- onAction: async () => {
224
- await a.push({
225
- name: E["$connect-QUEUE"],
226
- query: { type: [A.enum.MEMBER_IMPORTED] }
227
- });
228
- }
229
- }), c.close();
230
- }
231
- });
232
- }
233
- function i(o) {
234
- switch (o) {
235
- case "import":
236
- h();
237
- break;
238
- case "queue":
239
- a.push({
240
- name: E["$connect-QUEUE"],
241
- query: { type: [A.enum.MEMBER_IMPORTED] }
242
- });
243
- break;
244
- }
245
- }
246
- return P(
247
- () => a.currentRoute.value.name,
248
- async (o) => {
249
- d.value = s.find((r) => r.value === o) ?? s[0];
250
- const l = a.currentRoute.value.params.id;
251
- l && (y.value = await I.readById(l));
252
- },
253
- { immediate: !0 }
254
- ), (o, l) => {
255
- const r = m("FmPageHead"), e = m("FmTabs"), B = m("RouterView");
256
- return x(), C(R, null, [
257
- u(r, {
258
- actions: n(p).actions,
259
- title: n(p).title,
260
- description: n(p).description,
261
- "back-button": n(p).backButton,
262
- "onClick:back": n(p).onBackButton,
263
- "onClick:action": i
264
- }, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
265
- b("div", ne, [
266
- n(a).currentRoute.value.name != n(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), D(e, {
267
- key: 0,
268
- "model-value": n(d).value,
269
- items: s,
270
- "onUpdate:modelValue": T
271
- }, null, 8, ["model-value"])) : q("", !0),
272
- u(B)
273
- ])
274
- ], 64);
275
- };
276
- }
277
- });
278
- export {
279
- ye as default
280
- };