@everymatrix/player-kyc-verification 1.89.2 → 1.90.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.
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["player-kyc-verification.cjs",[[1,"player-kyc-verification",{"hideVulnerabilityCheck":[1,"hide-vulnerability-check"],"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"verificationType":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
11
+ return index.bootstrapLazy([["player-kyc-verification.cjs",[[1,"player-kyc-verification",{"hideVulnerabilityCheck":[1,"hide-vulnerability-check"],"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"hideKycDescription":[1,"hide-kyc-description"],"verificationType":[32],"hasRequestedDocuments":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -764,7 +764,9 @@ const PlayerKycVerificationWidget = class {
764
764
  this.defaultIcon = '';
765
765
  this.clientStylingUrl = '';
766
766
  this.mbSource = undefined;
767
+ this.hideKycDescription = 'false';
767
768
  this.verificationType = [];
769
+ this.hasRequestedDocuments = false;
768
770
  this.isLoading = false;
769
771
  this.selectedFile = null;
770
772
  this.uploadingStatus = undefined;
@@ -828,7 +830,14 @@ const PlayerKycVerificationWidget = class {
828
830
  }
829
831
  })
830
832
  .then((data) => {
833
+ var _a;
831
834
  this.verificationType = data.verifications;
835
+ if (this.hideKycDescription === "true" && ((_a = data === null || data === void 0 ? void 0 : data.verifications) === null || _a === void 0 ? void 0 : _a.length) > 0) {
836
+ this.hasRequestedDocuments = data.verifications.some((kycElement) => {
837
+ var _a;
838
+ return (_a = kycElement === null || kycElement === void 0 ? void 0 : kycElement.documents) === null || _a === void 0 ? void 0 : _a.some((document) => document.status === "Requested");
839
+ });
840
+ }
832
841
  })
833
842
  .catch((err) => {
834
843
  // Handle any errors
@@ -1050,7 +1059,9 @@ const PlayerKycVerificationWidget = class {
1050
1059
  index.h("h2", null, translate('kycTitle', this.language))), this.verificationType.length === 0 ?
1051
1060
  index.h("div", { class: "no-verification-description", style: { padding: '24px', fontSize: '18px' } }, translate('noVerificationRequired', this.language))
1052
1061
  :
1053
- index.h(index.Fragment, null, index.h("div", { class: "widget-description" }, translate('kycDescription', this.language)), index.h("div", { class: "verification-types" }, this.verificationType.map((verificationType) => verificationType ? this.renderVerificationTypeBox(verificationType) : null))))));
1062
+ index.h(index.Fragment, null, this.hideKycDescription === 'true' && !this.hasRequestedDocuments ?
1063
+ null
1064
+ : index.h("div", { class: "widget-description" }, translate('kycDescription', this.language)), index.h("div", { class: "verification-types" }, this.verificationType.map((verificationType) => verificationType ? this.renderVerificationTypeBox(verificationType) : null))))));
1054
1065
  }
1055
1066
  }
1056
1067
  static get watchers() { return {
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["player-kyc-verification.cjs",[[1,"player-kyc-verification",{"hideVulnerabilityCheck":[1,"hide-vulnerability-check"],"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"verificationType":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
22
+ return index.bootstrapLazy([["player-kyc-verification.cjs",[[1,"player-kyc-verification",{"hideVulnerabilityCheck":[1,"hide-vulnerability-check"],"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"hideKycDescription":[1,"hide-kyc-description"],"verificationType":[32],"hasRequestedDocuments":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -23,7 +23,9 @@ export class PlayerKycVerificationWidget {
23
23
  this.defaultIcon = '';
24
24
  this.clientStylingUrl = '';
25
25
  this.mbSource = undefined;
26
+ this.hideKycDescription = 'false';
26
27
  this.verificationType = [];
28
+ this.hasRequestedDocuments = false;
27
29
  this.isLoading = false;
28
30
  this.selectedFile = null;
29
31
  this.uploadingStatus = undefined;
@@ -87,7 +89,14 @@ export class PlayerKycVerificationWidget {
87
89
  }
88
90
  })
89
91
  .then((data) => {
92
+ var _a;
90
93
  this.verificationType = data.verifications;
94
+ if (this.hideKycDescription === "true" && ((_a = data === null || data === void 0 ? void 0 : data.verifications) === null || _a === void 0 ? void 0 : _a.length) > 0) {
95
+ this.hasRequestedDocuments = data.verifications.some((kycElement) => {
96
+ var _a;
97
+ return (_a = kycElement === null || kycElement === void 0 ? void 0 : kycElement.documents) === null || _a === void 0 ? void 0 : _a.some((document) => document.status === "Requested");
98
+ });
99
+ }
91
100
  })
92
101
  .catch((err) => {
93
102
  // Handle any errors
@@ -309,7 +318,9 @@ export class PlayerKycVerificationWidget {
309
318
  h("h2", null, translate('kycTitle', this.language))), this.verificationType.length === 0 ?
310
319
  h("div", { class: "no-verification-description", style: { padding: '24px', fontSize: '18px' } }, translate('noVerificationRequired', this.language))
311
320
  :
312
- h(Fragment, null, h("div", { class: "widget-description" }, translate('kycDescription', this.language)), h("div", { class: "verification-types" }, this.verificationType.map((verificationType) => verificationType ? this.renderVerificationTypeBox(verificationType) : null))))));
321
+ h(Fragment, null, this.hideKycDescription === 'true' && !this.hasRequestedDocuments ?
322
+ null
323
+ : h("div", { class: "widget-description" }, translate('kycDescription', this.language)), h("div", { class: "verification-types" }, this.verificationType.map((verificationType) => verificationType ? this.renderVerificationTypeBox(verificationType) : null))))));
313
324
  }
314
325
  }
315
326
  static get is() { return "player-kyc-verification"; }
@@ -539,12 +550,31 @@ export class PlayerKycVerificationWidget {
539
550
  },
540
551
  "attribute": "mb-source",
541
552
  "reflect": false
553
+ },
554
+ "hideKycDescription": {
555
+ "type": "string",
556
+ "mutable": false,
557
+ "complexType": {
558
+ "original": "string",
559
+ "resolved": "string",
560
+ "references": {}
561
+ },
562
+ "required": false,
563
+ "optional": false,
564
+ "docs": {
565
+ "tags": [],
566
+ "text": "FF that hides the description if all the documents have been uploaded"
567
+ },
568
+ "attribute": "hide-kyc-description",
569
+ "reflect": false,
570
+ "defaultValue": "'false'"
542
571
  }
543
572
  };
544
573
  }
545
574
  static get states() {
546
575
  return {
547
576
  "verificationType": {},
577
+ "hasRequestedDocuments": {},
548
578
  "isLoading": {},
549
579
  "selectedFile": {},
550
580
  "uploadingStatus": {},
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["player-kyc-verification",[[1,"player-kyc-verification",{"hideVulnerabilityCheck":[1,"hide-vulnerability-check"],"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"verificationType":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
8
+ return bootstrapLazy([["player-kyc-verification",[[1,"player-kyc-verification",{"hideVulnerabilityCheck":[1,"hide-vulnerability-check"],"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"hideKycDescription":[1,"hide-kyc-description"],"verificationType":[32],"hasRequestedDocuments":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -760,7 +760,9 @@ const PlayerKycVerificationWidget = class {
760
760
  this.defaultIcon = '';
761
761
  this.clientStylingUrl = '';
762
762
  this.mbSource = undefined;
763
+ this.hideKycDescription = 'false';
763
764
  this.verificationType = [];
765
+ this.hasRequestedDocuments = false;
764
766
  this.isLoading = false;
765
767
  this.selectedFile = null;
766
768
  this.uploadingStatus = undefined;
@@ -824,7 +826,14 @@ const PlayerKycVerificationWidget = class {
824
826
  }
825
827
  })
826
828
  .then((data) => {
829
+ var _a;
827
830
  this.verificationType = data.verifications;
831
+ if (this.hideKycDescription === "true" && ((_a = data === null || data === void 0 ? void 0 : data.verifications) === null || _a === void 0 ? void 0 : _a.length) > 0) {
832
+ this.hasRequestedDocuments = data.verifications.some((kycElement) => {
833
+ var _a;
834
+ return (_a = kycElement === null || kycElement === void 0 ? void 0 : kycElement.documents) === null || _a === void 0 ? void 0 : _a.some((document) => document.status === "Requested");
835
+ });
836
+ }
828
837
  })
829
838
  .catch((err) => {
830
839
  // Handle any errors
@@ -1046,7 +1055,9 @@ const PlayerKycVerificationWidget = class {
1046
1055
  h("h2", null, translate('kycTitle', this.language))), this.verificationType.length === 0 ?
1047
1056
  h("div", { class: "no-verification-description", style: { padding: '24px', fontSize: '18px' } }, translate('noVerificationRequired', this.language))
1048
1057
  :
1049
- h(Fragment, null, h("div", { class: "widget-description" }, translate('kycDescription', this.language)), h("div", { class: "verification-types" }, this.verificationType.map((verificationType) => verificationType ? this.renderVerificationTypeBox(verificationType) : null))))));
1058
+ h(Fragment, null, this.hideKycDescription === 'true' && !this.hasRequestedDocuments ?
1059
+ null
1060
+ : h("div", { class: "widget-description" }, translate('kycDescription', this.language)), h("div", { class: "verification-types" }, this.verificationType.map((verificationType) => verificationType ? this.renderVerificationTypeBox(verificationType) : null))))));
1050
1061
  }
1051
1062
  }
1052
1063
  static get watchers() { return {
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["player-kyc-verification",[[1,"player-kyc-verification",{"hideVulnerabilityCheck":[1,"hide-vulnerability-check"],"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"verificationType":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
19
+ return bootstrapLazy([["player-kyc-verification",[[1,"player-kyc-verification",{"hideVulnerabilityCheck":[1,"hide-vulnerability-check"],"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"hideKycDescription":[1,"hide-kyc-description"],"verificationType":[32],"hasRequestedDocuments":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
20
20
  });
@@ -1 +1 @@
1
- import{r as e,h as i,F as n}from"./index-9c0f6c58.js";let o={en:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account Verification",kycDescription:"We require some documents to protect your account and to comply with legal and license requirements.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Recheck:"Recheck",Biometric:"Biometric",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},de:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account-Verifizierung",kycDescription:"Wir benötigen einige Dokumente, um Ihr Konto zu schützen und den rechtlichen und Lizenzanforderungen zu entsprechen.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Dokument bereits hochgeladen.",Unknown:"Unbekannt",Passport:"Reisepass",IdCardFront:"Personalausweis (Vorderseite)",IdCardBack:"Personalausweis (Rückseite)",BirthCertificate:"Geburtsurkunde",DrivingLicenseFront:"Führerschein (Vorderseite)",DrivingLicenseBack:"Führerschein (Rückseite)",ResidentialPermit:"Wohnberechtigungsschein",CreditDebitCardFront:"Kredit-/Debitkarte (Vorderseite)",CreditDebitCardBack:"Kredit-/Debitkarte (Rückseite)",UtilityBill:"Nebenkostenabrechnung",TaxBill:"Steuerbescheid",CertifiedCopy:"Beglaubigte Kopie",Selfie:"Selfie",BankStatement:"Kontoauszug",RentAgreement:"Mietvertrag",InsuranceAgreement:"Versicherungsvertrag",Other:"Sonstige",IncomeAndOrSavingsFromEmployment:"Einkommen und/oder Ersparnisse aus Beschäftigung",SaleOfSharesOrOtherInvestments:"Verkauf von Aktien oder anderen Anlagen",DividendsProfitsFromCompany:"Dividenden/Gewinne aus dem Unternehmen",CompanySale:"Firmenverkauf",IndividualOwnsPolicyCompanyPays:"Einzelperson besitzt die Police/Unternehmen zahlt",SaleOfProperty:"Immobilienverkauf",Inheritance:"Erbschaft",MaturityOrSurrenderOfLifeAssurance:"Fälligkeit oder Rückkauf einer Lebensversicherung",InsuranceClaims:"Versicherungsansprüche",CompensationPayment:"Entschädigungszahlung",LotteryBettingCasinoWin:"Lotterie-/Wett-/Casinogewinn",Loan:"Darlehen",Gift:"Geschenk",Ewallet:"E-Wallet",Voucher:"Gutschein"},ro:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Verificarea contului",kycDescription:"Avem nevoie de câteva documente pentru a proteja contul dvs. și pentru a respecta cerințele legale și de licență.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document deja încărcat.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},fr:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Vérification de compte",kycDescription:"Nous avons besoin de certains documents pour protéger votre compte et pour nous conformer aux exigences légales et de licence.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Document déjà téléchargé.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},ar:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"التحقق من الحساب",kycDescription:"نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},hr:{loading:"Učitavanje, molimo pričekajte ...",noVerificationRequired:"Trenutačno nije potrebna provjera vašeg računa.",verificationComplete:"Provjera dovršena",verificationFailed:"Provjera nije uspjela",verificationExpired:"Provjera je istekla",fileSizeExceeded:"Premašena je maksimalna veličina datoteke. Maksimalna veličina datoteke je: 50mb",uploading:"Prijenos…",successUpload:"Vaš dokument je učitan i uskoro će biti pregledan",successUploadMultipleFiles:"Vaši su dokumenti učitani i uskoro će biti pregledani",failedUpload:"Prijenos nije uspio pokušajte ponovo",chooseDocument:"Odaberite Dokument",kycTitle:"Verifikacija računa",kycDescription:"Potrebni su nam neki dokumenti kako bismo zaštitili vaš račun i kako bismo se pridržavali zakonskih i licencijskih zahtjeva.",download:"Preuzmi",Age:"Dob",Aml:"AML",Documents:"Dokumenti",Pep:"Politički izložena osoba",Sanction:"Sankcija",Biometric:"Verifikacija",Recheck:"Ponovna provjera",ProofOfAddress:"Potvrda adrese",SourceOfWealth:"Izvor sredstava",SocialMedia:"Društvene mreže",ProofOfPayment:"Platna metoda",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Dokument je već učitan.",Unknown:"Nepoznato",Passport:"Putovnica",IdCardFront:"Prednja strana osobne iskaznice",IdCardBack:"Stražnja strana osobne iskaznice",BirthCertificate:"Rodni list",DrivingLicenseFront:"Vozačka dozvola (prednja strana)",DrivingLicenseBack:"Vozačka dozvola (stražnja strana)",ResidentialPermit:"Boravišna dozvola",CreditDebitCardFront:"Kreditna/debitna kartica (prednja strana)",CreditDebitCardBack:"Kreditna/debitna kartica (stražnja strana)",UtilityBill:"Račun za komunalne usluge",TaxBill:"Porezni račun",CertifiedCopy:"Ovjereni primjerak",Selfie:"Selfie",BankStatement:"Bankovni izvod",RentAgreement:"Ugovor o najmu",InsuranceAgreement:"Ugovor o osiguranju",Other:"Ostalo",IncomeAndOrSavingsFromEmployment:"Prihod/Ušteđevina ",SaleOfSharesOrOtherInvestments:"Prodaja dionica ili drugih investicija",DividendsProfitsFromCompany:"Dividende/dobit od tvrtke",CompanySale:"Prodaja tvrtke",IndividualOwnsPolicyCompanyPays:"Osoba posjeduje policu/tvrtka plaća",SaleOfProperty:"Prodaja nekretnine",Inheritance:"Nasljeđe",MaturityOrSurrenderOfLifeAssurance:"Dospijeće ili predaja životnog osiguranja",InsuranceClaims:"Zahtjevi za osiguranje",CompensationPayment:"Isplata odštete",LotteryBettingCasinoWin:"Dobitak na lutriji/kladionici/kasinu",Loan:"Zajam",Gift:"Poklon",Ewallet:"Elektronički novčanik",Voucher:"Vaučer"},"pt-br":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Carregando, espere por favor…",noVerificationRequired:"Não há necessidade de verificação para sua conta no momento",verificationComplete:"Verificação completa",verificationFailed:"Verificação de falha",verificationExpired:"A verificação expirou",fileSizeExceeded:"Tamanho máximo do arquivo excedido. O tamanho máximo do arquivo é: 50 MB",uploading:"Carregando...",successUpload:"Seu documento foi carregado e será analisado em breve",successUploadMultipleFiles:"Seus documentos foram enviados e serão revisados ​​em breve",failedUpload:"Falha no upload do arquivo, tente novamente",chooseDocument:"Escolha um arquivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Documento já carregado.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},pt:{loading:"Carregando, por favor aguarde ...",noVerificationRequired:"Não é necessária verificação para sua conta neste momento.",verificationComplete:"Verificação concluída",verificationFailed:"Falha na verificação",verificationExpired:"Verificação expirada",fileSizeExceeded:"Tamanho máximo de arquivo excedido. O tamanho máximo é: 50mb",uploading:"Enviando ... ",successUpload:"Seu documento foi enviado e será analisado em breve",successUploadMultipleFiles:"Seus documentos foram enviados e serão analisados em breve",failedUpload:"Falha no envio, por favor tente novamente",chooseDocument:"Escolher documento",kycTitle:"Verificação de Conta",kycDescription:"Solicitamos alguns documentos para proteger sua conta e cumprir requisitos legais e de licença.",download:"Baixar",Age:"Idade",Aml:"AML",Documents:"Documentos",Pep:"PEP",Sanction:"Sanções",Recheck:"Reverificação",Biometric:"Biometria",ProofOfAddress:"Comprovante de Endereço",SourceOfWealth:"Origem do Patrimônio",SocialMedia:"Redes Sociais",ProofOfPayment:"Comprovante de Pagamento",ProofOfIdentityFront:"Comprovante de identidade (frente)",ProofOfIdentityBack:"Comprovante de identidade (verso)",SourceOfFunds:"Origem dos Recursos",uploaded:"Documento já enviado.",Unknown:"Desconhecido",Passport:"Passaporte",IdCardFront:"Carteira de Identidade (frente)",IdCardBack:"Carteira de Identidade (verso)",BirthCertificate:"Certidão de Nascimento",DrivingLicenseFront:"Carteira de Motorista (frente)",DrivingLicenseBack:"Carteira de Motorista (verso)",ResidentialPermit:"Autorização de Residência",CreditDebitCardFront:"Cartão de Crédito / Débito (frente)",CreditDebitCardBack:"Cartão de Crédito / Débito (verso)",UtilityBill:"Conta de Serviço Público",TaxBill:"Conta de Imposto",CertifiedCopy:"Cópia Autenticada",Selfie:"Selfie",BankStatement:"Extrato Bancário",RentAgreement:"Contrato de Aluguel",InsuranceAgreement:"Contrato de Seguro",Other:"Outro",IncomeAndOrSavingsFromEmployment:"Renda e/ou poupança proveniente de emprego",SaleOfSharesOrOtherInvestments:"Venda de ações ou outros investimentos",DividendsProfitsFromCompany:"Dividendos/Lucros da empresa",CompanySale:"Venda de empresa",IndividualOwnsPolicyCompanyPays:"Indivíduo é titular da apólice / empresa paga",SaleOfProperty:"Venda de Imóvel",Inheritance:"Herança",MaturityOrSurrenderOfLifeAssurance:"Vencimento ou resgate de seguro de vida",InsuranceClaims:"Indenizações de Seguro",CompensationPayment:"Pagamento de compensação",LotteryBettingCasinoWin:"Ganho em loteria/apostas/cassino",Loan:"Empréstimo",Gift:"Doação",Ewallet:"Carteira Digital",Voucher:"Voucher"},"es-mx":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Cargando, espere por favor…",noVerificationRequired:"No hay verificación requerida para su cuenta al momento",verificationComplete:"Verificación completa",verificationFailed:"Verificación fallo",verificationExpired:"Verificación expiro",fileSizeExceeded:"Tamaño máximo de archivo se excedió. El tamaño máximo del archivo es: 50mb",uploading:"Cargando ...",successUpload:"Su documento ha sido cargado y será revisado en breve",successUploadMultipleFiles:"Sus documento han sido cargados y serán revisado en breve",failedUpload:"La carga del archivo falló, por favor intente de nuevo",chooseDocument:"Elija un archivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Documento ya subido.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"}};const t=e=>new Promise((i=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((i=>{o[i]||(o[i]={});for(let n in e[i])o[i][n]=e[i][n]})),i(!0)}))})),r=(e,i,n)=>{let t=o[void 0!==i&&i in o?i:"en"][e];if(void 0!==n)for(const[e,i]of Object.entries(n.values)){const n=new RegExp(`{${e}}`,"g");t=t.replace(n,i)}return t},a="__WIDGET_GLOBAL_STYLE_CACHE__";function s(e,i){if(e){const n=document.createElement("style");n.innerHTML=i,e.appendChild(n)}}function d(e,i){if(!e||!i)return;const n=new URL(i);fetch(n.href).then((e=>e.text())).then((i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}const c=class{constructor(i){var n;e(this,i),this.scriptInjected=!1,this.MAX_UPLOAD_SIZE=5e7,this.userAgent=window.navigator.userAgent,this.isMobile=!!((n=this.userAgent).toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.handleToggleScreen=()=>{this.toggleScreen(this.isMobile)},this.hideVulnerabilityCheck="false",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}handleNewTranslations(){this.isLoading=!0,t(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){this.translationUrl.length>2&&await t(this.translationUrl)}handleClientStylingChange(e,i){e!=i&&s(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,i){e!=i&&this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl)}async componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(e,i,n,o=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!o)return function(e,i){const n=document.createElement("style");return window.emMessageBus.subscribe(i,(i=>{e&&(n.innerHTML=i,e.appendChild(n))}))}(e,i);window[a]||(window[a]={});const t=(n=function(e,i){return window.emMessageBus.subscribe(i,(n=>{if(!e)return;const o=e.getRootNode(),t=window[a];let r=t[i]&&t[i].sheet;r?t[i].refCount=t[i].refCount+1:(r=new CSSStyleSheet,r.replaceSync(n),t[i]={sheet:r,refCount:1});const s=o.adoptedStyleSheets||[];s.includes(r)||(o.adoptedStyleSheets=[...s,r])}))}(e,i)).unsubscribe.bind(n);n.unsubscribe=()=>{if(window[a][i]){const e=window[a][i];e.refCount>1?e.refCount=e.refCount-1:delete window[a][i]}t()}}(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&s(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl))),window.innerWidth>700&&(this.expandedOnDesktop=!0);try{let e=new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);const i={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json"},body:JSON.stringify({})};fetch(e.href,i).then((e=>{if(200===e.status)return e.json();throw new Error("HTTP status "+e.status)})).then((e=>{this.verificationType=e.verifications})).catch((e=>{console.error(e)}))}catch(e){console.error("Error fetching verification types:",e)}}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleOptionChange(e,i){const n=e.target;this.verificationType=this.verificationType.map((e=>(e.type===i&&(e.optionChosen=n.value),e)))}handleDocumentsStatus(e,i,n){this.verificationType=this.verificationType.map((o=>{if(o.type===e){const e=o.documents.find((e=>e.code===n));e&&(e.statusUploaded=i)}return o}))}downloadPDF(e){const i=document.createElement("a");i.href=e,i.download="file.pdf",i.target="_blank",i.dispatchEvent(new MouseEvent("click"))}toggleVerificationType(e,i){this.expandedOnDesktop=!1,this.verificationType=this.verificationType.map((n=>{var o;return n.type===e&&(null===(o=n.flowInfo)||void 0===o?void 0:o.type)==i&&(n.expanded=!n.expanded),n}))}toggleScreen(e){window.postMessage({type:"PlayerAccountMenuActive",isMobile:e},window.location.href)}checkFileSize(e){let i=0;return Object.keys(e).forEach((n=>{i+=e[n].size})),i<=this.MAX_UPLOAD_SIZE}handleFileSelection(e,i,n){if(e&&e.length>0)if(this.selectedFile=e,this.checkFileSize(this.selectedFile)){const e={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":this.session},body:JSON.stringify({DocumentCode:i})};fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`,e).then((e=>{if(e.ok)return this.uploadingStatus=r("uploading",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),e.json()})).then((e=>{if("Success"==e.ResponseCode){const o=new FormData;o.append(i,this.selectedFile[0]),fetch(e.Url,{method:"POST",body:o}).then((e=>{e.ok?(this.uploadingStatus=r(this.selectedFile.length>1?"successUploadMultipleFiles":"successUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i)):(this.uploadingStatus=r("failedUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),console.error("File upload error:",e.status))})).catch((e=>{console.error("File upload error:",e)}))}else this.uploadingStatus=r("failedUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i)})).catch((e=>{console.error("File upload error:",e)}))}else console.error(r("fileSizeExceeded",this.language)),this.uploadingStatus=r("fileSizeExceeded",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),this.uploadSizeExceeded=!0}importScript(e){return new Promise(((i,n)=>{fetch(e).then((e=>e.text())).then((e=>{if(new Function(e)(),this.scriptInjected)i(!0);else{const e=document.createElement("script");e.src="https://test.insic.de/frontend3/static/js/avs-loader.min.js",document.head.appendChild(e),this.scriptInjected=!0,i(!0)}})).catch((e=>{n(e)}))}))}isStatusUploaded(e){return!(!e||"Uploaded"!==e.status)}getFirstRequestedDocument(e){var i,n;let o;return null===(i=null==e?void 0:e.documents)||void 0===i||i.forEach((e=>{"Requested"==e.status&&(o=null!=o?o:e.code)})),o||(o=null===(n=null==e?void 0:e.documents[0])||void 0===n?void 0:n.code),o}renderVerificationTypeBox(e){this.expandedOnDesktop&&(e.expanded=!0);let n=this.getFirstRequestedDocument(e),o=e.expanded,t=e.type.trim(),a=e.optionChosen||n,s=e.status,d=e.documents,c=e.flowInfo;const l="Verified"===s,f="Failed"===s||"Expired"===s;return l&&"VulnerabilityCheck"===t&&"true"===this.hideVulnerabilityCheck?null:i("div",{class:`verification-box ${o?"expanded":""} ${f?"failed":""} ${l?"success":""}`},i("div",{class:"box box-header "+(o?"expanded":""),onClick:()=>{var i;return this.toggleVerificationType(e.type,null===(i=e.flowInfo)||void 0===i?void 0:i.type)}},i("div",{class:"box-icon"},i("div",null,l?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?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"})):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:o?"M6 15l6-6 6 6":"M6 9l6 6 6-6"})))),o?this.renderExpandedContent(e,a,s,d,c,l,f):i("div",{class:"box box-content"},i("div",{id:"__avs-wrapper"})))}renderDocumentsActions(e,n,o){return i("div",null,this.isStatusUploaded(e)?i("div",{class:"upload-status"},r("uploaded",this.language)):(null==e?void 0:e.statusUploaded)?i("div",{class:"upload-status"},null==e?void 0:e.statusUploaded):i("div",{class:"documents-action"},i("div",{class:"sample-file"},"FileDownload"===(null==e?void 0:e.sampleType)?i("button",{class:"download-button",onClick:()=>this.downloadPDF(null==e?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"},n?i("label",null,i("input",{type:"file",accept:"*",onChange:e=>this.handleFileSelection(e.target.files,n,o.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)))}renderExpandedContent(e,o,t,a,s,d,c){if("Widget"===(null==s?void 0:s.type))return i("div",null,i("hr",{style:{margin:"5px"}}),i("iframe",{src:s.url,frameborder:"0",height:"400px",width:"100%",allowfullScreen:!0,allow:"camera *;microphone *"}));if("Redirect"===(null==s?void 0:s.type)&&"Manual"!==e.vendorName&&"Verified"!==t){const n="ShuftiPro"===e.vendorName?"650px":"400px";return i("div",null,i("hr",{style:{margin:"5px"}}),i("iframe",{src:s.url,frameborder:"0",height:n,width:"100%",allowfullScreen:!0,allow:"camera *;microphone *"}))}return i("div",{class:"box box-content"},i(n,null,d?i("div",{class:"verification-status"},r("verificationComplete",this.language)):c?i("div",{class:"verification-status"},r("Failed"===t?"verificationFailed":"verificationExpired",this.language)):a.length>0?i("div",{class:"documents-dropdown"},i("select",{class:"nice-select",onChange:i=>this.handleOptionChange(i,e.type)},a.map((e=>i("option",{selected:e.code==o,value:e.code},r(e.type,this.language))))),this.renderDocumentsActions(a.find((e=>e.code===o)),o,e)):null))}render(){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)),0===this.verificationType.length?i("div",{class:"no-verification-description",style:{padding:"24px",fontSize:"18px"}},r("noVerificationRequired",this.language)):i(n,null,i("div",{class:"widget-description"},r("kycDescription",this.language)),i("div",{class:"verification-types"},this.verificationType.map((e=>e?this.renderVerificationTypeBox(e):null))))))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};c.style=':host {\n font-family: inherit;\n}\n\nbutton, select {\n font-family: inherit;\n}\n\n.ModalContainer {\n container-type: inline-size;\n}\n\n.player-kyc-verification-widget {\n padding: 20px;\n align-items: center;\n}\n.player-kyc-verification-widget h2 {\n margin: 15px;\n font-weight: var(--emw--font-weight-semibold, 500);\n}\n.player-kyc-verification-widget .widget-description {\n margin: 24px 0px;\n}\n.player-kyc-verification-widget .verification-types {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 34px;\n}\n.player-kyc-verification-widget .verification-types .verification-box {\n transition: height 0.3s, border-color 0.3s;\n border: solid 1px var(--emw--color-gray-100, #E6E6E6);\n border-radius: 2px;\n display: flex;\n flex-direction: column;\n padding: 0px 14px;\n border-width: 2px 2px 8px 2px;\n align-self: start;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box {\n flex-shrink: 0;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header {\n display: flex;\n padding: 14px 0px;\n justify-content: space-between;\n cursor: pointer;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon {\n flex-grow: 1;\n display: flex;\n justify-content: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon svg {\n height: 24px;\n width: 24px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-title {\n flex-grow: 1;\n font-size: 18px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon {\n flex-grow: 10;\n width: 14px;\n height: 14px;\n display: flex;\n justify-content: flex-end;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon svg {\n width: 20px;\n height: 22px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content {\n flex-grow: 1;\n border-top: 0.4px solid var(--emw--color-gray-100, #E6E6E6);\n padding: 10px 0px;\n flex-grow: 1;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .upload-status {\n text-align: center;\n padding: 20px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown {\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown svg {\n margin: 16px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .nice-select {\n cursor: pointer;\n width: 100%;\n height: 30px;\n padding: 4px 14px;\n font-size: 14px;\n border: 1px solid var(--emw--color-gray-150, #828282);\n border-radius: 2px;\n background-color: var(--emw--color-white, #FFFFFF);\n color: #333;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n padding-right: 30px;\n background-repeat: no-repeat;\n background-position: right 10px center;\n background-image: url(\'data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23333" d="M10 18.4l-6.5-6.5h13z"/><path fill="%23333" d="M10 1.6l6.5 6.5H3.5z"/></svg>\');\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button {\n font-family: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--emw--color-white, #FFFFFF);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n border: none;\n font-size: 16px;\n padding: 10px 0px 0px 0px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button svg {\n margin-right: 10px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n min-height: 120px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.failed {\n border-color: var(--emw--color-error, var(--emw--color-red, #FD2839));\n}\n.player-kyc-verification-widget .verification-types .verification-box.success {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content .verification-status {\n margin: 12px 0px 16px;\n font-size: 18px;\n text-align: center;\n color: var(--emw--color-gray-150, #828282);\n}\n\n.MenuReturnButton {\n display: flex;\n align-items: center;\n}\n\n@container (min-width: 700px) {\n .player-kyc-verification-widget {\n padding: 100px 60px;\n }\n}\n@container (max-width: 700px) {\n .player-kyc-verification-widget h2 {\n margin: 15px;\n text-align: center;\n }\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: 1fr;\n grid-gap: 16px;\n }\n}\n@container (max-width: 475px) {\n .player-kyc-verification-widget .verification-types {\n display: block;\n }\n .player-kyc-verification-widget .verification-types .verification-box {\n margin-bottom: 20px;\n }\n}\n@container (max-width: 1240px) and (min-width: 701px) {\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: repeat(2, 1fr);\n }\n}';export{c as player_kyc_verification}
1
+ import{r as e,h as i,F as n}from"./index-9c0f6c58.js";let o={en:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account Verification",kycDescription:"We require some documents to protect your account and to comply with legal and license requirements.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Recheck:"Recheck",Biometric:"Biometric",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},de:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account-Verifizierung",kycDescription:"Wir benötigen einige Dokumente, um Ihr Konto zu schützen und den rechtlichen und Lizenzanforderungen zu entsprechen.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Dokument bereits hochgeladen.",Unknown:"Unbekannt",Passport:"Reisepass",IdCardFront:"Personalausweis (Vorderseite)",IdCardBack:"Personalausweis (Rückseite)",BirthCertificate:"Geburtsurkunde",DrivingLicenseFront:"Führerschein (Vorderseite)",DrivingLicenseBack:"Führerschein (Rückseite)",ResidentialPermit:"Wohnberechtigungsschein",CreditDebitCardFront:"Kredit-/Debitkarte (Vorderseite)",CreditDebitCardBack:"Kredit-/Debitkarte (Rückseite)",UtilityBill:"Nebenkostenabrechnung",TaxBill:"Steuerbescheid",CertifiedCopy:"Beglaubigte Kopie",Selfie:"Selfie",BankStatement:"Kontoauszug",RentAgreement:"Mietvertrag",InsuranceAgreement:"Versicherungsvertrag",Other:"Sonstige",IncomeAndOrSavingsFromEmployment:"Einkommen und/oder Ersparnisse aus Beschäftigung",SaleOfSharesOrOtherInvestments:"Verkauf von Aktien oder anderen Anlagen",DividendsProfitsFromCompany:"Dividenden/Gewinne aus dem Unternehmen",CompanySale:"Firmenverkauf",IndividualOwnsPolicyCompanyPays:"Einzelperson besitzt die Police/Unternehmen zahlt",SaleOfProperty:"Immobilienverkauf",Inheritance:"Erbschaft",MaturityOrSurrenderOfLifeAssurance:"Fälligkeit oder Rückkauf einer Lebensversicherung",InsuranceClaims:"Versicherungsansprüche",CompensationPayment:"Entschädigungszahlung",LotteryBettingCasinoWin:"Lotterie-/Wett-/Casinogewinn",Loan:"Darlehen",Gift:"Geschenk",Ewallet:"E-Wallet",Voucher:"Gutschein"},ro:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Verificarea contului",kycDescription:"Avem nevoie de câteva documente pentru a proteja contul dvs. și pentru a respecta cerințele legale și de licență.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document deja încărcat.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},fr:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Vérification de compte",kycDescription:"Nous avons besoin de certains documents pour protéger votre compte et pour nous conformer aux exigences légales et de licence.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Document déjà téléchargé.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},ar:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"التحقق من الحساب",kycDescription:"نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},hr:{loading:"Učitavanje, molimo pričekajte ...",noVerificationRequired:"Trenutačno nije potrebna provjera vašeg računa.",verificationComplete:"Provjera dovršena",verificationFailed:"Provjera nije uspjela",verificationExpired:"Provjera je istekla",fileSizeExceeded:"Premašena je maksimalna veličina datoteke. Maksimalna veličina datoteke je: 50mb",uploading:"Prijenos…",successUpload:"Vaš dokument je učitan i uskoro će biti pregledan",successUploadMultipleFiles:"Vaši su dokumenti učitani i uskoro će biti pregledani",failedUpload:"Prijenos nije uspio pokušajte ponovo",chooseDocument:"Odaberite Dokument",kycTitle:"Verifikacija računa",kycDescription:"Potrebni su nam neki dokumenti kako bismo zaštitili vaš račun i kako bismo se pridržavali zakonskih i licencijskih zahtjeva.",download:"Preuzmi",Age:"Dob",Aml:"AML",Documents:"Dokumenti",Pep:"Politički izložena osoba",Sanction:"Sankcija",Biometric:"Verifikacija",Recheck:"Ponovna provjera",ProofOfAddress:"Potvrda adrese",SourceOfWealth:"Izvor sredstava",SocialMedia:"Društvene mreže",ProofOfPayment:"Platna metoda",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Dokument je već učitan.",Unknown:"Nepoznato",Passport:"Putovnica",IdCardFront:"Prednja strana osobne iskaznice",IdCardBack:"Stražnja strana osobne iskaznice",BirthCertificate:"Rodni list",DrivingLicenseFront:"Vozačka dozvola (prednja strana)",DrivingLicenseBack:"Vozačka dozvola (stražnja strana)",ResidentialPermit:"Boravišna dozvola",CreditDebitCardFront:"Kreditna/debitna kartica (prednja strana)",CreditDebitCardBack:"Kreditna/debitna kartica (stražnja strana)",UtilityBill:"Račun za komunalne usluge",TaxBill:"Porezni račun",CertifiedCopy:"Ovjereni primjerak",Selfie:"Selfie",BankStatement:"Bankovni izvod",RentAgreement:"Ugovor o najmu",InsuranceAgreement:"Ugovor o osiguranju",Other:"Ostalo",IncomeAndOrSavingsFromEmployment:"Prihod/Ušteđevina ",SaleOfSharesOrOtherInvestments:"Prodaja dionica ili drugih investicija",DividendsProfitsFromCompany:"Dividende/dobit od tvrtke",CompanySale:"Prodaja tvrtke",IndividualOwnsPolicyCompanyPays:"Osoba posjeduje policu/tvrtka plaća",SaleOfProperty:"Prodaja nekretnine",Inheritance:"Nasljeđe",MaturityOrSurrenderOfLifeAssurance:"Dospijeće ili predaja životnog osiguranja",InsuranceClaims:"Zahtjevi za osiguranje",CompensationPayment:"Isplata odštete",LotteryBettingCasinoWin:"Dobitak na lutriji/kladionici/kasinu",Loan:"Zajam",Gift:"Poklon",Ewallet:"Elektronički novčanik",Voucher:"Vaučer"},"pt-br":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Carregando, espere por favor…",noVerificationRequired:"Não há necessidade de verificação para sua conta no momento",verificationComplete:"Verificação completa",verificationFailed:"Verificação de falha",verificationExpired:"A verificação expirou",fileSizeExceeded:"Tamanho máximo do arquivo excedido. O tamanho máximo do arquivo é: 50 MB",uploading:"Carregando...",successUpload:"Seu documento foi carregado e será analisado em breve",successUploadMultipleFiles:"Seus documentos foram enviados e serão revisados ​​em breve",failedUpload:"Falha no upload do arquivo, tente novamente",chooseDocument:"Escolha um arquivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Documento já carregado.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},pt:{loading:"Carregando, por favor aguarde ...",noVerificationRequired:"Não é necessária verificação para sua conta neste momento.",verificationComplete:"Verificação concluída",verificationFailed:"Falha na verificação",verificationExpired:"Verificação expirada",fileSizeExceeded:"Tamanho máximo de arquivo excedido. O tamanho máximo é: 50mb",uploading:"Enviando ... ",successUpload:"Seu documento foi enviado e será analisado em breve",successUploadMultipleFiles:"Seus documentos foram enviados e serão analisados em breve",failedUpload:"Falha no envio, por favor tente novamente",chooseDocument:"Escolher documento",kycTitle:"Verificação de Conta",kycDescription:"Solicitamos alguns documentos para proteger sua conta e cumprir requisitos legais e de licença.",download:"Baixar",Age:"Idade",Aml:"AML",Documents:"Documentos",Pep:"PEP",Sanction:"Sanções",Recheck:"Reverificação",Biometric:"Biometria",ProofOfAddress:"Comprovante de Endereço",SourceOfWealth:"Origem do Patrimônio",SocialMedia:"Redes Sociais",ProofOfPayment:"Comprovante de Pagamento",ProofOfIdentityFront:"Comprovante de identidade (frente)",ProofOfIdentityBack:"Comprovante de identidade (verso)",SourceOfFunds:"Origem dos Recursos",uploaded:"Documento já enviado.",Unknown:"Desconhecido",Passport:"Passaporte",IdCardFront:"Carteira de Identidade (frente)",IdCardBack:"Carteira de Identidade (verso)",BirthCertificate:"Certidão de Nascimento",DrivingLicenseFront:"Carteira de Motorista (frente)",DrivingLicenseBack:"Carteira de Motorista (verso)",ResidentialPermit:"Autorização de Residência",CreditDebitCardFront:"Cartão de Crédito / Débito (frente)",CreditDebitCardBack:"Cartão de Crédito / Débito (verso)",UtilityBill:"Conta de Serviço Público",TaxBill:"Conta de Imposto",CertifiedCopy:"Cópia Autenticada",Selfie:"Selfie",BankStatement:"Extrato Bancário",RentAgreement:"Contrato de Aluguel",InsuranceAgreement:"Contrato de Seguro",Other:"Outro",IncomeAndOrSavingsFromEmployment:"Renda e/ou poupança proveniente de emprego",SaleOfSharesOrOtherInvestments:"Venda de ações ou outros investimentos",DividendsProfitsFromCompany:"Dividendos/Lucros da empresa",CompanySale:"Venda de empresa",IndividualOwnsPolicyCompanyPays:"Indivíduo é titular da apólice / empresa paga",SaleOfProperty:"Venda de Imóvel",Inheritance:"Herança",MaturityOrSurrenderOfLifeAssurance:"Vencimento ou resgate de seguro de vida",InsuranceClaims:"Indenizações de Seguro",CompensationPayment:"Pagamento de compensação",LotteryBettingCasinoWin:"Ganho em loteria/apostas/cassino",Loan:"Empréstimo",Gift:"Doação",Ewallet:"Carteira Digital",Voucher:"Voucher"},"es-mx":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Cargando, espere por favor…",noVerificationRequired:"No hay verificación requerida para su cuenta al momento",verificationComplete:"Verificación completa",verificationFailed:"Verificación fallo",verificationExpired:"Verificación expiro",fileSizeExceeded:"Tamaño máximo de archivo se excedió. El tamaño máximo del archivo es: 50mb",uploading:"Cargando ...",successUpload:"Su documento ha sido cargado y será revisado en breve",successUploadMultipleFiles:"Sus documento han sido cargados y serán revisado en breve",failedUpload:"La carga del archivo falló, por favor intente de nuevo",chooseDocument:"Elija un archivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Documento ya subido.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"}};const t=e=>new Promise((i=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((i=>{o[i]||(o[i]={});for(let n in e[i])o[i][n]=e[i][n]})),i(!0)}))})),r=(e,i,n)=>{let t=o[void 0!==i&&i in o?i:"en"][e];if(void 0!==n)for(const[e,i]of Object.entries(n.values)){const n=new RegExp(`{${e}}`,"g");t=t.replace(n,i)}return t},a="__WIDGET_GLOBAL_STYLE_CACHE__";function s(e,i){if(e){const n=document.createElement("style");n.innerHTML=i,e.appendChild(n)}}function d(e,i){if(!e||!i)return;const n=new URL(i);fetch(n.href).then((e=>e.text())).then((i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}const c=class{constructor(i){var n;e(this,i),this.scriptInjected=!1,this.MAX_UPLOAD_SIZE=5e7,this.userAgent=window.navigator.userAgent,this.isMobile=!!((n=this.userAgent).toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.handleToggleScreen=()=>{this.toggleScreen(this.isMobile)},this.hideVulnerabilityCheck="false",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.hideKycDescription="false",this.verificationType=[],this.hasRequestedDocuments=!1,this.isLoading=!1,this.selectedFile=null,this.uploadingStatus=void 0,this.uploadSizeExceeded=!1,this.expandedOnDesktop=!1}handleNewTranslations(){this.isLoading=!0,t(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){this.translationUrl.length>2&&await t(this.translationUrl)}handleClientStylingChange(e,i){e!=i&&s(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,i){e!=i&&this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl)}async componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(e,i,n,o=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!o)return function(e,i){const n=document.createElement("style");return window.emMessageBus.subscribe(i,(i=>{e&&(n.innerHTML=i,e.appendChild(n))}))}(e,i);window[a]||(window[a]={});const t=(n=function(e,i){return window.emMessageBus.subscribe(i,(n=>{if(!e)return;const o=e.getRootNode(),t=window[a];let r=t[i]&&t[i].sheet;r?t[i].refCount=t[i].refCount+1:(r=new CSSStyleSheet,r.replaceSync(n),t[i]={sheet:r,refCount:1});const s=o.adoptedStyleSheets||[];s.includes(r)||(o.adoptedStyleSheets=[...s,r])}))}(e,i)).unsubscribe.bind(n);n.unsubscribe=()=>{if(window[a][i]){const e=window[a][i];e.refCount>1?e.refCount=e.refCount-1:delete window[a][i]}t()}}(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&s(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl))),window.innerWidth>700&&(this.expandedOnDesktop=!0);try{let e=new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);const i={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json"},body:JSON.stringify({})};fetch(e.href,i).then((e=>{if(200===e.status)return e.json();throw new Error("HTTP status "+e.status)})).then((e=>{var i;this.verificationType=e.verifications,"true"===this.hideKycDescription&&(null===(i=null==e?void 0:e.verifications)||void 0===i?void 0:i.length)>0&&(this.hasRequestedDocuments=e.verifications.some((e=>{var i;return null===(i=null==e?void 0:e.documents)||void 0===i?void 0:i.some((e=>"Requested"===e.status))})))})).catch((e=>{console.error(e)}))}catch(e){console.error("Error fetching verification types:",e)}}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleOptionChange(e,i){const n=e.target;this.verificationType=this.verificationType.map((e=>(e.type===i&&(e.optionChosen=n.value),e)))}handleDocumentsStatus(e,i,n){this.verificationType=this.verificationType.map((o=>{if(o.type===e){const e=o.documents.find((e=>e.code===n));e&&(e.statusUploaded=i)}return o}))}downloadPDF(e){const i=document.createElement("a");i.href=e,i.download="file.pdf",i.target="_blank",i.dispatchEvent(new MouseEvent("click"))}toggleVerificationType(e,i){this.expandedOnDesktop=!1,this.verificationType=this.verificationType.map((n=>{var o;return n.type===e&&(null===(o=n.flowInfo)||void 0===o?void 0:o.type)==i&&(n.expanded=!n.expanded),n}))}toggleScreen(e){window.postMessage({type:"PlayerAccountMenuActive",isMobile:e},window.location.href)}checkFileSize(e){let i=0;return Object.keys(e).forEach((n=>{i+=e[n].size})),i<=this.MAX_UPLOAD_SIZE}handleFileSelection(e,i,n){if(e&&e.length>0)if(this.selectedFile=e,this.checkFileSize(this.selectedFile)){const e={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":this.session},body:JSON.stringify({DocumentCode:i})};fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`,e).then((e=>{if(e.ok)return this.uploadingStatus=r("uploading",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),e.json()})).then((e=>{if("Success"==e.ResponseCode){const o=new FormData;o.append(i,this.selectedFile[0]),fetch(e.Url,{method:"POST",body:o}).then((e=>{e.ok?(this.uploadingStatus=r(this.selectedFile.length>1?"successUploadMultipleFiles":"successUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i)):(this.uploadingStatus=r("failedUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),console.error("File upload error:",e.status))})).catch((e=>{console.error("File upload error:",e)}))}else this.uploadingStatus=r("failedUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i)})).catch((e=>{console.error("File upload error:",e)}))}else console.error(r("fileSizeExceeded",this.language)),this.uploadingStatus=r("fileSizeExceeded",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),this.uploadSizeExceeded=!0}importScript(e){return new Promise(((i,n)=>{fetch(e).then((e=>e.text())).then((e=>{if(new Function(e)(),this.scriptInjected)i(!0);else{const e=document.createElement("script");e.src="https://test.insic.de/frontend3/static/js/avs-loader.min.js",document.head.appendChild(e),this.scriptInjected=!0,i(!0)}})).catch((e=>{n(e)}))}))}isStatusUploaded(e){return!(!e||"Uploaded"!==e.status)}getFirstRequestedDocument(e){var i,n;let o;return null===(i=null==e?void 0:e.documents)||void 0===i||i.forEach((e=>{"Requested"==e.status&&(o=null!=o?o:e.code)})),o||(o=null===(n=null==e?void 0:e.documents[0])||void 0===n?void 0:n.code),o}renderVerificationTypeBox(e){this.expandedOnDesktop&&(e.expanded=!0);let n=this.getFirstRequestedDocument(e),o=e.expanded,t=e.type.trim(),a=e.optionChosen||n,s=e.status,d=e.documents,c=e.flowInfo;const l="Verified"===s,f="Failed"===s||"Expired"===s;return l&&"VulnerabilityCheck"===t&&"true"===this.hideVulnerabilityCheck?null:i("div",{class:`verification-box ${o?"expanded":""} ${f?"failed":""} ${l?"success":""}`},i("div",{class:"box box-header "+(o?"expanded":""),onClick:()=>{var i;return this.toggleVerificationType(e.type,null===(i=e.flowInfo)||void 0===i?void 0:i.type)}},i("div",{class:"box-icon"},i("div",null,l?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?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"})):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:o?"M6 15l6-6 6 6":"M6 9l6 6 6-6"})))),o?this.renderExpandedContent(e,a,s,d,c,l,f):i("div",{class:"box box-content"},i("div",{id:"__avs-wrapper"})))}renderDocumentsActions(e,n,o){return i("div",null,this.isStatusUploaded(e)?i("div",{class:"upload-status"},r("uploaded",this.language)):(null==e?void 0:e.statusUploaded)?i("div",{class:"upload-status"},null==e?void 0:e.statusUploaded):i("div",{class:"documents-action"},i("div",{class:"sample-file"},"FileDownload"===(null==e?void 0:e.sampleType)?i("button",{class:"download-button",onClick:()=>this.downloadPDF(null==e?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"},n?i("label",null,i("input",{type:"file",accept:"*",onChange:e=>this.handleFileSelection(e.target.files,n,o.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)))}renderExpandedContent(e,o,t,a,s,d,c){if("Widget"===(null==s?void 0:s.type))return i("div",null,i("hr",{style:{margin:"5px"}}),i("iframe",{src:s.url,frameborder:"0",height:"400px",width:"100%",allowfullScreen:!0,allow:"camera *;microphone *"}));if("Redirect"===(null==s?void 0:s.type)&&"Manual"!==e.vendorName&&"Verified"!==t){const n="ShuftiPro"===e.vendorName?"650px":"400px";return i("div",null,i("hr",{style:{margin:"5px"}}),i("iframe",{src:s.url,frameborder:"0",height:n,width:"100%",allowfullScreen:!0,allow:"camera *;microphone *"}))}return i("div",{class:"box box-content"},i(n,null,d?i("div",{class:"verification-status"},r("verificationComplete",this.language)):c?i("div",{class:"verification-status"},r("Failed"===t?"verificationFailed":"verificationExpired",this.language)):a.length>0?i("div",{class:"documents-dropdown"},i("select",{class:"nice-select",onChange:i=>this.handleOptionChange(i,e.type)},a.map((e=>i("option",{selected:e.code==o,value:e.code},r(e.type,this.language))))),this.renderDocumentsActions(a.find((e=>e.code===o)),o,e)):null))}render(){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)),0===this.verificationType.length?i("div",{class:"no-verification-description",style:{padding:"24px",fontSize:"18px"}},r("noVerificationRequired",this.language)):i(n,null,"true"!==this.hideKycDescription||this.hasRequestedDocuments?i("div",{class:"widget-description"},r("kycDescription",this.language)):null,i("div",{class:"verification-types"},this.verificationType.map((e=>e?this.renderVerificationTypeBox(e):null))))))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};c.style=':host {\n font-family: inherit;\n}\n\nbutton, select {\n font-family: inherit;\n}\n\n.ModalContainer {\n container-type: inline-size;\n}\n\n.player-kyc-verification-widget {\n padding: 20px;\n align-items: center;\n}\n.player-kyc-verification-widget h2 {\n margin: 15px;\n font-weight: var(--emw--font-weight-semibold, 500);\n}\n.player-kyc-verification-widget .widget-description {\n margin: 24px 0px;\n}\n.player-kyc-verification-widget .verification-types {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 34px;\n}\n.player-kyc-verification-widget .verification-types .verification-box {\n transition: height 0.3s, border-color 0.3s;\n border: solid 1px var(--emw--color-gray-100, #E6E6E6);\n border-radius: 2px;\n display: flex;\n flex-direction: column;\n padding: 0px 14px;\n border-width: 2px 2px 8px 2px;\n align-self: start;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box {\n flex-shrink: 0;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header {\n display: flex;\n padding: 14px 0px;\n justify-content: space-between;\n cursor: pointer;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon {\n flex-grow: 1;\n display: flex;\n justify-content: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon svg {\n height: 24px;\n width: 24px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-title {\n flex-grow: 1;\n font-size: 18px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon {\n flex-grow: 10;\n width: 14px;\n height: 14px;\n display: flex;\n justify-content: flex-end;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon svg {\n width: 20px;\n height: 22px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content {\n flex-grow: 1;\n border-top: 0.4px solid var(--emw--color-gray-100, #E6E6E6);\n padding: 10px 0px;\n flex-grow: 1;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .upload-status {\n text-align: center;\n padding: 20px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown {\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown svg {\n margin: 16px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .nice-select {\n cursor: pointer;\n width: 100%;\n height: 30px;\n padding: 4px 14px;\n font-size: 14px;\n border: 1px solid var(--emw--color-gray-150, #828282);\n border-radius: 2px;\n background-color: var(--emw--color-white, #FFFFFF);\n color: #333;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n padding-right: 30px;\n background-repeat: no-repeat;\n background-position: right 10px center;\n background-image: url(\'data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23333" d="M10 18.4l-6.5-6.5h13z"/><path fill="%23333" d="M10 1.6l6.5 6.5H3.5z"/></svg>\');\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button {\n font-family: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--emw--color-white, #FFFFFF);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n border: none;\n font-size: 16px;\n padding: 10px 0px 0px 0px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button svg {\n margin-right: 10px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n min-height: 120px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.failed {\n border-color: var(--emw--color-error, var(--emw--color-red, #FD2839));\n}\n.player-kyc-verification-widget .verification-types .verification-box.success {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content .verification-status {\n margin: 12px 0px 16px;\n font-size: 18px;\n text-align: center;\n color: var(--emw--color-gray-150, #828282);\n}\n\n.MenuReturnButton {\n display: flex;\n align-items: center;\n}\n\n@container (min-width: 700px) {\n .player-kyc-verification-widget {\n padding: 100px 60px;\n }\n}\n@container (max-width: 700px) {\n .player-kyc-verification-widget h2 {\n margin: 15px;\n text-align: center;\n }\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: 1fr;\n grid-gap: 16px;\n }\n}\n@container (max-width: 475px) {\n .player-kyc-verification-widget .verification-types {\n display: block;\n }\n .player-kyc-verification-widget .verification-types .verification-box {\n margin-bottom: 20px;\n }\n}\n@container (max-width: 1240px) and (min-width: 701px) {\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: repeat(2, 1fr);\n }\n}';export{c as player_kyc_verification}
@@ -1 +1 @@
1
- import{p as e,b as i}from"./index-9c0f6c58.js";export{s as setNonce}from"./index-9c0f6c58.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const i=import.meta.url,n={};return""!==i&&(n.resourcesUrl=new URL(".",i).href),e(n)})().then((async e=>(await n(),i([["player-kyc-verification",[[1,"player-kyc-verification",{hideVulnerabilityCheck:[1,"hide-vulnerability-check"],userId:[1,"user-id"],session:[1],language:[1],endpoint:[1],translationUrl:[1,"translation-url"],clientStyling:[1,"client-styling"],verifiedIcon:[1,"verified-icon"],failedIcon:[1,"failed-icon"],defaultIcon:[1,"default-icon"],clientStylingUrl:[1,"client-styling-url"],mbSource:[1,"mb-source"],verificationType:[32],isLoading:[32],selectedFile:[32],uploadingStatus:[32],uploadSizeExceeded:[32],expandedOnDesktop:[32]},null,{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]]],e))));
1
+ import{p as e,b as i}from"./index-9c0f6c58.js";export{s as setNonce}from"./index-9c0f6c58.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const i=import.meta.url,n={};return""!==i&&(n.resourcesUrl=new URL(".",i).href),e(n)})().then((async e=>(await n(),i([["player-kyc-verification",[[1,"player-kyc-verification",{hideVulnerabilityCheck:[1,"hide-vulnerability-check"],userId:[1,"user-id"],session:[1],language:[1],endpoint:[1],translationUrl:[1,"translation-url"],clientStyling:[1,"client-styling"],verifiedIcon:[1,"verified-icon"],failedIcon:[1,"failed-icon"],defaultIcon:[1,"default-icon"],clientStylingUrl:[1,"client-styling-url"],mbSource:[1,"mb-source"],hideKycDescription:[1,"hide-kyc-description"],verificationType:[32],hasRequestedDocuments:[32],isLoading:[32],selectedFile:[32],uploadingStatus:[32],uploadSizeExceeded:[32],expandedOnDesktop:[32]},null,{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]]],e))));
@@ -45,7 +45,12 @@ export declare class PlayerKycVerificationWidget {
45
45
  */
46
46
  clientStylingUrl: string;
47
47
  mbSource: string;
48
+ /**
49
+ * FF that hides the description if all the documents have been uploaded
50
+ */
51
+ hideKycDescription: string;
48
52
  verificationType: any;
53
+ hasRequestedDocuments: boolean;
49
54
  isLoading: boolean;
50
55
  selectedFile: FileList | null;
51
56
  uploadingStatus: string;
@@ -27,6 +27,10 @@ export namespace Components {
27
27
  * For failed status this icon will be displayed
28
28
  */
29
29
  "failedIcon": string;
30
+ /**
31
+ * FF that hides the description if all the documents have been uploaded
32
+ */
33
+ "hideKycDescription": string;
30
34
  /**
31
35
  * The vulnerabilityCheck
32
36
  */
@@ -87,6 +91,10 @@ declare namespace LocalJSX {
87
91
  * For failed status this icon will be displayed
88
92
  */
89
93
  "failedIcon"?: string;
94
+ /**
95
+ * FF that hides the description if all the documents have been uploaded
96
+ */
97
+ "hideKycDescription"?: string;
90
98
  /**
91
99
  * The vulnerabilityCheck
92
100
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-kyc-verification",
3
- "version": "1.89.2",
3
+ "version": "1.90.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",