PageSourceSearch

https://avasklad.parts/assets/admin/controllers/datepicker_controller-IQhOc0M.js

js avasklad.parts collected 2026-10-06 16:51:01 UTC 668 bytes, 1 lines download raw bytes

1import{Controller as n}from"@hotwired/stimulus";export default class extends n{async connect(){const{Calendar:t}=await import("vanilla-calendar-pro");this.element.isConnected&&(this.element.type="text",this.element.readOnly=!0,this.calendar=new t(this.element,{inputMode:!0,positionToInput:"auto",locale:"uk",firstWeekday:1,selectedTheme:"light",selectionDatesMode:"single",enableJumpToSelectedDate:!0,selectedDates:this.element.value?[this.element.value]:[],onClickDate:e=>{this.element.value=e.context.selectedDates[0]??"",e.hide()}}),this.calendar.init())}disconnect(){this.calendar?.destroy(),this.calendar=null,this.element.readOnly=!1,this.element.type="date"}}

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.