@everymatrix/player-account-controller 1.53.12 → 1.54.0
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-Ddt-oH9k.js → GeneralLogout-CsWa2j6i.js} +1131 -1094
- package/components/GeneralLogout-DfI2_eQe.cjs +8 -0
- package/components/{PlayerAccountBettingHistory-C7xwYi03.js → PlayerAccountBettingHistory-D_8K8e-E.js} +35 -34
- package/components/PlayerAccountBettingHistory-ldAp8-yN.cjs +1 -0
- package/components/PlayerAccountBiometrics-Cft2jzuJ.cjs +1 -0
- package/components/{PlayerAccountBiometrics-D7WS5cnI.js → PlayerAccountBiometrics-FWYyFKmB.js} +1 -1
- package/components/{PlayerAccountClosure-yRlo8hXR.js → PlayerAccountClosure-BJP8eejl.js} +1 -1
- package/components/PlayerAccountClosure-DvHhtHhl.cjs +1 -0
- package/components/PlayerAccountController-DDLO4xVW.cjs +1 -0
- package/components/{PlayerAccountController-BZYAo3oo.js → PlayerAccountController-DQGj69Re.js} +353 -336
- package/components/{PlayerAccountGamingLimits-CTBhVGgC.js → PlayerAccountGamingLimits-Dt8hOZzW.js} +3 -3
- package/components/PlayerAccountGamingLimits-EQC_UZag.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CuQvNzww.js → PlayerAccountGamingLimitsConfirmationModal-B6SPYMpk.js} +1 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-Ciz1fSFW.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-Du2YQlDU.js → PlayerAccountGamingLimitsGroupEdit-BG2VPqUz.js} +16 -16
- package/components/PlayerAccountGamingLimitsGroupEdit-CLjUmEQv.cjs +10 -0
- package/components/{PlayerAccountGamingLimitsHistory2-CXKA0L0d.js → PlayerAccountGamingLimitsHistory2-65MLJ2rD.js} +132 -121
- package/components/PlayerAccountGamingLimitsHistory2-CG4RnfZE.cjs +1 -0
- package/components/PlayerAccountGamingLimitsInfoCard-Au2vobro.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-CWTybgoQ.js → PlayerAccountGamingLimitsInfoCard-CqTAvCh7.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CXjNcIFP.js → PlayerAccountGamingLimitsPage2Gm16-C3dTjA-p.js} +768 -737
- package/components/PlayerAccountGamingLimitsPage2Gm16-CMnCgRU1.cjs +21 -0
- package/components/PlayerAccountGamingLimitsPopup-BtbGIQFb.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsPopup-CJu5RRl6.js → PlayerAccountGamingLimitsPopup-diUVGesC.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-BdpxEDlV.js → PlayerAccountGamingLimitsWrapper2-BmDihzLr.js} +81 -75
- package/components/PlayerAccountGamingLimitsWrapper2-CW3N7E83.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-DG0N686t.js → PlayerAccountGeneralConfirmationModal-D3tbAl7Q.js} +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-xMxALug3.cjs +1 -0
- package/components/{PlayerAccountMenu-CZBa8_5G.js → PlayerAccountMenu-CbXhpL1a.js} +67 -66
- package/components/PlayerAccountMenu-DHGBVm64.cjs +1 -0
- package/components/{PlayerAccountModal-BmKjtXKT.js → PlayerAccountModal-5TJbkUF8.js} +1 -1
- package/components/PlayerAccountModal-BitbPM3Z.cjs +1 -0
- package/components/{PlayerAccountNotifications-B4Ht-hHj.js → PlayerAccountNotifications-BVY-SXyT.js} +1 -1
- package/components/PlayerAccountNotifications-DDu6ZWkh.cjs +1 -0
- package/components/PlayerAccountSelfExclusion-9vzbBY28.cjs +3828 -0
- package/components/{PlayerAccountSelfExclusion-DxGHXTb8.js → PlayerAccountSelfExclusion-BGfuEA4r.js} +1572 -1488
- package/components/{PlayerAccountTimeout-DOSjICsY.js → PlayerAccountTimeout-BDDMm0XX.js} +4 -4
- package/components/PlayerAccountTimeout-f4vPyQE-.cjs +1 -0
- package/components/PlayerActiveBonuses-BVQwAh2z.cjs +1 -0
- package/components/{PlayerActiveBonuses-DMAG7NUP.js → PlayerActiveBonuses-D0RUTvjl.js} +120 -119
- package/components/{PlayerBonusCard-Dss1REmn.js → PlayerBonusCard-CU67pLmG.js} +2 -2
- package/components/PlayerBonusCard-UTTIEBwb.cjs +1 -0
- package/components/{PlayerBonusHistory-BxBiQwQf.js → PlayerBonusHistory-BLedlLHg.js} +53 -53
- package/components/PlayerBonusHistory-EXOvKzDr.cjs +1 -0
- package/components/{PlayerChangePassword-DnCj-wcc.js → PlayerChangePassword-8ZD6eOj-.js} +1 -1
- package/components/PlayerChangePassword-XpKJjnFu.cjs +3 -0
- package/components/{PlayerDeposit-CHIQ8EaC.js → PlayerDeposit-D5Xuk21T.js} +1 -1
- package/components/PlayerDeposit-Do7vb_4b.cjs +1 -0
- package/components/PlayerGamingHistory-OEU1L3Q2.cjs +1 -0
- package/components/{PlayerGamingHistory-BtQ73TId.js → PlayerGamingHistory-tb-rMGdz.js} +388 -375
- package/components/PlayerPendingWithdrawals-Bu2MOezw.cjs +1 -0
- package/components/{PlayerPendingWithdrawals-BbTa7_8U.js → PlayerPendingWithdrawals-DuN3Qn3P.js} +1 -1
- package/components/{PlayerProfileInfo-CvAqD3Dk.js → PlayerProfileInfo-DmKFg0dn.js} +549 -532
- package/components/PlayerProfileInfo-lMeb2jBi.cjs +1 -0
- package/components/{PlayerRealityCheck-3d-B64ie.js → PlayerRealityCheck-BUW8tvj3.js} +191 -175
- package/components/PlayerRealityCheck-CA0P_3BC.cjs +1 -0
- package/components/PlayerTransactionHistory-CvZcvyBx.cjs +1 -0
- package/components/{PlayerTransactionHistory-BYJNabMB.js → PlayerTransactionHistory-hGi2tOL2.js} +1 -1
- package/components/{PlayerWithdrawal-DDWroufG.js → PlayerWithdrawal-CR3Xpytk.js} +1 -1
- package/components/PlayerWithdrawal-DxLwjX7x.cjs +1 -0
- package/es2015/player-account-controller.cjs +1 -0
- package/es2015/player-account-controller.js +16 -0
- package/package.json +33 -12
- package/stencil/active-mixin-59dfae2a-1hMz67mM.cjs +1519 -0
- package/stencil/{active-mixin-59dfae2a-BphP4pp5.js → active-mixin-59dfae2a-CJN1Jc-g.js} +776 -745
- package/stencil/app-globals-0f993ce5-8artnnwr.cjs +1 -0
- package/stencil/{checkbox-group-input_9-CMFoK7_E.js → checkbox-group-input_9-DQoOMgN8.js} +1942 -1873
- package/stencil/checkbox-group-input_9-DiXERGqn.cjs +4193 -0
- package/stencil/{general-input-DnFPstQP.js → general-input-bzWxIJkt.js} +1 -1
- package/stencil/general-input-fzGwoSoE.cjs +1 -0
- package/stencil/index-062e829b-CpXLBOEz.cjs +1 -0
- package/stencil/{index-062e829b-DAFsZs6D.js → index-062e829b-DPj_pEuI.js} +236 -220
- package/stencil/index-33f005e1-BS5PFnj3.cjs +1 -0
- package/stencil/{index-33f005e1-fFxPaeNy.js → index-33f005e1-DGGQe5wK.js} +239 -223
- package/stencil/{index-9b3245b3-rzHgwqlB.js → index-9b3245b3-3zj7bxxu.js} +193 -166
- package/stencil/index-9b3245b3-ByXtSZIM.cjs +1 -0
- package/stencil/{index-fc58390d-BSwfXuUs.js → index-fc58390d-DeoeGpBS.js} +294 -267
- package/stencil/index-fc58390d-DgBOSsU7.cjs +1 -0
- package/stencil/locale-B5abSHU_.cjs +1 -0
- package/stencil/password-input_2-DvDzz75b.cjs +1248 -0
- package/stencil/{password-input_2-Bb9Q6Fe0.js → password-input_2-Dx1lICIg.js} +154 -136
- package/stencil/player-change-password-gm2-98dcb7bc-CCEw2GA2.cjs +1 -0
- package/stencil/{player-change-password-gm2-98dcb7bc-gLcZhl3S.js → player-change-password-gm2-98dcb7bc-F9HM0T8d.js} +1 -1
- package/stencil/player-change-password-gm2-BEYcuzS-.cjs +1 -0
- package/stencil/player-change-password-gm2-NWnv4CCw.js +25 -0
- package/stencil/player-kyc-verification-_iT3bbO9.cjs +180 -0
- package/stencil/{player-kyc-verification-BQZdJFEJ.js → player-kyc-verification-o-RUWyY4.js} +83 -61
- package/stencil/{toggle-checkbox-input-CCLW6-uK.js → toggle-checkbox-input-BCrxxTpc.js} +1 -1
- package/stencil/toggle-checkbox-input-BYoIi-jG.cjs +1 -0
- package/stencil/tooltipIcon-ee9760a8-Bd9l1O5C.cjs +1 -0
- package/stencil/{user-deposit-withdrawal-CmF0LoNb.js → user-deposit-withdrawal-DEMVRyvk.js} +197 -175
- package/stencil/user-deposit-withdrawal-_jt0Ivg5.cjs +59 -0
- package/stencil/{user-transaction-history-BgV-k2Cl.js → user-transaction-history-CevHOCcm.js} +107 -81
- package/stencil/user-transaction-history-U0c__t1q.cjs +1 -0
- package/esnext/player-account-controller.js +0 -14
- package/stencil/player-change-password-gm2-DR3e2gh5.js +0 -7
|
@@ -1,12 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var u = (e, n, t) => new Promise((a, o) => {
|
|
2
|
+
var l = (d) => {
|
|
3
|
+
try {
|
|
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 = () => {
|
|
4
20
|
const e = import.meta.url, n = {};
|
|
5
|
-
return e !== "" && (n.resourcesUrl = new URL(".", e).href),
|
|
21
|
+
return e !== "" && (n.resourcesUrl = new URL(".", e).href), y(n);
|
|
6
22
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
23
|
+
C().then((e) => u(void 0, null, function* () {
|
|
24
|
+
return yield w(), g([["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);
|
|
25
|
+
}));
|
|
26
|
+
const x = "en";
|
|
27
|
+
let f = {
|
|
10
28
|
en: {
|
|
11
29
|
loading: "Loading, please wait ...",
|
|
12
30
|
noVerificationRequired: "There is no verification required for your account at this moment.",
|
|
@@ -492,18 +510,18 @@ let c = {
|
|
|
492
510
|
Voucher: "Voucher"
|
|
493
511
|
}
|
|
494
512
|
};
|
|
495
|
-
const
|
|
513
|
+
const h = (e) => new Promise((n) => {
|
|
496
514
|
fetch(e).then((t) => t.json()).then((t) => {
|
|
497
515
|
Object.keys(t).forEach((a) => {
|
|
498
|
-
|
|
516
|
+
f[a] || (f[a] = {});
|
|
499
517
|
for (let o in t[a])
|
|
500
|
-
|
|
518
|
+
f[a][o] = t[a][o];
|
|
501
519
|
}), n(!0);
|
|
502
520
|
});
|
|
503
521
|
}), r = (e, n, t) => {
|
|
504
522
|
const a = n;
|
|
505
|
-
return
|
|
506
|
-
},
|
|
523
|
+
return f[a !== void 0 && a in f ? a : x][e];
|
|
524
|
+
}, k = (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)), b = `:host {
|
|
507
525
|
font-family: inherit;
|
|
508
526
|
}
|
|
509
527
|
|
|
@@ -682,9 +700,9 @@ button, select {
|
|
|
682
700
|
.player-kyc-verification-widget .verification-types {
|
|
683
701
|
grid-template-columns: repeat(2, 1fr);
|
|
684
702
|
}
|
|
685
|
-
}`,
|
|
703
|
+
}`, S = b, P = class {
|
|
686
704
|
constructor(e) {
|
|
687
|
-
|
|
705
|
+
v(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 = k(this.userAgent), this.setClientStyling = () => {
|
|
688
706
|
let n = document.createElement("style");
|
|
689
707
|
n.innerHTML = this.clientStyling, this.stylingContainer.prepend(n);
|
|
690
708
|
}, this.setClientStylingURL = () => {
|
|
@@ -701,40 +719,44 @@ button, select {
|
|
|
701
719
|
};
|
|
702
720
|
}
|
|
703
721
|
handleNewTranslations() {
|
|
704
|
-
this.isLoading = !0,
|
|
722
|
+
this.isLoading = !0, h(this.translationUrl).then(() => {
|
|
705
723
|
this.isLoading = !1;
|
|
706
724
|
});
|
|
707
725
|
}
|
|
708
|
-
|
|
709
|
-
this
|
|
726
|
+
componentWillLoad() {
|
|
727
|
+
return u(this, null, function* () {
|
|
728
|
+
this.translationUrl.length > 2 && (yield h(this.translationUrl));
|
|
729
|
+
});
|
|
710
730
|
}
|
|
711
731
|
componentDidRender() {
|
|
712
732
|
!this.stylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.stylingAppends = !0);
|
|
713
733
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
734
|
+
componentDidLoad() {
|
|
735
|
+
return u(this, null, function* () {
|
|
736
|
+
window.innerWidth > 700 && (this.expandedOnDesktop = !0);
|
|
737
|
+
try {
|
|
738
|
+
let e = new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);
|
|
739
|
+
const n = {
|
|
740
|
+
method: "POST",
|
|
741
|
+
headers: {
|
|
742
|
+
"X-SessionId": this.session,
|
|
743
|
+
"Content-Type": "application/json"
|
|
744
|
+
},
|
|
745
|
+
body: JSON.stringify({})
|
|
746
|
+
};
|
|
747
|
+
fetch(e.href, n).then((t) => {
|
|
748
|
+
if (t.status === 200)
|
|
749
|
+
return t.json();
|
|
750
|
+
throw new Error("HTTP status " + t.status);
|
|
751
|
+
}).then((t) => {
|
|
752
|
+
this.verificationType = t.verifications;
|
|
753
|
+
}).catch((t) => {
|
|
754
|
+
console.error(t);
|
|
755
|
+
});
|
|
756
|
+
} catch (e) {
|
|
757
|
+
console.error("Error fetching verification types:", e);
|
|
758
|
+
}
|
|
759
|
+
});
|
|
738
760
|
}
|
|
739
761
|
handleOptionChange(e, n) {
|
|
740
762
|
const t = e.target;
|
|
@@ -743,7 +765,7 @@ button, select {
|
|
|
743
765
|
handleDocumentsStatus(e, n, t) {
|
|
744
766
|
this.verificationType = this.verificationType.map((a) => {
|
|
745
767
|
if (a.type === e) {
|
|
746
|
-
const o = a.documents.find((
|
|
768
|
+
const o = a.documents.find((l) => l.code === t);
|
|
747
769
|
o && (o.statusUploaded = n);
|
|
748
770
|
}
|
|
749
771
|
return a;
|
|
@@ -785,11 +807,11 @@ button, select {
|
|
|
785
807
|
if (o.ok)
|
|
786
808
|
return this.uploadingStatus = r("uploading", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n), o.json();
|
|
787
809
|
}).then((o) => {
|
|
788
|
-
const
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
}).catch((
|
|
792
|
-
console.error("File upload error:",
|
|
810
|
+
const l = new FormData();
|
|
811
|
+
l.append(n, this.selectedFile[0]), fetch(o.Url, { method: "POST", body: l }).then((c) => {
|
|
812
|
+
c.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:", c.status));
|
|
813
|
+
}).catch((c) => {
|
|
814
|
+
console.error("File upload error:", c);
|
|
793
815
|
});
|
|
794
816
|
}).catch((o) => {
|
|
795
817
|
console.error("File upload error:", o);
|
|
@@ -802,8 +824,8 @@ button, select {
|
|
|
802
824
|
if (new Function(a)(), this.scriptInjected)
|
|
803
825
|
n(!0);
|
|
804
826
|
else {
|
|
805
|
-
const
|
|
806
|
-
|
|
827
|
+
const l = document.createElement("script");
|
|
828
|
+
l.src = "https://test.insic.de/frontend3/static/js/avs-loader.min.js", document.head.appendChild(l), this.scriptInjected = !0, n(!0);
|
|
807
829
|
}
|
|
808
830
|
}).catch((a) => {
|
|
809
831
|
t(a);
|
|
@@ -815,21 +837,21 @@ button, select {
|
|
|
815
837
|
}
|
|
816
838
|
renderVerificationTypeBox(e) {
|
|
817
839
|
this.expandedOnDesktop && (e.expanded = !0);
|
|
818
|
-
let n = e.expanded, t = e.type.trim(), a = e.optionChosen, o = e.status,
|
|
819
|
-
const
|
|
820
|
-
return i("div", { class: `verification-box ${n ? "expanded" : ""} ${
|
|
821
|
-
var
|
|
822
|
-
return this.toggleVerificationType(e.type, (
|
|
823
|
-
} }, i("div", { class: "box-icon" },
|
|
840
|
+
let n = e.expanded, t = e.type.trim(), a = e.optionChosen, o = e.status, l = e.documents, c = e.flowInfo;
|
|
841
|
+
const s = o === "Verified", d = o === "Failed" || o === "Expired";
|
|
842
|
+
return i("div", { class: `verification-box ${n ? "expanded" : ""} ${d ? "failed" : ""} ${s ? "success" : ""}` }, i("div", { class: `box box-header ${n ? "expanded" : ""}`, onClick: () => {
|
|
843
|
+
var p;
|
|
844
|
+
return this.toggleVerificationType(e.type, (p = e.flowInfo) === null || p === void 0 ? void 0 : p.type);
|
|
845
|
+
} }, i("div", { class: "box-icon" }, s ? 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" }))) : d ? 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, l, c, s, d) : i("div", { class: "box box-content" }, i("div", { id: "__avs-wrapper" })));
|
|
824
846
|
}
|
|
825
847
|
renderDocumentsActions(e, n, t) {
|
|
826
|
-
return i("div", null, this.isStatusUploaded(e) ? i("div", { class: "upload-status" }, r("uploaded", this.language)) : e
|
|
848
|
+
return i("div", null, this.isStatusUploaded(e) ? i("div", { class: "upload-status" }, r("uploaded", this.language)) : e != null && e.statusUploaded ? i("div", { class: "upload-status" }, e == null ? void 0 : e.statusUploaded) : i("div", { class: "documents-action" }, i("div", { class: "sample-file" }, (e == null ? void 0 : e.sampleType) === "FileDownload" ? i("button", { class: "download-button", onClick: () => this.downloadPDF(e == null ? void 0 : 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)));
|
|
827
849
|
}
|
|
828
|
-
renderExpandedContent(e, n, t, a, o,
|
|
829
|
-
return o
|
|
850
|
+
renderExpandedContent(e, n, t, a, o, l, c) {
|
|
851
|
+
return (o == null ? void 0 : 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 == null ? void 0 : 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(m, null, l ? i("div", { class: "verification-status" }, r("verificationComplete", this.language)) : c ? 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: (s) => this.handleOptionChange(s, e.type) }, i("option", { value: "", selected: !0, disabled: !0, hidden: !0 }, r("chooseDocument", this.language)), a.map((s) => i("option", { selected: n == s.code, value: s.code }, r(s.type, this.language)))), this.renderDocumentsActions(a.find((s) => s.code === n), n, e)) : null));
|
|
830
852
|
}
|
|
831
853
|
render() {
|
|
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(
|
|
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(m, null, i("div", { class: "widget-description" }, r("kycDescription", this.language)), i("div", { class: "verification-types" }, this.verificationType.map((e) => e ? this.renderVerificationTypeBox(e) : null)))));
|
|
833
855
|
}
|
|
834
856
|
static get watchers() {
|
|
835
857
|
return {
|
|
@@ -837,7 +859,7 @@ button, select {
|
|
|
837
859
|
};
|
|
838
860
|
}
|
|
839
861
|
};
|
|
840
|
-
|
|
862
|
+
P.style = S;
|
|
841
863
|
export {
|
|
842
|
-
|
|
864
|
+
P as player_kyc_verification
|
|
843
865
|
};
|
|
@@ -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-DPj_pEuI.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 {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-062e829b-CpXLBOEz.cjs"),l=require("./locale-B5abSHU_.cjs"),a=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),r='*,*::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}',s=r,o=class{constructor(e){t.registerInstance(this,e),this.sendValidityState=t.createEvent(this,"sendValidityState"),this.sendInputValue=t.createEvent(this,"sendInputValue"),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields=this.defaultValue==="true",this.value="",this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)}}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return l.translate("requiredError",this.language)}renderLabel(){return t.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},t.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?t.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return t.h("div",{key:"8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed",class:`togglecheckbox__wrapper ${this.name}__input`,ref:e=>this.stylingContainer=e},t.h("div",{key:"18e2ec43ff98738323ddab1e134d6d215978e1c7",class:"togglecheckbox__wrapper--flex"},t.h("input",{key:"640b3ba4fd34bd813239533236e51f452e735409",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:e=>this.checkboxReference=e,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),t.h("small",{key:"efd70a691559cfa98e93561dd945a0fe92909718",class:"togglecheckbox__error-message"},this.errorMessage),t.h("div",{key:"e56a8fafa17da25d01f894fe6e6c143c318d2aab",class:"togglecheckbox__wrapper--relative"},this.tooltip&&t.h("img",{key:"8b59366827b8f4f8ca5581203a2dca44ae8132d5",class:"togglecheckbox__tooltip-icon",src:a.tooltipIconSvg,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),t.h("div",{key:"475e27345b51396c36e78b5a1e06edd980bc3ae1",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(e=>t.h("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:e.placeholder==null?"":e.placeholder}))))}};o.style=s;exports.toggle_checkbox_input=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const I="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==";exports.tooltipIconSvg=I;
|