var m = (e, t, o) => new Promise((i, a) => {
  var r = (c) => {
    try {
      d(o.next(c));
    } catch (u) {
      a(u);
    }
  }, s = (c) => {
    try {
      d(o.throw(c));
    } catch (u) {
      a(u);
    }
  }, d = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(r, s);
  d((o = o.apply(e, t)).next());
});
import { b as S, p as b, r as x, h as n, F as v } from "./index-9c0f6c58-CVbLbUsY.js";
import { a as P } from "./app-globals-0f993ce5-XUXOuUQl.js";
var D = () => {
  const e = import.meta.url, t = {};
  return e !== "" && (t.resourcesUrl = new URL(".", e).href), b(t);
};
D().then((e) => m(void 0, null, function* () {
  return yield P(), S([["player-kyc-verification", [[1, "player-kyc-verification", { hideVulnerabilityCheck: [1, "hide-vulnerability-check"], userId: [1, "user-id"], session: [1], language: [1], endpoint: [1], translationUrl: [1, "translation-url"], clientStyling: [1, "client-styling"], verifiedIcon: [1, "verified-icon"], failedIcon: [1, "failed-icon"], defaultIcon: [1, "default-icon"], clientStylingUrl: [1, "client-styling-url"], mbSource: [1, "mb-source"], hideKycDescription: [1, "hide-kyc-description"], overridableTypesStr: [1, "overridable-types-str"], verificationType: [32], hasAllDocumentsUploaded: [32], verificationsGeneralStatus: [32], isLoading: [32], isKYCLoading: [32], selectedFile: [32], uploadingStatus: [32], uploadSizeExceeded: [32], expandedOnDesktop: [32], isDataLoading: [32] }, null, { translationUrl: ["handleNewTranslations"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"] }]]]], e);
}));
const I = "en";
let h = {
  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.",
    kycVerifiedDescription: "Great news! Your account is verified. You're all set, jump in and enjoy the games. Thanks for playing with us!",
    kycFailedDescription: "We need clearer images to verify your account. Please upload better quality photos to complete this step — this helps keep your account secure. Thank you.",
    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.",
    kycVerifiedDescription: "Great news! Your account is verified. You're all set, jump in and enjoy the games. Thanks for playing with us!",
    kycFailedDescription: "We need clearer images to verify your account. Please upload better quality photos to complete this step — this helps keep your account secure. Thank you.",
    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ță.",
    kycVerifiedDescription: "Great news! Your account is verified. You're all set, jump in and enjoy the games. Thanks for playing with us!",
    kycFailedDescription: "We need clearer images to verify your account. Please upload better quality photos to complete this step — this helps keep your account secure. Thank you.",
    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.",
    kycVerifiedDescription: "Great news! Your account is verified. You're all set, jump in and enjoy the games. Thanks for playing with us!",
    kycFailedDescription: "We need clearer images to verify your account. Please upload better quality photos to complete this step — this helps keep your account secure. Thank you.",
    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: "نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.",
    kycVerifiedDescription: "Great news! Your account is verified. You're all set, jump in and enjoy the games. Thanks for playing with us!",
    kycFailedDescription: "We need clearer images to verify your account. Please upload better quality photos to complete this step — this helps keep your account secure. Thank you.",
    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.",
    kycVerifiedDescription: "Great news! Your account is verified. You're all set, jump in and enjoy the games. Thanks for playing with us!",
    kycFailedDescription: "We need clearer images to verify your account. Please upload better quality photos to complete this step — this helps keep your account secure. Thank you.",
    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.",
    kycVerifiedDescription: "Boas notícias! A sua conta foi verificada. Está tudo pronto, entre e divirta-se com os jogos. Obrigado por jogar connosco!",
    kycFailedDescription: "Precisamos de imagens mais nítidas para verificar a sua conta. Por favor, envie fotos com melhor qualidade para concluir esta etapa — isto ajuda a manter a sua conta segura. Obrigado.",
    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 w = (e) => new Promise((t) => {
  fetch(e).then((o) => o.json()).then((o) => {
    Object.keys(o).forEach((i) => {
      h[i] || (h[i] = {});
      for (let a in o[i])
        h[i][a] = o[i][a];
    }), t(!0);
  });
}), l = (e, t, o) => {
  const i = t;
  return h[i !== void 0 && i in h ? i : I][e];
}, O = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), p = "__WIDGET_GLOBAL_STYLE_CACHE__";
function C(e, t) {
  if (e) {
    const o = document.createElement("style");
    o.innerHTML = t, e.appendChild(o);
  }
}
function k(e, t) {
  if (!e || !t)
    return;
  const o = new URL(t);
  fetch(o.href).then((i) => i.text()).then((i) => {
    const a = document.createElement("style");
    a.innerHTML = i, e && e.appendChild(a);
  }).catch((i) => {
    console.error("There was an error while trying to load client styling from URL", i);
  });
}
function B(e, t, o, i = !1) {
  if (!window.emMessageBus)
    return;
  if (!("adoptedStyleSheets" in Document.prototype) || !i)
    return o = F(e, t), o;
  window[p] || (window[p] = {}), o = L(e, t);
  const r = o.unsubscribe.bind(o), s = () => {
    if (window[p][t]) {
      const d = window[p][t];
      d.refCount > 1 ? d.refCount = d.refCount - 1 : delete window[p][t];
    }
    r();
  };
  return o.unsubscribe = s, o;
}
function F(e, t) {
  const o = document.createElement("style");
  return window.emMessageBus.subscribe(t, (i) => {
    e && (o.innerHTML = i, e.appendChild(o));
  });
}
function L(e, t) {
  return window.emMessageBus.subscribe(t, (o) => {
    if (!e)
      return;
    const i = e.getRootNode(), a = window[p];
    let r = a[t] && a[t].sheet;
    r ? a[t].refCount = a[t].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(o), a[t] = {
      sheet: r,
      refCount: 1
    });
    const s = i.adoptedStyleSheets || [];
    s.includes(r) || (i.adoptedStyleSheets = [...s, r]);
  });
}
const A = `:host {
  font-family: inherit;
}

button, select {
  font-family: inherit;
}

.ModalContainer {
  container-type: inline-size;
}

.player-kyc-verification-widget {
  padding: 20px;
  align-items: center;
}
.player-kyc-verification-widget h2 {
  margin: 15px;
  font-weight: var(--emw--font-weight-semibold, 500);
}
.player-kyc-verification-widget .widget-description, .player-kyc-verification-widget .widget-description-verified, .player-kyc-verification-widget .widget-description-failed {
  margin: 24px 0px;
}
.player-kyc-verification-widget .verification-types {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 34px;
}
.player-kyc-verification-widget .verification-types .verification-box {
  transition: height 0.3s, border-color 0.3s;
  border: solid 1px var(--emw--color-gray-100, #E6E6E6);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  padding: 0px 14px;
  border-width: 2px 2px 8px 2px;
  align-self: start;
}
.player-kyc-verification-widget .verification-types .verification-box .box {
  flex-shrink: 0;
}
.player-kyc-verification-widget .verification-types .verification-box .box-header {
  display: flex;
  padding: 14px 0px;
  justify-content: space-between;
  cursor: pointer;
  align-items: center;
}
.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}
.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon svg {
  height: 24px;
  width: 24px;
}
.player-kyc-verification-widget .verification-types .verification-box .box-header .box-title {
  flex-grow: 1;
  font-size: 18px;
}
.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon {
  flex-grow: 10;
  width: 14px;
  height: 14px;
  display: flex;
  justify-content: flex-end;
}
.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon svg {
  width: 20px;
  height: 22px;
}
.player-kyc-verification-widget .verification-types .verification-box .box-content {
  flex-grow: 1;
  border-top: 0.4px solid var(--emw--color-gray-100, #E6E6E6);
  padding: 10px 0px;
  flex-grow: 1;
}
.player-kyc-verification-widget .verification-types .verification-box .box-content .upload-status {
  text-align: center;
  padding: 20px;
}
.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}
.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown svg {
  margin: 16px;
  cursor: pointer;
}
.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .nice-select {
  cursor: pointer;
  width: 100%;
  height: 30px;
  padding: 4px 14px;
  font-size: 14px;
  border: 1px solid var(--emw--color-gray-150, #828282);
  border-radius: 2px;
  background-color: var(--emw--color-white, #FFFFFF);
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px;
  background-repeat: no-repeat;
  background-position: right 10px center;
  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>');
}
.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button {
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--emw--color-white, #FFFFFF);
  color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
  border: none;
  font-size: 16px;
  padding: 10px 0px 0px 0px;
  cursor: pointer;
}
.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button svg {
  margin-right: 10px;
}
.player-kyc-verification-widget .verification-types .verification-box.expanded {
  border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));
  min-height: 120px;
}
.player-kyc-verification-widget .verification-types .verification-box.failed {
  border-color: var(--emw--color-error, var(--emw--color-red, #FD2839));
}
.player-kyc-verification-widget .verification-types .verification-box.success {
  border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));
}
.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content .verification-status {
  margin: 12px 0px 16px;
  font-size: 18px;
  text-align: center;
  color: var(--emw--color-gray-150, #828282);
}

.MenuReturnButton {
  display: flex;
  align-items: center;
}

@container (min-width: 700px) {
  .player-kyc-verification-widget {
    padding: 100px 60px;
  }
}
@container (max-width: 700px) {
  .player-kyc-verification-widget h2 {
    margin: 15px;
    text-align: center;
  }
  .player-kyc-verification-widget .verification-types {
    grid-template-columns: 1fr;
    grid-gap: 16px;
  }
}
@container (max-width: 475px) {
  .player-kyc-verification-widget .verification-types {
    display: block;
  }
  .player-kyc-verification-widget .verification-types .verification-box {
    margin-bottom: 20px;
  }
}
@container (max-width: 1240px) and (min-width: 701px) {
  .player-kyc-verification-widget .verification-types {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ModalLoader {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ModalLoader:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
  border-color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;
  animation: Loader 1.2s linear infinite;
}

@keyframes Loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}`, U = A, V = class {
  constructor(e) {
    x(this, e), this.scriptInjected = !1, this.MAX_UPLOAD_SIZE = 5e7, this.userAgent = window.navigator.userAgent, this.isMobile = O(this.userAgent), this.getKYCCustomerStatus = () => {
      try {
        this.isKYCLoading = !0;
        let t = new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus?language=${this.language}`);
        const o = {
          method: "POST",
          headers: {
            "X-SessionId": this.session,
            "Content-Type": "application/json"
          },
          body: JSON.stringify({})
        };
        fetch(t.href, o).then((i) => {
          if (i.status === 200)
            return i.json();
          throw new Error("HTTP status " + i.status);
        }).then((i) => {
          var a;
          this.verificationType = i.verifications, ((a = this.verificationType) === null || a === void 0 ? void 0 : a.length) > 0 && (this.hideKycDescription === "true" && (this.hasAllDocumentsUploaded = this.verificationType.every((r) => {
            var s;
            if ((r == null ? void 0 : r.documents.length) !== 0)
              return (s = r == null ? void 0 : r.documents) === null || s === void 0 ? void 0 : s.some((d) => d.status === "Uploaded");
          })), this.verificationsGeneralStatus = this.getGeneralVerificationStatus(this.verificationType), Array.isArray(this.verificationType) && this.handleVerificationShuftiMessage(this.verificationType)), this.isKYCLoading = !1;
        }).catch((i) => {
          this.isKYCLoading = !1, console.error(i);
        }).finally(() => {
          this.isDataLoading = !1;
        });
      } catch (t) {
        console.error("Error fetching verification types:", t);
      }
    }, this.handleShuftiMessage = (t) => {
      const o = t.data, i = o.event || o.verification_status;
      if (i)
        switch (i) {
          case "verification.declined":
          case "verification.accepted":
            setTimeout(() => {
              this.isKYCLoading = !0;
            }, 500), setTimeout(() => {
              this.getKYCCustomerStatus();
            }, 5500);
            break;
        }
    }, this.handleToggleScreen = () => {
      this.toggleScreen(this.isMobile);
    }, this.hideVulnerabilityCheck = "false", this.userId = "", this.session = "", this.language = "en", this.endpoint = "", this.translationUrl = "", this.clientStyling = "", this.verifiedIcon = "", this.failedIcon = "", this.defaultIcon = "", this.clientStylingUrl = "", this.mbSource = void 0, this.hideKycDescription = "false", this.overridableTypesStr = "", this.verificationType = [], this.hasAllDocumentsUploaded = !1, this.verificationsGeneralStatus = void 0, this.isLoading = !1, this.isKYCLoading = !1, this.selectedFile = null, this.uploadingStatus = void 0, this.uploadSizeExceeded = !1, this.expandedOnDesktop = !1, this.isDataLoading = !0;
  }
  handleNewTranslations() {
    this.isLoading = !0, w(this.translationUrl).then(() => {
      this.isLoading = !1;
    });
  }
  componentWillLoad() {
    return m(this, null, function* () {
      this.getKYCCustomerStatus(), this.translationUrl.length > 2 && (this.isLoading = !0, yield w(this.translationUrl).then(() => {
        this.isLoading = !1;
      }));
    });
  }
  handleClientStylingChange(e, t) {
    e != t && C(this.stylingContainer, this.clientStyling);
  }
  handleClientStylingUrlChange(e, t) {
    e != t && this.clientStylingUrl && k(this.stylingContainer, this.clientStylingUrl);
  }
  componentDidLoad() {
    return m(this, null, function* () {
      this.stylingContainer && (window.emMessageBus != null ? B(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && C(this.stylingContainer, this.clientStyling), this.clientStylingUrl && k(this.stylingContainer, this.clientStylingUrl))), window.innerWidth > 700 && (this.expandedOnDesktop = !0);
    });
  }
  removeVerificationShuftiMessage() {
    window.removeEventListener("message", this.handleShuftiMessage);
  }
  handleVerificationShuftiMessage(e) {
    const t = e.find((o) => {
      var i;
      return o.vendorName === "ShuftiPro" && ((i = o.flowInfo) === null || i === void 0 ? void 0 : i.actionNeeded) === !0;
    });
    t.expanded = !0, this.removeVerificationShuftiMessage(), t && window.addEventListener("message", this.handleShuftiMessage);
  }
  getGeneralVerificationStatus(e) {
    if (!Array.isArray(e) || e.length === 0)
      return "Unknown";
    const t = (this.overridableTypesStr || "").split(",").map((i) => i.trim().toLowerCase()).filter((i) => i !== "" && i !== "false"), o = e.map((i) => {
      var a, r;
      const s = ((a = i == null ? void 0 : i.type) === null || a === void 0 ? void 0 : a.toLowerCase()) || "";
      return t.includes(s) && e.some((c) => {
        var u, f;
        return ((u = c == null ? void 0 : c.type) === null || u === void 0 ? void 0 : u.toLowerCase()) === s && ((f = c == null ? void 0 : c.status) === null || f === void 0 ? void 0 : f.toLowerCase()) === "verified";
      }) ? "verified" : ((r = i == null ? void 0 : i.status) === null || r === void 0 ? void 0 : r.toLowerCase()) || "";
    });
    return o.includes("failed") ? "Failed" : o.includes("expired") ? "Expired" : o.includes("inprogress") ? "InProgress" : o.every((i) => i === "verified") ? "Verified" : "Unknown";
  }
  disconnectedCallback() {
    this.stylingSubscription && this.stylingSubscription.unsubscribe(), this.removeVerificationShuftiMessage();
  }
  handleOptionChange(e, t) {
    const o = e.target;
    this.verificationType = this.verificationType.map((i) => (i.type === t && (i.optionChosen = o.value), i));
  }
  handleDocumentsStatus(e, t, o) {
    this.verificationType = this.verificationType.map((i) => {
      if (i.type === e) {
        const a = i.documents.find((r) => r.code === o);
        a && (a.statusUploaded = t);
      }
      return i;
    });
  }
  downloadPDF(e) {
    const t = document.createElement("a");
    t.href = e, t.download = "file.pdf", t.target = "_blank", t.dispatchEvent(new MouseEvent("click"));
  }
  toggleVerificationType(e, t) {
    this.expandedOnDesktop = !1, this.verificationType = this.verificationType.map((o) => {
      var i;
      return o.type === e && ((i = o.flowInfo) === null || i === void 0 ? void 0 : i.type) == t && (o.expanded = !o.expanded), o;
    });
  }
  toggleScreen(e) {
    window.postMessage({ type: "PlayerAccountMenuActive", isMobile: e }, window.location.href);
  }
  checkFileSize(e) {
    let t = 0;
    return Object.keys(e).forEach((o) => {
      t += e[o].size;
    }), t <= this.MAX_UPLOAD_SIZE;
  }
  handleFileSelection(e, t, o) {
    if (e && e.length > 0)
      if (this.selectedFile = e, !this.checkFileSize(this.selectedFile))
        console.error(l("fileSizeExceeded", this.language)), this.uploadingStatus = l("fileSizeExceeded", this.language), this.handleDocumentsStatus(o, this.uploadingStatus, t), this.uploadSizeExceeded = !0;
      else {
        const i = {
          method: "POST",
          headers: {
            "Content-Type": "application/json",
            "X-SessionId": this.session
          },
          body: JSON.stringify({ DocumentCode: t })
        };
        fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`, i).then((a) => {
          if (a.ok)
            return this.uploadingStatus = l("uploading", this.language), this.handleDocumentsStatus(o, this.uploadingStatus, t), a.json();
        }).then((a) => {
          if (a.ResponseCode == "Success") {
            const r = new FormData();
            r.append(t, this.selectedFile[0]), fetch(a.Url, { method: "POST", body: r }).then((s) => {
              s.ok ? (this.selectedFile.length > 1 ? this.uploadingStatus = l("successUploadMultipleFiles", this.language) : this.uploadingStatus = l("successUpload", this.language), this.handleDocumentsStatus(o, this.uploadingStatus, t)) : (this.uploadingStatus = l("failedUpload", this.language), this.handleDocumentsStatus(o, this.uploadingStatus, t), console.error("File upload error:", s.status));
            }).catch((s) => {
              console.error("File upload error:", s);
            });
          } else
            this.uploadingStatus = l("failedUpload", this.language), this.handleDocumentsStatus(o, this.uploadingStatus, t);
        }).catch((a) => {
          console.error("File upload error:", a);
        });
      }
  }
  importScript(e) {
    return new Promise((t, o) => {
      fetch(e).then((i) => i.text()).then((i) => {
        if (new Function(i)(), this.scriptInjected)
          t(!0);
        else {
          const r = document.createElement("script");
          r.src = "https://test.insic.de/frontend3/static/js/avs-loader.min.js", document.head.appendChild(r), this.scriptInjected = !0, t(!0);
        }
      }).catch((i) => {
        o(i);
      });
    });
  }
  isStatusUploaded(e) {
    return !!(e && e.status === "Uploaded");
  }
  getFirstRequestedDocument(e) {
    var t, o;
    let i;
    return (t = e == null ? void 0 : e.documents) === null || t === void 0 || t.forEach((a) => {
      a.status == "Requested" && (i = i != null ? i : a.code);
    }), i || (i = (o = e == null ? void 0 : e.documents[0]) === null || o === void 0 ? void 0 : o.code), i;
  }
  renderVerificationTypeBox(e) {
    this.expandedOnDesktop && (e.expanded = !0);
    let t = this.getFirstRequestedDocument(e), o = e.expanded, i = e.type.trim(), a = e.optionChosen || t, r = e.status, s = e.documents, d = e.flowInfo;
    const u = e.vendorName === "ShuftiPro" && r !== "InProgress", f = r === "Verified", y = r === "Failed" || r === "Expired";
    return f && i === "VulnerabilityCheck" && this.hideVulnerabilityCheck === "true" || u ? null : n("div", { class: `verification-box ${o ? "expanded" : ""} ${y ? "failed" : ""} ${f ? "success" : ""}` }, n("div", { class: `box box-header ${o ? "expanded" : ""}`, onClick: () => {
      var g;
      return this.toggleVerificationType(e.type, (g = e.flowInfo) === null || g === void 0 ? void 0 : g.type);
    } }, n("div", { class: "box-icon" }, f ? n("div", null, this.verifiedIcon ? n("img", { class: "CustomVerifiedIcon", src: this.verifiedIcon, alt: "" }) : n("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, n("circle", { cx: "50", cy: "50", r: "40", fill: "#388D79" }), n("circle", { cx: "50", cy: "50", r: "34", fill: "none", stroke: "#fff", "stroke-width": "12px" }), n("polyline", { points: "30,50 45,63 70,35", fill: "none", stroke: "#fff", "stroke-width": "8px" }))) : y ? n("div", null, this.failedIcon ? n("img", { class: "CustomFailedIcon", src: this.failedIcon, alt: "" }) : n("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, n("circle", { cx: "50", cy: "50", r: "40", fill: "red" }), n("line", { x1: "30", y1: "30", x2: "70", y2: "70", stroke: "#fff", "stroke-width": "10px" }), n("line", { x1: "30", y1: "70", x2: "70", y2: "30", stroke: "#fff", "stroke-width": "10px" }))) : n("div", null, this.defaultIcon ? n("img", { class: "CustomDefaultIcon", src: this.defaultIcon, alt: "" }) : n("svg", { width: "800px", height: "800px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { d: "M4 4V20C4 21.1046 4.89543 22 6 22L18 22C19.1046 22 20 21.1046 20 20V8.34162C20 7.8034 19.7831 7.28789 19.3982 6.91161L14.9579 2.56999C14.5842 2.20459 14.0824 2 13.5597 2L6 2C4.89543 2 4 2.89543 4 4Z", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), n("path", { d: "M9 13H15", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), n("path", { d: "M9 17H12", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), n("path", { d: "M14 2V6C14 7.10457 14.8954 8 16 8H20", stroke: "#000000", "stroke-width": "2", "stroke-linejoin": "round" })))), n("div", { class: "box-title" }, l(i, this.language)), n("div", { class: "chevron-icon" }, n("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, n("path", { d: o ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" })))), o ? this.renderExpandedContent(e, a, r, s, d, f, y) : n("div", { class: "box box-content" }, n("div", { id: "__avs-wrapper" })));
  }
  renderDocumentsActions(e, t, o) {
    return n("div", null, this.isStatusUploaded(e) ? n("div", { class: "upload-status" }, l("uploaded", this.language)) : e != null && e.statusUploaded ? n("div", { class: "upload-status" }, e == null ? void 0 : e.statusUploaded) : n("div", { class: "documents-action" }, n("div", { class: "sample-file" }, (e == null ? void 0 : e.sampleType) === "FileDownload" ? n("button", { class: "download-button", onClick: () => this.downloadPDF(e == null ? void 0 : e.sampleUrl) }, n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { d: "M12 0C5.372 0 0 5.372 0 12C0 18.628 5.372 24 12 24C18.628 24 24 18.628 24 12C24 5.372 18.628 0 12 0ZM12 22C6.485 22 2 17.515 2 12C2 6.485 6.485 2 12 2C17.515 2 22 6.485 22 12C22 17.515 17.515 22 12 22Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" }), n("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" })), n("span", null, l("download", this.language))) : null), n("div", { class: "upload-button" }, t ? n("label", null, n("input", { type: "file", accept: "*", onChange: (i) => this.handleFileSelection(i.target.files, t, o.type), style: { display: "none" } }), n("svg", { width: "100", height: "100", xmlns: "http://www.w3.org/2000/svg" }, n("circle", { cx: "50", cy: "50", r: "40", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" }), n("line", { x1: "30", y1: "50", x2: "70", y2: "50", stroke: "white", "stroke-width": "6" }), n("line", { x1: "50", y1: "30", x2: "50", y2: "70", stroke: "white", "stroke-width": "6" }))) : null)));
  }
  renderExpandedContent(e, t, o, i, a, r, s) {
    if ((a == null ? void 0 : a.type) === "Widget")
      return n("div", null, n("hr", { style: { margin: "5px" } }), n("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" }));
    if ((a == null ? void 0 : a.type) === "Redirect" && e.vendorName !== "Manual" && o !== "Verified") {
      const d = e.vendorName === "ShuftiPro" ? "650px" : "400px";
      return n("div", null, n("hr", { style: { margin: "5px" } }), n("iframe", { src: a.url, frameborder: "0", height: d, width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" }));
    } else
      return n("div", { class: "box box-content" }, n(v, null, r ? n("div", { class: "verification-status" }, l("verificationComplete", this.language)) : s ? n("div", { class: "verification-status" }, o === "Failed" ? l("verificationFailed", this.language) : l("verificationExpired", this.language)) : i.length > 0 ? n("div", { class: "documents-dropdown" }, n("select", { class: "nice-select", onChange: (d) => this.handleOptionChange(d, e.type) }, i.map((d) => n("option", { selected: d.code == t, value: d.code }, l(d.type, this.language)))), this.renderDocumentsActions(i.find((d) => d.code === t), t, e)) : null));
  }
  renderKycDescription() {
    if (this.hideKycDescription === "true")
      switch (this.verificationsGeneralStatus) {
        case "Verified":
          return n("div", { class: "widget-description-verified" }, l("kycVerifiedDescription", this.language));
        case "Failed":
          return n("div", { class: "widget-description-failed" }, l("kycFailedDescription", this.language));
        default:
          if (this.hasAllDocumentsUploaded)
            return null;
          break;
      }
    return n("div", { class: "widget-description" }, l("kycDescription", this.language));
  }
  render() {
    return this.isLoading ? n("div", null, n("p", null, l("loading", this.language))) : n("div", { class: "ModalContainer", ref: (e) => this.stylingContainer = e }, n("div", { class: "player-kyc-verification-widget" }, this.isMobile ? n("div", { class: "MenuReturnButton", onClick: this.handleToggleScreen }, n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, n("defs", null), n("g", { transform: "translate(-20 -158)" }, n("g", { transform: "translate(20 158)" }, n("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), n("h2", null, l("kycTitle", this.language))) : n("h2", null, l("kycTitle", this.language)), this.isDataLoading ? n("div", { class: "loader" }, l("loading", this.language)) : this.verificationType.length === 0 ? n("div", { class: "no-verification-description", style: { padding: "24px", fontSize: "18px" } }, l("noVerificationRequired", this.language)) : n(v, null, this.renderKycDescription(), n("div", { class: "verification-types" }, this.verificationType.map((e) => e ? this.renderVerificationTypeBox(e) : null)))));
  }
  static get watchers() {
    return {
      translationUrl: ["handleNewTranslations"],
      clientStyling: ["handleClientStylingChange"],
      clientStylingUrl: ["handleClientStylingUrlChange"]
    };
  }
};
V.style = U;
export {
  V as player_kyc_verification
};
