@feedmepos/mf-connect 0.0.18-prod → 0.0.20-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-DuwMJh8c.js +759 -0
- package/dist/{Broadcast-SK3ik91V.js → Broadcast-BUgjgqv9.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BGzuAEwI.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BDU9wbxY.js} +8 -8
- package/dist/{Card-0-hxxpiV.js → Card-CwohdmAQ.js} +86 -86
- package/dist/{Collections-pnUS2NUo.js → Collections-D-JKj4iC.js} +6 -6
- package/dist/{Credit-UcSstIA6.js → Credit-BdKekl3X.js} +7 -7
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ck-cXc7h.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DA-7-Qi9.js} +20 -20
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dfw0Eph1.js → EffectSheet.vue_vue_type_style_index_0_lang-lDNh6GmQ.js} +5 -5
- package/dist/{Experience-D7682kjb.js → Experience-KoC4x_ae.js} +7 -7
- package/dist/{Game-ugwJfw5Z.js → Game-CTkr8R18.js} +7 -7
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CQ1J_8U7.js → ImageInput.vue_vue_type_script_setup_true_lang-CDeQRYDy.js} +1 -1
- package/dist/{MainLayout-B_mALJzY.js → MainLayout-Du7UHyf3.js} +1 -1
- package/dist/{Marketing-C0H14x8-.js → Marketing-CTl2LqXi.js} +14 -14
- package/dist/{Member-CxVXoNzi.js → Member-hHIz1gGT.js} +2 -2
- package/dist/{MemberList-3XALU8N1.js → MemberList-Fs95BxUo.js} +11 -11
- package/dist/{MemberTransactions-Va--4_bi.js → MemberTransactions-nmURocbA.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DpK7c7Zu.js → MessageInput.vue_vue_type_script_setup_true_lang-Zk21rkMZ.js} +2 -2
- package/dist/{Mission-D9ASjTM_.js → Mission-B5YwPU71.js} +14 -14
- package/dist/{Point-DXllJyrF.js → Point-BiOgpyye.js} +7 -7
- package/dist/{Promotion-ByujYVZV.js → Promotion-Bpvuwixe.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-D9uygHXu.js → RuleGroup.vue_vue_type_script_setup_true_lang-DZlxkB8D.js} +13 -13
- package/dist/{Segment-DzYLWnEx.js → Segment-DrEpmY4N.js} +9 -9
- package/dist/{Setting-3JrqJeay.js → Setting-D48p2snU.js} +126 -126
- package/dist/Store-CT1XE_Sn.js +1502 -0
- package/dist/{StoreRewards-BIyTKYQ7.js → StoreRewards-DsjyanOO.js} +9 -9
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Cd9ReYzL.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DboIoW51.js} +82 -79
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CtSi80Oy.js +139 -0
- package/dist/{Tier-DSOYEDpP.js → Tier-BzZX_Dki.js} +16 -16
- package/dist/{Title-Bwgpdw5W.js → Title-C2Ji-YGQ.js} +15 -15
- package/dist/{Transaction-BA1wqoKh.js → Transaction-BJGKndk-.js} +1 -1
- package/dist/{Voucher-ZMryMClH.js → Voucher-D2dpFJSA.js} +20 -20
- package/dist/{app-gMUoPAtF.js → app-BAgeAm1l.js} +39 -39
- package/dist/{app--QGN757T.js → app-D5_9RvMw.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{campaign-DWA08UtZ.js → campaign-BK6-HrgE.js} +2 -2
- package/dist/{dto-EdZglrpA.js → dto-E-AuMyEO.js} +41 -41
- package/dist/{effect-BGQxHIBT.js → effect-DOWJayPu.js} +1 -1
- package/dist/{export-CvoZ48Rq.js → export-DMZdMVnb.js} +3 -3
- package/dist/{helper-BTpTsE8-.js → helper-CmlX0eR1.js} +1 -1
- package/dist/{index-BFJS-YmL.js → index-BNy1wU-V.js} +1 -1
- package/dist/{index-D_vvblAz.js → index-BZbJpBo2.js} +2 -2
- package/dist/{index-Blh8vWHb.js → index-BhHZOSyO.js} +1 -1
- package/dist/{index-CY0A-Rfl.js → index-BkHtyaBf.js} +5 -5
- package/dist/{index-BVqa77Ch.js → index-Cj1rTpPK.js} +1 -1
- package/dist/index-DKCHICCa.js +291 -0
- package/dist/{index-0t3kF_Tg.js → index-QeG7EuE3.js} +1 -1
- package/dist/{index-HPSSJKsc.js → index-RcFvF7Y_.js} +6 -5
- package/dist/{index-D4KUQKKJ.js → index-gOVUv83Y.js} +3 -3
- package/dist/{index-BxMkJPP_.js → index-zAvZNHx0.js} +2 -2
- package/dist/{loading-Cgp9wWK3.js → loading-BIURYgSR.js} +4 -4
- package/dist/{lodash-m4OgMZ4R.js → lodash-CxofWkz4.js} +1 -1
- package/dist/{membership-VeQiYdQd.js → membership-DVEV926P.js} +63 -58
- package/dist/{money-DUtWOAkL.js → money-99JilzxX.js} +1 -1
- package/dist/{number-D-YjTFfa.js → number-BKGHLuLf.js} +2 -2
- package/dist/{rule-b2srzDD8.js → rule-Chwh9Y4B.js} +2 -2
- package/dist/{rule-builder-CsFDa4FH.js → rule-builder-JEF7ltcg.js} +1 -1
- package/dist/{template-B8msjWjA.js → template-B6lZdtyo.js} +5 -5
- package/dist/{usePagination-D1R6ZAK_.js → usePagination-4epNDLvW.js} +1 -1
- package/dist/{xlsx-DlpKgn7I.js → xlsx-DKkkHUS_.js} +1 -1
- package/package.json +1 -1
- package/dist/Analytic-uwlRSM7O.js +0 -612
- package/dist/Store-2dsgXsLe.js +0 -1442
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BafQ0glH.js +0 -124
- package/dist/index-BTYqlJ9v.js +0 -244
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as Re, ref as z, computed as ie, onMounted as De, resolveComponent as
|
|
1
|
+
import { defineComponent as Re, ref as z, computed as ie, onMounted as De, resolveComponent as L, openBlock as V, createBlock as we, withCtx as G, createElementVNode as b, createVNode as M, unref as h, isRef as ke, createElementBlock as q, Fragment as fe, createTextVNode as Q, toDisplayString as k, renderList as Ie, createCommentVNode as Pe } from "vue";
|
|
2
2
|
import { h as rt } from "./moment-BWErdI6_.js";
|
|
3
3
|
import { useDialog as Ve } from "@feedmepos/ui-library";
|
|
4
|
-
import { a as xe, u as it, p as st, f as K } from "./loading-
|
|
5
|
-
import {
|
|
6
|
-
import { u as ze } from "./membership-
|
|
7
|
-
import { l as lt } from "./index-
|
|
8
|
-
import { _ as Ne } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as ct } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as ut } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { m as dt } from "./index-
|
|
4
|
+
import { a as xe, u as it, p as st, f as K } from "./loading-BIURYgSR.js";
|
|
5
|
+
import { b as be, l as $e, u as at } from "./app-BAgeAm1l.js";
|
|
6
|
+
import { u as ze } from "./membership-DVEV926P.js";
|
|
7
|
+
import { l as lt } from "./index-RcFvF7Y_.js";
|
|
8
|
+
import { _ as Ne } from "./ImageInput.vue_vue_type_script_setup_true_lang-CDeQRYDy.js";
|
|
9
|
+
import { _ as ct } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CtSi80Oy.js";
|
|
10
|
+
import { _ as ut } from "./MessageInput.vue_vue_type_script_setup_true_lang-Zk21rkMZ.js";
|
|
11
|
+
import { m as dt } from "./index-Cj1rTpPK.js";
|
|
12
12
|
import { o as ft } from "./objectId-dwaoBfJX.js";
|
|
13
13
|
import { a as gt } from "./object-qECH92oz.js";
|
|
14
|
-
var Z = {},
|
|
14
|
+
var Z = {}, mt = function() {
|
|
15
15
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
16
16
|
}, He = {}, I = {};
|
|
17
17
|
let Be;
|
|
18
|
-
const
|
|
18
|
+
const ht = [
|
|
19
19
|
0,
|
|
20
20
|
// Not used
|
|
21
21
|
26,
|
|
@@ -65,7 +65,7 @@ I.getSymbolSize = function(e) {
|
|
|
65
65
|
return e * 4 + 17;
|
|
66
66
|
};
|
|
67
67
|
I.getSymbolTotalCodewords = function(e) {
|
|
68
|
-
return
|
|
68
|
+
return ht[e];
|
|
69
69
|
};
|
|
70
70
|
I.getBCHDigit = function(t) {
|
|
71
71
|
let e = 0;
|
|
@@ -178,16 +178,16 @@ var yt = ee, Oe = {};
|
|
|
178
178
|
};
|
|
179
179
|
})(Oe);
|
|
180
180
|
var Ye = {};
|
|
181
|
-
const wt = I.getSymbolSize,
|
|
181
|
+
const wt = I.getSymbolSize, Ue = 7;
|
|
182
182
|
Ye.getPositions = function(e) {
|
|
183
183
|
const i = wt(e);
|
|
184
184
|
return [
|
|
185
185
|
// top-left
|
|
186
186
|
[0, 0],
|
|
187
187
|
// top-right
|
|
188
|
-
[i -
|
|
188
|
+
[i - Ue, 0],
|
|
189
189
|
// bottom-left
|
|
190
|
-
[0, i -
|
|
190
|
+
[0, i - Ue]
|
|
191
191
|
];
|
|
192
192
|
};
|
|
193
193
|
var je = {};
|
|
@@ -217,9 +217,9 @@ var je = {};
|
|
|
217
217
|
let a = 0, s = 0, l = 0, f = null, g = null;
|
|
218
218
|
for (let B = 0; B < n; B++) {
|
|
219
219
|
s = l = 0, f = g = null;
|
|
220
|
-
for (let
|
|
221
|
-
let u = o.get(B,
|
|
222
|
-
u === f ? s++ : (s >= 5 && (a += e.N1 + (s - 5)), f = u, s = 1), u = o.get(
|
|
220
|
+
for (let m = 0; m < n; m++) {
|
|
221
|
+
let u = o.get(B, m);
|
|
222
|
+
u === f ? s++ : (s >= 5 && (a += e.N1 + (s - 5)), f = u, s = 1), u = o.get(m, B), u === g ? l++ : (l >= 5 && (a += e.N1 + (l - 5)), g = u, l = 1);
|
|
223
223
|
}
|
|
224
224
|
s >= 5 && (a += e.N1 + (s - 5)), l >= 5 && (a += e.N1 + (l - 5));
|
|
225
225
|
}
|
|
@@ -790,24 +790,24 @@ F.testAlphanumeric = function(e) {
|
|
|
790
790
|
})($);
|
|
791
791
|
(function(t) {
|
|
792
792
|
const e = I, i = ce, r = le, o = $, n = Me, a = 7973, s = e.getBCHDigit(a);
|
|
793
|
-
function l(
|
|
793
|
+
function l(m, u, w) {
|
|
794
794
|
for (let v = 1; v <= 40; v++)
|
|
795
|
-
if (u <= t.getCapacity(v, w,
|
|
795
|
+
if (u <= t.getCapacity(v, w, m))
|
|
796
796
|
return v;
|
|
797
797
|
}
|
|
798
|
-
function f(
|
|
799
|
-
return o.getCharCountIndicator(
|
|
798
|
+
function f(m, u) {
|
|
799
|
+
return o.getCharCountIndicator(m, u) + 4;
|
|
800
800
|
}
|
|
801
|
-
function g(
|
|
801
|
+
function g(m, u) {
|
|
802
802
|
let w = 0;
|
|
803
|
-
return
|
|
803
|
+
return m.forEach(function(v) {
|
|
804
804
|
const S = f(v.mode, u);
|
|
805
805
|
w += S + v.getBitsLength();
|
|
806
806
|
}), w;
|
|
807
807
|
}
|
|
808
|
-
function B(
|
|
808
|
+
function B(m, u) {
|
|
809
809
|
for (let w = 1; w <= 40; w++)
|
|
810
|
-
if (g(
|
|
810
|
+
if (g(m, w) <= t.getCapacity(w, u, o.MIXED))
|
|
811
811
|
return w;
|
|
812
812
|
}
|
|
813
813
|
t.from = function(u, w) {
|
|
@@ -852,12 +852,12 @@ F.testAlphanumeric = function(e) {
|
|
|
852
852
|
};
|
|
853
853
|
})(Ge);
|
|
854
854
|
var Xe = {};
|
|
855
|
-
const ve = I, We = 1335, At = 21522,
|
|
855
|
+
const ve = I, We = 1335, At = 21522, Le = ve.getBCHDigit(We);
|
|
856
856
|
Xe.getEncodedBits = function(e, i) {
|
|
857
857
|
const r = e.bit << 3 | i;
|
|
858
858
|
let o = r << 10;
|
|
859
|
-
for (; ve.getBCHDigit(o) -
|
|
860
|
-
o ^= We << ve.getBCHDigit(o) -
|
|
859
|
+
for (; ve.getBCHDigit(o) - Le >= 0; )
|
|
860
|
+
o ^= We << ve.getBCHDigit(o) - Le;
|
|
861
861
|
return (r << 10 | o) ^ At;
|
|
862
862
|
};
|
|
863
863
|
var Ze = {};
|
|
@@ -976,9 +976,9 @@ var It = Y, Pt = function(e) {
|
|
|
976
976
|
}
|
|
977
977
|
return new Uint8Array(i).buffer;
|
|
978
978
|
};
|
|
979
|
-
const Nt = Pt,
|
|
979
|
+
const Nt = Pt, Ut = $;
|
|
980
980
|
function j(t) {
|
|
981
|
-
this.mode =
|
|
981
|
+
this.mode = Ut.BYTE, typeof t == "string" && (t = Nt(t)), this.data = new Uint8Array(t);
|
|
982
982
|
}
|
|
983
983
|
j.getBitsLength = function(e) {
|
|
984
984
|
return e * 8;
|
|
@@ -993,7 +993,7 @@ j.prototype.write = function(t) {
|
|
|
993
993
|
for (let e = 0, i = this.data.length; e < i; e++)
|
|
994
994
|
t.put(this.data[e], 8);
|
|
995
995
|
};
|
|
996
|
-
var
|
|
996
|
+
var Lt = j;
|
|
997
997
|
const Ft = $, Rt = I;
|
|
998
998
|
function J(t) {
|
|
999
999
|
this.mode = Ft.KANJI, this.data = t;
|
|
@@ -1031,10 +1031,10 @@ var Dt = J, et = { exports: {} };
|
|
|
1031
1031
|
a[r] = 0;
|
|
1032
1032
|
var s = e.PriorityQueue.make();
|
|
1033
1033
|
s.push(r, 0);
|
|
1034
|
-
for (var l, f, g, B,
|
|
1035
|
-
l = s.pop(), f = l.value, B = l.cost,
|
|
1036
|
-
for (g in
|
|
1037
|
-
|
|
1034
|
+
for (var l, f, g, B, m, u, w, v, S; !s.empty(); ) {
|
|
1035
|
+
l = s.pop(), f = l.value, B = l.cost, m = i[f] || {};
|
|
1036
|
+
for (g in m)
|
|
1037
|
+
m.hasOwnProperty(g) && (u = m[g], w = B + u, v = a[g], S = typeof a[g] > "u", (S || v > w) && (a[g] = w, s.push(g, w), n[g] = f));
|
|
1038
1038
|
}
|
|
1039
1039
|
if (typeof o < "u" && typeof a[o] > "u") {
|
|
1040
1040
|
var y = ["Could not find a path from ", r, " to ", o, "."].join("");
|
|
@@ -1091,7 +1091,7 @@ var Dt = J, et = { exports: {} };
|
|
|
1091
1091
|
})(et);
|
|
1092
1092
|
var kt = et.exports;
|
|
1093
1093
|
(function(t) {
|
|
1094
|
-
const e = $, i = St, r = It, o =
|
|
1094
|
+
const e = $, i = St, r = It, o = Lt, n = Dt, a = F, s = I, l = kt;
|
|
1095
1095
|
function f(y) {
|
|
1096
1096
|
return unescape(encodeURIComponent(y)).length;
|
|
1097
1097
|
}
|
|
@@ -1120,7 +1120,7 @@ var kt = et.exports;
|
|
|
1120
1120
|
};
|
|
1121
1121
|
});
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function m(y, d) {
|
|
1124
1124
|
switch (d) {
|
|
1125
1125
|
case e.NUMERIC:
|
|
1126
1126
|
return i.getBitsLength(y);
|
|
@@ -1180,7 +1180,7 @@ var kt = et.exports;
|
|
|
1180
1180
|
T.push(R), c[R] = { node: N, lastCount: 0 }, p[R] = {};
|
|
1181
1181
|
for (let H = 0; H < _.length; H++) {
|
|
1182
1182
|
const C = _[H];
|
|
1183
|
-
c[C] && c[C].node.mode === N.mode ? (p[C][R] =
|
|
1183
|
+
c[C] && c[C].node.mode === N.mode ? (p[C][R] = m(c[C].lastCount + N.length, N.mode) - m(c[C].lastCount, N.mode), c[C].lastCount += N.length) : (c[C] && (c[C].lastCount = N.length), p[C][R] = m(N.length, N.mode) + 4 + e.getCharCountIndicator(N.mode, d));
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
1186
|
_ = T;
|
|
@@ -1221,7 +1221,7 @@ var kt = et.exports;
|
|
|
1221
1221
|
);
|
|
1222
1222
|
};
|
|
1223
1223
|
})(Ze);
|
|
1224
|
-
const de = I,
|
|
1224
|
+
const de = I, me = le, Vt = pt, xt = yt, $t = Oe, zt = Ye, Ce = je, _e = ce, Ht = bt, ae = Ge, Kt = Xe, Ot = $, he = Ze;
|
|
1225
1225
|
function Yt(t, e) {
|
|
1226
1226
|
const i = t.size, r = zt.getPositions(e);
|
|
1227
1227
|
for (let o = 0; o < r.length; o++) {
|
|
@@ -1291,7 +1291,7 @@ function Qt(t, e, i) {
|
|
|
1291
1291
|
return Xt(r, t, e);
|
|
1292
1292
|
}
|
|
1293
1293
|
function Xt(t, e, i) {
|
|
1294
|
-
const r = de.getSymbolTotalCodewords(e), o = _e.getTotalCodewordsCount(e, i), n = r - o, a = _e.getBlocksCount(e, i), s = r % a, l = a - s, f = Math.floor(r / a), g = Math.floor(n / a), B = g + 1,
|
|
1294
|
+
const r = de.getSymbolTotalCodewords(e), o = _e.getTotalCodewordsCount(e, i), n = r - o, a = _e.getBlocksCount(e, i), s = r % a, l = a - s, f = Math.floor(r / a), g = Math.floor(n / a), B = g + 1, m = f - g, u = new Ht(m);
|
|
1295
1295
|
let w = 0;
|
|
1296
1296
|
const v = new Array(a), S = new Array(a);
|
|
1297
1297
|
let y = 0;
|
|
@@ -1305,7 +1305,7 @@ function Xt(t, e, i) {
|
|
|
1305
1305
|
for (_ = 0; _ < y; _++)
|
|
1306
1306
|
for (E = 0; E < a; E++)
|
|
1307
1307
|
_ < v[E].length && (c[p++] = v[E][_]);
|
|
1308
|
-
for (_ = 0; _ <
|
|
1308
|
+
for (_ = 0; _ < m; _++)
|
|
1309
1309
|
for (E = 0; E < a; E++)
|
|
1310
1310
|
c[p++] = S[E][_];
|
|
1311
1311
|
return c;
|
|
@@ -1313,14 +1313,14 @@ function Xt(t, e, i) {
|
|
|
1313
1313
|
function Wt(t, e, i, r) {
|
|
1314
1314
|
let o;
|
|
1315
1315
|
if (Array.isArray(t))
|
|
1316
|
-
o =
|
|
1316
|
+
o = he.fromArray(t);
|
|
1317
1317
|
else if (typeof t == "string") {
|
|
1318
1318
|
let f = e;
|
|
1319
1319
|
if (!f) {
|
|
1320
|
-
const g =
|
|
1320
|
+
const g = he.rawSplit(t);
|
|
1321
1321
|
f = ae.getBestVersionForData(g, i);
|
|
1322
1322
|
}
|
|
1323
|
-
o =
|
|
1323
|
+
o = he.fromString(t, f || 40);
|
|
1324
1324
|
} else
|
|
1325
1325
|
throw new Error("Invalid data");
|
|
1326
1326
|
const n = ae.getBestVersionForData(o, i);
|
|
@@ -1350,8 +1350,8 @@ Minimum version required to store current data is: ` + n + `.
|
|
|
1350
1350
|
He.create = function(e, i) {
|
|
1351
1351
|
if (typeof e > "u" || e === "")
|
|
1352
1352
|
throw new Error("No input text");
|
|
1353
|
-
let r =
|
|
1354
|
-
return typeof i < "u" && (r =
|
|
1353
|
+
let r = me.M, o, n;
|
|
1354
|
+
return typeof i < "u" && (r = me.from(i.errorCorrectionLevel, me.M), o = ae.from(i.version), n = Ce.from(i.maskPattern), i.toSJISFunc && de.setToSJISFunction(i.toSJISFunc)), Wt(e, o, r, n);
|
|
1355
1355
|
};
|
|
1356
1356
|
var tt = {}, Se = {};
|
|
1357
1357
|
(function(t) {
|
|
@@ -1394,11 +1394,11 @@ var tt = {}, Se = {};
|
|
|
1394
1394
|
return Math.floor((r + o.margin * 2) * n);
|
|
1395
1395
|
}, t.qrToImageData = function(r, o, n) {
|
|
1396
1396
|
const a = o.modules.size, s = o.modules.data, l = t.getScale(a, n), f = Math.floor((a + n.margin * 2) * l), g = n.margin * l, B = [n.color.light, n.color.dark];
|
|
1397
|
-
for (let
|
|
1397
|
+
for (let m = 0; m < f; m++)
|
|
1398
1398
|
for (let u = 0; u < f; u++) {
|
|
1399
|
-
let w = (
|
|
1400
|
-
if (
|
|
1401
|
-
const S = Math.floor((
|
|
1399
|
+
let w = (m * f + u) * 4, v = n.color.light;
|
|
1400
|
+
if (m >= g && u >= g && m < f - g && u < f - g) {
|
|
1401
|
+
const S = Math.floor((m - g) / l), y = Math.floor((u - g) / l);
|
|
1402
1402
|
v = B[s[S * a + y] ? 1 : 0];
|
|
1403
1403
|
}
|
|
1404
1404
|
r[w++] = v.r, r[w++] = v.g, r[w++] = v.b, r[w] = v.a;
|
|
@@ -1420,8 +1420,8 @@ var tt = {}, Se = {};
|
|
|
1420
1420
|
t.render = function(n, a, s) {
|
|
1421
1421
|
let l = s, f = a;
|
|
1422
1422
|
typeof l > "u" && (!a || !a.getContext) && (l = a, a = void 0), a || (f = r()), l = e.getOptions(l);
|
|
1423
|
-
const g = e.getImageWidth(n.modules.size, l), B = f.getContext("2d"),
|
|
1424
|
-
return e.qrToImageData(
|
|
1423
|
+
const g = e.getImageWidth(n.modules.size, l), B = f.getContext("2d"), m = B.createImageData(g, g);
|
|
1424
|
+
return e.qrToImageData(m.data, n, l), i(B, f, g), B.putImageData(m, 0, 0), f;
|
|
1425
1425
|
}, t.renderToDataURL = function(n, a, s) {
|
|
1426
1426
|
let l = s;
|
|
1427
1427
|
typeof l > "u" && (!a || !a.getContext) && (l = a, a = void 0), l || (l = {});
|
|
@@ -1448,11 +1448,11 @@ function en(t, e, i) {
|
|
|
1448
1448
|
return r;
|
|
1449
1449
|
}
|
|
1450
1450
|
nt.render = function(e, i, r) {
|
|
1451
|
-
const o = Zt.getOptions(i), n = e.modules.size, a = e.modules.data, s = n + o.margin * 2, l = o.color.light.a ? "<path " + Fe(o.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", f = "<path " + Fe(o.color.dark, "stroke") + ' d="' + en(a, n, o.margin) + '"/>', g = 'viewBox="0 0 ' + s + " " + s + '"',
|
|
1451
|
+
const o = Zt.getOptions(i), n = e.modules.size, a = e.modules.data, s = n + o.margin * 2, l = o.color.light.a ? "<path " + Fe(o.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", f = "<path " + Fe(o.color.dark, "stroke") + ' d="' + en(a, n, o.margin) + '"/>', g = 'viewBox="0 0 ' + s + " " + s + '"', m = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + g + ' shape-rendering="crispEdges">' + l + f + `</svg>
|
|
1452
1452
|
`;
|
|
1453
|
-
return typeof r == "function" && r(null,
|
|
1453
|
+
return typeof r == "function" && r(null, m), m;
|
|
1454
1454
|
};
|
|
1455
|
-
const tn =
|
|
1455
|
+
const tn = mt, Ee = He, ot = tt, nn = nt;
|
|
1456
1456
|
function Te(t, e, i, r, o) {
|
|
1457
1457
|
const n = [].slice.call(arguments, 1), a = n.length, s = typeof n[a - 1] == "function";
|
|
1458
1458
|
if (!s && !tn())
|
|
@@ -1496,7 +1496,7 @@ async function on(t, e = 350) {
|
|
|
1496
1496
|
console.error(i);
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
|
-
var rn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
1499
|
+
var rn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
1500
1500
|
const sn = { class: "flex items-start" }, an = /* @__PURE__ */ b("div", null, [
|
|
1501
1501
|
/* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
|
|
1502
1502
|
/* @__PURE__ */ b("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
|
|
@@ -1504,15 +1504,15 @@ const sn = { class: "flex items-start" }, an = /* @__PURE__ */ b("div", null, [
|
|
|
1504
1504
|
__name: "LinkDeviceDialog",
|
|
1505
1505
|
setup(t) {
|
|
1506
1506
|
const e = be(), i = ze(), r = Ve(), o = z(), n = z(), a = rn.crmUrl, s = z(), l = ie(() => i.membership), f = ie(() => {
|
|
1507
|
-
var
|
|
1508
|
-
return `https://${(
|
|
1507
|
+
var m, u;
|
|
1508
|
+
return `https://${(m = l.value) != null && m.url ? l.value.url : (u = l.value) == null ? void 0 : u.business}.${a}`;
|
|
1509
1509
|
});
|
|
1510
|
-
async function g(
|
|
1511
|
-
const u = await $e.getOtp(
|
|
1510
|
+
async function g(m) {
|
|
1511
|
+
const u = await $e.getOtp(m);
|
|
1512
1512
|
return `${f.value}?link-device=${u.otp}`;
|
|
1513
1513
|
}
|
|
1514
|
-
async function B(
|
|
1515
|
-
const u = await g(
|
|
1514
|
+
async function B(m) {
|
|
1515
|
+
const u = await g(m);
|
|
1516
1516
|
s.value = u, o.value = await on(u);
|
|
1517
1517
|
}
|
|
1518
1518
|
return De(async () => {
|
|
@@ -1520,39 +1520,39 @@ const sn = { class: "flex items-start" }, an = /* @__PURE__ */ b("div", null, [
|
|
|
1520
1520
|
r.close();
|
|
1521
1521
|
return;
|
|
1522
1522
|
}
|
|
1523
|
-
const
|
|
1524
|
-
n.value =
|
|
1525
|
-
}), (
|
|
1526
|
-
const w =
|
|
1523
|
+
const m = e.locations[0]._id;
|
|
1524
|
+
n.value = m, await B(m);
|
|
1525
|
+
}), (m, u) => {
|
|
1526
|
+
const w = L("FmIcon"), v = L("FmSelect"), S = L("FmButton"), y = L("FmCard");
|
|
1527
1527
|
return V(), we(y, { class: "p-24 max-w-[350px]" }, {
|
|
1528
1528
|
default: G(() => [
|
|
1529
1529
|
b("div", sn, [
|
|
1530
1530
|
an,
|
|
1531
1531
|
M(w, {
|
|
1532
1532
|
name: "close",
|
|
1533
|
-
onClick: u[0] || (u[0] = (d) =>
|
|
1533
|
+
onClick: u[0] || (u[0] = (d) => h(r).close()),
|
|
1534
1534
|
class: "cursor-pointer"
|
|
1535
1535
|
})
|
|
1536
1536
|
]),
|
|
1537
1537
|
b("div", ln, [
|
|
1538
1538
|
M(v, {
|
|
1539
|
-
modelValue:
|
|
1539
|
+
modelValue: h(n),
|
|
1540
1540
|
"onUpdate:modelValue": [
|
|
1541
1541
|
u[1] || (u[1] = (d) => ke(n) ? n.value = d : null),
|
|
1542
1542
|
B
|
|
1543
1543
|
],
|
|
1544
1544
|
label: "Select Location",
|
|
1545
|
-
items:
|
|
1545
|
+
items: h(e).locationItems.filter((d) => !!d.value)
|
|
1546
1546
|
}, null, 8, ["modelValue", "items"]),
|
|
1547
1547
|
b("img", {
|
|
1548
|
-
src:
|
|
1548
|
+
src: h(o),
|
|
1549
1549
|
class: "aspect-square w-full"
|
|
1550
1550
|
}, null, 8, cn),
|
|
1551
1551
|
M(S, {
|
|
1552
1552
|
class: "mx-auto",
|
|
1553
1553
|
variant: "plain",
|
|
1554
1554
|
icon: "content_copy",
|
|
1555
|
-
onClick: u[2] || (u[2] = (d) =>
|
|
1555
|
+
onClick: u[2] || (u[2] = (d) => h(xe)(h(s)))
|
|
1556
1556
|
})
|
|
1557
1557
|
])
|
|
1558
1558
|
]),
|
|
@@ -1561,14 +1561,14 @@ const sn = { class: "flex items-start" }, an = /* @__PURE__ */ b("div", null, [
|
|
|
1561
1561
|
};
|
|
1562
1562
|
}
|
|
1563
1563
|
});
|
|
1564
|
-
var dn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
1565
|
-
const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, gn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-md-800" }, "Setting", -1),
|
|
1564
|
+
var dn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
1565
|
+
const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, gn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-md-800" }, "Setting", -1), mn = {
|
|
1566
1566
|
key: 0,
|
|
1567
1567
|
class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
|
|
1568
|
-
},
|
|
1568
|
+
}, hn = { class: "col-span-2 flex flex-col xs:col-span-3" }, pn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Basic Information", -1), yn = { class: "space-y-24" }, wn = { class: "space-y-8" }, bn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Counter App", -1), vn = { class: "fm-typo-body-lg-400" }, Cn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, _n = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, En = { class: "space-y-8" }, Bn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, An = { class: "space-y-8" }, Mn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1), Sn = { class: "space-y-8" }, Tn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, [
|
|
1569
1569
|
/* @__PURE__ */ Q(" Free Credit as Discount "),
|
|
1570
1570
|
/* @__PURE__ */ b("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
|
|
1571
|
-
], -1), In = { class: "space-y-8" }, Pn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Nn = { class: "space-y-8" },
|
|
1571
|
+
], -1), In = { class: "space-y-8" }, Pn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Nn = { class: "space-y-8" }, Un = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), Ln = { class: "flex justify-end pb-24" }, Fn = { class: "col-span-1 space-y-8 xs:hidden" }, Rn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), Dn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), kn = { class: "fm-typo-en-body-lg-600" }, Vn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), xn = { class: "fm-typo-en-body-lg-600" }, $n = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), zn = { class: "fm-typo-en-body-lg-600" }, Hn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), Kn = { class: "fm-typo-en-body-lg-600" }, oo = /* @__PURE__ */ Re({
|
|
1572
1572
|
__name: "Setting",
|
|
1573
1573
|
setup(t) {
|
|
1574
1574
|
const e = at(), i = be(), r = ze(), { global: o, minor: n } = it, a = Ve(), s = z(), l = z(!1), f = [
|
|
@@ -1577,7 +1577,7 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1577
1577
|
], g = dn.appUrl, B = ie(() => {
|
|
1578
1578
|
var d;
|
|
1579
1579
|
return `https://${(d = s.value) == null ? void 0 : d.business}.${g}`;
|
|
1580
|
-
}),
|
|
1580
|
+
}), m = z(), u = z([]), w = ie(() => {
|
|
1581
1581
|
var d, c;
|
|
1582
1582
|
return Math.min((((c = (d = s.value) == null ? void 0 : d.advertisements) == null ? void 0 : c.length) ?? 0) + 1, 5);
|
|
1583
1583
|
});
|
|
@@ -1610,9 +1610,9 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1610
1610
|
const d = gt(s.value);
|
|
1611
1611
|
d.welcomeMessage && !((p = d.welcomeMessage) != null && p.content) && (d.welcomeMessage.content = "Hi there, you have been invited to join our membership");
|
|
1612
1612
|
const c = lt.parse(d);
|
|
1613
|
-
|
|
1613
|
+
m.value === null && c.image ? await K.delete(K.coverImagePath()) : m.value && (c.image = await K.update(
|
|
1614
1614
|
K.coverImagePath(),
|
|
1615
|
-
|
|
1615
|
+
m.value
|
|
1616
1616
|
)), l.value ? c.advertisements = (await Promise.all(
|
|
1617
1617
|
new Array(w.value - 1).fill(null).map(async (_, E) => {
|
|
1618
1618
|
var T;
|
|
@@ -1637,7 +1637,7 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1637
1637
|
});
|
|
1638
1638
|
}), (d, c) => {
|
|
1639
1639
|
var R, H;
|
|
1640
|
-
const p =
|
|
1640
|
+
const p = L("FmPageHead"), _ = L("FmButton"), E = L("FmTextField"), A = L("FmCard"), T = L("FmPill"), P = L("FmSwitch"), N = L("FmMenuDivider");
|
|
1641
1641
|
return V(), q(fe, null, [
|
|
1642
1642
|
M(p, {
|
|
1643
1643
|
title: "Setting",
|
|
@@ -1650,34 +1650,34 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1650
1650
|
variant: "tertiary"
|
|
1651
1651
|
})
|
|
1652
1652
|
]),
|
|
1653
|
-
|
|
1654
|
-
b("div",
|
|
1653
|
+
h(s) ? (V(), q("div", mn, [
|
|
1654
|
+
b("div", hn, [
|
|
1655
1655
|
pn,
|
|
1656
1656
|
b("div", yn, [
|
|
1657
1657
|
M(E, {
|
|
1658
1658
|
label: "Membership title",
|
|
1659
|
-
modelValue:
|
|
1660
|
-
"onUpdate:modelValue": c[0] || (c[0] = (C) =>
|
|
1659
|
+
modelValue: h(s).name,
|
|
1660
|
+
"onUpdate:modelValue": c[0] || (c[0] = (C) => h(s).name = C)
|
|
1661
1661
|
}, null, 8, ["modelValue"]),
|
|
1662
1662
|
M(E, {
|
|
1663
1663
|
disabled: !0,
|
|
1664
|
-
"model-value":
|
|
1664
|
+
"model-value": h(s).business,
|
|
1665
1665
|
rules: f,
|
|
1666
1666
|
required: !0,
|
|
1667
1667
|
label: "Member app URL",
|
|
1668
|
-
"helper-text":
|
|
1669
|
-
placeholder:
|
|
1670
|
-
"onUpdate:modelValue": c[2] || (c[2] = (C) =>
|
|
1668
|
+
"helper-text": h(B),
|
|
1669
|
+
placeholder: h(s).business.toString(),
|
|
1670
|
+
"onUpdate:modelValue": c[2] || (c[2] = (C) => h(s).url = C)
|
|
1671
1671
|
}, {
|
|
1672
1672
|
prepend: G(() => [
|
|
1673
1673
|
Q(" https:// ")
|
|
1674
1674
|
]),
|
|
1675
1675
|
append: G(() => [
|
|
1676
|
-
Q(" ." + k(
|
|
1676
|
+
Q(" ." + k(h(g)) + " ", 1),
|
|
1677
1677
|
M(_, {
|
|
1678
1678
|
icon: "content_copy",
|
|
1679
1679
|
variant: "tertiary",
|
|
1680
|
-
onClick: c[1] || (c[1] = (C) =>
|
|
1680
|
+
onClick: c[1] || (c[1] = (C) => h(xe)(h(B)))
|
|
1681
1681
|
})
|
|
1682
1682
|
]),
|
|
1683
1683
|
_: 1
|
|
@@ -1687,9 +1687,9 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1687
1687
|
class: "w-2/3 xs:w-full",
|
|
1688
1688
|
"image-fit": "cover",
|
|
1689
1689
|
"aspect-ratio": "3/1",
|
|
1690
|
-
thumbnail:
|
|
1690
|
+
thumbnail: h(s).image || void 0,
|
|
1691
1691
|
"onUpdate:file": c[3] || (c[3] = async (C) => {
|
|
1692
|
-
|
|
1692
|
+
m.value = C, C || (h(s).image = null);
|
|
1693
1693
|
})
|
|
1694
1694
|
}, null, 8, ["thumbnail"]),
|
|
1695
1695
|
b("div", wn, [
|
|
@@ -1700,18 +1700,18 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1700
1700
|
label: "Link Device",
|
|
1701
1701
|
onClick: v
|
|
1702
1702
|
}),
|
|
1703
|
-
(V(!0), q(fe, null, Ie(
|
|
1704
|
-
key:
|
|
1703
|
+
(V(!0), q(fe, null, Ie(h(i).locationDevices, (C, U) => (V(), we(A, {
|
|
1704
|
+
key: U,
|
|
1705
1705
|
variant: "outlined",
|
|
1706
1706
|
class: "flex items-center justify-between px-16 py-12"
|
|
1707
1707
|
}, {
|
|
1708
1708
|
default: G(() => [
|
|
1709
1709
|
b("div", null, [
|
|
1710
1710
|
b("p", vn, k(C.name || `Device ${C._id}`), 1),
|
|
1711
|
-
b("p", Cn, " Activation date: " + k(
|
|
1711
|
+
b("p", Cn, " Activation date: " + k(h(rt)(h(ft)(C._id.toString())).format(
|
|
1712
1712
|
"D MMM YYYY"
|
|
1713
1713
|
)), 1),
|
|
1714
|
-
b("p", _n, " Linked location: " + k(
|
|
1714
|
+
b("p", _n, " Linked location: " + k(h(i).locations.find((D) => D._id == C.location).name), 1)
|
|
1715
1715
|
]),
|
|
1716
1716
|
M(_, {
|
|
1717
1717
|
icon: "link_off",
|
|
@@ -1728,31 +1728,31 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1728
1728
|
M(T, { variant: "premium" })
|
|
1729
1729
|
]),
|
|
1730
1730
|
M(P, {
|
|
1731
|
-
modelValue:
|
|
1731
|
+
modelValue: h(l),
|
|
1732
1732
|
"onUpdate:modelValue": c[4] || (c[4] = (C) => ke(l) ? l.value = C : null),
|
|
1733
1733
|
label: "Advertisement",
|
|
1734
1734
|
sublabel: "This will be show on FeedMe ordering app",
|
|
1735
1735
|
"label-placement": "right",
|
|
1736
|
-
disabled: !
|
|
1736
|
+
disabled: !h(i).isPremium,
|
|
1737
1737
|
value: ""
|
|
1738
1738
|
}, null, 8, ["modelValue", "disabled"]),
|
|
1739
|
-
|
|
1739
|
+
h(l) ? (V(), q("div", {
|
|
1740
1740
|
class: "flex items-center gap-8 flex-wrap xs:grid xs:grid-cols-2 xs:overflow-x-scroll xs:w-full",
|
|
1741
|
-
key:
|
|
1741
|
+
key: h(w)
|
|
1742
1742
|
}, [
|
|
1743
|
-
(V(!0), q(fe, null, Ie(
|
|
1743
|
+
(V(!0), q(fe, null, Ie(h(w), (C, U) => {
|
|
1744
1744
|
var D, te;
|
|
1745
1745
|
return V(), we(Ne, {
|
|
1746
1746
|
class: "w-[200px]",
|
|
1747
1747
|
"image-fit": "cover",
|
|
1748
1748
|
label: "",
|
|
1749
1749
|
"aspect-ratio": "2/3",
|
|
1750
|
-
thumbnail: (te = (D =
|
|
1750
|
+
thumbnail: (te = (D = h(s)) == null ? void 0 : D.advertisements) == null ? void 0 : te[U],
|
|
1751
1751
|
accept: ".png, .jpg, .jpeg, .mp4, .gif",
|
|
1752
1752
|
"recommended-size": "Recommended 4:5 ratio / 1080px x 1350px",
|
|
1753
|
-
file:
|
|
1753
|
+
file: h(u)[U] ?? void 0,
|
|
1754
1754
|
"onUpdate:file": (ne) => {
|
|
1755
|
-
|
|
1755
|
+
h(s).advertisements || (h(s).advertisements = []), ne ? (h(s).advertisements[U] = "", h(u)[U] = ne) : (h(s).advertisements.splice(U, 1), h(u).splice(U, 1));
|
|
1756
1756
|
}
|
|
1757
1757
|
}, null, 8, ["thumbnail", "file", "onUpdate:file"]);
|
|
1758
1758
|
}), 256))
|
|
@@ -1761,16 +1761,16 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1761
1761
|
b("div", An, [
|
|
1762
1762
|
Mn,
|
|
1763
1763
|
M(E, {
|
|
1764
|
-
"model-value": ((R =
|
|
1764
|
+
"model-value": ((R = h(s)) == null ? void 0 : R.brand) || "",
|
|
1765
1765
|
"max-length": 15,
|
|
1766
1766
|
label: "Brand Name",
|
|
1767
1767
|
"show-word-count": "",
|
|
1768
|
-
"helper-text": `RM 0 ${((H =
|
|
1769
|
-
"onUpdate:modelValue": c[5] || (c[5] = (C) =>
|
|
1768
|
+
"helper-text": `RM 0 ${((H = h(s)) == null ? void 0 : H.brand) || ""}: YOUR CUSTOMER MESSAGE`,
|
|
1769
|
+
"onUpdate:modelValue": c[5] || (c[5] = (C) => h(s).brand = C)
|
|
1770
1770
|
}, null, 8, ["model-value", "helper-text"]),
|
|
1771
1771
|
M(ut, {
|
|
1772
|
-
modelValue:
|
|
1773
|
-
"onUpdate:modelValue": c[6] || (c[6] = (C) =>
|
|
1772
|
+
modelValue: h(s).welcomeMessage,
|
|
1773
|
+
"onUpdate:modelValue": c[6] || (c[6] = (C) => h(s).welcomeMessage = C),
|
|
1774
1774
|
variables: [
|
|
1775
1775
|
"user.name",
|
|
1776
1776
|
"user.gender",
|
|
@@ -1784,8 +1784,8 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1784
1784
|
b("div", Sn, [
|
|
1785
1785
|
Tn,
|
|
1786
1786
|
M(P, {
|
|
1787
|
-
"model-value":
|
|
1788
|
-
"onUpdate:modelValue": c[7] || (c[7] = (C) =>
|
|
1787
|
+
"model-value": h(s).freeCreditAsDiscount ?? !1,
|
|
1788
|
+
"onUpdate:modelValue": c[7] || (c[7] = (C) => h(s).freeCreditAsDiscount = C),
|
|
1789
1789
|
label: "Free Credit as Discount",
|
|
1790
1790
|
sublabel: "When enabled, this will allow free credit to be used as discount in the bill (POS >=v6.56)",
|
|
1791
1791
|
"label-placement": "right",
|
|
@@ -1798,30 +1798,30 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1798
1798
|
M(T, { variant: "premium" })
|
|
1799
1799
|
]),
|
|
1800
1800
|
M(P, {
|
|
1801
|
-
"model-value":
|
|
1802
|
-
"onUpdate:modelValue": c[8] || (c[8] = (C) =>
|
|
1801
|
+
"model-value": h(s).cardEnable ?? !1,
|
|
1802
|
+
"onUpdate:modelValue": c[8] || (c[8] = (C) => h(s).cardEnable = C),
|
|
1803
1803
|
label: "",
|
|
1804
1804
|
sublabel: "Allow member to bind card via member app",
|
|
1805
1805
|
"label-placement": "right",
|
|
1806
1806
|
value: "",
|
|
1807
|
-
disabled: !
|
|
1807
|
+
disabled: !h(i).isPremium
|
|
1808
1808
|
}, null, 8, ["model-value", "disabled"])
|
|
1809
1809
|
]),
|
|
1810
1810
|
b("div", Nn, [
|
|
1811
|
-
|
|
1811
|
+
Un,
|
|
1812
1812
|
M(ct, {
|
|
1813
1813
|
label: "Select restaurant",
|
|
1814
|
-
"model-value":
|
|
1815
|
-
"onUpdate:modelValue": c[9] || (c[9] = (C) =>
|
|
1814
|
+
"model-value": h(s).targetLocation ?? null,
|
|
1815
|
+
"onUpdate:modelValue": c[9] || (c[9] = (C) => h(s).targetLocation = C)
|
|
1816
1816
|
}, null, 8, ["model-value"])
|
|
1817
1817
|
]),
|
|
1818
|
-
b("div",
|
|
1818
|
+
b("div", Ln, [
|
|
1819
1819
|
M(_, {
|
|
1820
1820
|
label: "Update",
|
|
1821
1821
|
type: "button",
|
|
1822
1822
|
onClick: y,
|
|
1823
|
-
disabled: !!
|
|
1824
|
-
loading: !!
|
|
1823
|
+
disabled: !!h(e).loadingQueue.length,
|
|
1824
|
+
loading: !!h(e).loadingQueue.length
|
|
1825
1825
|
}, null, 8, ["disabled", "loading"])
|
|
1826
1826
|
])
|
|
1827
1827
|
])
|
|
@@ -1832,26 +1832,26 @@ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1832
1832
|
class: "flex flex-col p-24 gap-8"
|
|
1833
1833
|
}, {
|
|
1834
1834
|
default: G(() => {
|
|
1835
|
-
var C,
|
|
1835
|
+
var C, U, D;
|
|
1836
1836
|
return [
|
|
1837
1837
|
Rn,
|
|
1838
1838
|
M(N, { class: "my-4" }),
|
|
1839
1839
|
b("div", null, [
|
|
1840
1840
|
Dn,
|
|
1841
|
-
b("div", kn, k(
|
|
1841
|
+
b("div", kn, k(h(s).name), 1)
|
|
1842
1842
|
]),
|
|
1843
1843
|
b("div", null, [
|
|
1844
1844
|
Vn,
|
|
1845
|
-
b("div", xn, k((((C =
|
|
1845
|
+
b("div", xn, k((((C = h(s).advertisements) == null ? void 0 : C.length) ?? 0) || "No advertisments"), 1)
|
|
1846
1846
|
]),
|
|
1847
1847
|
b("div", null, [
|
|
1848
1848
|
$n,
|
|
1849
|
-
b("div", zn, k(
|
|
1849
|
+
b("div", zn, k(h(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
|
|
1850
1850
|
]),
|
|
1851
1851
|
b("div", null, [
|
|
1852
1852
|
Hn,
|
|
1853
|
-
b("div", Kn, k(!
|
|
1854
|
-
(te) =>
|
|
1853
|
+
b("div", Kn, k(!h(s).targetLocation || h(s).targetLocation.length == h(be)().locations.length ? "All locations" : (D = (U = h(s)) == null ? void 0 : U.targetLocation) == null ? void 0 : D.map(
|
|
1854
|
+
(te) => h(i).locations.find((ne) => ne._id == te).name
|
|
1855
1855
|
).join(", ")), 1)
|
|
1856
1856
|
])
|
|
1857
1857
|
];
|