1"use strict";let functionIsRunning=!1;const toggleFunctionStatus=()=>functionIsRunning=!functionIsRunning,ancestor=(element,selector)=>{for(;(element=element.parentElement)&&!element.classList.contains(selector););return element},addEventListenerMultiple=(element,eventsList,listener)=>{let events=eventsList.split(" ");for(let i=0;i<events.length;i++)element.addEventListener(events[i],listener,!1)},addClasses=(element,classes,prefix="")=>{classes.forEach((className=>{null!==element&&element.classList.add(`${prefix+className}`)}))},addClass=(element,className)=>{element.classList.add(className)},toggleClass=(element,className)=>{element.classList.toggle(className)},hasClass=(item,className)=>item.classList.contains(className),toggleClasses=(element,classes,prefix="")=>{classes.forEach((className=>{null!==element&&element.classList.toggle(`${prefix+className}`)}))},setAttributes=(element,attrs)=>{null!==element&&Array.from(attrs).forEach((attr=>{element.setAttribute(`data-${attr.name}`,`${attr.value}`)}))},animate=(element,animationClassName,onEnd)=>{toggleClass(element,animationClassName);const callback=()=>{toggleClass(element,animationClassName),element.removeEventListener("animationend",callback),onEnd&&onEnd instanceof Function&&onEnd()};element.addEventListener("animationend",callback)},checkArray=array=>!!(Array.isArray(array)&&array.length>0),getDifferenceInDays=(event_date,todays_date)=>Math.abs(todays_date-event_date)/864e5,calcDate=(initialDate,deadline)=>{const date1=initialDate.getTime(),date2=deadline.getTime(),difference=Math.abs(date2-date1),formatTime=time=>("0"+time).substr(-2),differenceInDays=parseInt(difference/864e5),differenceInHours=new Date(difference).getUTCHours(),differenceInMinutes=new Date(difference).getUTCMinutes(),differenceInSeconds=new Date(difference).getUTCSeconds();return{days:{time:differenceInDays,text:1!==differenceInDays?"dÃas":"dÃa"},hours:{time:formatTime(differenceInHours),text:1!==differenceInHours?"horas":"hora"},minutes:{time:formatTime(differenceInMinutes),text:1!==differenceInMinutes?"minutos":"minuto"},seconds:{time:formatTime(differenceInSeconds),text:1!==differenceInSeconds?"segundos":"segundo"}}};(()=>{const formTarget=document.getElementById("js-form-section"),formTargetButtons=[...document.querySelectorAll('.button[data-target="form"]')];formTarget&&formTargetButtons.length&&formTargetButtons.forEach((button=>{button.onclick=()=>formTarget.scrollIntoView({behavior:"smooth"})}))})(),(()=>{const topbar=document.getElementById("js-topbar");if(!topbar)return;const logo=topbar.querySelector("img");if(void 0!==topbar){console.log("Test");const chooseLogo=()=>{topbar.classList.contains("topbar--inverse")?(window.scrollY,logo.src=""):logo.src="",logo.style.opacity=1},whileScroll=()=>{window.scrollY>10?topbar.classList.add("topbar--while-scroll"):topbar.classList.remove("topbar--while-scroll")};whileScroll(),chooseLogo(),window.addEventListener("scroll",chooseLogo),window.addEventListener("scroll",whileScroll),window.addEventListener("resize",chooseLogo),window.addEventListener("resize",whileScroll)}})();const toggleMenu=event=>{if(functionIsRunning)return;toggleFunctionStatus();const topbar=document.getElementById("js-topbar--");if(!topbar)return;const menu=topbar.querySelector("nav.menu");menu.classList.contains("open")?animate(menu,"fade-to-right",(()=>{menu.style.display="none",toggleFunctionStatus()})):(menu.style.display="block",animate(menu,"fade-from-right",(()=>toggleFunctionStatus()))),toggleClass(menu,"open"),toggleClass(event.target,"open")}; 2//# sourceURL=https://cdn2.hubspot.net/hub/136661/hub_generated/template_assets/71488489864/1650971273405/diyinbound/assets/js/main.js
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.