@feedmepos/mf-connect 0.1.9-prod → 0.1.10-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-8Ew7y5t9.js → Analytic-CpSbitWV.js} +24 -23
- package/dist/{App-3BVNH3r-.js → App-BPT8XzjX.js} +56 -51
- package/dist/{Broadcast-CrsPUhLT.js → Broadcast-CJHpiQeN.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DE300Y56.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DUPqWdIm.js} +7 -7
- package/dist/Card-Bvn36zqZ.js +895 -0
- package/dist/{Collections-djS9hLI8.js → Collections-Bq6OxsJC.js} +24 -29
- package/dist/{Credit-D4KEvIov.js → Credit-Dno_g7dW.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjM81fmS.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-cGbwORhw.js} +648 -1284
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-aEWfdpCg.js → EffectSheet.vue_vue_type_style_index_0_lang-Ho7zwlbb.js} +19 -19
- package/dist/{Experience-2FPLO7aV.js → Experience-BC1qSIGO.js} +8 -8
- package/dist/{Game-e_UjVJgU.js → Game-C_CKGMBW.js} +8 -8
- package/dist/Index-BXFaWTfw.js +255 -0
- package/dist/{Marketing-B2hCjZ2r.js → Marketing-Ni0WAie5.js} +5 -5
- package/dist/{Member-D_ykRIBb.js → Member-djnisrK1.js} +4 -4
- package/dist/{MemberList-LmzzYxEn.js → MemberList-CclU-3B7.js} +193 -189
- package/dist/{MemberTransactions-B2vqlKaP.js → MemberTransactions-DVVsv3Ux.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DQ2ubF0N.js → MessageInput.vue_vue_type_script_setup_true_lang-khyDg1m4.js} +2 -2
- package/dist/Mission-Z5somdo_.js +273 -0
- package/dist/Overview-BvMVz3lQ.js +1074 -0
- package/dist/{Point-DFriwWWY.js → Point-DdPukiTg.js} +8 -8
- package/dist/{Promotion-Db3IEs2F.js → Promotion-DCqdIwjG.js} +9 -9
- package/dist/Record-CvMxXm1B.js +337 -0
- package/dist/Reward-CiJHGXfQ.js +441 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CrGCBRmH.js +150 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-tnT6i0Jq.js +1638 -0
- package/dist/{Segment-CE8q9JV2.js → Segment-CQb3j-o0.js} +13 -13
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-B7YqIU5D.js +181 -0
- package/dist/{Setting-Vcz1S27V.js → Setting-91cK3ssU.js} +31 -31
- package/dist/Store-B-uldUKt.js +1744 -0
- package/dist/{StoreRewards-Dt30AkWo.js → StoreRewards-dDNeFlA9.js} +12 -12
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BVb1X0aq.js +1132 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-f59onlgt.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Ds0WxGxr.js} +1 -1
- package/dist/{Tier-a6yXEtLd.js → Tier-_jMaLj3u.js} +19 -19
- package/dist/{Title-A3-2EI0w.js → Title-By7o67aT.js} +19 -19
- package/dist/{Transaction-DswABr2P.js → Transaction-BLpEgeI2.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Bf_nO9zH.js +130 -0
- package/dist/{Voucher-DEoVgZYa.js → Voucher-CG5tfibn.js} +11 -11
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DpQUoXyQ.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-ccc1vxjS.js → ZodTextField.vue_vue_type_script_setup_true_lang-YwGR2En3.js} +1 -1
- package/dist/{app-C23GfQGq.js → app-DDmTqTb7.js} +1 -1
- package/dist/{app-C66C2KLW.js → app-vCqTQIeC.js} +424 -273
- package/dist/app.js +1 -1
- package/dist/{business-DNAVZOSH.js → business-Cz78KGF2.js} +1 -1
- package/dist/{campaign-Cv0HaUD1.js → campaign-BBd4o7F_.js} +2 -2
- package/dist/campaign.enum-CIhi0b-m.js +20 -0
- package/dist/campaign.fn-5silF1DK.js +758 -0
- package/dist/collectible.enum-cMIQ6ogq.js +19 -0
- package/dist/{collection.fn-Dxzr2oPt.js → collection.fn-BGc7Qeli.js} +2 -2
- package/dist/dto-i04OPJfW.js +2018 -0
- package/dist/{effect-CUuL8Tci.js → effect-D8UzkYRg.js} +1 -1
- package/dist/{email-addresses-Yt3s7i2b.js → email-addresses-u05o35hN.js} +1 -1
- package/dist/{export-CNg5YWMm.js → export-BEXuPYEd.js} +3 -3
- package/dist/{helper-DzmKNFue.js → helper-RptRJGv6.js} +1 -1
- package/dist/{index-Dnf7j71V.js → index-B8s-gucK.js} +9 -3
- package/dist/{index-B88e_9YI.js → index-BjHZUhiH.js} +1 -1
- package/dist/{index-O9lB54LY.js → index-Bpu2DYUc.js} +1348 -1342
- package/dist/{index-BK8X9RF6.js → index-C6-rCMhD.js} +3 -3
- package/dist/{index-D0obMrAS.js → index-Cq_ZIbRm.js} +173 -62
- package/dist/{index-CsCgQ8gt.js → index-DFAnoAe9.js} +1 -1
- package/dist/index-DbyJ6Nyn.js +54 -0
- package/dist/{index-yzH5eyKW.js → index-Dt6K2eG8.js} +1 -1
- package/dist/{index-9CXt2kbQ.js → index-DwzoqCt8.js} +293 -287
- package/dist/index-UfL5qRzR.js +1049 -0
- package/dist/index-g8EbRVnr.js +32 -0
- package/dist/{index-QuBsnXgx.js → index-hEE_ntHd.js} +1 -1
- package/dist/index-vh86FiIQ.js +10 -0
- package/dist/{index.esm2017-TpBElhnN.js → index.esm2017-BSzW_yaL.js} +1 -1
- package/dist/{loading-ChoC5E9d.js → loading-DjEdwdnj.js} +156 -153
- package/dist/{membership-CU-k0-Tf.js → membership-BL9Xs8lD.js} +52 -44
- package/dist/{money-DANmyTBj.js → money-D7lq0cx-.js} +1 -1
- package/dist/{number-DrocTWDD.js → number-BiDabTkI.js} +1 -1
- package/dist/objectid-CXf0jb1W.js +145 -0
- package/dist/reward-Cr8rbe5R.js +36 -0
- package/dist/{rule-builder-3YRdr18A.js → rule-builder-DPKFZ5UX.js} +1 -1
- package/dist/{rule-BQLmpER9.js → rule-vkYJij4h.js} +4 -3
- package/dist/{template-DOKU1QkY.js → template-Bep5Y5ch.js} +4 -4
- package/dist/trigger-fWhQ3bqv.js +144 -0
- package/dist/{usePagination-JGI7x0W7.js → usePagination-DSF5b4hM.js} +1 -1
- package/dist/user-9UiaP0xs.js +54 -0
- package/dist/{vue-i18n-Bch1JmhI.js → vue-i18n-BhiDOB1j.js} +232 -232
- package/package.json +2 -2
- package/dist/Card-DndggRLr.js +0 -1036
- package/dist/Mission-CsLdMq1M.js +0 -261
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-_P2yImhi.js +0 -1804
- package/dist/Store-C8kT7JN5.js +0 -1531
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cc2F_06x.js +0 -1065
- package/dist/dto-CcrufW2j.js +0 -2770
- package/dist/index-C7745kXl.js +0 -755
- package/dist/index-CZ28ywyB.js +0 -298
- package/dist/user-Bm4KttFq.js +0 -37
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { defineComponent as Q, onMounted as ue, openBlock as x, createElementBlock as D, createElementVNode as i, toDisplayString as $, unref as o, createVNode as l, ref as H, computed as X, resolveComponent as S, createBlock as W, isRef as ye, createSlots as _e, withCtx as C, Fragment as q, h as B, onBeforeMount as ve, renderList as he } from "vue";
|
|
2
2
|
import { _ as Se } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { F as re, p as xe, u as we } from "./loading-
|
|
3
|
+
import { F as re, p as xe, u as we } from "./loading-DjEdwdnj.js";
|
|
4
4
|
import { components as Z } from "@feedmepos/ui-library";
|
|
5
|
-
import { a as pe, _ as me, w as Fe } from "./usePagination-
|
|
6
|
-
import { u as Ce } from "./vue-i18n-
|
|
7
|
-
import { e as Me, M as ke } from "./email-addresses-
|
|
5
|
+
import { a as pe, _ as me, w as Fe } from "./usePagination-DSF5b4hM.js";
|
|
6
|
+
import { u as Ce } from "./vue-i18n-BhiDOB1j.js";
|
|
7
|
+
import { e as Me, M as ke } from "./email-addresses-u05o35hN.js";
|
|
8
8
|
import { Z as Ie } from "./zod-Bg2FbC-D.js";
|
|
9
|
-
import { e as Pe } from "./index-
|
|
9
|
+
import { e as Pe } from "./index-DwzoqCt8.js";
|
|
10
10
|
import { u as Re } from "./app-wDQR6dpb.js";
|
|
11
|
-
import { R as Be } from "./rule-builder-
|
|
12
|
-
import { _ as Ee } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { _ as $e } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { R as Be } from "./rule-builder-DPKFZ5UX.js";
|
|
12
|
+
import { _ as Ee } from "./ZodTextField.vue_vue_type_script_setup_true_lang-YwGR2En3.js";
|
|
13
|
+
import { _ as $e } from "./RuleGroup.vue_vue_type_script_setup_true_lang-tnT6i0Jq.js";
|
|
14
14
|
import { h as z } from "./moment-BWErdI6_.js";
|
|
15
|
-
import { s as E, u as De } from "./membership-
|
|
15
|
+
import { s as E, u as De } from "./membership-BL9Xs8lD.js";
|
|
16
16
|
import { o as Ye } from "./objectId-dwaoBfJX.js";
|
|
17
|
-
import { u as ge } from "./business-
|
|
18
|
-
import { f as be } from "./number-
|
|
19
|
-
import { t as Le } from "./money-
|
|
20
|
-
import { m as ce } from "./index-
|
|
17
|
+
import { u as ge } from "./business-Cz78KGF2.js";
|
|
18
|
+
import { f as be } from "./number-BiDabTkI.js";
|
|
19
|
+
import { t as Le } from "./money-D7lq0cx-.js";
|
|
20
|
+
import { m as ce } from "./index-BjHZUhiH.js";
|
|
21
21
|
const Te = Pe.extend({
|
|
22
22
|
_id: re.optional(),
|
|
23
23
|
business: re.optional()
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { defineComponent as N, computed as f, ref as V, onMounted as H, resolveComponent as _, openBlock as c, createElementBlock as u, createVNode as i, withCtx as S, createElementVNode as p, toDisplayString as q, normalizeClass as A, Fragment as b, renderList as j, createCommentVNode as B } from "vue";
|
|
2
|
+
import { e as D } from "./app-DDmTqTb7.js";
|
|
3
|
+
import "./loading-DjEdwdnj.js";
|
|
4
|
+
import { c as E } from "./object-qECH92oz.js";
|
|
5
|
+
const M = { class: "flex flex-col flex-nowrap" }, T = { class: "flex gap-16 items-center w-full" }, $ = { class: "flex grow items-center" }, z = { class: "grow text-fm-color-typo-secondary" }, K = { key: 0 }, J = { class: "px-16" }, X = /* @__PURE__ */ N({
|
|
6
|
+
__name: "SelectItems",
|
|
7
|
+
props: {
|
|
8
|
+
initialValue: {
|
|
9
|
+
type: Array,
|
|
10
|
+
default: () => []
|
|
11
|
+
},
|
|
12
|
+
filterItems: {
|
|
13
|
+
type: Function,
|
|
14
|
+
default: void 0
|
|
15
|
+
},
|
|
16
|
+
onComplete: {
|
|
17
|
+
type: Function,
|
|
18
|
+
required: !0
|
|
19
|
+
},
|
|
20
|
+
maxHeight: {
|
|
21
|
+
type: [String, Number],
|
|
22
|
+
default: 380
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(F, { expose: O }) {
|
|
26
|
+
const m = F, x = D(), w = f(() => x.menu.value || {
|
|
27
|
+
_id: "",
|
|
28
|
+
modules: {
|
|
29
|
+
catalog: [],
|
|
30
|
+
category: [],
|
|
31
|
+
item: [],
|
|
32
|
+
variant: [],
|
|
33
|
+
group: [],
|
|
34
|
+
takeaway: [],
|
|
35
|
+
scheduler: [],
|
|
36
|
+
printDepartment: [],
|
|
37
|
+
recipe: [],
|
|
38
|
+
sku: [],
|
|
39
|
+
unit: [],
|
|
40
|
+
cookingGuide: [],
|
|
41
|
+
serveSequence: []
|
|
42
|
+
}
|
|
43
|
+
}), k = f(() => {
|
|
44
|
+
const n = m.filterItems ?? ((t) => !!t.category);
|
|
45
|
+
return w.value.modules.item.filter(n).reduce((t, l) => {
|
|
46
|
+
const a = {
|
|
47
|
+
id: l._id,
|
|
48
|
+
category: l.category,
|
|
49
|
+
name: (l.name2 || l.name).trim()
|
|
50
|
+
};
|
|
51
|
+
return t = [...t, a], t;
|
|
52
|
+
}, []);
|
|
53
|
+
}), C = f(() => {
|
|
54
|
+
const n = w.value.modules.category.reduce((e, t) => (e[t._id] = {
|
|
55
|
+
id: t._id,
|
|
56
|
+
name: t.name,
|
|
57
|
+
items: {}
|
|
58
|
+
}, e), {});
|
|
59
|
+
return k.value.reduce(
|
|
60
|
+
(e, t) => {
|
|
61
|
+
const l = t.category ?? "";
|
|
62
|
+
return e[l].items = {
|
|
63
|
+
...e[l].items,
|
|
64
|
+
[t.id]: t
|
|
65
|
+
}, e;
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
...n,
|
|
69
|
+
"": {
|
|
70
|
+
id: "",
|
|
71
|
+
name: "Addons",
|
|
72
|
+
items: {}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}), v = f(() => {
|
|
77
|
+
const n = y.value.toLowerCase();
|
|
78
|
+
return n ? Object.entries(C.value).reduce((e, [t, l]) => {
|
|
79
|
+
if (l.name.toLowerCase().includes(n))
|
|
80
|
+
return e[t] = l, e;
|
|
81
|
+
const a = Object.entries(l.items).reduce((d, [h, o]) => (o.name.toLowerCase().includes(n) && (d[h] = o), d), {});
|
|
82
|
+
return Object.keys(a).length > 0 && (e[t] = { ...l, items: a }), e;
|
|
83
|
+
}, {}) : C.value;
|
|
84
|
+
}), s = V({}), y = V(""), G = f(() => Object.values(s.value).filter((n) => !!n).length);
|
|
85
|
+
function I(n) {
|
|
86
|
+
s.value = k.value.reduce((e, t) => (e[t.id] = n.includes(t.id), e), {});
|
|
87
|
+
}
|
|
88
|
+
H(async () => {
|
|
89
|
+
await x.getMenu(), I(m.initialValue);
|
|
90
|
+
});
|
|
91
|
+
function g(n) {
|
|
92
|
+
const e = Object.keys(v.value[n].items), t = e.filter((l) => s.value[l]);
|
|
93
|
+
return t.length ? t.length === e.length ? !0 : null : !1;
|
|
94
|
+
}
|
|
95
|
+
function U(n) {
|
|
96
|
+
const e = Object.keys(v.value[n].items), t = g(n), l = E(s.value);
|
|
97
|
+
for (const a of e)
|
|
98
|
+
l[a] = t !== !0;
|
|
99
|
+
s.value = l;
|
|
100
|
+
}
|
|
101
|
+
function L(n) {
|
|
102
|
+
s.value[n] = !s.value[n];
|
|
103
|
+
}
|
|
104
|
+
return O({
|
|
105
|
+
onConfirm: () => {
|
|
106
|
+
const n = Object.entries(s.value).filter(([, e]) => !!e).map(([e]) => e);
|
|
107
|
+
m.onComplete(n);
|
|
108
|
+
}
|
|
109
|
+
}), (n, e) => {
|
|
110
|
+
const t = _("fm-button"), l = _("FmTextField"), a = _("fm-list-item"), d = _("fm-checkbox"), h = _("fm-list");
|
|
111
|
+
return c(), u("div", M, [
|
|
112
|
+
i(a, {
|
|
113
|
+
tag: "div",
|
|
114
|
+
clickable: !1
|
|
115
|
+
}, {
|
|
116
|
+
default: S(() => [
|
|
117
|
+
p("div", T, [
|
|
118
|
+
p("div", $, [
|
|
119
|
+
i(t, {
|
|
120
|
+
icon: "sync",
|
|
121
|
+
variant: "tertiary",
|
|
122
|
+
onClick: e[0] || (e[0] = () => I([]))
|
|
123
|
+
}),
|
|
124
|
+
p("span", z, q(G.value) + " product(s) selected ", 1)
|
|
125
|
+
]),
|
|
126
|
+
i(l, {
|
|
127
|
+
modelValue: y.value,
|
|
128
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => y.value = o),
|
|
129
|
+
placeholder: "Search",
|
|
130
|
+
"leading-icon": { name: "search", color: "" },
|
|
131
|
+
style: { width: "200px", "min-width": "200px" }
|
|
132
|
+
}, null, 8, ["modelValue"])
|
|
133
|
+
])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}),
|
|
137
|
+
i(h, {
|
|
138
|
+
class: A(["grow overflow-y-auto", `max-h-${m.maxHeight ? `[${m.maxHeight}px]` : "full"}`])
|
|
139
|
+
}, {
|
|
140
|
+
default: S(() => [
|
|
141
|
+
(c(!0), u(b, null, j(v.value, (o) => (c(), u(b, {
|
|
142
|
+
key: o.id
|
|
143
|
+
}, [
|
|
144
|
+
Object.keys(o.items).length > 0 ? (c(), u("div", K, [
|
|
145
|
+
p("div", J, [
|
|
146
|
+
i(d, {
|
|
147
|
+
"model-value": g(o.id) ?? !1,
|
|
148
|
+
indeterminate: g(o.id) === null,
|
|
149
|
+
label: o.name,
|
|
150
|
+
value: "",
|
|
151
|
+
name: "",
|
|
152
|
+
sublabel: "",
|
|
153
|
+
class: "w-full",
|
|
154
|
+
"onUpdate:modelValue": () => U(o.id)
|
|
155
|
+
}, null, 8, ["model-value", "indeterminate", "label", "onUpdate:modelValue"])
|
|
156
|
+
]),
|
|
157
|
+
(c(!0), u(b, null, j(o.items, (r) => (c(), u("div", {
|
|
158
|
+
key: r.id,
|
|
159
|
+
class: "pl-48"
|
|
160
|
+
}, [
|
|
161
|
+
i(d, {
|
|
162
|
+
"model-value": s.value[r.id],
|
|
163
|
+
label: r.name,
|
|
164
|
+
value: r.id,
|
|
165
|
+
name: r.name,
|
|
166
|
+
class: "w-full",
|
|
167
|
+
"onUpdate:modelValue": () => L(r.id)
|
|
168
|
+
}, null, 8, ["model-value", "label", "value", "name", "onUpdate:modelValue"])
|
|
169
|
+
]))), 128))
|
|
170
|
+
])) : B("", !0)
|
|
171
|
+
], 64))), 128))
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}, 8, ["class"])
|
|
175
|
+
]);
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
export {
|
|
180
|
+
X as _
|
|
181
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as Dt, ref as H, computed as st, onMounted as kt, resolveComponent as R, openBlock as V, createBlock as bt, withCtx as Q, createElementVNode as v, createVNode as M, unref as f, isRef as Vt, createElementBlock as G, Fragment as gt, toDisplayString as F, createTextVNode as X, renderList as Pt, createCommentVNode as Nt } from "vue";
|
|
2
2
|
import { h as ie } from "./moment-BWErdI6_.js";
|
|
3
3
|
import { useDialog as xt } from "@feedmepos/ui-library";
|
|
4
|
-
import { a as $t, u as se, p as ae, f as O } from "./loading-
|
|
4
|
+
import { a as $t, u as se, p as ae, f as O } from "./loading-DjEdwdnj.js";
|
|
5
5
|
import { u as le } from "./app-wDQR6dpb.js";
|
|
6
|
-
import { u as vt, l as zt } from "./business-
|
|
7
|
-
import { u as Ht } from "./membership-
|
|
8
|
-
import {
|
|
6
|
+
import { u as vt, l as zt } from "./business-Cz78KGF2.js";
|
|
7
|
+
import { u as Ht } from "./membership-BL9Xs8lD.js";
|
|
8
|
+
import { j as ce } from "./index-UfL5qRzR.js";
|
|
9
9
|
import { _ as Ut } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
10
|
-
import { _ as ue } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as de } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as fe } from "./vue-i18n-
|
|
13
|
-
import { m as ge } from "./index-
|
|
10
|
+
import { _ as ue } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-Ds0WxGxr.js";
|
|
11
|
+
import { _ as de } from "./MessageInput.vue_vue_type_script_setup_true_lang-khyDg1m4.js";
|
|
12
|
+
import { u as fe } from "./vue-i18n-BhiDOB1j.js";
|
|
13
|
+
import { m as ge } from "./index-B8s-gucK.js";
|
|
14
14
|
import { o as me } from "./objectId-dwaoBfJX.js";
|
|
15
15
|
import { a as he } from "./object-qECH92oz.js";
|
|
16
16
|
var tt = {}, pe = function() {
|
|
@@ -160,7 +160,7 @@ et.prototype.xor = function(e, t, i) {
|
|
|
160
160
|
et.prototype.isReserved = function(e, t) {
|
|
161
161
|
return this.reservedBit[e * this.size + t];
|
|
162
162
|
};
|
|
163
|
-
var be = et,
|
|
163
|
+
var be = et, jt = {};
|
|
164
164
|
(function(e) {
|
|
165
165
|
const t = N.getSymbolSize;
|
|
166
166
|
e.getRowColCoords = function(r) {
|
|
@@ -178,10 +178,10 @@ var be = et, Yt = {};
|
|
|
178
178
|
s === a - 1 && l === 0 || o.push([n[s], n[l]]);
|
|
179
179
|
return o;
|
|
180
180
|
};
|
|
181
|
-
})(
|
|
182
|
-
var
|
|
181
|
+
})(jt);
|
|
182
|
+
var Yt = {};
|
|
183
183
|
const ve = N.getSymbolSize, Lt = 7;
|
|
184
|
-
|
|
184
|
+
Yt.getPositions = function(t) {
|
|
185
185
|
const i = ve(t);
|
|
186
186
|
return [
|
|
187
187
|
// top-left
|
|
@@ -864,26 +864,26 @@ Wt.getEncodedBits = function(t, i) {
|
|
|
864
864
|
};
|
|
865
865
|
var te = {};
|
|
866
866
|
const Ie = $;
|
|
867
|
-
function
|
|
867
|
+
function j(e) {
|
|
868
868
|
this.mode = Ie.NUMERIC, this.data = e.toString();
|
|
869
869
|
}
|
|
870
|
-
|
|
870
|
+
j.getBitsLength = function(t) {
|
|
871
871
|
return 10 * Math.floor(t / 3) + (t % 3 ? t % 3 * 3 + 1 : 0);
|
|
872
872
|
};
|
|
873
|
-
|
|
873
|
+
j.prototype.getLength = function() {
|
|
874
874
|
return this.data.length;
|
|
875
875
|
};
|
|
876
|
-
|
|
877
|
-
return
|
|
876
|
+
j.prototype.getBitsLength = function() {
|
|
877
|
+
return j.getBitsLength(this.data.length);
|
|
878
878
|
};
|
|
879
|
-
|
|
879
|
+
j.prototype.write = function(t) {
|
|
880
880
|
let i, r, o;
|
|
881
881
|
for (i = 0; i + 3 <= this.data.length; i += 3)
|
|
882
882
|
r = this.data.substr(i, 3), o = parseInt(r, 10), t.put(o, 10);
|
|
883
883
|
const n = this.data.length - i;
|
|
884
884
|
n > 0 && (r = this.data.substr(i), o = parseInt(r, 10), t.put(o, n * 3 + 1));
|
|
885
885
|
};
|
|
886
|
-
var Te =
|
|
886
|
+
var Te = j;
|
|
887
887
|
const Pe = $, mt = [
|
|
888
888
|
"0",
|
|
889
889
|
"1",
|
|
@@ -931,19 +931,19 @@ const Pe = $, mt = [
|
|
|
931
931
|
"/",
|
|
932
932
|
":"
|
|
933
933
|
];
|
|
934
|
-
function
|
|
934
|
+
function Y(e) {
|
|
935
935
|
this.mode = Pe.ALPHANUMERIC, this.data = e;
|
|
936
936
|
}
|
|
937
|
-
|
|
937
|
+
Y.getBitsLength = function(t) {
|
|
938
938
|
return 11 * Math.floor(t / 2) + 6 * (t % 2);
|
|
939
939
|
};
|
|
940
|
-
|
|
940
|
+
Y.prototype.getLength = function() {
|
|
941
941
|
return this.data.length;
|
|
942
942
|
};
|
|
943
|
-
|
|
944
|
-
return
|
|
943
|
+
Y.prototype.getBitsLength = function() {
|
|
944
|
+
return Y.getBitsLength(this.data.length);
|
|
945
945
|
};
|
|
946
|
-
|
|
946
|
+
Y.prototype.write = function(t) {
|
|
947
947
|
let i;
|
|
948
948
|
for (i = 0; i + 2 <= this.data.length; i += 2) {
|
|
949
949
|
let r = mt.indexOf(this.data[i]) * 45;
|
|
@@ -951,7 +951,7 @@ j.prototype.write = function(t) {
|
|
|
951
951
|
}
|
|
952
952
|
this.data.length % 2 && t.put(mt.indexOf(this.data[i]), 6);
|
|
953
953
|
};
|
|
954
|
-
var Ne =
|
|
954
|
+
var Ne = Y, Ue = function(t) {
|
|
955
955
|
for (var i = [], r = t.length, o = 0; o < r; o++) {
|
|
956
956
|
var n = t.charCodeAt(o);
|
|
957
957
|
if (n >= 55296 && n <= 56319 && r > o + 1) {
|
|
@@ -1223,7 +1223,7 @@ var xe = ee.exports;
|
|
|
1223
1223
|
);
|
|
1224
1224
|
};
|
|
1225
1225
|
})(te);
|
|
1226
|
-
const ft = N, ht = ct, $e = we, ze = be, He =
|
|
1226
|
+
const ft = N, ht = ct, $e = we, ze = be, He = jt, Ke = Yt, _t = Jt, Et = ut, Oe = Ce, lt = Qt, je = Wt, Ye = $, pt = te;
|
|
1227
1227
|
function Je(e, t) {
|
|
1228
1228
|
const i = e.size, r = Ke.getPositions(t);
|
|
1229
1229
|
for (let o = 0; o < r.length; o++) {
|
|
@@ -1257,7 +1257,7 @@ function Qe(e, t) {
|
|
|
1257
1257
|
o = Math.floor(s / 3), n = s % 3 + i - 8 - 3, a = (r >> s & 1) === 1, e.set(o, n, a, !0), e.set(n, o, a, !0);
|
|
1258
1258
|
}
|
|
1259
1259
|
function yt(e, t, i) {
|
|
1260
|
-
const r = e.size, o =
|
|
1260
|
+
const r = e.size, o = je.getEncodedBits(t, i);
|
|
1261
1261
|
let n, a;
|
|
1262
1262
|
for (n = 0; n < 15; n++)
|
|
1263
1263
|
a = (o >> n & 1) === 1, n < 6 ? e.set(n, 8, a, !0) : n < 8 ? e.set(n + 1, 8, a, !0) : e.set(r - 15 + n, 8, a, !0), n < 8 ? e.set(8, r - n - 1, a, !0) : n < 9 ? e.set(8, 15 - n - 1 + 1, a, !0) : e.set(8, 15 - n - 1, a, !0);
|
|
@@ -1282,7 +1282,7 @@ function Xe(e, t) {
|
|
|
1282
1282
|
function We(e, t, i) {
|
|
1283
1283
|
const r = new $e();
|
|
1284
1284
|
i.forEach(function(l) {
|
|
1285
|
-
r.put(l.mode.bit, 4), r.put(l.getLength(),
|
|
1285
|
+
r.put(l.mode.bit, 4), r.put(l.getLength(), Ye.getCharCountIndicator(l.mode, e)), l.write(r);
|
|
1286
1286
|
});
|
|
1287
1287
|
const o = ft.getSymbolTotalCodewords(e), n = Et.getTotalCodewordsCount(e, t), a = (o - n) * 8;
|
|
1288
1288
|
for (r.getLengthInBits() + 4 <= a && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
|
|
@@ -1570,7 +1570,7 @@ const mn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1570
1570
|
}, yn = { class: "col-span-2 flex flex-col xs:col-span-3" }, wn = { class: "fm-typo-en-title-sm-800" }, bn = { class: "space-y-24" }, vn = { class: "space-y-8" }, Cn = { class: "fm-typo-en-title-sm-800" }, _n = { class: "fm-typo-body-lg-400" }, En = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Bn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, An = { class: "space-y-8" }, Mn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Sn = { class: "space-y-8" }, In = /* @__PURE__ */ v("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1), Tn = { class: "space-y-8" }, Pn = /* @__PURE__ */ v("div", { class: "fm-typo-en-title-sm-800" }, [
|
|
1571
1571
|
/* @__PURE__ */ X(" Free Credit as Discount "),
|
|
1572
1572
|
/* @__PURE__ */ v("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
|
|
1573
|
-
], -1), Nn = { class: "space-y-8" }, Un = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Ln = { class: "space-y-8" }, Fn = /* @__PURE__ */ v("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), Rn = { class: "flex justify-end pb-24" }, Dn = { class: "col-span-1 space-y-8 xs:hidden" }, kn = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), Vn = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), xn = { class: "fm-typo-en-body-lg-600" }, $n = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), zn = { class: "fm-typo-en-body-lg-600" }, Hn = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), Kn = { class: "fm-typo-en-body-lg-600" }, On = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1),
|
|
1573
|
+
], -1), Nn = { class: "space-y-8" }, Un = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Ln = { class: "space-y-8" }, Fn = /* @__PURE__ */ v("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), Rn = { class: "flex justify-end pb-24" }, Dn = { class: "col-span-1 space-y-8 xs:hidden" }, kn = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), Vn = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), xn = { class: "fm-typo-en-body-lg-600" }, $n = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), zn = { class: "fm-typo-en-body-lg-600" }, Hn = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), Kn = { class: "fm-typo-en-body-lg-600" }, On = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), jn = { class: "fm-typo-en-body-lg-600" }, ao = /* @__PURE__ */ Dt({
|
|
1574
1574
|
__name: "Setting",
|
|
1575
1575
|
setup(e) {
|
|
1576
1576
|
const t = le(), i = vt(), r = Ht(), { global: o, minor: n } = se, a = xt(), s = H(), l = H(!1), g = [
|
|
@@ -1852,7 +1852,7 @@ const mn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1852
1852
|
]),
|
|
1853
1853
|
v("div", null, [
|
|
1854
1854
|
On,
|
|
1855
|
-
v("div",
|
|
1855
|
+
v("div", jn, F(!f(s).targetLocation || f(s).targetLocation.length == f(vt)().locations.length ? "All locations" : (k = (L = f(s)) == null ? void 0 : L.targetLocation) == null ? void 0 : k.map(
|
|
1856
1856
|
(nt) => f(i).locations.find((ot) => ot._id == nt).name
|
|
1857
1857
|
).join(", ")), 1)
|
|
1858
1858
|
])
|