import { E as compilerRuntimeExports, r as reactExports, j as jsxRuntimeExports } from "./vendor-react-DYNCg6N5.js";
import { L as LoginWraper } from "./index-q4s1wmSu.js";
import { R as RegistrationForm } from "./RegistrationForm-CuW4XnXz.js";
import { d as defaultMailServerPasswordOptions } from "./passwordOptions-b-kjbiiT.js";
import { c as useAppSelector } from "./index-DfebxkL9.js";
import { u as useTranslation, i as instance } from "./vendor-i18n-wisIXUFi.js";
import "./vendor-mantine-h0WlM2Mj.js";
import "./useGeneratePolicy-B4rO5xUa.js";
import "./passwordUtils-B3CN2t6O.js";
import "./types-espwwxTQ.js";
import "./validation-Ds00Zghx.js";
import "./vendor-icons-xWhXK_Ui.js";
const Register = () => {
  const $ = compilerRuntimeExports.c(12);
  const {
    t
  } = useTranslation();
  const {
    Settings
  } = useAppSelector(_temp);
  let t0;
  if ($[0] !== Settings) {
    t0 = () => {
      const localLanguage = localStorage.getItem("lng");
      if ((Settings == null ? void 0 : Settings.Culture) && Settings.Culture !== localLanguage) {
        localStorage.setItem("lng", Settings.Culture);
        instance.changeLanguage(Settings.Culture);
      }
    };
    $[0] = Settings;
    $[1] = t0;
  } else {
    t0 = $[1];
  }
  const t1 = Settings == null ? void 0 : Settings.Culture;
  let t2;
  if ($[2] !== t1) {
    t2 = [t1];
    $[2] = t1;
    $[3] = t2;
  } else {
    t2 = $[3];
  }
  reactExports.useEffect(t0, t2);
  let t3;
  if ($[4] !== t) {
    t3 = t("register.title");
    $[4] = t;
    $[5] = t3;
  } else {
    t3 = $[5];
  }
  let t4;
  if ($[6] !== t) {
    t4 = t("");
    $[6] = t;
    $[7] = t4;
  } else {
    t4 = $[7];
  }
  let t5;
  if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
    t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(RegistrationForm, { passwordStrengthOptions: defaultMailServerPasswordOptions });
    $[8] = t5;
  } else {
    t5 = $[8];
  }
  let t6;
  if ($[9] !== t3 || $[10] !== t4) {
    t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(LoginWraper, { title: t3, text: t4, children: t5 });
    $[9] = t3;
    $[10] = t4;
    $[11] = t6;
  } else {
    t6 = $[11];
  }
  return t6;
};
function _temp(state) {
  return state.userInfo;
}
export {
  Register
};
//# sourceMappingURL=index-EN60obZ7.js.map
