import"./bootstrap-BY4tfHCT.js";var e=function(){return{loadingParsedDate:!0,dateFormat:`Y-m-d`,parsedDateFormat:`hello`,dateRange:``,detectionMethod:``,getParsedDate(){this.loadingParsedDate=!0,window.axios.get(`./import/php_date`,{params:{format:this.dateFormat}}).then(e=>{this.parsedDateFormat=e.data.result,this.loadingParsedDate=!1}).catch(e=>{this.parsedDateFormat=`:(`,this.loadingParsedDate=!1})},init(){this.dateRange=document.querySelector(`#date-range-helper`).dataset.dateRange,this.detectionMethod=document.querySelector(`#detection-method-helper`).dataset.method,this.dateFormat=document.querySelector(`#date-format-helper`).dataset.dateFormat,console.log(`detection method`,this.detectionMethod),this.getParsedDate()}}};function t(){Alpine.data(`index`,()=>e()),Alpine.start()}document.addEventListener(`data-importer-bootstrapped`,()=>{console.log(`Loaded through event listener.`),t()}),window.bootstrapped&&(console.log(`Loaded through window variable.`),t());