@feedmepos/mf-connect 0.1.38-beta.2 → 0.1.38-beta.21
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-BjSfI2Ff.js → Analytic-CEd_WApy.js} +14 -14
- package/dist/{App-D11A2JY1.js → App-ulCtuU5o.js} +671 -661
- package/dist/{AuditLogs-DWCFYoRg.js → AuditLogs-BM1Np61K.js} +11 -11
- package/dist/{Bin-9wV4Ah3M.js → Bin-icbjnKXw.js} +9 -9
- package/dist/{Broadcast-I3BtSk8V.js → Broadcast-COQ3E8vI.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BbXEYOFK.js} +6 -6
- package/dist/{Card-CqALG5RM.js → Card-Cwh3GXi0.js} +142 -136
- package/dist/{Collections-rg3SzoUb.js → Collections-EuOjzpkL.js} +81 -75
- package/dist/{Credit-BNn1sYZv.js → Credit-BY2Fpdhh.js} +9 -9
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BbsLgUMQ.js} +678 -675
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js → EffectSheet.vue_vue_type_style_index_0_lang-BLw3-hI1.js} +6 -6
- package/dist/{Experience-D_Qm8SUj.js → Experience-rAH7zk71.js} +9 -9
- package/dist/{Game-CKXgXm6Q.js → Game-DlI0yNF0.js} +10 -10
- package/dist/{Index-D4DGfUHd.js → Index-DemXFS3d.js} +10 -10
- package/dist/{Marketing-Dn9A1vgH.js → Marketing-shNBO9Rc.js} +7 -7
- package/dist/{Member-B55vWHDd.js → Member-C19ZgpaL.js} +10 -10
- package/dist/{MemberList-BWTG9Ohy.js → MemberList-B2tNB4yg.js} +27 -27
- package/dist/{MemberTransactions-CP5EI-W0.js → MemberTransactions-BN3qaTVY.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js → MessageInput.vue_vue_type_script_setup_true_lang-BY3j1h72.js} +5621 -5418
- package/dist/{Mission-CFvhROuB.js → Mission-j1KI0-hJ.js} +10 -10
- package/dist/{Overview-4273yNwL.js → Overview-BN2Vdu8Q.js} +18 -18
- package/dist/{Point-B_-_C919.js → Point-8zy7QcTk.js} +9 -9
- package/dist/{Promotion-D2S3COxk.js → Promotion-mcUcylXB.js} +10 -10
- package/dist/{Queue-BmS1Oi-C.js → Queue-BsNv4P8u.js} +11 -11
- package/dist/{Record-DRBl0M8g.js → Record-VA6Bdlnz.js} +9 -9
- package/dist/{Reward-8056NmfK.js → Reward-CVyO3Ga1.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js → RewardGroup.vue_vue_type_script_setup_true_lang-BR9_a9bJ.js} +11 -11
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Dhs2whAH.js +1763 -0
- package/dist/{Segment-Bzq-pyhc.js → Segment-BMgcdIIS.js} +209 -209
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js → SelectItems.vue_vue_type_script_setup_true_lang-CKRpWcn_.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DZCNcdVW.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BESF672g.js} +3 -3
- package/dist/{Setting-BrJfYoru.js → Setting-BMKKkZTD.js} +457 -442
- package/dist/{Store-Bpl_4yZW.js → Store-DdxMDtfL.js} +466 -459
- package/dist/{StoreRewards-Cu7n7Pjz.js → StoreRewards-CRyeHEMF.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DS6-9WP9.js} +207 -221
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BTKpclKX.js} +1 -1
- package/dist/{Tier-_LnXg3n6.js → Tier-D5Xmp5vV.js} +229 -226
- package/dist/{Title-B7AGStvx.js → Title-CsK2crqD.js} +141 -138
- package/dist/{Transaction-Chxv6V7u.js → Transaction-Dvfc9x4f.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CqCxWltm.js} +6 -6
- package/dist/{Voucher-C5z2kOq9.js → Voucher-CPN7TMho.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DMye9MS3.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js → ZodTextField.vue_vue_type_script_setup_true_lang-CnaQAEKo.js} +1 -1
- package/dist/{app-BVojNX0w.js → app-DRBevJsF.js} +1 -1
- package/dist/{app-7cvPyHJ7.js → app-DteFjR9L.js} +459 -449
- package/dist/app.js +1 -1
- package/dist/{business-CmxV69wT.js → business-BqV9jK-p.js} +1 -1
- package/dist/{campaign-CT_cNJEL.js → campaign-BHDq-yx-.js} +10 -10
- package/dist/{campaign-Dq5C_no-.js → campaign-CsWoG6e_.js} +2 -2
- package/dist/{campaign.enum-dp7yHKzF.js → campaign.enum-Dfa96W5V.js} +1 -1
- package/dist/{campaign.fn-BYZgKDN7.js → campaign.fn-pLrwyHA_.js} +37 -37
- package/dist/{collectible.enum-DxbB4DxT.js → collectible.enum-BYTYWPsR.js} +1 -1
- package/dist/{collection.fn-CNZRdUgy.js → collection.fn-CYLIQJig.js} +2 -2
- package/dist/{dto-CT9zZbv9.js → dto-DBfDbpyb.js} +4 -4
- package/dist/{effect-FIlOEC4H.js → effect-D9pD5RCk.js} +1 -1
- package/dist/{email-addresses-Ba7xImfX.js → email-addresses-BApvdLkQ.js} +1 -1
- package/dist/{export-uzjZFNF9.js → export--EfmCiw0.js} +4 -4
- package/dist/{helper-D4sAZde0.js → helper-BHiK3pLT.js} +1 -1
- package/dist/{index-B9pl4zRZ.js → index-2dknXEFJ.js} +19 -9
- package/dist/{index-CNJLP3D5.js → index-B9_Tn8si.js} +1 -1
- package/dist/{index-BjU8LVUC.js → index-BSQXDDQY.js} +6347 -6305
- package/dist/{index-CwsMG2cV.js → index-Bqc7PV3K.js} +1 -1
- package/dist/{index-CONvJfKv.js → index-C1Vrltkc.js} +1 -1
- package/dist/{index-D5rvMvzx.js → index-CD2bkLo_.js} +1 -1
- package/dist/{index-DNxa8Rqx.js → index-CDLBLuYq.js} +69 -68
- package/dist/{index-BXz54M1s.js → index-COiVJ9pA.js} +1 -1
- package/dist/{index-CH3z92VV.js → index-CVxruvVB.js} +1 -1
- package/dist/{index-CS3Jmojj.js → index-Cc80pBYX.js} +573 -573
- package/dist/{index-l2F5MnLF.js → index-DXM3o6kl.js} +11 -4
- package/dist/{index-BI3m1Ehv.js → index-DYgdunxw.js} +3 -3
- package/dist/{index-CvBcve-r.js → index-Pd9RCQxn.js} +1 -1
- package/dist/{index-CUfS9Kp1.js → index-qd_dvZcw.js} +2 -2
- package/dist/{index.esm2017-ATcsD5N4.js → index.esm2017-DAWS_ALH.js} +34 -34
- package/dist/{loading-BWGQSrCB.js → loading-BVUeda4s.js} +1 -1
- package/dist/{membership-Cc4OZ8-U.js → membership-BL_43RJR.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-D7p8nfun.js → money-Cd8hLiNc.js} +1 -1
- package/dist/{number-CMJjC4qz.js → number-DVb8PSrj.js} +1 -1
- package/dist/objectid-D33s3gxp.js +145 -0
- package/dist/{plugins-eQis66QR.js → plugins-BKtBkC9Q.js} +2 -2
- package/dist/{reward-DrnzbG20.js → reward-f41dJcaL.js} +1 -1
- package/dist/{rule-CtRxkYXB.js → rule-Cbux1-fC.js} +4 -4
- package/dist/rule-builder-BrZeF45Z.js +91 -0
- package/dist/style.css +4 -1
- package/dist/{template-C3UfY0v5.js → template-tqhgmIdT.js} +4 -4
- package/dist/timezone-DaTVH4y0.js +1150 -0
- package/dist/{trigger-C9U7Zgad.js → trigger-C34RfwrT.js} +4 -4
- package/dist/{user-D7n9yYmO.js → user-DgKhDLYr.js} +1 -1
- package/dist/{vue-i18n-Bz45zC04.js → vue-i18n-xo56wiwi.js} +410 -410
- package/dist/{xlsx-D4S4qbcZ.js → xlsx-D8ZZRjtf.js} +1 -1
- package/package.json +3 -2
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js +0 -1728
- package/dist/objectid-D5T27iny.js +0 -145
- package/dist/rule-builder-Di9RIYHF.js +0 -89
|
@@ -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
|
|
1
|
+
import { defineComponent as Xe, ref as z, computed as he, onMounted as Ze, resolveComponent as R, openBlock as x, createBlock as ge, withCtx as oe, createElementVNode as p, createVNode as S, unref as c, isRef as et, createElementBlock as q, Fragment as de, toDisplayString as k, createTextVNode as te, createCommentVNode as ne, renderList as Ye } from "vue";
|
|
2
|
+
import { h as At } from "./moment-D7p2TMB-.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-BVUeda4s.js";
|
|
6
|
+
import { u as Mt } from "./app-wDQR6dpb.js";
|
|
7
|
+
import { u as Ie, l as nt } from "./business-BqV9jK-p.js";
|
|
8
|
+
import { u as ot } from "./membership-BL_43RJR.js";
|
|
9
|
+
import "./index-Cc80pBYX.js";
|
|
10
|
+
import { s as St, k as _t } from "./index-CDLBLuYq.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-BKtBkC9Q.js";
|
|
13
|
+
import { _ as Tt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BTKpclKX.js";
|
|
14
|
+
import { M as Nt, _ as Ut } from "./MessageInput.vue_vue_type_script_setup_true_lang-BY3j1h72.js";
|
|
15
|
+
import { u as Lt } from "./vue-i18n-xo56wiwi.js";
|
|
16
|
+
import { useCoreStore as Rt } from "@feedmepos/mf-common";
|
|
17
|
+
import { m as Je } from "./index-DXM3o6kl.js";
|
|
18
|
+
import { S as qe } from "./index-BSQXDDQY.js";
|
|
19
19
|
import { o as Ft } from "./objectId-dwaoBfJX.js";
|
|
20
|
-
import { a as
|
|
21
|
-
var
|
|
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 we = {};
|
|
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
|
+
})(we);
|
|
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 ut = {};
|
|
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 O =
|
|
295
|
+
})(ut);
|
|
296
|
+
var be = {};
|
|
297
|
+
const O = we, fe = [
|
|
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
|
+
], me = [
|
|
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
|
+
be.getBlocksCount = function(e, i) {
|
|
623
623
|
switch (i) {
|
|
624
624
|
case O.L:
|
|
625
|
-
return
|
|
625
|
+
return fe[(e - 1) * 4 + 0];
|
|
626
626
|
case O.M:
|
|
627
|
-
return
|
|
627
|
+
return fe[(e - 1) * 4 + 1];
|
|
628
628
|
case O.Q:
|
|
629
|
-
return
|
|
629
|
+
return fe[(e - 1) * 4 + 2];
|
|
630
630
|
case O.H:
|
|
631
|
-
return
|
|
631
|
+
return fe[(e - 1) * 4 + 3];
|
|
632
632
|
default:
|
|
633
633
|
return;
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
|
-
|
|
636
|
+
be.getTotalCodewordsCount = function(e, i) {
|
|
637
637
|
switch (i) {
|
|
638
638
|
case O.L:
|
|
639
|
-
return
|
|
639
|
+
return me[(e - 1) * 4 + 0];
|
|
640
640
|
case O.M:
|
|
641
|
-
return
|
|
641
|
+
return me[(e - 1) * 4 + 1];
|
|
642
642
|
case O.Q:
|
|
643
|
-
return
|
|
643
|
+
return me[(e - 1) * 4 + 2];
|
|
644
644
|
case O.H:
|
|
645
|
-
return
|
|
645
|
+
return me[(e - 1) * 4 + 3];
|
|
646
646
|
default:
|
|
647
647
|
return;
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
|
-
var ct = {},
|
|
651
|
-
const
|
|
650
|
+
var ct = {}, ve = {};
|
|
651
|
+
const re = new Uint8Array(512), pe = 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, pe[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
|
+
ve.log = function(e) {
|
|
660
660
|
if (e < 1) throw new Error("log(" + e + ")");
|
|
661
|
-
return
|
|
661
|
+
return pe[e];
|
|
662
662
|
};
|
|
663
|
-
|
|
664
|
-
return
|
|
663
|
+
ve.exp = function(e) {
|
|
664
|
+
return re[e];
|
|
665
665
|
};
|
|
666
|
-
|
|
667
|
-
return e === 0 || i === 0 ? 0 :
|
|
666
|
+
ve.mul = function(e, i) {
|
|
667
|
+
return e === 0 || i === 0 ? 0 : re[pe[e] + pe[i]];
|
|
668
668
|
};
|
|
669
669
|
(function(t) {
|
|
670
|
-
const e =
|
|
670
|
+
const e = ve;
|
|
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++)
|
|
@@ -692,52 +692,52 @@ we.mul = function(e, i) {
|
|
|
692
692
|
return o;
|
|
693
693
|
};
|
|
694
694
|
})(ct);
|
|
695
|
-
const
|
|
696
|
-
function
|
|
695
|
+
const dt = ct;
|
|
696
|
+
function Re(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
|
+
Re.prototype.initialize = function(e) {
|
|
700
|
+
this.degree = e, this.genPoly = dt.generateECPolynomial(this.degree);
|
|
701
701
|
};
|
|
702
|
-
|
|
702
|
+
Re.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 = Re, ft = {}, K = {}, Fe = {};
|
|
715
|
+
Fe.isValid = function(e) {
|
|
716
716
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
717
717
|
};
|
|
718
718
|
var $ = {};
|
|
719
|
-
const
|
|
720
|
-
let
|
|
721
|
-
|
|
722
|
-
const Kt = "(?:(?![A-Z0-9 $%*+\\-./:]|" +
|
|
719
|
+
const mt = "[0-9]+", Ot = "[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 Kt = "(?:(?![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
726
|
$.BYTE = new RegExp(Kt, "g");
|
|
727
|
-
$.NUMERIC = new RegExp(
|
|
728
|
-
$.ALPHANUMERIC = new RegExp(
|
|
729
|
-
const
|
|
727
|
+
$.NUMERIC = new RegExp(mt, "g");
|
|
728
|
+
$.ALPHANUMERIC = new RegExp(Ot, "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 = Fe, 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
|
+
})(K);
|
|
798
798
|
(function(t) {
|
|
799
|
-
const e =
|
|
799
|
+
const e = U, i = be, r = we, o = K, n = Fe, 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), y = i.getTotalCodewordsCount(d, v), b = (I - y) * 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 = K;
|
|
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 = K, 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 = K;
|
|
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 = K, 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,14 +1038,14 @@ 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
|
-
var
|
|
1048
|
-
throw new Error(
|
|
1047
|
+
var y = ["Could not find a path from ", r, " to ", o, "."].join("");
|
|
1048
|
+
throw new Error(y);
|
|
1049
1049
|
}
|
|
1050
1050
|
return n;
|
|
1051
1051
|
},
|
|
@@ -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 =
|
|
1102
|
-
function f(
|
|
1103
|
-
return unescape(encodeURIComponent(
|
|
1101
|
+
const e = K, i = Qt, r = Xt, o = nn, n = sn, l = $, a = U, s = ln;
|
|
1102
|
+
function f(y) {
|
|
1103
|
+
return unescape(encodeURIComponent(y)).length;
|
|
1104
1104
|
}
|
|
1105
|
-
function m(
|
|
1106
|
-
const
|
|
1105
|
+
function m(y, b, h) {
|
|
1106
|
+
const w = [];
|
|
1107
1107
|
let M;
|
|
1108
|
-
for (; (M =
|
|
1109
|
-
|
|
1108
|
+
for (; (M = y.exec(h)) !== null; )
|
|
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
|
-
function B(
|
|
1118
|
-
const b = m(l.NUMERIC, e.NUMERIC,
|
|
1119
|
-
let
|
|
1120
|
-
return a.isKanjiModeEnabled() ? (
|
|
1121
|
-
return P.index -
|
|
1117
|
+
function B(y) {
|
|
1118
|
+
const b = m(l.NUMERIC, e.NUMERIC, y), h = m(l.ALPHANUMERIC, e.ALPHANUMERIC, y);
|
|
1119
|
+
let w, M;
|
|
1120
|
+
return a.isKanjiModeEnabled() ? (w = m(l.BYTE, e.BYTE, y), M = m(l.KANJI, e.KANJI, y)) : (w = m(l.BYTE_KANJI, e.BYTE, y), 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,
|
|
@@ -1127,110 +1127,110 @@ var sn = pt.exports;
|
|
|
1127
1127
|
};
|
|
1128
1128
|
});
|
|
1129
1129
|
}
|
|
1130
|
-
function g(
|
|
1130
|
+
function g(y, b) {
|
|
1131
1131
|
switch (b) {
|
|
1132
1132
|
case e.NUMERIC:
|
|
1133
|
-
return i.getBitsLength(
|
|
1133
|
+
return i.getBitsLength(y);
|
|
1134
1134
|
case e.ALPHANUMERIC:
|
|
1135
|
-
return r.getBitsLength(
|
|
1135
|
+
return r.getBitsLength(y);
|
|
1136
1136
|
case e.KANJI:
|
|
1137
|
-
return n.getBitsLength(
|
|
1137
|
+
return n.getBitsLength(y);
|
|
1138
1138
|
case e.BYTE:
|
|
1139
|
-
return o.getBitsLength(
|
|
1139
|
+
return o.getBitsLength(y);
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
|
-
function d(
|
|
1143
|
-
return
|
|
1144
|
-
const
|
|
1145
|
-
return
|
|
1142
|
+
function d(y) {
|
|
1143
|
+
return y.reduce(function(b, h) {
|
|
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
|
-
function v(
|
|
1148
|
+
function v(y) {
|
|
1149
1149
|
const b = [];
|
|
1150
|
-
for (let h = 0; h <
|
|
1151
|
-
const
|
|
1152
|
-
switch (
|
|
1150
|
+
for (let h = 0; h < y.length; h++) {
|
|
1151
|
+
const w = y[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
|
-
function C(
|
|
1181
|
-
const h = {},
|
|
1180
|
+
function C(y, b) {
|
|
1181
|
+
const h = {}, w = { start: {} };
|
|
1182
1182
|
let M = ["start"];
|
|
1183
|
-
for (let _ = 0; _ <
|
|
1184
|
-
const P =
|
|
1185
|
-
for (let
|
|
1186
|
-
const
|
|
1187
|
-
|
|
1188
|
-
for (let
|
|
1189
|
-
const
|
|
1190
|
-
h[
|
|
1183
|
+
for (let _ = 0; _ < y.length; _++) {
|
|
1184
|
+
const P = y[_], N = [];
|
|
1185
|
+
for (let D = 0; D < P.length; D++) {
|
|
1186
|
+
const L = P[D], Y = "" + _ + D;
|
|
1187
|
+
N.push(Y), h[Y] = { node: L, lastCount: 0 }, w[Y] = {};
|
|
1188
|
+
for (let A = 0; A < M.length; A++) {
|
|
1189
|
+
const u = M[A];
|
|
1190
|
+
h[u] && h[u].node.mode === L.mode ? (w[u][Y] = g(h[u].lastCount + L.length, L.mode) - g(h[u].lastCount, L.mode), h[u].lastCount += L.length) : (h[u] && (h[u].lastCount = L.length), w[u][Y] = g(L.length, L.mode) + 4 + e.getCharCountIndicator(L.mode, b));
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
M =
|
|
1193
|
+
M = N;
|
|
1194
1194
|
}
|
|
1195
1195
|
for (let _ = 0; _ < M.length; _++)
|
|
1196
|
-
|
|
1197
|
-
return { map:
|
|
1196
|
+
w[M[_]].end = 0;
|
|
1197
|
+
return { map: w, table: h };
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function I(y, b) {
|
|
1200
1200
|
let h;
|
|
1201
|
-
const
|
|
1202
|
-
if (h = e.from(b,
|
|
1203
|
-
throw new Error('"' +
|
|
1204
|
-
Suggested mode is: ` + e.toString(
|
|
1201
|
+
const w = e.getBestModeForData(y);
|
|
1202
|
+
if (h = e.from(b, w), h !== e.BYTE && h.bit < w.bit)
|
|
1203
|
+
throw new Error('"' + y + '" cannot be encoded with mode ' + e.toString(h) + `.
|
|
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
|
-
return new i(
|
|
1207
|
+
return new i(y);
|
|
1208
1208
|
case e.ALPHANUMERIC:
|
|
1209
|
-
return new r(
|
|
1209
|
+
return new r(y);
|
|
1210
1210
|
case e.KANJI:
|
|
1211
|
-
return new n(
|
|
1211
|
+
return new n(y);
|
|
1212
1212
|
case e.BYTE:
|
|
1213
|
-
return new o(
|
|
1213
|
+
return new o(y);
|
|
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), _ = C(M, h), P = s.find_path(_.map, "start", "end"), N = [];
|
|
1222
|
+
for (let D = 1; D < P.length - 1; D++)
|
|
1223
|
+
N.push(_.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 Ce = U, Ae = we, an = xt, un = $t, cn = lt, dn = at, Te = ut, Ne = be, fn = Ht, ye = ft, mn = gt, gn = K, 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,14 +1239,14 @@ 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
|
|
1249
|
+
function yn(t, e) {
|
|
1250
1250
|
const i = cn.getPositions(e);
|
|
1251
1251
|
for (let r = 0; r < i.length; r++) {
|
|
1252
1252
|
const o = i[r][0], n = i[r][1];
|
|
@@ -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 = ye.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 = Ce.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 = Ce.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),
|
|
1304
|
-
let
|
|
1303
|
+
const C = new Array(l), I = new Array(l);
|
|
1304
|
+
let y = 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, y = Math.max(y, N);
|
|
1309
1309
|
}
|
|
1310
1310
|
const h = new Uint8Array(r);
|
|
1311
|
-
let
|
|
1312
|
-
for (M = 0; M <
|
|
1311
|
+
let w = 0, M, _;
|
|
1312
|
+
for (M = 0; M < y; M++)
|
|
1313
1313
|
for (_ = 0; _ < l; _++)
|
|
1314
|
-
M < C[_].length && (h[
|
|
1314
|
+
M < C[_].length && (h[w++] = C[_][M]);
|
|
1315
1315
|
for (M = 0; M < g; M++)
|
|
1316
1316
|
for (_ = 0; _ < l; _++)
|
|
1317
|
-
h[
|
|
1317
|
+
h[w++] = I[_][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 = ye.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 = ye.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 = Ce.getSymbolSize(e), s = new un(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 = ye.from(i.version), n = Te.from(i.maskPattern), i.toSJISFunc && Ce.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), y = Math.floor((d - m) / s);
|
|
1409
|
+
C = B[a[I * l + y] ? 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 = he(() => i.membership), f = he(() => {
|
|
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 = R("FmIcon"), C = R("FmSelect"),
|
|
1531
|
-
return x(),
|
|
1532
|
-
default:
|
|
1533
|
-
|
|
1534
|
-
d[3] || (d[3] =
|
|
1535
|
-
|
|
1536
|
-
|
|
1530
|
+
const v = R("FmIcon"), C = R("FmSelect"), I = R("FmButton"), y = R("FmCard");
|
|
1531
|
+
return x(), ge(y, { class: "p-24 max-w-[350px]" }, {
|
|
1532
|
+
default: oe(() => [
|
|
1533
|
+
p("div", Pn, [
|
|
1534
|
+
d[3] || (d[3] = p("div", null, [
|
|
1535
|
+
p("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
|
|
1536
|
+
p("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
|
|
1537
1537
|
], -1)),
|
|
1538
|
-
|
|
1538
|
+
S(v, {
|
|
1539
1539
|
name: "close",
|
|
1540
1540
|
onClick: d[0] || (d[0] = (b) => c(r).close()),
|
|
1541
1541
|
class: "cursor-pointer"
|
|
1542
1542
|
})
|
|
1543
1543
|
]),
|
|
1544
|
-
|
|
1545
|
-
|
|
1544
|
+
p("div", Tn, [
|
|
1545
|
+
S(C, {
|
|
1546
1546
|
modelValue: c(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
1552
|
items: c(e).locationItems.filter((b) => !!b.value)
|
|
1553
1553
|
}, null, 8, ["modelValue", "items"]),
|
|
1554
|
-
|
|
1554
|
+
p("img", {
|
|
1555
1555
|
src: c(o),
|
|
1556
1556
|
class: "aspect-square w-full"
|
|
1557
|
-
}, null, 8,
|
|
1558
|
-
I
|
|
1557
|
+
}, null, 8, Nn),
|
|
1558
|
+
S(I, {
|
|
1559
1559
|
class: "mx-auto",
|
|
1560
1560
|
variant: "plain",
|
|
1561
1561
|
icon: "content_copy",
|
|
1562
|
-
onClick: d[2] || (d[2] = (b) => c(
|
|
1562
|
+
onClick: d[2] || (d[2] = (b) => c(rt)(c(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" }, Rn = { class: "fm-typo-en-title-md-800" }, Fn = {
|
|
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" }, On = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Kn = { 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: "space-y-8" }, eo = { class: "flex justify-end pb-24" }, to = { class: "col-span-1 space-y-8 xs:hidden" }, no = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-600" }, ro = { class: "fm-typo-en-body-lg-600" }, io = { class: "fm-typo-en-body-lg-600" }, _o = /* @__PURE__ */ Xe({
|
|
1576
1576
|
__name: "Setting",
|
|
1577
1577
|
setup(t) {
|
|
1578
|
-
const e =
|
|
1578
|
+
const e = Mt(), i = Rt(), 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 = he(() => {
|
|
1582
1582
|
var A;
|
|
1583
1583
|
return `https://${(A = s.value) == null ? void 0 : A.business}.${v}`;
|
|
1584
|
-
}),
|
|
1584
|
+
}), I = z(), y = z([]), b = he(() => {
|
|
1585
1585
|
var A, u;
|
|
1586
1586
|
return Math.min((((u = (A = s.value) == null ? void 0 : A.advertisements) == null ? void 0 : u.length) ?? 0) + 1, 5);
|
|
1587
|
-
}), { t: h } =
|
|
1587
|
+
}), { t: h } = Lt(), w = i.currentCountry.value || "MY", M = [
|
|
1588
1588
|
"user.name",
|
|
1589
1589
|
"user.gender",
|
|
1590
1590
|
"user.birthday",
|
|
@@ -1593,24 +1593,24 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1593
1593
|
].filter(
|
|
1594
1594
|
(A) => {
|
|
1595
1595
|
var u;
|
|
1596
|
-
return !((u =
|
|
1596
|
+
return !((u = Nt[w]) != null && u.includes(A));
|
|
1597
1597
|
}
|
|
1598
1598
|
);
|
|
1599
1599
|
async function _() {
|
|
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 u =
|
|
1628
|
-
|
|
1624
|
+
var ae;
|
|
1625
|
+
const A = kt(s.value);
|
|
1626
|
+
console.log(s.value), A.welcomeMessage && !((ae = A.welcomeMessage) != null && ae.content) && (A.welcomeMessage.content = "Hi there, you have been invited to join our membership");
|
|
1627
|
+
const u = _t.parse(A);
|
|
1628
|
+
I.value === null && u.image ? await G.delete(G.coverImagePath()) : I.value && (u.image = await G.update(
|
|
1629
1629
|
G.coverImagePath(),
|
|
1630
|
-
|
|
1630
|
+
I.value
|
|
1631
1631
|
)), f.value ? u.advertisements = (await Promise.all(
|
|
1632
|
-
new Array(b.value - 1).fill(null).map(async (
|
|
1632
|
+
new Array(b.value - 1).fill(null).map(async (V, H) => {
|
|
1633
1633
|
var ee;
|
|
1634
|
-
const j =
|
|
1634
|
+
const j = y.value[H];
|
|
1635
1635
|
return j ? await G.update(
|
|
1636
|
-
G.advertisementPath(
|
|
1636
|
+
G.advertisementPath(H, j),
|
|
1637
1637
|
j
|
|
1638
|
-
) : (ee = u.advertisements) == null ? void 0 : ee[
|
|
1638
|
+
) : (ee = u.advertisements) == null ? void 0 : ee[H];
|
|
1639
1639
|
})
|
|
1640
|
-
)).filter((
|
|
1640
|
+
)).filter((V) => V) : u.advertisements = [], await Je.update(u), await o.readMembership(), s.value = o.membership;
|
|
1641
1641
|
},
|
|
1642
1642
|
{
|
|
1643
1643
|
message: "Updating membership",
|
|
@@ -1645,46 +1645,50 @@ 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
|
|
1648
|
+
async function D() {
|
|
1649
|
+
const A = await Je.getEmailAddresses();
|
|
1650
1650
|
console.log(A), m.value = A, B.value = A.find((u) => u.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
1664
|
var A, u;
|
|
1661
|
-
await r.readPremium(), await r.readLocations(), await r.readLocationDevices(), await o.readMembership(), await
|
|
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, y.value = ((u = s.value.advertisements) == null ? void 0 : u.map(() => null)) ?? [];
|
|
1662
1666
|
});
|
|
1663
1667
|
}), (A, u) => {
|
|
1664
|
-
var
|
|
1665
|
-
const
|
|
1666
|
-
return x(), q(
|
|
1667
|
-
|
|
1668
|
+
var Ve, xe, $e, ze, He, Oe, Ke;
|
|
1669
|
+
const ae = R("FmPageHead"), V = R("FmButton"), H = R("FmTextField"), j = R("FmCard"), ee = R("FmPill"), ue = R("FmSwitch"), Ct = R("FmSelect"), Et = R("FmMenuDivider");
|
|
1670
|
+
return x(), q(de, null, [
|
|
1671
|
+
S(ae, {
|
|
1668
1672
|
title: c(h)("connect.setting.title"),
|
|
1669
1673
|
class: "xs:hidden"
|
|
1670
1674
|
}, null, 8, ["title"]),
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1675
|
+
p("div", Ln, [
|
|
1676
|
+
p("div", Rn, k(c(h)("connect.setting.basicInfo.title")), 1),
|
|
1677
|
+
S(V, {
|
|
1674
1678
|
icon: "info",
|
|
1675
1679
|
variant: "tertiary"
|
|
1676
1680
|
})
|
|
1677
1681
|
]),
|
|
1678
1682
|
c(s) ? (x(), q("div", Fn, [
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
+
p("div", kn, [
|
|
1684
|
+
p("div", Dn, k(c(h)("connect.setting.basicInfo.title")), 1),
|
|
1685
|
+
p("div", Vn, [
|
|
1686
|
+
S(H, {
|
|
1683
1687
|
label: c(h)("connect.setting.basicInfo.membershipTitle"),
|
|
1684
1688
|
modelValue: c(s).name,
|
|
1685
1689
|
"onUpdate:modelValue": u[0] || (u[0] = (E) => c(s).name = E)
|
|
1686
1690
|
}, null, 8, ["label", "modelValue"]),
|
|
1687
|
-
|
|
1691
|
+
S(H, {
|
|
1688
1692
|
disabled: !0,
|
|
1689
1693
|
"model-value": c(s).business,
|
|
1690
1694
|
rules: d,
|
|
@@ -1694,67 +1698,58 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1694
1698
|
placeholder: c(s).business.toString(),
|
|
1695
1699
|
"onUpdate:modelValue": u[2] || (u[2] = (E) => c(s).url = E)
|
|
1696
1700
|
}, {
|
|
1697
|
-
prepend:
|
|
1701
|
+
prepend: oe(() => u[14] || (u[14] = [
|
|
1698
1702
|
te(" https:// ")
|
|
1699
1703
|
])),
|
|
1700
|
-
append:
|
|
1701
|
-
te(" ." +
|
|
1702
|
-
|
|
1704
|
+
append: oe(() => [
|
|
1705
|
+
te(" ." + k(c(v)) + " ", 1),
|
|
1706
|
+
S(V, {
|
|
1703
1707
|
icon: "content_copy",
|
|
1704
1708
|
variant: "tertiary",
|
|
1705
|
-
onClick: u[1] || (u[1] = (E) => c(
|
|
1709
|
+
onClick: u[1] || (u[1] = (E) => c(rt)(c(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
|
+
p("div", xn, [
|
|
1716
|
+
p("div", $n, k(c(h)("connect.setting.counterApp.title")), 1),
|
|
1717
|
+
S(V, {
|
|
1723
1718
|
variant: "plain",
|
|
1724
1719
|
icon: "link",
|
|
1725
1720
|
label: c(h)("connect.setting.counterApp.linkDevice"),
|
|
1726
1721
|
onClick: _
|
|
1727
1722
|
}, null, 8, ["label"]),
|
|
1728
|
-
(x(!0), q(
|
|
1723
|
+
(x(!0), q(de, null, Ye(c(r).locationDevices, (E, T) => (x(), ge(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
|
+
p("div", null, [
|
|
1730
|
+
p("p", zn, k(E.name || `Device ${E._id}`), 1),
|
|
1731
|
+
p("p", Hn, " Activation date: " + k(c(At)(c(Ft)(E._id.toString())).format(
|
|
1737
1732
|
"D MMM YYYY"
|
|
1738
1733
|
)), 1),
|
|
1739
|
-
|
|
1734
|
+
p("p", On, " Linked location: " + k(c(r).locations.find((F) => F._id == E.location).name), 1)
|
|
1740
1735
|
]),
|
|
1741
|
-
|
|
1736
|
+
S(V, {
|
|
1742
1737
|
icon: "link_off",
|
|
1743
1738
|
variant: "tertiary",
|
|
1744
|
-
onClick: (
|
|
1739
|
+
onClick: (F) => P(E._id)
|
|
1745
1740
|
}, null, 8, ["onClick"])
|
|
1746
1741
|
]),
|
|
1747
1742
|
_: 2
|
|
1748
1743
|
}, 1024))), 128))
|
|
1749
1744
|
]),
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
u[
|
|
1753
|
-
|
|
1745
|
+
p("div", Kn, [
|
|
1746
|
+
p("div", Yn, [
|
|
1747
|
+
u[15] || (u[15] = te(" Advertisement ")),
|
|
1748
|
+
S(ee, { variant: "premium" })
|
|
1754
1749
|
]),
|
|
1755
|
-
|
|
1750
|
+
S(ue, {
|
|
1756
1751
|
modelValue: c(f),
|
|
1757
|
-
"onUpdate:modelValue": u[4] || (u[4] = (E) =>
|
|
1752
|
+
"onUpdate:modelValue": u[4] || (u[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",
|
|
@@ -1765,52 +1760,52 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1765
1760
|
class: "flex items-center gap-8 flex-wrap xs:grid xs:grid-cols-2 xs:overflow-x-scroll xs:w-full",
|
|
1766
1761
|
key: c(b)
|
|
1767
1762
|
}, [
|
|
1768
|
-
(x(!0), q(
|
|
1769
|
-
var
|
|
1770
|
-
return x(),
|
|
1763
|
+
(x(!0), q(de, null, Ye(c(b), (E, T) => {
|
|
1764
|
+
var F, J;
|
|
1765
|
+
return x(), ge(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 = (F = c(s)) == null ? void 0 : F.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: c(
|
|
1779
|
-
"onUpdate:file": (
|
|
1780
|
-
c(s).advertisements || (c(s).advertisements = []),
|
|
1773
|
+
file: c(y)[T] ?? void 0,
|
|
1774
|
+
"onUpdate:file": (ce) => {
|
|
1775
|
+
c(s).advertisements || (c(s).advertisements = []), ce ? (c(s).advertisements[T] = "", c(y)[T] = ce) : (c(s).advertisements.splice(T, 1), c(y).splice(T, 1));
|
|
1781
1776
|
}
|
|
1782
1777
|
}, null, 8, ["thumbnail", "file", "onUpdate:file"]);
|
|
1783
1778
|
}), 256))
|
|
1784
|
-
])) :
|
|
1779
|
+
])) : ne("", !0)
|
|
1785
1780
|
]),
|
|
1786
|
-
|
|
1787
|
-
u[
|
|
1788
|
-
|
|
1789
|
-
"model-value": ((
|
|
1781
|
+
p("div", jn, [
|
|
1782
|
+
u[16] || (u[16] = p("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
|
|
1783
|
+
S(H, {
|
|
1784
|
+
"model-value": ((Ve = c(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 ${((
|
|
1788
|
+
"helper-text": `RM 0 ${((xe = c(s)) == null ? void 0 : xe.brand) || ""}: YOUR CUSTOMER MESSAGE`,
|
|
1794
1789
|
"onUpdate:modelValue": u[5] || (u[5] = (E) => c(s).brand = E)
|
|
1795
1790
|
}, null, 8, ["model-value", "helper-text"]),
|
|
1796
|
-
|
|
1791
|
+
S(Ut, {
|
|
1797
1792
|
modelValue: c(s).welcomeMessage,
|
|
1798
1793
|
"onUpdate:modelValue": u[6] || (u[6] = (E) => c(s).welcomeMessage = E),
|
|
1799
1794
|
variables: c(M),
|
|
1800
1795
|
placeholder: "Hi there, you have been invited to join membership"
|
|
1801
1796
|
}, null, 8, ["modelValue", "variables"])
|
|
1802
1797
|
]),
|
|
1803
|
-
|
|
1804
|
-
u[
|
|
1805
|
-
u[
|
|
1806
|
-
c(m).length ?
|
|
1798
|
+
p("div", Jn, [
|
|
1799
|
+
u[17] || (u[17] = p("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
|
|
1800
|
+
u[18] || (u[18] = p("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
|
+
c(m).length ? ne("", !0) : (x(), ge(V, {
|
|
1807
1802
|
key: 0,
|
|
1808
|
-
onClick:
|
|
1803
|
+
onClick: L,
|
|
1809
1804
|
label: "Add new email address"
|
|
1810
1805
|
})),
|
|
1811
|
-
c(m).length ? (x(), q(
|
|
1812
|
-
|
|
1813
|
-
"model-value": ((
|
|
1806
|
+
c(m).length ? (x(), q(de, { key: 1 }, [
|
|
1807
|
+
S(Ct, {
|
|
1808
|
+
"model-value": ((ze = ($e = c(s)) == null ? void 0 : $e.email) == null ? void 0 : ze.from) || null,
|
|
1814
1809
|
label: "From Address",
|
|
1815
1810
|
items: c(m).map((E) => ({
|
|
1816
1811
|
label: E.emailAddress,
|
|
@@ -1818,51 +1813,60 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1818
1813
|
})),
|
|
1819
1814
|
placeholder: c(B) ? c(B).emailAddress : "No email address available",
|
|
1820
1815
|
"onUpdate:modelValue": u[7] || (u[7] = (E) => {
|
|
1821
|
-
var T,
|
|
1816
|
+
var T, F;
|
|
1822
1817
|
(T = c(s)) != null && T.email || (c(s).email = {
|
|
1823
1818
|
from: E,
|
|
1824
|
-
name: (
|
|
1819
|
+
name: (F = c(m).find((J) => J.emailAddress == E)) == null ? void 0 : F.name
|
|
1825
1820
|
}), c(s).email.from = E || null;
|
|
1826
1821
|
}),
|
|
1827
|
-
rules: [c(
|
|
1822
|
+
rules: [c(je).ruleAtPath(c(g), "email.from")]
|
|
1828
1823
|
}, null, 8, ["model-value", "items", "placeholder", "rules"]),
|
|
1829
|
-
|
|
1830
|
-
"model-value": ((
|
|
1824
|
+
S(H, {
|
|
1825
|
+
"model-value": ((Oe = (He = c(s)) == null ? void 0 : He.email) == null ? void 0 : Oe.name) || null,
|
|
1831
1826
|
label: "Sender name",
|
|
1832
1827
|
disabled: "",
|
|
1833
|
-
placeholder: ((
|
|
1828
|
+
placeholder: ((Ke = c(B)) == null ? void 0 : Ke.name) || null,
|
|
1834
1829
|
"onUpdate:modelValue": u[8] || (u[8] = (E) => {
|
|
1835
1830
|
var T;
|
|
1836
1831
|
(T = c(s)) != null && T.email || (c(s).email = {
|
|
1837
1832
|
name: E
|
|
1838
1833
|
}), c(s).email.name = E || null;
|
|
1839
1834
|
}),
|
|
1840
|
-
rules: [c(
|
|
1835
|
+
rules: [c(je).ruleAtPath(c(g), "email.name")]
|
|
1841
1836
|
}, null, 8, ["model-value", "placeholder", "rules"])
|
|
1842
|
-
], 64)) :
|
|
1837
|
+
], 64)) : ne("", !0)
|
|
1843
1838
|
]),
|
|
1844
|
-
|
|
1845
|
-
u[
|
|
1839
|
+
p("div", qn, [
|
|
1840
|
+
u[19] || (u[19] = p("div", { class: "fm-typo-en-title-sm-800" }, "Whatsapp Channel", -1)),
|
|
1841
|
+
u[20] || (u[20] = p("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
|
+
S(V, {
|
|
1843
|
+
label: "Manage Whatsapp Channel",
|
|
1844
|
+
icon: "open_in_new",
|
|
1845
|
+
onClick: u[9] || (u[9] = (E) => Y())
|
|
1846
|
+
})
|
|
1847
|
+
]),
|
|
1848
|
+
p("div", Gn, [
|
|
1849
|
+
u[21] || (u[21] = p("div", { class: "fm-typo-en-title-sm-800" }, [
|
|
1846
1850
|
te(" Free Credit as Discount "),
|
|
1847
|
-
|
|
1851
|
+
p("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
|
|
1848
1852
|
], -1)),
|
|
1849
|
-
|
|
1853
|
+
S(ue, {
|
|
1850
1854
|
"model-value": c(s).freeCreditAsDiscount ?? !1,
|
|
1851
|
-
"onUpdate:modelValue": u[
|
|
1855
|
+
"onUpdate:modelValue": u[10] || (u[10] = (E) => c(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
|
-
u[
|
|
1861
|
-
|
|
1862
|
+
p("div", Qn, [
|
|
1863
|
+
p("div", Wn, [
|
|
1864
|
+
u[22] || (u[22] = te(" Member Card ")),
|
|
1865
|
+
S(ee, { variant: "premium" })
|
|
1862
1866
|
]),
|
|
1863
|
-
|
|
1867
|
+
S(ue, {
|
|
1864
1868
|
"model-value": c(s).cardEnable ?? !1,
|
|
1865
|
-
"onUpdate:modelValue": u[
|
|
1869
|
+
"onUpdate:modelValue": u[11] || (u[11] = (E) => c(s).cardEnable = E),
|
|
1866
1870
|
label: "",
|
|
1867
1871
|
sublabel: "Allow member to bind card via member app",
|
|
1868
1872
|
"label-placement": "right",
|
|
@@ -1870,51 +1874,62 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1870
1874
|
disabled: !c(r).isPremium
|
|
1871
1875
|
}, null, 8, ["model-value", "disabled"])
|
|
1872
1876
|
]),
|
|
1873
|
-
|
|
1874
|
-
u[
|
|
1875
|
-
|
|
1877
|
+
p("div", Xn, [
|
|
1878
|
+
u[23] || (u[23] = p("div", { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, " Auto Revert Reward ", -1)),
|
|
1879
|
+
S(ue, {
|
|
1880
|
+
"model-value": c(s).autoRevertReward ?? !1,
|
|
1881
|
+
"onUpdate:modelValue": u[12] || (u[12] = (E) => c(s).autoRevertReward = E),
|
|
1882
|
+
label: "",
|
|
1883
|
+
sublabel: "When enabled, rewards are automatically revert when if a refund is processed in POS",
|
|
1884
|
+
"label-placement": "right",
|
|
1885
|
+
value: ""
|
|
1886
|
+
}, null, 8, ["model-value"])
|
|
1887
|
+
]),
|
|
1888
|
+
p("div", Zn, [
|
|
1889
|
+
u[24] || (u[24] = p("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1)),
|
|
1890
|
+
S(Tt, {
|
|
1876
1891
|
label: "Select restaurant",
|
|
1877
1892
|
"model-value": c(s).targetLocation ?? null,
|
|
1878
|
-
"onUpdate:modelValue": u[
|
|
1893
|
+
"onUpdate:modelValue": u[13] || (u[13] = (E) => c(s).targetLocation = E)
|
|
1879
1894
|
}, null, 8, ["model-value"])
|
|
1880
1895
|
]),
|
|
1881
|
-
|
|
1882
|
-
|
|
1896
|
+
p("div", eo, [
|
|
1897
|
+
S(V, {
|
|
1883
1898
|
label: "Update",
|
|
1884
1899
|
type: "button",
|
|
1885
|
-
onClick:
|
|
1900
|
+
onClick: N,
|
|
1886
1901
|
disabled: !!c(e).loadingQueue.length,
|
|
1887
1902
|
loading: !!c(e).loadingQueue.length
|
|
1888
1903
|
}, null, 8, ["disabled", "loading"])
|
|
1889
1904
|
])
|
|
1890
1905
|
])
|
|
1891
1906
|
]),
|
|
1892
|
-
|
|
1893
|
-
|
|
1907
|
+
p("div", to, [
|
|
1908
|
+
S(j, {
|
|
1894
1909
|
variant: "outlined",
|
|
1895
1910
|
class: "flex flex-col p-24 gap-8"
|
|
1896
1911
|
}, {
|
|
1897
|
-
default:
|
|
1898
|
-
var E, T,
|
|
1912
|
+
default: oe(() => {
|
|
1913
|
+
var E, T, F;
|
|
1899
1914
|
return [
|
|
1900
|
-
u[
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
u[
|
|
1904
|
-
|
|
1915
|
+
u[29] || (u[29] = p("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1)),
|
|
1916
|
+
S(Et, { class: "my-4" }),
|
|
1917
|
+
p("div", null, [
|
|
1918
|
+
u[25] || (u[25] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1)),
|
|
1919
|
+
p("div", no, k(c(s).name), 1)
|
|
1905
1920
|
]),
|
|
1906
|
-
|
|
1907
|
-
u[
|
|
1908
|
-
|
|
1921
|
+
p("div", null, [
|
|
1922
|
+
u[26] || (u[26] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1)),
|
|
1923
|
+
p("div", oo, k((((E = c(s).advertisements) == null ? void 0 : E.length) ?? 0) || "No advertisments"), 1)
|
|
1909
1924
|
]),
|
|
1910
|
-
|
|
1911
|
-
u[
|
|
1912
|
-
|
|
1925
|
+
p("div", null, [
|
|
1926
|
+
u[27] || (u[27] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1)),
|
|
1927
|
+
p("div", ro, k(c(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
|
|
1913
1928
|
]),
|
|
1914
|
-
|
|
1915
|
-
u[
|
|
1916
|
-
|
|
1917
|
-
(J) => c(r).locations.find((
|
|
1929
|
+
p("div", null, [
|
|
1930
|
+
u[28] || (u[28] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1)),
|
|
1931
|
+
p("div", io, k(!c(s).targetLocation || c(s).targetLocation.length == c(Ie)().locations.length ? "All locations" : (F = (T = c(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : F.map(
|
|
1932
|
+
(J) => c(r).locations.find((ce) => ce._id == J).name
|
|
1918
1933
|
).join(", ")), 1)
|
|
1919
1934
|
])
|
|
1920
1935
|
];
|
|
@@ -1922,11 +1937,11 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1922
1937
|
_: 1
|
|
1923
1938
|
})
|
|
1924
1939
|
])
|
|
1925
|
-
])) :
|
|
1940
|
+
])) : ne("", !0)
|
|
1926
1941
|
], 64);
|
|
1927
1942
|
};
|
|
1928
1943
|
}
|
|
1929
1944
|
});
|
|
1930
1945
|
export {
|
|
1931
|
-
|
|
1946
|
+
_o as default
|
|
1932
1947
|
};
|