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D,CAAC,CAAC9B,GAAAA,CAAAA,iCAAmC,CAAC,CAAEgC,CAAa,EACrD,CAAC,CAAChC,GAAC,CAAC,CAAC,mBAAmB,EAAE8B,EAAS,CAAC,CAAC,CAAC,CAAEA,CAAQ,GAGpD,MACI,GAAAxB,EAAAC,GAAA,EAACC,MAAAA,CACGC,UAAWX,EACXmC,wBAAyB,CAACC,OAAQd,CAAS,GAGvD,CAEAL,CAAAA,EAAWE,SAAS,CAAG,CACnBvB,MAAOwB,IAAAA,KAAe,CAAC,CAACA,IAAAA,MAAgB,CAAEA,IAAAA,KAAe,CAAC,EAC1DE,UAAWF,IAAAA,MAAgB,EAG/BH,EAAWI,YAAY,CAAG,CACtBzB,MAAO,CAAC,EACR0B,UAAW,EACf,ECpFA,IAAAe,EDsFe1C,ECpFR,IAAM2C,EAAgB,iCCF7BC,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./components/CoreButtons/CoreButtons.js","webpack://_N_E/./components/CoreButtons/index.js","webpack://_N_E/./components/CoreButtons/CoreButtons.module.scss"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport _ from 'lodash';\nimport s from './CoreButtons.module.scss';\n\nconst CoreButtons = ({attrs, innerBlocks}) => {\n const {layout} = attrs;\n\n const classes = classNames(\n s['CoreButtons'],\n {[s['CoreButtons--Flex']]: layout?.type === 'flex'},\n {[s['CoreButtons--AlignCenter']]: !layout?.verticalAlignment},\n {[s['CoreButtons--AlignTop']]: layout?.verticalAlignment === 'top'},\n {[s['CoreButtons--AlignBottom']]: layout?.verticalAlignment === 'bottom'},\n {[s['CoreButtons--AlignStretch']]: layout?.verticalAlignment === 'stretch'},\n {[s['CoreButtons--SpaceBetween']]: layout?.justifyContent === 'space-between'},\n {[s['CoreButtons--Right']]: layout?.justifyContent === 'right'},\n {[s['CoreButtons--Left']]: layout?.justifyContent === 'left'},\n {[s['CoreButtons--Center']]: layout?.justifyContent === 'center'},\n {[s['CoreButtons--NoWrap']]: layout?.flexWrap === 'nowrap'},\n {[s['CoreButtons--Wrap']]: layout?.flexWrap !== 'nowrap'},\n {[s['CoreButtons--Vertical']]: layout?.orientation === 'vertical'},\n {[s['CoreButtons--Horizontal']]: layout?.orientation !== 'vertical'},\n );\n\n return (\n
\n {innerBlocks.map((block, index) => (\n \n ))}\n
\n );\n};\n\nCoreButtons.propTypes = {\n attrs: PropTypes.oneOf([PropTypes.object, PropTypes.array]),\n innerBlocks: PropTypes.array,\n};\n\nCoreButtons.defaultProps = {\n attrs: {},\n innerBlocks: [],\n};\n\nconst CoreButton = ({attrs, innerHTML}) => {\n const {textAlign, width, className} = attrs;\n\n // Multiple styles can't be used, but className can still include multiple\n const availableStyles = {\n 'is-style-secondary': 'Secondary',\n 'is-style-icon-arrow-previous': 'IconArrowPrevious',\n 'is-style-icon-arrow-next': 'IconArrowNext',\n };\n const styleClass = Object.keys(availableStyles).find((key) => className && className.split(' ').includes(key));\n const modifier = _.get(availableStyles, styleClass, '');\n const isArrowButton = modifier && modifier === 'IconArrowPrevious' || modifier === 'IconArrowNext';\n\n const classes = classNames(\n s['CoreButtons__Item'],\n {[s[`CoreButtons__Item--Width${width}`]]: width},\n {[s['CoreButtons__Item--TextLeft']]: textAlign === 'left'},\n {[s['CoreButtons__Item--TextRight']]: textAlign === 'right'},\n {[s['CoreButtons__Item--TextCenter']]: textAlign === 'center'},\n {[s['CoreButtons__Item--Primary']]: _.isEmpty(modifier)},\n {[s['CoreButtons__Item--ArrowButton']]: isArrowButton},\n {[s[`CoreButtons__Item--${modifier}`]]: modifier},\n );\n\n return (\n \n );\n};\n\nCoreButton.propTypes = {\n attrs: PropTypes.oneOf([PropTypes.object, PropTypes.array]),\n innerHTML: PropTypes.string,\n};\n\nCoreButton.defaultProps = {\n attrs: {},\n innerHTML: '',\n};\n\nexport default CoreButtons;\n","import CoreButtons from './CoreButtons';\nexport default CoreButtons;\n\nexport const componentName = 'CoreButtons';\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"CoreButtons__Item--Secondary\":\"CoreButtons_CoreButtons__Item--Secondary__EgrzY\",\"CoreButtons__Item--Primary\":\"CoreButtons_CoreButtons__Item--Primary__YZUcV\",\"CoreButtons\":\"CoreButtons_CoreButtons__QYTd7\",\"CoreButtons--Flex\":\"CoreButtons_CoreButtons--Flex__AXVNN\",\"CoreButtons-AlignTop\":\"CoreButtons_CoreButtons-AlignTop__meQaw\",\"CoreButtons-AlignBottom\":\"CoreButtons_CoreButtons-AlignBottom__wDx2D\",\"CoreButtons-AlignStretch\":\"CoreButtons_CoreButtons-AlignStretch__v62DN\",\"CoreButtons--SpaceBetween\":\"CoreButtons_CoreButtons--SpaceBetween__ekKHb\",\"CoreButtons--Right\":\"CoreButtons_CoreButtons--Right__Y8iC7\",\"CoreButtons--Left\":\"CoreButtons_CoreButtons--Left__7WN_W\",\"CoreButtons--Center\":\"CoreButtons_CoreButtons--Center__r6N3e\",\"CoreButtons--NoWrap\":\"CoreButtons_CoreButtons--NoWrap__C_DG_\",\"CoreButtons--Wrap\":\"CoreButtons_CoreButtons--Wrap__j4rLf\",\"CoreButtons--Horizontal\":\"CoreButtons_CoreButtons--Horizontal__6m5bc\",\"CoreButtons--Vertical\":\"CoreButtons_CoreButtons--Vertical__2zLhP\",\"CoreButtons__Item\":\"CoreButtons_CoreButtons__Item__nnHQF\",\"CoreButtons__Item--TextLeft\":\"CoreButtons_CoreButtons__Item--TextLeft__kcXhq\",\"CoreButtons__Item--TextRight\":\"CoreButtons_CoreButtons__Item--TextRight__IfBJQ\",\"CoreButtons__Item--TextCenter\":\"CoreButtons_CoreButtons__Item--TextCenter__nd9zP\",\"CoreButtons__Item--Width25\":\"CoreButtons_CoreButtons__Item--Width25__XBIFI\",\"CoreButtons__Item--Width50\":\"CoreButtons_CoreButtons__Item--Width50__tFVPK\",\"CoreButtons__Item--Width75\":\"CoreButtons_CoreButtons__Item--Width75__It9C6\",\"CoreButtons__Item--Width100\":\"CoreButtons_CoreButtons__Item--Width100__8yFQ7\",\"CoreButtons__Item--ArrowButton\":\"CoreButtons_CoreButtons__Item--ArrowButton__0DeDp\",\"CoreButtons__Item--IconArrowPrevious\":\"CoreButtons_CoreButtons__Item--IconArrowPrevious__jEsWO\",\"CoreButtons__Item--IconArrowNext\":\"CoreButtons_CoreButtons__Item--IconArrowNext__VgEyf\"};"],"names":["CoreButtons","attrs","innerBlocks","param","layout","classes","classNames","s","type","verticalAlignment","justifyContent","flexWrap","orientation","jsx_runtime","jsx","div","className","map","block","index","react","createElement","CoreButton","key","propTypes","PropTypes","defaultProps","innerHTML","textAlign","width","availableStyles","styleClass","Object","keys","find","split","includes","modifier","_","isArrowButton","dangerouslySetInnerHTML","__html","components_CoreButtons","componentName","module","exports"],"sourceRoot":""}