@feedmepos/mf-connect 0.1.38-beta.2 → 0.1.39-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.
- package/dist/Analytic-D8WCDkga.js +427 -0
- package/dist/{App-D11A2JY1.js → App-CTnXtg1W.js} +352 -364
- package/dist/{Bin-9wV4Ah3M.js → Bin-BY6-bvFj.js} +8 -8
- package/dist/{Broadcast-I3BtSk8V.js → Broadcast-5VTEIQAr.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BuAQxEM4.js} +18 -18
- package/dist/{Card-CqALG5RM.js → Card-8ivdV-Qz.js} +159 -159
- package/dist/{Collections-rg3SzoUb.js → Collections-CFszRHmE.js} +91 -103
- package/dist/{Credit-BNn1sYZv.js → Credit-DFslY__4.js} +74 -74
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BvCLYtJ3.js} +488 -489
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js → EffectSheet.vue_vue_type_style_index_0_lang-Ci_bp7GH.js} +94 -94
- package/dist/{Experience-D_Qm8SUj.js → Experience-BxfiZNlY.js} +41 -41
- package/dist/{Game-CKXgXm6Q.js → Game-0FZJcLmj.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
- package/dist/{Index-D4DGfUHd.js → Index-ByeKKbuM.js} +10 -10
- package/dist/Marketing-C7F4abzg.js +319 -0
- package/dist/{Member-B55vWHDd.js → Member-DP0fLSIV.js} +64 -64
- package/dist/MemberList-DFW2bMbr.js +1606 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/{MemberTransactions-CP5EI-W0.js → MemberTransactions-CW62fvgx.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-iJXNbgsB.js +455 -0
- package/dist/{Mission-CFvhROuB.js → Mission-DEgQHJw6.js} +21 -21
- package/dist/{Overview-4273yNwL.js → Overview-5jDtZKi8.js} +335 -335
- package/dist/{Point-B_-_C919.js → Point-D2lB1-xB.js} +41 -41
- package/dist/{Promotion-D2S3COxk.js → Promotion-Diz1gIa0.js} +42 -42
- package/dist/{Queue-BmS1Oi-C.js → Queue-DIAuq7HG.js} +51 -51
- package/dist/{Record-DRBl0M8g.js → Record-T608yda1.js} +9 -9
- package/dist/{Reward-8056NmfK.js → Reward-fZzHrHCW.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js → RewardGroup.vue_vue_type_script_setup_true_lang-YOKVfimM.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js → RuleGroup.vue_vue_type_script_setup_true_lang-C3_lmBe5.js} +431 -431
- package/dist/Segment-DDQIzsrk.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js → SelectItems.vue_vue_type_script_setup_true_lang-B5oUf91Q.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C2U6Kzvx.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRmqgxES.js} +3 -3
- package/dist/{Setting-BrJfYoru.js → Setting-CQNyXmp4.js} +432 -432
- package/dist/{Store-Bpl_4yZW.js → Store-CIA1Rtsg.js} +210 -210
- package/dist/StoreRewards-D5zlE6cE.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BkTYngJ_.js +995 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D8l3fQyz.js} +1 -1
- package/dist/{Tier-_LnXg3n6.js → Tier-jFXVOje_.js} +106 -106
- package/dist/{Title-B7AGStvx.js → Title-DVpZ1YMK.js} +131 -133
- package/dist/{Transaction-Chxv6V7u.js → Transaction-BF_wmok6.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cex1Z43W.js} +6 -6
- package/dist/{Voucher-C5z2kOq9.js → Voucher-CaBMU5w0.js} +37 -37
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BXt2fLOD.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js → ZodTextField.vue_vue_type_script_setup_true_lang-CtHjWpUe.js} +1 -1
- package/dist/{app-BVojNX0w.js → app-CPhyKlyf.js} +1 -1
- package/dist/{app-7cvPyHJ7.js → app-DuIzRGvb.js} +124 -161
- package/dist/app.js +3 -4
- package/dist/{business-CmxV69wT.js → business-TTvv3aTz.js} +1 -1
- package/dist/{campaign-Dq5C_no-.js → campaign-BiMCoAzx.js} +3 -5
- package/dist/{campaign-CT_cNJEL.js → campaign-CjEVStN1.js} +9 -9
- package/dist/{campaign.enum-dp7yHKzF.js → campaign.enum-DpYmj9jp.js} +1 -1
- package/dist/campaign.fn-DJ6J98jS.js +758 -0
- package/dist/{collectible.enum-DxbB4DxT.js → collectible.enum-Cgmm_s-C.js} +1 -1
- package/dist/{collection.fn-CNZRdUgy.js → collection.fn-BsYCNgfJ.js} +2 -2
- package/dist/{dto-CT9zZbv9.js → dto-DgmHIlZ2.js} +4 -4
- package/dist/{effect-FIlOEC4H.js → effect-DnAVIDFy.js} +1 -1
- package/dist/{email-addresses-Ba7xImfX.js → email-addresses-CMRgb6Uv.js} +1 -1
- package/dist/{export-uzjZFNF9.js → export-DtarK6IJ.js} +3 -3
- package/dist/{helper-D4sAZde0.js → helper-BKZghMbF.js} +1 -1
- package/dist/{index-l2F5MnLF.js → index-2OAcPmuQ.js} +1 -1
- package/dist/{index-BI3m1Ehv.js → index-B0YZKHyu.js} +3 -3
- package/dist/{index-CH3z92VV.js → index-B5oXFFlO.js} +1 -1
- package/dist/{index-CvBcve-r.js → index-BQ3KHJXX.js} +1 -1
- package/dist/{index-B9pl4zRZ.js → index-B_893fH7.js} +79 -179
- package/dist/{index-CNJLP3D5.js → index-BoR-BOFw.js} +1 -1
- package/dist/{index-DNxa8Rqx.js → index-C7rl1eHp.js} +449 -516
- package/dist/{index-BXz54M1s.js → index-CBcbwf0k.js} +1 -1
- package/dist/{index-CS3Jmojj.js → index-CIztuDE4.js} +2462 -2453
- package/dist/{index-D5rvMvzx.js → index-CK67enPK.js} +1 -1
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/index-D2uZzjpn.js +44 -0
- package/dist/{index-CUfS9Kp1.js → index-DWdAUovq.js} +9 -9
- package/dist/{index-CONvJfKv.js → index-DkWcEDHA.js} +1 -1
- package/dist/{index-BjU8LVUC.js → index-VHu8hYtE.js} +385 -376
- package/dist/{index.esm2017-ATcsD5N4.js → index.esm2017-DkwLmmR_.js} +127 -127
- package/dist/{loading-BWGQSrCB.js → loading-BFkEqWR6.js} +1 -1
- package/dist/{membership-Cc4OZ8-U.js → membership-D0eN3i_T.js} +3 -3
- package/dist/{money-D7p8nfun.js → money-DS9ZQwSP.js} +1 -1
- package/dist/{number-CMJjC4qz.js → number-C8Gt93v9.js} +1 -1
- package/dist/objectid-Cr99eTPd.js +145 -0
- package/dist/{plugins-eQis66QR.js → plugins-DK_ue6Xa.js} +2 -2
- package/dist/{reward-DrnzbG20.js → reward-CW2dSLDW.js} +1 -1
- package/dist/{rule-CtRxkYXB.js → rule-CebKyXSm.js} +3 -3
- package/dist/{rule-builder-Di9RIYHF.js → rule-builder-kQq14RfN.js} +17 -17
- package/dist/style.css +1 -1
- package/dist/{template-C3UfY0v5.js → template-CxUxlb6-.js} +64 -64
- package/dist/{trigger-C9U7Zgad.js → trigger-RqJo06KA.js} +4 -4
- package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
- package/dist/{user-D7n9yYmO.js → user-DhV5Iy52.js} +1 -1
- package/dist/{vue-i18n-Bz45zC04.js → vue-i18n-BtvUK9hI.js} +419 -419
- package/dist/{xlsx-D4S4qbcZ.js → xlsx-WnLDq4qn.js} +381 -381
- package/package.json +3 -9
- package/dist/Analytic-BjSfI2Ff.js +0 -761
- package/dist/AuditLogs-DWCFYoRg.js +0 -1887
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +0 -58
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
- package/dist/Marketing-Dn9A1vgH.js +0 -20073
- package/dist/MemberList-BWTG9Ohy.js +0 -1606
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js +0 -60279
- package/dist/Segment-Bzq-pyhc.js +0 -882
- package/dist/StoreRewards-Cu7n7Pjz.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js +0 -1029
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js +0 -419
- package/dist/campaign.fn-BYZgKDN7.js +0 -758
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-CwsMG2cV.js +0 -56
- package/dist/objectid-D5T27iny.js +0 -145
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as L, ref as
|
|
2
|
-
import "./index-
|
|
1
|
+
import { defineComponent as L, ref as w, watch as P, resolveComponent as m, openBlock as x, createElementBlock as F, Fragment as R, createElementVNode as b, createVNode as u, unref as t, 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-BoR-BOFw.js";
|
|
3
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-
|
|
5
|
-
import "./index-
|
|
6
|
-
import
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import { u as g, w as j } from "./xlsx-
|
|
4
|
+
import { u as N } from "./vue-i18n-BtvUK9hI.js";
|
|
5
|
+
import { c as A } from "./index-C7rl1eHp.js";
|
|
6
|
+
import "./index-DWdAUovq.js";
|
|
7
|
+
import "./index-B_893fH7.js";
|
|
8
|
+
import "./index-DkWcEDHA.js";
|
|
9
|
+
import "./index-B0YZKHyu.js";
|
|
10
|
+
import { u as g, w as j } from "./xlsx-WnLDq4qn.js";
|
|
11
11
|
import { F as z } from "./FileSaver.min-NlMItPOc.js";
|
|
12
12
|
import { useCoreStore as G } from "@feedmepos/mf-common";
|
|
13
13
|
import { useRouter as W } from "vue-router";
|
|
14
|
-
import { m as I } from "./index-
|
|
15
|
-
import { R as E } from "./app-
|
|
16
|
-
const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" },
|
|
14
|
+
import { m as I } from "./index-BQ3KHJXX.js";
|
|
15
|
+
import { R as E } from "./app-DuIzRGvb.js";
|
|
16
|
+
const K = { class: "space-y-8 mb-10" }, X = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1), Z = { class: "flex justify-end" }, ee = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: /* @__PURE__ */ U([
|
|
19
19
|
"flex items-center",
|
|
20
20
|
"border border-fm-color-neutral-gray-300",
|
|
21
21
|
"p-16 space-x-16 rounded-md"
|
|
22
22
|
])
|
|
23
|
-
},
|
|
23
|
+
}, te = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, ne = /* @__PURE__ */ L({
|
|
24
24
|
__name: "ImportMemberDialog",
|
|
25
25
|
setup(V) {
|
|
26
|
-
const { t: a } = N(), { emitData: _ } = H(),
|
|
26
|
+
const { t: a } = N(), { emitData: _ } = H(), r = w(null), v = w(null), h = w({
|
|
27
27
|
resetCollectionExpiryBalance: !0
|
|
28
28
|
}), s = [
|
|
29
29
|
"Id",
|
|
@@ -38,7 +38,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
38
38
|
"Exp",
|
|
39
39
|
"Point",
|
|
40
40
|
"Tier",
|
|
41
|
-
|
|
41
|
+
// 'Titles',
|
|
42
42
|
"TotalTransaction",
|
|
43
43
|
"AvgSpent",
|
|
44
44
|
"TotalSpent",
|
|
@@ -64,8 +64,8 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
64
64
|
}
|
|
65
65
|
];
|
|
66
66
|
async function d(i) {
|
|
67
|
-
var
|
|
68
|
-
|
|
67
|
+
var n, f;
|
|
68
|
+
r.value = ((f = (n = i.target) == null ? void 0 : n.files) == null ? void 0 : f[0]) ?? null;
|
|
69
69
|
}
|
|
70
70
|
async function y(i) {
|
|
71
71
|
switch (i) {
|
|
@@ -84,25 +84,25 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
84
84
|
z.saveAs(i, "ImportMemberTemplate.csv");
|
|
85
85
|
}
|
|
86
86
|
function T() {
|
|
87
|
-
const i = g.aoa_to_sheet([s]),
|
|
88
|
-
g.book_append_sheet(
|
|
87
|
+
const i = g.aoa_to_sheet([s]), n = g.book_new();
|
|
88
|
+
g.book_append_sheet(n, i, "Sheet1"), j(n, "ImportMemberTemplate.xlsx");
|
|
89
89
|
}
|
|
90
|
-
return P(
|
|
91
|
-
_({ file:
|
|
92
|
-
}), (i,
|
|
93
|
-
const f = m("FmSwitch"), k = m("FmButton"), o = m("FmMenuItem"), l = m("FmMenu"),
|
|
94
|
-
return x(),
|
|
90
|
+
return P(r, () => {
|
|
91
|
+
_({ file: r.value, config: h.value });
|
|
92
|
+
}), (i, n) => {
|
|
93
|
+
const f = m("FmSwitch"), k = m("FmButton"), o = m("FmMenuItem"), l = m("FmMenu"), c = m("FmDropField");
|
|
94
|
+
return x(), F(R, null, [
|
|
95
95
|
b("div", K, [
|
|
96
|
-
|
|
96
|
+
X,
|
|
97
97
|
u(f, {
|
|
98
|
-
"model-value":
|
|
99
|
-
"onUpdate:modelValue":
|
|
98
|
+
"model-value": t(h).resetCollectionExpiryBalance ?? !0,
|
|
99
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => t(h).resetCollectionExpiryBalance = e),
|
|
100
100
|
label: "Replace Existing Free Credit",
|
|
101
101
|
sublabel: "When enabled, this will clear existing free credit and replace with new values from the import.",
|
|
102
102
|
"label-placement": "right"
|
|
103
103
|
}, null, 8, ["model-value"])
|
|
104
104
|
]),
|
|
105
|
-
b("div",
|
|
105
|
+
b("div", Z, [
|
|
106
106
|
u(l, null, {
|
|
107
107
|
"menu-button": M(() => [
|
|
108
108
|
u(k, {
|
|
@@ -112,7 +112,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
112
112
|
})
|
|
113
113
|
]),
|
|
114
114
|
default: M(() => [
|
|
115
|
-
(x(),
|
|
115
|
+
(x(), F(R, null, $(p, (e) => u(o, {
|
|
116
116
|
key: e.value,
|
|
117
117
|
icon: e.icon,
|
|
118
118
|
label: e.label,
|
|
@@ -123,23 +123,23 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
123
123
|
_: 1
|
|
124
124
|
})
|
|
125
125
|
]),
|
|
126
|
-
|
|
126
|
+
t(r) ? (x(), F("div", ee, [
|
|
127
127
|
u(k, {
|
|
128
|
-
variant:
|
|
128
|
+
variant: t(S).Tertiary,
|
|
129
129
|
"prepend-icon": "attach_file"
|
|
130
130
|
}, null, 8, ["variant"]),
|
|
131
|
-
b("p",
|
|
131
|
+
b("p", te, O(t(r).name), 1),
|
|
132
132
|
b("label", {
|
|
133
133
|
ref_key: "fileLabelRef",
|
|
134
134
|
ref: v,
|
|
135
135
|
htmlFor: "file"
|
|
136
136
|
}, [
|
|
137
137
|
u(k, {
|
|
138
|
-
variant:
|
|
139
|
-
label:
|
|
140
|
-
onClick:
|
|
138
|
+
variant: t(S).Plain,
|
|
139
|
+
label: t(a)("Replace File"),
|
|
140
|
+
onClick: n[2] || (n[2] = () => {
|
|
141
141
|
var e;
|
|
142
|
-
return (e =
|
|
142
|
+
return (e = t(v)) == null ? void 0 : e.click();
|
|
143
143
|
})
|
|
144
144
|
}, null, 8, ["variant", "label"]),
|
|
145
145
|
b("input", {
|
|
@@ -151,29 +151,29 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
151
151
|
onChange: d
|
|
152
152
|
}, null, 32)
|
|
153
153
|
], 512)
|
|
154
|
-
])) : (x(), D(
|
|
154
|
+
])) : (x(), D(c, {
|
|
155
155
|
key: 0,
|
|
156
|
-
onFileUpload:
|
|
156
|
+
onFileUpload: n[1] || (n[1] = (e) => r.value = e),
|
|
157
157
|
accept: ".csv, .xlsx",
|
|
158
158
|
"max-file-size": 5e6
|
|
159
159
|
}))
|
|
160
160
|
], 64);
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
}),
|
|
163
|
+
}), oe = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ke = /* @__PURE__ */ L({
|
|
164
164
|
__name: "Member",
|
|
165
165
|
setup(V) {
|
|
166
|
-
var
|
|
167
|
-
const a = W(), { t: _ } = N(),
|
|
166
|
+
var n, f, k;
|
|
167
|
+
const a = W(), { t: _ } = N(), r = J(), v = Q(), h = G();
|
|
168
168
|
_("connect.loyalty.member.import"), _("connect.navigation.queue");
|
|
169
169
|
const s = [
|
|
170
170
|
{
|
|
171
171
|
label: _("connect.loyalty.member.tabs.member_list"),
|
|
172
172
|
value: E["$connect-LOYALTY_MEMBER_LIST"],
|
|
173
|
-
actions: (k = (f = (
|
|
173
|
+
actions: (k = (f = (n = h.sessionUser) == null ? void 0 : n.value) == null ? void 0 : f.role) != null && k.isAdmin ? [] : []
|
|
174
174
|
}
|
|
175
175
|
], p = Y(() => {
|
|
176
|
-
var l,
|
|
176
|
+
var l, c, e;
|
|
177
177
|
return a.currentRoute.value.name != E["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
|
|
178
178
|
title: d.value.label,
|
|
179
179
|
actions: d.value.actions,
|
|
@@ -182,23 +182,23 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
182
182
|
backButton: !0,
|
|
183
183
|
title: _("connect.loyalty.member.title"),
|
|
184
184
|
actions: [],
|
|
185
|
-
description: `${(l = y.value) == null ? void 0 : l.name} (${(
|
|
185
|
+
description: `${(l = y.value) == null ? void 0 : l.name} (${(c = y.value) == null ? void 0 : c._id}) (${(e = y.value) == null ? void 0 : e.phoneNumber})`,
|
|
186
186
|
onBackButton: async () => {
|
|
187
187
|
await a.push({ name: E["$connect-LOYALTY_MEMBER_LIST"] });
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
|
-
}), d =
|
|
190
|
+
}), d = w(
|
|
191
191
|
s.find((o) => o.value === a.currentRoute.value.name) ?? s[0]
|
|
192
|
-
), y =
|
|
192
|
+
), y = w();
|
|
193
193
|
async function C(o) {
|
|
194
194
|
await a.push({ name: o });
|
|
195
195
|
}
|
|
196
196
|
async function T() {
|
|
197
|
-
|
|
197
|
+
r.open({
|
|
198
198
|
title: "Upload File",
|
|
199
199
|
closeButton: !0,
|
|
200
200
|
dismissAway: !1,
|
|
201
|
-
contentComponent:
|
|
201
|
+
contentComponent: ne,
|
|
202
202
|
primaryActions: { text: "Import", close: !1 }
|
|
203
203
|
}).onPrimary(async (o) => {
|
|
204
204
|
if (!o) {
|
|
@@ -208,7 +208,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
208
208
|
});
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
|
-
const { file: l, config:
|
|
211
|
+
const { file: l, config: c } = o;
|
|
212
212
|
if (!l)
|
|
213
213
|
v.open({
|
|
214
214
|
type: "error",
|
|
@@ -216,7 +216,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
216
216
|
});
|
|
217
217
|
else {
|
|
218
218
|
const e = new FormData();
|
|
219
|
-
e.append("file", l), e.append("config", JSON.stringify(
|
|
219
|
+
e.append("file", l), e.append("config", JSON.stringify(c)), await I.import(e), v.open({
|
|
220
220
|
type: "info",
|
|
221
221
|
title: "Import begins soon. Check Queue for updates.",
|
|
222
222
|
action: "View",
|
|
@@ -226,7 +226,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
226
226
|
query: { type: [A.enum.MEMBER_IMPORTED] }
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
}),
|
|
229
|
+
}), r.close();
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
}
|
|
@@ -246,25 +246,25 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
246
246
|
return P(
|
|
247
247
|
() => a.currentRoute.value.name,
|
|
248
248
|
async (o) => {
|
|
249
|
-
d.value = s.find((
|
|
249
|
+
d.value = s.find((c) => c.value === o) ?? s[0];
|
|
250
250
|
const l = a.currentRoute.value.params.id;
|
|
251
251
|
l && (y.value = await I.readById(l)), await a.push({ name: o });
|
|
252
252
|
}
|
|
253
253
|
), (o, l) => {
|
|
254
|
-
const
|
|
255
|
-
return x(),
|
|
256
|
-
u(
|
|
257
|
-
actions:
|
|
258
|
-
title:
|
|
259
|
-
description:
|
|
260
|
-
"back-button":
|
|
261
|
-
"onClick:back":
|
|
254
|
+
const c = m("FmPageHead"), e = m("FmTabs"), B = m("RouterView");
|
|
255
|
+
return x(), F(R, null, [
|
|
256
|
+
u(c, {
|
|
257
|
+
actions: t(p).actions,
|
|
258
|
+
title: t(p).title,
|
|
259
|
+
description: t(p).description,
|
|
260
|
+
"back-button": t(p).backButton,
|
|
261
|
+
"onClick:back": t(p).onBackButton,
|
|
262
262
|
"onClick:action": i
|
|
263
263
|
}, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
|
|
264
|
-
b("div",
|
|
265
|
-
|
|
264
|
+
b("div", oe, [
|
|
265
|
+
t(a).currentRoute.value.name != t(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), D(e, {
|
|
266
266
|
key: 0,
|
|
267
|
-
"model-value":
|
|
267
|
+
"model-value": t(d).value,
|
|
268
268
|
items: s,
|
|
269
269
|
"onUpdate:modelValue": C
|
|
270
270
|
}, null, 8, ["model-value"])) : q("", !0),
|
|
@@ -275,5 +275,5 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
277
|
export {
|
|
278
|
-
|
|
278
|
+
ke as default
|
|
279
279
|
};
|