import{typeof as e}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as t}from"../../../_virtual/_tslib.js";import i,{forwardRef as r}from"react";import s from"classnames";import{Flex as a}from"@vibe/layout/mockedClassNames";import n from"../Heading/Heading.js";import m from"../Text/Text.js";import o from"./EmptyState.module.scss.js";import{getStyle as l}from"../../helpers/typesciptCssModulesHelper.js";import{getTestId as c,ComponentDefaultTestId as p}from"../../tests/testIds.js";import{Button as u}from"@vibe/button/mockedClassNames";import d from"../Link/Link.js";import{ComponentVibeId as f}from"../../tests/constants.js";var g=r((function(r,g){var j=r.className,E=r.title,x=r.description,b=r.visual,v=r.mainAction,y=r.supportingAction,N=r.layout,T=void 0===N?"default":N,k=r.id,_=r["data-testid"],h="compact"===T;return i.createElement(a,{direction:"column",align:"center",justify:"center",gap:h?"small":"medium",className:s(o.emptyState,l(o,T),j),id:k,"data-testid":_||c(p.EMPTY_STATE,k),"data-vibe":f.EMPTY_STATE,ref:g},!!b&&b,i.createElement(a,{direction:"column",align:"center",gap:h?12:"medium",className:o.content},i.createElement(a,{direction:"column",align:"center",gap:"xs"},E&&i.createElement(n,{type:"h3",weight:"normal",className:o.title,align:"center",ellipsis:!1},E),"string"==typeof x?i.createElement(m,{className:o.description,align:"center",ellipsis:!1},x):x),(v||y)&&i.createElement(a,{direction:"column",align:"center",gap:"small",className:o.actions},function(t,r){if("object"===e(t)&&"text"in t)return i.createElement(u,Object.assign({kind:"secondary",size:r?"small":"medium"},t),t.text);return t}(v,h),function(r,s){if("object"===e(r)){if("text"in r&&"href"in r){var a=r.text,n=t(r,["text"]);return i.createElement(d,Object.assign({text:a},n))}if("text"in r){var m=r.text,o=t(r,["text"]);return i.createElement(u,Object.assign({kind:"tertiary",size:s?"small":"medium"},o),m)}}return r}(y,h))))}));export{g as default};
//# sourceMappingURL=EmptyState.js.map
