<script>const currentDate=new Date,currentMonthDay=currentDate.getDate(),currentWeekDay=currentDate.getDay(),currentHours=currentDate.getHours(),getNextMondayDate=()=>{const e=new Date;return currentWeekDay?e.setDate(currentMonthDay+8-currentWeekDay):e.setDate(currentMonthDay+1),e},getWebinarStartDate=()=>{let e;if(currentHours>=0&¤tHours<13&¤tWeekDay>=1&¤tWeekDay<=5)e=currentDate;else if(currentHours>=13&¤tHours<=23&¤tWeekDay>=1&¤tWeekDay<=4){const t=new Date;t.setDate(currentMonthDay+1),e=t}else e=getNextMondayDate();return e.toLocaleDateString("ru-RU",{month:"long",day:"numeric"})},getWahunterHtml=()=>{let e;return`\n <tb-notification-widget widget-id="${e=1===currentWeekDay&¤tHours>=13||currentWeekDay>=2&¤tWeekDay<=4||5===currentWeekDay&¤tHours<13?"b125c3a2-3c8b-bd0a-9ba1-01738c83ac7d":"2ee76f3e-3d9a-0247-81f2-01738c8f9a8b"}"></tb-notification-widget>\n `},appBodyTextElem=document.querySelector(".app-body_text"),appWidgetsContainer=document.querySelector(".app-body_buttons"),notificationWidgetScript=document.createElement("script");appBodyTextElem.innerHTML=appBodyTextElem.innerHTML.replace("{{START_DATE}}",getWebinarStartDate()),notificationWidgetScript.setAttribute("src","//unpkg.com/@textback/notification-widget@latest/build/index.js"),appWidgetsContainer.appendChild(notificationWidgetScript),appWidgetsContainer.insertAdjacentHTML("beforeend",getWahunterHtml());</script>