@everymatrix/player-account-controller 1.90.24 → 1.90.25

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.
Files changed (118) hide show
  1. package/components/{GeneralLogout-CY-WrWNv.js → GeneralLogout-C4EumplP.js} +1 -1
  2. package/components/{GeneralLogout-DAlC-wB7.cjs → GeneralLogout-CJ83F0T-.cjs} +1 -1
  3. package/components/{GeneralLogout-DrsTdbfc.js → GeneralLogout-DwNLBfEm.js} +1 -1
  4. package/components/{PlayerAccountBettingHistory-CP7MpIhm.cjs → PlayerAccountBettingHistory-B4Dj6cYD.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-DTLwylfZ.js → PlayerAccountBettingHistory-BhY_Ww_e.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-Cd9Ma3vA.js → PlayerAccountBettingHistory-kpMqXTCa.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-CFttb_zo.cjs → PlayerAccountBiometrics-CUrQTKBz.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-BfuoQT5j.js → PlayerAccountBiometrics-D39leCsG.js} +2 -2
  9. package/components/{PlayerAccountBiometrics-BhoA8FMt.js → PlayerAccountBiometrics-tzJhpDfY.js} +2 -2
  10. package/components/{PlayerAccountBiometricsAction-BvHDJ2jT.js → PlayerAccountBiometricsAction-BEi6fJnh.js} +1 -1
  11. package/components/{PlayerAccountBiometricsAction-Cws53DAq.js → PlayerAccountBiometricsAction-BNiRdNGG.js} +1 -1
  12. package/components/{PlayerAccountBiometricsAction-xzpleyyx.cjs → PlayerAccountBiometricsAction-DMR4gM3W.cjs} +1 -1
  13. package/components/{PlayerAccountClosure-PSvrfo7v.cjs → PlayerAccountClosure-BHJVs9rZ.cjs} +1 -1
  14. package/components/{PlayerAccountClosure-8V_5Ab8B.js → PlayerAccountClosure-Cl3x1fL0.js} +1 -1
  15. package/components/{PlayerAccountClosure-DGqx96Og.js → PlayerAccountClosure-z8D8s410.js} +1 -1
  16. package/components/{PlayerAccountController-yvnokxOQ.js → PlayerAccountController-CKaOyxPs.js} +23 -23
  17. package/components/{PlayerAccountController-7Z4QG-7c.js → PlayerAccountController-D0b5nEtR.js} +23 -23
  18. package/components/{PlayerAccountController-BPX9SZ1I.cjs → PlayerAccountController-DKq6RO5X.cjs} +2 -2
  19. package/components/{PlayerAccountGamingLimits-BrqDKo1a.js → PlayerAccountGamingLimits-CBLv92Kh.js} +2 -2
  20. package/components/{PlayerAccountGamingLimits-oC03umqp.cjs → PlayerAccountGamingLimits-U-H5gb3e.cjs} +1 -1
  21. package/components/{PlayerAccountGamingLimits-BQrCF1nb.js → PlayerAccountGamingLimits-k6RYNNnE.js} +2 -2
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-C5dh_hO2.js → PlayerAccountGamingLimitsConfirmationModal-538HdqwS.js} +1 -1
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-Boyy1vvD.cjs → PlayerAccountGamingLimitsConfirmationModal-DKzqC8Vf.cjs} +1 -1
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-bpKzY0Gv.js → PlayerAccountGamingLimitsConfirmationModal-FG4Mfvt0.js} +1 -1
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-CyA0TsdO.cjs → PlayerAccountGamingLimitsGroupEdit-6fCqHqkM.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-HdVcrRpk.js → PlayerAccountGamingLimitsGroupEdit-B2JhDz2i.js} +5 -5
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-BtHHIsgc.js → PlayerAccountGamingLimitsGroupEdit-DL8BUzBz.js} +5 -5
  28. package/components/{PlayerAccountGamingLimitsHistory2-jrK-LOLU.cjs → PlayerAccountGamingLimitsHistory2-BNWPIbWB.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsHistory2-Cxzzjq-O.js → PlayerAccountGamingLimitsHistory2-g_IWvLmy.js} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2-Bw3KIRQR.js → PlayerAccountGamingLimitsHistory2-xIrqOBue.js} +1 -1
  31. package/components/{PlayerAccountGamingLimitsInfoCard-ChC4KBsp.js → PlayerAccountGamingLimitsInfoCard-C3kYu3Mz.js} +4 -4
  32. package/components/{PlayerAccountGamingLimitsInfoCard-Ch-pjSRg.cjs → PlayerAccountGamingLimitsInfoCard-DQT8NxCM.cjs} +1 -1
  33. package/components/{PlayerAccountGamingLimitsInfoCard-CG21GNQ2.js → PlayerAccountGamingLimitsInfoCard-aPWTEP6v.js} +4 -4
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16-BRHk3ubY.js → PlayerAccountGamingLimitsPage2Gm16-BTPwSCw_.js} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16-DNQOsunZ.js → PlayerAccountGamingLimitsPage2Gm16-Cv_0o78w.js} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16-C7UP2zzD.cjs → PlayerAccountGamingLimitsPage2Gm16-vBu6DIoa.cjs} +1 -1
  37. package/components/{PlayerAccountGamingLimitsPopup-yP4ShWz_.cjs → PlayerAccountGamingLimitsPopup-BBelp3R2.cjs} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPopup-Budw7AZM.js → PlayerAccountGamingLimitsPopup-CsiOIti5.js} +1 -1
  39. package/components/{PlayerAccountGamingLimitsPopup-Rkeh1xwo.js → PlayerAccountGamingLimitsPopup-mKUhuTAc.js} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2-Dd1mii8E.js → PlayerAccountGamingLimitsWrapper2-206eT_43.js} +3 -3
  41. package/components/{PlayerAccountGamingLimitsWrapper2-jM5P-7OJ.cjs → PlayerAccountGamingLimitsWrapper2-BXgOs7ar.cjs} +1 -1
  42. package/components/{PlayerAccountGamingLimitsWrapper2-BShhaCEZ.js → PlayerAccountGamingLimitsWrapper2-LXe3wpOz.js} +3 -3
  43. package/components/{PlayerAccountGeneralConfirmationModal-blVSfysg.cjs → PlayerAccountGeneralConfirmationModal-Bs4_RcFn.cjs} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-B9XAb0SI.js → PlayerAccountGeneralConfirmationModal-SggjdB4z.js} +1 -1
  45. package/components/{PlayerAccountGeneralConfirmationModal-dWYL0wRr.js → PlayerAccountGeneralConfirmationModal-h3MmxVod.js} +1 -1
  46. package/components/{PlayerAccountMenu-Y6oKFTu9.js → PlayerAccountMenu-CLz0VlnA.js} +2 -2
  47. package/components/{PlayerAccountMenu-CMmj4heT.js → PlayerAccountMenu-DNcEo09K.js} +2 -2
  48. package/components/{PlayerAccountMenu-Co0F1_h1.cjs → PlayerAccountMenu-DbWbd1yC.cjs} +1 -1
  49. package/components/{PlayerAccountModal-CebQVLES.cjs → PlayerAccountModal-BXE5DAmY.cjs} +1 -1
  50. package/components/{PlayerAccountModal-Dgv08Cct.js → PlayerAccountModal-BjiMUaLd.js} +1 -1
  51. package/components/{PlayerAccountModal-DmBCb2Zs.js → PlayerAccountModal-CscgLYV5.js} +1 -1
  52. package/components/{PlayerAccountNotifications-CABW-ChE.js → PlayerAccountNotifications-B17BVCRD.js} +1 -1
  53. package/components/{PlayerAccountNotifications-QVPz_aHw.cjs → PlayerAccountNotifications-D-QSwFJL.cjs} +1 -1
  54. package/components/{PlayerAccountNotifications-0irn7K_I.js → PlayerAccountNotifications-DAVg-El1.js} +1 -1
  55. package/components/{PlayerAccountProductRestriction-C-JnHU_Q.js → PlayerAccountProductRestriction-B4qAQc1H.js} +3 -3
  56. package/components/{PlayerAccountProductRestriction-fWc7CLxA.js → PlayerAccountProductRestriction-BGxedQ3X.js} +3 -3
  57. package/components/{PlayerAccountProductRestriction-CpPS3ztt.cjs → PlayerAccountProductRestriction-BVbpwBgo.cjs} +1 -1
  58. package/components/{PlayerAccountReviewFrequency-CRjozlKe.js → PlayerAccountReviewFrequency-Cq7qpg-I.js} +1 -1
  59. package/components/{PlayerAccountReviewFrequency-CAHYVZn-.js → PlayerAccountReviewFrequency-Cuvddk9X.js} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-CATstA6c.cjs → PlayerAccountReviewFrequency-oQ7NCWlX.cjs} +1 -1
  61. package/components/{PlayerAccountSelfExclusion-CMjo8tGK.js → PlayerAccountSelfExclusion-BMOP0W_Z.js} +2 -2
  62. package/components/{PlayerAccountSelfExclusion-D7tNsmsd.cjs → PlayerAccountSelfExclusion-BSyc12y1.cjs} +1 -1
  63. package/components/{PlayerAccountSelfExclusion-DROI0jtq.js → PlayerAccountSelfExclusion-xIyAHdnn.js} +2 -2
  64. package/components/{PlayerAccountTimeout-CngseaTN.js → PlayerAccountTimeout-BNLHG5j3.js} +3 -3
  65. package/components/{PlayerAccountTimeout-BUmssQe3.js → PlayerAccountTimeout-D0RW52RF.js} +3 -3
  66. package/components/{PlayerAccountTimeout-LMlKTqxY.cjs → PlayerAccountTimeout-ZOGQj5G2.cjs} +2 -2
  67. package/components/{PlayerAccountTransactionsHistory-p-FjPj0z.js → PlayerAccountTransactionsHistory-BzGvWPDJ.js} +4 -4
  68. package/components/{PlayerAccountTransactionsHistory-45ZADKQQ.cjs → PlayerAccountTransactionsHistory-CbtfeCgT.cjs} +1 -1
  69. package/components/{PlayerAccountTransactionsHistory-kYAPwE0a.js → PlayerAccountTransactionsHistory-DKB8qW5n.js} +4 -4
  70. package/components/{PlayerActiveBonuses-BH5Kxo7h.cjs → PlayerActiveBonuses-CT7XTxBJ.cjs} +1 -1
  71. package/components/{PlayerActiveBonuses-37ykSIq4.js → PlayerActiveBonuses-Df33uFo8.js} +2 -2
  72. package/components/{PlayerActiveBonuses-ECPZ13ym.js → PlayerActiveBonuses-pJGDjCj9.js} +2 -2
  73. package/components/{PlayerBonusCard-BSmH6CIs.js → PlayerBonusCard-BUDT4xyi.js} +2 -2
  74. package/components/{PlayerBonusCard-BuWnwo4v.js → PlayerBonusCard-ByC1IBuw.js} +2 -2
  75. package/components/{PlayerBonusCard-COrCr5FK.cjs → PlayerBonusCard-CxRngJSZ.cjs} +1 -1
  76. package/components/{PlayerBonusHistory-1TgTT88K.cjs → PlayerBonusHistory-C7UDn3wR.cjs} +1 -1
  77. package/components/{PlayerBonusHistory-KBdN7YCB.js → PlayerBonusHistory-CEWrGvIt.js} +2 -2
  78. package/components/{PlayerBonusHistory-CTHdEkN5.js → PlayerBonusHistory-CkarFQt0.js} +2 -2
  79. package/components/{PlayerChangePassword-DeiY25DD.cjs → PlayerChangePassword-3Pfi4t-s.cjs} +1 -1
  80. package/components/{PlayerChangePassword-BN7I5XYe.js → PlayerChangePassword-BRiEQQkP.js} +1 -1
  81. package/components/{PlayerChangePassword-BqRSaIuy.js → PlayerChangePassword-_SMq16X1.js} +1 -1
  82. package/components/{PlayerDeposit-C6YC4LvG.cjs → PlayerDeposit-CRJRg5Wr.cjs} +1 -1
  83. package/components/{PlayerDeposit-DGiAywvQ.js → PlayerDeposit-DHqNMLjt.js} +1 -1
  84. package/components/{PlayerDeposit-KoUe5_yC.js → PlayerDeposit-sLxAAkrb.js} +1 -1
  85. package/components/{PlayerGamingHistory-B-cvXf4l.js → PlayerGamingHistory-B-pE0ysm.js} +3 -3
  86. package/components/{PlayerGamingHistory-Bk4QU5Wf.js → PlayerGamingHistory-Bzb5pocD.js} +3 -3
  87. package/components/{PlayerGamingHistory-cU4TKaDS.cjs → PlayerGamingHistory-C9II4LcD.cjs} +1 -1
  88. package/components/{PlayerPendingWithdrawals-CVm_9oRd.cjs → PlayerPendingWithdrawals-CbB3XENc.cjs} +1 -1
  89. package/components/{PlayerPendingWithdrawals-B__zDwTE.js → PlayerPendingWithdrawals-Dl09yYaH.js} +1 -1
  90. package/components/{PlayerPendingWithdrawals-DtMbwhbA.js → PlayerPendingWithdrawals-bSDN7eqy.js} +1 -1
  91. package/components/{PlayerProfileInfo-CHojiNaF.js → PlayerProfileInfo-BHezZcjN.js} +2 -2
  92. package/components/{PlayerProfileInfo-Hg8EL-sT.js → PlayerProfileInfo-BgW-E1St.js} +2 -2
  93. package/components/{PlayerProfileInfo-CVOWxtY6.cjs → PlayerProfileInfo-lynpo_OL.cjs} +1 -1
  94. package/components/{PlayerRealityCheck-CBSi-_E6.js → PlayerRealityCheck-BrfGbURR.js} +1 -1
  95. package/components/{PlayerRealityCheck-Bl4vgT8T.js → PlayerRealityCheck-Cy5rO9DI.js} +1 -1
  96. package/components/{PlayerRealityCheck-B8ckYI4F.cjs → PlayerRealityCheck-Dg7GLCk4.cjs} +1 -1
  97. package/components/{PlayerTransactionHistory-BQ0Yr17o.cjs → PlayerTransactionHistory-8OqngAkm.cjs} +1 -1
  98. package/components/{PlayerTransactionHistory-DLRGgD5f.js → PlayerTransactionHistory-C2S5faSi.js} +1 -1
  99. package/components/{PlayerTransactionHistory-DoipPIny.js → PlayerTransactionHistory-CruxvxRp.js} +1 -1
  100. package/components/{PlayerWithdrawal-D2FA_98Q.js → PlayerWithdrawal-BD1XhA5i.js} +1 -1
  101. package/components/{PlayerWithdrawal-5Fa2MV09.js → PlayerWithdrawal-C0_dg9OD.js} +1 -1
  102. package/components/{PlayerWithdrawal-BKHuD4B_.cjs → PlayerWithdrawal-CLiy-ohS.cjs} +1 -1
  103. package/es2015/player-account-controller.cjs +1 -1
  104. package/es2015/player-account-controller.js +1 -1
  105. package/esnext/player-account-controller.js +1 -1
  106. package/package.json +1 -1
  107. package/stencil/{checkbox-group-input_16-DRcFuT9g.cjs → checkbox-group-input_16-BZ2hl9dg.cjs} +2 -2
  108. package/stencil/{checkbox-group-input_16-BZ8oOiFw.js → checkbox-group-input_16-BkKDhqiT.js} +71 -28
  109. package/stencil/{checkbox-group-input_16-BJSQ9EI9.js → checkbox-group-input_16-DiGHrkvc.js} +71 -28
  110. package/stencil/{index-7469517b-Bc1iJ2Ba.js → index-7469517b-Bhqgkq7I.js} +1 -1
  111. package/stencil/{index-7469517b-CKVtduTe.cjs → index-7469517b-CqcJx12g.cjs} +1 -1
  112. package/stencil/{index-7469517b-LSbUcJQn.js → index-7469517b-DIkdDhvj.js} +1 -1
  113. package/stencil/{pam-change-password-233d1ebe-CiCN4Ogb.cjs → pam-change-password-233d1ebe-3KwOl0bG.cjs} +1 -1
  114. package/stencil/{pam-change-password-233d1ebe-BF-8HmO2.js → pam-change-password-233d1ebe-C-j3XDwF.js} +1 -1
  115. package/stencil/{pam-change-password-233d1ebe-DpAdDpYh.js → pam-change-password-233d1ebe-CY6IeK3t.js} +1 -1
  116. package/stencil/{pam-change-password-CrDMnO0V.js → pam-change-password-Bn9ozqA9.js} +1 -1
  117. package/stencil/{pam-change-password-Dn-FpwUQ.js → pam-change-password-C9W05EG7.js} +1 -1
  118. package/stencil/{pam-change-password-vqkBYDee.cjs → pam-change-password-DgTmRbQJ.cjs} +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index-7469517b-CKVtduTe.cjs"),w=require("./pam-change-password-233d1ebe-CiCN4Ogb.cjs"),Ys="en",Ee={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",fixedLengthError:"The length should be {length} characters",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:",AlphanumericalOnly:"Only alphanumerical characters are allowed",InvalidFirstName:"Only alphabetic characters are allowed.",InvalidLastName:"Only alphabetic characters are allowed.",MissingTrunkCode:"Phone number must start with 0"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",fixedLengthError:"A hossznak {length} karakternek kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:",AlphanumericalOnly:"Csak alfanumerikus karakterek engedélyezettek",InvalidFirstName:"Csak betűk engedélyezettek.",InvalidLastName:"Csak betűk engedélyezettek.",MissingTrunkCode:"A telefonszámnak 0-val kell kezdődnie"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",fixedLengthError:"Duljina mora biti {length} znakova",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:",AlphanumericalOnly:"Dopušteni su samo alfanumerički znakovi",InvalidFirstName:"Dozvoljena su samo slova.",InvalidLastName:"Dozvoljena su samo slova.",MissingTrunkCode:"Telefonski broj mora počinjati s 0"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",fixedLengthError:"Uzunluk {length} karakter olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:",AlphanumericalOnly:"Yalnızca alfanümerik karakterlere izin verilir",InvalidFirstName:"Yalnızca alfabetik karakterlere izin verilir.",InvalidLastName:"Yalnızca alfabetik karakterlere izin verilir.",MissingTrunkCode:"Telefon numarası 0 ile başlamalıdır"},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar com 0"},pt:{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro do intervalo aceite",dateFormatError:"A data selecionada tem um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório.",invalidOriginalPasswordError:"O campo da palavra-passe inicial não cumpre todos os critérios.",invalidPassword:"A palavra-passe não cumpre todos os critérios",passwordStrength:"Força da palavra-passe",passwordStrengthWeak:"não é adequada",passwordStrengthStrong:"é adequada",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido.",EmailNotMatching:"Os emails não coincidem!",PasswordNotMatching:"As palavras-passe não coincidem",MustIncludeNumber:"A palavra-passe deve incluir um número",MustContainCapital:"A palavra-passe deve incluir uma letra maiúscula",MustIncludePunctation:"A palavra-passe deve incluir pontuação",MustIncludeLowercase:"A palavra-passe deve incluir um caractere minúsculo",OnlyNumbers:"O campo deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviámos o código de verificação para <p> {destination}. </p> </p> <p> Por favor, introduza o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",enterIEAddressManually:"Para IRE, introduza o endereço manualmente",postalLookUpNoAddressFound:"Não foram encontrados endereços para este código postal",searchingForAddresses:"A procurar endereços...",SAIdLengthError:"O ID da África do Sul deve ter 13 dígitos",SAIdInvalidError:"ID da África do Sul inválido",PassportLengthError:"O número de passaporte deve ter 8 ou 9 dígitos.",PasswordMustContain:"A palavra-passe deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar por 0"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",fixedLengthError:"La longitud debe ser de {length} caracteres",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:",AlphanumericalOnly:"Solo se permiten caracteres alfanuméricos",InvalidFirstName:"Solo se permiten caracteres alfabéticos.",InvalidLastName:"Solo se permiten caracteres alfabéticos.",MissingTrunkCode:"El número de teléfono debe comenzar con 0"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",fixedLengthError:"La longueur doit être de {length} caractères",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :",AlphanumericalOnly:"Seuls les caractères alphanumériques sont autorisés",InvalidFirstName:"Seuls les caractères alphabétiques sont autorisés.",InvalidLastName:"Seuls les caractères alphabétiques sont autorisés.",MissingTrunkCode:"Le numéro de téléphone doit commencer par 0"}},J={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},de={PASSPORT_INVALID:"PassportLengthError",SA_ID_LENGTH:"SAIdLengthError",SA_ID_INVALID:"SAIdInvalidError",REQUIRED:"requiredError",LENGTH:"lengthError",FIXED_LENGTH:"fixedLengthError"},_a={PASSED:"✓",FAILED:"✕"},b=(i,e,t)=>{const r=e;let a=Ee[r]?Ee[r][i]:Ee[Ys][i];if(t!==void 0)for(const[o,n]of Object.entries(t.values)){const s=new RegExp(`{${o}}`,"g");a=a.replace(s,n)}return a},Gs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{Ee[r]=Ee[r]||{};for(let a in t[r])typeof t[r][a]=="string"&&(Ee[r]=Ee[r]||{},Ee[r][a]=t[r][a])}),e(!0)})}),Ks=i=>{if(!J.SA_ID_BASIC_REGEX.test(i))return!1;const e=i.split("").map(l=>parseInt(l,10));let t=0;for(let l=0;l<12;l+=2)t+=e[l];let r="";for(let l=1;l<12;l+=2)r+=e[l];const o=(parseInt(r,10)*2).toString().split("").reduce((l,d)=>l+parseInt(d,10),0);return(10-(t+o)%10)%10===e[12]},he="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Xs='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}',Qs=Xs,So=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value=null,this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((i,e)=>(i[e.name]=this.selectedValues.includes(e.name),i),{}),this.emitValueHandler(!0)}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(i=>i.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return h.h("div",{key:"342900ae923094f2746fd43917743d01efba942e",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"8f3b470274047b355741b438a4e15c7c46504f5a",class:"checkboxgroup__wrapper--flex"},h.h("vaadin-checkbox",{key:"c7a74f9da877304f4d71607d58eba90dd0a29de7",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:i=>this.handleParentCheckbox(i)},this.renderLabel()),this.tooltip&&h.h("img",{key:"75d807ad544e043a2e3beed46bf0c7dfa2125324",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("small",{key:"4b17e1e613c7561fb3c99f334926544ef2ba787a",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&h.h("vaadin-checkbox-group",{key:"9a8d573a7cb48bb2d68cceec5f39f1e0886ea05f",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>h.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};So.style=Qs;const Js='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}',Zs=Js,Io=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(i){this.value=i.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderLabel(){var i;return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:{"checkbox__label-text":!0,mandatory:(i=this.validation)===null||i===void 0?void 0:i.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"a8d8bf6aa2001b6aee44d728a198244819ae169e",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("vaadin-checkbox",{key:"13a5589a78bef4277922535e59c5718d36b1f318",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&h.h("img",{key:"008bb9a318c914b4b40e80b15080f7f174cc1262",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Io.style=Zs;function we(i){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(i)}function $(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function el(i){return $(1,arguments),i instanceof Date||we(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function W(i){$(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||we(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function To(i){if($(1,arguments),!el(i)&&typeof i!="number")return!1;var e=W(i);return!isNaN(Number(e))}function ie(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function tl(i,e){$(2,arguments);var t=W(i).getTime(),r=ie(e);return new Date(t+r)}function Po(i,e){$(2,arguments);var t=ie(e);return tl(i,-t)}var il=864e5;function rl(i){$(1,arguments);var e=W(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/il)+1}function Xe(i){$(1,arguments);var e=1,t=W(i),r=t.getUTCDay(),a=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function Ao(i){$(1,arguments);var e=W(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var a=Xe(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=Xe(o);return e.getTime()>=a.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function al(i){$(1,arguments);var e=Ao(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Xe(t);return r}var ol=6048e5;function Do(i){$(1,arguments);var e=W(i),t=Xe(e).getTime()-al(e).getTime();return Math.round(t/ol)+1}var nl={};function tt(){return nl}function ze(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=W(i),p=m.getUTCDay(),y=(p<u?7:0)+p-u;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function Cr(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=W(i),u=c.getUTCFullYear(),m=tt(),p=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:m.firstWeekContainsDate)!==null&&r!==void 0?r:(l=m.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(u+1,0,p),y.setUTCHours(0,0,0,0);var M=ze(y,e),D=new Date(0);D.setUTCFullYear(u,0,p),D.setUTCHours(0,0,0,0);var C=ze(D,e);return c.getTime()>=M.getTime()?u+1:c.getTime()>=C.getTime()?u:u-1}function sl(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=Cr(i,e),p=new Date(0);p.setUTCFullYear(m,0,u),p.setUTCHours(0,0,0,0);var y=ze(p,e);return y}var ll=6048e5;function Oo(i,e){$(1,arguments);var t=W(i),r=ze(t,e).getTime()-sl(t,e).getTime();return Math.round(r/ll)+1}function N(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var dl={y:function(e,t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return N(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):N(r+1,2)},d:function(e,t){return N(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return N(e.getUTCHours()%12||12,t.length)},H:function(e,t){return N(e.getUTCHours(),t.length)},m:function(e,t){return N(e.getUTCMinutes(),t.length)},s:function(e,t){return N(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,r-3));return N(o,t.length)}};const Ce=dl;var He={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hl={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),o=a>0?a:1-a;return r.ordinalNumber(o,{unit:"year"})}return Ce.y(e,t)},Y:function(e,t,r,a){var o=Cr(e,a),n=o>0?o:1-o;if(t==="YY"){var s=n%100;return N(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):N(n,t.length)},R:function(e,t){var r=Ao(e);return N(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return N(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return N(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return N(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return Ce.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return N(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var o=Oo(e,a);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):N(o,t.length)},I:function(e,t,r){var a=Do(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):N(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ce.d(e,t)},D:function(e,t,r){var a=rl(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):N(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return N(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return N(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),o=a===0?7:a;switch(t){case"i":return String(o);case"ii":return N(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),o=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),o;switch(a===12?o=He.noon:a===0?o=He.midnight:o=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),o;switch(a>=17?o=He.evening:a>=12?o=He.afternoon:a>=4?o=He.morning:o=He.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Ce.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ce.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ce.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ce.s(e,t)},S:function(e,t){return Ce.S(e,t)},X:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return ba(n);case"XXXX":case"XX":return Oe(n);case"XXXXX":case"XXX":default:return Oe(n,":")}},x:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"x":return ba(n);case"xxxx":case"xx":return Oe(n);case"xxxxx":case"xxx":default:return Oe(n,":")}},O:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ga(n,":");case"OOOO":default:return"GMT"+Oe(n,":")}},z:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ga(n,":");case"zzzz":default:return"GMT"+Oe(n,":")}},t:function(e,t,r,a){var o=a._originalDate||e,n=Math.floor(o.getTime()/1e3);return N(n,t.length)},T:function(e,t,r,a){var o=a._originalDate||e,n=o.getTime();return N(n,t.length)}};function ga(i,e){var t=i>0?"-":"+",r=Math.abs(i),a=Math.floor(r/60),o=r%60;if(o===0)return t+String(a);var n=e;return t+String(a)+n+N(o,2)}function ba(i,e){if(i%60===0){var t=i>0?"-":"+";return t+N(Math.abs(i)/60,2)}return Oe(i,e)}function Oe(i,e){var t=e||"",r=i>0?"-":"+",a=Math.abs(i),o=N(Math.floor(a/60),2),n=N(a%60,2);return r+o+t+n}const cl=hl;var ya=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Vo=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ul=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return ya(e,t);var n;switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",ya(a,t)).replace("{{time}}",Vo(o,t))},pl={p:Vo,P:ul};const Xi=pl;function Mo(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var ml=["D","DD"],fl=["YY","YYYY"];function No(i){return ml.indexOf(i)!==-1}function zo(i){return fl.indexOf(i)!==-1}function ti(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var vl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_l=function(e,t,r){var a,o=vl[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const gl=_l;function Vi(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var bl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xl={date:Vi({formats:bl,defaultWidth:"full"}),time:Vi({formats:yl,defaultWidth:"full"}),dateTime:Vi({formats:wl,defaultWidth:"full"})};const Cl=xl;var kl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},El=function(e,t,r,a){return kl[e]};const Sl=El;function dt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&i.formattingValues){var o=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):o;a=i.formattingValues[n]||i.formattingValues[o]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;a=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return a[d]}}var Il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Al={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Dl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ol={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Vl=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ml={ordinalNumber:Vl,era:dt({values:Il,defaultWidth:"wide"}),quarter:dt({values:Tl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dt({values:Pl,defaultWidth:"wide"}),day:dt({values:Al,defaultWidth:"wide"}),dayPeriod:dt({values:Dl,defaultWidth:"wide",formattingValues:Ol,defaultFormattingWidth:"wide"})};const Nl=Ml;function ht(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],o=e.match(a);if(!o)return null;var n=o[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?Ll(s,function(u){return u.test(n)}):zl(s,function(u){return u.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function zl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Ll(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Rl(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var a=r[0],o=e.match(i.parsePattern);if(!o)return null;var n=i.valueCallback?i.valueCallback(o[0]):o[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(a.length);return{value:n,rest:s}}}var Fl=/^(\d+)(th|st|nd|rd)?/i,$l=/\d+/i,Bl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Hl={any:[/^b/i,/^(a|c)/i]},Ul={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ql={any:[/1/i,/2/i,/3/i,/4/i]},jl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Wl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Yl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Gl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Kl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ql={ordinalNumber:Rl({matchPattern:Fl,parsePattern:$l,valueCallback:function(e){return parseInt(e,10)}}),era:ht({matchPatterns:Bl,defaultMatchWidth:"wide",parsePatterns:Hl,defaultParseWidth:"any"}),quarter:ht({matchPatterns:Ul,defaultMatchWidth:"wide",parsePatterns:ql,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ht({matchPatterns:jl,defaultMatchWidth:"wide",parsePatterns:Wl,defaultParseWidth:"any"}),day:ht({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:Gl,defaultParseWidth:"any"}),dayPeriod:ht({matchPatterns:Kl,defaultMatchWidth:"any",parsePatterns:Xl,defaultParseWidth:"any"})};const Jl=Ql;var Zl={code:"en-US",formatDistance:gl,formatLong:Cl,formatRelative:Sl,localize:Nl,match:Jl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Lo=Zl;var ed=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,td=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,id=/^'([^]*?)'?$/,rd=/''/g,ad=/[a-zA-Z]/;function Mi(i,e,t){var r,a,o,n,s,l,d,c,u,m,p,y,M,D;$(2,arguments);var C=String(e),T=tt(),H=(r=(a=void 0)!==null&&a!==void 0?a:T.locale)!==null&&r!==void 0?r:Lo,R=ie((o=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&n!==void 0?n:(d=T.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=ie((u=(m=(p=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&p!==void 0?p:T.weekStartsOn)!==null&&m!==void 0?m:(M=T.locale)===null||M===void 0||(D=M.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&u!==void 0?u:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var ce=W(i);if(!To(ce))throw new RangeError("Invalid time value");var ot=Mo(ce),nt=Po(ce,ot),st={firstWeekContainsDate:R,weekStartsOn:Y,locale:H,_originalDate:ce},Ai=C.match(td).map(function(X){var re=X[0];if(re==="p"||re==="P"){var Ae=Xi[re];return Ae(X,H.formatLong)}return X}).join("").match(ed).map(function(X){if(X==="''")return"'";var re=X[0];if(re==="'")return od(X);var Ae=cl[re];if(Ae)return zo(X)&&ti(X,e,String(i)),No(X)&&ti(X,e,String(i)),Ae(nt,X,H.localize,st);if(re.match(ad))throw new RangeError("Format string contains an unescaped latin alphabet character `"+re+"`");return X}).join("");return Ai}function od(i){var e=i.match(id);return e?e[1].replace(rd,"'"):i}function wa(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function nd(i,e){if(i){if(typeof i=="string")return wa(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?wa(i,e):void 0}}function xa(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=nd(i))||e){t&&(i=t);var r=0,a=function(){};return{s:a,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index-7469517b-CqcJx12g.cjs"),w=require("./pam-change-password-233d1ebe-3KwOl0bG.cjs"),Ys="en",Ee={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",fixedLengthError:"The length should be {length} characters",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:",AlphanumericalOnly:"Only alphanumerical characters are allowed",InvalidFirstName:"Only alphabetic characters are allowed.",InvalidLastName:"Only alphabetic characters are allowed.",MissingTrunkCode:"Phone number must start with 0"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",fixedLengthError:"A hossznak {length} karakternek kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:",AlphanumericalOnly:"Csak alfanumerikus karakterek engedélyezettek",InvalidFirstName:"Csak betűk engedélyezettek.",InvalidLastName:"Csak betűk engedélyezettek.",MissingTrunkCode:"A telefonszámnak 0-val kell kezdődnie"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",fixedLengthError:"Duljina mora biti {length} znakova",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:",AlphanumericalOnly:"Dopušteni su samo alfanumerički znakovi",InvalidFirstName:"Dozvoljena su samo slova.",InvalidLastName:"Dozvoljena su samo slova.",MissingTrunkCode:"Telefonski broj mora počinjati s 0"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",fixedLengthError:"Uzunluk {length} karakter olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:",AlphanumericalOnly:"Yalnızca alfanümerik karakterlere izin verilir",InvalidFirstName:"Yalnızca alfabetik karakterlere izin verilir.",InvalidLastName:"Yalnızca alfabetik karakterlere izin verilir.",MissingTrunkCode:"Telefon numarası 0 ile başlamalıdır"},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar com 0"},pt:{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro do intervalo aceite",dateFormatError:"A data selecionada tem um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório.",invalidOriginalPasswordError:"O campo da palavra-passe inicial não cumpre todos os critérios.",invalidPassword:"A palavra-passe não cumpre todos os critérios",passwordStrength:"Força da palavra-passe",passwordStrengthWeak:"não é adequada",passwordStrengthStrong:"é adequada",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido.",EmailNotMatching:"Os emails não coincidem!",PasswordNotMatching:"As palavras-passe não coincidem",MustIncludeNumber:"A palavra-passe deve incluir um número",MustContainCapital:"A palavra-passe deve incluir uma letra maiúscula",MustIncludePunctation:"A palavra-passe deve incluir pontuação",MustIncludeLowercase:"A palavra-passe deve incluir um caractere minúsculo",OnlyNumbers:"O campo deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviámos o código de verificação para <p> {destination}. </p> </p> <p> Por favor, introduza o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",enterIEAddressManually:"Para IRE, introduza o endereço manualmente",postalLookUpNoAddressFound:"Não foram encontrados endereços para este código postal",searchingForAddresses:"A procurar endereços...",SAIdLengthError:"O ID da África do Sul deve ter 13 dígitos",SAIdInvalidError:"ID da África do Sul inválido",PassportLengthError:"O número de passaporte deve ter 8 ou 9 dígitos.",PasswordMustContain:"A palavra-passe deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar por 0"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",fixedLengthError:"La longitud debe ser de {length} caracteres",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:",AlphanumericalOnly:"Solo se permiten caracteres alfanuméricos",InvalidFirstName:"Solo se permiten caracteres alfabéticos.",InvalidLastName:"Solo se permiten caracteres alfabéticos.",MissingTrunkCode:"El número de teléfono debe comenzar con 0"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",fixedLengthError:"La longueur doit être de {length} caractères",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :",AlphanumericalOnly:"Seuls les caractères alphanumériques sont autorisés",InvalidFirstName:"Seuls les caractères alphabétiques sont autorisés.",InvalidLastName:"Seuls les caractères alphabétiques sont autorisés.",MissingTrunkCode:"Le numéro de téléphone doit commencer par 0"}},J={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},de={PASSPORT_INVALID:"PassportLengthError",SA_ID_LENGTH:"SAIdLengthError",SA_ID_INVALID:"SAIdInvalidError",REQUIRED:"requiredError",LENGTH:"lengthError",FIXED_LENGTH:"fixedLengthError"},_a={PASSED:"✓",FAILED:"✕"},b=(i,e,t)=>{const r=e;let a=Ee[r]?Ee[r][i]:Ee[Ys][i];if(t!==void 0)for(const[o,n]of Object.entries(t.values)){const s=new RegExp(`{${o}}`,"g");a=a.replace(s,n)}return a},Gs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{Ee[r]=Ee[r]||{};for(let a in t[r])typeof t[r][a]=="string"&&(Ee[r]=Ee[r]||{},Ee[r][a]=t[r][a])}),e(!0)})}),Ks=i=>{if(!J.SA_ID_BASIC_REGEX.test(i))return!1;const e=i.split("").map(l=>parseInt(l,10));let t=0;for(let l=0;l<12;l+=2)t+=e[l];let r="";for(let l=1;l<12;l+=2)r+=e[l];const o=(parseInt(r,10)*2).toString().split("").reduce((l,d)=>l+parseInt(d,10),0);return(10-(t+o)%10)%10===e[12]},he="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Xs='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}',Qs=Xs,So=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value=null,this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((i,e)=>(i[e.name]=this.selectedValues.includes(e.name),i),{}),this.emitValueHandler(!0)}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(i=>i.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return h.h("div",{key:"342900ae923094f2746fd43917743d01efba942e",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"8f3b470274047b355741b438a4e15c7c46504f5a",class:"checkboxgroup__wrapper--flex"},h.h("vaadin-checkbox",{key:"c7a74f9da877304f4d71607d58eba90dd0a29de7",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:i=>this.handleParentCheckbox(i)},this.renderLabel()),this.tooltip&&h.h("img",{key:"75d807ad544e043a2e3beed46bf0c7dfa2125324",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("small",{key:"4b17e1e613c7561fb3c99f334926544ef2ba787a",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&h.h("vaadin-checkbox-group",{key:"9a8d573a7cb48bb2d68cceec5f39f1e0886ea05f",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>h.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};So.style=Qs;const Js='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}',Zs=Js,Io=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(i){this.value=i.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderLabel(){var i;return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:{"checkbox__label-text":!0,mandatory:(i=this.validation)===null||i===void 0?void 0:i.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"a8d8bf6aa2001b6aee44d728a198244819ae169e",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("vaadin-checkbox",{key:"13a5589a78bef4277922535e59c5718d36b1f318",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&h.h("img",{key:"008bb9a318c914b4b40e80b15080f7f174cc1262",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Io.style=Zs;function we(i){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(i)}function $(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function el(i){return $(1,arguments),i instanceof Date||we(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function W(i){$(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||we(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function To(i){if($(1,arguments),!el(i)&&typeof i!="number")return!1;var e=W(i);return!isNaN(Number(e))}function ie(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function tl(i,e){$(2,arguments);var t=W(i).getTime(),r=ie(e);return new Date(t+r)}function Po(i,e){$(2,arguments);var t=ie(e);return tl(i,-t)}var il=864e5;function rl(i){$(1,arguments);var e=W(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/il)+1}function Xe(i){$(1,arguments);var e=1,t=W(i),r=t.getUTCDay(),a=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function Ao(i){$(1,arguments);var e=W(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var a=Xe(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=Xe(o);return e.getTime()>=a.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function al(i){$(1,arguments);var e=Ao(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Xe(t);return r}var ol=6048e5;function Do(i){$(1,arguments);var e=W(i),t=Xe(e).getTime()-al(e).getTime();return Math.round(t/ol)+1}var nl={};function tt(){return nl}function ze(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=W(i),p=m.getUTCDay(),y=(p<u?7:0)+p-u;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function Cr(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=W(i),u=c.getUTCFullYear(),m=tt(),p=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:m.firstWeekContainsDate)!==null&&r!==void 0?r:(l=m.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(u+1,0,p),y.setUTCHours(0,0,0,0);var M=ze(y,e),D=new Date(0);D.setUTCFullYear(u,0,p),D.setUTCHours(0,0,0,0);var C=ze(D,e);return c.getTime()>=M.getTime()?u+1:c.getTime()>=C.getTime()?u:u-1}function sl(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=Cr(i,e),p=new Date(0);p.setUTCFullYear(m,0,u),p.setUTCHours(0,0,0,0);var y=ze(p,e);return y}var ll=6048e5;function Oo(i,e){$(1,arguments);var t=W(i),r=ze(t,e).getTime()-sl(t,e).getTime();return Math.round(r/ll)+1}function N(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var dl={y:function(e,t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return N(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):N(r+1,2)},d:function(e,t){return N(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return N(e.getUTCHours()%12||12,t.length)},H:function(e,t){return N(e.getUTCHours(),t.length)},m:function(e,t){return N(e.getUTCMinutes(),t.length)},s:function(e,t){return N(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,r-3));return N(o,t.length)}};const Ce=dl;var He={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hl={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),o=a>0?a:1-a;return r.ordinalNumber(o,{unit:"year"})}return Ce.y(e,t)},Y:function(e,t,r,a){var o=Cr(e,a),n=o>0?o:1-o;if(t==="YY"){var s=n%100;return N(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):N(n,t.length)},R:function(e,t){var r=Ao(e);return N(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return N(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return N(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return N(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return Ce.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return N(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var o=Oo(e,a);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):N(o,t.length)},I:function(e,t,r){var a=Do(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):N(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ce.d(e,t)},D:function(e,t,r){var a=rl(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):N(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return N(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return N(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),o=a===0?7:a;switch(t){case"i":return String(o);case"ii":return N(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),o=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),o;switch(a===12?o=He.noon:a===0?o=He.midnight:o=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),o;switch(a>=17?o=He.evening:a>=12?o=He.afternoon:a>=4?o=He.morning:o=He.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Ce.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ce.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ce.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ce.s(e,t)},S:function(e,t){return Ce.S(e,t)},X:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return ba(n);case"XXXX":case"XX":return Oe(n);case"XXXXX":case"XXX":default:return Oe(n,":")}},x:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"x":return ba(n);case"xxxx":case"xx":return Oe(n);case"xxxxx":case"xxx":default:return Oe(n,":")}},O:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ga(n,":");case"OOOO":default:return"GMT"+Oe(n,":")}},z:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ga(n,":");case"zzzz":default:return"GMT"+Oe(n,":")}},t:function(e,t,r,a){var o=a._originalDate||e,n=Math.floor(o.getTime()/1e3);return N(n,t.length)},T:function(e,t,r,a){var o=a._originalDate||e,n=o.getTime();return N(n,t.length)}};function ga(i,e){var t=i>0?"-":"+",r=Math.abs(i),a=Math.floor(r/60),o=r%60;if(o===0)return t+String(a);var n=e;return t+String(a)+n+N(o,2)}function ba(i,e){if(i%60===0){var t=i>0?"-":"+";return t+N(Math.abs(i)/60,2)}return Oe(i,e)}function Oe(i,e){var t=e||"",r=i>0?"-":"+",a=Math.abs(i),o=N(Math.floor(a/60),2),n=N(a%60,2);return r+o+t+n}const cl=hl;var ya=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Vo=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ul=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return ya(e,t);var n;switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",ya(a,t)).replace("{{time}}",Vo(o,t))},pl={p:Vo,P:ul};const Xi=pl;function Mo(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var ml=["D","DD"],fl=["YY","YYYY"];function No(i){return ml.indexOf(i)!==-1}function zo(i){return fl.indexOf(i)!==-1}function ti(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var vl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_l=function(e,t,r){var a,o=vl[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const gl=_l;function Vi(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var bl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xl={date:Vi({formats:bl,defaultWidth:"full"}),time:Vi({formats:yl,defaultWidth:"full"}),dateTime:Vi({formats:wl,defaultWidth:"full"})};const Cl=xl;var kl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},El=function(e,t,r,a){return kl[e]};const Sl=El;function dt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&i.formattingValues){var o=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):o;a=i.formattingValues[n]||i.formattingValues[o]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;a=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return a[d]}}var Il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Al={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Dl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ol={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Vl=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ml={ordinalNumber:Vl,era:dt({values:Il,defaultWidth:"wide"}),quarter:dt({values:Tl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dt({values:Pl,defaultWidth:"wide"}),day:dt({values:Al,defaultWidth:"wide"}),dayPeriod:dt({values:Dl,defaultWidth:"wide",formattingValues:Ol,defaultFormattingWidth:"wide"})};const Nl=Ml;function ht(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],o=e.match(a);if(!o)return null;var n=o[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?Ll(s,function(u){return u.test(n)}):zl(s,function(u){return u.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function zl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Ll(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Rl(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var a=r[0],o=e.match(i.parsePattern);if(!o)return null;var n=i.valueCallback?i.valueCallback(o[0]):o[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(a.length);return{value:n,rest:s}}}var Fl=/^(\d+)(th|st|nd|rd)?/i,$l=/\d+/i,Bl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Hl={any:[/^b/i,/^(a|c)/i]},Ul={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ql={any:[/1/i,/2/i,/3/i,/4/i]},jl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Wl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Yl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Gl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Kl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ql={ordinalNumber:Rl({matchPattern:Fl,parsePattern:$l,valueCallback:function(e){return parseInt(e,10)}}),era:ht({matchPatterns:Bl,defaultMatchWidth:"wide",parsePatterns:Hl,defaultParseWidth:"any"}),quarter:ht({matchPatterns:Ul,defaultMatchWidth:"wide",parsePatterns:ql,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ht({matchPatterns:jl,defaultMatchWidth:"wide",parsePatterns:Wl,defaultParseWidth:"any"}),day:ht({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:Gl,defaultParseWidth:"any"}),dayPeriod:ht({matchPatterns:Kl,defaultMatchWidth:"any",parsePatterns:Xl,defaultParseWidth:"any"})};const Jl=Ql;var Zl={code:"en-US",formatDistance:gl,formatLong:Cl,formatRelative:Sl,localize:Nl,match:Jl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Lo=Zl;var ed=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,td=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,id=/^'([^]*?)'?$/,rd=/''/g,ad=/[a-zA-Z]/;function Mi(i,e,t){var r,a,o,n,s,l,d,c,u,m,p,y,M,D;$(2,arguments);var C=String(e),T=tt(),H=(r=(a=void 0)!==null&&a!==void 0?a:T.locale)!==null&&r!==void 0?r:Lo,R=ie((o=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&n!==void 0?n:(d=T.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=ie((u=(m=(p=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&p!==void 0?p:T.weekStartsOn)!==null&&m!==void 0?m:(M=T.locale)===null||M===void 0||(D=M.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&u!==void 0?u:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var ce=W(i);if(!To(ce))throw new RangeError("Invalid time value");var ot=Mo(ce),nt=Po(ce,ot),st={firstWeekContainsDate:R,weekStartsOn:Y,locale:H,_originalDate:ce},Ai=C.match(td).map(function(X){var re=X[0];if(re==="p"||re==="P"){var Ae=Xi[re];return Ae(X,H.formatLong)}return X}).join("").match(ed).map(function(X){if(X==="''")return"'";var re=X[0];if(re==="'")return od(X);var Ae=cl[re];if(Ae)return zo(X)&&ti(X,e,String(i)),No(X)&&ti(X,e,String(i)),Ae(nt,X,H.localize,st);if(re.match(ad))throw new RangeError("Format string contains an unescaped latin alphabet character `"+re+"`");return X}).join("");return Ai}function od(i){var e=i.match(id);return e?e[1].replace(rd,"'"):i}function wa(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function nd(i,e){if(i){if(typeof i=="string")return wa(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?wa(i,e):void 0}}function xa(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=nd(i))||e){t&&(i=t);var r=0,a=function(){};return{s:a,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,n=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,o=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw o}}}}function sd(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function _(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Qi(i,e){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Qi(i,e)}function P(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&Qi(i,e)}function ii(i){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ii(i)}function Ro(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ro=function(){return!!i})()}function ld(i,e){if(e&&(we(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(i)}function A(i){var e=Ro();return function(){var t,r=ii(i);if(e){var a=ii(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return ld(this,t)}}function k(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function dd(i,e){if(we(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(we(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Fo(i){var e=dd(i,"string");return we(e)=="symbol"?e:e+""}function hd(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Fo(r.key),r)}}function E(i,e,t){return e&&hd(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,e,t){return(e=Fo(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var cd=10,$o=function(){function i(){k(this,i),v(this,"priority",void 0),v(this,"subPriority",0)}return E(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),ud=function(i){P(t,i);var e=A(t);function t(r,a,o,n,s){var l;return k(this,t),l=e.call(this),l.value=r,l.validateValue=a,l.setValue=o,l.priority=n,s&&(l.subPriority=s),l}return E(t,[{key:"validate",value:function(a,o){return this.validateValue(a,this.value,o)}},{key:"set",value:function(a,o,n){return this.setValue(a,o,this.value,n)}}]),t}($o),pd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",cd),v(_(r),"subPriority",-1),r}return E(t,[{key:"set",value:function(a,o){if(o.timestampIsSet)return a;var n=new Date(0);return n.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),n.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),n}}]),t}($o),V=function(){function i(){k(this,i),v(this,"incompatibleTokens",void 0),v(this,"priority",void 0),v(this,"subPriority",void 0)}return E(i,[{key:"run",value:function(t,r,a,o){var n=this.parse(t,r,a,o);return n?{setter:new ud(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,a){return!0}}]),i}(),md=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",140),v(_(r),"incompatibleTokens",["R","u","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})||n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"})}}},{key:"set",value:function(a,o,n){return o.era=n,a.setUTCFullYear(n,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),fd=6e4,vd=36e5,_d=1e3,U={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},me={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function q(i,e){return i&&{value:e(i.value),rest:i.rest}}function F(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function fe(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(a*vd+o*fd+n*_d),rest:e.slice(t[0].length)}}function Bo(i){return F(U.anyDigitsSigned,i)}function B(i,e){switch(i){case 1:return F(U.singleDigit,e);case 2:return F(U.twoDigits,e);case 3:return F(U.threeDigits,e);case 4:return F(U.fourDigits,e);default:return F(new RegExp("^\\d{1,"+i+"}"),e)}}function ri(i,e){switch(i){case 1:return F(U.singleDigitSigned,e);case 2:return F(U.twoDigitsSigned,e);case 3:return F(U.threeDigitsSigned,e);case 4:return F(U.fourDigitsSigned,e);default:return F(new RegExp("^-?\\d{1,"+i+"}"),e)}}function kr(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ho(i,e){var t=e>0,r=t?e:1-e,a;if(r<=50)a=i||100;else{var o=r+50,n=Math.floor(o/100)*100,s=i>=o%100;a=i+n-(s?100:0)}return t?a:1-a}function Uo(i){return i%400===0||i%4===0&&i%100!==0}var gd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="yy"}};switch(o){case"y":return q(B(4,a),s);case"yo":return q(n.ordinalNumber(a,{unit:"year"}),s);default:return q(B(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,n){var s=a.getUTCFullYear();if(n.isTwoDigitYear){var l=Ho(n.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var d=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(d,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),bd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return q(B(4,a),s);case"Yo":return q(n.ordinalNumber(a,{unit:"year"}),s);default:return q(B(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,n,s){var l=Cr(a,s);if(n.isTwoDigitYear){var d=Ho(n.year,l);return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),ze(a,s)}var c=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),ze(a,s)}}]),t}(V),yd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o){return ri(o==="R"?4:o.length,a)}},{key:"set",value:function(a,o,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),Xe(s)}}]),t}(V),wd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o){return ri(o==="u"?4:o.length,a)}},{key:"set",value:function(a,o,n){return a.setUTCFullYear(n,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),xd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",120),v(_(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"Q":case"QQ":return B(o.length,a);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})||n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,n){return a.setUTCMonth((n-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Cd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",120),v(_(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"q":case"qq":return B(o.length,a);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})||n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,n){return a.setUTCMonth((n-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),kd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),v(_(r),"priority",110),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"M":return q(F(U.month,a),s);case"MM":return q(B(2,a),s);case"Mo":return q(n.ordinalNumber(a,{unit:"month"}),s);case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})||n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){return a.setUTCMonth(n,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Ed=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",110),v(_(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"L":return q(F(U.month,a),s);case"LL":return q(B(2,a),s);case"Lo":return q(n.ordinalNumber(a,{unit:"month"}),s);case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})||n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){return a.setUTCMonth(n,1),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Sd(i,e,t){$(2,arguments);var r=W(i),a=ie(e),o=Oo(r,t)-a;return r.setUTCDate(r.getUTCDate()-o*7),r}var Id=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",100),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"w":return F(U.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n,s){return ze(Sd(a,n,s),s)}}]),t}(V);function Td(i,e){$(2,arguments);var t=W(i),r=ie(e),a=Do(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var Pd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",100),v(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"I":return F(U.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n){return Xe(Td(a,n))}}]),t}(V),Ad=[31,28,31,30,31,30,31,31,30,31,30,31],Dd=[31,29,31,30,31,30,31,31,30,31,30,31],Od=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"subPriority",1),v(_(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"d":return F(U.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=Uo(n),l=a.getUTCMonth();return s?o>=1&&o<=Dd[l]:o>=1&&o<=Ad[l]}},{key:"set",value:function(a,o,n){return a.setUTCDate(n),a.setUTCHours(0,0,0,0),a}}]),t}(V),Vd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"subpriority",1),v(_(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"D":case"DD":return F(U.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=Uo(n);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(a,o,n){return a.setUTCMonth(0,n),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Er(i,e,t){var r,a,o,n,s,l,d,c;$(2,arguments);var u=tt(),m=ie((r=(a=(o=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&a!==void 0?a:(d=u.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=W(i),y=ie(e),M=p.getUTCDay(),D=y%7,C=(D+7)%7,T=(C<m?7:0)+y-M;return p.setUTCDate(p.getUTCDate()+T),p}var Md=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V),Nd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"e":case"ee":return q(B(o.length,a),l);case"eo":return q(n.ordinalNumber(a,{unit:"day"}),l);case"eee":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V),zd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"c":case"cc":return q(B(o.length,a),l);case"co":return q(n.ordinalNumber(a,{unit:"day"}),l);case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})||n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Ld(i,e){$(2,arguments);var t=ie(e);t%7===0&&(t=t-7);var r=1,a=W(i),o=a.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-o;return a.setUTCDate(a.getUTCDate()+l),a}var Rd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d===0?7:d};switch(o){case"i":case"ii":return B(o.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return q(n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiii":return q(n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return q(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return q(n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(a,o){return o>=1&&o<=7}},{key:"set",value:function(a,o,n){return a=Ld(a,n),a.setUTCHours(0,0,0,0),a}}]),t}(V),Fd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"a":case"aa":case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),$d=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"b":case"bb":case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),Bd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["a","b","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),Hd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["H","K","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"h":return F(U.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=12}},{key:"set",value:function(a,o,n){var s=a.getUTCHours()>=12;return s&&n<12?a.setUTCHours(n+12,0,0,0):!s&&n===12?a.setUTCHours(0,0,0,0):a.setUTCHours(n,0,0,0),a}}]),t}(V),Ud=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"H":return F(U.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=23}},{key:"set",value:function(a,o,n){return a.setUTCHours(n,0,0,0),a}}]),t}(V),qd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["h","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"K":return F(U.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){var s=a.getUTCHours()>=12;return s&&n<12?a.setUTCHours(n+12,0,0,0):a.setUTCHours(n,0,0,0),a}}]),t}(V),jd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"k":return F(U.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=24}},{key:"set",value:function(a,o,n){var s=n<=24?n%24:n;return a.setUTCHours(s,0,0,0),a}}]),t}(V),Wd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",60),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"m":return F(U.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,n){return a.setUTCMinutes(n,0,0),a}}]),t}(V),Yd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",50),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"s":return F(U.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,n){return a.setUTCSeconds(n,0),a}}]),t}(V),Gd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",30),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o){var n=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return q(B(o.length,a),n)}},{key:"set",value:function(a,o,n){return a.setUTCMilliseconds(n),a}}]),t}(V),Kd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",10),v(_(r),"incompatibleTokens",["t","T","x"]),r}return E(t,[{key:"parse",value:function(a,o){switch(o){case"X":return fe(me.basicOptionalMinutes,a);case"XX":return fe(me.basic,a);case"XXXX":return fe(me.basicOptionalSeconds,a);case"XXXXX":return fe(me.extendedOptionalSeconds,a);case"XXX":default:return fe(me.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(V),Xd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",10),v(_(r),"incompatibleTokens",["t","T","X"]),r}return E(t,[{key:"parse",value:function(a,o){switch(o){case"x":return fe(me.basicOptionalMinutes,a);case"xx":return fe(me.basic,a);case"xxxx":return fe(me.basicOptionalSeconds,a);case"xxxxx":return fe(me.extendedOptionalSeconds,a);case"xxx":default:return fe(me.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(V),Qd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",40),v(_(r),"incompatibleTokens","*"),r}return E(t,[{key:"parse",value:function(a){return Bo(a)}},{key:"set",value:function(a,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(V),Jd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",20),v(_(r),"incompatibleTokens","*"),r}return E(t,[{key:"parse",value:function(a){return Bo(a)}},{key:"set",value:function(a,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(V),Zd={G:new md,y:new gd,Y:new bd,R:new yd,u:new wd,Q:new xd,q:new Cd,M:new kd,L:new Ed,w:new Id,I:new Pd,d:new Od,D:new Vd,E:new Md,e:new Nd,c:new zd,i:new Rd,a:new Fd,b:new $d,B:new Bd,h:new Hd,H:new Ud,K:new qd,k:new jd,m:new Wd,s:new Yd,S:new Gd,X:new Kd,x:new Xd,t:new Qd,T:new Jd},eh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,th=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ih=/^'([^]*?)'?$/,rh=/''/g,ah=/\S/,oh=/[a-zA-Z]/;function ke(i,e,t,r){var a,o,n,s,l,d,c,u,m,p,y,M,D,C;$(3,arguments);var T=String(i),H=String(e),R=tt(),Y=(a=(o=void 0)!==null&&o!==void 0?o:R.locale)!==null&&a!==void 0?a:Lo;if(!Y.match)throw new RangeError("locale must contain match property");var ce=ie((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:R.firstWeekContainsDate)!==null&&s!==void 0?s:(c=R.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ce>=1&&ce<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ot=ie((m=(p=(y=(M=void 0)!==null&&M!==void 0?M:void 0)!==null&&y!==void 0?y:R.weekStartsOn)!==null&&p!==void 0?p:(D=R.locale)===null||D===void 0||(C=D.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:0);if(!(ot>=0&&ot<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(H==="")return T===""?W(t):new Date(NaN);var nt={firstWeekContainsDate:ce,weekStartsOn:ot,locale:Y},st=[new pd],Ai=H.match(th).map(function(G){var L=G[0];if(L in Xi){var le=Xi[L];return le(G,Y.formatLong)}return G}).join("").match(eh),X=[],re=xa(Ai),Ae;try{var js=function(){var L=Ae.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&zo(L)&&ti(L,H,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&No(L)&&ti(L,H,i);var le=L[0],Ut=Zd[le];if(Ut){var ma=Ut.incompatibleTokens;if(Array.isArray(ma)){var fa=X.find(function(va){return ma.includes(va.token)||va.token===le});if(fa)throw new RangeError("The format string mustn't contain `".concat(fa.fullToken,"` and `").concat(L,"` at the same time"))}else if(Ut.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));X.push({token:le,fullToken:L});var Oi=Ut.run(T,L,Y.match,nt);if(!Oi)return{v:new Date(NaN)};st.push(Oi.setter),T=Oi.rest}else{if(le.match(oh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+le+"`");if(L==="''"?L="'":le==="'"&&(L=nh(L)),T.indexOf(L)===0)T=T.slice(L.length);else return{v:new Date(NaN)}}};for(re.s();!(Ae=re.n()).done;){var ha=js();if(we(ha)==="object")return ha.v}}catch(G){re.e(G)}finally{re.f()}if(T.length>0&&ah.test(T))return new Date(NaN);var Ws=st.map(function(G){return G.priority}).sort(function(G,L){return L-G}).filter(function(G,L,le){return le.indexOf(G)===L}).map(function(G){return st.filter(function(L){return L.priority===G}).sort(function(L,le){return le.subPriority-L.subPriority})}).map(function(G){return G[0]}),Di=W(t);if(isNaN(Di.getTime()))return new Date(NaN);var lt=Po(Di,Mo(Di)),ca={},Bt=xa(Ws),ua;try{for(Bt.s();!(ua=Bt.n()).done;){var pa=ua.value;if(!pa.validate(lt,nt))return new Date(NaN);var Ht=pa.set(lt,ca,nt);Array.isArray(Ht)?(lt=Ht[0],sd(ca,Ht[1])):lt=Ht}}catch(G){Bt.e(G)}finally{Bt.f()}return lt}function nh(i){return i.match(ih)[1].replace(rh,"'")}function Ca(i,e){$(2,arguments);var t=W(i),r=W(e);return t.getTime()>r.getTime()}function ka(i,e){$(2,arguments);var t=W(i),r=W(e);return t.getTime()<r.getTime()}function Ea(i,e,t){return $(2,arguments),To(ke(i,e,new Date,t))}const sh='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__manual-mode::part(toggle-button){display:none}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}',lh=sh,qo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:a}=e,o=new Date(t,r,a);return Mi(o,this.dateFormat)},this.parseDate=e=>{const t=ke(e,this.dateFormat,new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.handleDocumentIdUpdate=e=>{if(this.name!==J.BIRTHDATE)return;const t=e.detail;this.value=t,this.valueAsDate=ke(this.value||"",J.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value})},this.handleMaskedTyping=e=>{var t;const r=e.target;if(!r)return;const a=(t=r.selectionStart)!==null&&t!==void 0?t:r.value.length,o=r.value,[n,s,l]=this.getFormatStructure(this.dateFormat),{seps:d}=this.parseFormat(this.dateFormat),[c,u]=d,m=n+s+l,p=o.replace(/\D/g,"").slice(0,m),y=p.slice(0,n),M=p.slice(n,n+s),D=p.slice(n+s,n+s+l);let C=y;p.length>n&&(C+=c+M),p.length>n+s&&(C+=u+D),r.value=C;const T=this.totalSeparatorLength(o,[c,u]),H=this.totalSeparatorLength(C,[c,u]);let R=a+Math.max(0,H-T);R=Math.max(0,Math.min(R,C.length));try{r.setSelectionRange(R,R)}catch(Y){}if(p.length<m){this.errorMessage="",this.resetIncompleteState();return}try{const Y=ke(C,this.dateFormat,new Date);if(Y&&!isNaN(Y.getTime())){const ce=Mi(Y,"yyyy-MM-dd");this.value=ce,this.valueAsDate=Y,this.isValid=!0,this.errorMessage="",this.datePicker&&(this.datePicker.value=ce),this.valueHandler({name:this.name,value:this.value})}else this.resetIncompleteState()}catch(Y){this.resetIncompleteState()}},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=ke(this.value,"yyyy-MM-dd",new Date);return Mi(i,this.dateFormat)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}handleCustomRegistrationChange(i){i?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=ke(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=ke(((e=this.validation.max)===null||e===void 0?void 0:e.toString())||"","yyyy-MM-dd",new Date)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){var i;if(this.handleClientStyling(),this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const e=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');if(e&&e.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",t=>{t.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)}),this.enableManualDateInput){const t=(i=this.datePicker)===null||i===void 0?void 0:i.inputElement;t&&t.addEventListener("input",this.handleMaskedTyping)}}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){var i;if(this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.enableManualDateInput){const e=(i=this.datePicker)===null||i===void 0?void 0:i.inputElement;e&&e.removeEventListener("input",this.handleMaskedTyping)}}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(i){this.value=i.target.value,this.touched=!0,this.valueAsDate=ke(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}handleValidated(){this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()}setValidity(){return ka(this.valueAsDate,this.minDate)||Ca(this.valueAsDate,this.maxDate)||!Ea(this.formattedValue,this.dateFormat)?!1:this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return b("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(ka(this.valueAsDate,this.minDate)||Ca(this.valueAsDate,this.maxDate))return b("dateError2",this.language);if(!Ea(this.formattedValue,this.dateFormat))return b("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}parseFormat(i){var e;const t=i!=null?i:"dd-MM-yyyy",r=/([dMy]+)|([^dMy]+)/g,a=[],o=[];let n;for(;n=r.exec(t);)n[1]?a.push(n[1]):n[2]&&o.push(n[2]);if(o.length<2){const s=(e=o[0])!==null&&e!==void 0?e:"-";for(;o.length<2;)o.push(s)}return{tokens:a,seps:[o[0],o[1]]}}getFormatStructure(i){const{tokens:e}=this.parseFormat(i);if(e.length<3)return[2,2,4];const t=e.map(r=>r.length);return[t[0],t[1],t[2]]}totalSeparatorLength(i,e){if(!i)return 0;let t=0;for(const r of e){if(!r)continue;const a=new RegExp(this.escapeRegExp(r),"g"),o=i.match(a);o&&(t+=o.length*r.length)}return t}escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}resetIncompleteState(){this.value="",this.valueAsDate=void 0,this.isValid=!1}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"ffff8be16fb22a41ea8c5168a79e40b9f410c63b",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("label",{key:"60da1ad0bc4cc7757e6f1096866667a97bd146b5",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"450b4638efa34f4490035b0d99b0b186f053a2d0",class:this.validation.mandatory?"date__label--required":""})),h.h("vaadin-date-picker",{key:"421875a710bb4508e3218d28bf2c28dcd0e9793b",id:`${this.name}__input`,type:"date",class:`date__input ${i} ${this.enableManualDateInput&&"date__manual-mode"}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:e=>this.handleInput(e),onValidated:()=>this.handleValidated(),autoOpenDisabled:this.enableManualDateInput}),h.h("small",{key:"33a6fed8057a84cb648f94a318c3ec0b1e495fff",class:"date__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"d91fcd13e1ae384b67b6d478834b65136ab77b77",class:"date__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};qo.style=lh;const dh='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}',hh=dh,jo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const a=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorKey,o=(e=this.validation.custom.find(n=>n.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(t=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,o=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}}renderTooltip(){return this.showTooltip?h.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f852525fe8d8b695e638fdd83e8b0c2c20d98771",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"d6a6dec4e76ba1fbe15bed09f82cecde12cabe1a",class:"email__wrapper--flex"},h.h("label",{key:"4498ae1bac287cb80544c4d743afad2ec678e3bd",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"e54d1258e48f54304a553cffb83466e4a4fadb4c",class:"email__wrapper--relative"},this.tooltip&&h.h("img",{key:"29d7b95f22c8cb70d505f74a7ea18284faa908ee",class:"email__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"08754b178e395f26c1d8a61ff667b91df3fb0ec7",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"3024a57f5d0897f34013eb4397d78babc2333192",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};jo.style=hh;var ch=Object.defineProperty,uh=Object.defineProperties,ph=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,Ji=(i,e,t)=>e in i?ch(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ai=(i,e)=>{for(var t in e||(e={}))mh.call(e,t)&&Ji(i,t,e[t]);if(Sa)for(var t of Sa(e))fh.call(e,t)&&Ji(i,t,e[t]);return i},Wo=(i,e)=>uh(i,ph(e)),Z=(i,e,t)=>(Ji(i,typeof e!="symbol"?e+"":e,t),t),oi=(i,e,t)=>new Promise((r,a)=>{var o=l=>{try{s(t.next(l))}catch(d){a(d)}},n=l=>{try{s(t.throw(l))}catch(d){a(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,n);s((t=t.apply(i,e)).next())});/**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -6901,7 +6901,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6901
6901
 
6902
6902
  .customreg-password__complexity::after {
6903
6903
  display: none;
6904
- }`,$f=Ff,zs=class{constructor(i){h.registerInstance(this,i),this.sendOriginalValidityState=h.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}originalValidityChangedHandler(i){this.isDuplicateInput&&(i.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",i=>{this.handleRevealField(i)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(i){if(this.noValidation){this.passwordComplexity=[];return}this.passwordComplexity=this.validation.custom.filter(e=>e.rule==="regex").map(e=>{const t=new RegExp(e.pattern);let r=!1;return i&&(r=t.test(i)),{rule:e.displayName,ruleKey:e.errorKey,passed:r}})}setValidity(){var i,e;return this.noValidation?!0:this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((i=this.passwordComplexity)===null||i===void 0)&&i.every(t=>t.passed)?(e=this.inputReference)===null||e===void 0?void 0:e.validity.valid:!1}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r,a;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return b("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}if(!(!((a=this.passwordComplexity)===null||a===void 0)&&a.every(o=>o.passed))&&!this.showPopup)return b("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}renderComplexityPopup(){const i=this.passwordComplexity.length,t=this.passwordComplexity.filter(a=>a.passed).length/i,r=this.passwordComplexity.every(a=>a.passed);return h.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},h.h("div",{class:"password__complexity--strength"},h.h("p",{class:"password__complexity--text"},b("passwordStrength",this.language)," ",h.h("span",{class:"password__complexity--text-bold"},b(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),h.h("meter",{value:t,min:"0",max:"1"})),h.h("div",null,this.passwordComplexity.map((a,o)=>h.h("div",{key:o},h.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:a.passed,disabled:!0}),h.h("span",null,b(`${a.ruleKey}`,this.language)?b(`${a.ruleKey}`,this.language):a.rule)))))}renderCustomComplexityPopup(){return h.h("div",{class:`customreg-password__complexity ${this.showPopup?"":"customreg-password__complexity--hidden"}`},h.h("p",{class:"customreg-password__complexity--title"},b("PasswordMustContain",this.language)),h.h("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map((i,e)=>h.h("div",{class:"customreg-password__complexity--rule",key:e},h.h("span",{class:`customreg-password__complexity--icon ${i.passed?J.PASSWORD_COMPLEXITY_PASSED:J.PASSWORD_COMPLEXITY_FAILED}`},i.passed?_a.PASSED:_a.FAILED),h.h("span",null,b(i.ruleKey,this.language)||i.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"18213d251639938165f3e4ad58bdc904fb953fe2",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"092c431b178682d0006cf6ad5c14b0a7e6fb5569",class:"password__wrapper--flex"},h.h("label",{key:"64c101b7d70305ecf09735234d902a6b33823551",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"189929eefa1caf71a1be39f0d663eef914d241d5",class:"password__wrapper--relative"},this.tooltip&&h.h("img",{key:"95ee0d824b5be14ab4e62fc0b5f1731fe6ca5775",class:"password__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("vaadin-password-field",{key:"bf85dde83305233c566b1c50d0286548ba0f48a5",type:"password",id:`${this.name}__input`,class:`password__input ${i}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!this.noValidation&&h.h("small",{key:"3acbe164ff532bcfcd9e4a237a6f352df0cfdc2d",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};zs.style=$f;const Bf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Hf=Bf,Ls=class{constructor(i){h.registerInstance(this,i),this.sendAddressValue=h.createEvent(this,"sendAddressValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=e=>{const r=e.target.value.toUpperCase();this.value=r,this.touched=!0,this.currentPostalCode=r,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=r),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(this.value===""||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const a=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),a!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},300)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(e,t)=>{e.stopPropagation();const r=`${t.number}`.trim(),a=`${t.street}`.trim(),o=`${t.city}`.trim();this.sendAddressValue.emit({city:o,address1:r,address2:a}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:r}),this.valueHandler({name:"City",value:o}),a&&this.valueHandler({name:"address2",value:a}),this.refreshTrigger++},this.enterAddressManually=()=>{const e=window.targetInputRefs;if(!e)return;const t=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"address2",ref:e.address2},{name:"City",ref:e.City}],a=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"City",ref:e.City}].find(n=>{var s;const l=((s=n.ref)===null||s===void 0?void 0:s.value)||"";return n.minLength?l.length===0||l.length<n.minLength:l.length===0}),o=(a==null?void 0:a.ref)||e.address1||e.PostalCode;o.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,t.forEach(n=>{var s;if(n.ref){const l=((s=n.ref.shadowRoot)===null||s===void 0?void 0:s.querySelector("input"))||n.ref;if(l){l.classList.add("pulse-border");const d=()=>{l.classList.remove("pulse-border"),l.removeEventListener("animationend",d)};l.addEventListener("animationend",d)}}})),o.focus()},this.handleOutsideClick=e=>{if(!this.openAddressDropdown)return;const t=e.composedPath?e.composedPath():[],r=t.includes(this.inputReference),a=t.includes(this.addressesDropdownRef),o=t.some(n=>{var s;return n instanceof Element&&((s=n.classList)===null||s===void 0?void 0:s.contains("option"))});!r&&!a&&!o&&(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value}),i===!0&&!this.value.length&&this.valueHandler({name:this.name,value:this.value})}handleAddresses(i){i&&i.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout(()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)},200)),this.isFetchingAddresses=!1}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const i=this.inputReference.validity.valid,e=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return i&&e}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(!this.touched)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:t,maxLength:r}=this.validation;return t===r?b(de.FIXED_LENGTH,this.language,{values:{length:t}}):b(de.LENGTH,this.language,{values:{minLength:t,maxLength:r}})}if(this.inputReference.value.match(this.validationPattern)==null){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${t}`,this.language)||r}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var i,e;let t="";this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid");let r=this.selectedCountryCode==="UK"||this.selectedCountryCode==="GB"||this.ignoreCountry,a=((i=this.addresses)===null||i===void 0?void 0:i.length)>0&&this.openAddressDropdown&&r,o=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&((e=this.addresses)===null||e===void 0?void 0:e.length)===0&&r,n=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return h.h("div",{key:"f0dda39cf9a02d53213848926908c0cb39d1cd3f",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:s=>this.stylingContainer=s},h.h("div",{key:"5e1c51af264392d2be986e305e6526310f55f40b",class:"text__wrapper--flex"},h.h("label",{key:"c12c45d88bdf42aeb6be505d473ab0f55da2be87",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"7b93a75f19590b445227fa1a64c90fd20c0afd5d",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"504004a13595694307c1e3450b69982150dc55fd",class:"text__tooltip-icon",src:he,alt:"",ref:s=>this.tooltipIconReference=s,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"19de66fd72fd0a6befe3bbaebb6c8f99ec5f850b",class:"input__text-wrapper"},h.h("input",{key:"78cd4229ed5104518b991df0bc6bf527df2ec3e2",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:s=>this.inputReference=s,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!r&&h.h("p",{key:"6b9e307d59fb9fed93f4df6c07a091d299844c62",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},b("enterIEAddressManually",this.language)),a&&h.h("div",{key:"ecb7892a9a8d967540d8fd013518ae19498fcd48",class:"input__addresses-container",ref:s=>this.addressesDropdownRef=s},h.h("div",{key:"a5ef3f81a85207a821964e23b21aaf783be807cc",class:"options"},this.addresses.map((s,l)=>h.h("div",{key:l,class:"option",onClick:d=>this.handlePostalCode(d,s)},s.number," ",s.street," ",s.city)))),n&&h.h("div",{key:"338c17e484721efb387e608f3ce4416a0e47b8af",class:"postalcode__loading-spinner"},h.h("div",{key:"7638cea4fba975e3a27d4cb00bce217129bd0750",class:"loading-spinner"}),h.h("span",{key:"b59a8a9c3d7ecf209a68717346d1d29062994f79"},b("searchingForAddresses",this.language))),o&&h.h("div",{key:"212a74fed94b3ee089aed5c9afb544966b5f11cd",class:"postalcode__no-results-message"},b("postalLookUpNoAddressFound",this.language))),h.h("small",{key:"4f66e97dd811b9917c92ff4bcbf236817ac57933",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Ls.style=Hf;const Uf="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}",qf=Uf,Rs=class{constructor(i){h.registerInstance(this,i),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}validityStateHandler(i){this.sendValidityState.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling()}handleClick(i){this.value=i.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("fieldset",{key:"7048de0e37c9541af1c9788e8b46c789ca788c31",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("legend",{key:"403b739c966d510740ca59621c094872b93e2cba",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>h.h("div",{class:"radio__wrapper"},h.h("input",{type:"radio",class:"radio__input",id:`${i.label}__input`,ref:e=>this.inputReference=e,value:i.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),h.h("label",{htmlFor:`${i.label}__input`},i.label))),h.h("small",{key:"46dce1082a6aa9f2a5bdc3e3654c924fcd2a8357",class:"radio__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"dfe155a429485b5c891db2943d9115cdc40e169b",class:"radio__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Rs.style=qf;const jf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}',Wf=jf,Fs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.handleComboChange=e=>{this.touched=!0;const t=e.target.value,r=this.options.find(a=>a.value.toLowerCase()===t.toLowerCase());r?this.value=r.value:this.value=t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{const t=e.currentTarget;t.opened||(this.touched=!0,this.value=t.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=e=>{this.touched=!0,this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.displayedOptions=this.options.map(e=>({label:e.label,value:e.value})),this.isComboBox=((i=this.displayedOptions)===null||i===void 0?void 0:i.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getOptions(i).then(e=>{var t;const r=Object.keys(e)[0];this.displayedOptions=e[r].map(a=>({label:a.Name,value:a.Alpha2Code})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",i=>{if(i.detail.value===!0)this.errorMessage="";else{const e=i.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}})}getOptions(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}setValidity(){var i;return!((i=this.validation)===null||i===void 0)&&i.mandatory?!!this.value:!0}setErrorMessage(){var i,e,t;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.valueMissing||!((t=this.vaadinCombo)===null||t===void 0)&&t.invalid)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i,e;let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"eb6c9d7d85546159d44d06a0635f173263edd7d1",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},h.h("div",{key:"0fd71c528870966fdb23049b1806a267e9e6ca5c",class:"select__wrapper--flex"},h.h("label",{key:"44aeb4e50ab2f79df06741ff07ac03131c987447",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"796a83aeadd480a571b6bae035a46138d7b10b24",class:this.validation.mandatory?"select__label--required":""})),h.h("div",{key:"6d7b2d785c6b0bdd05c7444f563b21cedf26ff7c",class:"select__wrapper--relative"},this.tooltip&&h.h("img",{key:"f33e43a9d42e8b8d1cf136374505eeaedcbede26",class:"select__tooltip-icon",src:he,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?h.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):h.h("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(e=this.validation)===null||e===void 0?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),h.h("small",{key:"261b3c4abc9b360e6b937d851f8bfc810280a8c6",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Fs.style=Wf;const Yf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}',Gf=Yf,$s=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.setPhoneValue(e.target.value),this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.enableCustomRegexValidation=!1,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(i){const e=i.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue((i=this.defaultValue.phone)!==null&&i!==void 0?i:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];this.getPhoneCodes(i).then(e=>{this.phoneCodesOptions=e.phoneCodes.map(t=>typeof t=="object"&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t}),this.disablePhonePrefix=this.phoneCodesOptions.length<=1})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.isValidValue(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}handlePrefixInput(i){this.prefixValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}isValidValue(){if(!this.inputReference||(this.inputReference.setCustomValidity(""),this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0,this.validation.mandatory&&(!this.phoneValue||this.phoneValue.trim()==="")))return!1;if(!this.phoneValue||this.phoneValue.trim()==="")return!this.validation.mandatory;if(this.validation.minLength&&this.phoneValue.length<this.validation.minLength||this.validation.maxLength&&this.phoneValue.length>this.validation.maxLength||this.validationPattern&&!new RegExp(this.validationPattern).test(this.phoneValue))return!1;if(this.enableCustomRegexValidation){const i=(this.validation.custom||[]).filter(e=>e.rule==="regex"&&e.pattern);if(i.length>1){const e=i.slice(1);for(const t of e){let r;try{r=new RegExp(t.pattern)}catch(a){continue}if(!r.test(this.phoneValue))return this.lastCustomErrorKey=t.errorKey,this.lastCustomErrorMessage=t.errorMessage,this.inputReference.setCustomValidity("customError"),!1}}}return!0}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.customError||(this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0),this.inputReference.validity.patternMismatch){const n=(t=this.validation.custom.find(l=>l.rule==="regex"))===null||t===void 0?void 0:t.errorKey,s=(r=this.validation.custom.find(l=>l.rule==="regex"))===null||r===void 0?void 0:r.errorMessage;return b(`${n}`,this.language)?b(`${n}`,this.language):s}const{minLength:a,maxLength:o}=this.validation;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||a&&this.phoneValue&&this.phoneValue.length<a||o&&this.phoneValue&&this.phoneValue.length>o)return a===o?b(de.FIXED_LENGTH,this.language,{values:{length:a}}):b(de.LENGTH,this.language,{values:{minLength:a,maxLength:o}});if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.customError&&(this.lastCustomErrorKey||this.lastCustomErrorMessage)){const n=this.lastCustomErrorKey?b(`${this.lastCustomErrorKey}`,this.language):"";return n||this.lastCustomErrorMessage||""}}renderTooltip(){return this.showTooltip?h.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i;let e="";return this.touched&&(e=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"e33193abf4094e4dac87b9cb7d95aaaf4bd8827c",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},h.h("div",{key:"3978e74f9decf4c6d632268e73507878d3aca0da",class:"tel__wrapper--flex-label"},h.h("label",{key:"1b7711f58ab7fc7e48ea6fa889334d64eeb2bfb4",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"a768af0e4a2c07fcf4b996814650493057120697",class:"tel__wrapper--relative"},this.tooltip&&h.h("img",{key:"b7f302055d8a4739baa8dece656780fa2183665a",class:"tel__tooltip-icon",src:he,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"d095e9e0666096278466d134e06f2985611f9f4d",class:`tel__wrapper--flex ${e}`},h.h("vaadin-combo-box",{key:"d336c7ee95ad77d513a3d485786d8774f11f91fc",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),h.h("input",{key:"5f403eb589e0ae8ee2284d2bd30a60850a33fb20",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:(i=this.phoneValue)!==null&&i!==void 0?i:"",placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),h.h("small",{key:"b4f7dca6a67471828af759437927c57ca5a89c99",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};$s.style=Gf;const Kf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Xf=Kf,Bs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=e=>{const t=e.target,r=this.enableSouthAfricanMode&&(this.name===J.FIRSTNAME_ON_DOCUMENT||this.name===J.LASTNAME_ON_DOCUMENT)?t.value.replace(J.NON_LETTERS_REGEX,""):t.value;r!==t.value&&(t.value=r),this.value=r,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.updateValidationState(),this.emitValueHandler(!0)},500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.updateValidationState()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&this.updateValidationState()),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(i){const{city:e,address1:t,address2:r}=i.detail;if(!["address1","address2","City"].includes(this.name))return;let a="";this.name==="address1"?a=t:this.name==="address2"?a=r:this.name==="City"&&(a=e),this.value=a,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(i){this.name===J.DOCUMENT_NUMBER&&(this.value=i.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===J.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(i,e){const t=i.trim();return e===J.PASSPORT?J.PASSPORT_NUMERIC_REGEX.test(t)?{valid:!0}:{valid:!1,errorKey:de.PASSPORT_INVALID}:e===J.SOUTH_AFRICAN_ID?t.length!==J.SOUTH_AFRICAN_ID_LENGTH?{valid:!1,errorKey:de.SA_ID_LENGTH}:Ks(t)?{valid:!0}:{valid:!1,errorKey:de.SA_ID_INVALID}:{valid:!0}}updateValidationState(){const i=this.isValidValue();if(this.isValid=i,!this.touched){this.errorMessage="";return}this.errorMessage=i?"":this.setErrorMessage()}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const e=window.documentTypeValue;return this.validateDocument(this.value,e).valid}return this.value.trim()===""&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null)}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;const a=this.value.trim();if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const o=window.documentTypeValue,n=this.validateDocument(this.value,o);return n.valid?"":b(n.errorKey,this.language)}if(a===""&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:o,maxLength:n}=this.validation;return o===n?b(de.FIXED_LENGTH,this.language,{values:{length:o}}):b(de.LENGTH,this.language,{values:{minLength:o,maxLength:n}})}if(this.inputReference.value.match(this.validationPattern)==null){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${o}`,this.language)||n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}return""}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f48e592bac049022b283bac917c095772b1508f5",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},h.h("div",{key:"fe3626ead38dd18dfa14795ee2332e93f5f09652",class:"text__wrapper--flex"},h.h("label",{key:"6b2854b460e0ac7d4ae0ebccc06dbe64770581d5",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"f29d266973bd700a4270495bc4eb6e8296b6eeaf",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"68e69abbb78250e763822608e963bc16d702f099",class:"text__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"99b8eab15ab32656f86fedd3f36a09a5bbe108d3",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"cc28c1c19370faa94fa1f738066042dce8d694ce",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Bs.style=Xf;const Qf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',Jf=Qf,Hs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.options.length!==0&&this.options.forEach(i=>{this.callBackObject[i.name]=e=>{this.handleRevealField(e,i.name)},this.subFieldsObject[i.name].addEventListener("click",this.callBackObject[i.name])})}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return b("requiredError",this.language)}disconnectedCallback(){this.options.forEach(i=>{this.subFieldsObject[i.name].removeEventListener("click",this.callBackObject[i.name])})}renderLabel(){return h.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},h.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"31cd24b5da24368eef2f53952714395d6d9f6285",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"aa14784bd8a3870f7015db79d23226521706ad58",class:"togglecheckbox__wrapper--flex"},h.h("input",{key:"0237f06c99b8b2ed7de80433f5b93b9eae7c25f5",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.checkboxReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),h.h("small",{key:"7e26bea1cfcc725d5aa5a795fd0f999d99abe39d",class:"togglecheckbox__error-message"},this.errorMessage),h.h("div",{key:"4256fc552545b7a1050ff5cdeb005f5ea83cc5c1",class:"togglecheckbox__wrapper--relative"},this.tooltip&&h.h("img",{key:"be3c3e036f0bfe46658fce870ae0ffa258229e7d",class:"togglecheckbox__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("div",{key:"2d61bedaac02f21116318b10a21b361e70e0213f",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>h.h("general-input",{type:i.inputType,name:i.name,displayName:i.displayName,validation:i.validate,action:i.action||null,defaultValue:i.defaultValue,autofilled:i.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"]}}};Hs.style=Jf;const Zf="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}",ev=Zf,Us=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.resendCode=h.createEvent(this,"resendCode"),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setInputRef=(e,t)=>{e&&(this.inputRefs[t]=e)},this.setContainerRef=e=>{e&&(this.containerRef=e)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval(()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)},1e3)},this.formatTime=()=>{const e=String(Math.floor(this.resendIntervalSecondsLeft/60));let t=String(this.resendIntervalSecondsLeft%60);return t.length===1&&(t="0"+t),`${e}:${t}`},this.handleInput=(e,t)=>{const r=e.target,o=r.value.slice(-1);if(r.value=o,!o)return;this.code[t]=o,this.enableSouthAfricanMode&&(this.revealedIndexes=[t],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const n=this.inputRefs[t+1];n&&n.focus(),this.setValidity(),this.setErrorMessage()},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,e){i!==e&&this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),this.handleClientStyling()}handleKeyDown(i,e){if(i.key==="Backspace"){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter(a=>a!==e));const r=this.inputRefs[e-1];r==null||r.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e,t;i.preventDefault();const r=(t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text"))===null||t===void 0?void 0:t.trim();if(!r)return;const a=r.slice(0,this.validation.maxLength).split("");this.code=[...a,...new Array(this.validation.maxLength-a.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=a.map((n,s)=>s),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const o=this.inputRefs[Math.min(a.length,this.inputRefs.length-1)];o==null||o.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){const i=this.code.join(""),e=i.length===this.validation.maxLength,t=i.match(this.validationPattern)!==null;this.isValid=e&&t}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorKey;t&&(this.errorMessage=b(t,this.language))}}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}getInputDisplayValue(i){const e=this.code[i];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(i)?e:"*":e:""}render(){return h.h("div",{key:"cd5396afccaf4016201281f5cc53898c0a2052ed",class:"twofa",ref:i=>this.stylingContainer=i},h.h("div",{key:"008dd54682a0d93190e9e5b2b49673262ed01763",class:"twofa__error-message"},h.h("p",{key:"41db51d6b396ccd1f3149e4473e96960e92d05ca"},this.errorMessage)),h.h("div",{key:"67e9e4ac90cf95f2269e75b121ed220a02c5f139",class:"twofa__description",innerHTML:b("twofaDescription",this.language,{values:{destination:this.destination}})}),h.h("div",{key:"702c342eb7be0001ab8de310cadd7e8684a8025d",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>h.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),h.h("div",{key:"63564bd4a0442232f81058ba914ee86c537ce85a",class:"twofa__button-wrapper"},h.h("p",{key:"219f5005c0d03189df48f05c5e0cd980eb0e1979",class:"twofa__resend-message"},b("twofaResendMessage",this.language)),h.h("button",{key:"12b7b4bc3ea165994f2c50107f406c64e708cf4d",class:`twofa__resend-button ${this.pinAttemptsExceeded?"twofa__resend-button--disabled":""}`,onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?b("twofaResendButton",this.language):this.formatTime())))}get host(){return h.getElement(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};Us.style=ev;const tv=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",iv=tv,qs=class{constructor(i){h.registerInstance(this,i),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(i,e){e!==i&&this.handleStructure(i)}handleStylingProps(i){switch(typeof i){case"number":return i===0?0:`${i}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(i)||i.endsWith("px")||i.endsWith("%")?i:"unset";default:return"unset"}}handleStructure(i){switch(i){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return h.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return h.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>h.h("div",{key:e,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
6904
+ }`,$f=Ff,zs=class{constructor(i){h.registerInstance(this,i),this.sendOriginalValidityState=h.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}originalValidityChangedHandler(i){this.isDuplicateInput&&(i.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",i=>{this.handleRevealField(i)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(i){if(this.noValidation){this.passwordComplexity=[];return}this.passwordComplexity=this.validation.custom.filter(e=>e.rule==="regex").map(e=>{const t=new RegExp(e.pattern);let r=!1;return i&&(r=t.test(i)),{rule:e.displayName,ruleKey:e.errorKey,passed:r}})}setValidity(){var i,e;return this.noValidation?!0:this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((i=this.passwordComplexity)===null||i===void 0)&&i.every(t=>t.passed)?(e=this.inputReference)===null||e===void 0?void 0:e.validity.valid:!1}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r,a;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return b("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}if(!(!((a=this.passwordComplexity)===null||a===void 0)&&a.every(o=>o.passed))&&!this.showPopup)return b("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}renderComplexityPopup(){const i=this.passwordComplexity.length,t=this.passwordComplexity.filter(a=>a.passed).length/i,r=this.passwordComplexity.every(a=>a.passed);return h.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},h.h("div",{class:"password__complexity--strength"},h.h("p",{class:"password__complexity--text"},b("passwordStrength",this.language)," ",h.h("span",{class:"password__complexity--text-bold"},b(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),h.h("meter",{value:t,min:"0",max:"1"})),h.h("div",null,this.passwordComplexity.map((a,o)=>h.h("div",{key:o},h.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:a.passed,disabled:!0}),h.h("span",null,b(`${a.ruleKey}`,this.language)?b(`${a.ruleKey}`,this.language):a.rule)))))}renderCustomComplexityPopup(){return h.h("div",{class:`customreg-password__complexity ${this.showPopup?"":"customreg-password__complexity--hidden"}`},h.h("p",{class:"customreg-password__complexity--title"},b("PasswordMustContain",this.language)),h.h("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map((i,e)=>h.h("div",{class:"customreg-password__complexity--rule",key:e},h.h("span",{class:`customreg-password__complexity--icon ${i.passed?J.PASSWORD_COMPLEXITY_PASSED:J.PASSWORD_COMPLEXITY_FAILED}`},i.passed?_a.PASSED:_a.FAILED),h.h("span",null,b(i.ruleKey,this.language)||i.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"18213d251639938165f3e4ad58bdc904fb953fe2",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"092c431b178682d0006cf6ad5c14b0a7e6fb5569",class:"password__wrapper--flex"},h.h("label",{key:"64c101b7d70305ecf09735234d902a6b33823551",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"189929eefa1caf71a1be39f0d663eef914d241d5",class:"password__wrapper--relative"},this.tooltip&&h.h("img",{key:"95ee0d824b5be14ab4e62fc0b5f1731fe6ca5775",class:"password__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("vaadin-password-field",{key:"bf85dde83305233c566b1c50d0286548ba0f48a5",type:"password",id:`${this.name}__input`,class:`password__input ${i}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!this.noValidation&&h.h("small",{key:"3acbe164ff532bcfcd9e4a237a6f352df0cfdc2d",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};zs.style=$f;const Bf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Hf=Bf,Ls=class{constructor(i){h.registerInstance(this,i),this.sendAddressValue=h.createEvent(this,"sendAddressValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=e=>{const r=e.target.value.toUpperCase();this.value=r,this.touched=!0,this.currentPostalCode=r,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=r),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(this.value===""||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const a=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),a!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},300)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(e,t)=>{e.stopPropagation();const r=`${t.number}`.trim(),a=`${t.street}`.trim(),o=`${t.city}`.trim();this.sendAddressValue.emit({city:o,address1:r,address2:a}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:r}),this.valueHandler({name:"City",value:o}),a&&this.valueHandler({name:"address2",value:a}),this.refreshTrigger++},this.enterAddressManually=()=>{const e=window.targetInputRefs;if(!e)return;const t=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"address2",ref:e.address2},{name:"City",ref:e.City}],a=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"City",ref:e.City}].find(n=>{var s;const l=((s=n.ref)===null||s===void 0?void 0:s.value)||"";return n.minLength?l.length===0||l.length<n.minLength:l.length===0}),o=(a==null?void 0:a.ref)||e.address1||e.PostalCode;o.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,t.forEach(n=>{var s;if(n.ref){const l=((s=n.ref.shadowRoot)===null||s===void 0?void 0:s.querySelector("input"))||n.ref;if(l){l.classList.add("pulse-border");const d=()=>{l.classList.remove("pulse-border"),l.removeEventListener("animationend",d)};l.addEventListener("animationend",d)}}})),o.focus()},this.handleOutsideClick=e=>{if(!this.openAddressDropdown)return;const t=e.composedPath?e.composedPath():[],r=t.includes(this.inputReference),a=t.includes(this.addressesDropdownRef),o=t.some(n=>{var s;return n instanceof Element&&((s=n.classList)===null||s===void 0?void 0:s.contains("option"))});!r&&!a&&!o&&(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value}),i===!0&&!this.value.length&&this.valueHandler({name:this.name,value:this.value})}handleAddresses(i){i&&i.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout(()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)},200)),this.isFetchingAddresses=!1}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const i=this.inputReference.validity.valid,e=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return i&&e}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(!this.touched)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:t,maxLength:r}=this.validation;return t===r?b(de.FIXED_LENGTH,this.language,{values:{length:t}}):b(de.LENGTH,this.language,{values:{minLength:t,maxLength:r}})}if(this.inputReference.value.match(this.validationPattern)==null){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${t}`,this.language)||r}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var i,e;let t="";this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid");let r=this.selectedCountryCode==="UK"||this.selectedCountryCode==="GB"||this.ignoreCountry,a=((i=this.addresses)===null||i===void 0?void 0:i.length)>0&&this.openAddressDropdown&&r,o=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&((e=this.addresses)===null||e===void 0?void 0:e.length)===0&&r,n=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return h.h("div",{key:"f0dda39cf9a02d53213848926908c0cb39d1cd3f",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:s=>this.stylingContainer=s},h.h("div",{key:"5e1c51af264392d2be986e305e6526310f55f40b",class:"text__wrapper--flex"},h.h("label",{key:"c12c45d88bdf42aeb6be505d473ab0f55da2be87",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"7b93a75f19590b445227fa1a64c90fd20c0afd5d",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"504004a13595694307c1e3450b69982150dc55fd",class:"text__tooltip-icon",src:he,alt:"",ref:s=>this.tooltipIconReference=s,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"19de66fd72fd0a6befe3bbaebb6c8f99ec5f850b",class:"input__text-wrapper"},h.h("input",{key:"78cd4229ed5104518b991df0bc6bf527df2ec3e2",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:s=>this.inputReference=s,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!r&&h.h("p",{key:"6b9e307d59fb9fed93f4df6c07a091d299844c62",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},b("enterIEAddressManually",this.language)),a&&h.h("div",{key:"ecb7892a9a8d967540d8fd013518ae19498fcd48",class:"input__addresses-container",ref:s=>this.addressesDropdownRef=s},h.h("div",{key:"a5ef3f81a85207a821964e23b21aaf783be807cc",class:"options"},this.addresses.map((s,l)=>h.h("div",{key:l,class:"option",onClick:d=>this.handlePostalCode(d,s)},s.number," ",s.street," ",s.city)))),n&&h.h("div",{key:"338c17e484721efb387e608f3ce4416a0e47b8af",class:"postalcode__loading-spinner"},h.h("div",{key:"7638cea4fba975e3a27d4cb00bce217129bd0750",class:"loading-spinner"}),h.h("span",{key:"b59a8a9c3d7ecf209a68717346d1d29062994f79"},b("searchingForAddresses",this.language))),o&&h.h("div",{key:"212a74fed94b3ee089aed5c9afb544966b5f11cd",class:"postalcode__no-results-message"},b("postalLookUpNoAddressFound",this.language))),h.h("small",{key:"4f66e97dd811b9917c92ff4bcbf236817ac57933",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Ls.style=Hf;const Uf="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}",qf=Uf,Rs=class{constructor(i){h.registerInstance(this,i),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}validityStateHandler(i){this.sendValidityState.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling()}handleClick(i){this.value=i.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("fieldset",{key:"7048de0e37c9541af1c9788e8b46c789ca788c31",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("legend",{key:"403b739c966d510740ca59621c094872b93e2cba",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>h.h("div",{class:"radio__wrapper"},h.h("input",{type:"radio",class:"radio__input",id:`${i.label}__input`,ref:e=>this.inputReference=e,value:i.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),h.h("label",{htmlFor:`${i.label}__input`},i.label))),h.h("small",{key:"46dce1082a6aa9f2a5bdc3e3654c924fcd2a8357",class:"radio__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"dfe155a429485b5c891db2943d9115cdc40e169b",class:"radio__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Rs.style=qf;const jf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}',Wf=jf,Fs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.handleComboChange=e=>{this.touched=!0;const t=e.target.value,r=this.options.find(a=>a.value.toLowerCase()===t.toLowerCase());r?this.value=r.value:this.value=t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{const t=e.currentTarget;t.opened||(this.touched=!0,this.value=t.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=e=>{this.touched=!0,this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.displayedOptions=this.options.map(e=>({label:e.label,value:e.value})),this.isComboBox=((i=this.displayedOptions)===null||i===void 0?void 0:i.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getOptions(i).then(e=>{var t;const r=Object.keys(e)[0];this.displayedOptions=e[r].map(a=>({label:a.Name,value:a.Alpha2Code})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",i=>{if(i.detail.value===!0)this.errorMessage="";else{const e=i.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}})}getOptions(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}setValidity(){var i;return!((i=this.validation)===null||i===void 0)&&i.mandatory?!!this.value:!0}setErrorMessage(){var i,e,t;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.valueMissing||!((t=this.vaadinCombo)===null||t===void 0)&&t.invalid)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i,e;let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"eb6c9d7d85546159d44d06a0635f173263edd7d1",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},h.h("div",{key:"0fd71c528870966fdb23049b1806a267e9e6ca5c",class:"select__wrapper--flex"},h.h("label",{key:"44aeb4e50ab2f79df06741ff07ac03131c987447",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"796a83aeadd480a571b6bae035a46138d7b10b24",class:this.validation.mandatory?"select__label--required":""})),h.h("div",{key:"6d7b2d785c6b0bdd05c7444f563b21cedf26ff7c",class:"select__wrapper--relative"},this.tooltip&&h.h("img",{key:"f33e43a9d42e8b8d1cf136374505eeaedcbede26",class:"select__tooltip-icon",src:he,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?h.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):h.h("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(e=this.validation)===null||e===void 0?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),h.h("small",{key:"261b3c4abc9b360e6b937d851f8bfc810280a8c6",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Fs.style=Wf;const Yf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}',Gf=Yf,$s=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.setPhoneValue(e.target.value),this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.isValidValue(),this.applyCustomError(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.applyCustomError(),this.errorMessage=this.setErrorMessage()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.enableCustomRegexValidation=!1,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(i){const e=i.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}resetValidationState(){this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0,this.inputReference.setCustomValidity("")}isMissingValue(i){return this.validation.mandatory&&i===""}isFixedLength(i){const e=this.validation.minLength,t=this.validation.maxLength;return!!(e&&t&&e===t&&i.length!==e)}isTooShort(i){const e=this.validation.minLength;return!!(e&&i.length<e)}isTooLong(i){const e=this.validation.maxLength;return!!(e&&i.length>e)}failsPattern(i){if(!this.validationPattern)return!1;let e;try{e=new RegExp(this.validationPattern)}catch(t){return console.warn("Invalid validationPattern:",this.validationPattern,t),!1}return!e.test(i)}failsCustomRules(i){const e=(this.validation.custom||[]).filter(r=>r.rule==="regex"&&r.pattern),[,...t]=e;for(const r of t){let a;try{a=new RegExp(r.pattern)}catch(o){console.warn("Invalid regex pattern:",r.pattern,o);continue}if(!a.test(i))return!0}return!1}connectedCallback(){var i;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue((i=this.defaultValue.phone)!==null&&i!==void 0?i:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];this.getPhoneCodes(i).then(e=>{this.phoneCodesOptions=e.phoneCodes.map(t=>typeof t=="object"&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t}),this.disablePhonePrefix=this.phoneCodesOptions.length<=1})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.isValidValue(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}handlePrefixInput(i){this.prefixValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}isValidValue(){var i,e;if(!this.inputReference)return!1;this.resetValidationState();const t=(e=(i=this.phoneValue)===null||i===void 0?void 0:i.trim())!==null&&e!==void 0?e:"",r=t==="";return this.isMissingValue(t)?!1:r?!0:!(this.isFixedLength(t)||this.isTooShort(t)||this.isTooLong(t)||this.failsPattern(t)||this.failsCustomRules(t))}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.customError||(this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0),this.inputReference.validity.patternMismatch){const n=(t=this.validation.custom.find(l=>l.rule==="regex"))===null||t===void 0?void 0:t.errorKey,s=(r=this.validation.custom.find(l=>l.rule==="regex"))===null||r===void 0?void 0:r.errorMessage;return b(`${n}`,this.language)?b(`${n}`,this.language):s}const{minLength:a,maxLength:o}=this.validation;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||a&&this.phoneValue&&this.phoneValue.length<a||o&&this.phoneValue&&this.phoneValue.length>o)return a===o?b(de.FIXED_LENGTH,this.language,{values:{length:a}}):b(de.LENGTH,this.language,{values:{minLength:a,maxLength:o}});if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.customError&&(this.lastCustomErrorKey||this.lastCustomErrorMessage)){const n=this.lastCustomErrorKey?b(`${this.lastCustomErrorKey}`,this.language):"";return n||this.lastCustomErrorMessage||""}}applyCustomError(){const i=(this.validation.custom||[]).filter(t=>t.rule==="regex"&&t.pattern),[,...e]=i;for(const t of e){let r;try{r=new RegExp(t.pattern)}catch(a){console.warn("[applyCustomError] invalid regex pattern:",t.pattern,a);continue}if(!r.test(this.phoneValue)){this.lastCustomErrorKey=t.errorKey,this.lastCustomErrorMessage=t.errorMessage,this.inputReference.setCustomValidity("customError");return}}}renderTooltip(){return this.showTooltip?h.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i;let e="";return this.touched&&(e=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"82da44bb2bacec9efb3631e377978d678e766919",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},h.h("div",{key:"4ca8d6dde2d3f8e15e2d26d593297519e0c94053",class:"tel__wrapper--flex-label"},h.h("label",{key:"3b0e2736fd47537b2ecd80cf49a146992d59474e",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"1577aafc7b68128e91cdfe9ddc563bbad9d7b901",class:"tel__wrapper--relative"},this.tooltip&&h.h("img",{key:"cb6576e1248fc52f937c685d59d994a1d098d7cc",class:"tel__tooltip-icon",src:he,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"a1e9f3c68691fbb61947cd41c0ffddcd124b4bbb",class:`tel__wrapper--flex ${e}`},h.h("vaadin-combo-box",{key:"9aa33a487f019ee7393e29a0ce0d1836a23f5e09",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),h.h("input",{key:"21d69c041b9a5f5f6fb1e6d7b392945cafe99e87",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:(i=this.phoneValue)!==null&&i!==void 0?i:"",placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),h.h("small",{key:"76febe89ad7ee581eb5fc79658d81123da08ccdd",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};$s.style=Gf;const Kf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Xf=Kf,Bs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=e=>{const t=e.target,r=this.enableSouthAfricanMode&&(this.name===J.FIRSTNAME_ON_DOCUMENT||this.name===J.LASTNAME_ON_DOCUMENT)?t.value.replace(J.NON_LETTERS_REGEX,""):t.value;r!==t.value&&(t.value=r),this.value=r,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.updateValidationState(),this.emitValueHandler(!0)},500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.updateValidationState()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&this.updateValidationState()),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(i){const{city:e,address1:t,address2:r}=i.detail;if(!["address1","address2","City"].includes(this.name))return;let a="";this.name==="address1"?a=t:this.name==="address2"?a=r:this.name==="City"&&(a=e),this.value=a,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(i){this.name===J.DOCUMENT_NUMBER&&(this.value=i.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===J.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(i,e){const t=i.trim();return e===J.PASSPORT?J.PASSPORT_NUMERIC_REGEX.test(t)?{valid:!0}:{valid:!1,errorKey:de.PASSPORT_INVALID}:e===J.SOUTH_AFRICAN_ID?t.length!==J.SOUTH_AFRICAN_ID_LENGTH?{valid:!1,errorKey:de.SA_ID_LENGTH}:Ks(t)?{valid:!0}:{valid:!1,errorKey:de.SA_ID_INVALID}:{valid:!0}}updateValidationState(){const i=this.isValidValue();if(this.isValid=i,!this.touched){this.errorMessage="";return}this.errorMessage=i?"":this.setErrorMessage()}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const e=window.documentTypeValue;return this.validateDocument(this.value,e).valid}return this.value.trim()===""&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null)}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;const a=this.value.trim();if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const o=window.documentTypeValue,n=this.validateDocument(this.value,o);return n.valid?"":b(n.errorKey,this.language)}if(a===""&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:o,maxLength:n}=this.validation;return o===n?b(de.FIXED_LENGTH,this.language,{values:{length:o}}):b(de.LENGTH,this.language,{values:{minLength:o,maxLength:n}})}if(this.inputReference.value.match(this.validationPattern)==null){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${o}`,this.language)||n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}return""}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f48e592bac049022b283bac917c095772b1508f5",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},h.h("div",{key:"fe3626ead38dd18dfa14795ee2332e93f5f09652",class:"text__wrapper--flex"},h.h("label",{key:"6b2854b460e0ac7d4ae0ebccc06dbe64770581d5",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"f29d266973bd700a4270495bc4eb6e8296b6eeaf",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"68e69abbb78250e763822608e963bc16d702f099",class:"text__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"99b8eab15ab32656f86fedd3f36a09a5bbe108d3",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"cc28c1c19370faa94fa1f738066042dce8d694ce",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Bs.style=Xf;const Qf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',Jf=Qf,Hs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.options.length!==0&&this.options.forEach(i=>{this.callBackObject[i.name]=e=>{this.handleRevealField(e,i.name)},this.subFieldsObject[i.name].addEventListener("click",this.callBackObject[i.name])})}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return b("requiredError",this.language)}disconnectedCallback(){this.options.forEach(i=>{this.subFieldsObject[i.name].removeEventListener("click",this.callBackObject[i.name])})}renderLabel(){return h.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},h.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"31cd24b5da24368eef2f53952714395d6d9f6285",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"aa14784bd8a3870f7015db79d23226521706ad58",class:"togglecheckbox__wrapper--flex"},h.h("input",{key:"0237f06c99b8b2ed7de80433f5b93b9eae7c25f5",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.checkboxReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),h.h("small",{key:"7e26bea1cfcc725d5aa5a795fd0f999d99abe39d",class:"togglecheckbox__error-message"},this.errorMessage),h.h("div",{key:"4256fc552545b7a1050ff5cdeb005f5ea83cc5c1",class:"togglecheckbox__wrapper--relative"},this.tooltip&&h.h("img",{key:"be3c3e036f0bfe46658fce870ae0ffa258229e7d",class:"togglecheckbox__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("div",{key:"2d61bedaac02f21116318b10a21b361e70e0213f",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>h.h("general-input",{type:i.inputType,name:i.name,displayName:i.displayName,validation:i.validate,action:i.action||null,defaultValue:i.defaultValue,autofilled:i.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"]}}};Hs.style=Jf;const Zf="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}",ev=Zf,Us=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.resendCode=h.createEvent(this,"resendCode"),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setInputRef=(e,t)=>{e&&(this.inputRefs[t]=e)},this.setContainerRef=e=>{e&&(this.containerRef=e)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval(()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)},1e3)},this.formatTime=()=>{const e=String(Math.floor(this.resendIntervalSecondsLeft/60));let t=String(this.resendIntervalSecondsLeft%60);return t.length===1&&(t="0"+t),`${e}:${t}`},this.handleInput=(e,t)=>{const r=e.target,o=r.value.slice(-1);if(r.value=o,!o)return;this.code[t]=o,this.enableSouthAfricanMode&&(this.revealedIndexes=[t],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const n=this.inputRefs[t+1];n&&n.focus(),this.setValidity(),this.setErrorMessage()},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,e){i!==e&&this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),this.handleClientStyling()}handleKeyDown(i,e){if(i.key==="Backspace"){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter(a=>a!==e));const r=this.inputRefs[e-1];r==null||r.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e,t;i.preventDefault();const r=(t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text"))===null||t===void 0?void 0:t.trim();if(!r)return;const a=r.slice(0,this.validation.maxLength).split("");this.code=[...a,...new Array(this.validation.maxLength-a.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=a.map((n,s)=>s),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const o=this.inputRefs[Math.min(a.length,this.inputRefs.length-1)];o==null||o.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){const i=this.code.join(""),e=i.length===this.validation.maxLength,t=i.match(this.validationPattern)!==null;this.isValid=e&&t}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorKey;t&&(this.errorMessage=b(t,this.language))}}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}getInputDisplayValue(i){const e=this.code[i];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(i)?e:"*":e:""}render(){return h.h("div",{key:"cd5396afccaf4016201281f5cc53898c0a2052ed",class:"twofa",ref:i=>this.stylingContainer=i},h.h("div",{key:"008dd54682a0d93190e9e5b2b49673262ed01763",class:"twofa__error-message"},h.h("p",{key:"41db51d6b396ccd1f3149e4473e96960e92d05ca"},this.errorMessage)),h.h("div",{key:"67e9e4ac90cf95f2269e75b121ed220a02c5f139",class:"twofa__description",innerHTML:b("twofaDescription",this.language,{values:{destination:this.destination}})}),h.h("div",{key:"702c342eb7be0001ab8de310cadd7e8684a8025d",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>h.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),h.h("div",{key:"63564bd4a0442232f81058ba914ee86c537ce85a",class:"twofa__button-wrapper"},h.h("p",{key:"219f5005c0d03189df48f05c5e0cd980eb0e1979",class:"twofa__resend-message"},b("twofaResendMessage",this.language)),h.h("button",{key:"12b7b4bc3ea165994f2c50107f406c64e708cf4d",class:`twofa__resend-button ${this.pinAttemptsExceeded?"twofa__resend-button--disabled":""}`,onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?b("twofaResendButton",this.language):this.formatTime())))}get host(){return h.getElement(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};Us.style=ev;const tv=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",iv=tv,qs=class{constructor(i){h.registerInstance(this,i),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(i,e){e!==i&&this.handleStructure(i)}handleStylingProps(i){switch(typeof i){case"number":return i===0?0:`${i}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(i)||i.endsWith("px")||i.endsWith("%")?i:"unset";default:return"unset"}}handleStructure(i){switch(i){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return h.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return h.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>h.h("div",{key:e,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
6905
6905
  :host {
6906
6906
  --emw-skeleton-logo-width: ${this.stylingValue.width};
6907
6907
  --emw-skeleton-logo-height: ${this.stylingValue.height};