@feedmepos/mf-connect 0.1.38-beta.4 → 0.1.38-beta.6
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-CEKrQOtf.js → Analytic-NBx32reB.js} +13 -13
- package/dist/{App-DOWjGKde.js → App-CaK9PvMd.js} +6 -6
- package/dist/{AuditLogs-Cz9BYiEk.js → AuditLogs-C-gCCPvF.js} +9 -9
- package/dist/{Bin-BusatNUU.js → Bin-CL6o1JSs.js} +8 -8
- package/dist/{Broadcast-BE51jjUA.js → Broadcast-B2-itjvZ.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BArTOg6l.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIySMYGP.js} +6 -6
- package/dist/{Card-CKNq3Bz_.js → Card-DNdEjt6s.js} +16 -16
- package/dist/{Collections-DBymldhW.js → Collections-DepGq6WJ.js} +74 -73
- package/dist/{Credit-BqD_Ar0Z.js → Credit-D7K0gFwc.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DPD7_dlg.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js} +29 -29
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Cmo_q9Dx.js → EffectSheet.vue_vue_type_style_index_0_lang-DrbMJlm5.js} +6 -6
- package/dist/{Experience-CkEWFN3w.js → Experience-FlBX3eyN.js} +9 -9
- package/dist/{Game-rAsViSSf.js → Game-Cc3D7lKV.js} +10 -10
- package/dist/{Index-tyKEuFmH.js → Index-2wokhhFB.js} +10 -10
- package/dist/{Marketing-ZlUJY20D.js → Marketing-D7PXYloN.js} +6 -6
- package/dist/{Member-OAoxhJiT.js → Member-2xV4Izwa.js} +10 -10
- package/dist/{MemberList-DpZthjRy.js → MemberList-CYgBdyJt.js} +25 -25
- package/dist/{MemberTransactions-CfSZnCm6.js → MemberTransactions-DWDV01N4.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CaGDY7Iv.js → MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js} +4239 -4210
- package/dist/{Mission-BDXkmII-.js → Mission-BSGc9822.js} +10 -10
- package/dist/{Overview-CCJuczco.js → Overview-BZjto86d.js} +18 -18
- package/dist/{Point-DB8xG0xE.js → Point-0U4TTdPW.js} +9 -9
- package/dist/{Promotion-CrBLyd07.js → Promotion-DiUa0GcV.js} +10 -10
- package/dist/{Queue-DXHI0Jl3.js → Queue-D62r2qjy.js} +10 -10
- package/dist/{Record-vg9JapaW.js → Record-0iF3dG7y.js} +8 -8
- package/dist/{Reward-B8-lPMhl.js → Reward-C5IEJYu6.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BXvHu1u7.js → RewardGroup.vue_vue_type_script_setup_true_lang-S2Fd0qO8.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BXz--HwJ.js → RuleGroup.vue_vue_type_script_setup_true_lang-CxlamGFP.js} +347 -324
- package/dist/{Segment-Cd1hn-kt.js → Segment-BknjBrUP.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BwkYexWg.js → SelectItems.vue_vue_type_script_setup_true_lang-BLQlkp-j.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDZd7EnG.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaPi4hYB.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CuCzH0NX.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BoZ0ZpNZ.js} +3 -3
- package/dist/{Setting-UciibUyO.js → Setting-RLI7RgmN.js} +482 -478
- package/dist/{Store-D0lhikGd.js → Store-gxmv8hWJ.js} +19 -19
- package/dist/{StoreRewards-DAuC_ms1.js → StoreRewards-C_6gY_Nk.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CMVzvtDX.js → StoreTransactions.vue_vue_type_script_setup_true_lang-B5uzSYM4.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DvQbsrnt.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js} +1 -1
- package/dist/{Tier-CKbzlW34.js → Tier-B168DtFj.js} +20 -20
- package/dist/{Title-DiwUEIIf.js → Title-uH0RI1N3.js} +19 -19
- package/dist/{Transaction-DPKRdO61.js → Transaction-Bx-pmLrJ.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DTCvNqK9.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Ce_55V7l.js} +6 -6
- package/dist/{Voucher-CdRQEso8.js → Voucher-Dzpz2AEB.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Ckl_f_nV.js → VoucherEditor.vue_vue_type_script_setup_true_lang-dbA6_6b9.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-v_0lUPas.js → ZodTextField.vue_vue_type_script_setup_true_lang-CfLiUj9f.js} +1 -1
- package/dist/{app-D04ZT698.js → app-B90wINOO.js} +1 -1
- package/dist/{app-C2pUrmg_.js → app-DuUxQ1ZP.js} +31 -31
- package/dist/app.js +1 -1
- package/dist/{business-ScEZyi30.js → business-B65OtB5B.js} +1 -1
- package/dist/{campaign-DDpruzyd.js → campaign-iKI-L84v.js} +9 -9
- package/dist/{campaign-BiQfVqsh.js → campaign-qGy6uzrC.js} +2 -2
- package/dist/{campaign.enum-BII_MEF0.js → campaign.enum-CZp2DmXI.js} +1 -1
- package/dist/{campaign.fn-C4iKtSyf.js → campaign.fn-DKScnmjX.js} +3 -3
- package/dist/{collectible.enum-BIaqFyvX.js → collectible.enum-CN-lnG1m.js} +1 -1
- package/dist/{collection.fn-DonLs368.js → collection.fn-mMwGQWce.js} +2 -2
- package/dist/{dto-CUMTPvhs.js → dto-C5ri8Nws.js} +4 -4
- package/dist/{effect-CF35_5i9.js → effect-Bg3yb9T6.js} +1 -1
- package/dist/{email-addresses-DArDDrQb.js → email-addresses-CQsN724N.js} +1 -1
- package/dist/{export-W_ECkCYX.js → export-BLf2dhFd.js} +3 -3
- package/dist/{helper-C_bNJz0V.js → helper-CFaph16Q.js} +1 -1
- package/dist/{index-BLzqFI8O.js → index-BBPIZjw6.js} +1 -1
- package/dist/{index-C7uuBuiT.js → index-BCGDOgxb.js} +1 -1
- package/dist/{index-B_6sqicE.js → index-BCPBmANe.js} +4 -4
- package/dist/{index-CrKQOb-w.js → index-BKOgzVx6.js} +1 -1
- package/dist/{index-CSDnNbBm.js → index-BN2Uyvj4.js} +1095 -1091
- package/dist/{index-TcVFcS5_.js → index-BPZtjcTm.js} +1 -1
- package/dist/{index-DJvxihSI.js → index-BPyac0fq.js} +1 -1
- package/dist/{index-BdOk6W0A.js → index-BkySejFg.js} +3 -3
- package/dist/{index-DkiJ6ki7.js → index-CH2d_B8c.js} +1 -1
- package/dist/{index-DykvLeYv.js → index-CrbnfAk8.js} +2 -2
- package/dist/{index-cPuC3TQ6.js → index-DJwQICyC.js} +11 -4
- package/dist/{index-Cpv4zx6I.js → index-DaEQgaiW.js} +6 -6
- package/dist/{index-B5w6BCBE.js → index-Dkmn0jmX.js} +573 -573
- package/dist/{index-ClEWlHJe.js → index-Dy5p_b1S.js} +1 -1
- package/dist/{index.esm2017-DHXCHv8p.js → index.esm2017-B9vJTKYg.js} +1 -1
- package/dist/{loading-DcDiKIp7.js → loading-MEQuW9Xa.js} +1 -1
- package/dist/{membership-CXLLB6gB.js → membership-Du79A0Pl.js} +3 -3
- package/dist/{money-Dqt7ZT_Y.js → money-DXgYs2-R.js} +1 -1
- package/dist/{number-CmkLpk75.js → number-CBMkNZvH.js} +1 -1
- package/dist/{objectid-DP44ig8s.js → objectid-BeZTZYqi.js} +5 -5
- package/dist/{plugins-BR0qXYnG.js → plugins-KiMuDTPp.js} +2 -2
- package/dist/{reward-SM4_zMKj.js → reward-ClX_lWcQ.js} +1 -1
- package/dist/{rule-u-Vd-nMr.js → rule-BfidJ75Y.js} +3 -3
- package/dist/{rule-builder-3RF6_Q22.js → rule-builder-BTcZx77a.js} +1 -1
- package/dist/{template-DAAgbK5y.js → template-DPpMK30W.js} +4 -4
- package/dist/{trigger-BCK8isse.js → trigger-DLp1bkZP.js} +4 -4
- package/dist/{user-ClzT5cdd.js → user-Cq9CGBHZ.js} +1 -1
- package/dist/{vue-i18n-C4kfgRjJ.js → vue-i18n-COzqUgQy.js} +158 -158
- package/dist/{xlsx-D9YJUXft.js → xlsx-Be4bARvl.js} +1 -1
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as Xe, ref as
|
|
2
|
-
import { h as
|
|
3
|
-
import { Z as
|
|
4
|
-
import { useDialog as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import "./index-
|
|
10
|
-
import { s as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { a as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { M as
|
|
15
|
-
import { u as
|
|
16
|
-
import { useCoreStore as
|
|
17
|
-
import { m as
|
|
18
|
-
import { S as
|
|
19
|
-
import { o as
|
|
20
|
-
import { a as
|
|
21
|
-
var
|
|
1
|
+
import { defineComponent as Xe, ref as z, computed as ge, onMounted as Ze, resolveComponent as F, openBlock as x, createBlock as me, withCtx as oe, createElementVNode as y, createVNode as _, unref as u, isRef as et, createElementBlock as q, Fragment as ue, toDisplayString as k, createTextVNode as te, createCommentVNode as ne, renderList as Ye } from "vue";
|
|
2
|
+
import { h as At } from "./moment-BWErdI6_.js";
|
|
3
|
+
import { Z as je } from "./zod-Bg2FbC-D.js";
|
|
4
|
+
import { useDialog as tt } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as Bt } from "./loading-MEQuW9Xa.js";
|
|
6
|
+
import { u as Mt } from "./app-wDQR6dpb.js";
|
|
7
|
+
import { u as Ie, l as nt } from "./business-B65OtB5B.js";
|
|
8
|
+
import { u as ot } from "./membership-Du79A0Pl.js";
|
|
9
|
+
import "./index-Dkmn0jmX.js";
|
|
10
|
+
import { s as St, k as _t } from "./index-BCPBmANe.js";
|
|
11
|
+
import { _ as It } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
|
|
12
|
+
import { a as rt, p as Pt, f as G } from "./plugins-KiMuDTPp.js";
|
|
13
|
+
import { _ as Tt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js";
|
|
14
|
+
import { M as Nt, _ as Ut } from "./MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js";
|
|
15
|
+
import { u as Lt } from "./vue-i18n-COzqUgQy.js";
|
|
16
|
+
import { useCoreStore as Ft } from "@feedmepos/mf-common";
|
|
17
|
+
import { m as Je } from "./index-DJwQICyC.js";
|
|
18
|
+
import { S as qe } from "./index-BN2Uyvj4.js";
|
|
19
|
+
import { o as Rt } from "./objectId-dwaoBfJX.js";
|
|
20
|
+
import { a as kt } from "./object-qECH92oz.js";
|
|
21
|
+
var se = {}, Dt = function() {
|
|
22
22
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
23
|
-
},
|
|
24
|
-
let
|
|
25
|
-
const
|
|
23
|
+
}, it = {}, U = {};
|
|
24
|
+
let Le;
|
|
25
|
+
const Vt = [
|
|
26
26
|
0,
|
|
27
27
|
// Not used
|
|
28
28
|
26,
|
|
@@ -66,32 +66,32 @@ const Dt = [
|
|
|
66
66
|
3532,
|
|
67
67
|
3706
|
|
68
68
|
];
|
|
69
|
-
|
|
69
|
+
U.getSymbolSize = function(e) {
|
|
70
70
|
if (!e) throw new Error('"version" cannot be null or undefined');
|
|
71
71
|
if (e < 1 || e > 40) throw new Error('"version" should be in range from 1 to 40');
|
|
72
72
|
return e * 4 + 17;
|
|
73
73
|
};
|
|
74
|
-
|
|
75
|
-
return
|
|
74
|
+
U.getSymbolTotalCodewords = function(e) {
|
|
75
|
+
return Vt[e];
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
U.getBCHDigit = function(t) {
|
|
78
78
|
let e = 0;
|
|
79
79
|
for (; t !== 0; )
|
|
80
80
|
e++, t >>>= 1;
|
|
81
81
|
return e;
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
U.setToSJISFunction = function(e) {
|
|
84
84
|
if (typeof e != "function")
|
|
85
85
|
throw new Error('"toSJISFunc" is not a valid function.');
|
|
86
|
-
|
|
86
|
+
Le = e;
|
|
87
87
|
};
|
|
88
|
-
|
|
89
|
-
return typeof
|
|
88
|
+
U.isKanjiModeEnabled = function() {
|
|
89
|
+
return typeof Le < "u";
|
|
90
90
|
};
|
|
91
|
-
|
|
92
|
-
return
|
|
91
|
+
U.toSJIS = function(e) {
|
|
92
|
+
return Le(e);
|
|
93
93
|
};
|
|
94
|
-
var
|
|
94
|
+
var ye = {};
|
|
95
95
|
(function(t) {
|
|
96
96
|
t.L = { bit: 1 }, t.M = { bit: 0 }, t.Q = { bit: 3 }, t.H = { bit: 2 };
|
|
97
97
|
function e(i) {
|
|
@@ -125,11 +125,11 @@ var pe = {};
|
|
|
125
125
|
return o;
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
|
-
})(
|
|
129
|
-
function
|
|
128
|
+
})(ye);
|
|
129
|
+
function st() {
|
|
130
130
|
this.buffer = [], this.length = 0;
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
st.prototype = {
|
|
133
133
|
get: function(t) {
|
|
134
134
|
const e = Math.floor(t / 8);
|
|
135
135
|
return (this.buffer[e] >>> 7 - t % 8 & 1) === 1;
|
|
@@ -146,28 +146,28 @@ it.prototype = {
|
|
|
146
146
|
this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
var
|
|
150
|
-
function
|
|
149
|
+
var xt = st;
|
|
150
|
+
function le(t) {
|
|
151
151
|
if (!t || t < 1)
|
|
152
152
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
153
153
|
this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t);
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
le.prototype.set = function(t, e, i, r) {
|
|
156
156
|
const o = t * this.size + e;
|
|
157
157
|
this.data[o] = i, r && (this.reservedBit[o] = !0);
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
le.prototype.get = function(t, e) {
|
|
160
160
|
return this.data[t * this.size + e];
|
|
161
161
|
};
|
|
162
|
-
|
|
162
|
+
le.prototype.xor = function(t, e, i) {
|
|
163
163
|
this.data[t * this.size + e] ^= i;
|
|
164
164
|
};
|
|
165
|
-
|
|
165
|
+
le.prototype.isReserved = function(t, e) {
|
|
166
166
|
return this.reservedBit[t * this.size + e];
|
|
167
167
|
};
|
|
168
|
-
var
|
|
168
|
+
var $t = le, lt = {};
|
|
169
169
|
(function(t) {
|
|
170
|
-
const e =
|
|
170
|
+
const e = U.getSymbolSize;
|
|
171
171
|
t.getRowColCoords = function(r) {
|
|
172
172
|
if (r === 1) return [];
|
|
173
173
|
const o = Math.floor(r / 7) + 2, n = e(r), l = n === 145 ? 26 : Math.ceil((n - 13) / (2 * o - 2)) * 2, a = [n - 7];
|
|
@@ -183,21 +183,21 @@ var xt = se, st = {};
|
|
|
183
183
|
a === l - 1 && s === 0 || o.push([n[a], n[s]]);
|
|
184
184
|
return o;
|
|
185
185
|
};
|
|
186
|
-
})(
|
|
187
|
-
var
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
const i =
|
|
186
|
+
})(lt);
|
|
187
|
+
var at = {};
|
|
188
|
+
const zt = U.getSymbolSize, Ge = 7;
|
|
189
|
+
at.getPositions = function(e) {
|
|
190
|
+
const i = zt(e);
|
|
191
191
|
return [
|
|
192
192
|
// top-left
|
|
193
193
|
[0, 0],
|
|
194
194
|
// top-right
|
|
195
|
-
[i -
|
|
195
|
+
[i - Ge, 0],
|
|
196
196
|
// bottom-left
|
|
197
|
-
[0, i -
|
|
197
|
+
[0, i - Ge]
|
|
198
198
|
];
|
|
199
199
|
};
|
|
200
|
-
var
|
|
200
|
+
var ct = {};
|
|
201
201
|
(function(t) {
|
|
202
202
|
t.Patterns = {
|
|
203
203
|
PATTERN000: 0,
|
|
@@ -292,9 +292,9 @@ var at = {};
|
|
|
292
292
|
}
|
|
293
293
|
return a;
|
|
294
294
|
};
|
|
295
|
-
})(
|
|
296
|
-
var
|
|
297
|
-
const
|
|
295
|
+
})(ct);
|
|
296
|
+
var we = {};
|
|
297
|
+
const K = ye, de = [
|
|
298
298
|
// L M Q H
|
|
299
299
|
1,
|
|
300
300
|
1,
|
|
@@ -456,7 +456,7 @@ const O = pe, ue = [
|
|
|
456
456
|
49,
|
|
457
457
|
68,
|
|
458
458
|
81
|
|
459
|
-
],
|
|
459
|
+
], fe = [
|
|
460
460
|
// L M Q H
|
|
461
461
|
7,
|
|
462
462
|
10,
|
|
@@ -619,55 +619,55 @@ const O = pe, ue = [
|
|
|
619
619
|
2040,
|
|
620
620
|
2430
|
|
621
621
|
];
|
|
622
|
-
|
|
622
|
+
we.getBlocksCount = function(e, i) {
|
|
623
623
|
switch (i) {
|
|
624
|
-
case
|
|
625
|
-
return
|
|
626
|
-
case
|
|
627
|
-
return
|
|
628
|
-
case
|
|
629
|
-
return
|
|
630
|
-
case
|
|
631
|
-
return
|
|
624
|
+
case K.L:
|
|
625
|
+
return de[(e - 1) * 4 + 0];
|
|
626
|
+
case K.M:
|
|
627
|
+
return de[(e - 1) * 4 + 1];
|
|
628
|
+
case K.Q:
|
|
629
|
+
return de[(e - 1) * 4 + 2];
|
|
630
|
+
case K.H:
|
|
631
|
+
return de[(e - 1) * 4 + 3];
|
|
632
632
|
default:
|
|
633
633
|
return;
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
|
-
|
|
636
|
+
we.getTotalCodewordsCount = function(e, i) {
|
|
637
637
|
switch (i) {
|
|
638
|
-
case
|
|
639
|
-
return
|
|
640
|
-
case
|
|
641
|
-
return
|
|
642
|
-
case
|
|
643
|
-
return
|
|
644
|
-
case
|
|
645
|
-
return
|
|
638
|
+
case K.L:
|
|
639
|
+
return fe[(e - 1) * 4 + 0];
|
|
640
|
+
case K.M:
|
|
641
|
+
return fe[(e - 1) * 4 + 1];
|
|
642
|
+
case K.Q:
|
|
643
|
+
return fe[(e - 1) * 4 + 2];
|
|
644
|
+
case K.H:
|
|
645
|
+
return fe[(e - 1) * 4 + 3];
|
|
646
646
|
default:
|
|
647
647
|
return;
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
|
-
var
|
|
651
|
-
const
|
|
650
|
+
var ut = {}, be = {};
|
|
651
|
+
const re = new Uint8Array(512), he = new Uint8Array(256);
|
|
652
652
|
(function() {
|
|
653
653
|
let e = 1;
|
|
654
654
|
for (let i = 0; i < 255; i++)
|
|
655
|
-
|
|
655
|
+
re[i] = e, he[e] = i, e <<= 1, e & 256 && (e ^= 285);
|
|
656
656
|
for (let i = 255; i < 512; i++)
|
|
657
|
-
|
|
657
|
+
re[i] = re[i - 255];
|
|
658
658
|
})();
|
|
659
|
-
|
|
659
|
+
be.log = function(e) {
|
|
660
660
|
if (e < 1) throw new Error("log(" + e + ")");
|
|
661
|
-
return
|
|
661
|
+
return he[e];
|
|
662
662
|
};
|
|
663
|
-
|
|
664
|
-
return
|
|
663
|
+
be.exp = function(e) {
|
|
664
|
+
return re[e];
|
|
665
665
|
};
|
|
666
|
-
|
|
667
|
-
return e === 0 || i === 0 ? 0 :
|
|
666
|
+
be.mul = function(e, i) {
|
|
667
|
+
return e === 0 || i === 0 ? 0 : re[he[e] + he[i]];
|
|
668
668
|
};
|
|
669
669
|
(function(t) {
|
|
670
|
-
const e =
|
|
670
|
+
const e = be;
|
|
671
671
|
t.mul = function(r, o) {
|
|
672
672
|
const n = new Uint8Array(r.length + o.length - 1);
|
|
673
673
|
for (let l = 0; l < r.length; l++)
|
|
@@ -691,53 +691,53 @@ we.mul = function(e, i) {
|
|
|
691
691
|
o = t.mul(o, new Uint8Array([1, e.exp(n)]));
|
|
692
692
|
return o;
|
|
693
693
|
};
|
|
694
|
-
})(
|
|
695
|
-
const
|
|
696
|
-
function
|
|
694
|
+
})(ut);
|
|
695
|
+
const dt = ut;
|
|
696
|
+
function Fe(t) {
|
|
697
697
|
this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
|
|
698
698
|
}
|
|
699
|
-
|
|
700
|
-
this.degree = e, this.genPoly =
|
|
699
|
+
Fe.prototype.initialize = function(e) {
|
|
700
|
+
this.degree = e, this.genPoly = dt.generateECPolynomial(this.degree);
|
|
701
701
|
};
|
|
702
|
-
|
|
702
|
+
Fe.prototype.encode = function(e) {
|
|
703
703
|
if (!this.genPoly)
|
|
704
704
|
throw new Error("Encoder not initialized");
|
|
705
705
|
const i = new Uint8Array(e.length + this.degree);
|
|
706
706
|
i.set(e);
|
|
707
|
-
const r =
|
|
707
|
+
const r = dt.mod(i, this.genPoly), o = this.degree - r.length;
|
|
708
708
|
if (o > 0) {
|
|
709
709
|
const n = new Uint8Array(this.degree);
|
|
710
710
|
return n.set(r, o), n;
|
|
711
711
|
}
|
|
712
712
|
return r;
|
|
713
713
|
};
|
|
714
|
-
var
|
|
715
|
-
|
|
714
|
+
var Ht = Fe, ft = {}, O = {}, Re = {};
|
|
715
|
+
Re.isValid = function(e) {
|
|
716
716
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
717
717
|
};
|
|
718
718
|
var $ = {};
|
|
719
|
-
const
|
|
720
|
-
let
|
|
721
|
-
|
|
722
|
-
const
|
|
719
|
+
const mt = "[0-9]+", Kt = "[A-Z $%*+\\-./:]+";
|
|
720
|
+
let ie = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
721
|
+
ie = ie.replace(/u/g, "\\u");
|
|
722
|
+
const Ot = "(?:(?![A-Z0-9 $%*+\\-./:]|" + ie + `)(?:.|[\r
|
|
723
723
|
]))+`;
|
|
724
|
-
$.KANJI = new RegExp(
|
|
724
|
+
$.KANJI = new RegExp(ie, "g");
|
|
725
725
|
$.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
|
|
726
|
-
$.BYTE = new RegExp(
|
|
727
|
-
$.NUMERIC = new RegExp(
|
|
728
|
-
$.ALPHANUMERIC = new RegExp(
|
|
729
|
-
const
|
|
726
|
+
$.BYTE = new RegExp(Ot, "g");
|
|
727
|
+
$.NUMERIC = new RegExp(mt, "g");
|
|
728
|
+
$.ALPHANUMERIC = new RegExp(Kt, "g");
|
|
729
|
+
const Yt = new RegExp("^" + ie + "$"), jt = new RegExp("^" + mt + "$"), Jt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
730
730
|
$.testKanji = function(e) {
|
|
731
|
-
return
|
|
731
|
+
return Yt.test(e);
|
|
732
732
|
};
|
|
733
733
|
$.testNumeric = function(e) {
|
|
734
|
-
return
|
|
734
|
+
return jt.test(e);
|
|
735
735
|
};
|
|
736
736
|
$.testAlphanumeric = function(e) {
|
|
737
|
-
return
|
|
737
|
+
return Jt.test(e);
|
|
738
738
|
};
|
|
739
739
|
(function(t) {
|
|
740
|
-
const e =
|
|
740
|
+
const e = Re, i = $;
|
|
741
741
|
t.NUMERIC = {
|
|
742
742
|
id: "Numeric",
|
|
743
743
|
bit: 1,
|
|
@@ -794,9 +794,9 @@ $.testAlphanumeric = function(e) {
|
|
|
794
794
|
return l;
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
|
-
})(
|
|
797
|
+
})(O);
|
|
798
798
|
(function(t) {
|
|
799
|
-
const e =
|
|
799
|
+
const e = U, i = we, r = ye, o = O, n = Re, l = 7973, a = e.getBCHDigit(l);
|
|
800
800
|
function s(g, d, v) {
|
|
801
801
|
for (let C = 1; C <= 40; C++)
|
|
802
802
|
if (d <= t.getCapacity(C, v, g))
|
|
@@ -808,8 +808,8 @@ $.testAlphanumeric = function(e) {
|
|
|
808
808
|
function m(g, d) {
|
|
809
809
|
let v = 0;
|
|
810
810
|
return g.forEach(function(C) {
|
|
811
|
-
const
|
|
812
|
-
v +=
|
|
811
|
+
const I = f(C.mode, d);
|
|
812
|
+
v += I + C.getBitsLength();
|
|
813
813
|
}), v;
|
|
814
814
|
}
|
|
815
815
|
function B(g, d) {
|
|
@@ -823,7 +823,7 @@ $.testAlphanumeric = function(e) {
|
|
|
823
823
|
if (!n.isValid(d))
|
|
824
824
|
throw new Error("Invalid QR Code version");
|
|
825
825
|
typeof C > "u" && (C = o.BYTE);
|
|
826
|
-
const
|
|
826
|
+
const I = e.getSymbolTotalCodewords(d), p = i.getTotalCodewordsCount(d, v), b = (I - p) * 8;
|
|
827
827
|
if (C === o.MIXED) return b;
|
|
828
828
|
const h = b - f(C, d);
|
|
829
829
|
switch (C) {
|
|
@@ -839,16 +839,16 @@ $.testAlphanumeric = function(e) {
|
|
|
839
839
|
}
|
|
840
840
|
}, t.getBestVersionForData = function(d, v) {
|
|
841
841
|
let C;
|
|
842
|
-
const
|
|
842
|
+
const I = r.from(v, r.M);
|
|
843
843
|
if (Array.isArray(d)) {
|
|
844
844
|
if (d.length > 1)
|
|
845
|
-
return B(d,
|
|
845
|
+
return B(d, I);
|
|
846
846
|
if (d.length === 0)
|
|
847
847
|
return 1;
|
|
848
848
|
C = d[0];
|
|
849
849
|
} else
|
|
850
850
|
C = d;
|
|
851
|
-
return s(C.mode, C.getLength(),
|
|
851
|
+
return s(C.mode, C.getLength(), I);
|
|
852
852
|
}, t.getEncodedBits = function(d) {
|
|
853
853
|
if (!n.isValid(d) || d < 7)
|
|
854
854
|
throw new Error("Invalid QR Code version");
|
|
@@ -857,20 +857,20 @@ $.testAlphanumeric = function(e) {
|
|
|
857
857
|
v ^= l << e.getBCHDigit(v) - a;
|
|
858
858
|
return d << 12 | v;
|
|
859
859
|
};
|
|
860
|
-
})(
|
|
861
|
-
var
|
|
862
|
-
const
|
|
863
|
-
|
|
860
|
+
})(ft);
|
|
861
|
+
var gt = {};
|
|
862
|
+
const Pe = U, ht = 1335, qt = 21522, Qe = Pe.getBCHDigit(ht);
|
|
863
|
+
gt.getEncodedBits = function(e, i) {
|
|
864
864
|
const r = e.bit << 3 | i;
|
|
865
865
|
let o = r << 10;
|
|
866
|
-
for (;
|
|
867
|
-
o ^=
|
|
868
|
-
return (r << 10 | o) ^
|
|
866
|
+
for (; Pe.getBCHDigit(o) - Qe >= 0; )
|
|
867
|
+
o ^= ht << Pe.getBCHDigit(o) - Qe;
|
|
868
|
+
return (r << 10 | o) ^ qt;
|
|
869
869
|
};
|
|
870
|
-
var
|
|
871
|
-
const
|
|
870
|
+
var pt = {};
|
|
871
|
+
const Gt = O;
|
|
872
872
|
function Q(t) {
|
|
873
|
-
this.mode =
|
|
873
|
+
this.mode = Gt.NUMERIC, this.data = t.toString();
|
|
874
874
|
}
|
|
875
875
|
Q.getBitsLength = function(e) {
|
|
876
876
|
return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
|
|
@@ -888,8 +888,8 @@ Q.prototype.write = function(e) {
|
|
|
888
888
|
const n = this.data.length - i;
|
|
889
889
|
n > 0 && (r = this.data.substr(i), o = parseInt(r, 10), e.put(o, n * 3 + 1));
|
|
890
890
|
};
|
|
891
|
-
var
|
|
892
|
-
const
|
|
891
|
+
var Qt = Q;
|
|
892
|
+
const Wt = O, Ee = [
|
|
893
893
|
"0",
|
|
894
894
|
"1",
|
|
895
895
|
"2",
|
|
@@ -936,27 +936,27 @@ const Qt = Y, Ce = [
|
|
|
936
936
|
"/",
|
|
937
937
|
":"
|
|
938
938
|
];
|
|
939
|
-
function
|
|
940
|
-
this.mode =
|
|
939
|
+
function W(t) {
|
|
940
|
+
this.mode = Wt.ALPHANUMERIC, this.data = t;
|
|
941
941
|
}
|
|
942
|
-
|
|
942
|
+
W.getBitsLength = function(e) {
|
|
943
943
|
return 11 * Math.floor(e / 2) + 6 * (e % 2);
|
|
944
944
|
};
|
|
945
|
-
|
|
945
|
+
W.prototype.getLength = function() {
|
|
946
946
|
return this.data.length;
|
|
947
947
|
};
|
|
948
|
-
|
|
949
|
-
return
|
|
948
|
+
W.prototype.getBitsLength = function() {
|
|
949
|
+
return W.getBitsLength(this.data.length);
|
|
950
950
|
};
|
|
951
|
-
|
|
951
|
+
W.prototype.write = function(e) {
|
|
952
952
|
let i;
|
|
953
953
|
for (i = 0; i + 2 <= this.data.length; i += 2) {
|
|
954
|
-
let r =
|
|
955
|
-
r +=
|
|
954
|
+
let r = Ee.indexOf(this.data[i]) * 45;
|
|
955
|
+
r += Ee.indexOf(this.data[i + 1]), e.put(r, 11);
|
|
956
956
|
}
|
|
957
|
-
this.data.length % 2 && e.put(
|
|
957
|
+
this.data.length % 2 && e.put(Ee.indexOf(this.data[i]), 6);
|
|
958
958
|
};
|
|
959
|
-
var Xt =
|
|
959
|
+
var Xt = W, Zt = function(e) {
|
|
960
960
|
for (var i = [], r = e.length, o = 0; o < r; o++) {
|
|
961
961
|
var n = e.charCodeAt(o);
|
|
962
962
|
if (n >= 55296 && n <= 56319 && r > o + 1) {
|
|
@@ -983,41 +983,41 @@ var Xt = X, Zt = function(e) {
|
|
|
983
983
|
}
|
|
984
984
|
return new Uint8Array(i).buffer;
|
|
985
985
|
};
|
|
986
|
-
const
|
|
987
|
-
function
|
|
988
|
-
this.mode =
|
|
986
|
+
const en = Zt, tn = O;
|
|
987
|
+
function X(t) {
|
|
988
|
+
this.mode = tn.BYTE, typeof t == "string" && (t = en(t)), this.data = new Uint8Array(t);
|
|
989
989
|
}
|
|
990
|
-
|
|
990
|
+
X.getBitsLength = function(e) {
|
|
991
991
|
return e * 8;
|
|
992
992
|
};
|
|
993
|
-
|
|
993
|
+
X.prototype.getLength = function() {
|
|
994
994
|
return this.data.length;
|
|
995
995
|
};
|
|
996
|
-
|
|
997
|
-
return
|
|
996
|
+
X.prototype.getBitsLength = function() {
|
|
997
|
+
return X.getBitsLength(this.data.length);
|
|
998
998
|
};
|
|
999
|
-
|
|
999
|
+
X.prototype.write = function(t) {
|
|
1000
1000
|
for (let e = 0, i = this.data.length; e < i; e++)
|
|
1001
1001
|
t.put(this.data[e], 8);
|
|
1002
1002
|
};
|
|
1003
|
-
var
|
|
1004
|
-
const
|
|
1005
|
-
function
|
|
1006
|
-
this.mode =
|
|
1003
|
+
var nn = X;
|
|
1004
|
+
const on = O, rn = U;
|
|
1005
|
+
function Z(t) {
|
|
1006
|
+
this.mode = on.KANJI, this.data = t;
|
|
1007
1007
|
}
|
|
1008
|
-
|
|
1008
|
+
Z.getBitsLength = function(e) {
|
|
1009
1009
|
return e * 13;
|
|
1010
1010
|
};
|
|
1011
|
-
|
|
1011
|
+
Z.prototype.getLength = function() {
|
|
1012
1012
|
return this.data.length;
|
|
1013
1013
|
};
|
|
1014
|
-
|
|
1015
|
-
return
|
|
1014
|
+
Z.prototype.getBitsLength = function() {
|
|
1015
|
+
return Z.getBitsLength(this.data.length);
|
|
1016
1016
|
};
|
|
1017
|
-
|
|
1017
|
+
Z.prototype.write = function(t) {
|
|
1018
1018
|
let e;
|
|
1019
1019
|
for (e = 0; e < this.data.length; e++) {
|
|
1020
|
-
let i =
|
|
1020
|
+
let i = rn.toSJIS(this.data[e]);
|
|
1021
1021
|
if (i >= 33088 && i <= 40956)
|
|
1022
1022
|
i -= 33088;
|
|
1023
1023
|
else if (i >= 57408 && i <= 60351)
|
|
@@ -1030,7 +1030,7 @@ Make sure your charset is UTF-8`
|
|
|
1030
1030
|
i = (i >>> 8 & 255) * 192 + (i & 255), t.put(i, 13);
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
1033
|
-
var
|
|
1033
|
+
var sn = Z, yt = { exports: {} };
|
|
1034
1034
|
(function(t) {
|
|
1035
1035
|
var e = {
|
|
1036
1036
|
single_source_shortest_paths: function(i, r, o) {
|
|
@@ -1038,10 +1038,10 @@ var rn = W, pt = { exports: {} };
|
|
|
1038
1038
|
l[r] = 0;
|
|
1039
1039
|
var a = e.PriorityQueue.make();
|
|
1040
1040
|
a.push(r, 0);
|
|
1041
|
-
for (var s, f, m, B, g, d, v, C,
|
|
1041
|
+
for (var s, f, m, B, g, d, v, C, I; !a.empty(); ) {
|
|
1042
1042
|
s = a.pop(), f = s.value, B = s.cost, g = i[f] || {};
|
|
1043
1043
|
for (m in g)
|
|
1044
|
-
g.hasOwnProperty(m) && (d = g[m], v = B + d, C = l[m],
|
|
1044
|
+
g.hasOwnProperty(m) && (d = g[m], v = B + d, C = l[m], I = typeof l[m] > "u", (I || C > v) && (l[m] = v, a.push(m, v), n[m] = f));
|
|
1045
1045
|
}
|
|
1046
1046
|
if (typeof o < "u" && typeof l[o] > "u") {
|
|
1047
1047
|
var p = ["Could not find a path from ", r, " to ", o, "."].join("");
|
|
@@ -1095,30 +1095,30 @@ var rn = W, pt = { exports: {} };
|
|
|
1095
1095
|
}
|
|
1096
1096
|
};
|
|
1097
1097
|
t.exports = e;
|
|
1098
|
-
})(
|
|
1099
|
-
var
|
|
1098
|
+
})(yt);
|
|
1099
|
+
var ln = yt.exports;
|
|
1100
1100
|
(function(t) {
|
|
1101
|
-
const e =
|
|
1101
|
+
const e = O, i = Qt, r = Xt, o = nn, n = sn, l = $, a = U, s = ln;
|
|
1102
1102
|
function f(p) {
|
|
1103
1103
|
return unescape(encodeURIComponent(p)).length;
|
|
1104
1104
|
}
|
|
1105
1105
|
function m(p, b, h) {
|
|
1106
|
-
const
|
|
1106
|
+
const w = [];
|
|
1107
1107
|
let M;
|
|
1108
1108
|
for (; (M = p.exec(h)) !== null; )
|
|
1109
|
-
|
|
1109
|
+
w.push({
|
|
1110
1110
|
data: M[0],
|
|
1111
1111
|
index: M.index,
|
|
1112
1112
|
mode: b,
|
|
1113
1113
|
length: M[0].length
|
|
1114
1114
|
});
|
|
1115
|
-
return
|
|
1115
|
+
return w;
|
|
1116
1116
|
}
|
|
1117
1117
|
function B(p) {
|
|
1118
1118
|
const b = m(l.NUMERIC, e.NUMERIC, p), h = m(l.ALPHANUMERIC, e.ALPHANUMERIC, p);
|
|
1119
|
-
let
|
|
1120
|
-
return a.isKanjiModeEnabled() ? (
|
|
1121
|
-
return P.index -
|
|
1119
|
+
let w, M;
|
|
1120
|
+
return a.isKanjiModeEnabled() ? (w = m(l.BYTE, e.BYTE, p), M = m(l.KANJI, e.KANJI, p)) : (w = m(l.BYTE_KANJI, e.BYTE, p), M = []), b.concat(h, w, M).sort(function(P, N) {
|
|
1121
|
+
return P.index - N.index;
|
|
1122
1122
|
}).map(function(P) {
|
|
1123
1123
|
return {
|
|
1124
1124
|
data: P.data,
|
|
@@ -1141,67 +1141,67 @@ var sn = pt.exports;
|
|
|
1141
1141
|
}
|
|
1142
1142
|
function d(p) {
|
|
1143
1143
|
return p.reduce(function(b, h) {
|
|
1144
|
-
const
|
|
1145
|
-
return
|
|
1144
|
+
const w = b.length - 1 >= 0 ? b[b.length - 1] : null;
|
|
1145
|
+
return w && w.mode === h.mode ? (b[b.length - 1].data += h.data, b) : (b.push(h), b);
|
|
1146
1146
|
}, []);
|
|
1147
1147
|
}
|
|
1148
1148
|
function v(p) {
|
|
1149
1149
|
const b = [];
|
|
1150
1150
|
for (let h = 0; h < p.length; h++) {
|
|
1151
|
-
const
|
|
1152
|
-
switch (
|
|
1151
|
+
const w = p[h];
|
|
1152
|
+
switch (w.mode) {
|
|
1153
1153
|
case e.NUMERIC:
|
|
1154
1154
|
b.push([
|
|
1155
|
-
|
|
1156
|
-
{ data:
|
|
1157
|
-
{ data:
|
|
1155
|
+
w,
|
|
1156
|
+
{ data: w.data, mode: e.ALPHANUMERIC, length: w.length },
|
|
1157
|
+
{ data: w.data, mode: e.BYTE, length: w.length }
|
|
1158
1158
|
]);
|
|
1159
1159
|
break;
|
|
1160
1160
|
case e.ALPHANUMERIC:
|
|
1161
1161
|
b.push([
|
|
1162
|
-
|
|
1163
|
-
{ data:
|
|
1162
|
+
w,
|
|
1163
|
+
{ data: w.data, mode: e.BYTE, length: w.length }
|
|
1164
1164
|
]);
|
|
1165
1165
|
break;
|
|
1166
1166
|
case e.KANJI:
|
|
1167
1167
|
b.push([
|
|
1168
|
-
|
|
1169
|
-
{ data:
|
|
1168
|
+
w,
|
|
1169
|
+
{ data: w.data, mode: e.BYTE, length: f(w.data) }
|
|
1170
1170
|
]);
|
|
1171
1171
|
break;
|
|
1172
1172
|
case e.BYTE:
|
|
1173
1173
|
b.push([
|
|
1174
|
-
{ data:
|
|
1174
|
+
{ data: w.data, mode: e.BYTE, length: f(w.data) }
|
|
1175
1175
|
]);
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
return b;
|
|
1179
1179
|
}
|
|
1180
1180
|
function C(p, b) {
|
|
1181
|
-
const h = {},
|
|
1181
|
+
const h = {}, w = { start: {} };
|
|
1182
1182
|
let M = ["start"];
|
|
1183
|
-
for (let
|
|
1184
|
-
const P = p[
|
|
1185
|
-
for (let
|
|
1186
|
-
const
|
|
1187
|
-
|
|
1188
|
-
for (let
|
|
1189
|
-
const
|
|
1190
|
-
h[
|
|
1183
|
+
for (let S = 0; S < p.length; S++) {
|
|
1184
|
+
const P = p[S], N = [];
|
|
1185
|
+
for (let D = 0; D < P.length; D++) {
|
|
1186
|
+
const L = P[D], Y = "" + S + D;
|
|
1187
|
+
N.push(Y), h[Y] = { node: L, lastCount: 0 }, w[Y] = {};
|
|
1188
|
+
for (let A = 0; A < M.length; A++) {
|
|
1189
|
+
const c = M[A];
|
|
1190
|
+
h[c] && h[c].node.mode === L.mode ? (w[c][Y] = g(h[c].lastCount + L.length, L.mode) - g(h[c].lastCount, L.mode), h[c].lastCount += L.length) : (h[c] && (h[c].lastCount = L.length), w[c][Y] = g(L.length, L.mode) + 4 + e.getCharCountIndicator(L.mode, b));
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
M =
|
|
1193
|
+
M = N;
|
|
1194
1194
|
}
|
|
1195
|
-
for (let
|
|
1196
|
-
|
|
1197
|
-
return { map:
|
|
1195
|
+
for (let S = 0; S < M.length; S++)
|
|
1196
|
+
w[M[S]].end = 0;
|
|
1197
|
+
return { map: w, table: h };
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function I(p, b) {
|
|
1200
1200
|
let h;
|
|
1201
|
-
const
|
|
1202
|
-
if (h = e.from(b,
|
|
1201
|
+
const w = e.getBestModeForData(p);
|
|
1202
|
+
if (h = e.from(b, w), h !== e.BYTE && h.bit < w.bit)
|
|
1203
1203
|
throw new Error('"' + p + '" cannot be encoded with mode ' + e.toString(h) + `.
|
|
1204
|
-
Suggested mode is: ` + e.toString(
|
|
1204
|
+
Suggested mode is: ` + e.toString(w));
|
|
1205
1205
|
switch (h === e.KANJI && !a.isKanjiModeEnabled() && (h = e.BYTE), h) {
|
|
1206
1206
|
case e.NUMERIC:
|
|
1207
1207
|
return new i(p);
|
|
@@ -1214,23 +1214,23 @@ var sn = pt.exports;
|
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
1216
|
t.fromArray = function(b) {
|
|
1217
|
-
return b.reduce(function(h,
|
|
1218
|
-
return typeof
|
|
1217
|
+
return b.reduce(function(h, w) {
|
|
1218
|
+
return typeof w == "string" ? h.push(I(w, null)) : w.data && h.push(I(w.data, w.mode)), h;
|
|
1219
1219
|
}, []);
|
|
1220
1220
|
}, t.fromString = function(b, h) {
|
|
1221
|
-
const
|
|
1222
|
-
for (let
|
|
1223
|
-
|
|
1224
|
-
return t.fromArray(d(
|
|
1221
|
+
const w = B(b, a.isKanjiModeEnabled()), M = v(w), S = C(M, h), P = s.find_path(S.map, "start", "end"), N = [];
|
|
1222
|
+
for (let D = 1; D < P.length - 1; D++)
|
|
1223
|
+
N.push(S.table[P[D]].node);
|
|
1224
|
+
return t.fromArray(d(N));
|
|
1225
1225
|
}, t.rawSplit = function(b) {
|
|
1226
1226
|
return t.fromArray(
|
|
1227
1227
|
B(b, a.isKanjiModeEnabled())
|
|
1228
1228
|
);
|
|
1229
1229
|
};
|
|
1230
|
-
})(
|
|
1231
|
-
const
|
|
1232
|
-
function
|
|
1233
|
-
const i = t.size, r =
|
|
1230
|
+
})(pt);
|
|
1231
|
+
const ve = U, Ae = ye, an = xt, cn = $t, un = lt, dn = at, Te = ct, Ne = we, fn = Ht, pe = ft, mn = gt, gn = O, Be = pt;
|
|
1232
|
+
function hn(t, e) {
|
|
1233
|
+
const i = t.size, r = dn.getPositions(e);
|
|
1234
1234
|
for (let o = 0; o < r.length; o++) {
|
|
1235
1235
|
const n = r[o][0], l = r[o][1];
|
|
1236
1236
|
for (let a = -1; a <= 7; a++)
|
|
@@ -1239,15 +1239,15 @@ function gn(t, e) {
|
|
|
1239
1239
|
l + s <= -1 || i <= l + s || (a >= 0 && a <= 6 && (s === 0 || s === 6) || s >= 0 && s <= 6 && (a === 0 || a === 6) || a >= 2 && a <= 4 && s >= 2 && s <= 4 ? t.set(n + a, l + s, !0, !0) : t.set(n + a, l + s, !1, !0));
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function pn(t) {
|
|
1243
1243
|
const e = t.size;
|
|
1244
1244
|
for (let i = 8; i < e - 8; i++) {
|
|
1245
1245
|
const r = i % 2 === 0;
|
|
1246
1246
|
t.set(i, 6, r, !0), t.set(6, i, r, !0);
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1250
|
-
const i =
|
|
1249
|
+
function yn(t, e) {
|
|
1250
|
+
const i = un.getPositions(e);
|
|
1251
1251
|
for (let r = 0; r < i.length; r++) {
|
|
1252
1252
|
const o = i[r][0], n = i[r][1];
|
|
1253
1253
|
for (let l = -2; l <= 2; l++)
|
|
@@ -1255,20 +1255,20 @@ function pn(t, e) {
|
|
|
1255
1255
|
l === -2 || l === 2 || a === -2 || a === 2 || l === 0 && a === 0 ? t.set(o + l, n + a, !0, !0) : t.set(o + l, n + a, !1, !0);
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1259
|
-
const i = t.size, r =
|
|
1258
|
+
function wn(t, e) {
|
|
1259
|
+
const i = t.size, r = pe.getEncodedBits(e);
|
|
1260
1260
|
let o, n, l;
|
|
1261
1261
|
for (let a = 0; a < 18; a++)
|
|
1262
1262
|
o = Math.floor(a / 3), n = a % 3 + i - 8 - 3, l = (r >> a & 1) === 1, t.set(o, n, l, !0), t.set(n, o, l, !0);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1265
|
-
const r = t.size, o =
|
|
1264
|
+
function Me(t, e, i) {
|
|
1265
|
+
const r = t.size, o = mn.getEncodedBits(e, i);
|
|
1266
1266
|
let n, l;
|
|
1267
1267
|
for (n = 0; n < 15; n++)
|
|
1268
1268
|
l = (o >> n & 1) === 1, n < 6 ? t.set(n, 8, l, !0) : n < 8 ? t.set(n + 1, 8, l, !0) : t.set(r - 15 + n, 8, l, !0), n < 8 ? t.set(8, r - n - 1, l, !0) : n < 9 ? t.set(8, 15 - n - 1 + 1, l, !0) : t.set(8, 15 - n - 1, l, !0);
|
|
1269
1269
|
t.set(r - 8, 8, 1, !0);
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1271
|
+
function bn(t, e) {
|
|
1272
1272
|
const i = t.size;
|
|
1273
1273
|
let r = -1, o = i - 1, n = 7, l = 0;
|
|
1274
1274
|
for (let a = i - 1; a > 0; a -= 2)
|
|
@@ -1284,53 +1284,53 @@ function wn(t, e) {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1288
|
-
const r = new
|
|
1287
|
+
function vn(t, e, i) {
|
|
1288
|
+
const r = new an();
|
|
1289
1289
|
i.forEach(function(s) {
|
|
1290
|
-
r.put(s.mode.bit, 4), r.put(s.getLength(),
|
|
1290
|
+
r.put(s.mode.bit, 4), r.put(s.getLength(), gn.getCharCountIndicator(s.mode, t)), s.write(r);
|
|
1291
1291
|
});
|
|
1292
|
-
const o =
|
|
1292
|
+
const o = ve.getSymbolTotalCodewords(t), n = Ne.getTotalCodewordsCount(t, e), l = (o - n) * 8;
|
|
1293
1293
|
for (r.getLengthInBits() + 4 <= l && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
|
|
1294
1294
|
r.putBit(0);
|
|
1295
1295
|
const a = (l - r.getLengthInBits()) / 8;
|
|
1296
1296
|
for (let s = 0; s < a; s++)
|
|
1297
1297
|
r.put(s % 2 ? 17 : 236, 8);
|
|
1298
|
-
return
|
|
1298
|
+
return Cn(r, t, e);
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1301
|
-
const r =
|
|
1300
|
+
function Cn(t, e, i) {
|
|
1301
|
+
const r = ve.getSymbolTotalCodewords(e), o = Ne.getTotalCodewordsCount(e, i), n = r - o, l = Ne.getBlocksCount(e, i), a = r % l, s = l - a, f = Math.floor(r / l), m = Math.floor(n / l), B = m + 1, g = f - m, d = new fn(g);
|
|
1302
1302
|
let v = 0;
|
|
1303
|
-
const C = new Array(l),
|
|
1303
|
+
const C = new Array(l), I = new Array(l);
|
|
1304
1304
|
let p = 0;
|
|
1305
1305
|
const b = new Uint8Array(t.buffer);
|
|
1306
1306
|
for (let P = 0; P < l; P++) {
|
|
1307
|
-
const
|
|
1308
|
-
C[P] = b.slice(v, v +
|
|
1307
|
+
const N = P < s ? m : B;
|
|
1308
|
+
C[P] = b.slice(v, v + N), I[P] = d.encode(C[P]), v += N, p = Math.max(p, N);
|
|
1309
1309
|
}
|
|
1310
1310
|
const h = new Uint8Array(r);
|
|
1311
|
-
let
|
|
1311
|
+
let w = 0, M, S;
|
|
1312
1312
|
for (M = 0; M < p; M++)
|
|
1313
|
-
for (
|
|
1314
|
-
M < C[
|
|
1313
|
+
for (S = 0; S < l; S++)
|
|
1314
|
+
M < C[S].length && (h[w++] = C[S][M]);
|
|
1315
1315
|
for (M = 0; M < g; M++)
|
|
1316
|
-
for (
|
|
1317
|
-
h[
|
|
1316
|
+
for (S = 0; S < l; S++)
|
|
1317
|
+
h[w++] = I[S][M];
|
|
1318
1318
|
return h;
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function En(t, e, i, r) {
|
|
1321
1321
|
let o;
|
|
1322
1322
|
if (Array.isArray(t))
|
|
1323
|
-
o =
|
|
1323
|
+
o = Be.fromArray(t);
|
|
1324
1324
|
else if (typeof t == "string") {
|
|
1325
1325
|
let f = e;
|
|
1326
1326
|
if (!f) {
|
|
1327
|
-
const m =
|
|
1328
|
-
f =
|
|
1327
|
+
const m = Be.rawSplit(t);
|
|
1328
|
+
f = pe.getBestVersionForData(m, i);
|
|
1329
1329
|
}
|
|
1330
|
-
o =
|
|
1330
|
+
o = Be.fromString(t, f || 40);
|
|
1331
1331
|
} else
|
|
1332
1332
|
throw new Error("Invalid data");
|
|
1333
|
-
const n =
|
|
1333
|
+
const n = pe.getBestVersionForData(o, i);
|
|
1334
1334
|
if (!n)
|
|
1335
1335
|
throw new Error("The amount of data is too big to be stored in a QR Code");
|
|
1336
1336
|
if (!e)
|
|
@@ -1342,11 +1342,11 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
1342
1342
|
Minimum version required to store current data is: ` + n + `.
|
|
1343
1343
|
`
|
|
1344
1344
|
);
|
|
1345
|
-
const l =
|
|
1346
|
-
return
|
|
1345
|
+
const l = vn(e, i, o), a = ve.getSymbolSize(e), s = new cn(a);
|
|
1346
|
+
return hn(s, e), pn(s), yn(s, e), Me(s, i, 0), e >= 7 && wn(s, e), bn(s, l), isNaN(r) && (r = Te.getBestMask(
|
|
1347
1347
|
s,
|
|
1348
|
-
|
|
1349
|
-
)),
|
|
1348
|
+
Me.bind(null, s, i)
|
|
1349
|
+
)), Te.applyMask(r, s), Me(s, i, r), {
|
|
1350
1350
|
modules: s,
|
|
1351
1351
|
version: e,
|
|
1352
1352
|
errorCorrectionLevel: i,
|
|
@@ -1354,13 +1354,13 @@ Minimum version required to store current data is: ` + n + `.
|
|
|
1354
1354
|
segments: o
|
|
1355
1355
|
};
|
|
1356
1356
|
}
|
|
1357
|
-
|
|
1357
|
+
it.create = function(e, i) {
|
|
1358
1358
|
if (typeof e > "u" || e === "")
|
|
1359
1359
|
throw new Error("No input text");
|
|
1360
|
-
let r =
|
|
1361
|
-
return typeof i < "u" && (r =
|
|
1360
|
+
let r = Ae.M, o, n;
|
|
1361
|
+
return typeof i < "u" && (r = Ae.from(i.errorCorrectionLevel, Ae.M), o = pe.from(i.version), n = Te.from(i.maskPattern), i.toSJISFunc && ve.setToSJISFunction(i.toSJISFunc)), En(e, o, r, n);
|
|
1362
1362
|
};
|
|
1363
|
-
var
|
|
1363
|
+
var wt = {}, ke = {};
|
|
1364
1364
|
(function(t) {
|
|
1365
1365
|
function e(i) {
|
|
1366
1366
|
if (typeof i == "number" && (i = i.toString()), typeof i != "string")
|
|
@@ -1405,15 +1405,15 @@ var yt = {}, Fe = {};
|
|
|
1405
1405
|
for (let d = 0; d < f; d++) {
|
|
1406
1406
|
let v = (g * f + d) * 4, C = n.color.light;
|
|
1407
1407
|
if (g >= m && d >= m && g < f - m && d < f - m) {
|
|
1408
|
-
const
|
|
1409
|
-
C = B[a[
|
|
1408
|
+
const I = Math.floor((g - m) / s), p = Math.floor((d - m) / s);
|
|
1409
|
+
C = B[a[I * l + p] ? 1 : 0];
|
|
1410
1410
|
}
|
|
1411
1411
|
r[v++] = C.r, r[v++] = C.g, r[v++] = C.b, r[v] = C.a;
|
|
1412
1412
|
}
|
|
1413
1413
|
};
|
|
1414
|
-
})(
|
|
1414
|
+
})(ke);
|
|
1415
1415
|
(function(t) {
|
|
1416
|
-
const e =
|
|
1416
|
+
const e = ke;
|
|
1417
1417
|
function i(o, n, l) {
|
|
1418
1418
|
o.clearRect(0, 0, n.width, n.height), n.style || (n.style = {}), n.height = l, n.width = l, n.style.height = l + "px", n.style.width = l + "px";
|
|
1419
1419
|
}
|
|
@@ -1435,34 +1435,34 @@ var yt = {}, Fe = {};
|
|
|
1435
1435
|
const f = t.render(n, l, s), m = s.type || "image/png", B = s.rendererOpts || {};
|
|
1436
1436
|
return f.toDataURL(m, B.quality);
|
|
1437
1437
|
};
|
|
1438
|
-
})(
|
|
1439
|
-
var
|
|
1440
|
-
const
|
|
1441
|
-
function
|
|
1438
|
+
})(wt);
|
|
1439
|
+
var bt = {};
|
|
1440
|
+
const An = ke;
|
|
1441
|
+
function We(t, e) {
|
|
1442
1442
|
const i = t.a / 255, r = e + '="' + t.hex + '"';
|
|
1443
1443
|
return i < 1 ? r + " " + e + '-opacity="' + i.toFixed(2).slice(1) + '"' : r;
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function Se(t, e, i) {
|
|
1446
1446
|
let r = t + e;
|
|
1447
1447
|
return typeof i < "u" && (r += " " + i), r;
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function Bn(t, e, i) {
|
|
1450
1450
|
let r = "", o = 0, n = !1, l = 0;
|
|
1451
1451
|
for (let a = 0; a < t.length; a++) {
|
|
1452
1452
|
const s = Math.floor(a % e), f = Math.floor(a / e);
|
|
1453
|
-
!s && !n && (n = !0), t[a] ? (l++, a > 0 && s > 0 && t[a - 1] || (r += n ?
|
|
1453
|
+
!s && !n && (n = !0), t[a] ? (l++, a > 0 && s > 0 && t[a - 1] || (r += n ? Se("M", s + i, 0.5 + f + i) : Se("m", o, 0), o = 0, n = !1), s + 1 < e && t[a + 1] || (r += Se("h", l), l = 0)) : o++;
|
|
1454
1454
|
}
|
|
1455
1455
|
return r;
|
|
1456
1456
|
}
|
|
1457
|
-
|
|
1458
|
-
const o =
|
|
1457
|
+
bt.render = function(e, i, r) {
|
|
1458
|
+
const o = An.getOptions(i), n = e.modules.size, l = e.modules.data, a = n + o.margin * 2, s = o.color.light.a ? "<path " + We(o.color.light, "fill") + ' d="M0 0h' + a + "v" + a + 'H0z"/>' : "", f = "<path " + We(o.color.dark, "stroke") + ' d="' + Bn(l, n, o.margin) + '"/>', m = 'viewBox="0 0 ' + a + " " + a + '"', g = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + m + ' shape-rendering="crispEdges">' + s + f + `</svg>
|
|
1459
1459
|
`;
|
|
1460
1460
|
return typeof r == "function" && r(null, g), g;
|
|
1461
1461
|
};
|
|
1462
|
-
const
|
|
1463
|
-
function
|
|
1462
|
+
const Mn = Dt, Ue = it, vt = wt, Sn = bt;
|
|
1463
|
+
function De(t, e, i, r, o) {
|
|
1464
1464
|
const n = [].slice.call(arguments, 1), l = n.length, a = typeof n[l - 1] == "function";
|
|
1465
|
-
if (!a && !
|
|
1465
|
+
if (!a && !Mn())
|
|
1466
1466
|
throw new Error("Callback required as last argument");
|
|
1467
1467
|
if (a) {
|
|
1468
1468
|
if (l < 2)
|
|
@@ -1473,7 +1473,7 @@ function Re(t, e, i, r, o) {
|
|
|
1473
1473
|
throw new Error("Too few arguments provided");
|
|
1474
1474
|
return l === 1 ? (i = e, e = r = void 0) : l === 2 && !e.getContext && (r = i, i = e, e = void 0), new Promise(function(s, f) {
|
|
1475
1475
|
try {
|
|
1476
|
-
const m =
|
|
1476
|
+
const m = Ue.create(i, r);
|
|
1477
1477
|
s(t(m, e, r));
|
|
1478
1478
|
} catch (m) {
|
|
1479
1479
|
f(m);
|
|
@@ -1481,21 +1481,21 @@ function Re(t, e, i, r, o) {
|
|
|
1481
1481
|
});
|
|
1482
1482
|
}
|
|
1483
1483
|
try {
|
|
1484
|
-
const s =
|
|
1484
|
+
const s = Ue.create(i, r);
|
|
1485
1485
|
o(null, t(s, e, r));
|
|
1486
1486
|
} catch (s) {
|
|
1487
1487
|
o(s);
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
return
|
|
1490
|
+
se.create = Ue.create;
|
|
1491
|
+
se.toCanvas = De.bind(null, vt.render);
|
|
1492
|
+
se.toDataURL = De.bind(null, vt.renderToDataURL);
|
|
1493
|
+
se.toString = De.bind(null, function(t, e, i) {
|
|
1494
|
+
return Sn.render(t, i);
|
|
1495
1495
|
});
|
|
1496
|
-
async function
|
|
1496
|
+
async function _n(t, e = 350) {
|
|
1497
1497
|
try {
|
|
1498
|
-
return await
|
|
1498
|
+
return await se.toDataURL(t, {
|
|
1499
1499
|
width: e,
|
|
1500
1500
|
margin: 0
|
|
1501
1501
|
});
|
|
@@ -1503,21 +1503,21 @@ async function Sn(t, e = 350) {
|
|
|
1503
1503
|
console.error(i);
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
var
|
|
1507
|
-
const
|
|
1506
|
+
var In = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
|
|
1507
|
+
const Pn = { class: "flex items-start" }, Tn = { class: "flex flex-col gap-16 mt-16" }, Nn = ["src"], Un = /* @__PURE__ */ Xe({
|
|
1508
1508
|
__name: "LinkDeviceDialog",
|
|
1509
1509
|
setup(t) {
|
|
1510
|
-
const e =
|
|
1510
|
+
const e = Ie(), i = ot(), r = tt(), o = z(), n = z(), l = In.crmUrl, a = z(), s = ge(() => i.membership), f = ge(() => {
|
|
1511
1511
|
var g, d;
|
|
1512
1512
|
return `https://${(g = s.value) != null && g.url ? s.value.url : (d = s.value) == null ? void 0 : d.business}.${l}`;
|
|
1513
1513
|
});
|
|
1514
1514
|
async function m(g) {
|
|
1515
|
-
const d = await
|
|
1515
|
+
const d = await nt.getOtp(g);
|
|
1516
1516
|
return `${f.value}?link-device=${d.otp}`;
|
|
1517
1517
|
}
|
|
1518
1518
|
async function B(g) {
|
|
1519
1519
|
const d = await m(g);
|
|
1520
|
-
a.value = d, o.value = await
|
|
1520
|
+
a.value = d, o.value = await _n(d);
|
|
1521
1521
|
}
|
|
1522
1522
|
return Ze(async () => {
|
|
1523
1523
|
if (await e.readLocations(), !e.locations.length) {
|
|
@@ -1527,39 +1527,39 @@ const In = { class: "flex items-start" }, Pn = { class: "flex flex-col gap-16 mt
|
|
|
1527
1527
|
const g = e.locations[0]._id;
|
|
1528
1528
|
n.value = g, await B(g);
|
|
1529
1529
|
}), (g, d) => {
|
|
1530
|
-
const v =
|
|
1531
|
-
return x(),
|
|
1532
|
-
default:
|
|
1533
|
-
|
|
1534
|
-
d[3] || (d[3] =
|
|
1535
|
-
|
|
1536
|
-
|
|
1530
|
+
const v = F("FmIcon"), C = F("FmSelect"), I = F("FmButton"), p = F("FmCard");
|
|
1531
|
+
return x(), me(p, { class: "p-24 max-w-[350px]" }, {
|
|
1532
|
+
default: oe(() => [
|
|
1533
|
+
y("div", Pn, [
|
|
1534
|
+
d[3] || (d[3] = y("div", null, [
|
|
1535
|
+
y("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
|
|
1536
|
+
y("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
|
|
1537
1537
|
], -1)),
|
|
1538
|
-
|
|
1538
|
+
_(v, {
|
|
1539
1539
|
name: "close",
|
|
1540
|
-
onClick: d[0] || (d[0] = (b) =>
|
|
1540
|
+
onClick: d[0] || (d[0] = (b) => u(r).close()),
|
|
1541
1541
|
class: "cursor-pointer"
|
|
1542
1542
|
})
|
|
1543
1543
|
]),
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
modelValue:
|
|
1544
|
+
y("div", Tn, [
|
|
1545
|
+
_(C, {
|
|
1546
|
+
modelValue: u(n),
|
|
1547
1547
|
"onUpdate:modelValue": [
|
|
1548
|
-
d[1] || (d[1] = (b) =>
|
|
1548
|
+
d[1] || (d[1] = (b) => et(n) ? n.value = b : null),
|
|
1549
1549
|
B
|
|
1550
1550
|
],
|
|
1551
1551
|
label: "Select Location",
|
|
1552
|
-
items:
|
|
1552
|
+
items: u(e).locationItems.filter((b) => !!b.value)
|
|
1553
1553
|
}, null, 8, ["modelValue", "items"]),
|
|
1554
|
-
|
|
1555
|
-
src:
|
|
1554
|
+
y("img", {
|
|
1555
|
+
src: u(o),
|
|
1556
1556
|
class: "aspect-square w-full"
|
|
1557
|
-
}, null, 8,
|
|
1558
|
-
I
|
|
1557
|
+
}, null, 8, Nn),
|
|
1558
|
+
_(I, {
|
|
1559
1559
|
class: "mx-auto",
|
|
1560
1560
|
variant: "plain",
|
|
1561
1561
|
icon: "content_copy",
|
|
1562
|
-
onClick: d[2] || (d[2] = (b) =>
|
|
1562
|
+
onClick: d[2] || (d[2] = (b) => u(rt)(u(a)))
|
|
1563
1563
|
})
|
|
1564
1564
|
])
|
|
1565
1565
|
]),
|
|
@@ -1568,23 +1568,23 @@ const In = { class: "flex items-start" }, Pn = { class: "flex flex-col gap-16 mt
|
|
|
1568
1568
|
};
|
|
1569
1569
|
}
|
|
1570
1570
|
});
|
|
1571
|
-
var
|
|
1572
|
-
const
|
|
1571
|
+
var _e = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
|
|
1572
|
+
const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, Fn = { class: "fm-typo-en-title-md-800" }, Rn = {
|
|
1573
1573
|
key: 0,
|
|
1574
1574
|
class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
|
|
1575
|
-
},
|
|
1575
|
+
}, kn = { class: "col-span-2 flex flex-col xs:col-span-3 space-y-8" }, Dn = { 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 = { class: "space-y-8" }, qn = { class: "space-y-8" }, Gn = { class: "space-y-8" }, Qn = { class: "space-y-8" }, Wn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Xn = { class: "space-y-8" }, Zn = { class: "flex justify-end pb-24" }, eo = { class: "col-span-1 space-y-8 xs:hidden" }, to = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-600" }, ro = { class: "fm-typo-en-body-lg-600" }, So = /* @__PURE__ */ Xe({
|
|
1576
1576
|
__name: "Setting",
|
|
1577
1577
|
setup(t) {
|
|
1578
|
-
const e =
|
|
1578
|
+
const e = Mt(), i = Ft(), r = Ie(), o = ot(), { global: n, minor: l } = Bt, a = tt(), s = z(), f = z(!1), m = z([]), B = z(null), g = St, d = [
|
|
1579
1579
|
(A) => !A || A.length >= 6 || "Invalid URL format, please enter at least 6 characters",
|
|
1580
1580
|
(A) => !A || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(A) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
|
|
1581
|
-
], v =
|
|
1581
|
+
], v = _e.appUrl, C = ge(() => {
|
|
1582
1582
|
var A;
|
|
1583
1583
|
return `https://${(A = s.value) == null ? void 0 : A.business}.${v}`;
|
|
1584
|
-
}),
|
|
1585
|
-
var A,
|
|
1586
|
-
return Math.min((((
|
|
1587
|
-
}), { t: h } =
|
|
1584
|
+
}), I = z(), p = z([]), b = ge(() => {
|
|
1585
|
+
var A, c;
|
|
1586
|
+
return Math.min((((c = (A = s.value) == null ? void 0 : A.advertisements) == null ? void 0 : c.length) ?? 0) + 1, 5);
|
|
1587
|
+
}), { t: h } = Lt(), w = i.currentCountry.value || "MY", M = [
|
|
1588
1588
|
"user.name",
|
|
1589
1589
|
"user.gender",
|
|
1590
1590
|
"user.birthday",
|
|
@@ -1592,25 +1592,25 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1592
1592
|
"membership.url"
|
|
1593
1593
|
].filter(
|
|
1594
1594
|
(A) => {
|
|
1595
|
-
var
|
|
1596
|
-
return !((
|
|
1595
|
+
var c;
|
|
1596
|
+
return !((c = Nt[w]) != null && c.includes(A));
|
|
1597
1597
|
}
|
|
1598
1598
|
);
|
|
1599
|
-
async function
|
|
1599
|
+
async function S() {
|
|
1600
1600
|
a.open({
|
|
1601
1601
|
title: "",
|
|
1602
|
-
dialogComponent:
|
|
1602
|
+
dialogComponent: Un,
|
|
1603
1603
|
closeButton: !1
|
|
1604
1604
|
});
|
|
1605
1605
|
}
|
|
1606
1606
|
async function P(A) {
|
|
1607
|
-
await
|
|
1607
|
+
await Pt.remove(
|
|
1608
1608
|
"Are you sure you want to unlink this device?",
|
|
1609
1609
|
"Unlink device",
|
|
1610
1610
|
"Unlink"
|
|
1611
1611
|
) && await l(
|
|
1612
1612
|
async () => {
|
|
1613
|
-
await
|
|
1613
|
+
await nt.unregisterDevice(A), await r.readLocationDevices();
|
|
1614
1614
|
},
|
|
1615
1615
|
{
|
|
1616
1616
|
message: "Unlinking device",
|
|
@@ -1618,26 +1618,26 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1618
1618
|
}
|
|
1619
1619
|
);
|
|
1620
1620
|
}
|
|
1621
|
-
async function
|
|
1621
|
+
async function N() {
|
|
1622
1622
|
await l(
|
|
1623
1623
|
async () => {
|
|
1624
|
-
var
|
|
1625
|
-
const A =
|
|
1626
|
-
A.welcomeMessage && !((
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1624
|
+
var ae;
|
|
1625
|
+
const A = kt(s.value);
|
|
1626
|
+
A.welcomeMessage && !((ae = A.welcomeMessage) != null && ae.content) && (A.welcomeMessage.content = "Hi there, you have been invited to join our membership");
|
|
1627
|
+
const c = _t.parse(A);
|
|
1628
|
+
I.value === null && c.image ? await G.delete(G.coverImagePath()) : I.value && (c.image = await G.update(
|
|
1629
1629
|
G.coverImagePath(),
|
|
1630
|
-
|
|
1631
|
-
)), f.value ?
|
|
1632
|
-
new Array(b.value - 1).fill(null).map(async (
|
|
1630
|
+
I.value
|
|
1631
|
+
)), f.value ? c.advertisements = (await Promise.all(
|
|
1632
|
+
new Array(b.value - 1).fill(null).map(async (V, H) => {
|
|
1633
1633
|
var ee;
|
|
1634
|
-
const j = p.value[
|
|
1634
|
+
const j = p.value[H];
|
|
1635
1635
|
return j ? await G.update(
|
|
1636
|
-
G.advertisementPath(
|
|
1636
|
+
G.advertisementPath(H, j),
|
|
1637
1637
|
j
|
|
1638
|
-
) : (ee =
|
|
1638
|
+
) : (ee = c.advertisements) == null ? void 0 : ee[H];
|
|
1639
1639
|
})
|
|
1640
|
-
)).filter((
|
|
1640
|
+
)).filter((V) => V) : c.advertisements = [], await Je.update(c), await o.readMembership(), s.value = o.membership;
|
|
1641
1641
|
},
|
|
1642
1642
|
{
|
|
1643
1643
|
message: "Updating membership",
|
|
@@ -1645,276 +1645,280 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1645
1645
|
}
|
|
1646
1646
|
);
|
|
1647
1647
|
}
|
|
1648
|
-
async function
|
|
1649
|
-
const A = await
|
|
1650
|
-
console.log(A), m.value = A, B.value = A.find((
|
|
1648
|
+
async function D() {
|
|
1649
|
+
const A = await Je.getEmailAddresses();
|
|
1650
|
+
console.log(A), m.value = A, B.value = A.find((c) => c.default.includes("Marketing"));
|
|
1651
1651
|
}
|
|
1652
|
-
async function
|
|
1652
|
+
async function L() {
|
|
1653
1653
|
window.open(
|
|
1654
|
-
`${
|
|
1654
|
+
`${_e.licensePortalUrl}business/${qe.businessId}/settings`,
|
|
1655
1655
|
"_blank"
|
|
1656
1656
|
);
|
|
1657
1657
|
}
|
|
1658
|
+
async function Y() {
|
|
1659
|
+
const A = `${_e.licensePortalUrl}settings?businessId=${qe.businessId}`;
|
|
1660
|
+
console.log("Opening", A), window.open(A, "_blank");
|
|
1661
|
+
}
|
|
1658
1662
|
return Ze(async () => {
|
|
1659
1663
|
await n(async () => {
|
|
1660
|
-
var A,
|
|
1661
|
-
await r.readPremium(), await r.readLocations(), await r.readLocationDevices(), await o.readMembership(), await
|
|
1664
|
+
var A, c;
|
|
1665
|
+
await r.readPremium(), await r.readLocations(), await r.readLocationDevices(), await o.readMembership(), await D(), s.value = o.membership, f.value = (((A = s.value.advertisements) == null ? void 0 : A.length) ?? 0) > 0, p.value = ((c = s.value.advertisements) == null ? void 0 : c.map(() => null)) ?? [];
|
|
1662
1666
|
});
|
|
1663
|
-
}), (A,
|
|
1664
|
-
var
|
|
1665
|
-
const
|
|
1666
|
-
return x(), q(
|
|
1667
|
-
|
|
1668
|
-
title:
|
|
1667
|
+
}), (A, c) => {
|
|
1668
|
+
var Ve, xe, $e, ze, He, Ke, Oe;
|
|
1669
|
+
const ae = F("FmPageHead"), V = F("FmButton"), H = F("FmTextField"), j = F("FmCard"), ee = F("FmPill"), Ce = F("FmSwitch"), Ct = F("FmSelect"), Et = F("FmMenuDivider");
|
|
1670
|
+
return x(), q(ue, null, [
|
|
1671
|
+
_(ae, {
|
|
1672
|
+
title: u(h)("connect.setting.title"),
|
|
1669
1673
|
class: "xs:hidden"
|
|
1670
1674
|
}, null, 8, ["title"]),
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1675
|
+
y("div", Ln, [
|
|
1676
|
+
y("div", Fn, k(u(h)("connect.setting.basicInfo.title")), 1),
|
|
1677
|
+
_(V, {
|
|
1674
1678
|
icon: "info",
|
|
1675
1679
|
variant: "tertiary"
|
|
1676
1680
|
})
|
|
1677
1681
|
]),
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
label:
|
|
1684
|
-
modelValue:
|
|
1685
|
-
"onUpdate:modelValue":
|
|
1682
|
+
u(s) ? (x(), q("div", Rn, [
|
|
1683
|
+
y("div", kn, [
|
|
1684
|
+
y("div", Dn, k(u(h)("connect.setting.basicInfo.title")), 1),
|
|
1685
|
+
y("div", Vn, [
|
|
1686
|
+
_(H, {
|
|
1687
|
+
label: u(h)("connect.setting.basicInfo.membershipTitle"),
|
|
1688
|
+
modelValue: u(s).name,
|
|
1689
|
+
"onUpdate:modelValue": c[0] || (c[0] = (E) => u(s).name = E)
|
|
1686
1690
|
}, null, 8, ["label", "modelValue"]),
|
|
1687
|
-
|
|
1691
|
+
_(H, {
|
|
1688
1692
|
disabled: !0,
|
|
1689
|
-
"model-value":
|
|
1693
|
+
"model-value": u(s).business,
|
|
1690
1694
|
rules: d,
|
|
1691
1695
|
required: !0,
|
|
1692
|
-
label:
|
|
1693
|
-
"helper-text":
|
|
1694
|
-
placeholder:
|
|
1695
|
-
"onUpdate:modelValue":
|
|
1696
|
+
label: u(h)("connect.setting.basicInfo.memberAppUrl"),
|
|
1697
|
+
"helper-text": u(C),
|
|
1698
|
+
placeholder: u(s).business.toString(),
|
|
1699
|
+
"onUpdate:modelValue": c[2] || (c[2] = (E) => u(s).url = E)
|
|
1696
1700
|
}, {
|
|
1697
|
-
prepend:
|
|
1701
|
+
prepend: oe(() => c[13] || (c[13] = [
|
|
1698
1702
|
te(" https:// ")
|
|
1699
1703
|
])),
|
|
1700
|
-
append:
|
|
1701
|
-
te(" ." +
|
|
1702
|
-
|
|
1704
|
+
append: oe(() => [
|
|
1705
|
+
te(" ." + k(u(v)) + " ", 1),
|
|
1706
|
+
_(V, {
|
|
1703
1707
|
icon: "content_copy",
|
|
1704
1708
|
variant: "tertiary",
|
|
1705
|
-
onClick:
|
|
1709
|
+
onClick: c[1] || (c[1] = (E) => u(rt)(u(C)))
|
|
1706
1710
|
})
|
|
1707
1711
|
]),
|
|
1708
1712
|
_: 1
|
|
1709
1713
|
}, 8, ["model-value", "label", "helper-text", "placeholder"]),
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
"aspect-ratio": "3/1",
|
|
1715
|
-
thumbnail: c(s).image || void 0,
|
|
1716
|
-
"onUpdate:file": u[3] || (u[3] = async (E) => {
|
|
1717
|
-
S.value = E, E || (c(s).image = null);
|
|
1718
|
-
})
|
|
1719
|
-
}, null, 8, ["thumbnail"]),
|
|
1720
|
-
w("div", Vn, [
|
|
1721
|
-
w("div", xn, D(c(h)("connect.setting.counterApp.title")), 1),
|
|
1722
|
-
I(z, {
|
|
1714
|
+
ne("", !0),
|
|
1715
|
+
y("div", xn, [
|
|
1716
|
+
y("div", $n, k(u(h)("connect.setting.counterApp.title")), 1),
|
|
1717
|
+
_(V, {
|
|
1723
1718
|
variant: "plain",
|
|
1724
1719
|
icon: "link",
|
|
1725
|
-
label:
|
|
1726
|
-
onClick:
|
|
1720
|
+
label: u(h)("connect.setting.counterApp.linkDevice"),
|
|
1721
|
+
onClick: S
|
|
1727
1722
|
}, null, 8, ["label"]),
|
|
1728
|
-
(x(!0), q(
|
|
1723
|
+
(x(!0), q(ue, null, Ye(u(r).locationDevices, (E, T) => (x(), me(j, {
|
|
1729
1724
|
key: T,
|
|
1730
1725
|
variant: "outlined",
|
|
1731
1726
|
class: "flex items-center justify-between px-16 py-12"
|
|
1732
1727
|
}, {
|
|
1733
|
-
default:
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1728
|
+
default: oe(() => [
|
|
1729
|
+
y("div", null, [
|
|
1730
|
+
y("p", zn, k(E.name || `Device ${E._id}`), 1),
|
|
1731
|
+
y("p", Hn, " Activation date: " + k(u(At)(u(Rt)(E._id.toString())).format(
|
|
1737
1732
|
"D MMM YYYY"
|
|
1738
1733
|
)), 1),
|
|
1739
|
-
|
|
1734
|
+
y("p", Kn, " Linked location: " + k(u(r).locations.find((R) => R._id == E.location).name), 1)
|
|
1740
1735
|
]),
|
|
1741
|
-
|
|
1736
|
+
_(V, {
|
|
1742
1737
|
icon: "link_off",
|
|
1743
1738
|
variant: "tertiary",
|
|
1744
|
-
onClick: (
|
|
1739
|
+
onClick: (R) => P(E._id)
|
|
1745
1740
|
}, null, 8, ["onClick"])
|
|
1746
1741
|
]),
|
|
1747
1742
|
_: 2
|
|
1748
1743
|
}, 1024))), 128))
|
|
1749
1744
|
]),
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1745
|
+
y("div", On, [
|
|
1746
|
+
y("div", Yn, [
|
|
1747
|
+
c[14] || (c[14] = te(" Advertisement ")),
|
|
1748
|
+
_(ee, { variant: "premium" })
|
|
1754
1749
|
]),
|
|
1755
|
-
|
|
1756
|
-
modelValue:
|
|
1757
|
-
"onUpdate:modelValue":
|
|
1750
|
+
_(Ce, {
|
|
1751
|
+
modelValue: u(f),
|
|
1752
|
+
"onUpdate:modelValue": c[4] || (c[4] = (E) => et(f) ? f.value = E : null),
|
|
1758
1753
|
label: "Advertisement",
|
|
1759
1754
|
sublabel: "This will be show on FeedMe ordering app",
|
|
1760
1755
|
"label-placement": "right",
|
|
1761
|
-
disabled: !
|
|
1756
|
+
disabled: !u(r).isPremium,
|
|
1762
1757
|
value: ""
|
|
1763
1758
|
}, null, 8, ["modelValue", "disabled"]),
|
|
1764
|
-
|
|
1759
|
+
u(f) ? (x(), q("div", {
|
|
1765
1760
|
class: "flex items-center gap-8 flex-wrap xs:grid xs:grid-cols-2 xs:overflow-x-scroll xs:w-full",
|
|
1766
|
-
key:
|
|
1761
|
+
key: u(b)
|
|
1767
1762
|
}, [
|
|
1768
|
-
(x(!0), q(
|
|
1769
|
-
var
|
|
1770
|
-
return x(),
|
|
1763
|
+
(x(!0), q(ue, null, Ye(u(b), (E, T) => {
|
|
1764
|
+
var R, J;
|
|
1765
|
+
return x(), me(It, {
|
|
1771
1766
|
class: "w-[200px]",
|
|
1772
1767
|
"image-fit": "cover",
|
|
1773
1768
|
label: "",
|
|
1774
1769
|
"aspect-ratio": "2/3",
|
|
1775
|
-
thumbnail: (J = (
|
|
1770
|
+
thumbnail: (J = (R = u(s)) == null ? void 0 : R.advertisements) == null ? void 0 : J[T],
|
|
1776
1771
|
accept: ".png, .jpg, .jpeg, .mp4, .gif",
|
|
1777
1772
|
"recommended-size": "Recommended 4:5 ratio / 1080px x 1350px",
|
|
1778
|
-
file:
|
|
1779
|
-
"onUpdate:file": (
|
|
1780
|
-
|
|
1773
|
+
file: u(p)[T] ?? void 0,
|
|
1774
|
+
"onUpdate:file": (ce) => {
|
|
1775
|
+
u(s).advertisements || (u(s).advertisements = []), ce ? (u(s).advertisements[T] = "", u(p)[T] = ce) : (u(s).advertisements.splice(T, 1), u(p).splice(T, 1));
|
|
1781
1776
|
}
|
|
1782
1777
|
}, null, 8, ["thumbnail", "file", "onUpdate:file"]);
|
|
1783
1778
|
}), 256))
|
|
1784
|
-
])) :
|
|
1779
|
+
])) : ne("", !0)
|
|
1785
1780
|
]),
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
"model-value": ((
|
|
1781
|
+
y("div", jn, [
|
|
1782
|
+
c[15] || (c[15] = y("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
|
|
1783
|
+
_(H, {
|
|
1784
|
+
"model-value": ((Ve = u(s)) == null ? void 0 : Ve.brand) || "",
|
|
1790
1785
|
"max-length": 15,
|
|
1791
1786
|
label: "Brand Name",
|
|
1792
1787
|
"show-word-count": "",
|
|
1793
|
-
"helper-text": `RM 0 ${((
|
|
1794
|
-
"onUpdate:modelValue":
|
|
1788
|
+
"helper-text": `RM 0 ${((xe = u(s)) == null ? void 0 : xe.brand) || ""}: YOUR CUSTOMER MESSAGE`,
|
|
1789
|
+
"onUpdate:modelValue": c[5] || (c[5] = (E) => u(s).brand = E)
|
|
1795
1790
|
}, null, 8, ["model-value", "helper-text"]),
|
|
1796
|
-
|
|
1797
|
-
modelValue:
|
|
1798
|
-
"onUpdate:modelValue":
|
|
1799
|
-
variables:
|
|
1791
|
+
_(Ut, {
|
|
1792
|
+
modelValue: u(s).welcomeMessage,
|
|
1793
|
+
"onUpdate:modelValue": c[6] || (c[6] = (E) => u(s).welcomeMessage = E),
|
|
1794
|
+
variables: u(M),
|
|
1800
1795
|
placeholder: "Hi there, you have been invited to join membership"
|
|
1801
1796
|
}, null, 8, ["modelValue", "variables"])
|
|
1802
1797
|
]),
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1798
|
+
y("div", Jn, [
|
|
1799
|
+
c[16] || (c[16] = y("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
|
|
1800
|
+
c[17] || (c[17] = y("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1)),
|
|
1801
|
+
u(m).length ? ne("", !0) : (x(), me(V, {
|
|
1807
1802
|
key: 0,
|
|
1808
|
-
onClick:
|
|
1803
|
+
onClick: L,
|
|
1809
1804
|
label: "Add new email address"
|
|
1810
1805
|
})),
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
"model-value": ((
|
|
1806
|
+
u(m).length ? (x(), q(ue, { key: 1 }, [
|
|
1807
|
+
_(Ct, {
|
|
1808
|
+
"model-value": ((ze = ($e = u(s)) == null ? void 0 : $e.email) == null ? void 0 : ze.from) || null,
|
|
1814
1809
|
label: "From Address",
|
|
1815
|
-
items:
|
|
1810
|
+
items: u(m).map((E) => ({
|
|
1816
1811
|
label: E.emailAddress,
|
|
1817
1812
|
value: E.emailAddress
|
|
1818
1813
|
})),
|
|
1819
|
-
placeholder:
|
|
1820
|
-
"onUpdate:modelValue":
|
|
1821
|
-
var T,
|
|
1822
|
-
(T =
|
|
1814
|
+
placeholder: u(B) ? u(B).emailAddress : "No email address available",
|
|
1815
|
+
"onUpdate:modelValue": c[7] || (c[7] = (E) => {
|
|
1816
|
+
var T, R;
|
|
1817
|
+
(T = u(s)) != null && T.email || (u(s).email = {
|
|
1823
1818
|
from: E,
|
|
1824
|
-
name: (
|
|
1825
|
-
}),
|
|
1819
|
+
name: (R = u(m).find((J) => J.emailAddress == E)) == null ? void 0 : R.name
|
|
1820
|
+
}), u(s).email.from = E || null;
|
|
1826
1821
|
}),
|
|
1827
|
-
rules: [
|
|
1822
|
+
rules: [u(je).ruleAtPath(u(g), "email.from")]
|
|
1828
1823
|
}, null, 8, ["model-value", "items", "placeholder", "rules"]),
|
|
1829
|
-
|
|
1830
|
-
"model-value": ((
|
|
1824
|
+
_(H, {
|
|
1825
|
+
"model-value": ((Ke = (He = u(s)) == null ? void 0 : He.email) == null ? void 0 : Ke.name) || null,
|
|
1831
1826
|
label: "Sender name",
|
|
1832
1827
|
disabled: "",
|
|
1833
|
-
placeholder: ((
|
|
1834
|
-
"onUpdate:modelValue":
|
|
1828
|
+
placeholder: ((Oe = u(B)) == null ? void 0 : Oe.name) || null,
|
|
1829
|
+
"onUpdate:modelValue": c[8] || (c[8] = (E) => {
|
|
1835
1830
|
var T;
|
|
1836
|
-
(T =
|
|
1831
|
+
(T = u(s)) != null && T.email || (u(s).email = {
|
|
1837
1832
|
name: E
|
|
1838
|
-
}),
|
|
1833
|
+
}), u(s).email.name = E || null;
|
|
1839
1834
|
}),
|
|
1840
|
-
rules: [
|
|
1835
|
+
rules: [u(je).ruleAtPath(u(g), "email.name")]
|
|
1841
1836
|
}, null, 8, ["model-value", "placeholder", "rules"])
|
|
1842
|
-
], 64)) :
|
|
1837
|
+
], 64)) : ne("", !0)
|
|
1838
|
+
]),
|
|
1839
|
+
y("div", qn, [
|
|
1840
|
+
c[18] || (c[18] = y("div", { class: "fm-typo-en-title-sm-800" }, "Whatsapp Channel", -1)),
|
|
1841
|
+
c[19] || (c[19] = y("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Whatsapp phone number that will be used to send whatsapp broadcast ", -1)),
|
|
1842
|
+
_(V, {
|
|
1843
|
+
label: "Manage Whatsapp Channel",
|
|
1844
|
+
icon: "open_in_new",
|
|
1845
|
+
onClick: c[9] || (c[9] = (E) => Y())
|
|
1846
|
+
})
|
|
1843
1847
|
]),
|
|
1844
|
-
|
|
1845
|
-
|
|
1848
|
+
y("div", Gn, [
|
|
1849
|
+
c[20] || (c[20] = y("div", { class: "fm-typo-en-title-sm-800" }, [
|
|
1846
1850
|
te(" Free Credit as Discount "),
|
|
1847
|
-
|
|
1851
|
+
y("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
|
|
1848
1852
|
], -1)),
|
|
1849
|
-
|
|
1850
|
-
"model-value":
|
|
1851
|
-
"onUpdate:modelValue":
|
|
1853
|
+
_(Ce, {
|
|
1854
|
+
"model-value": u(s).freeCreditAsDiscount ?? !1,
|
|
1855
|
+
"onUpdate:modelValue": c[10] || (c[10] = (E) => u(s).freeCreditAsDiscount = E),
|
|
1852
1856
|
label: "Free Credit as Discount",
|
|
1853
1857
|
sublabel: "When enabled, this will allow free credit to be used as discount in the bill (POS >=v6.56)",
|
|
1854
1858
|
"label-placement": "right",
|
|
1855
1859
|
value: ""
|
|
1856
1860
|
}, null, 8, ["model-value"])
|
|
1857
1861
|
]),
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
+
y("div", Qn, [
|
|
1863
|
+
y("div", Wn, [
|
|
1864
|
+
c[21] || (c[21] = te(" Member Card ")),
|
|
1865
|
+
_(ee, { variant: "premium" })
|
|
1862
1866
|
]),
|
|
1863
|
-
|
|
1864
|
-
"model-value":
|
|
1865
|
-
"onUpdate:modelValue":
|
|
1867
|
+
_(Ce, {
|
|
1868
|
+
"model-value": u(s).cardEnable ?? !1,
|
|
1869
|
+
"onUpdate:modelValue": c[11] || (c[11] = (E) => u(s).cardEnable = E),
|
|
1866
1870
|
label: "",
|
|
1867
1871
|
sublabel: "Allow member to bind card via member app",
|
|
1868
1872
|
"label-placement": "right",
|
|
1869
1873
|
value: "",
|
|
1870
|
-
disabled: !
|
|
1874
|
+
disabled: !u(r).isPremium
|
|
1871
1875
|
}, null, 8, ["model-value", "disabled"])
|
|
1872
1876
|
]),
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1877
|
+
y("div", Xn, [
|
|
1878
|
+
c[22] || (c[22] = y("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1)),
|
|
1879
|
+
_(Tt, {
|
|
1876
1880
|
label: "Select restaurant",
|
|
1877
|
-
"model-value":
|
|
1878
|
-
"onUpdate:modelValue":
|
|
1881
|
+
"model-value": u(s).targetLocation ?? null,
|
|
1882
|
+
"onUpdate:modelValue": c[12] || (c[12] = (E) => u(s).targetLocation = E)
|
|
1879
1883
|
}, null, 8, ["model-value"])
|
|
1880
1884
|
]),
|
|
1881
|
-
|
|
1882
|
-
|
|
1885
|
+
y("div", Zn, [
|
|
1886
|
+
_(V, {
|
|
1883
1887
|
label: "Update",
|
|
1884
1888
|
type: "button",
|
|
1885
|
-
onClick:
|
|
1886
|
-
disabled: !!
|
|
1887
|
-
loading: !!
|
|
1889
|
+
onClick: N,
|
|
1890
|
+
disabled: !!u(e).loadingQueue.length,
|
|
1891
|
+
loading: !!u(e).loadingQueue.length
|
|
1888
1892
|
}, null, 8, ["disabled", "loading"])
|
|
1889
1893
|
])
|
|
1890
1894
|
])
|
|
1891
1895
|
]),
|
|
1892
|
-
|
|
1893
|
-
|
|
1896
|
+
y("div", eo, [
|
|
1897
|
+
_(j, {
|
|
1894
1898
|
variant: "outlined",
|
|
1895
1899
|
class: "flex flex-col p-24 gap-8"
|
|
1896
1900
|
}, {
|
|
1897
|
-
default:
|
|
1898
|
-
var E, T,
|
|
1901
|
+
default: oe(() => {
|
|
1902
|
+
var E, T, R;
|
|
1899
1903
|
return [
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1904
|
+
c[27] || (c[27] = y("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1)),
|
|
1905
|
+
_(Et, { class: "my-4" }),
|
|
1906
|
+
y("div", null, [
|
|
1907
|
+
c[23] || (c[23] = y("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1)),
|
|
1908
|
+
y("div", to, k(u(s).name), 1)
|
|
1905
1909
|
]),
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1910
|
+
y("div", null, [
|
|
1911
|
+
c[24] || (c[24] = y("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1)),
|
|
1912
|
+
y("div", no, k((((E = u(s).advertisements) == null ? void 0 : E.length) ?? 0) || "No advertisments"), 1)
|
|
1909
1913
|
]),
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1914
|
+
y("div", null, [
|
|
1915
|
+
c[25] || (c[25] = y("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1)),
|
|
1916
|
+
y("div", oo, k(u(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
|
|
1913
1917
|
]),
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
(J) =>
|
|
1918
|
+
y("div", null, [
|
|
1919
|
+
c[26] || (c[26] = y("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1)),
|
|
1920
|
+
y("div", ro, k(!u(s).targetLocation || u(s).targetLocation.length == u(Ie)().locations.length ? "All locations" : (R = (T = u(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : R.map(
|
|
1921
|
+
(J) => u(r).locations.find((ce) => ce._id == J).name
|
|
1918
1922
|
).join(", ")), 1)
|
|
1919
1923
|
])
|
|
1920
1924
|
];
|
|
@@ -1922,11 +1926,11 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1922
1926
|
_: 1
|
|
1923
1927
|
})
|
|
1924
1928
|
])
|
|
1925
|
-
])) :
|
|
1929
|
+
])) : ne("", !0)
|
|
1926
1930
|
], 64);
|
|
1927
1931
|
};
|
|
1928
1932
|
}
|
|
1929
1933
|
});
|
|
1930
1934
|
export {
|
|
1931
|
-
|
|
1935
|
+
So as default
|
|
1932
1936
|
};
|