{"version":3,"file":"list-TKQF7F9x.js","sources":["../../../app/frontend/entrypoints/controllers/reporting/appointments/overview/list.ts"],"sourcesContent":["import jQuery from 'jquery/dist/jquery';\nimport Utils from '../../../../utils'\nimport DefaultController from \"../../../defaultController\";\nimport Calendar from '@event-calendar/core';\nimport DayGrid from '@event-calendar/day-grid';\nimport TimeGrid from '@event-calendar/time-grid';\n\nexport default class ReportingAppointmentList extends DefaultController {\n\n private ulUserList: any;\n private calendars: any = {}\n private calendarResources: any[] = [];\n\n protected calendarAppointmentList: any = {}\n\n async init() {\n this.ulUserList = jQuery('#ticket_service_user_list')\n\n await this.setup();\n await super.init()\n }\n\n async setup() {\n this.calendarResources = [];\n this.calendarAppointmentList = {};\n const users = await Utils.entity.getAll(\"users/capable_users\")\n users.data.forEach((u: any, i: number) => {\n this.calendarResources.push({\n id: i + 1,\n title: u.name,\n color: `#${Utils.genCalendarColor(i)}`,\n uuid: u.uuid\n })\n })\n\n this.ulUserList.html(\"\");\n for (const resource of this.calendarResources) {\n this.calendarAppointmentList[resource.uuid] = [];\n this.ulUserList.html(this.ulUserList.html() + `