{"version":3,"file":"common/components/AttributeList-4acfeea.js","mappings":"wTAkBMA,EAAwB,SAACC,GAAD,OAC5B,gBACEC,UAAW,kCACTC,EAAAA,EAAAA,IAAUF,EAAUG,UAFxB,UAKyB,MAAtBH,EAAUI,SACPJ,EAAUK,MACVC,EACAN,EAAUK,MAAO,qCAEpB,KACAE,EAAAA,EAAAA,GAAcD,EACbN,EAAUG,SACV,0BAVGH,EAAUQ,KAebC,EAA2B,SAACT,GAAD,OAC/B,SAAC,IAAD,CACEC,UAAW,kCACTC,EAAAA,EAAAA,IAAUF,EAAUG,UAEtBO,MAAOC,EACLL,EAAcN,EAAUG,SAAU,wBALtC,SAQyB,MAAtBH,EAAUI,SACPJ,EAAUK,MACVC,EACAN,EAAUK,MAAO,sCARhBL,EAAUQ,KAoCHI,EACd,mCAnBoB,SAAC,GAAD,IACpBC,EADoB,EACpBA,WADoB,IAEpBC,UAAAA,OAFoB,gBAIpB,SAAC,IAAD,CACEC,iBAAkBD,EAAY,KAAO,KACrCE,aAAcF,EAAY,IAAM,KAChCG,UAAWC,EAAE,mBACbC,SAAUL,EAAYL,EAA2BV,EACjDE,UAAWa,EAAY,6BAA+B,kBACtDM,KAAMP,EACNQ,aAAcH,EAAE,uBAChBI,cAAeJ,EAAE,wBACjBK,YAAa,EACbC,aAAc,S","sources":["webpack://musicbrainz-server/./root/static/scripts/common/components/AttributeList.js"],"sourcesContent":["/*\n * @flow strict-local\n * Copyright (C) 2019 MetaBrainz Foundation\n *\n * This file is part of MusicBrainz, the open internet music database,\n * and is licensed under the GPL version 2, or (at your option) any\n * later version: http://www.gnu.org/licenses/gpl-2.0.txt\n */\n\nimport * as React from 'react';\n\nimport {bracketedText} from '../utility/bracketed';\nimport {kebabCase} from '../utility/strings';\nimport {SidebarProperty}\n from '../../../../layout/components/sidebar/SidebarProperties';\n\nimport CollapsibleList from './CollapsibleList';\n\nconst buildAttributeListRow = (attribute) => (\n \n {attribute.value_id == null\n ? attribute.value\n : lp_attributes(\n attribute.value, 'work_attribute_type_allowed_value',\n )}\n {' '}\n {bracketedText(lp_attributes(\n attribute.typeName,\n 'work_attribute_type',\n ))}\n \n);\n\nconst buildAttributeSidebarRow = (attribute) => (\n \n {attribute.value_id == null\n ? attribute.value\n : lp_attributes(\n attribute.value, 'work_attribute_type_allowed_value',\n )}\n \n);\n\ntype AttributeListProps = {|\n +attributes: ?$ReadOnlyArray,\n +isSidebar?: boolean,\n|};\n\nconst AttributeList = ({\n attributes,\n isSidebar = false,\n}: AttributeListProps) => (\n \n);\n\nexport default (hydrate(\n 'div.entity-attributes-container',\n AttributeList,\n): React.AbstractComponent);\n"],"names":["buildAttributeListRow","attribute","className","kebabCase","typeName","value_id","value","lp_attributes","bracketedText","id","buildAttributeSidebarRow","label","addColonText","hydrate","attributes","isSidebar","ContainerElement","InnerElement","ariaLabel","l","buildRow","rows","showAllTitle","showLessTitle","toShowAfter","toShowBefore"],"sourceRoot":""}