/**
 * 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 { EmptyStateContent } from "../EmptyStateContent.js";
import { defaults } from "../EmptyState.js";
import { NotFoundIllustration } from "../assets/NotFoundIllustration.js";
import React from "react";
import PropTypes from "prop-types";
import { Button } from "@carbon/react";

//#region src/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.tsx
/**
* Copyright IBM Corp. 2020, 2024
*
* 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}--empty-state`;
const componentName = "NotFoundEmptyState";
/**
* The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
*/
const NotFoundEmptyState = React.forwardRef(({ action, className, illustrationPosition = defaults.position, illustrationTheme, illustrationDescription, link, size = defaults.size, headingAs, subtitle, title, ...rest }, ref) => {
	return /* @__PURE__ */ React.createElement("div", {
		...rest,
		className: (0, import_classnames.default)(blockClass, className, `${blockClass}-position--${illustrationPosition}`, `${blockClass}-type--notFound`),
		ref,
		...getDevtoolsProps(componentName)
	}, /* @__PURE__ */ React.createElement(NotFoundIllustration, {
		theme: illustrationTheme,
		size,
		alt: illustrationDescription || title
	}), /* @__PURE__ */ React.createElement(EmptyStateContent, {
		action,
		link,
		size,
		headingAs,
		subtitle,
		title: title || ""
	}));
});
NotFoundEmptyState.displayName = componentName;
NotFoundEmptyState.propTypes = {
	action: PropTypes.shape({
		...Button.propTypes,
		kind: PropTypes.oneOf([
			"primary",
			"secondary",
			"tertiary"
		]),
		renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
		onClick: Button.propTypes.onClick,
		text: PropTypes.string
	}),
	className: PropTypes.string,
	headingAs: PropTypes.elementType,
	illustrationDescription: PropTypes.string,
	illustrationPosition: PropTypes.oneOf([
		"top",
		"right",
		"bottom",
		"left"
	]),
	illustrationTheme: PropTypes.oneOf(["light", "dark"]),
	link: PropTypes.any,
	size: PropTypes.oneOf(["lg", "sm"]),
	subtitle: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
	title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired
};

//#endregion
export { NotFoundEmptyState };