if(!window.jQuery||!window.CORE)throw new Error("Dependency not found: jQuery or CORE",location.href,0);var APP=function(){try{return CORE.tools.dictionary(),{formContactValidate:function(){head.js(CORE.dependency.plugin.validate,CORE.dependency.plugin.validate_methods,CORE.dependency.plugin.forms,function(){CORE.tools.inputMask(),CORE.tools.inputFile();var t=jQuery("#formContact"),e=t.find("#estado"),n=t.find("#cidade");t.find(".submit").text();e.change(function(t){var e=jQuery(this).val();CORE.tools.changeCities(e,n)}),t.validate({rules:{email:{email:!0}},errorPlacement:function(){},highlight:function(t,e){CORE.tools.highlightForm(t,e)},unhighlight:function(t,e){CORE.tools.unhighlightForm(t,e)}})})},formWorkValidate:function(){head.js(CORE.dependency.plugin.validate,CORE.dependency.plugin.validate_methods,CORE.dependency.plugin.forms,function(){CORE.tools.inputMask(),CORE.tools.inputFile();var e=jQuery("#formContact");e.find(".submit").text();e.validate({rules:{email:{email:!0}},errorPlacement:function(){},highlight:function(t,e){CORE.tools.highlightForm(t,e)},unhighlight:function(t,e){CORE.tools.unhighlightForm(t,e)},submitHandler:function(t){e.attr("action",CORE.BASE_URL+"acoes/trabalhe").submit()}})})},formNewsValidate:function(){head.js(CORE.dependency.plugin.validate,function(){jQuery("#formNews").validate({rules:{newsEmail:{email:!0}},errorPlacement:function(){}})})},formNewsModalValidate:function(){head.js(CORE.dependency.plugin.validate,function(){jQuery("#formNewsModal").validate({rules:{modal_email:{email:!0}},errorPlacement:function(){}})})},formPartnerValidate:function(){head.js(CORE.dependency.plugin.validate,function(){var t=jQuery("#formPartners"),a=t.find("#estado");t.validate({rules:{},errorPlacement:function(){},submitHandler:function(t){jQuery.getJSON(CORE.BASE_URL+"acoes/representantes?estado="+a.val(),function(t){var n="";jQuery.each(t,function(t,e){n+='<li class="p-l-1 p-r-1 p-b-2 col-3-100 h-180 txt-l col-md-50 col-xs-100">',n+='\t<div class="inside bg-gray w-full h-full d-flex align-items-center p-l-34 p-r-15 p-l-lg-15">',n+="\t\t<div>",n+='\t\t\t<h6 class="d-block p-b-18 op-0-6 txt-main txt-up">\x3c!--<strong class="fw-900">'+a.val()+"</strong> --\x3e"+e.cidade+"</h6>",n+='\t\t\t<h5 class="d-block p-b-7 txt-main txt-up fw-900">'+e.nome+"</h5>",n+='\t\t\t<span class="d-block p-b-7 txt-main txt-up fw-300">'+e.razao_social+"</span>",n+='\t\t\t<span class="d-block p-b-7 txt-main fw-300"><strong class="fw-900">E-mail:</strong> <a href="mailto:'+e.email+'" class="txt-main txt-lower hover-txt-underline">'+e.email+"</a></span>",n+='\t\t\t<span class="d-block p-b-7 txt-main fw-300"><strong class="fw-900">Contato:</strong> '+e.telefone+"</span>",n+="\t\t</div>",n+="\t</div>",n+="</li>"}),0==t.length&&(n+='<li class="p-l-1 p-r-1 p-b-2 col-3-100 h-180 txt-l col-md-50 col-xs-100">',n+='\t<div class="inside bg-gray w-full h-full d-flex align-items-center p-l-34 p-r-15 p-l-lg-15">',n+="\t\t<div>",n+='\t\t\t<h6 class="d-block p-b-18 op-0-6 txt-main txt-up">SANTO ANTONIO DA PATRULHA / RS</h6>',n+='\t\t\t<h5 class="d-block p-b-7 txt-main txt-up fw-900">VIA UNO</h5>',n+='\t\t\t<span class="d-block p-b-7 txt-main fw-300"><strong class="fw-900">E-mail:</strong> <a href="mailto:sac@viauno.com" class="txt-main txt-lower hover-txt-underline">sac@viauno.com</a></span>',n+='\t\t\t<span class="d-block p-b-7 txt-main fw-300"><strong class="fw-900">Contato:</strong> 51 3662-5038 / 51 996773099</span>',n+="\t\t</div>",n+="\t</div>",n+="</li>"),jQuery(".listResult").empty().html(n)})}})})},formProductSearchValidate:function(){head.js(CORE.dependency.plugin.validate,function(){jQuery("#formSearch").validate({rules:{},errorPlacement:function(){}})})},formStoresValidate:function(){head.js(CORE.dependency.plugin.validate,function(){var t=jQuery("#formStores"),e=t.find("#estado"),a=t.find("#cidade");e.change(function(t){var e=a.find(":eq(0)").text(),n=jQuery(this).val();jQuery.getJSON(CORE.BASE_URL+"acoes/lojas-cidades?estado="+n,function(t){var n='<option value="">'+e+"</option><option disabled></option>";jQuery.each(t,function(t,e){n+='<option value="'+e.cidade+'">'+e.cidade+"</option>"}),a.empty().html(n)})}),t.validate({rules:{},errorPlacement:function(){},submitHandler:function(t){jQuery.getJSON(CORE.BASE_URL+"acoes/lojas?estado="+e.val()+"&cidade="+a.val(),function(t){var n="";jQuery.each(t,function(t,e){n+='<li data-aos="fade-up" class="p-l-2 p-r-2 p-b-4 h-180 col-25 txt-l col-sm-100 h-sm-auto">',n+='\t<div class="inside w-full h-full p-l-22 p-r-15 d-flex align-items-center p-t-sm-30 p-b-sm-30 p-l-sm-15">',n+="\t\t<div>",n+='\t\t\t<span class="tit fs-16 txt-up d-block p-b-10">'+e.nome+"</span>",n+='\t\t\t<span class="d-block p-b-5 txt-main">'+e.endereco+", "+e.numero+"</span>",n+='\t\t\t<span class="d-block p-b-5 txt-main"><strong class="fw-900">Bairro:</strong> '+e.bairro+"</span>",n+='\t\t\t<span class="d-block p-b-5 txt-main"><strong class="fw-900">Contato:</strong> '+e.telefone+"</span>",n+="\t\t</div>",n+="\t</div>",n+="</li>"}),jQuery(".listResultStores").empty().html(n)})}})})},menu:function(){jQuery(".toggleMenuTop").click(function(t){jQuery(".topMenu").toggleClass("active"),jQuery(this).find("i").toggleClass("fa-ellipsis-h fa-2x fa-times fa-1x")}),jQuery(".toggleMenu").click(function(t){jQuery("#header .responsive").toggleClass("active"),jQuery(this).find("i").toggleClass("fa-bars fa-times")})},oasAnimate:function(){window.onload=void head.js(CORE.dependency.plugin.aos,function(){AOS.init()})},playVideo:function(){jQuery(".play").click(function(){var t='<iframe src="https://www.youtube.com/embed/'+jQuery(this).data("video")+'?controls=0&autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';jQuery(this).parent().append(t)})},feedInstagram:function(){head.js(CORE.dependency.plugin.instagramFeed,function(){new InstagramFeed({username:"viaunooficial",container:document.getElementById("feedInstagram"),display_profile:!1,display_biography:!1,display_gallery:!0,callback:null,styling:!1,items:4,items_per_row:4,margin:0,lazy_load:!0,on_error:console.error})})},allDayPagerCycle:function(){setTimeout(function(){jQuery(".app-mobile").find("#slide-pager a").click(function(){jQuery("body, html").animate({scrollTop:jQuery(".cycle").offset().top},600)})},300)},showLinksPageHeader:function(){jQuery(".toggleLinksHeader").click(function(){jQuery(this).parent(".navLinks").next(".navLinks").toggleClass("open")})},showStores:function(){jQuery(".lkStore").click(function(t){t.preventDefault();t=jQuery(this).attr("href");jQuery(".boxStores").addClass("hide"),jQuery("#"+t).removeClass("hide"),jQuery("body, html").animate({scrollTop:jQuery("#"+t).offset().top},600)})}}}catch(t){throw new Error("[APP] - "+t.message)}}();