import { R as ROUTES, aC as GearIcon, aD as UsersIcon, aF as MailIcon, aG as SendIcon, aI as inviteUserIcon, a2 as DriveIcon } from "./index-DfebxkL9.js";
import { i as instance } from "./vendor-i18n-wisIXUFi.js";
instance.t("statistics.activity");
[
  {
    label: instance.t("filials.settings.general"),
    icon: GearIcon,
    value: ROUTES.filials.edit.pages.common.settings
  },
  {
    label: instance.t("filials.settings.auth"),
    icon: UsersIcon,
    value: ROUTES.filials.edit.pages.auth.ldap
  },
  // { label: 'Настройка SMTP', icon: MailIcon, value: ROUTES.filials.edit.pages.common.smtp },
  {
    label: instance.t("servers.title"),
    icon: MailIcon,
    value: ROUTES.filials.edit.pages.common.mailServers
  },
  {
    label: instance.t("filials.settings.linkSettings"),
    icon: SendIcon,
    value: ROUTES.filials.edit.pages.common.mailingSetup
  },
  {
    label: instance.t("register.title"),
    icon: inviteUserIcon,
    value: ROUTES.filials.edit.pages.auth.invite
  },
  {
    label: instance.t("profile.retentionPolicy"),
    icon: DriveIcon,
    value: ROUTES.filials.edit.pages.common.diskSpace
  }
  // {
  //   label: 'Импорт пользователей',
  //   icon: LinkIcon,
  //   value: ROUTES.filials.edit.pages.common.importUsers
  // }
];
const AuthTypeSelectOptions = [{
  label: "Plain",
  value: 0 .toString()
}, {
  label: "Login",
  value: 1 .toString()
}, {
  label: "ANONYMOUS",
  value: 2 .toString()
}, {
  label: "NTLM",
  value: 3 .toString()
}, {
  label: "XOAUTH2",
  value: 4 .toString()
}];
var emailServerConnectionType = /* @__PURE__ */ ((emailServerConnectionType2) => {
  emailServerConnectionType2[emailServerConnectionType2["None"] = 0] = "None";
  emailServerConnectionType2[emailServerConnectionType2["Auto"] = 1] = "Auto";
  emailServerConnectionType2[emailServerConnectionType2["SslOnConnect"] = 2] = "SslOnConnect";
  emailServerConnectionType2[emailServerConnectionType2["StartTls"] = 3] = "StartTls";
  emailServerConnectionType2[emailServerConnectionType2["StartTlsWhenAvailable"] = 4] = "StartTlsWhenAvailable";
  return emailServerConnectionType2;
})(emailServerConnectionType || {});
const ConnectionTypeOptions = [{
  label: "None",
  value: 0 .toString()
}, {
  label: "Auto",
  value: 1 .toString()
}, {
  label: "SslOnConnect",
  value: 2 .toString()
}, {
  label: "StartTls",
  value: 3 .toString()
}, {
  label: "StartTlsWhenAvailable",
  value: 4 .toString()
}];
const EntityTypeDictionary = {
  3: {
    label: instance.t("entity.type.directory")
  },
  34: {
    label: instance.t("entity.type.role")
  },
  47: {
    label: instance.t("entity.type.room")
  },
  5: {
    label: instance.t("entity.type.user")
  }
};
function getEntityTypeFromUrl(url) {
  if (/(common|docs|shared-to-me|shared-access|favorites)/.test(url)) {
    return 3;
  } else if (/roles/.test(url)) {
    return 34;
  } else if (/rooms/.test(url)) {
    return 47;
  } else if (/profile/.test(url)) {
    return 5;
  }
  return null;
}
export {
  AuthTypeSelectOptions as A,
  ConnectionTypeOptions as C,
  EntityTypeDictionary as E,
  emailServerConnectionType as e,
  getEntityTypeFromUrl as g
};
//# sourceMappingURL=utiils-DzEu0_6s.js.map
