import { Body, Button, Container, Head, Heading, Hr, Html, Img, Link, Preview, Section, Tailwind, Text } from "@react-email/components";
import { jsx, jsxs } from "react/jsx-runtime";

//#region src/emails/OAuthTokenCreatedEmail.tsx
const OAuthTokenCreatedEmailEN = ({ username, applicationName, scopes, tokenDetailsUrl, securityLogUrl, supportUrl }) => {
	return /* @__PURE__ */ jsxs(Html, { children: [
		/* @__PURE__ */ jsx(Head, {}),
		/* @__PURE__ */ jsx(Preview, { children: `A third-party OAuth access key has been added to your Intlayer account` }),
		/* @__PURE__ */ jsx(Tailwind, { children: /* @__PURE__ */ jsx(Body, {
			className: "m-auto px-2 font-sans",
			children: /* @__PURE__ */ jsxs(Container, {
				className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-[#eaeaea] border-solid bg-white p-[20px]",
				children: [
					/* @__PURE__ */ jsx(Section, {
						className: "mt-[32px]",
						children: /* @__PURE__ */ jsx(Img, {
							src: "https://intlayer.org/apple-touch-icon.png",
							width: "40",
							height: "37",
							alt: "Intlayer",
							className: "mx-auto my-0"
						})
					}),
					/* @__PURE__ */ jsx(Heading, {
						className: "mx-0 my-[30px] p-0 text-center font-normal text-[24px] text-black",
						children: "A third-party OAuth access key has been added to your account"
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"Hey ",
							username,
							"!"
						]
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"A third-party OAuth access key (",
							/* @__PURE__ */ jsx("strong", { children: applicationName }),
							") with the following permissions was recently authorized to access your account:",
							/* @__PURE__ */ jsx("ul", { children: scopes.map((scope) => /* @__PURE__ */ jsx("li", { children: scope }, scope)) })
						]
					}),
					/* @__PURE__ */ jsx(Section, {
						className: "my-[32px] text-center",
						children: /* @__PURE__ */ jsx(Button, {
							className: "rounded-md bg-[#000000] px-5 py-3 text-center font-semibold text-[12px] text-white no-underline",
							href: tokenDetailsUrl,
							children: "View Application Details"
						})
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"To see this and other security events for your account, visit",
							" ",
							/* @__PURE__ */ jsx(Link, {
								href: securityLogUrl,
								className: "text-[#000000] no-underline",
								children: "your security log"
							}),
							"."
						]
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"If you run into problems, please contact support by visiting",
							" ",
							/* @__PURE__ */ jsx(Link, {
								href: supportUrl,
								className: "text-[#000000] no-underline",
								children: "our support page"
							}),
							"."
						]
					}),
					/* @__PURE__ */ jsx(Hr, { className: "mx-0 my-[26px] w-full border border-[#eaeaea] border-solid" }),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[#666666] text-[12px] leading-[24px]",
						children: [
							"This email was intended for",
							" ",
							/* @__PURE__ */ jsx("span", {
								className: "text-black",
								children: username
							}),
							". If you were not expecting this email, you can ignore it. If you are concerned about your account's safety, please reply to this email to get in touch with us."
						]
					})
				]
			})
		}) })
	] });
};
const OAuthTokenCreatedEmailFR = ({ username, applicationName, scopes, tokenDetailsUrl, securityLogUrl, supportUrl }) => {
	return /* @__PURE__ */ jsxs(Html, { children: [
		/* @__PURE__ */ jsx(Head, {}),
		/* @__PURE__ */ jsx(Preview, { children: `Une application OAuth tierce a été ajoutée à votre compte Intlayer` }),
		/* @__PURE__ */ jsx(Tailwind, { children: /* @__PURE__ */ jsx(Body, {
			className: "m-auto px-2 font-sans",
			children: /* @__PURE__ */ jsxs(Container, {
				className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-[#eaeaea] border-solid bg-white p-[20px]",
				children: [
					/* @__PURE__ */ jsx(Section, {
						className: "mt-[32px]",
						children: /* @__PURE__ */ jsx(Img, {
							src: "https://intlayer.org/apple-touch-icon.png",
							width: "40",
							height: "37",
							alt: "Intlayer",
							className: "mx-auto my-0"
						})
					}),
					/* @__PURE__ */ jsx(Heading, {
						className: "mx-0 my-[30px] p-0 text-center font-normal text-[24px] text-black",
						children: "Une application OAuth tierce a été ajoutée à votre compte"
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"Salut ",
							username,
							" !"
						]
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"Une application OAuth tierce (",
							/* @__PURE__ */ jsx("strong", { children: applicationName }),
							") avec les permissions ",
							scopes.join(", "),
							" a récemment été autorisée à accéder à votre compte."
						]
					}),
					/* @__PURE__ */ jsx(Section, {
						className: "my-[32px] text-center",
						children: /* @__PURE__ */ jsx(Button, {
							className: "rounded-md bg-[#000000] px-5 py-3 text-center font-semibold text-[12px] text-white no-underline",
							href: tokenDetailsUrl,
							children: "Voir les détails de l'application"
						})
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"Pour voir cet événement et d'autres événements de sécurité pour votre compte, visitez",
							" ",
							/* @__PURE__ */ jsx(Link, {
								href: securityLogUrl,
								className: "text-[#000000] no-underline",
								children: "votre journal de sécurité"
							}),
							"."
						]
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"Si vous rencontrez des problèmes, veuillez contacter le support en visitant",
							" ",
							/* @__PURE__ */ jsx(Link, {
								href: supportUrl,
								className: "text-[#000000] no-underline",
								children: "notre page de support"
							}),
							"."
						]
					}),
					/* @__PURE__ */ jsx(Hr, { className: "mx-0 my-[26px] w-full border border-[#eaeaea] border-solid" }),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[#666666] text-[12px] leading-[24px]",
						children: [
							"Cet e-mail était destiné à",
							" ",
							/* @__PURE__ */ jsx("span", {
								className: "text-black",
								children: username
							}),
							". Si vous n'attendiez pas cet e-mail, vous pouvez l'ignorer. Si vous êtes préoccupé par la sécurité de votre compte, veuillez répondre à cet e-mail pour nous contacter."
						]
					})
				]
			})
		}) })
	] });
};
const OAuthTokenCreatedEmailES = ({ username, applicationName, scopes, tokenDetailsUrl, securityLogUrl, supportUrl }) => {
	return /* @__PURE__ */ jsxs(Html, { children: [
		/* @__PURE__ */ jsx(Head, {}),
		/* @__PURE__ */ jsx(Preview, { children: `Se ha añadido una aplicación OAuth de terceros a tu cuenta de Intlayer` }),
		/* @__PURE__ */ jsx(Tailwind, { children: /* @__PURE__ */ jsx(Body, {
			className: "m-auto px-2 font-sans",
			children: /* @__PURE__ */ jsxs(Container, {
				className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-[#eaeaea] border-solid bg-white p-[20px]",
				children: [
					/* @__PURE__ */ jsx(Section, {
						className: "mt-[32px]",
						children: /* @__PURE__ */ jsx(Img, {
							src: "https://intlayer.org/apple-touch-icon.png",
							width: "40",
							height: "37",
							alt: "Intlayer",
							className: "mx-auto my-0"
						})
					}),
					/* @__PURE__ */ jsx(Heading, {
						className: "mx-0 my-[30px] p-0 text-center font-normal text-[24px] text-black",
						children: "Se ha añadido una aplicación OAuth de terceros a tu cuenta"
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"¡Hola ",
							username,
							"!"
						]
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"Una aplicación OAuth de terceros (",
							/* @__PURE__ */ jsx("strong", { children: applicationName }),
							") con permisos",
							" ",
							scopes.join(", "),
							" fue recientemente autorizada para acceder a tu cuenta."
						]
					}),
					/* @__PURE__ */ jsx(Section, {
						className: "my-[32px] text-center",
						children: /* @__PURE__ */ jsx(Button, {
							className: "rounded-md bg-[#000000] px-5 py-3 text-center font-semibold text-[12px] text-white no-underline",
							href: tokenDetailsUrl,
							children: "Ver detalles de la aplicación"
						})
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"Para ver este y otros eventos de seguridad para tu cuenta, visita",
							" ",
							/* @__PURE__ */ jsx(Link, {
								href: securityLogUrl,
								className: "text-[#000000] no-underline",
								children: "tu registro de seguridad"
							}),
							"."
						]
					}),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[14px] text-black leading-[24px]",
						children: [
							"Si tienes problemas, por favor contacta al soporte visitando",
							" ",
							/* @__PURE__ */ jsx(Link, {
								href: supportUrl,
								className: "text-[#000000] no-underline",
								children: "nuestra página de soporte"
							}),
							"."
						]
					}),
					/* @__PURE__ */ jsx(Hr, { className: "mx-0 my-[26px] w-full border border-[#eaeaea] border-solid" }),
					/* @__PURE__ */ jsxs(Text, {
						className: "text-[#666666] text-[12px] leading-[24px]",
						children: [
							"Este correo fue enviado a",
							" ",
							/* @__PURE__ */ jsx("span", {
								className: "text-black",
								children: username
							}),
							". Si no esperabas este correo, puedes ignorarlo. Si estás preocupado por la seguridad de tu cuenta, por favor responde a este correo para contactarte con nosotros."
						]
					})
				]
			})
		}) })
	] });
};
const previewProps = {
	username: "aymericzip",
	applicationName: "Postman",
	scopes: ["read:user", "user:email"],
	tokenDetailsUrl: "https://intlayer.org/settings/connections/applications/Ov23li230j1cbJfa4SPW",
	securityLogUrl: "https://intlayer.org/settings/security-log",
	supportUrl: "https://intlayer.org/contact"
};
OAuthTokenCreatedEmailEN.PreviewProps = previewProps;
OAuthTokenCreatedEmailFR.PreviewProps = previewProps;
OAuthTokenCreatedEmailES.PreviewProps = previewProps;

//#endregion
export { OAuthTokenCreatedEmailEN, OAuthTokenCreatedEmailES, OAuthTokenCreatedEmailFR };
//# sourceMappingURL=OAuthTokenCreatedEmail.mjs.map