PageSourceSearch

https://zeit.io/assets/controllers/helpers/event_calendar-1bf73f7f…c59c5a9e5fd15dbcf5f29d235e936be97e63230c.js

js zeit.io collected 2026-09-25 15:02:05 UTC 1,198 bytes, 1 lines download raw bytes

1import Calendar from"@event-calendar/core";import TimeGrid from"@event-calendar/time-grid";import Interaction from"@event-calendar/interaction";export class EventCalendar{target=null;options=null;defaultOptions={firstDay:1,allDaySlot:!1,eventClassNames:["ec_time_record_event"],slotDuration:"00:15",editable:!0,pointer:!0,nowIndicator:!0,selectable:!0,lazyFetching:!0,slotEventOverlap:!1};constructor(e,t){if(this.target=document.getElementById(e),null===this.target)throw new Error("Event Calendar Target not found");this.options=t}render(){const e=document.getElementsByClassName("ec")[0];return e&&e.remove(),new Calendar({target:this.target,dayMaxEvents:!1,props:{plugins:[TimeGrid,Interaction],options:{view:"timeGridWeek",headerToolbar:{start:"prev,next today",center:"title",end:"timeGridWeek,timeGridDay"},eventClick:e=>this.editEntry(e),eventDrop:e=>this.editEntry(e),eventResize:e=>this.editEntry(e),eventSources:[{events:async e=>await this.options.cb.eventSourcesEvents(e)}],select:e=>{this.options.cb.select(e)},views:{timeGridWeek:{pointer:!0}},...this.getOptions()}}})}getOptions(){return{...this.defaultOptions,...this.options.calendarOptions}}editEntry(e){this.options.cb.edit(e)}}

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.