document.addEventListener('livewire:navigated', () => { const tabGroup = document.querySelector('.collection.webinars-collection ui-tab-group, .collection.trainings-collection ui-tab-group'); if (tabGroup) { const orientationSection = document.createElement('section'); orientationSection.setAttribute('id', 'curated-eap-orientation-section'); orientationSection.classList.add('no-fr'); orientationSection.innerHTML = `

EAP Orientations:

Employee/Member Supervisor `; // Insert the orientation section before the tab group's parent div tabGroup.parentNode.parentNode.insertBefore(orientationSection, tabGroup.parentNode); } const fchDevGroup = document.querySelector('body.group-30000080'); const fchDevprodDomain = window.location.href.includes('fch.personaladvantage.com'); const fchDevLoginPage = window.location.href === 'https://firstchoicehealth.dev-personaladvantage.com/auth/hashcode'; if ((fchDevGroup && fchDevprodDomain) || fchDevLoginPage) { const chatScript = document.createElement('script'); const chatWidgetDiv = document.createElement('div'); if (!document.getElementById('fch-chatbot')) { // chatWidgetDiv.innerHTML = ``; document.body.appendChild(chatWidgetDiv); } if (!document.getElementById('fch-chatbot-script')) { // chatScript.src = 'https://d2jjy4wq5knyzy.cloudfront.net/widget/fch-chatbot.js'; chatScript.type = 'module'; chatScript.id = 'fch-chatbot-script'; document.head.appendChild(chatScript); } } });