var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/authentication/admin/AuthMethods/constants.tsx
var constants_exports = {};
__export(constants_exports, {
  DEFAULT_AUTH_METHODS: () => DEFAULT_AUTH_METHODS,
  getDefaultAuthMethods: () => getDefaultAuthMethods,
  getPasswordRulesSetting: () => getPasswordRulesSetting
});
module.exports = __toCommonJS(constants_exports);
var import_react = __toESM(require("react"));
var import_icons = require("@ant-design/icons");
var import_utils = require("@pisell/utils");
var import_types = require("./types");
var getDefaultAuthMethods = () => [
  {
    id: "email",
    type: import_types.AuthMethodType.EMAIL,
    title: import_utils.locales.getText("auth.method.email.title") || "Email",
    category: import_types.AuthMethodCategory.GENERAL,
    description: import_utils.locales.getText("auth.method.email.description") || "Register and log in via email",
    icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MailOutlined, { style: { fontSize: 20, color: "#4096ff" } }),
    enabled: false,
    hasSettings: true
  },
  {
    id: "phone",
    type: import_types.AuthMethodType.PHONE,
    title: import_utils.locales.getText("auth.method.phone.title") || "Phone Number",
    category: import_types.AuthMethodCategory.GENERAL,
    description: import_utils.locales.getText("auth.method.phone.description") || "Register and log in via phone number",
    icon: /* @__PURE__ */ import_react.default.createElement(import_icons.PhoneOutlined, { style: { fontSize: 20, color: "#4096ff" } }),
    enabled: false,
    hasSettings: true
  },
  {
    id: "facebook",
    type: import_types.AuthMethodType.FACEBOOK,
    title: import_utils.locales.getText("auth.method.facebook.title") || "Facebook",
    category: import_types.AuthMethodCategory.OAUTH,
    description: import_utils.locales.getText("auth.method.facebook.description") || "Log in with Facebook account",
    icon: /* @__PURE__ */ import_react.default.createElement(import_icons.FacebookOutlined, { style: { fontSize: 20, color: "#1877f2" } }),
    enabled: false,
    hasSettings: false,
    requiresOAuthConfig: true,
    configLink: "auth.oauth.config.message"
  },
  {
    id: "apple",
    type: import_types.AuthMethodType.APPLE,
    title: import_utils.locales.getText("auth.method.apple.title") || "Apple",
    category: import_types.AuthMethodCategory.OAUTH,
    description: import_utils.locales.getText("auth.method.apple.description") || "Log in with Apple ID",
    icon: /* @__PURE__ */ import_react.default.createElement(import_icons.AppleOutlined, { style: { fontSize: 20, color: "#000000" } }),
    enabled: false,
    hasSettings: false,
    requiresOAuthConfig: true,
    configLink: "auth.oauth.config.message"
  },
  {
    id: "guest",
    type: import_types.AuthMethodType.GUEST,
    title: import_utils.locales.getText("auth.method.guest.title") || "Guest",
    category: import_types.AuthMethodCategory.AUTH_FREE,
    description: import_utils.locales.getText("auth.method.guest.description") || "Allow guests to access without registration process",
    icon: /* @__PURE__ */ import_react.default.createElement(import_icons.UserOutlined, { style: { fontSize: 20, color: "#8c8c8c" } }),
    enabled: false,
    hasSettings: false
  }
];
var DEFAULT_AUTH_METHODS = getDefaultAuthMethods();
var getPasswordRulesSetting = (id = "password_rules") => [
  {
    id,
    type: import_types.AuthMethodType.PASSWORD_RULES,
    title: import_utils.locales.getText("auth.password.rules.title") || "Password Rules",
    category: import_types.AuthMethodCategory.GENERAL,
    description: import_utils.locales.getText("auth.password.rules.description") || "Define password complexity requirements for accounts",
    icon: /* @__PURE__ */ import_react.default.createElement(import_icons.LockOutlined, { style: { fontSize: 20, color: "#4096ff" } }),
    enabled: true,
    hasSettings: true
  }
];
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  DEFAULT_AUTH_METHODS,
  getDefaultAuthMethods,
  getPasswordRulesSetting
});
