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sources":["webpack://leaguelooper/./web/static/js/modules/utils.js","webpack://leaguelooper/./web/static/js/modules/filters.js","webpack://leaguelooper/./web/static/js/modules/nearbyTeams.js","webpack://leaguelooper/./web/static/js/modules/travelSettings.js","webpack://leaguelooper/./web/static/js/modules/resultsViewer.js","webpack://leaguelooper/./web/static/js/main.js"],"sourcesContent":["// utils.js - Utility functions that can be used across modules\n\n/**\n * Helper function to create elements with attributes and properties\n * @param {string} tag - The HTML tag name\n * @param {Object} attributes - Key-value pairs of attributes to set\n * @param {string|Node} content - Text content or child node to append\n * @returns {HTMLElement} The created element\n */\nexport function createElement(tag, attributes = {}, content = '') {\n const element = document.createElement(tag);\n \n // Set attributes\n Object.entries(attributes).forEach(([key, value]) => {\n if (key === 'className') {\n element.className = value;\n } else if (key === 'innerHTML') {\n element.innerHTML = value;\n } else if (key === 'textContent') {\n element.textContent = value;\n } else if (key.startsWith('on') && typeof value === 'function') {\n // Event listeners\n const eventName = key.substring(2).toLowerCase();\n element.addEventListener(eventName, value);\n } else {\n element.setAttribute(key, value);\n }\n });\n \n // Add content\n if (content) {\n if (typeof content === 'string') {\n element.textContent = content;\n } else {\n element.appendChild(content);\n }\n }\n \n return element;\n}\n\n/**\n * Format a date as a string\n * @param {Date} date - The date to format\n * @param {string} format - Optional format string\n * @returns {string} Formatted date string\n */\nexport function formatDateString(date, format = 'MM/DD/YYYY') {\n if (!(date instanceof Date)) {\n date = new Date(date);\n }\n \n const day = String(date.getDate()).padStart(2, '0');\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const year = date.getFullYear();\n \n return format\n .replace('DD', day)\n .replace('MM', month)\n .replace('YYYY', year);\n}\n\n/**\n * Format currency number as string\n * @param {number} amount - The amount to format\n * @param {string} currency - The currency symbol\n * @returns {string} Formatted currency string\n */\nexport function formatCurrency(amount, currency = '$') {\n return `${currency}${parseFloat(amount).toFixed(2)}`;\n}\n\n/**\n * Debounce function to limit how often a function can be called\n * @param {Function} func - The function to debounce\n * @param {number} wait - The debounce wait time in milliseconds\n * @returns {Function} Debounced function\n */\nexport function debounce(func, wait = 300) {\n let timeout;\n return function(...args) {\n clearTimeout(timeout);\n timeout = setTimeout(() => func.apply(this, args), wait);\n };\n}","// filters.js - Handle form filters like blackout dates and day selection\nimport { createElement } from './utils.js';\n\nlet blackoutDateCounter = 0;\n\nexport function initFilters() {\n console.log('Initializing filters module...');\n\n const filtersForm = document.getElementById('filters-form');\n \n // Cache DOM elements\n const leagueSelect = document.getElementById('league-select');\n const blackoutDatesContainer = document.getElementById('blackout-dates-container');\n const addBlackoutDateBtn = document.getElementById('add-blackout-date');\n const addBlackoutRangeBtn = document.getElementById('add-blackout-range');\n \n // Templates\n const blackoutDateTemplate = document.getElementById('blackout-date-template');\n const blackoutRangeTemplate = document.getElementById('blackout-range-template');\n\n // Add this to your filters.js module\n const logoDisplay = document.getElementById('selected-league-logo');\n\n if (leagueSelect && logoDisplay) {\n leagueSelect.addEventListener('change', function() {\n const selectedOption = this.options[this.selectedIndex];\n const logoUrl = selectedOption.getAttribute('data-logo');\n \n if (logoUrl) {\n logoDisplay.innerHTML = ``;\n logoDisplay.style.display = 'block';\n } else {\n logoDisplay.innerHTML = '';\n logoDisplay.style.display = 'none';\n }\n });\n }\n \n // Initial setup for league select\n if (leagueSelect) {\n leagueSelect.addEventListener('change', function() {\n const leagueId = this.value;\n if (!leagueId) {\n // No league selected\n const nearbyTeamsContainer = document.getElementById('nearby-teams-container');\n \n // Use createElement utility instead of direct DOM manipulation\n nearbyTeamsContainer.innerHTML = '';\n const message = createElement('p', { \n id: 'no-teams-message',\n textContent: 'Please select a league to see available teams'\n });\n nearbyTeamsContainer.appendChild(message);\n }\n // The real work happens in the htmx:afterSwap event handler\n });\n }\n\n // Add single blackout date\n if (addBlackoutDateBtn) {\n addBlackoutDateBtn.addEventListener('click', function() {\n addBlackoutDate(blackoutDateTemplate, blackoutDatesContainer);\n });\n }\n\n // Add blackout date range\n if (addBlackoutRangeBtn) {\n addBlackoutRangeBtn.addEventListener('click', function() {\n addBlackoutRange(blackoutRangeTemplate, blackoutDatesContainer);\n });\n }\n\n if (filtersForm) {\n filtersForm.addEventListener('submit', function(e) {\n // Find all blackout date inputs\n const blackoutDateInputs = document.querySelectorAll('input[name^=\"blackout_dates\"]');\n \n // Check each input and remove it if it's empty\n blackoutDateInputs.forEach(input => {\n if (!input.value) {\n input.closest('.blackout-date, .blackout-range').remove();\n }\n });\n \n // Do the same for nearby teams selects\n const nearbyTeamSelects = document.querySelectorAll('select[name^=\"nearby_teams\"]');\n nearbyTeamSelects.forEach(select => {\n if (!select.value) {\n // Find the parent pair container and remove it\n const pairContainer = select.closest('.nearby-teams-pair');\n if (pairContainer) {\n pairContainer.remove();\n }\n }\n });\n });\n }\n\n initLoadingExperience();\n \n console.log('Filters module initialized.');\n}\n\n// Add this new function to your file\nfunction initLoadingExperience() {\n // Find the filters form and loading indicator\n const filtersForm = document.getElementById('filters-form');\n const loadingIndicator = document.getElementById('loading');\n const resultsContainer = document.getElementById('results-container');\n \n if (filtersForm) {\n // Track the state of the request\n let requestStartTime;\n let timeUpdateInterval;\n let requestInProgress = false;\n \n // Update the loading message with elapsed time\n function updateLoadingMessage() {\n const elapsedSeconds = Math.floor((Date.now() - requestStartTime) / 1000);\n const minutes = Math.floor(elapsedSeconds / 60);\n const seconds = elapsedSeconds % 60;\n \n const timeDisplay = `${minutes}:${seconds.toString().padStart(2, '0')}`;\n const loadingText = document.querySelector('#loading p');\n \n if (loadingText) {\n if (elapsedSeconds < 10) {\n loadingText.textContent = 'Generating schedules...';\n } else if (elapsedSeconds < 30) {\n loadingText.textContent = `Generating schedules... (${timeDisplay})`;\n } else {\n loadingText.textContent = `Still working on it... (${timeDisplay})\\nComplex scheduling may take a few minutes.`;\n }\n }\n }\n \n // Listen for the htmx:beforeSend event\n filtersForm.addEventListener('htmx:beforeSend', function(event) {\n // Save the start time\n requestStartTime = Date.now();\n requestInProgress = true;\n \n // Clear any previous content in the results container\n if (resultsContainer) {\n resultsContainer.innerHTML = '';\n }\n \n // Set up the interval to update the loading message\n timeUpdateInterval = setInterval(updateLoadingMessage, 1000);\n });\n \n // Listen for the htmx:afterSwap event\n filtersForm.addEventListener('htmx:afterSwap', function(event) {\n // Request completed successfully\n requestInProgress = false;\n clearInterval(timeUpdateInterval);\n });\n \n // Listen for the htmx:responseError event\n filtersForm.addEventListener('htmx:responseError', function(event) {\n requestInProgress = false;\n clearInterval(timeUpdateInterval);\n \n // Explicitly hide the loading indicator\n if (loadingIndicator) {\n loadingIndicator.style.display = 'none';\n loadingIndicator.classList.add('htmx-error');\n }\n \n // Handle error response\n const errorMessage = event.detail.xhr.responseText || 'An error occurred while generating schedules.';\n \n // Create a formatted error message\n resultsContainer.innerHTML = `\n
${errorMessage}
\nTry simplifying your constraints or try again later.
\n \nThe schedule generation is taking longer than expected.
\nYou can try again with simpler constraints.
\n \nSomething went wrong while generating your schedule.
\nPlease try again with simpler constraints.
\n \n