import { MagicLinkWrapper } from "./chunk-FURFN7BE.js"; import { getBasename } from "./chunk-QIJGNK42.js"; import "./chunk-7PUJSL55.js"; import "./chunk-N55RVBRV.js"; import { useIntl } from "./chunk-7XB6XSWQ.js"; import "./chunk-FOD4ENRR.js"; import "./chunk-WRD5KPDH.js"; import { require_jsx_runtime } from "./chunk-NIAJZ5MX.js"; import "./chunk-ACIMPXWY.js"; import "./chunk-MADUDGYZ.js"; import { __toESM } from "./chunk-PLDDJCW6.js"; // node_modules/@strapi/admin/dist/admin/ee/admin/src/pages/SettingsPage/pages/Users/components/MagicLinkEE.mjs var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); var MagicLinkEE = ({ registrationToken }) => { const { formatMessage } = useIntl(); if (registrationToken) { return (0, import_jsx_runtime.jsx)(MagicLinkWrapper, { target: `${window.location.origin}${getBasename()}/auth/register?registrationToken=${registrationToken}`, children: formatMessage({ id: "app.components.Users.MagicLink.connect", defaultMessage: "Copy and share this link to give access to this user" }) }); } return (0, import_jsx_runtime.jsx)(MagicLinkWrapper, { target: `${window.location.origin}${getBasename()}/auth/login`, children: formatMessage({ id: "app.components.Users.MagicLink.connect.sso", defaultMessage: "Send this link to the user, the first login can be made via a SSO provider." }) }); }; export { MagicLinkEE }; //# sourceMappingURL=MagicLinkEE-V6EKW7ZW.js.map