{"version":3,"sources":["components/Calendar_components/Consts.js","components/Calendar_components/Utils.js","components/Calendar_components/createIcsString.js","components/Calendar_components/IcsFileButton.js","components/Calendar_components/QrGenerator.js","components/Calendar_components/GoogleCal.js","components/Calendar_components/google_cal_icon.png","components/Calendar_components/CalendarTable.js","components/Footer.js","components/Tab.js","components/Tabs.js","components/rooms_finder_components/RoomsList.js","components/rooms_finder_components/FreeRoomsFinder.js","App.js","reportWebVitals.js","index.js"],"names":["ConstsDict","currentSemester","semesterFirstDay","year","month","day","dayOfWeek","semesterLastDay","appointmentToCleanVarsDict","appointment","cleanVarsDict","start","replace","end","Date","appointmentDate","setDate","getDate","getFullYear","String","getMonth","padStart","createIcsString","props","appointments","name","template","i","length","undefined","date","location","room","directors","map","dir","type","IcsFileButton","handleClick","bind","element","document","createElement","file","Blob","this","href","URL","createObjectURL","download","body","appendChild","click","removeChild","onClick","React","PureComponent","QrGenerator","text","useState","src","setSrc","useEffect","QRCode","toDataURL","then","data","alt","width","height","GoogleCal","encodeURIComponent","join","CalendarTable","state","search","courses","require","value","setState","ap","slice","filteredCourses","filter","course","semester","id","group","toLowerCase","includes","className","placeholder","size","onChange","e","onSearch","target","index","Fragment","apToDayAndHour","Footer","TabItem","styled","li","Tab","activeTab","label","isActive","Tabs","onClickTabItem","tab","children","child","Component","RoomsList","freeRooms","style","direction","freeRoom","allRooms","listStyleType","margin","padding","useStyles","makeStyles","theme","formControl","spacing","minWidth","button","backgroundColor","color","borderRadius","FreeRoomsFinder","classes","selectedDay","setSelectedDay","startHour","setStartHour","endHour","setEndHour","setFreeRooms","FormControl","htmlFor","Select","event","MenuItem","Button","variant","filteredFreeRooms","isFree","push","App","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode","getElementById"],"mappings":"2MAeeA,EAfI,CACfC,gBAAiB,EACjBC,iBAAkB,CACdC,KAAM,OACNC,MAAO,KACPC,IAAK,KACLC,UAAW,GAEfC,gBAAiB,C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AK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,uBAAK,8BCrHnH4H,MAjBf,WACE,OACE,sBAAK9D,UAAU,MAAf,UACI,eAAC,EAAD,WACI,qBAAKgB,MAAM,iEAAX,SACI,cAAC,EAAD,MAGJ,qBAAKA,MAAM,kHAAX,SACI,cAAC,EAAD,SAIR,cAAC,EAAD,QCPO+C,EAZS,SAAAC,GAClBA,GAAeA,aAAuBC,UACxC,8BAAqB1F,MAAK,YAAkD,IAA/C2F,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOF,GACPG,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAQN,OCDdO,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEF1H,SAAS2H,eAAe,SAM1BX,K","file":"static/js/main.add5aea5.chunk.js","sourcesContent":["const ConstsDict = {\n currentSemester: 2,\n semesterFirstDay: {\n year: \"2025\",\n month: \"03\",\n day: \"17\",\n dayOfWeek: 2 // 1 = Sunday, 2 = Monday, 3 = Tuesday, etc.\n },\n semesterLastDay: {\n year: \"2025\",\n month: \"07\",\n day: \"02\"\n }\n};\n\nexport default ConstsDict;\n","import ConstsDict from \"./Consts\";\n\nfunction appointmentToCleanVarsDict(appointment) {\n let cleanVarsDict = {};\n\n // Remove colons from time strings\n cleanVarsDict[\"start\"] = appointment.start.replace(/:/g, '');\n cleanVarsDict[\"end\"] = appointment.end.replace(/:/g, '');\n \n // Parse the semester first day\n let semesterFirstDay = new Date(\n `${ConstsDict.semesterFirstDay.year}-${ConstsDict.semesterFirstDay.month}-${ConstsDict.semesterFirstDay.day}`\n );\n \n let appointmentDate = new Date(semesterFirstDay);\n appointmentDate.setDate(appointmentDate.getDate() + (appointment.day - ConstsDict.semesterFirstDay.dayOfWeek));\n \n // Format the date components with leading zeros\n let year = appointmentDate.getFullYear();\n let month = String(appointmentDate.getMonth() + 1).padStart(2, '0'); // Months are zero-indexed\n let day = String(appointmentDate.getDate()).padStart(2, '0');\n cleanVarsDict[\"date\"] = `${year}${month}${day}`;\n\n return cleanVarsDict;\n}\nexport default appointmentToCleanVarsDict;\n","import ConstsDict from \"./Consts\";\nimport appointmentToCleanVarsDict from \"./Utils\";\n\nfunction createIcsString(props) {\n let appointments = props.appointments;\n let name = props.name;\n // Format the semester last day\n const semesterLastDay = `${ConstsDict.semesterLastDay.year}${ConstsDict.semesterLastDay.month}${ConstsDict.semesterLastDay.day}T000000Z`;\n\n let template = `BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//bobbin v0.1//NONSGML iCal Writer//EN\nCALSCALE:GREGORIAN\nMETHOD:PUBLISH\n`;\n for (let i = 0; i < appointments.length; i++) {\n let appointment = appointments[i];\n if (appointment === undefined || appointment.start === undefined) {\n return \"No data available\";\n }\n let cleanVarsDict = appointmentToCleanVarsDict(appointment);\n template += `BEGIN:VEVENT\nDTSTART;TZID=Asia/Jerusalem:${cleanVarsDict.date}T${cleanVarsDict.start}\nDTEND;TZID=Asia/Jerusalem:${cleanVarsDict.date}T${cleanVarsDict.end}\nRRULE:FREQ=WEEKLY;UNTIL=${semesterLastDay}\nLOCATION:${appointment.location || appointment.room ? appointment.location + \" | \" + appointment.room : \"\"}\nURL:https://www.tau-cal.com\nDESCRIPTION:${appointment.directors.map(dir => \" \" + dir)}\nSEQUENCE:0\nSTATUS:CONFIRMED\nSUMMARY:${name + \" | \" + appointment.type}\nTRANSP:OPAQUE\nEND:VEVENT\n`;\n }\n template += `END:VCALENDAR`;\n\n return template;\n}\nexport default createIcsString;\n","import React from \"react\";\nimport createIcsString from \"./createIcsString\";\n\nexport class IcsFileButton extends React.PureComponent {\n constructor(props) {\n super(props);\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleClick() {\n const element = document.createElement(\"a\");\n const file = new Blob([createIcsString(this.props)], { type: 'text/calendar;charset=utf-8' });\n element.href = URL.createObjectURL(file);\n element.download = \"TAU-Cal.ics\";\n document.body.appendChild(element); // Required for this to work in FireFox\n element.click();\n document.body.removeChild(element);\n }\n\n render() {\n return (\n
\n \n
\n );\n }\n}\n\nexport default IcsFileButton;\n","import QRCode from 'qrcode';\nimport React, { useEffect, useState } from 'react';\nimport createIcsString from \"./createIcsString\";\n\nconst QrGenerator = (props) => {\n let text = createIcsString(props);\n const [src, setSrc] = useState('');\n\n useEffect(() => {\n QRCode.toDataURL(text).then((data) => {\n setSrc(data);\n });\n }, [text]);\n\n return (\n
\n {text === \"No data available\" ? (\n

שעת המפגש אינה במערכת

\n ) : (\n \"QR\n )}\n
\n );\n};\nexport default QrGenerator;","import React from \"react\";\nimport google from './google_cal_icon.png';\nimport ConstsDict from \"./Consts\";\nimport appointmentToCleanVarsDict from \"./Utils\";\n\nexport class GoogleCal extends React.PureComponent {\n render() {\n let appointment = this.props.appointment;\n let name = this.props.name;\n if (appointment === undefined || appointment.start === undefined) {\n return (\n
\n

