try {
	let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
	n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a42d02f4-7aa3-4607-85b3-1dc0e3c243da", e._sentryDebugIdIdentifier = "sentry-dbid-a42d02f4-7aa3-4607-85b3-1dc0e3c243da");
} catch (e) {}
import { a as Icon } from "./translation-Br5wIPO-.js";
import cx from "classnames";
import { jsx, jsxs } from "preact/jsx-runtime";
var Link_module_default = {
	link: "adyen-kyc-link",
	"link-default": "adyen-kyc-link-default",
	linkDefault: "adyen-kyc-link-default",
	"link-inline": "adyen-kyc-link-inline",
	linkInline: "adyen-kyc-link-inline"
};
//#endregion
//#region src/components/ui/atoms/Link/Link.tsx
var Link = ({ children, external = false, href, inline = false }) => {
	const rel = external ? "external noopener noreferrer" : void 0;
	const target = external ? "_blank" : "_self";
	return /* @__PURE__ */ jsxs("a", {
		className: cx(Link_module_default.link, {
			[Link_module_default.linkInline]: inline,
			[Link_module_default.linkDefault]: !inline
		}),
		href,
		rel,
		target,
		children: [children, external && !inline && /* @__PURE__ */ jsx(Icon, { name: "external-link" })]
	});
};
//#endregion
export { Link as t };
