@feedmepos/mf-connect 0.1.37-prod → 0.1.38-beta.1
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-O-qZWrFp.js +761 -0
- package/dist/{App-Bpo0XZSs.js → App-BWZ2EE71.js} +364 -352
- package/dist/AuditLogs-DlmcFEta.js +1887 -0
- package/dist/{Bin-ohZ2CZZR.js → Bin-C-Ha-4yF.js} +8 -8
- package/dist/{Broadcast-D5x0_-zC.js → Broadcast-Bo3QS8lS.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYb38NXA.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4vUMzH-l.js} +18 -18
- package/dist/{Card-BM-Lrm5y.js → Card-Bs1TDE0e.js} +159 -159
- package/dist/{Collections-Cr4aoJer.js → Collections-Dy5RN7Js.js} +103 -91
- package/dist/{Credit-DzDVFv4H.js → Credit-Bqc4dw1s.js} +74 -74
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs8o9n1V.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6AmN3o3.js} +490 -488
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-koqrPPqM.js → EffectSheet.vue_vue_type_style_index_0_lang-BzwADnKp.js} +91 -89
- package/dist/{Experience-CjaDdbvZ.js → Experience-C2e2T7B-.js} +41 -41
- package/dist/{FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js → FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js} +2 -6
- package/dist/{Game-BuiTygow.js → Game-C86eEhcx.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
- package/dist/{Index-CQGzUU-w.js → Index-BRGweFco.js} +10 -10
- package/dist/Marketing-CnnrnXbS.js +20073 -0
- package/dist/{Member-B4S0UNGq.js → Member-B3o0Zhcw.js} +76 -76
- package/dist/MemberList-BpE1IjED.js +1606 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DzG1fY0c.js → MemberTransactions-C4hao-d9.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-hZUWLTWj.js → MessageInput.vue_vue_type_script_setup_true_lang-D9zfmqLs.js} +36 -36
- package/dist/{Mission-BtypT2uF.js → Mission-BURXfzjd.js} +21 -21
- package/dist/{Overview-Be7bUtRO.js → Overview-D_hrrM4O.js} +335 -335
- package/dist/{Point-Bw4lnLqp.js → Point-CJXkJY5Q.js} +41 -41
- package/dist/Promotion-CunJrh42.js +289 -0
- package/dist/{Queue-CpPEVgn8.js → Queue-v5Itg9J4.js} +52 -52
- package/dist/{Record-DQq4P69i.js → Record-DJe4tg9R.js} +9 -9
- package/dist/{Reward-DJH0eM8u.js → Reward-Y9aHpny5.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-_kw_PR0h.js → RewardGroup.vue_vue_type_script_setup_true_lang-1KAjCblO.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CRGep1RK.js → RuleGroup.vue_vue_type_script_setup_true_lang-Cr99ikbK.js} +635 -548
- package/dist/Segment-DVT8uDn8.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dx6Ew9Z_.js → SelectItems.vue_vue_type_script_setup_true_lang-BhJ-oVMb.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B60_8Toi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-b5bjfBvc.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCaJ3xKT.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DoKAgSLE.js} +3 -3
- package/dist/{Setting-GRIUo7vg.js → Setting-BU5778gG.js} +432 -432
- package/dist/{Store-H0UDQpln.js → Store-IWg0POAU.js} +211 -211
- package/dist/StoreRewards-CIjHcVoh.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cx05-OPF.js +1029 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D-jL1oGS.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BcOvr526.js} +1 -1
- package/dist/{Tier-CJufQcIz.js → Tier-iN30KD7g.js} +106 -106
- package/dist/{Title-BBMgGUld.js → Title-Duh_Srek.js} +133 -131
- package/dist/{Transaction-DsucPnfp.js → Transaction-DLBA7Svl.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CwOcZEQX.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DLD5d43d.js} +6 -6
- package/dist/{Voucher-BPvxKO_w.js → Voucher-cTvlMN0Y.js} +153 -123
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DkjojUvD.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DMs4XKXM.js → ZodTextField.vue_vue_type_script_setup_true_lang-C5S-bi5J.js} +1 -1
- package/dist/{app-Bo0JpadQ.js → app-A3oEKLq5.js} +1 -1
- package/dist/{app-D3MT1deX.js → app-De-yQ1CJ.js} +164 -125
- package/dist/app.js +4 -3
- package/dist/business-B2JBpm4y.js +79 -0
- package/dist/{campaign-Z3l7BoMg.js → campaign-Bhur0NJx.js} +9 -9
- package/dist/{campaign-j1c3ou7l.js → campaign-vkzui6F2.js} +5 -3
- package/dist/{campaign.enum-CVXPc5Pd.js → campaign.enum-DCYkKGhd.js} +1 -1
- package/dist/{campaign.fn-rsRhHYZP.js → campaign.fn--affTEi5.js} +75 -75
- package/dist/{collectible.enum-CDSikBAy.js → collectible.enum-CLBCnfev.js} +1 -1
- package/dist/{collection.fn-Bz38mGMa.js → collection.fn-bA8q0KYy.js} +2 -2
- package/dist/{dto-D648NN4s.js → dto-RCcWeYE0.js} +4 -4
- package/dist/{effect-DbMAmVSR.js → effect-D7qRfPe_.js} +1 -1
- package/dist/{email-addresses-KOVDrRiK.js → email-addresses-a8PqViID.js} +1 -1
- package/dist/{export-cTZf8Avd.js → export-BneqNRn4.js} +3 -3
- package/dist/{helper-BYyfcLqw.js → helper-DfvvxOyO.js} +1 -1
- package/dist/{index-E-0tTd0_.js → index-2LpkG8Ye.js} +1 -1
- package/dist/{index-BMl2KZts.js → index-4kMeSNTr.js} +11447 -10969
- package/dist/{index-BrKXRxe_.js → index-B0T9GDIZ.js} +1 -1
- package/dist/{index-B3p0hmIV.js → index-BWTvsoH0.js} +1 -1
- package/dist/index-CMBPIb8x.js +32260 -0
- package/dist/{index-DPBHiqsJ.js → index-CTKMdxSm.js} +1 -1
- package/dist/index-CVAWGMus.js +56 -0
- package/dist/index-CbsJ6vMJ.js +31 -0
- package/dist/{index-BTb8I_eB.js → index-CrFUhsZO.js} +1 -1
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-CvoShC5J.js → index-CtDqXnOp.js} +535 -460
- package/dist/{index-BIaCtk8e.js → index-D0GnMoag.js} +181 -79
- package/dist/{index-nF9iYTlh.js → index-DMrIQqFt.js} +1 -1
- package/dist/{index-B4MqsaBz.js → index-DeXvASjP.js} +3 -3
- package/dist/{index-CTPMbFf5.js → index-y-7yUm2e.js} +10 -9
- package/dist/{index.esm2017-DFYwde30.js → index.esm2017-JtyypweZ.js} +127 -127
- package/dist/{loading-vUArhX_O.js → loading-a-FqrwqI.js} +1 -1
- package/dist/{membership-BHKv29yt.js → membership-CGVtil5J.js} +3 -3
- package/dist/{money-Bl3_QRkE.js → money-CTc1l_Cq.js} +1 -1
- package/dist/{number-hh_S9w7k.js → number-W3R-0nYP.js} +1 -1
- package/dist/objectid-BU0Y8iAN.js +145 -0
- package/dist/{plugins-CVes2wzE.js → plugins-D2sSgTSl.js} +2 -2
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/{reward-ANZOdWzf.js → reward-atP8vnNn.js} +1 -1
- package/dist/{rule-builder-BSN777PN.js → rule-builder-BB29ZJ_C.js} +17 -17
- package/dist/{rule-BvFk5bQg.js → rule-eA5IvnjB.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{template-Dh9lDLs_.js → template-DhBeDaAm.js} +64 -64
- package/dist/{trigger-C7THbt7R.js → trigger-Bq_pZj1J.js} +7 -7
- package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
- package/dist/{user-DtNR9JY2.js → user-B-bhVFIG.js} +1 -1
- package/dist/{vue-i18n-BWyHnm4m.js → vue-i18n-D-h8VDSx.js} +310 -310
- package/dist/{xlsx-7u9SB0oa.js → xlsx-DsByAcZl.js} +226 -226
- package/package.json +5 -3
- package/dist/Analytic-CavR2bzs.js +0 -427
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/Marketing-BSspYuhg.js +0 -319
- package/dist/MemberList-CfnUJ3mh.js +0 -1606
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/Promotion-Bg6x0rAh.js +0 -255
- package/dist/Segment-BLB4VWNJ.js +0 -882
- package/dist/StoreRewards--TNIFaCo.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfB8tA5l.js +0 -995
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bg-9YqLP.js +0 -419
- package/dist/business-DMALI7ZO.js +0 -78
- package/dist/index-BsCGyJMY.js +0 -29566
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-DFKmjCG1.js +0 -44
- package/dist/index-Dbd4WA4r.js +0 -61
- package/dist/objectid-CEyMlMge.js +0 -145
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as P, ref as
|
|
2
|
-
import "./index-
|
|
1
|
+
import { defineComponent as P, ref as F, watch as D, resolveComponent as m, openBlock as x, createElementBlock as g, Fragment as M, createElementVNode as f, createVNode as u, unref as n, 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-CrFUhsZO.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
|
|
6
|
-
import "./index-
|
|
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-D-h8VDSx.js";
|
|
5
|
+
import "./index-D0GnMoag.js";
|
|
6
|
+
import { c as I } from "./index-CtDqXnOp.js";
|
|
7
|
+
import "./index-y-7yUm2e.js";
|
|
8
|
+
import "./index-B0T9GDIZ.js";
|
|
9
|
+
import "./index-DeXvASjP.js";
|
|
10
|
+
import { u as B, w as G } from "./xlsx-DsByAcZl.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 =
|
|
14
|
+
import { m as L } from "./index-DMrIQqFt.js";
|
|
15
|
+
import { R as E } from "./app-De-yQ1CJ.js";
|
|
16
|
+
const Z = { class: "space-y-8 mb-10" }, ee = { class: "flex justify-end" }, te = {
|
|
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
|
+
}, ne = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, oe = /* @__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 = F(null), _ = F(null), w = F({
|
|
27
27
|
resetCollectionExpiryBalance: !0
|
|
28
|
-
}),
|
|
28
|
+
}), h = [
|
|
29
29
|
"Id",
|
|
30
30
|
"Name",
|
|
31
31
|
"Phone",
|
|
@@ -63,9 +63,9 @@ const Z = { class: "space-y-8 mb-10" }, ee = /* @__PURE__ */ f("div", { class: "
|
|
|
63
63
|
/* xlsx */
|
|
64
64
|
}
|
|
65
65
|
];
|
|
66
|
-
async function
|
|
67
|
-
var
|
|
68
|
-
i.value = ((y = (
|
|
66
|
+
async function c(l) {
|
|
67
|
+
var t, y;
|
|
68
|
+
i.value = ((y = (t = l.target) == null ? void 0 : t.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 = /* @__PURE__ */ f("div", { class: "
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
function d() {
|
|
81
|
-
const l = new Blob([
|
|
81
|
+
const l = new Blob([h.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([h]), t = B.book_new();
|
|
88
|
+
B.book_append_sheet(t, l, "Sheet1"), G(t, "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: w.value });
|
|
92
|
+
}), (l, t) => {
|
|
93
|
+
const y = m("FmSwitch"), k = m("FmButton"), C = m("FmMenuItem"), T = m("FmMenu"), o = m("FmDropField");
|
|
94
94
|
return x(), g(M, null, [
|
|
95
95
|
f("div", Z, [
|
|
96
|
-
|
|
96
|
+
t[3] || (t[3] = f("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
|
|
97
97
|
u(y, {
|
|
98
|
-
"model-value":
|
|
99
|
-
"onUpdate:modelValue":
|
|
98
|
+
"model-value": n(w).resetCollectionExpiryBalance ?? !0,
|
|
99
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => n(w).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", ee, [
|
|
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 = /* @__PURE__ */ f("div", { class: "
|
|
|
116
116
|
key: e.value,
|
|
117
117
|
icon: e.icon,
|
|
118
118
|
label: e.label,
|
|
119
|
-
onClick: (
|
|
119
|
+
onClick: (r) => 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
|
+
n(i) ? (x(), g("div", te, [
|
|
127
127
|
u(k, {
|
|
128
|
-
variant:
|
|
128
|
+
variant: n(A).Tertiary,
|
|
129
129
|
"prepend-icon": "attach_file"
|
|
130
130
|
}, null, 8, ["variant"]),
|
|
131
|
-
f("p",
|
|
131
|
+
f("p", ne, Y(n(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: n(A).Plain,
|
|
139
|
+
label: n(a)("Replace File"),
|
|
140
|
+
onClick: t[2] || (t[2] = () => {
|
|
141
141
|
var e;
|
|
142
|
-
return (e =
|
|
142
|
+
return (e = n(_)) == 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 = /* @__PURE__ */ f("div", { class: "
|
|
|
148
148
|
class: "hidden",
|
|
149
149
|
type: "file",
|
|
150
150
|
multiple: "",
|
|
151
|
-
onChange:
|
|
151
|
+
onChange: c
|
|
152
152
|
}, null, 32)
|
|
153
153
|
], 512)
|
|
154
|
-
])) : (x(), N(
|
|
154
|
+
])) : (x(), N(o, {
|
|
155
155
|
key: 0,
|
|
156
|
-
onFileUpload:
|
|
156
|
+
onFileUpload: t[1] || (t[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
|
+
}), ae = { class: "px-24 flex flex-col gap-y-16 pb-24" }, Ee = /* @__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(), w = K(), h = {
|
|
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 = /* @__PURE__ */ f("div", { class: "
|
|
|
174
174
|
value: "queue",
|
|
175
175
|
isPrimary: !1,
|
|
176
176
|
prependIcon: "work_history"
|
|
177
|
-
},
|
|
177
|
+
}, c = [
|
|
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 = w.sessionUser) == null ? void 0 : k.value) == null ? void 0 : C.role) != null && T.isAdmin ? [R, h] : []
|
|
182
182
|
}
|
|
183
183
|
], p = H(() => {
|
|
184
|
-
var e,
|
|
184
|
+
var e, r, 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 = c[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} (${(r = v.value) == null ? void 0 : r._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 = F(
|
|
199
|
+
c.find((o) => o.value === a.currentRoute.value.name) ?? c[0]
|
|
200
|
+
), v = F();
|
|
201
|
+
async function l(o) {
|
|
202
|
+
await a.push({ name: o });
|
|
203
203
|
}
|
|
204
|
-
async function
|
|
204
|
+
async function t() {
|
|
205
205
|
i.open({
|
|
206
206
|
title: "Upload File",
|
|
207
207
|
closeButton: !0,
|
|
208
208
|
dismissAway: !1,
|
|
209
|
-
contentComponent:
|
|
209
|
+
contentComponent: oe,
|
|
210
210
|
primaryActions: { text: "Import", close: !1 }
|
|
211
|
-
}).onPrimary(async (
|
|
212
|
-
if (!
|
|
211
|
+
}).onPrimary(async (o) => {
|
|
212
|
+
if (!o) {
|
|
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: r } = o;
|
|
220
220
|
if (!e)
|
|
221
221
|
_.open({
|
|
222
222
|
type: "error",
|
|
@@ -224,7 +224,7 @@ const Z = { class: "space-y-8 mb-10" }, ee = /* @__PURE__ */ f("div", { class: "
|
|
|
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(r)), 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 = /* @__PURE__ */ f("div", { class: "
|
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
function y(
|
|
242
|
-
switch (
|
|
241
|
+
function y(o) {
|
|
242
|
+
switch (o) {
|
|
243
243
|
case "import":
|
|
244
|
-
|
|
244
|
+
t();
|
|
245
245
|
break;
|
|
246
246
|
case "queue":
|
|
247
247
|
a.push({
|
|
@@ -253,27 +253,27 @@ const Z = { class: "space-y-8 mb-10" }, ee = /* @__PURE__ */ f("div", { class: "
|
|
|
253
253
|
}
|
|
254
254
|
return D(
|
|
255
255
|
() => a.currentRoute.value.name,
|
|
256
|
-
async (
|
|
257
|
-
d.value =
|
|
256
|
+
async (o) => {
|
|
257
|
+
d.value = c.find((r) => r.value === o) ?? c[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: o });
|
|
260
260
|
}
|
|
261
|
-
), (
|
|
262
|
-
const
|
|
261
|
+
), (o, e) => {
|
|
262
|
+
const r = 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(r, {
|
|
265
|
+
actions: n(p).actions,
|
|
266
|
+
title: n(p).title,
|
|
267
|
+
description: n(p).description,
|
|
268
|
+
"back-button": n(p).backButton,
|
|
269
|
+
"onClick:back": n(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", ae, [
|
|
273
|
+
n(a).currentRoute.value.name != n(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), N(s, {
|
|
274
274
|
key: 0,
|
|
275
|
-
"model-value":
|
|
276
|
-
items:
|
|
275
|
+
"model-value": n(d).value,
|
|
276
|
+
items: c,
|
|
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 = /* @__PURE__ */ f("div", { class: "
|
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
export {
|
|
286
|
-
|
|
286
|
+
Ee as default
|
|
287
287
|
};
|