'use strict'; import { showDiv, ElementById, padZeros, isValidDate } from './helpers.js'; import { getCache, addCache, parseName, saveDataStorage, ConsoleLog, t, loadDS100 } from './app_functions.js'; import { dataStorage } from './app.js'; import { get } from './api.js'; import { go } from './router.js'; import { html, render } from './lit-html.js'; import { showAlertModal, showLoader, hideLoader} from './overlays.js'; import { showSettings } from './settingsView.js'; let currDate = new Date(); let fromValue = ''; let toValue = ''; let isArrValue = false; let dateValue = currDate.getFullYear()+'-'+padZeros(currDate.getMonth()+1)+'-'+padZeros(currDate.getDate());; let timeValue = padZeros(currDate.getHours())+':'+padZeros(currDate.getMinutes()); let suggestionsCache = { from: {}, to: {}, }; const searchTemplate = (journeysHistory) => html`
`; const journeysHistoryTemplate = (journeysHistory) => html`setSuggestion(encodeURI(JSON.stringify(element)), inputId)}>${parseName(element)}
`)}