text: import { forceCheck } from "react-lazyload";
  import { navigateTo } from "gatsby-link";
  
  export function featureNavigator(e) {
    e && e.preventDefault();
  
    // for now i am blindly going to home page and not caring about below CSSConditionRule, if there is a bug refer below code
    setTimeout(() => {
      navigateTo("/");
    }, 0);
    return;
  
    if (this.props.navigatorPosition === "is-aside") {
      if (this.props.isWideScreen) {
        this.props.setNavigatorPosition("moving-featured");
  
        setTimeout(() => {
          this.props.setNavigatorPosition("resizing-featured");
          setTimeout(() => {
            this.props.setNavigatorPosition("is-featured");
            this.props.setNavigatorShape("open");
  
            // uncomment following lines if you want to count featuring Navigator as a visit
            // to index page ('/'), you have to also uncomment import { navigateTo }...
  
            setTimeout(() => {
              navigateTo("/");
            }, 0);
          });
        }, 300);
      } else {
        setTimeout(() => {
          this.props.setNavigatorPosition("is-featured");
        }, 0);
      }
    }
  }
  
  export function moveNavigatorAside(e) {
    const target = e ? e.currentTarget : null;
    const dataShape = target ? target.getAttribute("data-shape") : null;
    const navigatorShape = dataShape ? dataShape : "open";
  
    if (this.props.navigatorPosition === "is-featured") {
      if (this.props.isWideScreen) {
        this.props.setNavigatorPosition("moving-aside");
  
        setTimeout(() => {
          if (typeof window !== `undefined`) {
            if (window.location.pathname !== "/") {
              this.props.setNavigatorPosition("resizing-aside");
              this.props.setNavigatorShape(navigatorShape);
              setTimeout(() => {
                this.props.setNavigatorPosition("is-aside");
                setTimeout(forceCheck, 600);
              });
            }
          }
        }, 1000);
      } else {
        setTimeout(() => {
          this.props.setNavigatorPosition("is-aside");
        }, 100);
      }
    }
  }
  