1import{b as re}from"./chunk-IIALE3Y5.js";import"./chunk-KYIXWBCE.js";import{a as se,b as ae,c as de}from"./chunk-BDHCRVZD.js";import{a as f}from"./chunk-KY3IO7GK.js";import"./chunk-KHKI5QSB.js";import{a as oe}from"./chunk-AJHHWUJO.js";import{b as Z}from"./chunk-HOURHBQE.js";import"./chunk-5U5JED5D.js";import"./chunk-5XB6QCA4.js";import"./chunk-F7CHXW22.js";import"./chunk-LSUFPJMW.js";import{r as ee,s as te,y as ie,z as ne}from"./chunk-O77TPWE2.js";import{y as X}from"./chunk-5TIID3KF.js";import{Hb as H,Ic as r,Jc as O,Kc as V,Mb as b,Mc as J,O as y,Xc as K,_c as Q,ad as W,ec as m,hc as U,ic as q,jc as s,kc as d,lc as v,oa as D,oc as B,sc as _,tc as c,u as N,ua as G,ub as u,va as p,wc as Y,ya as S,za as A}from"./chunk-QCA4WRSO.js";import"./chunk-PZOZSQF6.js";import"./chunk-2DJTJSDD.js";import"./chunk-EU2KAMEK.js";import{a as M,b as z}from"./chunk-2AVGQ2MQ.js";var ce=(o,i,t)=>({itemsPerPage:o,currentPage:i,totalItems:t}),pe=(o,i)=>i.id;function ue(o,i){if(o&1){let t=B();s(0,"span",39),_("click",function(){S(t);let a=c();return A(a.selectManyStudents())}),r(1," Approve Several "),d(),s(2,"span",40),_("click",function(){S(t);let a=c();return A(a.ApproveAll())}),r(3," Approve All "),d(),s(4,"span",41),r(5,"|"),d(),s(6,"span",42),_("click",function(){S(t);let a=c();return A(a.rejectSeveral())}),r(7," Reject Several "),d()}}function me(o,i){o&1&&(s(0,"span",43),r(1,"Select Students"),d())}function _e(o,i){if(o&1){let t=B();s(0,"span",46),_("click",function(){S(t);let a=c(4);return A(a.approveSeveral())}),r(1," Approve Selected "),d()}}function he(o,i){o&1&&v(0,"div",45)}function fe(o,i){if(o&1&&b(0,_e,2,0,"span",44)(1,he,1,0,"div",45),o&2){let t=c(3);m(t.isApprovingSeveral==!1?0:1)}}function be(o,i){if(o&1&&b(0,me,2,0,"span",43)(1,fe,2,1),o&2){let t=c(2);m(t.studentsArray.length==0?0:1)}}function ge(o,i){o&1&&(s(0,"span",47),r(1,"Select Students"),d())}function xe(o,i){if(o&1){let t=B();s(0,"span",50),_("click",function(){S(t);let a=c(4);return A(a.rejectSelectedStudents())}),r(1," Reject Selected "),d()}}function ve(o,i){o&1&&v(0,"div",49)}function Ce(o,i){if(o&1&&b(0,xe,2,0,"span",48)(1,ve,1,0,"div",49),o&2){let t=c(3);m(t.isRejectingMany==!1?0:1)}}function ye(o,i){if(o&1&&b(0,ge,2,0,"span",47)(1,Ce,2,1),o&2){let t=c(2);m(t.studentsArrayToReject.length==0?0:1)}}function Se(o,i){if(o&1&&b(0,be,2,1)(1,ye,2,1),o&2){let t=c();m(t.isSelectingSeveral==!0?0:-1),u(),m(t.isRejectingSeveral==!0?1:-1)}}function Ae(o,i){if(o&1){let t=B();s(0,"input",56),_("change",function(a){S(t);let n=c().$implicit,g=c();return A(g.StudentsSelected(a,n))}),d()}if(o&2){let t=c().$implicit;Y("value",t.student_id)}}function we(o,i){if(o&1){let t=B();s(0,"input",56),_("change",function(a){S(t);let n=c().$implicit,g=c();return A(g.StudentsSelectedToReject(a,n))}),d()}if(o&2){let t=c().$implicit;Y("value",t.student_id)}}function Te(o,i){if(o&1){let t=B();s(0,"span",57),_("click",function(){S(t);let a=c().$implicit,n=c();return A(n.approveBed(a))}),r(1," Approve "),d(),s(2,"span",58),_("click",function(){S(t);let a=c().$implicit,n=c();return A(n.rejectApplication(a))}),r(3," Reject "),d()}}function Be(o,i){if(o&1&&(s(0,"tr",19)(1,"td",51),r(2),d(),s(3,"td",52),b(4,Ae,1,1,"input",53)(5,we,1,1,"input",53),r(6),d(),s(7,"td",54),r(8),d(),s(9,"td",55),b(10,Te,4,0),d()()),o&2){let t=i.$implicit,e=i.$index,a=c();u(2),V(" ",e+1," "),u(2),m(a.isSelectingSeveral==!0?4:-1),u(),m(a.isRejectingSeveral==!0?5:-1),u(),V(" ",t.student_name," "),u(2),J(" ",t.hostel_name," (",t.room_name,") ~ ",t.bed_name," "),u(2),m(t.hasBookedBed==!0&&t.hasBed==!0&&(t.bedApproved==!1||t.bedApproved==null)?10:-1)}}function je(o,i){if(o&1&&(s(0,"tr")(1,"td",59),r(2),d()()),o&2){let t=c();u(2),O(t.notData)}}function ke(o,i){if(o&1&&(s(0,"tr")(1,"td",59),r(2),d()()),o&2){let t=c();u(2),O(t.noRecord)}}function Ie(o,i){o&1&&(s(0,"tr")(1,"td",60)(2,"div",61),v(3,"div",45),d()()())}function Me(o,i){if(o&1){let t=B();s(0,"div",20)(1,"pagination-controls",62),_("pageChange",function(a){S(t);let n=c();return A(n.onTableChange(a))}),d()()}}function Ee(o,i){o&1&&r(0," Yes ")}function Re(o,i){o&1&&(s(0,"div",31)(1,"span",63),r(2,"Loading..."),d()())}function Oe(o,i){o&1&&r(0," Approve ")}function Ve(o,i){o&1&&(s(0,"div",31)(1,"span",63),r(2,"Loading..."),d()())}function Pe(o,i){o&1&&r(0," Yes ")}function Ne(o,i){o&1&&(s(0,"div",31)(1,"span",63),r(2,"Loading..."),d()())}var le=class o{astudentAccountID;subs=[];thisSem;year;page=1;count=0;tableSize=200;isApprovingApplication=!1;isSelectingSeveral=!1;studentToApprove;bedToApprove;hasClicked=!1;isRejectingMany=!1;isApprovingSeveral=!1;isRejectingBed=!1;
1bedDetailsToApprove;bed;students=[];newStudents=[];studentsArray=[];studentsArrayToReject=[];notData;noRecord;occupant;isApprovingAll=!1;isApprovingall=!1;isRejectingSeveral=!1;notice=D(oe);afs=D(Z);injector=D(G);ngOnDestroy(){this.subs.forEach(i=>i.unsubscribe())}ngOnInit(){this.getCurrentSem()}getCurrentSem(){p(this.injector,()=>{let i=this.afs.collection("accommodation_sem").snapshotChanges().pipe(y((t,e)=>t.sem_id==e.sem_id)).pipe(N(t=>t.map(e=>{let a=e.payload.doc.data();return M({id:e.payload.doc.id},a)}))).subscribe(t=>{t.length>0&&(this.thisSem=t[0].sem_id,this.year=t[0].year,this.getBedApplications())});this.subs.push(i)})}selectManyStudents(){this.isSelectingSeveral=!0,this.hasClicked=!0}ApproveAll(){this.hasClicked=!0,this.isApprovingAll=!0,$("#approveAll").modal("show")}StudentsSelected(i,t){var e=this.studentsArray.map(n=>n.student_id).indexOf(i.target.value);let a={student_id:i.target.value,bed_id_update:t.bed_id_update,account_id_update:t.sem_id+"_"+t.year+"_"+t.uid};e==-1?this.studentsArray.push(a):this.studentsArray.splice(e,1)}getOtherCategories(i){let t=i.value;this.students=[],this.newStudents=[],t=="allbeds"?this.getBedApplications():this.getConditaionalApplications(t)}getConditaionalApplications(i){let t=[];this.students=[],this.newStudents=[];let e=i==="female_beds"?"Female":"Male";p(this.injector,()=>{let a=this.afs.collection("accommodationAccounts",n=>n.where("sem_id","==",this.thisSem).where("year","==",this.year).where("bedApproved","==",!1).where("gender","==",e)).snapshotChanges().pipe(y((n,g)=>n.student_id==g.student_id)).pipe(N(n=>n.map(g=>{let l=g.payload.doc.data();return M({id:g.payload.doc.id},l)}))).subscribe(n=>{if(n.length>0){let g=n.length;for(let l=0;l<n.length;l++)p(this.injector,()=>{let P=this.afs.collection("beds_for_rooms",h=>h.orderBy("bed_no","asc")).doc(`${n[l].bed_id_update}`).valueChanges().pipe(y((h,j)=>h.student_id==j.student_id)).subscribe(h=>{h&&p(this.injector,()=>{let j=this.afs.collection("hostels",x=>x.where("hostel_id","==",h.hostel_id+"")).valueChanges().pipe(y((x,k)=>x.hostel_id==k.hostel_id)).subscribe(x=>{x.length>0&&p(this.injector,()=>{let k=this.afs.collection("hostel_rooms",w=>w.where("room_id","==",h.room_id+"")).valueChanges().pipe(y((w,E)=>w.room_id==E.room_id)).subscribe(w=>{if(w.length>0){let E={admNo:n[l].admNo,bedApproved:n[l].bedApproved,bed_id:n[l].bed_id,bed_id_update:n[l].bed_id_update,email:n[l].email,gender:n[l].gender,hasBed:n[l].hasBed,hasBookedBed:n[l].hasBookedBed,hasPaid:n[l].hasBookedBed,sem_id:n[l].sem_id,student_id:n[l].student_id,tel:n[l].tel,uid:n[l].uid,year:n[l].year,hostel_name:x[0].hostel_name||"Hostel Missing",bed_name:h.bed_name,room_name:w[0].room_name||"Room Missing",account_id_update:n[l].sem_id+"_"+n[l].year+"_"+n[l].uid};if(t.push(E),g===l+1){let T=[];if(t.length>0){let F=t.length;for(let C=0;C<t.length;C++)p(this.injector,()=>{let R=this.afs.collection("eligility_for_accomodation",I=>I.where("student_id","==",t[C].student_id)).valueChanges().pipe(y((I,L)=>I.student_id==L.student_id)).subscribe(I=>{if(I.length>0){let L=z(M({},t[C]),{student_name:I[0].student_name});T.push(L)}F===C+1&&(T.length>0?(this.students=T,this.newStudents=this.students):(this.students=[],this.newStudents=[],this.notData="No application records found!"))});this.subs.push(R)})}else this.students=[],this.newStudents=[],this.notData="No application records found!"}}});this.subs.push(k)})});this.subs.push(j)})})})}else this.students=[],this.newStudents=[],this.notData="No application records found!"});this.subs.push(a)})}StudentsSelectedToReject(i,t){var e=this.studentsArrayToReject.map(n=>n.student_id).indexOf(i.target.value);let a={student_id:i.target.value,bed_id_update:t.bed_id_update,account_id_update:t.sem_id+"_"+t.year+"_"+t.uid};e==-1?this.studentsArrayToReject.push(a):this.studentsArrayToReject.splice(e,1)}approveSeveral(){if(this.isApprovingSeveral=!0,this.studentsArray.length>0){let i={bedApproved:!0},t=this.studentsArray.length;for(let e=0;e<this.studentsArray.length;e++)p(this.injector,()=>this.afs.collection("accommodationAccounts").doc(`${this.studentsArray[e].account_id_update}`).update(i)).then(()=>{p(this.injector,()=>this.afs.collection("beds_for_rooms").doc(`${this.studentsArray[e].bed_id_update}`).update(i)).catch(g=>{this.notice.delete(g.message),setTimeout(()=>{this.isApprovingSeveral=!1},1e3)})}).catch(n=>{this.notice.delete(n.message),setTimeout(()=>{this.isApprovingSeveral=!1},1e3)}),t==e+1&&(this.notice.success("Approval was succesful"),this.getBedApplications(),this.notice.success("You have approved "+this.studentsArray.length+" student(s) successfully"),setTimeout(()=>{this.isApprovingSeveral=!1,this.studentsArray=[]},1e3),setTimeout(()=>{this.isSelectingSeveral=!1,this.hasClicked=!1},1500))}else this.notice.delete("Select students to approve!"),setTimeout(()=>{this.isApprovingSeveral=!1},1e3),setTimeout(()=>{this.isSelectingSeveral=!1,this.hasClicked=!1},1500)}approveAll(){if(this.isApprovingall=!0,this.students.length>0){let i={bedApproved:!0},t=this.students.length;for(let e=0;e<this.students.length;e++)p(this.injector,()=>{this.afs.collection("accommodationAccounts").doc(`${this.students[e].account_id_update}`).update(i)}),p(this.injector,()=>{this.afs.collection("beds_for_rooms").doc(`${this.students[e].bed_id_update}`).update(i)}),t==e+1&&(this.notice.success("Approval was succesful"),this.notice.success("You have approved "+this.students.length+" student(s) successfully"),setTimeout(()=>{this.isApprovingall=!1,this.getBedApplications()},1e3),setTimeout(()=>{this.isSelectingSeveral=!1,this.hasClicked=!1,$("#approveAll").modal("hide")},1500))}else this.notice.delete("Select students to approve!"),setTimeout(()=>{this.isApprovingall=!1},1e3),setTimeout(()=>{this.isSelectingSeveral=!1,this.hasClicked=!1},1500)}rejectSeveral(){this.hasClicked=!0,this.isRejectingSeveral=!0}backNormal(){this.hasClicked=!1}rejectSelectedStudents(){if(this.isRejectingMany=!0,this.studentsArrayToReject.length>0){let i={isBooked:!1,isOccupied:!1},t=this.studentsArrayToReject.length;for(let e=0;e<this.studentsArrayToReject.length;e++)p(this.injector,()=>this.afs.collection("beds_for_rooms").doc(`${this.studentsArrayToReject[e].bed_id_update}`).update(i)).then(()=>{p(this.injector,()=>{this.afs.collection("accommodationAccounts").doc(`${this.studentsArrayToReject[e].account_id_update}`).update({hasBed:f.firestore.FieldValue.delete(),bedApproved:f.firestore.FieldValue.delete(),hasBookedBed:f.firestore.FieldValue.delete(),bed_id_update:f.firestore.FieldValue.delete()})}),p(this.injector,()=>{this.afs.collection("beds_for_rooms").doc(`${this.studentsArrayToReject[e].bed_id_update}`).update({occupant_id:f.firestore.FieldValue.delete(),account_id_update:f.firestore.FieldValue.delete(),bedApproved:f.firestore.FieldValue.delete()})})}).catch(n=>{this.notice.delete(n.message),setTimeout(()=>{this.isRejectingMany=!1}
1,1e3)}),t==e+1&&(this.notice.success("Applications rejected Successfully!"),setTimeout(()=>{this.isRejectingMany=!1,this.getBedApplications()},1e3),setTimeout(()=>{this.isRejectingSeveral=!1,this.hasClicked=!1},1500),setTimeout(()=>{this.studentsArrayToReject},5e3))}else setTimeout(()=>{this.isRejectingMany=!1},1e3),this.notice.delete("Error Occurred!")}getBedApplications(){let i=[];this.students=[],this.newStudents=[],p(this.injector,()=>{let t=this.afs.collection("accommodationAccounts",e=>e.where("sem_id","==",this.thisSem).where("year","==",this.year).where("bedApproved","==",!1)).snapshotChanges().pipe(y((e,a)=>e.student_id==a.student_id)).pipe(N(e=>e.map(a=>{let n=a.payload.doc.data();return M({id:a.payload.doc.id},n)}))).subscribe(e=>{if(e.length>0){let a=e.length;for(let n=0;n<e.length;n++)p(this.injector,()=>{let g=this.afs.collection("beds_for_rooms",l=>l.orderBy("bed_no","asc")).doc(`${e[n].bed_id_update}`).valueChanges().pipe(y((l,P)=>l.student_id==P.student_id)).subscribe(l=>{l&&p(this.injector,()=>{let P=this.afs.collection("hostels",h=>h.where("hostel_id","==",l.hostel_id+"")).valueChanges().pipe(y((h,j)=>h.hostel_id==j.hostel_id)).subscribe(h=>{h.length>0&&p(this.injector,()=>{let j=this.afs.collection("hostel_rooms",x=>x.where("room_id","==",l.room_id+"")).valueChanges().pipe(y((x,k)=>x.room_id==k.room_id)).subscribe(x=>{if(x.length>0){let k={admNo:e[n].admNo,bedApproved:e[n].bedApproved,bed_id:e[n].bed_id,bed_id_update:e[n].bed_id_update,email:e[n].email,gender:e[n].gender,hasBed:e[n].hasBed,hasBookedBed:e[n].hasBookedBed,hasPaid:e[n].hasBookedBed,sem_id:e[n].sem_id,student_id:e[n].student_id,tel:e[n].tel,uid:e[n].uid,year:e[n].year,hostel_name:h[0].hostel_name||"Hostel Missing",bed_name:l.bed_name,room_name:x[0].room_name||"Room Missing",account_id_update:e[n].sem_id+"_"+e[n].year+"_"+e[n].uid};if(i.push(k),a===n+1){let w=[];if(i.length>0){let E=i.length;for(let T=0;T<i.length;T++)p(this.injector,()=>{let F=this.afs.collection("eligility_for_accomodation",C=>C.where("student_id","==",i[T].student_id)).valueChanges().pipe(y((C,R)=>C.student_id==R.student_id)).subscribe(C=>{if(C.length>0){let R=z(M({},i[T]),{student_name:C[0].student_name});w.push(R)}E===T+1&&(w.length>0?(this.students=w,this.newStudents=this.students):(this.students=[],this.newStudents=[],this.notData="No application records found!"))});this.subs.push(F)})}else this.students=[],this.newStudents=[],this.notData="No application records found!"}}});this.subs.push(j)})});this.subs.push(P)})})})}else this.students=[],this.newStudents=[],this.notData="No application records found!"});this.subs.push(t)})}serachStudent(i){let t=i.value.toLowerCase();i===""?this.newStudents=this.students:this.newStudents=this.students.filter(e=>e.student_name.toLowerCase().includes(t)||e.hostel_name.toLowerCase().includes(t)||e.room_name.toLowerCase().includes(t)||e.bed_name.toLowerCase().includes(t)),this.newStudents.length==0?this.noRecord="No such record found":this.noRecord=""}onTableChange(i){this.students=[],this.newStudents=[],this.page=i,this.getBedApplications()}approveBed(i){$("#approveApplication").modal("show"),this.bedToApprove=i.bed_name,this.studentToApprove=i.student_name,this.bedDetailsToApprove=i}ConfirmApproval(){if(this.isApprovingApplication=!0,!this.bedDetailsToApprove){setTimeout(()=>this.isApprovingApplication=!1,1e3),this.notice.delete("Error occurred");return}let i={bedApproved:!0};p(this.injector,()=>{let t=this.afs.collection("accommodationAccounts").doc(`${this.bedDetailsToApprove.account_id_update}`).update(i).then(()=>{p(this.injector,()=>{let e=this.afs.collection("beds_for_rooms").doc(`${this.bedDetailsToApprove.bed_id_update}`).update(i).then(()=>{this.notice.success("Approval was successful"),this.getBedApplications(),setTimeout(()=>{$("#approveApplication").modal("hide")},1500),setTimeout(()=>{this.isApprovingApplication=!1},1e3)}).catch(a=>{this.notice.delete(a.message),setTimeout(()=>this.isApprovingApplication=!1,1e3)});this.subs.push(e)})}).catch(e=>{this.notice.delete(e.message),setTimeout(()=>this.isApprovingApplication=!1,1e3)});this.subs.push(t)})}rejectApplication(i){$("#rejectApplication").modal("show"),this.occupant=i.student_name,this.bed=i}rejectbed(){if(this.isRejectingBed=!0,!this.bed){setTimeout(()=>this.isRejectingBed=!1,1e3),this.notice.delete("Error Occurred!");return}let i={isBooked:!1,isOccupied:!1};p(this.injector,()=>{let t=this.afs.collection("beds_for_rooms").doc(`${this.bed.bed_id_update}`).update(i).then(()=>{this.getBedApplications(),p(this.injector,()=>{let e=this.afs.collection("accommodationAccounts").doc(`${this.bed.account_id_update}`).update({hasBed:f.firestore.FieldValue.delete(),bedApproved:f.firestore.FieldValue.delete(),hasBookedBed:f.firestore.FieldValue.delete(),bed_id_update:f.firestore.FieldValue.delete()}).then(()=>{p(this.injector,()=>{let a=this.afs.collection("beds_for_rooms").doc(`${this.bed.bed_id_update}`).update({occupant_id:f.firestore.FieldValue.delete(),account_id_update:f.firestore.FieldValue.delete(),bedApproved:f.firestore.FieldValue.delete()}).then(()=>{this.notice.success("Bed rejected Successfully!"),this.getBedApplications(),setTimeout(()=>{this.isRejectingBed=!1},1e3),setTimeout(()=>{$("#rejectApplication").modal("hide")},1200)}).catch(n=>{this.notice.delete(n.message),setTimeout(()=>this.isRejectingBed=!1,1e3)});this.subs.push(a)})}).catch(a=>{this.notice.delete(a.message),setTimeout(()=>this.isRejectingBed=!1,1e3)});this.subs.push(e)})}).catch(e=>{this.notice.delete(e.message),setTimeout(()=>this.isRejectingBed=!1,1e3)});this.subs.push(t)})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=H({type:o,selectors:[["app-bed-issuance"]],decls:95,vars:19,consts:[[1,"container-fluid"],[1,"container","p-1"],[1,"flex","flex-wrap","items-center","justify-between","gap-3","px-3","py-2","bg-white"],[1,"flex","items-center","gap-2","flex-wrap"],[1,"h-7","text-xs","px-2","py-0","border","border-gray-300","rounded-md","bg-white","focus:outline-none","focus:ring-1","focus:ring-blue-400",3,"change"],["value","allbeds","selected",""],["value","female_beds"],["value","male_beds"],["type","text","placeholder","Search students...",1,"h-7","w-48","px-2","text-xs","border","border-gray-300","rounded-md","focus:outline-none","focus:ring-1","focus:ring-blue-400",3,"keyup"],[1,"border-t","border-gray-200","my-2"],[1,"tbl-content-student"],[1,"overflow-y-auto","max-h-[55vh]","border","border-gray-200","rounded-md"],[1,"min-w-full","text-xs","text-left"],[1,"sticky","top-0","bg-white","z-10","shadow-sm","border-b","border-gray-200"],[1,"text-gray-700","font-semibold"],[1,"px-3","py-2","border-r","border-gray-200","w-[10%]"],[1,"px-3","py-2","border-r","border-gray-200","w-[40%]"],[1,"px-3","py-2","w-[10%]"],[1,"divi
1de-y","divide-gray-100"],[1,"hover:bg-gray-50","transition"],[2,"margin-top","10px"],["id","rejectApplication","tabindex","-1","aria-labelledby","exampleModalLabel2","ria-hidden","true","data-mdb-backdrop","static","data-mdb-keyboard","false",1,"modal","fade","mt-5"],[1,"modal-dialog","modal-sm"],[1,"modal-content",2,"background","rgb(247, 245, 245)","border","1px solid #d9b1e9","border-radius","5px"],[1,"modal-body"],[2,"box-shadow","rgba(0, 0, 0, 0.16) 0px 1px 4px","padding","5px","text-align","center"],[1,"text-danger","text-center",2,"font-size","14px","font-family","'Courier New', Courier, monospace"],[2,"display","flex","justify-content","space-between","align-items","center"],["data-mdb-dismiss","modal",1,"badge","bg-danger",2,"cursor","pointer"],[1,"fas","fa-times"],[1,"sbmit",3,"click"],["role","status",1,"spinner-border","spinner-border-sm"],["id","approveApplication","tabindex","-1","aria-labelledby","exampleModalLabel2","ria-hidden","true","data-mdb-backdrop","static","data-mdb-keyboard","false",1,"modal","fade","mt-5"],[1,"text-seondary","text-center",2,"font-size","14px","font-family","'Courier New', Courier, monospace"],[1,"text-primary"],[1,"text-info"],["id","approveAll","tabindex","-1","aria-labelledby","exampleModalLabel2","ria-hidden","true","data-mdb-backdrop","static","data-mdb-keyboard","false",1,"modal","fade","mt-5"],[1,"text-info","text-center",2,"font-size","14px","font-family","'Courier New', Courier, monospace"],["data-mdb-dismiss","modal",1,"badge","bg-info",2,"cursor","pointer",3,"click"],[1,"text-xs","px-3","py-1","rounded-md","bg-blue-50","text-blue-600","font-medium","cursor-pointer","hover:bg-blue-100","transition",3,"click"],[1,"text-xs","px-3","py-1","rounded-md","bg-green-50","text-green-600","font-medium","cursor-pointer","hover:bg-green-100","transition",3,"click"],[1,"text-gray-300"],[1,"text-xs","px-3","py-1","rounded-md","bg-red-50","text-red-600","font-medium","cursor-pointer","hover:bg-red-100","transition",3,"click"],[1,"text-xs","text-blue-500"],[1,"text-xs","px-3","py-1","rounded-md","bg-blue-100","text-blue-700","cursor-pointer","hover:bg-blue-200","transition"],[1,"w-4","h-4","border-2","border-gray-300","border-t-blue-500","rounded-full","animate-spin"],[1,"text-xs","px-3","py-1","rounded-md","bg-blue-100","text-blue-700","cursor-pointer","hover:bg-blue-200","transition",3,"click"],[1,"text-xs","text-red-500"],[1,"text-xs","px-3","py-1","rounded-md","bg-red-100","text-red-700","cursor-pointer","hover:bg-red-200","transition"],[1,"w-4","h-4","border-2","border-gray-300","border-t-red-500","rounded-full","animate-spin"],[1,"text-xs","px-3","py-1","rounded-md","bg-red-100","text-red-700","cursor-pointer","hover:bg-red-200","transition",3,"click"],[1,"px-3","py-2","border-r","border-gray-200","font-medium"],[1,"px-3","py-2","border-r","border-gray-200","font-medium","text-gray-800"],["type","checkbox",1,"mr-2",3,"value"],[1,"px-3","py-2","border-r","border-gray-200","font-medium","text-gray-700"],[1,"px-3","py-2","text-center"],["type","checkbox",1,"mr-2",3,"change","value"],[1,"text-green-600","text-xs","font-semibold","cursor-pointer","hover:underline",3,"click"],[1,"text-red-500","text-xs","font-semibold","cursor-pointer","hover:underline","ml-2",3,"click"],["colspan","4",1,"text-center","text-red-500","py-4"],["colspan","4",1,"text-center","py-4"],[1,"flex","justify-center"],["previousLabel","Prev","nextLabel","Next",3,"pageChange"],[1,"sr-only"]],template:function(t,e){t&1&&(s(0,"div",0)(1,"div"),v(2,"hr"),d(),s(3,"div",1)(4,"div",2)(5,"div",3),b(6,ue,8,0)(7,Se,2,2),d(),s(8,"div",3)(9,"select",4),_("change",function(n){return e.getOtherCategories(n.target)}),s(10,"option",5),r(11,"All Students"),d(),s(12,"option",6),r(13,"Female Applicants"),d(),s(14,"option",7),r(15,"Male Applicants"),d()(),s(16,"input",8),_("keyup",function(n){return e.serachStudent(n.target)}),d()()(),v(17,"hr",9),s(18,"section")(19,"div",10)(20,"div",11)(21,"table",12)(22,"thead",13)(23,"tr",14)(24,"th",15),r(25,"S/No."),d(),s(26,"th",16),r(27,"Student Names"),d(),s(28,"th",16),r(29,"Bed Details"),d(),v(30,"th",17),d()(),s(31,"tbody",18),U(32,Be,11,8,"tr",19,pe),Q(34,"paginate"),b(35,je,3,1,"tr")(36,ke,3,1,"tr")(37,Ie,4,0,"tr"),d()()()(),b(38,Me,2,0,"div",20),d()(),s(39,"div",21)(40,"div",22)(41,"div",23)(42,"div",24)(43,"div",25)(44,"span",26),r(45),d()(),s(46,"div"),v(47,"hr"),d(),s(48,"div",27)(49,"span",28),v(50,"i",29),r(51," No "),d(),s(52,"span",30),_("click",function(){return e.rejectbed()}),s(53,"span"),b(54,Ee,1,0)(55,Re,3,0,"div",31),d()()()()()()(),s(56,"div",32)(57,"div",22)(58,"div",23)(59,"div",24)(60,"div",25)(61,"span",33),r(62," You are about to approve "),s(63,"span",34),r(64),d(),r(65," as applied by "),s(66,"span",35),r(67),d()()(),s(68,"div"),v(69,"hr"),d(),s(70,"div",27)(71,"span",28),v(72,"i",29),r(73," No "),d(),s(74,"span",30),_("click",function(){return e.ConfirmApproval()}),s(75,"span"),b(76,Oe,1,0)(77,Ve,3,0,"div",31),d()()()()()()(),s(78,"div",36)(79,"div",22)(80,"div",23)(81,"div",24)(82,"div",25)(83,"span",37),r(84),d()(),s(85,"div"),v(86,"hr"),d(),s(87,"div",27)(88,"span",38),_("click",function(){return e.backNormal()}),v(89,"i",29),r(90," No "),d(),s(91,"span",30),_("click",function(){return e.approveAll()}),s(92,"span"),b(93,Pe,1,0)(94,Ne,3,0,"div",31),d()()()()()()()()),t&2&&(u(6),m(e.hasClicked==!1&&e.students.length>0?6:7),u(26),q(W(34,12,e.newStudents,K(15,ce,e.tableSize,e.page,e.count))),u(3),m(e.notData&&e.students.length==0?35:-1),u(),m(e.noRecord&&e.newStudents.length==0?36:-1),u(),m(!e.notData&&e.students.length==0?37:-1),u(),m(!e.notData&&e.students.length>0?38:-1),u(7),V("Are sure you want to reject be application for ",e.occupant," ? "),u(9),m(e.isRejectingBed==!1?54:55),u(10),O(e.bedToApprove),u(3),O(e.studentToApprove),u(9),m(e.isApprovingApplication==!1?76:77),u(8),V("Are sure you want to approve be applications for ",e.students.length," student(s)? "),u(9),m(e.isApprovingall==!1?93:94))},dependencies:[X,de,se,ae,re,ie,ee,te,ne],styles:[".container-fluid[_ngcontent-%COMP%]{box-shadow:#0000002e 0 2px 4px;background-color:#fff;padding:10px}section[_ngcontent-%COMP%]{box-shadow:#0000001a 0 4px 12px;padding:10px}.inp[_ngcontent-%COMP%]:focus{outline:none;border:1px solid blue;border-radius:3px}.inp[_ngcontent-%COMP%]{margin:10px}
1.tbl-content-student[_ngcontent-%COMP%]{height:65vh;overflow-y:scroll;overflow-x:auto;border:1px solid rgba(255,255,255,.3);box-shadow:#00000005 0 1px 3px,#1b1f2326 0 0 0 1px;padding:5px;margin-top:10px}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;min-width:800px}.tbl-content-student[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:sticky;top:0;z-index:100;background-color:#e7e0e0;border-bottom:1px solid black!important}.tr[_ngcontent-%COMP%]{border-bottom:1px solid black!important}.tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .trh[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-left:10px}.selectbed[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}.selectbed[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{color:#000;outline:none;border:1px solid blue;border-radius:2px;font-size:12px;font-family:Times New Roman,Times,serif}.select[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100px!important;color:#00f;font-size:12px;font-family:Times New Roman,Times,serif;font-weight:500;border:1px solid blue;outline:none}.btn-beds[_ngcontent-%COMP%]{cursor:pointer}.btn-beds[_ngcontent-%COMP%]:hover{text-decoration:underline}.sbmit[_ngcontent-%COMP%]{background-color:#fff;color:#00f;
1font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif;border-radius:2px;padding:3px;cursor:pointer}.sbmit[_ngcontent-%COMP%]:hover{text-decoration:underline}.approveBtn[_ngcontent-%COMP%]{background-color:#fff;color:green;font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif;border-radius:2px;padding:3px;cursor:pointer;font-size:12px}.approveBtn[_ngcontent-%COMP%]:hover{text-decoration:underline}.rejectstyle[_ngcontent-%COMP%]{background-color:#fff;color:red;font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif;border-radius:2px;padding:3px;cursor:pointer;font-size:12px}.rejectstyle[_ngcontent-%COMP%]:hover{text-decoration:underline}"]})};export{le as BedIssuanceComponent};
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.