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EACVC,aAAW,EAAAR,UAEXF,EAAAA,EAAAA,MAAA,KAAGkB,KAAM3B,KAAK9B,MAAMuD,KAAOzB,KAAK9B,MAAMuD,UAAOkB,EAAUhC,SAAA,CACpDX,KAAK9B,MAAM0E,OAAQ/B,EAAAA,EAAAA,KAAA,OAAKgC,IAAK7C,KAAK9B,MAAM0E,QAAY,IACrDnC,EAAAA,EAAAA,MAAA,OAAKC,UAAU,WAAUC,SAAA,CACtBX,KAAK9B,MAAMkD,UAAWP,EAAAA,EAAAA,KAAA,MAAAF,SAAKX,KAAK9B,MAAMkD,WAAiB,GACvDpB,KAAK9B,MAAMqD,MACVV,EAAAA,EAAAA,KAACiC,EAAAA,EAAc,CAACC,MAAO,EAAGC,SAAU,MAAMrC,UACxCE,EAAAA,EAAAA,KAAA,QAAAF,SAAOX,KAAK9B,MAAMqD,SAGpB,GAEDvB,KAAK9B,MAAMuD,MAAQzB,KAAK9B,MAAMwD,UAC7BjB,EAAAA,EAAAA,MAAA,OAAKC,UAAU,eAAcC,SAAA,EAC3BE,EAAAA,EAAAA,KAACe,EAAAA,EAAG,CAACC,SAAU,kBAAmBC,UAAW,OAAQC,iBAAiB,IACrE/B,KAAK9B,MAAMwD,YAGd,UAMZ,IAAC,CA1Ce,CAASa,EAAAA,U","sources":["shared/carousel/carousel-component.jsx"],"sourcesContent":["import React, { Component } from \"react\"\nimport Slider from \"react-slick\"\nimport Svg from \"../../shared/_svgs/svg\"\nimport TruncateMarkup from \"react-truncate-markup\"\nimport * as SelectionFactoryHelper from \"../helpers/SelectionFactoryHelper\"\nimport Reveal from \"react-awesome-reveal\"\n\nexport default class Carousel extends Component {\n  constructor(props) {\n    super(props)\n\n    this.state = {\n      slides: props.carouselItems,\n    }\n  }\n\n  componentDidMount() {\n    window.addEventListener(\"resize\", (event) => {\n      this.setState({ screenWidth: event.target.screen.width })\n    })\n  }\n\n  render() {\n    let style = {}\n\n    var settings = {\n      dots: true,\n      arrows: true,\n      infinite: false,\n      slidesToShow: 3,\n      slidesToScroll: 1,\n      swipe: true,\n      variableWidth: true,\n    }\n\n    const innerWidth = window.innerWidth\n\n    if (innerWidth < 1590 || (this.state.slides && this.state.slides.length > 3)) {\n      style = { \"--slick-max-width\": \"1020px\" }\n    }\n\n    let slidesInView = 3\n    if (innerWidth < 950) {\n      settings.slidesToShow = 2\n      if (innerWidth < 680) {\n        settings.slidesToShow = 1\n        slidesInView = 2\n      }\n      if (innerWidth < 350) {\n        slidesInView = 1\n      }\n    } else {\n      settings.slidesToShow = 1\n      slidesInView = 2\n      if (innerWidth >= 1050) {\n        settings.slidesToShow = 2\n        slidesInView = 3\n      }\n      if (innerWidth >= 1550) {\n        settings.slidesToShow = 3\n      }\n    }\n\n    if (this.state.slides && this.state.slides.length <= 3) {\n      settings.arrows = false\n    }\n\n    const titleAnimationType = SelectionFactoryHelper.getFromSelectionFactory(this.props.titleAnimation.type)\n    const headingAnimationType = SelectionFactoryHelper.getFromSelectionFactory(this.props.headingAnimation.type)\n\n    return (\n      <div className=\"carousel-block\" style={style}>\n        <div className=\"stationary\">\n          {this.props.title ? (\n            <Reveal\n              keyframes={titleAnimationType ? titleAnimationType : null}\n              className={titleAnimationType ? \"\" : \"disable-reveal\"}\n              duration={this.props.titleAnimation.duration}\n              delay={this.props.titleAnimation.delay}\n              fraction={1}\n              triggerOnce\n            >\n              <div className={`infohead`}>{this.props.title}</div>\n            </Reveal>\n          ) : (\n            \"\"\n          )}\n          {this.props.headline ? (\n            <Reveal\n              keyframes={headingAnimationType ? headingAnimationType : null}\n              className={headingAnimationType ? \"\" : \"disable-reveal\"}\n              duration={this.props.headingAnimation.duration}\n              delay={this.props.headingAnimation.delay}\n              fraction={1}\n              triggerOnce\n            >\n              <div className={`heading`} dangerouslySetInnerHTML={{ __html: this.props.headline }}></div>\n            </Reveal>\n          ) : (\n            \"\"\n          )}\n          {this.props.text ? (\n            <div\n              className={`maintext ${!(this.props.link && this.props.linkText) ? \"maintext-no-link\" : \"\"}`}\n              dangerouslySetInnerHTML={{ __html: this.props.text }}\n            ></div>\n          ) : (\n            \"\"\n          )}\n          {window.innerWidth >= 950 && this.props.link && this.props.linkText ? (\n            <a className={\"see-all-link\"} href={this.props.link}>\n              <Svg iconName={\"arrowright-slim\"} fillColor={\"none\"} renderContainer={false} />\n              {this.props.linkText}\n            </a>\n          ) : (\n            \"\"\n          )}\n        </div>\n        <Slider {...settings}>\n          {this.state.slides &&\n            this.state.slides.length > 0 &&\n            this.state.slides.map((item, index) => {\n              return <CarouselItem key={index} {...item} {...item.animation} index={index} slidesInView={slidesInView} />\n            })}\n        </Slider>\n        {window.innerWidth < 950 && this.props.link && this.props.linkText ? (\n          <a className={\"see-all-link\"} href={this.props.link}>\n            <Svg iconName={\"arrowright-slim\"} fillColor={\"none\"} renderContainer={false} />\n            {this.props.linkText}\n          </a>\n        ) : (\n          \"\"\n        )}\n      </div>\n    )\n  }\n}\n\nclass CarouselItem extends Component {\n  render() {\n    let animationType = SelectionFactoryHelper.getFromSelectionFactory(this.props.type)\n    if (animationType === undefined) {\n      animationType = null\n    } else {\n      if (this.props.index >= this.props.slidesInView) {\n        animationType = null\n      }\n    }\n    return (\n      <Reveal\n        keyframes={animationType}\n        className={animationType ? \"\" : \"disable-reveal\"}\n        duration={this.props.duration}\n        delay={this.props.delay}\n        fraction={0}\n        triggerOnce\n      >\n        <a href={this.props.link ? this.props.link : undefined}>\n          {this.props.image ? <img src={this.props.image} /> : \"\"}\n          <div className=\"textarea\">\n            {this.props.headline ? <h2>{this.props.headline}</h2> : \"\"}\n            {this.props.text ? (\n              <TruncateMarkup lines={4} ellipsis={\"...\"}>\n                <span>{this.props.text}</span>\n              </TruncateMarkup>\n            ) : (\n              \"\"\n            )}\n            {this.props.link && this.props.linkText ? (\n              <div className=\"see-all-link\">\n                <Svg iconName={\"arrowright-slim\"} fillColor={\"none\"} renderContainer={false} />\n                {this.props.linkText}\n              </div>\n            ) : (\n              \"\"\n            )}\n          </div>\n        </a>\n      </Reveal>\n    )\n  }\n}\n"],"names":["Carousel","_Component","props","_this","_classCallCheck","_callSuper","state","slides","carouselItems","_inherits","_createClass","key","value","_this2","window","addEventListener","event","setState","screenWidth","target","screen","width","style","settings","dots","arrows","infinite","slidesToShow","slidesToScroll","swipe","variableWidth","innerWidth","this","length","slidesInView","titleAnimationType","SelectionFactoryHelper","titleAnimation","type","headingAnimationType","headingAnimation","_jsxs","className","children","title","_jsx","Reveal","keyframes","duration","delay","fraction","triggerOnce","headline","dangerouslySetInnerHTML","__html","text","concat","link","linkText","href","Svg","iconName","fillColor","renderContainer","Slider","_objectSpread","map","item","index","CarouselItem","animation","Component","_Component2","arguments","animationType","undefined","image","src","TruncateMarkup","lines","ellipsis"],"sourceRoot":""}