/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

import { __toESM } from "../../../_virtual/_rolldown/runtime.js";
import { require_classnames } from "../../../node_modules/classnames/index.js";
import { pkg } from "../../../settings.js";
import { getDevtoolsProps } from "../../../global/js/utils/devtools.js";
import { HTTPErrorSvg403 } from "../assets/HTTPErrorSvg403.js";
import { HTTPErrorContent } from "../HTTPErrorContent.js";
import React from "react";
import { arrayOf, shape, string } from "prop-types";

//#region src/components/HTTPErrors/HTTPError403/HTTPError403.tsx
/**
* Copyright IBM Corp. 2021, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
const blockClass = `${pkg.prefix}--http-errors`;
const componentName = "HTTPError403";
/**
* HTTP errors are used in an attempt to access something that isn’t available or
the user doesn’t have permission for. This HTTPError component is generic so you
can use it when you receive an error code that isn't provided.
*/
const HTTPError403 = React.forwardRef(({ className, description, errorCodeLabel, links, title, ...rest }, ref) => {
	return /* @__PURE__ */ React.createElement("div", {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		ref,
		...getDevtoolsProps(componentName)
	}, /* @__PURE__ */ React.createElement(HTTPErrorContent, {
		description,
		errorCodeLabel,
		title,
		links
	}), /* @__PURE__ */ React.createElement(HTTPErrorSvg403, {
		className: `${blockClass}__image`,
		title
	}));
});
/**@ts-ignore*/
HTTPError403.deprecated = {
	level: "warn",
	details: `${componentName} is deprecated. Please migrate to FullPageError by running npx @carbon/upgrade migrate ibm-products-update-http-errors --write`
};
HTTPError403.displayName = componentName;
HTTPError403.propTypes = {
	className: string,
	description: string.isRequired,
	errorCodeLabel: string.isRequired,
	links: arrayOf(shape({
		text: string.isRequired,
		href: string.isRequired
	})),
	title: string.isRequired
};

//#endregion
export { HTTPError403 };