@everymatrix/player-account-controller 1.54.0 → 1.54.4
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-CsWa2j6i.js → GeneralLogout-Ddt-oH9k.js} +1094 -1131
- package/components/{PlayerAccountBettingHistory-D_8K8e-E.js → PlayerAccountBettingHistory-C7xwYi03.js} +34 -35
- package/components/{PlayerAccountBiometrics-FWYyFKmB.js → PlayerAccountBiometrics-D7WS5cnI.js} +1 -1
- package/components/{PlayerAccountClosure-BJP8eejl.js → PlayerAccountClosure-yRlo8hXR.js} +1 -1
- package/components/{PlayerAccountController-DQGj69Re.js → PlayerAccountController-BZYAo3oo.js} +336 -353
- package/components/{PlayerAccountGamingLimits-Dt8hOZzW.js → PlayerAccountGamingLimits-CTBhVGgC.js} +3 -3
- package/components/{PlayerAccountGamingLimitsConfirmationModal-B6SPYMpk.js → PlayerAccountGamingLimitsConfirmationModal-CuQvNzww.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BG2VPqUz.js → PlayerAccountGamingLimitsGroupEdit-Du2YQlDU.js} +16 -16
- package/components/{PlayerAccountGamingLimitsHistory2-65MLJ2rD.js → PlayerAccountGamingLimitsHistory2-CXKA0L0d.js} +121 -132
- package/components/{PlayerAccountGamingLimitsInfoCard-CqTAvCh7.js → PlayerAccountGamingLimitsInfoCard-CWTybgoQ.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-C3dTjA-p.js → PlayerAccountGamingLimitsPage2Gm16-CXjNcIFP.js} +737 -768
- package/components/{PlayerAccountGamingLimitsPopup-diUVGesC.js → PlayerAccountGamingLimitsPopup-CJu5RRl6.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-BmDihzLr.js → PlayerAccountGamingLimitsWrapper2-BdpxEDlV.js} +75 -81
- package/components/{PlayerAccountGeneralConfirmationModal-D3tbAl7Q.js → PlayerAccountGeneralConfirmationModal-DG0N686t.js} +1 -1
- package/components/{PlayerAccountMenu-CbXhpL1a.js → PlayerAccountMenu-CZBa8_5G.js} +66 -67
- package/components/{PlayerAccountModal-5TJbkUF8.js → PlayerAccountModal-BmKjtXKT.js} +1 -1
- package/components/{PlayerAccountNotifications-BVY-SXyT.js → PlayerAccountNotifications-B4Ht-hHj.js} +1 -1
- package/components/{PlayerAccountSelfExclusion-BGfuEA4r.js → PlayerAccountSelfExclusion-DxGHXTb8.js} +1488 -1572
- package/components/{PlayerAccountTimeout-BDDMm0XX.js → PlayerAccountTimeout-DOSjICsY.js} +4 -4
- package/components/{PlayerActiveBonuses-D0RUTvjl.js → PlayerActiveBonuses-DMAG7NUP.js} +119 -120
- package/components/{PlayerBonusCard-CU67pLmG.js → PlayerBonusCard-Dss1REmn.js} +2 -2
- package/components/{PlayerBonusHistory-BLedlLHg.js → PlayerBonusHistory-BxBiQwQf.js} +53 -53
- package/components/{PlayerChangePassword-8ZD6eOj-.js → PlayerChangePassword-DnCj-wcc.js} +1 -1
- package/components/{PlayerDeposit-D5Xuk21T.js → PlayerDeposit-CHIQ8EaC.js} +1 -1
- package/components/{PlayerGamingHistory-tb-rMGdz.js → PlayerGamingHistory-BtQ73TId.js} +375 -388
- package/components/{PlayerPendingWithdrawals-DuN3Qn3P.js → PlayerPendingWithdrawals-BbTa7_8U.js} +1 -1
- package/components/{PlayerProfileInfo-DmKFg0dn.js → PlayerProfileInfo-CvAqD3Dk.js} +532 -549
- package/components/{PlayerRealityCheck-BUW8tvj3.js → PlayerRealityCheck-3d-B64ie.js} +175 -191
- package/components/{PlayerTransactionHistory-hGi2tOL2.js → PlayerTransactionHistory-BYJNabMB.js} +1 -1
- package/components/{PlayerWithdrawal-CR3Xpytk.js → PlayerWithdrawal-DDWroufG.js} +1 -1
- package/esnext/player-account-controller.js +14 -0
- package/package.json +11 -31
- package/stencil/{active-mixin-59dfae2a-CJN1Jc-g.js → active-mixin-59dfae2a-BphP4pp5.js} +745 -776
- package/stencil/{checkbox-group-input_9-DQoOMgN8.js → checkbox-group-input_9-CMFoK7_E.js} +1873 -1942
- package/stencil/{general-input-bzWxIJkt.js → general-input-DnFPstQP.js} +1 -1
- package/stencil/{index-062e829b-DPj_pEuI.js → index-062e829b-DAFsZs6D.js} +220 -236
- package/stencil/{index-33f005e1-DGGQe5wK.js → index-33f005e1-fFxPaeNy.js} +223 -239
- package/stencil/{index-9b3245b3-3zj7bxxu.js → index-9b3245b3-rzHgwqlB.js} +166 -193
- package/stencil/{index-fc58390d-DeoeGpBS.js → index-fc58390d-BSwfXuUs.js} +267 -294
- package/stencil/{password-input_2-Dx1lICIg.js → password-input_2-Bb9Q6Fe0.js} +136 -154
- package/stencil/{player-change-password-gm2-98dcb7bc-F9HM0T8d.js → player-change-password-gm2-98dcb7bc-gLcZhl3S.js} +1 -1
- package/stencil/player-change-password-gm2-DR3e2gh5.js +7 -0
- package/stencil/{player-kyc-verification-o-RUWyY4.js → player-kyc-verification-BQZdJFEJ.js} +61 -83
- package/stencil/{toggle-checkbox-input-BCrxxTpc.js → toggle-checkbox-input-CCLW6-uK.js} +1 -1
- package/stencil/{user-deposit-withdrawal-DEMVRyvk.js → user-deposit-withdrawal-CmF0LoNb.js} +175 -197
- package/stencil/{user-transaction-history-CevHOCcm.js → user-transaction-history-BgV-k2Cl.js} +81 -107
- package/components/GeneralLogout-DfI2_eQe.cjs +0 -8
- package/components/PlayerAccountBettingHistory-ldAp8-yN.cjs +0 -1
- package/components/PlayerAccountBiometrics-Cft2jzuJ.cjs +0 -1
- package/components/PlayerAccountClosure-DvHhtHhl.cjs +0 -1
- package/components/PlayerAccountController-DDLO4xVW.cjs +0 -1
- package/components/PlayerAccountGamingLimits-EQC_UZag.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-Ciz1fSFW.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-CLjUmEQv.cjs +0 -10
- package/components/PlayerAccountGamingLimitsHistory2-CG4RnfZE.cjs +0 -1
- package/components/PlayerAccountGamingLimitsInfoCard-Au2vobro.cjs +0 -1
- package/components/PlayerAccountGamingLimitsPage2Gm16-CMnCgRU1.cjs +0 -21
- package/components/PlayerAccountGamingLimitsPopup-BtbGIQFb.cjs +0 -1
- package/components/PlayerAccountGamingLimitsWrapper2-CW3N7E83.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-xMxALug3.cjs +0 -1
- package/components/PlayerAccountMenu-DHGBVm64.cjs +0 -1
- package/components/PlayerAccountModal-BitbPM3Z.cjs +0 -1
- package/components/PlayerAccountNotifications-DDu6ZWkh.cjs +0 -1
- package/components/PlayerAccountSelfExclusion-9vzbBY28.cjs +0 -3828
- package/components/PlayerAccountTimeout-f4vPyQE-.cjs +0 -1
- package/components/PlayerActiveBonuses-BVQwAh2z.cjs +0 -1
- package/components/PlayerBonusCard-UTTIEBwb.cjs +0 -1
- package/components/PlayerBonusHistory-EXOvKzDr.cjs +0 -1
- package/components/PlayerChangePassword-XpKJjnFu.cjs +0 -3
- package/components/PlayerDeposit-Do7vb_4b.cjs +0 -1
- package/components/PlayerGamingHistory-OEU1L3Q2.cjs +0 -1
- package/components/PlayerPendingWithdrawals-Bu2MOezw.cjs +0 -1
- package/components/PlayerProfileInfo-lMeb2jBi.cjs +0 -1
- package/components/PlayerRealityCheck-CA0P_3BC.cjs +0 -1
- package/components/PlayerTransactionHistory-CvZcvyBx.cjs +0 -1
- package/components/PlayerWithdrawal-DxLwjX7x.cjs +0 -1
- package/es2015/player-account-controller.cjs +0 -1
- package/es2015/player-account-controller.js +0 -16
- package/stencil/active-mixin-59dfae2a-1hMz67mM.cjs +0 -1519
- package/stencil/app-globals-0f993ce5-8artnnwr.cjs +0 -1
- package/stencil/checkbox-group-input_9-DiXERGqn.cjs +0 -4193
- package/stencil/general-input-fzGwoSoE.cjs +0 -1
- package/stencil/index-062e829b-CpXLBOEz.cjs +0 -1
- package/stencil/index-33f005e1-BS5PFnj3.cjs +0 -1
- package/stencil/index-9b3245b3-ByXtSZIM.cjs +0 -1
- package/stencil/index-fc58390d-DgBOSsU7.cjs +0 -1
- package/stencil/locale-B5abSHU_.cjs +0 -1
- package/stencil/password-input_2-DvDzz75b.cjs +0 -1248
- package/stencil/player-change-password-gm2-98dcb7bc-CCEw2GA2.cjs +0 -1
- package/stencil/player-change-password-gm2-BEYcuzS-.cjs +0 -1
- package/stencil/player-change-password-gm2-NWnv4CCw.js +0 -25
- package/stencil/player-kyc-verification-_iT3bbO9.cjs +0 -180
- package/stencil/toggle-checkbox-input-BYoIi-jG.cjs +0 -1
- package/stencil/tooltipIcon-ee9760a8-Bd9l1O5C.cjs +0 -1
- package/stencil/user-deposit-withdrawal-_jt0Ivg5.cjs +0 -59
- package/stencil/user-transaction-history-U0c__t1q.cjs +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { b as i, p as a } from "./index-062e829b-DAFsZs6D.js";
|
|
2
|
+
import { g as t } from "./app-globals-0f993ce5-C0vi_PY4.js";
|
|
3
|
+
var n = () => {
|
|
4
|
+
const e = import.meta.url, l = {};
|
|
5
|
+
return e !== "" && (l.resourcesUrl = new URL(".", e).href), a(l);
|
|
6
|
+
};
|
|
7
|
+
n().then(async (e) => (await t(), i([["password-input_2", [[1, "player-change-password-gm2", { language: [513], endpoint: [513], session: [513], token: [513], forgotMode: [513, "forgot-mode"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], isBtnSubmitEnabled: [32], isMobile: [32] }, [[0, "sendValidityState", "sendValidityStateHandler"], [0, "sendInputValue", "sendInputValueHandler"]], { clientStyling: ["updateClientStyling"], clientStylingUrl: ["updateClientStyling"] }], [1, "password-input", { name: [513], displayName: [513, "display-name"], placeholder: [513], defaultValue: [513, "default-value"], autofilled: [516], tooltip: [513], validation: [16], language: [513], emitValue: [516, "emit-value"], isDuplicateInput: [516, "is-duplicate-input"], clientStyling: [513, "client-styling"], isValid: [32], errorMessage: [32], limitStylingAppends: [32], showTooltip: [32], passwordComplexity: [32], showPopup: [32], value: [32] }, [[16, "sendOriginalValidityState", "originalValidityChangedHandler"], [16, "sendInputValue", "valueChangedHandler"], [4, "click", "handleClickOutside"]], { isValid: ["validityChanged"], value: ["valueChanged"], emitValue: ["emitValueHandler"] }]]], ["checkbox-group-input_9", [[1, "checkbox-group-input", { name: [513], displayName: [513, "display-name"], defaultValue: [513, "default-value"], autofilled: [516], tooltip: [513], options: [16], validation: [16], language: [513], emitValue: [516, "emit-value"], clientStyling: [513, "client-styling"], errorMessage: [32], isValid: [32], limitStylingAppends: [32], showTooltip: [32], selectedValues: [32] }, [[4, "click", "handleClickOutside"]], { isValid: ["validityChanged"], selectedValues: ["setValue"], emitValue: ["emitValueHandler"] }], [1, "checkbox-input", { name: [513], displayName: [513, "display-name"], defaultValue: [513, "default-value"], autofilled: [516], tooltip: [513], validation: [16], language: [513], emitValue: [516, "emit-value"], clientStyling: [513, "client-styling"], errorMessage: [32], isValid: [32], limitStylingAppends: [32], showTooltip: [32] }, [[4, "click", "handleClickOutside"]], { isValid: ["validityChanged"], emitValue: ["emitValueHandler"] }], [1, "date-input", { name: [513], displayName: [513, "display-name"], placeholder: [513], validation: [16], defaultValue: [513, "default-value"], autofilled: [516], tooltip: [513], language: [513], emitValue: [516, "emit-value"], clientStyling: [513, "client-styling"], dateFormat: [513, "date-format"], emitOnClick: [516, "emit-on-click"], errorMessage: [32], isValid: [32], limitStylingAppends: [32], showTooltip: [32] }, [[4, "click", "handleClickOutside"]], { isValid: ["validityChanged"], emitValue: ["emitValueHandler"] }], [1, "email-input", { name: [513], displayName: [513, "display-name"], placeholder: [513], validation: [16], defaultValue: [513, "default-value"], autofilled: [516], tooltip: [513], language: [513], emitValue: [516, "emit-value"], isDuplicateInput: [516, "is-duplicate-input"], clientStyling: [513, "client-styling"], errorMessage: [32], isValid: [32], limitStylingAppends: [32], showTooltip: [32] }, [[4, "click", "handleClickOutside"], [16, "sendInputValue", "valueChangedHandler"]], { isValid: ["validityChanged"], emitValue: ["emitValueHandler"] }], [1, "number-input", { name: [513], displayName: [513, "display-name"], placeholder: [513], validation: [16], defaultValue: [513, "default-value"], autofilled: [516], tooltip: [513], language: [513], emitValue: [516, "emit-value"], clientStyling: [513, "client-styling"], errorMessage: [32], isValid: [32], limitStylingAppends: [32], showTooltip: [32] }, [[4, "click", "handleClickOutside"]], { isValid: ["validityChanged"], emitValue: ["emitValueHandler"] }], [1, "radio-input", { name: [513], displayName: [513, "display-name"], optionsGroup: [16], validation: [16], tooltip: [513], language: [513], emitValue: [516, "emit-value"], clientStyling: [513, "client-styling"], errorMessage: [32], isValid: [32], limitStylingAppends: [32], showTooltip: [32] }, [[4, "click", "handleClickOutside"]], { isValid: ["validityChanged"], emitValue: ["emitValueHandler"] }], [1, "select-input", { name: [513], displayName: [513, "display-name"], placeholder: [513], action: [513], defaultValue: [513, "default-value"], autofilled: [516], tooltip: [513], options: [16], validation: [16], language: [513], emitValue: [516, "emit-value"], clientStyling: [513, "client-styling"], errorMessage: [32], isValid: [32], limitStylingAppends: [32], showTooltip: [32] }, [[4, "click", "handleClickOutside"]], { isValid: ["validityChanged"], emitValue: ["emitValueHandler"] }], [1, "tel-input", { name: [513], displayName: [513, "display-name"], placeholder: [513], showLabels: [516, "show-labels"], action: [513], validation: [16], defaultValue: [520, "default-value"], autofilled: [516], tooltip: [513], language: [513], emitValue: [516, "emit-value"], clientStyling: [513, "client-styling"], isValid: [32], errorMessage: [32], limitStylingAppends: [32], showTooltip: [32] }, [[4, "click", "handleClickOutside"]], { isValid: ["validityChanged"], emitValue: ["emitValueHandler"] }], [1, "text-input", { name: [513], displayName: [513, "display-name"], placeholder: [513], validation: [16], defaultValue: [513, "default-value"], autofilled: [516], tooltip: [513], language: [513], checkValidity: [516, "check-validity"], emitValue: [516, "emit-value"], isDuplicateInput: [516, "is-duplicate-input"], clientStyling: [513, "client-styling"], isValid: [32], errorMessage: [32], limitStylingAppends: [32], showTooltip: [32] }, [[4, "click", "handleClickOutside"], [16, "sendInputValue", "valueChangedHandler"]], { isValid: ["validityChanged"], emitValue: ["emitValueHandler"] }]]], ["general-input", [[1, "general-input", { type: [513], name: [513], displayName: [513, "display-name"], placeholder: [513], action: [513], validation: [16], options: [520], language: [513], autofilled: [516], tooltip: [513], defaultValue: [520, "default-value"], emitValue: [516, "emit-value"], isDuplicateInput: [516, "is-duplicate-input"], clientStyling: [520, "client-styling"], dateFormat: [513, "date-format"], translationUrl: [513, "translation-url"], emitOnClick: [516, "emit-on-click"] }]]], ["toggle-checkbox-input", [[1, "toggle-checkbox-input", { name: [513], displayName: [513, "display-name"], defaultValue: [513, "default-value"], options: [16], autofilled: [516], tooltip: [513], validation: [16], language: [513], emitValue: [516, "emit-value"], clientStyling: [513, "client-styling"], errorMessage: [32], isValid: [32], limitStylingAppends: [32], showTooltip: [32], showFields: [32] }, [[4, "click", "handleClickOutside"]]]]]], e)));
|
|
@@ -1,30 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
s(t.next(d));
|
|
5
|
-
} catch (p) {
|
|
6
|
-
o(p);
|
|
7
|
-
}
|
|
8
|
-
}, c = (d) => {
|
|
9
|
-
try {
|
|
10
|
-
s(t.throw(d));
|
|
11
|
-
} catch (p) {
|
|
12
|
-
o(p);
|
|
13
|
-
}
|
|
14
|
-
}, s = (d) => d.done ? a(d.value) : Promise.resolve(d.value).then(l, c);
|
|
15
|
-
s((t = t.apply(e, n)).next());
|
|
16
|
-
});
|
|
17
|
-
import { b as g, p as y, r as v, h as i, F as m } from "./index-9b3245b3-3zj7bxxu.js";
|
|
18
|
-
import { a as w } from "./app-globals-0f993ce5-C0vi_PY4.js";
|
|
19
|
-
var C = () => {
|
|
1
|
+
import { b as h, p as g, r as y, h as i, F as u } from "./index-9b3245b3-rzHgwqlB.js";
|
|
2
|
+
import { a as v } from "./app-globals-0f993ce5-C0vi_PY4.js";
|
|
3
|
+
var w = () => {
|
|
20
4
|
const e = import.meta.url, n = {};
|
|
21
|
-
return e !== "" && (n.resourcesUrl = new URL(".", e).href),
|
|
5
|
+
return e !== "" && (n.resourcesUrl = new URL(".", e).href), g(n);
|
|
22
6
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const x = "en";
|
|
27
|
-
let f = {
|
|
7
|
+
w().then(async (e) => (await v(), h([["player-kyc-verification", [[1, "player-kyc-verification", { 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"], verificationType: [32], isLoading: [32], stylingAppends: [32], selectedFile: [32], uploadingStatus: [32], uploadSizeExceeded: [32], selectedOption: [32], expandedOnDesktop: [32] }, null, { translationUrl: ["handleNewTranslations"] }]]]], e)));
|
|
8
|
+
const C = "en";
|
|
9
|
+
let c = {
|
|
28
10
|
en: {
|
|
29
11
|
loading: "Loading, please wait ...",
|
|
30
12
|
noVerificationRequired: "There is no verification required for your account at this moment.",
|
|
@@ -510,18 +492,18 @@ let f = {
|
|
|
510
492
|
Voucher: "Voucher"
|
|
511
493
|
}
|
|
512
494
|
};
|
|
513
|
-
const
|
|
495
|
+
const m = (e) => new Promise((n) => {
|
|
514
496
|
fetch(e).then((t) => t.json()).then((t) => {
|
|
515
497
|
Object.keys(t).forEach((a) => {
|
|
516
|
-
|
|
498
|
+
c[a] || (c[a] = {});
|
|
517
499
|
for (let o in t[a])
|
|
518
|
-
|
|
500
|
+
c[a][o] = t[a][o];
|
|
519
501
|
}), n(!0);
|
|
520
502
|
});
|
|
521
503
|
}), r = (e, n, t) => {
|
|
522
504
|
const a = n;
|
|
523
|
-
return
|
|
524
|
-
},
|
|
505
|
+
return c[a !== void 0 && a in c ? a : C][e];
|
|
506
|
+
}, x = (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)), k = `:host {
|
|
525
507
|
font-family: inherit;
|
|
526
508
|
}
|
|
527
509
|
|
|
@@ -700,9 +682,9 @@ button, select {
|
|
|
700
682
|
.player-kyc-verification-widget .verification-types {
|
|
701
683
|
grid-template-columns: repeat(2, 1fr);
|
|
702
684
|
}
|
|
703
|
-
}`,
|
|
685
|
+
}`, b = k, S = class {
|
|
704
686
|
constructor(e) {
|
|
705
|
-
|
|
687
|
+
y(this, e), this.userId = "", this.session = "", this.endpoint = "", this.translationUrl = "", this.clientStyling = "", this.verifiedIcon = "", this.failedIcon = "", this.defaultIcon = "", this.clientStylingUrl = "", this.verificationType = [], this.isLoading = !1, this.stylingAppends = !1, this.selectedFile = null, this.uploadSizeExceeded = !1, this.expandedOnDesktop = !1, this.scriptInjected = !1, this.MAX_UPLOAD_SIZE = 5e7, this.userAgent = window.navigator.userAgent, this.isMobile = x(this.userAgent), this.setClientStyling = () => {
|
|
706
688
|
let n = document.createElement("style");
|
|
707
689
|
n.innerHTML = this.clientStyling, this.stylingContainer.prepend(n);
|
|
708
690
|
}, this.setClientStylingURL = () => {
|
|
@@ -719,44 +701,40 @@ button, select {
|
|
|
719
701
|
};
|
|
720
702
|
}
|
|
721
703
|
handleNewTranslations() {
|
|
722
|
-
this.isLoading = !0,
|
|
704
|
+
this.isLoading = !0, m(this.translationUrl).then(() => {
|
|
723
705
|
this.isLoading = !1;
|
|
724
706
|
});
|
|
725
707
|
}
|
|
726
|
-
componentWillLoad() {
|
|
727
|
-
|
|
728
|
-
this.translationUrl.length > 2 && (yield h(this.translationUrl));
|
|
729
|
-
});
|
|
708
|
+
async componentWillLoad() {
|
|
709
|
+
this.translationUrl.length > 2 && await m(this.translationUrl);
|
|
730
710
|
}
|
|
731
711
|
componentDidRender() {
|
|
732
712
|
!this.stylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.stylingAppends = !0);
|
|
733
713
|
}
|
|
734
|
-
componentDidLoad() {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
}
|
|
759
|
-
});
|
|
714
|
+
async componentDidLoad() {
|
|
715
|
+
window.innerWidth > 700 && (this.expandedOnDesktop = !0);
|
|
716
|
+
try {
|
|
717
|
+
let e = new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);
|
|
718
|
+
const n = {
|
|
719
|
+
method: "POST",
|
|
720
|
+
headers: {
|
|
721
|
+
"X-SessionId": this.session,
|
|
722
|
+
"Content-Type": "application/json"
|
|
723
|
+
},
|
|
724
|
+
body: JSON.stringify({})
|
|
725
|
+
};
|
|
726
|
+
fetch(e.href, n).then((t) => {
|
|
727
|
+
if (t.status === 200)
|
|
728
|
+
return t.json();
|
|
729
|
+
throw new Error("HTTP status " + t.status);
|
|
730
|
+
}).then((t) => {
|
|
731
|
+
this.verificationType = t.verifications;
|
|
732
|
+
}).catch((t) => {
|
|
733
|
+
console.error(t);
|
|
734
|
+
});
|
|
735
|
+
} catch (e) {
|
|
736
|
+
console.error("Error fetching verification types:", e);
|
|
737
|
+
}
|
|
760
738
|
}
|
|
761
739
|
handleOptionChange(e, n) {
|
|
762
740
|
const t = e.target;
|
|
@@ -765,7 +743,7 @@ button, select {
|
|
|
765
743
|
handleDocumentsStatus(e, n, t) {
|
|
766
744
|
this.verificationType = this.verificationType.map((a) => {
|
|
767
745
|
if (a.type === e) {
|
|
768
|
-
const o = a.documents.find((
|
|
746
|
+
const o = a.documents.find((s) => s.code === t);
|
|
769
747
|
o && (o.statusUploaded = n);
|
|
770
748
|
}
|
|
771
749
|
return a;
|
|
@@ -807,11 +785,11 @@ button, select {
|
|
|
807
785
|
if (o.ok)
|
|
808
786
|
return this.uploadingStatus = r("uploading", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n), o.json();
|
|
809
787
|
}).then((o) => {
|
|
810
|
-
const
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
}).catch((
|
|
814
|
-
console.error("File upload error:",
|
|
788
|
+
const s = new FormData();
|
|
789
|
+
s.append(n, this.selectedFile[0]), fetch(o.Url, { method: "POST", body: s }).then((d) => {
|
|
790
|
+
d.ok ? (this.selectedFile.length > 1 ? this.uploadingStatus = r("successUploadMultipleFiles", this.language) : this.uploadingStatus = r("successUpload", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n)) : (this.uploadingStatus = r("failedUpload", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n), console.error("File upload error:", d.status));
|
|
791
|
+
}).catch((d) => {
|
|
792
|
+
console.error("File upload error:", d);
|
|
815
793
|
});
|
|
816
794
|
}).catch((o) => {
|
|
817
795
|
console.error("File upload error:", o);
|
|
@@ -824,8 +802,8 @@ button, select {
|
|
|
824
802
|
if (new Function(a)(), this.scriptInjected)
|
|
825
803
|
n(!0);
|
|
826
804
|
else {
|
|
827
|
-
const
|
|
828
|
-
|
|
805
|
+
const s = document.createElement("script");
|
|
806
|
+
s.src = "https://test.insic.de/frontend3/static/js/avs-loader.min.js", document.head.appendChild(s), this.scriptInjected = !0, n(!0);
|
|
829
807
|
}
|
|
830
808
|
}).catch((a) => {
|
|
831
809
|
t(a);
|
|
@@ -837,21 +815,21 @@ button, select {
|
|
|
837
815
|
}
|
|
838
816
|
renderVerificationTypeBox(e) {
|
|
839
817
|
this.expandedOnDesktop && (e.expanded = !0);
|
|
840
|
-
let n = e.expanded, t = e.type.trim(), a = e.optionChosen, o = e.status,
|
|
841
|
-
const
|
|
842
|
-
return i("div", { class: `verification-box ${n ? "expanded" : ""} ${
|
|
843
|
-
var
|
|
844
|
-
return this.toggleVerificationType(e.type, (
|
|
845
|
-
} }, i("div", { class: "box-icon" },
|
|
818
|
+
let n = e.expanded, t = e.type.trim(), a = e.optionChosen, o = e.status, s = e.documents, d = e.flowInfo;
|
|
819
|
+
const l = o === "Verified", p = o === "Failed" || o === "Expired";
|
|
820
|
+
return i("div", { class: `verification-box ${n ? "expanded" : ""} ${p ? "failed" : ""} ${l ? "success" : ""}` }, i("div", { class: `box box-header ${n ? "expanded" : ""}`, onClick: () => {
|
|
821
|
+
var f;
|
|
822
|
+
return this.toggleVerificationType(e.type, (f = e.flowInfo) === null || f === void 0 ? void 0 : f.type);
|
|
823
|
+
} }, i("div", { class: "box-icon" }, l ? i("div", null, this.verifiedIcon ? i("img", { class: "CustomVerifiedIcon", src: this.verifiedIcon, alt: "" }) : i("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, i("circle", { cx: "50", cy: "50", r: "40", fill: "#388D79" }), i("circle", { cx: "50", cy: "50", r: "34", fill: "none", stroke: "#fff", "stroke-width": "12px" }), i("polyline", { points: "30,50 45,63 70,35", fill: "none", stroke: "#fff", "stroke-width": "8px" }))) : p ? i("div", null, this.failedIcon ? i("img", { class: "CustomFailedIcon", src: this.failedIcon, alt: "" }) : i("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, i("circle", { cx: "50", cy: "50", r: "40", fill: "red" }), i("line", { x1: "30", y1: "30", x2: "70", y2: "70", stroke: "#fff", "stroke-width": "10px" }), i("line", { x1: "30", y1: "70", x2: "70", y2: "30", stroke: "#fff", "stroke-width": "10px" }))) : i("div", null, this.defaultIcon ? i("img", { class: "CustomDefaultIcon", src: this.defaultIcon, alt: "" }) : i("svg", { width: "800px", height: "800px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("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" }), i("path", { d: "M9 13H15", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), i("path", { d: "M9 17H12", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), i("path", { d: "M14 2V6C14 7.10457 14.8954 8 16 8H20", stroke: "#000000", "stroke-width": "2", "stroke-linejoin": "round" })))), i("div", { class: "box-title" }, r(t, this.language)), i("div", { class: "chevron-icon" }, i("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" }, i("path", { d: n ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" })))), n ? this.renderExpandedContent(e, a, o, s, d, l, p) : i("div", { class: "box box-content" }, i("div", { id: "__avs-wrapper" })));
|
|
846
824
|
}
|
|
847
825
|
renderDocumentsActions(e, n, t) {
|
|
848
|
-
return i("div", null, this.isStatusUploaded(e) ? i("div", { class: "upload-status" }, r("uploaded", this.language)) : e
|
|
826
|
+
return i("div", null, this.isStatusUploaded(e) ? i("div", { class: "upload-status" }, r("uploaded", this.language)) : e?.statusUploaded ? i("div", { class: "upload-status" }, e?.statusUploaded) : i("div", { class: "documents-action" }, i("div", { class: "sample-file" }, e?.sampleType === "FileDownload" ? i("button", { class: "download-button", onClick: () => this.downloadPDF(e?.sampleUrl) }, i("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("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, #D0046C))" }), i("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))" })), i("span", null, r("download", this.language))) : null), i("div", { class: "upload-button" }, n ? i("label", null, i("input", { type: "file", accept: "*", onChange: (a) => this.handleFileSelection(a.target.files, this.selectedOption, t.type), style: { display: "none" } }), i("svg", { width: "100", height: "100", xmlns: "http://www.w3.org/2000/svg" }, i("circle", { cx: "50", cy: "50", r: "40", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))" }), i("line", { x1: "30", y1: "50", x2: "70", y2: "50", stroke: "white", "stroke-width": "6" }), i("line", { x1: "50", y1: "30", x2: "50", y2: "70", stroke: "white", "stroke-width": "6" }))) : null)));
|
|
849
827
|
}
|
|
850
|
-
renderExpandedContent(e, n, t, a, o,
|
|
851
|
-
return
|
|
828
|
+
renderExpandedContent(e, n, t, a, o, s, d) {
|
|
829
|
+
return o?.type === "Widget" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: o.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : o?.type === "Redirect" && e.vendorName !== "Manual" && t !== "Verified" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: o.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : i("div", { class: "box box-content" }, i(u, null, s ? i("div", { class: "verification-status" }, r("verificationComplete", this.language)) : d ? i("div", { class: "verification-status" }, t === "Failed" ? r("verificationFailed", this.language) : r("verificationExpired", this.language)) : a.length > 0 ? i("div", { class: "documents-dropdown" }, i("select", { class: "nice-select", onChange: (l) => this.handleOptionChange(l, e.type) }, i("option", { value: "", selected: !0, disabled: !0, hidden: !0 }, r("chooseDocument", this.language)), a.map((l) => i("option", { selected: n == l.code, value: l.code }, r(l.type, this.language)))), this.renderDocumentsActions(a.find((l) => l.code === n), n, e)) : null));
|
|
852
830
|
}
|
|
853
831
|
render() {
|
|
854
|
-
return this.isLoading ? i("div", null, i("p", null, r("loading", this.language))) : i("div", { class: "ModalContainer", ref: (e) => this.stylingContainer = e }, i("div", { class: "player-kyc-verification-widget" }, this.isMobile ? i("div", { class: "MenuReturnButton", onClick: this.handleToggleScreen }, i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, i("defs", null), i("g", { transform: "translate(-20 -158)" }, i("g", { transform: "translate(20 158)" }, i("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)" })))), i("h2", null, r("kycTitle", this.language))) : i("h2", null, r("kycTitle", this.language)), this.verificationType.length === 0 ? i("div", { class: "no-verification-description", style: { padding: "24px", fontSize: "18px" } }, r("noVerificationRequired", this.language)) : i(
|
|
832
|
+
return this.isLoading ? i("div", null, i("p", null, r("loading", this.language))) : i("div", { class: "ModalContainer", ref: (e) => this.stylingContainer = e }, i("div", { class: "player-kyc-verification-widget" }, this.isMobile ? i("div", { class: "MenuReturnButton", onClick: this.handleToggleScreen }, i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, i("defs", null), i("g", { transform: "translate(-20 -158)" }, i("g", { transform: "translate(20 158)" }, i("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)" })))), i("h2", null, r("kycTitle", this.language))) : i("h2", null, r("kycTitle", this.language)), this.verificationType.length === 0 ? i("div", { class: "no-verification-description", style: { padding: "24px", fontSize: "18px" } }, r("noVerificationRequired", this.language)) : i(u, null, i("div", { class: "widget-description" }, r("kycDescription", this.language)), i("div", { class: "verification-types" }, this.verificationType.map((e) => e ? this.renderVerificationTypeBox(e) : null)))));
|
|
855
833
|
}
|
|
856
834
|
static get watchers() {
|
|
857
835
|
return {
|
|
@@ -859,7 +837,7 @@ button, select {
|
|
|
859
837
|
};
|
|
860
838
|
}
|
|
861
839
|
};
|
|
862
|
-
|
|
840
|
+
S.style = b;
|
|
863
841
|
export {
|
|
864
|
-
|
|
842
|
+
S as player_kyc_verification
|
|
865
843
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, c as o, h as t } from "./index-062e829b-
|
|
1
|
+
import { r as l, c as o, h as t } from "./index-062e829b-DAFsZs6D.js";
|
|
2
2
|
import { t as a } from "./locale-BG_TzyDt.js";
|
|
3
3
|
import { t as r } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
|
|
4
4
|
const s = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}', n = s, c = class {
|