@feedmepos/mf-connect 0.1.38-beta.82 → 0.1.38-beta.84
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-DvmIL31T.js → Analytic-JNYAk4CC.js} +13 -13
- package/dist/{App-BsNKSVHz.js → App-DmsDi2wy.js} +7 -7
- package/dist/{AuditLogs-D7W0L4qM.js → AuditLogs-BXGKb27x.js} +12 -11
- package/dist/{Bin-BBSm6ugX.js → Bin-B4A5OEWa.js} +8 -8
- package/dist/{Broadcast-DjUi1WDG.js → Broadcast--KA6CzAt.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-TAElHUsR.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BLgbi9Ay.js} +6 -6
- package/dist/{Card-2VLv_cxB.js → Card-1LToO52r.js} +18 -18
- package/dist/{Collections-DCEQHkxm.js → Collections-Bsh0d9Vt.js} +7 -7
- package/dist/{Credit-C9bGc_pJ.js → Credit-CDMm-DIO.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-J3ZKPVPl.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BVJYCoL_.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D0ZhoO51.js → EffectSheet.vue_vue_type_style_index_0_lang-BubuNkFX.js} +6 -6
- package/dist/{Experience-v_8eZPEO.js → Experience-Bj9Qein1.js} +9 -9
- package/dist/{FileSaver.min-ByS_1LlW.js → FileSaver.min-QC_R9D8d.js} +1 -1
- package/dist/{Game-BFNClu6P.js → Game-1_RyyjSp.js} +10 -10
- package/dist/{Grab-BwTGNzHf.js → Grab-BcDuAzA4.js} +8 -8
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BH1zZl4D.js → ImageInput.vue_vue_type_script_setup_true_lang-BC_mSBKl.js} +1 -1
- package/dist/{Index-BDmfWyf0.js → Index-Bqjte7_5.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-sw_peNaW.js → LocationPicker.vue_vue_type_script_setup_true_lang-DaD9zlKU.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-B40IbaHE.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BJ4Nvy04.js} +1 -1
- package/dist/{MainLayout-TOV5mhcT.js → MainLayout-BeqXvRXR.js} +1 -1
- package/dist/Marketing-DmTGoj3J.js +294 -0
- package/dist/{MarketingMaterialEdit-CjwOoG4u.js → MarketingMaterialEdit-B9SmW25F.js} +7 -7
- package/dist/{Member-p88Z8HfR.js → Member-DAWjFh1O.js} +11 -11
- package/dist/{MemberList-CLh4vRp_.js → MemberList-P8M-8Zbj.js} +35 -34
- package/dist/{MemberTransactions-C0MqNNYL.js → MemberTransactions-BshW4hj3.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C6NqUMph.js → MessageInput.vue_vue_type_script_setup_true_lang-CtuaxcCE.js} +9 -9
- package/dist/{Mission-bUAZIH1u.js → Mission-ByNlmu_a.js} +10 -10
- package/dist/{Overview-p6-nqMxP.js → Overview-DvG2OLhj.js} +32 -31
- package/dist/{Point-D56Lx8T0.js → Point-DtCL1Tge.js} +9 -9
- package/dist/{Promotion-OYOnVtGd.js → Promotion-B54PNXRT.js} +23 -22
- package/dist/{Queue-B5jCuBJ8.js → Queue-BU0DAPKs.js} +17 -16
- package/dist/{Record-C3J-wnbg.js → Record-C_FsdGCx.js} +14 -13
- package/dist/{Review-CpxOMyse.js → Review-xIPGVc1i.js} +4 -4
- package/dist/{ReviewFacebookCallback-GXq-4p9-.js → ReviewFacebookCallback-DbMoj41Y.js} +4 -4
- package/dist/{ReviewGoogleCallback-DH4rk3FV.js → ReviewGoogleCallback-Gz04oqDQ.js} +4 -4
- package/dist/{Reward-Ctfb7gDv.js → Reward-DqSz1odZ.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CvRjxnhI.js → RewardGroup.vue_vue_type_script_setup_true_lang-iycjfGJv.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BluXAgJi.js → RuleGroup.vue_vue_type_script_setup_true_lang-D-DMk_q0.js} +14 -14
- package/dist/Segment-D7PV1ffO.js +1015 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CiOkrDc-.js → SelectItems.vue_vue_type_script_setup_true_lang-BQRM6r3r.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-nwLNbsfS.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-mcUrkTEx.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CtkbN-j4.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1b5-Zle.js} +4 -4
- package/dist/{Setting-Cr9yOEV5.js → Setting-BetOevCY.js} +160 -160
- package/dist/{SettingAdvertisements-DDj3vAS-.js → SettingAdvertisements-CxF11hkc.js} +29 -29
- package/dist/{Store-BndqftiO.js → Store-DRPKpxqC.js} +21 -21
- package/dist/{StoreRewards-Azs51Aqo.js → StoreRewards-PdygaAMM.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CyI20yQ4.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DauIR84r.js} +34 -33
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CfxQLEOK.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-iuc9PY3R.js} +2 -2
- package/dist/{Tier-W9S8KjNj.js → Tier-CG3J1vx1.js} +26 -25
- package/dist/{Title-WEN_6ObU.js → Title-DW19FtBx.js} +20 -20
- package/dist/{Transaction-Qn2vGJzT.js → Transaction-DKNpK966.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Ct05-WdP.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CnJ0NaT1.js} +6 -6
- package/dist/{Voucher-BbXdz50o.js → Voucher-BQ9VdAgX.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DEm_e-XY.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DwoRNvwG.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Ba6mGEJd.js → ZodTextField.vue_vue_type_script_setup_true_lang-C73ImjeV.js} +2 -2
- package/dist/{app-BAL5921k.js → app-C0qcZ_C3.js} +201 -51
- package/dist/app.js +1 -1
- package/dist/{business-BQWQGOMd.js → business-DYnnKWrO.js} +1 -1
- package/dist/{campaign-B9srsWq5.js → campaign-BBY__PcK.js} +1 -1
- package/dist/{campaign-CErsvjXq.js → campaign-CKA9wEbZ.js} +19 -18
- package/dist/{campaign.enum-Bv72yY9I.js → campaign.enum-Dxa81fhf.js} +1 -1
- package/dist/{campaign.fn-BT2MHwj0.js → campaign.fn-DjENPBfV.js} +21 -21
- package/dist/{collectible.enum-Bwbid5f4.js → collectible.enum-oFDirUXs.js} +1 -1
- package/dist/{collection.fn-Crfjy4UF.js → collection.fn-8fcTEShb.js} +2 -2
- package/dist/{dto-BXbdlCYG.js → dto-DilwadZt.js} +4 -4
- package/dist/{duplicateCampaign-BGHnaZXL.js → duplicateCampaign-D1ZTNBe9.js} +2 -2
- package/dist/{effect-C0jgOly2.js → effect-fupxOEt1.js} +1 -1
- package/dist/{email-addresses-DZbtYbQc.js → email-addresses-CMS9HeG2.js} +2 -2
- package/dist/{export-B21h2kpX.js → export-RwlXa6Qv.js} +3 -3
- package/dist/{helper-BeWaaAmm.js → helper-DJCPv7PM.js} +1 -1
- package/dist/{index-CQ3acFfD.js → index-2PEWUv3P.js} +3 -3
- package/dist/{index-c9oJvdhA.js → index-BFsuyNQA.js} +557 -559
- package/dist/{index-CWB3g7yC.js → index-Bo94fQEb.js} +1 -1
- package/dist/{index-Bohbb0xU.js → index-BvB5G3bI.js} +1499 -1328
- package/dist/{index-IV-QZwt6.js → index-BzbteuNi.js} +6 -6
- package/dist/{index-DIJ2JA7b.js → index-C1zYngv4.js} +3 -3
- package/dist/{index-BJOVTyEi.js → index-CdEle8Cv.js} +1 -1
- package/dist/{index-DMOVhn0X.js → index-CjIoVmnU.js} +1 -1
- package/dist/{index-735FLHDL.js → index-D2a9E657.js} +1 -1
- package/dist/{index-Bi6OlABT.js → index-DqCMuPw6.js} +1 -1
- package/dist/{index-m33iRQwI.js → index-IMvedqa3.js} +1 -1
- package/dist/{index-CpnbZpQH.js → index-Si3-mU1k.js} +1 -1
- package/dist/{index-CM4Y8Xr-.js → index-eRaU6Xac.js} +2 -2
- package/dist/{index.esm2017-nsSJx1SS.js → index.esm2017-DboY2zyr.js} +1 -1
- package/dist/{loading-BYRGk5UH.js → loading-C4ajrnT4.js} +4 -3
- package/dist/{lodash-UYxVv_GT.js → lodash-BN85b-mv.js} +1 -1
- package/dist/{membership-AW2b1U0m.js → membership-1yNSUrBo.js} +13 -6
- package/dist/{money-BIV3J0jO.js → money-CpraQZps.js} +1 -1
- package/dist/{number-BZzcWjHb.js → number-BviuRsPW.js} +1 -1
- package/dist/{objectid-dg6v6juW.js → objectid-RJ2bzO-R.js} +13 -13
- package/dist/{plugins-Dfsv7-N8.js → plugins-6gr3a6Jy.js} +297 -326
- package/dist/{remy-QnWPPX8K.js → remy-1dcYv-0_.js} +1 -1
- package/dist/{reward-Datvj1vP.js → reward-CNSlRDZC.js} +1 -1
- package/dist/{rule-BAWC7dHV.js → rule-B1dCQScJ.js} +3 -3
- package/dist/{rule-builder-Yd0Mzz7C.js → rule-builder-Ch0AU-h6.js} +1 -1
- package/dist/string-Gcy5IM_H.js +32 -0
- package/dist/{template-CneYpgF5.js → template-DzgmoMMz.js} +6 -6
- package/dist/{timezone-1AhUoNAx.js → timezone-BM7x2HXX.js} +2 -2
- package/dist/{trigger-JwDMR8YL.js → trigger--f942qWD.js} +12 -12
- package/dist/{usePagination-D9imsFiI.js → usePagination-CdEsBI1Z.js} +1 -1
- package/dist/{user-CEIkELzs.js → user-DX2zCe2B.js} +19 -19
- package/dist/{vue-i18n-zUwMs_qu.js → vue-i18n-Dq3IeM3R.js} +247 -247
- package/dist/{xlsx-D09NRfQm.js → xlsx-7Dgnafdi.js} +1 -1
- package/dist/{zod-DOhXlOno.js → zod-Qa7M8fle.js} +1 -1
- package/package.json +1 -1
- package/dist/Marketing-irnQqmvi.js +0 -166
- package/dist/Segment-BQpLWSIL.js +0 -891
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { defineComponent as Ue, ref as z, computed as J, onMounted as We, resolveComponent as U, openBlock as F, createBlock as ee, withCtx as $, createElementVNode as p, createVNode as P, unref as c, isRef as Be, watch as Et, createElementBlock as V, toDisplayString as B, Fragment as W, renderList as Pe, createTextVNode as X, createCommentVNode as ye } from "vue";
|
|
2
2
|
import { h as At } from "./moment-D7p2TMB-.js";
|
|
3
|
-
import { Z as Je } from "./zod-
|
|
3
|
+
import { Z as Je } from "./zod-Qa7M8fle.js";
|
|
4
4
|
import { useDialog as Ze } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as Bt } from "./loading-
|
|
5
|
+
import { u as Bt } from "./loading-C4ajrnT4.js";
|
|
6
6
|
import { u as Pt } from "./app-wDQR6dpb.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as tt } from "./membership-
|
|
9
|
-
import { P as we } from "./index-
|
|
10
|
-
import {
|
|
11
|
-
import { _ as It } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import {
|
|
13
|
-
import { p as Nt, r as Ut, _ as Ft } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { u as ot } from "./vue-i18n-
|
|
15
|
-
import { M as Lt, _ as
|
|
16
|
-
import { useCoreStore as
|
|
7
|
+
import { u as Me, l as et } from "./business-DYnnKWrO.js";
|
|
8
|
+
import { u as tt } from "./membership-1yNSUrBo.js";
|
|
9
|
+
import { P as we } from "./index-C1zYngv4.js";
|
|
10
|
+
import { M as Mt, l as St } from "./index-BvB5G3bI.js";
|
|
11
|
+
import { _ as It } from "./ImageInput.vue_vue_type_script_setup_true_lang-BC_mSBKl.js";
|
|
12
|
+
import { c as nt, p as Tt, f as ie } from "./plugins-6gr3a6Jy.js";
|
|
13
|
+
import { p as Nt, r as Ut, _ as Ft } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-iuc9PY3R.js";
|
|
14
|
+
import { u as ot } from "./vue-i18n-Dq3IeM3R.js";
|
|
15
|
+
import { M as Lt, _ as Rt } from "./MessageInput.vue_vue_type_script_setup_true_lang-CtuaxcCE.js";
|
|
16
|
+
import { useCoreStore as kt } from "@feedmepos/mf-common";
|
|
17
17
|
import { useRouter as Dt } from "vue-router";
|
|
18
|
-
import { R as Vt } from "./app-
|
|
19
|
-
import { m as je } from "./index-
|
|
20
|
-
import { S as qe } from "./index-
|
|
18
|
+
import { R as Vt } from "./app-C0qcZ_C3.js";
|
|
19
|
+
import { m as je } from "./index-Bo94fQEb.js";
|
|
20
|
+
import { S as qe } from "./index-eRaU6Xac.js";
|
|
21
21
|
import { o as xt } from "./objectId-dwaoBfJX.js";
|
|
22
22
|
import { a as $t } from "./object-qECH92oz.js";
|
|
23
23
|
var ne = {}, zt = function() {
|
|
24
24
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
25
|
-
}, st = {},
|
|
25
|
+
}, st = {}, R = {};
|
|
26
26
|
let Fe;
|
|
27
27
|
const Ht = [
|
|
28
28
|
0,
|
|
@@ -68,29 +68,29 @@ const Ht = [
|
|
|
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 Ht[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
|
Fe = e;
|
|
89
89
|
};
|
|
90
|
-
|
|
90
|
+
R.isKanjiModeEnabled = function() {
|
|
91
91
|
return typeof Fe < "u";
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
R.toSJIS = function(e) {
|
|
94
94
|
return Fe(e);
|
|
95
95
|
};
|
|
96
96
|
var ue = {};
|
|
@@ -169,7 +169,7 @@ oe.prototype.isReserved = function(t, e) {
|
|
|
169
169
|
};
|
|
170
170
|
var Ot = oe, rt = {};
|
|
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 Ot = oe, rt = {};
|
|
|
187
187
|
};
|
|
188
188
|
})(rt);
|
|
189
189
|
var lt = {};
|
|
190
|
-
const Yt =
|
|
190
|
+
const Yt = R.getSymbolSize, Ge = 7;
|
|
191
191
|
lt.getPositions = function(e) {
|
|
192
192
|
const i = Yt(e);
|
|
193
193
|
return [
|
|
@@ -713,8 +713,8 @@ Le.prototype.encode = function(e) {
|
|
|
713
713
|
}
|
|
714
714
|
return s;
|
|
715
715
|
};
|
|
716
|
-
var Jt = Le, dt = {}, Y = {},
|
|
717
|
-
|
|
716
|
+
var Jt = Le, dt = {}, Y = {}, Re = {};
|
|
717
|
+
Re.isValid = function(e) {
|
|
718
718
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
719
719
|
};
|
|
720
720
|
var x = {};
|
|
@@ -739,7 +739,7 @@ x.testAlphanumeric = function(e) {
|
|
|
739
739
|
return Xt.test(e);
|
|
740
740
|
};
|
|
741
741
|
(function(t) {
|
|
742
|
-
const e =
|
|
742
|
+
const e = Re, i = x;
|
|
743
743
|
t.NUMERIC = {
|
|
744
744
|
id: "Numeric",
|
|
745
745
|
bit: 1,
|
|
@@ -798,34 +798,34 @@ x.testAlphanumeric = function(e) {
|
|
|
798
798
|
};
|
|
799
799
|
})(Y);
|
|
800
800
|
(function(t) {
|
|
801
|
-
const e =
|
|
802
|
-
function a(m, f,
|
|
801
|
+
const e = R, i = de, s = ue, o = Y, n = Re, r = 7973, l = e.getBCHDigit(r);
|
|
802
|
+
function a(m, f, b) {
|
|
803
803
|
for (let v = 1; v <= 40; v++)
|
|
804
|
-
if (f <= t.getCapacity(v,
|
|
804
|
+
if (f <= t.getCapacity(v, b, m))
|
|
805
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
|
|
811
|
+
let b = 0;
|
|
812
812
|
return m.forEach(function(v) {
|
|
813
|
-
const
|
|
814
|
-
|
|
815
|
-
}),
|
|
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
827
|
typeof v > "u" && (v = o.BYTE);
|
|
828
|
-
const
|
|
828
|
+
const M = e.getSymbolTotalCodewords(f), d = i.getTotalCodewordsCount(f, b), C = (M - d) * 8;
|
|
829
829
|
if (v === o.MIXED) return C;
|
|
830
830
|
const h = C - u(v, f);
|
|
831
831
|
switch (v) {
|
|
@@ -839,34 +839,34 @@ x.testAlphanumeric = function(e) {
|
|
|
839
839
|
default:
|
|
840
840
|
return Math.floor(h / 8);
|
|
841
841
|
}
|
|
842
|
-
}, t.getBestVersionForData = function(f,
|
|
842
|
+
}, t.getBestVersionForData = function(f, b) {
|
|
843
843
|
let v;
|
|
844
|
-
const
|
|
844
|
+
const M = s.from(b, s.M);
|
|
845
845
|
if (Array.isArray(f)) {
|
|
846
846
|
if (f.length > 1)
|
|
847
|
-
return A(f,
|
|
847
|
+
return A(f, M);
|
|
848
848
|
if (f.length === 0)
|
|
849
849
|
return 1;
|
|
850
850
|
v = f[0];
|
|
851
851
|
} else
|
|
852
852
|
v = f;
|
|
853
|
-
return a(v.mode, v.getLength(),
|
|
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
|
})(dt);
|
|
863
863
|
var mt = {};
|
|
864
|
-
const
|
|
864
|
+
const Se = R, gt = 1335, Wt = 21522, Qe = Se.getBCHDigit(gt);
|
|
865
865
|
mt.getEncodedBits = function(e, i) {
|
|
866
866
|
const s = e.bit << 3 | i;
|
|
867
867
|
let o = s << 10;
|
|
868
|
-
for (;
|
|
869
|
-
o ^= gt <<
|
|
868
|
+
for (; Se.getBCHDigit(o) - Qe >= 0; )
|
|
869
|
+
o ^= gt << Se.getBCHDigit(o) - Qe;
|
|
870
870
|
return (s << 10 | o) ^ Wt;
|
|
871
871
|
};
|
|
872
872
|
var ht = {};
|
|
@@ -1003,7 +1003,7 @@ G.prototype.write = function(t) {
|
|
|
1003
1003
|
t.put(this.data[e], 8);
|
|
1004
1004
|
};
|
|
1005
1005
|
var ln = G;
|
|
1006
|
-
const an = Y, cn =
|
|
1006
|
+
const an = Y, cn = R;
|
|
1007
1007
|
function Q(t) {
|
|
1008
1008
|
this.mode = an.KANJI, this.data = t;
|
|
1009
1009
|
}
|
|
@@ -1040,10 +1040,10 @@ var un = Q, pt = { 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 un = Q, pt = { exports: {} };
|
|
|
1100
1100
|
})(pt);
|
|
1101
1101
|
var dn = pt.exports;
|
|
1102
1102
|
(function(t) {
|
|
1103
|
-
const e = Y, i = en, s = nn, o = ln, n = un, r = x, l =
|
|
1103
|
+
const e = Y, i = en, s = nn, o = ln, n = un, r = x, l = R, a = dn;
|
|
1104
1104
|
function u(d) {
|
|
1105
1105
|
return unescape(encodeURIComponent(d)).length;
|
|
1106
1106
|
}
|
|
1107
1107
|
function g(d, C, h) {
|
|
1108
|
-
const
|
|
1109
|
-
let
|
|
1110
|
-
for (; (
|
|
1111
|
-
|
|
1112
|
-
data:
|
|
1113
|
-
index:
|
|
1108
|
+
const w = [];
|
|
1109
|
+
let S;
|
|
1110
|
+
for (; (S = d.exec(h)) !== null; )
|
|
1111
|
+
w.push({
|
|
1112
|
+
data: S[0],
|
|
1113
|
+
index: S.index,
|
|
1114
1114
|
mode: C,
|
|
1115
|
-
length:
|
|
1115
|
+
length: S[0].length
|
|
1116
1116
|
});
|
|
1117
|
-
return
|
|
1117
|
+
return w;
|
|
1118
1118
|
}
|
|
1119
1119
|
function A(d) {
|
|
1120
1120
|
const C = g(r.NUMERIC, e.NUMERIC, d), h = g(r.ALPHANUMERIC, e.ALPHANUMERIC, d);
|
|
1121
|
-
let
|
|
1122
|
-
return l.isKanjiModeEnabled() ? (
|
|
1121
|
+
let w, S;
|
|
1122
|
+
return l.isKanjiModeEnabled() ? (w = g(r.BYTE, e.BYTE, d), S = g(r.KANJI, e.KANJI, d)) : (w = g(r.BYTE_KANJI, e.BYTE, d), S = []), C.concat(h, w, S).sort(function(T, L) {
|
|
1123
1123
|
return T.index - L.index;
|
|
1124
1124
|
}).map(function(T) {
|
|
1125
1125
|
return {
|
|
@@ -1143,67 +1143,67 @@ var dn = pt.exports;
|
|
|
1143
1143
|
}
|
|
1144
1144
|
function f(d) {
|
|
1145
1145
|
return d.reduce(function(C, h) {
|
|
1146
|
-
const
|
|
1147
|
-
return
|
|
1146
|
+
const w = C.length - 1 >= 0 ? C[C.length - 1] : null;
|
|
1147
|
+
return w && w.mode === h.mode ? (C[C.length - 1].data += h.data, C) : (C.push(h), C);
|
|
1148
1148
|
}, []);
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function b(d) {
|
|
1151
1151
|
const C = [];
|
|
1152
1152
|
for (let h = 0; h < d.length; h++) {
|
|
1153
|
-
const
|
|
1154
|
-
switch (
|
|
1153
|
+
const w = d[h];
|
|
1154
|
+
switch (w.mode) {
|
|
1155
1155
|
case e.NUMERIC:
|
|
1156
1156
|
C.push([
|
|
1157
|
-
|
|
1158
|
-
{ data:
|
|
1159
|
-
{ data:
|
|
1157
|
+
w,
|
|
1158
|
+
{ data: w.data, mode: e.ALPHANUMERIC, length: w.length },
|
|
1159
|
+
{ data: w.data, mode: e.BYTE, length: w.length }
|
|
1160
1160
|
]);
|
|
1161
1161
|
break;
|
|
1162
1162
|
case e.ALPHANUMERIC:
|
|
1163
1163
|
C.push([
|
|
1164
|
-
|
|
1165
|
-
{ data:
|
|
1164
|
+
w,
|
|
1165
|
+
{ data: w.data, mode: e.BYTE, length: w.length }
|
|
1166
1166
|
]);
|
|
1167
1167
|
break;
|
|
1168
1168
|
case e.KANJI:
|
|
1169
1169
|
C.push([
|
|
1170
|
-
|
|
1171
|
-
{ data:
|
|
1170
|
+
w,
|
|
1171
|
+
{ data: w.data, mode: e.BYTE, length: u(w.data) }
|
|
1172
1172
|
]);
|
|
1173
1173
|
break;
|
|
1174
1174
|
case e.BYTE:
|
|
1175
1175
|
C.push([
|
|
1176
|
-
{ data:
|
|
1176
|
+
{ data: w.data, mode: e.BYTE, length: u(w.data) }
|
|
1177
1177
|
]);
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
1180
|
return C;
|
|
1181
1181
|
}
|
|
1182
1182
|
function v(d, C) {
|
|
1183
|
-
const h = {},
|
|
1184
|
-
let
|
|
1183
|
+
const h = {}, w = { start: {} };
|
|
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 D = 0; D < T.length; D++) {
|
|
1188
1188
|
const E = T[D], y = "" + I + D;
|
|
1189
|
-
L.push(y), h[y] = { node: E, lastCount: 0 },
|
|
1190
|
-
for (let H = 0; H <
|
|
1191
|
-
const N =
|
|
1192
|
-
h[N] && h[N].node.mode === E.mode ? (
|
|
1189
|
+
L.push(y), h[y] = { node: E, lastCount: 0 }, w[y] = {};
|
|
1190
|
+
for (let H = 0; H < S.length; H++) {
|
|
1191
|
+
const N = S[H];
|
|
1192
|
+
h[N] && h[N].node.mode === E.mode ? (w[N][y] = m(h[N].lastCount + E.length, E.mode) - m(h[N].lastCount, E.mode), h[N].lastCount += E.length) : (h[N] && (h[N].lastCount = E.length), w[N][y] = m(E.length, E.mode) + 4 + e.getCharCountIndicator(E.mode, C));
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
|
-
|
|
1195
|
+
S = L;
|
|
1196
1196
|
}
|
|
1197
|
-
for (let I = 0; I <
|
|
1198
|
-
|
|
1199
|
-
return { map:
|
|
1197
|
+
for (let I = 0; I < S.length; I++)
|
|
1198
|
+
w[S[I]].end = 0;
|
|
1199
|
+
return { map: w, table: h };
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function M(d, C) {
|
|
1202
1202
|
let h;
|
|
1203
|
-
const
|
|
1204
|
-
if (h = e.from(C,
|
|
1203
|
+
const w = e.getBestModeForData(d);
|
|
1204
|
+
if (h = e.from(C, w), h !== e.BYTE && h.bit < w.bit)
|
|
1205
1205
|
throw new Error('"' + d + '" cannot be encoded with mode ' + e.toString(h) + `.
|
|
1206
|
-
Suggested mode is: ` + e.toString(
|
|
1206
|
+
Suggested mode is: ` + e.toString(w));
|
|
1207
1207
|
switch (h === e.KANJI && !l.isKanjiModeEnabled() && (h = e.BYTE), h) {
|
|
1208
1208
|
case e.NUMERIC:
|
|
1209
1209
|
return new i(d);
|
|
@@ -1216,11 +1216,11 @@ var dn = pt.exports;
|
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
1218
|
t.fromArray = function(C) {
|
|
1219
|
-
return C.reduce(function(h,
|
|
1220
|
-
return typeof
|
|
1219
|
+
return C.reduce(function(h, w) {
|
|
1220
|
+
return typeof w == "string" ? h.push(M(w, null)) : w.data && h.push(M(w.data, w.mode)), h;
|
|
1221
1221
|
}, []);
|
|
1222
1222
|
}, t.fromString = function(C, h) {
|
|
1223
|
-
const
|
|
1223
|
+
const w = A(C, l.isKanjiModeEnabled()), S = b(w), I = v(S, h), T = a.find_path(I.map, "start", "end"), L = [];
|
|
1224
1224
|
for (let D = 1; D < T.length - 1; D++)
|
|
1225
1225
|
L.push(I.table[T[D]].node);
|
|
1226
1226
|
return t.fromArray(f(L));
|
|
@@ -1230,7 +1230,7 @@ var dn = pt.exports;
|
|
|
1230
1230
|
);
|
|
1231
1231
|
};
|
|
1232
1232
|
})(ht);
|
|
1233
|
-
const me =
|
|
1233
|
+
const me = R, ve = ue, fn = Kt, mn = Ot, gn = rt, hn = lt, Ie = at, Te = de, pn = Jt, ce = dt, yn = mt, wn = Y, Ce = ht;
|
|
1234
1234
|
function bn(t, e) {
|
|
1235
1235
|
const i = t.size, s = hn.getPositions(e);
|
|
1236
1236
|
for (let o = 0; o < s.length; o++) {
|
|
@@ -1301,22 +1301,22 @@ function An(t, e, i) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
function Bn(t, e, i) {
|
|
1303
1303
|
const s = me.getSymbolTotalCodewords(e), o = Te.getTotalCodewordsCount(e, i), n = s - o, r = Te.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 pn(m);
|
|
1304
|
-
let
|
|
1305
|
-
const v = new Array(r),
|
|
1304
|
+
let b = 0;
|
|
1305
|
+
const v = new Array(r), M = new Array(r);
|
|
1306
1306
|
let d = 0;
|
|
1307
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
|
-
v[T] = C.slice(
|
|
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
|
-
let
|
|
1314
|
-
for (
|
|
1313
|
+
let w = 0, S, I;
|
|
1314
|
+
for (S = 0; S < d; S++)
|
|
1315
1315
|
for (I = 0; I < r; I++)
|
|
1316
|
-
|
|
1317
|
-
for (
|
|
1316
|
+
S < v[I].length && (h[w++] = v[I][S]);
|
|
1317
|
+
for (S = 0; S < m; S++)
|
|
1318
1318
|
for (I = 0; I < r; I++)
|
|
1319
|
-
h[
|
|
1319
|
+
h[w++] = M[I][S];
|
|
1320
1320
|
return h;
|
|
1321
1321
|
}
|
|
1322
1322
|
function Pn(t, e, i, s) {
|
|
@@ -1362,7 +1362,7 @@ st.create = function(e, i) {
|
|
|
1362
1362
|
let s = ve.M, o, n;
|
|
1363
1363
|
return typeof i < "u" && (s = ve.from(i.errorCorrectionLevel, ve.M), o = ce.from(i.version), n = Ie.from(i.maskPattern), i.toSJISFunc && me.setToSJISFunction(i.toSJISFunc)), Pn(e, o, s, n);
|
|
1364
1364
|
};
|
|
1365
|
-
var yt = {},
|
|
1365
|
+
var yt = {}, ke = {};
|
|
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 yt = {}, Re = {};
|
|
|
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
|
-
const
|
|
1411
|
-
v = A[l[
|
|
1410
|
+
const M = Math.floor((m - g) / a), d = Math.floor((f - g) / a);
|
|
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
|
+
})(ke);
|
|
1417
1417
|
(function(t) {
|
|
1418
|
-
const e =
|
|
1418
|
+
const e = ke;
|
|
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,7 +1439,7 @@ var yt = {}, Re = {};
|
|
|
1439
1439
|
};
|
|
1440
1440
|
})(yt);
|
|
1441
1441
|
var wt = {};
|
|
1442
|
-
const
|
|
1442
|
+
const Mn = ke;
|
|
1443
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;
|
|
@@ -1448,7 +1448,7 @@ function Ee(t, e, i) {
|
|
|
1448
1448
|
let s = t + e;
|
|
1449
1449
|
return typeof i < "u" && (s += " " + i), s;
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function Sn(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);
|
|
@@ -1457,7 +1457,7 @@ function Mn(t, e, i) {
|
|
|
1457
1457
|
return s;
|
|
1458
1458
|
}
|
|
1459
1459
|
wt.render = function(e, i, s) {
|
|
1460
|
-
const o =
|
|
1460
|
+
const o = Mn.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="' + Sn(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
|
};
|
|
@@ -1506,10 +1506,10 @@ async function Nn(t, e = 350) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
var Un = { 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 Fn = { class: "flex items-start" }, Ln = { class: "flex flex-col gap-16 mt-16" },
|
|
1509
|
+
const Fn = { class: "flex items-start" }, Ln = { class: "flex flex-col gap-16 mt-16" }, Rn = ["src"], kn = /* @__PURE__ */ Ue({
|
|
1510
1510
|
__name: "LinkDeviceDialog",
|
|
1511
1511
|
setup(t) {
|
|
1512
|
-
const e =
|
|
1512
|
+
const e = Me(), i = tt(), s = Ze(), o = z(), n = z(), r = Un.crmUrl, l = z(), 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 Fn = { class: "flex items-start" }, Ln = { 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 = U("FmIcon"), v = U("FmSelect"), M = U("FmButton"), d = U("FmCard");
|
|
1533
1533
|
return F(), ee(d, { class: "p-24 max-w-[350px]" }, {
|
|
1534
1534
|
default: $(() => [
|
|
1535
1535
|
p("div", Fn, [
|
|
@@ -1537,7 +1537,7 @@ const Fn = { class: "flex items-start" }, Ln = { 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
1542
|
onClick: f[0] || (f[0] = (C) => c(s).close()),
|
|
1543
1543
|
class: "cursor-pointer"
|
|
@@ -1556,8 +1556,8 @@ const Fn = { class: "flex items-start" }, Ln = { class: "flex flex-col gap-16 mt
|
|
|
1556
1556
|
p("img", {
|
|
1557
1557
|
src: c(o),
|
|
1558
1558
|
class: "aspect-square w-full"
|
|
1559
|
-
}, null, 8,
|
|
1560
|
-
P(
|
|
1559
|
+
}, null, 8, Rn),
|
|
1560
|
+
P(M, {
|
|
1561
1561
|
class: "mx-auto",
|
|
1562
1562
|
variant: "plain",
|
|
1563
1563
|
icon: "content_copy",
|
|
@@ -1583,15 +1583,15 @@ const Fn = { class: "flex items-start" }, Ln = { class: "flex flex-col gap-16 mt
|
|
|
1583
1583
|
);
|
|
1584
1584
|
});
|
|
1585
1585
|
function u(m, f) {
|
|
1586
|
-
const
|
|
1587
|
-
o("update:modelValue",
|
|
1586
|
+
const b = m ? Nt([...s.modelValue || []], f) : Ut(s.modelValue || n, f);
|
|
1587
|
+
o("update:modelValue", b);
|
|
1588
1588
|
}
|
|
1589
1589
|
const g = J(() => {
|
|
1590
|
-
var
|
|
1591
|
-
const f = ((
|
|
1590
|
+
var b;
|
|
1591
|
+
const f = ((b = s.modelValue) == null ? void 0 : b.slice(0, 5).map(
|
|
1592
1592
|
(v) => {
|
|
1593
|
-
var
|
|
1594
|
-
return ((
|
|
1593
|
+
var M;
|
|
1594
|
+
return ((M = we.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,7 +1602,7 @@ const Fn = { class: "flex items-start" }, Ln = { class: "flex flex-col gap-16 mt
|
|
|
1602
1602
|
return Et(l, (m) => {
|
|
1603
1603
|
m && (r.value = "");
|
|
1604
1604
|
}), (m, f) => {
|
|
1605
|
-
const
|
|
1605
|
+
const b = U("FmChip"), v = U("FmField"), M = U("FmTextField"), d = U("FmCheckbox"), C = U("FmMenu");
|
|
1606
1606
|
return F(), V("div", Dn, [
|
|
1607
1607
|
P(C, {
|
|
1608
1608
|
modelValue: c(l),
|
|
@@ -1617,8 +1617,8 @@ const Fn = { class: "flex items-start" }, Ln = { class: "flex flex-col gap-16 mt
|
|
|
1617
1617
|
}, {
|
|
1618
1618
|
default: $(() => [
|
|
1619
1619
|
t.modelValue ? t.modelValue.length ? (F(), V("div", $n, [
|
|
1620
|
-
(F(!0), V(W, null, Pe(c(g), (h) => (F(), ee(
|
|
1621
|
-
key:
|
|
1620
|
+
(F(!0), V(W, null, Pe(c(g), (h, w) => (F(), ee(b, {
|
|
1621
|
+
key: w,
|
|
1622
1622
|
label: h,
|
|
1623
1623
|
class: "max-w-[130px] text-ellipsis"
|
|
1624
1624
|
}, null, 8, ["label"]))), 128))
|
|
@@ -1628,7 +1628,7 @@ const Fn = { class: "flex items-start" }, Ln = { class: "flex flex-col gap-16 mt
|
|
|
1628
1628
|
}, 8, ["append-icon"])
|
|
1629
1629
|
]),
|
|
1630
1630
|
default: $(() => [
|
|
1631
|
-
P(
|
|
1631
|
+
P(M, {
|
|
1632
1632
|
modelValue: c(r),
|
|
1633
1633
|
"onUpdate:modelValue": f[0] || (f[0] = (h) => Be(r) ? r.value = h : null),
|
|
1634
1634
|
placeholder: c(i)("connect.setting.allowedPhoneCountries.searchCountries"),
|
|
@@ -1639,7 +1639,7 @@ const Fn = { class: "flex items-start" }, Ln = { class: "flex flex-col gap-16 mt
|
|
|
1639
1639
|
value: null,
|
|
1640
1640
|
indeterminate: t.modelValue != null && t.modelValue.length > 0 && t.modelValue.length < n.length,
|
|
1641
1641
|
label: c(i)("connect.setting.allowedPhoneCountries.allCountries"),
|
|
1642
|
-
"model-value": t.modelValue == null,
|
|
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
1645
|
(F(!0), V(W, null, Pe(c(a), (h) => (F(), ee(d, {
|
|
@@ -1648,7 +1648,7 @@ const Fn = { class: "flex items-start" }, Ln = { class: "flex flex-col gap-16 mt
|
|
|
1648
1648
|
value: h.phoneCode,
|
|
1649
1649
|
label: `${h.name} (${h.phoneCode})`,
|
|
1650
1650
|
"model-value": !t.modelValue || t.modelValue.includes(h.phoneCode),
|
|
1651
|
-
"onUpdate:modelValue": (
|
|
1651
|
+
"onUpdate:modelValue": (w) => u(w, h.phoneCode)
|
|
1652
1652
|
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
1653
1653
|
]),
|
|
1654
1654
|
_: 1
|
|
@@ -1662,16 +1662,16 @@ var Ae = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "ht
|
|
|
1662
1662
|
const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, On = { class: "fm-typo-en-title-md-800" }, Yn = {
|
|
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" }, jn = { class: "fm-typo-en-title-sm-800" }, qn = { class: "space-y-24" }, Gn = { class: "space-y-8" }, Qn = { class: "fm-typo-en-title-sm-800" }, Xn = { class: "fm-typo-body-lg-400" }, Wn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Zn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, eo = { class: "space-y-8" }, to = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, no = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, so = { class: "space-y-8" }, io = { class: "space-y-8" }, ro = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, lo = { class: "space-y-8" }, ao = { class: "fm-typo-en-title-sm-800" }, co = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, uo = { class: "space-y-8" }, fo = { class: "fm-typo-en-title-sm-800" }, mo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, go = { class: "space-y-8" }, ho = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, po = { class: "space-y-8" }, yo = { class: "space-y-8" }, wo = { class: "fm-typo-en-title-sm-800" }, bo = { class: "space-y-8" }, vo = { class: "fm-typo-en-title-sm-800" }, Co = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, _o = { class: "flex justify-end pb-24" }, Eo = { class: "col-span-1 space-y-8 xs:hidden" }, Ao = { class: "fm-typo-en-body-lg-600" }, Bo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Po = { class: "fm-typo-en-body-lg-600" },
|
|
1665
|
+
}, Jn = { class: "col-span-2 flex flex-col xs:col-span-3 space-y-8" }, jn = { class: "fm-typo-en-title-sm-800" }, qn = { class: "space-y-24" }, Gn = { class: "space-y-8" }, Qn = { class: "fm-typo-en-title-sm-800" }, Xn = { class: "fm-typo-body-lg-400" }, Wn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Zn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, eo = { class: "space-y-8" }, to = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, no = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, so = { class: "space-y-8" }, io = { class: "space-y-8" }, ro = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, lo = { class: "space-y-8" }, ao = { class: "fm-typo-en-title-sm-800" }, co = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, uo = { class: "space-y-8" }, fo = { class: "fm-typo-en-title-sm-800" }, mo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, go = { class: "space-y-8" }, ho = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, po = { class: "space-y-8" }, yo = { class: "space-y-8" }, wo = { class: "fm-typo-en-title-sm-800" }, bo = { class: "space-y-8" }, vo = { class: "fm-typo-en-title-sm-800" }, Co = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, _o = { class: "flex justify-end pb-24" }, Eo = { class: "col-span-1 space-y-8 xs:hidden" }, Ao = { class: "fm-typo-en-body-lg-600" }, Bo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Po = { class: "fm-typo-en-body-lg-600" }, Mo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, So = { class: "fm-typo-en-body-lg-600" }, Io = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, To = { class: "fm-typo-en-body-lg-600" }, No = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Uo = { class: "fm-typo-en-body-lg-600" }, ts = /* @__PURE__ */ Ue({
|
|
1666
1666
|
__name: "Setting",
|
|
1667
1667
|
setup(t) {
|
|
1668
|
-
const e = Dt(), i = Pt(), s =
|
|
1668
|
+
const e = Dt(), i = Pt(), s = kt(), o = Me(), n = tt(), { global: r, minor: l } = Bt, a = Ze(), u = z(), g = z([]), A = z(null), m = Mt, 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 = Ae.appUrl, v = J(() => {
|
|
1672
1672
|
var E;
|
|
1673
|
-
return `https://${(E = u.value) == null ? void 0 : E.business}.${
|
|
1674
|
-
}),
|
|
1673
|
+
return `https://${(E = u.value) == null ? void 0 : E.business}.${b}`;
|
|
1674
|
+
}), M = z(), { t: d } = ot(), C = s.currentCountry.value || "MY", h = [
|
|
1675
1675
|
"user.name",
|
|
1676
1676
|
"user.gender",
|
|
1677
1677
|
"user.birthday",
|
|
@@ -1683,14 +1683,14 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1683
1683
|
return !((y = Lt[C]) != null && y.includes(E));
|
|
1684
1684
|
}
|
|
1685
1685
|
);
|
|
1686
|
-
async function
|
|
1686
|
+
async function w() {
|
|
1687
1687
|
a.open({
|
|
1688
1688
|
title: "",
|
|
1689
|
-
dialogComponent:
|
|
1689
|
+
dialogComponent: kn,
|
|
1690
1690
|
closeButton: !1
|
|
1691
1691
|
});
|
|
1692
1692
|
}
|
|
1693
|
-
async function
|
|
1693
|
+
async function S(E) {
|
|
1694
1694
|
await Tt.remove(
|
|
1695
1695
|
"Are you sure you want to unlink this device?",
|
|
1696
1696
|
"Unlink device",
|
|
@@ -1711,10 +1711,10 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1711
1711
|
var H;
|
|
1712
1712
|
const E = $t(u.value);
|
|
1713
1713
|
console.log(u.value), E.welcomeMessage && !((H = E.welcomeMessage) != null && H.content) && (E.welcomeMessage.content = "Hi there, you have been invited to join our membership");
|
|
1714
|
-
const y =
|
|
1715
|
-
|
|
1714
|
+
const y = St.parse(E);
|
|
1715
|
+
M.value === null && y.image ? await ie.delete(ie.coverImagePath()) : M.value && (y.image = await ie.update(
|
|
1716
1716
|
ie.coverImagePath(),
|
|
1717
|
-
|
|
1717
|
+
M.value
|
|
1718
1718
|
)), await je.update(y), await n.readMembership(), u.value = n.membership;
|
|
1719
1719
|
},
|
|
1720
1720
|
{
|
|
@@ -1779,7 +1779,7 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1779
1779
|
X(" https:// ", -1)
|
|
1780
1780
|
])]),
|
|
1781
1781
|
append: $(() => [
|
|
1782
|
-
X(" ." + B(c(
|
|
1782
|
+
X(" ." + B(c(b)) + " ", 1),
|
|
1783
1783
|
P(N, {
|
|
1784
1784
|
icon: "content_copy",
|
|
1785
1785
|
variant: "tertiary",
|
|
@@ -1795,7 +1795,7 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1795
1795
|
"aspect-ratio": "3/1",
|
|
1796
1796
|
thumbnail: c(u).image || void 0,
|
|
1797
1797
|
"onUpdate:file": y[3] || (y[3] = async (_) => {
|
|
1798
|
-
|
|
1798
|
+
M.value = _, _ || (c(u).image = null);
|
|
1799
1799
|
})
|
|
1800
1800
|
}, null, 8, ["thumbnail"]),
|
|
1801
1801
|
p("div", Gn, [
|
|
@@ -1804,10 +1804,10 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1804
1804
|
variant: "plain",
|
|
1805
1805
|
icon: "link",
|
|
1806
1806
|
label: c(d)("connect.setting.counterApp.linkDevice"),
|
|
1807
|
-
onClick:
|
|
1807
|
+
onClick: w
|
|
1808
1808
|
}, null, 8, ["label"]),
|
|
1809
|
-
(F(!0), V(W, null, Pe(c(o).locationDevices, (_,
|
|
1810
|
-
key:
|
|
1809
|
+
(F(!0), V(W, null, Pe(c(o).locationDevices, (_, k) => (F(), ee(ge, {
|
|
1810
|
+
key: k,
|
|
1811
1811
|
variant: "outlined",
|
|
1812
1812
|
class: "flex items-center justify-between px-16 py-12"
|
|
1813
1813
|
}, {
|
|
@@ -1822,7 +1822,7 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1822
1822
|
P(N, {
|
|
1823
1823
|
icon: "link_off",
|
|
1824
1824
|
variant: "tertiary",
|
|
1825
|
-
onClick: (K) =>
|
|
1825
|
+
onClick: (K) => S(_._id)
|
|
1826
1826
|
}, null, 8, ["onClick"])
|
|
1827
1827
|
]),
|
|
1828
1828
|
_: 2
|
|
@@ -1851,7 +1851,7 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1851
1851
|
icon: "arrow_forward",
|
|
1852
1852
|
"icon-position": "right",
|
|
1853
1853
|
disabled: !c(o).isPremium,
|
|
1854
|
-
onClick: y[4] || (y[4] = (
|
|
1854
|
+
onClick: y[4] || (y[4] = (k) => c(e).push({
|
|
1855
1855
|
name: c(Vt)["$connect-SETTING_ADVERTISEMENTS"]
|
|
1856
1856
|
}))
|
|
1857
1857
|
}, null, 8, ["label", "disabled"])
|
|
@@ -1872,7 +1872,7 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1872
1872
|
}),
|
|
1873
1873
|
"onUpdate:modelValue": y[5] || (y[5] = (_) => c(u).brand = _)
|
|
1874
1874
|
}, null, 8, ["model-value", "label", "helper-text"]),
|
|
1875
|
-
P(
|
|
1875
|
+
P(Rt, {
|
|
1876
1876
|
modelValue: c(u).welcomeMessage,
|
|
1877
1877
|
"onUpdate:modelValue": y[6] || (y[6] = (_) => c(u).welcomeMessage = _),
|
|
1878
1878
|
variables: c(h),
|
|
@@ -1897,8 +1897,8 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1897
1897
|
})),
|
|
1898
1898
|
placeholder: c(A) ? c(A).emailAddress : c(d)("connect.setting.email.noAddressAvailable"),
|
|
1899
1899
|
"onUpdate:modelValue": y[7] || (y[7] = (_) => {
|
|
1900
|
-
var
|
|
1901
|
-
(
|
|
1900
|
+
var k, K;
|
|
1901
|
+
(k = c(u)) != null && k.email || (c(u).email = {
|
|
1902
1902
|
from: _,
|
|
1903
1903
|
name: (K = c(g).find((pe) => pe.emailAddress == _)) == null ? void 0 : K.name
|
|
1904
1904
|
}), c(u).email.from = _ || null;
|
|
@@ -1911,8 +1911,8 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
1911
1911
|
disabled: "",
|
|
1912
1912
|
placeholder: ((Ye = c(A)) == null ? void 0 : Ye.name) || null,
|
|
1913
1913
|
"onUpdate:modelValue": y[8] || (y[8] = (_) => {
|
|
1914
|
-
var
|
|
1915
|
-
(
|
|
1914
|
+
var k;
|
|
1915
|
+
(k = c(u)) != null && k.email || (c(u).email = {
|
|
1916
1916
|
name: _
|
|
1917
1917
|
}), c(u).email.name = _ || null;
|
|
1918
1918
|
}),
|
|
@@ -2002,7 +2002,7 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
2002
2002
|
class: "flex flex-col p-24 gap-8"
|
|
2003
2003
|
}, {
|
|
2004
2004
|
default: $(() => {
|
|
2005
|
-
var _,
|
|
2005
|
+
var _, k, K;
|
|
2006
2006
|
return [
|
|
2007
2007
|
p("div", Ao, B(c(d)("connect.setting.summary.title")), 1),
|
|
2008
2008
|
P(Ct, { class: "my-4" }),
|
|
@@ -2011,8 +2011,8 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
2011
2011
|
p("div", Po, B(c(u).name), 1)
|
|
2012
2012
|
]),
|
|
2013
2013
|
p("div", null, [
|
|
2014
|
-
p("div",
|
|
2015
|
-
p("div",
|
|
2014
|
+
p("div", Mo, B(c(d)("connect.setting.summary.advertisement")), 1),
|
|
2015
|
+
p("div", So, B((((_ = c(u).advertisements) == null ? void 0 : _.length) ?? 0) || c(d)("connect.setting.summary.noAds")), 1)
|
|
2016
2016
|
]),
|
|
2017
2017
|
p("div", null, [
|
|
2018
2018
|
p("div", Io, B(c(d)("connect.setting.summary.freeCredit")), 1),
|
|
@@ -2020,7 +2020,7 @@ const Kn = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
2020
2020
|
]),
|
|
2021
2021
|
p("div", null, [
|
|
2022
2022
|
p("div", No, B(c(d)("connect.setting.summary.locations")), 1),
|
|
2023
|
-
p("div", Uo, B(!c(u).targetLocation || c(u).targetLocation.length == c(
|
|
2023
|
+
p("div", Uo, B(!c(u).targetLocation || c(u).targetLocation.length == c(Me)().locations.length ? c(d)("connect.setting.summary.allLocations") : (K = (k = c(u)) == null ? void 0 : k.targetLocation) == null ? void 0 : K.map(
|
|
2024
2024
|
(pe) => c(o).locations.find((_t) => _t._id == pe).name
|
|
2025
2025
|
).join(", ")), 1)
|
|
2026
2026
|
])
|