{"version":3,"file":"chunk-Empty.mjs","names":["Icon.Icon"],"sources":["../../src/components/Empty/Empty.tsx"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { translationKey } from '#translations';\n\nimport { recipes } from '../../recipes.ts';\nimport { composable, composableProps } from '../../util/slots.ts';\nimport * as Icon from '../Icon/Icon.tsx';\n\nexport type EmptyProps = {\n  /** A Phosphor icon above the message; decorative, since the message carries the statement. */\n  icon?: string;\n};\n\n/**\n * Stands in for content that is not there (no items, no selection, no result): a centred status message, its text the\n * children or the translated \"No items\". Composites build their own `Empty` part on it.\n */\nexport const Empty = composable<HTMLDivElement, EmptyProps>(({ children, icon, ...props }, forwardedRef) => {\n  const { t } = useTranslation(translationKey);\n  const { className, ...rest } = composableProps<HTMLDivElement>(props, {\n    classNames: recipes.empty(),\n    role: 'status',\n  });\n  return (\n    <div {...rest} data-scope='empty' data-part='root' className={className} ref={forwardedRef}>\n      {icon && <Icon.Icon icon={icon} />}\n      <p data-scope='empty' data-part='text'>\n        {children ?? t('empty.label')}\n      </p>\n    </div>\n  );\n});\n\nEmpty.displayName = 'Empty';\n"],"mappings":";;;;;;;;;;;;AAsBA,IAAa,QAAQ,YAAwC,EAAE,UAAU,MAAM,GAAG,SAAS,iBAAiB;CAC1G,MAAM,EAAE,MAAM,eAAe,cAAc;CAC3C,MAAM,EAAE,WAAW,GAAG,SAAS,gBAAgC,OAAO;EACpE,YAAY,QAAQ,MAAM;EAC1B,MAAM;CACR,CAAC;CACD,OACE,qBAAC,OAAD;EAAK,GAAI;EAAM,cAAW;EAAQ,aAAU;EAAkB;EAAW,KAAK;EAA9E,UAAA,CACG,QAAQ,oBAACA,MAAD,EAAiB,KAAO,CAAA,GACjC,oBAAC,KAAD;GAAG,cAAW;GAAQ,aAAU;GAC7B,UAAA,YAAY,EAAE,aAAa;EAC3B,CAAA,CACA;;AAET,CAAC;AAED,MAAM,cAAc"}