1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14757],{14757:function(e,i,l){"use strict";l.r(i);var n=l(57437);l(2265),l(99681),i.default=e=>{let{columns:i,data:l,todayData:t,selectedDate:d,handleDateChange:s,handleKeyClick:a,Reschedule:r,setReschedule:c,HandleReschedule:o,timeZones:m,selectedTime:u,type:x,joinSession:p}=e,h=new Date().toISOString().split("T")[0];return(0,n.jsx)(n.Fragment,{children:l.map((e,i)=>{var l,t,v,j;return(0,n.jsx)("div",{className:"mobileDataTable",children:(0,n.jsx)("div",{className:"data_container",children:(0,n.jsxs)("div",{className:"table_data flex-column align-items-start ",children:[(0,n.jsxs)("div",{className:"d-flex w-100 align-items-center py-2",children:[(0,n.jsx)("p",{children:"Student Name"}),":"," ",(0,n.jsxs)("p",{className:"px-2",children:[null==e?void 0:null===(l=e.student)||void 0===l?void 0:l.first_name," ",null==e?void 0:null===(t=e.student)||void 0===t?void 0:t.last_name]})," "]}),(0,n.jsxs)("div",{className:"d-flex w-100 align-items-center py-2",children:[(0,n.jsx)("p",{children:"Project Name"}),":"," ",(0,n.jsxs)("p",{className:"text-primary px-2",children:[null==e?void 0:null===(j=e.enrollment)||void 0===j?void 0:null===(v=j.project)||void 0===v?void 0:v.project_title," "]})]}),(0,n.jsxs)("div",{className:"d-flex w-100 align-items-center py-2",children:[(0,n.jsx)("p",{children:"Date"}),":"," ",(null==r?void 0:r.id)===(null==e?void 0:e.id)?(0,n.jsx)("input",{className:"date_style form-control",style:{marginTop:"5px",maxWidth:"200px"},id:"dateInput",placeholder:"dd-mm-yyyy",value:d,type:"date",min:h,onChange:s}):(0,n.jsxs)("p",{className:"text-black px-2",children:[" ",new Date(null==e?void 0:e.startTime).toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"})]})]}),(0,n.jsxs)("div",{className:"d-flex w-100 align-items-center py-2",children:[(0,n.jsx)("p",{children:"Timing"}),":"," ",(null==r?void 0:r.id)===(null==e?void 0:e.id)&&d?(0,n.jsx)("div",{className:"time_dropdown time-row py-2 px-2 my-1 mx-auto",style:{maxWidth:"250px"},children:0==!Object.keys(m).length?(0,n.jsx)(n.Fragment,{children:Object.keys(m).map(e=>(0,n.jsx)("div",{className:"col-4 gap-1",children:(0,n.jsx)("span",{style:{backgroundColor:u===e?"#6149cd":"",color:u===e?"#fff":"",cursor:"pointer"},className:"duration w-100 my-6 p-1 gap-4 rounded fw-light",onClick:()=>a(e),children:e})},e))}):(0,n.jsx)("p",{children:"Mentor is not available on this day"})}):(0,n.jsxs)("p",{className:"text-danger px-2",children:[" ",new Date(null==e?void 0:e.startTime).toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0})]})]}),(0,n.jsxs)("div",{className:"d-flex w-100 align-items-center py-2",children:[(0,n.jsx)("p",{children:"Actions"}),":"," ","todaySession"===x?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("button",{style:{background:"#47d065"},onClick:i=>{p(i,e)},children:"Join"})}):(null==r?void 0:r.id)===(null==e?void 0:e.id)?(0,n.jsx)("button",{onClick:()=>o({id:e.id,student_id:e.student_id,mentor_id:e.mentor_id}),className:"btnorg",children:"Update"}):(0,n.jsx)("button",{onClick:()=>c({id:null==e?void 0:e.id}),className:"btnred",children:"Reschedule"})]})]})})},i)})})}},99681:function(){}}]);
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.