/**
 * 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.
 */

const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../node_modules/classnames/index.js");
const require_settings = require("../../../settings.js");
const require_devtools = require("../../../global/js/utils/devtools.js");
const require_HTTPErrorContent = require("../HTTPErrorContent.js");
const require_HTTPErrorSvg404 = require("../assets/HTTPErrorSvg404.js");
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
//#region src/components/HTTPErrors/HTTPError404/HTTPError404.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__ */ require_runtime.__toESM(require_index.default);
const blockClass = `${require_settings.pkg.prefix}--http-errors`;
const componentName = "HTTPError404";
/**
* 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 HTTPError404 = react.default.forwardRef(({ className, description, errorCodeLabel, links, title, ...rest }, ref) => {
	return /* @__PURE__ */ react.default.createElement("div", {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		ref,
		...require_devtools.getDevtoolsProps(componentName)
	}, /* @__PURE__ */ react.default.createElement(require_HTTPErrorContent.HTTPErrorContent, {
		description,
		errorCodeLabel,
		title,
		links
	}), /* @__PURE__ */ react.default.createElement(require_HTTPErrorSvg404.HTTPErrorSvg404, {
		className: `${blockClass}__image`,
		title
	}));
});
/**@ts-ignore*/
HTTPError404.deprecated = {
	level: "warn",
	details: `${componentName} is deprecated. Please migrate to FullPageError by running npx @carbon/upgrade migrate ibm-products-update-http-errors --write`
};
HTTPError404.displayName = componentName;
HTTPError404.propTypes = {
	/**
	* Provide an optional class to be applied to the containing node
	*/
	className: prop_types.string,
	/**
	* String that will provide the description for the HTTP error code
	*/
	description: prop_types.string.isRequired,
	/**
	* String that will describe the error that occurred
	*/
	errorCodeLabel: prop_types.string.isRequired,
	/**
	* Links that will display for extra context when receiving particular errors
	*/
	/**@ts-ignore */
	links: (0, prop_types.arrayOf)((0, prop_types.shape)({
		/**
		* The text to display for the link
		*/
		text: prop_types.string.isRequired,
		/**
		* The link's destination
		*/
		href: prop_types.string.isRequired
	})),
	/**
	* This will be for the main title of the HTTP error component
	*/
	title: prop_types.string.isRequired
};
//#endregion
exports.HTTPError404 = HTTPError404;
