@everymatrix/player-account-controller 1.65.1 → 1.65.3
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-CgxHUYZx.js → GeneralLogout-BvHI6IRl.js} +1439 -1474
- package/components/{GeneralLogout-CYE3twI-.js → GeneralLogout-DC1eQria.js} +1458 -1493
- package/components/GeneralLogout-DweBl3EQ.cjs +21 -0
- package/components/{PlayerAccountBettingHistory-BXBMy618.js → PlayerAccountBettingHistory-BTEzWQvN.js} +27 -27
- package/components/{PlayerAccountBettingHistory-B0IsJ01N.js → PlayerAccountBettingHistory-Bo3-gODs.js} +27 -27
- package/components/{PlayerAccountBettingHistory-BtDZukYI.cjs → PlayerAccountBettingHistory-DgHU9Jz9.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DrmVF6dX.js → PlayerAccountBiometrics-DRMe1Ngk.js} +22 -22
- package/components/{PlayerAccountBiometrics-CEEVheLt.cjs → PlayerAccountBiometrics-DXk7ouzk.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-CCk_4MyI.js → PlayerAccountBiometrics-eJ0NsGhR.js} +22 -22
- package/components/{PlayerAccountClosure-B_xwOPds.js → PlayerAccountClosure-CenyN-4X.js} +17 -17
- package/components/{PlayerAccountClosure-UwL_V2IO.js → PlayerAccountClosure-D4FSDBR-.js} +17 -17
- package/components/{PlayerAccountClosure-DoZ91aH2.cjs → PlayerAccountClosure-DMF66IyF.cjs} +1 -1
- package/components/{PlayerAccountController-D2wy-3AY.js → PlayerAccountController-CE3DCARp.js} +138 -138
- package/components/{PlayerAccountController-CVX3r-TI.cjs → PlayerAccountController-CJqLJFq9.cjs} +1 -1
- package/components/{PlayerAccountController-BzCKRC0T.js → PlayerAccountController-_H7Suh7X.js} +140 -140
- package/components/{PlayerAccountGamingLimits-DZBzKFyv.cjs → PlayerAccountGamingLimits-C5-wP3x8.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-BF1Dd_Yw.js → PlayerAccountGamingLimits-bgH5yldD.js} +19 -19
- package/components/{PlayerAccountGamingLimits-BKHRQo_P.js → PlayerAccountGamingLimits-qvefhQXf.js} +19 -19
- package/components/{PlayerAccountGamingLimitsConfirmationModal-57Q5qtf8.js → PlayerAccountGamingLimitsConfirmationModal-B-Zcfwzu.js} +53 -53
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CztJ5DKd.js → PlayerAccountGamingLimitsConfirmationModal-BSuURD9X.js} +53 -53
- package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-B7O4IGQB.js → PlayerAccountGamingLimitsGroupEdit-CgtvM5l0.js} +415 -413
- package/components/{PlayerAccountGamingLimitsGroupEdit-DlaRG8Hg.js → PlayerAccountGamingLimitsGroupEdit-DflmfEfo.js} +415 -413
- package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsHistory2-BLK-Rk6N.js → PlayerAccountGamingLimitsHistory2-B0Hm0NN-.js} +48 -48
- package/components/{PlayerAccountGamingLimitsHistory2-CreFMkf_.cjs → PlayerAccountGamingLimitsHistory2-C0g0UlRl.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-Br4h7_eS.js → PlayerAccountGamingLimitsHistory2-CkXX1K7L.js} +46 -46
- package/components/{PlayerAccountGamingLimitsInfoCard-BlMfsPqJ.js → PlayerAccountGamingLimitsInfoCard-ByqimrlU.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-BqsEfU1b.js → PlayerAccountGamingLimitsInfoCard-D2xDA5AE.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs → PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-C4Cf53bH.js → PlayerAccountGamingLimitsPage2Gm16-6oqp3QDs.js} +101 -101
- package/components/{PlayerAccountGamingLimitsPage2Gm16-D0UaSH_1.js → PlayerAccountGamingLimitsPage2Gm16-B7VpqKm8.js} +118 -118
- package/components/{PlayerAccountGamingLimitsPage2Gm16-isbaVllo.cjs → PlayerAccountGamingLimitsPage2Gm16-BeMRmv-L.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsPopup-DTb6cpuT.js → PlayerAccountGamingLimitsPopup-Bhe4pnzt.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs → PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Dz9ROowj.js → PlayerAccountGamingLimitsPopup-LjmHojBJ.js} +28 -28
- package/components/{PlayerAccountGamingLimitsWrapper2-BxbHvpZn.js → PlayerAccountGamingLimitsWrapper2-BnAOuyMV.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2-B1gV6va3.js → PlayerAccountGamingLimitsWrapper2-BnahUpgU.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2-BNIPTcA9.cjs → PlayerAccountGamingLimitsWrapper2-DNBhGOWx.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-DQ7Oklqf.js → PlayerAccountGeneralConfirmationModal-BXvbser8.js} +95 -95
- package/components/{PlayerAccountGeneralConfirmationModal-lHX_vmhB.js → PlayerAccountGeneralConfirmationModal-Ct4ffM2k.js} +95 -95
- package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +1 -0
- package/components/{PlayerAccountMenu-BZnkRiU-.cjs → PlayerAccountMenu-BZSV920e.cjs} +1 -1
- package/components/{PlayerAccountMenu-D4d9TQsD.js → PlayerAccountMenu-COhw6RUO.js} +29 -29
- package/components/{PlayerAccountMenu-j3TA2Osb.js → PlayerAccountMenu-CXkbGum8.js} +29 -29
- package/components/{PlayerAccountModal-Cbpkb5P6.js → PlayerAccountModal-BlJKMVDD.js} +44 -44
- package/components/{PlayerAccountModal-Co5a_OZZ.js → PlayerAccountModal-C2BAyjz8.js} +44 -44
- package/components/{PlayerAccountModal-SsGlrcmj.cjs → PlayerAccountModal-lwDOdDa4.cjs} +1 -1
- package/components/{PlayerAccountNotifications-CkbUxjuk.js → PlayerAccountNotifications-Br27rQuw.js} +35 -35
- package/components/{PlayerAccountNotifications-ejASOsrU.cjs → PlayerAccountNotifications-CzMMRPni.cjs} +1 -1
- package/components/{PlayerAccountNotifications-f0A-2obd.js → PlayerAccountNotifications-YIzJUJtW.js} +120 -120
- package/components/{PlayerAccountSelfExclusion-B6iUbzx_.cjs → PlayerAccountSelfExclusion-DOBXVbGp.cjs} +53 -53
- package/components/{PlayerAccountSelfExclusion-BdsBaF0b.js → PlayerAccountSelfExclusion-DcjyVbyI.js} +297 -293
- package/components/{PlayerAccountSelfExclusion-BmXodIER.js → PlayerAccountSelfExclusion-r_y8NKk9.js} +300 -296
- package/components/{PlayerAccountTimeout-BzPzfzdC.cjs → PlayerAccountTimeout-BTWCScSA.cjs} +1 -1
- package/components/{PlayerAccountTimeout-DSKlzoFl.js → PlayerAccountTimeout-Bj1lGwNr.js} +150 -150
- package/components/{PlayerAccountTimeout-DlzzIcIq.js → PlayerAccountTimeout-D2BFCkW4.js} +150 -150
- package/components/{PlayerAccountTransactionsHistory-iW7mxyG2.js → PlayerAccountTransactionsHistory-BTZrAMpd.js} +5571 -3273
- package/components/{PlayerAccountTransactionsHistory-DV6Lliwo.cjs → PlayerAccountTransactionsHistory-CLtNxF1E.cjs} +1307 -217
- package/components/{PlayerAccountTransactionsHistory-BkD7oheQ.js → PlayerAccountTransactionsHistory-DamCdY8r.js} +5552 -3254
- package/components/{PlayerActiveBonuses-CVhSMdRf.cjs → PlayerActiveBonuses-C7G2b4x9.cjs} +1 -1
- package/components/{PlayerActiveBonuses-Cakyx19i.js → PlayerActiveBonuses-TAb_daVK.js} +54 -54
- package/components/{PlayerActiveBonuses-uCEkihFw.js → PlayerActiveBonuses-f9Tnt64h.js} +52 -52
- package/components/{PlayerBonusCard-6xOKi384.js → PlayerBonusCard-CBO8neP8.js} +54 -54
- package/components/{PlayerBonusCard-BNNcjGWn.cjs → PlayerBonusCard-nwlvuWsq.cjs} +1 -1
- package/components/{PlayerBonusCard-CXbETnCF.js → PlayerBonusCard-uudC6LGS.js} +54 -54
- package/components/{PlayerBonusHistory-90c3VIp4.js → PlayerBonusHistory-BhFNlaSf.js} +30 -30
- package/components/{PlayerBonusHistory-DdNvPihc.js → PlayerBonusHistory-DqURmCme.js} +30 -30
- package/components/{PlayerBonusHistory-DOeldQB2.cjs → PlayerBonusHistory-DvfiMpJt.cjs} +1 -1
- package/components/{PlayerChangePassword-ChwKfBC6.js → PlayerChangePassword-BUbXMFnB.js} +66 -66
- package/components/{PlayerChangePassword-LgjKzYU1.cjs → PlayerChangePassword-D0aYOkoZ.cjs} +1 -1
- package/components/{PlayerChangePassword-C2ZoKuCq.js → PlayerChangePassword-D4DzBZed.js} +66 -66
- package/components/{PlayerDeposit-VLcz0tQH.js → PlayerDeposit-BB64hmyO.js} +29 -29
- package/components/{PlayerDeposit-Dzg8Ltb1.cjs → PlayerDeposit-DAFmH9HW.cjs} +1 -1
- package/components/{PlayerDeposit-BPZ5wCAZ.js → PlayerDeposit-lfkc7jOj.js} +29 -29
- package/components/{PlayerGamingHistory-DUaJVzT1.cjs → PlayerGamingHistory-CsAD_iks.cjs} +1 -1
- package/components/{PlayerGamingHistory-Cby06y2X.js → PlayerGamingHistory-DxVgYcre.js} +63 -63
- package/components/{PlayerGamingHistory-C17HT6-7.js → PlayerGamingHistory-e4Kr6TRi.js} +63 -63
- package/components/{PlayerPendingWithdrawals-DeNKdUgJ.js → PlayerPendingWithdrawals-B6qiUkpB.js} +26 -26
- package/components/{PlayerPendingWithdrawals-BMwtFNQT.cjs → PlayerPendingWithdrawals-DbuXpIXl.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-go7okUzL.js → PlayerPendingWithdrawals-QAaJbf_-.js} +26 -26
- package/components/PlayerProfileInfo-B-Cly6nt.js +2463 -0
- package/components/PlayerProfileInfo-DFtxyN-C.cjs +4 -0
- package/components/PlayerProfileInfo-DsBGGdCC.js +2426 -0
- package/components/{PlayerRealityCheck-BrVF76qp.cjs → PlayerRealityCheck-CFJVJn17.cjs} +1 -1
- package/components/{PlayerRealityCheck-DMNAglZN.js → PlayerRealityCheck-CyxiiYoi.js} +44 -44
- package/components/{PlayerRealityCheck-C2TUMl9-.js → PlayerRealityCheck-DQ-_y3IT.js} +45 -45
- package/components/{PlayerTransactionHistory-A-aVfyoc.js → PlayerTransactionHistory-6G6ws2ky.js} +19 -19
- package/components/{PlayerTransactionHistory-4VtQqLAc.cjs → PlayerTransactionHistory-BOtRm_b6.cjs} +1 -1
- package/components/{PlayerTransactionHistory-BFV_XJw9.js → PlayerTransactionHistory-BjRhtwD4.js} +19 -19
- package/components/{PlayerWithdrawal-B_wQZI_t.js → PlayerWithdrawal-BIBZrL0i.js} +19 -19
- package/components/{PlayerWithdrawal-CTttZqLr.js → PlayerWithdrawal-CuR6Pb4o.js} +19 -19
- package/components/{PlayerWithdrawal-BMLgaRLc.cjs → PlayerWithdrawal-OBRjEIH9.cjs} +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/{checkbox-group-input_9-B_Jl5XYl.js → checkbox-group-input_9-BwrWZeLB.js} +92 -90
- package/stencil/checkbox-group-input_9-CImFZbCv.cjs +2 -0
- package/stencil/{checkbox-group-input_9-BubdPaeo.js → checkbox-group-input_9-DdpCHvWb.js} +92 -90
- package/stencil/{general-input-BRLohAp9.js → general-input-BDPI_fW2.js} +4998 -2742
- package/stencil/{general-input-CZRDVuGV.js → general-input-DpokfhP6.js} +5006 -2750
- package/stencil/{general-input-BjwgkYic.cjs → general-input-y1CIV_-r.cjs} +1306 -216
- package/stencil/{index-1ef3a64c-DsTe-fF4.js → index-1ef3a64c-B1Hda3TY.js} +185 -185
- package/stencil/index-1ef3a64c-CCWt3IAA.cjs +1 -0
- package/stencil/{index-1ef3a64c-BNosNJnU.js → index-1ef3a64c-Dd-0nq4l.js} +192 -192
- package/stencil/index-7c5e707a-8-4_dLFT.js +643 -0
- package/stencil/{index-7c5e707a-C9R6jYpt.js → index-7c5e707a-CuTkyLaW.js} +209 -209
- package/stencil/index-7c5e707a-nBsW029h.cjs +1 -0
- package/stencil/index-9c0f6c58-DbSOntvG.cjs +1 -0
- package/stencil/{index-9c0f6c58-BNoMpTuB.js → index-9c0f6c58-NlVKpLut.js} +180 -180
- package/stencil/{index-9c0f6c58-pr1WGVFu.js → index-9c0f6c58-RPoO1End.js} +176 -176
- package/stencil/{index-9cd44522-NqpP4xs6.js → index-9cd44522-Cto_o6sQ.js} +202 -202
- package/stencil/{index-9cd44522-CbUzJsuK.js → index-9cd44522-DrlRFYrB.js} +196 -196
- package/stencil/index-9cd44522-lYql7AfG.cjs +1 -0
- package/stencil/index-b2193545-BXNomIzV.js +519 -0
- package/stencil/index-b2193545-CYe2oVMy.js +503 -0
- package/stencil/index-b2193545-DxRobzZI.cjs +1 -0
- package/stencil/locale-CB060R77.cjs +1 -0
- package/stencil/{locale-ioQf6ZrW.js → locale-Cxpe53Ym.js} +9 -3
- package/stencil/{password-input_2-8BNshhaU.cjs → password-input_2-BFXxkcXV.cjs} +2 -2
- package/stencil/{password-input_2-DhPkhv-D.js → password-input_2-CqbOPSSZ.js} +26 -24
- package/stencil/{password-input_2-DIwo3oT2.js → password-input_2-DQst8UHp.js} +26 -24
- package/stencil/{player-change-password-gm2-5cb5c6c1-BsO6atoJ.js → player-change-password-gm2-5cb5c6c1-BhDKCfuN.js} +1 -1
- package/stencil/{player-change-password-gm2-5cb5c6c1-C0AlgHfx.js → player-change-password-gm2-5cb5c6c1-Ch9RyZ2b.js} +1 -1
- package/stencil/{player-change-password-gm2-5cb5c6c1-ij_CKxBn.cjs → player-change-password-gm2-5cb5c6c1-n4BjzEVs.cjs} +1 -1
- package/stencil/{player-change-password-gm2-ALHM57bi.js → player-change-password-gm2-Bg9HNK0A.js} +1 -1
- package/stencil/{player-change-password-gm2-bVKmVTiQ.js → player-change-password-gm2-CNOsEIfo.js} +1 -1
- package/stencil/{player-change-password-gm2-ZOlHswn0.cjs → player-change-password-gm2-COsfG6W5.cjs} +1 -1
- package/stencil/{player-kyc-verification-CUhrMPde.js → player-kyc-verification-Cxnz1raa.js} +79 -76
- package/stencil/{player-kyc-verification-DPUx1txP.js → player-kyc-verification-DA_O1Dqu.js} +36 -33
- package/stencil/player-kyc-verification-qKWuqiUm.cjs +180 -0
- package/stencil/{toggle-checkbox-input-hUEi-Cj3.js → toggle-checkbox-input-B4lb8oMh.js} +2 -2
- package/stencil/{toggle-checkbox-input-D3dpAI79.cjs → toggle-checkbox-input-BhQAILyC.cjs} +1 -1
- package/stencil/{toggle-checkbox-input-LjmhdQte.js → toggle-checkbox-input-rocW3Yvz.js} +2 -2
- package/stencil/{ui-skeleton-1cb75d00-CwDKR1VD.js → ui-skeleton-1cb75d00-CZJ4UoDJ.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-BI5A-j0y.js → ui-skeleton-1cb75d00-D5Bub0nv.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-Batko5iK.cjs → ui-skeleton-1cb75d00-dFWe5qbW.cjs} +1 -1
- package/stencil/{ui-skeleton-t0bb1jH7.cjs → ui-skeleton-BH5oLkn9.cjs} +1 -1
- package/stencil/{ui-skeleton-C974aG7g.js → ui-skeleton-CZ5yC1WO.js} +2 -2
- package/stencil/{ui-skeleton-DoX-UmRU.js → ui-skeleton-vLKdvRqw.js} +2 -2
- package/stencil/{user-deposit-withdrawal-Dzz_fEvK.js → user-deposit-withdrawal-BMWb-WJE.js} +45 -45
- package/stencil/{user-deposit-withdrawal-C7W58646.js → user-deposit-withdrawal-ByE9O4TW.js} +45 -45
- package/stencil/{user-deposit-withdrawal-Dfu_1g2v.cjs → user-deposit-withdrawal-DGTrOlxS.cjs} +2 -2
- package/stencil/{user-transaction-history-DhQ6RqNc.js → user-transaction-history-BU4-cXt6.js} +11 -11
- package/stencil/{user-transaction-history-BAK7MHHa.js → user-transaction-history-CXBKXul8.js} +14 -14
- package/stencil/{user-transaction-history-DiRXpfbN.cjs → user-transaction-history-DLLIZ5Ck.cjs} +1 -1
- package/components/GeneralLogout-Dzu2Sl-x.cjs +0 -21
- package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +0 -1
- package/components/PlayerProfileInfo-C--m-_0F.js +0 -2419
- package/components/PlayerProfileInfo-CD0xjooF.js +0 -2383
- package/components/PlayerProfileInfo-D5YZWH2T.cjs +0 -4
- package/stencil/checkbox-group-input_9-BvAcuPzL.cjs +0 -2
- package/stencil/index-1ef3a64c-CFvPR_NP.cjs +0 -1
- package/stencil/index-7c5e707a-DvxqcEpc.js +0 -643
- package/stencil/index-7c5e707a-ESX_oqGB.cjs +0 -1
- package/stencil/index-9c0f6c58-DkHHwpww.cjs +0 -1
- package/stencil/index-9cd44522-WdjpTA2U.cjs +0 -1
- package/stencil/index-b2193545-CnMZ4-Ff.js +0 -519
- package/stencil/index-b2193545-Ct5AhxM8.cjs +0 -1
- package/stencil/index-b2193545-DePry399.js +0 -503
- package/stencil/locale-BB2iZ4t0.cjs +0 -1
- package/stencil/player-kyc-verification-DAy-szI5.cjs +0 -180
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { b as v, p as w, r as k, h as i, F as m } from "./index-9c0f6c58-
|
|
1
|
+
import { b as v, p as w, r as k, h as i, F as m } from "./index-9c0f6c58-RPoO1End.js";
|
|
2
2
|
import { a as C } from "./app-globals-0f993ce5-DzSE6TtH.js";
|
|
3
3
|
var x = () => {
|
|
4
|
-
const e = import.meta.url,
|
|
5
|
-
return e !== "" && (
|
|
4
|
+
const e = import.meta.url, n = {};
|
|
5
|
+
return e !== "" && (n.resourcesUrl = new URL(".", e).href), w(n);
|
|
6
6
|
};
|
|
7
|
-
x().then(async (e) => (await C(), v([["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"], mbSource: [1, "mb-source"], verificationType: [32], isLoading: [32], selectedFile: [32], uploadingStatus: [32], uploadSizeExceeded: [32],
|
|
7
|
+
x().then(async (e) => (await C(), v([["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"], mbSource: [1, "mb-source"], verificationType: [32], isLoading: [32], selectedFile: [32], uploadingStatus: [32], uploadSizeExceeded: [32], expandedOnDesktop: [32] }, null, { translationUrl: ["handleNewTranslations"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"] }]]]], e)));
|
|
8
8
|
const S = "en";
|
|
9
9
|
let c = {
|
|
10
10
|
en: {
|
|
@@ -516,37 +516,37 @@ let c = {
|
|
|
516
516
|
Voucher: "Voucher"
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
|
-
const h = (e) => new Promise((
|
|
520
|
-
fetch(e).then((
|
|
521
|
-
Object.keys(
|
|
519
|
+
const h = (e) => new Promise((n) => {
|
|
520
|
+
fetch(e).then((t) => t.json()).then((t) => {
|
|
521
|
+
Object.keys(t).forEach((o) => {
|
|
522
522
|
c[o] || (c[o] = {});
|
|
523
|
-
for (let a in
|
|
524
|
-
c[o][a] =
|
|
525
|
-
}),
|
|
523
|
+
for (let a in t[o])
|
|
524
|
+
c[o][a] = t[o][a];
|
|
525
|
+
}), n(!0);
|
|
526
526
|
});
|
|
527
|
-
}), r = (e,
|
|
528
|
-
const o =
|
|
527
|
+
}), r = (e, n, t) => {
|
|
528
|
+
const o = n;
|
|
529
529
|
return c[o !== void 0 && o in c ? o : S][e];
|
|
530
530
|
}, b = (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));
|
|
531
|
-
function
|
|
531
|
+
function g(e, n) {
|
|
532
532
|
if (e) {
|
|
533
|
-
const
|
|
534
|
-
|
|
533
|
+
const t = document.createElement("style");
|
|
534
|
+
t.innerHTML = n, e.appendChild(t);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
function
|
|
538
|
-
const
|
|
539
|
-
fetch(
|
|
537
|
+
function y(e, n) {
|
|
538
|
+
const t = new URL(n);
|
|
539
|
+
fetch(t.href).then((o) => o.text()).then((o) => {
|
|
540
540
|
const a = document.createElement("style");
|
|
541
541
|
a.innerHTML = o, e && e.appendChild(a);
|
|
542
542
|
}).catch((o) => {
|
|
543
543
|
console.error("There was an error while trying to load client styling from URL", o);
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
|
-
function P(e,
|
|
546
|
+
function P(e, n, t) {
|
|
547
547
|
if (window.emMessageBus) {
|
|
548
548
|
const o = document.createElement("style");
|
|
549
|
-
window.emMessageBus.subscribe(
|
|
549
|
+
window.emMessageBus.subscribe(n, (a) => {
|
|
550
550
|
o.innerHTML = a, e && e.appendChild(o);
|
|
551
551
|
});
|
|
552
552
|
}
|
|
@@ -734,7 +734,7 @@ button, select {
|
|
|
734
734
|
constructor(e) {
|
|
735
735
|
k(this, e), this.scriptInjected = !1, this.MAX_UPLOAD_SIZE = 5e7, this.userAgent = window.navigator.userAgent, this.isMobile = b(this.userAgent), this.handleToggleScreen = () => {
|
|
736
736
|
this.toggleScreen(this.isMobile);
|
|
737
|
-
}, this.userId = "", this.session = "", this.language = void 0, this.endpoint = "", this.translationUrl = "", this.clientStyling = "", this.verifiedIcon = "", this.failedIcon = "", this.defaultIcon = "", this.clientStylingUrl = "", this.mbSource = void 0, this.verificationType = [], this.isLoading = !1, this.selectedFile = null, this.uploadingStatus = void 0, this.uploadSizeExceeded = !1, this.
|
|
737
|
+
}, this.userId = "", this.session = "", this.language = void 0, this.endpoint = "", this.translationUrl = "", this.clientStyling = "", this.verifiedIcon = "", this.failedIcon = "", this.defaultIcon = "", this.clientStylingUrl = "", this.mbSource = void 0, this.verificationType = [], this.isLoading = !1, this.selectedFile = null, this.uploadingStatus = void 0, this.uploadSizeExceeded = !1, this.expandedOnDesktop = !1;
|
|
738
738
|
}
|
|
739
739
|
handleNewTranslations() {
|
|
740
740
|
this.isLoading = !0, h(this.translationUrl).then(() => {
|
|
@@ -744,17 +744,17 @@ button, select {
|
|
|
744
744
|
async componentWillLoad() {
|
|
745
745
|
this.translationUrl.length > 2 && await h(this.translationUrl);
|
|
746
746
|
}
|
|
747
|
-
handleClientStylingChange(e,
|
|
748
|
-
e !=
|
|
747
|
+
handleClientStylingChange(e, n) {
|
|
748
|
+
e != n && g(this.stylingContainer, this.clientStyling);
|
|
749
749
|
}
|
|
750
|
-
handleClientStylingUrlChange(e,
|
|
751
|
-
e !=
|
|
750
|
+
handleClientStylingUrlChange(e, n) {
|
|
751
|
+
e != n && this.clientStylingUrl && y(this.stylingContainer, this.clientStylingUrl);
|
|
752
752
|
}
|
|
753
753
|
async componentDidLoad() {
|
|
754
|
-
this.stylingContainer && (window.emMessageBus != null ? P(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling &&
|
|
754
|
+
this.stylingContainer && (window.emMessageBus != null ? P(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && g(this.stylingContainer, this.clientStyling), this.clientStylingUrl && y(this.stylingContainer, this.clientStylingUrl))), window.innerWidth > 700 && (this.expandedOnDesktop = !0);
|
|
755
755
|
try {
|
|
756
756
|
let e = new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);
|
|
757
|
-
const
|
|
757
|
+
const n = {
|
|
758
758
|
method: "POST",
|
|
759
759
|
headers: {
|
|
760
760
|
"X-SessionId": this.session,
|
|
@@ -762,14 +762,14 @@ button, select {
|
|
|
762
762
|
},
|
|
763
763
|
body: JSON.stringify({})
|
|
764
764
|
};
|
|
765
|
-
fetch(e.href,
|
|
766
|
-
if (
|
|
767
|
-
return
|
|
768
|
-
throw new Error("HTTP status " +
|
|
769
|
-
}).then((
|
|
770
|
-
this.verificationType =
|
|
771
|
-
}).catch((
|
|
772
|
-
console.error(
|
|
765
|
+
fetch(e.href, n).then((t) => {
|
|
766
|
+
if (t.status === 200)
|
|
767
|
+
return t.json();
|
|
768
|
+
throw new Error("HTTP status " + t.status);
|
|
769
|
+
}).then((t) => {
|
|
770
|
+
this.verificationType = t.verifications;
|
|
771
|
+
}).catch((t) => {
|
|
772
|
+
console.error(t);
|
|
773
773
|
});
|
|
774
774
|
} catch (e) {
|
|
775
775
|
console.error("Error fetching verification types:", e);
|
|
@@ -778,42 +778,42 @@ button, select {
|
|
|
778
778
|
disconnectedCallback() {
|
|
779
779
|
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
780
780
|
}
|
|
781
|
-
handleOptionChange(e,
|
|
782
|
-
const
|
|
783
|
-
this.
|
|
781
|
+
handleOptionChange(e, n) {
|
|
782
|
+
const t = e.target;
|
|
783
|
+
this.verificationType = this.verificationType.map((o) => (o.type === n && (o.optionChosen = t.value), o));
|
|
784
784
|
}
|
|
785
|
-
handleDocumentsStatus(e,
|
|
785
|
+
handleDocumentsStatus(e, n, t) {
|
|
786
786
|
this.verificationType = this.verificationType.map((o) => {
|
|
787
787
|
if (o.type === e) {
|
|
788
|
-
const a = o.documents.find((s) => s.code ===
|
|
789
|
-
a && (a.statusUploaded =
|
|
788
|
+
const a = o.documents.find((s) => s.code === t);
|
|
789
|
+
a && (a.statusUploaded = n);
|
|
790
790
|
}
|
|
791
791
|
return o;
|
|
792
792
|
});
|
|
793
793
|
}
|
|
794
794
|
downloadPDF(e) {
|
|
795
|
-
const
|
|
796
|
-
|
|
795
|
+
const n = document.createElement("a");
|
|
796
|
+
n.href = e, n.download = "file.pdf", n.target = "_blank", n.dispatchEvent(new MouseEvent("click"));
|
|
797
797
|
}
|
|
798
|
-
toggleVerificationType(e,
|
|
799
|
-
this.expandedOnDesktop = !1, this.verificationType = this.verificationType.map((
|
|
798
|
+
toggleVerificationType(e, n) {
|
|
799
|
+
this.expandedOnDesktop = !1, this.verificationType = this.verificationType.map((t) => {
|
|
800
800
|
var o;
|
|
801
|
-
return
|
|
801
|
+
return t.type === e && ((o = t.flowInfo) === null || o === void 0 ? void 0 : o.type) == n && (t.expanded = !t.expanded), t;
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
toggleScreen(e) {
|
|
805
805
|
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: e }, window.location.href);
|
|
806
806
|
}
|
|
807
807
|
checkFileSize(e) {
|
|
808
|
-
let
|
|
809
|
-
return Object.keys(e).forEach((
|
|
810
|
-
|
|
811
|
-
}),
|
|
808
|
+
let n = 0;
|
|
809
|
+
return Object.keys(e).forEach((t) => {
|
|
810
|
+
n += e[t].size;
|
|
811
|
+
}), n <= this.MAX_UPLOAD_SIZE;
|
|
812
812
|
}
|
|
813
|
-
handleFileSelection(e,
|
|
813
|
+
handleFileSelection(e, n, t) {
|
|
814
814
|
if (e && e.length > 0)
|
|
815
815
|
if (this.selectedFile = e, !this.checkFileSize(this.selectedFile))
|
|
816
|
-
console.error(r("fileSizeExceeded", this.language)), this.uploadingStatus = r("fileSizeExceeded", this.language), this.handleDocumentsStatus(
|
|
816
|
+
console.error(r("fileSizeExceeded", this.language)), this.uploadingStatus = r("fileSizeExceeded", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n), this.uploadSizeExceeded = !0;
|
|
817
817
|
else {
|
|
818
818
|
const o = {
|
|
819
819
|
method: "POST",
|
|
@@ -821,34 +821,37 @@ button, select {
|
|
|
821
821
|
"Content-Type": "application/json",
|
|
822
822
|
"X-SessionId": this.session
|
|
823
823
|
},
|
|
824
|
-
body: JSON.stringify({ DocumentCode:
|
|
824
|
+
body: JSON.stringify({ DocumentCode: n })
|
|
825
825
|
};
|
|
826
826
|
fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`, o).then((a) => {
|
|
827
827
|
if (a.ok)
|
|
828
|
-
return this.uploadingStatus = r("uploading", this.language), this.handleDocumentsStatus(
|
|
828
|
+
return this.uploadingStatus = r("uploading", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n), a.json();
|
|
829
829
|
}).then((a) => {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
830
|
+
if (a.ResponseCode == "Success") {
|
|
831
|
+
const s = new FormData();
|
|
832
|
+
s.append(n, this.selectedFile[0]), fetch(a.Url, { method: "POST", body: s }).then((l) => {
|
|
833
|
+
l.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:", l.status));
|
|
834
|
+
}).catch((l) => {
|
|
835
|
+
console.error("File upload error:", l);
|
|
836
|
+
});
|
|
837
|
+
} else
|
|
838
|
+
this.uploadingStatus = r("failedUpload", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n);
|
|
836
839
|
}).catch((a) => {
|
|
837
840
|
console.error("File upload error:", a);
|
|
838
841
|
});
|
|
839
842
|
}
|
|
840
843
|
}
|
|
841
844
|
importScript(e) {
|
|
842
|
-
return new Promise((
|
|
845
|
+
return new Promise((n, t) => {
|
|
843
846
|
fetch(e).then((o) => o.text()).then((o) => {
|
|
844
847
|
if (new Function(o)(), this.scriptInjected)
|
|
845
|
-
|
|
848
|
+
n(!0);
|
|
846
849
|
else {
|
|
847
850
|
const s = document.createElement("script");
|
|
848
|
-
s.src = "https://test.insic.de/frontend3/static/js/avs-loader.min.js", document.head.appendChild(s), this.scriptInjected = !0,
|
|
851
|
+
s.src = "https://test.insic.de/frontend3/static/js/avs-loader.min.js", document.head.appendChild(s), this.scriptInjected = !0, n(!0);
|
|
849
852
|
}
|
|
850
853
|
}).catch((o) => {
|
|
851
|
-
|
|
854
|
+
t(o);
|
|
852
855
|
});
|
|
853
856
|
});
|
|
854
857
|
}
|
|
@@ -856,26 +859,26 @@ button, select {
|
|
|
856
859
|
return !!(e && e.status === "Uploaded");
|
|
857
860
|
}
|
|
858
861
|
getFirstRequestedDocument(e) {
|
|
859
|
-
var t;
|
|
860
|
-
let
|
|
861
|
-
return (
|
|
862
|
-
|
|
863
|
-
}),
|
|
862
|
+
var n, t;
|
|
863
|
+
let o;
|
|
864
|
+
return (n = e?.documents) === null || n === void 0 || n.forEach((a) => {
|
|
865
|
+
a.status == "Requested" && (o = o ?? a.code);
|
|
866
|
+
}), o || (o = (t = e?.documents[0]) === null || t === void 0 ? void 0 : t.code), o;
|
|
864
867
|
}
|
|
865
868
|
renderVerificationTypeBox(e) {
|
|
866
869
|
this.expandedOnDesktop && (e.expanded = !0);
|
|
867
|
-
let
|
|
870
|
+
let n = this.getFirstRequestedDocument(e), t = e.expanded, o = e.type.trim(), a = e.optionChosen || n, s = e.status, l = e.documents, d = e.flowInfo;
|
|
868
871
|
const f = s === "Verified", u = s === "Failed" || s === "Expired";
|
|
869
|
-
return i("div", { class: `verification-box ${
|
|
872
|
+
return i("div", { class: `verification-box ${t ? "expanded" : ""} ${u ? "failed" : ""} ${f ? "success" : ""}` }, i("div", { class: `box box-header ${t ? "expanded" : ""}`, onClick: () => {
|
|
870
873
|
var p;
|
|
871
874
|
return this.toggleVerificationType(e.type, (p = e.flowInfo) === null || p === void 0 ? void 0 : p.type);
|
|
872
|
-
} }, i("div", { class: "box-icon" }, f ? 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" }))) : u ? 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(o, 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:
|
|
875
|
+
} }, i("div", { class: "box-icon" }, f ? 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" }))) : u ? 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(o, 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: t ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" })))), t ? this.renderExpandedContent(e, a, s, l, d, f, u) : i("div", { class: "box box-content" }, i("div", { id: "__avs-wrapper" })));
|
|
873
876
|
}
|
|
874
|
-
renderDocumentsActions(e,
|
|
875
|
-
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, #22B04E))" }), i("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" })), i("span", null, r("download", this.language))) : null), i("div", { class: "upload-button" },
|
|
877
|
+
renderDocumentsActions(e, n, t) {
|
|
878
|
+
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, #22B04E))" }), i("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" })), i("span", null, r("download", this.language))) : null), i("div", { class: "upload-button" }, n ? i("label", null, i("input", { type: "file", accept: "*", onChange: (o) => this.handleFileSelection(o.target.files, n, 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, #22B04E))" }), 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)));
|
|
876
879
|
}
|
|
877
|
-
renderExpandedContent(e,
|
|
878
|
-
return a?.type === "Widget" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : a?.type === "Redirect" && e.vendorName !== "Manual" &&
|
|
880
|
+
renderExpandedContent(e, n, t, o, a, s, l) {
|
|
881
|
+
return a?.type === "Widget" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : a?.type === "Redirect" && e.vendorName !== "Manual" && t !== "Verified" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : i("div", { class: "box box-content" }, i(m, null, s ? i("div", { class: "verification-status" }, r("verificationComplete", this.language)) : l ? i("div", { class: "verification-status" }, t === "Failed" ? r("verificationFailed", this.language) : r("verificationExpired", this.language)) : o.length > 0 ? i("div", { class: "documents-dropdown" }, i("select", { class: "nice-select", onChange: (d) => this.handleOptionChange(d, e.type) }, o.map((d) => i("option", { selected: d.code == n, value: d.code }, r(d.type, this.language)))), this.renderDocumentsActions(o.find((d) => d.code === n), n, e)) : null));
|
|
879
882
|
}
|
|
880
883
|
render() {
|
|
881
884
|
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)))));
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var p = (e, t, n) => new Promise((o, a) => {
|
|
2
|
-
var s = (
|
|
2
|
+
var s = (l) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
d(n.next(l));
|
|
5
5
|
} catch (f) {
|
|
6
6
|
a(f);
|
|
7
7
|
}
|
|
8
|
-
}, c = (
|
|
8
|
+
}, c = (l) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
d(n.throw(l));
|
|
11
11
|
} catch (f) {
|
|
12
12
|
a(f);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, d = (l) => l.done ? o(l.value) : Promise.resolve(l.value).then(s, c);
|
|
15
|
+
d((n = n.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as w, p as k, r as C, h as i, F as h } from "./index-9c0f6c58-
|
|
17
|
+
import { b as w, p as k, r as C, h as i, F as h } from "./index-9c0f6c58-NlVKpLut.js";
|
|
18
18
|
import { a as x } from "./app-globals-0f993ce5-DzSE6TtH.js";
|
|
19
19
|
var S = () => {
|
|
20
20
|
const e = import.meta.url, t = {};
|
|
21
21
|
return e !== "" && (t.resourcesUrl = new URL(".", e).href), k(t);
|
|
22
22
|
};
|
|
23
23
|
S().then((e) => p(void 0, null, function* () {
|
|
24
|
-
return yield x(), w([["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"], mbSource: [1, "mb-source"], verificationType: [32], isLoading: [32], selectedFile: [32], uploadingStatus: [32], uploadSizeExceeded: [32],
|
|
24
|
+
return yield x(), w([["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"], mbSource: [1, "mb-source"], verificationType: [32], isLoading: [32], selectedFile: [32], uploadingStatus: [32], uploadSizeExceeded: [32], expandedOnDesktop: [32] }, null, { translationUrl: ["handleNewTranslations"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"] }]]]], e);
|
|
25
25
|
}));
|
|
26
26
|
const b = "en";
|
|
27
27
|
let u = {
|
|
@@ -534,7 +534,7 @@ let u = {
|
|
|
534
534
|
Voucher: "Voucher"
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
|
-
const
|
|
537
|
+
const g = (e) => new Promise((t) => {
|
|
538
538
|
fetch(e).then((n) => n.json()).then((n) => {
|
|
539
539
|
Object.keys(n).forEach((o) => {
|
|
540
540
|
u[o] || (u[o] = {});
|
|
@@ -546,7 +546,7 @@ const y = (e) => new Promise((t) => {
|
|
|
546
546
|
const o = t;
|
|
547
547
|
return u[o !== void 0 && o in u ? o : b][e];
|
|
548
548
|
}, P = (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));
|
|
549
|
-
function
|
|
549
|
+
function y(e, t) {
|
|
550
550
|
if (e) {
|
|
551
551
|
const n = document.createElement("style");
|
|
552
552
|
n.innerHTML = t, e.appendChild(n);
|
|
@@ -752,27 +752,27 @@ button, select {
|
|
|
752
752
|
constructor(e) {
|
|
753
753
|
C(this, e), this.scriptInjected = !1, this.MAX_UPLOAD_SIZE = 5e7, this.userAgent = window.navigator.userAgent, this.isMobile = P(this.userAgent), this.handleToggleScreen = () => {
|
|
754
754
|
this.toggleScreen(this.isMobile);
|
|
755
|
-
}, this.userId = "", this.session = "", this.language = void 0, this.endpoint = "", this.translationUrl = "", this.clientStyling = "", this.verifiedIcon = "", this.failedIcon = "", this.defaultIcon = "", this.clientStylingUrl = "", this.mbSource = void 0, this.verificationType = [], this.isLoading = !1, this.selectedFile = null, this.uploadingStatus = void 0, this.uploadSizeExceeded = !1, this.
|
|
755
|
+
}, this.userId = "", this.session = "", this.language = void 0, this.endpoint = "", this.translationUrl = "", this.clientStyling = "", this.verifiedIcon = "", this.failedIcon = "", this.defaultIcon = "", this.clientStylingUrl = "", this.mbSource = void 0, this.verificationType = [], this.isLoading = !1, this.selectedFile = null, this.uploadingStatus = void 0, this.uploadSizeExceeded = !1, this.expandedOnDesktop = !1;
|
|
756
756
|
}
|
|
757
757
|
handleNewTranslations() {
|
|
758
|
-
this.isLoading = !0,
|
|
758
|
+
this.isLoading = !0, g(this.translationUrl).then(() => {
|
|
759
759
|
this.isLoading = !1;
|
|
760
760
|
});
|
|
761
761
|
}
|
|
762
762
|
componentWillLoad() {
|
|
763
763
|
return p(this, null, function* () {
|
|
764
|
-
this.translationUrl.length > 2 && (yield
|
|
764
|
+
this.translationUrl.length > 2 && (yield g(this.translationUrl));
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
handleClientStylingChange(e, t) {
|
|
768
|
-
e != t &&
|
|
768
|
+
e != t && y(this.stylingContainer, this.clientStyling);
|
|
769
769
|
}
|
|
770
770
|
handleClientStylingUrlChange(e, t) {
|
|
771
771
|
e != t && this.clientStylingUrl && v(this.stylingContainer, this.clientStylingUrl);
|
|
772
772
|
}
|
|
773
773
|
componentDidLoad() {
|
|
774
774
|
return p(this, null, function* () {
|
|
775
|
-
this.stylingContainer && (window.emMessageBus != null ? D(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling &&
|
|
775
|
+
this.stylingContainer && (window.emMessageBus != null ? D(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && y(this.stylingContainer, this.clientStyling), this.clientStylingUrl && v(this.stylingContainer, this.clientStylingUrl))), window.innerWidth > 700 && (this.expandedOnDesktop = !0);
|
|
776
776
|
try {
|
|
777
777
|
let e = new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);
|
|
778
778
|
const t = {
|
|
@@ -802,7 +802,7 @@ button, select {
|
|
|
802
802
|
}
|
|
803
803
|
handleOptionChange(e, t) {
|
|
804
804
|
const n = e.target;
|
|
805
|
-
this.
|
|
805
|
+
this.verificationType = this.verificationType.map((o) => (o.type === t && (o.optionChosen = n.value), o));
|
|
806
806
|
}
|
|
807
807
|
handleDocumentsStatus(e, t, n) {
|
|
808
808
|
this.verificationType = this.verificationType.map((o) => {
|
|
@@ -849,12 +849,15 @@ button, select {
|
|
|
849
849
|
if (a.ok)
|
|
850
850
|
return this.uploadingStatus = r("uploading", this.language), this.handleDocumentsStatus(n, this.uploadingStatus, t), a.json();
|
|
851
851
|
}).then((a) => {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
852
|
+
if (a.ResponseCode == "Success") {
|
|
853
|
+
const s = new FormData();
|
|
854
|
+
s.append(t, this.selectedFile[0]), fetch(a.Url, { method: "POST", body: s }).then((c) => {
|
|
855
|
+
c.ok ? (this.selectedFile.length > 1 ? this.uploadingStatus = r("successUploadMultipleFiles", this.language) : this.uploadingStatus = r("successUpload", this.language), this.handleDocumentsStatus(n, this.uploadingStatus, t)) : (this.uploadingStatus = r("failedUpload", this.language), this.handleDocumentsStatus(n, this.uploadingStatus, t), console.error("File upload error:", c.status));
|
|
856
|
+
}).catch((c) => {
|
|
857
|
+
console.error("File upload error:", c);
|
|
858
|
+
});
|
|
859
|
+
} else
|
|
860
|
+
this.uploadingStatus = r("failedUpload", this.language), this.handleDocumentsStatus(n, this.uploadingStatus, t);
|
|
858
861
|
}).catch((a) => {
|
|
859
862
|
console.error("File upload error:", a);
|
|
860
863
|
});
|
|
@@ -878,26 +881,26 @@ button, select {
|
|
|
878
881
|
return !!(e && e.status === "Uploaded");
|
|
879
882
|
}
|
|
880
883
|
getFirstRequestedDocument(e) {
|
|
881
|
-
var t;
|
|
882
|
-
let
|
|
883
|
-
return (t = e == null ? void 0 : e.documents) === null || t === void 0 || t.forEach((
|
|
884
|
-
|
|
885
|
-
}), n;
|
|
884
|
+
var t, n;
|
|
885
|
+
let o;
|
|
886
|
+
return (t = e == null ? void 0 : e.documents) === null || t === void 0 || t.forEach((a) => {
|
|
887
|
+
a.status == "Requested" && (o = o != null ? o : a.code);
|
|
888
|
+
}), o || (o = (n = e == null ? void 0 : e.documents[0]) === null || n === void 0 ? void 0 : n.code), o;
|
|
886
889
|
}
|
|
887
890
|
renderVerificationTypeBox(e) {
|
|
888
891
|
this.expandedOnDesktop && (e.expanded = !0);
|
|
889
|
-
let t = this.getFirstRequestedDocument(e), n = e.expanded, o = e.type.trim(), a = e.optionChosen || t, s = e.status, c = e.documents,
|
|
890
|
-
const
|
|
891
|
-
return i("div", { class: `verification-box ${n ? "expanded" : ""} ${f ? "failed" : ""} ${
|
|
892
|
+
let t = this.getFirstRequestedDocument(e), n = e.expanded, o = e.type.trim(), a = e.optionChosen || t, s = e.status, c = e.documents, d = e.flowInfo;
|
|
893
|
+
const l = s === "Verified", f = s === "Failed" || s === "Expired";
|
|
894
|
+
return i("div", { class: `verification-box ${n ? "expanded" : ""} ${f ? "failed" : ""} ${l ? "success" : ""}` }, i("div", { class: `box box-header ${n ? "expanded" : ""}`, onClick: () => {
|
|
892
895
|
var m;
|
|
893
896
|
return this.toggleVerificationType(e.type, (m = e.flowInfo) === null || m === void 0 ? void 0 : m.type);
|
|
894
|
-
} }, i("div", { class: "box-icon" },
|
|
897
|
+
} }, 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" }))) : f ? 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(o, 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, s, c, d, l, f) : i("div", { class: "box box-content" }, i("div", { id: "__avs-wrapper" })));
|
|
895
898
|
}
|
|
896
899
|
renderDocumentsActions(e, t, n) {
|
|
897
|
-
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, #22B04E))" }), i("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" })), i("span", null, r("download", this.language))) : null), i("div", { class: "upload-button" }, t ? i("label", null, i("input", { type: "file", accept: "*", onChange: (o) => this.handleFileSelection(o.target.files,
|
|
900
|
+
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, #22B04E))" }), i("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" })), i("span", null, r("download", this.language))) : null), i("div", { class: "upload-button" }, t ? i("label", null, i("input", { type: "file", accept: "*", onChange: (o) => this.handleFileSelection(o.target.files, t, n.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, #22B04E))" }), 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)));
|
|
898
901
|
}
|
|
899
902
|
renderExpandedContent(e, t, n, o, a, s, c) {
|
|
900
|
-
return (a == null ? void 0 : a.type) === "Widget" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : (a == null ? void 0 : a.type) === "Redirect" && e.vendorName !== "Manual" && n !== "Verified" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : i("div", { class: "box box-content" }, i(h, null, s ? i("div", { class: "verification-status" }, r("verificationComplete", this.language)) : c ? i("div", { class: "verification-status" }, n === "Failed" ? r("verificationFailed", this.language) : r("verificationExpired", this.language)) : o.length > 0 ? i("div", { class: "documents-dropdown" }, i("select", { class: "nice-select", onChange: (
|
|
903
|
+
return (a == null ? void 0 : a.type) === "Widget" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : (a == null ? void 0 : a.type) === "Redirect" && e.vendorName !== "Manual" && n !== "Verified" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : i("div", { class: "box box-content" }, i(h, null, s ? i("div", { class: "verification-status" }, r("verificationComplete", this.language)) : c ? i("div", { class: "verification-status" }, n === "Failed" ? r("verificationFailed", this.language) : r("verificationExpired", this.language)) : o.length > 0 ? i("div", { class: "documents-dropdown" }, i("select", { class: "nice-select", onChange: (d) => this.handleOptionChange(d, e.type) }, o.map((d) => i("option", { selected: d.code == t, value: d.code }, r(d.type, this.language)))), this.renderDocumentsActions(o.find((d) => d.code === t), t, e)) : null));
|
|
901
904
|
}
|
|
902
905
|
render() {
|
|
903
906
|
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(h, null, i("div", { class: "widget-description" }, r("kycDescription", this.language)), i("div", { class: "verification-types" }, this.verificationType.map((e) => e ? this.renderVerificationTypeBox(e) : null)))));
|