text: (function () {
    const doc = document.documentElement
  
    doc.classList.remove('no-js')
    doc.classList.add('js')
  
    // Reveal animations
    if (document.body.classList.contains('has-animations')) {
      /* global ScrollReveal */
      const sr = window.sr = ScrollReveal()
  
      sr.reveal('.hero-shapes', {
        duration: 1000,
        distance: '40px',
        easing: 'cubic-bezier(0.5, -0.01, 0, 1.005)',
        origin: 'right'
      })
  
      sr.reveal('.header-sun', {
        delay: 200,
        duration: 1000,
        distance: '40px',
        easing: 'cubic-bezier(0.5, -0.01, 0, 1.005)',
        origin: 'top'
      })
  
      sr.reveal('.hero-media', {
        delay: 200,
        duration: 1000,
        rotate: {
          y: 50
        },
        easing: 'cubic-bezier(0.5, -0.01, 0, 1.005)'
      })
  
      sr.reveal('.feature-extended-image', {
        duration: 600,
        scale: 0.9,
        easing: 'cubic-bezier(0.5, -0.01, 0, 1.005)',
        viewFactor: 0.5
      })
  
      sr.reveal('.testimonial, .pricing-table', {
        duration: 600,
        distance: '40px',
        easing: 'cubic-bezier(0.5, -0.01, 0, 1.005)',
        interval: 100,
        origin: 'bottom',
        viewFactor: 0.5
      })
    }
  
    // Accordion component
    const accordionEl = document.getElementsByClassName('accordion-title')
  
    if (accordionEl.length) {
      for (let i = 0; i < accordionEl.length; i++) {
        accordionEl[i].addEventListener('click', function () {
          this.parentNode.classList.toggle('is-open')
          const panel = this.nextElementSibling
          if (panel.style.maxHeight) {
            panel.style.maxHeight = null
          } else {
            panel.style.maxHeight = `${panel.scrollHeight}px`
          }
        })
      }
    }
  }())
  