PageSourceSearch

https://www.unimedbh.com.br/themes/custom/unimedbh/build/js/main.min.js?tm7bh1

js unimedbh.com.br collected 2026-10-01 13:04:14 UTC 20,095 bytes, 4 lines download raw bytes

1function screenSize(){return window.innerWidth}!function(a){Drupal.behaviors.custom_ajax_loading={attach:function(e,t){a(".ajax-loading-wrappers").length||a("#block-main-page-content").append(`<div class='ajax-loading-wrapper'>
2                            <div class='ajax-loading-animation'/>
3                            <p>CARREGANDO</p>
4                        </div>`),a(".ajax-loading-wrapper").hide(),a(document).ajaxStart(function(){a(".ajax-loading-wrapper").show()}),a(document).ajaxComplete(function(){a(".ajax-loading-wrapper").hide()})}},a(window).resize(function(){a(".ajax-loading-wrapper").hide()})}(jQuery),function(e){e(window).on("load",function(){function e(e,t){for(var a=document.querySelectorAll(e),r=0;r<a.length;r++){var n=a[r];if(-1<n.textContent.toLowerCase().indexOf(t.toLowerCase()))return n}return null}var t=e(".coh-ce-cpt_footer-1699b730 .menu-item a span","fale com a manu"),a=e("#cardCont .link","fale com a manu");function r(e){e.preventDefault();e=document.getElementById("blip-chat-icon");console.log(e),e.click()}a&&a.closest("a.coh-link").addEventListener("click",r),t&&t.addEventListener("click",r)})}(jQuery,Drupal);let arrayTel=document.querySelectorAll('a[href^="tel"]');function copyToClipboard(e){return navigator&&navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e):Promise.reject("The Clipboard API is not available.")}function getDimensions(){return window.innerWidth}function toggleExpanded(e){var t=e.getAttribute("aria-expanded");return removeClassOpened(),"false"===t?(e.parentNode.classList.add("header-opened"),e.setAttribute("aria-expanded","true")):(e.parentNode.classList.remove("header-opened"),e.setAttribute("aria-expanded","false"))}function removeClassOpened(){[...document.querySelectorAll(".header-opened")].forEach(e=>{e.classList.remove("header-opened")})}function toggleSearchBlock(e){var t=e.style.display;return e.style.display="none"===t?"block":"none"}function check(e){return"false"!==e.getAttribute("aria-expanded")}function bodyOverflow(){var e=document.querySelector("body");e.classList.contains("noscroll")?e.classList.remove("noscroll"):e.classList.add("noscroll")}[...arrayTel].forEach(t=>{t.addEventListener("click",function(e){1023<screenSize()&&(e.preventDefault(),copyToClipboard(t.getAttribute("href").replace(/\D+/,"")))})}),function(r){r("footer .menu-level-0 li a").each(function(){r(this).click(function(){var e=r(this),t=e.closest("div").siblings().text(),a=e.text(),e=e.attr("target");dataLayer.push({label:t?t+" - "+a:a,category:"footer",event:"click"+e,action:"action"})})}),r("#block-footerhorizontal ul li a").each(function(){r(this).click(function(){var e=r(this),t=e.text();e.attr("target");dataLayer.push({label:t,category:"footer",event:"click_self",action:"action"})})})}(jQuery,Drupal),function(a){Drupal.behaviors.hbsptPlanosAdesao={attach:function(e,t){a(document).ready(function(){var e=a(".form-columns-1, .form-columns-2, .form-columns-3");window.location.href.includes("planos-de-adesao")&&a(e).each(function(){var e=a(this);0<e.children().filter(function(){return"none"===a(this).css("display")}).length&&e.remove()})})}}}(jQuery),function(){function e(){var e;window.hubspotLoaded||(window.hubspotLoaded=!0,(e=document.createElement("script")).src="https://js.hsforms.net/forms/embed/v2.js",e.async=!0,document.body.appendChild(e))}window.addEventListener("scroll",e,{once:!0}),window.addEventListener("click",e,{once:!0})}();let delay=350;var throttled=!1;let menulevel0=document.querySelectorAll("#block-navegacaoprincipal .menu-level-0 > li > a"),menulevel1=document.querySelectorAll("#block-navegacaoprincipal .menu-level-1 > li > a"),menulevel2=document.querySelectorAll("#block-navegacaoprincipal .menu-level-2 > li > a"),menulevel3=document.querySelectorAll("#block-navegacaoprincipal .menu-level-3 > li > a"),menuAcessoRapido=document.querySelectorAll("#acesso-rapido a"),navbarTrigger=document.createElement("span"),navbarTriggerHamburguer=(navbarTrigger.classList.add("navbarTrigger"),document.createElement("span")),menuNavbar=(navbarTriggerHamburguer.classList.add("navbarTriggerHamburguer"),document.querySelector("#navbar")),divOverlay=(menuNavbar.insertAdjacentElement("beforebegin",navbarTrigger),navbarTrigger.setAttribute("aria-expanded","fal
4se"),navbarTrigger.appendChild(navbarTriggerHamburguer),document.createElement("span")),searchBlock=(divOverlay.classList.add("divOverlay"),menuNavbar.insertAdjacentElement("afterend",divOverlay),divOverlay.setAttribute("aria-expanded","false"),document.querySelector("#search-results-container")),menubutton=document.querySelectorAll(".dropdownbutton > nav > ul > li > a"),souCliente=document.querySelector("#block-navegacaoprincipal .menu-level-0 > li > a"),queroSerCliente=document.querySelector("#block-navegacaoprincipal .menu-level-0 > li:nth-child(2) > a"),blockmenubutton=document.querySelector("#dropdownmenubutton"),blockmenubutton2=document.querySelector("#dropdownmenubutton2"),divNavbar=document.createElement("div"),arrowSearch=(divNavbar.classList.add("divNavbar"),menuNavbar.prepend(divNavbar),document.createElement("div")),backArrowTrigger=(arrowSearch.classList.add("arrowSearch"),divNavbar.appendChild(arrowSearch),document.createElement("span")),searchTrigger=(backArrowTrigger.classList.add("backArrowTrigger"),arrowSearch.appendChild(backArrowTrigger),document.createElement("span")),searchInput=(searchTrigger.classList.add("searchTrigger"),arrowSearch.appendChild(searchTrigger),searchTrigger.setAttribute("aria-expanded","false"),document.querySelector("#hidden-search-bar")),searchClear=document.querySelector("#search-input-close"),divBreadcrumb=document.createElement("div"),spanInicio=(divBreadcrumb.classList.add("divBreadcrumb"),divBreadcrumb.setAttribute("level-visible","0"),divNavbar.append(divBreadcrumb),document.createElement("span")),spanlevel1=(spanInicio.textContent="Inicio",document.createElement("span")),spanlevel2=document.createElement("span"),linksBreadcrumb=(divBreadcrumb.appendChild(spanInicio),divBreadcrumb.appendChild(spanlevel1),divBreadcrumb.appendChild(spanlevel2),localStorage.getItem("queroSerCliente","false"),document.querySelector("#block-unimedbh-breadcrumbs > nav > ol > li:first-child > a")),linkIcon=document.querySelector("#header #link-icon"),listLinksSubmenu=document.querySelectorAll("#block-navegacaoprincipal .sm_left .menu-level-2 > li:first-of-type > a");function menu(){souCliente.setAttribute("aria-expanded","true"),blockmenubutton.classList.add("show"),linkIcon.setAttribute("href","/home-sou-cliente"),"false"==localStorage.getItem("queroSerCliente")&&(souCliente.setAttribute("aria-expanded","true"),blockmenubutton.classList.add("show"),linkIcon.setAttribute("href","/home-sou-cliente")),"true"==localStorage.getItem("queroSerCliente")&&(queroSerCliente.setAttribute("aria-expanded","true"),souCliente.setAttribute("aria-expanded","false"),blockmenubutton2.classList.add("show"),blockmenubutton.classList.remove("show"),linkIcon.setAttribute("href","/home-quero-ser-cliente")),getDimensions()<1024&&(souCliente.setAttribute("aria-expanded","false"),queroSerCliente.setAttribute("aria-expanded","false")),linksBreadcrumb&&(linksBreadcrumb.textContent="SOU CLIENTE","false"==localStorage.getItem("queroSerCliente")?(linksBreadcrumb.textContent="SOU CLIENTE",linksBreadcrumb.setAttribute("href","/home-sou-cliente")):"true"==localStorage.getItem("queroSerCliente")&&(linksBreadcrumb.textContent="QUERO SER CLIENTE",linksBreadcrumb.setAttribute("href","/home-quero-ser-cliente")))}window.addEventListener("resize",function(){if(!throttled){if(getDimensions(),getDimensions()<1024&&([...menulevel0].forEach(e=>{e.setAttribute("aria-expanded","false")}),[...menulevel1].forEach(e=>{e.setAttribute("aria-expanded","false")}),[...menulevel2].forEach(e=>{e.setAttribute("aria-expanded","false")}),divBreadcrumb.removeAttribute("level-visible",0),backArrowTrigger.removeAttribute("level-visible",0)),1024<=getDimensions()){if(souCliente.setAttribute("aria-expanded","true"),"false"==localStorage.getItem("queroSerCliente"))return souCliente.setAttribute("aria-expanded","true"),void queroSerCliente.setAttribute("aria-expanded","false");if("true"==localStorage.getItem("queroSerCliente"))return souCliente.setAttribute("aria-expanded","false"),void queroSerCliente.setAttribute("aria-expanded","true");searchBlock.classList.remove("search-open"),searchBlock.classList.remove("search-translate")}throttled=!0,setTimeout(function(){throttled=!1},delay)}}),souCliente.addEventListener("click",function(){localStorage.setItem("queroSerCliente","false"),(getDimensions()<1024||"false"==localStorage.getItem("queroSerCliente"))&&(blockmenubutton.classList.add("show"),blockmenubutton2.classList.remove("show"))}),queroSerCliente.addEventListener("click",function(){localStorage.setItem("queroSerCliente","true"),(getDimensions()<1024||"true"==localStorage.getItem("queroSerCliente"))&&(blockmenubutton2.classList.add("show"),blockmenubutton.classList.remove("show"))}
4),[...menulevel0].forEach((a,r)=>{a.setAttribute("aria-expanded","false"),a.addEventListener("click",function(e){var t=a.textContent;spanlevel1.textContent=t,(getDimensions()<1024||2<=r)&&a.nextElementSibling&&e.preventDefault(),1024<=getDimensions()&&searchBlock.classList.remove("search-open"),1==check(this)?toggleExpanded(this):([...menulevel0].forEach(e=>{1024<=getDimensions()?2<=r&&[...menulevel0].slice(2,5).forEach(e=>{e.setAttribute("aria-expanded","false")}):e.setAttribute("aria-expanded","false")}),(getDimensions()<1024||2<=r)&&toggleExpanded(this),getDimensions()<1024&&(document.querySelector(".backArrowTrigger").setAttribute("level-visible",1),divBreadcrumb.setAttribute("level-visible",1)))})}),[...menulevel1].forEach(function(a){a.setAttribute("aria-expanded",!1),a.addEventListener("click",function(e){var t=a.textContent;spanlevel2.textContent=t,a.nextElementSibling&&e.preventDefault(),1==check(this)?toggleExpanded(this):([...menulevel1].forEach(e=>{e.setAttribute("aria-expanded","false")}),toggleExpanded(this),getDimensions()<1024&&(document.querySelector(".backArrowTrigger").setAttribute("level-visible",2),divBreadcrumb.setAttribute("level-visible",2)))})}),[...menulevel2].forEach(function(t){1024<getDimensions()&&listLinksSubmenu.forEach(e=>{e.setAttribute("aria-expanded",!0)}),t.setAttribute("aria-expanded",!1),t.addEventListener("click",function(e){t.nextElementSibling&&e.preventDefault(),1==check(this)?toggleExpanded(this):([...menulevel2].forEach(e=>{e.setAttribute("aria-expanded","false")}),toggleExpanded(this),getDimensions()<1024&&(document.querySelector(".backArrowTrigger").setAttribute("level-visible",3),divBreadcrumb.setAttribute("level-visible",3)))})}),[...menulevel3].forEach(function(e){e.setAttribute("aria-expanded",!1)}),[...menuAcessoRapido].forEach(e=>{e.removeAttribute("aria-expanded")});for(let e=0;e<3;e++)[...document.querySelectorAll("#block-navegacaoprincipal .menu-level-"+e+">li>a")].forEach(function(e){var t;e.nextElementSibling&&(t=e.parentNode.lastElementChild.firstElementChild,e=e.cloneNode(!0),null!=t)&&t.prepend(e)});navbarTrigger.addEventListener("click",function(){getDimensions()<1024&&(toggleExpanded(this),toggleExpanded(divOverlay),searchBlock.classList.remove("search-open"),searchBlock.classList.remove("search-translate"),searchTrigger.setAttribute("aria-expanded","false"),backArrowTrigger.setAttribute("aria-expanded","false"),backArrowTrigger.setAttribute("search-visible","false"),[...menubutton].forEach(e=>{"true"==e.getAttribute("aria-expanded")&&(e.setAttribute("aria-expanded","false"),divOverlay.setAttribute("aria-expanded","true"))}),bodyOverflow())}),divOverlay.addEventListener("click",function(){toggleExpanded(this),searchBlock.classList.remove("search-open"),navbarTrigger.setAttribute("aria-expanded","false"),[...menubutton].forEach(e=>{e.setAttribute("aria-expanded","false")}),bodyOverflow()}),[...menubutton].forEach(t=>{t.setAttribute("aria-expanded","false"),t.addEventListener("click",function(e){e.preventDefault(),toggleExpanded(t),getDimensions()<1024&&(toggleExpanded(divOverlay),bodyOverflow(),searchTrigger.setAttribute("aria-expanded","false"),searchBlock.classList.remove("search-open")),"true"==navbarTrigger.getAttribute("aria-expanded")&&(navbarTrigger.setAttribute("aria-expanded","false"),divOverlay.setAttribute("aria-expanded","true"))})}),backArrowTrigger.addEventListener("click",function(){var e;"true"==backArrowTrigger.getAttribute("search-visible")?(searchBlock.classList.remove("search-open"),searchBlock.classList.remove("search-translate"),searchTrigger.setAttribute("aria-expanded","false"),backArrowTrigger.setAttribute("search-visible","false")):"1"==(e=backArrowTrigger.getAttribute("level-visible"))?(backArrowTrigger.setAttribute("level-visible","0"),divBreadcrumb.setAttribute("level-visible","0"),[...document.querySelectorAll(".menu-level-0>li>a")].forEach(e=>{e.setAttribute("aria-expanded","false")})):"2"==e?(backArrowTrigger.setAttribute("level-visible","1"),divBreadcrumb.setAttribute("level-visible","1"),[...document.querySelectorAll(".menu-level-1>li>
4a")].forEach(e=>{e.setAttribute("aria-expanded","false")})):"3"==e&&(backArrowTrigger.setAttribute("level-visible","2"),divBreadcrumb.setAttribute("level-visible","2"),[...document.querySelectorAll(".menu-level-2>li>a")].forEach(e=>{e.setAttribute("aria-expanded","false")}))}),searchTrigger.addEventListener("click",function(){toggleExpanded(this),"false"===this.getAttribute("aria-expanded")?(backArrowTrigger.setAttribute("search-visible","false"),searchBlock.classList.remove("search-open"),searchBlock.classList.remove("search-translate")):(searchBlock.classList.add("search-translate"),searchBlock.classList.add("search-open"),backArrowTrigger.setAttribute("search-visible","true"))}),spanInicio.addEventListener("click",function(){divBreadcrumb.setAttribute("level-visible","0"),backArrowTrigger.setAttribute("level-visible","0"),[...document.querySelectorAll(".menu-level-0 li > a")].forEach(e=>{e.setAttribute("aria-expanded","false")})}),spanlevel1.addEventListener("click",function(){divBreadcrumb.setAttribute("level-visible","1"),backArrowTrigger.setAttribute("level-visible","1"),[...document.querySelectorAll(".menu-level-1 li > a")].forEach(e=>{e.setAttribute("aria-expanded","false")})}),spanlevel2.addEventListener("click",function(){divBreadcrumb.setAttribute("level-visible","2"),backArrowTrigger.setAttribute("level-visible","2"),[...document.querySelectorAll(".menu-level-2 li > a")].forEach(e=>{e.setAttribute("aria-expanded","false")})}),searchInput.addEventListener("input",function(){""===searchInput.value?searchClear.style.display="none":searchClear.style.display="block"}),searchClear.addEventListener("click",()=>{searchClear.style.display="none"}),menu(),function(e){e(".menu-item").each(function(){e(this).click(function(){e("#block-navegacaoprincipal").scrollTop(0)})}),e(".backArrowTrigger").click(function(){e("#block-navegacaoprincipal").scrollTop(0)})}(jQuery,Drupal),function(i){i(menulevel1).each(function(){i(this).click(function(e){var t,a,r=i(this);r.siblings().length||(t=r.text(),a=r.attr("target"),r=r.closest("div").siblings().text(),dataLayer.push({label:r+" - "+t,category:"header",event:"click"+a,action:"action"}))})}),i(menulevel2).each(function(){i(this).click(function(e){var t,a,r,n=i(this);n.siblings().length||(t=n.closest("div").siblings(),a=i(t).closest("div").siblings(),t=t.text(),a=a.text(),r=n.text(),n=n.attr("target"),dataLayer.push({label:a+" - "+t+" - "+r,category:"header",event:"click"+n,action:"action"}))})}),i(menulevel3).each(function(){i(this).click(function(){var e=i(this),t=e.closest("div").siblings(),a=i(t).closest("div").siblings(),r=i(a).closest("div").siblings(),t=t.text(),a=a.text(),r=r.text(),n=e.text(),e=e.attr("target");dataLayer.push({label:r+" - "+a+" - "+t+" - "+n,category:"header",event:"click"+e,action:"action"})})}),document.addEventListener("click",function(t){var e=document.querySelector(".header-opened");e&&e.contains(t.target)||([...menulevel1].forEach(e=>{"true"!=e.ariaExpanded||e==t.target||e.contains(t.target)||toggleExpanded(e)}),[...menulevel0].slice(2,5).forEach(e=>{"true"!=e.ariaExpanded||e==t.target||e.contains(t.target)||toggleExpanded(e)}))});var e=[blockmenubutton,blockmenubutton2];i(e).find("li a").each(function(){i(this).click(function(){var e,t=i(this);t.siblings().length||(e=t.text(),t=t.closest("ul").siblings().text(),dataLayer.push({label:t+" - "+e,category:"header",event:"click_self",action:"action"}))})})}(jQuery,Drupal),function(a){a("[aria-labelledby='system-breadcrumb'] ol li").each(function(){var e=a(this),t=e.find("a").text();"Noticias"!==t&&"Notícias"!==t||e.next().remove()}),a(".menu-item a").each(function(){var e=a(this);"Veja mais notícias"===e.text()&&e.closest("li").css({"grid-column":"1 / 3","margin-right":"auto"})})}(jQuery,Drupal),function(e){e(".menu-item").each(function(){e(this).click(function(){e("#block-navegacaoprincipal .sm_left>ul").scrollTop(0)})})}(jQuery,Drupal),jQuery(document).ready(function(r){function t(t){var e,a;e=t,a=r("#faq-results-list").empty(),r.getJSON("/faq---json?search="+e,function(e){e.length&&r.each(e,function(e,t){r("<li>",{id:"faq-result_"+e,html:t.title}).appendTo(a)})}),r.getJSON("/search-json?search="+t,function(e){var a;history.replaceState(null,"","busca?busca="+encodeURIComponent(t)),e.length?(a=r("#search_results #search-results-list").empty(),r.each(e,function(e,t){r("<li>",{id:"result_"+e,html:t.title}).appendTo(a)}),r("#search_notfound").removeClass("search-open"),r("#search_found").addClass("search-open")):(r("#search_allresults").attr("href","/busca"),r("#search_notfound").addClass("search-open"),r("#search_found").removeClass("search-open"))})}r("#form-initial-search-bar").submit(function(e){e.preventDefault();e=r("#initial-search-bar").val();e&&(r("#hidden-search-bar").val(e),r("#search_world").text(e),r("#search_notfound_world").text(e),r("#search_allresults").attr("href","/busca?busca="+e),t(e),r("#search-results-container").addClass("search-open"))}),r("#form-hidden-search-bar").submit(function(e){e.preventDefault();e=r("#hidden-search-bar").val();e&&(r("#initial-search-bar").val(e),r("#search_world").text(e),r("#search_notfound_world").text(e),r("#search_allresults").attr("href","/busca?busca="+e),t(e))}),r("#search_allquestions").attr("href","/central-de-ajuda"),r("#search_close").click(function(){r("#search-results-container").removeClass("search-open")}),r("#search-input-close").click(function(){r("#hidden-search-bar").val(""),r("#initial-search-bar").val(""),r("#hidden-search-bar").focus()})}),function(){let e=!1;function t(){e||(e=!0,a("https://www.googletagmanager.com/gtm.js?id=GTM-XXXX"),a("https://app.privally.global/app.js"),a("https://script.hotjar.com/c/hotjar-XXXX.js?sv=6"),a("https://connect.facebook.net/en_US/fbevents.js"),a("https://snap.licdn.com/li.lms-analytics/insight.min.js"))}function a(e){var t=document.createElement("script");t.src=e,t.async=!0,document.body.appendChild(t)}"requestIdleCallback"in window?requestIdleCallback(t):setTimeout(t,3e3)}(),function(e,t){e.behaviors.customEnhancements={attach:function(e){t("footer-title-links",e.querySelectorAll("#block-footercol3 a")).forEac
4h(function(e){let t=e.getAttribute("href")||"";var a={twitter:"Twitter",facebook:"Facebook",instagram:"Instagram",youtube:"YouTube",linkedin:"Linkedin",spotify:"Spotify"},r=Object.keys(a).find(e=>t.includes(e));e.setAttribute("title",r?a[r]:e.textContent.trim())}),t("fix-slick-aria",e.querySelectorAll('[id^="slick-slide-control"]')).forEach(function(e){e.removeAttribute("role"),e.removeAttribute("aria-selected"),e.removeAttribute("aria-controls");var t=e.id.replace("slick-slide-control","");e.setAttribute("aria-label","Ir para slide "+t)})}}}(Drupal,once),function(a){Drupal.behaviors.webform_reloading={attach:function(e,t){a(document).ready(function(){window.location.href.includes("doe-cidadania")&&a(".cpt-doador-submit-button").click(function(){setTimeout(()=>{location.reload()},100)})})}}}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.