import * as __WEBPACK_EXTERNAL_MODULE__chakra_ui_react__ from "@chakra-ui/react";
import * as __WEBPACK_EXTERNAL_MODULE__storybook_test__ from "@storybook/test";
import * as __WEBPACK_EXTERNAL_MODULE__Empty_mjs__ from "./Empty.mjs";
const meta = {
    title: 'Components/Empty',
    component: __WEBPACK_EXTERNAL_MODULE__Empty_mjs__["default"],
    parameters: {
        design: {
            type: 'figma',
            url: 'https://www.figma.com/file/Ah1H7iNSgKNAgtes0av2tM/Cloud-v2-mocks?type=design&node-id=10255-22918&mode=design&t=5nLpKzxeJBMdpXNt-4'
        }
    }
};
/* ESM default export */ const Empty_stories_rslib_entry_ = meta;
const Default = {
    play: async ({ canvasElement, step })=>{
        const canvas = (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.within)(canvasElement);
        await step('Check defaults', async ()=>{
            (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.expect)(canvas.getByTestId('no-data-heading')).toBeVisible();
            (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.expect)(canvas.getByTestId('no-data-heading')).toHaveTextContent('No data found');
            (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.expect)(canvas.getByTestId('no-data-image')).toBeVisible();
        });
    }
};
const ErrorCode404 = {
    args: {
        errorCode: 404
    },
    parameters: {
        design: {
            type: 'figma',
            url: 'https://www.figma.com/file/Ah1H7iNSgKNAgtes0av2tM/Cloud-v2-mocks?type=design&node-id=10002-23672&mode=design&t=5nLpKzxeJBMdpXNt-4'
        }
    },
    play: async ({ canvasElement, step })=>{
        const canvas = (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.within)(canvasElement);
        await step('Check error code info', async ()=>{
            (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.expect)(canvas.getByTestId('no-data-error-title')).toBeVisible();
            (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.expect)(canvas.getByTestId('no-data-error-title')).toHaveTextContent('Error (404)');
            (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.expect)(canvas.getByTestId('no-data-error-description')).toBeVisible();
            (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.expect)(canvas.getByTestId('no-data-error-description')).toHaveTextContent('No data found');
        });
    }
};
const CustomErrorDescription = {
    args: {
        errorCode: 404,
        description: 'Custom error description'
    },
    parameters: {
        design: {
            type: 'figma',
            url: 'https://www.figma.com/file/Ah1H7iNSgKNAgtes0av2tM/Cloud-v2-mocks?type=design&node-id=10002-23672&mode=design&t=5nLpKzxeJBMdpXNt-4'
        }
    }
};
const DescriptionAsReactNode = {
    args: {
        errorCode: 404,
        description: /*#__PURE__*/ React.createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.Heading, {
            as: "h1"
        }, "Custom error description")
    },
    parameters: {
        design: {
            type: 'figma',
            url: 'https://www.figma.com/file/Ah1H7iNSgKNAgtes0av2tM/Cloud-v2-mocks?type=design&node-id=10002-23672&mode=design&t=5nLpKzxeJBMdpXNt-4'
        }
    }
};
export { CustomErrorDescription, Default, DescriptionAsReactNode, ErrorCode404, Empty_stories_rslib_entry_ as default };
