@feedmepos/mf-connect 0.1.97-prod → 0.1.98-beta.2
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/{App-DHAyGCKP.js → App-BWBeJksP.js} +118 -106
- package/dist/AuditLogs-CWVUX5o0.js +2013 -0
- package/dist/{Bin-BxyU2xtK.js → Bin-jXmZpGfg.js} +8 -8
- package/dist/{Broadcast-BJjehb02.js → Broadcast-C76pTADb.js} +18 -17
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BCxP8rEW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-9kfq8OXE.js} +5 -6
- package/dist/{Card-BYDuADCn.js → Card-qXn83BYu.js} +19 -19
- package/dist/{Collections-BlPEkNm8.js → Collections-DGXUQSbz.js} +197 -185
- package/dist/{Credit-D9Eqxv2E.js → Credit-CpmrPZx9.js} +18 -17
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +58 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DAnw5TFZ.js +3377 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-hpNgkLOt.js → EffectSheet.vue_vue_type_style_index_0_lang-BCAotF0P.js} +6 -6
- package/dist/{Experience-DGumSpYK.js → Experience-CuOq7hd3.js} +35 -34
- package/dist/{FileSaver.min-D_TpPHp3.js → FileSaver.min-Cjv6SzrG.js} +1 -1
- package/dist/{Game-DDsYLdKu.js → Game-D0KfLD-b.js} +16 -15
- package/dist/Grab-L1h7bHD7.js +300 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-R00i7YNe.js → ImageInput.vue_vue_type_script_setup_true_lang-DMAaHxzm.js} +1 -1
- package/dist/{Index-DwRbFOsj.js → Index-DxwMHEV3.js} +10 -10
- package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-i9-B25xO.js +48 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-D_HOJBzW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-D84v7zC_.js} +1 -1
- package/dist/LoyaltyDashboard-B5wg1EUC.js +1082 -0
- package/dist/{MainLayout-BEUAguIP.js → MainLayout-Cgi3Z3EM.js} +1 -1
- package/dist/{Marketing-WdhEZvmz.js → Marketing-Cl5OSBI1.js} +4 -4
- package/dist/{MarketingMaterialEdit-DUIkUA79.js → MarketingMaterialEdit-CzYTbdJd.js} +214 -211
- package/dist/{Member-jL3RMGsZ.js → Member-D29x5Cic.js} +20 -20
- package/dist/{MemberList-B1bdPK63.js → MemberList-DDPe6Ymr.js} +50 -51
- package/dist/{MemberTransactions-BNKJ0wtr.js → MemberTransactions-3mboVWAx.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cvsz00_4.js → MessageInput.vue_vue_type_script_setup_true_lang-C2HlA9O8.js} +11 -11
- package/dist/{Mission-CoXzS7U6.js → Mission-CMPc4NLe.js} +35 -34
- package/dist/{Overview-B16wZUSV.js → Overview-sJ2kuP4U.js} +19 -19
- package/dist/{Point-CORBv0y2.js → Point-BBP4UEhf.js} +30 -29
- package/dist/{Promotion-DQ4WnFkH.js → Promotion-Bt0RLGsd.js} +111 -105
- package/dist/{Queue-BW97QEY2.js → Queue-CzVsoIDM.js} +43 -43
- package/dist/{Record-DZOhwf13.js → Record-CAoGgaxo.js} +10 -10
- package/dist/Review-CVBJlwGK.js +959 -0
- package/dist/ReviewFacebookCallback-RGWdxXYf.js +243 -0
- package/dist/ReviewGoogleCallback-L7_Jjbkx.js +208 -0
- package/dist/{Reward-Bi9mpuyH.js → Reward-CrpFlr0a.js} +17 -17
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dtosx1wE.js → RewardGroup.vue_vue_type_script_setup_true_lang-DW-WFNI6.js} +12 -12
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DlcsO8fk.js +1911 -0
- package/dist/{Segment-COhS8SPv.js → Segment-Cy-QwYQQ.js} +77 -78
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-By_BQodK.js → SelectItems.vue_vue_type_script_setup_true_lang-ovvxxcrQ.js} +3 -3
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BoEnwoYd.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D69bJtyd.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DonadRJT.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DQyoPZ_6.js} +4 -4
- package/dist/{Setting-BNtYrzdN.js → Setting-DEQIJ4fY.js} +259 -248
- package/dist/{SettingAdvertisements-Cne8GikV.js → SettingAdvertisements-NuwjCPLN.js} +13 -13
- package/dist/{Store-iTgtmUVL.js → Store-Cw2J_ecA.js} +24 -24
- package/dist/{StoreRewards-DLawXBsl.js → StoreRewards-BK5rDAaK.js} +16 -16
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B3jwaYHX.js +1130 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D_OdWctk.js +7007 -0
- package/dist/{Tier-BbZMbFSd.js → Tier-CwZ40RYc.js} +544 -469
- package/dist/{Title-Co5XWIJm.js → Title-DU7KmsK2.js} +93 -92
- package/dist/{Transaction-CoUbt5rr.js → Transaction-Uh5Ozt93.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CzJpNT94.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BtnUNkcS.js} +6 -6
- package/dist/{Voucher-CXojttH0.js → Voucher-BF6ARaRe.js} +28 -27
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bxkds9_4.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C7msPJdi.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CHVqFzLm.js → ZodTextField.vue_vue_type_script_setup_true_lang-BrR2WA1K.js} +2 -2
- package/dist/{app-_LtKE4PZ.js → app-DlECkPwT.js} +3408 -2913
- package/dist/app.js +4 -3
- package/dist/{business-CchrWCX9.js → business-BSe9C-xG.js} +1 -1
- package/dist/{campaign-N2x2N6OP.js → campaign-BNS2RxKc.js} +114 -64
- package/dist/{campaign-D2RzC0L1.js → campaign-CXw3jpdr.js} +13 -7
- package/dist/{campaign.enum-DqJsu1At.js → campaign.enum-CnMa2Tia.js} +3 -2
- package/dist/{campaign.fn-Da4r_dvc.js → campaign.fn-CNOinW8t.js} +131 -131
- package/dist/{collectible.enum-CHheiKkA.js → collectible.enum-BIvEz79q.js} +1 -1
- package/dist/duplicateCampaign-Co2TdbrL.js +51 -0
- package/dist/{effect-DADvE7lZ.js → effect-Bt8PE3-M.js} +1 -1
- package/dist/{email-addresses-DzUHQuVs.js → email-addresses-Dh95ALqP.js} +2 -2
- package/dist/{export-uzECYleM.js → export-DIIgAwP7.js} +3 -3
- package/dist/{helper-DMsYRFIM.js → helper-8zEdQ9jm.js} +1 -1
- package/dist/{index-CEVpWmjC.js → index-0BNEvaYc.js} +7 -7
- package/dist/{index-r8TuEpzi.js → index-BAlFstx4.js} +1 -1
- package/dist/{index-C2h4SP0A.js → index-BP5qSDQw.js} +806 -205
- package/dist/{index-KYtKBtvK.js → index-Bqxe3Gbq.js} +3 -3
- package/dist/{index-CrPHsZg1.js → index-CWypTyOP.js} +1554 -1270
- package/dist/{index-DXl_Qtu-.js → index-CfxDirFl.js} +1 -1
- package/dist/{index-Bc-pgOn6.js → index-DDp0nMys.js} +1 -1
- package/dist/index-DW4-mTTG.js +52 -0
- package/dist/{timezone-B_KZGqyd.js → index-DdCPfF8x.js} +21 -20
- package/dist/index-IPOrNVQw.js +67 -0
- package/dist/{index-XJX8_Wlh.js → index-SsUBL4IR.js} +1 -1
- package/dist/{index-Ct1Qf7kH.js → index-VS1hWlhk.js} +1 -1
- package/dist/{index-B9RmImNP.js → index-ZKJoXi1-.js} +3 -3
- package/dist/{index-DQ6H1MEw.js → index-rwlkBKrS.js} +1996 -1968
- package/dist/{index.esm2017-D9jjiQqn.js → index.esm2017-CgR02aQB.js} +209 -209
- package/dist/{loading-DK8UdxtS.js → loading-CxY9qhzD.js} +1 -1
- package/dist/{lodash-CgcQgDO8.js → lodash-CELsN1M_.js} +1 -1
- package/dist/{membership-Cs4GzRnn.js → membership-BoQMuerb.js} +3 -3
- package/dist/{money-TgbWserQ.js → money-CH913hGN.js} +1 -1
- package/dist/{number-fLCh4B45.js → number-CO-WbLdr.js} +1 -1
- package/dist/object-BYyQ0PZp.js +18 -0
- package/dist/objectid-BM2Ygj-U.js +145 -0
- package/dist/{plugins-DYcrIMpx.js → plugins-YK45gSb1.js} +94 -95
- package/dist/{reward-uQ8Oz8Fd.js → reward-3aFPahH6.js} +1 -1
- package/dist/{rule-BcbgF0xS.js → rule-DC9my0Vg.js} +505 -487
- package/dist/style.css +1 -1
- package/dist/template-tDq12e1p.js +188 -0
- package/dist/{trigger-c-_77EFL.js → trigger-DoPHRgKt.js} +5 -5
- package/dist/{useMarketingMaterialActions-BCqwGe4e.js → useMarketingMaterialActions-CEd6ODsz.js} +3 -3
- package/dist/{usePagination-C3cT5BmC.js → usePagination-C8FUj5q_.js} +1 -1
- package/dist/{user-CRIo5MyA.js → user-Dhlhrnf8.js} +1 -1
- package/dist/{vue-i18n-BU_SuDqj.js → vue-i18n-B-92uhPn.js} +175 -175
- package/dist/{xlsx-Bw1AshOG.js → xlsx-Dmxne1eM.js} +166 -166
- package/dist/{zod-CzlTW8Al.js → zod-Dcdy9Dm3.js} +1 -1
- package/package.json +8 -4
- package/dist/Analytic-Ccb5IKBy.js +0 -426
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bf8Rc-Eh.js +0 -2223
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CrvTdEPu.js +0 -1888
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cl8JEYjx.js +0 -1118
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DEEz7iEu.js +0 -142
- package/dist/collection.fn-BqDPyvUe.js +0 -26
- package/dist/dto-CstKk_3g.js +0 -216
- package/dist/index-_KlH62Ed.js +0 -55
- package/dist/object-qECH92oz.js +0 -26
- package/dist/objectid-CVxLIQ5K.js +0 -145
- package/dist/rule-builder-CIkRKgap.js +0 -102
- package/dist/template-wZEVj8lZ.js +0 -236
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Le, ref as $, computed as j, onMounted as Ze, resolveComponent as N, openBlock as U, createBlock as te, withCtx as H, createElementVNode as p, createVNode as P, unref as c, isRef as Me, watch as At, createElementBlock as x, toDisplayString as B, Fragment as Z, renderList as Se, createTextVNode as X, createCommentVNode as we } from "vue";
|
|
2
2
|
import { h as Bt } from "./moment-D7p2TMB-.js";
|
|
3
|
-
import { Z as qe } from "./zod-
|
|
3
|
+
import { Z as qe } from "./zod-Dcdy9Dm3.js";
|
|
4
4
|
import { useDialog as et } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as Pt } from "./loading-
|
|
5
|
+
import { u as Pt } from "./loading-CxY9qhzD.js";
|
|
6
6
|
import { u as Mt } from "./app-wDQR6dpb.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as nt } from "./membership-
|
|
9
|
-
import { P as
|
|
10
|
-
import {
|
|
11
|
-
import { _ as Tt } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { c as ot, p as Nt, f as re } from "./plugins-
|
|
13
|
-
import { p as Ut, r as Ft, _ as Lt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { u as st } from "./vue-i18n-
|
|
15
|
-
import { M as
|
|
7
|
+
import { u as Ie, l as tt } from "./business-BSe9C-xG.js";
|
|
8
|
+
import { u as nt } from "./membership-BoQMuerb.js";
|
|
9
|
+
import { P as be } from "./index-Bqxe3Gbq.js";
|
|
10
|
+
import { M as St, l as It } from "./index-CWypTyOP.js";
|
|
11
|
+
import { _ as Tt } from "./ImageInput.vue_vue_type_script_setup_true_lang-DMAaHxzm.js";
|
|
12
|
+
import { c as ot, p as Nt, f as re } from "./plugins-YK45gSb1.js";
|
|
13
|
+
import { p as Ut, r as Ft, _ as Lt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-D_OdWctk.js";
|
|
14
|
+
import { u as st } from "./vue-i18n-B-92uhPn.js";
|
|
15
|
+
import { M as Rt, _ as kt } from "./MessageInput.vue_vue_type_script_setup_true_lang-C2HlA9O8.js";
|
|
16
16
|
import { useCoreStore as Dt } from "@feedmepos/mf-common";
|
|
17
17
|
import { useRouter as Vt } from "vue-router";
|
|
18
|
-
import { R as xt } from "./app-
|
|
19
|
-
import { m as
|
|
20
|
-
import { S as Ge } from "./index-
|
|
18
|
+
import { R as xt } from "./app-DlECkPwT.js";
|
|
19
|
+
import { m as ve } from "./index-BAlFstx4.js";
|
|
20
|
+
import { S as Ge } from "./index-0BNEvaYc.js";
|
|
21
21
|
import { o as $t } from "./objectId-dwaoBfJX.js";
|
|
22
|
-
import { a as zt } from "./object-
|
|
22
|
+
import { a as zt } from "./object-BYyQ0PZp.js";
|
|
23
23
|
var oe = {}, Ht = function() {
|
|
24
24
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
25
|
-
}, it = {},
|
|
26
|
-
let
|
|
25
|
+
}, it = {}, R = {};
|
|
26
|
+
let Re;
|
|
27
27
|
const Kt = [
|
|
28
28
|
0,
|
|
29
29
|
// Not used
|
|
@@ -68,30 +68,30 @@ const Kt = [
|
|
|
68
68
|
3532,
|
|
69
69
|
3706
|
|
70
70
|
];
|
|
71
|
-
|
|
71
|
+
R.getSymbolSize = function(e) {
|
|
72
72
|
if (!e) throw new Error('"version" cannot be null or undefined');
|
|
73
73
|
if (e < 1 || e > 40) throw new Error('"version" should be in range from 1 to 40');
|
|
74
74
|
return e * 4 + 17;
|
|
75
75
|
};
|
|
76
|
-
|
|
76
|
+
R.getSymbolTotalCodewords = function(e) {
|
|
77
77
|
return Kt[e];
|
|
78
78
|
};
|
|
79
|
-
|
|
79
|
+
R.getBCHDigit = function(t) {
|
|
80
80
|
let e = 0;
|
|
81
81
|
for (; t !== 0; )
|
|
82
82
|
e++, t >>>= 1;
|
|
83
83
|
return e;
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
R.setToSJISFunction = function(e) {
|
|
86
86
|
if (typeof e != "function")
|
|
87
87
|
throw new Error('"toSJISFunc" is not a valid function.');
|
|
88
|
-
|
|
88
|
+
Re = e;
|
|
89
89
|
};
|
|
90
|
-
|
|
91
|
-
return typeof
|
|
90
|
+
R.isKanjiModeEnabled = function() {
|
|
91
|
+
return typeof Re < "u";
|
|
92
92
|
};
|
|
93
|
-
|
|
94
|
-
return
|
|
93
|
+
R.toSJIS = function(e) {
|
|
94
|
+
return Re(e);
|
|
95
95
|
};
|
|
96
96
|
var de = {};
|
|
97
97
|
(function(t) {
|
|
@@ -169,7 +169,7 @@ se.prototype.isReserved = function(t, e) {
|
|
|
169
169
|
};
|
|
170
170
|
var Yt = se, lt = {};
|
|
171
171
|
(function(t) {
|
|
172
|
-
const e =
|
|
172
|
+
const e = R.getSymbolSize;
|
|
173
173
|
t.getRowColCoords = function(s) {
|
|
174
174
|
if (s === 1) return [];
|
|
175
175
|
const o = Math.floor(s / 7) + 2, n = e(s), r = n === 145 ? 26 : Math.ceil((n - 13) / (2 * o - 2)) * 2, l = [n - 7];
|
|
@@ -187,7 +187,7 @@ var Yt = se, lt = {};
|
|
|
187
187
|
};
|
|
188
188
|
})(lt);
|
|
189
189
|
var at = {};
|
|
190
|
-
const Jt =
|
|
190
|
+
const Jt = R.getSymbolSize, Qe = 7;
|
|
191
191
|
at.getPositions = function(e) {
|
|
192
192
|
const i = Jt(e);
|
|
193
193
|
return [
|
|
@@ -713,8 +713,8 @@ ke.prototype.encode = function(e) {
|
|
|
713
713
|
}
|
|
714
714
|
return s;
|
|
715
715
|
};
|
|
716
|
-
var jt = ke, ft = {}, J = {},
|
|
717
|
-
|
|
716
|
+
var jt = ke, ft = {}, J = {}, De = {};
|
|
717
|
+
De.isValid = function(e) {
|
|
718
718
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
719
719
|
};
|
|
720
720
|
var z = {};
|
|
@@ -728,18 +728,18 @@ z.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
|
|
|
728
728
|
z.BYTE = new RegExp(Gt, "g");
|
|
729
729
|
z.NUMERIC = new RegExp(mt, "g");
|
|
730
730
|
z.ALPHANUMERIC = new RegExp(qt, "g");
|
|
731
|
-
const Qt = new RegExp("^" + ne + "$"),
|
|
731
|
+
const Qt = new RegExp("^" + ne + "$"), Wt = new RegExp("^" + mt + "$"), Xt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
732
732
|
z.testKanji = function(e) {
|
|
733
733
|
return Qt.test(e);
|
|
734
734
|
};
|
|
735
735
|
z.testNumeric = function(e) {
|
|
736
|
-
return
|
|
736
|
+
return Wt.test(e);
|
|
737
737
|
};
|
|
738
738
|
z.testAlphanumeric = function(e) {
|
|
739
|
-
return
|
|
739
|
+
return Xt.test(e);
|
|
740
740
|
};
|
|
741
741
|
(function(t) {
|
|
742
|
-
const e =
|
|
742
|
+
const e = De, i = z;
|
|
743
743
|
t.NUMERIC = {
|
|
744
744
|
id: "Numeric",
|
|
745
745
|
bit: 1,
|
|
@@ -798,37 +798,37 @@ z.testAlphanumeric = function(e) {
|
|
|
798
798
|
};
|
|
799
799
|
})(J);
|
|
800
800
|
(function(t) {
|
|
801
|
-
const e =
|
|
802
|
-
function a(m, f,
|
|
803
|
-
for (let
|
|
804
|
-
if (f <= t.getCapacity(
|
|
805
|
-
return
|
|
801
|
+
const e = R, i = fe, s = de, o = J, n = De, r = 7973, l = e.getBCHDigit(r);
|
|
802
|
+
function a(m, f, b) {
|
|
803
|
+
for (let v = 1; v <= 40; v++)
|
|
804
|
+
if (f <= t.getCapacity(v, b, m))
|
|
805
|
+
return v;
|
|
806
806
|
}
|
|
807
807
|
function u(m, f) {
|
|
808
808
|
return o.getCharCountIndicator(m, f) + 4;
|
|
809
809
|
}
|
|
810
810
|
function g(m, f) {
|
|
811
|
-
let
|
|
812
|
-
return m.forEach(function(
|
|
813
|
-
const M = u(
|
|
814
|
-
|
|
815
|
-
}),
|
|
811
|
+
let b = 0;
|
|
812
|
+
return m.forEach(function(v) {
|
|
813
|
+
const M = u(v.mode, f);
|
|
814
|
+
b += M + v.getBitsLength();
|
|
815
|
+
}), b;
|
|
816
816
|
}
|
|
817
817
|
function A(m, f) {
|
|
818
|
-
for (let
|
|
819
|
-
if (g(m,
|
|
820
|
-
return
|
|
818
|
+
for (let b = 1; b <= 40; b++)
|
|
819
|
+
if (g(m, b) <= t.getCapacity(b, f, o.MIXED))
|
|
820
|
+
return b;
|
|
821
821
|
}
|
|
822
|
-
t.from = function(f,
|
|
823
|
-
return n.isValid(f) ? parseInt(f, 10) :
|
|
824
|
-
}, t.getCapacity = function(f,
|
|
822
|
+
t.from = function(f, b) {
|
|
823
|
+
return n.isValid(f) ? parseInt(f, 10) : b;
|
|
824
|
+
}, t.getCapacity = function(f, b, v) {
|
|
825
825
|
if (!n.isValid(f))
|
|
826
826
|
throw new Error("Invalid QR Code version");
|
|
827
|
-
typeof
|
|
828
|
-
const M = e.getSymbolTotalCodewords(f), d = i.getTotalCodewordsCount(f,
|
|
829
|
-
if (
|
|
830
|
-
const h =
|
|
831
|
-
switch (
|
|
827
|
+
typeof v > "u" && (v = o.BYTE);
|
|
828
|
+
const M = e.getSymbolTotalCodewords(f), d = i.getTotalCodewordsCount(f, b), C = (M - d) * 8;
|
|
829
|
+
if (v === o.MIXED) return C;
|
|
830
|
+
const h = C - u(v, f);
|
|
831
|
+
switch (v) {
|
|
832
832
|
case o.NUMERIC:
|
|
833
833
|
return Math.floor(h / 10 * 3);
|
|
834
834
|
case o.ALPHANUMERIC:
|
|
@@ -839,34 +839,34 @@ z.testAlphanumeric = function(e) {
|
|
|
839
839
|
default:
|
|
840
840
|
return Math.floor(h / 8);
|
|
841
841
|
}
|
|
842
|
-
}, t.getBestVersionForData = function(f,
|
|
843
|
-
let
|
|
844
|
-
const M = s.from(
|
|
842
|
+
}, t.getBestVersionForData = function(f, b) {
|
|
843
|
+
let v;
|
|
844
|
+
const M = s.from(b, s.M);
|
|
845
845
|
if (Array.isArray(f)) {
|
|
846
846
|
if (f.length > 1)
|
|
847
847
|
return A(f, M);
|
|
848
848
|
if (f.length === 0)
|
|
849
849
|
return 1;
|
|
850
|
-
|
|
850
|
+
v = f[0];
|
|
851
851
|
} else
|
|
852
|
-
|
|
853
|
-
return a(
|
|
852
|
+
v = f;
|
|
853
|
+
return a(v.mode, v.getLength(), M);
|
|
854
854
|
}, t.getEncodedBits = function(f) {
|
|
855
855
|
if (!n.isValid(f) || f < 7)
|
|
856
856
|
throw new Error("Invalid QR Code version");
|
|
857
|
-
let
|
|
858
|
-
for (; e.getBCHDigit(
|
|
859
|
-
|
|
860
|
-
return f << 12 |
|
|
857
|
+
let b = f << 12;
|
|
858
|
+
for (; e.getBCHDigit(b) - l >= 0; )
|
|
859
|
+
b ^= r << e.getBCHDigit(b) - l;
|
|
860
|
+
return f << 12 | b;
|
|
861
861
|
};
|
|
862
862
|
})(ft);
|
|
863
863
|
var gt = {};
|
|
864
|
-
const
|
|
864
|
+
const Te = R, ht = 1335, Zt = 21522, We = Te.getBCHDigit(ht);
|
|
865
865
|
gt.getEncodedBits = function(e, i) {
|
|
866
866
|
const s = e.bit << 3 | i;
|
|
867
867
|
let o = s << 10;
|
|
868
|
-
for (;
|
|
869
|
-
o ^= ht <<
|
|
868
|
+
for (; Te.getBCHDigit(o) - We >= 0; )
|
|
869
|
+
o ^= ht << Te.getBCHDigit(o) - We;
|
|
870
870
|
return (s << 10 | o) ^ Zt;
|
|
871
871
|
};
|
|
872
872
|
var pt = {};
|
|
@@ -1003,20 +1003,20 @@ Q.prototype.write = function(t) {
|
|
|
1003
1003
|
t.put(this.data[e], 8);
|
|
1004
1004
|
};
|
|
1005
1005
|
var an = Q;
|
|
1006
|
-
const cn = J, un =
|
|
1007
|
-
function
|
|
1006
|
+
const cn = J, un = R;
|
|
1007
|
+
function W(t) {
|
|
1008
1008
|
this.mode = cn.KANJI, this.data = t;
|
|
1009
1009
|
}
|
|
1010
|
-
|
|
1010
|
+
W.getBitsLength = function(e) {
|
|
1011
1011
|
return e * 13;
|
|
1012
1012
|
};
|
|
1013
|
-
|
|
1013
|
+
W.prototype.getLength = function() {
|
|
1014
1014
|
return this.data.length;
|
|
1015
1015
|
};
|
|
1016
|
-
|
|
1017
|
-
return
|
|
1016
|
+
W.prototype.getBitsLength = function() {
|
|
1017
|
+
return W.getBitsLength(this.data.length);
|
|
1018
1018
|
};
|
|
1019
|
-
|
|
1019
|
+
W.prototype.write = function(t) {
|
|
1020
1020
|
let e;
|
|
1021
1021
|
for (e = 0; e < this.data.length; e++) {
|
|
1022
1022
|
let i = un.toSJIS(this.data[e]);
|
|
@@ -1032,7 +1032,7 @@ Make sure your charset is UTF-8`
|
|
|
1032
1032
|
i = (i >>> 8 & 255) * 192 + (i & 255), t.put(i, 13);
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|
|
1035
|
-
var dn =
|
|
1035
|
+
var dn = W, yt = { exports: {} };
|
|
1036
1036
|
(function(t) {
|
|
1037
1037
|
var e = {
|
|
1038
1038
|
single_source_shortest_paths: function(i, s, o) {
|
|
@@ -1040,10 +1040,10 @@ var dn = X, yt = { exports: {} };
|
|
|
1040
1040
|
r[s] = 0;
|
|
1041
1041
|
var l = e.PriorityQueue.make();
|
|
1042
1042
|
l.push(s, 0);
|
|
1043
|
-
for (var a, u, g, A, m, f,
|
|
1043
|
+
for (var a, u, g, A, m, f, b, v, M; !l.empty(); ) {
|
|
1044
1044
|
a = l.pop(), u = a.value, A = a.cost, m = i[u] || {};
|
|
1045
1045
|
for (g in m)
|
|
1046
|
-
m.hasOwnProperty(g) && (f = m[g],
|
|
1046
|
+
m.hasOwnProperty(g) && (f = m[g], b = A + f, v = r[g], M = typeof r[g] > "u", (M || v > b) && (r[g] = b, l.push(g, b), n[g] = u));
|
|
1047
1047
|
}
|
|
1048
1048
|
if (typeof o < "u" && typeof r[o] > "u") {
|
|
1049
1049
|
var d = ["Could not find a path from ", s, " to ", o, "."].join("");
|
|
@@ -1100,26 +1100,26 @@ var dn = X, yt = { exports: {} };
|
|
|
1100
1100
|
})(yt);
|
|
1101
1101
|
var fn = yt.exports;
|
|
1102
1102
|
(function(t) {
|
|
1103
|
-
const e = J, i = tn, s = on, o = an, n = dn, r = z, l =
|
|
1103
|
+
const e = J, i = tn, s = on, o = an, n = dn, r = z, l = R, a = fn;
|
|
1104
1104
|
function u(d) {
|
|
1105
1105
|
return unescape(encodeURIComponent(d)).length;
|
|
1106
1106
|
}
|
|
1107
|
-
function g(d,
|
|
1107
|
+
function g(d, C, h) {
|
|
1108
1108
|
const y = [];
|
|
1109
1109
|
let S;
|
|
1110
1110
|
for (; (S = d.exec(h)) !== null; )
|
|
1111
1111
|
y.push({
|
|
1112
1112
|
data: S[0],
|
|
1113
1113
|
index: S.index,
|
|
1114
|
-
mode:
|
|
1114
|
+
mode: C,
|
|
1115
1115
|
length: S[0].length
|
|
1116
1116
|
});
|
|
1117
1117
|
return y;
|
|
1118
1118
|
}
|
|
1119
1119
|
function A(d) {
|
|
1120
|
-
const
|
|
1120
|
+
const C = g(r.NUMERIC, e.NUMERIC, d), h = g(r.ALPHANUMERIC, e.ALPHANUMERIC, d);
|
|
1121
1121
|
let y, S;
|
|
1122
|
-
return l.isKanjiModeEnabled() ? (y = g(r.BYTE, e.BYTE, d), S = g(r.KANJI, e.KANJI, d)) : (y = g(r.BYTE_KANJI, e.BYTE, d), S = []),
|
|
1122
|
+
return l.isKanjiModeEnabled() ? (y = g(r.BYTE, e.BYTE, d), S = g(r.KANJI, e.KANJI, d)) : (y = g(r.BYTE_KANJI, e.BYTE, d), S = []), C.concat(h, y, S).sort(function(T, L) {
|
|
1123
1123
|
return T.index - L.index;
|
|
1124
1124
|
}).map(function(T) {
|
|
1125
1125
|
return {
|
|
@@ -1129,8 +1129,8 @@ var fn = yt.exports;
|
|
|
1129
1129
|
};
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
|
-
function m(d,
|
|
1133
|
-
switch (
|
|
1132
|
+
function m(d, C) {
|
|
1133
|
+
switch (C) {
|
|
1134
1134
|
case e.NUMERIC:
|
|
1135
1135
|
return i.getBitsLength(d);
|
|
1136
1136
|
case e.ALPHANUMERIC:
|
|
@@ -1142,54 +1142,54 @@ var fn = yt.exports;
|
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
1144
1144
|
function f(d) {
|
|
1145
|
-
return d.reduce(function(
|
|
1146
|
-
const y =
|
|
1147
|
-
return y && y.mode === h.mode ? (
|
|
1145
|
+
return d.reduce(function(C, h) {
|
|
1146
|
+
const y = C.length - 1 >= 0 ? C[C.length - 1] : null;
|
|
1147
|
+
return y && y.mode === h.mode ? (C[C.length - 1].data += h.data, C) : (C.push(h), C);
|
|
1148
1148
|
}, []);
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
const
|
|
1150
|
+
function b(d) {
|
|
1151
|
+
const C = [];
|
|
1152
1152
|
for (let h = 0; h < d.length; h++) {
|
|
1153
1153
|
const y = d[h];
|
|
1154
1154
|
switch (y.mode) {
|
|
1155
1155
|
case e.NUMERIC:
|
|
1156
|
-
|
|
1156
|
+
C.push([
|
|
1157
1157
|
y,
|
|
1158
1158
|
{ data: y.data, mode: e.ALPHANUMERIC, length: y.length },
|
|
1159
1159
|
{ data: y.data, mode: e.BYTE, length: y.length }
|
|
1160
1160
|
]);
|
|
1161
1161
|
break;
|
|
1162
1162
|
case e.ALPHANUMERIC:
|
|
1163
|
-
|
|
1163
|
+
C.push([
|
|
1164
1164
|
y,
|
|
1165
1165
|
{ data: y.data, mode: e.BYTE, length: y.length }
|
|
1166
1166
|
]);
|
|
1167
1167
|
break;
|
|
1168
1168
|
case e.KANJI:
|
|
1169
|
-
|
|
1169
|
+
C.push([
|
|
1170
1170
|
y,
|
|
1171
1171
|
{ data: y.data, mode: e.BYTE, length: u(y.data) }
|
|
1172
1172
|
]);
|
|
1173
1173
|
break;
|
|
1174
1174
|
case e.BYTE:
|
|
1175
|
-
|
|
1175
|
+
C.push([
|
|
1176
1176
|
{ data: y.data, mode: e.BYTE, length: u(y.data) }
|
|
1177
1177
|
]);
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
|
-
return
|
|
1180
|
+
return C;
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function v(d, C) {
|
|
1183
1183
|
const h = {}, y = { start: {} };
|
|
1184
1184
|
let S = ["start"];
|
|
1185
1185
|
for (let I = 0; I < d.length; I++) {
|
|
1186
1186
|
const T = d[I], L = [];
|
|
1187
1187
|
for (let V = 0; V < T.length; V++) {
|
|
1188
|
-
const
|
|
1189
|
-
L.push(E), h[E] = { node:
|
|
1190
|
-
for (let
|
|
1191
|
-
const F = S[
|
|
1192
|
-
h[F] && h[F].node.mode ===
|
|
1188
|
+
const k = T[V], E = "" + I + V;
|
|
1189
|
+
L.push(E), h[E] = { node: k, lastCount: 0 }, y[E] = {};
|
|
1190
|
+
for (let w = 0; w < S.length; w++) {
|
|
1191
|
+
const F = S[w];
|
|
1192
|
+
h[F] && h[F].node.mode === k.mode ? (y[F][E] = m(h[F].lastCount + k.length, k.mode) - m(h[F].lastCount, k.mode), h[F].lastCount += k.length) : (h[F] && (h[F].lastCount = k.length), y[F][E] = m(k.length, k.mode) + 4 + e.getCharCountIndicator(k.mode, C));
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
S = L;
|
|
@@ -1198,10 +1198,10 @@ var fn = yt.exports;
|
|
|
1198
1198
|
y[S[I]].end = 0;
|
|
1199
1199
|
return { map: y, table: h };
|
|
1200
1200
|
}
|
|
1201
|
-
function M(d,
|
|
1201
|
+
function M(d, C) {
|
|
1202
1202
|
let h;
|
|
1203
1203
|
const y = e.getBestModeForData(d);
|
|
1204
|
-
if (h = e.from(
|
|
1204
|
+
if (h = e.from(C, y), h !== e.BYTE && h.bit < y.bit)
|
|
1205
1205
|
throw new Error('"' + d + '" cannot be encoded with mode ' + e.toString(h) + `.
|
|
1206
1206
|
Suggested mode is: ` + e.toString(y));
|
|
1207
1207
|
switch (h === e.KANJI && !l.isKanjiModeEnabled() && (h = e.BYTE), h) {
|
|
@@ -1215,23 +1215,23 @@ var fn = yt.exports;
|
|
|
1215
1215
|
return new o(d);
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
t.fromArray = function(
|
|
1219
|
-
return
|
|
1218
|
+
t.fromArray = function(C) {
|
|
1219
|
+
return C.reduce(function(h, y) {
|
|
1220
1220
|
return typeof y == "string" ? h.push(M(y, null)) : y.data && h.push(M(y.data, y.mode)), h;
|
|
1221
1221
|
}, []);
|
|
1222
|
-
}, t.fromString = function(
|
|
1223
|
-
const y = A(
|
|
1222
|
+
}, t.fromString = function(C, h) {
|
|
1223
|
+
const y = A(C, l.isKanjiModeEnabled()), S = b(y), I = v(S, h), T = a.find_path(I.map, "start", "end"), L = [];
|
|
1224
1224
|
for (let V = 1; V < T.length - 1; V++)
|
|
1225
1225
|
L.push(I.table[T[V]].node);
|
|
1226
1226
|
return t.fromArray(f(L));
|
|
1227
|
-
}, t.rawSplit = function(
|
|
1227
|
+
}, t.rawSplit = function(C) {
|
|
1228
1228
|
return t.fromArray(
|
|
1229
|
-
A(
|
|
1229
|
+
A(C, l.isKanjiModeEnabled())
|
|
1230
1230
|
);
|
|
1231
1231
|
};
|
|
1232
1232
|
})(pt);
|
|
1233
|
-
const ge =
|
|
1234
|
-
function
|
|
1233
|
+
const ge = R, _e = de, mn = Ot, gn = Yt, hn = lt, pn = at, Ne = ct, Ue = fe, yn = jt, ue = ft, wn = gt, bn = J, Ee = pt;
|
|
1234
|
+
function vn(t, e) {
|
|
1235
1235
|
const i = t.size, s = pn.getPositions(e);
|
|
1236
1236
|
for (let o = 0; o < s.length; o++) {
|
|
1237
1237
|
const n = s[o][0], r = s[o][1];
|
|
@@ -1241,7 +1241,7 @@ function Cn(t, e) {
|
|
|
1241
1241
|
r + a <= -1 || i <= r + a || (l >= 0 && l <= 6 && (a === 0 || a === 6) || a >= 0 && a <= 6 && (l === 0 || l === 6) || l >= 2 && l <= 4 && a >= 2 && a <= 4 ? t.set(n + l, r + a, !0, !0) : t.set(n + l, r + a, !1, !0));
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function Cn(t) {
|
|
1245
1245
|
const e = t.size;
|
|
1246
1246
|
for (let i = 8; i < e - 8; i++) {
|
|
1247
1247
|
const s = i % 2 === 0;
|
|
@@ -1263,7 +1263,7 @@ function En(t, e) {
|
|
|
1263
1263
|
for (let l = 0; l < 18; l++)
|
|
1264
1264
|
o = Math.floor(l / 3), n = l % 3 + i - 8 - 3, r = (s >> l & 1) === 1, t.set(o, n, r, !0), t.set(n, o, r, !0);
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function Ae(t, e, i) {
|
|
1267
1267
|
const s = t.size, o = wn.getEncodedBits(e, i);
|
|
1268
1268
|
let n, r;
|
|
1269
1269
|
for (n = 0; n < 15; n++)
|
|
@@ -1291,7 +1291,7 @@ function Bn(t, e, i) {
|
|
|
1291
1291
|
i.forEach(function(a) {
|
|
1292
1292
|
s.put(a.mode.bit, 4), s.put(a.getLength(), bn.getCharCountIndicator(a.mode, t)), a.write(s);
|
|
1293
1293
|
});
|
|
1294
|
-
const o = ge.getSymbolTotalCodewords(t), n =
|
|
1294
|
+
const o = ge.getSymbolTotalCodewords(t), n = Ue.getTotalCodewordsCount(t, e), r = (o - n) * 8;
|
|
1295
1295
|
for (s.getLengthInBits() + 4 <= r && s.put(0, 4); s.getLengthInBits() % 8 !== 0; )
|
|
1296
1296
|
s.putBit(0);
|
|
1297
1297
|
const l = (r - s.getLengthInBits()) / 8;
|
|
@@ -1300,20 +1300,20 @@ function Bn(t, e, i) {
|
|
|
1300
1300
|
return Pn(s, t, e);
|
|
1301
1301
|
}
|
|
1302
1302
|
function Pn(t, e, i) {
|
|
1303
|
-
const s = ge.getSymbolTotalCodewords(e), o =
|
|
1304
|
-
let
|
|
1305
|
-
const
|
|
1303
|
+
const s = ge.getSymbolTotalCodewords(e), o = Ue.getTotalCodewordsCount(e, i), n = s - o, r = Ue.getBlocksCount(e, i), l = s % r, a = r - l, u = Math.floor(s / r), g = Math.floor(n / r), A = g + 1, m = u - g, f = new yn(m);
|
|
1304
|
+
let b = 0;
|
|
1305
|
+
const v = new Array(r), M = new Array(r);
|
|
1306
1306
|
let d = 0;
|
|
1307
|
-
const
|
|
1307
|
+
const C = new Uint8Array(t.buffer);
|
|
1308
1308
|
for (let T = 0; T < r; T++) {
|
|
1309
1309
|
const L = T < a ? g : A;
|
|
1310
|
-
|
|
1310
|
+
v[T] = C.slice(b, b + L), M[T] = f.encode(v[T]), b += L, d = Math.max(d, L);
|
|
1311
1311
|
}
|
|
1312
1312
|
const h = new Uint8Array(s);
|
|
1313
1313
|
let y = 0, S, I;
|
|
1314
1314
|
for (S = 0; S < d; S++)
|
|
1315
1315
|
for (I = 0; I < r; I++)
|
|
1316
|
-
S <
|
|
1316
|
+
S < v[I].length && (h[y++] = v[I][S]);
|
|
1317
1317
|
for (S = 0; S < m; S++)
|
|
1318
1318
|
for (I = 0; I < r; I++)
|
|
1319
1319
|
h[y++] = M[I][S];
|
|
@@ -1322,14 +1322,14 @@ function Pn(t, e, i) {
|
|
|
1322
1322
|
function Mn(t, e, i, s) {
|
|
1323
1323
|
let o;
|
|
1324
1324
|
if (Array.isArray(t))
|
|
1325
|
-
o =
|
|
1325
|
+
o = Ee.fromArray(t);
|
|
1326
1326
|
else if (typeof t == "string") {
|
|
1327
1327
|
let u = e;
|
|
1328
1328
|
if (!u) {
|
|
1329
|
-
const g =
|
|
1329
|
+
const g = Ee.rawSplit(t);
|
|
1330
1330
|
u = ue.getBestVersionForData(g, i);
|
|
1331
1331
|
}
|
|
1332
|
-
o =
|
|
1332
|
+
o = Ee.fromString(t, u || 40);
|
|
1333
1333
|
} else
|
|
1334
1334
|
throw new Error("Invalid data");
|
|
1335
1335
|
const n = ue.getBestVersionForData(o, i);
|
|
@@ -1345,10 +1345,10 @@ Minimum version required to store current data is: ` + n + `.
|
|
|
1345
1345
|
`
|
|
1346
1346
|
);
|
|
1347
1347
|
const r = Bn(e, i, o), l = ge.getSymbolSize(e), a = new gn(l);
|
|
1348
|
-
return
|
|
1348
|
+
return vn(a, e), Cn(a), _n(a, e), Ae(a, i, 0), e >= 7 && En(a, e), An(a, r), isNaN(s) && (s = Ne.getBestMask(
|
|
1349
1349
|
a,
|
|
1350
|
-
|
|
1351
|
-
)),
|
|
1350
|
+
Ae.bind(null, a, i)
|
|
1351
|
+
)), Ne.applyMask(s, a), Ae(a, i, s), {
|
|
1352
1352
|
modules: a,
|
|
1353
1353
|
version: e,
|
|
1354
1354
|
errorCorrectionLevel: i,
|
|
@@ -1359,10 +1359,10 @@ Minimum version required to store current data is: ` + n + `.
|
|
|
1359
1359
|
it.create = function(e, i) {
|
|
1360
1360
|
if (typeof e > "u" || e === "")
|
|
1361
1361
|
throw new Error("No input text");
|
|
1362
|
-
let s =
|
|
1363
|
-
return typeof i < "u" && (s =
|
|
1362
|
+
let s = _e.M, o, n;
|
|
1363
|
+
return typeof i < "u" && (s = _e.from(i.errorCorrectionLevel, _e.M), o = ue.from(i.version), n = Ne.from(i.maskPattern), i.toSJISFunc && ge.setToSJISFunction(i.toSJISFunc)), Mn(e, o, s, n);
|
|
1364
1364
|
};
|
|
1365
|
-
var wt = {},
|
|
1365
|
+
var wt = {}, Ve = {};
|
|
1366
1366
|
(function(t) {
|
|
1367
1367
|
function e(i) {
|
|
1368
1368
|
if (typeof i == "number" && (i = i.toString()), typeof i != "string")
|
|
@@ -1405,17 +1405,17 @@ var wt = {}, De = {};
|
|
|
1405
1405
|
const r = o.modules.size, l = o.modules.data, a = t.getScale(r, n), u = Math.floor((r + n.margin * 2) * a), g = n.margin * a, A = [n.color.light, n.color.dark];
|
|
1406
1406
|
for (let m = 0; m < u; m++)
|
|
1407
1407
|
for (let f = 0; f < u; f++) {
|
|
1408
|
-
let
|
|
1408
|
+
let b = (m * u + f) * 4, v = n.color.light;
|
|
1409
1409
|
if (m >= g && f >= g && m < u - g && f < u - g) {
|
|
1410
1410
|
const M = Math.floor((m - g) / a), d = Math.floor((f - g) / a);
|
|
1411
|
-
|
|
1411
|
+
v = A[l[M * r + d] ? 1 : 0];
|
|
1412
1412
|
}
|
|
1413
|
-
s[
|
|
1413
|
+
s[b++] = v.r, s[b++] = v.g, s[b++] = v.b, s[b] = v.a;
|
|
1414
1414
|
}
|
|
1415
1415
|
};
|
|
1416
|
-
})(
|
|
1416
|
+
})(Ve);
|
|
1417
1417
|
(function(t) {
|
|
1418
|
-
const e =
|
|
1418
|
+
const e = Ve;
|
|
1419
1419
|
function i(o, n, r) {
|
|
1420
1420
|
o.clearRect(0, 0, n.width, n.height), n.style || (n.style = {}), n.height = r, n.width = r, n.style.height = r + "px", n.style.width = r + "px";
|
|
1421
1421
|
}
|
|
@@ -1439,12 +1439,12 @@ var wt = {}, De = {};
|
|
|
1439
1439
|
};
|
|
1440
1440
|
})(wt);
|
|
1441
1441
|
var bt = {};
|
|
1442
|
-
const Sn =
|
|
1443
|
-
function
|
|
1442
|
+
const Sn = Ve;
|
|
1443
|
+
function Xe(t, e) {
|
|
1444
1444
|
const i = t.a / 255, s = e + '="' + t.hex + '"';
|
|
1445
1445
|
return i < 1 ? s + " " + e + '-opacity="' + i.toFixed(2).slice(1) + '"' : s;
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function Be(t, e, i) {
|
|
1448
1448
|
let s = t + e;
|
|
1449
1449
|
return typeof i < "u" && (s += " " + i), s;
|
|
1450
1450
|
}
|
|
@@ -1452,17 +1452,17 @@ function In(t, e, i) {
|
|
|
1452
1452
|
let s = "", o = 0, n = !1, r = 0;
|
|
1453
1453
|
for (let l = 0; l < t.length; l++) {
|
|
1454
1454
|
const a = Math.floor(l % e), u = Math.floor(l / e);
|
|
1455
|
-
!a && !n && (n = !0), t[l] ? (r++, l > 0 && a > 0 && t[l - 1] || (s += n ?
|
|
1455
|
+
!a && !n && (n = !0), t[l] ? (r++, l > 0 && a > 0 && t[l - 1] || (s += n ? Be("M", a + i, 0.5 + u + i) : Be("m", o, 0), o = 0, n = !1), a + 1 < e && t[l + 1] || (s += Be("h", r), r = 0)) : o++;
|
|
1456
1456
|
}
|
|
1457
1457
|
return s;
|
|
1458
1458
|
}
|
|
1459
1459
|
bt.render = function(e, i, s) {
|
|
1460
|
-
const o = Sn.getOptions(i), n = e.modules.size, r = e.modules.data, l = n + o.margin * 2, a = o.color.light.a ? "<path " +
|
|
1460
|
+
const o = Sn.getOptions(i), n = e.modules.size, r = e.modules.data, l = n + o.margin * 2, a = o.color.light.a ? "<path " + Xe(o.color.light, "fill") + ' d="M0 0h' + l + "v" + l + 'H0z"/>' : "", u = "<path " + Xe(o.color.dark, "stroke") + ' d="' + In(r, n, o.margin) + '"/>', g = 'viewBox="0 0 ' + l + " " + l + '"', m = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + g + ' shape-rendering="crispEdges">' + a + u + `</svg>
|
|
1461
1461
|
`;
|
|
1462
1462
|
return typeof s == "function" && s(null, m), m;
|
|
1463
1463
|
};
|
|
1464
|
-
const Tn = Ht,
|
|
1465
|
-
function
|
|
1464
|
+
const Tn = Ht, Fe = it, vt = wt, Nn = bt;
|
|
1465
|
+
function xe(t, e, i, s, o) {
|
|
1466
1466
|
const n = [].slice.call(arguments, 1), r = n.length, l = typeof n[r - 1] == "function";
|
|
1467
1467
|
if (!l && !Tn())
|
|
1468
1468
|
throw new Error("Callback required as last argument");
|
|
@@ -1475,7 +1475,7 @@ function Ve(t, e, i, s, o) {
|
|
|
1475
1475
|
throw new Error("Too few arguments provided");
|
|
1476
1476
|
return r === 1 ? (i = e, e = s = void 0) : r === 2 && !e.getContext && (s = i, i = e, e = void 0), new Promise(function(a, u) {
|
|
1477
1477
|
try {
|
|
1478
|
-
const g =
|
|
1478
|
+
const g = Fe.create(i, s);
|
|
1479
1479
|
a(t(g, e, s));
|
|
1480
1480
|
} catch (g) {
|
|
1481
1481
|
u(g);
|
|
@@ -1483,16 +1483,16 @@ function Ve(t, e, i, s, o) {
|
|
|
1483
1483
|
});
|
|
1484
1484
|
}
|
|
1485
1485
|
try {
|
|
1486
|
-
const a =
|
|
1486
|
+
const a = Fe.create(i, s);
|
|
1487
1487
|
o(null, t(a, e, s));
|
|
1488
1488
|
} catch (a) {
|
|
1489
1489
|
o(a);
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
oe.create =
|
|
1493
|
-
oe.toCanvas =
|
|
1494
|
-
oe.toDataURL =
|
|
1495
|
-
oe.toString =
|
|
1492
|
+
oe.create = Fe.create;
|
|
1493
|
+
oe.toCanvas = xe.bind(null, vt.render);
|
|
1494
|
+
oe.toDataURL = xe.bind(null, vt.renderToDataURL);
|
|
1495
|
+
oe.toString = xe.bind(null, function(t, e, i) {
|
|
1496
1496
|
return Nn.render(t, i);
|
|
1497
1497
|
});
|
|
1498
1498
|
async function Un(t, e = 350) {
|
|
@@ -1505,11 +1505,11 @@ async function Un(t, e = 350) {
|
|
|
1505
1505
|
console.error(i);
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
|
-
var Fn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "
|
|
1509
|
-
const Ln = { class: "flex items-start" },
|
|
1508
|
+
var Fn = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
|
|
1509
|
+
const Ln = { class: "flex items-start" }, Rn = { class: "flex flex-col gap-16 mt-16" }, kn = ["src"], Dn = /* @__PURE__ */ Le({
|
|
1510
1510
|
__name: "LinkDeviceDialog",
|
|
1511
1511
|
setup(t) {
|
|
1512
|
-
const e =
|
|
1512
|
+
const e = Ie(), i = nt(), s = et(), o = $(), n = $(), r = Fn.crmUrl, l = $(), a = j(() => i.membership), u = j(() => {
|
|
1513
1513
|
var m, f;
|
|
1514
1514
|
return `https://${(m = a.value) != null && m.url ? a.value.url : (f = a.value) == null ? void 0 : f.business}.${r}`;
|
|
1515
1515
|
});
|
|
@@ -1529,7 +1529,7 @@ const Ln = { class: "flex items-start" }, kn = { class: "flex flex-col gap-16 mt
|
|
|
1529
1529
|
const m = e.locations[0]._id;
|
|
1530
1530
|
n.value = m, await A(m);
|
|
1531
1531
|
}), (m, f) => {
|
|
1532
|
-
const
|
|
1532
|
+
const b = N("FmIcon"), v = N("FmSelect"), M = N("FmButton"), d = N("FmCard");
|
|
1533
1533
|
return U(), te(d, { class: "p-24 max-w-[350px]" }, {
|
|
1534
1534
|
default: H(() => [
|
|
1535
1535
|
p("div", Ln, [
|
|
@@ -1537,31 +1537,31 @@ const Ln = { class: "flex items-start" }, kn = { class: "flex flex-col gap-16 mt
|
|
|
1537
1537
|
p("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
|
|
1538
1538
|
p("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
|
|
1539
1539
|
], -1)),
|
|
1540
|
-
P(
|
|
1540
|
+
P(b, {
|
|
1541
1541
|
name: "close",
|
|
1542
|
-
onClick: f[0] || (f[0] = (
|
|
1542
|
+
onClick: f[0] || (f[0] = (C) => c(s).close()),
|
|
1543
1543
|
class: "cursor-pointer"
|
|
1544
1544
|
})
|
|
1545
1545
|
]),
|
|
1546
|
-
p("div",
|
|
1547
|
-
P(
|
|
1546
|
+
p("div", Rn, [
|
|
1547
|
+
P(v, {
|
|
1548
1548
|
modelValue: c(n),
|
|
1549
1549
|
"onUpdate:modelValue": [
|
|
1550
|
-
f[1] || (f[1] = (
|
|
1550
|
+
f[1] || (f[1] = (C) => Me(n) ? n.value = C : null),
|
|
1551
1551
|
A
|
|
1552
1552
|
],
|
|
1553
1553
|
label: "Select Location",
|
|
1554
|
-
items: c(e).locationItems.filter((
|
|
1554
|
+
items: c(e).locationItems.filter((C) => !!C.value)
|
|
1555
1555
|
}, null, 8, ["modelValue", "items"]),
|
|
1556
1556
|
p("img", {
|
|
1557
1557
|
src: c(o),
|
|
1558
1558
|
class: "aspect-square w-full"
|
|
1559
|
-
}, null, 8,
|
|
1559
|
+
}, null, 8, kn),
|
|
1560
1560
|
P(M, {
|
|
1561
1561
|
class: "mx-auto",
|
|
1562
1562
|
variant: "plain",
|
|
1563
1563
|
icon: "content_copy",
|
|
1564
|
-
onClick: f[2] || (f[2] = (
|
|
1564
|
+
onClick: f[2] || (f[2] = (C) => c(ot)(c(l)))
|
|
1565
1565
|
})
|
|
1566
1566
|
])
|
|
1567
1567
|
]),
|
|
@@ -1569,29 +1569,29 @@ const Ln = { class: "flex items-start" }, kn = { class: "flex flex-col gap-16 mt
|
|
|
1569
1569
|
});
|
|
1570
1570
|
};
|
|
1571
1571
|
}
|
|
1572
|
-
}), Vn = { class: "space-y-4" }, xn = { key: 0 }, $n = { key: 1 }, zn = { key: 2 }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Kn = /* @__PURE__ */
|
|
1572
|
+
}), Vn = { class: "space-y-4" }, xn = { key: 0 }, $n = { key: 1 }, zn = { key: 2 }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Kn = /* @__PURE__ */ Le({
|
|
1573
1573
|
__name: "AllowedPhoneCountriesSelect",
|
|
1574
1574
|
props: {
|
|
1575
1575
|
modelValue: {}
|
|
1576
1576
|
},
|
|
1577
1577
|
emits: ["update:modelValue"],
|
|
1578
1578
|
setup(t, { emit: e }) {
|
|
1579
|
-
const { t: i } = st(), s = t, o = e, n = [...new Set(
|
|
1579
|
+
const { t: i } = st(), s = t, o = e, n = [...new Set(be.map((m) => m.phoneCode))], r = $(""), l = $(!1), a = j(() => {
|
|
1580
1580
|
const m = r.value.toLowerCase();
|
|
1581
|
-
return
|
|
1581
|
+
return be.filter(
|
|
1582
1582
|
(f) => f.name.toLowerCase().includes(m) || f.phoneCode.toLowerCase().includes(m)
|
|
1583
1583
|
);
|
|
1584
1584
|
});
|
|
1585
1585
|
function u(m, f) {
|
|
1586
|
-
const
|
|
1587
|
-
o("update:modelValue",
|
|
1586
|
+
const b = m ? Ut([...s.modelValue || []], f) : Ft(s.modelValue || n, f);
|
|
1587
|
+
o("update:modelValue", b);
|
|
1588
1588
|
}
|
|
1589
1589
|
const g = j(() => {
|
|
1590
|
-
var
|
|
1591
|
-
const f = ((
|
|
1592
|
-
(
|
|
1590
|
+
var b;
|
|
1591
|
+
const f = ((b = s.modelValue) == null ? void 0 : b.slice(0, 5).map(
|
|
1592
|
+
(v) => {
|
|
1593
1593
|
var M;
|
|
1594
|
-
return ((M =
|
|
1594
|
+
return ((M = be.find((d) => d.phoneCode === v)) == null ? void 0 : M.name) || v;
|
|
1595
1595
|
}
|
|
1596
1596
|
)) || [];
|
|
1597
1597
|
return s.modelValue && s.modelValue.length > 5 && f.push(`+${s.modelValue.length - 5} more`), f;
|
|
@@ -1602,22 +1602,22 @@ const Ln = { class: "flex items-start" }, kn = { class: "flex flex-col gap-16 mt
|
|
|
1602
1602
|
return At(l, (m) => {
|
|
1603
1603
|
m && (r.value = "");
|
|
1604
1604
|
}), (m, f) => {
|
|
1605
|
-
const
|
|
1605
|
+
const b = N("FmChip"), v = N("FmField"), M = N("FmTextField"), d = N("FmCheckbox"), C = N("FmMenu");
|
|
1606
1606
|
return U(), x("div", Vn, [
|
|
1607
|
-
P(
|
|
1607
|
+
P(C, {
|
|
1608
1608
|
modelValue: c(l),
|
|
1609
|
-
"onUpdate:modelValue": f[2] || (f[2] = (h) =>
|
|
1609
|
+
"onUpdate:modelValue": f[2] || (f[2] = (h) => Me(l) ? l.value = h : null),
|
|
1610
1610
|
onMenuChanged: f[3] || (f[3] = (h) => l.value = h),
|
|
1611
1611
|
placement: "top-end"
|
|
1612
1612
|
}, {
|
|
1613
1613
|
"menu-button": H(() => [
|
|
1614
|
-
P(
|
|
1614
|
+
P(v, {
|
|
1615
1615
|
"append-icon": c(l) ? "expand_more" : "expand_less",
|
|
1616
1616
|
class: "!h-auto"
|
|
1617
1617
|
}, {
|
|
1618
1618
|
default: H(() => [
|
|
1619
1619
|
t.modelValue ? t.modelValue.length ? (U(), x("div", zn, [
|
|
1620
|
-
(U(!0), x(Z, null,
|
|
1620
|
+
(U(!0), x(Z, null, Se(c(g), (h, y) => (U(), te(b, {
|
|
1621
1621
|
key: y,
|
|
1622
1622
|
label: h,
|
|
1623
1623
|
class: "max-w-[130px] text-ellipsis"
|
|
@@ -1630,7 +1630,7 @@ const Ln = { class: "flex items-start" }, kn = { class: "flex flex-col gap-16 mt
|
|
|
1630
1630
|
default: H(() => [
|
|
1631
1631
|
P(M, {
|
|
1632
1632
|
modelValue: c(r),
|
|
1633
|
-
"onUpdate:modelValue": f[0] || (f[0] = (h) =>
|
|
1633
|
+
"onUpdate:modelValue": f[0] || (f[0] = (h) => Me(r) ? r.value = h : null),
|
|
1634
1634
|
placeholder: c(i)("connect.setting.allowedPhoneCountries.searchCountries"),
|
|
1635
1635
|
class: "my-8"
|
|
1636
1636
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
@@ -1642,7 +1642,7 @@ const Ln = { class: "flex items-start" }, kn = { class: "flex flex-col gap-16 mt
|
|
|
1642
1642
|
"model-value": t.modelValue == null || t.modelValue.length === n.length,
|
|
1643
1643
|
"onUpdate:modelValue": f[1] || (f[1] = (h) => o("update:modelValue", h ? null : []))
|
|
1644
1644
|
}, null, 8, ["indeterminate", "label", "model-value"]),
|
|
1645
|
-
(U(!0), x(Z, null,
|
|
1645
|
+
(U(!0), x(Z, null, Se(c(a), (h) => (U(), te(d, {
|
|
1646
1646
|
class: "my-8",
|
|
1647
1647
|
key: h.iso2,
|
|
1648
1648
|
value: h.phoneCode,
|
|
@@ -1658,20 +1658,20 @@ const Ln = { class: "flex items-start" }, kn = { class: "flex flex-col gap-16 mt
|
|
|
1658
1658
|
};
|
|
1659
1659
|
}
|
|
1660
1660
|
});
|
|
1661
|
-
var
|
|
1661
|
+
var Pe = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
|
|
1662
1662
|
const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, Yn = { class: "fm-typo-en-title-md-800" }, Jn = {
|
|
1663
1663
|
key: 0,
|
|
1664
1664
|
class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
|
|
1665
|
-
}, jn = { class: "col-span-2 flex flex-col xs:col-span-3 space-y-8" }, qn = { class: "fm-typo-en-title-sm-800" }, Gn = { class: "space-y-24" }, Qn = { class: "space-y-8" },
|
|
1665
|
+
}, jn = { class: "col-span-2 flex flex-col xs:col-span-3 space-y-8" }, qn = { class: "fm-typo-en-title-sm-800" }, Gn = { class: "space-y-24" }, Qn = { class: "space-y-8" }, Wn = { class: "fm-typo-en-title-sm-800" }, Xn = { class: "fm-typo-body-lg-400" }, Zn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, to = { class: "space-y-8" }, no = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, oo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, io = { class: "space-y-8" }, ro = { class: "space-y-8" }, lo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ao = { class: "space-y-8" }, co = { class: "fm-typo-en-title-sm-800" }, uo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, fo = { class: "space-y-8" }, mo = { class: "fm-typo-en-title-sm-800" }, go = { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, ho = { class: "space-y-8" }, po = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, yo = { class: "space-y-8" }, wo = { class: "space-y-8" }, bo = { class: "fm-typo-en-title-sm-800" }, vo = { class: "space-y-8" }, Co = { class: "fm-typo-en-title-sm-800" }, _o = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Eo = { class: "flex justify-end pb-24" }, Ao = { class: "col-span-1 space-y-8 xs:hidden" }, Bo = { class: "fm-typo-en-body-lg-600" }, Po = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Mo = { class: "fm-typo-en-body-lg-600" }, So = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Io = { class: "fm-typo-en-body-lg-600" }, To = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, No = { class: "fm-typo-en-body-lg-600" }, Uo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Fo = { class: "fm-typo-en-body-lg-600" }, ns = /* @__PURE__ */ Le({
|
|
1666
1666
|
__name: "Setting",
|
|
1667
1667
|
setup(t) {
|
|
1668
|
-
const e = Vt(), i = Mt(), s = Dt(), o =
|
|
1668
|
+
const e = Vt(), i = Mt(), s = Dt(), o = Ie(), n = nt(), { global: r, minor: l } = Pt, a = et(), u = $(), g = $([]), A = $(null), m = St, f = [
|
|
1669
1669
|
(E) => !E || E.length >= 6 || "Invalid URL format, please enter at least 6 characters",
|
|
1670
1670
|
(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"
|
|
1671
|
-
],
|
|
1671
|
+
], b = Pe.appUrl, v = j(() => {
|
|
1672
1672
|
var E;
|
|
1673
|
-
return `https://${(E = u.value) == null ? void 0 : E.business}.${
|
|
1674
|
-
}), M = $(), { t: d } = st(),
|
|
1673
|
+
return `https://${(E = u.value) == null ? void 0 : E.business}.${b}/user?join=true`;
|
|
1674
|
+
}), M = $(), { t: d } = st(), C = s.currentCountry.value || "MY", h = [
|
|
1675
1675
|
"user.name",
|
|
1676
1676
|
"user.gender",
|
|
1677
1677
|
"user.birthday",
|
|
@@ -1679,8 +1679,8 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1679
1679
|
"membership.url"
|
|
1680
1680
|
].filter(
|
|
1681
1681
|
(E) => {
|
|
1682
|
-
var
|
|
1683
|
-
return !((
|
|
1682
|
+
var w;
|
|
1683
|
+
return !((w = Rt[C]) != null && w.includes(E));
|
|
1684
1684
|
}
|
|
1685
1685
|
), y = $(
|
|
1686
1686
|
d("connect.setting.sms.welcomeMessage")
|
|
@@ -1712,12 +1712,12 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1712
1712
|
async () => {
|
|
1713
1713
|
var F;
|
|
1714
1714
|
const E = zt(u.value);
|
|
1715
|
-
E.welcomeMessage && !((F = E.welcomeMessage) != null && F.content) && (E.welcomeMessage.content = "Hi there, you have been invited to join our membership");
|
|
1716
|
-
const
|
|
1717
|
-
M.value === null &&
|
|
1715
|
+
console.log(u.value), E.welcomeMessage && !((F = E.welcomeMessage) != null && F.content) && (E.welcomeMessage.content = "Hi there, you have been invited to join our membership");
|
|
1716
|
+
const w = It.parse(E);
|
|
1717
|
+
M.value === null && w.image ? await re.delete(re.coverImagePath()) : M.value && (w.image = await re.update(
|
|
1718
1718
|
re.coverImagePath(),
|
|
1719
1719
|
M.value
|
|
1720
|
-
)), await
|
|
1720
|
+
)), await ve.update(w), await n.readMembership(), u.value = n.membership;
|
|
1721
1721
|
},
|
|
1722
1722
|
{
|
|
1723
1723
|
message: "Updating membership",
|
|
@@ -1726,32 +1726,32 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1726
1726
|
);
|
|
1727
1727
|
}
|
|
1728
1728
|
async function L() {
|
|
1729
|
-
const E = await
|
|
1730
|
-
console.log(E), g.value = E, A.value = E.find((
|
|
1729
|
+
const E = await ve.getEmailAddresses();
|
|
1730
|
+
console.log(E), g.value = E, A.value = E.find((w) => w.default.includes("Marketing"));
|
|
1731
1731
|
}
|
|
1732
1732
|
async function V() {
|
|
1733
1733
|
window.open(
|
|
1734
|
-
`${
|
|
1734
|
+
`${Pe.licensePortalUrl}business/${Ge.businessId}/settings`,
|
|
1735
1735
|
"_blank"
|
|
1736
1736
|
);
|
|
1737
1737
|
}
|
|
1738
|
-
async function
|
|
1739
|
-
const E = `${
|
|
1738
|
+
async function k() {
|
|
1739
|
+
const E = `${Pe.licensePortalUrl}settings?businessId=${Ge.businessId}`;
|
|
1740
1740
|
console.log("Opening", E), window.open(E, "_blank");
|
|
1741
1741
|
}
|
|
1742
1742
|
return Ze(async () => {
|
|
1743
1743
|
await r(async () => {
|
|
1744
1744
|
await o.readPremium(), await o.readLocations(), await o.readLocationDevices(), await n.readMembership(), await L(), u.value = n.membership;
|
|
1745
1745
|
try {
|
|
1746
|
-
const { content: E } = await
|
|
1746
|
+
const { content: E } = await ve.getDefaultWelcomeMessage();
|
|
1747
1747
|
E && (y.value = E);
|
|
1748
1748
|
} catch (E) {
|
|
1749
1749
|
console.error("Failed to load default welcome message", E);
|
|
1750
1750
|
}
|
|
1751
1751
|
});
|
|
1752
|
-
}), (E,
|
|
1752
|
+
}), (E, w) => {
|
|
1753
1753
|
var ze, He, Ke, Oe, Ye, Je, je;
|
|
1754
|
-
const F = N("FmPageHead"), K = N("FmButton"), ie = N("FmTextField"), he = N("FmCard"),
|
|
1754
|
+
const F = N("FmPageHead"), K = N("FmButton"), ie = N("FmTextField"), he = N("FmCard"), $e = N("FmPill"), Ct = N("FmSelect"), pe = N("FmSwitch"), _t = N("FmMenuDivider");
|
|
1755
1755
|
return U(), x(Z, null, [
|
|
1756
1756
|
P(F, {
|
|
1757
1757
|
title: c(d)("connect.setting.title"),
|
|
@@ -1771,7 +1771,7 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1771
1771
|
P(ie, {
|
|
1772
1772
|
label: c(d)("connect.setting.basicInfo.membershipTitle"),
|
|
1773
1773
|
modelValue: c(u).name,
|
|
1774
|
-
"onUpdate:modelValue":
|
|
1774
|
+
"onUpdate:modelValue": w[0] || (w[0] = (_) => c(u).name = _)
|
|
1775
1775
|
}, null, 8, ["label", "modelValue"]),
|
|
1776
1776
|
P(ie, {
|
|
1777
1777
|
disabled: !0,
|
|
@@ -1779,19 +1779,19 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1779
1779
|
rules: f,
|
|
1780
1780
|
required: !0,
|
|
1781
1781
|
label: c(d)("connect.setting.basicInfo.memberAppUrl"),
|
|
1782
|
-
"helper-text": c(
|
|
1782
|
+
"helper-text": c(v),
|
|
1783
1783
|
placeholder: c(u).business.toString(),
|
|
1784
|
-
"onUpdate:modelValue":
|
|
1784
|
+
"onUpdate:modelValue": w[2] || (w[2] = (_) => c(u).url = _)
|
|
1785
1785
|
}, {
|
|
1786
|
-
prepend: H(() => [...
|
|
1787
|
-
|
|
1786
|
+
prepend: H(() => [...w[15] || (w[15] = [
|
|
1787
|
+
X(" https:// ", -1)
|
|
1788
1788
|
])]),
|
|
1789
1789
|
append: H(() => [
|
|
1790
|
-
|
|
1790
|
+
X(" ." + B(c(b)) + " ", 1),
|
|
1791
1791
|
P(K, {
|
|
1792
1792
|
icon: "content_copy",
|
|
1793
1793
|
variant: "tertiary",
|
|
1794
|
-
onClick:
|
|
1794
|
+
onClick: w[1] || (w[1] = (_) => c(ot)(c(v)))
|
|
1795
1795
|
})
|
|
1796
1796
|
]),
|
|
1797
1797
|
_: 1
|
|
@@ -1802,26 +1802,26 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1802
1802
|
"image-fit": "cover",
|
|
1803
1803
|
"aspect-ratio": "3/1",
|
|
1804
1804
|
thumbnail: c(u).image || void 0,
|
|
1805
|
-
"onUpdate:file":
|
|
1805
|
+
"onUpdate:file": w[3] || (w[3] = async (_) => {
|
|
1806
1806
|
M.value = _, _ || (c(u).image = null);
|
|
1807
1807
|
})
|
|
1808
1808
|
}, null, 8, ["thumbnail"]),
|
|
1809
1809
|
p("div", Qn, [
|
|
1810
|
-
p("div",
|
|
1810
|
+
p("div", Wn, B(c(d)("connect.setting.counterApp.title")), 1),
|
|
1811
1811
|
P(K, {
|
|
1812
1812
|
variant: "plain",
|
|
1813
1813
|
icon: "link",
|
|
1814
1814
|
label: c(d)("connect.setting.counterApp.linkDevice"),
|
|
1815
1815
|
onClick: S
|
|
1816
1816
|
}, null, 8, ["label"]),
|
|
1817
|
-
(U(!0), x(Z, null,
|
|
1817
|
+
(U(!0), x(Z, null, Se(c(o).locationDevices, (_, D) => (U(), te(he, {
|
|
1818
1818
|
key: D,
|
|
1819
1819
|
variant: "outlined",
|
|
1820
1820
|
class: "flex items-center justify-between px-16 py-12"
|
|
1821
1821
|
}, {
|
|
1822
1822
|
default: H(() => [
|
|
1823
1823
|
p("div", null, [
|
|
1824
|
-
p("p",
|
|
1824
|
+
p("p", Xn, B(_.name || `Device ${_._id}`), 1),
|
|
1825
1825
|
p("p", Zn, B(c(d)("connect.setting.counterApp.device.activationDate")) + " " + B(c(Bt)(c($t)(_._id.toString())).format(
|
|
1826
1826
|
"D MMM YYYY"
|
|
1827
1827
|
)), 1),
|
|
@@ -1838,8 +1838,8 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1838
1838
|
]),
|
|
1839
1839
|
p("div", to, [
|
|
1840
1840
|
p("div", no, [
|
|
1841
|
-
|
|
1842
|
-
P(
|
|
1841
|
+
X(B(c(d)("connect.setting.advertisement.title")) + " ", 1),
|
|
1842
|
+
P($e, { variant: "premium" })
|
|
1843
1843
|
]),
|
|
1844
1844
|
P(he, {
|
|
1845
1845
|
variant: "outlined",
|
|
@@ -1859,7 +1859,7 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1859
1859
|
icon: "arrow_forward",
|
|
1860
1860
|
"icon-position": "right",
|
|
1861
1861
|
disabled: !c(o).isPremium,
|
|
1862
|
-
onClick:
|
|
1862
|
+
onClick: w[4] || (w[4] = (D) => c(e).push({
|
|
1863
1863
|
name: c(xt)["$connect-SETTING_ADVERTISEMENTS"]
|
|
1864
1864
|
}))
|
|
1865
1865
|
}, null, 8, ["label", "disabled"])
|
|
@@ -1869,7 +1869,7 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1869
1869
|
})
|
|
1870
1870
|
]),
|
|
1871
1871
|
p("div", io, [
|
|
1872
|
-
|
|
1872
|
+
w[16] || (w[16] = p("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
|
|
1873
1873
|
P(ie, {
|
|
1874
1874
|
"model-value": ((ze = c(u)) == null ? void 0 : ze.brand) || "",
|
|
1875
1875
|
"max-length": 15,
|
|
@@ -1878,25 +1878,25 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1878
1878
|
"helper-text": c(d)("connect.setting.sms.messageFormat", {
|
|
1879
1879
|
brand: ((He = c(u)) == null ? void 0 : He.brand) || ""
|
|
1880
1880
|
}),
|
|
1881
|
-
"onUpdate:modelValue":
|
|
1881
|
+
"onUpdate:modelValue": w[5] || (w[5] = (_) => c(u).brand = _)
|
|
1882
1882
|
}, null, 8, ["model-value", "label", "helper-text"]),
|
|
1883
|
-
P(
|
|
1883
|
+
P(kt, {
|
|
1884
1884
|
modelValue: c(u).welcomeMessage,
|
|
1885
|
-
"onUpdate:modelValue":
|
|
1885
|
+
"onUpdate:modelValue": w[6] || (w[6] = (_) => c(u).welcomeMessage = _),
|
|
1886
1886
|
variables: c(h),
|
|
1887
1887
|
placeholder: c(y)
|
|
1888
1888
|
}, null, 8, ["modelValue", "variables", "placeholder"])
|
|
1889
1889
|
]),
|
|
1890
1890
|
p("div", ro, [
|
|
1891
|
-
|
|
1891
|
+
w[17] || (w[17] = p("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
|
|
1892
1892
|
p("div", lo, B(c(d)("connect.setting.email.description")), 1),
|
|
1893
|
-
c(g).length ?
|
|
1893
|
+
c(g).length ? we("", !0) : (U(), te(K, {
|
|
1894
1894
|
key: 0,
|
|
1895
1895
|
onClick: V,
|
|
1896
1896
|
label: c(d)("connect.setting.email.addNewAddress")
|
|
1897
1897
|
}, null, 8, ["label"])),
|
|
1898
1898
|
c(g).length ? (U(), x(Z, { key: 1 }, [
|
|
1899
|
-
P(
|
|
1899
|
+
P(Ct, {
|
|
1900
1900
|
"model-value": ((Oe = (Ke = c(u)) == null ? void 0 : Ke.email) == null ? void 0 : Oe.from) || null,
|
|
1901
1901
|
label: c(d)("connect.setting.email.fromAddress"),
|
|
1902
1902
|
items: c(g).map((_) => ({
|
|
@@ -1904,11 +1904,11 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1904
1904
|
value: _.emailAddress
|
|
1905
1905
|
})),
|
|
1906
1906
|
placeholder: c(A) ? c(A).emailAddress : c(d)("connect.setting.email.noAddressAvailable"),
|
|
1907
|
-
"onUpdate:modelValue":
|
|
1907
|
+
"onUpdate:modelValue": w[7] || (w[7] = (_) => {
|
|
1908
1908
|
var D, O;
|
|
1909
1909
|
(D = c(u)) != null && D.email || (c(u).email = {
|
|
1910
1910
|
from: _,
|
|
1911
|
-
name: (O = c(g).find((
|
|
1911
|
+
name: (O = c(g).find((ye) => ye.emailAddress == _)) == null ? void 0 : O.name
|
|
1912
1912
|
}), c(u).email.from = _ || null;
|
|
1913
1913
|
}),
|
|
1914
1914
|
rules: [c(qe).ruleAtPath(c(m), "email.from")]
|
|
@@ -1918,7 +1918,7 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1918
1918
|
label: c(d)("connect.setting.email.senderName"),
|
|
1919
1919
|
disabled: "",
|
|
1920
1920
|
placeholder: ((je = c(A)) == null ? void 0 : je.name) || null,
|
|
1921
|
-
"onUpdate:modelValue":
|
|
1921
|
+
"onUpdate:modelValue": w[8] || (w[8] = (_) => {
|
|
1922
1922
|
var D;
|
|
1923
1923
|
(D = c(u)) != null && D.email || (c(u).email = {
|
|
1924
1924
|
name: _
|
|
@@ -1926,7 +1926,7 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1926
1926
|
}),
|
|
1927
1927
|
rules: [c(qe).ruleAtPath(c(m), "email.name")]
|
|
1928
1928
|
}, null, 8, ["model-value", "label", "placeholder", "rules"])
|
|
1929
|
-
], 64)) :
|
|
1929
|
+
], 64)) : we("", !0)
|
|
1930
1930
|
]),
|
|
1931
1931
|
p("div", ao, [
|
|
1932
1932
|
p("div", co, B(c(d)("connect.setting.whatsapp.title")), 1),
|
|
@@ -1934,17 +1934,17 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1934
1934
|
P(K, {
|
|
1935
1935
|
label: c(d)("connect.setting.whatsapp.manageChannel"),
|
|
1936
1936
|
icon: "open_in_new",
|
|
1937
|
-
onClick:
|
|
1937
|
+
onClick: w[9] || (w[9] = (_) => k())
|
|
1938
1938
|
}, null, 8, ["label"])
|
|
1939
1939
|
]),
|
|
1940
1940
|
p("div", fo, [
|
|
1941
1941
|
p("div", mo, [
|
|
1942
|
-
|
|
1942
|
+
X(B(c(d)("connect.setting.freeCredit.title")) + " ", 1),
|
|
1943
1943
|
p("span", go, B(c(d)("connect.setting.freeCredit.posVersion")), 1)
|
|
1944
1944
|
]),
|
|
1945
|
-
P(
|
|
1945
|
+
P(pe, {
|
|
1946
1946
|
"model-value": c(u).freeCreditAsDiscount ?? !1,
|
|
1947
|
-
"onUpdate:modelValue":
|
|
1947
|
+
"onUpdate:modelValue": w[10] || (w[10] = (_) => c(u).freeCreditAsDiscount = _),
|
|
1948
1948
|
label: c(d)("connect.setting.freeCredit.title"),
|
|
1949
1949
|
sublabel: c(d)("connect.setting.freeCredit.description"),
|
|
1950
1950
|
"label-placement": "right",
|
|
@@ -1953,12 +1953,12 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1953
1953
|
]),
|
|
1954
1954
|
p("div", ho, [
|
|
1955
1955
|
p("div", po, [
|
|
1956
|
-
|
|
1957
|
-
P(
|
|
1956
|
+
X(B(c(d)("connect.setting.memberCard.title")) + " ", 1),
|
|
1957
|
+
P($e, { variant: "premium" })
|
|
1958
1958
|
]),
|
|
1959
|
-
P(
|
|
1959
|
+
P(pe, {
|
|
1960
1960
|
"model-value": c(u).cardEnable ?? !1,
|
|
1961
|
-
"onUpdate:modelValue":
|
|
1961
|
+
"onUpdate:modelValue": w[11] || (w[11] = (_) => c(u).cardEnable = _),
|
|
1962
1962
|
label: "",
|
|
1963
1963
|
sublabel: c(d)("connect.setting.memberCard.description"),
|
|
1964
1964
|
"label-placement": "right",
|
|
@@ -1967,22 +1967,33 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1967
1967
|
}, null, 8, ["model-value", "sublabel", "disabled"])
|
|
1968
1968
|
]),
|
|
1969
1969
|
p("div", yo, [
|
|
1970
|
-
p("div",
|
|
1970
|
+
w[18] || (w[18] = p("div", { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, " Auto Revert Reward ", -1)),
|
|
1971
|
+
P(pe, {
|
|
1972
|
+
"model-value": c(u).autoRevertReward ?? !1,
|
|
1973
|
+
"onUpdate:modelValue": w[12] || (w[12] = (_) => c(u).autoRevertReward = _),
|
|
1974
|
+
label: "",
|
|
1975
|
+
sublabel: "When enabled, rewards are automatically revert when if a refund is processed in POS",
|
|
1976
|
+
"label-placement": "right",
|
|
1977
|
+
value: ""
|
|
1978
|
+
}, null, 8, ["model-value"])
|
|
1979
|
+
]),
|
|
1980
|
+
p("div", wo, [
|
|
1981
|
+
p("div", bo, B(c(d)("connect.setting.location.title")), 1),
|
|
1971
1982
|
P(Lt, {
|
|
1972
1983
|
label: c(d)("connect.setting.location.selectLabel"),
|
|
1973
1984
|
"model-value": c(u).targetLocation ?? null,
|
|
1974
|
-
"onUpdate:modelValue":
|
|
1985
|
+
"onUpdate:modelValue": w[13] || (w[13] = (_) => c(u).targetLocation = _)
|
|
1975
1986
|
}, null, 8, ["label", "model-value"])
|
|
1976
1987
|
]),
|
|
1977
|
-
p("div",
|
|
1988
|
+
p("div", vo, [
|
|
1978
1989
|
p("div", Co, B(c(d)("connect.setting.allowedPhoneCountries.title")), 1),
|
|
1979
|
-
p("div",
|
|
1990
|
+
p("div", _o, B(c(d)("connect.setting.allowedPhoneCountries.description")), 1),
|
|
1980
1991
|
P(Kn, {
|
|
1981
1992
|
modelValue: c(u).allowedPhoneCountries,
|
|
1982
|
-
"onUpdate:modelValue":
|
|
1993
|
+
"onUpdate:modelValue": w[14] || (w[14] = (_) => c(u).allowedPhoneCountries = _)
|
|
1983
1994
|
}, null, 8, ["modelValue"])
|
|
1984
1995
|
]),
|
|
1985
|
-
p("div",
|
|
1996
|
+
p("div", Eo, [
|
|
1986
1997
|
P(K, {
|
|
1987
1998
|
label: c(d)("connect.setting.action.update"),
|
|
1988
1999
|
type: "button",
|
|
@@ -1993,7 +2004,7 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1993
2004
|
])
|
|
1994
2005
|
])
|
|
1995
2006
|
]),
|
|
1996
|
-
p("div",
|
|
2007
|
+
p("div", Ao, [
|
|
1997
2008
|
P(he, {
|
|
1998
2009
|
variant: "outlined",
|
|
1999
2010
|
class: "flex flex-col p-24 gap-8"
|
|
@@ -2001,24 +2012,24 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
2001
2012
|
default: H(() => {
|
|
2002
2013
|
var _, D, O;
|
|
2003
2014
|
return [
|
|
2004
|
-
p("div",
|
|
2015
|
+
p("div", Bo, B(c(d)("connect.setting.summary.title")), 1),
|
|
2005
2016
|
P(_t, { class: "my-4" }),
|
|
2006
2017
|
p("div", null, [
|
|
2007
|
-
p("div",
|
|
2008
|
-
p("div",
|
|
2018
|
+
p("div", Po, B(c(d)("connect.setting.summary.name")), 1),
|
|
2019
|
+
p("div", Mo, B(c(u).name), 1)
|
|
2009
2020
|
]),
|
|
2010
2021
|
p("div", null, [
|
|
2011
|
-
p("div",
|
|
2012
|
-
p("div",
|
|
2022
|
+
p("div", So, B(c(d)("connect.setting.summary.advertisement")), 1),
|
|
2023
|
+
p("div", Io, B((((_ = c(u).advertisements) == null ? void 0 : _.length) ?? 0) || c(d)("connect.setting.summary.noAds")), 1)
|
|
2013
2024
|
]),
|
|
2014
2025
|
p("div", null, [
|
|
2015
|
-
p("div",
|
|
2016
|
-
p("div",
|
|
2026
|
+
p("div", To, B(c(d)("connect.setting.summary.freeCredit")), 1),
|
|
2027
|
+
p("div", No, B(c(u).freeCreditAsDiscount ? c(d)("connect.setting.summary.enabled") : c(d)("connect.setting.summary.disabled")), 1)
|
|
2017
2028
|
]),
|
|
2018
2029
|
p("div", null, [
|
|
2019
|
-
p("div",
|
|
2020
|
-
p("div",
|
|
2021
|
-
(
|
|
2030
|
+
p("div", Uo, B(c(d)("connect.setting.summary.locations")), 1),
|
|
2031
|
+
p("div", Fo, B(!c(u).targetLocation || c(u).targetLocation.length == c(Ie)().locations.length ? c(d)("connect.setting.summary.allLocations") : (O = (D = c(u)) == null ? void 0 : D.targetLocation) == null ? void 0 : O.map(
|
|
2032
|
+
(ye) => c(o).locations.find((Et) => Et._id == ye).name
|
|
2022
2033
|
).join(", ")), 1)
|
|
2023
2034
|
])
|
|
2024
2035
|
];
|
|
@@ -2026,11 +2037,11 @@ const On = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
2026
2037
|
_: 1
|
|
2027
2038
|
})
|
|
2028
2039
|
])
|
|
2029
|
-
])) :
|
|
2040
|
+
])) : we("", !0)
|
|
2030
2041
|
], 64);
|
|
2031
2042
|
};
|
|
2032
2043
|
}
|
|
2033
2044
|
});
|
|
2034
2045
|
export {
|
|
2035
|
-
|
|
2046
|
+
ns as default
|
|
2036
2047
|
};
|