Companhias de energia elétrica correm para adaptar-se à NF3e no Brasil
O setor energético brasileiro teve um início de ano promissor – dados da Câmara de Comercialização de Energia Elétrica apontam que o país consumiu 66.760 megawatts nos seis primeiros meses do ano, o que representa alta de 1,4% em relação ao mesmo período do ano passado.
O crescimento foi ainda maior no mercado livre de energia, que consumiu 5,2% a mais do que no período anterior.
Em meio a tamanho crescimento, as empresas de energia elétrica enfrentam um desafio: a transição para a NF3e (Nota Fiscal de Energia Elétrica eletrônica).
A mudança, instituída pela Secretaria da Fazenda através do ajuste SINIEF 01/2019, teve por objetivo criar um modelo único nacional de documento fiscal eletrônico (modelo 66) em substituição ao atual sistema de emissão da Nota Fiscal/Conta de Energia Elétrica (modelo 6), com validade jurídica garantida pela assinatura digital do emitente, simplificando as obrigações acessórias dos contribuintes e permitindo, ao mesmo tempo, o acompanhamento da emissão em tempo real pelo Fisco.
“O objetivo dos órgãos fiscalizadores é trazer mais celeridade por meio da digitalização e simplificação da entrega de obrigações acessórias. Como se sabe, o Fisco brasileiro é um dos pioneiros na utilização de novas tecnologias visando uma maior eficiência no cruzamento de dados de contribuintes, padronização de layouts e integração de processos do sistema tributário nacional”, explica Leonardo Brussolo, diretor de Produtos da Sovos Brasil, multinacional especializada em soluções para o compliance fiscal.
Datas para implementação
A implementação da NF3e está sendo feita de forma escalonada nos diferentes estados do país.
Porém, em São Paulo, por exemplo, o prazo de obrigatoriedade da NF3e sofreu algumas mudanças, e a data de obrigatoriedade foi prorrogada para junho de 2024. Isso, causado tanto por conta das dificuldades de desenvolvimento da NF3e pelo sistema atual de faturamento enfrentado pelas empresas de energia elétrica, quanto pelo atraso da disponibilização de ambientes da Sefaz (Secretaria da Fazenda) para a execução de testes.
“Caso as regras não sejam rigorosamente seguidas, as notas emitidas serão invalidadas. Nesse contexto, é imprescindível que as empresas adequem suas rotinas tributárias para evitarem problemas com o Fisco e manterem a governança diante das exigências fiscais”, comenta Leonardo.
Uma mão da tecnologia
Diante da entrada em vigor da obrigatoriedade da NF3e em todo Brasil, em paralelo ao grande volume de transações movimentadas por mês pelas empresas de energia elétrica de forma offline e com bancos de dados frequentemente defasados, agora, mais do que nunca, todo esse processo precisará ser digitalizado.
“Por isso, não há tempo a perder, e as empresas devem seguir a tendência do Fisco, apostando na tecnologia como solução, considerando, claro, todo o tempo que um projeto dessa magnitude demanda”, observa Leonardo.
De olho nessa necessidade, e para ajudar as empresas de energia elétrica nesta transição, a Sovos, multinacional especialista em soluções para o compliance fiscal, desenvolveu uma solução exclusiva, chamada de NF3e Smart.
Capaz de aprovar mais de 600 notas fiscais por segundo, ou seja, de 1 a 2 milhões de notas por hora no novo formato, a solução abrange funcionalidades que vão além da mensageria integrada à Sefaz (Secretaria da Fazenda).
“Entendemos que as empresas do setor necessitam de uma solução robusta e dinâmica, com informações completas para um maior controle. Por isso, o NF3e Smart abrange, além da mensageria, dados que permitem que o usuário identifique qual o sistema de origem do documento, qual o ciclo de fechamento em que foi emitido, sua data e quais documentos foram aprovados ou rejeitados para uma edição e reemissão mais rápida, tudo isso em uma só solução”, explica Leonardo.
Ainda segundo o executivo, para além dos benefícios de governança, a solução possibilita ganhos de competitividade, já que o recolhimento de tributo correto permite uma maior previsibilidade sobre margens de contribuição.
‘,m.parentNode.insertBefore(h,m.nextSibling)}var v=!1,g=!1,y=!1,E=”vertical”===u?r.getElement(r.container).querySelector(“.”+r.options.classPrefix+”volume-slider”):r.getElement(r.container).querySelector(“.”+r.options.classPrefix+”horizontal-volume-slider”),b=”vertical”===u?r.getElement(r.container).querySelector(“.”+r.options.classPrefix+”volume-total”):r.getElement(r.container).querySelector(“.”+r.options.classPrefix+”horizontal-volume-total”),S=”vertical”===u?r.getElement(r.container).querySelector(“.”+r.options.classPrefix+”volume-current”):r.getElement(r.container).querySelector(“.”+r.options.classPrefix+”horizontal-volume-current”),x=”vertical”===u?r.getElement(r.container).querySelector(“.”+r.options.classPrefix+”volume-handle”):r.getElement(r.container).querySelector(“.”+r.options.classPrefix+”horizontal-volume-handle”),w=function(e){if(null!==e&&!isNaN(e)&&void 0!==e){if(e=Math.max(0,e),0===(e=Math.min(e,1))){(0,d.removeClass)(m,r.options.classPrefix+”mute”),(0,d.addClass)(m,r.options.classPrefix+”unmute”);var t=m.firstElementChild;t.setAttribute(“title”,f),t.setAttribute(“aria-label”,f)}else{(0,d.removeClass)(m,r.options.classPrefix+”unmute”),(0,d.addClass)(m,r.options.classPrefix+”mute”);var n=m.firstElementChild;n.setAttribute(“title”,c),n.setAttribute(“aria-label”,c)}var o=100*e+”%”,i=getComputedStyle(x);”vertical”===u?(S.style.bottom=0,S.style.height=o,x.style.bottom=o,x.style.marginBottom=-parseFloat(i.height)/2+”px”):(S.style.left=0,S.style.width=o,x.style.left=o,x.style.marginLeft=-parseFloat(i.width)/2+”px”)}},P=function(e){var t=(0,d.offset)(b),n=getComputedStyle(b);y=!0;var o=null;if(“vertical”===u){var i=parseFloat(n.height);if(o=(i-(e.pageY-t.top))/i,0===t.top||0===t.left)return}else{var a=parseFloat(n.width);o=(e.pageX-t.left)/a}o=Math.max(0,o),o=Math.min(o,1),w(o),r.setMuted(0===o),r.setVolume(o),e.preventDefault(),e.stopPropagation()},k=function(){r.muted?(w(0),(0,d.removeClass)(m,r.options.classPrefix+”mute”),(0,d.addClass)(m,r.options.classPrefix+”unmute”)):(w(i.volume),(0,d.removeClass)(m,r.options.classPrefix+”unmute”),(0,d.addClass)(m,r.options.classPrefix+”mute”))};e.getElement(e.container).addEventListener(“keydown”,function(e){!!e.target.closest(“.”+r.options.classPrefix+”container”)||”vertical”!==u||(E.style.display=”none”)}),m.addEventListener(“mouseenter”,function(e){e.target===m&&(E.style.display=”block”,g=!0,e.preventDefault(),e.stopPropagation())}),m.addEventListener(“focusin”,function(){E.style.display=”block”,g=!0}),m.addEventListener(“focusout”,function(e){e.relatedTarget&&(!e.relatedTarget||e.relatedTarget.matches(“.”+r.options.classPrefix+”volume-slider”))||”vertical”!==u||(E.style.display=”none”)}),m.addEventListener(“mouseleave”,function(){g=!1,v||”vertical”!==u||(E.style.display=”none”)}),m.addEventListener(“focusout”,function(){g=!1}),m.addEventListener(“keydown”,function(e){if(r.options.enableKeyboard&&r.options.keyActions.length){var t=e.which||e.keyCode||0,n=i.volume;switch(t){case 38:n=Math.min(n+.1,1);break;case 40:n=Math.max(0,n-.1);break;default:return!0}v=!1,w(n),i.setVolume(n),e.preventDefault(),e.stopPropagation()}}),m.querySelector(“button”).addEventListener(“click”,function(){i.setMuted(!i.muted);var e=(0,l.createEvent)(“volumechange”,i);i.dispatchEvent(e)}),E.addEventListener(“dragstart”,function(){return!1}),E.addEventListener(“mouseover”,function(){g=!0}),E.addEventListener(“focusin”,function(){E.style.display=”block”,g=!0}),E.addEventListener(“focusout”,function(){g=!1,v||”vertical”!==u||(E.style.display=”none”)}),E.addEventListener(“mousedown”,function(e){P(e),r.globalBind(“mousemove.vol”,function(e){var t=e.target;v&&(t===E||t.closest(“vertical”===u?”.”+r.options.classPrefix+”volume-slider”:”.”+r.options.classPrefix+”horizontal-volume-slider”))&&P(e)}),r.globalBind(“mouseup.vol”,function(){v=!1,g||”vertical”!==u||(E.style.display=”none”)}),v=!0,e.preventDefault(),e.stopPropagation()}),i.addEventListener(“volumechange”,function(e){var t;v||k(),t=Math.floor(100*i.volume),E.setAttribute(“aria-valuenow”,t),E.setAttribute(“aria-valuetext”,t+”%”)});var T=!1;i.addEventListener(“rendererready”,function(){y||setTimeout(function(){T=!0,(0===e.options.startVolume||i.originalNode.muted)&&(i.setMuted(!0),e.options.startVolume=0),i.setVolume(e.options.startVolume),r.setControlsSize()},250)}),i.addEventListener(“loadedmetadata”,function(){setTimeout(function(){y||T||((0===e.options.startVolume||i.originalNode.muted)&&i.setMuted(!0),i.setVolume(e.options.startVolume),r.setControlsSize()),T=!1},250)}),(0===e.options.startVolume||i.originalNode.muted)&&(i.setMuted(!0),e.options.startVolume=0,k()),r.getElement(r.container).addEventListener(“controlsresize”,function(){k()})}}})},{16:16,2:2,25:25,26:26,27:27,5:5}],15:[function(e,t,n){“use strict”;Object.defineProperty(n,”__esModule”,{value:!0});n.EN={“mejs.plural-form”:1,”mejs.download-file”:”Download File”,”mejs.install-flash”:”You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from Slider”,”mejs.time-help-text”:”Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.”,”mejs.live-broadcast”:”Live Broadcast”,”mejs.volume-help-text”:”Use Up/Down Arrow keys to increase or decrease volume.”,”mejs.unmute”:”Unmute”,”mejs.mute”:”Mute”,”mejs.volume-slider”:”Volume Slider”,”mejs.video-player”:”Video Player”,”mejs.audio-player”:”Audio Player”,”mejs.captions-subtitles”:”Captions/Subtitles”,”mejs.captions-chapters”:”Chapters”,”mejs.none”:”None”,”mejs.afrikaans”:”Afrikaans”,”mejs.albanian”:”Albanian”,”mejs.arabic”:”Arabic”,”mejs.belarusian”:”Belarusian”,”mejs.bulgarian”:”Bulgarian”,”mejs.catalan”:”Catalan”,”mejs.chinese”:”Chinese”,”mejs.chinese-simplified”:”Chinese (Simplified)”,”mejs.chinese-traditional”:”Chinese (Traditional)”,”mejs.croatian”:”Croatian”,”mejs.czech”:”Czech”,”mejs.danish”:”Danish”,”mejs.dutch”:”Dutch”,”mejs.english”:”English”,”mejs.estonian”:”Estonian”,”mejs.filipino”:”Filipino”,”mejs.finnish”:”Finnish”,”mejs.french”:”French”,”mejs.galician”:”Galician”,”mejs.german”:”German”,”mejs.greek”:”Greek”,”mejs.haitian-creole”:”Haitian Creole”,”mejs.hebrew”:”Hebrew”,”mejs.hindi”:”Hindi”,”mejs.hungarian”:”Hungarian”,”mejs.icelandic”:”Icelandic”,”mejs.indonesian”:”Indonesian”,”mejs.irish”:”Irish”,”mejs.italian”:”Italian”,”mejs.japanese”:”Japanese”,”mejs.korean”:”Korean”,”mejs.latvian”:”Latvian”,”mejs.lithuanian”:”Lithuanian”,”mejs.macedonian”:”Macedonian”,”mejs.malay”:”Malay”,”mejs.maltese”:”Maltese”,”mejs.norwegian”:”Norwegian”,”mejs.persian”:”Persian”,”mejs.polish”:”Polish”,”mejs.portuguese”:”Portuguese”,”mejs.romanian”:”Romanian”,”mejs.russian”:”Russian”,”mejs.serbian”:”Serbian”,”mejs.slovak”:”Slovak”,”mejs.slovenian”:”Slovenian”,”mejs.spanish”:”Spanish”,”mejs.swahili”:”Swahili”,”mejs.swedish”:”Swedish”,”mejs.tagalog”:”Tagalog”,”mejs.thai”:”Thai”,”mejs.turkish”:”Turkish”,”mejs.ukrainian”:”Ukrainian”,”mejs.vietnamese”:”Vietnamese”,”mejs.welsh”:”Welsh”,”mejs.yiddish”:”Yiddish”}},{}],16:[function(e,t,n){“use strict”;Object.defineProperty(n,”__esModule”,{value:!0}),n.config=void 0;var o=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e},i=function(){function e(e,t){for(var n=0;n
‘,smallBtn:’‘},parentEl:”body”,hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:”.fancybox-container”,axis:”y”},wheel:”auto”,onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return”image”===t.type&&”zoom”},clickSlide:”close”,clickOutside:”close”,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return”image”===t.type&&”toggleControls”},clickSlide:function(t,e){return”image”===t.type?”toggleControls”:”close”},dblclickContent:function(t,e){return”image”===t.type&&”zoom”},dblclickSlide:function(t,e){return”image”===t.type&&”zoom”}},lang:”en”,i18n:{en:{CLOSE:”Close”,NEXT:”Next”,PREV:”Previous”,ERROR:”The requested content cannot be loaded. Please try again later.”,PLAY_START:”Start slideshow”,PLAY_STOP:”Pause slideshow”,FULL_SCREEN:”Full screen”,THUMBS:”Thumbnails”,DOWNLOAD:”Download”,SHARE:”Share”,ZOOM:”Zoom”},de:{CLOSE:”Schließen”,NEXT:”Weiter”,PREV:”Zurück”,ERROR:”Die angeforderten Daten konnten nicht geladen werden. Bitte versuchen Sie es später nochmal.”,PLAY_START:”Diaschau starten”,PLAY_STOP:”Diaschau beenden”,FULL_SCREEN:”Vollbild”,THUMBS:”Vorschaubilder”,DOWNLOAD:”Herunterladen”,SHARE:”Teilen”,ZOOM:”Vergrößern”}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),f=function(){var t,n=e.createElement(“fakeelement”),o={transition:”transitionend”,OTransition:”oTransitionEnd”,MozTransition:”transitionend”,WebkitTransition:”webkitTransitionEnd”};for(t in o)if(void 0!==n.style[t])return o[t];return”transitionend”}(),p=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(o[t]=e)}),o},g=function(t){var o,i;return!(!t||t.ownerDocument!==e)&&(n(“.fancybox-container”).css(“pointer-events”,”none”),o={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},i=e.elementFromPoint(o.x,o.y)===t,n(“.fancybox-container”).css(“pointer-events”,””),i)},b=function(t,e,o){var i=this;i.opts=h({index:o},n.fancybox.defaults),n.isPlainObject(e)&&(i.opts=h(i.opts,e)),n.fancybox.isMobile&&(i.opts=h(i.opts,i.opts.mobile)),i.id=i.opts.id||++c,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(t),i.group.length&&i.init()};n.extend(b.prototype,{init:function(){var o,i,a=this,s=a.group[a.currIndex],r=s.opts;r.closeExisting&&n.fancybox.close(!0),n(“body”).addClass(“fancybox-active”),!n.fancybox.getInstance()&&!1!==r.hideScrollbar&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n(“head”).append(‘
‘}}),e(t).on(“click”,”[data-fancybox-share]”,function(){var t,o,i=e.fancybox.getInstance(),a=i.current||null;a&&(“function”===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,”image”===a.type?encodeURIComponent(a.src):””).replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):””),e.fancybox.open({src:i.translate(i,o),type:”html”,opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one(“beforeClose.fb”,function(){t.close(null,0)}),e.$content.find(“.fancybox-share__button”).click(function(){return window.open(this.href,”Share”,”width=550, height=450″),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(t,e,n){“use strict”;function o(){var e=t.location.hash.substr(1),n=e.split(“-“),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join(“-“);return{hash:e,index:o<1?1:o,gallery:i}}function i(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,""!==(n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"onInit.fb":function(t,e){var n,i;!1!==e.group[e.currIndex].opts.hash&&(n=o(),(i=a(e))&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&!1!==i.opts.hash&&(r=a(o))&&(o.currentHash=r+(o.group.length>1?”-“+(i.index+1):””),t.location.hash!==”#”+o.currentHash&&(s&&!o.origHash&&(o.origHash=t.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){“replaceState”in t.history?(t.history[s?”pushState”:”replaceState”]({},e.title,t.location.pathname+t.location.search+”#”+o.currentHash),s&&(o.hasCreatedHistory=!0)):t.location.hash=o.currentHash,o.hashTimer=null},300)))},”beforeClose.fb”:function(n,o,i){i&&!1!==i.opts.hash&&(clearTimeout(o.hashTimer),o.currentHash&&o.hasCreatedHistory?t.history.back():o.currentHash&&(“replaceState”in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(o.origHash||””)):t.location.hash=o.origHash),o.currentHash=null)}}),n(t).on(“hashchange.fb”,function(){var t=o(),e=null;n.each(n(“.fancybox-container”).get().reverse(),function(t,o){var i=n(o).data(“FancyBox”);if(i&&i.currentHash)return e=i,!1}),e?e.currentHash===t.gallery+”-“+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):””!==t.gallery&&i(t)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(window,document,jQuery),function(t,e){“use strict”;var n=(new Date).getTime();e(t).on({“onInit.fb”:function(t,e,o){e.$refs.stage.on(“mousewheel DOMMouseScroll wheel MozMousePixelScroll”,function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);class contabeisLoad{static load(o){contabeisLoad.canRun=!0,o?o*=6e4:o=36e4,contabeisLoad.link=window.location.href,setTimeout(contabeisLoad.run,o)}static run(){1==contabeisLoad.canRun&&$.ajax({url:"https://www.contabeis.com.br/gravaAcessoPixel",context:document.body,error:function(o,a){return!1},success:function(){try{window.location.reload(!0)}catch(o){setTimeout(function(){window.location.href=contabeisLoad.link},1e3)}}})}static setPause(){contabeisLoad.canRun=!1}}
var scriptAdsCarregado=!1;$(window).load(function(){$.expr[':'].external=function(obj){if($(obj).parents(".texto").hasClass("publipost"))return!1;if($(obj).hasClass("link-parceiro"))return!1;var url=$(obj).attr("href");if(url==undefined)return!1;if(url=='#'||url==''||url.includes('javascript:'))return!1;try{var domain=(new URL(url));var hostname=domain.hostname;if(hostname.includes('.contabeis.com')||hostname.includes('conbcon.com'))return!1}catch(e){return!1}
return!obj.href.match(/^mailto\:/)&&(obj.hostname!=location.hostname)&&!obj.href.match(/^javascript\:/)&&!obj.href.match(/^$/)};$('a:external').attr('target','_blank').attr('rel','nofollow')});$(document).ready(function(){!function(t){t.fn._checkbox=function(){return this.each(function(){t(this).is(":checkbox")&&t(this).wrap('‘).before(““).change(function(){t(this).is(“:checked”)?t(this).parent().addClass(“ativo”):t(this).parent().removeClass(“ativo”)}).trigger(“change”)})},t.fn._radio=function(){return this.each(function(){t(this).is(“:radio”)&&(t(this).wrap(‘‘).before(““),t(this).change(function(){t(this).is(“:checked”)?(t(“[name=”+t(this).attr(“name”)+”]”).parent().removeClass(“ativo”),t(this).parent().addClass(“ativo”)):t(this).parent().removeClass(“ativo”)}).trigger(“change”))})}}(jQuery);$(“.menuPrincipal.linkDireto a[href=” .mascaraFlutuante .boxBuscaMenu”).toggleClass(‘searchOpen’)}});$(“a.redirect-link”).mousedown(function(event){event.preventDefault();obj=$(this);var title=$(obj).text();var url=$(obj).attr(“href”);try{var domain=(new URL(url));var hostname=domain.hostname;if(hostname.includes(‘.contabeis.com’)||hostname.includes(‘conbcon.com’)){return!0}}catch(e){return!1}
var novaUrl=”redirect?url=”+encodeURIComponent($(obj).attr(“href”))+’&title=”+encodeURIComponent(title);switch(event.which){case 1:window.open(novaUrl,”_blank’);break;case 2:window.open(novaUrl,’_blank’);break;case 3:$(obj).attr(“href”,novaUrl);break;default:$(obj).attr(“href”,novaUrl)}});const observer=new IntersectionObserver((entries,observer)=>{entries.forEach(entry=>{if(entry.isIntersecting){let elem=entry.target;let banner=elem.getAttribute(‘data-banner’);console.log(banner);$.ajax({url:’gravaAcesso’,type:’POST’,data:{id:banner,tipo:’banner’},success:function(retorno){}});observer.unobserve(entry.target)}})});const elementsToObserve=document.querySelectorAll(‘.bannerContabeis’);elementsToObserve.forEach(element=>observer.observe(element));if($(“#recaptchaResponse”).length){$.getScript(”
$(“span.fecharBannerMobile”).click(function(){var div=$(this).parent();div.toggleClass(“fechado”);if(div.hasClass(“fechado”)){$(“span.fecharBannerMobile”).text(‘^’)}else{$(“span.fecharBannerMobile”).text(‘x’)}});$(‘input:checkbox’).not(“.newsletter_section”)._checkbox();$(‘input:radio’).not(“.newsletter_section”)._radio();$(“.submenuLogin .botaoEntrar”).click(function(){LogandoUsuario()});$(‘.submenuLogin input[placeholder]’).keyup(function(e){if(e.which==13){LogandoUsuario()}});$(‘.blocoPrimeiroMenu li a#sairMenu’).click(function(){$.post(“logout”,function(data){location.reload()})});if($(‘.avisoCookie’).length){$(‘.avisoCookie span.aceitar’).click(function(){$(‘.avisoCookie’).addClass(“fechado”)})}
$(‘header nav li .submenu.submenuConteudo .blocoPrimeiroMenu > li, header nav li .submenu.submenuLogado .blocoPrimeiroMenu > li’).hover(function(){if($(‘header nav li .submenu.submenuConteudo .blocoPrimeiroMenu li, header nav li .submenu.submenuLogado .blocoPrimeiroMenu li’).hasClass(“ativo”)){$(this).siblings().removeClass(“ativo”)}});$(“header nav li:nth-child(2)”).mouseleave(function(){if(!$(‘header nav li .submenu.submenuConteudo .blocoPrimeiroMenu > li’).hasClass(“ativo”)){$(‘header nav li .submenu.submenuConteudo .blocoPrimeiroMenu li:first-of-type’).addClass(“ativo”)}});$(“header nav li.logado”).mouseleave(function(){if(!$(‘header nav li .submenu.submenuLogado .blocoPrimeiroMenu > li’).hasClass(“ativo”)){$(‘header nav li .submenu.submenuLogado .blocoPrimeiroMenu li:first-of-type’).addClass(“ativo”)}});$(‘[href=#login]’).click(function(e){e.preventDefault();$(‘header nav li .submenu.submenuLogin’).show();$(‘._1000 body, ._1280 body’).prepend(“
“)});$(‘.submenu.submenuLogin .menuEstatico’).click(function(e){e.preventDefault();$(‘header nav li .submenu.submenuLogin’).hide();$(‘body .mascaraTela’).remove()});$(‘.submenu .menuEstatico .voltarSubmenu’).click(function(e){e.preventDefault();$(‘header nav li .submenu .blocoPrimeiroMenu li, header nav li.menuPrincipal’).removeClass(“ativo”)});$(‘#menuMobile’).click(function(e){$(‘body’).toggleClass(‘open’);$(this).toggleClass(‘open’);if($(‘body’).hasClass(“open”)){}else{$(‘header nav .submenu’).hide();$(‘header nav li’).removeClass(‘ativo’)}});$(‘._640 header nav li:not(.linkDireto) > a’).click(function(e){e.preventDefault();$(‘._640 header nav .submenu’).hide();if($(this).parents().hasClass(‘ativo’)){$(this).next().hide();$(this).parent().removeClass(‘ativo’)}else{$(this).next().show();$(‘header nav ul li’).removeClass(‘ativo’);$(this).parent().addClass(‘ativo’)}});$(‘ul.compartilhamento span[redeSocial]’).click(function(e){e.preventDefault();var titulo=$(this).parents(‘ul’).attr(‘titulo’);var url=$(this).parents(‘ul’).attr(‘href’);var tipo=$(this).attr(‘redeSocial’);compartilhamentoRedeSocial(tipo,url,titulo);return!1})});$(document).ready(function(){gravaAcesso();var observer=new IntersectionObserver(intersectionCallback,options);var adContainers=document.getElementsByClassName(‘ad-container’);for(var i=0;i100){$(‘body’).addClass(‘_flutuante’)}else{$(‘body’).removeClass(‘_flutuante’)}
if(!firedToast){if(getCookie(“contabeistoast”)==1){firedToast=!0;return!1}
if(arrayToast.hasOwnProperty(‘pop_titulo’))
pushonpage({imageUrl:arrayToast.pop_imagem,imageWidth:150,imageHeight:78,imageAlt:arrayToast.pop_titulo,id:arrayToast.pop_id,html:”+’
‘+arrayToast.pop_chamada+’
‘+’
‘+arrayToast.pop_titulo+’
‘+’
‘+arrayToast.pop_descricao+’
‘+”,});firedToast=!0}});function resolucao(){var _htmlresolucao=document.querySelector(‘html’);if(window.innerWidth<=1100){_htmlresolucao.classList.add('_640')}else{_htmlresolucao.classList.remove('_640')}
if(window.innerWidth>1100){_htmlresolucao.classList.add(‘_1000’)}else{_htmlresolucao.classList.remove(‘_1000’)}
var _barracor=document.querySelector(‘.barraCor’);if(_barracor!=undefined){if(window.innerWidth>1700){_barracor.style.width=”80%”}else{_barracor.style.width=”100%”}}}
resolucao();function gravaAcesso(){$(“[gravaacesso=1]”).each(function(){_gravaAcesso=$(this);var verificaAcesso=_gravaAcesso.length;if(verificaAcesso==1){var id=_gravaAcesso.attr(“id”);var tipo=_gravaAcesso.attr(“tipo”);var user=_gravaAcesso.attr(“user”);$.ajax({url:’gravaAcesso’,type:’POST’,data:{id:id,tipo:tipo,user:user},success:function(retorno){}})}})}
function LogandoUsuario(){if($(‘.boxMenu .botaoEntrar’).hasClass(‘disable’)){return!1}
if(!validateEmail($(“.boxMenu input.email”).val())||$(“.boxMenu input.email”).val()==”){abreAlerta(“Login”,”Preencha seu e-mail e senha”,’alerta’,0,5000);return!1}
$(‘.boxMenu .botaoEntrar’).text(‘…’).addClass(“disable”);grecaptcha.ready(function(){grecaptcha.execute(‘6LfL35YUAAAAADXgsYzCc24ZSugiboKzhncT8bO0′,{action:’login’}).then(function(token){$.post(“login”,{email:$(“.boxMenu input.email”).val(),senha:$(“.boxMenu input.senha”).val(),lembra:$(“.boxMenu input[name=loginlembrar]”).is(‘:checked’),recaptcha_response:token},function(data){var obj=JSON.parse(data);if(obj.codigo==0||obj.codigo==1){abreAlerta(“Login”,obj.descricao,’sucesso’,1,3000)}else{$(‘.boxMenu .botaoEntrar’).text(‘ENTRAR’).removeClass(“disable”);abreAlerta(“Login”,obj.descricao,’erro’,0,5000)}})})})}
function abreAlerta(titulo,texto,status,reload=0,delayT=2000,botao=0,botaoTexto=”,url=””){switch(status){case ‘sucesso’:var cor=”#598d2f”;var icone=”icon-checkSimplescontabeis”;break;case ‘alerta’:var cor=”#c45b1c”;var icone=”icon-notificacaocontabeis”;break;case ‘erro’:var cor=”#9c1313″;var icone=”icon-deletarcontabeis”;break}
$(‘body’).append(‘
‘+titulo+’
‘+texto+’
‘);setTimeout(function(){$(‘.alertaGeral’).addClass(‘ativo’)},300);if(reload==1){if(url==”){setTimeout(function(){location.reload()},delayT)}else{setTimeout(function(){window.location.href=url},delayT)}}else{setTimeout(function(){$(‘.alertaGeral’).removeClass(‘ativo’).remove()},delayT)}}
function compartilhamentoRedeSocial(tipoRedeSocial,url,titulo){switch(tipoRedeSocial){case ‘facebook’:var urlMontada=” ‘twitter’:var urlMontada=” – “+url;break;case ‘linkedin’:var urlMontada=” ‘whatsapp’:var urlMontada=”whatsapp://send?text=”+titulo+” – “+url;break;default:}
window.open(urlMontada,’_blank’,’toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, width=600, height=300, top=200, left=450′)}
function validateEmail(email){var re=/\S+@\S+\.\S+/;return re.test(email)}
function shuffleArray(array){for(let i=array.length-1;i>0;i–){const j=Math.floor(Math.random()*(i+1));[array[i],array[j]]=[array[j],array[i]]}}
if(window.location.hash&&window.location.hash==’#_=_’){window.location.hash=””}
!function(t){var e=function(e){this._options={checkOnLoad:!1,resetOnEnd:!1,loopCheckTime:50,loopMaxNumber:5,baitClass:”pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links”,baitStyle:”width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;”,debug:!1},this._var={version:”3.2.1″,bait:null,checking:!1,loop:null,loopNumber:0,event:{detected:[],notDetected:[]}},void 0!==e&&this.setOption(e);var o=this,i=function(){setTimeout(function(){!0===o._options.checkOnLoad&&(!0===o._options.debug&&o._log(“onload->eventCallback”,”A check loading is launched”),null===o._var.bait&&o._creatBait(),setTimeout(function(){o.check()},1))},1)};void 0!==t.addEventListener?t.addEventListener(“load”,i,!1):t.attachEvent(“onload”,i)};e.prototype._options=null,e.prototype._var=null,e.prototype._bait=null,e.prototype._log=function(t,e){console.log(“[BlockAdBlock][“+t+”] “+e)},e.prototype.setOption=function(t,e){if(void 0!==e){var o=t;(t={})[o]=e}for(var i in t)this._options[i]=t[i],!0===this._options.debug&&this._log(“setOption”,’The option “‘+i+'” he was assigned to “‘+t[i]+'”‘);return this},e.prototype._creatBait=function(){var e=document.createElement(“div”);e.setAttribute(“class”,this._options.baitClass),e.setAttribute(“style”,this._options.baitStyle),this._var.bait=t.document.body.appendChild(e),this._var.bait.offsetParent,this._var.bait.offsetHeight,this._var.bait.offsetLeft,this._var.bait.offsetTop,this._var.bait.offsetWidth,this._var.bait.clientHeight,this._var.bait.clientWidth,!0===this._options.debug&&this._log(“_creatBait”,”Bait has been created”)},e.prototype._destroyBait=function(){t.document.body.removeChild(this._var.bait),this._var.bait=null,!0===this._options.debug&&this._log(“_destroyBait”,”Bait has been removed”)},e.prototype.check=function(t){if(void 0===t&&(t=!0),!0===this._options.debug&&this._log(“check”,”An audit was requested “+(!0===t?”with a”:”without”)+” loop”),!0===this._var.checking)return!0===this._options.debug&&this._log(“check”,”A check was canceled because there is already an ongoing”),!1;this._var.checking=!0,null===this._var.bait&&this._creatBait();var e=this;return this._var.loopNumber=0,!0===t&&(this._var.loop=setInterval(function(){e._checkBait(t)},this._options.loopCheckTime)),setTimeout(function(){e._checkBait(t)},1),!0===this._options.debug&&this._log(“check”,”A check is in progress …”),!0},e.prototype._checkBait=function(e){var o=!1;if(null===this._var.bait&&this._creatBait(),null===t.document.body.getAttribute(“abp”)&&null!==this._var.bait.offsetParent&&0!=this._var.bait.offsetHeight&&0!=this._var.bait.offsetLeft&&0!=this._var.bait.offsetTop&&0!=this._var.bait.offsetWidth&&0!=this._var.bait.clientHeight&&0!=this._var.bait.clientWidth||(o=!0),void 0!==t.getComputedStyle){var i=t.getComputedStyle(this._var.bait,null);!i||”none”!=i.getPropertyValue(“display”)&&”hidden”!=i.getPropertyValue(“visibility”)||(o=!0)}!0===this._options.debug&&this._log(“_checkBait”,”A check (“+(this._var.loopNumber+1)+”/”+this._options.loopMaxNumber+” ~”+(1+this._var.loopNumber*this._options.loopCheckTime)+”ms) was conducted and detection is “+(!0===o?”positive”:”negative”)),!0===e&&(this._var.loopNumber++,this._var.loopNumber>=this._options.loopMaxNumber&&this._stopLoop()),!0===o?(this._stopLoop(),this._destroyBait(),this.emitEvent(!0),!0===e&&(this._var.checking=!1)):null!==this._var.loop&&!1!==e||(this._destroyBait(),this.emitEvent(!1),!0===e&&(this._var.checking=!1))},e.prototype._stopLoop=function(t){clearInterval(this._var.loop),this._var.loop=null,this._var.loopNumber=0,!0===this._options.debug&&this._log(“_stopLoop”,”A loop has been stopped”)},e.prototype.emitEvent=function(t){!0===this._options.debug&&this._log(“emitEvent”,”An event with a “+(!0===t?”positive”:”negative”)+” detection was called”);var e=this._var.event[!0===t?”detected”:”notDetected”];for(var o in e)!0===this._options.debug&&this._log(“emitEvent”,”Call function “+(parseInt(o)+1)+”/”+e.length),e.hasOwnProperty(o)&&e[o]();return!0===this._options.resetOnEnd&&this.clearEvent(),this},e.prototype.clearEvent=function(){this._var.event.detected=[],this._var.event.notDetected=[],!0===this._options.debug&&this._log(“clearEvent”,”The event list has been cleared”)},e.prototype.on=function(t,e){return this._var.event[!0===t?”detected”:”notDetected”].push(e),!0===this._options.debug&&this._log(“on”,’A type of event “‘+(!0===t?”detected”:”notDetected”)+'” was added’),this},e.prototype.onDetected=function(t){return this.on(!0,t)},e.prototype.onNotDetected=function(t){return this.on(!1,t)},t.BlockAdBlock=e,void 0===t.blockAdBlock&&(t.blockAdBlock=new e({checkOnLoad:!0,resetOnEnd:!0}))}(window);function isPrivate(t){t||(t=function(){});var n=window.RequestFileSystem||window.webkitRequestFileSystem;if(n)return n(window.TEMPORARY,1,t.bind(this,!1),t.bind(this,!0));if(window.indexedDB&&/Firefox/.test(window.navigator.userAgent))try{var e=window.indexedDB.open(“test”),i=0,r=limit=10,u=function(n){return i>=limit?t(!0):window.setTimeout(n,++i*r)},d=function(){return”done”===e.readyState?t(!e.result):u(d)};return u(d)}catch(n){return t(!0)}if(window.navigator.userAgent.match(/(MSIE|Trident|Edge)/))try{return t(!window.indexedDB)}catch(n){return t(!0)}try{return window.openDatabase(null,null,null,null),t(!1)}catch(n){return t(!0)}}
function shuffleArray(o){for(let t=o.length-1;t>0;t–){const f=Math.floor(Math.random()*(t+1));[o[t],o[f]]=[o[f],o[t]]}}
const elementIsVisibleInViewport=(el,partiallyVisible=!1)=>{const{top,left,bottom,right}=el.getBoundingClientRect();const{innerHeight,innerWidth}=window;return partiallyVisible?((top>0&&top0&&bottom0&&left0&&right=0&&left>=0&&bottom<=innerHeight&&right<=innerWidth};var r7Trigger=function(){var cn=document.getElementsByClassName("dynamicAdR7"),tg,sz,dp,dc,ls,st=[],da,wd=(function(){var ie=/msie/i.test(navigator.userAgent),ieBox=ie&&(document.compatMode==null||document.compatMode=="BackCompat"),canvasEl=ieBox?document.body:document.documentElement;return window.innerWidth||canvasEl.clientWidth})(),ok=!1,tm=[],ifr,ifrd;if(cn.length>0){for(var i=0;i0||tg.offsetHeight>0);var visible=tg.classList.contains(‘visibleComplete’);if(contBanner.bannerAlternativo&&da===null&&dsp&&visible){contBanner.addBanners(tg);tg.setAttribute(“data-ad”,”true”)}else if(sz!==null&&dp!==null&&dc!==null&&sz!==””&&dp!==””&&dc!==””&&da===null&&dsp&&visible){if(contBanner.banners[dp]==undefined){contBanner.banners[dp]=1}else{contBanner.banners[dp]++;dp=dp+contBanner.banners[dp]}
tg.setAttribute(“data-ad”,”true”);sz=sz.replace(/\[|\]/g,””).split(“,”);for(var j=0;j0){for(var l=0;l0){sz=tm;ok=!0}}if(ok){ifr=document.createElement(‘iframe’);ifr.id=”ad-r7-“+dp;ifr.width=”0″;ifr.height=”0″;ifr.frameBorder=”no”;ifr.scrolling=”no”;ifr.marginWidth=”0″;ifr.marginHeight=”0″;ifr.vspace=”0″;ifr.hspace=”0″;ifr.src=”https://www.contabeis.com.br/about:blank”;tg.appendChild(ifr);ifrd=ifr.contentWindow?ifr.contentWindow.document:((ifr.contentDocument)?ifr.contentDocument.document:ifr.contentDocument);ifrd.open();ifrd.write(‘<\/body>‘);ifrd.close()}}finally{}}}}}
class contBanner{static start(){contBanner.obj1=JSON.parse(‘[{“height”:250,”img”:”assets\\/img\\/contabeisp\\/campanhas\\/podcast970x250.png”,”link”:”https:\\/\\/www.contabeis.com.br\\/conteudo\\/podcasts”,”tamanho”:”[970,250]”,”target”:”_blank”,”width”:970},{“height”:600,”img”:”assets\\/img\\/contabeisp\\/campanhas\\/podcast300x600.png”,”link”:”https:\\/\\/www.contabeis.com.br\\/conteudo\\/podcasts”,”tamanho”:”[300,600]”,”target”:”_blank”,”width”:300},{“height”:250,”img”:”assets\\/img\\/contabeisp\\/campanhas\\/podcast300x250.png”,”link”:”https:\\/\\/www.contabeis.com.br\\/conteudo\\/podcasts”,”tamanho”:”[300,250]”,”target”:”_blank”,”width”:300},{“height”:90,”img”:”assets\\/img\\/contabeisp\\/campanhas\\/podcast728x90.png”,”link”:”https:\\/\\/www.contabeis.com.br\\/conteudo\\/podcasts”,”tamanho”:”[728,90]”,”target”:”_blank”,”width”:728},{“height”:50,”img”:”assets\\/img\\/contabeisp\\/campanhas\\/podcast320x50.png”,”link”:”https:\\/\\/www.contabeis.com.br\\/conteudo\\/podcasts”,”tamanho”:”[320,50]”,”target”:”_blank”,”width”:320}]’);contBanner.obj={};shuffleArray(contBanner.obj1);Object.entries(contBanner.obj1).forEach(([key,value])=>{contBanner.obj[value.tamanho]=value});contBanner.banners={};contBanner.bannerAlternativo=!1;contBanner.check();contBanner.viewOBR=!1}
static check(){isPrivate(function(isPrivate){if(isPrivate){contBanner.bannerAlternativo=!0}else{blockAdBlock=new BlockAdBlock({checkOnLoad:!0,resetOnEnd:!0});contBanner.pronto=!0;if(typeof blockAdBlock===’undefined’){adBlockDetected()}else{blockAdBlock.onDetected(function(){contBanner.bannerAlternativo=!0;var cn=document.getElementsByClassName(“dynamicAdR7”);for(var i=0;i0){for(var i=0;i{toast.addEventListener(‘mouseenter’,Swal.stopTimer)
toast.addEventListener(‘mouseleave’,Swal.resumeTimer)},didClose:()=>{setCookie(‘contabeistoast’,1,0,’/’)}});Toast.fire(atributo)},function(){$.ajax({url:’gravaAcesso’,type:’POST’,data:{id:atributo.id,tipo:’pop’},success:function(retorno){}})})}
function addScriptToPage(callback,callback2){let scriptLink=”sweetalert2.all.min.js”;const scripts=document.getElementsByTagName(‘script’);for(let i=0;i