import { a as Re, $ as ze, S as Se, i as Ee, s as Ne, f as te, b as Ae, n as ke, d as k, c as T, e as y, g as Ve, h as Le, o as Ze, j as Ce, r as e, v as je, t as S, K as we, m as l, w as L, O as _e, p as R, u as F, x as u, L as Ie, E as We, z as De, A as Oe, B as He, C as qe, D as Ye } from "./PlayerAccountController-CKaOyxPs.js";
function Te(s, a) {
  Re(s, a);
}
function Ue(s) {
  ze.set(s);
}
const Be = {
  en: {
    titleChangePassword: "Change Password",
    currentPassword: "Current Password:",
    newPassword: "New Password:",
    invalidNewPassword: "The new password must be different from the old password.",
    invalidPasswordRule: "The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",
    confirmPassword: "Confirm Password:",
    confirmPasswordInvalid: "Password must match the new password and must follow the same rules.",
    submitChangePassword: "Change Password",
    simplePasswordError: "Password must be 8-20 characters long.",
    returnToMenu: "Return to menu",
    changePasswordText: "Change Password",
    passwordReset: "PASSWORD RESET",
    passwordResetConfirmation: "Your password has been reset successfully.",
    backButtonText: "Back"
  },
  "zh-hk": {
    titleChangePassword: "更改密碼",
    currentPassword: "當前密碼",
    newPassword: "新密碼",
    invalidNewPassword: "新密碼必須與舊密碼不同。",
    invalidPasswordRule: "密碼長度為 8-20 個字符，至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",
    confirmPassword: "確認密碼",
    simplePasswordError: "密码长度必须为 8-20 个字符。",
    confirmPasswordInvalid: "密碼必須與新密碼匹配，並且必須遵循相同的規則。",
    submitChangePassword: "更改密碼",
    returnToMenu: "返回菜單",
    changePasswordText: "更改密碼",
    passwordReset: "重設密碼",
    passwordResetConfirmation: "您的密碼已成功重置。",
    backButtonText: "回到賭場"
  },
  fr: {
    titleChangePassword: "Modifier le mot de passe",
    currentPassword: "Mot de passe actuel:",
    newPassword: "Nouveau mot de passe:",
    invalidNewPassword: "Le nouveau mot de passe doit être different de l'ancien.",
    invalidPasswordRule: "Le mot de passe doit comporter de 8 à 20 caractères et contenir au moins une lettre majuscule ,un chiffre et un caratère spécial.",
    confirmPassword: "Confirmer le mot de passe:",
    confirmPasswordInvalid: "Le mot de passe doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",
    submitChangePassword: "Modifier le mot de passe",
    simplePasswordError: "Le mot de passe doit comporter entre 8 et 20 caractères.",
    returnToMenu: "Retour au menu",
    changePasswordText: "Modifier le mot de passe",
    passwordReset: "Réinitialisation du mot de passe",
    passwordResetConfirmation: "Votre mot de passe a été réinitialisé avec succès.",
    backButtonText: "Retour"
  },
  ro: {
    titleChangePassword: "Schimbă parola",
    currentPassword: "Parola curentă",
    newPassword: "Parola nouă",
    invalidNewPassword: "Noua parolă trebuie să fie diferită de cea veche.",
    invalidPasswordRule: "Parola ar trebui să aibă între 8 și 20 de caractere și să conțină cel putin 1 majusculă, 1 număr și 1 caracter special.",
    confirmPassword: "Confirmă parola",
    confirmPasswordInvalid: "Parolele trebuie să coincidă și să îndeplinească aceleași condiții.",
    submitChangePassword: "Schimbă parola",
    simplePasswordError: "Parola trebuie să aibă 8-20 de caractere.",
    returnToMenu: "Înapoi la meniu",
    changePasswordText: "Schimbă parola",
    passwordReset: "Resetează parola",
    passwordResetConfirmation: "Parola a fost resetată cu succes.",
    backButtonText: "Înapoi"
  },
  es: {
    titleChangePassword: "Cambiar Contraseña",
    currentPassword: "Contraseña Actual",
    newPassword: "Nueva contraseña:",
    invalidNewPassword: "La nueva contraseña debe ser diferente de la contraseña anterior.",
    invalidPasswordRule: "Cambiar Contraseñay contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",
    confirmPassword: "Confirmar Contraseña:",
    confirmPasswordInvalid: "La Contraseña debe coincidir con la Nueva Contraseña y debe seguir las mismas reglas.",
    submitChangePassword: "Cambiar Contraseña",
    simplePasswordError: "La contraseña debe ser entre 8 a 20 caracteres.",
    returnToMenu: "Regresar al menu",
    changePasswordText: "Cambiar Contraseña",
    passwordReset: "REESTABLECER CONTRASEÑA",
    passwordResetConfirmation: "Tu contraseña se ha reestablecido exitosamente..",
    backButtonText: "Regresar"
  },
  pt: {
    titleChangePassword: "Mudar senha",
    currentPassword: "Senha atual",
    newPassword: "Nova Senha",
    invalidNewPassword: "A nova senha deve ser diferente da senha antiga.",
    invalidPasswordRule: "A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",
    confirmPassword: "Confirme sua senha",
    confirmPasswordInvalid: "A senha deve corresponder à nova senha e deve seguir as mesmas regras.",
    submitChangePassword: "Mudar senha",
    simplePasswordError: "A senha deve ter de 8 a 20 caracteres.",
    returnToMenu: "Voltar ao menu",
    changePasswordText: "Mudar senha",
    passwordReset: "REDEFINIÇÃO DE SENHA",
    passwordResetConfirmation: "Sua senha foi redefinida com sucesso.",
    backButtonText: "Voltar"
  },
  hr: {
    titleChangePassword: "Promijeni lozinku",
    currentPassword: "Trenutna lozinka",
    newPassword: "Nova lozinka",
    invalidNewPassword: "Nova lozinka mora se razlikovati od stare lozinke.",
    invalidPasswordRule: "Lozinka bi trebala imati 8-20 znakova",
    confirmPassword: "Potvrdi lozinku",
    confirmPasswordInvalid: "Lozinka mora odgovarati novoj lozinci i mora slijediti ista pravila.",
    submitChangePassword: "Promjena lozinke",
    simplePasswordError: "Lozinka mora imati 8-20 znakova.",
    returnToMenu: "Povratak na izbornik",
    changePasswordText: "Promjena lozinke",
    passwordReset: "RESETIRANJE LOZINKE",
    passwordResetConfirmation: "Vaša lozinka je uspješno resetirana.",
    backButtonText: "Natrag",
    currentPasswordError: "Pogrešna lozinka",
    newPasswordError: "Nova lozinka mora imati 8-20 znakova",
    confirmPasswordError: "Lozinke se ne podudaraju",
    successMessage: "Vaša je lozinka promijenjena",
    save: "Spremi",
    requiredError: "Potreban unos"
  },
  "pt-br": {
    titleChangePassword: "Alterar a senha",
    currentpassword: "Senha atual:",
    newpassword: "Senha nova:",
    invalidNewpassword: "A nova senha deve ser diferente da senha antiga",
    invalidPasswordRule: "A senha deve ter de 8 a 20 caracteres,e ter pelo menos 1 maiúscula, 1 número e 1 caractere especial",
    confirmPassword: "Confirmar senha:",
    confirmpasswordInvalid: "A confirmação da senha deverá corresponder à nova senha e deverá seguir as mesmas regras",
    submitChangepassword: "Alterar a senha",
    simplePasswordError: "A senha deve ter de 8 a 20 caracteres",
    returnToMenu: "Voltar ao cardápio",
    changepasswordText: "Alterar a senha",
    PasswordReset: "Restaurar senha",
    PasswordResetConfirmation: "Sua senha foi redefinida com sucesso",
    backButtonText: "Voltar"
  },
  "es-mx": {
    titleChangePassword: "Cambiar Contraseña",
    currentpassword: "Password actual:",
    newpassword: "Contraseña nueva:",
    invalidNewpassword: "La nueva contraseña debe ser diferente a la contraseña anterior",
    invalidPasswordRule: "La Contraseña debe tener de  8 a 20 caracteres de largo, and contain at least 1 uppercase letter, 1 number and 1 special character.",
    confirmPassword: "Confirmar contraseña:",
    confirmpasswordInvalid: "La confirmación de contraseña debe coincidir con la nueva contraseña y debe seguir las mismas reglas",
    submitChangepassword: "Cambiar Contraseña",
    simplePasswordError: "La Contraseña debe tener de  8 a 20 caracteres de largo",
    returnToMenu: "Regresar al menú",
    changepasswordText: "Cambiar Contraseña",
    PasswordReset: "Restablecer Contraseña",
    PasswordResetConfirmation: "Su Contraseña ha sido restablecida de forma exitosa",
    backButtonText: "Atrás"
  },
  tr: {
    titleChangePassword: "Şifre değiştir",
    currentPassword: "Mevcut Şifre:",
    newPassword: "Yeni Şifre:",
    invalidNewPassword: "Yeni şifre eski şifreden farklı olmalıdır.",
    invalidPasswordRule: "Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",
    confirmPassword: "Şifreyi Onayla:",
    confirmPasswordInvalid: "Şifre yeni şifreyle eşleşmeli ve aynı kurallara uymalıdır.",
    submitChangePassword: "Şifre değiştir",
    simplePasswordError: "Şifre 8-20 karakter uzunluğunda olmalıdır.",
    returnToMenu: "Menüye dön",
    changePasswordText: "Şifre değiştir",
    passwordReset: "PAROLA SIFIRLAMA",
    passwordResetConfirmation: "Şifreniz başarıyla sıfırlandı.",
    backButtonText: "Geri"
  },
  "en-us": {
    titleChangePassword: "Change Password",
    currentPassword: "Current Password:",
    newPassword: "New Password:",
    invalidNewPassword: "The new password must be different from the old password.",
    invalidPasswordRule: "The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",
    confirmPassword: "Confirm Password:",
    confirmPasswordInvalid: "Password must match the new password and must follow the same rules.",
    submitChangePassword: "Change Password",
    simplePasswordError: "Password must be 8-20 characters long.",
    returnToMenu: "Return to menu",
    changePasswordText: "Change Password",
    passwordReset: "PASSWORD RESET",
    passwordResetConfirmation: "Your password has been reset successfully.",
    backButtonText: "Back"
  }
};
function Ge(s) {
  Ae(s, "svelte-1sohqqw", '.PlayerChangePasswordWrapper{color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:50px;max-width:400px;background-color:var(--emw--pam-typography, var(--emw--color-typography, #F1F1F1));border-radius:5%}.ChangePasswordTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--color-primary, #22B04E);font-weight:var(--emw--font-weight-semibold, 500)}.ChangePasswordTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--color-primary, #22B04E)}.ChangePasswordTitleNone{display:none}.PlayerChangePasswordContent{display:grid;grid-column-gap:50px;grid-row-gap:30px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerChangePasswordButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr}.PlayerChangePasswordSaveButton,.PlayerChangePasswordCancelButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;font-family:var(--emw--button-typography);color:var(--emw--pam-typography, var(---emw--button-text-color, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerChangePasswordSaveButton.ButtonInactive,.PlayerChangePasswordCancelButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordCancelButton{background:transparent;font-family:var(--emw--button-typography);border:1px solid var(--emw--color-gray-300, #58586B)}.PlayerChangePasswordCancelButton.PlayerButtonDisabled{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);cursor:not-allowed}.PlayerChangePasswordSaveButton{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:30px 0;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.PlayerChangePasswordSaveButton.PlayerButtonDisabled{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);cursor:not-allowed}.PlayerChangePasswordBox{display:flex;flex-direction:column;position:relative}.PlayerChangePasswordBox label{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:10px}.PlayerChangePasswordBox input{font-family:inherit;font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-light, 300);color:var(--emw--color-contrast, #07072A);padding:10px;line-height:16px;border:2px solid var(--emw--color-gray-100, #D6D6D6);background:var(--emw--pam-typography, var(--emw--color-typography, #FFFFFF));border-radius:var(--emw--border-radius-medium, 10px);outline:none;transition-duration:0.3s}.PlayerChangePasswordBox input:focus,.PlayerChangePasswordBox input :focus-within,.PlayerChangePasswordBox input :focus-visible,.PlayerChangePasswordBox input :visited{box-shadow:0 0 0 1pt var(--emw--color-primary, #22B04E)}.PlayerChangePasswordBox .FieldDisabled{color:var(--emw--color-gray-300, #58586B)}.PlayerChangePasswordBox input::-webkit-outer-spin-button,.PlayerChangePasswordBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerChangePasswordBox input::-ms-reveal,.PlayerChangePasswordBox input::-ms-clear{display:none}.PlayerChangePasswordBox input[type=number]{-moz-appearance:textfield}.PlayerChangePasswordBox.InvalidField input{border:1px solid var(--emw--color-error, #FD2839);background:var(--emw--color-pale, #FBECF4);color:var(--emw--color-gray-300, #58586B)}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInput{bottom:-16px}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInputNew{bottom:-24px}.TogglePasswordVisibility{height:20px;position:absolute;right:10px;top:38px;cursor:pointer;color:var(--emw--color-gray-300, #58586B)}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--color-error, #FD2839)}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--color-gray-300, #58586B)}.TogglePasswordVisibilityMobile{top:35px}.InvalidInput,.InvalidInputNew{color:var(--emw--color-error, #FD2839);font-size:var(--emw--font-size-2x-small, 10px);padding-top:5px;margin:0;line-height:12px}.InvalidInputNew{bottom:-24px}.PasswordChangedError{color:var(--emw--color-error, #FD2839);font-size:var(--emw--font-size-medium, 16px);line-height:18px;margin-top:0}.ChangedPasswordSuccessfully{color:var(--emw--button-text-color, #FFFFFF);position:relative}.ChangedPasswordSuccessfully .SuccessWrapper{display:inline-flex;align-items:center;margin-bottom:20px}.ChangedPasswordSuccessfully .IconContainer{width:45px;height:45px;border:1px solid var(--emw--color-valid, #48952a);border-radius:var(--emw--button-border-radius, 10px);display:flex;align-items:center;justify-content:center}.ChangedPasswordSuccessfully .Checkmark{width:12px;height:22px;border:1px solid var(--emw--color-valid, #48952a);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:relative;top:-3px}.ChangedPasswordSuccessfully h3{font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-normal, 400);margin:10px 0;color:var(--emw--color-valid, #48952a)}.ChangedPasswordSuccessfully p{margin:0;font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A))}.ChangedPasswordSuccessfully .TextContainer{display:flex;flex-direction:column;padding:10px 20px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emw--button-text-color, #FFFFFF);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;border:1px solid var(--emw--color-primary, #22B04E);background:var(--emw--color-primary, #22B04E);max-width:185px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{color:var(--emw--color-primary, #22B04E);background:var(--emw--button-text-color, #FFFFFF)}.PlayerChangePasswordWrapperMobile{height:100%;max-width:unset;padding:20px 20px 40px 20px;display:flex;flex-flow:column}.PlayerChangePasswordWrapperMobile:after{content:"";position:absolute;bottom:0}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordHeader h3{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox label{font-family:inherit;color:var(--emw--color-gray-300, #58586B);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox input{font-family:inherit;color:var(--emw--color-gray-300, #58586B);font-size:var(--emw--font-size-x-small, 12px);font-weight:var(--emw--font-weight-light, 300)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordButtonsArea{grid-column-gap:10px}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton,.PlayerChangePasswordWrapperMobile .PlayerChangePasswordCancelButton{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px);height:44px;color:var(--emw--color-gray-300, #58586B)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{font-family:inherit;color:var(--emw--button-text-color, #FFFFFF)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordWrapperMobile .ChangedPasswordSuccessfully{color:var(--emw--color-gray-300, #58586B)}.MenuReturnButton{font-family:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}');
}
function Ke(s) {
  let a;
  function r(t, i) {
    return (
      /*passwordChanged*/
      t[2] ? Je : Qe
    );
  }
  let n = r(s), o = n(s);
  return {
    c() {
      a = y("form"), o.c(), e(a, "class", "PlayerChangePasswordWrapper " + /*isMobile*/
      (s[20] ? "PlayerChangePasswordWrapperMobile" : ""));
    },
    m(t, i) {
      T(t, a, i), o.m(a, null);
    },
    p(t, i) {
      n === (n = r(t)) && o ? o.p(t, i) : (o.d(1), o = n(t), o && (o.c(), o.m(a, null)));
    },
    d(t) {
      t && k(a), o.d();
    }
  };
}
function Je(s) {
  let a, r, n, o = (
    /*$_*/
    s[19]("changePasswordText") + ""
  ), t, i, d, f, m, g, c, p, v = (
    /*$_*/
    s[19]("passwordReset") + ""
  ), B, _, x, h = (
    /*$_*/
    s[19]("passwordResetConfirmation") + ""
  ), M, O, Z, j = (
    /*$_*/
    s[19]("backButtonText") + ""
  ), z, G, K, E = (
    /*isMobile*/
    s[20] && Xe(s)
  );
  return {
    c() {
      E && E.c(), a = R(), r = y("div"), n = y("h3"), t = F(o), i = R(), d = y("div"), f = y("div"), m = y("div"), m.innerHTML = '<div class="Checkmark"></div>', g = R(), c = y("div"), p = y("h3"), B = F(v), _ = R(), x = y("p"), M = F(h), O = R(), Z = y("div"), z = F(j), e(r, "class", "PlayerChangePasswordHeader"), e(m, "class", "IconContainer"), e(c, "class", "TextContainer"), e(f, "class", "SuccessWrapper"), e(Z, "class", "PlayerChangePasswordBackButton"), e(d, "class", "ChangedPasswordSuccessfully");
    },
    m(I, C) {
      E && E.m(I, C), T(I, a, C), T(I, r, C), l(r, n), l(n, t), T(I, i, C), T(I, d, C), l(d, f), l(f, m), l(f, g), l(f, c), l(c, p), l(p, B), l(c, _), l(c, x), l(x, M), l(d, O), l(d, Z), l(Z, z), G || (K = L(
        Z,
        "click",
        /*click_handler_9*/
        s[47]
      ), G = !0);
    },
    p(I, C) {
      /*isMobile*/
      I[20] && E.p(I, C), C[0] & /*$_*/
      524288 && o !== (o = /*$_*/
      I[19]("changePasswordText") + "") && S(t, o), C[0] & /*$_*/
      524288 && v !== (v = /*$_*/
      I[19]("passwordReset") + "") && S(B, v), C[0] & /*$_*/
      524288 && h !== (h = /*$_*/
      I[19]("passwordResetConfirmation") + "") && S(M, h), C[0] & /*$_*/
      524288 && j !== (j = /*$_*/
      I[19]("backButtonText") + "") && S(z, j);
    },
    d(I) {
      I && (k(a), k(r), k(i), k(d)), E && E.d(I), G = !1, K();
    }
  };
}
function Qe(s) {
  let a, r, n = (
    /*$_*/
    s[19]("titleChangePassword") + ""
  ), o, t, i, d, f, m = (
    /*$_*/
    s[19]("currentPassword") + ""
  ), g, c, p, v, B, _, x, h, M, O = (
    /*$_*/
    s[19]("newPassword") + ""
  ), Z, j, z, G, K, E, I, C, W, H = (
    /*$_*/
    s[19]("confirmPassword") + ""
  ), oe, fe, D, ge, J, le, pe, X, se, Q, ee = (
    /*$_*/
    s[19]("submitChangePassword") + ""
  ), ie, ne, re, me, he, $ = (
    /*isMobile*/
    s[20] && $e(s)
  );
  function Pe(b, P) {
    return (
      /*isCurrentPasswordVisible*/
      b[10] ? aa : ea
    );
  }
  let de = Pe(s), q = de(s), N = (
    /*invalidCurrentPassword*/
    s[4] && Fe(s)
  );
  function ve(b, P) {
    return (
      /*isNewPasswordVisible*/
      b[11] ? oa : ta
    );
  }
  let ce = ve(s), Y = ce(s);
  function be(b, P) {
    if (
      /*oldPasswordSameAsNew*/
      b[13]
    )
      return ia;
    if (
      /*invalidNewPassword*/
      b[5]
    )
      return la;
  }
  let ae = be(s), A = ae && ae(s);
  function ye(b, P) {
    return (
      /*isConfirmPasswordVisible*/
      b[12] ? ua : ca
    );
  }
  let ue = ye(s), U = ue(s), V = (
    /*invalidConfirmPassword*/
    s[6] && Me(s)
  ), w = (
    /*showErrorPasswordChanged*/
    s[18] && xe(s)
  );
  return {
    c() {
      $ && $.c(), a = R(), r = y("h2"), o = F(n), t = R(), i = y("section"), d = y("div"), f = y("label"), g = F(m), c = R(), p = y("input"), v = R(), q.c(), B = R(), N && N.c(), x = R(), h = y("div"), M = y("label"), Z = F(O), j = R(), z = y("input"), G = R(), Y.c(), K = R(), A && A.c(), I = R(), C = y("div"), W = y("label"), oe = F(H), fe = R(), D = y("input"), ge = R(), U.c(), J = R(), V && V.c(), pe = R(), w && w.c(), X = R(), se = y("section"), Q = y("button"), ie = F(ee), e(r, "class", "ChangePasswordTitle " + /*isMobile*/
      (s[20] ? "ChangePasswordTitleNone" : "")), e(f, "for", "CurrentPassword"), e(p, "id", "CurrentPassword"), e(p, "type", "password"), e(d, "class", _ = "PlayerChangePasswordBox " + /*invalidCurrentPassword*/
      (s[4] ? "InvalidField" : "")), e(M, "for", "NewPassword"), e(z, "id", "NewPassword"), e(z, "autocomplete", "new-password"), e(z, "type", "password"), e(h, "class", E = "PlayerChangePasswordBox " + /*invalidNewPassword*/
      (s[5] ? "InvalidField" : "")), e(W, "for", "ConfirmPassword"), e(D, "id", "ConfirmPassword"), e(D, "type", "password"), e(C, "class", le = "PlayerChangePasswordBox " + /*invalidConfirmPassword*/
      (s[6] ? "InvalidField" : "")), e(i, "class", "PlayerChangePasswordContent"), e(Q, "class", ne = "PlayerChangePasswordSaveButton " + /*activateSubmit*/
      (s[3] ? "" : "ButtonInactive")), Q.disabled = re = !/*activateSubmit*/
      s[3], e(se, "class", "PlayerChangePasswordButtonsArea");
    },
    m(b, P) {
      $ && $.m(b, P), T(b, a, P), T(b, r, P), l(r, o), T(b, t, P), T(b, i, P), l(i, d), l(d, f), l(f, g), l(d, c), l(d, p), we(
        p,
        /*userCurrentPassword*/
        s[14]
      ), s[34](p), l(d, v), q.m(d, null), l(d, B), N && N.m(d, null), l(i, x), l(i, h), l(h, M), l(M, Z), l(h, j), l(h, z), we(
        z,
        /*userNewPassword*/
        s[15]
      ), s[38](z), l(h, G), Y.m(h, null), l(h, K), A && A.m(h, null), l(i, I), l(i, C), l(C, W), l(W, oe), l(C, fe), l(C, D), we(
        D,
        /*userConfirmPassword*/
        s[16]
      ), s[42](D), l(C, ge), U.m(C, null), l(C, J), V && V.m(C, null), T(b, pe, P), w && w.m(b, P), T(b, X, P), T(b, se, P), l(se, Q), l(Q, ie), me || (he = [
        L(
          p,
          "input",
          /*input0_input_handler*/
          s[33]
        ),
        L(p, "blur", function() {
          _e(
            /*validatePassword*/
            s[22](
              /*invalidCurrentPassword*/
              s[4],
              /*userCurrentPassword*/
              s[14],
              /*currentPasswordVisibilityToggle*/
              s[7]
            )
          ) && s[22](
            /*invalidCurrentPassword*/
            s[4],
            /*userCurrentPassword*/
            s[14],
            /*currentPasswordVisibilityToggle*/
            s[7]
          ).apply(this, arguments);
        }),
        L(
          z,
          "input",
          /*input1_input_handler*/
          s[37]
        ),
        L(z, "blur", function() {
          _e(
            /*validatePassword*/
            s[22](
              /*invalidNewPassword*/
              s[5],
              /*userNewPassword*/
              s[15],
              /*newPasswordVisibilityToggle*/
              s[8]
            )
          ) && s[22](
            /*invalidNewPassword*/
            s[5],
            /*userNewPassword*/
            s[15],
            /*newPasswordVisibilityToggle*/
            s[8]
          ).apply(this, arguments);
        }),
        L(
          D,
          "input",
          /*input2_input_handler*/
          s[41]
        ),
        L(D, "blur", function() {
          _e(
            /*validatePassword*/
            s[22](
              /*invalidConfirmPassword*/
              s[6],
              /*userConfirmPassword*/
              s[16],
              /*confirmPasswordVisibilityToggle*/
              s[9]
            )
          ) && s[22](
            /*invalidConfirmPassword*/
            s[6],
            /*userConfirmPassword*/
            s[16],
            /*confirmPasswordVisibilityToggle*/
            s[9]
          ).apply(this, arguments);
        }),
        L(
          Q,
          "click",
          /*click_handler_7*/
          s[45]
        )
      ], me = !0);
    },
    p(b, P) {
      s = b, /*isMobile*/
      s[20] && $.p(s, P), P[0] & /*$_*/
      524288 && n !== (n = /*$_*/
      s[19]("titleChangePassword") + "") && S(o, n), P[0] & /*$_*/
      524288 && m !== (m = /*$_*/
      s[19]("currentPassword") + "") && S(g, m), P[0] & /*userCurrentPassword*/
      16384 && p.value !== /*userCurrentPassword*/
      s[14] && we(
        p,
        /*userCurrentPassword*/
        s[14]
      ), de === (de = Pe(s)) && q ? q.p(s, P) : (q.d(1), q = de(s), q && (q.c(), q.m(d, B))), /*invalidCurrentPassword*/
      s[4] ? N ? N.p(s, P) : (N = Fe(s), N.c(), N.m(d, null)) : N && (N.d(1), N = null), P[0] & /*invalidCurrentPassword*/
      16 && _ !== (_ = "PlayerChangePasswordBox " + /*invalidCurrentPassword*/
      (s[4] ? "InvalidField" : "")) && e(d, "class", _), P[0] & /*$_*/
      524288 && O !== (O = /*$_*/
      s[19]("newPassword") + "") && S(Z, O), P[0] & /*userNewPassword*/
      32768 && z.value !== /*userNewPassword*/
      s[15] && we(
        z,
        /*userNewPassword*/
        s[15]
      ), ce === (ce = ve(s)) && Y ? Y.p(s, P) : (Y.d(1), Y = ce(s), Y && (Y.c(), Y.m(h, K))), ae === (ae = be(s)) && A ? A.p(s, P) : (A && A.d(1), A = ae && ae(s), A && (A.c(), A.m(h, null))), P[0] & /*invalidNewPassword*/
      32 && E !== (E = "PlayerChangePasswordBox " + /*invalidNewPassword*/
      (s[5] ? "InvalidField" : "")) && e(h, "class", E), P[0] & /*$_*/
      524288 && H !== (H = /*$_*/
      s[19]("confirmPassword") + "") && S(oe, H), P[0] & /*userConfirmPassword*/
      65536 && D.value !== /*userConfirmPassword*/
      s[16] && we(
        D,
        /*userConfirmPassword*/
        s[16]
      ), ue === (ue = ye(s)) && U ? U.p(s, P) : (U.d(1), U = ue(s), U && (U.c(), U.m(C, J))), /*invalidConfirmPassword*/
      s[6] ? V ? V.p(s, P) : (V = Me(s), V.c(), V.m(C, null)) : V && (V.d(1), V = null), P[0] & /*invalidConfirmPassword*/
      64 && le !== (le = "PlayerChangePasswordBox " + /*invalidConfirmPassword*/
      (s[6] ? "InvalidField" : "")) && e(C, "class", le), /*showErrorPasswordChanged*/
      s[18] ? w ? w.p(s, P) : (w = xe(s), w.c(), w.m(X.parentNode, X)) : w && (w.d(1), w = null), P[0] & /*$_*/
      524288 && ee !== (ee = /*$_*/
      s[19]("submitChangePassword") + "") && S(ie, ee), P[0] & /*activateSubmit*/
      8 && ne !== (ne = "PlayerChangePasswordSaveButton " + /*activateSubmit*/
      (s[3] ? "" : "ButtonInactive")) && e(Q, "class", ne), P[0] & /*activateSubmit*/
      8 && re !== (re = !/*activateSubmit*/
      s[3]) && (Q.disabled = re);
    },
    d(b) {
      b && (k(a), k(r), k(t), k(i), k(pe), k(X), k(se)), $ && $.d(b), s[34](null), q.d(), N && N.d(), s[38](null), Y.d(), A && A.d(), s[42](null), U.d(), V && V.d(), w && w.d(b), me = !1, je(he);
    }
  };
}
function Xe(s) {
  let a, r, n, o, t, i, d = (
    /*$_*/
    s[19]("returnToMenu") + ""
  ), f, m, g;
  return {
    c() {
      a = y("div"), r = u("svg"), n = u("g"), o = u("path"), t = R(), i = y("span"), f = F(d), e(o, "id", "Chevron_Right"), e(o, "d", `M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179
                  l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816
                  C52.942,116.507,52.942,124.327,57.633,129.007z`), e(r, "version", "1.1"), e(r, "id", "Capa_1"), e(r, "xmlns", "http://www.w3.org/2000/svg"), e(r, "xmlns:xlink", "http://www.w3.org/1999/xlink"), e(r, "x", "0px"), e(r, "y", "0px"), e(r, "viewBox", "0 0 240.823 240.823"), We(r, "enable-background", "new 0 0 240.823 240.823"), e(r, "xml:space", "preserve"), e(r, "width", "18px"), e(r, "fill", "var(--emw--color-gray-300, #58586B)"), e(a, "class", "MenuReturnButton");
    },
    m(c, p) {
      T(c, a, p), l(a, r), l(r, n), l(n, o), l(a, t), l(a, i), l(i, f), m || (g = L(
        a,
        "click",
        /*click_handler_8*/
        s[46]
      ), m = !0);
    },
    p(c, p) {
      p[0] & /*$_*/
      524288 && d !== (d = /*$_*/
      c[19]("returnToMenu") + "") && S(f, d);
    },
    d(c) {
      c && k(a), m = !1, g();
    }
  };
}
function $e(s) {
  let a, r, n, o, t, i, d, f, m, g, c = (
    /*$_*/
    s[19]("titleChangePassword") + ""
  ), p, v, B;
  return {
    c() {
      a = y("div"), r = u("svg"), n = u("defs"), o = u("style"), t = F(".aaa{fill:var(--emw--color-primary, #22B04E);;}"), i = u("g"), d = u("g"), f = u("path"), m = R(), g = y("h2"), p = F(c), e(f, "class", "aaa"), e(f, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), e(f, "transform", "translate(15 15) rotate(180)"), e(d, "transform", "translate(20 158)"), e(i, "transform", "translate(-20 -158)"), e(r, "xmlns", "http://www.w3.org/2000/svg"), e(r, "width", "15"), e(r, "height", "15"), e(r, "viewBox", "0 0 15 15"), e(g, "class", "ChangePasswordTitleMobile"), e(a, "class", "MenuReturnButton");
    },
    m(_, x) {
      T(_, a, x), l(a, r), l(r, n), l(n, o), l(o, t), l(r, i), l(i, d), l(d, f), l(a, m), l(a, g), l(g, p), v || (B = L(
        a,
        "click",
        /*click_handler*/
        s[32]
      ), v = !0);
    },
    p(_, x) {
      x[0] & /*$_*/
      524288 && c !== (c = /*$_*/
      _[19]("titleChangePassword") + "") && S(p, c);
    },
    d(_) {
      _ && k(a), v = !1, B();
    }
  };
}
function ea(s) {
  let a, r, n, o, t, i, d, f, m, g;
  return {
    c() {
      a = u("svg"), r = u("defs"), n = u("style"), o = F(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = u("g"), i = u("path"), d = u("circle"), e(i, "class", "a"), e(i, "d", "M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"), e(i, "transform", "translate(0)"), e(d, "class", "a"), e(d, "cx", "2.779"), e(d, "cy", "2.779"), e(d, "r", "2.779"), e(d, "transform", "translate(20.827 30.303)"), e(t, "transform", "translate(-14.185 -27.832)"), e(a, "class", f = "TogglePasswordVisibility " + /*invalidCurrentPassword*/
      (s[4] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), e(a, "xmlns", "http://www.w3.org/2000/svg"), e(a, "width", "18.843"), e(a, "height", "10.5"), e(a, "viewBox", "0 0 18.843 10.5");
    },
    m(c, p) {
      T(c, a, p), l(a, r), l(r, n), l(n, o), l(a, t), l(t, i), l(t, d), m || (g = L(
        a,
        "click",
        /*click_handler_2*/
        s[36]
      ), m = !0);
    },
    p(c, p) {
      p[0] & /*invalidCurrentPassword*/
      16 && f !== (f = "TogglePasswordVisibility " + /*invalidCurrentPassword*/
      (c[4] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (c[20] ? "TogglePasswordVisibilityMobile" : "")) && e(a, "class", f);
    },
    d(c) {
      c && k(a), m = !1, g();
    }
  };
}
function aa(s) {
  let a, r, n, o, t, i, d, f, m, g, c, p, v, B, _, x;
  return {
    c() {
      a = u("svg"), r = u("defs"), n = u("style"), o = F(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = u("g"), i = u("circle"), d = u("g"), f = u("path"), m = u("path"), g = u("g"), c = u("path"), p = u("path"), v = u("rect"), e(i, "class", "a"), e(i, "cx", "0.05"), e(i, "cy", "0.05"), e(i, "r", "0.05"), e(i, "transform", "translate(121.017 31.148)"), e(f, "class", "a"), e(f, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), e(f, "transform", "translate(-142.164 -39.123)"), e(m, "class", "a"), e(m, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"), e(m, "transform", "translate(-136.413 -42.068)"), e(d, "transform", "translate(117.499 27.37)"), e(c, "class", "a"), e(c, "d", "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"), e(c, "transform", "translate(-110.856 -33.157)"), e(p, "class", "a"), e(p, "d", "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"), e(p, "transform", "translate(-130.743 -29.617)"), e(g, "transform", "translate(110.856 24.899)"), e(v, "class", "a"), e(v, "width", "0.972"), e(v, "height", "15.861"), e(v, "rx", "0.486"), e(v, "transform", "translate(114.827 23.858) rotate(-39.315)"), e(t, "transform", "translate(-110.856 -23.242)"), e(a, "class", B = "TogglePasswordVisibility " + /*invalidCurrentPassword*/
      (s[4] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), e(a, "xmlns", "http://www.w3.org/2000/svg"), e(a, "width", "18.844"), e(a, "height", "12.887"), e(a, "viewBox", "0 0 18.844 12.887");
    },
    m(h, M) {
      T(h, a, M), l(a, r), l(r, n), l(n, o), l(a, t), l(t, i), l(t, d), l(d, f), l(d, m), l(t, g), l(g, c), l(g, p), l(t, v), _ || (x = L(
        a,
        "click",
        /*click_handler_1*/
        s[35]
      ), _ = !0);
    },
    p(h, M) {
      M[0] & /*invalidCurrentPassword*/
      16 && B !== (B = "TogglePasswordVisibility " + /*invalidCurrentPassword*/
      (h[4] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (h[20] ? "TogglePasswordVisibilityMobile" : "")) && e(a, "class", B);
    },
    d(h) {
      h && k(a), _ = !1, x();
    }
  };
}
function Fe(s) {
  let a;
  function r(t, i) {
    return (
      /*simplepasswordvalidation*/
      t[0] == "true" ? ra : sa
    );
  }
  let n = r(s), o = n(s);
  return {
    c() {
      o.c(), a = Ie();
    },
    m(t, i) {
      o.m(t, i), T(t, a, i);
    },
    p(t, i) {
      n === (n = r(t)) && o ? o.p(t, i) : (o.d(1), o = n(t), o && (o.c(), o.m(a.parentNode, a)));
    },
    d(t) {
      t && k(a), o.d(t);
    }
  };
}
function sa(s) {
  let a, r = (
    /*$_*/
    s[19]("invalidPasswordRule") + ""
  ), n;
  return {
    c() {
      a = y("p"), n = F(r), e(a, "class", "InvalidInput");
    },
    m(o, t) {
      T(o, a, t), l(a, n);
    },
    p(o, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      o[19]("invalidPasswordRule") + "") && S(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function ra(s) {
  let a, r = (
    /*$_*/
    s[19]("simplePasswordError") + ""
  ), n;
  return {
    c() {
      a = y("p"), n = F(r), e(a, "class", "InvalidInput");
    },
    m(o, t) {
      T(o, a, t), l(a, n);
    },
    p(o, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      o[19]("simplePasswordError") + "") && S(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function ta(s) {
  let a, r, n, o, t, i, d, f, m, g;
  return {
    c() {
      a = u("svg"), r = u("defs"), n = u("style"), o = F(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = u("g"), i = u("path"), d = u("circle"), e(i, "class", "a"), e(i, "d", "M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"), e(i, "transform", "translate(0)"), e(d, "class", "a"), e(d, "cx", "2.779"), e(d, "cy", "2.779"), e(d, "r", "2.779"), e(d, "transform", "translate(20.827 30.303)"), e(t, "transform", "translate(-14.185 -27.832)"), e(a, "class", f = "TogglePasswordVisibility " + /*invalidNewPassword*/
      (s[5] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), e(a, "xmlns", "http://www.w3.org/2000/svg"), e(a, "width", "18.843"), e(a, "height", "10.5"), e(a, "viewBox", "0 0 18.843 10.5");
    },
    m(c, p) {
      T(c, a, p), l(a, r), l(r, n), l(n, o), l(a, t), l(t, i), l(t, d), m || (g = L(
        a,
        "click",
        /*click_handler_4*/
        s[40]
      ), m = !0);
    },
    p(c, p) {
      p[0] & /*invalidNewPassword*/
      32 && f !== (f = "TogglePasswordVisibility " + /*invalidNewPassword*/
      (c[5] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (c[20] ? "TogglePasswordVisibilityMobile" : "")) && e(a, "class", f);
    },
    d(c) {
      c && k(a), m = !1, g();
    }
  };
}
function oa(s) {
  let a, r, n, o, t, i, d, f, m, g, c, p, v, B, _, x;
  return {
    c() {
      a = u("svg"), r = u("defs"), n = u("style"), o = F(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = u("g"), i = u("circle"), d = u("g"), f = u("path"), m = u("path"), g = u("g"), c = u("path"), p = u("path"), v = u("rect"), e(i, "class", "a"), e(i, "cx", "0.05"), e(i, "cy", "0.05"), e(i, "r", "0.05"), e(i, "transform", "translate(121.017 31.148)"), e(f, "class", "a"), e(f, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), e(f, "transform", "translate(-142.164 -39.123)"), e(m, "class", "a"), e(m, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"), e(m, "transform", "translate(-136.413 -42.068)"), e(d, "transform", "translate(117.499 27.37)"), e(c, "class", "a"), e(c, "d", "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"), e(c, "transform", "translate(-110.856 -33.157)"), e(p, "class", "a"), e(p, "d", "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"), e(p, "transform", "translate(-130.743 -29.617)"), e(g, "transform", "translate(110.856 24.899)"), e(v, "class", "a"), e(v, "width", "0.972"), e(v, "height", "15.861"), e(v, "rx", "0.486"), e(v, "transform", "translate(114.827 23.858) rotate(-39.315)"), e(t, "transform", "translate(-110.856 -23.242)"), e(a, "class", B = "TogglePasswordVisibility " + /*invalidNewPassword*/
      (s[5] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), e(a, "xmlns", "http://www.w3.org/2000/svg"), e(a, "width", "18.844"), e(a, "height", "12.887"), e(a, "viewBox", "0 0 18.844 12.887");
    },
    m(h, M) {
      T(h, a, M), l(a, r), l(r, n), l(n, o), l(a, t), l(t, i), l(t, d), l(d, f), l(d, m), l(t, g), l(g, c), l(g, p), l(t, v), _ || (x = L(
        a,
        "click",
        /*click_handler_3*/
        s[39]
      ), _ = !0);
    },
    p(h, M) {
      M[0] & /*invalidNewPassword*/
      32 && B !== (B = "TogglePasswordVisibility " + /*invalidNewPassword*/
      (h[5] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (h[20] ? "TogglePasswordVisibilityMobile" : "")) && e(a, "class", B);
    },
    d(h) {
      h && k(a), _ = !1, x();
    }
  };
}
function la(s) {
  let a;
  function r(t, i) {
    return (
      /*simplepasswordvalidation*/
      t[0] == "true" ? da : na
    );
  }
  let n = r(s), o = n(s);
  return {
    c() {
      o.c(), a = Ie();
    },
    m(t, i) {
      o.m(t, i), T(t, a, i);
    },
    p(t, i) {
      n === (n = r(t)) && o ? o.p(t, i) : (o.d(1), o = n(t), o && (o.c(), o.m(a.parentNode, a)));
    },
    d(t) {
      t && k(a), o.d(t);
    }
  };
}
function ia(s) {
  let a, r = (
    /*$_*/
    s[19]("invalidNewPassword") + ""
  ), n;
  return {
    c() {
      a = y("p"), n = F(r), e(a, "class", "InvalidInputNew");
    },
    m(o, t) {
      T(o, a, t), l(a, n);
    },
    p(o, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      o[19]("invalidNewPassword") + "") && S(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function na(s) {
  let a, r = (
    /*$_*/
    s[19]("invalidPasswordRule") + ""
  ), n;
  return {
    c() {
      a = y("p"), n = F(r), e(a, "class", "InvalidInput");
    },
    m(o, t) {
      T(o, a, t), l(a, n);
    },
    p(o, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      o[19]("invalidPasswordRule") + "") && S(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function da(s) {
  let a, r = (
    /*$_*/
    s[19]("simplePasswordError") + ""
  ), n;
  return {
    c() {
      a = y("p"), n = F(r), e(a, "class", "InvalidInput");
    },
    m(o, t) {
      T(o, a, t), l(a, n);
    },
    p(o, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      o[19]("simplePasswordError") + "") && S(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function ca(s) {
  let a, r, n, o, t, i, d, f, m, g;
  return {
    c() {
      a = u("svg"), r = u("defs"), n = u("style"), o = F(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = u("g"), i = u("path"), d = u("circle"), e(i, "class", "a"), e(i, "d", "M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"), e(i, "transform", "translate(0)"), e(d, "class", "a"), e(d, "cx", "2.779"), e(d, "cy", "2.779"), e(d, "r", "2.779"), e(d, "transform", "translate(20.827 30.303)"), e(t, "transform", "translate(-14.185 -27.832)"), e(a, "class", f = "TogglePasswordVisibility " + /*invalidConfirmPassword*/
      (s[6] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), e(a, "xmlns", "http://www.w3.org/2000/svg"), e(a, "width", "18.843"), e(a, "height", "10.5"), e(a, "viewBox", "0 0 18.843 10.5");
    },
    m(c, p) {
      T(c, a, p), l(a, r), l(r, n), l(n, o), l(a, t), l(t, i), l(t, d), m || (g = L(
        a,
        "click",
        /*click_handler_6*/
        s[44]
      ), m = !0);
    },
    p(c, p) {
      p[0] & /*invalidConfirmPassword*/
      64 && f !== (f = "TogglePasswordVisibility " + /*invalidConfirmPassword*/
      (c[6] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (c[20] ? "TogglePasswordVisibilityMobile" : "")) && e(a, "class", f);
    },
    d(c) {
      c && k(a), m = !1, g();
    }
  };
}
function ua(s) {
  let a, r, n, o, t, i, d, f, m, g, c, p, v, B, _, x;
  return {
    c() {
      a = u("svg"), r = u("defs"), n = u("style"), o = F(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = u("g"), i = u("circle"), d = u("g"), f = u("path"), m = u("path"), g = u("g"), c = u("path"), p = u("path"), v = u("rect"), e(i, "class", "a"), e(i, "cx", "0.05"), e(i, "cy", "0.05"), e(i, "r", "0.05"), e(i, "transform", "translate(121.017 31.148)"), e(f, "class", "a"), e(f, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), e(f, "transform", "translate(-142.164 -39.123)"), e(m, "class", "a"), e(m, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"), e(m, "transform", "translate(-136.413 -42.068)"), e(d, "transform", "translate(117.499 27.37)"), e(c, "class", "a"), e(c, "d", "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"), e(c, "transform", "translate(-110.856 -33.157)"), e(p, "class", "a"), e(p, "d", "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"), e(p, "transform", "translate(-130.743 -29.617)"), e(g, "transform", "translate(110.856 24.899)"), e(v, "class", "a"), e(v, "width", "0.972"), e(v, "height", "15.861"), e(v, "rx", "0.486"), e(v, "transform", "translate(114.827 23.858) rotate(-39.315)"), e(t, "transform", "translate(-110.856 -23.242)"), e(a, "class", B = "TogglePasswordVisibility " + /*invalidConfirmPassword*/
      (s[6] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), e(a, "xmlns", "http://www.w3.org/2000/svg"), e(a, "width", "18.844"), e(a, "height", "12.887"), e(a, "viewBox", "0 0 18.844 12.887");
    },
    m(h, M) {
      T(h, a, M), l(a, r), l(r, n), l(n, o), l(a, t), l(t, i), l(t, d), l(d, f), l(d, m), l(t, g), l(g, c), l(g, p), l(t, v), _ || (x = L(
        a,
        "click",
        /*click_handler_5*/
        s[43]
      ), _ = !0);
    },
    p(h, M) {
      M[0] & /*invalidConfirmPassword*/
      64 && B !== (B = "TogglePasswordVisibility " + /*invalidConfirmPassword*/
      (h[6] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (h[20] ? "TogglePasswordVisibilityMobile" : "")) && e(a, "class", B);
    },
    d(h) {
      h && k(a), _ = !1, x();
    }
  };
}
function Me(s) {
  let a, r = (
    /*$_*/
    s[19]("confirmPasswordInvalid") + ""
  ), n;
  return {
    c() {
      a = y("p"), n = F(r), e(a, "class", "InvalidInput");
    },
    m(o, t) {
      T(o, a, t), l(a, n);
    },
    p(o, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      o[19]("confirmPasswordInvalid") + "") && S(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function xe(s) {
  let a, r, n;
  return {
    c() {
      a = y("div"), r = y("p"), n = F(
        /*errorPasswordChanged*/
        s[17]
      ), e(r, "class", "PasswordChangedError");
    },
    m(o, t) {
      T(o, a, t), l(a, r), l(r, n);
    },
    p(o, t) {
      t[0] & /*errorPasswordChanged*/
      131072 && S(
        n,
        /*errorPasswordChanged*/
        o[17]
      );
    },
    d(o) {
      o && k(a);
    }
  };
}
function wa(s) {
  let a;
  function r(t, i) {
    return Ke;
  }
  let o = r()(s);
  return {
    c() {
      a = y("div"), o.c();
    },
    m(t, i) {
      T(t, a, i), o.m(a, null), s[48](a);
    },
    p(t, i) {
      o.p(t, i);
    },
    i: ke,
    o: ke,
    d(t) {
      t && k(a), o.d(), s[48](null);
    }
  };
}
function fa(s, a, r) {
  let n;
  Ve(s, Ye, (w) => r(19, n = w));
  let { lang: o = "en" } = a, { simplepasswordvalidation: t = "false" } = a, { clientstyling: i = "" } = a, { clientstylingurl: d = "" } = a, { mbsource: f } = a, { translationurl: m = "" } = a, { passwordregex: g = "" } = a, c, p, v = window.navigator.userAgent, B = Le(v) !== "PC", _ = !1;
  window.matchMedia("(min-width: 768px)");
  const x = {
    password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
  };
  let h = !1, M = !1, O = !1, Z, j, z, G = !1, K = !1, E = !1, I = !1, C = "", W = "", H = "", oe = !1, fe = "", D = !1;
  const ge = () => {
    fetch(m).then((b) => b.json()).then((b) => {
      Object.keys(b).forEach((P) => {
        Te(P, b[P]);
      });
    }).catch((b) => {
      console.log(b);
    });
  };
  Object.keys(Be).forEach((w) => {
    Te(w, Be[w]);
  });
  const J = (w) => {
    switch (w) {
      case "userCurrentPassword":
        r(10, G = !G), r(7, Z.type = G ? "text" : "password", Z);
        break;
      case "userNewPassword":
        r(11, K = !K), r(8, j.type = K ? "text" : "password", j);
        break;
      case "userConfirmPassword":
        r(12, E = !E), r(9, z.type = E ? "text" : "password", z);
        break;
    }
  }, le = () => {
    t == "true" && (x.password = /^(?!.* ).{8,20}$/);
  }, pe = (w, b, P) => {
    P.id === "CurrentPassword" ? r(4, h = !X(b)) : P.id === "NewPassword" ? (r(5, M = !X(b)), C && r(13, I = C === W), H && r(6, O = W === H ? !X(b) : !0)) : r(6, O = W === H ? !X(b) : !0), se();
  }, X = (w) => !!x.password.test(w), se = () => {
    !h && !M && !O && !I && C && W && H ? r(3, _ = !0) : r(3, _ = !1);
  }, Q = (w) => {
    w.preventDefault(), _ && window.postMessage(
      {
        type: "ChangePassword",
        userCurrentPassword: C,
        userNewPassword: W
      },
      window.location.href
    );
  }, ee = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: B
      },
      window.location.href
    );
  }, ie = () => {
    window.postMessage({ type: "GoToHomepage" }, window.location.href);
  }, ne = () => {
    Ue(o);
  }, re = (w) => {
    if (w.data)
      switch (w.data.type) {
        case "PasswordChangedSuccessfully":
          r(2, oe = !0);
          break;
        case "ShowPasswordChangedError":
          r(18, D = w.data.showErrorPasswordChanged), r(17, fe = w.data.errorPasswordChanged);
          break;
      }
  };
  Ze(() => (window.addEventListener("message", re, !1), () => {
    window.removeEventListener("message", re);
  }));
  const me = () => ee();
  function he() {
    C = this.value, r(14, C);
  }
  function $(w) {
    Ce[w ? "unshift" : "push"](() => {
      Z = w, r(7, Z);
    });
  }
  const Pe = () => J("userCurrentPassword"), de = () => J("userCurrentPassword");
  function q() {
    W = this.value, r(15, W);
  }
  function N(w) {
    Ce[w ? "unshift" : "push"](() => {
      j = w, r(8, j);
    });
  }
  const ve = () => J("userNewPassword"), ce = () => J("userNewPassword");
  function Y() {
    H = this.value, r(16, H);
  }
  function be(w) {
    Ce[w ? "unshift" : "push"](() => {
      z = w, r(9, z);
    });
  }
  const ae = () => J("userConfirmPassword"), A = () => J("userConfirmPassword"), ye = (w) => Q(w), ue = () => ee(), U = () => ie();
  function V(w) {
    Ce[w ? "unshift" : "push"](() => {
      c = w, r(1, c);
    });
  }
  return s.$$set = (w) => {
    "lang" in w && r(26, o = w.lang), "simplepasswordvalidation" in w && r(0, t = w.simplepasswordvalidation), "clientstyling" in w && r(27, i = w.clientstyling), "clientstylingurl" in w && r(28, d = w.clientstylingurl), "mbsource" in w && r(29, f = w.mbsource), "translationurl" in w && r(30, m = w.translationurl), "passwordregex" in w && r(31, g = w.passwordregex);
  }, s.$$.update = () => {
    s.$$.dirty[0] & /*simplepasswordvalidation*/
    1 && t && le(), s.$$.dirty[1] & /*passwordregex*/
    1 && g && (x.password = new RegExp(g)), s.$$.dirty[0] & /*lang*/
    67108864 && o && ne(), s.$$.dirty[0] & /*passwordChanged*/
    4, s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    134217730 && i && c && De(c, i), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    268435458 && d && c && Oe(c, d), s.$$.dirty[0] & /*mbsource, customStylingContainer*/
    536870914 && f && c && He(c, `${f}.Style`, p), s.$$.dirty[0] & /*translationurl*/
    1073741824 && m && ge();
  }, [
    t,
    c,
    oe,
    _,
    h,
    M,
    O,
    Z,
    j,
    z,
    G,
    K,
    E,
    I,
    C,
    W,
    H,
    fe,
    D,
    n,
    B,
    J,
    pe,
    Q,
    ee,
    ie,
    o,
    i,
    d,
    f,
    m,
    g,
    me,
    he,
    $,
    Pe,
    de,
    q,
    N,
    ve,
    ce,
    Y,
    be,
    ae,
    A,
    ye,
    ue,
    U,
    V
  ];
}
class pa extends Se {
  constructor(a) {
    super(), Ee(
      this,
      a,
      fa,
      wa,
      Ne,
      {
        lang: 26,
        simplepasswordvalidation: 0,
        clientstyling: 27,
        clientstylingurl: 28,
        mbsource: 29,
        translationurl: 30,
        passwordregex: 31
      },
      Ge,
      [-1, -1]
    );
  }
  get lang() {
    return this.$$.ctx[26];
  }
  set lang(a) {
    this.$$set({ lang: a }), te();
  }
  get simplepasswordvalidation() {
    return this.$$.ctx[0];
  }
  set simplepasswordvalidation(a) {
    this.$$set({ simplepasswordvalidation: a }), te();
  }
  get clientstyling() {
    return this.$$.ctx[27];
  }
  set clientstyling(a) {
    this.$$set({ clientstyling: a }), te();
  }
  get clientstylingurl() {
    return this.$$.ctx[28];
  }
  set clientstylingurl(a) {
    this.$$set({ clientstylingurl: a }), te();
  }
  get mbsource() {
    return this.$$.ctx[29];
  }
  set mbsource(a) {
    this.$$set({ mbsource: a }), te();
  }
  get translationurl() {
    return this.$$.ctx[30];
  }
  set translationurl(a) {
    this.$$set({ translationurl: a }), te();
  }
  get passwordregex() {
    return this.$$.ctx[31];
  }
  set passwordregex(a) {
    this.$$set({ passwordregex: a }), te();
  }
}
qe(pa, { lang: {}, simplepasswordvalidation: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, passwordregex: {} }, [], [], !0);
export {
  pa as default
};
