@everymatrix/player-account-controller 1.94.27 → 1.94.28
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/components/{GeneralLogout-C4zscfCx.cjs → GeneralLogout-BFVb3wWj.cjs} +1 -1
- package/components/{GeneralLogout-CpE101GN.js → GeneralLogout-DHOR9w8K.js} +1 -1
- package/components/{GeneralLogout-CXb7OdeA.js → GeneralLogout-DV9OjLlf.js} +1 -1
- package/components/{PlayerAccountBettingHistory-BEC5Dbk4.cjs → PlayerAccountBettingHistory-CV_NwDUW.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-D2UOjGmQ.js → PlayerAccountBettingHistory-D8y9bsr9.js} +1 -1
- package/components/{PlayerAccountBettingHistory-DdxkAioI.js → PlayerAccountBettingHistory-l46vpI8x.js} +1 -1
- package/components/{PlayerAccountBiometrics-BoITt8OK.js → PlayerAccountBiometrics-C-_u2o9x.js} +2 -2
- package/components/{PlayerAccountBiometrics-CkHgmfP_.cjs → PlayerAccountBiometrics-DxCfULWf.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DufGqDU4.js → PlayerAccountBiometrics-rkMK1luo.js} +2 -2
- package/components/{PlayerAccountBiometricsAction-Dpgb3qw8.js → PlayerAccountBiometricsAction-B1To1M7_.js} +1 -1
- package/components/{PlayerAccountBiometricsAction-B5FkZd-r.js → PlayerAccountBiometricsAction-CLLcznc0.js} +1 -1
- package/components/{PlayerAccountBiometricsAction-CrfbCZc0.cjs → PlayerAccountBiometricsAction-DcVbficW.cjs} +1 -1
- package/components/{PlayerAccountClosure-BkZo4ds8.js → PlayerAccountClosure-9BJJUw4y.js} +1 -1
- package/components/{PlayerAccountClosure-CTVdrvUs.cjs → PlayerAccountClosure-BCEQObeh.cjs} +1 -1
- package/components/{PlayerAccountClosure-Rn4rUpUm.js → PlayerAccountClosure-C0gcRjPs.js} +1 -1
- package/components/{PlayerAccountController-DgE57QwT.js → PlayerAccountController-CSOHDfL1.js} +23 -23
- package/components/{PlayerAccountController-CO8cZYgr.js → PlayerAccountController-CrPbCiX4.js} +23 -23
- package/components/{PlayerAccountController-BBk-9TOg.cjs → PlayerAccountController-DXH2r3ql.cjs} +2 -2
- package/components/{PlayerAccountGamingLimits-CxpBIVY6.js → PlayerAccountGamingLimits-Bfayv_fx.js} +2 -2
- package/components/{PlayerAccountGamingLimits-V927kAz2.js → PlayerAccountGamingLimits-CH4Z_SZ-.js} +2 -2
- package/components/{PlayerAccountGamingLimits-B-5nWzRS.cjs → PlayerAccountGamingLimits-D96Wli1p.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BveODcSU.js → PlayerAccountGamingLimitsConfirmationModal-64TbUlzT.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CJgeqRLo.cjs → PlayerAccountGamingLimitsConfirmationModal-C830PkGa.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CG7r6PIK.js → PlayerAccountGamingLimitsConfirmationModal-DZOxNLNk.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-Cyu-XItn.cjs → PlayerAccountGamingLimitsGroupEdit-7SDrgQLG.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-DXbMOl6-.js → PlayerAccountGamingLimitsGroupEdit-Bn0WvKaI.js} +5 -5
- package/components/{PlayerAccountGamingLimitsGroupEdit-vujLn0t-.js → PlayerAccountGamingLimitsGroupEdit-DG_zT_Z_.js} +5 -5
- package/components/{PlayerAccountGamingLimitsHistory2-C1J6OpLl.js → PlayerAccountGamingLimitsHistory2-C7gojxsf.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-C6HksI_l.cjs → PlayerAccountGamingLimitsHistory2-CKSlKu2J.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-ch2erx5S.js → PlayerAccountGamingLimitsHistory2-COuVH161.js} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-C-DFY5Ok.cjs → PlayerAccountGamingLimitsInfoCard-BhSRpJTL.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-C17cmXa_.js → PlayerAccountGamingLimitsInfoCard-CMCH0U3J.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-g7I5qkLj.js → PlayerAccountGamingLimitsInfoCard-MNGZdBDT.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-5DbisV99.js → PlayerAccountGamingLimitsPage2Gm16-BYwOQVie.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-BD2PAPr7.cjs → PlayerAccountGamingLimitsPage2Gm16-Efl3TDTg.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-vkWd1ihI.js → PlayerAccountGamingLimitsPage2Gm16-w1veWq9G.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-7JDTXTtQ.js → PlayerAccountGamingLimitsPopup-BoULPDN6.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-CBrl659u.js → PlayerAccountGamingLimitsPopup-BsbREu0h.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-CvgPjhi-.cjs → PlayerAccountGamingLimitsPopup-Ce_28LKV.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-jQr15q3J.js → PlayerAccountGamingLimitsWrapper2-B_hVmWhf.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-DWD-0F-D.js → PlayerAccountGamingLimitsWrapper2-Bgyb9Jhz.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-Bm2vuvTx.cjs → PlayerAccountGamingLimitsWrapper2-DG8b-IVT.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-B_cFWoG1.cjs → PlayerAccountGeneralConfirmationModal-0Ow5pxhh.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-D7km7Zog.js → PlayerAccountGeneralConfirmationModal-Biw9FEZO.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-Bnwi7Hps.js → PlayerAccountGeneralConfirmationModal-Dx8dTnsN.js} +1 -1
- package/components/{PlayerAccountMenu-D-jM_PCb.js → PlayerAccountMenu-BHVN00Hp.js} +2 -2
- package/components/{PlayerAccountMenu-7UYVqYH-.js → PlayerAccountMenu-C2Ezvoz_.js} +2 -2
- package/components/{PlayerAccountMenu-CBhFGN5v.cjs → PlayerAccountMenu-deILI02P.cjs} +1 -1
- package/components/{PlayerAccountModal-InDwj5CZ.js → PlayerAccountModal-B9mBmadl.js} +1 -1
- package/components/{PlayerAccountModal-BQZExMfG.cjs → PlayerAccountModal-DPSatH1F.cjs} +1 -1
- package/components/{PlayerAccountModal-BxFPmZIg.js → PlayerAccountModal-Dad4GVfU.js} +1 -1
- package/components/{PlayerAccountNotifications-C7bklpfG.cjs → PlayerAccountNotifications-B4X33GVn.cjs} +1 -1
- package/components/{PlayerAccountNotifications-kDZBI187.js → PlayerAccountNotifications-B8CdKh__.js} +1 -1
- package/components/{PlayerAccountNotifications-BKQa6iL8.js → PlayerAccountNotifications-CBY3KNYJ.js} +1 -1
- package/components/{PlayerAccountProductRestriction-DbEkMKO3.js → PlayerAccountProductRestriction-B3Cn-WDe.js} +3 -3
- package/components/{PlayerAccountProductRestriction-CFIjlnOX.js → PlayerAccountProductRestriction-CPU4xLgm.js} +3 -3
- package/components/{PlayerAccountProductRestriction-B2pinL7l.cjs → PlayerAccountProductRestriction-RhYK0xjV.cjs} +1 -1
- package/components/{PlayerAccountReviewFrequency-DjERKwb7.js → PlayerAccountReviewFrequency-BqnLnzof.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-BYWEOhzw.js → PlayerAccountReviewFrequency-CeBQ_NDS.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-DMwFO_R2.cjs → PlayerAccountReviewFrequency-T8UuOdaF.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusion-BM_tkQy1.js → PlayerAccountSelfExclusion-B0NTFqD4.js} +2 -2
- package/components/{PlayerAccountSelfExclusion-Byk2bLi5.js → PlayerAccountSelfExclusion-BcbpJMR3.js} +2 -2
- package/components/{PlayerAccountSelfExclusion-CMk-HM8u.cjs → PlayerAccountSelfExclusion-CvTwYyt0.cjs} +1 -1
- package/components/{PlayerAccountTimeout-BKqM9z9S.cjs → PlayerAccountTimeout-B4aNgv8R.cjs} +2 -2
- package/components/{PlayerAccountTimeout-CvNSJCuP.js → PlayerAccountTimeout-CJssCDD8.js} +3 -3
- package/components/{PlayerAccountTimeout-B52QzMyN.js → PlayerAccountTimeout-Co9WBjqw.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-DfYoqbPR.js → PlayerAccountTransactionsHistory-B3P50G4d.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-Ct9bbtaS.js → PlayerAccountTransactionsHistory-B_B1O6lk.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-vlF8HWQr.cjs → PlayerAccountTransactionsHistory-DjirboOY.cjs} +1 -1
- package/components/{PlayerActiveBonuses-C5pOksPm.js → PlayerActiveBonuses-BzjqOm2E.js} +2 -2
- package/components/{PlayerActiveBonuses-DYEcrFhQ.js → PlayerActiveBonuses-D0kgukX6.js} +2 -2
- package/components/{PlayerActiveBonuses-iTkyXHsD.cjs → PlayerActiveBonuses-lM_wZChL.cjs} +1 -1
- package/components/{PlayerBonusCard-DgHQKXJE.cjs → PlayerBonusCard-CNmB_5sK.cjs} +1 -1
- package/components/{PlayerBonusCard-Bggf2jM-.js → PlayerBonusCard-j1Ks9iww.js} +2 -2
- package/components/{PlayerBonusCard-CVByVySk.js → PlayerBonusCard-ztUxqyX7.js} +2 -2
- package/components/{PlayerBonusHistory-Cvq_m9mr.cjs → PlayerBonusHistory-B0wQpvD6.cjs} +1 -1
- package/components/{PlayerBonusHistory-A1LztGVe.js → PlayerBonusHistory-BV0p8FJB.js} +2 -2
- package/components/{PlayerBonusHistory-vvCROk6P.js → PlayerBonusHistory-DUGWQ0Vm.js} +2 -2
- package/components/{PlayerChangePassword-Ck2ADweJ.cjs → PlayerChangePassword-DbaQzSfI.cjs} +1 -1
- package/components/{PlayerChangePassword-DfLb_jZA.js → PlayerChangePassword-Dz9_jTvS.js} +1 -1
- package/components/{PlayerChangePassword-BpW3ZGPE.js → PlayerChangePassword-QwKZR2N3.js} +1 -1
- package/components/{PlayerDeposit-HbzBoc73.js → PlayerDeposit-D1UQtmKj.js} +1 -1
- package/components/{PlayerDeposit-CCzkiEdB.cjs → PlayerDeposit-DN6kN01y.cjs} +1 -1
- package/components/{PlayerDeposit-CpU80gtj.js → PlayerDeposit-v91D54Ed.js} +1 -1
- package/components/{PlayerGamingHistory-DpSeY1cI.js → PlayerGamingHistory-6EXt5gic.js} +3 -3
- package/components/{PlayerGamingHistory-D7i_K4mx.js → PlayerGamingHistory-Bp2RN37F.js} +3 -3
- package/components/{PlayerGamingHistory-C-1-WJwY.cjs → PlayerGamingHistory-CaeEjYVd.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-BubG3Pn4.cjs → PlayerPendingWithdrawals-Boe2o7y6.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-C9gR_Y0d.js → PlayerPendingWithdrawals-DNyukUkp.js} +1 -1
- package/components/{PlayerPendingWithdrawals-BwdyTHVG.js → PlayerPendingWithdrawals-ULlRd2xK.js} +1 -1
- package/components/{PlayerProfileInfo-DerxJF3S.js → PlayerProfileInfo-0bSBuf2S.js} +3 -3
- package/components/{PlayerProfileInfo-DNlp4qra.cjs → PlayerProfileInfo-DazL2zAt.cjs} +1 -1
- package/components/{PlayerProfileInfo-C5By7H5W.js → PlayerProfileInfo-ixxu3QKj.js} +3 -3
- package/components/{PlayerRealityCheck-CQS6Dta8.js → PlayerRealityCheck-CGQqUhGB.js} +1 -1
- package/components/{PlayerRealityCheck-1wRbKOda.js → PlayerRealityCheck-CjRqA9yH.js} +1 -1
- package/components/{PlayerRealityCheck-DrzWTJ0l.cjs → PlayerRealityCheck-DWiI3x0p.cjs} +1 -1
- package/components/{PlayerTransactionHistory-DSCZ7OVe.js → PlayerTransactionHistory-BX6tGsNe.js} +1 -1
- package/components/{PlayerTransactionHistory-BIxhXd3Y.js → PlayerTransactionHistory-C9Hk_Fki.js} +1 -1
- package/components/{PlayerTransactionHistory-DlRKQ_LH.cjs → PlayerTransactionHistory-CIXbZYC0.cjs} +1 -1
- package/components/{PlayerWithdrawal-B8PG-Cig.js → PlayerWithdrawal-Df2KwQdP.js} +1 -1
- package/components/{PlayerWithdrawal-B5lYxcpO.cjs → PlayerWithdrawal-Dt9hF3TL.cjs} +1 -1
- package/components/{PlayerWithdrawal-zFpUyw_q.js → PlayerWithdrawal-mG02wrsB.js} +1 -1
- package/components/{QrSessionGenerator-ChEh7Qwb.js → QrSessionGenerator-CJM6TIuB.js} +1 -1
- package/components/{QrSessionGenerator-BeNaNuyX.cjs → QrSessionGenerator-CsBGsqXR.cjs} +1 -1
- package/components/{QrSessionGenerator-DuxpFDzg.js → QrSessionGenerator-DwmJ6V57.js} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-9c0f6c58-CeHgKkkN.js → index-9c0f6c58-CPGvOhwM.js} +1 -1
- package/stencil/{index-9c0f6c58-DGo4u6sZ.js → index-9c0f6c58-CZJp9Ksm.js} +1 -1
- package/stencil/{index-9c0f6c58-CLDl-isE.cjs → index-9c0f6c58-Cl0TcV5w.cjs} +1 -1
- package/stencil/{player-kyc-verification-Cm-zE62-.js → player-kyc-verification-CvBWt2j6.js} +145 -136
- package/stencil/player-kyc-verification-NcanG7Cb.cjs +210 -0
- package/stencil/{player-kyc-verification-ByWsZG6l.js → player-kyc-verification-fcpUfHN5.js} +139 -130
- package/stencil/player-kyc-verification-9Ic-jm7L.cjs +0 -210
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var m = (e,
|
|
1
|
+
var m = (e, t, o) => new Promise((i, a) => {
|
|
2
2
|
var r = (c) => {
|
|
3
3
|
try {
|
|
4
4
|
d(o.next(c));
|
|
5
|
-
} catch (
|
|
6
|
-
a(
|
|
5
|
+
} catch (u) {
|
|
6
|
+
a(u);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, s = (c) => {
|
|
9
9
|
try {
|
|
10
10
|
d(o.throw(c));
|
|
11
|
-
} catch (
|
|
12
|
-
a(
|
|
11
|
+
} catch (u) {
|
|
12
|
+
a(u);
|
|
13
13
|
}
|
|
14
|
-
}, d = (c) => c.done ?
|
|
15
|
-
d((o = o.apply(e,
|
|
14
|
+
}, d = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(r, s);
|
|
15
|
+
d((o = o.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as S, p as
|
|
17
|
+
import { b as S, p as b, r as x, h as n, F as v } from "./index-9c0f6c58-CZJp9Ksm.js";
|
|
18
18
|
import { a as P } from "./app-globals-0f993ce5-XUXOuUQl.js";
|
|
19
19
|
var D = () => {
|
|
20
|
-
const e = import.meta.url,
|
|
21
|
-
return e !== "" && (
|
|
20
|
+
const e = import.meta.url, t = {};
|
|
21
|
+
return e !== "" && (t.resourcesUrl = new URL(".", e).href), b(t);
|
|
22
22
|
};
|
|
23
23
|
D().then((e) => m(void 0, null, function* () {
|
|
24
|
-
return yield P(), S([["player-kyc-verification", [[1, "player-kyc-verification", { hideVulnerabilityCheck: [1, "hide-vulnerability-check"], userId: [1, "user-id"], session: [1], language: [1], endpoint: [1], translationUrl: [1, "translation-url"], clientStyling: [1, "client-styling"], verifiedIcon: [1, "verified-icon"], failedIcon: [1, "failed-icon"], defaultIcon: [1, "default-icon"], clientStylingUrl: [1, "client-styling-url"], mbSource: [1, "mb-source"], hideKycDescription: [1, "hide-kyc-description"], verificationType: [32], hasAllDocumentsUploaded: [32], verificationsGeneralStatus: [32], isLoading: [32], isKYCLoading: [32], selectedFile: [32], uploadingStatus: [32], uploadSizeExceeded: [32], expandedOnDesktop: [32], isDataLoading: [32] }, null, { translationUrl: ["handleNewTranslations"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"] }]]]], e);
|
|
24
|
+
return yield P(), S([["player-kyc-verification", [[1, "player-kyc-verification", { hideVulnerabilityCheck: [1, "hide-vulnerability-check"], userId: [1, "user-id"], session: [1], language: [1], endpoint: [1], translationUrl: [1, "translation-url"], clientStyling: [1, "client-styling"], verifiedIcon: [1, "verified-icon"], failedIcon: [1, "failed-icon"], defaultIcon: [1, "default-icon"], clientStylingUrl: [1, "client-styling-url"], mbSource: [1, "mb-source"], hideKycDescription: [1, "hide-kyc-description"], overridableTypesStr: [1, "overridable-types-str"], verificationType: [32], hasAllDocumentsUploaded: [32], verificationsGeneralStatus: [32], isLoading: [32], isKYCLoading: [32], selectedFile: [32], uploadingStatus: [32], uploadSizeExceeded: [32], expandedOnDesktop: [32], isDataLoading: [32] }, null, { translationUrl: ["handleNewTranslations"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"] }]]]], e);
|
|
25
25
|
}));
|
|
26
26
|
const I = "en";
|
|
27
|
-
let
|
|
27
|
+
let h = {
|
|
28
28
|
en: {
|
|
29
29
|
loading: "Loading, please wait ...",
|
|
30
30
|
noVerificationRequired: "There is no verification required for your account at this moment.",
|
|
@@ -612,68 +612,68 @@ let p = {
|
|
|
612
612
|
Voucher: "Voucher"
|
|
613
613
|
}
|
|
614
614
|
};
|
|
615
|
-
const
|
|
615
|
+
const w = (e) => new Promise((t) => {
|
|
616
616
|
fetch(e).then((o) => o.json()).then((o) => {
|
|
617
|
-
Object.keys(o).forEach((
|
|
618
|
-
|
|
619
|
-
for (let a in o[
|
|
620
|
-
|
|
621
|
-
}),
|
|
617
|
+
Object.keys(o).forEach((i) => {
|
|
618
|
+
h[i] || (h[i] = {});
|
|
619
|
+
for (let a in o[i])
|
|
620
|
+
h[i][a] = o[i][a];
|
|
621
|
+
}), t(!0);
|
|
622
622
|
});
|
|
623
|
-
}),
|
|
624
|
-
const
|
|
625
|
-
return
|
|
626
|
-
}, O = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),
|
|
627
|
-
function
|
|
623
|
+
}), l = (e, t, o) => {
|
|
624
|
+
const i = t;
|
|
625
|
+
return h[i !== void 0 && i in h ? i : I][e];
|
|
626
|
+
}, O = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), p = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
627
|
+
function C(e, t) {
|
|
628
628
|
if (e) {
|
|
629
629
|
const o = document.createElement("style");
|
|
630
|
-
o.innerHTML =
|
|
630
|
+
o.innerHTML = t, e.appendChild(o);
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
function k(e,
|
|
634
|
-
if (!e || !
|
|
633
|
+
function k(e, t) {
|
|
634
|
+
if (!e || !t)
|
|
635
635
|
return;
|
|
636
|
-
const o = new URL(
|
|
637
|
-
fetch(o.href).then((
|
|
636
|
+
const o = new URL(t);
|
|
637
|
+
fetch(o.href).then((i) => i.text()).then((i) => {
|
|
638
638
|
const a = document.createElement("style");
|
|
639
|
-
a.innerHTML =
|
|
640
|
-
}).catch((
|
|
641
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
639
|
+
a.innerHTML = i, e && e.appendChild(a);
|
|
640
|
+
}).catch((i) => {
|
|
641
|
+
console.error("There was an error while trying to load client styling from URL", i);
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
|
-
function B(e,
|
|
644
|
+
function B(e, t, o, i = !1) {
|
|
645
645
|
if (!window.emMessageBus)
|
|
646
646
|
return;
|
|
647
|
-
if (!("adoptedStyleSheets" in Document.prototype) || !
|
|
648
|
-
return o = F(e,
|
|
649
|
-
window[
|
|
650
|
-
const r = o.unsubscribe.bind(o),
|
|
651
|
-
if (window[
|
|
652
|
-
const d = window[
|
|
653
|
-
d.refCount > 1 ? d.refCount = d.refCount - 1 : delete window[
|
|
647
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !i)
|
|
648
|
+
return o = F(e, t), o;
|
|
649
|
+
window[p] || (window[p] = {}), o = L(e, t);
|
|
650
|
+
const r = o.unsubscribe.bind(o), s = () => {
|
|
651
|
+
if (window[p][t]) {
|
|
652
|
+
const d = window[p][t];
|
|
653
|
+
d.refCount > 1 ? d.refCount = d.refCount - 1 : delete window[p][t];
|
|
654
654
|
}
|
|
655
655
|
r();
|
|
656
656
|
};
|
|
657
|
-
return o.unsubscribe =
|
|
657
|
+
return o.unsubscribe = s, o;
|
|
658
658
|
}
|
|
659
|
-
function F(e,
|
|
659
|
+
function F(e, t) {
|
|
660
660
|
const o = document.createElement("style");
|
|
661
|
-
return window.emMessageBus.subscribe(
|
|
662
|
-
e && (o.innerHTML =
|
|
661
|
+
return window.emMessageBus.subscribe(t, (i) => {
|
|
662
|
+
e && (o.innerHTML = i, e.appendChild(o));
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
|
-
function L(e,
|
|
666
|
-
return window.emMessageBus.subscribe(
|
|
665
|
+
function L(e, t) {
|
|
666
|
+
return window.emMessageBus.subscribe(t, (o) => {
|
|
667
667
|
if (!e)
|
|
668
668
|
return;
|
|
669
|
-
const
|
|
670
|
-
let r = a[
|
|
671
|
-
r ? a[
|
|
669
|
+
const i = e.getRootNode(), a = window[p];
|
|
670
|
+
let r = a[t] && a[t].sheet;
|
|
671
|
+
r ? a[t].refCount = a[t].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(o), a[t] = {
|
|
672
672
|
sheet: r,
|
|
673
673
|
refCount: 1
|
|
674
674
|
});
|
|
675
|
-
const
|
|
676
|
-
|
|
675
|
+
const s = i.adoptedStyleSheets || [];
|
|
676
|
+
s.includes(r) || (i.adoptedStyleSheets = [...s, r]);
|
|
677
677
|
});
|
|
678
678
|
}
|
|
679
679
|
const A = `:host {
|
|
@@ -887,10 +887,10 @@ button, select {
|
|
|
887
887
|
}
|
|
888
888
|
}`, U = A, V = class {
|
|
889
889
|
constructor(e) {
|
|
890
|
-
|
|
890
|
+
x(this, e), this.scriptInjected = !1, this.MAX_UPLOAD_SIZE = 5e7, this.userAgent = window.navigator.userAgent, this.isMobile = O(this.userAgent), this.getKYCCustomerStatus = () => {
|
|
891
891
|
try {
|
|
892
892
|
this.isKYCLoading = !0;
|
|
893
|
-
let
|
|
893
|
+
let t = new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus?language=${this.language}`);
|
|
894
894
|
const o = {
|
|
895
895
|
method: "POST",
|
|
896
896
|
headers: {
|
|
@@ -899,29 +899,29 @@ button, select {
|
|
|
899
899
|
},
|
|
900
900
|
body: JSON.stringify({})
|
|
901
901
|
};
|
|
902
|
-
fetch(
|
|
903
|
-
if (
|
|
904
|
-
return
|
|
905
|
-
throw new Error("HTTP status " +
|
|
906
|
-
}).then((
|
|
902
|
+
fetch(t.href, o).then((i) => {
|
|
903
|
+
if (i.status === 200)
|
|
904
|
+
return i.json();
|
|
905
|
+
throw new Error("HTTP status " + i.status);
|
|
906
|
+
}).then((i) => {
|
|
907
907
|
var a;
|
|
908
|
-
this.verificationType =
|
|
909
|
-
var
|
|
908
|
+
this.verificationType = i.verifications, ((a = this.verificationType) === null || a === void 0 ? void 0 : a.length) > 0 && (this.hideKycDescription === "true" && (this.hasAllDocumentsUploaded = this.verificationType.every((r) => {
|
|
909
|
+
var s;
|
|
910
910
|
if ((r == null ? void 0 : r.documents.length) !== 0)
|
|
911
|
-
return (
|
|
911
|
+
return (s = r == null ? void 0 : r.documents) === null || s === void 0 ? void 0 : s.some((d) => d.status === "Uploaded");
|
|
912
912
|
})), this.verificationsGeneralStatus = this.getGeneralVerificationStatus(this.verificationType), Array.isArray(this.verificationType) && this.handleVerificationShuftiMessage(this.verificationType)), this.isKYCLoading = !1;
|
|
913
|
-
}).catch((
|
|
914
|
-
this.isKYCLoading = !1, console.error(
|
|
913
|
+
}).catch((i) => {
|
|
914
|
+
this.isKYCLoading = !1, console.error(i);
|
|
915
915
|
}).finally(() => {
|
|
916
916
|
this.isDataLoading = !1;
|
|
917
917
|
});
|
|
918
|
-
} catch (
|
|
919
|
-
console.error("Error fetching verification types:",
|
|
918
|
+
} catch (t) {
|
|
919
|
+
console.error("Error fetching verification types:", t);
|
|
920
920
|
}
|
|
921
|
-
}, this.handleShuftiMessage = (
|
|
922
|
-
const o =
|
|
923
|
-
if (
|
|
924
|
-
switch (
|
|
921
|
+
}, this.handleShuftiMessage = (t) => {
|
|
922
|
+
const o = t.data, i = o.event || o.verification_status;
|
|
923
|
+
if (i)
|
|
924
|
+
switch (i) {
|
|
925
925
|
case "verification.declined":
|
|
926
926
|
case "verification.accepted":
|
|
927
927
|
setTimeout(() => {
|
|
@@ -933,120 +933,129 @@ button, select {
|
|
|
933
933
|
}
|
|
934
934
|
}, this.handleToggleScreen = () => {
|
|
935
935
|
this.toggleScreen(this.isMobile);
|
|
936
|
-
}, this.hideVulnerabilityCheck = "false", this.userId = "", this.session = "", this.language = "en", this.endpoint = "", this.translationUrl = "", this.clientStyling = "", this.verifiedIcon = "", this.failedIcon = "", this.defaultIcon = "", this.clientStylingUrl = "", this.mbSource = void 0, this.hideKycDescription = "false", this.verificationType = [], this.hasAllDocumentsUploaded = !1, this.verificationsGeneralStatus = void 0, this.isLoading = !1, this.isKYCLoading = !1, this.selectedFile = null, this.uploadingStatus = void 0, this.uploadSizeExceeded = !1, this.expandedOnDesktop = !1, this.isDataLoading = !0;
|
|
936
|
+
}, this.hideVulnerabilityCheck = "false", this.userId = "", this.session = "", this.language = "en", this.endpoint = "", this.translationUrl = "", this.clientStyling = "", this.verifiedIcon = "", this.failedIcon = "", this.defaultIcon = "", this.clientStylingUrl = "", this.mbSource = void 0, this.hideKycDescription = "false", this.overridableTypesStr = "", this.verificationType = [], this.hasAllDocumentsUploaded = !1, this.verificationsGeneralStatus = void 0, this.isLoading = !1, this.isKYCLoading = !1, this.selectedFile = null, this.uploadingStatus = void 0, this.uploadSizeExceeded = !1, this.expandedOnDesktop = !1, this.isDataLoading = !0;
|
|
937
937
|
}
|
|
938
938
|
handleNewTranslations() {
|
|
939
|
-
this.isLoading = !0,
|
|
939
|
+
this.isLoading = !0, w(this.translationUrl).then(() => {
|
|
940
940
|
this.isLoading = !1;
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
componentWillLoad() {
|
|
944
944
|
return m(this, null, function* () {
|
|
945
|
-
this.translationUrl.length > 2 && (yield
|
|
945
|
+
this.translationUrl.length > 2 && (yield w(this.translationUrl));
|
|
946
946
|
});
|
|
947
947
|
}
|
|
948
|
-
handleClientStylingChange(e,
|
|
949
|
-
e !=
|
|
948
|
+
handleClientStylingChange(e, t) {
|
|
949
|
+
e != t && C(this.stylingContainer, this.clientStyling);
|
|
950
950
|
}
|
|
951
|
-
handleClientStylingUrlChange(e,
|
|
952
|
-
e !=
|
|
951
|
+
handleClientStylingUrlChange(e, t) {
|
|
952
|
+
e != t && this.clientStylingUrl && k(this.stylingContainer, this.clientStylingUrl);
|
|
953
953
|
}
|
|
954
954
|
componentDidLoad() {
|
|
955
955
|
return m(this, null, function* () {
|
|
956
|
-
this.stylingContainer && (window.emMessageBus != null ? B(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling &&
|
|
956
|
+
this.stylingContainer && (window.emMessageBus != null ? B(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && C(this.stylingContainer, this.clientStyling), this.clientStylingUrl && k(this.stylingContainer, this.clientStylingUrl))), window.innerWidth > 700 && (this.expandedOnDesktop = !0), this.getKYCCustomerStatus();
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
959
|
removeVerificationShuftiMessage() {
|
|
960
960
|
window.removeEventListener("message", this.handleShuftiMessage);
|
|
961
961
|
}
|
|
962
962
|
handleVerificationShuftiMessage(e) {
|
|
963
|
-
const
|
|
964
|
-
var
|
|
965
|
-
return o.vendorName === "ShuftiPro" && ((
|
|
963
|
+
const t = e.find((o) => {
|
|
964
|
+
var i;
|
|
965
|
+
return o.vendorName === "ShuftiPro" && ((i = o.flowInfo) === null || i === void 0 ? void 0 : i.actionNeeded) === !0;
|
|
966
966
|
});
|
|
967
|
-
this.removeVerificationShuftiMessage(),
|
|
967
|
+
this.removeVerificationShuftiMessage(), t && window.addEventListener("message", this.handleShuftiMessage);
|
|
968
968
|
}
|
|
969
969
|
getGeneralVerificationStatus(e) {
|
|
970
|
-
|
|
971
|
-
|
|
970
|
+
if (!Array.isArray(e) || e.length === 0)
|
|
971
|
+
return "Unknown";
|
|
972
|
+
const t = (this.overridableTypesStr || "").split(",").map((i) => i.trim().toLowerCase()).filter((i) => i !== "" && i !== "false"), o = e.map((i) => {
|
|
973
|
+
var a, r;
|
|
974
|
+
const s = ((a = i == null ? void 0 : i.type) === null || a === void 0 ? void 0 : a.toLowerCase()) || "";
|
|
975
|
+
return t.includes(s) && e.some((c) => {
|
|
976
|
+
var u, f;
|
|
977
|
+
return ((u = c == null ? void 0 : c.type) === null || u === void 0 ? void 0 : u.toLowerCase()) === s && ((f = c == null ? void 0 : c.status) === null || f === void 0 ? void 0 : f.toLowerCase()) === "verified";
|
|
978
|
+
}) ? "verified" : ((r = i == null ? void 0 : i.status) === null || r === void 0 ? void 0 : r.toLowerCase()) || "";
|
|
979
|
+
});
|
|
980
|
+
return o.includes("failed") ? "Failed" : o.includes("expired") ? "Expired" : o.includes("inprogress") ? "InProgress" : o.every((i) => i === "verified") ? "Verified" : "Unknown";
|
|
972
981
|
}
|
|
973
982
|
disconnectedCallback() {
|
|
974
983
|
this.stylingSubscription && this.stylingSubscription.unsubscribe(), this.removeVerificationShuftiMessage();
|
|
975
984
|
}
|
|
976
|
-
handleOptionChange(e,
|
|
985
|
+
handleOptionChange(e, t) {
|
|
977
986
|
const o = e.target;
|
|
978
|
-
this.verificationType = this.verificationType.map((
|
|
987
|
+
this.verificationType = this.verificationType.map((i) => (i.type === t && (i.optionChosen = o.value), i));
|
|
979
988
|
}
|
|
980
|
-
handleDocumentsStatus(e,
|
|
981
|
-
this.verificationType = this.verificationType.map((
|
|
982
|
-
if (
|
|
983
|
-
const a =
|
|
984
|
-
a && (a.statusUploaded =
|
|
989
|
+
handleDocumentsStatus(e, t, o) {
|
|
990
|
+
this.verificationType = this.verificationType.map((i) => {
|
|
991
|
+
if (i.type === e) {
|
|
992
|
+
const a = i.documents.find((r) => r.code === o);
|
|
993
|
+
a && (a.statusUploaded = t);
|
|
985
994
|
}
|
|
986
|
-
return
|
|
995
|
+
return i;
|
|
987
996
|
});
|
|
988
997
|
}
|
|
989
998
|
downloadPDF(e) {
|
|
990
|
-
const
|
|
991
|
-
|
|
999
|
+
const t = document.createElement("a");
|
|
1000
|
+
t.href = e, t.download = "file.pdf", t.target = "_blank", t.dispatchEvent(new MouseEvent("click"));
|
|
992
1001
|
}
|
|
993
|
-
toggleVerificationType(e,
|
|
1002
|
+
toggleVerificationType(e, t) {
|
|
994
1003
|
this.expandedOnDesktop = !1, this.verificationType = this.verificationType.map((o) => {
|
|
995
|
-
var
|
|
996
|
-
return o.type === e && ((
|
|
1004
|
+
var i;
|
|
1005
|
+
return o.type === e && ((i = o.flowInfo) === null || i === void 0 ? void 0 : i.type) == t && (o.expanded = !o.expanded), o;
|
|
997
1006
|
});
|
|
998
1007
|
}
|
|
999
1008
|
toggleScreen(e) {
|
|
1000
1009
|
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: e }, window.location.href);
|
|
1001
1010
|
}
|
|
1002
1011
|
checkFileSize(e) {
|
|
1003
|
-
let
|
|
1012
|
+
let t = 0;
|
|
1004
1013
|
return Object.keys(e).forEach((o) => {
|
|
1005
|
-
|
|
1006
|
-
}),
|
|
1014
|
+
t += e[o].size;
|
|
1015
|
+
}), t <= this.MAX_UPLOAD_SIZE;
|
|
1007
1016
|
}
|
|
1008
|
-
handleFileSelection(e,
|
|
1017
|
+
handleFileSelection(e, t, o) {
|
|
1009
1018
|
if (e && e.length > 0)
|
|
1010
1019
|
if (this.selectedFile = e, !this.checkFileSize(this.selectedFile))
|
|
1011
|
-
console.error(
|
|
1020
|
+
console.error(l("fileSizeExceeded", this.language)), this.uploadingStatus = l("fileSizeExceeded", this.language), this.handleDocumentsStatus(o, this.uploadingStatus, t), this.uploadSizeExceeded = !0;
|
|
1012
1021
|
else {
|
|
1013
|
-
const
|
|
1022
|
+
const i = {
|
|
1014
1023
|
method: "POST",
|
|
1015
1024
|
headers: {
|
|
1016
1025
|
"Content-Type": "application/json",
|
|
1017
1026
|
"X-SessionId": this.session
|
|
1018
1027
|
},
|
|
1019
|
-
body: JSON.stringify({ DocumentCode:
|
|
1028
|
+
body: JSON.stringify({ DocumentCode: t })
|
|
1020
1029
|
};
|
|
1021
|
-
fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`,
|
|
1030
|
+
fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`, i).then((a) => {
|
|
1022
1031
|
if (a.ok)
|
|
1023
|
-
return this.uploadingStatus =
|
|
1032
|
+
return this.uploadingStatus = l("uploading", this.language), this.handleDocumentsStatus(o, this.uploadingStatus, t), a.json();
|
|
1024
1033
|
}).then((a) => {
|
|
1025
1034
|
if (a.ResponseCode == "Success") {
|
|
1026
1035
|
const r = new FormData();
|
|
1027
|
-
r.append(
|
|
1028
|
-
|
|
1029
|
-
}).catch((
|
|
1030
|
-
console.error("File upload error:",
|
|
1036
|
+
r.append(t, this.selectedFile[0]), fetch(a.Url, { method: "POST", body: r }).then((s) => {
|
|
1037
|
+
s.ok ? (this.selectedFile.length > 1 ? this.uploadingStatus = l("successUploadMultipleFiles", this.language) : this.uploadingStatus = l("successUpload", this.language), this.handleDocumentsStatus(o, this.uploadingStatus, t)) : (this.uploadingStatus = l("failedUpload", this.language), this.handleDocumentsStatus(o, this.uploadingStatus, t), console.error("File upload error:", s.status));
|
|
1038
|
+
}).catch((s) => {
|
|
1039
|
+
console.error("File upload error:", s);
|
|
1031
1040
|
});
|
|
1032
1041
|
} else
|
|
1033
|
-
this.uploadingStatus =
|
|
1042
|
+
this.uploadingStatus = l("failedUpload", this.language), this.handleDocumentsStatus(o, this.uploadingStatus, t);
|
|
1034
1043
|
}).catch((a) => {
|
|
1035
1044
|
console.error("File upload error:", a);
|
|
1036
1045
|
});
|
|
1037
1046
|
}
|
|
1038
1047
|
}
|
|
1039
1048
|
importScript(e) {
|
|
1040
|
-
return new Promise((
|
|
1041
|
-
fetch(e).then((
|
|
1042
|
-
if (new Function(
|
|
1043
|
-
|
|
1049
|
+
return new Promise((t, o) => {
|
|
1050
|
+
fetch(e).then((i) => i.text()).then((i) => {
|
|
1051
|
+
if (new Function(i)(), this.scriptInjected)
|
|
1052
|
+
t(!0);
|
|
1044
1053
|
else {
|
|
1045
1054
|
const r = document.createElement("script");
|
|
1046
|
-
r.src = "https://test.insic.de/frontend3/static/js/avs-loader.min.js", document.head.appendChild(r), this.scriptInjected = !0,
|
|
1055
|
+
r.src = "https://test.insic.de/frontend3/static/js/avs-loader.min.js", document.head.appendChild(r), this.scriptInjected = !0, t(!0);
|
|
1047
1056
|
}
|
|
1048
|
-
}).catch((
|
|
1049
|
-
o(
|
|
1057
|
+
}).catch((i) => {
|
|
1058
|
+
o(i);
|
|
1050
1059
|
});
|
|
1051
1060
|
});
|
|
1052
1061
|
}
|
|
@@ -1054,49 +1063,49 @@ button, select {
|
|
|
1054
1063
|
return !!(e && e.status === "Uploaded");
|
|
1055
1064
|
}
|
|
1056
1065
|
getFirstRequestedDocument(e) {
|
|
1057
|
-
var
|
|
1058
|
-
let
|
|
1059
|
-
return (
|
|
1060
|
-
a.status == "Requested" && (
|
|
1061
|
-
}),
|
|
1066
|
+
var t, o;
|
|
1067
|
+
let i;
|
|
1068
|
+
return (t = e == null ? void 0 : e.documents) === null || t === void 0 || t.forEach((a) => {
|
|
1069
|
+
a.status == "Requested" && (i = i != null ? i : a.code);
|
|
1070
|
+
}), i || (i = (o = e == null ? void 0 : e.documents[0]) === null || o === void 0 ? void 0 : o.code), i;
|
|
1062
1071
|
}
|
|
1063
1072
|
renderVerificationTypeBox(e) {
|
|
1064
1073
|
this.expandedOnDesktop && (e.expanded = !0);
|
|
1065
|
-
let
|
|
1066
|
-
const
|
|
1067
|
-
return
|
|
1074
|
+
let t = this.getFirstRequestedDocument(e), o = e.expanded, i = e.type.trim(), a = e.optionChosen || t, r = e.status, s = e.documents, d = e.flowInfo;
|
|
1075
|
+
const u = e.vendorName === "ShuftiPro" && r !== "InProgress", f = r === "Verified", y = r === "Failed" || r === "Expired";
|
|
1076
|
+
return f && i === "VulnerabilityCheck" && this.hideVulnerabilityCheck === "true" || u ? null : n("div", { class: `verification-box ${o ? "expanded" : ""} ${y ? "failed" : ""} ${f ? "success" : ""}` }, n("div", { class: `box box-header ${o ? "expanded" : ""}`, onClick: () => {
|
|
1068
1077
|
var g;
|
|
1069
1078
|
return this.toggleVerificationType(e.type, (g = e.flowInfo) === null || g === void 0 ? void 0 : g.type);
|
|
1070
|
-
} },
|
|
1079
|
+
} }, n("div", { class: "box-icon" }, f ? n("div", null, this.verifiedIcon ? n("img", { class: "CustomVerifiedIcon", src: this.verifiedIcon, alt: "" }) : n("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, n("circle", { cx: "50", cy: "50", r: "40", fill: "#388D79" }), n("circle", { cx: "50", cy: "50", r: "34", fill: "none", stroke: "#fff", "stroke-width": "12px" }), n("polyline", { points: "30,50 45,63 70,35", fill: "none", stroke: "#fff", "stroke-width": "8px" }))) : y ? n("div", null, this.failedIcon ? n("img", { class: "CustomFailedIcon", src: this.failedIcon, alt: "" }) : n("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, n("circle", { cx: "50", cy: "50", r: "40", fill: "red" }), n("line", { x1: "30", y1: "30", x2: "70", y2: "70", stroke: "#fff", "stroke-width": "10px" }), n("line", { x1: "30", y1: "70", x2: "70", y2: "30", stroke: "#fff", "stroke-width": "10px" }))) : n("div", null, this.defaultIcon ? n("img", { class: "CustomDefaultIcon", src: this.defaultIcon, alt: "" }) : n("svg", { width: "800px", height: "800px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { d: "M4 4V20C4 21.1046 4.89543 22 6 22L18 22C19.1046 22 20 21.1046 20 20V8.34162C20 7.8034 19.7831 7.28789 19.3982 6.91161L14.9579 2.56999C14.5842 2.20459 14.0824 2 13.5597 2L6 2C4.89543 2 4 2.89543 4 4Z", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), n("path", { d: "M9 13H15", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), n("path", { d: "M9 17H12", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), n("path", { d: "M14 2V6C14 7.10457 14.8954 8 16 8H20", stroke: "#000000", "stroke-width": "2", "stroke-linejoin": "round" })))), n("div", { class: "box-title" }, l(i, this.language)), n("div", { class: "chevron-icon" }, n("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, n("path", { d: o ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" })))), o ? this.renderExpandedContent(e, a, r, s, d, f, y) : n("div", { class: "box box-content" }, n("div", { id: "__avs-wrapper" })));
|
|
1071
1080
|
}
|
|
1072
|
-
renderDocumentsActions(e,
|
|
1073
|
-
return
|
|
1081
|
+
renderDocumentsActions(e, t, o) {
|
|
1082
|
+
return n("div", null, this.isStatusUploaded(e) ? n("div", { class: "upload-status" }, l("uploaded", this.language)) : e != null && e.statusUploaded ? n("div", { class: "upload-status" }, e == null ? void 0 : e.statusUploaded) : n("div", { class: "documents-action" }, n("div", { class: "sample-file" }, (e == null ? void 0 : e.sampleType) === "FileDownload" ? n("button", { class: "download-button", onClick: () => this.downloadPDF(e == null ? void 0 : e.sampleUrl) }, n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { d: "M12 0C5.372 0 0 5.372 0 12C0 18.628 5.372 24 12 24C18.628 24 24 18.628 24 12C24 5.372 18.628 0 12 0ZM12 22C6.485 22 2 17.515 2 12C2 6.485 6.485 2 12 2C17.515 2 22 6.485 22 12C22 17.515 17.515 22 12 22Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" }), n("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" })), n("span", null, l("download", this.language))) : null), n("div", { class: "upload-button" }, t ? n("label", null, n("input", { type: "file", accept: "*", onChange: (i) => this.handleFileSelection(i.target.files, t, o.type), style: { display: "none" } }), n("svg", { width: "100", height: "100", xmlns: "http://www.w3.org/2000/svg" }, n("circle", { cx: "50", cy: "50", r: "40", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" }), n("line", { x1: "30", y1: "50", x2: "70", y2: "50", stroke: "white", "stroke-width": "6" }), n("line", { x1: "50", y1: "30", x2: "50", y2: "70", stroke: "white", "stroke-width": "6" }))) : null)));
|
|
1074
1083
|
}
|
|
1075
|
-
renderExpandedContent(e,
|
|
1084
|
+
renderExpandedContent(e, t, o, i, a, r, s) {
|
|
1076
1085
|
if ((a == null ? void 0 : a.type) === "Widget")
|
|
1077
|
-
return
|
|
1086
|
+
return n("div", null, n("hr", { style: { margin: "5px" } }), n("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" }));
|
|
1078
1087
|
if ((a == null ? void 0 : a.type) === "Redirect" && e.vendorName !== "Manual" && o !== "Verified") {
|
|
1079
1088
|
const d = e.vendorName === "ShuftiPro" ? "650px" : "400px";
|
|
1080
|
-
return
|
|
1089
|
+
return n("div", null, n("hr", { style: { margin: "5px" } }), n("iframe", { src: a.url, frameborder: "0", height: d, width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" }));
|
|
1081
1090
|
} else
|
|
1082
|
-
return
|
|
1091
|
+
return n("div", { class: "box box-content" }, n(v, null, r ? n("div", { class: "verification-status" }, l("verificationComplete", this.language)) : s ? n("div", { class: "verification-status" }, o === "Failed" ? l("verificationFailed", this.language) : l("verificationExpired", this.language)) : i.length > 0 ? n("div", { class: "documents-dropdown" }, n("select", { class: "nice-select", onChange: (d) => this.handleOptionChange(d, e.type) }, i.map((d) => n("option", { selected: d.code == t, value: d.code }, l(d.type, this.language)))), this.renderDocumentsActions(i.find((d) => d.code === t), t, e)) : null));
|
|
1083
1092
|
}
|
|
1084
1093
|
renderKycDescription() {
|
|
1085
1094
|
if (this.hideKycDescription === "true")
|
|
1086
1095
|
switch (this.verificationsGeneralStatus) {
|
|
1087
1096
|
case "Verified":
|
|
1088
|
-
return
|
|
1097
|
+
return n("div", { class: "widget-description-verified" }, l("kycVerifiedDescription", this.language));
|
|
1089
1098
|
case "Failed":
|
|
1090
|
-
return
|
|
1099
|
+
return n("div", { class: "widget-description-failed" }, l("kycFailedDescription", this.language));
|
|
1091
1100
|
default:
|
|
1092
1101
|
if (this.hasAllDocumentsUploaded)
|
|
1093
1102
|
return null;
|
|
1094
1103
|
break;
|
|
1095
1104
|
}
|
|
1096
|
-
return
|
|
1105
|
+
return n("div", { class: "widget-description" }, l("kycDescription", this.language));
|
|
1097
1106
|
}
|
|
1098
1107
|
render() {
|
|
1099
|
-
return this.isLoading ?
|
|
1108
|
+
return this.isLoading ? n("div", null, n("p", null, l("loading", this.language))) : n("div", { class: "ModalContainer", ref: (e) => this.stylingContainer = e }, n("div", { class: "player-kyc-verification-widget" }, this.isMobile ? n("div", { class: "MenuReturnButton", onClick: this.handleToggleScreen }, n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, n("defs", null), n("g", { transform: "translate(-20 -158)" }, n("g", { transform: "translate(20 158)" }, n("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), n("h2", null, l("kycTitle", this.language))) : n("h2", null, l("kycTitle", this.language)), this.isDataLoading ? n("div", { class: "loader" }, l("loading", this.language)) : this.verificationType.length === 0 ? n("div", { class: "no-verification-description", style: { padding: "24px", fontSize: "18px" } }, l("noVerificationRequired", this.language)) : n(v, null, this.renderKycDescription(), n("div", { class: "verification-types" }, this.verificationType.map((e) => e ? this.renderVerificationTypeBox(e) : null)))));
|
|
1100
1109
|
}
|
|
1101
1110
|
static get watchers() {
|
|
1102
1111
|
return {
|