import t from"@babel/runtime/helpers/slicedToArray";import{jsx as e,jsxs as i}from"react/jsx-runtime";import{useState as a,useRef as r,useCallback as s}from"react";import o from"classnames";import*as l from"./images/index.js";import{NoDataAvailable as m}from"./images/index.js";import c from"../../effects/useResizeObserver.js";import{SIZES as n,APP_MESSAGES as d}from"./constants.js";import{getSize as f}from"./utils.js";import{useStyles as p}from"./styles.js";var u=function(l){var d=l.title,u=void 0===d?"No Data Available":d,v=l.subtitle,b=void 0===v?"":v,S=l.image,g=void 0===S?m:S,j=l.classes,A=void 0===j?{}:j,N=l["data-testid"],h=void 0===N?"EmptyState":N,x=a(n.LARGE),E=t(x,2),z=E[0],M=E[1],_=a(!1),y=t(_,2),G=y[0],L=y[1],R=r(null),k=s((function(e){var i=t(e,1)[0].borderBoxSize[0].blockSize;M(f(i)),L(!0)}),[]);c({callback:k,containerRef:R});var O=p({image:g,size:z}),P=z!==n.SMALL;return e("div",{className:o(O.rootTransparent,G&&O.rootOpaque,A.root),children:i("div",{"data-testid":"".concat(h,"_fullMessage"),className:o(O.content,A.content),ref:R,children:[e("div",{"data-testid":"".concat(h,"_title"),className:o(O.title,A.title),children:u}),e("div",{"data-testid":"".concat(h,"_subtitle"),className:o(O.subtitle,A.subtitle),children:b}),P&&e("img",{src:g,className:O.image,alt:"error"})]})})};u.IMAGES=l,u.APP_MESSAGES=d;export{u as default};
//# sourceMappingURL=EmptyState.js.map
