1(()=>{let e=document.querySelectorAll(".mSupport"),a=document.querySelectorAll(".mSupport-multi"),r=document.querySelector(".no_bubble");var t=document.querySelectorAll(".mSupport-bubble"),o=document.querySelector(".current-time");let l=document.querySelectorAll(".mSupportUserAvailability");document.querySelector(".mSupport__send-message");var i=document.querySelector(".mSupport-multi__popup--content"),s=(document.querySelector(".user"),new Date);null!==o&&(s=s.getHours()+":"+s.getMinutes()+":"+s.getSeconds(),o.innerText=s);let u=()=>{e.forEach(t=>{t.classList?.toggle("mSupport-show")}),a.forEach(t=>{t.classList?.toggle("mSupport-show")})};function n(e,a){let r=!1,o=!1;for(let t in e){var l,i;e.hasOwnProperty(t)&&("sunday"==(s=(s=t).toLowerCase())?0:"monday"==s?1:"tuesday"==s?2:"wednesday"==s?3:"thursday"==s?4:"friday"==s?5:"saturday"==s?6:void 0)==a.day()&&(s=e[t].split("-"),l=(i=a.tz())?moment.tz(s[0],"HH:mm",i):moment(s[0],"HH:mm"),i=i?moment.tz(s[1],"HH:mm",i):moment(s[1],"HH:mm"),l.year(a.year()).month(a.month()).date(a.date()),i.year(a.year()).month(a.month()).date(a.date()),a.isBetween(l,i)?r=!0:a.isBefore(l)&&(o=!0))}var s;return{is_available:r,almost_available:o}}t.forEach(t=>{r||t.addEventListener("click",u)}),0<alternativeMSupportBubble.length&&document.querySelectorAll(alternativeMSupportBubble).forEach(t=>{r||t.addEventListener("click",u)}),document.querySelectorAll(".mSupport-popup-close").forEach(t=>{t.addEventListener("click",t=>{t.preventDefault(),[...e,...a].forEach(t=>t.classList.remove("mSupport-show"))})}),document.querySelectorAll(".mSupport[data-auto-open-timeout], .mSupport-multi[data-auto-open-timeout]").forEach(t=>{var e=parseInt(t.getAttribute("data-auto-open-timeout"),10);!isNaN(e)&&0<e&&setTimeout(()=>t.classList.add("mSupport-show"),e)}),o=i?.getAttribute("data-search"),s=document.querySelector(".mSupport-multi")?.classList.contains("mSupport-grid"),void 0!==l&&("true"===o&&i.classList.add("mSupport-search"),3<l.length&&!s&&i.classList.add("mSupport-scroll"),4<l.length&&s&&i.classList.add("mSupport-scroll"),l.forEach(t=>{let e=t.getAttribute("data-useravailability");t=t.getAttribute("data-timezone"),t=t?moment().tz(t):moment();n(JSON.parse(e),t).is_available||null==e?l.forEach(t=>{t.getAttribute("data-useravailability")===e&&(t.classList.add("avatar-active"),t.classList.remove("avatar-inactive"))}):l.forEach(t=>{t.getAttribute("data-useravailability")===e&&(t.classList.add("avatar-inactive"),t.setAttribute("disabled",""),t.classList.remove("avatar-active"))})}));let c=document.querySelectorAll(".mSupportButtons");void 0!==c&&c.forEach(t=>{let e=t.getAttribute("data-btnavailablety");t=t.getAttribute("data-timezone"),t=t?moment().tz(t):moment();n(JSON.parse(e),t).is_available?c.forEach(t=>{t.getAttribute("data-btnavailablety")===e&&(t.classList.add("avatar-active"),t.classList.remove("avatar-inactive"))}):c.forEach(t=>{t.getAttribute("data-btnavailablety")===e&&(t.classList.add("avatar-inactive"),t.classList.remove("avatar-active"))})});var m,t=document.querySelector(".chat-availability"),o=document.querySelector(".info__title"),s=document.querySelector(".mSupport_agent");t&&void 0!==(i=t.getAttribute("data-availability"))&&(m=(m=t.getAttribute("data-timezone"))?moment().tz(m):moment(),m=n(JSON.parse(i),m),s&&(m.is_available?o.textContent=o.getAttribute("data-online"):o.textContent=o.getAttribute("data-offline")),m.is_available||null==i?(t.classList.add("avatar-active"),t.classList.remove("avatar-inactive")):(t.classList.add("avatar-inactive"),t.classList.remove("avatar-active"))),window.searchUser=function(){for(var t,e=document.getElementById("search-input").value.toUpperCase(),a=document.getElementById("multi-user").getElementsByClassName("user"),r=0;r<a.length;r++)-1<((t=a[r].getElementsByClassName("user__info--name")[0]).textContent||t.innerText).toUpperCase().indexOf(e)?a[r].style.display="":a[r].style.display="none"}})();
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.