<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";
var app = {
  inspectResize: function () {
    var n = $(".imagem-segmento img").height(),
      e = $(window).width();
    console.log(n), e &lt; 800 &amp;&amp; $("header").addClass("mobile");
  },
  inspectScroll: function () {
    var n = $(document).scrollTop(),
      e = $(window).height();
    n &gt; e
      ? $("header").addClass("mobile").find("nav").addClass("visible")
      : $("header")
          .removeClass("mobile")
          .find("nav")
          .removeClass("visible")
          .removeAttr("style");
  },
  ancoras: function () {
    $("i.fa-angle-down").on("click touchstart", function () {
      var n = $(this).attr("data-href");
      if ("" != n) {
        var e = parseInt($(n).offset().top);
        $.smoothScroll(e);
      }
    });
  },
  registerNewletter: function () {
    $("#newsletter").on("click", function () {
      var nome = $("#nomenews").val();
      var email = $("#emailnews").val();
      var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;

      if (nome == "") {
        console.log(nome, "erro nome");
        $(".status").text("Digite seu nome");
        return;
      }

      if (!emailReg.test(email) || email == "") {
        console.log("erro email");
        $(".status").text("Digite  um email vÃ¡lido");
        return;
      }

      $.post("/newsletter", { nome: nome, email: email }, function (result) {
        $(".status").text(result);
        $("#nomenews").val("");
        $("#emailnews").val("");
      });
    });
  },
  inicializaComponentes: function () {
    app.inspectResize(),
      $(window).scroll(function () {
        app.inspectScroll();
      });
  },
  menuMobile: function () {
    $(".menu-mobile, .close").on("touchstart", function () {
      $(".main-nav").fadeToggle();
    });
  },
  callFunctions: function () {
    app.inicializaComponentes(),
      app.menuMobile(),
      app.ancoras(),
      app.registerNewletter();
  },
};
app.callFunctions();
</pre></body></html>