{"version":3,"sources":["webpack:///./Scripts/Components/Slider.js"],"names":["__webpack_require__","r","__webpack_exports__","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","react_responsive_carousel__WEBPACK_IMPORTED_MODULE_2__","Slider","_ref","values","CarouselSettings","showStatus","showThumbs","infiniteLoop","interval","autoPlay","showIndicators","length","swipeable","a","createElement","map","value","index","url","className","href","key","concat","src","image","text"],"mappings":"2FAAAA,EAAAC,EAAAC,GAAA,IAAAC,EAAAH,EAAA,GAAAI,EAAAJ,EAAAK,EAAAF,GAAAG,GAAAN,EAAA,KAAAA,EAAA,MAmCeO,UA/BA,SAAAC,GAAgB,IAAbC,EAAaD,EAAbC,OACRC,GACFC,YAAY,EACZC,YAAY,EACZC,cAAc,EACdC,SAAU,IACVC,UAAU,EACVC,eAAgBP,EAAOQ,OAAS,EAChCC,WAAW,GAGf,OACId,EAAAe,EAAAC,cAACd,EAAA,SAAaI,EACTD,EAAOY,IAAI,SAACC,EAAOC,GAAR,OACRnB,EAAAe,EAAAC,cAACjB,EAAA,SAAD,KAEsB,KAAdmB,EAAME,IAAapB,EAAAe,EAAAC,cAAA,KAAGK,UAAU,eAAeC,KAAMJ,EAAME,IAAKG,IAAG,SAAAC,OAAWL,IAC1EnB,EAAAe,EAAAC,cAAA,OAAKK,UAAU,gBAAgBI,IAAKP,EAAMQ,QAC1C1B,EAAAe,EAAAC,cAAA,MAAIK,UAAU,gBAAgBH,EAAMS,OAElC3B,EAAAe,EAAAC,cAAA,OAAKK,UAAU,eAAeC,KAAMJ,EAAME,IAAKG,IAAG,SAAAC,OAAWL,IAC3DnB,EAAAe,EAAAC,cAAA,OAAKK,UAAU,gBAAgBI,IAAKP,EAAMQ,QAC1C1B,EAAAe,EAAAC,cAAA,MAAIK,UAAU,gBAAgBH,EAAMS","file":"10.ccd1f9de4dfb252f0c33.js","sourcesContent":["import React, { Fragment } from 'react';\r\nimport 'react-responsive-carousel/lib/styles/carousel.min.css';\r\nimport { Carousel } from 'react-responsive-carousel';\r\n\r\nconst Slider = ({ values }) => {\r\n    const CarouselSettings = {\r\n        showStatus: false,\r\n        showThumbs: false,\r\n        infiniteLoop: true,\r\n        interval: 5000,\r\n        autoPlay: true,\r\n        showIndicators: values.length > 1,\r\n        swipeable: true\r\n    };\r\n\r\n    return (\r\n        <Carousel {...CarouselSettings}>\r\n            {values.map((value, index) => (\r\n                <Fragment>\r\n                    {\r\n                        value.url !== \"\" ? <a className=\"slider__link\" href={value.url} key={`figure${index}`}>\r\n                            <img className=\"slider__image\" src={value.image} />\r\n                            <h2 className=\"slider__text\">{value.text}</h2>\r\n                        </a>\r\n                            : <div className=\"slider__link\" href={value.url} key={`figure${index}`}>\r\n                                <img className=\"slider__image\" src={value.image} />\r\n                                <h2 className=\"slider__text\">{value.text}</h2>\r\n                            </div>}\r\n                </Fragment>\r\n            )\r\n            )}\r\n        </Carousel>\r\n    );\r\n};\r\n\r\nexport default Slider;"],"sourceRoot":""}