O Certificado de Depósito Bancário, popularmente conhecido como CDB, é um dos investimentos de renda fixa mais procurados pelos investidores que buscam segurança e rentabilidade.
No entanto, muitos têm dúvidas se há incidência de Imposto de Renda (IR) sobre os rendimentos obtidos nesse tipo de aplicação. A resposta é sim, o CDB está sujeito à tributação, mas a forma como isso ocorre pode variar de acordo com o tempo de aplicação.
Como funciona a cobrança de Imposto de Renda do CDB?
O Imposto de Renda incide somente sobre a rentabilidade gerada pela aplicação no momento em que você decide resgatar o valor investido. Isso significa que o imposto não é calculado com base no valor total aplicado no CDB, mas sim sobre os ganhos que você obteve com o investimento.
A alíquota do Imposto de Renda varia de acordo com o período de tempo que você mantém seu dinheiro aplicado no CDB. Quanto mais tempo você deixa seu dinheiro investido, menor será a alíquota do IR no momento do resgate. A tabela de Imposto de Renda para o CDB é regressiva, o que significa que a alíquota diminui à medida que o prazo de vencimento da aplicação aumenta.
Veja as alíquotas de Imposto de Renda em vigor para o CDB:
Até 180 dias: 22,5%;
Entre 181 e 360 dias: 20%;
Entre 361 e 720 dias: 17,5%;
Acima de 720 dias: 15%.
Por exemplo, suponha que você tenha investido R$1 mil em um CDB que paga 102% do CDI e tenha decidido resgatar o dinheiro após um ano. No momento do resgate, seu saldo total será de R$1.165,94.
Como o período de aplicação foi de 361 dias, a alíquota do Imposto de Renda a ser aplicada é de 17,5%. Portanto, você terá que descontar 17,5% sobre os R$165,94 de rendimento, o que equivale a R$29,03 (17,5% x R$165,94). Após o desconto do imposto, você terá uma rentabilidade líquida de R$136,91, o que significa que você sacará um total de R$1.136,91.
Opções de investimento isentas de Imposto de Renda
É importante notar que o CDB não é a única opção de investimento disponível. Existem outros tipos de aplicações financeiras que são isentas de Imposto de Renda, como a caderneta de poupança, Letras de Crédito do Imobiliário e do Agronegócio (LCI e LCA), Certificados de Recebíveis do Imobiliário e do Agronegócio (CRI e CRA), fundos imobiliários e debêntures incentivadas.
No entanto, é fundamental ressaltar que essas opções podem ter características e prazos diferentes do CDB, o que pode impactar sua rentabilidade. A poupança, por exemplo, é conhecida por ter um rendimento mais baixo em comparação com outros investimentos de renda fixa. Portanto, a escolha do investimento deve levar em consideração seus objetivos financeiros, perfil de risco e prazo de investimento.
Em resumo, o CDB é um investimento de renda fixa sujeito à cobrança de Imposto de Renda, e a alíquota deste imposto varia de acordo com o tempo de aplicação. Antes de investir em CDB ou qualquer outro tipo de aplicação financeira, é essencial entender a tributação envolvida e considerar como ela afetará sua rentabilidade.
‘,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(‘
“,{style:f}),b.text(this.search_field.val()),a(“body”).append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+”px”})}},Chosen}(AbstractChosen)}).call(this);$(document).ready(function(){$(‘input[mask]’).each(function(){$(this).mask($(this).attr(‘mask’))});if($(‘input[phoneBR]’).length){$(‘input[phoneBR]’).mask(‘(99) 9999-9999?9’).focusout(function(event){var target,phone,element;target=(event.currentTarget)?event.currentTarget:event.srcElement;phone=target.value.replace(/\D/g,”);element=$(target);element.unmask();if(phone.length>10){element.mask(“(99) 99999-999?9”)}else{element.mask(“(99) 9999-9999?9”)}})}
if($(“.chosen”).length){$(“.chosen”).chosen({disable_search_threshold:5,search_contains:!0})}
$(‘input[datepicker]’).each(function(){minDateValor=$(this).attr(“minDate”);maxDateValor=$(this).attr(“maxDate”);$(this).datepicker({showAnim:”slideDown”,changeMonth:!0,minDate:minDateValor,maxDate:maxDateValor,changeYear:!0,dateFormat:’dd/mm/yy’,monthNamesShort:[“Janeiro”,”Fevereiro”,”Março”,”Abril”,”Maio”,”Junho”,”Julho”,”Agosto”,”Setembro”,”Outubro”,”Novembro”,”Dezembro”]})});$(‘textarea’).each(function(){$(this).tagsInput()})
$(‘input[telefoneBr]’).each(function(){$(this).brTelMask()});$(‘textarea’).each(function(){autosize($(this))});$(‘input:file’)._file();$(‘input[money]’)._money();$(“[buscacidade=1]”).on(‘change’,function(){var id=$(this).val();$(“[name=cidade]”).load(“cidades”,{uf:id},function(){$(this).chosen(“destroy”).chosen({disable_search_threshold:5,search_contains:!0})})});$(‘textarea[editorTexto]’).each(function(){$(this).wrap(‘
‘);tinymce.init({selector:”textarea[editorTexto]”,menubar:!1,statusbar:!1,language:”pt_BR”,width:’100%’,plugins:[“advlist preview autoresize autolink lists link”,”code fullscreen”,”contextmenu paste”],contextmenu:”link unlink paste”,style_formats:[{title:’Titulo’,inline:’span’,classes:’titulo’}],paste_text_use_dialog:!1,paste_auto_cleanup_on_paste:!0,paste_remove_spans:!0,paste_remove_styles:!0,paste_text_sticky:!0,relative_urls:!1,convert_urls:!1,remove_script_host:!1,force_br_newlines:!0,forced_root_block:’p’,invalid_elements:’script, img’,content_css:[‘./tinymce/codepen.min.css’],toolbar:”preview | code | undo redo | bold italic | bullist | superscript subscript | link unlink “})})});jQuery.fn.brTelMask=function(){return this.each(function(){var $el=$(this);$el.mask(“(99) 9999-9999?9″);$el.keyup(function(){var phone=$el.val().replace(/\D/g,”);if(phone.length>10){$el.mask(“(99) 99999-999?9”)}else if(phone.length>9){$el.mask(“(99) 9999-9999?9”)}})})};$.fn._file=function(){return this.each(function(){if($(this).is(‘:file’)){$(this).wrap(‘‘).before(‘‘).after(‘ clique para selecionar…‘).change(function(){if(this.files.length>1){val=this.files.length+” arquivos selecionados”}else{val=”“+$(this).val().replace(‘C:\\fakepath\\’,”)}
$(this).next().html(val)})}})}
$.fn._money=function(){return this.each(function(){if(typeof $(this).attr(‘money’)!==’undefined’){param={symbol:((typeof $(this).attr(‘money-symbol’)!==’undefined’)?$(this).attr(‘money-symbol’):”R$”),decimal:((typeof $(this).attr(‘money-decimal’)!==’undefined’)?$(this).attr(‘money-symbol’):”,”),precision:((typeof $(this).attr(‘money-precision’)!==’undefined’)?$(this).attr(‘money-symbol’):2),thousands:((typeof $(this).attr(‘money-thousands’)!==’undefined’)?$(this).attr(‘money-symbol’):”.”),showSymbol:((typeof $(this).attr(‘money-hide-symbol’)!==’undefined’)?!1:!0)}
$(this).val($(this).val().replace(‘.’,’,’)).maskMoney(param)}})};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:” 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