שעת המפגש אינה במערכת

\n
\n );\n }\n let cleanVarsDict = appointmentToCleanVarsDict(appointment);\n // Format the semester last day\n const semesterLastDay = `${ConstsDict.semesterLastDay.year}${ConstsDict.semesterLastDay.month}${ConstsDict.semesterLastDay.day}T000000Z`;\n\n let template = \"https://calendar.google.com/calendar/u/0/r/eventedit?dates=\";\n template += cleanVarsDict.date + \"T\" + cleanVarsDict.start + \"/\";\n template += cleanVarsDict.date + \"T\" + cleanVarsDict.end;\n template += \"&text=\" + encodeURIComponent(name + \" | \" + appointment.type);\n template += \"&location=\" + encodeURIComponent(appointment.location + \" | \" + appointment.room);\n template += \"&details=\" + encodeURIComponent(appointment.directors.join(\", \") + \" www.tau-cal.com\");\n template += \"&recur=RRULE:FREQ=WEEKLY;UNTIL=\" + semesterLastDay;\n\n return (\n
\n \n \"Google\n \n
\n );\n }\n}\nexport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yKzAwOjAwuFvo3gAAACB0RVh0c29mdHdhcmUAaHR0cHM6Ly9pbWFnZW1hZ2ljay5vcme8zx2dAAAAGHRFWHRUaHVtYjo6RG9jdW1lbnQ6OlBhZ2VzADGn/7svAAAAGHRFWHRUaHVtYjo6SW1hZ2U6OkhlaWdodAA1MTKPjVOBAAAAF3RFWHRUaHVtYjo6SW1hZ2U6OldpZHRoADUxMhx8A9wAAAAZdEVYdFRodW1iOjpNaW1ldHlwZQBpbWFnZS9wbmc/slZOAAAAF3RFWHRUaHVtYjo6TVRpbWUAMTYwNDkyOTI4MvPUKRgAAAASdEVYdFRodW1iOjpTaXplADcxNzRCQqDNk4UAAABUdEVYdFRodW1iOjpVUkkAZmlsZTovLy4vdXBsb2Fkcy81Ni9tQ2pXVVVzLzI2MzEvZ29vZ2xlX2NhbGVuZGFyX25ld19sb2dvX2ljb25fMTU5MTQxLnBuZ7LgukUAAAAASUVORK5CYII=\"","import React from \"react\";\nimport IcsFileButton from \"./IcsFileButton\";\nimport QrGenerator from \"./QrGenerator\";\nimport './CalendarTable.css';\nimport '../../courses.json';\nimport GoogleCal from \"./GoogleCal\";\nimport ConstsDict from \"./Consts\";\n\nexport class CalendarTable extends React.PureComponent {\n constructor(props) {\n super(props);\n this.state = {\n search: '',\n courses: require('../../courses.json')\n };\n }\n\n onSearch(value) {\n this.setState({ search: value });\n }\n\n apToDayAndHour(ap) {\n let days = [\" \", \"א׳\", \"ב׳\", \"ג׳\", \"ד׳\", \"ה׳\", \"ו׳\", \"ש׳\"];\n if (!ap.start || !ap.end || !ap.day) {\n return \"\";\n }\n return (\n
\n {days[ap.day]}\n
\n {ap.start.slice(0, 5)} - {ap.end.slice(0, 5)}\n
\n );\n }\n\n render() {\n let courses = this.state.courses;\n\n // Filter courses based on search input and current semester\n let filteredCourses = courses.filter(course =>\n course.appointments[0].semester === ConstsDict.currentSemester &&\n (course.name + course.id + \"-\" + course.group + course.appointments[0].directors.join(\" \") + course.id.slice(0, 4) + course.id.slice(5, 9) + course.group)\n .toLowerCase()\n .includes(this.state.search.toLowerCase())\n );\n\n filteredCourses = filteredCourses.slice(0, 15);\n if (this.state.search === '') {\n filteredCourses = [];\n }\n\n return (\n
\n
\n
\n this.onSearch(e.target.value)}\n />\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n {filteredCourses.map(course => (\n \n \n \n \n \n \n \n \n ))}\n \n
Google Cal / ics\n iPhone / iPad\n
\n לחיצה ארוכה על הקוד\n
יום ושעהשם המרצהשם הקורסמס׳ קורס
\n {course.appointments.map((ap, index) => (\n \n \n \n ))}\n \n \n {course.appointments.map((ap, index) => (\n \n ))}\n \n {course.appointments.map((ap, index) => (\n
{this.apToDayAndHour(ap)}
\n ))}\n
\n {course.appointments[0].directors.map((dir, index) => (\n
{dir}
\n ))}\n
{course.name}\n {course.id.slice(0, 4)}\n
\n {course.id.slice(5, 9)}\n
\n {course.group}\n
\n {filteredCourses.length > 0 ? (\n
\n
\n
\n
\n ) : (\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n )}\n
\n );\n }\n}\n\nexport default CalendarTable;\n","import React from \"react\";\nimport ConstsDict from \"./Calendar_components/Consts\";\n\nexport class Footer extends React.PureComponent {\n render() {\n let omri = \"https://www.linkedin.com/in/omri-fahn/\";\n let ido = \"https://www.linkedin.com/in/ido-weins\";\n let ron = \"https://www.linkedin.com/in/ron-peleg-8175b0173\";\n let gilad = \"https://www.linkedin.com/in/gilad-shacham/\";\n let GPT4 = \"https://openai.com/product/gpt-4\";\n\n return (\n
\n \n
\n );\n }\n}\nexport default Footer;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst TabItem = styled.li`\n list-style: none;\n display: inline-block;\n margin-right: 10px;\n padding: 10px;\n font-size: 16px;\n font-weight: bold;\n color: #3fb58e;\n cursor: pointer;\n border-bottom: 2px solid transparent;\n border-radius: 25px;\n\n &:hover {\n }\n\n &.tab-list-active {\n color: #fff;\n background-color: #3fb58e;\n border-radius: 25px;\n }\n`;\n\nfunction Tab(props) {\n const { activeTab, label, onClick } = props;\n\n const handleClick = () => {\n onClick(label);\n };\n\n const isActive = activeTab === label;\n\n return (\n \n {label}\n \n );\n}\n\nTab.propTypes = {\n activeTab: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n};\n\nexport default Tab;\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport Tab from \"./Tab\";\n\nclass Tabs extends Component {\n static propTypes = {\n children: PropTypes.instanceOf(Array).isRequired,\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n activeTab: this.props.children[0].props.label,\n };\n }\n\n onClickTabItem = (tab) => {\n this.setState({ activeTab: tab });\n };\n\n render() {\n const {\n onClickTabItem,\n props: { children },\n state: { activeTab },\n } = this;\n\n return (\n
\n
    \n {children.map((child) => {\n const { label } = child.props;\n\n return (\n \n );\n })}\n
