import { a as Re, $ as Ee, S as ze, i as Se, s as Ne, f as te, b as Ae, n as ke, d as T, c as B, e as C, g as Ve, h as Le, j as Ze, o as je, k as Ce, t as a, w as We, u as z, L as ue, p as o, x as L, O as _e, q as R, v as M, y as w, K as Ie, A as De, B as Oe, C as He, D as qe } from "./PlayerAccountControllerNd-DobNa2EP.js";
function Te(s, e) {
  Re(s, e);
}
function Ye(s) {
  Ee.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 Ue(s) {
  Ae(s, "svelte-1qk6bmp", '.PlayerChangePasswordWrapper{color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:50px;height:100vh;max-width:100%;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;max-width:400px;min-width:200px}.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);max-width:400px;min-width:200px;padding:13px 0;font-size:var(--emw--font-size-medium, 16px);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;display:flex;justify-content:center;text-transform:uppercase;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;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);width:auto;font-size:var(--emw--font-size-medium, 16px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{filter:brightness(0.9)}.PlayerChangePasswordWrapperMobile{height:75vh;max-width:unset;padding:20px 20px 40px 20px;display:flex;flex-flow:column;border-radius:0}.PlayerChangePasswordWrapperMobile:after{content:"";position:absolute;bottom:0}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBackButton{width:100%;max-width:none}.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--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}');
}
function Ge(s) {
  let e;
  function r(t, i) {
    return (
      /*passwordChanged*/
      t[2] ? Ke : Je
    );
  }
  let n = r(s), l = n(s);
  return {
    c() {
      e = C("form"), l.c(), a(e, "class", "PlayerChangePasswordWrapper " + /*isMobile*/
      (s[20] ? "PlayerChangePasswordWrapperMobile" : ""));
    },
    m(t, i) {
      B(t, e, i), l.m(e, null);
    },
    p(t, i) {
      n === (n = r(t)) && l ? l.p(t, i) : (l.d(1), l = n(t), l && (l.c(), l.m(e, null)));
    },
    d(t) {
      t && T(e), l.d();
    }
  };
}
function Ke(s) {
  let e, r, n, l = (
    /*$_*/
    s[19]("changePasswordText") + ""
  ), t, i, d, u, p, g, c, f, P = (
    /*$_*/
    s[19]("passwordReset") + ""
  ), k, b, F, h = (
    /*$_*/
    s[19]("passwordResetConfirmation") + ""
  ), x, O, Z, j = (
    /*$_*/
    s[19]("backButtonText") + ""
  ), E, G, K, S = (
    /*isMobile*/
    s[20] && Qe(s)
  );
  return {
    c() {
      S && S.c(), e = R(), r = C("div"), n = C("h3"), t = M(l), i = R(), d = C("div"), u = C("div"), p = C("div"), p.innerHTML = '<div class="Checkmark"></div>', g = R(), c = C("div"), f = C("h3"), k = M(P), b = R(), F = C("p"), x = M(h), O = R(), Z = C("div"), E = M(j), a(r, "class", "PlayerChangePasswordHeader"), a(p, "class", "IconContainer"), a(c, "class", "TextContainer"), a(u, "class", "SuccessWrapper"), a(Z, "class", "PlayerChangePasswordBackButton"), a(d, "class", "ChangedPasswordSuccessfully");
    },
    m(I, _) {
      S && S.m(I, _), B(I, e, _), B(I, r, _), o(r, n), o(n, t), B(I, i, _), B(I, d, _), o(d, u), o(u, p), o(u, g), o(u, c), o(c, f), o(f, k), o(c, b), o(c, F), o(F, x), o(d, O), o(d, Z), o(Z, E), G || (K = L(
        Z,
        "click",
        /*click_handler_9*/
        s[47]
      ), G = !0);
    },
    p(I, _) {
      /*isMobile*/
      I[20] && S.p(I, _), _[0] & /*$_*/
      524288 && l !== (l = /*$_*/
      I[19]("changePasswordText") + "") && z(t, l), _[0] & /*$_*/
      524288 && P !== (P = /*$_*/
      I[19]("passwordReset") + "") && z(k, P), _[0] & /*$_*/
      524288 && h !== (h = /*$_*/
      I[19]("passwordResetConfirmation") + "") && z(x, h), _[0] & /*$_*/
      524288 && j !== (j = /*$_*/
      I[19]("backButtonText") + "") && z(E, j);
    },
    d(I) {
      I && (T(e), T(r), T(i), T(d)), S && S.d(I), G = !1, K();
    }
  };
}
function Je(s) {
  let e, r, n = (
    /*$_*/
    s[19]("titleChangePassword") + ""
  ), l, t, i, d, u, p = (
    /*$_*/
    s[19]("currentPassword") + ""
  ), g, c, f, P, k, b, F, h, x, O = (
    /*$_*/
    s[19]("newPassword") + ""
  ), Z, j, E, G, K, S, I, _, W, H = (
    /*$_*/
    s[19]("confirmPassword") + ""
  ), oe, me, D, ge, J, le, fe, X, se, Q, ee = (
    /*$_*/
    s[19]("submitChangePassword") + ""
  ), ie, ne, re, pe, he, $ = (
    /*isMobile*/
    s[20] && Xe(s)
  );
  function Pe(y, v) {
    return (
      /*isCurrentPasswordVisible*/
      y[10] ? ea : $e
    );
  }
  let de = Pe(s), q = de(s), N = (
    /*invalidCurrentPassword*/
    s[4] && Fe(s)
  );
  function ve(y, v) {
    return (
      /*isNewPasswordVisible*/
      y[11] ? ta : ra
    );
  }
  let ce = ve(s), Y = ce(s);
  function be(y, v) {
    if (
      /*oldPasswordSameAsNew*/
      y[13]
    )
      return la;
    if (
      /*invalidNewPassword*/
      y[5]
    )
      return oa;
  }
  let ae = be(s), A = ae && ae(s);
  function ye(y, v) {
    return (
      /*isConfirmPasswordVisible*/
      y[12] ? ca : da
    );
  }
  let we = ye(s), U = we(s), V = (
    /*invalidConfirmPassword*/
    s[6] && Me(s)
  ), m = (
    /*showErrorPasswordChanged*/
    s[18] && xe(s)
  );
  return {
    c() {
      $ && $.c(), e = R(), r = C("h2"), l = M(n), t = R(), i = C("section"), d = C("div"), u = C("label"), g = M(p), c = R(), f = C("input"), P = R(), q.c(), k = R(), N && N.c(), F = R(), h = C("div"), x = C("label"), Z = M(O), j = R(), E = C("input"), G = R(), Y.c(), K = R(), A && A.c(), I = R(), _ = C("div"), W = C("label"), oe = M(H), me = R(), D = C("input"), ge = R(), U.c(), J = R(), V && V.c(), fe = R(), m && m.c(), X = R(), se = C("section"), Q = C("button"), ie = M(ee), a(r, "class", "ChangePasswordTitle " + /*isMobile*/
      (s[20] ? "ChangePasswordTitleNone" : "")), a(u, "for", "CurrentPassword"), a(f, "id", "CurrentPassword"), a(f, "type", "password"), a(d, "class", b = "PlayerChangePasswordBox " + /*invalidCurrentPassword*/
      (s[4] ? "InvalidField" : "")), a(x, "for", "NewPassword"), a(E, "id", "NewPassword"), a(E, "autocomplete", "new-password"), a(E, "type", "password"), a(h, "class", S = "PlayerChangePasswordBox " + /*invalidNewPassword*/
      (s[5] ? "InvalidField" : "")), a(W, "for", "ConfirmPassword"), a(D, "id", "ConfirmPassword"), a(D, "type", "password"), a(_, "class", le = "PlayerChangePasswordBox " + /*invalidConfirmPassword*/
      (s[6] ? "InvalidField" : "")), a(i, "class", "PlayerChangePasswordContent"), a(Q, "class", ne = "PlayerChangePasswordSaveButton " + /*activateSubmit*/
      (s[3] ? "" : "ButtonInactive")), Q.disabled = re = !/*activateSubmit*/
      s[3], a(se, "class", "PlayerChangePasswordButtonsArea");
    },
    m(y, v) {
      $ && $.m(y, v), B(y, e, v), B(y, r, v), o(r, l), B(y, t, v), B(y, i, v), o(i, d), o(d, u), o(u, g), o(d, c), o(d, f), ue(
        f,
        /*userCurrentPassword*/
        s[14]
      ), s[34](f), o(d, P), q.m(d, null), o(d, k), N && N.m(d, null), o(i, F), o(i, h), o(h, x), o(x, Z), o(h, j), o(h, E), ue(
        E,
        /*userNewPassword*/
        s[15]
      ), s[38](E), o(h, G), Y.m(h, null), o(h, K), A && A.m(h, null), o(i, I), o(i, _), o(_, W), o(W, oe), o(_, me), o(_, D), ue(
        D,
        /*userConfirmPassword*/
        s[16]
      ), s[42](D), o(_, ge), U.m(_, null), o(_, J), V && V.m(_, null), B(y, fe, v), m && m.m(y, v), B(y, X, v), B(y, se, v), o(se, Q), o(Q, ie), pe || (he = [
        L(
          f,
          "input",
          /*input0_input_handler*/
          s[33]
        ),
        L(f, "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(
          E,
          "input",
          /*input1_input_handler*/
          s[37]
        ),
        L(E, "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]
        )
      ], pe = !0);
    },
    p(y, v) {
      s = y, /*isMobile*/
      s[20] && $.p(s, v), v[0] & /*$_*/
      524288 && n !== (n = /*$_*/
      s[19]("titleChangePassword") + "") && z(l, n), v[0] & /*$_*/
      524288 && p !== (p = /*$_*/
      s[19]("currentPassword") + "") && z(g, p), v[0] & /*userCurrentPassword*/
      16384 && f.value !== /*userCurrentPassword*/
      s[14] && ue(
        f,
        /*userCurrentPassword*/
        s[14]
      ), de === (de = Pe(s)) && q ? q.p(s, v) : (q.d(1), q = de(s), q && (q.c(), q.m(d, k))), /*invalidCurrentPassword*/
      s[4] ? N ? N.p(s, v) : (N = Fe(s), N.c(), N.m(d, null)) : N && (N.d(1), N = null), v[0] & /*invalidCurrentPassword*/
      16 && b !== (b = "PlayerChangePasswordBox " + /*invalidCurrentPassword*/
      (s[4] ? "InvalidField" : "")) && a(d, "class", b), v[0] & /*$_*/
      524288 && O !== (O = /*$_*/
      s[19]("newPassword") + "") && z(Z, O), v[0] & /*userNewPassword*/
      32768 && E.value !== /*userNewPassword*/
      s[15] && ue(
        E,
        /*userNewPassword*/
        s[15]
      ), ce === (ce = ve(s)) && Y ? Y.p(s, v) : (Y.d(1), Y = ce(s), Y && (Y.c(), Y.m(h, K))), ae === (ae = be(s)) && A ? A.p(s, v) : (A && A.d(1), A = ae && ae(s), A && (A.c(), A.m(h, null))), v[0] & /*invalidNewPassword*/
      32 && S !== (S = "PlayerChangePasswordBox " + /*invalidNewPassword*/
      (s[5] ? "InvalidField" : "")) && a(h, "class", S), v[0] & /*$_*/
      524288 && H !== (H = /*$_*/
      s[19]("confirmPassword") + "") && z(oe, H), v[0] & /*userConfirmPassword*/
      65536 && D.value !== /*userConfirmPassword*/
      s[16] && ue(
        D,
        /*userConfirmPassword*/
        s[16]
      ), we === (we = ye(s)) && U ? U.p(s, v) : (U.d(1), U = we(s), U && (U.c(), U.m(_, J))), /*invalidConfirmPassword*/
      s[6] ? V ? V.p(s, v) : (V = Me(s), V.c(), V.m(_, null)) : V && (V.d(1), V = null), v[0] & /*invalidConfirmPassword*/
      64 && le !== (le = "PlayerChangePasswordBox " + /*invalidConfirmPassword*/
      (s[6] ? "InvalidField" : "")) && a(_, "class", le), /*showErrorPasswordChanged*/
      s[18] ? m ? m.p(s, v) : (m = xe(s), m.c(), m.m(X.parentNode, X)) : m && (m.d(1), m = null), v[0] & /*$_*/
      524288 && ee !== (ee = /*$_*/
      s[19]("submitChangePassword") + "") && z(ie, ee), v[0] & /*activateSubmit*/
      8 && ne !== (ne = "PlayerChangePasswordSaveButton " + /*activateSubmit*/
      (s[3] ? "" : "ButtonInactive")) && a(Q, "class", ne), v[0] & /*activateSubmit*/
      8 && re !== (re = !/*activateSubmit*/
      s[3]) && (Q.disabled = re);
    },
    d(y) {
      y && (T(e), T(r), T(t), T(i), T(fe), T(X), T(se)), $ && $.d(y), s[34](null), q.d(), N && N.d(), s[38](null), Y.d(), A && A.d(), s[42](null), U.d(), V && V.d(), m && m.d(y), pe = !1, We(he);
    }
  };
}
function Qe(s) {
  let e, r, n, l, t, i, d, u, p, g, c = (
    /*$_*/
    s[19]("returnToMenu") + ""
  ), f, P, k;
  return {
    c() {
      e = C("div"), r = w("svg"), n = w("defs"), l = w("style"), t = M(".aaa{fill:var(--emw--color-primary, #22B04E);;}"), i = w("g"), d = w("g"), u = w("path"), p = R(), g = C("span"), f = M(c), a(u, "class", "aaa"), a(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), a(u, "transform", "translate(15 15) rotate(180)"), a(d, "transform", "translate(20 158)"), a(i, "transform", "translate(-20 -158)"), a(r, "xmlns", "http://www.w3.org/2000/svg"), a(r, "width", "15"), a(r, "height", "15"), a(r, "viewBox", "0 0 15 15"), a(e, "class", "MenuReturnButton");
    },
    m(b, F) {
      B(b, e, F), o(e, r), o(r, n), o(n, l), o(l, t), o(r, i), o(i, d), o(d, u), o(e, p), o(e, g), o(g, f), P || (k = L(
        e,
        "click",
        /*click_handler_8*/
        s[46]
      ), P = !0);
    },
    p(b, F) {
      F[0] & /*$_*/
      524288 && c !== (c = /*$_*/
      b[19]("returnToMenu") + "") && z(f, c);
    },
    d(b) {
      b && T(e), P = !1, k();
    }
  };
}
function Xe(s) {
  let e, r, n, l, t, i, d, u, p, g, c = (
    /*$_*/
    s[19]("titleChangePassword") + ""
  ), f, P, k;
  return {
    c() {
      e = C("div"), r = w("svg"), n = w("defs"), l = w("style"), t = M(".aaa{fill:var(--emw--color-primary, #22B04E);;}"), i = w("g"), d = w("g"), u = w("path"), p = R(), g = C("h2"), f = M(c), a(u, "class", "aaa"), a(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), a(u, "transform", "translate(15 15) rotate(180)"), a(d, "transform", "translate(20 158)"), a(i, "transform", "translate(-20 -158)"), a(r, "xmlns", "http://www.w3.org/2000/svg"), a(r, "width", "15"), a(r, "height", "15"), a(r, "viewBox", "0 0 15 15"), a(g, "class", "ChangePasswordTitleMobile"), a(e, "class", "MenuReturnButton");
    },
    m(b, F) {
      B(b, e, F), o(e, r), o(r, n), o(n, l), o(l, t), o(r, i), o(i, d), o(d, u), o(e, p), o(e, g), o(g, f), P || (k = L(
        e,
        "click",
        /*click_handler*/
        s[32]
      ), P = !0);
    },
    p(b, F) {
      F[0] & /*$_*/
      524288 && c !== (c = /*$_*/
      b[19]("titleChangePassword") + "") && z(f, c);
    },
    d(b) {
      b && T(e), P = !1, k();
    }
  };
}
function $e(s) {
  let e, r, n, l, t, i, d, u, p, g;
  return {
    c() {
      e = w("svg"), r = w("defs"), n = w("style"), l = M(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("path"), d = w("circle"), a(i, "class", "a"), a(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"), a(i, "transform", "translate(0)"), a(d, "class", "a"), a(d, "cx", "2.779"), a(d, "cy", "2.779"), a(d, "r", "2.779"), a(d, "transform", "translate(20.827 30.303)"), a(t, "transform", "translate(-14.185 -27.832)"), a(e, "class", u = "TogglePasswordVisibility " + /*invalidCurrentPassword*/
      (s[4] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "18.843"), a(e, "height", "10.5"), a(e, "viewBox", "0 0 18.843 10.5");
    },
    m(c, f) {
      B(c, e, f), o(e, r), o(r, n), o(n, l), o(e, t), o(t, i), o(t, d), p || (g = L(
        e,
        "click",
        /*click_handler_2*/
        s[36]
      ), p = !0);
    },
    p(c, f) {
      f[0] & /*invalidCurrentPassword*/
      16 && u !== (u = "TogglePasswordVisibility " + /*invalidCurrentPassword*/
      (c[4] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (c[20] ? "TogglePasswordVisibilityMobile" : "")) && a(e, "class", u);
    },
    d(c) {
      c && T(e), p = !1, g();
    }
  };
}
function ea(s) {
  let e, r, n, l, t, i, d, u, p, g, c, f, P, k, b, F;
  return {
    c() {
      e = w("svg"), r = w("defs"), n = w("style"), l = M(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("circle"), d = w("g"), u = w("path"), p = w("path"), g = w("g"), c = w("path"), f = w("path"), P = w("rect"), a(i, "class", "a"), a(i, "cx", "0.05"), a(i, "cy", "0.05"), a(i, "r", "0.05"), a(i, "transform", "translate(121.017 31.148)"), a(u, "class", "a"), a(u, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), a(u, "transform", "translate(-142.164 -39.123)"), a(p, "class", "a"), a(p, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"), a(p, "transform", "translate(-136.413 -42.068)"), a(d, "transform", "translate(117.499 27.37)"), a(c, "class", "a"), a(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"), a(c, "transform", "translate(-110.856 -33.157)"), a(f, "class", "a"), a(f, "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"), a(f, "transform", "translate(-130.743 -29.617)"), a(g, "transform", "translate(110.856 24.899)"), a(P, "class", "a"), a(P, "width", "0.972"), a(P, "height", "15.861"), a(P, "rx", "0.486"), a(P, "transform", "translate(114.827 23.858) rotate(-39.315)"), a(t, "transform", "translate(-110.856 -23.242)"), a(e, "class", k = "TogglePasswordVisibility " + /*invalidCurrentPassword*/
      (s[4] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "18.844"), a(e, "height", "12.887"), a(e, "viewBox", "0 0 18.844 12.887");
    },
    m(h, x) {
      B(h, e, x), o(e, r), o(r, n), o(n, l), o(e, t), o(t, i), o(t, d), o(d, u), o(d, p), o(t, g), o(g, c), o(g, f), o(t, P), b || (F = L(
        e,
        "click",
        /*click_handler_1*/
        s[35]
      ), b = !0);
    },
    p(h, x) {
      x[0] & /*invalidCurrentPassword*/
      16 && k !== (k = "TogglePasswordVisibility " + /*invalidCurrentPassword*/
      (h[4] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (h[20] ? "TogglePasswordVisibilityMobile" : "")) && a(e, "class", k);
    },
    d(h) {
      h && T(e), b = !1, F();
    }
  };
}
function Fe(s) {
  let e;
  function r(t, i) {
    return (
      /*simplepasswordvalidation*/
      t[0] == "true" ? sa : aa
    );
  }
  let n = r(s), l = n(s);
  return {
    c() {
      l.c(), e = Ie();
    },
    m(t, i) {
      l.m(t, i), B(t, e, i);
    },
    p(t, i) {
      n === (n = r(t)) && l ? l.p(t, i) : (l.d(1), l = n(t), l && (l.c(), l.m(e.parentNode, e)));
    },
    d(t) {
      t && T(e), l.d(t);
    }
  };
}
function aa(s) {
  let e, r = (
    /*$_*/
    s[19]("invalidPasswordRule") + ""
  ), n;
  return {
    c() {
      e = C("p"), n = M(r), a(e, "class", "InvalidInput");
    },
    m(l, t) {
      B(l, e, t), o(e, n);
    },
    p(l, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      l[19]("invalidPasswordRule") + "") && z(n, r);
    },
    d(l) {
      l && T(e);
    }
  };
}
function sa(s) {
  let e, r = (
    /*$_*/
    s[19]("simplePasswordError") + ""
  ), n;
  return {
    c() {
      e = C("p"), n = M(r), a(e, "class", "InvalidInput");
    },
    m(l, t) {
      B(l, e, t), o(e, n);
    },
    p(l, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      l[19]("simplePasswordError") + "") && z(n, r);
    },
    d(l) {
      l && T(e);
    }
  };
}
function ra(s) {
  let e, r, n, l, t, i, d, u, p, g;
  return {
    c() {
      e = w("svg"), r = w("defs"), n = w("style"), l = M(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("path"), d = w("circle"), a(i, "class", "a"), a(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"), a(i, "transform", "translate(0)"), a(d, "class", "a"), a(d, "cx", "2.779"), a(d, "cy", "2.779"), a(d, "r", "2.779"), a(d, "transform", "translate(20.827 30.303)"), a(t, "transform", "translate(-14.185 -27.832)"), a(e, "class", u = "TogglePasswordVisibility " + /*invalidNewPassword*/
      (s[5] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "18.843"), a(e, "height", "10.5"), a(e, "viewBox", "0 0 18.843 10.5");
    },
    m(c, f) {
      B(c, e, f), o(e, r), o(r, n), o(n, l), o(e, t), o(t, i), o(t, d), p || (g = L(
        e,
        "click",
        /*click_handler_4*/
        s[40]
      ), p = !0);
    },
    p(c, f) {
      f[0] & /*invalidNewPassword*/
      32 && u !== (u = "TogglePasswordVisibility " + /*invalidNewPassword*/
      (c[5] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (c[20] ? "TogglePasswordVisibilityMobile" : "")) && a(e, "class", u);
    },
    d(c) {
      c && T(e), p = !1, g();
    }
  };
}
function ta(s) {
  let e, r, n, l, t, i, d, u, p, g, c, f, P, k, b, F;
  return {
    c() {
      e = w("svg"), r = w("defs"), n = w("style"), l = M(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("circle"), d = w("g"), u = w("path"), p = w("path"), g = w("g"), c = w("path"), f = w("path"), P = w("rect"), a(i, "class", "a"), a(i, "cx", "0.05"), a(i, "cy", "0.05"), a(i, "r", "0.05"), a(i, "transform", "translate(121.017 31.148)"), a(u, "class", "a"), a(u, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), a(u, "transform", "translate(-142.164 -39.123)"), a(p, "class", "a"), a(p, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"), a(p, "transform", "translate(-136.413 -42.068)"), a(d, "transform", "translate(117.499 27.37)"), a(c, "class", "a"), a(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"), a(c, "transform", "translate(-110.856 -33.157)"), a(f, "class", "a"), a(f, "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"), a(f, "transform", "translate(-130.743 -29.617)"), a(g, "transform", "translate(110.856 24.899)"), a(P, "class", "a"), a(P, "width", "0.972"), a(P, "height", "15.861"), a(P, "rx", "0.486"), a(P, "transform", "translate(114.827 23.858) rotate(-39.315)"), a(t, "transform", "translate(-110.856 -23.242)"), a(e, "class", k = "TogglePasswordVisibility " + /*invalidNewPassword*/
      (s[5] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "18.844"), a(e, "height", "12.887"), a(e, "viewBox", "0 0 18.844 12.887");
    },
    m(h, x) {
      B(h, e, x), o(e, r), o(r, n), o(n, l), o(e, t), o(t, i), o(t, d), o(d, u), o(d, p), o(t, g), o(g, c), o(g, f), o(t, P), b || (F = L(
        e,
        "click",
        /*click_handler_3*/
        s[39]
      ), b = !0);
    },
    p(h, x) {
      x[0] & /*invalidNewPassword*/
      32 && k !== (k = "TogglePasswordVisibility " + /*invalidNewPassword*/
      (h[5] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (h[20] ? "TogglePasswordVisibilityMobile" : "")) && a(e, "class", k);
    },
    d(h) {
      h && T(e), b = !1, F();
    }
  };
}
function oa(s) {
  let e;
  function r(t, i) {
    return (
      /*simplepasswordvalidation*/
      t[0] == "true" ? na : ia
    );
  }
  let n = r(s), l = n(s);
  return {
    c() {
      l.c(), e = Ie();
    },
    m(t, i) {
      l.m(t, i), B(t, e, i);
    },
    p(t, i) {
      n === (n = r(t)) && l ? l.p(t, i) : (l.d(1), l = n(t), l && (l.c(), l.m(e.parentNode, e)));
    },
    d(t) {
      t && T(e), l.d(t);
    }
  };
}
function la(s) {
  let e, r = (
    /*$_*/
    s[19]("invalidNewPassword") + ""
  ), n;
  return {
    c() {
      e = C("p"), n = M(r), a(e, "class", "InvalidInputNew");
    },
    m(l, t) {
      B(l, e, t), o(e, n);
    },
    p(l, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      l[19]("invalidNewPassword") + "") && z(n, r);
    },
    d(l) {
      l && T(e);
    }
  };
}
function ia(s) {
  let e, r = (
    /*$_*/
    s[19]("invalidPasswordRule") + ""
  ), n;
  return {
    c() {
      e = C("p"), n = M(r), a(e, "class", "InvalidInput");
    },
    m(l, t) {
      B(l, e, t), o(e, n);
    },
    p(l, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      l[19]("invalidPasswordRule") + "") && z(n, r);
    },
    d(l) {
      l && T(e);
    }
  };
}
function na(s) {
  let e, r = (
    /*$_*/
    s[19]("simplePasswordError") + ""
  ), n;
  return {
    c() {
      e = C("p"), n = M(r), a(e, "class", "InvalidInput");
    },
    m(l, t) {
      B(l, e, t), o(e, n);
    },
    p(l, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      l[19]("simplePasswordError") + "") && z(n, r);
    },
    d(l) {
      l && T(e);
    }
  };
}
function da(s) {
  let e, r, n, l, t, i, d, u, p, g;
  return {
    c() {
      e = w("svg"), r = w("defs"), n = w("style"), l = M(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("path"), d = w("circle"), a(i, "class", "a"), a(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"), a(i, "transform", "translate(0)"), a(d, "class", "a"), a(d, "cx", "2.779"), a(d, "cy", "2.779"), a(d, "r", "2.779"), a(d, "transform", "translate(20.827 30.303)"), a(t, "transform", "translate(-14.185 -27.832)"), a(e, "class", u = "TogglePasswordVisibility " + /*invalidConfirmPassword*/
      (s[6] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "18.843"), a(e, "height", "10.5"), a(e, "viewBox", "0 0 18.843 10.5");
    },
    m(c, f) {
      B(c, e, f), o(e, r), o(r, n), o(n, l), o(e, t), o(t, i), o(t, d), p || (g = L(
        e,
        "click",
        /*click_handler_6*/
        s[44]
      ), p = !0);
    },
    p(c, f) {
      f[0] & /*invalidConfirmPassword*/
      64 && u !== (u = "TogglePasswordVisibility " + /*invalidConfirmPassword*/
      (c[6] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (c[20] ? "TogglePasswordVisibilityMobile" : "")) && a(e, "class", u);
    },
    d(c) {
      c && T(e), p = !1, g();
    }
  };
}
function ca(s) {
  let e, r, n, l, t, i, d, u, p, g, c, f, P, k, b, F;
  return {
    c() {
      e = w("svg"), r = w("defs"), n = w("style"), l = M(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("circle"), d = w("g"), u = w("path"), p = w("path"), g = w("g"), c = w("path"), f = w("path"), P = w("rect"), a(i, "class", "a"), a(i, "cx", "0.05"), a(i, "cy", "0.05"), a(i, "r", "0.05"), a(i, "transform", "translate(121.017 31.148)"), a(u, "class", "a"), a(u, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), a(u, "transform", "translate(-142.164 -39.123)"), a(p, "class", "a"), a(p, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"), a(p, "transform", "translate(-136.413 -42.068)"), a(d, "transform", "translate(117.499 27.37)"), a(c, "class", "a"), a(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"), a(c, "transform", "translate(-110.856 -33.157)"), a(f, "class", "a"), a(f, "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"), a(f, "transform", "translate(-130.743 -29.617)"), a(g, "transform", "translate(110.856 24.899)"), a(P, "class", "a"), a(P, "width", "0.972"), a(P, "height", "15.861"), a(P, "rx", "0.486"), a(P, "transform", "translate(114.827 23.858) rotate(-39.315)"), a(t, "transform", "translate(-110.856 -23.242)"), a(e, "class", k = "TogglePasswordVisibility " + /*invalidConfirmPassword*/
      (s[6] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (s[20] ? "TogglePasswordVisibilityMobile" : "")), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "18.844"), a(e, "height", "12.887"), a(e, "viewBox", "0 0 18.844 12.887");
    },
    m(h, x) {
      B(h, e, x), o(e, r), o(r, n), o(n, l), o(e, t), o(t, i), o(t, d), o(d, u), o(d, p), o(t, g), o(g, c), o(g, f), o(t, P), b || (F = L(
        e,
        "click",
        /*click_handler_5*/
        s[43]
      ), b = !0);
    },
    p(h, x) {
      x[0] & /*invalidConfirmPassword*/
      64 && k !== (k = "TogglePasswordVisibility " + /*invalidConfirmPassword*/
      (h[6] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (h[20] ? "TogglePasswordVisibilityMobile" : "")) && a(e, "class", k);
    },
    d(h) {
      h && T(e), b = !1, F();
    }
  };
}
function Me(s) {
  let e, r = (
    /*$_*/
    s[19]("confirmPasswordInvalid") + ""
  ), n;
  return {
    c() {
      e = C("p"), n = M(r), a(e, "class", "InvalidInput");
    },
    m(l, t) {
      B(l, e, t), o(e, n);
    },
    p(l, t) {
      t[0] & /*$_*/
      524288 && r !== (r = /*$_*/
      l[19]("confirmPasswordInvalid") + "") && z(n, r);
    },
    d(l) {
      l && T(e);
    }
  };
}
function xe(s) {
  let e, r, n;
  return {
    c() {
      e = C("div"), r = C("p"), n = M(
        /*errorPasswordChanged*/
        s[17]
      ), a(r, "class", "PasswordChangedError");
    },
    m(l, t) {
      B(l, e, t), o(e, r), o(r, n);
    },
    p(l, t) {
      t[0] & /*errorPasswordChanged*/
      131072 && z(
        n,
        /*errorPasswordChanged*/
        l[17]
      );
    },
    d(l) {
      l && T(e);
    }
  };
}
function wa(s) {
  let e;
  function r(t, i) {
    return Ge;
  }
  let l = r()(s);
  return {
    c() {
      e = C("div"), l.c();
    },
    m(t, i) {
      B(t, e, i), l.m(e, null), s[48](e);
    },
    p(t, i) {
      l.p(t, i);
    },
    i: ke,
    o: ke,
    d(t) {
      t && T(e), l.d(), s[48](null);
    }
  };
}
function ua(s, e, r) {
  let n;
  Ve(s, Le, (m) => r(19, n = m));
  let { lang: l = "en" } = e, { simplepasswordvalidation: t = "false" } = e, { clientstyling: i = "" } = e, { clientstylingurl: d = "" } = e, { mbsource: u } = e, { translationurl: p = "" } = e, { passwordregex: g = "" } = e, c, f, P = window.navigator.userAgent, k = Ze(P) !== "PC", b = !1;
  window.matchMedia("(min-width: 768px)");
  const F = {
    password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
  };
  let h = !1, x = !1, O = !1, Z, j, E, G = !1, K = !1, S = !1, I = !1, _ = "", W = "", H = "", oe = !1, me = "", D = !1;
  const ge = () => {
    fetch(p).then((y) => y.json()).then((y) => {
      Object.keys(y).forEach((v) => {
        Te(v, y[v]);
      });
    }).catch((y) => {
      console.log(y);
    });
  };
  Object.keys(Be).forEach((m) => {
    Te(m, Be[m]);
  });
  const J = (m) => {
    switch (m) {
      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, S = !S), r(9, E.type = S ? "text" : "password", E);
        break;
    }
  }, le = () => {
    t == "true" && (F.password = /^(?!.* ).{8,20}$/);
  }, fe = (m, y, v) => {
    v.id === "CurrentPassword" ? y.length > 1e3 ? r(4, h = !0) : r(4, h = !1) : v.id === "NewPassword" ? (r(5, x = !X(y)), _ && r(13, I = _ === W), H && r(6, O = W === H ? !X(y) : !0)) : r(6, O = W === H ? !X(y) : !0), se();
  }, X = (m) => !!F.password.test(m), se = () => {
    !h && !x && !O && !I && _ && W && H ? r(3, b = !0) : r(3, b = !1);
  }, Q = (m) => {
    m.preventDefault(), b && window.postMessage(
      {
        type: "ChangePassword",
        userCurrentPassword: _,
        userNewPassword: W
      },
      window.location.href
    );
  }, ee = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: k
      },
      window.location.href
    );
  }, ie = () => {
    window.postMessage({ type: "GoToHomepage" }, window.location.href);
  }, ne = () => {
    Ye(l);
  }, re = (m) => {
    if (m.data)
      switch (m.data.type) {
        case "PasswordChangedSuccessfully":
          r(2, oe = !0);
          break;
        case "ShowPasswordChangedError":
          r(18, D = m.data.showErrorPasswordChanged), r(17, me = m.data.errorPasswordChanged);
          break;
      }
  };
  je(() => (window.addEventListener("message", re, !1), () => {
    window.removeEventListener("message", re);
  }));
  const pe = () => ee();
  function he() {
    _ = this.value, r(14, _);
  }
  function $(m) {
    Ce[m ? "unshift" : "push"](() => {
      Z = m, r(7, Z);
    });
  }
  const Pe = () => J("userCurrentPassword"), de = () => J("userCurrentPassword");
  function q() {
    W = this.value, r(15, W);
  }
  function N(m) {
    Ce[m ? "unshift" : "push"](() => {
      j = m, r(8, j);
    });
  }
  const ve = () => J("userNewPassword"), ce = () => J("userNewPassword");
  function Y() {
    H = this.value, r(16, H);
  }
  function be(m) {
    Ce[m ? "unshift" : "push"](() => {
      E = m, r(9, E);
    });
  }
  const ae = () => J("userConfirmPassword"), A = () => J("userConfirmPassword"), ye = (m) => Q(m), we = () => ee(), U = () => ie();
  function V(m) {
    Ce[m ? "unshift" : "push"](() => {
      c = m, r(1, c);
    });
  }
  return s.$$set = (m) => {
    "lang" in m && r(26, l = m.lang), "simplepasswordvalidation" in m && r(0, t = m.simplepasswordvalidation), "clientstyling" in m && r(27, i = m.clientstyling), "clientstylingurl" in m && r(28, d = m.clientstylingurl), "mbsource" in m && r(29, u = m.mbsource), "translationurl" in m && r(30, p = m.translationurl), "passwordregex" in m && r(31, g = m.passwordregex);
  }, s.$$.update = () => {
    s.$$.dirty[0] & /*simplepasswordvalidation*/
    1 && t && le(), s.$$.dirty[1] & /*passwordregex*/
    1 && g && (F.password = new RegExp(g)), s.$$.dirty[0] & /*lang*/
    67108864 && l && 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 && u && c && He(c, `${u}.Style`, f), s.$$.dirty[0] & /*translationurl*/
    1073741824 && p && ge();
  }, [
    t,
    c,
    oe,
    b,
    h,
    x,
    O,
    Z,
    j,
    E,
    G,
    K,
    S,
    I,
    _,
    W,
    H,
    me,
    D,
    n,
    k,
    J,
    fe,
    Q,
    ee,
    ie,
    l,
    i,
    d,
    u,
    p,
    g,
    pe,
    he,
    $,
    Pe,
    de,
    q,
    N,
    ve,
    ce,
    Y,
    be,
    ae,
    A,
    ye,
    we,
    U,
    V
  ];
}
class ma extends ze {
  constructor(e) {
    super(), Se(
      this,
      e,
      ua,
      wa,
      Ne,
      {
        lang: 26,
        simplepasswordvalidation: 0,
        clientstyling: 27,
        clientstylingurl: 28,
        mbsource: 29,
        translationurl: 30,
        passwordregex: 31
      },
      Ue,
      [-1, -1]
    );
  }
  get lang() {
    return this.$$.ctx[26];
  }
  set lang(e) {
    this.$$set({ lang: e }), te();
  }
  get simplepasswordvalidation() {
    return this.$$.ctx[0];
  }
  set simplepasswordvalidation(e) {
    this.$$set({ simplepasswordvalidation: e }), te();
  }
  get clientstyling() {
    return this.$$.ctx[27];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), te();
  }
  get clientstylingurl() {
    return this.$$.ctx[28];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), te();
  }
  get mbsource() {
    return this.$$.ctx[29];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), te();
  }
  get translationurl() {
    return this.$$.ctx[30];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), te();
  }
  get passwordregex() {
    return this.$$.ctx[31];
  }
  set passwordregex(e) {
    this.$$set({ passwordregex: e }), te();
  }
}
qe(ma, { lang: {}, simplepasswordvalidation: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, passwordregex: {} }, [], [], !0);
export {
  ma as default
};
