@feedmepos/mf-connect 0.1.38-beta.1 → 0.1.38-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-Dc1l0CZK.js +427 -0
- package/dist/{App-BWZ2EE71.js → App-BLg0CWv-.js} +352 -364
- package/dist/{Bin-C-Ha-4yF.js → Bin-DDbKIePj.js} +8 -8
- package/dist/{Broadcast-Bo3QS8lS.js → Broadcast-CihKie6G.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4vUMzH-l.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DbdBGvgR.js} +18 -18
- package/dist/{Card-Bs1TDE0e.js → Card-h1dYFE_s.js} +159 -159
- package/dist/{Collections-Dy5RN7Js.js → Collections-DUXdnJqQ.js} +91 -103
- package/dist/{Credit-Bqc4dw1s.js → Credit-CsGEuX9p.js} +74 -74
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6AmN3o3.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-0gMUNtdO.js} +488 -488
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BzwADnKp.js → EffectSheet.vue_vue_type_style_index_0_lang-CQDnl97F.js} +94 -94
- package/dist/{Experience-C2e2T7B-.js → Experience-CBbqYrql.js} +41 -41
- package/dist/{Game-C86eEhcx.js → Game-CicPpdT5.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
- package/dist/{Index-BRGweFco.js → Index-Xgvlt4vk.js} +10 -10
- package/dist/Marketing-CqOAQgg4.js +319 -0
- package/dist/{Member-B3o0Zhcw.js → Member-D1k4ZQ95.js} +76 -76
- package/dist/MemberList-BdV9sxO_.js +1606 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/{MemberTransactions-C4hao-d9.js → MemberTransactions-Q0_4nT4e.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D9zfmqLs.js → MessageInput.vue_vue_type_script_setup_true_lang-COGCJGRc.js} +36 -36
- package/dist/{Mission-BURXfzjd.js → Mission-D-TW52zn.js} +21 -21
- package/dist/{Overview-D_hrrM4O.js → Overview-BleJmxHa.js} +335 -335
- package/dist/{Point-CJXkJY5Q.js → Point-B7BYX9us.js} +41 -41
- package/dist/{Promotion-CunJrh42.js → Promotion-BphlQC55.js} +42 -42
- package/dist/{Queue-v5Itg9J4.js → Queue-DJfZqO1f.js} +51 -51
- package/dist/{Record-DJe4tg9R.js → Record-Bv1P0s2g.js} +9 -9
- package/dist/{Reward-Y9aHpny5.js → Reward-CRyEjr47.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-1KAjCblO.js → RewardGroup.vue_vue_type_script_setup_true_lang-Ckqox5Ut.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cr99ikbK.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dp4ku9ep.js} +431 -431
- package/dist/Segment-Br0Y5hzV.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BhJ-oVMb.js → SelectItems.vue_vue_type_script_setup_true_lang-BuB-qwcM.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-b5bjfBvc.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DanHGQXC.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DoKAgSLE.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCKUXnGl.js} +3 -3
- package/dist/{Setting-BU5778gG.js → Setting-BPFArJMv.js} +432 -432
- package/dist/{Store-IWg0POAU.js → Store-e_odFoS5.js} +210 -210
- package/dist/StoreRewards-wXhyzIFI.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CVPQt-bn.js +995 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BcOvr526.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CWJmeeo-.js} +1 -1
- package/dist/{Tier-iN30KD7g.js → Tier-GfdGRbTX.js} +106 -106
- package/dist/{Title-Duh_Srek.js → Title-C2ZyFxNf.js} +131 -133
- package/dist/{Transaction-DLBA7Svl.js → Transaction-Dv8yYXJS.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DLD5d43d.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CK_4iMCA.js} +6 -6
- package/dist/{Voucher-cTvlMN0Y.js → Voucher-CBujqgnF.js} +37 -37
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CgooH4yn.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C5S-bi5J.js → ZodTextField.vue_vue_type_script_setup_true_lang-B8pgaARn.js} +1 -1
- package/dist/{app-De-yQ1CJ.js → app-B2Cgyy70.js} +124 -161
- package/dist/{app-A3oEKLq5.js → app-B8E3wp8L.js} +1 -1
- package/dist/app.js +3 -4
- package/dist/{business-B2JBpm4y.js → business-BRidHvRK.js} +1 -1
- package/dist/{campaign-vkzui6F2.js → campaign-B0vnIan2.js} +3 -5
- package/dist/{campaign-Bhur0NJx.js → campaign-B7v0a8YV.js} +9 -9
- package/dist/{campaign.enum-DCYkKGhd.js → campaign.enum-NH5faqyS.js} +1 -1
- package/dist/{campaign.fn--affTEi5.js → campaign.fn-BPHARk3Y.js} +161 -161
- package/dist/{collectible.enum-CLBCnfev.js → collectible.enum-Cun9w38h.js} +1 -1
- package/dist/{collection.fn-bA8q0KYy.js → collection.fn-RR5q6jqi.js} +2 -2
- package/dist/{dto-RCcWeYE0.js → dto-DK1VnGlq.js} +4 -4
- package/dist/{effect-D7qRfPe_.js → effect-CI4ZR8HW.js} +1 -1
- package/dist/{email-addresses-a8PqViID.js → email-addresses-bguwgnrW.js} +1 -1
- package/dist/{export-BneqNRn4.js → export-CcepocZB.js} +3 -3
- package/dist/{helper-DfvvxOyO.js → helper-BM1JTEFS.js} +1 -1
- package/dist/{index-CbsJ6vMJ.js → index-B0Slqiqo.js} +1 -1
- package/dist/{index-y-7yUm2e.js → index-B6_uPXyL.js} +9 -9
- package/dist/{index-CTKMdxSm.js → index-BS3AjuVw.js} +1 -1
- package/dist/{index-2LpkG8Ye.js → index-BfGdztHf.js} +1 -1
- package/dist/{index-D0GnMoag.js → index-CBuCx_0r.js} +79 -168
- package/dist/{index-4kMeSNTr.js → index-CLkqja9X.js} +385 -376
- package/dist/{index-DMrIQqFt.js → index-Cm_6xScD.js} +1 -1
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/index-DHEJX75j.js +44 -0
- package/dist/{index-CMBPIb8x.js → index-D_gLVFsk.js} +941 -932
- package/dist/{index-BWTvsoH0.js → index-DbjZHuoG.js} +1 -1
- package/dist/{index-CrFUhsZO.js → index-De1JnaPh.js} +1 -1
- package/dist/{index-DeXvASjP.js → index-Di6bqaLm.js} +3 -3
- package/dist/{index-CtDqXnOp.js → index-DjycZwfg.js} +448 -515
- package/dist/{index-B0T9GDIZ.js → index-vs1HgFHz.js} +1 -1
- package/dist/{index.esm2017-JtyypweZ.js → index.esm2017-DANlqJ4g.js} +127 -127
- package/dist/{loading-a-FqrwqI.js → loading-BXu9ofEu.js} +1 -1
- package/dist/{membership-CGVtil5J.js → membership-BBb7gdZg.js} +3 -3
- package/dist/{money-CTc1l_Cq.js → money-C02BW-pt.js} +1 -1
- package/dist/{number-W3R-0nYP.js → number-D7tIDv2q.js} +1 -1
- package/dist/objectid-oVX5A5oa.js +145 -0
- package/dist/{plugins-D2sSgTSl.js → plugins-B5tuGbFw.js} +2 -2
- package/dist/{reward-atP8vnNn.js → reward-CE-bnnnQ.js} +1 -1
- package/dist/{rule-eA5IvnjB.js → rule-BN5R8pYj.js} +3 -3
- package/dist/{rule-builder-BB29ZJ_C.js → rule-builder-16JDtaoI.js} +17 -17
- package/dist/style.css +1 -1
- package/dist/{template-DhBeDaAm.js → template-C-zyZgxl.js} +64 -64
- package/dist/{trigger-Bq_pZj1J.js → trigger-DCLjl3mM.js} +4 -4
- package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
- package/dist/{user-B-bhVFIG.js → user-C7bmFOaT.js} +1 -1
- package/dist/{vue-i18n-D-h8VDSx.js → vue-i18n-Cts9OsqE.js} +277 -277
- package/dist/{xlsx-DsByAcZl.js → xlsx-CJ5ufXk3.js} +226 -226
- package/package.json +3 -5
- package/dist/Analytic-O-qZWrFp.js +0 -761
- package/dist/AuditLogs-DlmcFEta.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-CnnrnXbS.js +0 -20073
- package/dist/MemberList-BpE1IjED.js +0 -1606
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/Segment-DVT8uDn8.js +0 -882
- package/dist/StoreRewards-CIjHcVoh.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cx05-OPF.js +0 -1029
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DkjojUvD.js +0 -419
- package/dist/index-CVAWGMus.js +0 -56
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/objectid-BU0Y8iAN.js +0 -145
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as P, ref as
|
|
2
|
-
import "./index-
|
|
1
|
+
import { defineComponent as P, ref as w, watch as D, resolveComponent as m, openBlock as x, createElementBlock as g, Fragment as M, createElementVNode as f, createVNode as u, unref as t, withCtx as S, renderList as U, createBlock as N, toDisplayString as Y, normalizeClass as q, computed as H, createCommentVNode as J } from "vue";
|
|
2
|
+
import "./index-De1JnaPh.js";
|
|
3
3
|
import { useDialogChild as Q, FmButtonVariant as A, useDialog as j, useSnackbar as z } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as V } from "./vue-i18n-
|
|
5
|
-
import "./index-
|
|
6
|
-
import
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import { u as B, w as G } from "./xlsx-
|
|
4
|
+
import { u as V } from "./vue-i18n-Cts9OsqE.js";
|
|
5
|
+
import { c as I } from "./index-DjycZwfg.js";
|
|
6
|
+
import "./index-B6_uPXyL.js";
|
|
7
|
+
import "./index-CBuCx_0r.js";
|
|
8
|
+
import "./index-vs1HgFHz.js";
|
|
9
|
+
import "./index-Di6bqaLm.js";
|
|
10
|
+
import { u as B, w as G } from "./xlsx-CJ5ufXk3.js";
|
|
11
11
|
import { F as W } from "./FileSaver.min-NlMItPOc.js";
|
|
12
12
|
import { useCoreStore as K } from "@feedmepos/mf-common";
|
|
13
13
|
import { useRouter as X } from "vue-router";
|
|
14
|
-
import { m as L } from "./index-
|
|
15
|
-
import { R as E } from "./app-
|
|
16
|
-
const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" },
|
|
14
|
+
import { m as L } from "./index-Cm_6xScD.js";
|
|
15
|
+
import { R as E } from "./app-B2Cgyy70.js";
|
|
16
|
+
const Z = { class: "space-y-8 mb-10" }, ee = /* @__PURE__ */ f("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1), te = { class: "flex justify-end" }, ne = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: /* @__PURE__ */ q([
|
|
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
|
+
}, oe = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, ae = /* @__PURE__ */ P({
|
|
24
24
|
__name: "ImportMemberDialog",
|
|
25
25
|
setup($) {
|
|
26
|
-
const { t: a } = V(), { emitData: b } = Q(), i =
|
|
26
|
+
const { t: a } = V(), { emitData: b } = Q(), i = w(null), _ = w(null), h = w({
|
|
27
27
|
resetCollectionExpiryBalance: !0
|
|
28
|
-
}),
|
|
28
|
+
}), F = [
|
|
29
29
|
"Id",
|
|
30
30
|
"Name",
|
|
31
31
|
"Phone",
|
|
@@ -63,9 +63,9 @@ const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" }, te =
|
|
|
63
63
|
/* xlsx */
|
|
64
64
|
}
|
|
65
65
|
];
|
|
66
|
-
async function
|
|
67
|
-
var
|
|
68
|
-
i.value = ((y = (
|
|
66
|
+
async function r(l) {
|
|
67
|
+
var o, y;
|
|
68
|
+
i.value = ((y = (o = l.target) == null ? void 0 : o.files) == null ? void 0 : y[0]) ?? null;
|
|
69
69
|
}
|
|
70
70
|
async function p(l) {
|
|
71
71
|
switch (l) {
|
|
@@ -78,31 +78,31 @@ const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" }, te =
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
function d() {
|
|
81
|
-
const l = new Blob([
|
|
81
|
+
const l = new Blob([F.join(",")], {
|
|
82
82
|
type: "text/csv;charset=utf-8;"
|
|
83
83
|
});
|
|
84
84
|
W.saveAs(l, "ImportMemberTemplate.csv");
|
|
85
85
|
}
|
|
86
86
|
function v() {
|
|
87
|
-
const l = B.aoa_to_sheet([
|
|
88
|
-
B.book_append_sheet(
|
|
87
|
+
const l = B.aoa_to_sheet([F]), o = B.book_new();
|
|
88
|
+
B.book_append_sheet(o, l, "Sheet1"), G(o, "ImportMemberTemplate.xlsx");
|
|
89
89
|
}
|
|
90
90
|
return D(i, () => {
|
|
91
|
-
b({ file: i.value, config:
|
|
92
|
-
}), (l,
|
|
93
|
-
const y = m("FmSwitch"), k = m("FmButton"), C = m("FmMenuItem"), T = m("FmMenu"),
|
|
91
|
+
b({ file: i.value, config: h.value });
|
|
92
|
+
}), (l, o) => {
|
|
93
|
+
const y = m("FmSwitch"), k = m("FmButton"), C = m("FmMenuItem"), T = m("FmMenu"), n = m("FmDropField");
|
|
94
94
|
return x(), g(M, null, [
|
|
95
95
|
f("div", Z, [
|
|
96
|
-
|
|
96
|
+
ee,
|
|
97
97
|
u(y, {
|
|
98
|
-
"model-value":
|
|
99
|
-
"onUpdate:modelValue":
|
|
98
|
+
"model-value": t(h).resetCollectionExpiryBalance ?? !0,
|
|
99
|
+
"onUpdate:modelValue": o[0] || (o[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
|
-
f("div",
|
|
105
|
+
f("div", te, [
|
|
106
106
|
u(T, null, {
|
|
107
107
|
"menu-button": S(() => [
|
|
108
108
|
u(k, {
|
|
@@ -116,30 +116,30 @@ const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" }, te =
|
|
|
116
116
|
key: e.value,
|
|
117
117
|
icon: e.icon,
|
|
118
118
|
label: e.label,
|
|
119
|
-
onClick: (
|
|
119
|
+
onClick: (c) => p(e.value),
|
|
120
120
|
selectable: ""
|
|
121
121
|
}, null, 8, ["icon", "label", "onClick"])), 64))
|
|
122
122
|
]),
|
|
123
123
|
_: 1
|
|
124
124
|
})
|
|
125
125
|
]),
|
|
126
|
-
|
|
126
|
+
t(i) ? (x(), g("div", ne, [
|
|
127
127
|
u(k, {
|
|
128
|
-
variant:
|
|
128
|
+
variant: t(A).Tertiary,
|
|
129
129
|
"prepend-icon": "attach_file"
|
|
130
130
|
}, null, 8, ["variant"]),
|
|
131
|
-
f("p",
|
|
131
|
+
f("p", oe, Y(t(i).name), 1),
|
|
132
132
|
f("label", {
|
|
133
133
|
ref_key: "fileLabelRef",
|
|
134
134
|
ref: _,
|
|
135
135
|
htmlFor: "file"
|
|
136
136
|
}, [
|
|
137
137
|
u(k, {
|
|
138
|
-
variant:
|
|
139
|
-
label:
|
|
140
|
-
onClick:
|
|
138
|
+
variant: t(A).Plain,
|
|
139
|
+
label: t(a)("Replace File"),
|
|
140
|
+
onClick: o[2] || (o[2] = () => {
|
|
141
141
|
var e;
|
|
142
|
-
return (e =
|
|
142
|
+
return (e = t(_)) == null ? void 0 : e.click();
|
|
143
143
|
})
|
|
144
144
|
}, null, 8, ["variant", "label"]),
|
|
145
145
|
f("input", {
|
|
@@ -148,23 +148,23 @@ const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" }, te =
|
|
|
148
148
|
class: "hidden",
|
|
149
149
|
type: "file",
|
|
150
150
|
multiple: "",
|
|
151
|
-
onChange:
|
|
151
|
+
onChange: r
|
|
152
152
|
}, null, 32)
|
|
153
153
|
], 512)
|
|
154
|
-
])) : (x(), N(
|
|
154
|
+
])) : (x(), N(n, {
|
|
155
155
|
key: 0,
|
|
156
|
-
onFileUpload:
|
|
156
|
+
onFileUpload: o[1] || (o[1] = (e) => i.value = e),
|
|
157
157
|
accept: ".csv, .xlsx",
|
|
158
158
|
"max-file-size": 5e6
|
|
159
159
|
}))
|
|
160
160
|
], 64);
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
}),
|
|
163
|
+
}), le = { class: "px-24 flex flex-col gap-y-16 pb-24" }, xe = /* @__PURE__ */ P({
|
|
164
164
|
__name: "Member",
|
|
165
165
|
setup($) {
|
|
166
166
|
var k, C, T;
|
|
167
|
-
const a = X(), { t: b } = V(), i = j(), _ = z(),
|
|
167
|
+
const a = X(), { t: b } = V(), i = j(), _ = z(), h = K(), F = {
|
|
168
168
|
label: b("connect.loyalty.member.import"),
|
|
169
169
|
value: "import",
|
|
170
170
|
isPrimary: !0,
|
|
@@ -174,49 +174,49 @@ const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" }, te =
|
|
|
174
174
|
value: "queue",
|
|
175
175
|
isPrimary: !1,
|
|
176
176
|
prependIcon: "work_history"
|
|
177
|
-
},
|
|
177
|
+
}, r = [
|
|
178
178
|
{
|
|
179
179
|
label: b("connect.loyalty.member.tabs.member_list"),
|
|
180
180
|
value: E["$connect-LOYALTY_MEMBER_LIST"],
|
|
181
|
-
actions: (T = (C = (k =
|
|
181
|
+
actions: (T = (C = (k = h.sessionUser) == null ? void 0 : k.value) == null ? void 0 : C.role) != null && T.isAdmin ? [R, F] : []
|
|
182
182
|
}
|
|
183
183
|
], p = H(() => {
|
|
184
|
-
var e,
|
|
184
|
+
var e, c, s;
|
|
185
185
|
return a.currentRoute.value.name != E["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
|
|
186
186
|
title: d.value.label,
|
|
187
187
|
actions: d.value.actions,
|
|
188
188
|
description: void 0
|
|
189
|
-
} : (d.value =
|
|
189
|
+
} : (d.value = r[1], {
|
|
190
190
|
backButton: !0,
|
|
191
191
|
title: b("connect.loyalty.member.title"),
|
|
192
192
|
actions: [],
|
|
193
|
-
description: `${(e = v.value) == null ? void 0 : e.name} (${(
|
|
193
|
+
description: `${(e = v.value) == null ? void 0 : e.name} (${(c = v.value) == null ? void 0 : c._id}) (${(s = v.value) == null ? void 0 : s.phoneNumber})`,
|
|
194
194
|
onBackButton: async () => {
|
|
195
195
|
await a.push({ name: E["$connect-LOYALTY_MEMBER_LIST"] });
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
|
-
}), d =
|
|
199
|
-
|
|
200
|
-
), v =
|
|
201
|
-
async function l(
|
|
202
|
-
await a.push({ name:
|
|
198
|
+
}), d = w(
|
|
199
|
+
r.find((n) => n.value === a.currentRoute.value.name) ?? r[0]
|
|
200
|
+
), v = w();
|
|
201
|
+
async function l(n) {
|
|
202
|
+
await a.push({ name: n });
|
|
203
203
|
}
|
|
204
|
-
async function
|
|
204
|
+
async function o() {
|
|
205
205
|
i.open({
|
|
206
206
|
title: "Upload File",
|
|
207
207
|
closeButton: !0,
|
|
208
208
|
dismissAway: !1,
|
|
209
|
-
contentComponent:
|
|
209
|
+
contentComponent: ae,
|
|
210
210
|
primaryActions: { text: "Import", close: !1 }
|
|
211
|
-
}).onPrimary(async (
|
|
212
|
-
if (!
|
|
211
|
+
}).onPrimary(async (n) => {
|
|
212
|
+
if (!n) {
|
|
213
213
|
_.open({
|
|
214
214
|
type: "error",
|
|
215
215
|
title: "Please upload a file"
|
|
216
216
|
});
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
|
-
const { file: e, config:
|
|
219
|
+
const { file: e, config: c } = n;
|
|
220
220
|
if (!e)
|
|
221
221
|
_.open({
|
|
222
222
|
type: "error",
|
|
@@ -224,7 +224,7 @@ const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" }, te =
|
|
|
224
224
|
});
|
|
225
225
|
else {
|
|
226
226
|
const s = new FormData();
|
|
227
|
-
s.append("file", e), s.append("config", JSON.stringify(
|
|
227
|
+
s.append("file", e), s.append("config", JSON.stringify(c)), await L.import(s), _.open({
|
|
228
228
|
type: "info",
|
|
229
229
|
title: "Import begins soon. Check Queue for updates.",
|
|
230
230
|
action: "View",
|
|
@@ -238,10 +238,10 @@ const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" }, te =
|
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
function y(
|
|
242
|
-
switch (
|
|
241
|
+
function y(n) {
|
|
242
|
+
switch (n) {
|
|
243
243
|
case "import":
|
|
244
|
-
|
|
244
|
+
o();
|
|
245
245
|
break;
|
|
246
246
|
case "queue":
|
|
247
247
|
a.push({
|
|
@@ -253,27 +253,27 @@ const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" }, te =
|
|
|
253
253
|
}
|
|
254
254
|
return D(
|
|
255
255
|
() => a.currentRoute.value.name,
|
|
256
|
-
async (
|
|
257
|
-
d.value =
|
|
256
|
+
async (n) => {
|
|
257
|
+
d.value = r.find((c) => c.value === n) ?? r[0];
|
|
258
258
|
const e = a.currentRoute.value.params.id;
|
|
259
|
-
e && (v.value = await L.readById(e)), await a.push({ name:
|
|
259
|
+
e && (v.value = await L.readById(e)), await a.push({ name: n });
|
|
260
260
|
}
|
|
261
|
-
), (
|
|
262
|
-
const
|
|
261
|
+
), (n, e) => {
|
|
262
|
+
const c = m("FmPageHead"), s = m("FmTabs"), O = m("RouterView");
|
|
263
263
|
return x(), g(M, null, [
|
|
264
|
-
u(
|
|
265
|
-
actions:
|
|
266
|
-
title:
|
|
267
|
-
description:
|
|
268
|
-
"back-button":
|
|
269
|
-
"onClick:back":
|
|
264
|
+
u(c, {
|
|
265
|
+
actions: t(p).actions,
|
|
266
|
+
title: t(p).title,
|
|
267
|
+
description: t(p).description,
|
|
268
|
+
"back-button": t(p).backButton,
|
|
269
|
+
"onClick:back": t(p).onBackButton,
|
|
270
270
|
"onClick:action": y
|
|
271
271
|
}, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
|
|
272
|
-
f("div",
|
|
273
|
-
|
|
272
|
+
f("div", le, [
|
|
273
|
+
t(a).currentRoute.value.name != t(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), N(s, {
|
|
274
274
|
key: 0,
|
|
275
|
-
"model-value":
|
|
276
|
-
items:
|
|
275
|
+
"model-value": t(d).value,
|
|
276
|
+
items: r,
|
|
277
277
|
"onUpdate:modelValue": l
|
|
278
278
|
}, null, 8, ["model-value"])) : J("", !0),
|
|
279
279
|
u(O)
|
|
@@ -283,5 +283,5 @@ const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" }, te =
|
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
export {
|
|
286
|
-
|
|
286
|
+
xe as default
|
|
287
287
|
};
|