1// Lazy-load Stimulus controllers on-demand. 2// 3// This avoids downloading *every* controller (and their heavy dependencies like 4// Tiptap/Chart.js) on pages that don't use them (e.g., the public homepage). 5import { lazyLoadControllersFrom } from '@hotwired/stimulus-loading'; 6import { application } from 'controllers/application'; 7 8if (typeof window !== 'undefined') window.__controllersIndexLoaded = true 9 10// Explicitly register controllers that should be loaded immediately 11import TourPickupTimesController from 'controllers/tour_pickup_times_controller'; 12application.register('tour-pickup-times', TourPickupTimesController) 13 14import HotelSearchController from 'controllers/hotel_search_controller'; 15import RouteSelectorController from 'controllers/route_selector_controller'; 16application.register('hotel-search', HotelSearchController) 17application.register('route-selector', RouteSelectorController) 18 19import HomeSettingsController from 'controllers/home_settings_controller'; 20application.register('home-settings', HomeSettingsController) 21 22import ProviderSettlementFormController from 'controllers/provider_settlement_form_controller'; 23application.register('provider-settlement-form', ProviderSettlementFormController) 24 25import PlaceholderBrowserController from 'controllers/placeholder_browser_controller'; 26application.register('placeholder-browser', PlaceholderBrowserController) 27 28import PushNotificationsController from 'portal_controllers/push_notifications_controller'; 29application.register('push-notifications', PushNotificationsController) 30 31import ScrollHighlightController from 'controllers/scroll_highlight_controller'; 32application.register('scroll-highlight', ScrollHighlightController) 33 34import SmoothScrollController from 'controllers/smooth_scroll_controller'; 35application.register('smooth-scroll', SmoothScrollController) 36 37import QuoteStickyCtaController from 'controllers/quote_sticky_cta_controller'; 38application.register('quote-sticky-cta', QuoteStickyCtaController) 39 40import InfiniteScrollController from 'controllers/infinite_scroll_controller'; 41application.register('infinite-scroll', InfiniteScrollController) 42 43import AgencyPaymentOptionController from 'controllers/agency_payment_option_controller'; 44application.register('agency-payment-option', AgencyPaymentOptionController) 45 46lazyLoadControllersFrom('controllers', application)
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.