@feedmepos/mf-connect 0.1.38-beta.2 → 0.1.39-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Analytic-D8WCDkga.js +427 -0
- package/dist/{App-D11A2JY1.js → App-CTnXtg1W.js} +352 -364
- package/dist/{Bin-9wV4Ah3M.js → Bin-BY6-bvFj.js} +8 -8
- package/dist/{Broadcast-I3BtSk8V.js → Broadcast-5VTEIQAr.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BuAQxEM4.js} +18 -18
- package/dist/{Card-CqALG5RM.js → Card-8ivdV-Qz.js} +159 -159
- package/dist/{Collections-rg3SzoUb.js → Collections-CFszRHmE.js} +91 -103
- package/dist/{Credit-BNn1sYZv.js → Credit-DFslY__4.js} +74 -74
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BvCLYtJ3.js} +488 -489
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js → EffectSheet.vue_vue_type_style_index_0_lang-Ci_bp7GH.js} +94 -94
- package/dist/{Experience-D_Qm8SUj.js → Experience-BxfiZNlY.js} +41 -41
- package/dist/{Game-CKXgXm6Q.js → Game-0FZJcLmj.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
- package/dist/{Index-D4DGfUHd.js → Index-ByeKKbuM.js} +10 -10
- package/dist/Marketing-C7F4abzg.js +319 -0
- package/dist/{Member-B55vWHDd.js → Member-DP0fLSIV.js} +64 -64
- package/dist/MemberList-DFW2bMbr.js +1606 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/{MemberTransactions-CP5EI-W0.js → MemberTransactions-CW62fvgx.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-iJXNbgsB.js +455 -0
- package/dist/{Mission-CFvhROuB.js → Mission-DEgQHJw6.js} +21 -21
- package/dist/{Overview-4273yNwL.js → Overview-5jDtZKi8.js} +335 -335
- package/dist/{Point-B_-_C919.js → Point-D2lB1-xB.js} +41 -41
- package/dist/{Promotion-D2S3COxk.js → Promotion-Diz1gIa0.js} +42 -42
- package/dist/{Queue-BmS1Oi-C.js → Queue-DIAuq7HG.js} +51 -51
- package/dist/{Record-DRBl0M8g.js → Record-T608yda1.js} +9 -9
- package/dist/{Reward-8056NmfK.js → Reward-fZzHrHCW.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js → RewardGroup.vue_vue_type_script_setup_true_lang-YOKVfimM.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js → RuleGroup.vue_vue_type_script_setup_true_lang-C3_lmBe5.js} +431 -431
- package/dist/Segment-DDQIzsrk.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js → SelectItems.vue_vue_type_script_setup_true_lang-B5oUf91Q.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C2U6Kzvx.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRmqgxES.js} +3 -3
- package/dist/{Setting-BrJfYoru.js → Setting-CQNyXmp4.js} +432 -432
- package/dist/{Store-Bpl_4yZW.js → Store-CIA1Rtsg.js} +210 -210
- package/dist/StoreRewards-D5zlE6cE.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BkTYngJ_.js +995 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D8l3fQyz.js} +1 -1
- package/dist/{Tier-_LnXg3n6.js → Tier-jFXVOje_.js} +106 -106
- package/dist/{Title-B7AGStvx.js → Title-DVpZ1YMK.js} +131 -133
- package/dist/{Transaction-Chxv6V7u.js → Transaction-BF_wmok6.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cex1Z43W.js} +6 -6
- package/dist/{Voucher-C5z2kOq9.js → Voucher-CaBMU5w0.js} +37 -37
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BXt2fLOD.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js → ZodTextField.vue_vue_type_script_setup_true_lang-CtHjWpUe.js} +1 -1
- package/dist/{app-BVojNX0w.js → app-CPhyKlyf.js} +1 -1
- package/dist/{app-7cvPyHJ7.js → app-DuIzRGvb.js} +124 -161
- package/dist/app.js +3 -4
- package/dist/{business-CmxV69wT.js → business-TTvv3aTz.js} +1 -1
- package/dist/{campaign-Dq5C_no-.js → campaign-BiMCoAzx.js} +3 -5
- package/dist/{campaign-CT_cNJEL.js → campaign-CjEVStN1.js} +9 -9
- package/dist/{campaign.enum-dp7yHKzF.js → campaign.enum-DpYmj9jp.js} +1 -1
- package/dist/campaign.fn-DJ6J98jS.js +758 -0
- package/dist/{collectible.enum-DxbB4DxT.js → collectible.enum-Cgmm_s-C.js} +1 -1
- package/dist/{collection.fn-CNZRdUgy.js → collection.fn-BsYCNgfJ.js} +2 -2
- package/dist/{dto-CT9zZbv9.js → dto-DgmHIlZ2.js} +4 -4
- package/dist/{effect-FIlOEC4H.js → effect-DnAVIDFy.js} +1 -1
- package/dist/{email-addresses-Ba7xImfX.js → email-addresses-CMRgb6Uv.js} +1 -1
- package/dist/{export-uzjZFNF9.js → export-DtarK6IJ.js} +3 -3
- package/dist/{helper-D4sAZde0.js → helper-BKZghMbF.js} +1 -1
- package/dist/{index-l2F5MnLF.js → index-2OAcPmuQ.js} +1 -1
- package/dist/{index-BI3m1Ehv.js → index-B0YZKHyu.js} +3 -3
- package/dist/{index-CH3z92VV.js → index-B5oXFFlO.js} +1 -1
- package/dist/{index-CvBcve-r.js → index-BQ3KHJXX.js} +1 -1
- package/dist/{index-B9pl4zRZ.js → index-B_893fH7.js} +79 -179
- package/dist/{index-CNJLP3D5.js → index-BoR-BOFw.js} +1 -1
- package/dist/{index-DNxa8Rqx.js → index-C7rl1eHp.js} +449 -516
- package/dist/{index-BXz54M1s.js → index-CBcbwf0k.js} +1 -1
- package/dist/{index-CS3Jmojj.js → index-CIztuDE4.js} +2462 -2453
- package/dist/{index-D5rvMvzx.js → index-CK67enPK.js} +1 -1
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/index-D2uZzjpn.js +44 -0
- package/dist/{index-CUfS9Kp1.js → index-DWdAUovq.js} +9 -9
- package/dist/{index-CONvJfKv.js → index-DkWcEDHA.js} +1 -1
- package/dist/{index-BjU8LVUC.js → index-VHu8hYtE.js} +385 -376
- package/dist/{index.esm2017-ATcsD5N4.js → index.esm2017-DkwLmmR_.js} +127 -127
- package/dist/{loading-BWGQSrCB.js → loading-BFkEqWR6.js} +1 -1
- package/dist/{membership-Cc4OZ8-U.js → membership-D0eN3i_T.js} +3 -3
- package/dist/{money-D7p8nfun.js → money-DS9ZQwSP.js} +1 -1
- package/dist/{number-CMJjC4qz.js → number-C8Gt93v9.js} +1 -1
- package/dist/objectid-Cr99eTPd.js +145 -0
- package/dist/{plugins-eQis66QR.js → plugins-DK_ue6Xa.js} +2 -2
- package/dist/{reward-DrnzbG20.js → reward-CW2dSLDW.js} +1 -1
- package/dist/{rule-CtRxkYXB.js → rule-CebKyXSm.js} +3 -3
- package/dist/{rule-builder-Di9RIYHF.js → rule-builder-kQq14RfN.js} +17 -17
- package/dist/style.css +1 -1
- package/dist/{template-C3UfY0v5.js → template-CxUxlb6-.js} +64 -64
- package/dist/{trigger-C9U7Zgad.js → trigger-RqJo06KA.js} +4 -4
- package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
- package/dist/{user-D7n9yYmO.js → user-DhV5Iy52.js} +1 -1
- package/dist/{vue-i18n-Bz45zC04.js → vue-i18n-BtvUK9hI.js} +419 -419
- package/dist/{xlsx-D4S4qbcZ.js → xlsx-WnLDq4qn.js} +381 -381
- package/package.json +3 -9
- package/dist/Analytic-BjSfI2Ff.js +0 -761
- package/dist/AuditLogs-DWCFYoRg.js +0 -1887
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +0 -58
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
- package/dist/Marketing-Dn9A1vgH.js +0 -20073
- package/dist/MemberList-BWTG9Ohy.js +0 -1606
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js +0 -60279
- package/dist/Segment-Bzq-pyhc.js +0 -882
- package/dist/StoreRewards-Cu7n7Pjz.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js +0 -1029
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js +0 -419
- package/dist/campaign.fn-BYZgKDN7.js +0 -758
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-CwsMG2cV.js +0 -56
- package/dist/objectid-D5T27iny.js +0 -145
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as Xe, ref as H, computed as me, onMounted as Ze, resolveComponent as R, openBlock as x, createBlock as fe, withCtx as
|
|
2
|
-
import { h as
|
|
1
|
+
import { defineComponent as Xe, ref as H, computed as me, onMounted as Ze, resolveComponent as R, openBlock as x, createBlock as fe, withCtx as te, createElementVNode as w, createVNode as I, unref as c, isRef as We, createElementBlock as q, Fragment as le, toDisplayString as D, createTextVNode as ne, renderList as Ke, createCommentVNode as ce } from "vue";
|
|
2
|
+
import { h as _t } from "./moment-BWErdI6_.js";
|
|
3
3
|
import { Z as Oe } from "./zod-Bg2FbC-D.js";
|
|
4
4
|
import { useDialog as et } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as nt } from "./membership-
|
|
9
|
-
import "./index-
|
|
10
|
-
import { s as
|
|
11
|
-
import { _ as Ye } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { a as ot, p as
|
|
13
|
-
import { _ as It } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { M as Pt, _ as Tt } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { u as Nt } from "./vue-i18n-
|
|
5
|
+
import { u as Et } from "./loading-BFkEqWR6.js";
|
|
6
|
+
import { u as At } from "./app-wDQR6dpb.js";
|
|
7
|
+
import { u as Me, l as tt } from "./business-TTvv3aTz.js";
|
|
8
|
+
import { u as nt } from "./membership-D0eN3i_T.js";
|
|
9
|
+
import "./index-CIztuDE4.js";
|
|
10
|
+
import { s as Bt, k as Mt } from "./index-C7rl1eHp.js";
|
|
11
|
+
import { _ as Ye } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
12
|
+
import { a as ot, p as St, f as G } from "./plugins-DK_ue6Xa.js";
|
|
13
|
+
import { _ as It } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-D8l3fQyz.js";
|
|
14
|
+
import { M as Pt, _ as Tt } from "./MessageInput.vue_vue_type_script_setup_true_lang-iJXNbgsB.js";
|
|
15
|
+
import { u as Nt } from "./vue-i18n-BtvUK9hI.js";
|
|
16
16
|
import { useCoreStore as Ut } from "@feedmepos/mf-common";
|
|
17
|
-
import { m as je } from "./index-
|
|
18
|
-
import { S as Lt } from "./index-
|
|
17
|
+
import { m as je } from "./index-2OAcPmuQ.js";
|
|
18
|
+
import { S as Lt } from "./index-VHu8hYtE.js";
|
|
19
19
|
import { o as Ft } from "./objectId-dwaoBfJX.js";
|
|
20
20
|
import { a as Rt } from "./object-qECH92oz.js";
|
|
21
21
|
var ie = {}, kt = function() {
|
|
@@ -170,23 +170,23 @@ var xt = se, st = {};
|
|
|
170
170
|
const e = L.getSymbolSize;
|
|
171
171
|
t.getRowColCoords = function(r) {
|
|
172
172
|
if (r === 1) return [];
|
|
173
|
-
const o = Math.floor(r / 7) + 2, n = e(r),
|
|
173
|
+
const o = Math.floor(r / 7) + 2, n = e(r), a = n === 145 ? 26 : Math.ceil((n - 13) / (2 * o - 2)) * 2, l = [n - 7];
|
|
174
174
|
for (let s = 1; s < o - 1; s++)
|
|
175
|
-
|
|
176
|
-
return
|
|
175
|
+
l[s] = l[s - 1] - a;
|
|
176
|
+
return l.push(6), l.reverse();
|
|
177
177
|
}, t.getPositions = function(r) {
|
|
178
|
-
const o = [], n = t.getRowColCoords(r),
|
|
179
|
-
for (let
|
|
180
|
-
for (let s = 0; s <
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
178
|
+
const o = [], n = t.getRowColCoords(r), a = n.length;
|
|
179
|
+
for (let l = 0; l < a; l++)
|
|
180
|
+
for (let s = 0; s < a; s++)
|
|
181
|
+
l === 0 && s === 0 || // top-left
|
|
182
|
+
l === 0 && s === a - 1 || // bottom-left
|
|
183
|
+
l === a - 1 && s === 0 || o.push([n[l], n[s]]);
|
|
184
184
|
return o;
|
|
185
185
|
};
|
|
186
186
|
})(st);
|
|
187
|
-
var
|
|
187
|
+
var at = {};
|
|
188
188
|
const $t = L.getSymbolSize, Je = 7;
|
|
189
|
-
|
|
189
|
+
at.getPositions = function(e) {
|
|
190
190
|
const i = $t(e);
|
|
191
191
|
return [
|
|
192
192
|
// top-left
|
|
@@ -197,7 +197,7 @@ lt.getPositions = function(e) {
|
|
|
197
197
|
[0, i - Je]
|
|
198
198
|
];
|
|
199
199
|
};
|
|
200
|
-
var
|
|
200
|
+
var lt = {};
|
|
201
201
|
(function(t) {
|
|
202
202
|
t.Patterns = {
|
|
203
203
|
PATTERN000: 0,
|
|
@@ -221,39 +221,39 @@ var at = {};
|
|
|
221
221
|
return t.isValid(o) ? parseInt(o, 10) : void 0;
|
|
222
222
|
}, t.getPenaltyN1 = function(o) {
|
|
223
223
|
const n = o.size;
|
|
224
|
-
let
|
|
225
|
-
for (let
|
|
226
|
-
|
|
227
|
-
for (let
|
|
228
|
-
let d = o.get(
|
|
229
|
-
d ===
|
|
224
|
+
let a = 0, l = 0, s = 0, u = null, f = null;
|
|
225
|
+
for (let A = 0; A < n; A++) {
|
|
226
|
+
l = s = 0, u = f = null;
|
|
227
|
+
for (let m = 0; m < n; m++) {
|
|
228
|
+
let d = o.get(A, m);
|
|
229
|
+
d === u ? l++ : (l >= 5 && (a += e.N1 + (l - 5)), u = d, l = 1), d = o.get(m, A), d === f ? s++ : (s >= 5 && (a += e.N1 + (s - 5)), f = d, s = 1);
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
l >= 5 && (a += e.N1 + (l - 5)), s >= 5 && (a += e.N1 + (s - 5));
|
|
232
232
|
}
|
|
233
|
-
return
|
|
233
|
+
return a;
|
|
234
234
|
}, t.getPenaltyN2 = function(o) {
|
|
235
235
|
const n = o.size;
|
|
236
|
-
let
|
|
237
|
-
for (let
|
|
236
|
+
let a = 0;
|
|
237
|
+
for (let l = 0; l < n - 1; l++)
|
|
238
238
|
for (let s = 0; s < n - 1; s++) {
|
|
239
|
-
const
|
|
240
|
-
(
|
|
239
|
+
const u = o.get(l, s) + o.get(l, s + 1) + o.get(l + 1, s) + o.get(l + 1, s + 1);
|
|
240
|
+
(u === 4 || u === 0) && a++;
|
|
241
241
|
}
|
|
242
|
-
return
|
|
242
|
+
return a * e.N2;
|
|
243
243
|
}, t.getPenaltyN3 = function(o) {
|
|
244
244
|
const n = o.size;
|
|
245
|
-
let
|
|
246
|
-
for (let
|
|
247
|
-
|
|
248
|
-
for (let
|
|
249
|
-
|
|
245
|
+
let a = 0, l = 0, s = 0;
|
|
246
|
+
for (let u = 0; u < n; u++) {
|
|
247
|
+
l = s = 0;
|
|
248
|
+
for (let f = 0; f < n; f++)
|
|
249
|
+
l = l << 1 & 2047 | o.get(u, f), f >= 10 && (l === 1488 || l === 93) && a++, s = s << 1 & 2047 | o.get(f, u), f >= 10 && (s === 1488 || s === 93) && a++;
|
|
250
250
|
}
|
|
251
|
-
return
|
|
251
|
+
return a * e.N3;
|
|
252
252
|
}, t.getPenaltyN4 = function(o) {
|
|
253
253
|
let n = 0;
|
|
254
|
-
const
|
|
255
|
-
for (let s = 0; s <
|
|
256
|
-
return Math.abs(Math.ceil(n * 100 /
|
|
254
|
+
const a = o.data.length;
|
|
255
|
+
for (let s = 0; s < a; s++) n += o.data[s];
|
|
256
|
+
return Math.abs(Math.ceil(n * 100 / a / 5) - 10) * e.N4;
|
|
257
257
|
};
|
|
258
258
|
function i(r, o, n) {
|
|
259
259
|
switch (r) {
|
|
@@ -278,21 +278,21 @@ var at = {};
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
t.applyMask = function(o, n) {
|
|
281
|
-
const
|
|
282
|
-
for (let
|
|
283
|
-
for (let s = 0; s <
|
|
284
|
-
n.isReserved(s,
|
|
281
|
+
const a = n.size;
|
|
282
|
+
for (let l = 0; l < a; l++)
|
|
283
|
+
for (let s = 0; s < a; s++)
|
|
284
|
+
n.isReserved(s, l) || n.xor(s, l, i(o, s, l));
|
|
285
285
|
}, t.getBestMask = function(o, n) {
|
|
286
|
-
const
|
|
287
|
-
let
|
|
288
|
-
for (let
|
|
289
|
-
n(
|
|
290
|
-
const
|
|
291
|
-
t.applyMask(
|
|
286
|
+
const a = Object.keys(t.Patterns).length;
|
|
287
|
+
let l = 0, s = 1 / 0;
|
|
288
|
+
for (let u = 0; u < a; u++) {
|
|
289
|
+
n(u), t.applyMask(u, o);
|
|
290
|
+
const f = t.getPenaltyN1(o) + t.getPenaltyN2(o) + t.getPenaltyN3(o) + t.getPenaltyN4(o);
|
|
291
|
+
t.applyMask(u, o), f < s && (s = f, l = u);
|
|
292
292
|
}
|
|
293
|
-
return
|
|
293
|
+
return l;
|
|
294
294
|
};
|
|
295
|
-
})(
|
|
295
|
+
})(lt);
|
|
296
296
|
var ye = {};
|
|
297
297
|
const O = pe, ue = [
|
|
298
298
|
// L M Q H
|
|
@@ -670,19 +670,19 @@ we.mul = function(e, i) {
|
|
|
670
670
|
const e = we;
|
|
671
671
|
t.mul = function(r, o) {
|
|
672
672
|
const n = new Uint8Array(r.length + o.length - 1);
|
|
673
|
-
for (let
|
|
674
|
-
for (let
|
|
675
|
-
n[
|
|
673
|
+
for (let a = 0; a < r.length; a++)
|
|
674
|
+
for (let l = 0; l < o.length; l++)
|
|
675
|
+
n[a + l] ^= e.mul(r[a], o[l]);
|
|
676
676
|
return n;
|
|
677
677
|
}, t.mod = function(r, o) {
|
|
678
678
|
let n = new Uint8Array(r);
|
|
679
679
|
for (; n.length - o.length >= 0; ) {
|
|
680
|
-
const
|
|
680
|
+
const a = n[0];
|
|
681
681
|
for (let s = 0; s < o.length; s++)
|
|
682
|
-
n[s] ^= e.mul(o[s],
|
|
683
|
-
let
|
|
684
|
-
for (;
|
|
685
|
-
n = n.slice(
|
|
682
|
+
n[s] ^= e.mul(o[s], a);
|
|
683
|
+
let l = 0;
|
|
684
|
+
for (; l < n.length && n[l] === 0; ) l++;
|
|
685
|
+
n = n.slice(l);
|
|
686
686
|
}
|
|
687
687
|
return n;
|
|
688
688
|
}, t.generateECPolynomial = function(r) {
|
|
@@ -756,11 +756,11 @@ $.testAlphanumeric = function(e) {
|
|
|
756
756
|
ccBits: [8, 10, 12]
|
|
757
757
|
}, t.MIXED = {
|
|
758
758
|
bit: -1
|
|
759
|
-
}, t.getCharCountIndicator = function(n,
|
|
759
|
+
}, t.getCharCountIndicator = function(n, a) {
|
|
760
760
|
if (!n.ccBits) throw new Error("Invalid mode: " + n);
|
|
761
|
-
if (!e.isValid(
|
|
762
|
-
throw new Error("Invalid version: " +
|
|
763
|
-
return
|
|
761
|
+
if (!e.isValid(a))
|
|
762
|
+
throw new Error("Invalid version: " + a);
|
|
763
|
+
return a >= 1 && a < 10 ? n.ccBits[0] : a < 27 ? n.ccBits[1] : n.ccBits[2];
|
|
764
764
|
}, t.getBestModeForData = function(n) {
|
|
765
765
|
return i.testNumeric(n) ? t.NUMERIC : i.testAlphanumeric(n) ? t.ALPHANUMERIC : i.testKanji(n) ? t.KANJI : t.BYTE;
|
|
766
766
|
}, t.toString = function(n) {
|
|
@@ -785,36 +785,36 @@ $.testAlphanumeric = function(e) {
|
|
|
785
785
|
throw new Error("Unknown mode: " + o);
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
t.from = function(n,
|
|
788
|
+
t.from = function(n, a) {
|
|
789
789
|
if (t.isValid(n))
|
|
790
790
|
return n;
|
|
791
791
|
try {
|
|
792
792
|
return r(n);
|
|
793
793
|
} catch {
|
|
794
|
-
return
|
|
794
|
+
return a;
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
797
|
})(Y);
|
|
798
798
|
(function(t) {
|
|
799
|
-
const e = L, i = ye, r = pe, o = Y, n = Le,
|
|
800
|
-
function s(
|
|
799
|
+
const e = L, i = ye, r = pe, o = Y, n = Le, a = 7973, l = e.getBCHDigit(a);
|
|
800
|
+
function s(m, d, v) {
|
|
801
801
|
for (let C = 1; C <= 40; C++)
|
|
802
|
-
if (d <= t.getCapacity(C, v,
|
|
802
|
+
if (d <= t.getCapacity(C, v, m))
|
|
803
803
|
return C;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
806
|
-
return o.getCharCountIndicator(
|
|
805
|
+
function u(m, d) {
|
|
806
|
+
return o.getCharCountIndicator(m, d) + 4;
|
|
807
807
|
}
|
|
808
|
-
function m
|
|
808
|
+
function f(m, d) {
|
|
809
809
|
let v = 0;
|
|
810
|
-
return
|
|
811
|
-
const
|
|
812
|
-
v +=
|
|
810
|
+
return m.forEach(function(C) {
|
|
811
|
+
const M = u(C.mode, d);
|
|
812
|
+
v += M + C.getBitsLength();
|
|
813
813
|
}), v;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function A(m, d) {
|
|
816
816
|
for (let v = 1; v <= 40; v++)
|
|
817
|
-
if (m
|
|
817
|
+
if (f(m, v) <= t.getCapacity(v, d, o.MIXED))
|
|
818
818
|
return v;
|
|
819
819
|
}
|
|
820
820
|
t.from = function(d, v) {
|
|
@@ -823,48 +823,48 @@ $.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 M = e.getSymbolTotalCodewords(d), h = i.getTotalCodewordsCount(d, v), b = (M - h) * 8;
|
|
827
827
|
if (C === o.MIXED) return b;
|
|
828
|
-
const
|
|
828
|
+
const g = b - u(C, d);
|
|
829
829
|
switch (C) {
|
|
830
830
|
case o.NUMERIC:
|
|
831
|
-
return Math.floor(
|
|
831
|
+
return Math.floor(g / 10 * 3);
|
|
832
832
|
case o.ALPHANUMERIC:
|
|
833
|
-
return Math.floor(
|
|
833
|
+
return Math.floor(g / 11 * 2);
|
|
834
834
|
case o.KANJI:
|
|
835
|
-
return Math.floor(
|
|
835
|
+
return Math.floor(g / 13);
|
|
836
836
|
case o.BYTE:
|
|
837
837
|
default:
|
|
838
|
-
return Math.floor(
|
|
838
|
+
return Math.floor(g / 8);
|
|
839
839
|
}
|
|
840
840
|
}, t.getBestVersionForData = function(d, v) {
|
|
841
841
|
let C;
|
|
842
|
-
const
|
|
842
|
+
const M = r.from(v, r.M);
|
|
843
843
|
if (Array.isArray(d)) {
|
|
844
844
|
if (d.length > 1)
|
|
845
|
-
return
|
|
845
|
+
return A(d, M);
|
|
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(), M);
|
|
852
852
|
}, t.getEncodedBits = function(d) {
|
|
853
853
|
if (!n.isValid(d) || d < 7)
|
|
854
854
|
throw new Error("Invalid QR Code version");
|
|
855
855
|
let v = d << 12;
|
|
856
|
-
for (; e.getBCHDigit(v) -
|
|
857
|
-
v ^=
|
|
856
|
+
for (; e.getBCHDigit(v) - l >= 0; )
|
|
857
|
+
v ^= a << e.getBCHDigit(v) - l;
|
|
858
858
|
return d << 12 | v;
|
|
859
859
|
};
|
|
860
860
|
})(dt);
|
|
861
861
|
var mt = {};
|
|
862
|
-
const
|
|
862
|
+
const Se = L, gt = 1335, Jt = 21522, qe = Se.getBCHDigit(gt);
|
|
863
863
|
mt.getEncodedBits = function(e, i) {
|
|
864
864
|
const r = e.bit << 3 | i;
|
|
865
865
|
let o = r << 10;
|
|
866
|
-
for (;
|
|
867
|
-
o ^= gt <<
|
|
866
|
+
for (; Se.getBCHDigit(o) - qe >= 0; )
|
|
867
|
+
o ^= gt << Se.getBCHDigit(o) - qe;
|
|
868
868
|
return (r << 10 | o) ^ Jt;
|
|
869
869
|
};
|
|
870
870
|
var ht = {};
|
|
@@ -960,8 +960,8 @@ var Xt = X, 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) {
|
|
963
|
-
var
|
|
964
|
-
|
|
963
|
+
var a = e.charCodeAt(o + 1);
|
|
964
|
+
a >= 56320 && a <= 57343 && (n = (n - 55296) * 1024 + a - 56320 + 65536, o += 1);
|
|
965
965
|
}
|
|
966
966
|
if (n < 128) {
|
|
967
967
|
i.push(n);
|
|
@@ -1034,18 +1034,18 @@ var rn = W, pt = { exports: {} };
|
|
|
1034
1034
|
(function(t) {
|
|
1035
1035
|
var e = {
|
|
1036
1036
|
single_source_shortest_paths: function(i, r, o) {
|
|
1037
|
-
var n = {},
|
|
1038
|
-
|
|
1039
|
-
var
|
|
1040
|
-
|
|
1041
|
-
for (var s,
|
|
1042
|
-
s =
|
|
1043
|
-
for (
|
|
1044
|
-
|
|
1037
|
+
var n = {}, a = {};
|
|
1038
|
+
a[r] = 0;
|
|
1039
|
+
var l = e.PriorityQueue.make();
|
|
1040
|
+
l.push(r, 0);
|
|
1041
|
+
for (var s, u, f, A, m, d, v, C, M; !l.empty(); ) {
|
|
1042
|
+
s = l.pop(), u = s.value, A = s.cost, m = i[u] || {};
|
|
1043
|
+
for (f in m)
|
|
1044
|
+
m.hasOwnProperty(f) && (d = m[f], v = A + d, C = a[f], M = typeof a[f] > "u", (M || C > v) && (a[f] = v, l.push(f, v), n[f] = u));
|
|
1045
1045
|
}
|
|
1046
|
-
if (typeof o < "u" && typeof
|
|
1047
|
-
var
|
|
1048
|
-
throw new Error(
|
|
1046
|
+
if (typeof o < "u" && typeof a[o] > "u") {
|
|
1047
|
+
var h = ["Could not find a path from ", r, " to ", o, "."].join("");
|
|
1048
|
+
throw new Error(h);
|
|
1049
1049
|
}
|
|
1050
1050
|
return n;
|
|
1051
1051
|
},
|
|
@@ -1098,26 +1098,26 @@ var rn = W, pt = { exports: {} };
|
|
|
1098
1098
|
})(pt);
|
|
1099
1099
|
var sn = pt.exports;
|
|
1100
1100
|
(function(t) {
|
|
1101
|
-
const e = Y, i = Gt, r = Xt, o = tn, n = rn,
|
|
1102
|
-
function
|
|
1103
|
-
return unescape(encodeURIComponent(
|
|
1101
|
+
const e = Y, i = Gt, r = Xt, o = tn, n = rn, a = $, l = L, s = sn;
|
|
1102
|
+
function u(h) {
|
|
1103
|
+
return unescape(encodeURIComponent(h)).length;
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1106
|
-
const
|
|
1107
|
-
let
|
|
1108
|
-
for (; (
|
|
1109
|
-
|
|
1110
|
-
data:
|
|
1111
|
-
index:
|
|
1105
|
+
function f(h, b, g) {
|
|
1106
|
+
const p = [];
|
|
1107
|
+
let B;
|
|
1108
|
+
for (; (B = h.exec(g)) !== null; )
|
|
1109
|
+
p.push({
|
|
1110
|
+
data: B[0],
|
|
1111
|
+
index: B.index,
|
|
1112
1112
|
mode: b,
|
|
1113
|
-
length:
|
|
1113
|
+
length: B[0].length
|
|
1114
1114
|
});
|
|
1115
|
-
return
|
|
1115
|
+
return p;
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1118
|
-
const b =
|
|
1119
|
-
let
|
|
1120
|
-
return
|
|
1117
|
+
function A(h) {
|
|
1118
|
+
const b = f(a.NUMERIC, e.NUMERIC, h), g = f(a.ALPHANUMERIC, e.ALPHANUMERIC, h);
|
|
1119
|
+
let p, B;
|
|
1120
|
+
return l.isKanjiModeEnabled() ? (p = f(a.BYTE, e.BYTE, h), B = f(a.KANJI, e.KANJI, h)) : (p = f(a.BYTE_KANJI, e.BYTE, h), B = []), b.concat(g, p, B).sort(function(P, U) {
|
|
1121
1121
|
return P.index - U.index;
|
|
1122
1122
|
}).map(function(P) {
|
|
1123
1123
|
return {
|
|
@@ -1127,116 +1127,116 @@ var sn = pt.exports;
|
|
|
1127
1127
|
};
|
|
1128
1128
|
});
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function m(h, b) {
|
|
1131
1131
|
switch (b) {
|
|
1132
1132
|
case e.NUMERIC:
|
|
1133
|
-
return i.getBitsLength(
|
|
1133
|
+
return i.getBitsLength(h);
|
|
1134
1134
|
case e.ALPHANUMERIC:
|
|
1135
|
-
return r.getBitsLength(
|
|
1135
|
+
return r.getBitsLength(h);
|
|
1136
1136
|
case e.KANJI:
|
|
1137
|
-
return n.getBitsLength(
|
|
1137
|
+
return n.getBitsLength(h);
|
|
1138
1138
|
case e.BYTE:
|
|
1139
|
-
return o.getBitsLength(
|
|
1139
|
+
return o.getBitsLength(h);
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
|
-
function d(
|
|
1143
|
-
return
|
|
1144
|
-
const
|
|
1145
|
-
return
|
|
1142
|
+
function d(h) {
|
|
1143
|
+
return h.reduce(function(b, g) {
|
|
1144
|
+
const p = b.length - 1 >= 0 ? b[b.length - 1] : null;
|
|
1145
|
+
return p && p.mode === g.mode ? (b[b.length - 1].data += g.data, b) : (b.push(g), b);
|
|
1146
1146
|
}, []);
|
|
1147
1147
|
}
|
|
1148
|
-
function v(
|
|
1148
|
+
function v(h) {
|
|
1149
1149
|
const b = [];
|
|
1150
|
-
for (let
|
|
1151
|
-
const
|
|
1152
|
-
switch (
|
|
1150
|
+
for (let g = 0; g < h.length; g++) {
|
|
1151
|
+
const p = h[g];
|
|
1152
|
+
switch (p.mode) {
|
|
1153
1153
|
case e.NUMERIC:
|
|
1154
1154
|
b.push([
|
|
1155
|
-
|
|
1156
|
-
{ data:
|
|
1157
|
-
{ data:
|
|
1155
|
+
p,
|
|
1156
|
+
{ data: p.data, mode: e.ALPHANUMERIC, length: p.length },
|
|
1157
|
+
{ data: p.data, mode: e.BYTE, length: p.length }
|
|
1158
1158
|
]);
|
|
1159
1159
|
break;
|
|
1160
1160
|
case e.ALPHANUMERIC:
|
|
1161
1161
|
b.push([
|
|
1162
|
-
|
|
1163
|
-
{ data:
|
|
1162
|
+
p,
|
|
1163
|
+
{ data: p.data, mode: e.BYTE, length: p.length }
|
|
1164
1164
|
]);
|
|
1165
1165
|
break;
|
|
1166
1166
|
case e.KANJI:
|
|
1167
1167
|
b.push([
|
|
1168
|
-
|
|
1169
|
-
{ data:
|
|
1168
|
+
p,
|
|
1169
|
+
{ data: p.data, mode: e.BYTE, length: u(p.data) }
|
|
1170
1170
|
]);
|
|
1171
1171
|
break;
|
|
1172
1172
|
case e.BYTE:
|
|
1173
1173
|
b.push([
|
|
1174
|
-
{ data:
|
|
1174
|
+
{ data: p.data, mode: e.BYTE, length: u(p.data) }
|
|
1175
1175
|
]);
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
return b;
|
|
1179
1179
|
}
|
|
1180
|
-
function C(
|
|
1181
|
-
const
|
|
1182
|
-
let
|
|
1183
|
-
for (let
|
|
1184
|
-
const P =
|
|
1180
|
+
function C(h, b) {
|
|
1181
|
+
const g = {}, p = { start: {} };
|
|
1182
|
+
let B = ["start"];
|
|
1183
|
+
for (let S = 0; S < h.length; S++) {
|
|
1184
|
+
const P = h[S], U = [];
|
|
1185
1185
|
for (let V = 0; V < P.length; V++) {
|
|
1186
|
-
const F = P[V],
|
|
1187
|
-
U.push(
|
|
1188
|
-
for (let
|
|
1189
|
-
const N =
|
|
1190
|
-
|
|
1186
|
+
const F = P[V], E = "" + S + V;
|
|
1187
|
+
U.push(E), g[E] = { node: F, lastCount: 0 }, p[E] = {};
|
|
1188
|
+
for (let y = 0; y < B.length; y++) {
|
|
1189
|
+
const N = B[y];
|
|
1190
|
+
g[N] && g[N].node.mode === F.mode ? (p[N][E] = m(g[N].lastCount + F.length, F.mode) - m(g[N].lastCount, F.mode), g[N].lastCount += F.length) : (g[N] && (g[N].lastCount = F.length), p[N][E] = m(F.length, F.mode) + 4 + e.getCharCountIndicator(F.mode, b));
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
|
|
1193
|
+
B = U;
|
|
1194
1194
|
}
|
|
1195
|
-
for (let
|
|
1196
|
-
|
|
1197
|
-
return { map:
|
|
1195
|
+
for (let S = 0; S < B.length; S++)
|
|
1196
|
+
p[B[S]].end = 0;
|
|
1197
|
+
return { map: p, table: g };
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
let
|
|
1201
|
-
const
|
|
1202
|
-
if (
|
|
1203
|
-
throw new Error('"' +
|
|
1204
|
-
Suggested mode is: ` + e.toString(
|
|
1205
|
-
switch (
|
|
1199
|
+
function M(h, b) {
|
|
1200
|
+
let g;
|
|
1201
|
+
const p = e.getBestModeForData(h);
|
|
1202
|
+
if (g = e.from(b, p), g !== e.BYTE && g.bit < p.bit)
|
|
1203
|
+
throw new Error('"' + h + '" cannot be encoded with mode ' + e.toString(g) + `.
|
|
1204
|
+
Suggested mode is: ` + e.toString(p));
|
|
1205
|
+
switch (g === e.KANJI && !l.isKanjiModeEnabled() && (g = e.BYTE), g) {
|
|
1206
1206
|
case e.NUMERIC:
|
|
1207
|
-
return new i(
|
|
1207
|
+
return new i(h);
|
|
1208
1208
|
case e.ALPHANUMERIC:
|
|
1209
|
-
return new r(
|
|
1209
|
+
return new r(h);
|
|
1210
1210
|
case e.KANJI:
|
|
1211
|
-
return new n(
|
|
1211
|
+
return new n(h);
|
|
1212
1212
|
case e.BYTE:
|
|
1213
|
-
return new o(
|
|
1213
|
+
return new o(h);
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
1216
|
t.fromArray = function(b) {
|
|
1217
|
-
return b.reduce(function(
|
|
1218
|
-
return typeof
|
|
1217
|
+
return b.reduce(function(g, p) {
|
|
1218
|
+
return typeof p == "string" ? g.push(M(p, null)) : p.data && g.push(M(p.data, p.mode)), g;
|
|
1219
1219
|
}, []);
|
|
1220
|
-
}, t.fromString = function(b,
|
|
1221
|
-
const
|
|
1220
|
+
}, t.fromString = function(b, g) {
|
|
1221
|
+
const p = A(b, l.isKanjiModeEnabled()), B = v(p), S = C(B, g), P = s.find_path(S.map, "start", "end"), U = [];
|
|
1222
1222
|
for (let V = 1; V < P.length - 1; V++)
|
|
1223
|
-
U.push(
|
|
1223
|
+
U.push(S.table[P[V]].node);
|
|
1224
1224
|
return t.fromArray(d(U));
|
|
1225
1225
|
}, t.rawSplit = function(b) {
|
|
1226
1226
|
return t.fromArray(
|
|
1227
|
-
|
|
1227
|
+
A(b, l.isKanjiModeEnabled())
|
|
1228
1228
|
);
|
|
1229
1229
|
};
|
|
1230
1230
|
})(ht);
|
|
1231
|
-
const be = L,
|
|
1231
|
+
const be = L, _e = pe, an = Vt, ln = xt, cn = st, un = at, Ie = lt, Pe = ye, dn = zt, he = dt, fn = mt, mn = Y, Ee = ht;
|
|
1232
1232
|
function gn(t, e) {
|
|
1233
1233
|
const i = t.size, r = un.getPositions(e);
|
|
1234
1234
|
for (let o = 0; o < r.length; o++) {
|
|
1235
|
-
const n = r[o][0],
|
|
1236
|
-
for (let
|
|
1237
|
-
if (!(n +
|
|
1235
|
+
const n = r[o][0], a = r[o][1];
|
|
1236
|
+
for (let l = -1; l <= 7; l++)
|
|
1237
|
+
if (!(n + l <= -1 || i <= n + l))
|
|
1238
1238
|
for (let s = -1; s <= 7; s++)
|
|
1239
|
-
|
|
1239
|
+
a + s <= -1 || i <= a + s || (l >= 0 && l <= 6 && (s === 0 || s === 6) || s >= 0 && s <= 6 && (l === 0 || l === 6) || l >= 2 && l <= 4 && s >= 2 && s <= 4 ? t.set(n + l, a + s, !0, !0) : t.set(n + l, a + s, !1, !0));
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
1242
|
function hn(t) {
|
|
@@ -1250,33 +1250,33 @@ function pn(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];
|
|
1253
|
-
for (let
|
|
1254
|
-
for (let
|
|
1255
|
-
|
|
1253
|
+
for (let a = -2; a <= 2; a++)
|
|
1254
|
+
for (let l = -2; l <= 2; l++)
|
|
1255
|
+
a === -2 || a === 2 || l === -2 || l === 2 || a === 0 && l === 0 ? t.set(o + a, n + l, !0, !0) : t.set(o + a, n + l, !1, !0);
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
1258
|
function yn(t, e) {
|
|
1259
1259
|
const i = t.size, r = he.getEncodedBits(e);
|
|
1260
|
-
let o, n,
|
|
1261
|
-
for (let
|
|
1262
|
-
o = Math.floor(
|
|
1260
|
+
let o, n, a;
|
|
1261
|
+
for (let l = 0; l < 18; l++)
|
|
1262
|
+
o = Math.floor(l / 3), n = l % 3 + i - 8 - 3, a = (r >> l & 1) === 1, t.set(o, n, a, !0), t.set(n, o, a, !0);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Ae(t, e, i) {
|
|
1265
1265
|
const r = t.size, o = fn.getEncodedBits(e, i);
|
|
1266
|
-
let n,
|
|
1266
|
+
let n, a;
|
|
1267
1267
|
for (n = 0; n < 15; n++)
|
|
1268
|
-
|
|
1268
|
+
a = (o >> n & 1) === 1, n < 6 ? t.set(n, 8, a, !0) : n < 8 ? t.set(n + 1, 8, a, !0) : t.set(r - 15 + n, 8, a, !0), n < 8 ? t.set(8, r - n - 1, a, !0) : n < 9 ? t.set(8, 15 - n - 1 + 1, a, !0) : t.set(8, 15 - n - 1, a, !0);
|
|
1269
1269
|
t.set(r - 8, 8, 1, !0);
|
|
1270
1270
|
}
|
|
1271
1271
|
function wn(t, e) {
|
|
1272
1272
|
const i = t.size;
|
|
1273
|
-
let r = -1, o = i - 1, n = 7,
|
|
1274
|
-
for (let
|
|
1275
|
-
for (
|
|
1273
|
+
let r = -1, o = i - 1, n = 7, a = 0;
|
|
1274
|
+
for (let l = i - 1; l > 0; l -= 2)
|
|
1275
|
+
for (l === 6 && l--; ; ) {
|
|
1276
1276
|
for (let s = 0; s < 2; s++)
|
|
1277
|
-
if (!t.isReserved(o,
|
|
1278
|
-
let
|
|
1279
|
-
|
|
1277
|
+
if (!t.isReserved(o, l - s)) {
|
|
1278
|
+
let u = !1;
|
|
1279
|
+
a < e.length && (u = (e[a] >>> n & 1) === 1), t.set(o, l - s, u), n--, n === -1 && (a++, n = 7);
|
|
1280
1280
|
}
|
|
1281
1281
|
if (o += r, o < 0 || i <= o) {
|
|
1282
1282
|
o -= r, r = -r;
|
|
@@ -1285,49 +1285,49 @@ function wn(t, e) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
function bn(t, e, i) {
|
|
1288
|
-
const r = new
|
|
1288
|
+
const r = new an();
|
|
1289
1289
|
i.forEach(function(s) {
|
|
1290
1290
|
r.put(s.mode.bit, 4), r.put(s.getLength(), mn.getCharCountIndicator(s.mode, t)), s.write(r);
|
|
1291
1291
|
});
|
|
1292
|
-
const o = be.getSymbolTotalCodewords(t), n = Pe.getTotalCodewordsCount(t, e),
|
|
1293
|
-
for (r.getLengthInBits() + 4 <=
|
|
1292
|
+
const o = be.getSymbolTotalCodewords(t), n = Pe.getTotalCodewordsCount(t, e), a = (o - n) * 8;
|
|
1293
|
+
for (r.getLengthInBits() + 4 <= a && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
|
|
1294
1294
|
r.putBit(0);
|
|
1295
|
-
const
|
|
1296
|
-
for (let s = 0; s <
|
|
1295
|
+
const l = (a - r.getLengthInBits()) / 8;
|
|
1296
|
+
for (let s = 0; s < l; s++)
|
|
1297
1297
|
r.put(s % 2 ? 17 : 236, 8);
|
|
1298
1298
|
return vn(r, t, e);
|
|
1299
1299
|
}
|
|
1300
1300
|
function vn(t, e, i) {
|
|
1301
|
-
const r = be.getSymbolTotalCodewords(e), o = Pe.getTotalCodewordsCount(e, i), n = r - o,
|
|
1301
|
+
const r = be.getSymbolTotalCodewords(e), o = Pe.getTotalCodewordsCount(e, i), n = r - o, a = Pe.getBlocksCount(e, i), l = r % a, s = a - l, u = Math.floor(r / a), f = Math.floor(n / a), A = f + 1, m = u - f, d = new dn(m);
|
|
1302
1302
|
let v = 0;
|
|
1303
|
-
const C = new Array(
|
|
1304
|
-
let
|
|
1303
|
+
const C = new Array(a), M = new Array(a);
|
|
1304
|
+
let h = 0;
|
|
1305
1305
|
const b = new Uint8Array(t.buffer);
|
|
1306
|
-
for (let P = 0; P <
|
|
1307
|
-
const U = P < s ?
|
|
1308
|
-
C[P] = b.slice(v, v + U),
|
|
1306
|
+
for (let P = 0; P < a; P++) {
|
|
1307
|
+
const U = P < s ? f : A;
|
|
1308
|
+
C[P] = b.slice(v, v + U), M[P] = d.encode(C[P]), v += U, h = Math.max(h, U);
|
|
1309
1309
|
}
|
|
1310
|
-
const
|
|
1311
|
-
let
|
|
1312
|
-
for (
|
|
1313
|
-
for (
|
|
1314
|
-
|
|
1315
|
-
for (
|
|
1316
|
-
for (
|
|
1317
|
-
|
|
1318
|
-
return
|
|
1310
|
+
const g = new Uint8Array(r);
|
|
1311
|
+
let p = 0, B, S;
|
|
1312
|
+
for (B = 0; B < h; B++)
|
|
1313
|
+
for (S = 0; S < a; S++)
|
|
1314
|
+
B < C[S].length && (g[p++] = C[S][B]);
|
|
1315
|
+
for (B = 0; B < m; B++)
|
|
1316
|
+
for (S = 0; S < a; S++)
|
|
1317
|
+
g[p++] = M[S][B];
|
|
1318
|
+
return g;
|
|
1319
1319
|
}
|
|
1320
1320
|
function Cn(t, e, i, r) {
|
|
1321
1321
|
let o;
|
|
1322
1322
|
if (Array.isArray(t))
|
|
1323
|
-
o =
|
|
1323
|
+
o = Ee.fromArray(t);
|
|
1324
1324
|
else if (typeof t == "string") {
|
|
1325
|
-
let
|
|
1326
|
-
if (!
|
|
1327
|
-
const
|
|
1328
|
-
|
|
1325
|
+
let u = e;
|
|
1326
|
+
if (!u) {
|
|
1327
|
+
const f = Ee.rawSplit(t);
|
|
1328
|
+
u = he.getBestVersionForData(f, i);
|
|
1329
1329
|
}
|
|
1330
|
-
o =
|
|
1330
|
+
o = Ee.fromString(t, u || 40);
|
|
1331
1331
|
} else
|
|
1332
1332
|
throw new Error("Invalid data");
|
|
1333
1333
|
const n = he.getBestVersionForData(o, i);
|
|
@@ -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
|
|
1346
|
-
return gn(s, e), hn(s), pn(s, e),
|
|
1345
|
+
const a = bn(e, i, o), l = be.getSymbolSize(e), s = new ln(l);
|
|
1346
|
+
return gn(s, e), hn(s), pn(s, e), Ae(s, i, 0), e >= 7 && yn(s, e), wn(s, a), isNaN(r) && (r = Ie.getBestMask(
|
|
1347
1347
|
s,
|
|
1348
|
-
|
|
1349
|
-
)), Ie.applyMask(r, s),
|
|
1348
|
+
Ae.bind(null, s, i)
|
|
1349
|
+
)), Ie.applyMask(r, s), Ae(s, i, r), {
|
|
1350
1350
|
modules: s,
|
|
1351
1351
|
version: e,
|
|
1352
1352
|
errorCorrectionLevel: i,
|
|
@@ -1357,8 +1357,8 @@ Minimum version required to store current data is: ` + n + `.
|
|
|
1357
1357
|
rt.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 = _e.M, o, n;
|
|
1361
|
+
return typeof i < "u" && (r = _e.from(i.errorCorrectionLevel, _e.M), o = he.from(i.version), n = Ie.from(i.maskPattern), i.toSJISFunc && be.setToSJISFunction(i.toSJISFunc)), Cn(e, o, r, n);
|
|
1362
1362
|
};
|
|
1363
1363
|
var yt = {}, Fe = {};
|
|
1364
1364
|
(function(t) {
|
|
@@ -1382,10 +1382,10 @@ var yt = {}, Fe = {};
|
|
|
1382
1382
|
}
|
|
1383
1383
|
t.getOptions = function(r) {
|
|
1384
1384
|
r || (r = {}), r.color || (r.color = {});
|
|
1385
|
-
const o = typeof r.margin > "u" || r.margin === null || r.margin < 0 ? 4 : r.margin, n = r.width && r.width >= 21 ? r.width : void 0,
|
|
1385
|
+
const o = typeof r.margin > "u" || r.margin === null || r.margin < 0 ? 4 : r.margin, n = r.width && r.width >= 21 ? r.width : void 0, a = r.scale || 4;
|
|
1386
1386
|
return {
|
|
1387
1387
|
width: n,
|
|
1388
|
-
scale: n ? 4 :
|
|
1388
|
+
scale: n ? 4 : a,
|
|
1389
1389
|
margin: o,
|
|
1390
1390
|
color: {
|
|
1391
1391
|
dark: e(r.color.dark || "#000000ff"),
|
|
@@ -1400,13 +1400,13 @@ var yt = {}, Fe = {};
|
|
|
1400
1400
|
const n = t.getScale(r, o);
|
|
1401
1401
|
return Math.floor((r + o.margin * 2) * n);
|
|
1402
1402
|
}, t.qrToImageData = function(r, o, n) {
|
|
1403
|
-
const
|
|
1404
|
-
for (let
|
|
1405
|
-
for (let d = 0; d <
|
|
1406
|
-
let v = (
|
|
1407
|
-
if (
|
|
1408
|
-
const
|
|
1409
|
-
C =
|
|
1403
|
+
const a = o.modules.size, l = o.modules.data, s = t.getScale(a, n), u = Math.floor((a + n.margin * 2) * s), f = n.margin * s, A = [n.color.light, n.color.dark];
|
|
1404
|
+
for (let m = 0; m < u; m++)
|
|
1405
|
+
for (let d = 0; d < u; d++) {
|
|
1406
|
+
let v = (m * u + d) * 4, C = n.color.light;
|
|
1407
|
+
if (m >= f && d >= f && m < u - f && d < u - f) {
|
|
1408
|
+
const M = Math.floor((m - f) / s), h = Math.floor((d - f) / s);
|
|
1409
|
+
C = A[l[M * a + h] ? 1 : 0];
|
|
1410
1410
|
}
|
|
1411
1411
|
r[v++] = C.r, r[v++] = C.g, r[v++] = C.b, r[v] = C.a;
|
|
1412
1412
|
}
|
|
@@ -1414,8 +1414,8 @@ var yt = {}, Fe = {};
|
|
|
1414
1414
|
})(Fe);
|
|
1415
1415
|
(function(t) {
|
|
1416
1416
|
const e = Fe;
|
|
1417
|
-
function i(o, n,
|
|
1418
|
-
o.clearRect(0, 0, n.width, n.height), n.style || (n.style = {}), n.height =
|
|
1417
|
+
function i(o, n, a) {
|
|
1418
|
+
o.clearRect(0, 0, n.width, n.height), n.style || (n.style = {}), n.height = a, n.width = a, n.style.height = a + "px", n.style.width = a + "px";
|
|
1419
1419
|
}
|
|
1420
1420
|
function r() {
|
|
1421
1421
|
try {
|
|
@@ -1424,59 +1424,59 @@ var yt = {}, Fe = {};
|
|
|
1424
1424
|
throw new Error("You need to specify a canvas element");
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
|
-
t.render = function(n,
|
|
1428
|
-
let s =
|
|
1429
|
-
typeof s > "u" && (!
|
|
1430
|
-
const
|
|
1431
|
-
return e.qrToImageData(
|
|
1432
|
-
}, t.renderToDataURL = function(n,
|
|
1433
|
-
let s =
|
|
1434
|
-
typeof s > "u" && (!
|
|
1435
|
-
const
|
|
1436
|
-
return
|
|
1427
|
+
t.render = function(n, a, l) {
|
|
1428
|
+
let s = l, u = a;
|
|
1429
|
+
typeof s > "u" && (!a || !a.getContext) && (s = a, a = void 0), a || (u = r()), s = e.getOptions(s);
|
|
1430
|
+
const f = e.getImageWidth(n.modules.size, s), A = u.getContext("2d"), m = A.createImageData(f, f);
|
|
1431
|
+
return e.qrToImageData(m.data, n, s), i(A, u, f), A.putImageData(m, 0, 0), u;
|
|
1432
|
+
}, t.renderToDataURL = function(n, a, l) {
|
|
1433
|
+
let s = l;
|
|
1434
|
+
typeof s > "u" && (!a || !a.getContext) && (s = a, a = void 0), s || (s = {});
|
|
1435
|
+
const u = t.render(n, a, s), f = s.type || "image/png", A = s.rendererOpts || {};
|
|
1436
|
+
return u.toDataURL(f, A.quality);
|
|
1437
1437
|
};
|
|
1438
1438
|
})(yt);
|
|
1439
1439
|
var wt = {};
|
|
1440
|
-
const
|
|
1440
|
+
const _n = Fe;
|
|
1441
1441
|
function Ge(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 Be(t, e, i) {
|
|
1446
1446
|
let r = t + e;
|
|
1447
1447
|
return typeof i < "u" && (r += " " + i), r;
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1450
|
-
let r = "", o = 0, n = !1,
|
|
1451
|
-
for (let
|
|
1452
|
-
const s = Math.floor(
|
|
1453
|
-
!s && !n && (n = !0), t[
|
|
1449
|
+
function En(t, e, i) {
|
|
1450
|
+
let r = "", o = 0, n = !1, a = 0;
|
|
1451
|
+
for (let l = 0; l < t.length; l++) {
|
|
1452
|
+
const s = Math.floor(l % e), u = Math.floor(l / e);
|
|
1453
|
+
!s && !n && (n = !0), t[l] ? (a++, l > 0 && s > 0 && t[l - 1] || (r += n ? Be("M", s + i, 0.5 + u + i) : Be("m", o, 0), o = 0, n = !1), s + 1 < e && t[l + 1] || (r += Be("h", a), a = 0)) : o++;
|
|
1454
1454
|
}
|
|
1455
1455
|
return r;
|
|
1456
1456
|
}
|
|
1457
1457
|
wt.render = function(e, i, r) {
|
|
1458
|
-
const o =
|
|
1458
|
+
const o = _n.getOptions(i), n = e.modules.size, a = e.modules.data, l = n + o.margin * 2, s = o.color.light.a ? "<path " + Ge(o.color.light, "fill") + ' d="M0 0h' + l + "v" + l + 'H0z"/>' : "", u = "<path " + Ge(o.color.dark, "stroke") + ' d="' + En(a, n, o.margin) + '"/>', f = 'viewBox="0 0 ' + l + " " + l + '"', m = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + f + ' shape-rendering="crispEdges">' + s + u + `</svg>
|
|
1459
1459
|
`;
|
|
1460
|
-
return typeof r == "function" && r(null,
|
|
1460
|
+
return typeof r == "function" && r(null, m), m;
|
|
1461
1461
|
};
|
|
1462
|
-
const
|
|
1462
|
+
const An = kt, Te = rt, bt = yt, Bn = wt;
|
|
1463
1463
|
function Re(t, e, i, r, o) {
|
|
1464
|
-
const n = [].slice.call(arguments, 1),
|
|
1465
|
-
if (!
|
|
1464
|
+
const n = [].slice.call(arguments, 1), a = n.length, l = typeof n[a - 1] == "function";
|
|
1465
|
+
if (!l && !An())
|
|
1466
1466
|
throw new Error("Callback required as last argument");
|
|
1467
|
-
if (
|
|
1468
|
-
if (
|
|
1467
|
+
if (l) {
|
|
1468
|
+
if (a < 2)
|
|
1469
1469
|
throw new Error("Too few arguments provided");
|
|
1470
|
-
|
|
1470
|
+
a === 2 ? (o = i, i = e, e = r = void 0) : a === 3 && (e.getContext && typeof o > "u" ? (o = r, r = void 0) : (o = r, r = i, i = e, e = void 0));
|
|
1471
1471
|
} else {
|
|
1472
|
-
if (
|
|
1472
|
+
if (a < 1)
|
|
1473
1473
|
throw new Error("Too few arguments provided");
|
|
1474
|
-
return
|
|
1474
|
+
return a === 1 ? (i = e, e = r = void 0) : a === 2 && !e.getContext && (r = i, i = e, e = void 0), new Promise(function(s, u) {
|
|
1475
1475
|
try {
|
|
1476
|
-
const
|
|
1477
|
-
s(t(
|
|
1478
|
-
} catch (
|
|
1479
|
-
f
|
|
1476
|
+
const f = Te.create(i, r);
|
|
1477
|
+
s(t(f, e, r));
|
|
1478
|
+
} catch (f) {
|
|
1479
|
+
u(f);
|
|
1480
1480
|
}
|
|
1481
1481
|
});
|
|
1482
1482
|
}
|
|
@@ -1491,9 +1491,9 @@ ie.create = Te.create;
|
|
|
1491
1491
|
ie.toCanvas = Re.bind(null, bt.render);
|
|
1492
1492
|
ie.toDataURL = Re.bind(null, bt.renderToDataURL);
|
|
1493
1493
|
ie.toString = Re.bind(null, function(t, e, i) {
|
|
1494
|
-
return
|
|
1494
|
+
return Bn.render(t, i);
|
|
1495
1495
|
});
|
|
1496
|
-
async function
|
|
1496
|
+
async function Mn(t, e = 350) {
|
|
1497
1497
|
try {
|
|
1498
1498
|
return await ie.toDataURL(t, {
|
|
1499
1499
|
width: e,
|
|
@@ -1503,50 +1503,50 @@ async function Sn(t, e = 350) {
|
|
|
1503
1503
|
console.error(i);
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
var
|
|
1507
|
-
const In = { class: "flex items-start" }, Pn =
|
|
1506
|
+
var Sn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
1507
|
+
const In = { class: "flex items-start" }, Pn = /* @__PURE__ */ w("div", null, [
|
|
1508
|
+
/* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
|
|
1509
|
+
/* @__PURE__ */ w("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
|
|
1510
|
+
], -1), Tn = { class: "flex flex-col gap-16 mt-16" }, Nn = ["src"], Un = /* @__PURE__ */ Xe({
|
|
1508
1511
|
__name: "LinkDeviceDialog",
|
|
1509
1512
|
setup(t) {
|
|
1510
|
-
const e =
|
|
1511
|
-
var
|
|
1512
|
-
return `https://${(
|
|
1513
|
+
const e = Me(), i = nt(), r = et(), o = H(), n = H(), a = Sn.crmUrl, l = H(), s = me(() => i.membership), u = me(() => {
|
|
1514
|
+
var m, d;
|
|
1515
|
+
return `https://${(m = s.value) != null && m.url ? s.value.url : (d = s.value) == null ? void 0 : d.business}.${a}`;
|
|
1513
1516
|
});
|
|
1514
|
-
async function m
|
|
1515
|
-
const d = await tt.getOtp(
|
|
1516
|
-
return `${
|
|
1517
|
+
async function f(m) {
|
|
1518
|
+
const d = await tt.getOtp(m);
|
|
1519
|
+
return `${u.value}?link-device=${d.otp}`;
|
|
1517
1520
|
}
|
|
1518
|
-
async function
|
|
1519
|
-
const d = await m
|
|
1520
|
-
|
|
1521
|
+
async function A(m) {
|
|
1522
|
+
const d = await f(m);
|
|
1523
|
+
l.value = d, o.value = await Mn(d);
|
|
1521
1524
|
}
|
|
1522
1525
|
return Ze(async () => {
|
|
1523
1526
|
if (await e.readLocations(), !e.locations.length) {
|
|
1524
1527
|
r.close();
|
|
1525
1528
|
return;
|
|
1526
1529
|
}
|
|
1527
|
-
const
|
|
1528
|
-
n.value =
|
|
1529
|
-
}), (
|
|
1530
|
-
const v = R("FmIcon"), C = R("FmSelect"),
|
|
1531
|
-
return x(), fe(
|
|
1532
|
-
default:
|
|
1530
|
+
const m = e.locations[0]._id;
|
|
1531
|
+
n.value = m, await A(m);
|
|
1532
|
+
}), (m, d) => {
|
|
1533
|
+
const v = R("FmIcon"), C = R("FmSelect"), M = R("FmButton"), h = R("FmCard");
|
|
1534
|
+
return x(), fe(h, { class: "p-24 max-w-[350px]" }, {
|
|
1535
|
+
default: te(() => [
|
|
1533
1536
|
w("div", In, [
|
|
1534
|
-
|
|
1535
|
-
w("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
|
|
1536
|
-
w("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
|
|
1537
|
-
], -1)),
|
|
1537
|
+
Pn,
|
|
1538
1538
|
I(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
|
-
w("div",
|
|
1544
|
+
w("div", Tn, [
|
|
1545
1545
|
I(C, {
|
|
1546
1546
|
modelValue: c(n),
|
|
1547
1547
|
"onUpdate:modelValue": [
|
|
1548
1548
|
d[1] || (d[1] = (b) => We(n) ? n.value = b : null),
|
|
1549
|
-
|
|
1549
|
+
A
|
|
1550
1550
|
],
|
|
1551
1551
|
label: "Select Location",
|
|
1552
1552
|
items: c(e).locationItems.filter((b) => !!b.value)
|
|
@@ -1554,12 +1554,12 @@ const In = { class: "flex items-start" }, Pn = { class: "flex flex-col gap-16 mt
|
|
|
1554
1554
|
w("img", {
|
|
1555
1555
|
src: c(o),
|
|
1556
1556
|
class: "aspect-square w-full"
|
|
1557
|
-
}, null, 8,
|
|
1558
|
-
I(
|
|
1557
|
+
}, null, 8, Nn),
|
|
1558
|
+
I(M, {
|
|
1559
1559
|
class: "mx-auto",
|
|
1560
1560
|
variant: "plain",
|
|
1561
1561
|
icon: "content_copy",
|
|
1562
|
-
onClick: d[2] || (d[2] = (b) => c(ot)(c(
|
|
1562
|
+
onClick: d[2] || (d[2] = (b) => c(ot)(c(l)))
|
|
1563
1563
|
})
|
|
1564
1564
|
])
|
|
1565
1565
|
]),
|
|
@@ -1568,49 +1568,52 @@ const In = { class: "flex items-start" }, Pn = { class: "flex flex-col gap-16 mt
|
|
|
1568
1568
|
};
|
|
1569
1569
|
}
|
|
1570
1570
|
});
|
|
1571
|
-
var Qe = { authUrl: "https://portal-v2
|
|
1572
|
-
const
|
|
1571
|
+
var Qe = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.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" }, 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 = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1), qn = { class: "space-y-8" }, Gn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1), Qn = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1), Xn = { class: "space-y-8" }, Zn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, [
|
|
1576
|
+
/* @__PURE__ */ ne(" Free Credit as Discount "),
|
|
1577
|
+
/* @__PURE__ */ w("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
|
|
1578
|
+
], -1), Wn = { class: "space-y-8" }, eo = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, to = { class: "space-y-8" }, no = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), oo = { class: "flex justify-end pb-24" }, ro = { class: "col-span-1 space-y-8 xs:hidden" }, io = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), so = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), ao = { class: "fm-typo-en-body-lg-600" }, lo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), co = { class: "fm-typo-en-body-lg-600" }, uo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), fo = { class: "fm-typo-en-body-lg-600" }, mo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), go = { class: "fm-typo-en-body-lg-600" }, Ro = /* @__PURE__ */ Xe({
|
|
1576
1579
|
__name: "Setting",
|
|
1577
1580
|
setup(t) {
|
|
1578
|
-
const e =
|
|
1579
|
-
(
|
|
1580
|
-
(
|
|
1581
|
+
const e = At(), i = Ut(), r = Me(), o = nt(), { global: n, minor: a } = Et, l = et(), s = H(), u = H(!1), f = H([]), A = H(null), m = Bt, d = [
|
|
1582
|
+
(E) => !E || E.length >= 6 || "Invalid URL format, please enter at least 6 characters",
|
|
1583
|
+
(E) => !E || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(E) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
|
|
1581
1584
|
], v = Qe.appUrl, C = me(() => {
|
|
1582
|
-
var
|
|
1583
|
-
return `https://${(
|
|
1584
|
-
}),
|
|
1585
|
-
var
|
|
1586
|
-
return Math.min((((
|
|
1587
|
-
}), { t:
|
|
1585
|
+
var E;
|
|
1586
|
+
return `https://${(E = s.value) == null ? void 0 : E.business}.${v}`;
|
|
1587
|
+
}), M = H(), h = H([]), b = me(() => {
|
|
1588
|
+
var E, y;
|
|
1589
|
+
return Math.min((((y = (E = s.value) == null ? void 0 : E.advertisements) == null ? void 0 : y.length) ?? 0) + 1, 5);
|
|
1590
|
+
}), { t: g } = Nt(), p = i.currentCountry.value || "MY", B = [
|
|
1588
1591
|
"user.name",
|
|
1589
1592
|
"user.gender",
|
|
1590
1593
|
"user.birthday",
|
|
1591
1594
|
"user.phoneNumber",
|
|
1592
1595
|
"membership.url"
|
|
1593
1596
|
].filter(
|
|
1594
|
-
(
|
|
1595
|
-
var
|
|
1596
|
-
return !((
|
|
1597
|
+
(E) => {
|
|
1598
|
+
var y;
|
|
1599
|
+
return !((y = Pt[p]) != null && y.includes(E));
|
|
1597
1600
|
}
|
|
1598
1601
|
);
|
|
1599
|
-
async function
|
|
1600
|
-
|
|
1602
|
+
async function S() {
|
|
1603
|
+
l.open({
|
|
1601
1604
|
title: "",
|
|
1602
|
-
dialogComponent:
|
|
1605
|
+
dialogComponent: Un,
|
|
1603
1606
|
closeButton: !1
|
|
1604
1607
|
});
|
|
1605
1608
|
}
|
|
1606
|
-
async function P(
|
|
1607
|
-
await
|
|
1609
|
+
async function P(E) {
|
|
1610
|
+
await St.remove(
|
|
1608
1611
|
"Are you sure you want to unlink this device?",
|
|
1609
1612
|
"Unlink device",
|
|
1610
1613
|
"Unlink"
|
|
1611
|
-
) && await
|
|
1614
|
+
) && await a(
|
|
1612
1615
|
async () => {
|
|
1613
|
-
await tt.unregisterDevice(
|
|
1616
|
+
await tt.unregisterDevice(E), await r.readLocationDevices();
|
|
1614
1617
|
},
|
|
1615
1618
|
{
|
|
1616
1619
|
message: "Unlinking device",
|
|
@@ -1619,25 +1622,25 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1619
1622
|
);
|
|
1620
1623
|
}
|
|
1621
1624
|
async function U() {
|
|
1622
|
-
await
|
|
1625
|
+
await a(
|
|
1623
1626
|
async () => {
|
|
1624
1627
|
var N;
|
|
1625
|
-
const
|
|
1626
|
-
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1628
|
+
const E = Rt(s.value);
|
|
1629
|
+
E.welcomeMessage && !((N = E.welcomeMessage) != null && N.content) && (E.welcomeMessage.content = "Hi there, you have been invited to join our membership");
|
|
1630
|
+
const y = Mt.parse(E);
|
|
1631
|
+
M.value === null && y.image ? await G.delete(G.coverImagePath()) : M.value && (y.image = await G.update(
|
|
1629
1632
|
G.coverImagePath(),
|
|
1630
|
-
|
|
1631
|
-
)),
|
|
1633
|
+
M.value
|
|
1634
|
+
)), u.value ? y.advertisements = (await Promise.all(
|
|
1632
1635
|
new Array(b.value - 1).fill(null).map(async (z, K) => {
|
|
1633
1636
|
var ee;
|
|
1634
|
-
const j =
|
|
1637
|
+
const j = h.value[K];
|
|
1635
1638
|
return j ? await G.update(
|
|
1636
1639
|
G.advertisementPath(K, j),
|
|
1637
1640
|
j
|
|
1638
|
-
) : (ee =
|
|
1641
|
+
) : (ee = y.advertisements) == null ? void 0 : ee[K];
|
|
1639
1642
|
})
|
|
1640
|
-
)).filter((z) => z) :
|
|
1643
|
+
)).filter((z) => z) : y.advertisements = [], await je.update(y), await o.readMembership(), s.value = o.membership;
|
|
1641
1644
|
},
|
|
1642
1645
|
{
|
|
1643
1646
|
message: "Updating membership",
|
|
@@ -1646,8 +1649,8 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1646
1649
|
);
|
|
1647
1650
|
}
|
|
1648
1651
|
async function V() {
|
|
1649
|
-
const
|
|
1650
|
-
console.log(
|
|
1652
|
+
const E = await je.getEmailAddresses();
|
|
1653
|
+
console.log(E), f.value = E, A.value = E.find((y) => y.default.includes("Marketing"));
|
|
1651
1654
|
}
|
|
1652
1655
|
async function F() {
|
|
1653
1656
|
window.open(
|
|
@@ -1657,52 +1660,52 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1657
1660
|
}
|
|
1658
1661
|
return Ze(async () => {
|
|
1659
1662
|
await n(async () => {
|
|
1660
|
-
var
|
|
1661
|
-
await r.readPremium(), await r.readLocations(), await r.readLocationDevices(), await o.readMembership(), await V(), s.value = o.membership,
|
|
1663
|
+
var E, y;
|
|
1664
|
+
await r.readPremium(), await r.readLocations(), await r.readLocationDevices(), await o.readMembership(), await V(), s.value = o.membership, u.value = (((E = s.value.advertisements) == null ? void 0 : E.length) ?? 0) > 0, h.value = ((y = s.value.advertisements) == null ? void 0 : y.map(() => null)) ?? [];
|
|
1662
1665
|
});
|
|
1663
|
-
}), (
|
|
1666
|
+
}), (E, y) => {
|
|
1664
1667
|
var ke, De, Ve, xe, $e, ze, He;
|
|
1665
1668
|
const N = R("FmPageHead"), z = R("FmButton"), K = R("FmTextField"), j = R("FmCard"), ee = R("FmPill"), ve = R("FmSwitch"), vt = R("FmSelect"), Ct = R("FmMenuDivider");
|
|
1666
|
-
return x(), q(
|
|
1669
|
+
return x(), q(le, null, [
|
|
1667
1670
|
I(N, {
|
|
1668
|
-
title: c(
|
|
1671
|
+
title: c(g)("connect.setting.title"),
|
|
1669
1672
|
class: "xs:hidden"
|
|
1670
1673
|
}, null, 8, ["title"]),
|
|
1671
|
-
w("div",
|
|
1672
|
-
w("div",
|
|
1674
|
+
w("div", Ln, [
|
|
1675
|
+
w("div", Fn, D(c(g)("connect.setting.basicInfo.title")), 1),
|
|
1673
1676
|
I(z, {
|
|
1674
1677
|
icon: "info",
|
|
1675
1678
|
variant: "tertiary"
|
|
1676
1679
|
})
|
|
1677
1680
|
]),
|
|
1678
|
-
c(s) ? (x(), q("div",
|
|
1679
|
-
w("div",
|
|
1680
|
-
w("div",
|
|
1681
|
-
w("div",
|
|
1681
|
+
c(s) ? (x(), q("div", Rn, [
|
|
1682
|
+
w("div", kn, [
|
|
1683
|
+
w("div", Dn, D(c(g)("connect.setting.basicInfo.title")), 1),
|
|
1684
|
+
w("div", Vn, [
|
|
1682
1685
|
I(K, {
|
|
1683
|
-
label: c(
|
|
1686
|
+
label: c(g)("connect.setting.basicInfo.membershipTitle"),
|
|
1684
1687
|
modelValue: c(s).name,
|
|
1685
|
-
"onUpdate:modelValue":
|
|
1688
|
+
"onUpdate:modelValue": y[0] || (y[0] = (_) => c(s).name = _)
|
|
1686
1689
|
}, null, 8, ["label", "modelValue"]),
|
|
1687
1690
|
I(K, {
|
|
1688
1691
|
disabled: !0,
|
|
1689
1692
|
"model-value": c(s).business,
|
|
1690
1693
|
rules: d,
|
|
1691
1694
|
required: !0,
|
|
1692
|
-
label: c(
|
|
1695
|
+
label: c(g)("connect.setting.basicInfo.memberAppUrl"),
|
|
1693
1696
|
"helper-text": c(C),
|
|
1694
1697
|
placeholder: c(s).business.toString(),
|
|
1695
|
-
"onUpdate:modelValue":
|
|
1698
|
+
"onUpdate:modelValue": y[2] || (y[2] = (_) => c(s).url = _)
|
|
1696
1699
|
}, {
|
|
1697
|
-
prepend:
|
|
1698
|
-
|
|
1699
|
-
])
|
|
1700
|
-
append:
|
|
1701
|
-
|
|
1700
|
+
prepend: te(() => [
|
|
1701
|
+
ne(" https:// ")
|
|
1702
|
+
]),
|
|
1703
|
+
append: te(() => [
|
|
1704
|
+
ne(" ." + D(c(v)) + " ", 1),
|
|
1702
1705
|
I(z, {
|
|
1703
1706
|
icon: "content_copy",
|
|
1704
1707
|
variant: "tertiary",
|
|
1705
|
-
onClick:
|
|
1708
|
+
onClick: y[1] || (y[1] = (_) => c(ot)(c(C)))
|
|
1706
1709
|
})
|
|
1707
1710
|
]),
|
|
1708
1711
|
_: 1
|
|
@@ -1713,59 +1716,59 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1713
1716
|
"image-fit": "cover",
|
|
1714
1717
|
"aspect-ratio": "3/1",
|
|
1715
1718
|
thumbnail: c(s).image || void 0,
|
|
1716
|
-
"onUpdate:file":
|
|
1717
|
-
|
|
1719
|
+
"onUpdate:file": y[3] || (y[3] = async (_) => {
|
|
1720
|
+
M.value = _, _ || (c(s).image = null);
|
|
1718
1721
|
})
|
|
1719
1722
|
}, null, 8, ["thumbnail"]),
|
|
1720
|
-
w("div",
|
|
1721
|
-
w("div",
|
|
1723
|
+
w("div", xn, [
|
|
1724
|
+
w("div", $n, D(c(g)("connect.setting.counterApp.title")), 1),
|
|
1722
1725
|
I(z, {
|
|
1723
1726
|
variant: "plain",
|
|
1724
1727
|
icon: "link",
|
|
1725
|
-
label: c(
|
|
1726
|
-
onClick:
|
|
1728
|
+
label: c(g)("connect.setting.counterApp.linkDevice"),
|
|
1729
|
+
onClick: S
|
|
1727
1730
|
}, null, 8, ["label"]),
|
|
1728
|
-
(x(!0), q(
|
|
1731
|
+
(x(!0), q(le, null, Ke(c(r).locationDevices, (_, T) => (x(), fe(j, {
|
|
1729
1732
|
key: T,
|
|
1730
1733
|
variant: "outlined",
|
|
1731
1734
|
class: "flex items-center justify-between px-16 py-12"
|
|
1732
1735
|
}, {
|
|
1733
|
-
default:
|
|
1736
|
+
default: te(() => [
|
|
1734
1737
|
w("div", null, [
|
|
1735
|
-
w("p",
|
|
1736
|
-
w("p",
|
|
1738
|
+
w("p", zn, D(_.name || `Device ${_._id}`), 1),
|
|
1739
|
+
w("p", Hn, " Activation date: " + D(c(_t)(c(Ft)(_._id.toString())).format(
|
|
1737
1740
|
"D MMM YYYY"
|
|
1738
1741
|
)), 1),
|
|
1739
|
-
w("p",
|
|
1742
|
+
w("p", Kn, " Linked location: " + D(c(r).locations.find((k) => k._id == _.location).name), 1)
|
|
1740
1743
|
]),
|
|
1741
1744
|
I(z, {
|
|
1742
1745
|
icon: "link_off",
|
|
1743
1746
|
variant: "tertiary",
|
|
1744
|
-
onClick: (k) => P(
|
|
1747
|
+
onClick: (k) => P(_._id)
|
|
1745
1748
|
}, null, 8, ["onClick"])
|
|
1746
1749
|
]),
|
|
1747
1750
|
_: 2
|
|
1748
1751
|
}, 1024))), 128))
|
|
1749
1752
|
]),
|
|
1750
|
-
w("div",
|
|
1751
|
-
w("div",
|
|
1752
|
-
|
|
1753
|
+
w("div", On, [
|
|
1754
|
+
w("div", Yn, [
|
|
1755
|
+
ne(" Advertisement "),
|
|
1753
1756
|
I(ee, { variant: "premium" })
|
|
1754
1757
|
]),
|
|
1755
1758
|
I(ve, {
|
|
1756
|
-
modelValue: c(
|
|
1757
|
-
"onUpdate:modelValue":
|
|
1759
|
+
modelValue: c(u),
|
|
1760
|
+
"onUpdate:modelValue": y[4] || (y[4] = (_) => We(u) ? u.value = _ : null),
|
|
1758
1761
|
label: "Advertisement",
|
|
1759
1762
|
sublabel: "This will be show on FeedMe ordering app",
|
|
1760
1763
|
"label-placement": "right",
|
|
1761
1764
|
disabled: !c(r).isPremium,
|
|
1762
1765
|
value: ""
|
|
1763
1766
|
}, null, 8, ["modelValue", "disabled"]),
|
|
1764
|
-
c(
|
|
1767
|
+
c(u) ? (x(), q("div", {
|
|
1765
1768
|
class: "flex items-center gap-8 flex-wrap xs:grid xs:grid-cols-2 xs:overflow-x-scroll xs:w-full",
|
|
1766
1769
|
key: c(b)
|
|
1767
1770
|
}, [
|
|
1768
|
-
(x(!0), q(
|
|
1771
|
+
(x(!0), q(le, null, Ke(c(b), (_, T) => {
|
|
1769
1772
|
var k, J;
|
|
1770
1773
|
return x(), fe(Ye, {
|
|
1771
1774
|
class: "w-[200px]",
|
|
@@ -1775,94 +1778,91 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1775
1778
|
thumbnail: (J = (k = c(s)) == null ? void 0 : k.advertisements) == null ? void 0 : J[T],
|
|
1776
1779
|
accept: ".png, .jpg, .jpeg, .mp4, .gif",
|
|
1777
1780
|
"recommended-size": "Recommended 4:5 ratio / 1080px x 1350px",
|
|
1778
|
-
file: c(
|
|
1779
|
-
"onUpdate:file": (
|
|
1780
|
-
c(s).advertisements || (c(s).advertisements = []),
|
|
1781
|
+
file: c(h)[T] ?? void 0,
|
|
1782
|
+
"onUpdate:file": (ae) => {
|
|
1783
|
+
c(s).advertisements || (c(s).advertisements = []), ae ? (c(s).advertisements[T] = "", c(h)[T] = ae) : (c(s).advertisements.splice(T, 1), c(h).splice(T, 1));
|
|
1781
1784
|
}
|
|
1782
1785
|
}, null, 8, ["thumbnail", "file", "onUpdate:file"]);
|
|
1783
1786
|
}), 256))
|
|
1784
1787
|
])) : ce("", !0)
|
|
1785
1788
|
]),
|
|
1786
|
-
w("div",
|
|
1787
|
-
|
|
1789
|
+
w("div", jn, [
|
|
1790
|
+
Jn,
|
|
1788
1791
|
I(K, {
|
|
1789
1792
|
"model-value": ((ke = c(s)) == null ? void 0 : ke.brand) || "",
|
|
1790
1793
|
"max-length": 15,
|
|
1791
1794
|
label: "Brand Name",
|
|
1792
1795
|
"show-word-count": "",
|
|
1793
1796
|
"helper-text": `RM 0 ${((De = c(s)) == null ? void 0 : De.brand) || ""}: YOUR CUSTOMER MESSAGE`,
|
|
1794
|
-
"onUpdate:modelValue":
|
|
1797
|
+
"onUpdate:modelValue": y[5] || (y[5] = (_) => c(s).brand = _)
|
|
1795
1798
|
}, null, 8, ["model-value", "helper-text"]),
|
|
1796
1799
|
I(Tt, {
|
|
1797
1800
|
modelValue: c(s).welcomeMessage,
|
|
1798
|
-
"onUpdate:modelValue":
|
|
1799
|
-
variables: c(
|
|
1801
|
+
"onUpdate:modelValue": y[6] || (y[6] = (_) => c(s).welcomeMessage = _),
|
|
1802
|
+
variables: c(B),
|
|
1800
1803
|
placeholder: "Hi there, you have been invited to join membership"
|
|
1801
1804
|
}, null, 8, ["modelValue", "variables"])
|
|
1802
1805
|
]),
|
|
1803
|
-
w("div",
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
c(
|
|
1806
|
+
w("div", qn, [
|
|
1807
|
+
Gn,
|
|
1808
|
+
Qn,
|
|
1809
|
+
c(f).length ? ce("", !0) : (x(), fe(z, {
|
|
1807
1810
|
key: 0,
|
|
1808
1811
|
onClick: F,
|
|
1809
1812
|
label: "Add new email address"
|
|
1810
1813
|
})),
|
|
1811
|
-
c(
|
|
1814
|
+
c(f).length ? (x(), q(le, { key: 1 }, [
|
|
1812
1815
|
I(vt, {
|
|
1813
1816
|
"model-value": ((xe = (Ve = c(s)) == null ? void 0 : Ve.email) == null ? void 0 : xe.from) || null,
|
|
1814
1817
|
label: "From Address",
|
|
1815
|
-
items: c(
|
|
1816
|
-
label:
|
|
1817
|
-
value:
|
|
1818
|
+
items: c(f).map((_) => ({
|
|
1819
|
+
label: _.emailAddress,
|
|
1820
|
+
value: _.emailAddress
|
|
1818
1821
|
})),
|
|
1819
|
-
placeholder: c(
|
|
1820
|
-
"onUpdate:modelValue":
|
|
1822
|
+
placeholder: c(A) ? c(A).emailAddress : "No email address available",
|
|
1823
|
+
"onUpdate:modelValue": y[7] || (y[7] = (_) => {
|
|
1821
1824
|
var T, k;
|
|
1822
1825
|
(T = c(s)) != null && T.email || (c(s).email = {
|
|
1823
|
-
from:
|
|
1824
|
-
name: (k = c(
|
|
1825
|
-
}), c(s).email.from =
|
|
1826
|
+
from: _,
|
|
1827
|
+
name: (k = c(f).find((J) => J.emailAddress == _)) == null ? void 0 : k.name
|
|
1828
|
+
}), c(s).email.from = _ || null;
|
|
1826
1829
|
}),
|
|
1827
|
-
rules: [c(Oe).ruleAtPath(c(
|
|
1830
|
+
rules: [c(Oe).ruleAtPath(c(m), "email.from")]
|
|
1828
1831
|
}, null, 8, ["model-value", "items", "placeholder", "rules"]),
|
|
1829
1832
|
I(K, {
|
|
1830
1833
|
"model-value": ((ze = ($e = c(s)) == null ? void 0 : $e.email) == null ? void 0 : ze.name) || null,
|
|
1831
1834
|
label: "Sender name",
|
|
1832
1835
|
disabled: "",
|
|
1833
|
-
placeholder: ((He = c(
|
|
1834
|
-
"onUpdate:modelValue":
|
|
1836
|
+
placeholder: ((He = c(A)) == null ? void 0 : He.name) || null,
|
|
1837
|
+
"onUpdate:modelValue": y[8] || (y[8] = (_) => {
|
|
1835
1838
|
var T;
|
|
1836
1839
|
(T = c(s)) != null && T.email || (c(s).email = {
|
|
1837
|
-
name:
|
|
1838
|
-
}), c(s).email.name =
|
|
1840
|
+
name: _
|
|
1841
|
+
}), c(s).email.name = _ || null;
|
|
1839
1842
|
}),
|
|
1840
|
-
rules: [c(Oe).ruleAtPath(c(
|
|
1843
|
+
rules: [c(Oe).ruleAtPath(c(m), "email.name")]
|
|
1841
1844
|
}, null, 8, ["model-value", "placeholder", "rules"])
|
|
1842
1845
|
], 64)) : ce("", !0)
|
|
1843
1846
|
]),
|
|
1844
|
-
w("div",
|
|
1845
|
-
|
|
1846
|
-
te(" Free Credit as Discount "),
|
|
1847
|
-
w("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
|
|
1848
|
-
], -1)),
|
|
1847
|
+
w("div", Xn, [
|
|
1848
|
+
Zn,
|
|
1849
1849
|
I(ve, {
|
|
1850
1850
|
"model-value": c(s).freeCreditAsDiscount ?? !1,
|
|
1851
|
-
"onUpdate:modelValue":
|
|
1851
|
+
"onUpdate:modelValue": y[9] || (y[9] = (_) => c(s).freeCreditAsDiscount = _),
|
|
1852
1852
|
label: "Free Credit as Discount",
|
|
1853
1853
|
sublabel: "When enabled, this will allow free credit to be used as discount in the bill (POS >=v6.56)",
|
|
1854
1854
|
"label-placement": "right",
|
|
1855
1855
|
value: ""
|
|
1856
1856
|
}, null, 8, ["model-value"])
|
|
1857
1857
|
]),
|
|
1858
|
-
w("div",
|
|
1859
|
-
w("div",
|
|
1860
|
-
|
|
1858
|
+
w("div", Wn, [
|
|
1859
|
+
w("div", eo, [
|
|
1860
|
+
ne(" Member Card "),
|
|
1861
1861
|
I(ee, { variant: "premium" })
|
|
1862
1862
|
]),
|
|
1863
1863
|
I(ve, {
|
|
1864
1864
|
"model-value": c(s).cardEnable ?? !1,
|
|
1865
|
-
"onUpdate:modelValue":
|
|
1865
|
+
"onUpdate:modelValue": y[10] || (y[10] = (_) => c(s).cardEnable = _),
|
|
1866
1866
|
label: "",
|
|
1867
1867
|
sublabel: "Allow member to bind card via member app",
|
|
1868
1868
|
"label-placement": "right",
|
|
@@ -1870,15 +1870,15 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1870
1870
|
disabled: !c(r).isPremium
|
|
1871
1871
|
}, null, 8, ["model-value", "disabled"])
|
|
1872
1872
|
]),
|
|
1873
|
-
w("div",
|
|
1874
|
-
|
|
1873
|
+
w("div", to, [
|
|
1874
|
+
no,
|
|
1875
1875
|
I(It, {
|
|
1876
1876
|
label: "Select restaurant",
|
|
1877
1877
|
"model-value": c(s).targetLocation ?? null,
|
|
1878
|
-
"onUpdate:modelValue":
|
|
1878
|
+
"onUpdate:modelValue": y[11] || (y[11] = (_) => c(s).targetLocation = _)
|
|
1879
1879
|
}, null, 8, ["model-value"])
|
|
1880
1880
|
]),
|
|
1881
|
-
w("div",
|
|
1881
|
+
w("div", oo, [
|
|
1882
1882
|
I(z, {
|
|
1883
1883
|
label: "Update",
|
|
1884
1884
|
type: "button",
|
|
@@ -1889,32 +1889,32 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1889
1889
|
])
|
|
1890
1890
|
])
|
|
1891
1891
|
]),
|
|
1892
|
-
w("div",
|
|
1892
|
+
w("div", ro, [
|
|
1893
1893
|
I(j, {
|
|
1894
1894
|
variant: "outlined",
|
|
1895
1895
|
class: "flex flex-col p-24 gap-8"
|
|
1896
1896
|
}, {
|
|
1897
|
-
default:
|
|
1898
|
-
var
|
|
1897
|
+
default: te(() => {
|
|
1898
|
+
var _, T, k;
|
|
1899
1899
|
return [
|
|
1900
|
-
|
|
1900
|
+
io,
|
|
1901
1901
|
I(Ct, { class: "my-4" }),
|
|
1902
1902
|
w("div", null, [
|
|
1903
|
-
|
|
1904
|
-
w("div",
|
|
1903
|
+
so,
|
|
1904
|
+
w("div", ao, D(c(s).name), 1)
|
|
1905
1905
|
]),
|
|
1906
1906
|
w("div", null, [
|
|
1907
|
-
|
|
1908
|
-
w("div",
|
|
1907
|
+
lo,
|
|
1908
|
+
w("div", co, D((((_ = c(s).advertisements) == null ? void 0 : _.length) ?? 0) || "No advertisments"), 1)
|
|
1909
1909
|
]),
|
|
1910
1910
|
w("div", null, [
|
|
1911
|
-
|
|
1912
|
-
w("div",
|
|
1911
|
+
uo,
|
|
1912
|
+
w("div", fo, D(c(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
|
|
1913
1913
|
]),
|
|
1914
1914
|
w("div", null, [
|
|
1915
|
-
|
|
1916
|
-
w("div",
|
|
1917
|
-
(J) => c(r).locations.find((
|
|
1915
|
+
mo,
|
|
1916
|
+
w("div", go, D(!c(s).targetLocation || c(s).targetLocation.length == c(Me)().locations.length ? "All locations" : (k = (T = c(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : k.map(
|
|
1917
|
+
(J) => c(r).locations.find((ae) => ae._id == J).name
|
|
1918
1918
|
).join(", ")), 1)
|
|
1919
1919
|
])
|
|
1920
1920
|
];
|
|
@@ -1928,5 +1928,5 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1928
1928
|
}
|
|
1929
1929
|
});
|
|
1930
1930
|
export {
|
|
1931
|
-
|
|
1931
|
+
Ro as default
|
|
1932
1932
|
};
|