import { a as Re, $ as ze, S as Se, i as Ee, s as Ne, f as oe, b as Ae, n as ke, d as k, h as T, k as v, p as Ve, q as Le, u as Ze, w as Ce, e, r as je, c as E, V as ue, j as l, l as L, U as _e, m as z, t as I, v as w, H as Ie, Z as We, x as De, y as Oe, z as He, A as qe, B as Ue } from "./GeneralLogout-CCZ-t51N.js";
function Te(s, a) {
  Re(s, a);
}
function Ye(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 Je(s) {
  let a;
  function r(t, i) {
    return (
      /*passwordChanged*/
      t[2] ? Ke : Qe
    );
  }
  let n = r(s), o = n(s);
  return {
    c() {
      a = v("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 Ke(s) {
  let a, r, n, o = (
    /*$_*/
    s[19]("changePasswordText") + ""
  ), t, i, d, f, m, g, c, p, P = (
    /*$_*/
    s[19]("passwordReset") + ""
  ), C, B, R, h = (
    /*$_*/
    s[19]("passwordResetConfirmation") + ""
  ), x, j, Z, W = (
    /*$_*/
    s[19]("backButtonText") + ""
  ), S, G, J, N = (
    /*isMobile*/
    s[20] && Xe(s)
  );
  return {
    c() {
      N && N.c(), a = z(), r = v("div"), n = v("h3"), t = I(o), i = z(), d = v("div"), f = v("div"), m = v("div"), m.innerHTML = '<div class="Checkmark"></div>', g = z(), c = v("div"), p = v("h3"), C = I(P), B = z(), R = v("p"), x = I(h), j = z(), Z = v("div"), S = I(W), 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(F, y) {
      N && N.m(F, y), T(F, a, y), T(F, r, y), l(r, n), l(n, t), T(F, i, y), T(F, d, y), l(d, f), l(f, m), l(f, g), l(f, c), l(c, p), l(p, C), l(c, B), l(c, R), l(R, x), l(d, j), l(d, Z), l(Z, S), G || (J = L(
        Z,
        "click",
        /*click_handler_9*/
        s[47]
      ), G = !0);
    },
    p(F, y) {
      /*isMobile*/
      F[20] && N.p(F, y), y[0] & /*$_*/
      524288 && o !== (o = /*$_*/
      F[19]("changePasswordText") + "") && E(t, o), y[0] & /*$_*/
      524288 && P !== (P = /*$_*/
      F[19]("passwordReset") + "") && E(C, P), y[0] & /*$_*/
      524288 && h !== (h = /*$_*/
      F[19]("passwordResetConfirmation") + "") && E(x, h), y[0] & /*$_*/
      524288 && W !== (W = /*$_*/
      F[19]("backButtonText") + "") && E(S, W);
    },
    d(F) {
      F && (k(a), k(r), k(i), k(d)), N && N.d(F), G = !1, J();
    }
  };
}
function Qe(s) {
  let a, r, n = (
    /*$_*/
    s[19]("titleChangePassword") + ""
  ), o, t, i, d, f, m = (
    /*$_*/
    s[19]("currentPassword") + ""
  ), g, c, p, P, C, B, R, h, x, j = (
    /*$_*/
    s[19]("newPassword") + ""
  ), Z, W, S, G, J, N, F, y, D, ae = (
    /*$_*/
    s[19]("confirmPassword") + ""
  ), le, fe, O, K, pe, ie, X, se, $, H, re = (
    /*$_*/
    s[19]("submitChangePassword") + ""
  ), me, te, ne, ge, he, Q = (
    /*isMobile*/
    s[20] && $e(s)
  );
  function Pe(_, b) {
    return (
      /*isCurrentPasswordVisible*/
      _[10] ? aa : ea
    );
  }
  let de = Pe(s), q = de(s), A = (
    /*invalidCurrentPassword*/
    s[4] && Fe(s)
  );
  function ve(_, b) {
    return (
      /*isNewPasswordVisible*/
      _[11] ? oa : ta
    );
  }
  let ce = ve(s), U = ce(s);
  function be(_, b) {
    if (
      /*oldPasswordSameAsNew*/
      _[13]
    )
      return ia;
    if (
      /*invalidNewPassword*/
      _[5]
    )
      return la;
  }
  let ee = be(s), V = ee && ee(s);
  function ye(_, b) {
    return (
      /*isConfirmPasswordVisible*/
      _[12] ? wa : ca
    );
  }
  let we = ye(s), Y = we(s), u = (
    /*invalidConfirmPassword*/
    s[6] && Me(s)
  ), M = (
    /*showErrorPasswordChanged*/
    s[18] && xe(s)
  );
  return {
    c() {
      Q && Q.c(), a = z(), r = v("h2"), o = I(n), t = z(), i = v("section"), d = v("div"), f = v("label"), g = I(m), c = z(), p = v("input"), P = z(), q.c(), C = z(), A && A.c(), R = z(), h = v("div"), x = v("label"), Z = I(j), W = z(), S = v("input"), G = z(), U.c(), J = z(), V && V.c(), F = z(), y = v("div"), D = v("label"), le = I(ae), fe = z(), O = v("input"), K = z(), Y.c(), pe = z(), u && u.c(), X = z(), M && M.c(), se = z(), $ = v("section"), H = v("button"), me = I(re), e(r, "class", "ChangePasswordTitle " + /*isMobile*/
      (s[20] ? "ChangePasswordTitleNone" : "")), e(f, "for", "CurrentPassword"), e(p, "id", "CurrentPassword"), e(p, "type", "password"), e(d, "class", B = "PlayerChangePasswordBox " + /*invalidCurrentPassword*/
      (s[4] ? "InvalidField" : "")), e(x, "for", "NewPassword"), e(S, "id", "NewPassword"), e(S, "autocomplete", "new-password"), e(S, "type", "password"), e(h, "class", N = "PlayerChangePasswordBox " + /*invalidNewPassword*/
      (s[5] ? "InvalidField" : "")), e(D, "for", "ConfirmPassword"), e(O, "id", "ConfirmPassword"), e(O, "type", "password"), e(y, "class", ie = "PlayerChangePasswordBox " + /*invalidConfirmPassword*/
      (s[6] ? "InvalidField" : "")), e(i, "class", "PlayerChangePasswordContent"), e(H, "class", te = "PlayerChangePasswordSaveButton " + /*activateSubmit*/
      (s[3] ? "" : "ButtonInactive")), H.disabled = ne = !/*activateSubmit*/
      s[3], e($, "class", "PlayerChangePasswordButtonsArea");
    },
    m(_, b) {
      Q && Q.m(_, b), T(_, a, b), T(_, r, b), l(r, o), T(_, t, b), T(_, i, b), l(i, d), l(d, f), l(f, g), l(d, c), l(d, p), ue(
        p,
        /*userCurrentPassword*/
        s[14]
      ), s[34](p), l(d, P), q.m(d, null), l(d, C), A && A.m(d, null), l(i, R), l(i, h), l(h, x), l(x, Z), l(h, W), l(h, S), ue(
        S,
        /*userNewPassword*/
        s[15]
      ), s[38](S), l(h, G), U.m(h, null), l(h, J), V && V.m(h, null), l(i, F), l(i, y), l(y, D), l(D, le), l(y, fe), l(y, O), ue(
        O,
        /*userConfirmPassword*/
        s[16]
      ), s[42](O), l(y, K), Y.m(y, null), l(y, pe), u && u.m(y, null), T(_, X, b), M && M.m(_, b), T(_, se, b), T(_, $, b), l($, H), l(H, me), ge || (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(
          S,
          "input",
          /*input1_input_handler*/
          s[37]
        ),
        L(S, "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(
          O,
          "input",
          /*input2_input_handler*/
          s[41]
        ),
        L(O, "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(
          H,
          "click",
          /*click_handler_7*/
          s[45]
        )
      ], ge = !0);
    },
    p(_, b) {
      s = _, /*isMobile*/
      s[20] && Q.p(s, b), b[0] & /*$_*/
      524288 && n !== (n = /*$_*/
      s[19]("titleChangePassword") + "") && E(o, n), b[0] & /*$_*/
      524288 && m !== (m = /*$_*/
      s[19]("currentPassword") + "") && E(g, m), b[0] & /*userCurrentPassword*/
      16384 && p.value !== /*userCurrentPassword*/
      s[14] && ue(
        p,
        /*userCurrentPassword*/
        s[14]
      ), de === (de = Pe(s)) && q ? q.p(s, b) : (q.d(1), q = de(s), q && (q.c(), q.m(d, C))), /*invalidCurrentPassword*/
      s[4] ? A ? A.p(s, b) : (A = Fe(s), A.c(), A.m(d, null)) : A && (A.d(1), A = null), b[0] & /*invalidCurrentPassword*/
      16 && B !== (B = "PlayerChangePasswordBox " + /*invalidCurrentPassword*/
      (s[4] ? "InvalidField" : "")) && e(d, "class", B), b[0] & /*$_*/
      524288 && j !== (j = /*$_*/
      s[19]("newPassword") + "") && E(Z, j), b[0] & /*userNewPassword*/
      32768 && S.value !== /*userNewPassword*/
      s[15] && ue(
        S,
        /*userNewPassword*/
        s[15]
      ), ce === (ce = ve(s)) && U ? U.p(s, b) : (U.d(1), U = ce(s), U && (U.c(), U.m(h, J))), ee === (ee = be(s)) && V ? V.p(s, b) : (V && V.d(1), V = ee && ee(s), V && (V.c(), V.m(h, null))), b[0] & /*invalidNewPassword*/
      32 && N !== (N = "PlayerChangePasswordBox " + /*invalidNewPassword*/
      (s[5] ? "InvalidField" : "")) && e(h, "class", N), b[0] & /*$_*/
      524288 && ae !== (ae = /*$_*/
      s[19]("confirmPassword") + "") && E(le, ae), b[0] & /*userConfirmPassword*/
      65536 && O.value !== /*userConfirmPassword*/
      s[16] && ue(
        O,
        /*userConfirmPassword*/
        s[16]
      ), we === (we = ye(s)) && Y ? Y.p(s, b) : (Y.d(1), Y = we(s), Y && (Y.c(), Y.m(y, pe))), /*invalidConfirmPassword*/
      s[6] ? u ? u.p(s, b) : (u = Me(s), u.c(), u.m(y, null)) : u && (u.d(1), u = null), b[0] & /*invalidConfirmPassword*/
      64 && ie !== (ie = "PlayerChangePasswordBox " + /*invalidConfirmPassword*/
      (s[6] ? "InvalidField" : "")) && e(y, "class", ie), /*showErrorPasswordChanged*/
      s[18] ? M ? M.p(s, b) : (M = xe(s), M.c(), M.m(se.parentNode, se)) : M && (M.d(1), M = null), b[0] & /*$_*/
      524288 && re !== (re = /*$_*/
      s[19]("submitChangePassword") + "") && E(me, re), b[0] & /*activateSubmit*/
      8 && te !== (te = "PlayerChangePasswordSaveButton " + /*activateSubmit*/
      (s[3] ? "" : "ButtonInactive")) && e(H, "class", te), b[0] & /*activateSubmit*/
      8 && ne !== (ne = !/*activateSubmit*/
      s[3]) && (H.disabled = ne);
    },
    d(_) {
      _ && (k(a), k(r), k(t), k(i), k(X), k(se), k($)), Q && Q.d(_), s[34](null), q.d(), A && A.d(), s[38](null), U.d(), V && V.d(), s[42](null), Y.d(), u && u.d(), M && M.d(_), ge = !1, je(he);
    }
  };
}
function Xe(s) {
  let a, r, n, o, t, i, d = (
    /*$_*/
    s[19]("returnToMenu") + ""
  ), f, m, g;
  return {
    c() {
      a = v("div"), r = w("svg"), n = w("g"), o = w("path"), t = z(), i = v("span"), f = I(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") + "") && E(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, P, C;
  return {
    c() {
      a = v("div"), r = w("svg"), n = w("defs"), o = w("style"), t = I(".aaa{fill:var(--emw--color-primary, #22B04E);;}"), i = w("g"), d = w("g"), f = w("path"), m = z(), g = v("h2"), p = I(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(B, R) {
      T(B, a, R), 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), P || (C = L(
        a,
        "click",
        /*click_handler*/
        s[32]
      ), P = !0);
    },
    p(B, R) {
      R[0] & /*$_*/
      524288 && c !== (c = /*$_*/
      B[19]("titleChangePassword") + "") && E(p, c);
    },
    d(B) {
      B && k(a), P = !1, C();
    }
  };
}
function ea(s) {
  let a, r, n, o, t, i, d, f, m, g;
  return {
    c() {
      a = w("svg"), r = w("defs"), n = w("style"), o = I(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("path"), d = w("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, P, C, B, R;
  return {
    c() {
      a = w("svg"), r = w("defs"), n = w("style"), o = I(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("circle"), d = w("g"), f = w("path"), m = w("path"), g = w("g"), c = w("path"), p = w("path"), P = w("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(P, "class", "a"), e(P, "width", "0.972"), e(P, "height", "15.861"), e(P, "rx", "0.486"), e(P, "transform", "translate(114.827 23.858) rotate(-39.315)"), e(t, "transform", "translate(-110.856 -23.242)"), e(a, "class", C = "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, x) {
      T(h, a, x), 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, P), B || (R = L(
        a,
        "click",
        /*click_handler_1*/
        s[35]
      ), B = !0);
    },
    p(h, x) {
      x[0] & /*invalidCurrentPassword*/
      16 && C !== (C = "TogglePasswordVisibility " + /*invalidCurrentPassword*/
      (h[4] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (h[20] ? "TogglePasswordVisibilityMobile" : "")) && e(a, "class", C);
    },
    d(h) {
      h && k(a), B = !1, R();
    }
  };
}
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 = v("p"), n = I(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") + "") && E(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function ra(s) {
  let a, r = (
    /*$_*/
    s[19]("simplePasswordError") + ""
  ), n;
  return {
    c() {
      a = v("p"), n = I(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") + "") && E(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function ta(s) {
  let a, r, n, o, t, i, d, f, m, g;
  return {
    c() {
      a = w("svg"), r = w("defs"), n = w("style"), o = I(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("path"), d = w("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, P, C, B, R;
  return {
    c() {
      a = w("svg"), r = w("defs"), n = w("style"), o = I(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("circle"), d = w("g"), f = w("path"), m = w("path"), g = w("g"), c = w("path"), p = w("path"), P = w("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(P, "class", "a"), e(P, "width", "0.972"), e(P, "height", "15.861"), e(P, "rx", "0.486"), e(P, "transform", "translate(114.827 23.858) rotate(-39.315)"), e(t, "transform", "translate(-110.856 -23.242)"), e(a, "class", C = "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, x) {
      T(h, a, x), 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, P), B || (R = L(
        a,
        "click",
        /*click_handler_3*/
        s[39]
      ), B = !0);
    },
    p(h, x) {
      x[0] & /*invalidNewPassword*/
      32 && C !== (C = "TogglePasswordVisibility " + /*invalidNewPassword*/
      (h[5] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (h[20] ? "TogglePasswordVisibilityMobile" : "")) && e(a, "class", C);
    },
    d(h) {
      h && k(a), B = !1, R();
    }
  };
}
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 = v("p"), n = I(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") + "") && E(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function na(s) {
  let a, r = (
    /*$_*/
    s[19]("invalidPasswordRule") + ""
  ), n;
  return {
    c() {
      a = v("p"), n = I(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") + "") && E(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function da(s) {
  let a, r = (
    /*$_*/
    s[19]("simplePasswordError") + ""
  ), n;
  return {
    c() {
      a = v("p"), n = I(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") + "") && E(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function ca(s) {
  let a, r, n, o, t, i, d, f, m, g;
  return {
    c() {
      a = w("svg"), r = w("defs"), n = w("style"), o = I(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("path"), d = w("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 wa(s) {
  let a, r, n, o, t, i, d, f, m, g, c, p, P, C, B, R;
  return {
    c() {
      a = w("svg"), r = w("defs"), n = w("style"), o = I(".a{fill:var(--emw--color-white, #FFFFFF);}"), t = w("g"), i = w("circle"), d = w("g"), f = w("path"), m = w("path"), g = w("g"), c = w("path"), p = w("path"), P = w("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(P, "class", "a"), e(P, "width", "0.972"), e(P, "height", "15.861"), e(P, "rx", "0.486"), e(P, "transform", "translate(114.827 23.858) rotate(-39.315)"), e(t, "transform", "translate(-110.856 -23.242)"), e(a, "class", C = "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, x) {
      T(h, a, x), 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, P), B || (R = L(
        a,
        "click",
        /*click_handler_5*/
        s[43]
      ), B = !0);
    },
    p(h, x) {
      x[0] & /*invalidConfirmPassword*/
      64 && C !== (C = "TogglePasswordVisibility " + /*invalidConfirmPassword*/
      (h[6] ? "InvalidToggle" : "") + " " + /*isMobile*/
      (h[20] ? "TogglePasswordVisibilityMobile" : "")) && e(a, "class", C);
    },
    d(h) {
      h && k(a), B = !1, R();
    }
  };
}
function Me(s) {
  let a, r = (
    /*$_*/
    s[19]("confirmPasswordInvalid") + ""
  ), n;
  return {
    c() {
      a = v("p"), n = I(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") + "") && E(n, r);
    },
    d(o) {
      o && k(a);
    }
  };
}
function xe(s) {
  let a, r, n;
  return {
    c() {
      a = v("div"), r = v("p"), n = I(
        /*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 && E(
        n,
        /*errorPasswordChanged*/
        o[17]
      );
    },
    d(o) {
      o && k(a);
    }
  };
}
function ua(s) {
  let a;
  function r(t, i) {
    return Je;
  }
  let o = r()(s);
  return {
    c() {
      a = v("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, Ue, (u) => r(19, n = u));
  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 = window.navigator.userAgent, P = Le(p) !== "PC", C = !1;
  window.matchMedia("(min-width: 768px)");
  const B = {
    password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
  };
  let R = !1, h = !1, x = !1, j, Z, W, S = !1, G = !1, J = !1, N = !1, F = "", y = "", D = "", ae = !1, le = "", fe = !1;
  const O = () => {
    fetch(m).then((M) => M.json()).then((M) => {
      Object.keys(M).forEach((_) => {
        Te(_, M[_]);
      });
    }).catch((M) => {
      console.log(M);
    });
  };
  Object.keys(Be).forEach((u) => {
    Te(u, Be[u]);
  });
  const K = (u) => {
    switch (u) {
      case "userCurrentPassword":
        r(10, S = !S), r(7, j.type = S ? "text" : "password", j);
        break;
      case "userNewPassword":
        r(11, G = !G), r(8, Z.type = G ? "text" : "password", Z);
        break;
      case "userConfirmPassword":
        r(12, J = !J), r(9, W.type = J ? "text" : "password", W);
        break;
    }
  }, pe = () => {
    t == "true" && (B.password = /^(?!.* ).{8,20}$/);
  }, ie = (u, M, _) => {
    _.id === "CurrentPassword" ? r(4, R = !X(M)) : _.id === "NewPassword" ? (r(5, h = !X(M)), F && r(13, N = F === y), D && r(6, x = y === D ? !X(M) : !0)) : r(6, x = y === D ? !X(M) : !0), se();
  }, X = (u) => !!B.password.test(u), se = () => {
    !R && !h && !x && !N && F && y && D ? r(3, C = !0) : r(3, C = !1);
  }, $ = (u) => {
    u.preventDefault(), C && window.postMessage(
      {
        type: "ChangePassword",
        userCurrentPassword: F,
        userNewPassword: y
      },
      window.location.href
    );
  }, H = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: P
      },
      window.location.href
    );
  }, re = () => {
    window.postMessage({ type: "GoToHomepage" }, window.location.href);
  }, me = () => {
    Ye(o);
  }, te = (u) => {
    if (u.data)
      switch (u.data.type) {
        case "PasswordChangedSuccessfully":
          r(2, ae = !0);
          break;
        case "ShowPasswordChangedError":
          r(18, fe = u.data.showErrorPasswordChanged), r(17, le = u.data.errorPasswordChanged);
          break;
      }
  };
  Ze(() => (window.addEventListener("message", te, !1), () => {
    window.removeEventListener("message", te);
  }));
  const ne = () => H();
  function ge() {
    F = this.value, r(14, F);
  }
  function he(u) {
    Ce[u ? "unshift" : "push"](() => {
      j = u, r(7, j);
    });
  }
  const Q = () => K("userCurrentPassword"), Pe = () => K("userCurrentPassword");
  function de() {
    y = this.value, r(15, y);
  }
  function q(u) {
    Ce[u ? "unshift" : "push"](() => {
      Z = u, r(8, Z);
    });
  }
  const A = () => K("userNewPassword"), ve = () => K("userNewPassword");
  function ce() {
    D = this.value, r(16, D);
  }
  function U(u) {
    Ce[u ? "unshift" : "push"](() => {
      W = u, r(9, W);
    });
  }
  const be = () => K("userConfirmPassword"), ee = () => K("userConfirmPassword"), V = (u) => $(u), ye = () => H(), we = () => re();
  function Y(u) {
    Ce[u ? "unshift" : "push"](() => {
      c = u, r(1, c);
    });
  }
  return s.$$set = (u) => {
    "lang" in u && r(26, o = u.lang), "simplepasswordvalidation" in u && r(0, t = u.simplepasswordvalidation), "clientstyling" in u && r(27, i = u.clientstyling), "clientstylingurl" in u && r(28, d = u.clientstylingurl), "mbsource" in u && r(29, f = u.mbsource), "translationurl" in u && r(30, m = u.translationurl), "passwordregex" in u && r(31, g = u.passwordregex);
  }, s.$$.update = () => {
    s.$$.dirty[0] & /*simplepasswordvalidation*/
    1 && t && pe(), s.$$.dirty[1] & /*passwordregex*/
    1 && g && (B.password = new RegExp(g)), s.$$.dirty[0] & /*lang*/
    67108864 && o && me(), 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`), s.$$.dirty[0] & /*translationurl*/
    1073741824 && m && O();
  }, [
    t,
    c,
    ae,
    C,
    R,
    h,
    x,
    j,
    Z,
    W,
    S,
    G,
    J,
    N,
    F,
    y,
    D,
    le,
    fe,
    n,
    P,
    K,
    ie,
    $,
    H,
    re,
    o,
    i,
    d,
    f,
    m,
    g,
    ne,
    ge,
    he,
    Q,
    Pe,
    de,
    q,
    A,
    ve,
    ce,
    U,
    be,
    ee,
    V,
    ye,
    we,
    Y
  ];
}
class pa extends Se {
  constructor(a) {
    super(), Ee(
      this,
      a,
      fa,
      ua,
      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 }), oe();
  }
  get simplepasswordvalidation() {
    return this.$$.ctx[0];
  }
  set simplepasswordvalidation(a) {
    this.$$set({ simplepasswordvalidation: a }), oe();
  }
  get clientstyling() {
    return this.$$.ctx[27];
  }
  set clientstyling(a) {
    this.$$set({ clientstyling: a }), oe();
  }
  get clientstylingurl() {
    return this.$$.ctx[28];
  }
  set clientstylingurl(a) {
    this.$$set({ clientstylingurl: a }), oe();
  }
  get mbsource() {
    return this.$$.ctx[29];
  }
  set mbsource(a) {
    this.$$set({ mbsource: a }), oe();
  }
  get translationurl() {
    return this.$$.ctx[30];
  }
  set translationurl(a) {
    this.$$set({ translationurl: a }), oe();
  }
  get passwordregex() {
    return this.$$.ctx[31];
  }
  set passwordregex(a) {
    this.$$set({ passwordregex: a }), oe();
  }
}
qe(pa, { lang: {}, simplepasswordvalidation: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, passwordregex: {} }, [], [], !0);
export {
  pa as default
};
