(function(){'use strict';var e={"class":"className",contenteditable:"contentEditable","for":"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};function aa(a,b){try{return a(b)}catch(c){return b}}var k=document,m=window,ba=k.documentElement,n=k.createElement.bind(k),ca=n("div"),p=n("table"),da=n("tbody"),ea=n("tr"),q=Array.isArray,r=Array.prototype,fa=r.concat,t=r.filter,ha=r.indexOf,ia=r.map,ja=r.push,ka=r.slice,u=r.some,la=r.splice,ma=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,na=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,oa=/<.+>/,pa=/^\w+$/;function v(a,b){return a&&(w(b)||x(b))?na.test(a)?b.getElementsByClassName(a.slice(1)):pa.test(a)?b.getElementsByTagName(a):b.querySelectorAll(a):[]}var B=function(){function a(a,c){if(a){if(a instanceof B)return a;var b=a;if(C(a)){if(b=(c instanceof B?c[0]:c)||k,b=ma.test(a)?b.getElementById(a.slice(1)):oa.test(a)?qa(a):v(a,b),!b)return}else if(D(a))return this.ready(a);if(b.nodeType||b===m)b=[b];this.length=b.length;a=0;for(c=this.length;aa?a+this.length:a]};E.eq=function(a){return F(this.get(a))};E.first=function(){return this.eq(0)};E.last=function(){return this.eq(-1)};function J(a,b,c){if(c)for(c=a.length;c--&&!1!==b.call(a[c],c,a[c]););else if(I(a)){var d=Object.keys(a);c=0;for(var h=d.length;carguments.length?this[0]&&this[0][a]:this.each(function(c,h){h[a]=b});for(var c in a)this.prop(c,a[c]);return this}};E.removeProp=function(a){return this.each(function(b,c){delete c[e[a]||a]})};function K(){for(var a=[],b=0;barguments.length){if(!this[0]||!x(this[0]))return;var c=this[0].getAttribute(a);return null===c?void 0:c}return void 0===b?this:null===b?this.removeAttr(a):this.each(function(c,h){x(h)&&h.setAttribute(a,b)})}for(c in a)this.attr(c,a[c]);return this}};E.toggleClass=function(a,b){var c=N(a),d=void 0!==b;return this.each(function(a,f){x(f)&&J(c,function(a,c){d?b?f.classList.add(c):f.classList.remove(c):f.classList.toggle(c)})})};E.addClass=function(a){return this.toggleClass(a,!0)};E.removeClass=function(a){return arguments.length?this.toggleClass(a,!1):this.attr("class","")};function O(a,b,c,d){for(var h=[],f=D(b),g=d&&L(d),y=0,z=a.length;yarguments.length)return this[0]&&Q(this[0],a,c);if(!a)return this;b=za(a,b,c);return this.each(function(d,f){x(f)&&(c?f.style.setProperty(a,b):f.style[a]=b)})}for(var d in a)this.css(d,a[d]);return this};var Aa=/^\s+|\s+$/;function Ba(a,b){a=a.dataset[b]||a.dataset[G(b)];return Aa.test(a)?a:aa(JSON.parse,a)}E.data=function(a,b){if(!a){if(!this[0])return;var c={},d;for(d in this[0].dataset)c[d]=Ba(this[0],d);return c}if(C(a))return 2>arguments.length?this[0]&&Ba(this[0],a):void 0===b?this:this.each(function(c,d){c=b;c=aa(JSON.stringify,c);d.dataset[G(a)]=c});for(d in a)this.data(d,a[d]);return this};function Ca(a,b){var c=a.documentElement;return Math.max(a.body["scroll"+b],c["scroll"+b],a.body["offset"+b],c["offset"+b],c["client"+b])}function Da(a,b){return R(a,"border"+(b?"Left":"Top")+"Width")+R(a,"padding"+(b?"Left":"Top"))+R(a,"padding"+(b?"Right":"Bottom"))+R(a,"border"+(b?"Right":"Bottom")+"Width")}J([!0,!1],function(a,b){J(["Width","Height"],function(a,d){E[(b?"outer":"inner")+d]=function(c){if(this[0])return H(this[0])?b?this[0]["inner"+d]:this[0].document.documentElement["client"+d]:w(this[0])?Ca(this[0],d):this[0][(b?"offset":"client")+d]+(c&&b?R(this[0],"margin"+(a?"Top":"Left"))+R(this[0],"margin"+(a?"Bottom":"Right")):0)}})});J(["Width","Height"],function(a,b){var c=b.toLowerCase();E[c]=function(d){if(!this[0])return void 0===d?void 0:this;if(!arguments.length)return H(this[0])?this[0].document.documentElement["client"+b]:w(this[0])?Ca(this[0],b):this[0].getBoundingClientRect()[c]-Da(this[0],!a);var h=parseInt(d,10);return this.each(function(b,d){x(d)&&(b=Q(d,"boxSizing"),d.style[c]=za(c,h+("border-box"===b?Da(d,!a):0)))})}});var U={};E.toggle=function(a){return this.each(function(b,c){if(x(c))if(void 0===a?"none"===Q(c,"display"):a){if(c.style.display=c.___cd||"","none"===Q(c,"display")){b=c.style;c=c.tagName;if(U[c])c=U[c];else{var d=n(c);k.body.insertBefore(d,null);var h=Q(d,"display");k.body.removeChild(d);c=U[c]="none"!==h?h:"block"}b.display=c}}else c.___cd=Q(c,"display"),c.style.display="none"})};E.hide=function(){return this.toggle(!1)};E.show=function(){return this.toggle(!0)};function Ea(a,b){return!b||!u.call(b,function(b){return 0>a.indexOf(b)})}var V={focus:"focusin",blur:"focusout"},W={mouseenter:"mouseover",mouseleave:"mouseout"},Fa=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function Ga(a,b,c,d,h){var f=a.___ce=a.___ce||{};f[b]=f[b]||[];f[b].push([c,d,h]);a.addEventListener(b,h)}function X(a){a=a.split(".");return[a[0],a.slice(1).sort()]}function Y(a,b,c,d,h){var f=a.___ce=a.___ce||{};if(b)f[b]&&(f[b]=f[b].filter(function(f){var g=f[0],z=f[1];f=f[2];if(h&&f.guid!==h.guid||!Ea(g,c)||d&&d!==z)return!0;a.removeEventListener(b,f)}));else for(b in f)Y(a,b,c,d,h)}E.off=function(a,b,c){var d=this;if(void 0===a)this.each(function(a,b){(x(b)||w(b)||H(b))&&Y(b)});else if(C(a))D(b)&&(c=b,b=""),J(N(a),function(a,h){a=X(h);h=a[0];var f=a[1],g=W[h]||V[h]||h;d.each(function(a,d){(x(d)||w(d)||H(d))&&Y(d,g,f,b,c)})});else for(var h in a)this.off(h,a[h]);return this};E.on=function(a,b,c,d,h){var f=this;if(!C(a)){for(var g in a)this.on(g,b,c,a[g],h);return this}C(b)||(void 0!==b&&null!==b&&(void 0!==c&&(d=c),c=b),b="");D(d)||(d=c,c=void 0);if(!d)return this;J(N(a),function(a,g){a=X(g);g=a[0];var l=a[1],z=W[g]||V[g]||g,y=g in W,Ka=g in V;z&&f.each(function(a,f){if(x(f)||w(f)||H(f))a=function La(a){if(a.target["___i"+a.type])return a.stopImmediatePropagation();if(!a.namespace||Ea(l,a.namespace.split(".")))if(b||!(Ka&&(a.target!==f||a.___ot===z)||y&&a.relatedTarget&& f.contains(a.relatedTarget))){var g=f;if(b){for(var A=a.target;!sa(A,b);){if(A===f)return;A=A.parentNode;if(!A)return}g=A;a.___cd=!0}a.___cd&&Object.defineProperty(a,"currentTarget",{configurable:!0,get:function(){return g}});Object.defineProperty(a,"data",{configurable:!0,get:function(){return c}});A=d.call(g,a,a.___td);h&&Y(f,z,l,b,La);!1===A&&(a.preventDefault(),a.stopPropagation())}},a.guid=d.guid=d.guid||F.guid++,Ga(f,z,l,b,a)})});return this};E.one=function(a,b,c,d){return this.on(a,b,c,d,!0)};E.ready=function(a){function b(){return setTimeout(a,0,F)}"loading"!==k.readyState?b():k.addEventListener("DOMContentLoaded",b);return this};E.trigger=function(a,b){if(C(a)){var c=X(a),d=c[0];c=c[1];var h=W[d]||V[d]||d;if(!h)return this;var f=Fa.test(h)?"MouseEvents":"HTMLEvents";a=k.createEvent(f);a.initEvent(h,!0,!0);a.namespace=c.join(".");a.___ot=d}a.___td=b;var g=a.___ot in V;return this.each(function(b,c){g&&D(c[a.___ot])&&(c["___i"+a.type]=!0,c[a.___ot](),c["___i"+a.type]=!1);c.dispatchEvent(a)})};function Ha(a){return a.multiple&&a.options?O(t.call(a.options,function(a){return a.selected&&!a.disabled&&!a.parentNode.disabled}),"value"):a.value||""}var Ia=/%20/g,Ja=/\r?\n/g,Ma=/file|reset|submit|button|image/i,Na=/radio|checkbox/i;E.serialize=function(){var a="";this.each(function(b,c){J(c.elements||[c],function(b,c){c.disabled||!c.name||"FIELDSET"===c.tagName||Ma.test(c.type)||Na.test(c.type)&&!c.checked||(b=Ha(c),void 0!==b&&(b=q(b)?b:[b],J(b,function(b,d){b=a;d="&"+encodeURIComponent(c.name)+"="+encodeURIComponent(d.replace(Ja,"\r\n")).replace(Ia,"+");a=b+d})))})});return a.slice(1)};E.val=function(a){return arguments.length?this.each(function(b,c){if((b=c.multiple&&c.options)||Na.test(c.type)){var d=q(a)?ia.call(a,String):null===a?[]:[String(a)];b?J(c.options,function(a,b){b.selected=0<=d.indexOf(b.value)},!0):c.checked=0<=d.indexOf(c.value)}else c.value=void 0===a||null===a?"":a}):this[0]&&Ha(this[0])};E.clone=function(){return this.map(function(a,b){return b.cloneNode(!0)})};E.detach=function(a){M(this,a).each(function(a,c){c.parentNode&&c.parentNode.removeChild(c)});return this};var Oa=/^\s*<(\w+)[^>]*>/,Pa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Qa={"*":ca,tr:da,td:ea,th:ea,thead:p,tbody:p,tfoot:p};function qa(a){if(!C(a))return[];if(Pa.test(a))return[n(RegExp.$1)];var b=Oa.test(a)&&RegExp.$1;b=Qa[b]||Qa["*"];b.innerHTML=a;return F(b.childNodes).detach().get()}F.parseHTML=qa;E.empty=function(){return this.each(function(a,b){for(;b.firstChild;)b.removeChild(b.firstChild)})};E.html=function(a){return arguments.length?void 0===a?this:this.each(function(b,c){x(c)&&(c.innerHTML=a)}):this[0]&&this[0].innerHTML};E.remove=function(a){M(this,a).detach().off();return this};E.text=function(a){return void 0===a?this[0]?this[0].textContent:"":this.each(function(b,c){x(c)&&(c.textContent=a)})};E.unwrap=function(){this.parent().each(function(a,b){"BODY"!==b.tagName&&(a=F(b),a.replaceWith(a.children()))});return this};E.offset=function(){var a=this[0];if(a)return a=a.getBoundingClientRect(),{top:a.top+m.pageYOffset,left:a.left+m.pageXOffset}};E.offsetParent=function(){return this.map(function(a,b){for(a=b.offsetParent;a&&"static"===Q(a,"position");)a=a.offsetParent;return a||ba})};E.position=function(){var a=this[0];if(a){var b="fixed"===Q(a,"position"),c=b?a.getBoundingClientRect():this.offset();if(!b){var d=a.ownerDocument;for(b=a.offsetParent||d.documentElement;(b===d.body||b===d.documentElement)&&"static"===Q(b,"position");)b=b.parentNode;b!==a&&x(b)&&(d=F(b).offset(),c.top-=d.top+R(b,"borderTopWidth"),c.left-=d.left+R(b,"borderLeftWidth"))}return{top:c.top-R(a,"marginTop"),left:c.left-R(a,"marginLeft")}}};E.children=function(a){return M(F(P(O(this,function(a){return a.children}))),a)};E.contents=function(){return F(P(O(this,function(a){return"IFRAME"===a.tagName?[a.contentDocument]:"TEMPLATE"===a.tagName?a.content.childNodes:a.childNodes})))};E.find=function(a){return F(P(O(this,function(b){return v(a,b)})))};var Ra=/^\s*\s*$/g,Sa=/^$|^module$|\/(java|ecma)script/i,Ta=["type","src","nonce","noModule"];function Ua(a,b){a=F(a);a.filter("script").add(a.find("script")).each(function(a,d){if(Sa.test(d.type)&&ba.contains(d)){var c=n("script");c.text=d.textContent.replace(Ra,"");J(Ta,function(a,b){d[b]&&(c[b]=d[b])});b.head.insertBefore(c,null);b.head.removeChild(c)}})}function Z(a,b,c,d,h,f,g,y){J(a,function(a,f){J(F(f),function(a,f){J(F(b),function(b,g){var l=c?g:f;b=c?a:b;g=c?f:g;l=b?l.cloneNode(!0):l;b=!b;h?g.insertBefore(l,d?g.firstChild:null):g.parentNode.insertBefore(l,d?g:g.nextSibling);b&&Ua(l,g.ownerDocument)},y)},g)},f);return b}E.after=function(){return Z(arguments,this,!1,!1,!1,!0,!0)};E.append=function(){return Z(arguments,this,!1,!1,!0)};E.appendTo=function(a){return Z(arguments,this,!0,!1,!0)};E.before=function(){return Z(arguments,this,!1,!0)};E.insertAfter=function(a){return Z(arguments,this,!0,!1,!1,!1,!1,!0)};E.insertBefore=function(a){return Z(arguments,this,!0,!0)};E.prepend=function(){return Z(arguments,this,!1,!0,!0,!0,!0)};E.prependTo=function(a){return Z(arguments,this,!0,!0,!0,!1,!1,!0)};E.replaceWith=function(a){return this.before(a).remove()};E.replaceAll=function(a){F(a).replaceWith(this);return this};E.wrapAll=function(a){a=F(a);for(var b=a[0];b.children.length;)b=b.firstElementChild;this.first().before(a);return this.appendTo(b)};E.wrap=function(a){return this.each(function(b,c){var d=F(a)[0];F(c).wrapAll(b?d.cloneNode(!0):d)})};E.wrapInner=function(a){return this.each(function(b,c){b=F(c);c=b.contents();c.length?c.wrapAll(a):b.append(a)})};E.has=function(a){var b=C(a)?function(b,d){return v(a,d).length}:function(b,d){return d.contains(a)};return this.filter(b)};E.is=function(a){var b=L(a);return u.call(this,function(a,d){return b.call(a,d,a)})};E.next=function(a,b,c){return M(F(P(O(this,"nextElementSibling",b,c))),a)};E.nextAll=function(a){return this.next(a,!0)};E.nextUntil=function(a,b){return this.next(b,!0,a)};E.not=function(a){var b=L(a);return this.filter(function(c,d){return(!C(a)||x(d))&&!b.call(d,c,d)})};E.parent=function(a){return M(F(P(O(this,"parentNode"))),a)};E.index=function(a){var b=a?F(a)[0]:this[0];a=a?this:F(b).parent().children();return ha.call(a,b)};E.closest=function(a){var b=this.filter(a);if(b.length)return b;var c=this.parent();return c.length?c.closest(a):b};E.parents=function(a,b){return M(F(P(O(this,"parentElement",!0,b))),a)};E.parentsUntil=function(a,b){return this.parents(b,a)};E.prev=function(a,b,c){return M(F(P(O(this,"previousElementSibling",b,c))),a)};E.prevAll=function(a){return this.prev(a,!0)};E.prevUntil=function(a,b){return this.prev(b,!0,a)};E.siblings=function(a){return M(F(P(O(this,function(a){return F(a).parent().children().not(a)}))),a)};"undefined"!==typeof exports?module.exports=F:m.cash=m.$=F;})(); var elementos_css ={}; var blocos_posicao ={}; var elementos_posicao ={}; var elementos_popup ={}; var elementos_botoes_evento ={}; var pagina_controle ={ 'classe_bloco':'gpc-b', 'classe_elemento':'gpc-e', 'classe_elemento_antigo':'gpc-elemento', 'classe_elemento_interno':'c', 'classe_elemento_interno_antigo':'conteudo', 'elementos_timer':{} }; var largura_tela, altura_tela, timeout_resize; function GreatResize(){ let tamanho_tela = $(window).width(); let zoom_default = 'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, shrink-to-fit=no'; function iOS(){return ['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(navigator.platform) || (navigator.userAgent.includes("Mac") && "ontouchend" in document)} if(tamanho_tela <= 1200){ let controle = 1200; if(tamanho_tela > 360 && tamanho_tela <= 800){ $('.gpc-b').each(function(){if($(this).css('background-attachment') == 'fixed'){$(this).css('background-position','');}}); if(iOS()){$('meta[name="viewport"]').attr('content',zoom_default);} else{$('body').css('zoom','');} return; }else if(tamanho_tela <= 360){controle = 360;} let proporcao = (((tamanho_tela*100)/controle)).toFixed(5), novo_tamanho; novo_tamanho = (tamanho_tela-(tamanho_tela*(proporcao/100))); if(novo_tamanho != 0){ $('.gpc-b').each(function(i,bloco){ if($(bloco).css('background-attachment') == 'fixed'){ if(iOS()){$(bloco).css('background-attachment','initial');} if($(bloco).position().top >= $(window).height()){$(bloco).css('background-position',$(bloco).css('background-position-x')+' 100%');} else{$(bloco).css('background-position',$(bloco).css('background-position-x')+' 0%');} } }); if(iOS()){ $('meta[name="viewport"]').attr('content','width='+novo_tamanho+', initial-scale='+(proporcao/100)+', maximum-scale='+(proporcao/100)+', minimum-scale='+(proporcao/100)+', user-scalable=no, shrink-to-fit=no'); }else{$('body').css({'zoom':proporcao+'%'});} }else{ if(iOS()){ $('.gpc-b').each(function(i,bloco){ if($(bloco).css('background-attachment') == 'fixed'){ $(bloco).css('background-attachment','initial'); if($(bloco).position().top >= $(window).height()){$(bloco).css('background-position',$(bloco).css('background-position-x')+' 100%');} else{$(bloco).css('background-position',$(bloco).css('background-position-x')+' 0%');} } }); } } }else{ $('.gpc-b').each(function(i,bloco){if($(bloco).css('background-attachment') == 'fixed'){$(bloco).css('background-position','');}}); if(iOS()){$('meta[name="viewport"]').attr('content',zoom_default);} else{$('body').css('zoom','');} } } GreatResize(); $(function(){GreatResize();}); window.addEventListener('resize', function(e){ e.preventDefault(); e.stopPropagation(); if(timeout_resize){clearTimeout(timeout_resize);timeout_resize = null;} largura_tela = $(window).width(); altura_tela = $(window).height(); timeout_resize = setTimeout(function(){ if($(window).width() == largura_tela && $(window).height() == altura_tela){GreatResize();} },50); },{passive:true}); function GreatFontes(modal){ if(modal == undefined){modal = false;} if((navigator.userAgent.match(/Android/i) && (navigator.userAgent.match(/Instagram/i) || navigator.userAgent.match(/FBAN/i) || navigator.userAgent.match(/FBAV/i))) || (navigator.userAgent.match(/iPhone/i) && $(window).width() < 360)){ $((modal ? '.gm ':'')+'.gpc-e').each(function(){ var elemento = $(this); var elemento_id = elemento.attr('id'); if (elementos_css.hasOwnProperty(elemento_id)){ var elemento_conteudo = (elemento.hasClass('e_formulario') ? elemento.find('.gpc_botao') :elemento.children('.c')); var fs_aumento = fs_novo = 0; if (parseFloat(elemento_conteudo.css('font-size')) != elementos_css[elemento_id]['fs']){ fs_aumento = (elementos_css[elemento_id]['fs']*100)/parseFloat(elemento_conteudo.css('font-size')); fs_novo = elementos_css[elemento_id]['fs']-((100-fs_aumento)*(elementos_css[elemento_id]['fs']/100)); elemento_conteudo.css('font-size',fs_novo+'px'); elemento_conteudo.children().each(function(){$(this).css('font-size',fs_novo+'px');}); if (elementos_css[elemento_id]['lh']){ elemento_conteudo.css('line-height',elementos_css[elemento_id]['lh']); elemento_conteudo.children().each(function(){$(this).css('line-height',elementos_css[elemento_id]['lh']);}); } if (elemento.hasClass('e_timer')){ if (parseFloat(elemento_conteudo.css('font-size')) != elementos_css[elemento_id]['fs']){ elemento_conteudo.find('.contador_titulos').css('line-height','1'); elemento_conteudo.find('.contador_itens').children('span').css('line-height','1.2'); } }else if (elemento.hasClass('e_formulario')){ var fs_aumento_form = fs_novo_form = 0; fs_aumento_form = (14*100)/parseFloat(elemento_conteudo.find('.gpc_campos-titulo').css('font-size')); fs_novo_form = 14-((100-fs_aumento_form)*(14/100)); elemento_conteudo.find('.gpc_campos-titulo').css({'font-size':fs_novo_form+'px', 'line-height':'1.4'}); fs_aumento_form = (12*100)/parseFloat(elemento_conteudo.find('.gpc_campos-texto').css('font-size')); fs_novo_form = 12-((100-fs_aumento_form)*(12/100)); elemento_conteudo.find('.gpc_campos-texto').css({'font-size':fs_novo_form+'px', 'line-height':'1.4'}); elemento_conteudo.find('.gpc_botao').css({'font-size':fs_novo+'px', 'line-height':elementos_css[elemento_id]['lh']}); } } } }); } } $(function(){ GreatFontes(); }); $(function(){GreatLoader('iniciar');}); var gle_fontes ={}, gle_css ={}, gle_scripts ={}; function GreatLoader(acao){ gle_fontes['elementos'] = $('.gle_fontes'); gle_fontes['encontrados'] = gle_fontes['elementos'].length; gle_fontes['carregados'] = 0; if (gle_fontes['encontrados'] != 0){ if(!window.getCrawler()){ InserirFontes(acao); setTimeout(function(){CarregarFontes();},4500); }else{CarregarFontes();} }else{CarregarFontes();} setTimeout(function(){ gle_scripts['elementos'] = $('.gle_scripts'); gle_scripts['encontrados'] = gle_scripts['elementos'].length; gle_scripts['carregados'] = 0; if (gle_scripts['encontrados'] != 0){ InserirScripts(acao); }else{if (acao == 'iniciar'){if (window.InserirScriptsInline != undefined){InserirScriptsInline();}}} },20); setTimeout(function(){ gle_css = $('.gle_css'); InserirCss(acao); },30); setTimeout(function(){ GObserver.instalar({ 'elemento' :'.e_animacoes', 'antecipacao' :0, 'executar' :function(elemento){ (function(elemento){ var elemento_carregando = setInterval(function(){ if (!$(elemento).hasClass('se_imagem') && !$(elemento).hasClass('se_video') && !$(elemento).hasClass('se_caixa') && !$(elemento).find('.c').hasClass('se_fonte') && !$(elemento).hasClass('se_slider')){ clearInterval(elemento_carregando); var elemento_id = $(elemento).attr('id').replace('_d', '').replace('_m', ''); var elemento_informacoes = ($(elemento).hasClass('e_video') && $(elemento).find('.carregando').length ? $(elemento).find('.carregando') :$(elemento).find('.c')); var animacao_nome = $(elemento_informacoes).attr('data-animation-nome'); var animacao_duration = ($(elemento_informacoes).attr('data-animation-duration') ? $(elemento_informacoes).attr('data-animation-duration')+'ms' :'1000ms'); var animacao_delay = ($(elemento_informacoes).attr('data-animation-delay') ? $(elemento_informacoes).attr('data-animation-delay')+'ms' :'0ms'); var animacao_repeat = ($(elemento_informacoes).attr('data-animation-repeat') == 'loop' ? 'infinite' :''); if (animacao_nome == 'slide' || animacao_nome == 'zoom' || animacao_nome == 'flip'){var animacao_tipo = 'cubic-bezier(.25,.46,.45,.94)';} else if (animacao_nome == 'fade'){var animacao_tipo = 'cubic-bezier(0.390, 0.575, 0.565, 1.000)';} else if (animacao_nome == 'roll'){var animacao_tipo = 'ease-out';} else if (animacao_nome == 'fold'){var animacao_tipo = 'cubic-bezier(.175,.885,.32,1.275)';} else{var animacao_tipo = '';} $(elemento).removeClass('e_animacoes'); if(!window.getCrawler()){ if($(elemento).hasClass('e_faq')){ var itens = $(elemento).find('.gac-item'); for (var i = 0;i < itens.length;i++){ $(itens[i]).css({ 'animation':elemento_id+'_animacao '+animacao_duration+' '+animacao_tipo+' '+(parseInt(animacao_delay)+(500*i))+'ms '+animacao_repeat+' both', '-webkit-animation':elemento_id+'_animacao '+animacao_duration+' '+animacao_tipo+' '+(parseInt(animacao_delay)+(500*i))+'ms '+animacao_repeat+' both', 'transform':'translate3d(0,0,0)', '-webkit-transform':'translate3d(0,0,0)', 'perspective':'500px'}); } }else{ $(elemento).find('.c').css({ 'animation':elemento_id+'_animacao '+animacao_duration+' '+animacao_tipo+' '+animacao_delay+' '+animacao_repeat+' both', '-webkit-animation':elemento_id+'_animacao '+animacao_duration+' '+animacao_tipo+' '+animacao_delay+' '+animacao_repeat+' both', 'transform':'translate3d(0,0,0)', '-webkit-transform':'translate3d(0,0,0)', 'perspective':'500px'}); } } $(elemento_informacoes).removeAttr('data-animation-nome data-animation-duration data-animation-delay data-animation-repeat'); } }, 50); })(elemento); } }); },30); setTimeout(function(){ GObserver.instalar({ 'elemento' :'.se_imagem', 'antecipacao' :600, 'executar' :function(elemento){ if (window.innerWidth <= 800){var dispositivo = 'mobile';}else if (window.innerWidth > 800){var dispositivo = 'desktop';} var imagem_download = new Image(); imagem_download.src = ((dispositivo == 'mobile' && elemento.getAttribute('ll_src_mobile')) ? elemento.getAttribute('ll_src_mobile') :elemento.getAttribute('ll_src')); imagem_download.onload = function(e){ let img_mobile = elemento.getAttribute('ll_src_mobile'), img_desktop = elemento.getAttribute('ll_src'), html = '
'; elemento.removeAttribute('ll_src'); elemento.removeAttribute('ll_src_mobile'); elemento.querySelector('.'+pagina_controle['classe_elemento_interno']).removeAttribute('gpc_nome_imagem'); elemento.classList.remove('se_imagem'); elemento.children[0].innerHTML = html; } } }); },40); setTimeout(function(){ GObserver.instalar({ 'elemento' :'.se_caixa', 'antecipacao' :500, 'executar' :function(elemento){ if (window.innerWidth <= 800){var dispositivo = 'mobile';}else if (window.innerWidth > 800){var dispositivo = 'desktop';} var elemento_carregando_src = ''; if (dispositivo == 'mobile' && elemento.getAttribute('ll_src_mobile')){elemento_carregando_src = elemento.getAttribute('ll_src_mobile');} else if (dispositivo == 'desktop' && elemento.getAttribute('ll_src')){elemento_carregando_src = elemento.getAttribute('ll_src');} if (elemento_carregando_src){ var imagem_download = new Image(); imagem_download.src = elemento_carregando_src; imagem_download.onload = function(e){ elemento.removeAttribute('ll_src'); elemento.removeAttribute('ll_src_mobile'); elemento.classList.remove('se_caixa'); } } } }); },40); setTimeout(function(){ GObserver.instalar({ 'elemento' :'.se_slider', 'antecipacao' :500, 'executar' :function(elemento){ if (window.innerWidth <= 800){var dispositivo = 'mobile';} else if (window.innerWidth > 800){var dispositivo = 'desktop';} var imagens = $(elemento).find('.imagem'); if(imagens.length){ imagens.each(function(i,imagem){ var elemento_carregando_src = ''; if (dispositivo == 'mobile' && imagem.getAttribute('ll_src_mobile')){elemento_carregando_src = imagem.getAttribute('ll_src_mobile');} else if (dispositivo == 'desktop' && imagem.getAttribute('ll_src')){elemento_carregando_src = imagem.getAttribute('ll_src');} if (elemento_carregando_src){ var imagem_download = new Image(); imagem_download.src = elemento_carregando_src; imagem_download.onload = function(e){ imagem.removeAttribute('ll_src'); imagem.removeAttribute('ll_src_mobile'); imagem.closest('.'+pagina_controle['classe_elemento']).classList.remove('se_slider'); if(imagem.classList.contains('gsi_clone')){imagem.style.backgroundImage = 'url('+elemento_carregando_src+')';} } } }); } } }); },400); setTimeout(function(){ GObserver.instalar({ 'elemento' :'.ll_background', 'antecipacao' :500, 'executar' :function(elemento){ if (window.innerWidth <= 800){var dispositivo = 'mobile';} else if (window.innerWidth > 800){var dispositivo = 'desktop';} var elemento_carregando_src = ''; if (dispositivo == 'mobile' && elemento.getAttribute('ll_src_mobile')){elemento_carregando_src = elemento.getAttribute('ll_src_mobile');} else if (dispositivo == 'desktop' && elemento.getAttribute('ll_src')){elemento_carregando_src = elemento.getAttribute('ll_src');} if (elemento_carregando_src){ var background_download = new Image(); background_download.src = elemento_carregando_src; background_download.onload = function(e){ elemento.removeAttribute('ll_src'); elemento.removeAttribute('ll_src_mobile'); elemento.classList.remove('ll_background'); } }else{ elemento.removeAttribute('ll_src'); elemento.removeAttribute('ll_src_mobile'); elemento.classList.remove('ll_background'); } } }); },50); if(!window.getCrawler()){ setTimeout(function(){ GObserver.instalar({ 'elemento' :'.se_video', 'antecipacao' :0, 'executar' :function(elemento){ if(document.getElementById(elemento.getAttribute('id')).getElementsByTagName('iframe').length == 0){ var animacao_nome = (elemento.querySelector('.carregando').getAttribute('data-animation-nome') ? elemento.querySelector('.carregando').getAttribute('data-animation-nome') :'none'); var animacao_duration = (elemento.querySelector('.carregando').getAttribute('data-animation-duration') ? elemento.querySelector('.carregando').getAttribute('data-animation-duration') :1000); var animacao_delay = (elemento.querySelector('.carregando').getAttribute('data-animation-delay') ? elemento.querySelector('.carregando').getAttribute('data-animation-delay') :0); var animacao_repeat = (elemento.querySelector('.carregando').getAttribute('data-animation-repeat') == 'loop' ? 'infinite' :'show'); var video_download = document.createElement("iframe"); video_download.setAttribute('src', elemento.getAttribute('ll_src')); video_download.setAttribute('frameborder', 0); video_download.setAttribute('allowfullscreen', ''); video_download.setAttribute('mozallowfullscreen', ''); video_download.setAttribute('webkitallowfullscreen', ''); video_download.setAttribute('allow', 'accelerometer;autoplay;picture-in-picture'); video_download.setAttribute('class', 'c e_video'); video_download.setAttribute('data-animation-nome', animacao_nome); video_download.setAttribute('data-animation-duration', animacao_duration); video_download.setAttribute('data-animation-delay', animacao_delay); video_download.setAttribute('data-animation-repeat', animacao_repeat); video_download.onload = function(){ if(document.getElementById(elemento.getAttribute('id')).querySelector('.carregando')){ document.getElementById(elemento.getAttribute('id')).querySelector('.carregando').remove(); } elemento.removeAttribute('ll_src'); elemento.classList.remove('se_video'); }; video_download.onreadystatechange = function(){ if(document.getElementById(elemento.getAttribute('id')).querySelector('.carregando')){ document.getElementById(elemento.getAttribute('id')).querySelector('.carregando').remove(); } if (this.readyState == 'complete'){ elemento.removeAttribute('ll_src'); elemento.classList.remove('se_video'); } }; document.getElementById(elemento.getAttribute('id')).appendChild(video_download); } } }); },400); } } function InserirFontes(acao){ if (gle_fontes['elementos'].length){ for(var i = 0;i < gle_fontes['elementos'].length;i++){ (function(index){ var elemento = $(gle_fontes['elementos'][index]); gle_fontes['elementos'].splice(index, 1); var fonte = document.createElement('link'); fonte.href = elemento.attr('gle_href'); fonte.rel = 'stylesheet'; fonte.media = 'all'; fonte.onload = function(){ elemento.remove(); gle_fontes['carregados']++; CarregarFontes(); InserirFontes(acao); }; fonte.onerror = function(){ elemento.remove(); gle_fontes['carregados']++; CarregarFontes(); InserirFontes(acao); }; fonte.onreadystatechange = function(){if (this.readyState == 'complete'){ elemento.remove(); gle_fontes['carregados']++; CarregarFontes(); InserirFontes(acao); }}; document.head.appendChild(fonte); })(i, acao); break; } } } function CarregarFontes(){ var fontes_carregar = $('.se_fonte, .se_contador'); if (fontes_carregar.length){ for(var i = 0;i < fontes_carregar.length;i++){ if ($(fontes_carregar[i]).hasClass('se_fonte')){$(fontes_carregar[i]).removeClass('se_fonte');} else{$(fontes_carregar[i]).removeClass('se_contador');} } } } function InserirCss(acao){ if (gle_css.length){ for(var i = 0;i < gle_css.length;i++){ (function(index){ var elemento = $(gle_css[index]); gle_css.splice(index, 1); var fonte = document.createElement('link'); for (var x = 0;x < elemento[0].attributes.length;x++){ if(elemento[0].attributes[x].nodeName != 'rel'){fonte.setAttribute(elemento[0].attributes[x].nodeName.replace('gle_',''),elemento[0].attributes[x].nodeValue.replace('gle_css',''));} } fonte.onload = function(){ elemento.remove(); InserirCss(acao); }; fonte.onerror = function(){ elemento.remove(); InserirCss(acao); }; fonte.onreadystatechange = function(){if (this.readyState == 'complete'){ elemento.remove(); InserirCss(acao); }}; document.body.appendChild(fonte); })(i, acao); break; } } } function InserirScripts(acao){ if (gle_scripts['elementos'].length){ for(var i = 0;i < gle_scripts['elementos'].length;i++){ (function(index){ var elemento = $(gle_scripts['elementos'][index]); if((elemento.attr('href').indexOf('gtag') || elemento.attr('href').indexOf('fbevents')) && window.getCrawler()){ elemento.remove(); InserirScripts(acao); return; } gle_scripts['elementos'].splice(index, 1); var script = document.createElement('script'); for (var x = 0;x < elemento[0].attributes.length;x++){ let valor = elemento[0].attributes[x].nodeValue; if(elemento[0].attributes[x].nodeName != 'href'){ valor = valor.replace(/dns-prefetch\s+?/gm,''); valor = valor.replace(/\s+?dns-prefetch/gm,''); valor = valor.replace(/preconnect\s+?/gm,''); valor = valor.replace(/\s+?preconnect/gm,''); valor = valor.replace('dns-prefetch',''); valor = valor.replace('preconnect',''); valor = valor.replace('gle_scripts',''); if(elemento[0].attributes[x].nodeName != 'async'){script.setAttribute(elemento[0].attributes[x].nodeName,valor);} } } script.src = elemento.attr('href'); script.type = 'text/javascript'; script.defer = true; script.onload = function(){ elemento.remove(); gle_scripts['carregados']++; if (gle_scripts['encontrados'] == gle_scripts['carregados'] && acao == 'iniciar'){ if (window.InserirScriptsInline != undefined){InserirScriptsInline();} } InserirScripts(acao); }; script.onerror = function(){ elemento.remove(); gle_scripts['carregados']++; if (gle_scripts['encontrados'] == gle_scripts['carregados'] && acao == 'iniciar'){ if (window.InserirScriptsInline != undefined){InserirScriptsInline();} } InserirScripts(acao); }; script.onreadystatechange = function(){if (this.readyState == 'complete'){ elemento.remove(); gle_scripts['carregados']++; if (gle_scripts['encontrados'] == gle_scripts['carregados'] && acao == 'iniciar'){ if (window.InserirScriptsInline != undefined){InserirScriptsInline();} } InserirScripts(acao); }}; document.body.appendChild(script); })(i, acao); break; } } } (function(factory){ if (typeof module === 'object' && module.exports){ module.exports = factory(); }else{ window.intlTelInput = factory(); } }(() =>{ var factoryOutput=(()=>{var I1=Object.defineProperty;var x2=Object.getOwnPropertyDescriptor;var R2=Object.getOwnPropertyNames;var O2=Object.prototype.hasOwnProperty;var k2=(g,e)=>{for(var n in e)I1(g,n,{get:e[n],enumerable:!0})},B2=(g,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of R2(e))!O2.call(g,u)&&u!==n&&I1(g,u,{get:()=>e[u],enumerable:!(r=x2(e,u))||r.enumerable});return g};var H2=g=>B2(I1({},"__esModule",{value:!0}),g);var Y2={};k2(Y2,{default:()=>Z2});var s2=[["af","93"],["ax","358",1],["al","355"],["dz","213"],["as","1",5,["684"]],["ad","376"],["ao","244"],["ai","1",6,["264"]],["ag","1",7,["268"]],["ar","54"],["am","374"],["aw","297"],["ac","247"],["au","61",0,null,"0"],["at","43"],["az","994"],["bs","1",8,["242"]],["bh","973"],["bd","880"],["bb","1",9,["246"]],["by","375"],["be","32"],["bz","501"],["bj","229"],["bm","1",10,["441"]],["bt","975"],["bo","591"],["ba","387"],["bw","267"],["br","55"],["io","246"],["vg","1",11,["284"]],["bn","673"],["bg","359"],["bf","226"],["bi","257"],["kh","855"],["cm","237"],["ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905"]],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"]],["cf","236"],["td","235"],["cl","56"],["cn","86"],["cx","61",2,["89164"],"0"],["cc","61",1,["89162"],"0"],["co","57"],["km","269"],["cg","242"],["cd","243"],["ck","682"],["cr","506"],["ci","225"],["hr","385"],["cu","53"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"]],["do","1",2,["809","829","849"]],["ec","593"],["eg","20"],["sv","503"],["gq","240"],["er","291"],["ee","372"],["sz","268"],["et","251"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0],["fr","33"],["gf","594"],["pf","689"],["ga","241"],["gm","220"],["ge","995"],["de","49"],["gh","233"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"]],["gp","590",0],["gu","1",15,["671"]],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36"],["is","354"],["in","91"],["id","62"],["ir","98"],["iq","964"],["ie","353"],["im","44",2,["1624","74576","7524","7924","7624"],"0"],["il","972"],["it","39",0],["jm","1",4,["876","658"]],["jp","81"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962"],["kz","7",1,["33","7"],"8"],["ke","254"],["ki","686"],["xk","383"],["kw","965"],["kg","996"],["la","856"],["lv","371"],["lb","961"],["ls","266"],["lr","231"],["ly","218"],["li","423"],["lt","370"],["lu","352"],["mo","853"],["mg","261"],["mw","265"],["my","60"],["mv","960"],["ml","223"],["mt","356"],["mh","692"],["mq","596"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373"],["mc","377"],["mn","976"],["me","382"],["ms","1",16,["664"]],["ma","212",0,null,"0"],["mz","258"],["mm","95"],["na","264"],["nr","674"],["np","977"],["nl","31"],["nc","687"],["nz","64"],["ni","505"],["ne","227"],["ng","234"],["nu","683"],["nf","672"],["kp","850"],["mk","389"],["mp","1",17,["670"]],["no","47",0],["om","968"],["pk","92"],["pw","680"],["ps","970"],["pa","507"],["pg","675"],["py","595"],["pe","51"],["ph","63"],["pl","48"],["pt","351"],["pr","1",3,["787","939"]],["qa","974"],["re","262",0,null,"0"],["ro","40"],["ru","7",0,null,"8"],["rw","250"],["ws","685"],["sm","378"],["st","239"],["sa","966"],["sn","221"],["rs","381"],["sc","248"],["sl","232"],["sg","65"],["sx","1",21,["721"]],["sk","421"],["si","386"],["sb","677"],["so","252"],["za","27"],["kr","82"],["ss","211"],["es","34"],["lk","94"],["bl","590",1],["sh","290"],["kn","1",18,["869"]],["lc","1",19,["758"]],["mf","590",2],["pm","508"],["vc","1",20,["784"]],["sd","249"],["sr","597"],["sj","47",1,["79"]],["se","46"],["ch","41"],["sy","963"],["tw","886"],["tj","992"],["tz","255"],["th","66"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"]],["tn","216"],["tr","90"],["tm","993"],["tc","1",23,["649"]],["tv","688"],["ug","256"],["ua","380"],["ae","971"],["gb","44",0,null,"0"],["us","1",0],["uy","598"],["vi","1",24,["340"]],["uz","998"],["vu","678"],["va","39",1,["06698"]],["ve","58"],["vn","84"],["wf","681"],["eh","212",1,["5288","5289"],"0"],["ye","967"],["zm","260"],["zw","263"]],u2=[];for(let g=0;gg.replace(/\D/g,""),h2=(g="")=>g.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),c2=g=>{let e=c1(g);if(e.charAt(0)==="1"){let n=e.substr(1,3);return V2.includes(n)}return!1},j2=(g,e,n,r)=>{if(n===0&&!r)return 0;let u=0;for(let l=0;l{let r=document.createElement(g);return e&&Object.entries(e).forEach(([u,l])=>r.setAttribute(u,l)),n&&n.appendChild(r),r},e1=(g,...e)=>{let{instances:n}=f;Object.values(n).forEach(r=>r[g](...e))},b1=class{constructor(e,n={}){this.id=K2++,this.telInput=e,this.highlightedItem=null,this.options=Object.assign({},p2,n),this.hadInitialPlaceholder=!!e.getAttribute("placeholder")}_init(){this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.onlyCountries.length===1&&(this.options.initialCountry=this.options.onlyCountries[0]),this.options.separateDialCode&&(this.options.nationalMode=!1),this.options.allowDropdown&&!this.options.showFlags&&!this.options.separateDialCode&&(this.options.nationalMode=!1),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isAndroid=typeof navigator<"u"?/Android/i.test(navigator.userAgent):!1,this.isRTL=!!this.telInput.closest("[dir=rtl]");let e=this.options.allowDropdown||this.options.separateDialCode;this.showSelectedCountryOnLeft=this.isRTL?!e:e,this.options.separateDialCode&&(this.isRTL?this.originalPaddingRight=this.telInput.style.paddingRight:this.originalPaddingLeft=this.telInput.style.paddingLeft),this.options.i18n={..._1,...this.options.i18n};let n=new Promise((u,l)=>{this.resolveAutoCountryPromise=u,this.rejectAutoCountryPromise=l}),r=new Promise((u,l)=>{this.resolveUtilsScriptPromise=u,this.rejectUtilsScriptPromise=l});this.promise=Promise.all([n,r]),this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}_processCountryData(){this._processAllCountries(),this._processDialCodes(),this._translateCountryNames(),this._sortCountries()}_sortCountries(){this.options.countryOrder&&(this.options.countryOrder=this.options.countryOrder.map(e=>e.toLowerCase())),this.countries.sort((e,n)=>{let{countryOrder:r}=this.options;if(r){let u=r.indexOf(e.iso2),l=r.indexOf(n.iso2),p=u>-1,y=l>-1;if(p||y)return p&&y?u-l:p?-1:1}return e.name.localeCompare(n.name)})}_addToDialCodeMap(e,n,r){n.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=n.length),this.dialCodeToIso2Map.hasOwnProperty(n)||(this.dialCodeToIso2Map[n]=[]);for(let l=0;lu.toLowerCase());this.countries=K.filter(u=>r.includes(u.iso2))}else if(n.length){let r=n.map(u=>u.toLowerCase());this.countries=K.filter(u=>!r.includes(u.iso2))}else this.countries=K}_translateCountryNames(){for(let e=0;e`),l+=`${n.name}`,l+=`+${n.dialCode}`,u.insertAdjacentHTML("beforeend",l)}}_setInitialState(e=!1){let n=this.telInput.getAttribute("value"),r=this.telInput.value,l=n&&n.charAt(0)==="+"&&(!r||r.charAt(0)!=="+")?n:r,p=this._getDialCode(l),y=c2(l),{initialCountry:m,geoIpLookup:_}=this.options,I=m==="auto"&&_;if(p&&!y)this._updateCountryFromNumber(l);else if(!I||e){let L=m?m.toLowerCase():"";L&&this._getCountryData(L,!0)?this._setCountry(L):p&&y?this._setCountry("us"):this._setCountry()}l&&this._updateValFromNumber(l)}_initListeners(){this._initTelInputListeners(),this.options.allowDropdown&&this._initDropdownListeners(),(this.hiddenInput||this.hiddenInputCountry)&&this.telInput.form&&this._initHiddenInputListener()}_initHiddenInputListener(){this._handleHiddenInputSubmit=()=>{this.hiddenInput&&(this.hiddenInput.value=this.getNumber()),this.hiddenInputCountry&&(this.hiddenInputCountry.value=this.getSelectedCountryData().iso2||"")},this.telInput.form?.addEventListener("submit",this._handleHiddenInputSubmit)}_initDropdownListeners(){this._handleLabelClick=n=>{this.dropdownContent.classList.contains("iti__hide")?this.telInput.focus():n.preventDefault()};let e=this.telInput.closest("label");e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedCountry=()=>{this.dropdownContent.classList.contains("iti__hide")&&!this.telInput.disabled&&!this.telInput.readOnly&&this._openDropdown()},this.selectedCountry.addEventListener("click",this._handleClickSelectedCountry),this._handleCountryContainerKeydown=n=>{this.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(n.key)&&(n.preventDefault(),n.stopPropagation(),this._openDropdown()),n.key==="Tab"&&this._closeDropdown()},this.countryContainer.addEventListener("keydown",this._handleCountryContainerKeydown)}_initRequests(){let{loadUtils:e,initialCountry:n,geoIpLookup:r}=this.options;e&&!f.utils?(this._handlePageLoad=()=>{window.removeEventListener("load",this._handlePageLoad),f.attachUtils(e)?.catch(()=>{})},f.documentReady()?this._handlePageLoad():window.addEventListener("load",this._handlePageLoad)):this.resolveUtilsScriptPromise(),n==="auto"&&r&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}_loadAutoCountry(){f.autoCountry?this.handleAutoCountry():f.startedLoadingAutoCountry||(f.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup((e="")=>{let n=e.toLowerCase();n&&this._getCountryData(n,!0)?(f.autoCountry=n,setTimeout(()=>e1("handleAutoCountry"))):(this._setInitialState(!0),e1("rejectAutoCountryPromise"))},()=>{this._setInitialState(!0),e1("rejectAutoCountryPromise")}))}_openDropdownWithPlus(){this._openDropdown(),this.searchInput.value="+",this._filterCountries("",!0)}_initTelInputListeners(){let{strictMode:e,formatAsYouType:n,separateDialCode:r,formatOnDisplay:u,allowDropdown:l,countrySearch:p}=this.options,y=!1;/\p{L}/u.test(this.telInput.value)&&(y=!0),this._handleInputEvent=m=>{if(this.isAndroid&&m?.data==="+"&&r&&l&&p){let b=this.telInput.selectionStart||0,k=this.telInput.value.substring(0,b-1),E=this.telInput.value.substring(b);this.telInput.value=k+E,this._openDropdownWithPlus();return}this._updateCountryFromNumber(this.telInput.value)&&this._triggerCountryChange();let _=m?.data&&/[^+0-9]/.test(m.data),I=m?.inputType==="insertFromPaste"&&this.telInput.value;_||I&&!e?y=!0:/[^+0-9]/.test(this.telInput.value)||(y=!1);let L=m?.detail&&m.detail.isSetNumber&&!u;if(n&&!y&&!L){let b=this.telInput.selectionStart||0,E=this.telInput.value.substring(0,b).replace(/[^+0-9]/g,"").length,N=m?.inputType==="deleteContentForward",z=this._formatNumberAsYouType(),Z=j2(E,z,b,N);this.telInput.value=z,this.telInput.setSelectionRange(Z,Z)}},this.telInput.addEventListener("input",this._handleInputEvent),(e||r)&&(this._handleKeydownEvent=m=>{if(m.key&&m.key.length===1&&!m.altKey&&!m.ctrlKey&&!m.metaKey){if(r&&l&&p&&m.key==="+"){m.preventDefault(),this._openDropdownWithPlus();return}if(e){let _=this.telInput.value,I=_.charAt(0)==="+",L=!I&&this.telInput.selectionStart===0&&m.key==="+",b=/^[0-9]$/.test(m.key),k=r?b:L||b,E=_.slice(0,this.telInput.selectionStart)+m.key+_.slice(this.telInput.selectionEnd),N=this._getFullNumber(E),z=f.utils.getCoreNumber(N,this.selectedCountryData.iso2),Z=this.maxCoreNumberLength&&z.length>this.maxCoreNumberLength,$1=!1;if(I){let p1=this.selectedCountryData.iso2;$1=this._getCountryFromNumber(N)!==p1}(!k||Z&&!$1&&!L)&&m.preventDefault()}}},this.telInput.addEventListener("keydown",this._handleKeydownEvent))}_cap(e){let n=parseInt(this.telInput.getAttribute("maxlength")||"",10);return n&&e.length>n?e.substr(0,n):e}_trigger(e,n={}){let r=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});this.telInput.dispatchEvent(r)}_openDropdown(){let{fixDropdownWidth:e,countrySearch:n}=this.options;if(e&&(this.dropdownContent.style.width=`${this.telInput.offsetWidth}px`),this.dropdownContent.classList.remove("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","true"),this._setDropdownPosition(),n){let r=this.countryList.firstElementChild;r&&(this._highlightListItem(r,!1),this.countryList.scrollTop=0),this.searchInput.focus()}this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}_setDropdownPosition(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){let e=this.telInput.getBoundingClientRect(),n=this.telInput.offsetHeight;this.options.dropdownContainer&&(this.dropdown.style.top=`${e.top+n}px`,this.dropdown.style.left=`${e.left}px`,this._handleWindowScroll=()=>this._closeDropdown(),window.addEventListener("scroll",this._handleWindowScroll))}}_bindDropdownListeners(){this._handleMouseoverCountryList=u=>{let l=u.target?.closest(".iti__country");l&&this._highlightListItem(l,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=u=>{let l=u.target?.closest(".iti__country");l&&this._selectListItem(l)},this.countryList.addEventListener("click",this._handleClickCountryList);let e=!0;this._handleClickOffToClose=()=>{e||this._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);let n="",r=null;if(this._handleKeydownOnDropdown=u=>{["ArrowUp","ArrowDown","Enter","Escape"].includes(u.key)&&(u.preventDefault(),u.stopPropagation(),u.key==="ArrowUp"||u.key==="ArrowDown"?this._handleUpDownKey(u.key):u.key==="Enter"?this._handleEnterKey():u.key==="Escape"&&this._closeDropdown()),!this.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(u.key)&&(u.stopPropagation(),r&&clearTimeout(r),n+=u.key.toLowerCase(),this._searchForCountry(n),r=setTimeout(()=>{n=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){let u=()=>{let p=this.searchInput.value.trim();p?this._filterCountries(p):this._filterCountries("",!0)},l=null;this._handleSearchChange=()=>{l&&clearTimeout(l),l=setTimeout(()=>{u(),l=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",p=>p.stopPropagation())}}_searchForCountry(e){for(let n=0;nI[0]).join("").toLowerCase(),_=`+${p.dialCode}`;if(n||y.includes(u)||_.includes(u)||p.iso2.includes(u)||m.includes(u)){let I=p.nodeById[this.id];I&&this.countryList.appendChild(I),r&&(this._highlightListItem(I,!1),r=!1)}}r&&this._highlightListItem(null,!1),this.countryList.scrollTop=0,this._updateSearchResultsText()}_updateSearchResultsText(){let{i18n:e}=this.options,n=this.countryList.childElementCount,r;n===0?r=e.zeroSearchResults:n===1?r=e.oneSearchResult:r=e.multipleSearchResults.replace("${count}",n.toString()),this.searchResultsA11yText.textContent=r}_handleUpDownKey(e){let n=e==="ArrowUp"?this.highlightedItem?.previousElementSibling:this.highlightedItem?.nextElementSibling;!n&&this.countryList.childElementCount>1&&(n=e==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),n&&(this._scrollTo(n),this._highlightListItem(n,!1))}_handleEnterKey(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}_updateValFromNumber(e){let n=e;if(this.options.formatOnDisplay&&f.utils&&this.selectedCountryData){let r=this.options.nationalMode||n.charAt(0)!=="+"&&!this.options.separateDialCode,{NATIONAL:u,INTERNATIONAL:l}=f.utils.numberFormat,p=r?u:l;n=f.utils.formatNumber(n,this.selectedCountryData.iso2,p)}n=this._beforeSetNumber(n),this.telInput.value=n}_updateCountryFromNumber(e){let n=this._getCountryFromNumber(e);return n!==null?this._setCountry(n):!1}_ensureHasDialCode(e){let{dialCode:n,nationalPrefix:r}=this.selectedCountryData;if(e.charAt(0)==="+"||!n)return e;let p=r&&e.charAt(0)===r&&!this.options.separateDialCode?e.substring(1):e;return`+${n}${p}`}_getCountryFromNumber(e){let n=e.indexOf("+"),r=n?e.substring(n):e,u=this.selectedCountryData.iso2,l=this.selectedCountryData.dialCode;r=this._ensureHasDialCode(r);let p=this._getDialCode(r,!0),y=c1(r);if(p){let m=c1(p),_=this.dialCodeToIso2Map[m];if(!u&&this.defaultCountry&&_.includes(this.defaultCountry))return this.defaultCountry;let I=u&&_.includes(u)&&(y.length===m.length||!this.selectedCountryData.areaCodes);if(!(l==="1"&&c2(y))&&!I){for(let b=0;b<_.length;b++)if(_[b])return _[b]}}else{if(r.charAt(0)==="+"&&y.length)return"";if((!r||r==="+")&&!this.selectedCountryData.iso2)return this.defaultCountry}return null}_highlightListItem(e,n){let r=this.highlightedItem;if(r&&(r.classList.remove("iti__highlight"),r.setAttribute("aria-selected","false")),this.highlightedItem=e,this.highlightedItem){this.highlightedItem.classList.add("iti__highlight"),this.highlightedItem.setAttribute("aria-selected","true");let u=this.highlightedItem.getAttribute("id")||"";this.selectedCountry.setAttribute("aria-activedescendant",u),this.options.countrySearch&&this.searchInput.setAttribute("aria-activedescendant",u)}n&&this.highlightedItem.focus()}_getCountryData(e,n){for(let r=0;rp){let L=u-y;n.scrollTop=I-L}}_updateDialCode(e){let n=this.telInput.value,r=`+${e}`,u;if(n.charAt(0)==="+"){let l=this._getDialCode(n);l?u=n.replace(l,r):u=r,this.telInput.value=u}}_getDialCode(e,n){let r="";if(e.charAt(0)==="+"){let u="";for(let l=0;l-1){let r=e.substring(0,n),u=this._utilsIsPossibleNumber(r),l=this._utilsIsPossibleNumber(e);return u&&l}return this._utilsIsPossibleNumber(e)}_utilsIsPossibleNumber(e){return f.utils?f.utils.isPossibleNumber(e,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}isValidNumberPrecise(){if(!this.selectedCountryData.iso2)return!1;let e=this._getFullNumber(),n=e.search(/\p{L}/u);if(n>-1){let r=e.substring(0,n),u=this._utilsIsValidNumber(r),l=this._utilsIsValidNumber(e);return u&&l}return this._utilsIsValidNumber(e)}_utilsIsValidNumber(e){return f.utils?f.utils.isValidNumber(e,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}setCountry(e){let n=e?.toLowerCase(),r=this.selectedCountryData.iso2;(e&&n!==r||!e&&r)&&(this._setCountry(n),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}setNumber(e){let n=this._updateCountryFromNumber(e);this._updateValFromNumber(e),n&&this._triggerCountryChange(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(e){this.options.placeholderNumberType=e,this._updatePlaceholder()}setDisabled(e){this.telInput.disabled=e,e?this.selectedCountry.setAttribute("disabled","true"):this.selectedCountry.removeAttribute("disabled")}},W2=g=>{if(!f.utils&&!f.startedLoadingUtilsScript){let e;if(typeof g=="function")try{e=Promise.resolve(g())}catch(n){return Promise.reject(n)}else return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof g}`));return f.startedLoadingUtilsScript=!0,e.then(n=>{let r=n?.default;if(!r||typeof r!="object")throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return f.utils=r,e1("handleUtils"),!0}).catch(n=>{throw e1("rejectUtilsScriptPromise",n),n})}return null},f=Object.assign((g,e)=>{let n=new b1(g,e);return n._init(),g.setAttribute("data-intl-tel-input-id",n.id.toString()),f.instances[n.id]=n,n},{defaults:p2,documentReady:()=>document.readyState==="complete",getCountryData:()=>K,getInstance:g=>{let e=g.getAttribute("data-intl-tel-input-id");return e?f.instances[e]:null},instances:{},attachUtils:W2,startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"25.3.1"}),S1=f;(function(){var g=this||self;function e(d,t){d=d.split(".");var $=g;d[0]in $||typeof $.execScript>"u"||$.execScript("var "+d[0]);for(var i;d.length&&(i=d.shift());)d.length||t===void 0?$[i]&&$[i]!==Object.prototype[i]?$=$[i]:$=$[i]={}:$[i]=t}function n(d,t){function $(){}$.prototype=t.prototype,d.ma=t.prototype,d.prototype=new $,d.prototype.constructor=d,d.sa=function(i,o,s){for(var a=Array(arguments.length-2),h=2;hd.length?!1:B(T2,d)}function B1(d){return B(S2,d)?o1(d,y2):o1(d,g1)}function H1(d){var t=B1(d.toString());R(d),d.g(t)}function G1(d){return d!=null&&(G(d,9)!=1||D(d,9)[0]!=-1)}function o1(d,t){for(var $=new w,i,o=d.length,s=0;st?2:s[s.length-1]=o&&o<=i;++o)if($=parseInt(d.substring(0,o),10),$ in q)return t.g(d.substring(o)),$;return 0}function z1(d,t,$,i,o,s){if(t.length==0)return 0;t=new w(t);var a;$!=null&&(a=c($,11)),a==null&&(a="NonMatch");var h=t.toString();if(h.length==0)a=20;else if(X.test(h))h=h.replace(X,""),R(t),t.g(B1(h)),a=1;else{if(h=new RegExp(a),H1(t),a=t.toString(),a.search(h)==0){h=a.match(h)[0].length;var C=a.substring(h).match(x1);C&&C[1]!=null&&0=t.h.length)throw Error("Phone number too short after IDD");if(d=W1(t,i),d!=0)return A(s,1,d),d;throw Error("Invalid country calling code")}return $!=null&&(a=v($,10),h=""+a,C=t.toString(),C.lastIndexOf(h,0)==0&&(h=new w(C.substring(h.length)),C=c($,1),C=new RegExp(v(C,2)),Z1(h,$,null),h=h.toString(),!B(C,t.toString())&&B(C,h)||a1(d,t.toString(),$,-1)==3))?(i.g(h),o&&A(s,6,10),A(s,1,a),a):(A(s,1,0),0)}function Z1(d,t,$){var i=d.toString(),o=i.length,s=c(t,15);if(o!=0&&s!=null&&s.length!=0){var a=new RegExp("^(?:"+s+")");if(o=a.exec(i)){s=new RegExp(v(c(t,1),2));var h=B(s,i),C=o.length-1;t=c(t,16),t==null||t.length==0||o[C]==null||o[C].length==0?(!h||B(s,i.substring(o[0].length)))&&($!=null&&0=t.length)s="";else{var a=t.indexOf(";",s);s=a!==-1?t.substring(s,a):t.substring(s)}var h=s;if(h==null?a=!0:h.length===0?a=!1:(a=L2.exec(h),h=w2.exec(h),a=a!==null||h!==null),!a||(s!=null?(s.charAt(0)==="+"&&o.g(s),s=t.indexOf("tel:"),o.g(t.substring(0<=s?s+4:0,t.indexOf(";phone-context=")))):(s=o.g,a=t??"",h=a.search(I2),0<=h?(a=a.substring(h),a=a.replace(b2,""),h=a.search(_2),0<=h&&(a=a.substring(0,h))):a="",s.call(o,a)),s=o.toString(),a=s.indexOf(";isub="),0t.h.length||(a!=null&&($=new w,o=new w(t.toString()),Z1(o,a,$),d=a1(d,o.toString(),a,-1),d!=2&&d!=4&&d!=5&&(t=o,i&&0<$.toString().length&&A(s,7,$.toString()))),i=t.toString(),d=i.length,2>d))throw Error("The string supplied is too short to be a phone number");if(17{try{let $=d.replace(/[^+0-9]/g,""),i=new M2(t);t="";for(let o=0;o<$.length;o++)i.ja=P2(i,$.charAt(o)),t=i.ja;return t}catch{return d}}),e("intlTelInputUtilsTemp.formatNumber",(d,t,$)=>{try{let o=M.g(),s=W(o,d,t);var i=l1(o,s,-1);return i==0||i==4?o.format(s,typeof $>"u"?0:$):d}catch{return d}}),e("intlTelInputUtilsTemp.getExampleNumber",(d,t,$,i)=>{try{let C=M.g();d:{var o=C;if(s1(d)){var s=u1(F(o,d),$);try{if(x(s,6)){var a=c(s,6),h=Y1(o,a,d,!1);break d}}catch{}}h=null}return C.format(h,i?0:t?2:1)}catch{return""}}),e("intlTelInputUtilsTemp.getExtension",(d,t)=>{try{return c(W(M.g(),d,t),3)}catch{return""}}),e("intlTelInputUtilsTemp.getNumberType",(d,t)=>{try{let $=M.g(),i=W($,d,t);return K1($,i)}catch{return-99}}),e("intlTelInputUtilsTemp.getValidationError",(d,t)=>{if(!t)return 1;try{let $=M.g(),i=W($,d,t);return l1($,i,-1)}catch($){return $.message==="Invalid country calling code"?1:3>=d.length||$.message==="Phone number too short after IDD"||$.message==="The string supplied is too short to be a phone number"?2:$.message==="The string supplied is too long to be a phone number"?3:-99}}),e("intlTelInputUtilsTemp.isValidNumber",(d,t,$)=>{try{let i=M.g(),o=W(i,d,t),s=A2(i,o);if($){let a=$.map(h=>y1[h]);return s&&a.includes(K1(i,o))}return s}catch{return!1}}),e("intlTelInputUtilsTemp.isPossibleNumber",(d,t,$)=>{try{let i=M.g(),o=W(i,d,t);if($){$.includes("FIXED_LINE_OR_MOBILE")&&($.includes("MOBILE")||$.push("MOBILE"),$.includes("FIXED_LINE")||$.push("FIXED_LINE"));for(let s of $)if(l1(i,o,y1[s])===0)return!0;return!1}return l1(i,o,-1)===0}catch{return!1}}),e("intlTelInputUtilsTemp.getCoreNumber",(d,t)=>{try{return c(W(M.g(),d,t),2).toString()}catch{return""}}),e("intlTelInputUtilsTemp.numberFormat",{E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3}),e("intlTelInputUtilsTemp.numberType",y1),e("intlTelInputUtilsTemp.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,IS_POSSIBLE_LOCAL_ONLY:4,INVALID_LENGTH:5})})();var z2=window.intlTelInputUtilsTemp;delete window.intlTelInputUtilsTemp;var f2=z2;S1.utils=f2;var Z2=S1;return H2(Y2);})(); return factoryOutput.default; })); var elementos_formulario_redirecionamento ={}; function ValidacaoFormularios (formulario){ var formulario_passos = formulario.find("fieldset"); var formulario_validado = true; $(formulario_passos).each(function(formulario_passos_total){if (!ValidacaoPasso($(this))){formulario_validado = false;}}); return formulario_validado; } function ValidacaoPasso (passo){ var passo_campo = passo.find(".gpc_campos"); var passo_validado = true; if(passo_campo.length){ $(passo_campo).each(function(passo_campo_total){ if($(this).find(".gpc_campos-campo-opcao").length){if (!ValidacaoCampos($(this))){passo_validado = false;}} else{if (!ValidacaoCampos($(this).find(".gpc_campo"))){passo_validado = false;}} }); }else{ var caixa = passo.closest('.gm'); var passo_campo = passo.find(".admin_campos"); $(passo_campo).each(function(passo_campo_total){ if (!ValidacaoCampos($(this).find(".admin_campo"))){ passo_validado = false; if (caixa.length){ if (passo.hasClass('passo_fechado')){ var caixa_andamento = caixa.children('.gmf-andamento'); var caixa_rodape = caixa.children('.gmf-rodape'); var formulario = caixa.find('#formulario').find("fieldset.passo"); var passos_atual = parseInt(passo.attr('passo')); var passos_quantidade = parseInt(caixa_andamento.attr('caixa_passos_quantidade')); $(formulario).each(function(formulario_passos_total){if ($(this).hasClass('passo_aberto')){$(this).removeClass('passo_aberto').addClass('passo_fechado');}}); passo.removeClass('passo_fechado').addClass('passo_aberto'); PosicionarGM(caixa.attr('id'), false); caixa_andamento.attr('caixa_passos_atual', passos_atual); caixa_andamento.children('.gmf-andamento-barra').css({'width':((100/passos_quantidade)*passos_atual)+'%'}); if (passos_quantidade == (passos_atual+1)){ if (!caixa_rodape.find('.passo_proximo').hasClass('esconder')){caixa_rodape.find('.passo_proximo').addClass('esconder');} if (caixa_rodape.find('#enviar_formulario_ajax').hasClass('esconder')){caixa_rodape.find('#enviar_formulario_ajax').removeClass('esconder');} }else{ if (caixa_rodape.find('.passo_proximo').hasClass('esconder')){caixa_rodape.find('.passo_proximo').removeClass('esconder');} if (!caixa_rodape.find('#enviar_formulario_ajax').hasClass('esconder')){caixa_rodape.find('#enviar_formulario_ajax').addClass('esconder');} } if (passos_atual == 0){ if (!caixa_rodape.find('.passo_anterior').hasClass('esconder')){caixa_rodape.find('.passo_anterior').addClass('esconder');} if (caixa_rodape.find('#cancelar_formulario_ajax').hasClass('esconder')){caixa_rodape.find('#cancelar_formulario_ajax').removeClass('esconder');} }else{ if (caixa_rodape.find('.passo_anterior').hasClass('esconder')){caixa_rodape.find('.passo_anterior').removeClass('esconder');} if (!caixa_rodape.find('#cancelar_formulario_ajax').hasClass('esconder')){caixa_rodape.find('#cancelar_formulario_ajax').addClass('esconder');} } } } } }); } if(passo_validado){return true;} else{return false;} } function ValidacaoCampos (campo){ if($(campo).hasClass('admin_campo')){ var campo_validado = true; var campo_auxiliar = campo.closest('.admin_campos').children('.admin_auxiliar'); var campo_valor = campo.val(); var campo_area = campo.closest('.admin_campos'); if(campo_valor){ if(campo_valor.substr(0,1) == ' '){ campo.val(campo_valor.substr(1)); campo_valor = campo_valor.substr(1); } if(campo_valor.substr(-1) == ' '){ campo.val(campo_valor.substr(0,(campo_valor.length-1))); campo_valor = campo_valor.substr(0,(campo_valor.length-1)); } } if (campo_auxiliar.attr('html_original') == '' && campo_auxiliar.html() != ''){campo_auxiliar.attr('html_original',campo_auxiliar.html());} if (campo.hasClass('required') && campo_valor == ''){ campo_validado = false; if (campo_auxiliar.html() != 'Campo obrigatório.' && campo_auxiliar.html() != ''){campo_auxiliar.attr('html_original',campo_auxiliar.html());} campo_auxiliar.html('Campo obrigatório.'); }else{if (campo_auxiliar.html() == 'Campo obrigatório.'){campo_auxiliar.html('');}} if ((campo.hasClass('email') || campo.hasClass('email_multiplo') || campo.hasClass('cemail')) && campo_validado && campo_valor != ''){ campo_valor = campo_valor.replace(/ /g, ''); campo.val(campo_valor); var filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if(campo.hasClass('email_multiplo')){ var emails = campo_valor.split(','); for (var i = 0;i < emails.length;i++){ if(!filtro.test(emails[i])){ campo_validado = false; campo_auxiliar.html('Informe um endereço de e-mail válido.'); break; } } }else{ if(!filtro.test(campo_valor)){ campo_validado = false; campo_auxiliar.html('Informe um endereço de e-mail válido.'); } } } if(campo.attr('maxlength') != undefined && campo.hasClass('required_max_length') && campo_validado ){ var total_caracteres = campo_valor.length, tamanho_maximo = campo.attr('maxlength'); if(tamanho_maximo < total_caracteres){ campo_validado = false; campo_auxiliar.html("Informe no máximo "+tamanho_maximo+" caracteres."); }else{campo_validado = true;} if (campo_validado){ campo_auxiliar.html(''); if(campo_auxiliar.attr('html_original') == "Informe no máximo "+tamanho_maximo+" caracteres."){campo_auxiliar.attr('html_original','');} } } if((campo.attr('min') != undefined || campo.attr('max') != undefined) && campo.hasClass('required') && campo_validado ){ campo_valor = parseInt(campo_valor); if(campo.attr('min') != undefined && campo.attr('max') != undefined){ var minimo = parseInt(campo.attr('min')), maximo = parseInt(campo.attr('max')); if(campo_valor >= minimo && campo_valor <= maximo){campo_validado = true;} else{ campo_validado = false; campo_auxiliar.html("Informe um valor entre "+minimo+" e "+maximo+"."); } }else if(campo.attr('min') != undefined){ var minimo = parseInt(campo.attr('min')); if(campo_valor >= minimo){campo_validado = true;} else{ campo_validado = false; campo_auxiliar.html("Informe um valor maior ou igual a "+minimo+"."); } }else if(campo.attr('max') != undefined){ var maximo = parseInt(campo.attr('max')); if(campo_valor <= minimo){campo_validado = true;} else{ campo_validado = false; campo_auxiliar.html("Informe um valor menor ou igual a "+minimo+"."); } } if (campo_validado){ campo_auxiliar.html(''); if(campo_auxiliar.attr('html_original') == "Informe um valor menor ou igual a "+minimo+"." || campo_auxiliar.attr('html_original') == "Informe um valor maior ou igual a "+minimo+"."|| campo_auxiliar.attr('html_original') == "Informe um valor entre "+minimo+" e "+maximo+"."){campo_auxiliar.attr('html_original','');} } } if (campo.hasClass('required_travar_zero') && (campo_valor == 0 || campo_valor == '') && campo_validado){campo_validado = false;campo_auxiliar.html('Campo obrigatório.');} if (campo.hasClass('required_telefone_validar') && campo.hasClass('required') && campo_validado){ campo_validado = ValidarTelefone(campo_valor); if(campo_validado == false){campo_auxiliar.html('Informe um número de telefone válido.');} else{campo_auxiliar.html('');} } if (campo.hasClass('required_cpf_validar') && campo.hasClass('required') && campo_validado){ campo_validado = ValidarCpf(campo_valor); if(campo_validado == false){campo_auxiliar.html('Informe um CPF válido.');} else{campo_auxiliar.html('');} } if (campo.hasClass('required_cnpj_validar') && campo.hasClass('required') && campo_validado){ campo_validado = ValidarCnpj(campo_valor); if(campo_validado == false){campo_auxiliar.html('Informe um CNPJ válido.');} else{campo_auxiliar.html('');} } if (campo_validado){ if (campo_auxiliar.attr('html_original') == 'Campo obrigatório.' || campo_auxiliar.attr('html_original') == 'Link da página informado não é válido.' || campo_auxiliar.attr('html_original') == 'Informe seu domínio no formato do exemplo abaixo.' || campo_auxiliar.attr('html_original') == 'Informe um endereço de e-mail válido.' || campo_auxiliar.attr('html_original') == 'Cartão informado está expirado.' || campo_auxiliar.attr('html_original') == 'Informe um número de telefone válido.' || campo_auxiliar.attr('html_original') == 'Informe um CPF válido.' || campo_auxiliar.attr('html_original') == 'Informe um CNPJ válido.' || campo_auxiliar.attr('html_original') == 'Bandeiras aceitas Visa, MasterCard, Elo e Diners' || campo_auxiliar.attr('html_original') == 'Número do cartão inválido' || campo_auxiliar.attr('html_original') == 'Informe um número de cartão' || campo_auxiliar.attr('html_original') == 'Senha informada não confere com a utilizada.' || campo_auxiliar.attr('html_original') == 'Link de acesso em uso, tente outro.' || campo_auxiliar.attr('html_original') == 'Já cadastrado' || campo_auxiliar.attr('html_original') == 'Informe seu domínio no formato do exemplo abaixo.' || campo_auxiliar.attr('html_original') == 'Subdomínio informado já foi cadastrado.'){campo_auxiliar.attr({'html_original':''});} if (campo_area.hasClass('admin_campos-error')){campo_area.removeClass('admin_campos-error');} if (campo_auxiliar.attr('html_original') != undefined && campo_auxiliar.attr('html_original') != ''){campo_auxiliar.html(campo_auxiliar.attr('html_original'));bindEvents();} else{campo_auxiliar.html('');} return true; }else{ if (!campo_area.hasClass('admin_campos-error')){campo_area.addClass('admin_campos-error');} return false; } }else{ var campo_validado = true; var campo_valor = ''; if($(campo).hasClass('gpc_campos-check') || $(campo).hasClass('gpc_campos-radio') || $(campo).hasClass('gpc_campos-consentimento_lgpd')){ if(campo.find('.gpc_campos-erro').length == 0){campo.append('
');bindEvents();} var campo_auxiliar = campo.find('.gpc_campos-erro'); $(campo).find('input').each(function(campo_atual){if($(this).prop('checked')){campo_valor = $(this).val();}}); }else{ if(campo.closest('.gpc_campos-campo').find('.gpc_campos-erro').length == 0){campo.after('
');bindEvents();} var campo_auxiliar = campo.closest('.gpc_campos').find('.gpc_campos-erro'); campo_valor = campo.val(); if($(campo).closest('.gpc_campos').hasClass('gpc_campos-select')){let opcoes = $(campo).find('option');for (var i = 0;i < opcoes.length;i++){if(campo_valor == opcoes[i].value && opcoes[i].disabled){campo_valor = '';}}} } if(campo_valor == null){campo_valor = '';} var campo_area = campo.closest('.gpc_campos'); if(campo_valor && !$(campo).hasClass('gpc_campos-check') && !$(campo).hasClass('gpc_campos-radio') && !$(campo).hasClass('gpc_campos-consentimento_lgpd') && !$(campo).hasClass('gpc_campos-select')){ campo_valor = campo_valor.trim(true); } if ((campo_auxiliar.attr('data-gtt') == '' || campo_auxiliar.attr('data-gtt') == undefined) && campo_auxiliar.html() != ''){campo_auxiliar.attr('data-gtt','');} if($(campo).hasClass('gpc_campos-check') || $(campo).hasClass('gpc_campos-radio') || $(campo).hasClass('gpc_campos-consentimento_lgpd')){ if (campo.find('em').length && campo_valor == ''){ campo_validado = false; if (campo_auxiliar.attr('data-gtt') != 'Campo obrigatório.' && campo_auxiliar.attr('data-gtt') != '' && campo_auxiliar.attr('data-gtt') != undefined){campo_auxiliar.attr({'data-gtt':''});} campo_auxiliar.attr({'data-gtt':'Campo obrigatório.'}); }else{if (campo_auxiliar.attr('data-gtt') == 'Campo obrigatório.'){campo_auxiliar.attr({'data-gtt':''});}} }else{ if (campo.hasClass('obrigatorio') && campo_valor == ''){ campo_validado = false; if (campo_auxiliar.attr('data-gtt') != 'Campo obrigatório.' && campo_auxiliar.attr('data-gtt') != '' && campo_auxiliar.attr('data-gtt') != undefined){campo_auxiliar.attr({'data-gtt':''});} campo_auxiliar.attr({'data-gtt':'Campo obrigatório.'}); }else{if (campo_auxiliar.attr('data-gtt') == 'Campo obrigatório.'){campo_auxiliar.attr({'data-gtt':''});}} if ((campo.hasClass('email') || campo.hasClass('email_multiplo') || campo.hasClass('cemail')) && campo_validado && campo_valor != ''){ campo_valor = campo_valor.replace(/ /g, ''); campo.val(campo_valor); var filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if(campo.hasClass('email_multiplo')){ var emails = campo_valor.split(','); for (var i = 0;i < emails.length;i++){ if(!filtro.test(emails[i])){ campo_validado = false; campo_auxiliar.attr({'data-gtt':'Informe um endereço de e-mail válido.'}); break; } } }else{ if(!filtro.test(campo_valor)){ campo_validado = false; campo_auxiliar.attr({'data-gtt':'Informe um endereço de e-mail válido.'}); } } } if(campo.attr('maxlength') != undefined && campo.hasClass('required_max_length') && campo_validado ){ var total_caracteres = campo_valor.length, tamanho_maximo = campo.attr('maxlength'); if(tamanho_maximo < total_caracteres){ campo_validado = false; campo_auxiliar.attr({'data-gtt':"Informe no máximo "+tamanho_maximo+" caracteres."}); }else{campo_validado = true;} } if((campo.attr('min') != undefined || campo.attr('max') != undefined) && campo.hasClass('required') && campo_validado ){ campo_valor = parseInt(campo_valor); if(campo.attr('min') != undefined && campo.attr('max') != undefined){ var minimo = parseInt(campo.attr('min')), maximo = parseInt(campo.attr('max')); if(campo_valor >= minimo && campo_valor <= maximo){campo_validado = true;} else{ campo_validado = false; campo_auxiliar.attr({'data-gtt':"Informe um valor entre "+minimo+" e "+maximo+"."}); } }else if(campo.attr('min') != undefined){ var minimo = parseInt(campo.attr('min')); if(campo_valor >= minimo){campo_validado = true;} else{ campo_validado = false; campo_auxiliar.attr({'data-gtt':"Informe um valor maior ou igual a "+minimo+"."}); } }else if(campo.attr('max') != undefined){ var maximo = parseInt(campo.attr('max')); if(campo_valor <= minimo){campo_validado = true;} else{ campo_validado = false; campo_auxiliar.attr({'data-gtt':"Informe um valor menor ou igual a "+minimo+"."}); } } } if (campo.hasClass('required_travar_zero') && (campo_valor == 0 || campo_valor == '') && campo_validado){ campo_validado = false; campo_auxiliar.attr({'data-gtt':'Campo obrigatório.'}); } if (campo.hasClass('telefone') && (campo.hasClass('obrigatorio') || campo_valor != '') && campo_validado){ campo_validado = ValidarTelefone(campo,campo_valor); if(campo_validado == false){campo_auxiliar.attr({'data-gtt':'Informe um número de telefone válido.'});} else{campo_auxiliar.attr({'data-gtt':''});} } if (campo.hasClass('telefone_ddi') && (campo.hasClass('obrigatorio') || campo_valor != '') && campo_validado){ campo_validado = ValidarTelefone(campo,campo_valor); if(campo_validado == false){campo_auxiliar.attr({'data-gtt':'Informe um número de telefone válido.'});} else{campo_auxiliar.attr({'data-gtt':''});} } if (campo.hasClass('required_cpf_validar') && campo.hasClass('required') && campo_validado){ campo_validado = ValidarCpf(campo_valor); if(campo_validado == false){campo_auxiliar.attr({'data-gtt':'Informe um CPF válido.'});} else{campo_auxiliar.attr({'data-gtt':''});} } if (campo.hasClass('required_cnpj_validar') && campo.hasClass('required') && campo_validado){ campo_validado = ValidarCnpj(campo_valor); if(campo_validado == false){campo_auxiliar.attr({'data-gtt':'Informe um CNPJ válido.'});} else{campo_auxiliar.attr({'data-gtt':''});} } if (campo.hasClass('personalized_error')){campo_validado = false;} } if (campo_validado){ if ( campo_auxiliar.attr('data-gtt') == 'Campo obrigatório.' || campo_auxiliar.attr('data-gtt') == 'Informe um endereço de e-mail válido.' || campo_auxiliar.attr('data-gtt') == 'Informe um número de telefone válido.' || campo_auxiliar.attr('data-gtt') == 'Informe um CPF válido.' || campo_auxiliar.attr('data-gtt') == 'Informe um CNPJ válido.' || campo_auxiliar.attr('data-gtt') == 'Já cadastrado' ){campo_auxiliar.attr({'data-gtt':''});} if (campo_area.hasClass('gpc_campos-error')){campo_area.removeClass('gpc_campos-error');} campo_auxiliar.attr({'data-gtt':''}); return true; }else{ if (!campo_area.hasClass('gpc_campos-error')){campo_area.addClass('gpc_campos-error');} return false; } } } function ValidarTelefone(campo, campo_valor){ let valor = campo_valor.replace(/\D/g, ''); if(valor.replace(/9/g,'') == '' || valor.replace(/8/g,'') == '' || valor.replace(/7/g,'') == '' || valor.replace(/6/g,'') == '' || valor.replace(/5/g,'') == '' || valor.replace(/4/g,'') == '' || valor.replace(/3/g,'') == '' || valor.replace(/2/g,'') == '' || valor.replace(/1/g,'') == '' || valor.replace(/0/g,'') == ''){return false;} return phoneMaskGreat['#'+$(campo).closest('.gpc-e').attr('id')+'#'+$(campo).attr('id')].isValidNumber(); } function ValidarCpf(cpf){ cpf = cpf.replace('-', "").replace('.', "").replace('.', "").trim(); var numeros, digitos, soma, i, resultado, digitos_iguais; digitos_iguais = 1; if (cpf.length < 11){return false;} for (i = 0;i < cpf.length - 1;i++){ if (cpf.charAt(i) != cpf.charAt(i + 1)){ digitos_iguais = 0; break; } } if (!digitos_iguais){ numeros = cpf.substring(0,9); digitos = cpf.substring(9); soma = 0; for (i = 10;i > 1;i--){soma += numeros.charAt(10 - i) * i;} resultado = soma % 11 < 2 ? 0 :11 - soma % 11; if (resultado != digitos.charAt(0)){return false;} numeros = cpf.substring(0,10); soma = 0; for (i = 11;i > 1;i--){soma += numeros.charAt(11 - i) * i;} resultado = soma % 11 < 2 ? 0 :11 - soma % 11; if (resultado != digitos.charAt(1)){return false;} return true; }else{return false;} } function ValidarCnpj(cnpj){ cnpj = cnpj.replace(/[^\d]+/g,''); if (cnpj == ''){return false;} if (cnpj.length != 14){return false;} if (cnpj == "00000000000000" || cnpj == "11111111111111" || cnpj == "22222222222222" || cnpj == "33333333333333" || cnpj == "44444444444444" || cnpj == "55555555555555" || cnpj == "66666666666666" || cnpj == "77777777777777" || cnpj == "88888888888888" || cnpj == "99999999999999"){return false;} tamanho = cnpj.length - 2; numeros = cnpj.substring(0,tamanho); digitos = cnpj.substring(tamanho); soma = 0; pos = tamanho - 7; for (i = tamanho;i >= 1;i--){ soma += numeros.charAt(tamanho - i) * pos--; if (pos < 2){pos = 9;} } resultado = soma % 11 < 2 ? 0 :11 - soma % 11; if (resultado != digitos.charAt(0)){return false;} tamanho = tamanho + 1; numeros = cnpj.substring(0,tamanho); soma = 0; pos = tamanho - 7; for (i = tamanho;i >= 1;i--){ soma += numeros.charAt(tamanho - i) * pos--; if (pos < 2){pos = 9;} } resultado = soma % 11 < 2 ? 0 :11 - soma % 11; if (resultado != digitos.charAt(1)){return false;} return true; } window.tempo_tela_obrigado = 1000; function EnviarFormulario(elemento){ GLoading.carregar({'ativar':true}); var formulario_validado = ValidacaoFormularios(elemento); if (formulario_validado){ var html_aviso = '
'; $('body').addClass('body_bloquear').append(html_aviso); $('.aviso_fundo, .aviso_texto').addClass('mostrar_aviso'); elemento.find('.gpc_botao').css({'pointer-events':'none'}); GLoading.carregar({'ativar':false}); var campos = $(elemento).find('.gpc_campos'); var elemento_envio = elemento.closest('.'+pagina_controle['classe_elemento']).attr('id'); if(elemento_envio == undefined || elemento_envio == ''){elemento_envio = elemento.closest('.'+pagina_controle['classe_elemento_antigo']).attr('id');} var campos = $(elemento).find('.gpc_campos'); var total_campos = 0; var post ={'campos':{},'elemento':elemento_envio}; campos.each(function(i){ var id = $(this).find('.gpc_campos-titulo label').attr('for'); var titulo = $(this).find('.gpc_campos-titulo label').text(); if(titulo.substr(0,1) == '*'){titulo = titulo.substr(1);} if($(this).hasClass('gpc_campos-check') || $(this).hasClass('gpc_campos-radio') || $(this).hasClass('gpc_campos-consentimento_lgpd')){ var valor ={}; var posicao = 0; if($(this).hasClass('gpc_campos-consentimento_lgpd')){ valor = false; $(this).find('input').each(function(x, campo_atual){valor = $(campo_atual).prop('checked');}); }else if($(this).hasClass('gpc_campos-radio')){ $(this).find('input').each(function(x, campo_atual){if($(campo_atual).prop('checked')){valor = $(this).val().replace(/\*/g, '');}}); }else{ $(this).find('input').each(function(x, campo_atual){ if($(campo_atual).prop('checked')){ valor[posicao] = $(this).val().replace(/\*/g, ''); posicao++; } }); } if($(this).hasClass('gpc_campos-consentimento_lgpd')){post['campos'][i] ={'id':id, 'titulo':titulo, 'valor':valor};} else{post['campos'][i] ={'id':id, 'titulo':titulo, 'valor':valor};} }else{ if($(this).find('.gpc_campo').hasClass('telefone')){ post['campos'][i] ={'id':id, 'titulo':titulo, 'valor':$(this).find('.gpc_campo').val(), 'tipo':'telefone'}; }else if( $(this).find('.gpc_campo').hasClass('telefone_ddi')){ const countryData = phoneMaskGreat['#'+elemento_envio+'#'+id].getSelectedCountryData(); post['campos'][i] ={'id':id, 'titulo':titulo, 'valor':`+${countryData.dialCode}${$(this).find('.gpc_campo').val()}`, 'tipo':'telefone'}; } else{post['campos'][i] ={'id':id, 'titulo':titulo, 'valor':$(this).find('.gpc_campo').val()};} } total_campos = i; }); total_campos +=1; post['campos'][total_campos] ={'id':'input_referral_source', 'titulo':'Referral source', 'valor':(document.referrer == "" ? 'Acesso direto' :document.referrer)}; total_campos +=1; post['campos'][total_campos] ={'id':'input_mobile', 'titulo':'Dispositivo', 'valor':(Mobile() ? 'Mobile' :'Desktop')}; total_campos +=1; post['campos'][total_campos] ={'id':'input_uri', 'titulo':'URL', 'valor':window.location.href}; let random = Math.random().toString(); let IdConversion = 'GPages.'+random.substr(random.length-4)+(new Date()).getTime(); post['eid'] = IdConversion; post['enav'] = typeof c == 'undefined' ? '' :c; post['eclid'] = typeof fbclid == 'undefined' ? '' :fbclid; post['euser'] = typeof u == 'undefined' ? '' :u; if($('.mostrar_demo').length){ if($('.gpc_campos').length){ elemento.find('.gpc_campos').each(function(){ if(!$(this).hasClass('gpc_campos-hidden')){ if($(this).hasClass('gpc_campos-check') || $(this).hasClass('gpc_campos-radio') || $(this).hasClass('gpc_campos-consentimento_lgpd')){ $(this).find('input').each(function(campo_atual){ if($(this).prop('checked')){$(this).prop({'checked':false});} }); }else{$(this).find('.gpc_campo').val('');} } }); $('.aviso_texto').html((elemento.find('.gpc_botao').attr('gpc-mensagem_parabens') != undefined && elemento.find('.gpc_botao').attr('gpc-mensagem_parabens') != '' ? elemento.find('.gpc_botao').attr('gpc-mensagem_parabens') :"Obrigado!!!")); setTimeout(function(){ $('body').removeClass('body_bloquear'); $('.aviso_fundo, .aviso_texto').removeClass('mostrar_aviso'); setTimeout(function(){$('.aviso_fundo, .aviso_texto').remove();},100); elemento.find('.gpc_botao').css({'pointer-events':''}); },2000); } }else{ AdicionarFilaGQA({ 'verbo' :'POST', 'url' :'https://r3-pages-conversions.greatpages.com.br/', 'uri' :JSON.stringify(post), 'timeout' :10000, 'prioridade' :'baixa', 'carregar' :true, 'externo' :true, 'funcao_sucesso' :function(retorno){ if(elementos_botoes_evento.hasOwnProperty(elemento.closest('.gpc-e').attr('id'))){elementos_botoes_evento[elemento.closest('.gpc-e').attr('id')]['conteudo']();} setTimeout(function(){ elemento.find('.gpc_campos').each(function(){ if(!$(this).hasClass('gpc_campos-hidden')){ if($(this).hasClass('gpc_campos-check') || $(this).hasClass('gpc_campos-radio') || $(this).hasClass('gpc_campos-consentimento_lgpd')){ $(this).find('input').each(function(campo_atual){ if($(this).prop('checked')){$(this).prop({'checked':false});} }); }else{$(this).find('.gpc_campo').val('');} } }); },800); $('.aviso_texto').html((elemento.find('.gpc_botao').attr('gpc-mensagem_parabens') != undefined && elemento.find('.gpc_botao').attr('gpc-mensagem_parabens') != '' ? elemento.find('.gpc_botao').attr('gpc-mensagem_parabens') :"Obrigado!!!")); setTimeout(function(){ $('body').removeClass('body_bloquear'); $('.aviso_fundo, .aviso_texto').removeClass('mostrar_aviso'); setTimeout(function(){$('.aviso_fundo, .aviso_texto').remove();},100); if(elemento.find('.gpc_botao').attr('gpc-link') != undefined && elemento.find('.gpc_botao').attr('gpc-link') != ''){ let id_elemento = elemento.closest('.gpc-e').attr('id'); let link_usar = ''; try{ let link_botao = (elemento.find('.gpc_botao').attr('gpc-link').substr(0,7) == 'http://' || elemento.find('.gpc_botao').attr('gpc-link').substr(0,8) == 'https://' || elemento.find('.gpc_botao').attr('gpc-link').substr(0,6) == 'sms://' || elemento.find('.gpc_botao').attr('gpc-link').substr(0,6) == 'ftp://' || elemento.find('.gpc_botao').attr('gpc-link').substr(0,6) == 'tel://' || elemento.find('.gpc_botao').attr('gpc-link').substr(0,7) == 'mailto:' ? elemento.find('.gpc_botao').attr('gpc-link') :'https://'+elemento.find('.gpc_botao').attr('gpc-link')); let link_new = new URL(link_botao); if(elementos_formulario_redirecionamento.hasOwnProperty(id_elemento)){ for (var i = 0;i < total_campos;i++){ let id = post['campos'][i].id; if(elementos_formulario_redirecionamento[id_elemento]['conteudo'].hasOwnProperty(id)){ link_new.searchParams.set(elementos_formulario_redirecionamento[id_elemento]['conteudo'][id],post['campos'][i].valor); } } } link_usar = link_new.href; }catch (e){ var link = ''; if(elementos_formulario_redirecionamento.hasOwnProperty(id_elemento)){ for (var i = 0;i < total_campos;i++){ let id = post['campos'][i].id; if(elementos_formulario_redirecionamento[id_elemento]['conteudo'][id] != undefined){ link += elementos_formulario_redirecionamento[id_elemento]['conteudo'][id]+'='+post['campos'][i].valor+'&'; } } if(link){link = link.substr(0,(link.length-1));} } let concatenar = elemento.find('.gpc_botao').attr('gpc-link').indexOf('?') ? '&' :'?'; link_usar = (elemento.find('.gpc_botao').attr('gpc-link').substr(0,7) == 'http://' || elemento.find('.gpc_botao').attr('gpc-link').substr(0,8) == 'https://' || elemento.find('.gpc_botao').attr('gpc-link').substr(0,6) == 'sms://' || elemento.find('.gpc_botao').attr('gpc-link').substr(0,6) == 'ftp://' || elemento.find('.gpc_botao').attr('gpc-link').substr(0,6) == 'tel://' || elemento.find('.gpc_botao').attr('gpc-link').substr(0,7) == 'mailto:' ? elemento.find('.gpc_botao').attr('gpc-link') :'https://'+elemento.find('.gpc_botao').attr('gpc-link'))+concatenar+link; } setTimeout(function(){ GLoading.carregar({'ativar':false}); window.location.href = link_usar; },150); } elemento.find('.gpc_botao').css({'pointer-events':''}); },tempo_tela_obrigado); }, 'funcao_erro' :function(retorno){ if($('.aviso_fundo').length){ var html_aviso = 'Não foi possivel fazer seu cadastro, tente novamente.'; $('.aviso_texto').html(html_aviso); }else{ var html_aviso = '
Não foi possivel fazer seu cadastro, tente novamente.
'; $('body').addClass('body_bloquear').append(html_aviso); $('.aviso_fundo, .aviso_texto').addClass('mostrar_aviso'); } setTimeout(function(){ $('body').removeClass('body_bloquear'); $('.aviso_fundo, .aviso_texto').removeClass('mostrar_aviso'); setTimeout(function(){$('.aviso_fundo, .aviso_texto').remove();},100); elemento.find('.gpc_botao').css({'pointer-events':''}); },4000); } }); } return true; }else{ GLoading.carregar({'ativar':false}); window.scroll({top:0, behavior:"smooth"}); return false; } } $(function(){ if(typeof window.jQuery == 'undefined'){ Object.defineProperty(window, 'jQuery',{ configurable:true, set(value){ value('body').off('submit','form', function (e){e.preventDefault();return false;}); value('body').on('submit','form', function (e){ e.preventDefault(); e.stopPropagation(); var elemento = $(this).closest('.e_formulario'); if ($(elemento).length){return EnviarFormulario(elemento);} return false; }); Object.defineProperty(window, 'jQuery',{ value, writable:true, configurable:true, enumerable:true }); } }); } $("body").on('submit', 'form', function(e){ e.preventDefault(); var elemento = $(this).closest('.e_formulario'); if ($(elemento).length){return EnviarFormulario(elemento);} }); $('body').on('click','.gpc_campos-campo-opcao',function(e){ if($(e.target).prop('nodeName') != 'A'){ e.preventDefault(); e.stopPropagation(); if($(this).find('input').first().prop('checked')){$(this).find('input').first().prop('checked',false);} else{$(this).find('input').first().prop('checked',true);} ValidacaoCampos($(this).closest('.gpc_campos')); } }); $('body').on('click','.gpc_campos-erro',function(e){ e.preventDefault(); e.stopPropagation(); if($(this).closest('.gpc_campos').hasClass('gpc_campos-check') || $(this).closest('.gpc_campos').hasClass('gpc_campos-radio') || $(this).closest('.gpc_campos').hasClass('gpc_campos-consentimento_lgpd')){$(this).closest('.gpc_campos-campo').find('input').first().trigger('click');} else if($(this).closest('.gpc_campos').hasClass('gpc_campos-select')){$(this).closest('.gpc_campos-campo').find('select').trigger('click');} else{$(this).closest('.gpc_campos-campo').find('.gpc_campo').trigger('focus');} }); $('body').on('click','.gpc_botao',function(e){ GLoading.carregar({'ativar':true}); var formulario_validado = ValidacaoFormularios($(this).closest('form')); if(formulario_validado == false){ e.preventDefault(); e.stopPropagation(); }else{$(this).closest('form').trigger('submit');} }); $('body').on('focusout','.gpc_campo',function(e){ e.preventDefault(); e.stopPropagation(); GLoading.carregar({'ativar':true}); var passo_validado = true; if (!ValidacaoCampos($(this))){passo_validado = false;} if (passo_validado){return true;} else{return false;} }); $("body").on('focusin','.admin_campo',function(evento){ if ($(this).attr('type') != 'hidden'){ if ($(this).hasClass('readonly') && this.hasAttribute('readonly')){ if($(this).hasClass('data_calendario') || $(this).hasClass('data_calendario2') || $(this).hasClass('data_calendario3') || $(this).hasClass('data_calendario4') || $(this).hasClass('data_calendario4') || $(this).attr('id') == '#data_vencimento' || $(this).attr('id') == '#data_pagamento' || $(this).attr('id') == '#pagamento_data_inicio' || $(this).attr('id') == '#data_prazo' || $(this).attr('id') == '#data_de' || $(this).attr('id') == '#data_ate' || $(this).attr('id') == '#data_inicio'){$(this).removeClass('readonly').closest('.admin_campos').addClass('admin_campos-focus');} else{$(this).removeAttr('readonly').removeClass('readonly').closest('.admin_campos').addClass('admin_campos-focus');} }else{$(this).closest('.admin_campos').addClass('admin_campos-focus');} } }).on('focusout','.admin_campo', function (evento){ if ($(this).attr('type') != 'hidden'){ if ($(this).hasClass('readonly') && this.hasAttribute('readonly')){$(this).removeAttr('readonly');} else{ var caixa = $(this).closest('.admin_campos'); caixa.removeClass('admin_campos-focus'); if ($(this).val()){if (!caixa.hasClass('admin_campos-valor')){caixa.addClass('admin_campos-valor');}} else{if (caixa.hasClass('admin_campos-valor')){caixa.removeClass('admin_campos-valor');}} ValidacaoCampos($(this)); } } }); }); let phoneMaskGreat ={}; function bindEvents(){ var caixa = $('gmf').last().attr('id'); if(caixa != undefined){caixa = '#'+caixa+' ';}else{caixa = '';} let telefone = $(caixa+".gpc_campo.telefone"); if(telefone.length > 0){ for (const tel of telefone){ let id_campo = '#'+$(tel).closest('.gpc-e').attr('id')+'#'+$(tel).attr('id'); if($(tel).closest('.gpc_modal').length > 0){delete phoneMaskGreat[id_campo];} if(typeof phoneMaskGreat[id_campo] != 'object'){ phoneMaskGreat[id_campo] = window.intlTelInput(tel,{ useFullscreenPopup:false, strictMode:true, initialCountry:"BR", onlyCountries:["BR"], allowDropdown:false, showFlags:false, utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/25.3.1/build/js/intlTelInputWithUtils.min.js" }); } } } let telefone_ddi = $(caixa+".gpc_campo.telefone_ddi"); if(telefone_ddi.length > 0){ for (const tel of telefone_ddi){ let id_campo = '#'+$(tel).closest('.gpc-e').attr('id')+'#'+$(tel).attr('id'); if($(tel).closest('.gpc_modal').length > 0){delete phoneMaskGreat[id_campo];} if(typeof phoneMaskGreat[id_campo] != 'object'){ phoneMaskGreat[id_campo] = window.intlTelInput(tel,{ initialCountry:"BR", separateDialCode:true, useFullscreenPopup:false, strictMode:true, utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/25.3.1/build/js/intlTelInputWithUtils.min.js" }); $(tel).closest('.gpc_campos').css('z-index','9999'); $(tel).css('padding-left','86px'); $(tel).on('countrychange', function(e){ let countryData = phoneMaskGreat['#'+$(this).closest('.gpc-e').attr('id')+'#'+$(this).attr('id')].getSelectedCountryData(); if (countryData.dialCode){ tel.value = tel.value.replace(`+${countryData.dialCode}`, ""); tel.value = tel.value.replace(`+ ${countryData.dialCode}`, ""); } tel.style.paddingLeft = tel.closest('.iti').find('.iti__country-container').widht()+8+'px'; ValidacaoCampos($(caixa+'#'+$(this).attr('id'))); }); } } } GFM.instalar({'elemento' :'#celular', 'mascara' :'(00) 0000-00009', 'placeholder' :'(__) ____-_____'}); GFM.instalar({'elemento' :'input.cnpj', 'mascara' :'00.000.000/0000-00', 'placeholder' :'__.___.___/____-__'}); GFM.instalar({'elemento' :'input.cpf', 'mascara' :'000.000.000-00', 'placeholder' :'___.___.___-__'}); GFM.instalar({'elemento' :'input.hora', 'mascara' :'00:00', 'placeholder' :'__:__'}); GFM.instalar({'elemento' :'input.data', 'mascara' :'00/00/0000', 'placeholder' :'__/__/____'}); GFM.instalar({'elemento' :'input.datahora', 'mascara' :'00/00/0000 00:00', 'placeholder' :'__/__/____ __:__'}); GTooltip.instalar({'elemento' :'.gtt-direita', 'direcao' :'direita'}); GTooltip.instalar({'elemento' :'.gtt-esquerda', 'direcao' :'esquerda'}); GTooltip.instalar({'elemento' :'.gtt-cima', 'direcao' :'cima'}); GTooltip.instalar({'elemento' :'.gtt-baixo', 'direcao' :'baixo'}); GTooltip.instalar({'elemento' :'.balao_direita', 'direcao' :'direita'}); GTooltip.instalar({'elemento' :'.balao_esquerda', 'direcao' :'esquerda'}); GTooltip.instalar({'elemento' :'.balao_cima', 'direcao' :'cima'}); GTooltip.instalar({'elemento' :'.balao_baixo', 'direcao' :'baixo'}); } function Mobile(){ if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ){return true;} return false; } window.smoothScrollTo = function (endX, endY, duration){ let startX = window.scrollX || window.pageXOffset, startY = window.scrollY || window.pageYOffset, distanceX = endX - startX, distanceY = endY - startY, startTime = new Date().getTime(); let easeInOutQuart = function (time, from, distance, duration){ if ((time /= duration / 2) < 1) return distance / 2 * time * time * time * time + from; return -distance / 2 * ((time -= 2) * time * time * time - 2) + from; }; let timer = window.setInterval(function (){ let time = new Date().getTime() - startTime, newX = easeInOutQuart(time, startX, distanceX, duration), newY = easeInOutQuart(time, startY, distanceY, duration); if (time >= duration){ window.clearInterval(timer); } window.scrollTo(newX, newY); }, 1000 / 60); }; $(function(){ GLoading.carregar({'ativar':false}); $('body').removeClass('preload'); bindEvents(); $('.mensagem_fechar').on('click',function(evento){$('.mensagens').removeAttr('style');}); $(document).on('keydown', function(e){ var tecla = (e.keyCode?e.keyCode:e.which); if($('.gm').length){ var caixa = $('.gm').last().attr('id'); var caixa_andamento = $('#'+caixa).find('.gmf-andamento'); if((e.ctrlKey && tecla == 83)){ e.preventDefault(); e.stopPropagation(); if (caixa_andamento.length){ if (caixa_andamento.attr('caixa_passos_controle') == (caixa_andamento.attr('caixa_passos_quantidade')-1)){$('#'+caixa+' #enviar_formulario_ajax').trigger('click');} else{PassosGMF(caixa, 'proximo');} }else{$('#'+caixa+' #enviar_formulario_ajax').trigger('click');} return false; }else if(tecla == 27){ e.preventDefault(); e.stopPropagation(); if ($('#'+caixa).attr('gm_componente') == 'gsp'){FecharGSP(caixa);} else if($('#'+caixa).attr('gm_componente') == 'gmf'){$('#'+caixa+' .gmf-topo-fechar').click();} else if($('#'+caixa).attr('gm_componente') == 'guo' || $('#'+caixa).attr('gm_componente') == 'gd'){PulsarGM($('#'+caixa).attr('id'));} else if ($('#'+caixa).attr('gm_componente') == 'gmi'){ gmi_caixa['elemento'] = ''; gmi_caixa_imagem['elemento'] = ''; gmi_fundo['elemento'] = ''; FecharGM(caixa); }else{FecharGM(caixa);} return false; } }else{ if((e.ctrlKey && tecla == 83)){ e.preventDefault(); e.stopPropagation(); if($('#editar_formulario').length){$('#editar_formulario').trigger('click');} else if($('#enviar_formulario').length){$('#enviar_formulario').trigger('click');} else if($('.admin_botao-login').length){$('.admin_botao-login').trigger('click');} else if($('.admin_botao-esqueci_minha_senha').length){$('.admin_botao-esqueci_minha_senha').trigger('click');} return false; } } if((e.ctrlKey && tecla == 85) || tecla == 123){ e.preventDefault(); e.stopPropagation(); return false; } }); $('body').on('click','.botao_evento',function(e){ elementos_botoes_evento[$(this).parent().attr('id')]['conteudo'](); }); $('body').on('click','.link_popup',function(e){ if($(this).closest('.'+pagina_controle['classe_elemento'])){var elemento = $(this).closest('.'+pagina_controle['classe_elemento']);} else{var elemento = $(this).closest('.'+pagina_controle['classe_elemento_antigo']);} var conteudo = elementos_popup[elemento.attr('id')]['conteudo']; if(conteudo == undefined || conteudo == ''){conteudo = '
';} gm_quantidade++; var configuracao ={ 'gm' :{ 'conteudos' :{ 'topo' :{ 'conteudo' :"
", 'estilos' :'', 'extras' :'' }, 'centro' :{ 'conteudo' :conteudo, 'estilos' :'', 'extras' :'' }, 'rodape' :{ 'conteudo' :'
', 'estilos' :'', 'extras' :'' } }, 'classes' :'gpc_modal', 'estilos' :elementos_popup[elemento.attr('id')]['estilos'][($(window).width() > 960 ? 'desktop' :'mobile')], 'extras' :'gpc_id_elemento="'+elemento.attr('id')+'"' }, 'gm_fundo' :{ 'conteudos' :{'topo' :{'conteudo' :"
"}}, 'classes' :'gpc_modal-fundo', 'estilos' :'overflow:hidden;', 'extras' :'gm_fundo_acao="fechar"' } }; AbrirGM('gpc_modal_'+gm_quantidade, 'gpc_modal_popup',configuracao); setTimeout(function(){ GreatLoader('atualizar'); GreatFontes(true); bindEvents(); },400); return false; }); $('body').on('click','.gpc_modal_popup-topo-fechar, .gpc_modal_popup-fundo-fechar',function(e){FecharGM($('.gpc_modal').last().attr('id'));}); $('body').on('click','.link_interno',function(e){ if($(this).attr('data-bloco-mobile') !== undefined && $(window).width() < 720){ var bloco = $(this).attr('data-bloco-mobile'); if(!$((bloco.substr(0,1) == '#' ? bloco :'#'+bloco)).length){bloco = $(this).attr('data-bloco');} }else{var bloco = $(this).attr('data-bloco');} if(bloco != undefined){ if($((bloco.substr(0,1) == '#' ? bloco :'#'+bloco)).length){ var offset = $((bloco.substr(0,1) == '#' ? bloco :'#'+bloco)).offset(); if ('scrollBehavior' in document.documentElement.style){window.scroll({top:(offset.top-60), behavior:"smooth"});} else{smoothScrollTo(0, (offset.top-60), 800);} } } return false; }); $('body').on('click','.link_externo',function(e){ }); if(!window.getCrawler()){ GModalApproval.instalar({ 'barra':{ 'cor':'ffffff', 'classe':'', 'texto':'Usamos cookies para personalizar conteúdos e melhorar a sua experiência.', 'botao_configurar':false, 'botao_aceitar':'Ok, entendi', 'fechar':false, 'editar_consentimento':false }, 'opcoes':[ { 'titulo':'Cookies obrigatórios', 'texto':'Eles são cookies para garantir o funcionamento adequado do site.', 'aviso':'Sempre ativo', 'id':'o' } ], 'dominio':'.chacarasnointeriordesp.com.br', 'editado':(GModalApproval.preferencias() ? true :false) }); } }); 'use strict'; var carregando = false; var GLoading = function(){ return{ instalar :function(){ var gl = document.querySelector('#gloading'); if (gl == null || gl == undefined){ var gl_loading = document.createElement("div"); gl_loading.id = 'gloading'; gl_loading.className = 'gloading_esconder'; gl_loading.innerHTML = ''; document.body.appendChild(gl_loading); } }, carregar :function(configuracao){ if (configuracao.hasOwnProperty('ativar') == false){configuracao.ativar = false;} if (configuracao.ativar != true && configuracao.ativar != false){configuracao.ativar = false;} if (configuracao.hasOwnProperty('tempo') == false){configuracao.tempo = 0;} if (configuracao.hasOwnProperty('tipo') == false){configuracao.tipo = 'barra';} if (configuracao.tipo != 'barra' && configuracao.tipo != 'tela'){configuracao.tipo = 'barra';} var gl = document.querySelector('#gloading'); if (gl != null && gl != undefined){ if (configuracao.ativar == true){GLoading.carregar_mostrar(gl, configuracao);} if (configuracao.ativar == false || configuracao.tempo != 0){GLoading.carregar_esconder(gl, configuracao);} } }, carregar_mostrar :function(gl, configuracao){ carregando = true; gl.classList.add('gloading_'+configuracao.tipo+'_carregando'); }, carregar_esconder :function(gl, configuracao){ (function(gl, configuracao){ if(configuracao.tempo > 0){ setTimeout(function(){ if (gl.classList.contains('gloading_tela_carregando')){gl.classList.remove('gloading_tela_carregando');} if (gl.classList.contains('gloading_barra_carregando')){gl.classList.remove('gloading_barra_carregando');} carregando = false; }, configuracao.tempo); }else{ if (gl.classList.contains('gloading_tela_carregando')){gl.classList.remove('gloading_tela_carregando');} if (gl.classList.contains('gloading_barra_carregando')){gl.classList.remove('gloading_barra_carregando');} carregando = false; } })(gl, configuracao); } }; }(); $(function(){ $('body').on('click', '.check .check-borda, .check .check-texto',function(evento){ var check = $(this).closest('.check'); var check_borda = check.find('.check-borda'); var campo = check.closest('.admin_campos-campo').find('.admin_campo'); if (!check.hasClass('check_selecionado')){ check.addClass('check_selecionado'); check_borda.addClass('check-borda_efeito').html(""); }else{ check.removeClass('check_selecionado'); check_borda.html(""); } var valores = '', opcoes = check.closest('.checks').find('.check_selecionado'); if(opcoes.length){ opcoes.each(function(){valores += $(this).attr('id')+',';}); valores = valores.substr(0,(valores.length-1)); } campo.val(valores).trigger('change'); ValidacaoCampos(campo); setTimeout(function(){check_borda.removeClass('check-borda_efeito');},200); }); }); 'use strict'; var GFM = function(){ return{ instalar :function(configuracao){ if (configuracao.hasOwnProperty('elemento') == false){configuracao.elemento = '';} if (configuracao.hasOwnProperty('mascara') == false){configuracao.mascara = '';} if (configuracao.hasOwnProperty('placeholder') == false){configuracao.placeholder = '';} var elementos = document.querySelectorAll(configuracao.elemento); for (var i = 0;i < elementos.length;i++){ (function(configuracao, elemento){ if (elemento !== undefined && elemento !== null){ if (elemento.dataset.gfm_mascara !== undefined && elemento.dataset.gfm_mascara !== null){configuracao.mascara = elemento.dataset.gfm_mascara;} if (elemento.dataset.gfm_placeholder !== undefined && elemento.dataset.gfm_placeholder !== null){configuracao.placeholder = elemento.dataset.gfm_placeholder;} if (elemento.addEventListener){ elemento.addEventListener("focusin", function (evento){GFM.campo_focusin(configuracao, elemento, evento);}); elemento.addEventListener("focusout", function (evento){GFM.campo_focusout(configuracao, elemento, evento);}); elemento.addEventListener('input', function (evento){GFM.campo_digitar(configuracao, elemento, evento);}); }else if (elemento.attachEvent){ elemento.attachEvent("onfocusin", function (evento){GFM.campo_focusin(configuracao, elemento, evento);}); elemento.attachEvent("onfocusout", function (evento){GFM.campo_focusout(configuracao, elemento, evento);}); elemento.attachEvent('oninput', function (evento){GFM.campo_digitar(configuracao, elemento, evento);}); } } })(configuracao, elementos[i]); } }, campo_focusin :function(configuracao, elemento, evento){ if (elemento.placeholder){elemento.dataset.gfm_placeholder_anterior = elemento.placeholder;} else{elemento.dataset.gfm_placeholder_anterior = ' ';} if (configuracao.placeholder){elemento.placeholder = configuracao.placeholder;} elemento.maxLength = configuracao.mascara.length; }, campo_focusout :function(configuracao, elemento, evento){ if (elemento.value.length < configuracao.mascara.replace('9','').replace('Z','').replace('D','').replace('?','').length){elemento.value = '';} if (elemento.dataset.gfm_placeholder_anterior){elemento.placeholder = elemento.dataset.gfm_placeholder_anterior;} }, campo_digitar :function(configuracao, elemento, evento){ if (evento.data != null){ var tecla = evento.data; var tecla_codigo = tecla.charCodeAt(0); if (tecla_codigo !== 8 && tecla_codigo !== 46 && tecla_codigo !== 16 && tecla_codigo !== 17 && tecla_codigo !== 18){ if (tecla_codigo !== 37 && tecla_codigo !== 38 && tecla_codigo !== 39 && tecla_codigo !== 40){ evento.preventDefault(); evento.stopPropagation(); var texto = elemento.value; var posicionar_cursor = false; if (typeof elemento.selectionStart == "number" && typeof elemento.selectionEnd == "number"){ var selecao_inicio = elemento.selectionStart; var selecao_fim = elemento.selectionEnd; if (selecao_inicio != selecao_fim || elemento.value.length != selecao_fim){ posicionar_cursor = true; } } var texto_tamanho = texto.length; var texto_novo = ''; var caractere = ''; for (var numero_mascara = 0, numero_texto = 0;numero_mascara < configuracao.mascara.length;++numero_mascara){ caractere = texto.charAt(numero_texto); switch (configuracao.mascara.charAt(numero_mascara)){ case '0' : case '9' : if (/\d/.test(caractere)){texto_novo += caractere;} ++numero_texto; break; case 'A' : case 'Z' : if (/[a-z]/i.test(caractere)){texto_novo += caractere;} ++numero_texto; break; case 'C' : case 'D' : if (/[a-z0-9]/i.test(caractere)){texto_novo += caractere;} ++numero_texto; break; case 'X' : case '?' : texto_novo += caractere; ++numero_texto; break; default : texto_novo += configuracao.mascara.charAt(numero_mascara); if (configuracao.mascara.charAt(numero_mascara) == texto.charAt(numero_mascara)){ ++numero_texto; }else{if (posicionar_cursor && numero_texto+1 == selecao_inicio){++selecao_inicio;}} break; } if (numero_texto == texto_tamanho){break;} } elemento.value = texto_novo; if (posicionar_cursor && elemento.setSelectionRange){elemento.setSelectionRange(selecao_inicio, selecao_inicio);} } } } } }; }(); var gm_quantidade = 0; function AbrirGM(id_gm, componente, configuracao){ var z_index_fundo = 999, z_index_caixa = 1000; if($('#gpc-menu').length){ z_index_fundo = 999999999999902; z_index_caixa = 999999999999903; } var gm_conteudos = ''; if (configuracao['gm']['conteudos']){$.each(configuracao['gm']['conteudos'], function (classe, div){if (div.conteudo){gm_conteudos += "
"+div.conteudo+"
";}});} var gm_fundo_conteudos = ''; if (configuracao['gm']['conteudos']){$.each(configuracao['gm_fundo']['conteudos'], function (classe, div){if (div.conteudo){gm_fundo_conteudos += "
"+div.conteudo+"
";}});} var scroll = window.scrollY; var tela_altura = $(window).height(); if(componente == 'gpc_modal' && $('#gpc-blocos_editor').length){ scroll = (document.getElementById("gpc-blocos").scrollTop-$('#gpc-blocos').offset().top); tela_altura = $('#gpc-blocos_editor').height(); } if(componente == 'gpc_modal' && $('#gpc-blocos_editor').length){$('#gpc-blocos_editor').append("
"+gm_fundo_conteudos+"
");} else{$("body").append("
"+gm_fundo_conteudos+"
");} $("."+id_gm).addClass('gm_fundo_ativo'); if(!$(".gm").length || $('.gpc_modal').lenght){ if(componente == 'gpc_modal' && $('#gpc-blocos_editor').length){$('#gpc-blocos_editor').addClass('body_bloquear');} else{ if(componente == 'gpc_modal_popup'){$("body").addClass('body_bloquear_site');} else{ $("body").addClass('body_bloquear'); if(componente == 'gpc_modal_imagens'){$("body").css({'overflow':'hidden'});} } } if($('#site').length && componente != 'gma_modal'){$('#site').addClass('site_borrar').css({'top':-scroll+'px','height':($('#site').height()+scroll)+''});} else if(componente == 'gpc_modal' && $('#gpc-blocos_editor').length){$('#gpc-blocos_editor-blocos').addClass('administrador_borrar').css({'top':-(scroll)+'px'});} else{$('#administrador').addClass('administrador_borrar').css({'top':-scroll+'px'});} } if(componente == 'gpc_modal' && $('#gpc-blocos_editor').length){$('#gpc-blocos_editor').append("
"+gm_conteudos+"
");} else if(componente == 'gma_modal'){$("body").append("
"+gm_conteudos+"
");} else if(componente == 'gpc_modal_popup'){$("body").append("
"+gm_conteudos+"
");} else{$("body").append("
"+gm_conteudos+"
");} if(componente == 'gma_modal'){ setTimeout(function(){ $('#'+id_gm).css('opacity', '1'); PosicionarGM(id_gm); },250); }else{setTimeout(function(){PosicionarGM(id_gm);},150);} window.addEventListener('resize', function(event){ if(componente != 'gpc_modal'){ if (componente == 'gmi'){PosicionarGM(id_gm, false);} else{PosicionarGM(id_gm);} } }); } function PosicionarGM(id_gm, efeitos){ if(efeitos === undefined || efeitos === ''){efeitos = true;} var gm = $("#"+id_gm); if (gm.length){ var tela_altura = $(window).height(); var tela_largura = $(window).width(); var tela = window.scrollY; if($('.gm').length > 1){tela = 0;} if (gm.attr('gm_componente') == 'gpc_modal'){ tela = document.getElementById("gpc-blocos").scrollTop; tela_altura = $('#gpc-blocos_editor').height(); gm.find('.gpc_modal-centro').removeAttr('style'); var gm_fundo = $("."+id_gm); var height = 20; $('.'+gpc_controle['classe_bloco']).each(function(){height += $(this).height();}); gm_fundo.css({'height':height+'px'}); } if (gm.attr('gm_componente') == 'gpc_modal_formulario'){gm.find('.gpc_modal_formulario-centro').removeAttr('style');} if (gm.attr('gm_componente') == 'gml'){gm.find('.gml-centro').removeAttr('style');} if (gm.attr('gm_componente') == 'gmf'){gm.find('.gmf-centro').removeAttr('style');} if (gm.attr('gm_componente') == 'gm_configurar_dns_completo'){gm.find('.gm_configurar_dns_completo-centro').removeAttr('style');} if (gm.attr('gm_componente') == 'guo'){gm.find('.guo-passos').removeAttr('style');} if (gm.attr('gm_componente') == 'gsp'){gm.find('.gmf-opcoes').removeAttr('style');} if (gm.attr('gm_componente') == 'gpc_modal_imagens'){gm.find('.gpc_modal_imagens-centro, .gpc_modal_imagens-centro-pastas, .gpc_modal_imagens-centro-fotos').removeAttr('style');} if (gm.attr('gm_componente') == 'gmi'){ var imagem = CalcularGMI(gmi_elemento['elemento']); if (gmi_caixa['elemento']){ gmi_caixa['elemento'].css({'width':imagem['largura']+'px', 'height':imagem['altura']+'px'}); gmi_caixa_imagem['elemento'].css({'width':imagem['largura']+'px', 'height':imagem['altura']+'px'}); } } if (gm.attr('gm_componente') == 'gmi_informacoes'){gm.find('.gmi_informacoes-centro').removeAttr('style');} if (gm.attr('gm_componente') == 'gmi_comentarios'){gm.find('.gmi_comentarios-centro').css('height','100%');} var gm_largura = gm.width(); var gm_altura = 0; if (gm.attr('gm_componente') == 'gpc_modal_imagens' || gm.attr('gm_componente') == 'gml'){gm_altura = tela_altura; }else if (gm.attr('gm_componente') == 'gpc_modal_popup' || gm.attr('gm_componente') == 'gpc_modal'){ if(gm.attr('gm_componente') == 'gpc_modal_popup'){tela = 0;} gm_altura = $('.gpc_modal').height(); var gm_fundo = $("."+id_gm); var height = 20; if (gm.attr('gm_componente') == 'gpc_modal_popup'){ gm_altura = $('.gpc_modal_popup-centro').height(); $('.gpc-b').each(function(){height += $(this).height();}); }else{$('.'+gpc_controle['classe_bloco']).each(function(){height += $(this).height();});} if (gm_altura >= tela_altura){ $('#site').css({'height':(gm_altura+Math.abs(parseFloat($('#site').css('top')))+70)+'px'}); gm_fundo.css({'height':(gm_altura+70)+'px'}); }else{ $('#site').css({'height':(tela_altura+Math.abs(parseFloat($('#site').css('top'))))+'px'}); if(gm_altura+20 >= (gm_fundo.height()-10)){gm_fundo.css({'height':(tela_altura+10)+'px'});} else{gm_fundo.css({'height':tela_altura+'px'});} } }else if (gm.attr('gm_componente') == 'gpc_modal_formulario'){gm_altura = $('.gpc_modal_formulario').height(); }else if (gm.attr('gm_componente') == 'gma_modal'){gm_altura = $('#gm-gpages_modal').height(); }else{gm.children().each(function(){gm_altura += $(this).outerHeight(true);});} if (gm_altura >= tela_altura){ if (gm.attr('gm_componente') == 'gpc_modal_formulario'){gm.find('.gpc_modal_formulario-centro').css({'height':$('.gpc_modal_formulario').height()+'px'});} if (gm.attr('gm_componente') == 'gpc_modal'){gm.find('.gpc_modal-centro').css({'height':$('.gpc_modal').height()+'px'});} if (gm.attr('gm_componente') == 'gpc_modal_popup'){gm.find('.gpc_modal_popup-centro').css({'height':$('.gpc_modal_popup').height()+'px'});} if (gm.attr('gm_componente') == 'gml'){ tela += 20; gm.find('.gml-centro, .gml-opcoes-lista-lateral, .gml-opcoes-lista-opcoes').css({'height':((tela_altura-(gm.find('.gml-topo').outerHeight()))-50)+'px'}); } if (gm.attr('gm_componente') == 'gmf'){gm.find('.gmf-centro').css({'height':((tela_altura-((gm.find('.gmf-topo').outerHeight())+(gm.find('.gmf-rodape').outerHeight())))-20)+'px'});} if (gm.attr('gm_componente') == 'gm_configurar_dns_completo'){gm.find('.gm_configurar_dns_completo-centro').css({'height':((tela_altura-((gm.find('.gm_configurar_dns_completo-topo').outerHeight())+(gm.find('.gm_configurar_dns_completo-rodape').outerHeight())))-20)+'px'});} if (gm.attr('gm_componente') == 'gpc_modal_imagens'){ tela += 50; gm.find('.gpc_modal_imagens-centro, .gpc_modal_imagens-centro-pastas, .gpc_modal_imagens-centro-fotos').css({'height':((tela_altura-(gm.find('.gpc_modal_imagens-topo').outerHeight()))-120)+'px'}); } if (gm.attr('gm_componente') == 'guo'){gm.find('.guo-passos').css({'height':(gm_altura-(gm_altura-tela_altura)-96)+'px'});} if (gm.attr('gm_componente') == 'gsp'){gm.find('.gsp-opcoes').css({'height':((tela_altura-((gm.find('.gsp-topo').outerHeight())+(gm.find('.gsp-rodape').outerHeight())))-20)+'px'});} if (gm.attr('gm_componente') == 'gmi_informacoes'){gm.find('.gmi_informacoes-centro').css({'height':((tela_altura-((gm.find('.gmi_informacoes-topo').outerHeight())))-20)+'px'});} if (gm.attr('gm_componente') == 'gmi_comentarios'){gm.find('.gmi_comentarios-centro').css({'height':((tela_altura-((gm.find('.gmi_comentarios-topo').outerHeight())+(gm.find('.gmi_comentarios-rodape').outerHeight())))-20)+'px'});} if (efeitos){ if (!gm.hasClass('gm_efeitos')){gm.addClass('gm_efeitos');} }else{ if (gm.hasClass('gm_efeitos')){gm.removeClass('gm_efeitos');} } if(gm.attr('gm_componente') == 'gpc_modal_popup'){ setTimeout(function(){ gm.css({'top':(tela+10)+'px'}).removeClass('gm_esconder'); $('.'+id_gm).css({'overflow':''}); },25); }else if (gm.attr('gm_componente') == 'gma_modal'){setTimeout(function(){gm.css({'top':(tela)+'px'}).removeClass('gm_esconder');},25);} else{ setTimeout(function(){ gm.css({'top':(tela+10)+'px'}).removeClass('gm_esconder'); if(gm.attr('gm_componente') == 'gpc_modal' && typeof gpc_controle['elementos_iniciados'][id_gm] == 'object'){ if(Object.keys(gpc_controle['elementos_iniciados']).length){ $.each(gpc_controle['elementos_iniciados'], function (i, elemento_iniciado){ if(typeof gpc_controle['elementos_iniciados'][i].updateRect == 'function'){gpc_controle['elementos_iniciados'][i].updateRect();} }); } } },25); } }else{ if (gm.attr('gm_componente') == 'gpc_modal_imagens'){gm.find('.gpc_modal_imagens-centro, .gpc_modal_imagens-centro-pastas, .gpc_modal_imagens-centro-fotos').css({'height':((gm_altura-(gm.find('.gpc_modal_imagens-topo').outerHeight()))-120)+'px'});} if (gm.attr('gm_componente') == 'gml'){gm.find('.gml-centro, .gml-opcoes-lista-lateral, .gml-opcoes-lista-opcoes').css({'height':((tela_altura-(gm.find('.gml-topo').outerHeight()))-50)+'px'});} if (efeitos){if (!gm.hasClass('gm_efeitos')){gm.addClass('gm_efeitos');}}else{if (gm.hasClass('gm_efeitos')){gm.removeClass('gm_efeitos');}} if(gm.attr('gm_componente') == 'gpc_modal_popup'){ setTimeout(function(){ gm.css({'top':(((tela_altura-gm_altura)/2)+tela)+'px','bottom':'initial'}).removeClass('gm_esconder'); $('.'+id_gm).css({'overflow':''}); },25); }else{ setTimeout(function(){ gm.css({'top':(((tela_altura-gm_altura)/2)+tela)+'px','bottom':'initial'}).removeClass('gm_esconder'); if(gm.attr('gm_componente') == 'gpc_modal' && typeof gpc_controle['elementos_iniciados'][id_gm] == 'object'){gpc_controle['elementos_iniciados'][id_gm].updateRect();} },25); } } } } function FecharGM(id_gm){ var gm = $("#"+id_gm); if (gm.length){ var componente = gm.attr('gm_componente'); if(componente == 'gpc_modal_formulario'){MostrarPreview(false);} if(gm.attr('id') == 'gm-plano_alteracao_pagamento' || gm.attr('id') == 'gm-plano_alteracao' || gm.attr('id') == 'gm-plano_contratou'){ editou = false; editou_caixa = false; GLoading.carregar({'ativar':false}); document.location.reload(); } if(gm.attr('gm_componente') == 'gpc_modal' && typeof gpc_controle['elementos_iniciados'][id_gm] == 'object'){ gpc_controle['elementos_iniciados'][id_gm].destroy(); delete gpc_controle['elementos_iniciados'][id_gm]; } var gm_fundo = $("."+id_gm); var tela = window.scrollY; var tela_altura = $(window).height(); if (componente == 'gpc_modal'){ tela_largura = $('#gpc-blocos_editor').width(); tela = document.getElementById("gpc-blocos").scrollTop; } if (!gm.hasClass('gm_efeitos')){gm.addClass('gm_efeitos');} if(componente == 'gma_modal'){gm.css({'opacity':'0'});} else{gm.css({'top':(tela_altura+tela)+'px'});} setTimeout(function(){gm_fundo.removeClass('gm_fundo_ativo');},100); setTimeout(function(){ if($('.gm_fundo').length == 1){ if (componente == 'gpc_modal'){ $('.'+gpc_controle['classe_elemento_adicionar']+'[gpc_tipo="bloco"]').removeClass('esconder'); var elemento_original = $('.gpc_modal').attr('gpc_id_elemento'); if(gpc_controle['elementos_selecionados']['elementos_resize'] != ''){ gpc_controle['elementos_selecionados'] ={'elementos':{}, 'elementos_resize':'', 'total' :0,'helper':{'largura':0,'altura':0,'left_original':'','top_original':'','elemento_left_original':'','elemento_top_original':'','scrollTop':$("#gpc-blocos").offset().top,'scrollLeft':$("#gpc-blocos").scrollLeft()}}; $('#'+gpc_controle['classe_elementos_selecionados']).remove(); $('.ui-selected').removeClass('ui-selected'); } setTimeout(function(){ $('#elementos_'+elemento_original).addClass('ativo').trigger('click'); gpc_controle['elementos_iniciados']['elemento']['target'] = $('#elementos_'+elemento_original)[0]; gpc_controle['elementos_iniciados']['elemento'].updateRect(); gpc_controle['elementos_iniciados']['elemento'].selfElement.style.opacity = 1; },300); $('#gpc-blocos_editor-blocos').removeClass('administrador_borrar').removeAttr('style'); $('.'+gpc_controle['classe_bloco_configurar']).remove(); }else if ($('#site').length){ if($('#site').closest('.gmf').length){$('#administrador').removeClass('administrador_borrar').removeAttr('style');} else{$('#site').removeClass('site_borrar').removeAttr('style');} }else{$('#administrador').removeClass('administrador_borrar').removeAttr('style');} } if($('.gm_fundo').length == 1){ if (componente == 'gpc_modal'){$('#gpc-blocos_editor').removeClass('body_bloquear');} else{$('body').removeClass('body_bloquear body_bloquear_site');} } if($('.gm_fundo').length == 1){ if(componente == 'gpc_modal'){document.getElementById("gpc-blocos").scrollTop = parseFloat(gm.attr('gm_scroll'))+$('#gpc-blocos').offset().top;} else{window.scroll({top:gm.attr('gm_scroll'), behavior:"auto"});} } gm.remove();gm_fundo.remove(); editou = false; editou_caixa = false; GLoading.carregar({'ativar':false}); if(componente == 'gpc_modal_imagens'){$("body").css({'overflow':''});} if(componente == 'gpc_modal'){ ElementosBind('todos','reiniciar'); setTimeout(function(){ if(typeof gpc_controle['elementos_iniciados']['elemento'] == 'object'){ if(Object.keys(gpc_controle['elementos_iniciados']).length){ $.each(gpc_controle['elementos_iniciados'], function (i, elemento_iniciado){ if(typeof gpc_controle['elementos_iniciados'][i].updateRect == 'function'){gpc_controle['elementos_iniciados'][i].updateRect();} }); } } },25); } },200); } } function PulsarGM(id_gm){ $('#'+id_gm).addClass('gm_pulsar'); setTimeout(function(){$('#'+id_gm).removeClass('gm_pulsar');},100); } $(function(){ $('body').on('click','.gm_fundo',function(){if ($(this).attr('gm_fundo_acao') == 'pulsar'){PulsarGM($(this).attr('gm_id'));}else if ($(this).attr('gm_fundo_acao') == 'fechar'){FecharGM($(this).attr('gm_id'));}}); $('body').on('click','.gm_fechar',function(){FecharGM($(this).attr('gm_id'));}); }); 'use strict'; var GModalApproval = function(){ return{ instalar :function(configuracao){ if (configuracao.hasOwnProperty('barra') == false){configuracao.barra = '';} if (configuracao.barra != ''){ if(GModalApproval.preferencias() == null){GModalApproval.barra(configuracao);} else{ GModalApproval.botao(configuracao); GModalApproval.instalar_scripts(configuracao,false); } setTimeout(function(){GModalApproval.posicionar();}, 500); } }, barra :function(configuracao){ if (configuracao.barra.hasOwnProperty('fechar') == false){configuracao.fechar = false;} if (configuracao.barra.hasOwnProperty('cor') == false){configuracao.barra.cor = 'ffffff';} if (configuracao.barra.hasOwnProperty('classe') == false){configuracao.barra.classe = '';} if (configuracao.barra.hasOwnProperty('botao_configurar') == false){configuracao.barra.botao_configurar = false;} if (configuracao.barra.hasOwnProperty('botao_aceitar') == false){configuracao.barra.botao_aceitar = 'Entendi e aceito';} if (configuracao.barra.hasOwnProperty('texto') == false){configuracao.barra.texto = 'Usamos cookies para personalizar conteúdos e melhorar a sua experiência.';} var barra = '
'+configuracao.barra.texto+'
'; barra += '
'; if(configuracao.barra.botao_configurar){barra += '
'+configuracao.barra.botao_configurar+'
';} barra += '
'+configuracao.barra.botao_aceitar+'
'; barra += "
"; if(configuracao.barra.fechar){barra += '
';} var g_lgpd = document.createElement("div"); g_lgpd.id = 'gpc-lgpd'; g_lgpd.className = 'posicionar gpc-lgpd-cor_'+configuracao.barra.cor+' '+(configuracao.barra.botao_configurar ? 'botoes' :'botao')+' '+configuracao.barra.classe; g_lgpd.innerHTML = barra; document.body.appendChild(g_lgpd); setTimeout(function(){GModalApproval.configurar(configuracao);}, 300); }, botao :function(configuracao){ if(configuracao.barra.hasOwnProperty('editar_consentimento') == false){configuracao.barra.editar_consentimento = true;} if(configuracao.barra.editar_consentimento){ var g_lgpd = document.getElementById("gpc-lgpd_editar"); if(g_lgpd == null){ var g_lgpd = document.createElement("div"); g_lgpd.id = 'gpc-lgpd_editar'; g_lgpd.className = 'posicionar gtt-direita gpc-lgpd-cor_'+configuracao.barra.cor+' '+configuracao.barra.classe; g_lgpd.setAttribute('data-gtt','Preferências de cookies'); document.body.appendChild(g_lgpd); GTooltip.instalar({'elemento' :'.gtt-direita', 'direcao' :'direita'}); setTimeout(function(){GModalApproval.configurar(configuracao);}, 300); } } setTimeout(function(){GModalApproval.posicionar();}, 200); }, modal :function(configuracao){ GLoading.carregar({'ativar':true}); var conteudo = ''; if (configuracao.hasOwnProperty('textos') == false){configuracao.textos = '';} if (configuracao.hasOwnProperty('opcoes') == false){configuracao.opcoes = '';} if(configuracao.textos != ''){ conteudo += '
'; for (var i = 0;i < configuracao.textos.length;i++){ if(configuracao.textos[i].tipo == 'titulo'){conteudo += '
'+configuracao.textos[i].texto+'
';} if(configuracao.textos[i].tipo == 'texto'){conteudo += '
'+configuracao.textos[i].texto+'
';} } conteudo += '
'; } if(configuracao.opcoes != ''){ var cookie = GModalApproval.preferencias(); for (var i = 0;i < configuracao.opcoes.length;i++){ if (configuracao.opcoes[i].hasOwnProperty('aviso') == false){configuracao.opcoes[i].aviso = '';} if (configuracao.opcoes[i].hasOwnProperty('titulo') == false){configuracao.opcoes[i].titulo = '';} if (configuracao.opcoes[i].hasOwnProperty('texto') == false){configuracao.opcoes[i].texto = '';} conteudo += '
'; conteudo += '
'; conteudo += ''+configuracao.opcoes[i].titulo+''; if(configuracao.opcoes[i].aviso != ''){conteudo += ''+configuracao.opcoes[i].aviso+'';} else{ if(cookie){configuracao.opcoes[i].valor = (cookie.indexOf(configuracao.opcoes[i].id+':1') !== -1 ? true :false);} conteudo += ''; } conteudo += '
'; conteudo += '
'+configuracao.opcoes[i].texto+'
'; conteudo += '
'; } } conteudo += '
Confirmar configurações
'; var modal ={ 'gm' :{ 'conteudos' :{ 'topo' :{'conteudo' :"
", 'estilos' :'', 'extras' :''}, 'centro' :{'conteudo' :conteudo, 'estilos' :'', 'extras' :''} }, 'classes' :'gm_lgpd', 'estilos' :'max-width:420px;', 'extras' :'' }, 'gm_fundo' :{ 'conteudos' :{'topo' :{'conteudo' :"
"}}, 'classes' :'gpc_modal_lgpd-fundo', 'estilos' :'overflow:hidden;', 'extras' :'gm_fundo_acao="fechar" id="gpc_modal_lgpd-fundo"' } }; gm_quantidade++; AbrirGM('gpc_modal_lgpd_'+gm_quantidade, 'gpc_modal_popup_lgpd',modal); GLoading.carregar({'ativar':false}); var lgpd = document.getElementById("gpc-lgpd"); if(lgpd == null){lgpd = document.getElementById("gpc-lgpd_editar");} lgpd.classList.add('posicionar'); lgpd.classList.remove('posicionado'); setTimeout(function(){ var botao_confirmar = document.getElementById("gpc_modal_lgpd-confirmar"); if(botao_confirmar != null){botao_confirmar.addEventListener("click", function(){GModalApproval.confirmar(configuracao);});} var fechar1 = document.getElementById("gpc_modal_popup_lgpd-topo-fechar"); if(fechar1 != null){ fechar1.addEventListener("click", function(){ FecharGM('gpc_modal_lgpd_'+gm_quantidade); GModalApproval.posicionar(); }); } var fechar2 = document.getElementById("gpc_modal_popup-fundo-fechar"); if(fechar2 != null){fechar2.addEventListener("click", function(){GModalApproval.posicionar();});} var fechar3 = document.getElementById("gpc_modal_lgpd-fundo"); if(fechar3 != null){fechar3.addEventListener("click", function(){GModalApproval.posicionar();});} var opcoes = document.getElementsByClassName('gpc_modal_lgpd-opcoes-selecao'); if(opcoes != null){ for (var i = 0;i < opcoes.length;i++){ opcoes[i].addEventListener("click", function(e){ if(this.classList.contains('gpc_modal_lgpd-opcoes-selecao_selecionado')){this.classList.remove('gpc_modal_lgpd-opcoes-selecao_selecionado');} else{this.classList.add('gpc_modal_lgpd-opcoes-selecao_selecionado');} }); } } },400); }, posicionar :function(){ var g_lgpd = document.getElementById("gpc-lgpd"); if(g_lgpd == null){g_lgpd = document.getElementById("gpc-lgpd_editar");} if(g_lgpd){ g_lgpd.classList.add('posicionado'); g_lgpd.classList.remove('posicionar'); } }, configurar :function(configuracao){ var botao_editar = document.getElementById("gpc-lgpd_editar"); if(botao_editar){ botao_editar.removeEventListener("click",function(){GModalApproval.modal(configuracao);},false); botao_editar.addEventListener("click", function(){GModalApproval.modal(configuracao);}); } var botao_configurar = document.getElementById("gpc-lgpd_botoes-configurar"); if(botao_configurar){ botao_configurar.removeEventListener("click",function(){GModalApproval.modal(configuracao);},false); botao_configurar.addEventListener("click", function(){GModalApproval.modal(configuracao);}); } var botao_confirmar = document.getElementById("gpc-lgpd_botoes-confirmar"); if(botao_confirmar){ botao_confirmar.removeEventListener("click",function(){GModalApproval.confirmarTodos(configuracao);},false); botao_confirmar.addEventListener("click", function(){GModalApproval.confirmarTodos(configuracao);}); } var botao_fechar = document.getElementById("gpc-lgpd_fechar"); if(botao_fechar){ botao_fechar.removeEventListener("click",function(){GModalApproval.cancelarTodos(configuracao);},false); botao_fechar.addEventListener("click", function(){GModalApproval.cancelarTodos(configuracao);}); } }, confirmar :function(configuracao){ var valor = 'o:1'; var elementos = document.getElementsByClassName('gpc_modal_lgpd-opcoes-selecao'); let editado = false; if (elementos.length){ for (var i = 0;i < elementos.length;i++){ valor += '&'+elementos[i].id+':'+(elementos[i].classList.contains('gpc_modal_lgpd-opcoes-selecao_selecionado') ? '1' :'0'); if (elementos[i].classList.contains('gpc_modal_lgpd-opcoes-selecao') == true){ for (var x = 0;x < configuracao.opcoes.length;x++){ if (configuracao.opcoes[x].id == elementos[i].id){ if(configuracao.opcoes[x].valor != elementos[i].classList.contains('gpc_modal_lgpd-opcoes-selecao_selecionado')){editado = true;} configuracao.opcoes[x].valor = elementos[i].classList.contains('gpc_modal_lgpd-opcoes-selecao_selecionado'); } } } } } configuracao.editado = editado; GModalApproval.salvar_preferencias(valor,configuracao.dominio); FecharGM('gpc_modal_lgpd_'+gm_quantidade); var elemento = document.getElementById('gpc-lgpd'); if (elemento != null){ elemento.remove(); GModalApproval.botao(configuracao); } GModalApproval.posicionar(); GModalApproval.remover_preferencias(configuracao); }, confirmarTodos :function(configuracao){ var valor = 'o:1'; for (var x = 0;x < configuracao.opcoes.length;x++){ if(configuracao.opcoes[x].hasOwnProperty('valor')){ configuracao.opcoes[x].valor = true; valor += '&'+configuracao.opcoes[x].id+':1'; } } GModalApproval.salvar_preferencias(valor,configuracao.dominio); GModalApproval.instalar_scripts(configuracao); configuracao.editado = true; var elemento = document.getElementById('gpc-lgpd'); if(elemento != null){elemento.remove();} GModalApproval.botao(configuracao); }, cancelarTodos :function(configuracao){ var valor = 'o:1'; for (var x = 0;x < configuracao.opcoes.length;x++){ if(configuracao.opcoes[x].hasOwnProperty('valor')){ configuracao.opcoes[x].valor = false; valor += '&'+configuracao.opcoes[x].id+':0'; } } configuracao.editado = true; GModalApproval.salvar_preferencias(valor,configuracao.dominio); GModalApproval.instalar_scripts(configuracao); var elemento = document.getElementById('gpc-lgpd'); if(elemento != null){elemento.remove();} GModalApproval.botao(configuracao); }, preferencias :function(){ var strNomeIgual = "gpages_cookies="; var cookie_array = document.cookie.split(';'); for(var i = 0;i < cookie_array.length;i++){ var cookie_string = cookie_array[i]; while (cookie_string.charAt(0) == ' '){cookie_string = cookie_string.substring(1, cookie_string.length);} if (cookie_string.indexOf(strNomeIgual) != -1){return cookie_string.substring(strNomeIgual.length, cookie_string.length);} } return null; }, salvar_preferencias :function(preferencias, dominio){ if (dominio == undefined){dominio = '';} var data = new Date(); data.setTime(data.getTime() + (365 * 24 * 60 * 60 * 1000)); document.cookie = "gpages_cookies=" + preferencias + ";Expires=" + data.toGMTString() + ";Path=/;"+(dominio ? ' Domain='+dominio :''); return true; }, remover_preferencias :function(configuracao){ if(configuracao.editado){ var cookie_array = document.cookie.split(';'); var cookies_limpos = ''; for(var i = 0;i < cookie_array.length;i++){ var cookie_string = cookie_array[i]; while (cookie_string.charAt(0) == ' '){cookie_string = cookie_string.substring(1, cookie_string.length);} if (cookie_string.indexOf('gpages_') === -1){cookies_limpos += cookie_string.substring(0,cookie_string.indexOf('='))+"=;Expires=Thu, 01 Jan 1970 00:00:01 GMT;Path=/;"+(configuracao.dominio ? ' Domain='+configuracao.dominio :'');} else{cookies_limpos += cookie_string;} } document.cookie = cookies_limpos; setTimeout(function(){document.location.reload(true);},100); } }, instalar_scripts :function(configuracao,loader){ if(loader == undefined){loader = true;} let cookie = GModalApproval.preferencias(); if(configuracao.opcoes != ''){for (var x = 0;x < configuracao.opcoes.length;x++){configuracao.opcoes[x].valor = (cookie.indexOf(configuracao.opcoes[x].id+':1') !== -1 ? true :false);}} if(configuracao.hasOwnProperty('opcoes')){ let total = Object.entries(configuracao.opcoes).length; for (var i = 0;i < total;i++){ if((configuracao.opcoes[i].valor == true || configuracao.opcoes[i].valor == 'true') && configuracao.opcoes[i].hasOwnProperty('codigos')){ let scripts = configuracao.opcoes[i]['codigos'](); let total_scripts = Object.entries(scripts).length; if(total_scripts){ let tipo = '_'+configuracao.opcoes[i]['id']; $('.gle_css'+tipo).removeClass('gle_css'+tipo).addClass('gle_css'); $('.gle_scripts'+tipo).removeClass('gle_scripts'+tipo).addClass('gle_scripts'); Object.entries(scripts).forEach(([key, value]) =>{ if(scripts[key].hasOwnProperty('html')){ let div = document.createElement("div"); div.innerHTML = scripts[key]['html']; document.body.appendChild(div); } setTimeout(function(){ if(scripts[key].hasOwnProperty('js_interno')){ let total_js_interno = Object.entries(scripts[key]['js_interno']).length; for (let y = 0;y < total_js_interno;y++){ let script = document.createElement("script"), conteudo = scripts[key]['js_interno'][y].toString(); conteudo = conteudo.substr(11,conteudo.length); conteudo = conteudo.substr(0,(conteudo.length-1)); script.innerHTML = conteudo; document.body.appendChild(script); } } },50); }); } } } if(loader){GreatLoader('atualizar');} } } }; }(); 'use strict'; var GTooltip = function(){ return{ instalar :function(configuracao){ if (configuracao.hasOwnProperty('elemento') == false){configuracao.elemento = '';} if (configuracao.hasOwnProperty('direcao') == false){configuracao.direcao = 'cima';} if (configuracao.direcao != 'cima' && configuracao.direcao != 'baixo' && configuracao.direcao != 'direita' && configuracao.direcao != 'esquerda'){configuracao.direcao = 'cima';} if (configuracao.elemento != ''){ var elementos = document.querySelectorAll(configuracao.elemento); if (elementos.length){ for (var i = 0;i < elementos.length;i++){ elementos[i].addEventListener('mouseenter', function(){GTooltip.adicionar(this, configuracao.direcao);}, false); elementos[i].addEventListener('mouseout', function(){GTooltip.remover(this);}, false); } } } }, adicionar :function(elemento, direcao){ if (elemento.dataset.gtt != ''){ var gtt = document.createElement("div"); gtt.className = 'gtt_caixa gtt_caixa-'+direcao; gtt.innerHTML = ''+elemento.dataset.gtt+''; document.body.appendChild(gtt); var pagina_offset = window.scrollY || window.pageYOffset; var elemento_offset = elemento.getBoundingClientRect(); var gtt_width = parseFloat(getComputedStyle(gtt).width.replace("px", "")); var gtt_height = parseFloat(getComputedStyle(gtt).height.replace("px", "")); let caixa = document.querySelector('.gmf'); let zindex = ''; if(caixa != null){zindex = caixa.style.zIndex+1;} gtt.style.zIndex = zindex; if (direcao == 'cima'){ gtt.style.top = (pagina_offset+(elemento_offset.top-gtt_height))-10+'px'; gtt.style.left = (elemento_offset.left+(elemento.offsetWidth/2))-(gtt_width/2)+'px'; var gtt_seta = gtt.querySelector('.gtt_caixa-seta'); gtt_seta.style.zIndex = zindex; gtt_seta.style.bottom = '-10px'; gtt_seta.style.left = ((gtt_width/2)-5)+'px'; }else if (direcao == 'baixo'){ gtt.style.top = (pagina_offset+(elemento_offset.top+elemento.offsetHeight))+10+'px'; gtt.style.left = (elemento_offset.left+(elemento.offsetWidth/2))-(gtt_width/2)+'px'; var gtt_seta = gtt.querySelector('.gtt_caixa-seta'); gtt_seta.style.zIndex = zindex; gtt_seta.style.top = '-10px'; gtt_seta.style.left = ((gtt_width/2)-5)+'px'; }else if (direcao == 'esquerda'){ gtt.style.top = (pagina_offset+(elemento_offset.top+(elemento.offsetHeight/2))-(gtt_height/2))+'px'; gtt.style.left = (elemento_offset.left-gtt_width)-10+'px'; var gtt_seta = gtt.querySelector('.gtt_caixa-seta'); gtt_seta.style.zIndex = zindex; gtt_seta.style.right = '-10px'; gtt_seta.style.top = ((gtt_height/2)-5)+'px'; }else if (direcao == 'direita'){ gtt.style.top = (pagina_offset+(elemento_offset.top+(elemento.offsetHeight/2))-(gtt_height/2))+'px'; gtt.style.left = (elemento_offset.left+elemento.offsetWidth)+10+'px'; var gtt_seta = gtt.querySelector('.gtt_caixa-seta'); gtt_seta.style.zIndex = zindex; gtt_seta.style.left = '-10px'; gtt_seta.style.top = ((gtt_height/2)-5)+'px'; } } }, remover :function(elemento){ if (elemento.dataset.gtt != ''){ var gtt = document.body.querySelector('.gtt_caixa'); if(gtt != null || window.navigator.sayswho.toLowerCase().indexOf('ie') !== false){gtt.remove();} } } }; }(); var gqa_status = false; var gqa_fila = []; var gqa_executando = false; function ControlarFilaGQA(){ if (gqa_executando){clearTimeout(gqa_executando);} gqa_executando = setInterval(function(){ExecutarFilaGQA();}, (document.hidden) ? 8000 :100); } function AdicionarFilaGQA(parametros){ if (parametros.hasOwnProperty('verbo') == false){parametros.verbo = 'POST';} if (parametros.hasOwnProperty('url') == false){return false;} if (parametros.hasOwnProperty('uri') == false){parametros.uri = '';} else{ if(typeof parametros.uri == 'object' || typeof parametros.uri == 'array'){ parametros.uri = FormatarUriGQA(parametros.uri); } } if (parametros.hasOwnProperty('extensao') == false){parametros.extensao = 'json';} if (parametros.hasOwnProperty('prioridade') == false){parametros.prioridade = 'baixa';} if (parametros.hasOwnProperty('carregar') == false){parametros.carregar = false;} if (parametros.hasOwnProperty('timeout') == false){parametros.timeout = 10000;} if (parametros.prioridade == 'alta'){ EnviarAjaxGQA(parametros); }else if (parametros.prioridade == 'media'){ gqa_fila.unshift([parametros]); }else if (parametros.prioridade == 'baixa'){ gqa_fila.push([parametros]); } } function ExecutarFilaGQA(){ if (gqa_status == false && gqa_fila.length){ var proximo = gqa_fila.shift(); gqa_status = true; EnviarAjaxGQA(proximo[0]) } } function EnviarAjaxGQA(parametros){ if (parametros.hasOwnProperty('verbo') == false){parametros.verbo = 'POST';} if (parametros.hasOwnProperty('url') == false){return false;} if (parametros.hasOwnProperty('uri') == false){parametros.uri = '';} if (parametros.hasOwnProperty('extensao') == false){parametros.extensao = 'json';} if (parametros.hasOwnProperty('prioridade') == false){parametros.prioridade = 'baixa';} if (parametros.hasOwnProperty('carregar') == false){parametros.carregar = false;} if (parametros.hasOwnProperty('timeout') == false){parametros.timeout = 10000;} if (parametros.hasOwnProperty('externo') == false){parametros.externo = false;} if (parametros.hasOwnProperty('funcao_erro') == false){parametros.funcao_erro = '';} if (parametros.hasOwnProperty('funcao_sucesso') == false){parametros.funcao_sucesso = '';} if (parametros.carregar == true){GLoading.carregar({'ativar':true});} if (parametros.verbo == 'POST'){ var url = parametros.url; var dados = parametros.uri; }else{ if (parametros.uri){ var url = parametros.url+'?'+parametros.uri; }else{var url = parametros.url;} var dados = ''; } var requisicao = new XMLHttpRequest(); requisicao.open(parametros.verbo, url, true); requisicao.timeout = parametros.timeout; if (parametros.extensao){requisicao.responseType = parametros.extensao;} requisicao.withCredentials = true; requisicao.overrideMimeType("application/"+parametros.extensao); if (parametros.verbo == 'POST'){ if(parametros.externo){ requisicao.withCredentials = false; requisicao.setRequestHeader('Content-Type', "application/json"); }else{ requisicao.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } } if (parametros.externo){ requisicao.setRequestHeader('Access-Control-Allow-Methods', 'POST'); requisicao.setRequestHeader('Access-Control-Allow-Headers', "*"); requisicao.setRequestHeader('Access-Control-Allow-Origin', '*'); } requisicao.onreadystatechange = function(){ if (this.readyState == 4){ if (this.status >= 200 && this.status < 400){ if (this.responseType == 'json'){ var resposta = this.response; }else if (this.responseType == 'text' || this.responseType == ''){ var resposta = this.responseText; }else{ var resposta = this.response; } if (parametros.funcao_sucesso){parametros.funcao_sucesso(resposta);} GLoading.carregar({'ativar':false}); gqa_status = false; }else{ if (parametros.funcao_erro){parametros.funcao_erro(this);} GLoading.carregar({'ativar':false}); gqa_status = false; } } }; requisicao.send(dados); requisicao = null; } function FormatarUriGQA(post, prefixo){ var retorno = [], post_chave, post_valor; for(var p in post){ if (!post.hasOwnProperty(p)){continue;} if (~p.indexOf('[')){post_chave = prefixo ? prefixo + "[" + p.substring(0, p.indexOf('[')) + "]" + p.substring(p.indexOf('[')) :p;} else{post_chave = prefixo ? prefixo + "[" + p + "]" :p;} post_valor = post[p]; retorno.push(typeof post_valor == "object" ? FormatarUriGQA(post_valor, post_chave) :encodeURIComponent(post_chave) + "=" + encodeURIComponent(post_valor)); } return retorno.join("&"); } $(function(){ if(document.addEventListener){document.addEventListener("visibilitychange", ControlarFilaGQA);} ControlarFilaGQA(); });'use strict'; var go_elementos = []; var GObserver = function(){ return{ iniciar :function (){ window.addEventListener('resize', function(){GObserver.observar(true);}, false); window.addEventListener('scroll', function(){GObserver.observar(true);}, false); }, instalar :function(configuracao){ if (configuracao.hasOwnProperty('elemento') == false){configuracao.elemento = '';} if (configuracao.hasOwnProperty('antecipacao') == false){configuracao.antecipacao = 0;} if (configuracao.hasOwnProperty('executar') == false){configuracao.executar = '';} if (configuracao.elemento != ''){ var elementos = document.querySelectorAll(configuracao.elemento); if (elementos.length){ for (var i = 0;i < elementos.length;i++){ if (elementos[i].id){ var instalar ={ 'elemento' :'#'+elementos[i].id, 'antecipacao' :configuracao.antecipacao, 'executar' :configuracao.executar }; go_elementos.push(instalar); } } GObserver.observar(false); } } }, observar :function(antecipacao){ if (go_elementos.length){ var janela_top = window.scrollY || window.pageYOffset; var janela_bottom = janela_top+window.innerHeight; for(var i = 0;i < go_elementos.length;i++){ var antecipar = (antecipacao == true ? go_elementos[i].antecipacao :0); var elemento = document.querySelector(go_elementos[i].elemento); if (elemento !== null && elemento !== undefined){ var elemento_estilo = window.getComputedStyle(elemento); if (elemento_estilo.display !== 'none'){ var elemento_top = elemento.getBoundingClientRect().top+janela_top; var elemento_bottom = elemento_top+elemento.clientHeight; if (elemento_bottom >= janela_top && (elemento_top-antecipar) <= janela_bottom){ (function(index){go_elementos[index].executar(document.querySelector(go_elementos[index].elemento));})(i); go_elementos.splice(i, 1); this.observar(antecipacao);break; } } } } } } }; }(); GObserver.iniciar(); elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03518777557724':{'fs':'18', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03518777557724':{'desktop':0, 'mobile':40}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_174852312522712071':{'desktop':17.9896, 'mobile':7.938}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0357a795134370':{'fs':'37', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0357a795134370':{'desktop':162.804, 'mobile':37.9277}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca035e4926267470':{'fs':'18', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca035e4926267470':{'desktop':415.706, 'mobile':476.344}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0364c451505474':{'fs':'16', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0364c451505474':{'desktop':267.89, 'mobile':259.562}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca037b9596568599':{'desktop':138.186, 'mobile':679}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03824165329132':{'fs':'15.124', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03824165329132':{'desktop':150.092, 'mobile':690.906}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0388a640576103':{'fs':'42', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0388a640576103':{'desktop':210.428, 'mobile':731}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0390c289521531':{'fs':'16', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0390c289521531':{'desktop':340.478, 'mobile':891.264}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03978322652224':{'fs':'18', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03978322652224':{'desktop':488.759, 'mobile':1075.61}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca039ef478037193':{'desktop':73.9669, 'mobile':40}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03a61925855168':{'fs':'44', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03a61925855168':{'desktop':186.679, 'mobile':129.053}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03ae0406859066':{'fs':'13.5378', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03ae0406859066':{'desktop':162.247, 'mobile':87.08}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03b4f996097308':{'fs':'48.9676', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03b4f996097308':{'desktop':111.009, 'mobile':34.056}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03bcf979189292':{'desktop':383.186, 'mobile':417.46}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03c45119578032':{'fs':'20', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03c45119578032':{'desktop':405.194, 'mobile':439.46}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03cb4677353600':{'fs':'25.9896', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03cb4677353600':{'desktop':445.599, 'mobile':479.87}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03d44137820066':{'fs':'14', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03d44137820066':{'desktop':445.998, 'mobile':480.27}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03dbc969251496':{'fs':'25.9896', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03dbc969251496':{'desktop':480.582, 'mobile':514.85}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03e40417064246':{'fs':'14', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03e40417064246':{'desktop':479.505, 'mobile':513.78}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03ec5620564610':{'fs':'25.9896', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03ec5620564610':{'desktop':515.894, 'mobile':550.16}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca03f4e614029132':{'fs':'14', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03f4e614029132':{'desktop':517.913, 'mobile':552.18}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03fc6656685286':{'desktop':580.654, 'mobile':614.92}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca04f41115538706':{'desktop':92.6891, 'mobile':16}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0500e610010243':{'desktop':99.708, 'mobile':23.019}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_77595':{'fs':'25.9896', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_77595':{'desktop':554.285, 'mobile':588.56}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_52207':{'fs':'14', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_52207':{'desktop':556.304, 'mobile':590.57}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca07a21144793963':{'desktop':71.4407, 'mobile':22.945}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca07b52312712029':{'fs':'36', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca07b52312712029':{'desktop':139.25, 'mobile':96.41}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca07c51052855654':{'fs':'15.1545', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca07c51052855654':{'desktop':82.3084, 'mobile':33.8893}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca07d5b500886500':{'desktop':71.1111, 'mobile':331.216}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca089ce340718309':{'desktop':129.181, 'mobile':356.935}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca08cb6814338778':{'fs':'19.4095', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca08cb6814338778':{'desktop':126.867, 'mobile':438.497}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca08dde190153379':{'fs':'13.5866', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca08dde190153379':{'desktop':149.429, 'mobile':460.393}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca08ee9384825116':{'desktop':227.132, 'mobile':524.407}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca08fec970829835':{'desktop':269.181, 'mobile':549.407}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca09248309329257':{'fs':'19.4095', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca09248309329257':{'desktop':276.871, 'mobile':630.218}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca09398404050486':{'fs':'13.5866', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca09398404050486':{'desktop':304.023, 'mobile':656.568}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca094b1979751743_m':{'desktop':27.184, 'mobile':710.327}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca095b7257256025_m':{'desktop':68.9375, 'mobile':741.247}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca09b20775119180_m':{'fs':'19.4095', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca09b20775119180_m':{'desktop':60.8236, 'mobile':836.527}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca09d8e673688592_m':{'fs':'13.5866', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca09d8e673688592_m':{'desktop':87.4865, 'mobile':862.407}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca09eea685185424_m':{'desktop':167.896, 'mobile':929.819}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0a006759808427_m':{'desktop':204.007, 'mobile':958.847}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0a29e155465549_m':{'fs':'19.4095', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0a29e155465549_m':{'desktop':199.275, 'mobile':1035.71}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0a3d7502226333_m':{'fs':'13.5866', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0a3d7502226333_m':{'desktop':226.538, 'mobile':1062.16}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0a507892174294':{'fs':'13.7143', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0a507892174294':{'desktop':212.703, 'mobile':189.37}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_174852969173398696_m':{'desktop':79.284, 'mobile':756.067}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_60634':{'desktop':138.522, 'mobile':366.276}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_89375':{'desktop':279.422, 'mobile':559.647}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_99563_m':{'desktop':212.969, 'mobile':975.097}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca07e8b881008762':{'fs':'13.6989', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca07e8b881008762':{'desktop':75.0555, 'mobile':23.891}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca07fd3425265919':{'desktop':99.0729, 'mobile':44.454}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca080ea797295956':{'desktop':99.0729, 'mobile':44.454}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca081e9072851671':{'desktop':181.087, 'mobile':103.036}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca082d9565296918':{'fs':'13.664', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca082d9565296918':{'desktop':151.935, 'mobile':78.141}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca083ec718304769':{'desktop':181.087, 'mobile':103.036}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca08748117639577':{'fs':'18', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca08748117639577':{'desktop':258.483, 'mobile':169.125}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca094b1979751743_d':{'desktop':27.184, 'mobile':710.327}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca095b7257256025_d':{'desktop':68.9375, 'mobile':741.247}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca09b20775119180_d':{'fs':'19.4095', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca09b20775119180_d':{'desktop':60.8236, 'mobile':836.527}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca09d8e673688592_d':{'fs':'13.5866', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca09d8e673688592_d':{'desktop':87.4865, 'mobile':862.407}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca09eea685185424_d':{'desktop':167.896, 'mobile':929.819}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0a006759808427_d':{'desktop':204.007, 'mobile':958.847}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0a29e155465549_d':{'fs':'19.4095', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0a29e155465549_d':{'desktop':199.275, 'mobile':1035.71}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0a3d7502226333_d':{'fs':'13.5866', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0a3d7502226333_d':{'desktop':226.538, 'mobile':1062.16}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_174852969173398696_d':{'desktop':79.284, 'mobile':756.067}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_99563_d':{'desktop':212.969, 'mobile':975.097}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca03210493158083':{'desktop':8.25, 'mobile':68}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0af01861663161':{'fs':'30', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0af01861663161':{'desktop':50.0784, 'mobile':91}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0b04c650551763':{'fs':'16', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0b04c650551763':{'desktop':134.223, 'mobile':196.854}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0b343035722570':{'desktop':254.116, 'mobile':589.579}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0b82a219301287':{'fs':'13.9521', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0b82a219301287':{'desktop':360.219, 'mobile':431.369}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0baf3872324152':{'desktop':225.719, 'mobile':785.32}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0bedc695899443':{'desktop':225.719, 'mobile':316.797}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0c0c1813045971':{'desktop':225.719, 'mobile':553.518}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0c210568714856':{'desktop':331.047, 'mobile':402.197}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0c36a463658149':{'fs':'24', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0c36a463658149':{'desktop':240.297, 'mobile':331.375}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0c4e3273500361':{'desktop':331.875, 'mobile':629.169}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0c658852560354':{'fs':'13.9521', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0c658852560354':{'desktop':361.094, 'mobile':658.389}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0c7a9676094300':{'fs':'24', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0c7a9676094300':{'desktop':240.125, 'mobile':567.925}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0c8c4888005347':{'desktop':331.875, 'mobile':863.244}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0c9f3948005255':{'fs':'13.9521', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0c9f3948005255':{'desktop':361.047, 'mobile':892.414}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0cb32698477740':{'fs':'24', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0cb32698477740':{'desktop':240.125, 'mobile':799.727}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0cc4c283696606':{'fs':'30', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0cc4c283696606':{'desktop':141.903, 'mobile':127.465}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0cd5f466945928':{'fs':'14.0831', 'lh':'1.8000014201419'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0cd5f466945928':{'desktop':258.076, 'mobile':228.106}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0ce7c668344422':{'fs':'15.8435', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0ce7c668344422':{'desktop':335.625, 'mobile':307.443}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0cfde897338850':{'desktop':77.328, 'mobile':402}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0d36f674024527':{'fs':'20', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0d36f674024527':{'desktop':98.781, 'mobile':423.453}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0d600809513636':{'desktop':132.256, 'mobile':456.928}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0d736160309319':{'desktop':77.328, 'mobile':784.89}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0dc03676487274':{'fs':'20', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0dc03676487274':{'desktop':98.781, 'mobile':806.344}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0deec095500361':{'desktop':132.256, 'mobile':839.818}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0e023039378460':{'desktop':473.734, 'mobile':1531.72}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0e422598301869':{'fs':'20', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0e422598301869':{'desktop':491.492, 'mobile':1549.48}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0e6fb378086565':{'desktop':527.367, 'mobile':1585.35}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0e83a489445787':{'desktop':473.734, 'mobile':1914.61}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0ec26163104760':{'fs':'20', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0ec26163104760':{'desktop':491.492, 'mobile':1932.37}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0eed2171229895':{'desktop':527.367, 'mobile':1968.24}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0f042136249736':{'desktop':473.734, 'mobile':1147.83}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0f4f1214956343':{'fs':'20', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0f4f1214956343':{'desktop':488.492, 'mobile':1168.29}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0f814541830363':{'desktop':527.367, 'mobile':1201.46}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0f977677062372':{'desktop':77.328, 'mobile':40}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0fac2937021566':{'fs':'15.124', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0fac2937021566':{'desktop':88.2343, 'mobile':50.9063}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0fc2c701206377':{'desktop':62.625, 'mobile':40}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0fd89573269468':{'fs':'15.124', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0fd89573269468':{'desktop':73.5312, 'mobile':50.9061}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca0ff00773025553':{'fs':'42', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca0ff00773025553':{'desktop':122.5, 'mobile':123}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca10218571184805':{'desktop':205.422, 'mobile':301.766}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca10380949178904':{'desktop':257.422, 'mobile':316.083}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca10526234291277':{'desktop':248.922, 'mobile':309.641}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca10682608602635':{'fs':'14', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca10682608602635':{'desktop':248.922, 'mobile':397.746}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca107f5258606318':{'desktop':363.125, 'mobile':923.99}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca1097d628791850':{'fs':'19', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca1097d628791850':{'desktop':393.844, 'mobile':911.826}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca10b7c503207914':{'fs':'19', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca10b7c503207914':{'desktop':393.844, 'mobile':911.826}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca10d57213047996':{'fs':'19', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca10d57213047996':{'desktop':393.844, 'mobile':911.826}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca10f83804432411':{'fs':'19', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca10f83804432411':{'desktop':393.844, 'mobile':911.826}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca111aa588209107':{'fs':'19', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca111aa588209107':{'desktop':393.844, 'mobile':911.826}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca11402210084570':{'fs':'14', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca11402210084570':{'desktop':394.922, 'mobile':564.306}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca11615351408695':{'desktop':205.422, 'mobile':634.984}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca117d0049155215':{'fs':'19', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca117d0049155215':{'desktop':393.828, 'mobile':523.69}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca11e44861994506':{'desktop':248.922, 'mobile':649.881}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca12157594988083':{'desktop':257.422, 'mobile':656.857}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca12363784685492':{'fs':'14', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca12363784685492':{'desktop':248.922, 'mobile':743.278}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca1252b736872683':{'desktop':363.125, 'mobile':537.993}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca12698582100581':{'fs':'19', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca12698582100581':{'desktop':393.828, 'mobile':523.69}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca128a1766186754':{'fs':'19', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca128a1766186754':{'desktop':393.828, 'mobile':523.69}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca12a7c735019046':{'fs':'19', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca12a7c735019046':{'desktop':393.828, 'mobile':523.69}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca12c52663386241':{'fs':'19', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca12c52663386241':{'desktop':393.828, 'mobile':523.69}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca12e19886467139':{'fs':'14', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca12e19886467139':{'desktop':394.922, 'mobile':956.056}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca12fe5692532892':{'desktop':76.5, 'mobile':237.429}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca13178313200058':{'fs':'30', 'lh':'1.2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca13178313200058':{'desktop':170.55, 'mobile':24.14}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca13343074974093':{'fs':'16', 'lh':'1.8'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca13343074974093':{'desktop':321.763, 'mobile':112.865}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca14309387815262':{'desktop':293.75, 'mobile':1397.7}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca144aa927593162':{'fs':'12', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca144aa927593162':{'desktop':133.547, 'mobile':256.432}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca17a2b759495644':{'desktop':243.125, 'mobile':289.532}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca17bf6464895820':{'fs':'14', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca17bf6464895820':{'desktop':137.188, 'mobile':164.166}});elementos_css = Object.assign(elementos_css,{'e_2803875_1_1748452298683743ca18066864529337':{'fs':'12', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_1748452298683743ca18066864529337':{'desktop':285.125, 'mobile':312.266}});elementos_posicao = Object.assign(elementos_posicao,{'e_2803875_1_174852881378608629':{'desktop':65.1, 'mobile':54}});function InserirScriptsInline(){if(!window.getCrawler()){setTimeout(function(){ (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);if(typeof window.gtag === 'undefined'){window.gtag = function(){window.dataLayer.push(arguments);}}})(window,document,'script','dataLayer','GTM-WX45XDLJ'); var scripts = document.createElement('script'); scripts.type = 'text/javascript'; scripts.src = 'https://www.googletagmanager.com/gtag/js?id=G-9WWTFF2PKL'; scripts.defer = true; document.body.appendChild(scripts); var scripts2 = document.createElement('script'); scripts2.type = 'text/javascript'; scripts2.innerHTML = 'window.dataLayer = window.dataLayer || [];window.gtag = function(){dataLayer.push(arguments);};gtag(\'js\', new Date());gtag(\'config\', \'G-9WWTFF2PKL\');'; document.body.appendChild(scripts2); },150); }}var scripts_estatisticas ={}, scripts_marketing ={};