\n
\n {children.map((child) => {\n if (child.props.label !== activeTab) return undefined;\n return child.props.children;\n })}\n
\n
\n );\n }\n}\n\nexport default Tabs;\n","import React from 'react';\n\nconst RoomsList = (props) => {\n const { freeRooms } = props;\n\n return (\n \n );\n};\n\nexport default RoomsList;\n","import React, { useState } from 'react';\nimport data from '../../real_rooms_availability.json';\nimport RoomsList from \"./RoomsList\";\n\nimport { makeStyles } from '@material-ui/core/styles';\nimport FormControl from '@material-ui/core/FormControl';\nimport Select from '@material-ui/core/Select';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport { green } from '@material-ui/core/colors';\nimport {Button} from \"@material-ui/core\";\n\nconst useStyles = makeStyles((theme) => ({\n formControl: {\n margin: theme.spacing(1),\n minWidth: 100,\n width: 'auto',\n },\n button: {\n backgroundColor: \"#3fb58e\",\n color: 'white',\n borderRadius: '25px',\n '&:hover': {\n backgroundColor: \"#3fb58e\",\n },\n },\n}));\n\nconst FreeRoomsFinder = () => {\n const classes = useStyles();\n const [selectedDay, setSelectedDay] = useState(1);\n const [startHour, setStartHour] = useState(8);\n const [endHour, setEndHour] = useState(9);\n const [freeRooms, setFreeRooms] = useState([]);\n\n\n const handleDayChange = (event) => {\n setSelectedDay(event.target.value);\n };\n\n const handleStartHourChange = (event) => {\n setStartHour(event.target.value);\n };\n\n const handleEndHourChange = (event) => {\n setEndHour(event.target.value);\n };\n\n const handleSendButtonClick = () => {\n setFreeRooms([]);\n const filteredFreeRooms = [];\n for (const location in data) {\n for (const room in data[location]) {\n let isFree = false;\n for (let i = startHour; i < endHour; i++) {\n isFree = true;\n if (!data[location][room][selectedDay][i]) {\n isFree = false;\n break;\n }\n }\n if (isFree) {\n filteredFreeRooms.push({ location, room });\n }\n }\n }\n setFreeRooms(filteredFreeRooms);\n };\n\n return (\n
\n\n \n \n \n א׳\n ב׳\n ג׳\n ד׳\n ה׳\n \n \n\n \n \n \n 08:00\n 09:00 \n 10:00\n 11:00\n 12:00\n 13:00\n 14:00\n 15:00\n 16:00\n 17:00\n 18:00\n 19:00\n \n \n\n \n \n \n 09:00\n 10:00\n 11:00\n 12:00\n 13:00\n 14:00\n 15:00\n 16:00\n 17:00\n 18:00\n 19:00\n 20:00\n \n \n\n
\n \n\n \n {\n (freeRooms.length > 0) ?


:
\n






















\n
\n }\n
\n );\n};\nexport default FreeRoomsFinder;\n","import './App.css';\nimport CalendarTable from \"./components/Calendar_components/CalendarTable\";\nimport Footer from \"./components/Footer\";\nimport Tabs from \"./components/Tabs\";\nimport FreeRoomsFinder from \"./components/rooms_finder_components/FreeRoomsFinder\";\n\nfunction App() {\n return (\n
\n \n
\n \n
\n\n
\n \n
\n
\n\n
\n
\n );\n}\nexport default App;\n","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}