(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; }; imagem_download.onerror = function(e){ 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 = '
'; }; } }); },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'); }; imagem_download.onerror = function(e){ elemento.removeAttribute('ll_src'); elemento.removeAttribute('ll_src_mobile'); elemento.classList.remove('se_caixa'); elemento.children[0].classList.add('fallback_background'); }; }else{ elemento.classList.remove('se_caixa'); elemento.removeAttribute('ll_src'); elemento.removeAttribute('ll_src_mobile'); } } }); },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+')';} }; imagem_download.onerror = function(e){ imagem.removeAttribute('ll_src'); imagem.removeAttribute('ll_src_mobile'); try{ imagem.closest('.'+pagina_controle['classe_elemento']).classList.remove('se_slider'); imagem.closest('.'+pagina_controle['classe_elemento']).children[0].classList.add('fallback_background'); let id_slider = `gsi_${elemento.closest('.'+pagina_controle['classe_elemento']).getAttribute('id')}`; if(gsi_intervalo.hasOwnProperty(id_slider)){ GSlideImage.destruir(id_slider); GSlideImage.iniciar(elemento.closest('.'+pagina_controle['classe_elemento']).getAttribute('id')); }else{ GSlideImage.iniciar(elemento.closest('.'+pagina_controle['classe_elemento']).getAttribute('id')); } }catch (error){ } }; }else{ imagem.closest('.'+pagina_controle['classe_elemento']).classList.remove('se_slider'); imagem.removeAttribute('ll_src'); imagem.removeAttribute('ll_src_mobile'); } }); } } }); },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'); }; background_download.onerror = function(e){ elemento.removeAttribute('ll_src'); elemento.removeAttribute('ll_src_mobile'); elemento.classList.remove('ll_background'); elemento.classList.add('fallback_background'); }; }else{ elemento.removeAttribute('ll_src'); elemento.removeAttribute('ll_src_mobile'); elemento.classList.remove('ll_background'); elemento.classList.add('fallback_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"); console.log(elemento.getAttribute('ll_src')); 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; } } } if($('.'+pagina_controle['classe_elemento']+'.e_faq').length){ setTimeout(function(){ GAccordion.instalar(); },600); } !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,t;function n(){return e.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function o(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,s=[];for(n=0;n>>0,s=0;s0)for(n=0;n<_.length;n++)r(i=t[s=_[n]])||(e[s]=i);return e}var g=!1;function p(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===g&&(g=!0,n.updateOffset(this),g=!1)}function v(e){return e instanceof p||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function S(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},E={};function I(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(E[e]=i),t&&(E[t[0]]=function(){return U(i.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function A(e,t){return e.isValid()?(t=j(t,e.localeData()),V[t]=V[t]||function(e){var t,n,s,i=e.match(N);for(t=0,n=i.length;t=0&&G.test(e);)e=e.replace(G,s),G.lastIndex=0,n-=1;return e}var Z=/\d/,z=/\d\d/,$=/\d{3}/,q=/\d{4}/,J=/[+-]?\d{6}/,B=/\d\d?/,Q=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,K=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,se=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe={};function ue(e,t,n){oe[e]=x(t)?t:function(e,s){return e&&n?n:t}}function le(e,t){return l(oe,e)?oe[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function ce(e,t){var n,s=t;for("string"==typeof e&&(e=[e]),a(t)&&(s=function(e,n){n[t]=M(e)}),n=0;n68?1900:2e3)};var Ye,Oe=Te("FullYear",!0);function Te(e,t){return function(s){return null!=s?(be(this,e,s),n.updateOffset(this,t),this):xe(this,e)}}function xe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function be(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ke(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Pe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?ke(e)?29:28:31-s%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ve(e,t,n){var s=7+t-n;return-((7+Ge(e,0,s).getUTCDay()-t)%7)+s-1}function Ee(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ve(e,s,i);return o<=0?a=De(r=e-1)+o:o>De(e)?(r=e+1,a=o-De(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(De(e)-s+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),L("week",5),L("isoWeek",5),ue("w",B),ue("ww",B,z),ue("W",B),ue("WW",B,z),fe(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=M(e)});I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),ue("d",B),ue("e",B),ue("E",B),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:c(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,s){t[s]=M(e)});var je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var $e=ae;var qe=ae;var Je=ae;function Be(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),s=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=de(o[t]),u[t]=de(u[t]),l[t]=de(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Xe(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Qe),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+Qe.apply(this)+U(this.minutes(),2)}),I("hmmss",0,0,function(){return""+Qe.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),Xe("a",!0),Xe("A",!1),H("hour","h"),L("hour",13),ue("a",Ke),ue("A",Ke),ue("H",B),ue("h",B),ue("k",B),ue("HH",B,z),ue("hh",B,z),ue("kk",B,z),ue("hmm",Q),ue("hmmss",X),ue("Hmm",Q),ue("Hmmss",X),ce(["H","HH"],ge),ce(["k","kk"],function(e,t,n){var s=M(e);t[ge]=24===s?0:s}),ce(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce(["h","hh"],function(e,t,n){t[ge]=M(e),c(n).bigHour=!0}),ce("hmm",function(e,t,n){var s=e.length-2;t[ge]=M(e.substr(0,s)),t[pe]=M(e.substr(s)),c(n).bigHour=!0}),ce("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=M(e.substr(0,s)),t[pe]=M(e.substr(s,2)),t[ve]=M(e.substr(i)),c(n).bigHour=!0}),ce("Hmm",function(e,t,n){var s=e.length-2;t[ge]=M(e.substr(0,s)),t[pe]=M(e.substr(s))}),ce("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=M(e.substr(0,s)),t[pe]=M(e.substr(s,2)),t[ve]=M(e.substr(i))});var et,tt=Te("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:He,monthsShort:Re,week:{dow:0,doy:6},weekdays:je,weekdaysMin:ze,weekdaysShort:Ze,meridiemParse:/[ap]\.?m?\.?/i},st={},it={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function at(e){var t=null;if(!st[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=et._abbr,require("./locale/"+e),ot(t)}catch(e){}return st[e]}function ot(e,t){var n;return e&&((n=r(t)?lt(e):ut(e,t))?et=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function ut(e,t){if(null!==t){var n,s=nt;if(t.abbr=e,null!=st[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])s=st[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;s=n._config}return st[e]=new P(b(s,t)),it[e]&&it[e].forEach(function(e){ut(e.name,e.config)}),ot(e),st[e]}return delete st[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!s(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r0;){if(s=at(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&S(i,n,!0)>=t-1)break;t--}r++}return et}(e)}function dt(e){var t,n=e._a;return n&&-2===c(e).overflow&&(t=n[_e]<0||n[_e]>11?_e:n[ye]<1||n[ye]>Pe(n[me],n[_e])?ye:n[ge]<0||n[ge]>24||24===n[ge]&&(0!==n[pe]||0!==n[ve]||0!==n[we])?ge:n[pe]<0||n[pe]>59?pe:n[ve]<0||n[ve]>59?ve:n[we]<0||n[we]>999?we:-1,c(e)._overflowDayOfYear&&(tye)&&(t=ye),c(e)._overflowWeeks&&-1===t&&(t=Me),c(e)._overflowWeekday&&-1===t&&(t=Se),c(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function ct(e){var t,s,i,r,a,o=[];if(!e._d){var u,l;for(u=e,l=new Date(n.now()),i=u._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],e._w&&null==e._a[ye]&&null==e._a[_e]&&function(e){var t,n,s,i,r,a,o,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=ht(t.GG,e._a[me],Ie(Tt(),1,4).year),s=ht(t.W,1),((i=ht(t.E,1))<1||i>7)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ie(Tt(),r,a);n=ht(t.gg,e._a[me],l.year),s=ht(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r}s<1||s>Ae(n,r,a)?c(e)._overflowWeeks=!0:null!=u?c(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[me],i[me]),(e._dayOfYear>De(a)||0===e._dayOfYear)&&(c(e)._overflowDayOfYear=!0),s=Ge(a,0,e._dayOfYear),e._a[_e]=s.getUTCMonth(),e._a[ye]=s.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[pe]&&0===e._a[ve]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o=new Date(e,t,n,s,i,r,a);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(c(e).weekdayMismatch=!0)}}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,n,s,i,r,a,o=e._i,u=ft.exec(o)||mt.exec(o);if(u){for(c(e).iso=!0,t=0,n=yt.length;t0&&c(e).unusedInput.push(a),h=h.slice(h.indexOf(s)+s.length),m+=s.length),E[r]?(s?c(e).empty=!1:c(e).unusedTokens.push(r),o=r,d=e,null!=(u=s)&&l(he,o)&&he[o](u,d._a,d,o)):e._strict&&!s&&c(e).unusedTokens.push(r);c(e).charsLeftOver=f-m,h.length>0&&c(e).unusedInput.push(h),e._a[ge]<=12&&!0===c(e).bigHour&&e._a[ge]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[ge]=function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}(e._locale,e._a[ge],e._meridiem),ct(e),dt(e)}else Dt(e);else vt(e)}function Yt(e){var t,l,h,_,g=e._i,w=e._f;return e._locale=e._locale||lt(e._l),null===g||void 0===w&&""===g?m({nullInput:!0}):("string"==typeof g&&(e._i=g=e._locale.preparse(g)),v(g)?new p(dt(g)):(o(g)?e._d=g:s(w)?function(e){var t,n,s,i,r;if(0===e._f.length)return c(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:m()});function Pt(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],i=1;i(r=Ae(e,s,i))&&(t=r),function(e,t,n,s,i){var r=Ee(e,t,n,s,i),a=Ge(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,s,i))}I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),ue("G",se),ue("g",se),ue("GG",B,z),ue("gg",B,z),ue("GGGG",ee,q),ue("gggg",ee,q),ue("GGGGG",te,J),ue("ggggg",te,J),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=M(e)}),fe(["gg","GG"],function(e,t,s,i){t[i]=n.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),H("quarter","Q"),L("quarter",7),ue("Q",Z),ce("Q",function(e,t){t[_e]=3*(M(e)-1)}),I("D",["DD",2],"Do","date"),H("date","D"),L("date",9),ue("D",B),ue("DD",B,z),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ce(["D","DD"],ye),ce("Do",function(e,t){t[ye]=M(e.match(B)[0])});var nn=Te("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),L("dayOfYear",4),ue("DDD",K),ue("DDDD",$),ce(["DDD","DDDD"],function(e,t,n){n._dayOfYear=M(e)}),I("m",["mm",2],0,"minute"),H("minute","m"),L("minute",14),ue("m",B),ue("mm",B,z),ce(["m","mm"],pe);var sn=Te("Minutes",!1);I("s",["ss",2],0,"second"),H("second","s"),L("second",15),ue("s",B),ue("ss",B,z),ce(["s","ss"],ve);var rn,an=Te("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),H("millisecond","ms"),L("millisecond",16),ue("S",K,Z),ue("SS",K,z),ue("SSS",K,$),rn="SSSS";rn.length<=9;rn+="S")ue(rn,ne);function on(e,t){t[we]=M(1e3*("0."+e))}for(rn="S";rn.length<=9;rn+="S")ce(rn,on);var un=Te("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ln=p.prototype;function dn(e){return e}ln.add=qt,ln.calendar=function(e,t){var s=e||Tt(),i=Nt(s,this).startOf("day"),r=n.calendarFormat(this,i)||"sameElse",a=t&&(x(t[r])?t[r].call(this,s):t[r]);return this.format(a||this.localeData().calendar(r,this,Tt(s)))},ln.clone=function(){return new p(this)},ln.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Nt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=R(t)){case"year":r=Bt(this,s)/12;break;case"month":r=Bt(this,s);break;case"quarter":r=Bt(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:w(r)},ln.endOf=function(e){return void 0===(e=R(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},ln.format=function(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=A(this,e);return this.localeData().postformat(t)},ln.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||Tt(e).isValid())?At({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.fromNow=function(e){return this.from(Tt(),e)},ln.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||Tt(e).isValid())?At({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.toNow=function(e){return this.to(Tt(),e)},ln.get=function(e){return x(this[e=R(e)])?this[e]():this},ln.invalidAt=function(){return c(this).overflow},ln.isAfter=function(e,t){var n=v(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(r(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?A(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(n,"Z")):A(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid()";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+s+"-MM-DD[T]HH:mm:ss.SSS"+i)},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=Oe,ln.isLeapYear=function(){return ke(this.year())},ln.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ln.month=Fe,ln.daysInMonth=function(){return Pe(this.year(),this.month())},ln.week=ln.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ln.isoWeek=ln.isoWeeks=function(e){var t=Ie(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ln.weeksInYear=function(){var e=this.localeData()._week;return Ae(this.year(),e.dow,e.doy)},ln.isoWeeksInYear=function(){return Ae(this.year(),1,4)},ln.date=nn,ln.day=ln.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-s,"d")):s},ln.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ln.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=(n=e,s=this.localeData(),"string"==typeof n?s.weekdaysParse(n)%7||7:isNaN(n)?null:n);return this.day(this.day()%7?t:t-7)}return this.day()||7;var n,s},ln.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ln.hour=ln.hours=tt,ln.minute=ln.minutes=sn,ln.second=ln.seconds=an,ln.millisecond=ln.milliseconds=un,ln.utcOffset=function(e,t,s){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ut(re,e)))return this}else Math.abs(e)<16&&!s&&(e*=60);return!this._isUTC&&t&&(i=Gt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?$t(this,At(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Gt(this)},ln.utc=function(e){return this.utcOffset(0,e)},ln.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gt(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=Vt,ln.isUTC=Vt,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=k("dates accessor is deprecated. Use date instead.",nn),ln.months=k("months accessor is deprecated. Use month instead",Fe),ln.years=k("years accessor is deprecated. Use year instead",Oe),ln.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),ln.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Yt(e))._a){var t=e._isUTC?h(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=P.prototype;function cn(e,t,n,s){var i=lt(),r=h().set(s,t);return i[n](r,e)}function fn(e,t,n){if(a(e)&&(t=e,e=void 0),e=e||"",null!=t)return cn(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=cn(e,s,n,"month");return i}function mn(e,t,n,s){"boolean"==typeof e?(a(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,a(t)&&(n=t,t=void 0),t=t||"");var i,r=lt(),o=e?r._week.dow:0;if(null!=n)return cn(t,(n+o)%7,s,"day");var u=[];for(i=0;i<7;i++)u[i]=cn(t,(i+o)%7,s,"day");return u}hn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return x(s)?s.call(t,n):s},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=dn,hn.postformat=dn,hn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return x(i)?i(e,t,n,s):i.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)x(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||We).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[We.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=h([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=h([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},hn.monthsRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return Ie(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?s(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:s(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=h([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=h([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===M(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=k("moment.lang is deprecated. Use moment.locale instead.",ot),n.langData=k("moment.langData is deprecated. Use moment.localeData instead.",lt);var _n=Math.abs;function yn(e,t,n,s){var i=At(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function pn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}var Mn=wn("ms"),Sn=wn("s"),Dn=wn("m"),kn=wn("h"),Yn=wn("d"),On=wn("w"),Tn=wn("M"),xn=wn("y");function bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pn=bn("milliseconds"),Wn=bn("seconds"),Hn=bn("minutes"),Rn=bn("hours"),Cn=bn("days"),Fn=bn("months"),Ln=bn("years");var Un=Math.round,Nn={ss:44,s:45,m:45,h:22,d:26,M:11};var Gn=Math.abs;function Vn(e){return(e>0)-(e<0)||+e}function En(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Gn(this._milliseconds)/1e3,s=Gn(this._days),i=Gn(this._months);t=w((e=w(n/60))/60),n%=60,e%=60;var r=w(i/12),a=i%=12,o=s,u=t,l=e,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var c=h<0?"-":"",f=Vn(this._months)!==Vn(h)?"-":"",m=Vn(this._days)!==Vn(h)?"-":"",_=Vn(this._milliseconds)!==Vn(h)?"-":"";return c+"P"+(r?f+r+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||l||d?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(d?_+d+"S":"")}var In=Ht.prototype;return In.isValid=function(){return this._isValid},In.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},In.add=function(e,t){return yn(this,e,t,1)},In.subtract=function(e,t){return yn(this,e,t,-1)},In.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=R(e))||"year"===e)return t=this._days+s/864e5,n=this._months+pn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},In.asMilliseconds=Mn,In.asSeconds=Sn,In.asMinutes=Dn,In.asHours=kn,In.asDays=Yn,In.asWeeks=On,In.asMonths=Tn,In.asYears=xn,In.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*M(this._months/12):NaN},In._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*gn(vn(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=w(r/1e3),u.seconds=e%60,t=w(e/60),u.minutes=t%60,n=w(t/60),u.hours=n%24,o+=i=w(pn(a+=w(n/24))),a-=gn(vn(i)),s=w(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},In.clone=function(){return At(this)},In.get=function(e){return e=R(e),this.isValid()?this[e+"s"]():NaN},In.milliseconds=Pn,In.seconds=Wn,In.minutes=Hn,In.hours=Rn,In.days=Cn,In.weeks=function(){return w(this.days()/7)},In.months=Fn,In.years=Ln,In.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,s,i,r,a,o,u,l,d,h,c=this.localeData(),f=(n=!e,s=c,i=At(t=this).abs(),r=Un(i.as("s")),a=Un(i.as("m")),o=Un(i.as("h")),u=Un(i.as("d")),l=Un(i.as("M")),d=Un(i.as("y")),(h=r<=Nn.ss&&["s",r]||r0,h[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,h));return e&&(f=c.pastFuture(+this,f)),c.postformat(f)},In.toISOString=En,In.toString=En,In.toJSON=En,In.locale=Qt,In.localeData=Kt,In.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),In.lang=Xt,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ue("x",se),ue("X",/[+-]?\d+(\.\d{1,3})?/),ce("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ce("x",function(e,t,n){n._d=new Date(M(e))}),n.version="2.22.2",e=Tt,n.fn=ln,n.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},n.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=h,n.unix=function(e){return Tt(1e3*e)},n.months=function(e,t){return fn(e,t,"months")},n.isDate=o,n.locale=ot,n.invalid=m,n.duration=At,n.isMoment=v,n.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},n.parseZone=function(){return Tt.apply(null,arguments).parseZone()},n.localeData=lt,n.isDuration=Rt,n.monthsShort=function(e,t){return fn(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},n.defineLocale=ut,n.updateLocale=function(e,t){if(null!=t){var n,s,i=nt;null!=(s=at(e))&&(i=s._config),(n=new P(t=b(i,t))).parentLocale=st[e],st[e]=n,ot(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},n.locales=function(){return Y(st)},n.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},n.normalizeUnits=R,n.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==Nn[e]&&(void 0===t?Nn[e]:(Nn[e]=t,"s"===e&&(Nn.ss=t-1),!0))},n.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},n.prototype=ln,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},n}); function CountDown(elemento){ if(pagina_controle['elementos_timer'].hasOwnProperty($(elemento).closest('.'+pagina_controle['classe_bloco']).attr('id')+'_'+$(elemento).attr('id'))){clearInterval(pagina_controle['elementos_timer'][$(elemento).closest('.'+pagina_controle['classe_bloco']).attr('id')+'_'+$(elemento).attr('id')]);} var data_atual = moment().utc(), duracao, dias, horas, minutos, contar = true; if(elemento.find('.'+pagina_controle['classe_elemento_interno']).attr('gpc-tipo') == 'data_acesso'){ var horas_usar = $(elemento).find('.'+pagina_controle['classe_elemento_interno']).attr('gpc_hora').split(':'); var seg_ate = (elemento.find('.'+pagina_controle['classe_elemento_interno']).attr('gpc-dias') != undefined && elemento.find('.'+pagina_controle['classe_elemento_interno']).attr('gpc-dias') != '' ? parseInt(elemento.find('.'+pagina_controle['classe_elemento_interno']).attr('gpc-dias'))*86400 :0)+(parseInt(horas_usar[0])*3600)+parseInt(horas_usar[1]*60)+0; if(document.cookie.indexOf('gpages_timer_'+$(elemento).attr('id')) != -1){ var strNomeIgual = "gpages_timer_"+$(elemento).attr('id')+"=", cookie_string, tempo, data = new Date(); 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){data = new Date(cookie_string.substring(strNomeIgual.length, cookie_string.length));} } var data_ate_moment = moment(data.toGMTString()).utc().add(seg_ate,'s'); }else{ var data = (new Date), data_limite = (new Date); var data_ate_moment = moment().utc().add(seg_ate,'s'); data_limite.setTime(data_limite.getTime() + (180 * 24 * 60 * 60 * 1000)); document.cookie = "gpages_timer_"+$(elemento).attr('id')+"="+data.getFullYear()+'-'+FormatarDigitos((data.getMonth()+1),2)+'-'+FormatarDigitos(data.getDate(),2)+'T'+FormatarDigitos(data.getHours(),2)+':'+FormatarDigitos(data.getMinutes(),2)+':'+FormatarDigitos(data.getSeconds(),2)+";Expires="+data_limite.toGMTString()+";Path=/;Domain="+window.location.host+";"; } }else{ var datahora_atual = moment().format(); var timezone_atual = Number.parseFloat(datahora_atual.substr(datahora_atual.length-6,3)); var timezone = Number.parseFloat($(elemento).find('.'+pagina_controle['classe_elemento_interno']).attr('gpc_timezone')); var data_ate = $(elemento).find('.'+pagina_controle['classe_elemento_interno']).attr('gpc_data')+'T'+$(elemento).find('.'+pagina_controle['classe_elemento_interno']).attr('gpc_hora')+':00'; var data_ate_moment = moment(data_ate).utc(); if(timezone_atual != timezone){ timezone -= timezone_atual; data_ate_moment = moment(data_ate).utc().add(timezone,'h'); } } if(data_atual >= data_ate_moment){ contar = false; $(elemento).find('.contador_dias').find('span').html('00'); $(elemento).find('.contador_horas').find('span').html('00'); $(elemento).find('.contador_minutos').find('span').html('00'); $(elemento).find('.contador_segundos').find('span').html('00'); FinalContador(elemento); }else{ duracao = moment.duration(data_ate_moment.diff(data_atual)); dias = Math.max(Math.floor(duracao.asDays()), 0); horas = Math.max(duracao.get('hours'), 0); minutos = Math.max(duracao.get('minutes'), 0); segundos = Math.max(duracao.get('seconds'), 0); $(elemento).find('.contador_dias').find('span').html(FormatarDigitos(dias,2)); $(elemento).find('.contador_horas').find('span').html(FormatarDigitos(horas,2)); $(elemento).find('.contador_minutos').find('span').html(FormatarDigitos(minutos,2)); $(elemento).find('.contador_segundos').find('span').html(FormatarDigitos(segundos,2)); } if(contar){ pagina_controle['elementos_timer'][$(elemento).closest('.'+pagina_controle['classe_bloco']).attr('id')+'_'+$(elemento).attr('id')] = setInterval(function(){ data_atual = moment(); duracao = moment.duration(data_ate_moment.diff(data_atual)); dias = Math.max(Math.floor(duracao.asDays()), 0); horas = Math.max(duracao.get('hours'), 0); minutos = Math.max(duracao.get('minutes'), 0); segundos = Math.max(duracao.get('seconds'), 0); if(data_atual >= data_ate_moment){ $(elemento).find('.contador_dias').find('span').html('00'); $(elemento).find('.contador_horas').find('span').html('00'); $(elemento).find('.contador_minutos').find('span').html('00'); $(elemento).find('.contador_segundos').find('span').html('00'); clearInterval(pagina_controle['elementos_timer'][$(elemento).closest('.'+pagina_controle['classe_bloco']).attr('id')+'_'+$(elemento).attr('id')]); FinalContador(elemento); }else{ dias = FormatarDigitos(dias,2); horas = FormatarDigitos(horas,2); minutos = FormatarDigitos(minutos,2); if(dias != $(elemento).find('.contador_dias').find('span').html()){$(elemento).find('.contador_dias').find('span').html(dias);} if(horas != $(elemento).find('.contador_horas').find('span').html()){$(elemento).find('.contador_horas').find('span').html(horas);} if(minutos != $(elemento).find('.contador_minutos').find('span').html()){$(elemento).find('.contador_minutos').find('span').html(minutos);} $(elemento).find('.contador_segundos').find('span').html(FormatarDigitos(segundos,2)); } }, 1000); } function FinalContador(elemento){ if($(elemento).length){ let classe_usar = ($(elemento).find('.'+pagina_controle['classe_elemento_interno']).length ? pagina_controle['classe_elemento_interno'] :pagina_controle['classe_elemento_interno_antigo']); if($(elemento).find('.'+classe_usar).attr('gpc-acao') == 'esconder'){$(elemento).addClass('esconder_desktop esconder_mobile');} else if($(elemento).find('.'+classe_usar).attr('gpc-acao') == 'reiniciar'){ var data = (new Date), data_limite = (new Date); var data_ate_moment = moment().utc().add(seg_ate,'s'); data_limite.setTime(data_limite.getTime() + (180 * 24 * 60 * 60 * 1000)); document.cookie = "gpages_timer_"+$(elemento).attr('id')+"="+data.getFullYear()+'-'+FormatarDigitos((data.getMonth()+1),2)+'-'+FormatarDigitos(data.getDate(),2)+'T'+FormatarDigitos(data.getHours(),2)+':'+FormatarDigitos(data.getMinutes(),2)+':'+FormatarDigitos(data.getSeconds(),2)+";Expires="+data_limite.toGMTString()+";Path=/;Domain="+window.location.host+";"; CountDown(elemento); }else if($(elemento).find('.'+classe_usar).attr('gpc-acao') == 'redirecionar'){ if($(elemento).find('.'+classe_usar).attr('gpc-link') != undefined && $(elemento).find('.'+classe_usar).attr('gpc-link') != ''){ var tab = window.open($(elemento).find('.'+classe_usar).attr('gpc-link'),'_self'); tab = null; } } } } function FormatarDigitos( valor, digitos ){ if ( valor.toString().length < digitos ){return ( new Array( digitos - valor.toString().length + 1 ).join( '0' ) ) + valor;} else{return valor;} } } $(function(){ setTimeout(function(){ if($('.'+pagina_controle['classe_elemento']+'.e_timer').length){$('.'+pagina_controle['classe_elemento']+'.e_timer').each(function(i, elemento){CountDown($(elemento));});} if($('.'+pagina_controle['classe_elemento_antigo']+'.elemento_timer').length){$('.'+pagina_controle['classe_elemento_antigo']+'.elemento_timer').each(function(i, elemento){CountDown($(elemento));});} $('body').removeClass('preload'); },50); }); let phoneMaskGreat ={}; function bindEvents(){ var caixa = $('gmf').last().attr('id'); if(caixa != undefined){caixa = '#'+caixa+' ';}else{caixa = '';} let telefone = $(caixa+".gpc_campo.telefone"); let telefone_ddi = $(caixa+".gpc_campo.telefone_ddi"); let total = telefone.length+telefone_ddi.length; if(telefone.length > 0){ for (let i = 0;i < telefone.length;i++){ const tel = telefone[i]; 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, autoPlaceholder:"off", 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 zIndex = $(tel).closest('.gpc_campos').find('.iti__country-container').css('z-index'); $(tel).closest('.gpc_campos').css('z-index',(parseInt(zIndex)+total)); $(tel).closest('.gpc_campos').find('.gpc_campos-campo').css('z-index',(parseInt(zIndex)+total)); $(tel).closest('.gpc_campos').find('.iti__country-container').css('z-index',(parseInt(zIndex)+total)); } total--; } } if(telefone_ddi.length > 0){ for (let i = 0;i < telefone_ddi.length;i++){ const tel = telefone_ddi[i]; 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}`, ""); } console.log($(this).closest('.gpc_campos').find('.iti__country-container').width()); tel.style.paddingLeft = $(this).closest('.gpc_campos').find('.iti__country-container').width()+8+'px'; ValidacaoCampos($(caixa+'#'+$(this).attr('id'))); }); let zIndex = $(tel).closest('.gpc_campos').find('.iti__country-container').css('z-index'); $(tel).closest('.gpc_campos').css('z-index',(parseInt(zIndex)+total)); $(tel).closest('.gpc_campos').find('.gpc_campos-campo').css('z-index',(parseInt(zIndex)+total)); $(tel).closest('.gpc_campos').find('.iti__country-container').css('z-index',(parseInt(zIndex)+total)); } total--; } } 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(){ if($('#gpc_modal_'+gm_quantidade+' .'+pagina_controle['classe_elemento']+'.e_timer').length){ $('#gpc_modal_'+gm_quantidade+' .'+pagina_controle['classe_elemento']+'.e_timer').each(function(i, elemento){CountDown($(elemento));}); } if($('#gpc_modal_'+gm_quantidade+' .'+pagina_controle['classe_elemento']+'.e_slider').length){ GSlideImage.iniciar(); } if($('#gpc_modal_'+gm_quantidade+' .'+pagina_controle['classe_elemento']+'.e_faq').length){ GAccordion.instalar(); } 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){ }); }); 'use strict'; var gac_timeout ={}, gac_timeout_resize; var GAccordion = function (){ return{ instalar:function (id){ let instancias; if (id != undefined){instancias = document.querySelectorAll('#' + id + ' .gac');} else{instancias = document.querySelectorAll('.gac');} if (instancias){ for (var i = 0;i < instancias.length;i++){ id = instancias[i].closest('.gpc-e, .gpc-blocos_bloco_elemento').getAttribute('id'); let ja_iniciado = false, abrir_primeiro = false; if (instancias[i].getAttribute('gac-abrir_primeiro') == 'true'){abrir_primeiro = true;} let itens = instancias[i].querySelectorAll('.gac-item_cabecalho'); if (instancias[i].parentElement.classList.contains('gpc-e')){ ja_iniciado = instancias[i].classList.contains('gac-ativo'); instancias[i].classList.add('gac-ativo'); } if (itens){ if (!ja_iniciado){ for (var x = 0;x < itens.length;x++){ let atual = itens[x]; if (document.getElementById(id).classList.contains('gpc-e')){itens[x].addEventListener('click', function (){GAccordion.abrir(atual.closest('.gpc-e').getAttribute('id'), atual);}, false);} else{ atual.closest('.gac-item').classList.remove('gac-aberto'); let conteudo = atual.closest('.gac-item').querySelector('.gac-item_conteudo'); conteudo.style.height = ''; if (atual.closest('.gpc-blocos_bloco_elemento')){ atual.style.color = atual.closest('.gac').getAttribute('data-color'); atual.style.backgroundColor = atual.closest('.gac').getAttribute('data-background-color'); } } } } if (instancias[i].closest('.gpc-e')){ let visivel = getComputedStyle(instancias[i].closest('.gpc-e')); if (abrir_primeiro && visivel.visibility === 'visible' && visivel.display === 'block'){ GAccordion.abrir(itens[0].closest('.gpc-e').getAttribute('id'), itens[0], true); } } } } } }, abrir:function (id, item, primeiro){ if (primeiro == undefined){primeiro = false;} let instancia = document.querySelector("#" + id); if (instancia){ if (item.closest('.gac-item').classList.contains('gac-aberto') && !primeiro){GAccordion.fechar(id, item);} else{ let versao = 'desktop'; if (window.innerWidth < 800){versao = 'mobile';} let item_ativo_altura = instancia.querySelector('.gac-aberto'); if(item_ativo_altura){item_ativo_altura = item_ativo_altura.querySelector('.gac-item_conteudo').offsetHeight;} else{item_ativo_altura = 0;} let abertos = document.querySelectorAll('.gac-aberto'); if (abertos && !primeiro){ for (var i = 0;i < abertos.length;i++){ if (abertos[i].closest('.gpc-e')){ if (abertos[i].closest('.gpc-b')){ if (abertos[i].closest('.gpc-b').getAttribute('id') == abertos[i].closest('.gpc-b').getAttribute('id')){GAccordion.fechar(abertos[i].closest('.gpc-e').getAttribute('id'), abertos[i],true);} }else if (abertos[i].closest('.gpc_modal')){ GAccordion.fechar(abertos[i].closest('.gpc-e').getAttribute('id'), abertos[i]) } } } } item.closest('.gac-item').classList.add('gac-aberto'); let conteudo = item.closest('.gac-item').querySelector('.gac-item_conteudo'); let tamanho_conteudo = conteudo.scrollHeight; conteudo.style.height = tamanho_conteudo + 'px'; if (instancia.closest('.gpc-blocos_bloco_elemento')){ let itens = instancia.querySelectorAll('.gac-item_cabecalho'); for (var x = 1;x < itens.length;x++){ itens[x].closest('.gac-item').classList.remove('gac-aberto'); itens[x].closest('.gac-item').querySelector('.gac-item_cabecalho').style.color = itens[0].closest('.conteudo').getAttribute('data-color'); itens[x].closest('.gac-item').querySelector('.gac-item_cabecalho').style.backgroundColor = itens[0].closest('.conteudo').getAttribute('data-background-color'); itens[x].closest('.gac-item').querySelector('.gac-item_conteudo').style.height = ''; } itens[0].closest('.gac-item').querySelector('.gac-item_cabecalho').style.color = itens[0].closest('.conteudo').getAttribute('data-color-hover'); itens[0].closest('.gac-item').querySelector('.gac-item_cabecalho').style.backgroundColor = itens[0].closest('.conteudo').getAttribute('data-background-color-hover'); itens[0].closest('.gac-item').querySelector('.gac-item_conteudo').style.color = itens[0].closest('.conteudo').getAttribute('data-color-texto'); itens[0].closest('.gac-item').querySelector('.gac-item_conteudo').style.backgroundColor = itens[0].closest('.conteudo').getAttribute('data-background-color-hover'); } if ((instancia.closest('.gpc-b') || instancia.closest('.gpc_modal')) && !document.querySelectorAll('#admin_centro').length){ let elemento = instancia.closest('.gpc-e'); let rotacao = GAccordion.rotacao(getComputedStyle(elemento)['transform']); let dif = GAccordion.calcularAjuste(rotacao, tamanho_conteudo); elemento.style.transform = `translate(${dif.deltaX}px, ${dif.deltaY}px) rotate(${rotacao}deg)`; if(rotacao != 0){conteudo.style.transition = 'none';} else{conteudo.style.transition = '';} tamanho_conteudo = tamanho_conteudo + dif.deltaY; if (rotacao == 90 || rotacao == 270){tamanho_conteudo = 0;} let id_bloco = (instancia.closest('.gpc-b') ? instancia.closest('.gpc-b').getAttribute('id') :instancia.closest('.gpc_modal').getAttribute('gpc_id_elemento')); let elementos = instancia.closest('.centralizar, .gpc_modal').querySelectorAll('.gpc-e'); if (elementos){ let total_elementos = elementos.length; for (var i = 0;i < total_elementos;i++){ if (elementos[i].getAttribute('id') != item.closest('.gpc-e').getAttribute('id')){ elementos[i].classList.add('gac-movendo'); if (parseFloat(elementos_posicao[elementos[i].getAttribute('id')][versao]) >= (item.closest('.gpc-e').offsetTop + item.closest('.gpc-e').offsetHeight - item_ativo_altura) && elementos[i].getAttribute('id') != item.closest('.gpc-e').getAttribute('id') && elementos[i].offsetParent){elementos[i].style.top = (elementos_posicao[elementos[i].getAttribute('id')][versao] + tamanho_conteudo) + 'px';} else if (elementos[i].offsetParent == null){elementos[i].style.top = '';} } } } instancia.closest('.gpc-b, .gpc_modal').classList.add('gac-movendo'); instancia.closest('.gpc-b, .gpc_modal').style.setProperty('height', (blocos_posicao[id_bloco][versao] + tamanho_conteudo) + 'px', 'important'); if (instancia.closest('.gpc_modal')){PosicionarGM(instancia.closest('.gpc_modal').getAttribute('id'), false);} }else{ let elemento = instancia.closest('.gpc-blocos_bloco_elemento'); let rotacao = GAccordion.rotacao(getComputedStyle(elemento)['transform']); let dif = GAccordion.calcularAjuste(rotacao, tamanho_conteudo); tamanho_conteudo = tamanho_conteudo + dif.deltaY; if(rotacao != 0){conteudo.style.transition = 'none';} else{conteudo.style.transition = '';} elemento.style.transform = `translate(${dif.deltaX}px, ${dif.deltaY}px) rotate(${rotacao}deg)`; let elementos, bloco; if (instancia.closest('.gpc_modal')){ elementos = instancia.closest('.gpc_modal').querySelectorAll('.gpc-blocos_bloco_elemento'); bloco = instancia.closest('.gpc_modal'); }else{ elementos = instancia.closest('.gpc-blocos_bloco_interno').querySelectorAll('.gpc-blocos_bloco_elemento'); bloco = instancia.closest('.gpc-blocos_bloco_interno'); } if (elementos){ let total_elementos = elementos.length; for (var i = 0;i < total_elementos;i++){ if (elementos[i].getAttribute('id') != item.closest('.gpc-blocos_bloco_elemento').getAttribute('id')){ elementos[i].classList.add('gac-movendo'); if ( parseFloat(elementos[i].offsetTop) >= (item.closest('.gpc-blocos_bloco_elemento').offsetTop + item.closest('.gpc-blocos_bloco_elemento').offsetHeight) && elementos[i].getAttribute('id') != item.closest('.gpc-blocos_bloco_elemento').getAttribute('id') && elementos[i].offsetParent ){elementos[i].style.top = (parseFloat(elementos[i].style.top) + tamanho_conteudo) + 'px';} } } } bloco.classList.add('gac-movendo'); bloco.style.setProperty('height', (parseFloat(bloco.style.height) + tamanho_conteudo) + 'px'); if (instancia.closest('.gpc_modal')){PosicionarGM(instancia.closest('.gpc_modal').getAttribute('id'), false);} for (let i = 0;i < 8;i++){setTimeout(function (){gpc_controle['elementos_iniciados']['elemento'].updateRect();}, 40 * i);} } } } }, fechar:function (id, item, abrir_outro){ let instancia = document.querySelector("#" + id); if (abrir_outro == undefined){abrir_outro = false;} if (instancia){ if (gac_timeout.hasOwnProperty(id)){ clearTimeout(gac_timeout[id]); delete gac_timeout[id]; } if (instancia.closest('.gpc-blocos_bloco_elemento')){ let itens = item.closest('.gac').querySelectorAll('.gac-item_cabecalho'); for (var x = 0;x < itens.length;x++){ itens[x].closest('.gac-item').classList.remove('gac-aberto'); itens[x].closest('.gac-item').querySelector('.gac-item_cabecalho').style.color = item.closest('.gac').getAttribute('data-color'); itens[x].closest('.gac-item').querySelector('.gac-item_cabecalho').style.backgroundColor = item.closest('.gac').getAttribute('data-background-color'); itens[x].closest('.gac-item').querySelector('.gac-item_conteudo').style.height = ''; } } let versao = 'desktop'; if (window.innerWidth < 800){versao = 'mobile';} item.closest('.gac-item').classList.remove('gac-aberto'); let conteudo = item.closest('.gac-item').querySelector('.gac-item_conteudo'); conteudo.style.height = ''; if ((instancia.closest('.gpc-b') || instancia.closest('.gpc_modal')) && !document.querySelectorAll('#admin_centro').length){ let elemento = instancia.closest('.gpc-e'); let rotacao = GAccordion.rotacao(getComputedStyle(elemento)['transform']); let elementos = instancia.closest('.centralizar, .gpc_modal').querySelectorAll('.gpc-e'); if (elementos){ let total_elementos = elementos.length; for (var i = 0;i < total_elementos;i++){ elementos[i].classList.add('gac-movendo'); if (elementos[i].getAttribute('id') != item.closest('.gpc-e').getAttribute('id')){ if ( parseFloat(elementos[i].offsetTop) != elementos_posicao[elementos[i].getAttribute('id')][versao] && elementos[i].getAttribute('id') != id && elementos[i].offsetParent ){elementos[i].style.top = '';} } elementos[i].classList.remove('gac-movendo'); } } elemento.style.transform = `translate(0px, 0px) rotate(${rotacao}deg)`; instancia.closest('.gpc-b, .gpc_modal').style.height = ''; if (instancia.closest('.gpc_modal')){PosicionarGM(instancia.closest('.gpc_modal').getAttribute('id'), false);} }else{ let elemento = instancia.closest('.gpc-blocos_bloco_elemento'); let rotacao = GAccordion.rotacao(getComputedStyle(elemento)['transform']); elemento.style.transform = `translate(0px, 0px) rotate(${rotacao}deg)`; versao = ''; if (document.getElementById('gpc-blocos').classList.contains('mobile')){versao = '_mobile';} let elementos, bloco; if (instancia.closest('.gpc_modal')){ elementos = instancia.closest('.gpc_modal').querySelectorAll('.gpc-blocos_bloco_elemento'); bloco = instancia.closest('.gpc_modal'); }else{ elementos = instancia.closest('.gpc-blocos_bloco_interno').querySelectorAll('.gpc-blocos_bloco_elemento'); bloco = instancia.closest('.gpc-blocos_bloco_interno'); } if (elementos){ let total_elementos = elementos.length; for (var i = 0;i < total_elementos;i++){ if ( parseFloat(elementos[i].style.top) >= (parseFloat(instancia.style.top) + parseFloat(getComputedStyle(instancia)['height'])) && elementos[i].getAttribute('id') != id && elementos[i].offsetParent ){elementos[i].setAttribute('style', elementos_pagina[elementos[i].getAttribute('gpc_id_elemento')]['estilos' + versao]);} } } bloco.setAttribute('style', blocos_pagina[bloco.getAttribute('gpc_id_bloco')]['estilos' + versao]); if (instancia.closest('.gpc_modal')){PosicionarGM(instancia.closest('.gpc_modal').getAttribute('id'), false);} for (let i = 0;i < 8;i++){setTimeout(function (){gpc_controle['elementos_iniciados']['elemento'].updateRect();}, 40 * i);} } let elementos = document.querySelectorAll('.gac-movendo'); if (elementos){for (var i = 0;i < elementos.length;i++){elementos[i].classList.remove('gac-movendo');}} } }, resize:function (id){ if (document.querySelectorAll('#admin_centro').length){return false;} let instancias; if (id != undefined){instancias = document.querySelectorAll('#' + id + ' .gac');} else{instancias = document.querySelectorAll('.gac');} if (instancias){ let versao = 'desktop'; if (window.innerWidth < 800){versao = 'mobile';} for (var i = 0;i < instancias.length;i++){ id = instancias[i].closest('.gpc-e').getAttribute('id'); let itens = instancias[i].querySelectorAll('.gac-aberto'); let tamanho_conteudo = 0; if (itens){ for (var x = 0;x < itens.length;x++){ let atual = itens[x]; let conteudo = atual.closest('.gac-item').querySelector('.gac-item_conteudo'); conteudo.style.height = 'auto'; tamanho_conteudo = conteudo.scrollHeight; if (atual.closest('.gpc-b') || atual.closest('.gpc_modal')){ let id_bloco = (atual.closest('.gpc-b') ? atual.closest('.gpc-b').getAttribute('id') :atual.closest('.gpc_modal').getAttribute('gpc_id_elemento')); let elementos = atual.closest('.centralizar, .gpc_modal').querySelectorAll('.gpc-e'); if (elementos){ let total_elementos = elementos.length; for (var y = 0;y < total_elementos;y++){ elementos[y].classList.add('gac-movendo'); if ((parseFloat(elementos[y].offsetTop) >= (atual.closest('.gpc-e').offsetTop + atual.closest('.gpc-e').offsetHeight - tamanho_conteudo) || elementos[y].offsetParent == null) && elementos[y].getAttribute('id') != atual.closest('.gpc-e').getAttribute('id')){elementos[y].style.top = (elementos_posicao[elementos[y].getAttribute('id')][versao] + tamanho_conteudo) + 'px';} } } atual.closest('.gpc-b, .gpc_modal').classList.add('gac-movendo'); atual.closest('.gpc-b, .gpc_modal').style.setProperty('height', (blocos_posicao[id_bloco][versao] + tamanho_conteudo) + 'px', 'important'); if (atual.closest('.gpc_modal')){PosicionarGM(atual.closest('.gpc_modal').getAttribute('id'), false);} } } } } } }, rotacao:function (transform){ const resultados = transform.match(/matrix\(([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^)]+)\)/); if (!resultados) return 0; const a = parseFloat(resultados[1]); const b = parseFloat(resultados[2]); let graus = Math.atan2(b, a) * (180 / Math.PI); graus = graus % 360; if (graus < 0){graus += 360;} return parseFloat(graus.toFixed(2)); }, calcularAjuste:function (angulo, tamanhoConteudo){ // Convertendo o ângulo de rotação para radianos let radianos = angulo * Math.PI / 180; // Calculando os ajustes baseado na expansão do conteúdo e no ângulo de rotação let ajusteX = (Math.sin(radianos) * tamanhoConteudo / 2) * -1; let ajusteY = ((1 - Math.cos(radianos)) * tamanhoConteudo / 2) * -1; // Retornando os ajustes return{deltaX:ajusteX, deltaY:ajusteY}; } } }(); window.addEventListener('load', function (){GAccordion.instalar();}, false); window.addEventListener('resize', function (){ const elementos = document.querySelectorAll('.gac-movendo'); if (elementos){for (var i = 0;i < elementos.length;i++){elementos[i].classList.remove('gac-movendo');}} if (gac_timeout_resize){clearTimeout(gac_timeout_resize);} const largura = window.innerWidth; gac_timeout_resize = setTimeout(function (){if (largura == window.innerWidth){GAccordion.resize();}}, 50); }, 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 drawer = document.querySelector('#gpc-menu'); let zindex = ''; if(drawer != null){zindex = 9999999999999+1;} 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();} } } }; }();'use strict'; var gsi_instancias ={}; var gsi_intervalo ={}; var timeout_resize_slider; var GSlideImage = function(){ return{ iniciar:function(id){ let instancias; if(id != undefined){instancias = document.querySelectorAll('#'+id+' .gsi');} else{instancias = document.querySelectorAll('.gsi');} if(instancias){ for (let i = 0;i < instancias.length;i++){ if(!instancias[i].querySelectorAll('.imagem').length){continue;} let slider, id_slider; slider = instancias[i].closest('.c, .conteudo'); id_slider = 'gsi_'+slider.parentElement.getAttribute('id'); if(gsi_intervalo.hasOwnProperty(id_slider)){ GSlideImage.destruir(id_slider); GSlideImage.iniciar(slider.parentElement.getAttribute('id')); continue; } instancias[i].setAttribute('id',id_slider); gsi_instancias[id_slider] ={ 'efeito' :'slide', 'imagens' :[], 'imagens_ordem' :[], 'imagens_view' :parseInt(slider.getAttribute('gpc-slide_view')), 'imagens_margin' :parseInt(slider.getAttribute('gpc-slide_view_espaco')), 'autoplay' :(slider.getAttribute('gpc-slide_auto') == 'true' || slider.getAttribute('gpc-slide_auto') == true ? true :false), 'transforms' :{}, 'total':(instancias[i].querySelectorAll('.imagem') ? instancias[i].querySelectorAll('.imagem').length :0), 'slide':0, 'tamanho':0, 'touch_ativo':false, 'touch_posicao_inicio':0, 'touch_posicao_movendo':0, 'touch_limite':0, 'touch_slide':0, 'touch_mover':false, }; GSlideImage.imagens(id_slider,true); for (let x = 0;x < gsi_instancias[id_slider]['imagens'].length;x++){ let elemento = instancias[i].querySelector('#'+gsi_instancias[id_slider]['imagens'][x]); elemento.setAttribute('posicao',x); elemento.style.transition = '0s linear'; if(x == (gsi_instancias[id_slider]['imagens'].length-1) && gsi_instancias[id_slider]['imagens'].length > gsi_instancias[id_slider]['imagens_view']){elemento.style.transform = 'matrix(1, 0, 0, 1, '+(gsi_instancias[id_slider]['tamanho']*-1)+', 0)';} else{elemento.style.transform = 'matrix(1, 0, 0, 1, '+(gsi_instancias[id_slider]['transforms'][x])+', 0)';} if(x < gsi_instancias[id_slider]['imagens_view']){ elemento.classList.add('ativo'); elemento.style.opacity = 1; } } GSlideImage.imagens_ordem(id_slider); let reiniciar = false; if(gsi_instancias[id_slider]['imagens'].length < gsi_instancias[id_slider]['imagens_view']+2){ let y = gsi_instancias[id_slider]['imagens'].length; for (let x = 0;x < gsi_instancias[id_slider]['imagens'].length;x++){ let original = instancias[i].querySelector('#'+gsi_instancias[id_slider]['imagens'][x]); if(original){ let clone = document.createElement("div"); clone.setAttribute('id','clone_'+gsi_instancias[id_slider]['imagens'][x].replace('clone_','')+y); clone.classList.add('gsi_clone','imagem'); clone.setAttribute('posicao',gsi_instancias[id_slider]['imagens'].length); clone.style.opacity=0; if(original.getAttribute('ll_src') != undefined){ clone.setAttribute('ll_src',original.getAttribute('ll_src')); clone.classList.add('se_slider'); } if(original.getAttribute('ll_src_mobile') != undefined){ clone.setAttribute('ll_src_mobile',original.getAttribute('ll_src_mobile')); clone.classList.add('se_slider'); } if(original.getAttribute('ll_src') == undefined && original.getAttribute('ll_src_mobile') == undefined){clone.style.backgroundImage = window.getComputedStyle(original)['backgroundImage'];} clone.style.width = ((100-gsi_instancias[id_slider]['imagens_margin'])/gsi_instancias[id_slider]['imagens_view'])+'%'; clone.style.transform = 'matrix(1, 0, 0, 1, '+(gsi_instancias[id_slider]['transforms'][gsi_instancias[id_slider]['imagens_view']])+', 0)'; instancias[i].querySelector('.gsi_imagens').appendChild(clone); } y++; } reiniciar = true; } if(reiniciar){ GSlideImage.destruir(id_slider,false); GSlideImage.iniciar(slider.parentElement.getAttribute('id')); continue; } let proximo = instancias[i].querySelector('.gsi_proximo'); if(proximo){ proximo.addEventListener('click',function(e){GSlideImage.acao(proximo.closest('.gsi').getAttribute('id'),'proximo', e);},false); if(gsi_instancias[id_slider]['imagens'].length <= gsi_instancias[id_slider]['imagens_view']){proximo.style.pointerEvents = 'none';} } let anterior = instancias[i].querySelector('.gsi_anterior'); if(anterior){ anterior.addEventListener('click',function(e){GSlideImage.acao(anterior.closest('.gsi').getAttribute('id'),'anterior', e);},false); if(gsi_instancias[id_slider]['imagens'].length <= gsi_instancias[id_slider]['imagens_view']){anterior.style.pointerEvents = 'none';} } let touch = instancias[i].querySelector('.gsi_imagens'); if(touch){ touch.addEventListener('mousedown',function(e){GSlideImage.acao(touch.closest('.gsi').getAttribute('id'),'touch',e)},false); touch.addEventListener('mousemove',function(e){GSlideImage.acao(touch.closest('.gsi').getAttribute('id'),'touch',e);},false); touch.addEventListener('mouseleave',function(e){GSlideImage.acao(touch.closest('.gsi').getAttribute('id'),'touch',e);},false); touch.addEventListener('mouseup',function(e){GSlideImage.acao(touch.closest('.gsi').getAttribute('id'),'touch',e);},false); touch.addEventListener('touchstart',function(e){GSlideImage.acao(touch.closest('.gsi').getAttribute('id'),'touch',e)},false); touch.addEventListener('touchmove',function(e){GSlideImage.acao(touch.closest('.gsi').getAttribute('id'),'touch',e);},false); touch.addEventListener('touchleave',function(e){GSlideImage.acao(touch.closest('.gsi').getAttribute('id'),'touch',e)},false); touch.addEventListener('touchcancel',function(e){GSlideImage.acao(touch.closest('.gsi').getAttribute('id'),'touch',e)},false); touch.addEventListener('touchend',function(e){GSlideImage.acao(touch.closest('.gsi').getAttribute('id'),'touch',e)},false); } if(gsi_instancias[id_slider]['autoplay'] && gsi_instancias[id_slider]['imagens'].length > gsi_instancias[id_slider]['imagens_view']){gsi_intervalo[id_slider] = setInterval(function(){GSlideImage.acao(id_slider);},(4000+i));} else if(!gsi_instancias[id_slider]['autoplay'] && gsi_intervalo.hasOwnProperty(id_slider)){ gsi_instancias[id_slider]['autoplay'] = false; clearInterval(gsi_intervalo[id_slider]); delete gsi_intervalo[id_slider]; } } } }, destruir:function(id,excluir_clone){ if(excluir_clone == undefined){excluir_clone = true;} if(id != undefined && id != ''){ if(gsi_instancias.hasOwnProperty(id)){ if(gsi_intervalo.hasOwnProperty(id)){ gsi_intervalo[id] = clearInterval(gsi_intervalo[id]); delete gsi_intervalo[id]; } let instancia = document.querySelector("#"+id); if(instancia){ let ativos = instancia.querySelectorAll('.ativo'); if(ativos.length){ for (let x = 0;x < ativos.length;x++){ ativos[x].classList.remove("ativo"); ativos[x].style.opacity = 0; ativos[x].style.display = ''; ativos[x].style.transform = ''; ativos[x].style.transition = ''; } } if(excluir_clone){ let clones = instancia.querySelectorAll('.gsi_clone'); if(clones.length){for (let x = 0;x < clones.length;x++){clones[x].remove();}} } instancia.removeAttribute('id'); } delete gsi_instancias[id]; } }else{ let instancias = document.querySelectorAll(".gsi"); if (instancias.length){for (let i = 0;i < instancias.length;i++){if(instancias[i].id != '' && instancias[i].id != undefined){GSlideImage.destruir(instancias[i].id);}}} } }, pausar:function(id){ let instancias; if(id != undefined){instancias = document.querySelectorAll('#'+id);} else{instancias = document.querySelectorAll('.gsi');} for (let i = 0;i < instancias.length;i++){ let id_slider = instancias[i].getAttribute('id'); if(gsi_intervalo.hasOwnProperty(id_slider)){ gsi_intervalo[id_slider] = clearInterval(gsi_intervalo[id_slider]); delete gsi_intervalo[id_slider]; } } }, reiniciar:function(id){ let instancias; if(id != undefined){instancias = document.querySelectorAll('#'+id);} else{instancias = document.querySelectorAll('.gsi');} if(instancias){ for (let i = 0;i < instancias.length;i++){ if(instancias[i]){ let id_slider = instancias[i].getAttribute('id'); GSlideImage.destruir(id_slider); GSlideImage.iniciar(instancias[i].parentElement.getAttribute('id')); } } } }, imagens:function(id_slider, atualizar){ let instancias; if(atualizar == undefined){atualizar = false;} if(id_slider != undefined){instancias = document.querySelectorAll('#'+id_slider);} else{instancias = document.querySelectorAll('.gsi');} if(instancias){ for (let i = 0;i < instancias.length;i++){ if(instancias[i]){ if(!instancias[i].querySelectorAll('.imagem').length){continue;} let id = instancias[i].getAttribute('id'); let imagens = instancias[i].querySelectorAll('.imagem'); let elemento; let width = parseFloat(window.getComputedStyle(instancias[i])['width'])/gsi_instancias[id]['imagens_view']; gsi_instancias[id]['tamanho'] = width; gsi_instancias[id]['margin'] = (gsi_instancias[id]['imagens_margin'] > 0 ? gsi_instancias[id]['imagens_margin'] :0); for (let x = 0;x < imagens.length;x++){ elemento = imagens[x]; if(elemento.classList.contains('ativo')){elemento.style.opacity = 1;} else{elemento.style.opacity = 0;} if(atualizar){elemento.style.transition = '0s linear';} elemento.style.width = ((100-gsi_instancias[id]['imagens_margin'])/gsi_instancias[id]['imagens_view'])+'%'; gsi_instancias[id]['imagens'][x] = elemento.getAttribute('id'); } if(gsi_instancias[id]['imagens_view'] == 3){ for (let x = -1;x <= gsi_instancias[id]['imagens_view'];x++){ if(x == gsi_instancias[id]['imagens_view']){ gsi_instancias[id]['transforms'][x] = (gsi_instancias[id]['tamanho']*x)+(gsi_instancias[id]['tamanho']*((gsi_instancias[id]['margin']*1.5)/100)); }else if(x == 0){gsi_instancias[id]['transforms'][x]= 0;} else{ if(x == -1){gsi_instancias[id]['transforms'][x]= (gsi_instancias[id]['tamanho']*x)-(gsi_instancias[id]['tamanho']*((gsi_instancias[id]['margin']*.5)/100));} else if(x == 1){gsi_instancias[id]['transforms'][x]= (gsi_instancias[id]['tamanho']*x)+(gsi_instancias[id]['tamanho']*((gsi_instancias[id]['margin']*.5)/100));} else{gsi_instancias[id]['transforms'][x]= (gsi_instancias[id]['tamanho']*x)+(gsi_instancias[id]['tamanho']*(gsi_instancias[id]['margin']/100));} } } }else{ for (let x = -1;x <= gsi_instancias[id]['imagens_view'];x++){ if(x == gsi_instancias[id]['imagens_view']){gsi_instancias[id]['transforms'][x]= (gsi_instancias[id]['tamanho']*x)+((gsi_instancias[id]['tamanho']*2)*(gsi_instancias[id]['margin']/100));} else if(x == 0){gsi_instancias[id]['transforms'][x]= 0;} else{ if(x == -1){gsi_instancias[id]['transforms'][x]= (gsi_instancias[id]['tamanho']*x)-(gsi_instancias[id]['tamanho']*(gsi_instancias[id]['margin']/100));} else{gsi_instancias[id]['transforms'][x]= (gsi_instancias[id]['tamanho']*x)+(gsi_instancias[id]['tamanho']*(gsi_instancias[id]['margin']/100));} } } } for (let y = 0;y < gsi_instancias[id]['imagens_ordem'].length;y++){ for (let x = 0;x < imagens.length;x++){ if(gsi_instancias[id]['imagens_ordem'][y] == imagens[x].getAttribute('id')){ imagens[x].style.opacity = 1; imagens[x].style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][y-1]+', 0)'; break; } } } } } } }, imagens_ordem:function(id){ let instancia = document.querySelector("#"+id); if(instancia){ if(!instancia.querySelectorAll('.imagem').length){return;} let elementos_mostrando = instancia.querySelectorAll('.ativo'),elementos = []; for (let i = 0;i < elementos_mostrando.length;i++){ if(elementos.length){ if(parseInt(instancia.querySelector('#'+elementos[(elementos.length-1)]).getAttribute('posicao')) < parseInt(elementos_mostrando[i].getAttribute('posicao'))){elementos.push(elementos_mostrando[i].getAttribute('id'));} else{elementos.unshift(elementos_mostrando[i].getAttribute('id'));} }else{elementos[0]=elementos_mostrando[i].getAttribute('id');} } if(elementos.length){ let anterior, proximo, posicao = instancia.querySelector('#'+elementos[(elementos.length-1)]).getAttribute('posicao'), atual_teste = instancia.querySelector('#'+elementos[(elementos.length-1)]), continuar = true,x = 0; while (continuar){ if(atual_teste.nextSibling){ atual_teste = atual_teste.nextSibling; }else{atual_teste = instancia.querySelector(".gsi_imagens .imagem:first-child");} if(!atual_teste.classList.contains('ativo') || x == (gsi_instancias[id]['total']-1)){ continuar = false; proximo = atual_teste; } x++; } elementos.push(proximo.getAttribute('id')); posicao = instancia.querySelector('#'+elementos[0]).getAttribute('posicao'); atual_teste = instancia.querySelector('#'+elementos[0]); continuar = true; x = 0; while (continuar){ if(atual_teste.previousSibling){atual_teste = atual_teste.previousSibling;} else{atual_teste = instancia.querySelector(".gsi_imagens div:last-child");} if(!atual_teste.classList.contains('ativo') || x == (gsi_instancias[id]['total']-1)){ continuar = false; anterior = atual_teste; } x++; } elementos.unshift(anterior.getAttribute('id')); let elementos_ordem = []; if(gsi_instancias[id]['imagens_view'] == 3){ if(parseInt(instancia.querySelector('#'+elementos[3]).getAttribute('posicao')) == gsi_instancias[id]['total']-1 && parseInt(instancia.querySelector('#'+elementos[1]).getAttribute('posicao')) == 0){ elementos_ordem[0] = elementos[0]; if(proximo.getAttribute('posicao') == '1'){ elementos_ordem[1] = elementos[2]; elementos_ordem[2] = elementos[3]; elementos_ordem[3] = elementos[1]; }else if(proximo.getAttribute('posicao') == '2'){ elementos_ordem[1] = elementos[3]; elementos_ordem[2] = elementos[1]; elementos_ordem[3] = elementos[2]; } elementos_ordem[4] = elementos[4]; }else{elementos_ordem = elementos;} }else if(gsi_instancias[id]['imagens_view'] == 2){ if(parseInt(instancia.querySelector('#'+elementos[2]).getAttribute('posicao')) == gsi_instancias[id]['total']-1 && parseInt(instancia.querySelector('#'+elementos[1]).getAttribute('posicao')) == 0){ elementos_ordem[0] = elementos[0]; elementos_ordem[1] = elementos[2]; elementos_ordem[2] = elementos[1]; elementos_ordem[3] = elementos[3]; }else{elementos_ordem = elementos;} }else{elementos_ordem = elementos;} gsi_instancias[id]['imagens_ordem'] = elementos_ordem; } } }, acao:function(id,acao,evento){ if(evento == undefined){evento = null;} else{ if(evento.type.substr(0,5) != 'touch' || (evento.type == 'touchmove' && gsi_instancias[id]['touch_posicao_movendo'] != 0)){ evento.preventDefault(); evento.stopPropagation(); } } if(acao == undefined){acao = 'proximo';} let instancia = document.querySelector("#"+id); if(instancia){ let proximo = instancia.querySelector('.gsi_proximo'); let anterior = instancia.querySelector('.gsi_anterior'); if(acao == 'proximo' || acao == 'anterior'){ if(proximo){proximo.style.pointerEvents = 'none';} if(anterior){anterior.style.pointerEvents = 'none';} instancia.querySelector('.gsi_imagens').style.pointerEvents = 'none'; } let tempo = 400; if(gsi_instancias[id]['autoplay']){ clearInterval(gsi_intervalo[id]); delete gsi_intervalo[id]; } if (acao == 'anterior'){ if(gsi_instancias[id]['imagens_ordem'][0] == gsi_instancias[id]['imagens_ordem'][(gsi_instancias[id]['imagens_view']+1)]){ let ultimo = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][0]); if(ultimo){ ultimo.style.transition = '0s linear'; ultimo.style.opacity = 0; ultimo.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][-1]+', 0)'; } } if(gsi_instancias[id]['efeito'] == 'fade'){ let elemento_mover; for (let i = 0;i <= (gsi_instancias[id]['imagens_view']+1);i++){ elemento_mover = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][i]); if(elemento_mover){ elemento_mover.style.transition = 'opacity '+((tempo*40)/100).toFixed(2)+'ms linear'; elemento_mover.style.opacity = 0; } } } let elemento_mover; for (let i = 0;i <= (gsi_instancias[id]['imagens_view']+1);i++){ if(i < (gsi_instancias[id]['imagens_view'] + 1) && (gsi_instancias[id]['imagens_ordem'][0] != gsi_instancias[id]['imagens_ordem'][i] || i == 0)){ elemento_mover = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][i]); if(elemento_mover){ elemento_mover.style.transition = (gsi_instancias[id]['efeito'] == 'fade' ? 'opacity' :'transform')+' '+tempo+'ms linear'; elemento_mover.classList.add('ativo'); if(i == gsi_instancias[id]['imagens_view']){elemento_mover.classList.remove('ativo');} if(i > gsi_instancias[id]['imagens_view']){elemento_mover.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][gsi_instancias[id]['imagens_view']]+', 0)';} else{elemento_mover.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][i]+', 0)';} elemento_mover.style.opacity = 1; } } } }else if(acao == 'proximo'){ if(gsi_instancias[id]['imagens_ordem'][0] == gsi_instancias[id]['imagens_ordem'][(gsi_instancias[id]['imagens_view']+1)]){ let ultimo = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][(gsi_instancias[id]['imagens_view']+1)]); if(ultimo){ ultimo.style.transition = '0s linear'; ultimo.style.opacity = 0; ultimo.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][gsi_instancias[id]['imagens_view']]+', 0)'; } } if(gsi_instancias[id]['efeito'] == 'fade'){ let elemento_mover; for (let i = 0;i <= (gsi_instancias[id]['imagens_view']+1);i++){ elemento_mover = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][i]); if(elemento_mover){ elemento_mover.style.transition = 'opacity '+((tempo*40)/100).toFixed(2)+'ms linear'; elemento_mover.style.opacity = 0; } } } let elemento_mover; for (let i = 0;i <= (gsi_instancias[id]['imagens_view']+1);i++){ elemento_mover = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][i]); if(elemento_mover){ elemento_mover.style.transition = (gsi_instancias[id]['efeito'] == 'fade' ? 'opacity' :'transform')+' '+tempo+'ms linear'; if(i <= 1){elemento_mover.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][-1]+', 0)';} else{elemento_mover.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][(i-2)]+', 0)';} if(i <= 1){elemento_mover.classList.remove('ativo');} else{elemento_mover.classList.add('ativo');} elemento_mover.style.opacity = 1; } } }else if(acao == 'touch'){ if((evento.type == 'mousedown' && evento.buttons == 1) || evento.type == 'touchstart'){ gsi_instancias[id]['touch_ativo'] = true; instancia.querySelector(".gsi_imagens").classList.add('gsi_imagens_drag'); if(gsi_instancias[id]['touch_mover']){clearTimeout(gsi_instancias[id]['touch_slide']);} gsi_instancias[id]['touch_ativo'] = true; instancia.querySelector(".gsi_proximo").style.pointerEvents = 'none'; instancia.querySelector(".gsi_anterior").style.pointerEvents = 'none'; instancia.querySelector(".gsi_proximo").style.opacity = 0; instancia.querySelector(".gsi_anterior").style.opacity = 0; gsi_instancias[id]['touch_mover'] = true; gsi_instancias[id]['touch_limite'] = (instancia.getClientRects()[0]['width']*.5); if (evento.type === "touchstart"){gsi_instancias[id]['touch_posicao_inicio'] = (evento.touches[0].clientX-gsi_instancias[id]['touch_posicao_inicio']);} else{gsi_instancias[id]['touch_posicao_inicio'] = evento.clientX - gsi_instancias[id]['touch_posicao_inicio'];} }else if (evento.type == 'mousemove' || evento.type == 'touchmove'){ if(gsi_instancias[id]['touch_ativo'] && gsi_instancias[id]['touch_mover']){ if (evento.type === "touchmove"){ if(evento.touches[0].clientX==gsi_instancias[id]['touch_posicao_inicio']){gsi_instancias[id]['touch_posicao_movendo'] = 0;} else{ gsi_instancias[id]['touch_posicao_movendo'] = Math.log(Math.abs(evento.touches[0].clientX - gsi_instancias[id]['touch_posicao_inicio'])); if(evento.touches[0].clientX - gsi_instancias[id]['touch_posicao_inicio'] < 0){gsi_instancias[id]['touch_posicao_movendo'] = (gsi_instancias[id]['touch_posicao_movendo']*-1);} gsi_instancias[id]['touch_posicao_movendo'] += (evento.touches[0].clientX-gsi_instancias[id]['touch_posicao_inicio'])*.55; } }else{ if(evento.clientX==gsi_instancias[id]['touch_posicao_inicio']){gsi_instancias[id]['touch_posicao_movendo'] = 0;} else{ gsi_instancias[id]['touch_posicao_movendo'] = Math.log(Math.abs(evento.clientX-gsi_instancias[id]['touch_posicao_inicio'])); if(evento.clientX - gsi_instancias[id]['touch_posicao_inicio'] < 0){gsi_instancias[id]['touch_posicao_movendo'] = (gsi_instancias[id]['touch_posicao_movendo']*-1);} gsi_instancias[id]['touch_posicao_movendo'] += (evento.clientX-gsi_instancias[id]['touch_posicao_inicio'])*.55; } } if(gsi_instancias[id]['touch_posicao_movendo'] > 0){ for (let i = 0;i <= (gsi_instancias[id]['imagens_view']+1);i++){ let elemento; elemento = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][i]); elemento.style.opacity = 1; elemento.style.transition = ''; elemento.style.transform = 'matrix(1, 0, 0, 1, '+(gsi_instancias[id]['transforms'][(i-1)]+gsi_instancias[id]['touch_posicao_movendo'])+',0)'; } }else{ for (let i = 0;i <= (gsi_instancias[id]['imagens_view']+1);i++){ let elemento; elemento = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][i]); elemento.style.opacity = 1; elemento.style.transition = ''; elemento.style.transform = 'matrix(1, 0, 0, 1, '+(gsi_instancias[id]['transforms'][(i-1)]+gsi_instancias[id]['touch_posicao_movendo'])+',0)'; } } } }else{ instancia.querySelector(".gsi_imagens").classList.remove('gsi_imagens_drag'); if(gsi_instancias[id]['touch_ativo'] && gsi_instancias[id]['touch_mover']){ let elemento; if(gsi_instancias[id]['touch_posicao_movendo'] >= ((gsi_instancias[id]['tamanho']*gsi_instancias[id]['imagens_view'])/6)){ for (let i = 0;i <= (gsi_instancias[id]['imagens_view']+1);i++){ elemento = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][i]); elemento.style.opacity = 1; elemento.classList.add('ativo'); elemento.style.transition = 'transform 400ms linear'; if (i >= gsi_instancias[id]['imagens_view']){ elemento.classList.remove('ativo'); elemento.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][gsi_instancias[id]['imagens_view']]+', 0)'; }else{elemento.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][i]+', 0)';} } }else if (gsi_instancias[id]['touch_posicao_movendo'] <= (((gsi_instancias[id]['tamanho']*gsi_instancias[id]['imagens_view'])/6)*-1)){ for (let i = 0;i <= (gsi_instancias[id]['imagens_view']+1);i++){ elemento = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][i]); elemento.style.transition = 'transform 400ms linear'; elemento.style.opacity = 1; if(i <= 1){ elemento.classList.remove('ativo'); elemento.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][-1]+', 0)'; }else{ elemento.classList.add('ativo'); elemento.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][i-2]+', 0)'; } } }else{ for (let i = 0;i <= (gsi_instancias[id]['imagens_view']+1);i++){ elemento = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][i]); elemento.style.transition = 'transform 400ms linear'; elemento.style.opacity = 1; if(i == 0){ elemento.classList.remove('ativo'); elemento.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][-1]+', 0)'; }else if(i == (gsi_instancias[id]['imagens_view']+1)){ elemento.classList.remove('ativo'); elemento.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][gsi_instancias[id]['imagens_view']]+', 0)'; }else{ elemento.classList.add('ativo'); elemento.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][i-1]+', 0)'; } } } gsi_instancias[id]['touch_slide'] = setTimeout(function(){ GSlideImage.imagens_ordem(id); let ultimo = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][(gsi_instancias[id]['imagens_view']+1)]); ultimo.style.transition = '0s'; ultimo.classList.remove('ativo'); ultimo.style.opacity = 0; ultimo.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][gsi_instancias[id]['imagens_view']]+',0)'; ultimo = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][0]); ultimo.style.transition = '0s'; ultimo.classList.remove('ativo'); ultimo.style.opacity = 0; ultimo.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][-1]+',0)'; gsi_instancias[id]['touch_mover'] = false; },tempo); } instancia.querySelector(".gsi_imagens").style.pointerEvents = ''; gsi_instancias[id]['touch_ativo'] = false; gsi_instancias[id]['touch_posicao_inicio'] = 0; gsi_instancias[id]['touch_posicao_movendo'] = 0; if(proximo && gsi_instancias[id]['imagens'].length > gsi_instancias[id]['imagens_view']){ proximo.style.pointerEvents = ''; proximo.style.opacity = ''; } if(anterior && gsi_instancias[id]['imagens'].length > gsi_instancias[id]['imagens_view']){ anterior.style.pointerEvents = ''; anterior.style.opacity = ''; } } } if(acao != 'touch'){ let tempo_touch = (parseFloat(150)*2+parseFloat((((150*45)/100).toFixed(0)))); gsi_instancias[id]['slide'] = setTimeout(function(){ GSlideImage.imagens_ordem(id); if(acao == 'proximo'){ let ultimo = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][(gsi_instancias[id]['imagens_view']+1)]); if(ultimo){ ultimo.style.transition = '0s linear'; ultimo.classList.remove('ativo'); ultimo.style.opacity = 0; ultimo.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][gsi_instancias[id]['imagens_view']]+', 0)'; } if(gsi_instancias[id]['imagens_ordem'][0] != gsi_instancias[id]['imagens_ordem'][(gsi_instancias[id]['imagens_view']+1)]){ ultimo = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][0]); if(ultimo){ ultimo.style.transition = '0s linear'; ultimo.classList.remove('ativo'); ultimo.style.opacity = 0; ultimo.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][-1]+', 0)'; } } }else{ let ultimo = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][(gsi_instancias[id]['imagens_view']+1)]); if(ultimo){ ultimo.style.transition = '0s linear'; ultimo.classList.remove('ativo'); ultimo.style.opacity = 0; } if(gsi_instancias[id]['imagens_ordem'][0] != gsi_instancias[id]['imagens_ordem'][(gsi_instancias[id]['imagens_view']+1)]){ if(ultimo){ultimo.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][gsi_instancias[id]['imagens_view']]+', 0)';} ultimo = instancia.querySelector('#'+gsi_instancias[id]['imagens_ordem'][0]); if(ultimo){ ultimo.style.transition = '0s linear'; ultimo.classList.remove('ativo'); ultimo.style.opacity = 0; ultimo.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][-1]+', 0)'; } }else{if(ultimo){ultimo.style.transform = 'matrix(1, 0, 0, 1, '+gsi_instancias[id]['transforms'][-1]+', 0)';}} } if(proximo && gsi_instancias[id]['imagens'].length > gsi_instancias[id]['imagens_view']){proximo.style.pointerEvents = '';} if(anterior && gsi_instancias[id]['imagens'].length > gsi_instancias[id]['imagens_view']){anterior.style.pointerEvents = '';} instancia.querySelector('.gsi_imagens').style.pointerEvents = ''; },tempo_touch); } if(gsi_instancias[id]['autoplay']){gsi_intervalo[id] = setInterval(function(){GSlideImage.acao(id);},4000);} }else{ if(gsi_instancias.hasOwnProperty(id)){ if(gsi_instancias[id]['autoplay']){ clearInterval(gsi_intervalo[id]); delete gsi_intervalo[id]; } } } } } }(); $(function(){ GSlideImage.iniciar(); window.addEventListener('resize', function(e){ e.preventDefault(); e.stopPropagation(); var altura = window.innerHeight, largura = window.innerWidth; if(timeout_resize_slider){clearTimeout(timeout_resize_slider);timeout_resize_slider = null;} timeout_resize_slider = setTimeout(function(){ if(altura == window.innerHeight && largura == window.innerWidth){ let instancias = document.querySelectorAll(".gsi"); if(instancias){ for (let i = 0;i < instancias.length;i++){ if(instancias[i].getAttribute('id') != '' && instancias[i].getAttribute('id') != null && instancias[i].getAttribute('id') != undefined){GSlideImage.imagens(instancias[i].getAttribute('id'),true);} else{GSlideImage.iniciar(instancias[i].closest('.c, .conteudo').getAttribute('id'));} } } } },500); }); }); 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'){ requisicao.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } if (parametros.externo){ requisicao.withCredentials = false; requisicao.setRequestHeader('Content-Type', "application/json"); requisicao.setRequestHeader('Access-Control-Allow-Origin', '*'); requisicao.setRequestHeader('Access-Control-Allow-Headers', "*"); requisicao.setRequestHeader('Access-Control-Allow-Methods', 'POST, GET, PUT, DELETE, OPTIONS'); } 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_3536780_1_177337760369b39843c901b256464685':{'fs':'14', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843c901b256464685':{'desktop':1246.98, 'mobile':587.889}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843c90a0688565535':{'fs':'21', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843c90a0688565535':{'desktop':1615.7, 'mobile':140.422}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843c952f707324933':{'fs':'18', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843c952f707324933':{'desktop':3113.3, 'mobile':670.543}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843c9623036551729':{'fs':'33', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843c9623036551729':{'desktop':3161.0932, 'mobile':748.413}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843c9668309903648':{'fs':'21', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843c9668309903648':{'desktop':3177.8901, 'mobile':787.974}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843c96b5494591077':{'desktop':3207.3, 'mobile':841.346}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843c9a92985696582':{'desktop':4038.91, 'mobile':1462.2}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843c9ae2686456440':{'fs':'20', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843c9ae2686456440':{'desktop':4212.7022, 'mobile':555.641}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843c9b2e592870655':{'fs':'18', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843c9b2e592870655':{'desktop':4233.7022, 'mobile':1701.58}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843c9b88121082010':{'fs':'16', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843c9b88121082010':{'desktop':4233.7022, 'mobile':1738.12}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177417987297994313_m':{'desktop':9683.5314, 'mobile':0.0149999}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418598467137205_m':{'desktop':9683.5314, 'mobile':478.852}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177417990371406411_m':{'desktop':9683.5314, 'mobile':346.953}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843caf10044648624':{'fs':'28', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843caf10044648624':{'desktop':11418.5607, 'mobile':1916.15}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843caf9f913331849':{'fs':'21', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843caf9f913331849':{'desktop':11435.3576, 'mobile':1950.37}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb019319003508':{'desktop':11464.8, 'mobile':1305.61}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cb0ae388558861':{'fs':'17', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb0ae388558861':{'desktop':11730.3418, 'mobile':2007.31}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb138634295903':{'desktop':11982.4, 'mobile':1969.8}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb245084979093':{'desktop':12135.7, 'mobile':2191.82}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cb354871776071':{'fs':'17', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb354871776071':{'desktop':12194.81, 'mobile':2283.61}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cb2ce382363139':{'fs':'70', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb2ce382363139':{'desktop':12253.6069, 'mobile':2201.41}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb4a8204875243':{'desktop':12406.138, 'mobile':2309.66}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cb542159682352':{'fs':'70', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb542159682352':{'desktop':12448.138, 'mobile':2319.09}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cb5ca981451945':{'fs':'17', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb5ca981451945':{'desktop':12518.138, 'mobile':2403.01}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb854729202559':{'desktop':13486.138, 'mobile':2428.76}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cb8e3350626611':{'fs':'70', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb8e3350626611':{'desktop':13528.138, 'mobile':2436.8}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cb973109810805':{'fs':'17', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cb973109810805':{'desktop':13598.138, 'mobile':2519.85}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cbaa2712895022':{'desktop':13846.138, 'mobile':2549.28}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cbb4a304845980':{'fs':'70', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cbb4a304845980':{'desktop':13888.138, 'mobile':2554.8}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cbbe1510527500':{'fs':'17', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cbbe1510527500':{'desktop':13958.138, 'mobile':2639.79}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cc28f367726034':{'desktop':15164.888, 'mobile':3105.98}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cc145423613108':{'fs':'18', 'lh':''}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cc145423613108':{'desktop':15514.9, 'mobile':3111.59}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cc574224163147':{'fs':'32', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cc574224163147':{'desktop':15901.2789, 'mobile':2724.77}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cd28a017780159':{'fs':'18', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cd28a017780159':{'desktop':19470.2319, 'mobile':2846.88}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cd6b9537815324':{'fs':'14', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cd6b9537815324':{'desktop':19607.6228, 'mobile':3563.32}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177343359260240451':{'fs':'43', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177343359260240451':{'desktop':25922.0438, 'mobile':158.571}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344264370436547':{'desktop':26488.2, 'mobile':0.398}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344416091927909':{'desktop':28212, 'mobile':1466.65}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177344426729655961':{'fs':'20', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344426729655961':{'desktop':28429.3098, 'mobile':1678.35}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344497860250613':{'desktop':28454.5, 'mobile':531.868}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177344509618529242':{'fs':'18', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344509618529242':{'desktop':29039.8719, 'mobile':1344.37}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344732204258677':{'desktop':30941.4, 'mobile':2181.2}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344741181017892':{'desktop':31301.4, 'mobile':2310.82}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344743827740702':{'desktop':31661.4, 'mobile':2433.6}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344745095236428':{'desktop':32021.4, 'mobile':2549.05}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344812370647274':{'desktop':32269.0129, 'mobile':2531.76}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344760858807286':{'desktop':32381.4, 'mobile':1904.79}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177344855731676338_d':{'fs':'18', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344855731676338_d':{'desktop':32845.0129, 'mobile':58.0869}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344849069734045':{'desktop':32865.0129, 'mobile':3067.52}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344847961294669':{'desktop':32865.0129, 'mobile':2806.2}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344846035063206':{'desktop':32865.0129, 'mobile':2165.79}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344870663413697':{'desktop':33121.7, 'mobile':2709.85}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418053317638971':{'fs':'22', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418053317638971':{'desktop':33263.5279, 'mobile':2764.09}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177345160106925537_d':{'fs':'15', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177345160106925537_d':{'desktop':33288.7159, 'mobile':480.506}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418011433232347':{'fs':'39', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418011433232347':{'desktop':33430.0076, 'mobile':92.9923}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177345126933049543_d':{'fs':'28', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177345126933049543_d':{'desktop':33451.0128, 'mobile':421.97}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177417996839752187':{'desktop':33476.2159, 'mobile':218.744}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177417997907783328':{'desktop':33476.2159, 'mobile':285.884}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418319326453237':{'desktop':33490.2, 'mobile':303.885}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418326707608465':{'desktop':33743.5, 'mobile':0.11}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177422098305858927':{'desktop':33996.9, 'mobile':223.878}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cf4ba533221837_d':{'fs':'31', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cf4ba533221837_d':{'desktop':2719.3118, 'mobile':69.6994}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cfc59676627047_d':{'fs':'14', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cfc59676627047_d':{'desktop':3935.2969, 'mobile':882.302}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cfd6f995138708_d':{'fs':'15', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cfd6f995138708_d':{'desktop':4173.2651, 'mobile':949.91}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cfe5f798537893_d':{'fs':'12', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cfe5f798537893_d':{'desktop':4197.062, 'mobile':992.52}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cff45470470608_d':{'fs':'13', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cff45470470608_d':{'desktop':4204.062, 'mobile':18.3954}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843d0172602704869_d':{'desktop':4346.17, 'mobile':1032.11}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843d02a0350288909_d':{'desktop':4466.48, 'mobile':1139.71}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843d03bc363973777_d':{'desktop':4665.39, 'mobile':1147.88}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843d04c6075021933_d':{'desktop':4792.34, 'mobile':1144.25}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177345076835323369':{'desktop':5397.91, 'mobile':-248.045}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177345097381660506':{'desktop':6421.47, 'mobile':183.39}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177345214127459507_d':{'desktop':7970.38, 'mobile':734.919}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177417990371406411_d':{'desktop':9683.5314, 'mobile':346.953}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177417987297994313_d':{'desktop':9683.5314, 'mobile':0.0149999}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418598467137205_d':{'desktop':9683.5314, 'mobile':478.852}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177344855731676338_m':{'fs':'18', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177344855731676338_m':{'desktop':32845.0129, 'mobile':58.0869}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177345160106925537_m':{'fs':'15', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177345160106925537_m':{'desktop':33288.7159, 'mobile':480.506}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177345126933049543_m':{'fs':'28', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177345126933049543_m':{'desktop':33451.0128, 'mobile':421.97}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655665082_m':{'desktop':0.0199999, 'mobile':1073.93}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624541783_m':{'desktop':0.0199999, 'mobile':1793.33}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655623797_m':{'fs':'17.1429', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655623797_m':{'desktop':0.0199999, 'mobile':1492.3}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624531377_m':{'fs':'17.1429', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624531377_m':{'desktop':0.0199999, 'mobile':2211.7}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655648284_m':{'desktop':0.0199999, 'mobile':1190.78}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624503218_m':{'desktop':0.0199999, 'mobile':1910.18}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655635296_m':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655635296_m':{'desktop':0.0199999, 'mobile':1268.15}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624519952_m':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624519952_m':{'desktop':0.0199999, 'mobile':1987.55}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624502877_m':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624502877_m':{'desktop':0.0199999, 'mobile':1914.97}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655628751_m':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655628751_m':{'desktop':0.0199999, 'mobile':1195.57}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655645765_m':{'fs':'13.3333', 'lh':'1.3999984999963'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655645765_m':{'desktop':0.0199999, 'mobile':1585.14}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624525504_m':{'fs':'13.3333', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624525504_m':{'desktop':0.0199999, 'mobile':2304.54}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655685325_m':{'fs':'57.1429', 'lh':'1.4000006999995'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655685325_m':{'desktop':0.0199999, 'mobile':1349.82}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624545959_m':{'fs':'57.1429', 'lh':'1.4000006999995'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624545959_m':{'desktop':0.0199999, 'mobile':2069.22}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624556755_m':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624556755_m':{'desktop':0.0199999, 'mobile':1906.68}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624500827_m':{'fs':'11.4286', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624500827_m':{'desktop':0.0199999, 'mobile':1930.18}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655610544_m':{'fs':'11.4286', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655610544_m':{'desktop':0.0199999, 'mobile':1210.78}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655686889_m':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655686889_m':{'desktop':0.0199999, 'mobile':1187.28}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624568068_m':{'desktop':0.0199999, 'mobile':1767.3}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655624824_m':{'desktop':0.0199999, 'mobile':1047.9}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655601727_m':{'fs':'19.0476', 'lh':'1.3999978999979'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655601727_m':{'desktop':0.0199999, 'mobile':1062.26}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624588084_m':{'fs':'18', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624588084_m':{'desktop':0.0199999, 'mobile':1782.83}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655633908_m':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655633908_m':{'desktop':0.0199999, 'mobile':1270.78}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624538084_m':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624538084_m':{'desktop':0.0199999, 'mobile':1990.18}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624539216_m':{'fs':'22.8571', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624539216_m':{'desktop':0.0199999, 'mobile':2093.51}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655624337_m':{'fs':'22.8571', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655624337_m':{'desktop':0.0199999, 'mobile':1374.11}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655622444_m':{'desktop':0.0199999, 'mobile':980.618}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624557268_m':{'desktop':0.0199999, 'mobile':1700.02}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160547888':{'fs':'35', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160547888':{'desktop':58, 'mobile':22.9167}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160591027':{'fs':'18', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160591027':{'desktop':220.25, 'mobile':112.36}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160500363':{'fs':'35', 'lh':''}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160500363':{'desktop':267.797, 'mobile':161.714}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160502541':{'desktop':546.719, 'mobile':340.839}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160541752':{'fs':'19', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160541752':{'desktop':560.047, 'mobile':356.604}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160567506':{'desktop':574.719, 'mobile':366.87}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160545752':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160545752':{'desktop':693.063, 'mobile':480.214}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160538876':{'desktop':696.719, 'mobile':483.714}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160519337':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160519337':{'desktop':701.766, 'mobile':488.511}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160553709':{'fs':'11.4286', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160553709':{'desktop':717.719, 'mobile':503.714}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160500398':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160500398':{'desktop':777.969, 'mobile':561.089}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160552821':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160552821':{'desktop':780.719, 'mobile':563.714}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160595402':{'fs':'57.1429', 'lh':'1.4000006999995'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160595402':{'desktop':863.719, 'mobile':642.761}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160579684':{'fs':'22.8571', 'lh':'1.3999982499967'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160579684':{'desktop':889.219, 'mobile':667.042}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160514406':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160514406':{'desktop':948.344, 'mobile':709.665}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160586708':{'fs':'17.1429', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160586708':{'desktop':1012.28, 'mobile':785.233}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160545749':{'fs':'13.3333', 'lh':'1.3999984999963'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160545749':{'desktop':1109.75, 'mobile':878.073}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160581876':{'fs':'40.6337', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160581876':{'desktop':1244.5, 'mobile':2407.14}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160582674':{'fs':'40.6337', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160582674':{'desktop':1244.5, 'mobile':2519.14}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160542013':{'fs':'40.6337', 'lh':'1'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160542013':{'desktop':1245.2, 'mobile':2631.14}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160583648':{'fs':'12.8317', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160583648':{'desktop':1290.83, 'mobile':2449.72}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160527661':{'fs':'12.8317', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160527661':{'desktop':1290.83, 'mobile':2676.79}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418079160539796':{'fs':'12.8317', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418079160539796':{'desktop':1290.83, 'mobile':2565.49}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418081317736373':{'fs':'28', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418081317736373':{'desktop':1549.5, 'mobile':64.4374}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418164164159224':{'desktop':1598.5, 'mobile':273.56}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418240516952125':{'desktop':1819.458, 'mobile':1428.4}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418263450778047':{'fs':'14', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418263450778047':{'desktop':1821.3538, 'mobile':2142.02}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418241921322393':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418241921322393':{'desktop':1827.833, 'mobile':1432.38}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418421824308463':{'fs':'16', 'lh':''}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418421824308463':{'desktop':-91.25, 'mobile':141.27}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655665082_d':{'desktop':0.0199999, 'mobile':1073.93}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624541783_d':{'desktop':0.0199999, 'mobile':1793.33}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624531377_d':{'fs':'17.1429', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624531377_d':{'desktop':0.0199999, 'mobile':2211.7}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655623797_d':{'fs':'17.1429', 'lh':'1.3'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655623797_d':{'desktop':0.0199999, 'mobile':1492.3}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624503218_d':{'desktop':0.0199999, 'mobile':1910.18}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655648284_d':{'desktop':0.0199999, 'mobile':1190.78}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624519952_d':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624519952_d':{'desktop':0.0199999, 'mobile':1987.55}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655635296_d':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655635296_d':{'desktop':0.0199999, 'mobile':1268.15}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655628751_d':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655628751_d':{'desktop':0.0199999, 'mobile':1195.57}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624502877_d':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624502877_d':{'desktop':0.0199999, 'mobile':1914.97}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624525504_d':{'fs':'13.3333', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624525504_d':{'desktop':0.0199999, 'mobile':2304.54}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655645765_d':{'fs':'13.3333', 'lh':'1.3999984999963'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655645765_d':{'desktop':0.0199999, 'mobile':1585.14}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624545959_d':{'fs':'57.1429', 'lh':'1.4000006999995'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624545959_d':{'desktop':0.0199999, 'mobile':2069.22}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655685325_d':{'fs':'57.1429', 'lh':'1.4000006999995'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655685325_d':{'desktop':0.0199999, 'mobile':1349.82}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624500827_d':{'fs':'11.4286', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624500827_d':{'desktop':0.0199999, 'mobile':1930.18}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655610544_d':{'fs':'11.4286', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655610544_d':{'desktop':0.0199999, 'mobile':1210.78}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624556755_d':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624556755_d':{'desktop':0.0199999, 'mobile':1906.68}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655686889_d':{'fs':'17.1429', 'lh':'1.4000023333275'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655686889_d':{'desktop':0.0199999, 'mobile':1187.28}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624568068_d':{'desktop':0.0199999, 'mobile':1767.3}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655624824_d':{'desktop':0.0199999, 'mobile':1047.9}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655601727_d':{'fs':'19.0476', 'lh':'1.3999978999979'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655601727_d':{'desktop':0.0199999, 'mobile':1062.26}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624588084_d':{'fs':'18', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624588084_d':{'desktop':0.0199999, 'mobile':1782.83}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655633908_d':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655633908_d':{'desktop':0.0199999, 'mobile':1270.78}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624538084_d':{'fs':'15.2381', 'lh':'2'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624538084_d':{'desktop':0.0199999, 'mobile':1990.18}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418259624539216_d':{'fs':'22.8571', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624539216_d':{'desktop':0.0199999, 'mobile':2093.51}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177418231655624337_d':{'fs':'22.8571', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655624337_d':{'desktop':0.0199999, 'mobile':1374.11}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418231655622444_d':{'desktop':0.0199999, 'mobile':980.618}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177418259624557268_d':{'desktop':0.0199999, 'mobile':1700.02}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cf4ba533221837_m':{'fs':'31', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cf4ba533221837_m':{'desktop':2719.3118, 'mobile':69.6994}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cfc59676627047_m':{'fs':'14', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cfc59676627047_m':{'desktop':3935.2969, 'mobile':882.302}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cfd6f995138708_m':{'fs':'15', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cfd6f995138708_m':{'desktop':4173.2651, 'mobile':949.91}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cfe5f798537893_m':{'fs':'12', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cfe5f798537893_m':{'desktop':4197.062, 'mobile':992.52}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843d0172602704869_m':{'desktop':4346.17, 'mobile':1032.11}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843d02a0350288909_m':{'desktop':4466.48, 'mobile':1139.71}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843d03bc363973777_m':{'desktop':4665.39, 'mobile':1147.88}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843d04c6075021933_m':{'desktop':4792.34, 'mobile':1144.25}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177345214127459507_m':{'desktop':7970.38, 'mobile':734.919}});blocos_posicao = Object.assign(blocos_posicao,{'b_3536780_1_177345257605915529':{'desktop':450, 'mobile':1201}});elementos_css = Object.assign(elementos_css,{'e_3536780_1_177337760369b39843cff45470470608_m':{'fs':'13', 'lh':'1.4'}});elementos_posicao = Object.assign(elementos_posicao,{'e_3536780_1_177337760369b39843cff45470470608_m':{'desktop':4204.062, 'mobile':18.3954}});function InserirScriptsInline(){if(!window.getCrawler()){}if(!window.getCrawler()){ window.pixelId = "69c9760c9ac5c4ad7045241f"; var a = document.createElement("script"); a.setAttribute("async", ""); a.setAttribute("defer", ""); a.setAttribute("src", "https://cdn.utmify.com.br/scripts/pixel/pixel.js"); document.head.appendChild(a); window.pixelId = "69c9760c9ac5c4ad7045241f"; var a = document.createElement("script"); a.setAttribute("async", ""); a.setAttribute("defer", ""); a.setAttribute("src", "https://cdn.utmify.com.br/scripts/pixel/pixel.js"); document.head.appendChild(a); } }var scripts_estatisticas ={}, scripts_marketing ={};