@feedmepos/mf-connect 0.1.0-beta.72 → 0.1.0-beta.74
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-CeQ6Tgo4.js → Analytic-CmX1CjHI.js} +11 -11
- package/dist/{App-B94F1eM6.js → App-T0HK84dx.js} +6 -6
- package/dist/{AuditLogs-CduUWfDd.js → AuditLogs-0ERaLqfa.js} +16 -15
- package/dist/{Bin-muOo03RK.js → Bin-C7utgPUn.js} +8 -8
- package/dist/{Broadcast-CSco_Ev_.js → Broadcast-e2sHc8rv.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cfwv0VSC.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-mlnLZOdy.js} +14 -8
- package/dist/{Card-VojKGWaD.js → Card-Bi1q3NGE.js} +164 -155
- package/dist/{Collections-B8dsbCQ6.js → Collections-CJYy94Sc.js} +19 -18
- package/dist/{Credit-Ck_IuJMF.js → Credit-Mbgev3fe.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CkEPB1Ri.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CCIj2_sx.js} +29 -28
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CA1awHcc.js → EffectSheet.vue_vue_type_style_index_0_lang-CGiI-3HJ.js} +6 -6
- package/dist/{Experience-CP6Lmado.js → Experience-BE9onJDQ.js} +9 -9
- package/dist/{Game-BfkyvrxR.js → Game-CxVwNVRg.js} +10 -10
- package/dist/{Index-CsjZUBT3.js → Index-NdgHNGa3.js} +10 -10
- package/dist/{Marketing-D-P76e73.js → Marketing-Deds20Ye.js} +6 -6
- package/dist/{Member-DplZWFjl.js → Member-BiwCcUbl.js} +106 -97
- package/dist/{MemberList-rmdZQk6G.js → MemberList-DCR44Sk4.js} +287 -282
- package/dist/{MemberTransactions-BLANcbUF.js → MemberTransactions-CYPPTT9t.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cfks94UO.js → MessageInput.vue_vue_type_script_setup_true_lang-j3cmjEyQ.js} +7 -6
- package/dist/{Mission-n-ctxUhM.js → Mission-DYk_Vv35.js} +10 -10
- package/dist/{Overview-DZlApGRk.js → Overview-CsRent_o.js} +20 -19
- package/dist/{Point-COtP0jzH.js → Point-BV5qm3r7.js} +9 -9
- package/dist/{Promotion-DxOTF9a5.js → Promotion-ieE1dY52.js} +10 -10
- package/dist/{Queue-CEIn9dZ3.js → Queue-DkIuyH5Y.js} +76 -67
- package/dist/{Record-3ZeBNdJL.js → Record-BO4eYofF.js} +17 -16
- package/dist/{Reward-QiI0aowk.js → Reward-DcoWW28K.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Cz0tKJVt.js → RewardGroup.vue_vue_type_script_setup_true_lang-6s4ElOcQ.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CrfQAYP9.js → RuleGroup.vue_vue_type_script_setup_true_lang-l-qayOI8.js} +15 -14
- package/dist/Segment-dTpsHadj.js +794 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-C39_J7OP.js → SelectItems.vue_vue_type_script_setup_true_lang-Dei-K3cP.js} +2 -2
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-B0fwBafY.js +188 -0
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DC1qZokI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Dl30f-41.js} +3 -3
- package/dist/{Setting-BUQfywpm.js → Setting-Cnv36Pu0.js} +16 -15
- package/dist/{Store-STKhCXHd.js → Store-CTK5EtS1.js} +28 -27
- package/dist/{StoreRewards-BbyKdrXv.js → StoreRewards-CnHiDS7A.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BWilzG-3.js → StoreTransactions.vue_vue_type_script_setup_true_lang-o8BduJhH.js} +27 -26
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Cau0aOLA.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CDCQIDZh.js} +1 -1
- package/dist/{Tier-yaEA-a64.js → Tier-CcN8habX.js} +22 -21
- package/dist/{Title-BZvC2-Jh.js → Title-DtsvtR89.js} +19 -19
- package/dist/{Transaction-D8Q5tgJB.js → Transaction-NylYY_6m.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BhhdZbR2.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Book86tM.js} +6 -6
- package/dist/{Voucher-troykwYN.js → Voucher-z6XGrJrc.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CA-pu2mD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C0TGO7Cl.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DGgUG7Qj.js → ZodTextField.vue_vue_type_script_setup_true_lang-Du4wOEBs.js} +1 -1
- package/dist/{app-CPknSRjl.js → app-Dew6WljN.js} +1 -1
- package/dist/{app-B89lfub2.js → app-nEHwJezD.js} +34 -34
- package/dist/app.js +1 -1
- package/dist/{business-hK-Tmb19.js → business-CXTuYix4.js} +1 -1
- package/dist/{campaign-Bz2phAKq.js → campaign-BZs7RPUJ.js} +9 -9
- package/dist/{campaign-DxBhaMAH.js → campaign-C18IUOcO.js} +2 -2
- package/dist/{campaign.enum-CaW4wKab.js → campaign.enum-C7o8B5Cf.js} +1 -1
- package/dist/{campaign.fn-VlvF65nU.js → campaign.fn-CP0x2e6M.js} +2 -2
- package/dist/{collectible.enum-CL4zeuNW.js → collectible.enum-QJSyw8dX.js} +1 -1
- package/dist/{collection.fn-DonS6vla.js → collection.fn-_9GY8WUr.js} +2 -2
- package/dist/{dto-Do28C6Us.js → dto-Cwr4tMef.js} +4 -4
- package/dist/{effect-BNoEad9s.js → effect-C3dyQmVR.js} +1 -1
- package/dist/{email-addresses-DVlPQOMF.js → email-addresses-DNwlAZV3.js} +1 -1
- package/dist/{export-B2HL-u8e.js → export-C11NCFgO.js} +3 -3
- package/dist/{helper-B-GwBl7o.js → helper-HHvZd4M_.js} +1 -1
- package/dist/{index-DziwUgQ3.js → index-8MnjnTtN.js} +1 -1
- package/dist/{index-CJfbls_c.js → index-B0zezW3E.js} +1 -1
- package/dist/{index-DLBH6Pz7.js → index-BzIzz7cS.js} +3 -3
- package/dist/{index-DrNO2330.js → index-CCTd1lLH.js} +437 -426
- package/dist/{index-CyLhq-Cu.js → index-CIKyf9ft.js} +1 -1
- package/dist/{index-DDyqoK-5.js → index-CL0DvpMU.js} +1 -1
- package/dist/{index-B1zeyOTK.js → index-CT4Hyf4w.js} +6 -6
- package/dist/{index-zetVbSGH.js → index-CyXkN89w.js} +2 -2
- package/dist/{index-BgaXtrUK.js → index-DJ-RhIDQ.js} +1 -1
- package/dist/{index-C00luv9F.js → index-DM6Zvwcl.js} +1 -1
- package/dist/{index-DdMBH5E3.js → index-DyfTL0NG.js} +1 -1
- package/dist/{plugins-0WrJ_ypd.js → index-jdsxOVkp.js} +2606 -2811
- package/dist/{index-DoLnZ0VU.js → index-yrwLRgg0.js} +3 -3
- package/dist/{index.esm2017-DUs_L3s2.js → index.esm2017-BMFlbxdx.js} +3 -3
- package/dist/{loading-BfH5PK5q.js → loading-ClVTDQc6.js} +1 -1
- package/dist/{membership-BSgYE5mw.js → membership-DqMQPgdF.js} +54 -48
- package/dist/{money-CXqLCoho.js → money-COS1BMzW.js} +1 -1
- package/dist/{number-CGz3yWyy.js → number-BuP5vRmO.js} +1 -1
- package/dist/{objectid-CH4l4E6N.js → objectid-B3LrrWLD.js} +1 -1
- package/dist/plugins-DWMQmNXZ.js +208 -0
- package/dist/{reward-DdFCP398.js → reward-Dh8eazpS.js} +1 -1
- package/dist/{rule-Fkz4cRmK.js → rule-CaiZcfw4.js} +3 -3
- package/dist/{rule-builder-Cq_MnX2R.js → rule-builder-DOHyUDI2.js} +1 -1
- package/dist/{template-DzWwfIhG.js → template-BZCh-lEH.js} +4 -4
- package/dist/{trigger-z_YD5Ld4.js → trigger-CUY_7-so.js} +4 -4
- package/dist/{user-qQossvab.js → user-DWsuhUnL.js} +1 -1
- package/dist/{vue-i18n-CeeBM23W.js → vue-i18n-BXjn2dYe.js} +158 -158
- package/dist/{xlsx-BaKm4Is1.js → xlsx-BGsRNT8x.js} +1 -1
- package/package.json +1 -1
- package/dist/Segment-Df47WLC6.js +0 -568
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CCketLSU.js +0 -186
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import "./index-
|
|
3
|
-
import { useDialogChild as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import { c as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
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-8MnjnTtN.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-BXjn2dYe.js";
|
|
5
|
+
import "./index-CT4Hyf4w.js";
|
|
6
|
+
import { c as I } from "./index-CCTd1lLH.js";
|
|
7
|
+
import "./index-CyXkN89w.js";
|
|
8
|
+
import "./index-CL0DvpMU.js";
|
|
9
|
+
import "./index-yrwLRgg0.js";
|
|
10
|
+
import { u as M, w as X } from "./xlsx-BGsRNT8x.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-DyfTL0NG.js";
|
|
15
|
+
import { R as T } from "./app-nEHwJezD.js";
|
|
16
|
+
var V = { exports: {} };
|
|
17
|
+
(function(C, u) {
|
|
13
18
|
(function(d, c) {
|
|
14
19
|
c();
|
|
15
|
-
})(
|
|
20
|
+
})(g, function() {
|
|
16
21
|
function d(e, t) {
|
|
17
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;
|
|
18
23
|
}
|
|
19
|
-
function c(e, t,
|
|
24
|
+
function c(e, t, l) {
|
|
20
25
|
var n = new XMLHttpRequest();
|
|
21
26
|
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
22
|
-
p(n.response, t,
|
|
27
|
+
p(n.response, t, l);
|
|
23
28
|
}, n.onerror = function() {
|
|
24
29
|
console.error("could not download file");
|
|
25
30
|
}, n.send();
|
|
@@ -41,54 +46,54 @@ var N = { exports: {} };
|
|
|
41
46
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
|
-
var s = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof
|
|
45
|
-
} : "download" in HTMLAnchorElement.prototype && !R ? function(e, t,
|
|
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) {
|
|
46
51
|
var n = s.URL || s.webkitURL, o = document.createElement("a");
|
|
47
|
-
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,
|
|
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() {
|
|
48
53
|
n.revokeObjectURL(o.href);
|
|
49
54
|
}, 4e4), setTimeout(function() {
|
|
50
55
|
m(o);
|
|
51
56
|
}, 0));
|
|
52
|
-
} : "msSaveOrOpenBlob" in navigator ? function(e, t,
|
|
53
|
-
if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(d(e,
|
|
54
|
-
else if (f(e)) c(e, t,
|
|
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);
|
|
55
60
|
else {
|
|
56
61
|
var n = document.createElement("a");
|
|
57
62
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
58
63
|
m(n);
|
|
59
64
|
});
|
|
60
65
|
}
|
|
61
|
-
} : function(e, t,
|
|
62
|
-
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return c(e, t,
|
|
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);
|
|
63
68
|
var o = e.type === "application/octet-stream", y = /constructor/i.test(s.HTMLElement) || s.safari, v = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
64
69
|
if ((v || o && y || R) && typeof FileReader < "u") {
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
var a =
|
|
70
|
+
var _ = new FileReader();
|
|
71
|
+
_.onloadend = function() {
|
|
72
|
+
var a = _.result;
|
|
68
73
|
a = v ? a : a.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = a : location = a, n = null;
|
|
69
|
-
},
|
|
74
|
+
}, _.readAsDataURL(e);
|
|
70
75
|
} else {
|
|
71
|
-
var
|
|
72
|
-
n ? n.location =
|
|
73
|
-
|
|
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);
|
|
74
79
|
}, 4e4);
|
|
75
80
|
}
|
|
76
81
|
});
|
|
77
|
-
s.saveAs = p.saveAs = p,
|
|
82
|
+
s.saveAs = p.saveAs = p, C.exports = p;
|
|
78
83
|
});
|
|
79
|
-
})(
|
|
80
|
-
var
|
|
81
|
-
const
|
|
84
|
+
})(V);
|
|
85
|
+
var ee = V.exports;
|
|
86
|
+
const te = { class: "space-y-8 mb-10" }, ne = { class: "flex justify-end" }, oe = {
|
|
82
87
|
key: 1,
|
|
83
88
|
class: /* @__PURE__ */ Y([
|
|
84
89
|
"flex items-center",
|
|
85
90
|
"border border-fm-color-neutral-gray-300",
|
|
86
91
|
"p-16 space-x-16 rounded-md"
|
|
87
92
|
])
|
|
88
|
-
},
|
|
93
|
+
}, ae = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, ie = /* @__PURE__ */ D({
|
|
89
94
|
__name: "ImportMemberDialog",
|
|
90
|
-
setup(
|
|
91
|
-
const { t: u } =
|
|
95
|
+
setup(C) {
|
|
96
|
+
const { t: u } = N(), { emitData: d } = Q(), c = A(null), f = A(null), m = A({
|
|
92
97
|
resetCollectionExpiryBalance: !0
|
|
93
98
|
}), s = [
|
|
94
99
|
"Id",
|
|
@@ -138,7 +143,7 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
|
|
|
138
143
|
t();
|
|
139
144
|
break;
|
|
140
145
|
case "xlsx":
|
|
141
|
-
|
|
146
|
+
l();
|
|
142
147
|
break;
|
|
143
148
|
}
|
|
144
149
|
}
|
|
@@ -146,20 +151,20 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
|
|
|
146
151
|
const n = new Blob([s.join(",")], {
|
|
147
152
|
type: "text/csv;charset=utf-8;"
|
|
148
153
|
});
|
|
149
|
-
|
|
154
|
+
ee.saveAs(n, "ImportMemberTemplate.csv");
|
|
150
155
|
}
|
|
151
|
-
function
|
|
152
|
-
const n =
|
|
153
|
-
|
|
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");
|
|
154
159
|
}
|
|
155
|
-
return
|
|
160
|
+
return P(c, () => {
|
|
156
161
|
d({ file: c.value, config: m.value });
|
|
157
162
|
}), (n, o) => {
|
|
158
|
-
const y =
|
|
159
|
-
return
|
|
160
|
-
x("div",
|
|
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, [
|
|
161
166
|
o[3] || (o[3] = x("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
|
|
162
|
-
|
|
167
|
+
E(y, {
|
|
163
168
|
"model-value": r(m).resetCollectionExpiryBalance ?? !0,
|
|
164
169
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => r(m).resetCollectionExpiryBalance = a),
|
|
165
170
|
label: "Replace Existing Free Credit",
|
|
@@ -167,17 +172,17 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
|
|
|
167
172
|
"label-placement": "right"
|
|
168
173
|
}, null, 8, ["model-value"])
|
|
169
174
|
]),
|
|
170
|
-
x("div",
|
|
171
|
-
|
|
172
|
-
"menu-button":
|
|
173
|
-
|
|
175
|
+
x("div", ne, [
|
|
176
|
+
E(k, null, {
|
|
177
|
+
"menu-button": L(() => [
|
|
178
|
+
E(v, {
|
|
174
179
|
variant: "tertiary",
|
|
175
180
|
icon: "download",
|
|
176
181
|
label: "Download Template"
|
|
177
182
|
})
|
|
178
183
|
]),
|
|
179
|
-
default:
|
|
180
|
-
(
|
|
184
|
+
default: L(() => [
|
|
185
|
+
(F(), B(S, null, H(R, (a) => E(_, {
|
|
181
186
|
key: a.value,
|
|
182
187
|
icon: a.icon,
|
|
183
188
|
label: a.label,
|
|
@@ -188,19 +193,19 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
|
|
|
188
193
|
_: 1
|
|
189
194
|
})
|
|
190
195
|
]),
|
|
191
|
-
r(c) ? (
|
|
192
|
-
|
|
193
|
-
variant: r(
|
|
196
|
+
r(c) ? (F(), B("div", oe, [
|
|
197
|
+
E(v, {
|
|
198
|
+
variant: r(O).Tertiary,
|
|
194
199
|
"prepend-icon": "attach_file"
|
|
195
200
|
}, null, 8, ["variant"]),
|
|
196
|
-
x("p",
|
|
201
|
+
x("p", ae, q(r(c).name), 1),
|
|
197
202
|
x("label", {
|
|
198
203
|
ref_key: "fileLabelRef",
|
|
199
204
|
ref: f,
|
|
200
205
|
htmlFor: "file"
|
|
201
206
|
}, [
|
|
202
|
-
|
|
203
|
-
variant: r(
|
|
207
|
+
E(v, {
|
|
208
|
+
variant: r(O).Plain,
|
|
204
209
|
label: r(u)("Replace File"),
|
|
205
210
|
onClick: o[2] || (o[2] = () => {
|
|
206
211
|
var a;
|
|
@@ -216,7 +221,7 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
|
|
|
216
221
|
onChange: p
|
|
217
222
|
}, null, 32)
|
|
218
223
|
], 512)
|
|
219
|
-
])) : (
|
|
224
|
+
])) : (F(), j(i, {
|
|
220
225
|
key: 0,
|
|
221
226
|
onFileUpload: o[1] || (o[1] = (a) => c.value = a),
|
|
222
227
|
accept: ".csv, .xlsx",
|
|
@@ -225,11 +230,11 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
|
|
|
225
230
|
], 64);
|
|
226
231
|
};
|
|
227
232
|
}
|
|
228
|
-
}), le = { class: "px-24 flex flex-col gap-y-16 pb-24" },
|
|
233
|
+
}), le = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ke = /* @__PURE__ */ D({
|
|
229
234
|
__name: "Member",
|
|
230
|
-
setup(
|
|
231
|
-
var v,
|
|
232
|
-
const u =
|
|
235
|
+
setup(C) {
|
|
236
|
+
var v, _, k;
|
|
237
|
+
const u = Z(), { t: d } = N(), c = z(), f = W(), m = K(), s = {
|
|
233
238
|
label: d("connect.loyalty.member.import"),
|
|
234
239
|
value: "import",
|
|
235
240
|
isPrimary: !0,
|
|
@@ -242,12 +247,12 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
|
|
|
242
247
|
}, p = [
|
|
243
248
|
{
|
|
244
249
|
label: d("connect.loyalty.member.tabs.member_list"),
|
|
245
|
-
value:
|
|
246
|
-
actions: (
|
|
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] : []
|
|
247
252
|
}
|
|
248
|
-
], e =
|
|
249
|
-
var a, b,
|
|
250
|
-
return u.currentRoute.value.name !=
|
|
253
|
+
], e = G(() => {
|
|
254
|
+
var a, b, w;
|
|
255
|
+
return u.currentRoute.value.name != T["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
|
|
251
256
|
title: t.value.label,
|
|
252
257
|
actions: t.value.actions,
|
|
253
258
|
description: void 0
|
|
@@ -255,74 +260,78 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
|
|
|
255
260
|
backButton: !0,
|
|
256
261
|
title: d("connect.loyalty.member.title"),
|
|
257
262
|
actions: [],
|
|
258
|
-
description: `${(a =
|
|
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})`,
|
|
259
264
|
onBackButton: async () => {
|
|
260
|
-
await u.push({ name:
|
|
265
|
+
await u.push({ name: T["$connect-LOYALTY_MEMBER_LIST"] });
|
|
261
266
|
}
|
|
262
267
|
});
|
|
263
268
|
}), t = A(
|
|
264
|
-
p.find((
|
|
265
|
-
),
|
|
266
|
-
async function n(
|
|
267
|
-
await u.push({ name:
|
|
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 });
|
|
268
273
|
}
|
|
269
274
|
async function o() {
|
|
270
275
|
c.open({
|
|
271
276
|
title: "Upload File",
|
|
272
277
|
closeButton: !0,
|
|
273
278
|
dismissAway: !1,
|
|
274
|
-
contentComponent:
|
|
279
|
+
contentComponent: ie,
|
|
275
280
|
primaryActions: { text: "Import", close: !1 }
|
|
276
|
-
}).onPrimary(async (
|
|
277
|
-
if (!
|
|
281
|
+
}).onPrimary(async (i) => {
|
|
282
|
+
if (!i) {
|
|
278
283
|
f.open({
|
|
279
284
|
type: "error",
|
|
280
285
|
title: "Please upload a file"
|
|
281
286
|
});
|
|
282
287
|
return;
|
|
283
288
|
}
|
|
284
|
-
const { file: a, config: b } =
|
|
289
|
+
const { file: a, config: b } = i;
|
|
285
290
|
if (!a)
|
|
286
291
|
f.open({
|
|
287
292
|
type: "error",
|
|
288
293
|
title: "Please upload a file"
|
|
289
294
|
});
|
|
290
295
|
else {
|
|
291
|
-
const
|
|
292
|
-
|
|
296
|
+
const w = new FormData();
|
|
297
|
+
w.append("file", a), w.append("config", JSON.stringify(b)), await U.import(w), f.open({
|
|
293
298
|
type: "info",
|
|
294
299
|
title: "Import begins soon. Check Queue for updates.",
|
|
295
300
|
action: "View",
|
|
296
301
|
onAction: async () => {
|
|
297
302
|
await u.push({
|
|
298
|
-
name:
|
|
303
|
+
name: T["$connect-QUEUE"],
|
|
304
|
+
query: { type: [I.enum.MEMBER_IMPORTED] }
|
|
299
305
|
});
|
|
300
306
|
}
|
|
301
307
|
}), c.close();
|
|
302
308
|
}
|
|
303
309
|
});
|
|
304
310
|
}
|
|
305
|
-
function y(
|
|
306
|
-
switch (
|
|
311
|
+
function y(i) {
|
|
312
|
+
switch (i) {
|
|
307
313
|
case "import":
|
|
308
314
|
o();
|
|
309
315
|
break;
|
|
310
316
|
case "queue":
|
|
311
|
-
u.push({
|
|
317
|
+
u.push({
|
|
318
|
+
name: T["$connect-QUEUE"],
|
|
319
|
+
query: { type: [I.enum.MEMBER_IMPORTED] }
|
|
320
|
+
});
|
|
312
321
|
break;
|
|
313
322
|
}
|
|
314
323
|
}
|
|
315
|
-
return
|
|
324
|
+
return P(
|
|
316
325
|
() => u.currentRoute.value.name,
|
|
317
|
-
async (
|
|
318
|
-
t.value = p.find((b) => b.value ===
|
|
326
|
+
async (i) => {
|
|
327
|
+
t.value = p.find((b) => b.value === i) ?? p[0];
|
|
319
328
|
const a = u.currentRoute.value.params.id;
|
|
320
|
-
a && (
|
|
329
|
+
a && (l.value = await U.readById(a)), await u.push({ name: i });
|
|
321
330
|
}
|
|
322
|
-
), (
|
|
323
|
-
const b =
|
|
324
|
-
return
|
|
325
|
-
|
|
331
|
+
), (i, a) => {
|
|
332
|
+
const b = h("FmPageHead"), w = h("FmTabs"), $ = h("RouterView");
|
|
333
|
+
return F(), B(S, null, [
|
|
334
|
+
E(b, {
|
|
326
335
|
actions: r(e).actions,
|
|
327
336
|
title: r(e).title,
|
|
328
337
|
description: r(e).description,
|
|
@@ -331,18 +340,18 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
|
|
|
331
340
|
"onClick:action": y
|
|
332
341
|
}, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
|
|
333
342
|
x("div", le, [
|
|
334
|
-
r(u).currentRoute.value.name != r(
|
|
343
|
+
r(u).currentRoute.value.name != r(T)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (F(), j(w, {
|
|
335
344
|
key: 0,
|
|
336
345
|
"model-value": r(t).value,
|
|
337
346
|
items: p,
|
|
338
347
|
"onUpdate:modelValue": n
|
|
339
|
-
}, null, 8, ["model-value"])) :
|
|
340
|
-
|
|
348
|
+
}, null, 8, ["model-value"])) : J("", !0),
|
|
349
|
+
E($)
|
|
341
350
|
])
|
|
342
351
|
], 64);
|
|
343
352
|
};
|
|
344
353
|
}
|
|
345
354
|
});
|
|
346
355
|
export {
|
|
347
|
-
|
|
356
|
+
ke as default
|
|
348
357
|
};
|