Showing: news tagged “Christmas”
No news tagged “Christmas”
8.43289 6.32518 8.08696 6.32518C7.74102 6.32518 7.40926 6.46315 7.16464 6.70874C6.92003 6.95433 6.78261 7.28742 6.78261 7.63473C6.78261 7.84312 6.70016 8.04298 6.55339 8.19033C6.40662 8.33768 6.20756 8.42047 6 8.42047C5.79244 8.42047 5.59338 8.33768 5.44661 8.19033C5.29984 8.04298 5.21739 7.84312 5.21739 7.63473ZM8.31235 11.8065C8.45909 11.6593 8.658 11.5767 8.86539 11.5767C9.07278 11.5767 9.2717 11.6593 9.41844 11.8065C10.1128 12.472 11.0359 12.8433 11.9958 12.8433C12.9558 12.8433 13.8789 12.472 14.5732 11.8065C14.7209 11.6634 14.9186 11.5843 15.1238 11.5862C15.329 11.5881 15.5253 11.6708 15.6703 11.8165C15.8153 11.9623 15.8975 12.1594 15.8992 12.3654C15.9009 12.5714 15.8219 12.7699 15.6793 12.918C14.7023 13.8986 13.3773 14.4495 11.9958 14.4495C10.6143 14.4495 9.28938 13.8986 8.31235 12.918C8.23962 12.845 8.18193 12.7584 8.14257 12.663C8.10321 12.5677 8.08295 12.4655 8.08295 12.3622C8.08295 12.259 8.10321 12.1568 8.14257 12.0614C8.18193 11.9661 8.23962 11.8794 8.31235 11.8065ZM14.6087 7.63473C14.6087 7.84312 14.5262 8.04298 14.3795 8.19033C14.2327 8.33768 14.0336 8.42047 13.8261 8.42047C13.6185 8.42047 13.4195 8.33768 13.2727 8.19033C13.1259 8.04298 13.0435 7.84312 13.0435 7.63473C13.0435 6.87064 13.3458 6.13784 13.884 5.59754C14.4221 5.05725 15.152 4.75371 15.913 4.75371C16.6741 4.75371 17.404 5.05725 17.9421 5.59754C18.4803 6.13784 18.7826 6.87064 18.7826 7.63473C18.7826 7.84312 18.7002 8.04298 18.5534 8.19033C18.4066 8.33768 18.2076 8.42047 18 8.42047C17.7924 8.42047 17.5934 8.33768 17.4466 8.19033C17.2998 8.04298 17.2174 7.84312 17.2174 7.63473C17.2174 7.28742 17.08 6.95433 16.8354 6.70874C16.5907 6.46315 16.259 6.32518 15.913 6.32518C15.5671 6.32518 15.2353 6.46315 14.9907 6.70874C14.7461 6.95433 14.6087 7.28742 14.6087 7.63473Z" fill="white"/> `; // Add CSS styles const styles = ` `; // Add styles to head document.head.insertAdjacentHTML("beforeend", styles); // Add launcher to page document.body.appendChild(customLauncher); // Handle tooltip close customLauncher.querySelector(".tooltip-close").addEventListener("click", function (e) { e.stopPropagation(); if (removeTooltipOnly) { // Remove just the tooltip, but keep the icon customLauncher .querySelector(".custom-launcher-tooltip-container") .classList.add("tooltip-hidden"); } else { // Remove the entire icon customLauncher.remove(); } }); } /** * Subscribes to Genesys Messenger events to update icon state */ function subscribeGenesysEvents(customLauncher) { // Allowed pages to initially show the custom icon on const defaultPaths = [ { path: "/about/contact-us", exact: true }, { path: "/account/money", exact: true }, { path: "/hc/en-us", exact: true }, ]; const launcherButton = customLauncher.querySelector(".custom-launcher-button"); const tooltip = customLauncher.querySelector(".custom-launcher-tooltip-container"); let bMessengerOpened = false; // Set via the Messenger.opened and Messenger.closed subs let hasActiveChat = false; function shouldShowLauncher() { const allowedPathsFromTarget = window.chatbotPathsViaTarget || []; // Merge default paths with configured paths (remove duplicates) const pathsToCheck = [...new Set([...defaultPaths, ...allowedPathsFromTarget])]; const onAllowedPage = pathsToCheck.some(({ path, exact }) => exact ? window.location.pathname === path : window.location.pathname.startsWith(path) ); return onAllowedPage || hasActiveChat; } function updateLauncherVisibility() { customLauncher.style.display = shouldShowLauncher() ? "block" : "none"; } Genesys("subscribe", "Messenger.ready", () => { // Initially show only if page is allowed (no active chat yet) updateLauncherVisibility(); }); // Fires when the messenger is opened via button click or when arriving on another page if the chat window was already opened Genesys("subscribe", "Messenger.opened", () => { bMessengerOpened = true; hasActiveChat = true; launcherButton.classList.add("messenger-open"); if (tooltip) tooltip.classList.add("tooltip-hidden"); updateLauncherVisibility(); }); // Fires when the messenger is closed via button click or when using the minimise icon located inside the chat window Genesys("subscribe", "Messenger.closed", () => { bMessengerOpened = false; launcherButton.classList.remove("messenger-open"); }); launcherButton.addEventListener("click", () => { Genesys("command", bMessengerOpened ? "Messenger.close" : "Messenger.open"); }); }