{"version":3,"file":"static/js/55082.d1c95ec6.chunk.js","mappings":"6KAmBO,MAAMA,EAAWC,IAWI,IAXH,SACvBC,EAAQ,MACRC,EAAK,MACLC,EAAK,SACLC,EAAQ,MACRC,EAAK,QACLC,EAAO,OACPC,EAAM,YACNC,EAAW,WACXC,EAAU,gBACVC,GACMV,EACN,OACEW,EAAAA,EAAAA,MAAA,UACOF,EAAa,CAAE,cAAeA,GAAe,CAAC,EACnDG,WAAWC,EAAAA,EAAAA,GAAS,CAAC,WAAY,CAAE,mBAAoBN,KACvDD,QAASA,EAAQL,SAAA,CAEhBC,IACCY,EAAAA,EAAAA,KAAA,OAAKF,UAAWJ,EAAc,GAAK,kBAAkBP,SAAEC,KAEzDY,EAAAA,EAAAA,KAAA,OAAKF,UAAU,iBAAgBX,SAAEA,IAChCE,IAASW,EAAAA,EAAAA,KAAA,OAAKF,UAAU,kBAAiBX,SAAEE,IACjC,eAAVE,IAA2BD,IAC1BU,EAAAA,EAAAA,KAACC,EAAAA,EAAU,CACTC,IAAI,UACJC,KAAK,aACLC,MAAM,UACNC,KAAMC,EAAAA,GAAUC,IAChBT,UAAU,kBACVU,YAAU,KACLZ,EAAkB,CAAE,cAAeA,GAAoB,CAAC,MAG7D,C","sources":["components/UI/ListItem/index.tsx"],"sourcesContent":["import React, { MouseEvent, ReactElement } from 'react';\nimport classcat from 'classcat';\nimport { EIconSize } from 'utils/constants/app/ui';\nimport { GlobalIcon } from 'components/GlobalIcon';\nimport './index.less';\n\ntype Props = {\n  arrow?: '' | 'horizontal' | 'down' | 'up' | 'empty';\n  onClick?: (event: MouseEvent) => void;\n  children: React.ReactNode;\n  thumb?: React.ReactNode;\n  extra?: React.ReactNode;\n  disabled?: boolean;\n  active?: boolean;\n  noNeedClass?: boolean;\n  dataTestId?: string;\n  arrowDataTestId?: string;\n};\n\nexport const ListItem = ({\n  children,\n  thumb,\n  extra,\n  disabled,\n  arrow,\n  onClick,\n  active,\n  noNeedClass,\n  dataTestId,\n  arrowDataTestId\n}: Props): ReactElement => {\n  return (\n    <div\n      {...(dataTestId ? { 'data-testid': dataTestId } : {})}\n      className={classcat(['listItem', { 'listItem--active': active }])}\n      onClick={onClick}\n    >\n      {thumb && (\n        <div className={noNeedClass ? '' : 'listItem__thumb'}>{thumb}</div>\n      )}\n      <div className=\"listItem__name\">{children}</div>\n      {extra && <div className=\"listItem__extra\">{extra}</div>}\n      {arrow === 'horizontal' && !disabled && (\n        <GlobalIcon\n          lib=\"generic\"\n          name=\"caretRight\"\n          theme=\"default\"\n          size={EIconSize._11}\n          className=\"listItem__arrow\"\n          useWrapper\n          {...(arrowDataTestId ? { 'data-testid': arrowDataTestId } : {})}\n        />\n      )}\n    </div>\n  );\n};\n"],"names":["ListItem","_ref","children","thumb","extra","disabled","arrow","onClick","active","noNeedClass","dataTestId","arrowDataTestId","_jsxs","className","classcat","_jsx","GlobalIcon","lib","name","theme","size","EIconSize","_11","useWrapper"],"sourceRoot":""}