@feedmepos/mf-connect 0.1.24-prod → 0.1.25-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-DH3odpBh.js → Analytic-DmQ3d3sr.js} +18 -17
- package/dist/{App-DT9d3Bm2.js → App-BK6DtUuH.js} +6 -6
- package/dist/{Bin-CEFG1nRH.js → Bin-B7F2tXkP.js} +19 -18
- package/dist/{Broadcast-B_rv159-.js → Broadcast-6n2TGBgu.js} +13 -12
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DzD9-r4-.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-_hoK2zXW.js} +14 -8
- package/dist/{Card-Dyya8J2U.js → Card-D6AU_9dV.js} +57 -55
- package/dist/{Collections-Dl2FDFOD.js → Collections-CMbKkYFL.js} +13 -11
- package/dist/{Credit-B9mz3eUI.js → Credit-CqLwf2JA.js} +35 -34
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-TrKmONi5.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js} +28 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CVCgGHg4.js → EffectSheet.vue_vue_type_style_index_0_lang-CaSqYPQ2.js} +6 -6
- package/dist/{Experience-CGwG9JGa.js → Experience-OoJ1ODiZ.js} +13 -12
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
- package/dist/Game-IAfjkExX.js +278 -0
- package/dist/{Index-D0IkkcBH.js → Index-DqHXbokQ.js} +14 -13
- package/dist/{Marketing-HmC8ZXqz.js → Marketing-DIVehK5x.js} +8 -7
- package/dist/Member-BMT7m7s9.js +348 -0
- package/dist/{MemberList-_MFrJqht.js → MemberList-C3JMhLW6.js} +270 -269
- package/dist/{MemberTransactions-kUyU9Qn6.js → MemberTransactions-lQLljdGi.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DypmZY2G.js → MessageInput.vue_vue_type_script_setup_true_lang-DFPEfDUk.js} +7 -7
- package/dist/{Mission-OUjm7KRr.js → Mission-BJsuCVHj.js} +118 -96
- package/dist/{Overview-F2AvMo-g.js → Overview-D1AMq951.js} +63 -62
- package/dist/{Point-K9poYQjB.js → Point-DGffwTWG.js} +11 -10
- package/dist/{Promotion-DpS6PQFU.js → Promotion-Cdu7wiGv.js} +12 -11
- package/dist/Queue-Cm4ekHlP.js +249 -0
- package/dist/{Record-CZMB7xKL.js → Record-B0JjTQ3K.js} +21 -19
- package/dist/{Reward-zMCEkbO5.js → Reward-U0gEl1no.js} +19 -18
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dj73NYhp.js → RewardGroup.vue_vue_type_script_setup_true_lang-CiQHPhkN.js} +13 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-FyuAHi5K.js → RuleGroup.vue_vue_type_script_setup_true_lang-BgKlwCAG.js} +12 -12
- package/dist/{Segment-LthACAfl.js → Segment-BsXsG6Ga.js} +19 -17
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DRe6Gyov.js → SelectItems.vue_vue_type_script_setup_true_lang-hPQP_srV.js} +2 -2
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLPLYvOq.js +188 -0
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Z9Nb9b6-.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-rL9NYAk0.js} +3 -3
- package/dist/{Setting-8ASd681E.js → Setting-DJxzwVSf.js} +20 -19
- package/dist/{Store-C-bmQP0K.js → Store-sTvnMjPJ.js} +24 -23
- package/dist/{StoreRewards-Bu3DWaCn.js → StoreRewards-CffMLGzL.js} +15 -14
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CUPPeZj5.js +994 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Bn7aoYqw.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DwhQONu8.js} +1 -1
- package/dist/{Tier-DDKUGBRg.js → Tier-BbfX13Ns.js} +25 -24
- package/dist/{Title-Cup_EWfZ.js → Title-Bf4fC78d.js} +28 -27
- package/dist/{Transaction-BqvgfyiW.js → Transaction-Ef6ee3WD.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BCkXievQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-w66fAQPQ.js} +6 -6
- package/dist/{Voucher-Dxk6zfcN.js → Voucher-CCH10Wrp.js} +38 -37
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DmswMNi5.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C31OGqSE.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D-UPL1Rc.js → ZodTextField.vue_vue_type_script_setup_true_lang-BqzMSTXs.js} +1 -1
- package/dist/{app-bidojB9R.js → app-D2t3_10I.js} +1 -1
- package/dist/{app-BDUrJlXZ.js → app-F5UOtzJ-.js} +235 -166
- package/dist/app.js +1 -1
- package/dist/{business-CFOn3-Hz.js → business-NXwwmhbL.js} +1 -1
- package/dist/{campaign-DyzzIbnA.js → campaign-BWkn-fFd.js} +9 -9
- package/dist/{campaign-BVIiGyq9.js → campaign-Iww5PvJV.js} +2 -2
- package/dist/{campaign.enum-aFjayQfJ.js → campaign.enum--kHpbveJ.js} +1 -1
- package/dist/{campaign.fn-BKADpFTx.js → campaign.fn-D0wKIDQf.js} +142 -142
- package/dist/{collectible.enum-vEUgo0YF.js → collectible.enum-BpsFdy57.js} +1 -1
- package/dist/{collection.fn-D2Kbz9yq.js → collection.fn-B-_j1A52.js} +2 -2
- package/dist/{dto-CKxtFHko.js → dto-CjOlAnWp.js} +4 -4
- package/dist/{effect-BEWKDhDB.js → effect-BMe9xjgR.js} +1 -1
- package/dist/{email-addresses-BWDg5Wvf.js → email-addresses-BwGoUD7O.js} +1 -1
- package/dist/{export-DO-WeD6l.js → export-Bsk4-mYp.js} +3 -3
- package/dist/{helper-CSGr0Zgt.js → helper-CiybWTiD.js} +1 -1
- package/dist/{index-CUlYeKKH.js → index-7QyaWVGn.js} +1 -1
- package/dist/{index-BgJVKNYg.js → index-BAW03Ygy.js} +24 -21
- package/dist/{index--Mrx1FRI.js → index-BG_-ksol.js} +1 -1
- package/dist/{index-CEjeBL2U.js → index-COTHSMx7.js} +1 -1
- package/dist/{index-Dw_jc7Et.js → index-CRa7QWQZ.js} +3 -3
- package/dist/{index-DVsh-nBE.js → index-Cs0QJDgH.js} +1 -1
- package/dist/{index-UVHHFXyh.js → index-Cu28MWwC.js} +1162 -1129
- package/dist/{index-DSBnWOie.js → index-CvKxhzaQ.js} +1 -1
- package/dist/{index-Bg3caQS6.js → index-D7AjQ5_0.js} +1273 -1273
- package/dist/{index-BV4M35iK.js → index-OLChRkvG.js} +2 -2
- package/dist/{index-CFXFhGs9.js → index-WxOdPYZc.js} +1 -1
- package/dist/{index-CoMMyOsj.js → index-eJ4ofwfd.js} +10 -10
- package/dist/{index.esm2017-CDzvT_fP.js → index.esm2017-DMXNt25X.js} +137 -137
- package/dist/loading-CScT_lmc.js +71 -0
- package/dist/{membership-DK9FNo2Y.js → membership-DenkPJ5U.js} +3 -3
- package/dist/{money-DJYiw0es.js → money-B5hybQjS.js} +1 -1
- package/dist/{number-BjhqQBza.js → number-anjTvmBi.js} +1 -1
- package/dist/objectid-BHmtsFsO.js +145 -0
- package/dist/{loading-CWihCJvJ.js → plugins-VONaCeWn.js} +1535 -1601
- package/dist/{reward-DlE5Zt3d.js → reward-FwctH8OP.js} +1 -1
- package/dist/{rule-a2_WCjR8.js → rule-BqLIsoB6.js} +3 -3
- package/dist/{rule-builder-Q8iGSpDV.js → rule-builder-EwN0tKLd.js} +1 -1
- package/dist/{template-3faxO3XM.js → template-bVlMDuHk.js} +4 -4
- package/dist/{trigger-Cnvhgqkj.js → trigger-Bh7yq_a0.js} +11 -11
- package/dist/usePagination-JoYaROkV.js +223 -0
- package/dist/{user-CoiXBmet.js → user-z65INcT0.js} +1 -1
- package/dist/vue-i18n-59FFzX8P.js +2365 -0
- package/dist/{usePagination-dNrSGtRV.js → xlsx-D9VDeVL9.js} +2979 -3200
- package/package.json +3 -1
- package/dist/Game-DbhOlio1.js +0 -256
- package/dist/Member-NSQ2nHzW.js +0 -69
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CDRpkUaP.js +0 -1105
- package/dist/objectid-Cep7PkzN.js +0 -145
- package/dist/vue-i18n-B2XH0K8P.js +0 -2365
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { defineComponent as L, ref as p, computed as C, onMounted as P, resolveComponent as i, openBlock as $, createBlock as D, unref as e, isRef as H, withCtx as b, createElementVNode as S, createVNode as c, toDisplayString as w } from "vue";
|
|
2
|
+
import { u as O } from "./loading-CScT_lmc.js";
|
|
3
|
+
import { p as Z } from "./plugins-VONaCeWn.js";
|
|
4
|
+
import { u as q } from "./app-wDQR6dpb.js";
|
|
5
|
+
import { m as z } from "./index-BAW03Ygy.js";
|
|
6
|
+
import { b as G } from "./index-Cu28MWwC.js";
|
|
7
|
+
import "./index-OLChRkvG.js";
|
|
8
|
+
import "./index-eJ4ofwfd.js";
|
|
9
|
+
import "./index-7QyaWVGn.js";
|
|
10
|
+
import "./index-CRa7QWQZ.js";
|
|
11
|
+
import { Z as d } from "./zod-Bg2FbC-D.js";
|
|
12
|
+
import { z as Y } from "./app-F5UOtzJ-.js";
|
|
13
|
+
import { u as j } from "./vue-i18n-59FFzX8P.js";
|
|
14
|
+
import { c as J } from "./index-CvKxhzaQ.js";
|
|
15
|
+
const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-400" }, W = { class: "flex items-center gap-8" }, fe = /* @__PURE__ */ L({
|
|
16
|
+
__name: "SendCollectionSheet",
|
|
17
|
+
emits: ["success"],
|
|
18
|
+
setup(X, { expose: V, emit: I }) {
|
|
19
|
+
const { t: l } = j(), { minor: k } = O, A = I, n = p({
|
|
20
|
+
memberId: [],
|
|
21
|
+
amount: 1,
|
|
22
|
+
ref: ""
|
|
23
|
+
}), h = p(null), f = p(), v = p([]), r = p(!1), _ = p(), T = G.extend({
|
|
24
|
+
ref: Y.string().max(50, "Reference must be at most 50 characters").optional()
|
|
25
|
+
}), F = C(() => {
|
|
26
|
+
var a;
|
|
27
|
+
switch ((a = h.value) == null ? void 0 : a.type) {
|
|
28
|
+
case "MISSION":
|
|
29
|
+
return l("connect.sendCollectionSheet.stamp");
|
|
30
|
+
case "GAME":
|
|
31
|
+
return l("connect.sendCollectionSheet.game_token");
|
|
32
|
+
default:
|
|
33
|
+
return "Unknown";
|
|
34
|
+
}
|
|
35
|
+
}), u = C(() => {
|
|
36
|
+
const a = T.safeParse(n.value);
|
|
37
|
+
return a.success ? [] : a.error.errors;
|
|
38
|
+
});
|
|
39
|
+
function M(a) {
|
|
40
|
+
r.value = !0, h.value = a.campaign, f.value = null, n.value = {
|
|
41
|
+
memberId: [],
|
|
42
|
+
amount: 1,
|
|
43
|
+
ref: ""
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function g() {
|
|
47
|
+
r.value = !1;
|
|
48
|
+
}
|
|
49
|
+
async function y(a) {
|
|
50
|
+
const t = await z.read({
|
|
51
|
+
limit: 25,
|
|
52
|
+
skip: 0,
|
|
53
|
+
sortBy: "_id",
|
|
54
|
+
search: a,
|
|
55
|
+
descending: !1
|
|
56
|
+
});
|
|
57
|
+
v.value = t.resources.map((s) => ({
|
|
58
|
+
label: `${s.name} (${s.phoneNumber})`,
|
|
59
|
+
value: s._id
|
|
60
|
+
}));
|
|
61
|
+
const m = 100;
|
|
62
|
+
await new Promise((s) => setTimeout(s, m));
|
|
63
|
+
}
|
|
64
|
+
async function U() {
|
|
65
|
+
var t;
|
|
66
|
+
await Z.confirm(
|
|
67
|
+
l("connect.sendCollectionSheet.confirmation_message", {
|
|
68
|
+
amount: n.value.amount,
|
|
69
|
+
type: F.value,
|
|
70
|
+
memberName: f.value ? (t = v.value.find((m) => m.value === f.value)) == null ? void 0 : t.label : "Unknown Member"
|
|
71
|
+
}),
|
|
72
|
+
l("connect.common.confirm"),
|
|
73
|
+
l("connect.common.confirm"),
|
|
74
|
+
l("connect.common.cancel")
|
|
75
|
+
) && await k(
|
|
76
|
+
async () => {
|
|
77
|
+
var m;
|
|
78
|
+
await J.sendCollection((m = h.value) == null ? void 0 : m._id.toString(), {
|
|
79
|
+
memberId: n.value.memberId,
|
|
80
|
+
amount: n.value.amount,
|
|
81
|
+
ref: n.value.ref
|
|
82
|
+
}), await A("success"), g();
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
message: "Sending claim(s)",
|
|
86
|
+
successMessage: "Claim(s) created"
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
return V({
|
|
91
|
+
showSheet: M,
|
|
92
|
+
hideSheet: g
|
|
93
|
+
}), P(async () => {
|
|
94
|
+
await y("");
|
|
95
|
+
}), (a, t) => {
|
|
96
|
+
const m = i("FmCard"), s = i("FmSelect"), B = i("FmStepperField"), N = i("FmTextField"), E = i("FmForm"), x = i("FmButton"), R = i("FmSideSheet");
|
|
97
|
+
return $(), D(R, {
|
|
98
|
+
"max-width": 560,
|
|
99
|
+
"dismiss-away": !0,
|
|
100
|
+
header: e(l)("connect.sendCollectionSheet.title", {
|
|
101
|
+
type: e(F)
|
|
102
|
+
}),
|
|
103
|
+
modelValue: e(r),
|
|
104
|
+
"onUpdate:modelValue": [
|
|
105
|
+
t[5] || (t[5] = (o) => H(r) ? r.value = o : null),
|
|
106
|
+
t[6] || (t[6] = (o) => r.value = o)
|
|
107
|
+
]
|
|
108
|
+
}, {
|
|
109
|
+
"side-sheet-footer": b(() => [
|
|
110
|
+
S("div", W, [
|
|
111
|
+
c(x, {
|
|
112
|
+
label: "Send",
|
|
113
|
+
loading: e(q)().isLoading,
|
|
114
|
+
onClick: t[3] || (t[3] = async () => {
|
|
115
|
+
var o;
|
|
116
|
+
return (o = e(_)) == null ? void 0 : o.validateInputs();
|
|
117
|
+
})
|
|
118
|
+
}, null, 8, ["loading"]),
|
|
119
|
+
c(x, {
|
|
120
|
+
label: "Cancel",
|
|
121
|
+
type: "button",
|
|
122
|
+
variant: "tertiary",
|
|
123
|
+
onClick: t[4] || (t[4] = (o) => r.value = !1)
|
|
124
|
+
})
|
|
125
|
+
])
|
|
126
|
+
]),
|
|
127
|
+
default: b(() => [
|
|
128
|
+
c(E, {
|
|
129
|
+
class: "space-y-16",
|
|
130
|
+
ref_key: "form",
|
|
131
|
+
ref: _,
|
|
132
|
+
onValidationSuccess: U,
|
|
133
|
+
blameFormChildOnValidationFailed: ""
|
|
134
|
+
}, {
|
|
135
|
+
default: b(() => [
|
|
136
|
+
c(m, {
|
|
137
|
+
variant: "outlined",
|
|
138
|
+
class: "p-16"
|
|
139
|
+
}, {
|
|
140
|
+
default: b(() => {
|
|
141
|
+
var o;
|
|
142
|
+
return [
|
|
143
|
+
S("div", K, w(e(l)("connect.campaign.common.campaign")), 1),
|
|
144
|
+
S("div", Q, w((o = e(h)) == null ? void 0 : o.name), 1)
|
|
145
|
+
];
|
|
146
|
+
}),
|
|
147
|
+
_: 1
|
|
148
|
+
}),
|
|
149
|
+
c(s, {
|
|
150
|
+
"model-value": e(f),
|
|
151
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => {
|
|
152
|
+
e(n).memberId = [o], f.value = o;
|
|
153
|
+
}),
|
|
154
|
+
label: "Select member",
|
|
155
|
+
searchable: "",
|
|
156
|
+
items: e(v),
|
|
157
|
+
onSearch: y,
|
|
158
|
+
rules: [(o) => !!o || "Member is required"],
|
|
159
|
+
"helper-text": "Type to search member",
|
|
160
|
+
"helper-state": e(d).helperState(e(u), "memberId"),
|
|
161
|
+
"error-text": e(d).helperText(e(u), "memberId")
|
|
162
|
+
}, null, 8, ["model-value", "items", "rules", "helper-state", "error-text"]),
|
|
163
|
+
c(B, {
|
|
164
|
+
modelValue: e(n).amount,
|
|
165
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e(n).amount = o),
|
|
166
|
+
label: "Amount",
|
|
167
|
+
"helper-state": e(d).helperState(e(u), "amount"),
|
|
168
|
+
"helper-text": e(d).helperText(e(u), "amount")
|
|
169
|
+
}, null, 8, ["modelValue", "helper-state", "helper-text"]),
|
|
170
|
+
c(N, {
|
|
171
|
+
modelValue: e(n).ref,
|
|
172
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => e(n).ref = o),
|
|
173
|
+
label: "Reference (optional)",
|
|
174
|
+
"helper-state": e(d).helperState(e(u), "ref"),
|
|
175
|
+
"helper-text": e(d).helperText(e(u), "ref")
|
|
176
|
+
}, null, 8, ["modelValue", "helper-state", "helper-text"])
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 512)
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["header", "modelValue"]);
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
export {
|
|
187
|
+
fe as _
|
|
188
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as L, ref as c, watch as S, onMounted as R, resolveComponent as f, openBlock as j, createBlock as B, unref as t, isRef as _, withCtx as V, createElementVNode as v, createVNode as m, toDisplayString as N } from "vue";
|
|
2
2
|
import { J as A } from "./JsonViewer-v8_C7l5N.js";
|
|
3
|
-
import { u as E } from "./loading-
|
|
3
|
+
import { u as E } from "./loading-CScT_lmc.js";
|
|
4
4
|
import { u as P } from "./app-wDQR6dpb.js";
|
|
5
5
|
import { l as U } from "./lodash-B5I3zXaY.js";
|
|
6
|
-
import { m as D } from "./index-
|
|
7
|
-
import { c as J } from "./index-
|
|
6
|
+
import { m as D } from "./index-BAW03Ygy.js";
|
|
7
|
+
import { c as J } from "./index-CvKxhzaQ.js";
|
|
8
8
|
const O = { class: "space-y-16" }, T = { class: "fm-typo-en-body-md-600" }, $ = { class: "flex items-center justify-end" }, q = { class: "flex items-center gap-8" }, ee = /* @__PURE__ */ L({
|
|
9
9
|
__name: "SendVoucherSheet",
|
|
10
10
|
emits: ["success"],
|
|
@@ -2,18 +2,19 @@ import { defineComponent as Xe, ref as H, computed as me, onMounted as Ze, resol
|
|
|
2
2
|
import { h as _t } from "./moment-BWErdI6_.js";
|
|
3
3
|
import { Z as Oe } from "./zod-Bg2FbC-D.js";
|
|
4
4
|
import { useDialog as et } from "@feedmepos/ui-library";
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as Me, l as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
5
|
+
import { u as Et } from "./loading-CScT_lmc.js";
|
|
6
|
+
import { u as At } from "./app-wDQR6dpb.js";
|
|
7
|
+
import { u as Me, l as tt } from "./business-NXwwmhbL.js";
|
|
8
|
+
import { u as nt } from "./membership-DenkPJ5U.js";
|
|
9
|
+
import { a as ot, p as Bt, f as G } from "./plugins-VONaCeWn.js";
|
|
10
|
+
import { r as Mt, i as St } from "./index-Cu28MWwC.js";
|
|
10
11
|
import { _ as Ye } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
11
|
-
import { _ as It } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { M as Pt, _ as Tt } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as Nt } from "./vue-i18n-
|
|
12
|
+
import { _ as It } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DwhQONu8.js";
|
|
13
|
+
import { M as Pt, _ as Tt } from "./MessageInput.vue_vue_type_script_setup_true_lang-DFPEfDUk.js";
|
|
14
|
+
import { u as Nt } from "./vue-i18n-59FFzX8P.js";
|
|
14
15
|
import { useCoreStore as Ut } from "@feedmepos/mf-common";
|
|
15
|
-
import { m as je } from "./index-
|
|
16
|
-
import { S as Lt } from "./index-
|
|
16
|
+
import { m as je } from "./index-COTHSMx7.js";
|
|
17
|
+
import { S as Lt } from "./index-D7AjQ5_0.js";
|
|
17
18
|
import { o as Ft } from "./objectId-dwaoBfJX.js";
|
|
18
19
|
import { a as Rt } from "./object-qECH92oz.js";
|
|
19
20
|
var ie = {}, Dt = function() {
|
|
@@ -1508,12 +1509,12 @@ const In = { class: "flex items-start" }, Pn = /* @__PURE__ */ w("div", null, [
|
|
|
1508
1509
|
], -1), Tn = { class: "flex flex-col gap-16 mt-16" }, Nn = ["src"], Un = /* @__PURE__ */ Xe({
|
|
1509
1510
|
__name: "LinkDeviceDialog",
|
|
1510
1511
|
setup(t) {
|
|
1511
|
-
const e = Me(), i =
|
|
1512
|
+
const e = Me(), i = nt(), r = et(), o = H(), n = H(), a = Sn.crmUrl, l = H(), s = me(() => i.membership), u = me(() => {
|
|
1512
1513
|
var m, d;
|
|
1513
1514
|
return `https://${(m = s.value) != null && m.url ? s.value.url : (d = s.value) == null ? void 0 : d.business}.${a}`;
|
|
1514
1515
|
});
|
|
1515
1516
|
async function f(m) {
|
|
1516
|
-
const d = await
|
|
1517
|
+
const d = await tt.getOtp(m);
|
|
1517
1518
|
return `${u.value}?link-device=${d.otp}`;
|
|
1518
1519
|
}
|
|
1519
1520
|
async function A(m) {
|
|
@@ -1557,7 +1558,7 @@ const In = { class: "flex items-start" }, Pn = /* @__PURE__ */ w("div", null, [
|
|
|
1557
1558
|
class: "mx-auto",
|
|
1558
1559
|
variant: "plain",
|
|
1559
1560
|
icon: "content_copy",
|
|
1560
|
-
onClick: d[2] || (d[2] = (b) => c(
|
|
1561
|
+
onClick: d[2] || (d[2] = (b) => c(ot)(c(l)))
|
|
1561
1562
|
})
|
|
1562
1563
|
])
|
|
1563
1564
|
]),
|
|
@@ -1573,10 +1574,10 @@ const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1573
1574
|
}, Dn = { class: "col-span-2 flex flex-col xs:col-span-3" }, kn = { class: "fm-typo-en-title-sm-800" }, Vn = { class: "space-y-24" }, xn = { class: "space-y-8" }, $n = { class: "fm-typo-en-title-sm-800" }, zn = { class: "fm-typo-body-lg-400" }, Hn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Kn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, On = { class: "space-y-8" }, Yn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, jn = { class: "space-y-8" }, Jn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1), qn = { class: "space-y-8" }, Gn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1), Qn = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1), Xn = { class: "space-y-8" }, Zn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, [
|
|
1574
1575
|
/* @__PURE__ */ ne(" Free Credit as Discount "),
|
|
1575
1576
|
/* @__PURE__ */ w("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
|
|
1576
|
-
], -1), Wn = { class: "space-y-8" }, eo = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, to = { class: "space-y-8" }, no = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), oo = { class: "flex justify-end pb-24" }, ro = { class: "col-span-1 space-y-8 xs:hidden" }, io = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), so = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), ao = { class: "fm-typo-en-body-lg-600" }, lo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), co = { class: "fm-typo-en-body-lg-600" }, uo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), fo = { class: "fm-typo-en-body-lg-600" }, mo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), go = { class: "fm-typo-en-body-lg-600" },
|
|
1577
|
+
], -1), Wn = { class: "space-y-8" }, eo = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, to = { class: "space-y-8" }, no = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), oo = { class: "flex justify-end pb-24" }, ro = { class: "col-span-1 space-y-8 xs:hidden" }, io = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), so = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), ao = { class: "fm-typo-en-body-lg-600" }, lo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), co = { class: "fm-typo-en-body-lg-600" }, uo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), fo = { class: "fm-typo-en-body-lg-600" }, mo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), go = { class: "fm-typo-en-body-lg-600" }, Fo = /* @__PURE__ */ Xe({
|
|
1577
1578
|
__name: "Setting",
|
|
1578
1579
|
setup(t) {
|
|
1579
|
-
const e =
|
|
1580
|
+
const e = At(), i = Ut(), r = Me(), o = nt(), { global: n, minor: a } = Et, l = et(), s = H(), u = H(!1), f = H([]), A = H(null), m = Mt, d = [
|
|
1580
1581
|
(E) => !E || E.length >= 6 || "Invalid URL format, please enter at least 6 characters",
|
|
1581
1582
|
(E) => !E || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(E) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
|
|
1582
1583
|
], v = Qe.appUrl, C = me(() => {
|
|
@@ -1605,13 +1606,13 @@ const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1605
1606
|
});
|
|
1606
1607
|
}
|
|
1607
1608
|
async function P(E) {
|
|
1608
|
-
await
|
|
1609
|
+
await Bt.remove(
|
|
1609
1610
|
"Are you sure you want to unlink this device?",
|
|
1610
1611
|
"Unlink device",
|
|
1611
1612
|
"Unlink"
|
|
1612
1613
|
) && await a(
|
|
1613
1614
|
async () => {
|
|
1614
|
-
await
|
|
1615
|
+
await tt.unregisterDevice(E), await r.readLocationDevices();
|
|
1615
1616
|
},
|
|
1616
1617
|
{
|
|
1617
1618
|
message: "Unlinking device",
|
|
@@ -1703,7 +1704,7 @@ const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1703
1704
|
I(z, {
|
|
1704
1705
|
icon: "content_copy",
|
|
1705
1706
|
variant: "tertiary",
|
|
1706
|
-
onClick: y[1] || (y[1] = (_) => c(
|
|
1707
|
+
onClick: y[1] || (y[1] = (_) => c(ot)(c(C)))
|
|
1707
1708
|
})
|
|
1708
1709
|
]),
|
|
1709
1710
|
_: 1
|
|
@@ -1926,5 +1927,5 @@ const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1926
1927
|
}
|
|
1927
1928
|
});
|
|
1928
1929
|
export {
|
|
1929
|
-
|
|
1930
|
+
Fo as default
|
|
1930
1931
|
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { defineComponent as ee, computed as j, resolveComponent as h, openBlock as g, createBlock as I, withCtx as T, createElementVNode as x, createElementBlock as B, createVNode as i, createCommentVNode as M, toDisplayString as L, unref as e, Fragment as X, renderList as re, ref as R, isRef as oe, reactive as Ke, onMounted as fe, watch as we, toRaw as He, createTextVNode as de, h as qe } from "vue";
|
|
2
2
|
import { _ as Ye } from "./tier-BJDhpH6X.js";
|
|
3
3
|
import { useDialog as Me, useDialogChild as Oe, components as We } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as D, e as he, S as ze } from "./index-
|
|
5
|
-
import {
|
|
6
|
-
import { u as ke, C as me } from "./membership-
|
|
7
|
-
import { a as
|
|
4
|
+
import { c as D, e as he, S as ze } from "./index-D7AjQ5_0.js";
|
|
5
|
+
import { u as Ee } from "./loading-CScT_lmc.js";
|
|
6
|
+
import { u as ke, C as me } from "./membership-DenkPJ5U.js";
|
|
7
|
+
import { a as Je, c as De } from "./object-qECH92oz.js";
|
|
8
8
|
import { _ as ue } from "./lodash-B5I3zXaY.js";
|
|
9
|
-
import {
|
|
9
|
+
import { d as se, a as Ge, p as xe, n as Xe, f as Fe } from "./plugins-VONaCeWn.js";
|
|
10
|
+
import { u as be } from "./vue-i18n-59FFzX8P.js";
|
|
10
11
|
import { Z, g as J, a as G } from "./zod-Bg2FbC-D.js";
|
|
11
|
-
import { z as Q, R as Ze } from "./app-
|
|
12
|
-
import {
|
|
12
|
+
import { z as Q, R as Ze } from "./app-F5UOtzJ-.js";
|
|
13
|
+
import { l as Qe, m as et, n as tt, o as Ae, p as nt } from "./index-Cu28MWwC.js";
|
|
13
14
|
import { u as Se } from "./app-wDQR6dpb.js";
|
|
14
|
-
import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BqzMSTXs.js";
|
|
15
16
|
import { J as Pe } from "./JsonViewer-v8_C7l5N.js";
|
|
16
|
-
import { _ as ot } from "./index-
|
|
17
|
+
import { _ as ot } from "./index-OLChRkvG.js";
|
|
17
18
|
import { _ as at } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
18
19
|
import { _ as lt } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
19
|
-
import { z as st, a as rt } from "./money-
|
|
20
|
-
import { F as it } from "./number-
|
|
21
|
-
import { t as dt } from "./helper-
|
|
22
|
-
import "./index
|
|
23
|
-
import "./index-
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./index-
|
|
26
|
-
import { m as ut } from "./index-
|
|
27
|
-
import { m as Ce } from "./index-
|
|
20
|
+
import { z as st, a as rt } from "./money-B5hybQjS.js";
|
|
21
|
+
import { F as it } from "./number-anjTvmBi.js";
|
|
22
|
+
import { t as dt } from "./helper-CiybWTiD.js";
|
|
23
|
+
import "./index-BG_-ksol.js";
|
|
24
|
+
import "./index-eJ4ofwfd.js";
|
|
25
|
+
import "./index-7QyaWVGn.js";
|
|
26
|
+
import "./index-CRa7QWQZ.js";
|
|
27
|
+
import { m as ut } from "./index-BAW03Ygy.js";
|
|
28
|
+
import { m as Ce } from "./index-COTHSMx7.js";
|
|
28
29
|
import { useRouter as ct } from "vue-router";
|
|
29
30
|
function je(v) {
|
|
30
31
|
return se.DineroFactory(v).toUnit();
|
|
@@ -609,7 +610,7 @@ const Nt = { class: "space-y-8" }, Dt = {
|
|
|
609
610
|
i(c, {
|
|
610
611
|
icon: "content_copy",
|
|
611
612
|
variant: "tertiary",
|
|
612
|
-
onClick: m[2] || (m[2] = (y) => e(
|
|
613
|
+
onClick: m[2] || (m[2] = (y) => e(Ge)(e(b)))
|
|
613
614
|
})
|
|
614
615
|
]),
|
|
615
616
|
_: 1
|
|
@@ -1076,7 +1077,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1076
1077
|
return Number.isNaN(C) ? 0 : C;
|
|
1077
1078
|
});
|
|
1078
1079
|
function O() {
|
|
1079
|
-
t.value.taxTotals = s.value, f("update", Ae.parse(
|
|
1080
|
+
t.value.taxTotals = s.value, f("update", Ae.parse(Je(t.value)));
|
|
1080
1081
|
}
|
|
1081
1082
|
function P() {
|
|
1082
1083
|
return ue.cloneDeep(Ve);
|
|
@@ -1581,7 +1582,7 @@ var bn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https:
|
|
|
1581
1582
|
const gn = { class: "px-24 flex flex-col gap-y-16" }, vn = { class: "flex gap-8 items-center" }, hn = { class: "fm-typo-en-body-lg-600" }, _n = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, xn = /* @__PURE__ */ x("img", {
|
|
1582
1583
|
src: Ye,
|
|
1583
1584
|
class: "aspect-square w-[150px]"
|
|
1584
|
-
}, null, -1), Cn = { class: "flex flex-col gap-16 text-center" }, Sn = { class: "fm-typo-en-title-sm-800" }, Fn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
1585
|
+
}, null, -1), Cn = { class: "flex flex-col gap-16 text-center" }, Sn = { class: "fm-typo-en-title-sm-800" }, Fn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, eo = /* @__PURE__ */ ee({
|
|
1585
1586
|
__name: "Store",
|
|
1586
1587
|
setup(v) {
|
|
1587
1588
|
const _ = {
|
|
@@ -1661,7 +1662,7 @@ const gn = { class: "px-24 flex flex-col gap-y-16" }, vn = { class: "flex gap-8
|
|
|
1661
1662
|
k != O && (P[O].bundles.splice(U, 1), U = P[k].bundles.length), console.log(k, U, O, "ci, bi, originalCategoryIndex");
|
|
1662
1663
|
const N = P[k];
|
|
1663
1664
|
if (!N) {
|
|
1664
|
-
|
|
1665
|
+
Xe.error("Unexpected error", 2e3);
|
|
1665
1666
|
return;
|
|
1666
1667
|
}
|
|
1667
1668
|
if (s == null) {
|
|
@@ -1836,5 +1837,5 @@ const gn = { class: "px-24 flex flex-col gap-y-16" }, vn = { class: "flex gap-8
|
|
|
1836
1837
|
}
|
|
1837
1838
|
});
|
|
1838
1839
|
export {
|
|
1839
|
-
|
|
1840
|
+
eo as default
|
|
1840
1841
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { defineComponent as G, ref as F, computed as N, onMounted as q, resolveComponent as v, openBlock as d, createBlock as x, unref as e, isRef as Y, withCtx as S, createElementVNode as l, createVNode as m, createElementBlock as O, createTextVNode as z, resolveDynamicComponent as H, toDisplayString as P, Fragment as j, createCommentVNode as U, h as C } from "vue";
|
|
2
2
|
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as Q, components as $ } from "@feedmepos/ui-library";
|
|
4
|
-
import "./index
|
|
5
|
-
import {
|
|
6
|
-
import { C as Z, u as ee } from "./membership-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import "./index-BG_-ksol.js";
|
|
5
|
+
import { u as X } from "./loading-CScT_lmc.js";
|
|
6
|
+
import { C as Z, u as ee } from "./membership-DenkPJ5U.js";
|
|
7
|
+
import { p as M, f as B } from "./plugins-VONaCeWn.js";
|
|
8
|
+
import { u as te } from "./vue-i18n-59FFzX8P.js";
|
|
9
|
+
import { F as oe } from "./index-OLChRkvG.js";
|
|
9
10
|
import { c as ae } from "./object-qECH92oz.js";
|
|
10
11
|
import { u as K } from "./app-wDQR6dpb.js";
|
|
11
|
-
import { u as ne } from "./business-
|
|
12
|
+
import { u as ne } from "./business-NXwwmhbL.js";
|
|
12
13
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
13
14
|
import { Z as R } from "./zod-Bg2FbC-D.js";
|
|
14
|
-
import { _ as ie } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { _ as ie } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BqzMSTXs.js";
|
|
15
16
|
import { _ as re } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
16
|
-
import { _ as le } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as ce, a as me } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
18
|
-
import { i as de, t as ue } from "./helper-
|
|
17
|
+
import { _ as le } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DwhQONu8.js";
|
|
18
|
+
import { _ as ce, a as me } from "./EffectSheet.vue_vue_type_style_index_0_lang-CaSqYPQ2.js";
|
|
19
|
+
import { i as de, t as ue } from "./helper-CiybWTiD.js";
|
|
19
20
|
import { useRouter as pe } from "vue-router";
|
|
20
|
-
import { m as D } from "./index-
|
|
21
|
-
import { R as k } from "./app-
|
|
21
|
+
import { m as D } from "./index-COTHSMx7.js";
|
|
22
|
+
import { R as k } from "./app-F5UOtzJ-.js";
|
|
22
23
|
const fe = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "flex flex-col space-y-16 pr-12"
|
|
@@ -174,7 +175,7 @@ const fe = {
|
|
|
174
175
|
}), he = { class: "px-24 flex flex-col gap-y-16" }, xe = { class: "flex items-center justify-between w-full" }, Ce = /* @__PURE__ */ l("div", { class: "flex gap-8" }, null, -1), Se = /* @__PURE__ */ l("img", {
|
|
175
176
|
src: J,
|
|
176
177
|
class: "aspect-square w-[150px]"
|
|
177
|
-
}, null, -1), Fe = { class: "flex flex-col gap-16 text-center" }, Ve = { class: "fm-typo-en-title-sm-800" }, Ee = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
178
|
+
}, null, -1), Fe = { class: "flex flex-col gap-16 text-center" }, Ve = { class: "fm-typo-en-title-sm-800" }, Ee = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ G({
|
|
178
179
|
__name: "StoreRewards",
|
|
179
180
|
setup(W) {
|
|
180
181
|
const { t: n } = te(), T = Q(), A = {
|
|
@@ -418,5 +419,5 @@ const fe = {
|
|
|
418
419
|
}
|
|
419
420
|
});
|
|
420
421
|
export {
|
|
421
|
-
|
|
422
|
+
Je as default
|
|
422
423
|
};
|