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EAGEA,MACAC,EAJF,EAIEA,WAJF,IAKEC,iBAAAA,OALF,MAKqB,GALrB,MAMEC,iBAAAA,OANF,MAMqB,GANrB,EAOEC,EAPF,EAOEA,KAEF,OACE,eACEC,UAAWC,IAAW,mBAAoBP,GAC1CtB,IAAKsB,EAAqBlB,EAAMkB,GAAsB,KACtDQ,IAAKX,KAAKY,uBAEV,eAAKH,UAAU,iBAAiB5B,IAAKI,EAAMI,QAAQmB,IAChDK,EAAAA,SAAAA,QAAuBX,GAAUY,KAAI,SAAAC,GAAK,OACzCF,EAAAA,aAAmBE,EAAnB,OACKA,EAAMd,OADX,IAEEQ,UAAWC,IAAW,eAAgBK,EAAMd,MAAMQ,kBAIvDJ,IACC,yBACE,eACExB,IAAKI,EAAMS,KAAKc,GAChBC,UAAWC,IAAW,qBAAsBH,KAE5C,mBAAM1B,IAAKI,EAAME,WAAYqB,KAAK,YAEpC,eAAK3B,KAAG,OAAE,CAACI,EAAMY,iBAAkBZ,EAAMW,YAAjC,IAA8Ca,UAAU,uBAChE,eACE5B,IAAKI,EAAMU,KAAKa,GAChBC,UAAWC,IAAW,qBAAsBJ,KAE5C,mBAAMzB,IAAKI,EAAME,WAAYqB,KAAK,WAIvCJ,O,EA1CHL,CAAiBiB,EAAAA,eAyDvBjB,EAASkB,aAAe,CACtBb,OAAO,yBACPC,YAAY,EACZE,iBAAkB,GAClBD,iBAAkB,GAClBE,KAAM,WAGR","sources":["webpack://_N_E/./src/shared/components/Carousel.js"],"sourcesContent":["import { css, jsx } from '@emotion/core';\nimport { Icon } from 'antd';\nimport classnames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { PureComponent } from 'react';\n\nimport { bp, colors } from '@/styles';\n\nconst styleHelpers = {\n nextDefault: css`\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 6px 12px 0 rgba(35, 32, 32, 0.1);\n background-color: white;\n background-image: none;\n border-radius: 50%;\n height: 28px;\n width: 28px;\n border: 0.5px solid ${colors.primaryBlue};\n transform: translate(0px, -35px);\n @media ${bp.lg} {\n transform: translate(-20px, -40px);\n height: 40px;\n width: 40px;\n }\n &::after {\n display: none;\n }\n `,\n prevDefault: css`\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 6px 12px 0 rgba(35, 32, 32, 0.1);\n background-color: white;\n background-image: none;\n border-radius: 50%;\n height: 28px;\n width: 28px;\n border: 0.5px solid ${colors.primaryBlue};\n transform: translate(0px, -35px);\n @media ${bp.lg} {\n transform: translate(20px, -40px);\n height: 40px;\n width: 40px;\n }\n &::after {\n display: none;\n }\n `,\n};\nconst style = {\n title: css`\n margin-top: 24px;\n @media ${bp.md} {\n margin-top: 80px;\n }\n `,\n buttonIcon: css`\n color: ${colors.primaryBlue};\n font-size: 1.6rem;\n @media ${bp.lg} {\n font-size: 1.6rem;\n }\n `,\n buttonIconNext: css`\n color: ${colors.primaryBlue};\n font-size: 1.6rem;\n @media ${bp.lg} {\n font-size: 1.6rem;\n }\n `,\n wrapper: {\n default: css``,\n hero: css``,\n thumb: css`\n display: none;\n padding-top: 24px;\n @media ${bp.lg} {\n display: flex;\n }\n .swiper-slide {\n border: 5px solid transparent;\n cursor: pointer;\n }\n .swiper-slide-thumb-active {\n border-color: ${colors.primaryRed};\n }\n `,\n imageGallery: css``,\n },\n next: {\n default: styleHelpers.nextDefault,\n hero: css`\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 6px 12px 0 rgba(35, 32, 32, 0.1);\n background-color: white;\n background-image: none;\n border-radius: 50%;\n height: 28px;\n width: 28px;\n transform: translate(0px, -35px);\n @media ${bp.lg} {\n transform: translate(-150px, -10px);\n }\n `,\n thumb: css``,\n imageGallery: styleHelpers.nextDefault,\n },\n prev: {\n default: styleHelpers.prevDefault,\n hero: css`\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 6px 12px 0 rgba(35, 32, 32, 0.1);\n background-color: white;\n background-image: none;\n border-radius: 50%;\n height: 28px;\n width: 28px;\n transform: translate(0px, -35px);\n @media ${bp.lg} {\n transform: translate(150px, -10px);\n }\n `,\n thumb: css``,\n imageGallery: styleHelpers.prevDefault,\n },\n pagination: css`\n span {\n height: 16px;\n width: 16px;\n border: 3px white solid;\n background-color: white;\n }\n `,\n paginationBullet: css``,\n 'gallery-top': css`\n position: relative;\n overflow: hidden;\n `,\n infographics: css`\n position: relative;\n overflow: hidden;\n `,\n};\n\nclass Carousel extends PureComponent {\n render() {\n const {\n children,\n containerClassName,\n below,\n showArrows,\n prevBtnClassName = '',\n nextBtnClassName = '',\n type,\n } = this.props;\n return (\n \n
\n {React.Children.toArray(children).map(Child =>\n React.cloneElement(Child, {\n ...Child.props,\n className: classnames('swiper-slide', Child.props.className),\n })\n )}\n
\n {showArrows && (\n <>\n \n \n \n
\n \n \n
\n \n )}\n {below}\n \n );\n }\n}\n\nCarousel.propTypes = {\n containerClassName: PropTypes.string.isRequired,\n below: PropTypes.node,\n showArrows: PropTypes.bool,\n nextBtnClassName: PropTypes.string,\n prevBtnClassName: PropTypes.string,\n type: PropTypes.oneOf(['imageGallery', 'hero', 'thumb', 'default']),\n};\n\nCarousel.defaultProps = {\n below: <>,\n showArrows: true,\n nextBtnClassName: '',\n prevBtnClassName: '',\n type: 'default',\n};\n\nexport default Carousel;\n"],"names":["styleHelpers","nextDefault","css","colors","bp","prevDefault","style","title","buttonIcon","buttonIconNext","wrapper","default","hero","thumb","imageGallery","next","prev","pagination","paginationBullet","infographics","Carousel","this","props","children","containerClassName","below","showArrows","prevBtnClassName","nextBtnClassName","type","className","classnames","ref","ref_swiper_container","React","map","Child","PureComponent","defaultProps"],"sourceRoot":""}