Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
56 kB
1
Indexable
Never
<script>
 jQuery(document).ready(function (e) {
    var utm_source = "";
        if (
            (e(".hamburger").on("click", function () {
                e(this).toggleClass("is-active"), e("#header nav").toggleClass("is-active"), "is-active" == e(this).attr("class") ? e("html, body").css("overflow-y", "hidden") : e("html, body").css("overflow-y", "initial");
            }),
            e("#budget").on("click", function (e) {
                e.preventDefault;
            }),
            e(".main-banner-slider").length &&
                e(".main-banner-slider").slick({
                    autoplay: !0,
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: !0,
                    dots: !0,
                    infinite: !0,
                    fade: !0,
                    responsive: [{ breakpoint: 1024, settings: { autoplay: !0, slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !0, arrows: !1, fade: !0 } }],
                }),
            e(".card-list").length &&
                e(".card-list").slick({
                    responsive: [
                        { breakpoint: 768, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !0, arrows: !1, fade: !0 } },
                        { breakpoint: 3e3, settings: "unslick" },
                    ],
                }),
            e(".galley-aside-slider").length &&
                e(".galley-aside-slider").slick({
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: !0,
                    dots: !1,
                    infinite: !0,
                    draggable: !1,
                    fade: !0,
                    responsive: [{ breakpoint: 1024, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, arrows: !0, draggable: !1, fade: !0 } }],
                }),
            e(".banner-blog").length &&
                e(".banner-blog").slick({
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: !0,
                    dots: !0,
                    infinite: !0,
                    fade: !0,
                    responsive: [{ breakpoint: 1200, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !0, fade: !0, arrows: !1 } }],
                }),
            e(".about-image").length &&
                e(".about-image").slick({
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: !0,
                    dots: !1,
                    infinite: !0,
                    fade: !0,
                    responsive: [{ breakpoint: 1200, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, arrows: !0, fade: !0 } }],
                }),
            e(".galley-slider").length &&
                e(".galley-slider").slick({
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: !0,
                    dots: !1,
                    infinite: !0,
                    draggable: !1,
                    swipe: !1,
                    fade: !0,
                    responsive: [{ breakpoint: 1024, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, arrows: !0, draggable: !1, swipe: !1, fade: !0 } }],
                }),
            e(".image-content-slider").length &&
                e(".image-content-slider").slick({
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: !0,
                    dots: !1,
                    infinite: !0,
                    fade: !0,
                    responsive: [{ breakpoint: 1024, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, arrows: !0, fade: !0 } }],
                }),
            e(".boxes-slider").length &&
                e(".boxes-slider").slick({
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: !1,
                    dots: !0,
                    infinite: !0,
                    fade: !0,
                    customPaging: function (e, t) {
                        return "<div><span>" + e.$slides.eq(t).children(".label").text() + "</span><span>" + e.$slides.eq(t).children(".description").text() + "</span></div>";
                    },
                    responsive: [{ breakpoint: 1024, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !0, fade: !0, arrows: !1 } }],
                }),
            e(".media-list .links").length &&
                e(".media-list .links").slick({
                    slidesToShow: 2,
                    slidesToScroll: 1,
                    arrows: !1,
                    dots: !0,
                    fade: !0,
                    responsive: [
                        { breakpoint: 3e3, settings: "unslick" },
                        { breakpoint: 992, settings: { slidesToShow: 3, slidesToScroll: 1, arrows: !1, dots: !0, fade: !0, infinite: !0 } },
                        { breakpoint: 400, settings: { slidesToShow: 1, slidesToScroll: 1, arrows: !1, dots: !0, fade: !0, infinite: !0 } },
                    ],
                }),
            e(".gallery-slider").length)
        ) {
            let t = 0;
            e(".gallery-slider .item").each(function (t, s) {
                e(".gallery .slick-dots .slick-dots-holder").append("<li><button></button></li>");
            });
            let s = e(window).width() < 1400 ? e(".wrap").offset().left + 24 : e(".wrap").offset().left - 64;
            e(e(".gallery .slick-dots .slick-dots-holder li").eq(0)).addClass("slick-active"),
                e(".gallery .slick-dots").css("left", s),
                e(".gallery-slider").on("mousewheel", function (s) {
                    if (s.originalEvent.wheelDelta < 0 && e(".gallery-slider .item.active").index() == e(".gallery-slider .item").length - 1)
                        return (
                            s.preventDefault(),
                            s.stopImmediatePropagation(),
                            s.stopPropagation(),
                            e(".gallery-slider").addClass("no-events"),
                            console.log("Cancel event!"),
                            setTimeout(() => {
                                e(".gallery-slider").removeClass("no-events");
                            }, 1e3),
                            !1
                        );
                    e(".gallery-slider .item").each(function (t, s) {
                        0 == Math.abs(e(".gallery-slider")[0].getBoundingClientRect().top - e(s)[0].getBoundingClientRect().top)
                            ? (e(s).addClass("active"), console.log("Adding class to index: ", e(s).index()), e(e(".gallery .slick-dots .slick-dots-holder li").eq(e(s).index())).addClass("slick-active"))
                            : (e(s).removeClass("active"), e(e(".gallery .slick-dots .slick-dots-holder li").eq(e(s).index())).removeClass("slick-active"));
                    }),
                        (t = e(window).scrollTop()),
                        console.log(t);
                }),
                e(window).on("resize", function (t) {
                    let s = e(window).width() < 1400 ? e(".wrap").offset().left + 24 : e(".wrap").offset().left - 64;
                    e(".gallery .slick-dots").css("left", s);
                });
        }
        e(".units-gallery .gallery").length &&
            e(".units-gallery .gallery").slick({
                centerMode: !0,
                centerPadding: "500px",
                slidesToShow: 1,
                slidesToScroll: 1,
                arrows: !0,
                dots: !1,
                infinite: !0,
                fade: !1,
                responsive: [
                    { breakpoint: 3e3, settings: { centerPadding: "400px", slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, fade: !1, arrows: !0 } },
                    { breakpoint: 1600, settings: { centerPadding: "250px", slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, fade: !1, arrows: !0 } },
                    { breakpoint: 1200, settings: { centerPadding: "170px", slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, fade: !1, arrows: !0 } },
                    { breakpoint: 1e3, settings: { centerPadding: "80px", slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, fade: !0, arrows: !0 } },
                    { breakpoint: 400, settings: { centerPadding: "20px", slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, fade: !0, arrows: !0 } },
                ],
            }),
            e(".posts-slider").length &&
                e(".posts-slider").slick({
                    responsive: [
                        { breakpoint: 768, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !0, fade: !0, arrows: !1 } },
                        { breakpoint: 3e3, settings: "unslick" },
                    ],
                }),
            e(".cards-slider").length &&
                e(".cards-slider").slick({
                    responsive: [
                        { breakpoint: 3e3, settings: "unslick" },
                        { breakpoint: 980, settings: { slidesToShow: 4, slidesToScroll: 1, infinite: !0, dots: !1, arrows: !1 } },
                        { breakpoint: 768, settings: { slidesToShow: 4, slidesToScroll: 1, infinite: !0, dots: !1, arrows: !1 } },
                        { breakpoint: 460, settings: { slidesToShow: 2, slidesToScroll: 1, infinite: !0, dots: !1, arrows: !1 } },
                    ],
                }),
            e(".boxes-modal-slider").length &&
                e(".boxes-modal-slider").slick({
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: !0,
                    dots: !1,
                    infinite: !0,
                    fade: !0,
                    responsive: [{ breakpoint: 1024, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, fade: !0, arrows: !0 } }],
                }),
            e(".space-modal-slider").length &&
                e(".space-modal-slider").slick({
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: !0,
                    dots: !1,
                    infinite: !0,
                    fade: !1,
                    responsive: [
                        { breakpoint: 1024, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, fade: !1, arrows: !0 } },
                        { breakpoint: 768, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, fade: !0, arrows: !0 } },
                    ],
                }),
            e(".spaces").length &&
                e(".spaces").slick({
                    responsive: [
                        { breakpoint: 3e3, settings: "unslick" },
                        { breakpoint: 992, settings: { centerMode: !0, centerPadding: "30px", slidesToShow: 3, slidesToScroll: 1, arrows: !1, dots: !1, fade: !1, infinite: !0 } },
                        { breakpoint: 768, settings: { centerMode: !0, centerPadding: "30px", slidesToShow: 2, slidesToScroll: 1, arrows: !1, dots: !1, fade: !1, infinite: !0 } },
                        { breakpoint: 500, settings: { centerMode: !0, centerPadding: "30px", slidesToShow: 1, slidesToScroll: 1, arrows: !1, dots: !1, fade: !0, infinite: !0 } },
                    ],
                }),
            e(".budget-slider").length &&
                e(".budget-slider").slick({
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: !0,
                    dots: !1,
                    fade: !0,
                    infinite: !1,
                    prevArrow: '<button type="button" class="slick-prev">voltar</button>',
                    nextArrow: '<button type="button" class=" octagon slick-next"><span>continuar</span></button>',
                    draggable: !1,
                    responsive: [{ breakpoint: 1024, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !1, fade: !0, swipe: !1, dots: !1, arrows: !0, draggable: !1 } }],
                }),
            e(".faq-links .links-list").length &&
                e(".faq-links .links-list").slick({
                    slidesToShow: 3,
                    slidesToScroll: 1,
                    arrows: !1,
                    dots: !1,
                    infinite: !1,
                    variableWidth: !0,
                    swipeToSlide: !0,
                    responsive: [
                        { breakpoint: 3e3, settings: "unslick" },
                        { breakpoint: 768, settings: { variableWidth: !0, slidesToShow: 2, slidesToScroll: 1, arrows: !1, dots: !1, infinite: !1, swipeToSlide: !0 } },
                    ],
                }),
            e(".depositions-slider").length &&
                e(".depositions-slider").slick({
                    slidesToShow: 3,
                    slidesToScroll: 1,
                    arrows: !0,
                    dots: !1,
                    infinite: !0,
                    fade: !1,
                    responsive: [{ breakpoint: 768, settings: { slidesToShow: 1, slidesToScroll: 1, arrows: !1, dots: !0, fade: !0, infinite: !0 } }],
                }),
            e("#map").length &&
                (initMainMap(),
                e(".units-carousel").length &&
                    e(".units-carousel").slick({
                        slidesToShow: 3,
                        slidesToScroll: 1,
                        arrows: !0,
                        dots: !1,
                        centerMode: !0,
                        centerPadding: "84px",
                        infinite: !0,
                        responsive: [
                            { breakpoint: 2200, settings: { slidesToShow: 4, slidesToScroll: 1, infinite: !0, dots: !1, centerMode: !0, arrows: !0 } },
                            { breakpoint: 1600, settings: { slidesToShow: 3, slidesToScroll: 1, infinite: !0, dots: !1, centerMode: !0, arrows: !0 } },
                            { breakpoint: 768, settings: { slidesToShow: 2, slidesToScroll: 1, infinite: !0, dots: !1, centerMode: !0, arrows: !1 } },
                            { breakpoint: 700, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: !0, dots: !1, centerMode: !0, arrows: !1, variableWidth: !0 } },
                        ],
                    })),
            e(".tab-list .tab-item, .tab-nav .tab-item").on("click", function () {
                e(".tab-list .tab-item, .tab-nav .tab-item").removeClass("active"), e(this).addClass("active"), e(window).trigger("tab-list-change", [e(this).text()]);
            }),
            e(".faq .label").on("click", function () {
                e(this).toggleClass("collapse"), e(this).next().toggleClass("collapsed");
            }),
            e(window).on("tab-list-change", function (t, s) {
                switch ((e(".units-carousel .item").show(), e(".our-units .post").show(), s.trim().toLowerCase())) {
                    case "self storage":
                        e(".units-carousel .item:not(.self-storage)").hide(), e(".our-units .post:not(.self-storage)").hide();
                        break;
                    case "espaço empresarial":
                        e(".units-carousel .item:not(.espaco-empresarial)").hide(), e(".our-units .post:not(.espaco-empresarial)").hide();
                        break;
                    default:
                        e(".units-carousel .item").show(), e(".our-units .post").show();
                }
                filterMarkersOnMap(s.trim());
            }),
            e("#form-budget").length > 0 &&
                (($formBudget = jQuery("#form-budget")),
                ($unit = e("input[name='unidade']:checked", $formBudget)),
                ($name = e(".name", $formBudget)),
                ($email = e(".email", $formBudget)),
                ($phone = e(".phone", $formBudget)),
                ($intro = e(".intro", $formBudget)),
                ($details = e(".details", $formBudget)),
                ($newsletter = e(".newsletter", $formBudget)),
                $name.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $email.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $phone.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $intro.on("change", function () {
                    e(this).removeClass("error");
                }),
                $details.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                e('input[name="unidade"]', $formBudget).on("change", function (o) {
                    e('input[name="id_unidade"]', $formBudget).val(e(this).data("id"));
                }),
                e("input[name='categoria']").is(":checked") || (e(".budget-slider button.slick-next").css("pointer-events", "none"), e(".budget-slider button.slick-next").css("opacity", ".8")),
                e("input[name='categoria']").on("click", function () {
                    e(".budget-slider button.slick-next").css("pointer-events", ""),
                        e(".budget-slider button.slick-next").css("opacity", "1"),
                        "self-storage" == e(this).val() && (e(".units .self-storage").show(), e(".units .espaco-empresarial").hide(), e(".units .park").hide()),
                        "cond-logistico" == e(this).val() && (e(".units .espaco-empresarial").show(), e(".units .park").show(), e(".units .self-storage").hide()),
                        "nao-decidi" == e(this).val() && (e(".units .self-storage").show(), e(".units .espaco-empresarial").show());
                }),
                e(".budget-slider button.slick-next").on("click", function () {
                    e("input[name='unidade']").is(":checked") || (e(".budget-slider button.slick-next").css("pointer-events", "none"), e(".budget-slider button.slick-next").css("opacity", ".8"));
                }),
                e("input[name='unidade']").on("click", function () {
                    e(".budget-slider button.slick-next").css("pointer-events", ""), e(".budget-slider button.slick-next").css("opacity", "1");
                }),
                
                e('button[type="submit"]', $formBudget).on("click", function (o) {
                    return (
                        o.stopImmediatePropagation(),
                        o.preventDefault(),
                        ($errors = 0),
                        ($unit = e("input[name='unidade']:checked", $formBudget)),
                        ($name = e(".name", $formBudget)),
                        ($email = e(".email", $formBudget)),
                        ($phone = e(".phone", $formBudget)),
                        ($intro = e(".intro", $formBudget)),
                        ($details = e(".details", $formBudget)),
                        ($newsletter = e(".newsletter", $formBudget)),
                        ($unit = e("input[name='unidade']:checked", $formBudget)),
                        (0 != $unit.length && "" != $unit.val()) || ($errors++, $unit.addClass("error")),
                        ("" == $name.val() || $name.val().length < 3) && ($errors++, $name.addClass("error")),
                        ("" == $email.val() || $email.val().length < 3 || 1 != isEmail($email.val())) && ($errors++, $email.addClass("error")),
                        ("" == $phone.val() || $phone.val().length < 15) && ($errors++, $phone.addClass("error")),
                        null == $intro.val() && ($errors++, $intro.addClass("error")),
                        ("" == $details.val() || $details.val().length < 3) && ($errors++, $details.addClass("error")),
                        $errors > 0
                            ? (e(".step--3").append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      e(".message").remove();
                                  });
                              }, 2e3))
                            : e($formBudget).trigger("submit"),
							e(function(){if($errors <= 0 ){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-budget'});ga('send', {hitType: 'event',eventCategory: 'form-budget',eventAction: 'submit',});}}),
                        !1
                    );
                })),
            e("#form-contact").length > 0 &&
                (($formContact = jQuery("#form-contact")),
                ($name = e(".name", $formContact)),
                ($email = e(".email", $formContact)),
                ($phone = e(".phone", $formContact)),
                ($unit = e(".unit", $formContact)),
                ($intro = e(".intro", $formContact)),
                ($subject = e(".subject", $formContact)),
                ($details = e(".details", $formContact)),
                ($newsletter = e(".newsletter", $formContact)),
                e('select[name="unidade"]', $formContact).on("change", function (t) {
                    e('input[name="id_unidade"]', $formContact).val(e(e('select[name="unidade"] option', $formContact).filter(":selected")).data("id"));
                }),
                $name.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $email.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $phone.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $unit.on("change", function () {
                    e(this).removeClass("error");
                }),
                $intro.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $subject.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $details.on("change", function () {
                    e(this).removeClass("error");
                }),
                e('button[type="submit"]', $formContact).on("click", function (t) {
                    return (
                        t.stopImmediatePropagation(),
                        t.preventDefault(),
                        ($errors = 0),
                        ($name = e(".name", $formContact)),
                        ($email = e(".email", $formContact)),
                        ($phone = e(".phone", $formContact)),
                        ($unit = e(".unit", $formContact)),
                        ($intro = e(".intro", $formContact)),
                        ($subject = e(".subject", $formContact)),
                        ($details = e(".details", $formContact)),
                        ($newsletter = e(".newsletter", $formContact)),
                        ("" == $name.val() || $name.val().length < 3) && ($errors++, $name.addClass("error")),
                        ("" == $email.val() || $email.val().length < 3 || 1 != isEmail($email.val())) && ($errors++, $email.addClass("error")),
                        ("" == $phone.val() || $phone.val().length < 15) && ($errors++, $phone.addClass("error")),
                        $unit.length && null == $unit.val() && ($errors++, $unit.addClass("error")),
                        $intro.length && ("" == $intro.val() || $intro.val().length < 3) && ($errors++, $intro.addClass("error")),
                        $subject.length && ("" == $subject.val() || $subject.val().length < 3) && ($errors++, $subject.addClass("error")),
                        ("" != $details.val() && null != $details.val()) || ($errors++, $details.addClass("error")),
                        $errors > 0
                            ? ($formContact.append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      e(".message").remove();
                                  });
                              }, 2e3))
                            : e($formContact).trigger("submit"),
						e(function(){if($errors <= 0 ){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-contact'});ga('send', {hitType: 'event',eventCategory: 'form-contact',eventAction: 'submit',});}}),
                        !1
                    );
                })),
            e("#form-newsletter").length > 0 &&
                (($formNewsletter = jQuery("#form-newsletter")),
                ($nameField = e(".name", $formNewsletter)),
                ($emailField = e(".email", $formNewsletter)),
                $nameField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $emailField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                e('button[type="submit"]', $formNewsletter).on("click", function (t) {
                    return (
                        t.stopImmediatePropagation(),
                        t.preventDefault(),
                        ($errors = 0),
                        ($nameField = e(".name", $formNewsletter)),
                        ($emailField = e(".email", $formNewsletter)),
                        ("" == $nameField.val() || $nameField.val().length < 3) && ($errors++, $nameField.addClass("error")),
                        ("" == $emailField.val() || $emailField.val().length < 3 || 1 != isEmail($emailField.val())) && ($errors++, $emailField.addClass("error")),
                        $errors > 0
                            ? ($formNewsletter.append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      e(".message").remove();
                                  });
                              }, 2e3))
                            : e($formNewsletter).trigger("submit"),
                        !1
                    );
                })),
            e("#form-contact-promo").length > 0 &&
                (($formLanding = jQuery("#form-contact-promo")),
                ($nameField = e(".name", $formLanding)),
                ($emailField = e(".email", $formLanding)),
                ($phoneField = e(".phone", $formLanding)),
                ($subjectField = e(".subject", $formLanding)),
                ($selectField = e("select", $formLanding)),
                $nameField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $emailField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $phoneField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                e('button[type="submit"]', $formLanding).on("click", function (t) {
                    return (
                        t.stopImmediatePropagation(),
                        t.preventDefault(),
                        ($errors = 0),
                        ($nameField = e(".name", $formLanding)),
                        ($emailField = e(".email", $formLanding)),
                        ($phoneField = e(".phone", $formLanding)),
                        ($subjectField = e(".subject", $formLanding)),
                        ($selectField = e("select", $formLanding)),
                        ("" == $nameField.val() || $nameField.val().length < 3) && ($errors++, $nameField.addClass("error")),
                        ("" == $emailField.val() || $emailField.val().length < 3 || 1 != isEmail($emailField.val())) && ($errors++, $emailField.addClass("error")),
                        ("" == $phoneField.val() || $phoneField.val().length < 15) && ($errors++, $phoneField.addClass("error")),
                        (null === $subjectField.val() || "" == $subjectField.val() || $subjectField.val().length < 3) && ($errors++, $subjectField.addClass("error")),
                        null == $selectField.val() && ($errors++, $selectField.addClass("error")),
                        $errors > 0
                            ? ($formLanding.append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      e(".message").remove();
                                  });
                              }, 2e3))
                            : e($formLanding).trigger("submit"),
						e(function(){if($errors <= 0 ){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-contact-promo'});ga('send', {hitType: 'event',eventCategory: 'form-contact-promo',eventAction: 'submit',});}}),
                        !1
                    );
                })),
            e("#form-contact-promo-mobile").length > 0 &&
                (($formLanding = jQuery("#form-contact-promo-mobile")),
                ($nameField = e(".name", $formLanding)),
                ($emailField = e(".email", $formLanding)),
                ($phoneField = e(".phone", $formLanding)),
                //($subjectField = e(".subject", $formLanding)),
                //($selectField = e("select", $formLanding)),
                $nameField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $emailField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $phoneField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                e('button[type="submit"]', $formLanding).on("click", function (t) {
                    return (
                        t.stopImmediatePropagation(),
                        t.preventDefault(),
                        ($errors = 0),
                        ($nameField = e(".name", $formLanding)),
                        ($emailField = e(".email", $formLanding)),
                        ($phoneField = e(".phone", $formLanding)),
                        //($subjectField = e(".subject", $formLanding)),
                        //($selectField = e("select", $formLanding)),
                        ("" == $nameField.val() || $nameField.val().length < 3) && ($errors++, $nameField.addClass("error")),
                        ("" == $emailField.val() || $emailField.val().length < 3 || 1 != isEmail($emailField.val())) && ($errors++, $emailField.addClass("error")),
                        ("" == $phoneField.val() || $phoneField.val().length < 15) && ($errors++, $phoneField.addClass("error")),
                        //(null === $subjectField.val() || "" == $subjectField.val() || $subjectField.val().length < 3) && ($errors++, $subjectField.addClass("error")),
                        //null == $selectField.val() && ($errors++, $selectField.addClass("error")),
                        $errors > 0
                            ? ($formLanding.append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      //e(".message").remove();
									  //e(alert("OK"));
                                  });
                              }, 2e3))
                            : e($formLanding).trigger("submit"),
						e(function(){if($errors <= 0 ){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-contact-promo-mobile'});ga('send', {hitType: 'event',eventCategory: 'form-contact-promo-mobile',eventAction: 'submit',});}}),
                        !1	
                    );
                })),
			e("#form-contact-ucp").length > 0 &&
                (($formLanding = jQuery("#form-contact-ucp")),
                ($nameField = e(".name", $formLanding)),
                ($emailField = e(".email", $formLanding)),
                ($empresaField = e(".empresa", $formLanding)),
                ($phoneField = e(".phone", $formLanding)),
                ($subjectField = e(".subject", $formLanding)),
                ($selectField = e("select", $formLanding)),
                $nameField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $emailField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $empresaField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $phoneField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                e('button[type="submit"]', $formLanding).on("click", function (t) {
                    return (
                        t.stopImmediatePropagation(),
                        t.preventDefault(),
                        ($errors = 0),
                        ($nameField = e(".name", $formLanding)),
                        ($emailField = e(".email", $formLanding)),
                        ($empresaField = e(".empresa", $formLanding)),
                        ($phoneField = e(".phone", $formLanding)),
                        ("" == $nameField.val() || $nameField.val().length < 3) && ($errors++, $nameField.addClass("error")),
                        ("" == $emailField.val() || $emailField.val().length < 3 || 1 != isEmail($emailField.val())) && ($errors++, $emailField.addClass("error")),
                        ("" == $empresaField.val() || $empresaField.val().length < 3) && ($errors++, $empresaField.addClass("error")),
                        ("" == $phoneField.val() || $phoneField.val().length < 15) && ($errors++, $phoneField.addClass("error")),
                        $errors > 0
                            ? ($formLanding.append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      e(".message").remove();
                                  });
                              }, 2e3))
                            : e($formLanding).trigger("submit"),
						e(function(){if($errors <= 0 ){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-contact-ucp'});ga('send', {hitType: 'event',eventCategory: 'form-contact-ucp',eventAction: 'submit',});}}),
                        !1
                    );
                })),
                e("#form-contact-lp-self").length > 0 &&
                (($formLanding = jQuery("#form-contact-lp-self")),
                ($nameField = e(".name", $formLanding)),
                ($emailField = e(".email", $formLanding)),
                ($phoneField = e(".phone", $formLanding)),
                ($subjectField = e(".subject", $formLanding)),
                $nameField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $emailField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $phoneField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                e('button[type="submit"]', $formLanding).on("click", function (t) {
                    return (
                        t.stopImmediatePropagation(),
                        t.preventDefault(),
                        ($errors = 0),
                        ($nameField = e(".name", $formLanding)),
                        ($emailField = e(".email", $formLanding)),
                        ($phoneField = e(".phone", $formLanding)),
                        ($subjectField = e(".subject", $formLanding)),
                        ($selectField = e("select", $formLanding)),
                        ("" == $nameField.val() || $nameField.val().length < 3) && ($errors++, $nameField.addClass("error")),
                        ("" == $emailField.val() || $emailField.val().length < 3 || 1 != isEmail($emailField.val())) && ($errors++, $emailField.addClass("error")),
                        ("" == $phoneField.val() || $phoneField.val().length < 15) && ($errors++, $phoneField.addClass("error")),
                        (null === $subjectField.val() || "" == $subjectField.val() || $subjectField.val().length < 3) && ($errors++, $subjectField.addClass("error")),
                        null == $selectField.val() && ($errors++, $selectField.addClass("error")),
                        $errors > 0
                            ? ($formLanding.append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      e(".message").remove();
                                  });
                              }, 2e3))
                            : e($formLanding).trigger("submit"),
                        e(function(){if($errors <= 0 ){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-contact-lp-self'});ga('send', {hitType: 'event',eventCategory: 'form-contact-promo',eventAction: 'submit',});}}),
                        !1
                    );
                })),
                e("#form-posts").length > 0 &&
                (($formLanding = jQuery("#form-posts")),
                ($nameField = e(".name", $formLanding)),
                ($emailField = e(".email", $formLanding)),
                ($phoneField = e(".phone", $formLanding)),
                ($selectField = e("select", $formLanding)),
                $nameField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $emailField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $phoneField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                e('button[type="submit"]', $formLanding).on("click", function (t) {
                    return (
                        t.stopImmediatePropagation(),
                        t.preventDefault(),
                        ($errors = 0),
                        ($nameField = e(".name", $formLanding)),
                        ($emailField = e(".email", $formLanding)),
                        ($phoneField = e(".phone", $formLanding)),
                        ("" == $nameField.val() || $nameField.val().length < 3) && ($errors++, $nameField.addClass("error")),
                        ("" == $emailField.val() || $emailField.val().length < 3 || 1 != isEmail($emailField.val())) && ($errors++, $emailField.addClass("error")),
                        ("" == $phoneField.val() || $phoneField.val().length < 15) && ($errors++, $phoneField.addClass("error")),
                        $errors > 0
                            ? ($formLanding.append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      e(".message").remove();
                                  });
                              }, 2e3))
                            : e($formLanding).trigger("submit"),
                        !1
                    );
                })),
                e("#form-contact-sobre").length > 0 &&
                (($formLanding = jQuery("#form-contact-sobre")),
                ($nameField = e(".name", $formLanding)),
                ($emailField = e(".email", $formLanding)),
                $nameField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $emailField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $empresaField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $phoneField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                e('button[type="submit"]', $formLanding).on("click", function (t) {
                    return (
                        t.stopImmediatePropagation(),
                        t.preventDefault(),
                        ($errors = 0),
                        ($nameField = e(".name", $formLanding)),
                        ($emailField = e(".email", $formLanding)),
                        ("" == $nameField.val() || $nameField.val().length < 3) && ($errors++, $nameField.addClass("error")),
                        ("" == $emailField.val() || $emailField.val().length < 3 || 1 != isEmail($emailField.val())) && ($errors++, $emailField.addClass("error")),
                        $errors > 0
                            ? ($formLanding.append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      e(".message").remove();
                                  });
                              }, 2e3))
                            : e($formLanding).trigger("submit"),
                        !1
                    );
                })),
            e("#form-contact-lapa").length > 0 &&
                (($formLanding = jQuery("#form-contact-lapa")),
                ($nameField = e(".name", $formLanding)),
                ($emailField = e(".email", $formLanding)),
                ($empresaField = e(".empresa", $formLanding)),
                ($phoneField = e(".phone", $formLanding)),
                ($subjectField = e(".subject", $formLanding)),
                ($selectField = e("select", $formLanding)),
                $nameField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $emailField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $empresaField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $phoneField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                e('button[type="submit"]', $formLanding).on("click", function (t) {
                    return (
                        t.stopImmediatePropagation(),
                        t.preventDefault(),
                        ($errors = 0),
                        ($nameField = e(".name", $formLanding)),
                        ($emailField = e(".email", $formLanding)),
                        ($empresaField = e(".empresa", $formLanding)),
                        ($phoneField = e(".phone", $formLanding)),
                        ("" == $nameField.val() || $nameField.val().length < 3) && ($errors++, $nameField.addClass("error")),
                        ("" == $emailField.val() || $emailField.val().length < 3 || 1 != isEmail($emailField.val())) && ($errors++, $emailField.addClass("error")),
                        ("" == $empresaField.val() || $empresaField.val().length < 3) && ($errors++, $empresaField.addClass("error")),
                        ("" == $phoneField.val() || $phoneField.val().length < 15) && ($errors++, $phoneField.addClass("error")),
                        $errors > 0
                            ? ($formLanding.append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      e(".message").remove();
                                  });
                              }, 2e3))
                            : e($formLanding).trigger("submit"),
                        !1
                    );
                })),

            e("#form-whatsapp").length > 0 &&
                (($formWhatsapp = jQuery("#form-whatsapp")),
                ($nameField = e(".name", $formWhatsapp)),
                ($emailField = e(".email", $formWhatsapp)),
                ($phoneField = e(".phone", $formWhatsapp)),
                $nameField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $emailField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                $phoneField.on("keydown", function () {
                    e(this).removeClass("error");
                }),
                e('button[type="submit"]', $formWhatsapp).on("click", function (t) {
                    return (
                        t.stopImmediatePropagation(),
                        t.preventDefault(),
                        ($errors = 0),
                        ($nameField = e(".name", $formWhatsapp)),
                        ($emailField = e(".email", $formWhatsapp)),
                        ($phoneField = e(".phone", $formWhatsapp)),
                        ("" == $nameField.val() || $nameField.val().length < 3) && ($errors++, $nameField.addClass("error")),
                        ("" == $emailField.val() || $emailField.val().length < 3 || 1 != isEmail($emailField.val())) && ($errors++, $emailField.addClass("error")),
                        ("" == $phoneField.val() || $phoneField.val().length < 15) && ($errors++, $phoneField.addClass("error")),
                        $errors > 0
                            ? ($formWhatsapp.append('<p class="message">Revise os campos do formulário!</p>'),
                              setTimeout(function () {
                                  e(".message").fadeOut("200", function () {
                                      e(".message").remove();
                                  });
                              }, 2e3))
                            : (e($formWhatsapp).trigger("submit"), window.open("https://api.whatsapp.com/send?phone=551122221220&text=Oi!%20Desejo%20receber%20atendimento%20sobre%20selfstorage", "whatsapp")),
							e(function(){if($errors <= 0 ){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-whatsapp'});ga('send', {hitType: 'event',eventCategory: 'form-whatsapp',eventAction: 'submit',});}}),
                        !1
                    );
                })),
            e("form:not(#filter-form, #search-form)").each(function (t, s) {
                "" != utm_source &&
                    void 0 !== utm_source &&
                    (e(s).append('<input type="hidden" name="utm_source" value="' + utm_source + '">'),
                    e(s).append('<input type="hidden" name="utm_campaign" value="' + utm_campaign + '">'),
                    e(s).append('<input type="hidden" name="utm_medium" value="' + utm_medium + '">'),
                    e(s).append('<input type="hidden" name="utm_content" value="' + utm_content + '">'),
                    e(s).append('<input type="hidden" name="utm_term" value="' + utm_term + '">')),
                    e(s).append('<input type="hidden" name="is_mobile" value="' + isMobile.any() + '">'),
                    e(s).on("submit", function (t) {
                        t.stopImmediatePropagation(), t.preventDefault();
                        let o = e('button[type="submit"]', s);
                        o.attr("disabled", !0).addClass("loading");
                        try {
                            let t = "form-budget" != e(s).attr("id") ? e(s).attr("id") : "form-contato",
                                o = "form-contact-promo" == e(s).attr("id") ? document.title : "submit",
                                i = "form-budget" == e(s).attr("id") ? e('input[name="categoria"]:checked', e(s)).val() : "form-contact-promo" == e(s).attr("id") ? e('select[name="assunto"]', e(s)).val() : "";
                            ga("gtm4.send", { hitType: "event", eventCategory: t, eventAction: o, eventLabel: i });
                        } catch (e) {
                            console.warn("Google Analytics not working.");
                        }
                        grecaptcha.ready(function () {
                            grecaptcha.execute("6LcbN5IdAAAAAGk1snCU3fpJisb_aJZaOgCvrjnF", { action: "submit" }).then(function (t) {
                                let i = new FormData(e(s)[0]);
                                i.append("action", "ajax_send_contact"),
                                    i.append("captcha", t),
                                    i.append("form", e(s).attr("id")),
                                    e.ajax({
                                        url: THEME.URL.AJAX,
                                        type: "POST",
                                        dataType: "json",
                                        processData: !1,
                                        contentType: !1,
                                        data: i,
                                        beforeSend: function () {
                                            o.attr("disabled", !0).addClass("loading");
                                        },
                                        success: function (t) {
                                            "function" == typeof window.ajaxDone && window.ajaxDone(),
                                                console.log(t),
                                                1 == t
                                                    ? (e(s)[0].reset(),
                                                      e(s).append('<div class="success"><p></p></div>'),
                                                      e(".success p", s).text("Sua mensagem foi enviada com sucesso."),
													  //e(function(){if(jQuery("form").attr("id") == "form-contact-promo"){ga('send', {hitType: 'event',eventCategory: 'form-contact-promo',eventAction: 'Promo Good - GoodStorage',});}}),
													  //e(function(){if(jQuery("form").attr("id") == "form-contact-promo"){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-contact-promo'});}}),
													   
													  //e(function(){if(jQuery("form").attr("id") == "form-contact-ucp"){ga('send', {hitType: 'event',eventCategory: 'form-contact-ucp',eventAction: 'Parks Logisticos - GoodStorage',});}}),
													  //e(function(){if(jQuery("form").attr("id") == "form-contact-ucp"){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-contact-ucp'});}}),
													   
                                                      e(function(){if(jQuery("form").attr("id") == "form-posts"){ga('send', {hitType: 'event',eventCategory: 'form-posts',eventAction: 'submit',});}}),
                                                      e(function(){if(jQuery("form").attr("id") == "form-posts"){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-posts'});}}),
													   
													  //e(function(){if(jQuery("form").attr("id") == "form-whatsapp"){ga('send', {hitType: 'event',eventCategory: 'form-whatsapp',eventAction: 'submit',});}}),
													  //e(function(){if(jQuery("form").attr("id") == "form-whatsapp"){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-whatsapp'});}}),
													   
													  //e(function(){if(jQuery("form").attr("id") == "form-contact-promo-mobile"){ga('send', {hitType: 'event',eventCategory: 'form-contact-promo-mobile',eventAction: 'submit',});}}),
													 //e(function(){if(jQuery("form").attr("id") == "form-contact-promo-mobile"){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-contact-promo-mobile'});}}),
													   
													  //e(function(){if(jQuery("form").attr("id") == "form-budget"){ga('send', {hitType: 'event',eventCategory: 'form-budget',eventAction: 'submit',});}}),
													 // e(function(){if(jQuery("form").attr("id") == "form-budget"){window.dataLayer = window.dataLayer || [];window.dataLayer.push({'event': 'form-budget'});alert('form-budget');}}),
													   
                                                      e(".inputs", s).hide(),
                                                      setTimeout(function () {
                                                          if ((e(".success", s).fadeOut("200"), e(".inputs", s).fadeIn("200"), "form-whatsapp" == e(s).attr("id"))) {
                                                              e("#form-whatsapp").addClass("form-sent"), e(".whatsapp-modal").hide();
                                                              var t = new Date();
                                                              t.setTime(t.getTime() + 72e5);
                                                              var o = "expires=" + t.toUTCString();
                                                              document.cookie = "class=form-sent;" + o;
                                                          }
                                                      }, 3e3))
                                                    : (e(s).append('<div class="failure"><p></p></div>'),
                                                      e(".failure p", s).text("Ocorreu um erro ao enviar as suas informações. Tente novamente mais tarde."),
                                                      e(".inputs", s).hide(),
                                                      setTimeout(function () {
                                                          e(".failure", s).fadeOut("200"), e(".inputs", s).fadeIn("200");
                                                      }, 3e3));
                                        },
                                        error: function (e) {
											
											
                                            console.error(e);
                                        },
                                        complete: function () {
                                            o.removeClass("loading").removeAttr("disabled");
                                        },
                                    });
                            });
                        });
                    });
            }),
            e(window).on("scroll", function () {
                if (e("#map").length || e("#map-unit").length) {
                    e(".tab-navigation").length > 0 ? e(".tab-navigation") : e(".our-units");
                    let t = e("#map-unit").length > 0 ? e("#map-unit") : e("#map");
                    window.scrollY + window.innerHeight >= e(t).offset().top && (isMapLoaded || loadExternalJS(`https://maps.googleapis.com/maps/api/js?key=${e("#map").data("id")}&callback=initMainMap`, "google-maps"));
                }
                e("#embed").attr("src") != e("#embed").attr("data-src") && window.scrollY + window.innerHeight >= e(".embed-map").offset().top && e("#embed").attr("src", e("#embed").attr("data-src"));
            }),
            e(window).trigger("scroll"),
            setTimeout(() => {
                loadExternalJS("https://www.google.com/recaptcha/api.js?render=6LcbN5IdAAAAAGk1snCU3fpJisb_aJZaOgCvrjnF", "recaptcha"),
                    loadExternalJS("https://static.zdassets.com/ekr/snippet.js?key=bfb3646f-3a7c-4b9d-b325-066c969b831e", "ze-snippet");
            }, 5e3);
    });
</script>