1import {Application} from '@hotwired/stimulus' 2import CandidateAssistantController from 'sites/controllers/candidate_assistant_controller' 3import ChatbotWindowController from 'sites/controllers/chatbot/window_controller' 4import ChatbotCarouselController from 'sites/controllers/chatbot/carousel_controller' 5import ChatbotDropdownController from 'sites/controllers/chatbot/dropdown_controller' 6import ChatbotAutoClickController from 'sites/controllers/chatbot/auto_click_controller' 7import StreamResyncController from 'common/controllers/stream_resync_controller' 8import FrameLoaderController from 'sites/controllers/frame_loader_controller' 9import TurboFrameScrollerController from 'sites/controllers/turbo_frame_scroller_controller' 10import {CookieUtils} from 'sites/cookie_utils' 11import 'sites/chatbot_turbo_streams' 12 13document.addEventListener('clinch:trackable', () => document.documentElement.classList.add('candidate-assistant-visible')) 14document.addEventListener('clinch:untrackable', () => { 15 document.documentElement.classList.remove('candidate-assistant-visible') 16 CookieUtils.removeCookie('candidate_assistant_state') 17}) 18 19class WebCandidateAssistant extends HTMLElement { 20 connectedCallback() { 21 const stimulusApplication = Application.start(this.shadowRoot.firstElementChild) 22 stimulusApplication.register('candidate-assistant', CandidateAssistantController) 23 stimulusApplication.register('chatbot--window', ChatbotWindowController) 24 stimulusApplication.register('chatbot--carousel', ChatbotCarouselController) 25 stimulusApplication.register('chatbot--dropdown', ChatbotDropdownController) 26 stimulusApplication.register('chatbot--auto-click', ChatbotAutoClickController) 27 stimulusApplication.register('stream-resync', StreamResyncController) 28 stimulusApplication.register('frame-loader', FrameLoaderController) 29 stimulusApplication.register('turbo-frame-scroller', TurboFrameScrollerController) 30 } 31} 32customElements.define('web-candidate-assistant', WebCandidateAssistant)
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.