1import{a as s}from"/assets/chunk-R5TUJ4ZI.js";import{b as i}from"/assets/chunk-O5BL4TXF.js";import"/assets/chunk-J7GAMPMP.js";var r=class extends i{static targets=["trigger","input"];static values={urlPattern:{type:String,default:"/sotds/__DATE__"},date:{type:String,default:""},locale:{type:String,default:"en"}};connect(){this.calendar=null}disconnect(){this.calendar&&this.calendar.destroy()}toggle(t){t.preventDefault(),t.stopPropagation(),this.calendar||this.initCalendar(),requestAnimationFrame(()=>{this.calendar&&this.calendar.show()})}initCalendar(){let t=this,a=this.dateValue||new Date().toISOString().split("T")[0],e=a.split("-"),n=parseInt(e[0],10),l=parseInt(e[1],10)-1;this.calendar=new s(this.inputTarget,{inputMode:!0,positionToInput:"auto",selectedTheme:"dark",locale:this.localeValue,selectedDates:[a],selectedMonth:l,selectedYear:n,dateMin:"2008-08-31",displayDateMin:"2008-08-31",dateMax:"today",displayDateMax:"today",cssClass:"calendar-animated",onClickDate(d,o){t.navigateFromEvent(o)}}),this.calendar.init()}navigateFromEvent(t){let e=t?.target?.closest("[data-vc-date]")?.dataset?.vcDate;e&&this.navigateToDate(e)}navigateToDate(t){window.location.href=this.overviewUrl(t)}overviewUrl(t){let[a,e,n]=t.split("-");return this.urlPatternValue.replace("__DATE__",`${a}/${e}/${n}`)}};export{r as default};
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.