1import{Ba as ae,Ea as ce,Ef as Ke,Hc as Le,Ia as se,Ib as ee,Ic as He,Kc as Ue,Lb as je,Lc as Ve,Mc as $e,Nc as Ye,Oa as Re,Ra as ze,Tb as me,Ub as Ae,Va as M,_a as Ne,ef as qe,gd as We,ha as H,ia as E,j as Fe,ja as b,kf as Ze,ma as y,oa as X,uf as Je,zd as Ge}from"./chunk-XKEW5C3F.js";import{$c as O,Ab as a,Bb as f,Bd as Ee,Cb as B,Cc as l,Db as R,Dc as d,Ec as K,Fb as T,Kd as z,Lb as w,Lc as P,Ld as Be,Ma as fe,Nb as h,Oa as _e,Qb as Pe,Ra as i,Sa as g,Zb as Oe,_c as W,ac as c,ad as Ie,bb as x,bc as _,bd as Te,cb as ve,cc as C,cd as ke,dc as J,eb as ue,fb as Ce,ga as ge,ib as p,id as re,kc as ye,lc as Se,ld as Q,mc as we,ob as s,pb as pe,qb as ie,qc as be,ra as D,rb as Y,rc as De,sa as I,tb as xe,vb as Me,wa as he,zb as r}from"./chunk-BZNCKEIH.js";var Qe=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=x({type:t,selectors:[["block-message"]],inputs:{blockingDetails:"blockingDetails",blockingSpecialMsg:"blockingSpecialMsg"},standalone:!1,decls:10,vars:12,consts:[[3,"type"]],template:function(n,o){n&1&&(r(0,"r-text",0)(1,"strong"),c(2),l(3,"tr"),a(),r(4,"div"),c(5),l(6,"htmlToPlainText"),a(),r(7,"div"),c(8),l(9,"htmlToPlainText"),a()()),n&2&&(Y("error"),s("type","prominent"),i(2),_(d(3,6,"*.YouAreBlocked")),i(3),_(d(6,8,o.blockingDetails)),i(3),_(d(9,10,o.blockingSpecialMsg)))},dependencies:[We,ae,y],styles:["[_nghost-%COMP%]{display:block;margin:0 -.5rem}[_nghost-%COMP%] .r-text{border:3px solid}"],changeDetection:0})}}return t})();var U=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=x({type:t,selectors:[["blocked-content"]],hostAttrs:[1,"panel-error"],standalone:!1,decls:2,vars:3,template:function(n,o){n&1&&(c(0),l(1,"tr")),n&2&&_(d(1,1,"*.BlockedContent"))},dependencies:[y],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;position:absolute;inset:0;font-size:1.2rem;opacity:.8;text-align:center}"],changeDetection:0})}}return t})();function _t(t,m){t&1&&f(0,"r-loading")}function vt(t,m){t&1&&(r(0,"div",10),c(1),l(2,"tr"),a()),t&2&&(i(),_(d(2,1,"*.NoNewMessages")))}function ut(t,m){if(t&1&&(r(0,"div",11)(1,"div",12),c(2),a(),f(3,"div",13),l(4,"htmlToPlainText"),a()),t&2){let e=m.dataItem,n=m.isOpened;ie("opened",n),i(),ie("text-primary",n)("ellipsis",!n)("font-thick",!e.wasRead),i(),C(" ",e.title," "),i(),s("innerText",d(4,10,e.text))}}function Ct(t,m){if(t&1&&f(0,"div",14),t&2){let e=m.dataItem;s("innerHtml",e.text,fe)}}function xt(t,m){if(t&1&&(B(0),p(1,vt,3,3,"div",6),r(2,"r-collapse",7),p(3,ut,5,12,"ng-template",8)(4,Ct,1,1,"ng-template",9),a(),R()),t&2){let e=h();i(),s("ngIf",(e.messages==null?null:e.messages.length)==0),i(),s("data",e.messages)}}function Mt(t,m){t&1&&f(0,"blocked-content")}var Xe=(()=>{class t{constructor(e,n){this.formService=e,this.cdr=n}ngOnInit(){this.fetchMessagesData()}fetchMessagesData(){this.isLoading=!0,this.formService.post("MessagesData",null,e=>{this.isLoading=!1,e.blocked?this.isBlocked=!0:(e.messages.forEach(n=>{n.date=new Date(n.date)}),this.messages=e.messages.sort((n,o)=>o.date.getTime()-n.date.getTime())),this.cdr.markForCheck()})}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["messages"]],hostAttrs:[1,"home-box"],standalone:!1,decls:10,vars:6,consts:[[1,"header","background-darker"],["routerLink","messages","tabindex","-1"],[1,"text","text-primary"],[1,"caption"],[1,"content"],[4,"ngIf"],["class","no-data-text text-light",4,"ngIf"],["itemCssClass","message border-default-color",3,"data"],["collapseHeader",""],["collapseContent",""],[1,"no-data-text","text-light"],[1,"message-header"],[1,"message-title"],[1,"message-text-preview","text-light",3,"innerText"],[1,"message-text",3,"innerHtml"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"r-button",1)(2,"div",2)(3,"span",3),c(4),l(5,"tr"),a()()()(),r(6,"div",4),p(7,_t,1,0,"r-loading",5)(8,xt,5,2,"ng-container",5),a(),p(9,Mt,1,0,"blocked-content",5)),n&2&&(i(4),C(" ",d(5,4,"*.MessagesAndUpdates")," "),i(3),s("ngIf",o.isLoading),i(),s("ngIf",!o.isBlocked),i(),s("ngIf",o.isBlocked))},dependencies:[z,O,b,E,$e,Ue,Ve,U,ae,y],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;margin-top:1rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{position:relative;height:100%;overflow-y:scroll}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .message-header[_ngcontent-%COMP%]{padding:.2rem .5rem;min-height:4rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .message-header.opened[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{min-height:2.3rem;height:auto}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{transition:all linear .2s;height:1.6rem;margin-top:.1rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .message-text-preview[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;height:1.7rem;overflow:hidden;transition:opacity linear .2s}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .message-text[_ngcontent-%COMP%]{padding:.5rem .75rem;padding-top:0;margin-top:-.25rem}[_nghost-%COMP%] .message{border-bottom-width:1px;border-bottom-style:solid;transition:background-color linear .5s,border-color linear .5s}[_nghost-%COMP%] .message.opened .message-title{font-size:1.2rem;margin-top:.75rem}[_nghost-%COMP%] .message.opened .message-text-preview{opacity:0}
1"],changeDetection:0})}}return t})();function Ot(t,m){t&1&&f(0,"r-loading")}function yt(t,m){t&1&&(r(0,"div",6),c(1),l(2,"tr"),a()),t&2&&(i(),_(d(2,1,"*.NoUpcomingEvents")))}function St(t,m){if(t&1){let e=T();r(0,"r-action-button",19),w("action",function(o){D(e);let u=h().$implicit,v=h();return I(v.onaction(o,u))}),r(1,"div",20)(2,"div",21),c(3),a(),f(4,"r-icon",22),a()()}if(t&2){let e=h().$implicit;s("actionButton",e.actionButton)("shrink",!0),i(3),_(e.title)}}function wt(t,m){if(t&1&&(r(0,"div",21),c(1),a()),t&2){let e=h().$implicit;i(),_(e.title)}}function bt(t,m){if(t&1&&(r(0,"div",7)(1,"div",8)(2,"div",9),c(3),l(4,"date"),a()(),r(5,"div")(6,"div",10),c(7),a(),r(8,"div",11),c(9),l(10,"tr"),a()(),r(11,"div",12),p(12,St,5,3,"r-action-button",13)(13,wt,2,1,"div",14),r(14,"div",15),c(15),a(),r(16,"div",16)(17,"div",17),f(18,"r-progress-bar",18),a()()()()),t&2){let e=m.$implicit;i(3),C(" ",K(4,11,e.date,"dd/MM")," "),i(2),xe("event-days-distance ",e.__cssClass,""),i(2),_(e.__distanceFromToday),i(2),_(d(10,14,"General.Periods.DaysText")),i(3),s("ngIf",e.actionButton),i(),s("ngIf",!e.actionButton),i(2),_(e.description),i(3),s("color",e.__color)("value",(30-e.__distanceFromToday)/30*100)}}var tt=(()=>{class t{get data(){return this._data}set data(e){e!=null&&(this._data=e,this.fetchEventsData())}constructor(e,n){this.formService=e,this.cdr=n}ngOnInit(){}fetchEventsData(){this.data.forEach(e=>{switch(e.date=new Date(e.date),e.__distanceFromToday=this.calculateDistanceFromToday(e.date),e.options&&e.options.color&&e.options.color?e.options.color.toLowerCase():""){case"bydate":e.__distanceFromToday<=3?(e.__color="error",e.__cssClass="text-error"):e.__distanceFromToday<=7?(e.__color="warning",e.__cssClass="text-warning"):(e.__color="success",e.__cssClass="text-success");break;case"primary":e.__color="primary",e.__cssClass="text-primary";break}}),this.events=this.data.sort((e,n)=>e.date.getTime()-n.date.getTime()),this.cdr.markForCheck()}calculateDistanceFromToday(e){let n=new Date,o=e.getTime()-n.getTime();return Math.ceil(o/(1e3*3600*24))}
1onaction(e,n){n.type=="MOODLE"&&this.formService.moodleLogin({course:e.routeData.moodle_krs_id,path:e.routeData.moodle_server_path})}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["events"]],hostAttrs:[1,"home-box"],inputs:{data:"data"},standalone:!1,decls:8,vars:6,consts:[[1,"header","background-darker"],[1,"text","text-primary"],[1,"content"],[4,"ngIf"],["class","no-data-text text-light",4,"ngIf"],["class","event border-default-color",4,"ngFor","ngForOf"],[1,"no-data-text","text-light"],[1,"event","border-default-color"],[1,"event-date","background-darker"],[1,"event-date-rotate"],[1,"days-count"],[1,"days-title"],[1,"event-details"],[3,"actionButton","shrink","action",4,"ngIf"],["class","event-title ellipsis",4,"ngIf"],[1,"event-description","text-light"],[1,"event-progressbar"],[2,"width","100%"],[3,"color","value"],[3,"action","actionButton","shrink"],[1,"action-button-event-content","text-primary"],[1,"event-title","ellipsis"],["icon","link"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"div",1),c(2),l(3,"tr"),a()(),r(4,"div",2),p(5,Ot,1,0,"r-loading",3)(6,yt,3,3,"div",4)(7,bt,19,16,"div",5),a()),n&2&&(i(2),_(d(3,4,"*.UpcomingEvents")),i(3),s("ngIf",!o.events),i(),s("ngIf",(o.events==null?null:o.events.length)==0),i(),s("ngForOf",o.events))},dependencies:[W,O,ee,H,E,Ze,re,y],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{position:relative;height:100%;overflow-y:scroll}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]{border-bottom-width:1px;border-bottom-style:solid;display:flex;justify-content:space-between;height:6rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-date[_ngcontent-%COMP%]{min-width:1.6rem;max-width:1.6rem;position:relative}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-date[_ngcontent-%COMP%] .event-date-rotate[_ngcontent-%COMP%]{position:absolute;top:2.2rem;left:-2.2rem;width:6rem;height:1.6rem;transform:rotate(90deg);text-align:center;line-height:1.6rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-days-distance[_ngcontent-%COMP%]{min-width:4rem;max-width:4rem;text-align:center;display:flex;flex-direction:column;justify-content:center}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-days-distance[_ngcontent-%COMP%] .days-count[_ngcontent-%COMP%]{font-size:1.8rem;line-height:1.8rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-details[_ngcontent-%COMP%]{padding:.3rem .5rem;flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-details[_ngcontent-%COMP%] .event-title[_ngcontent-%COMP%], [_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-details[_ngcontent-%COMP%] .event-description[_ngcontent-%COMP%], [_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-details[_ngcontent-%COMP%] .event-progressbar[_ngcontent-%COMP%]{height:1.4rem;line-height:1.4rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-details[_ngcontent-%COMP%] .event-progressbar[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .action-button-event-content[_ngcontent-%COMP%]{display:flex}body.ltr [_nghost-%COMP%] .content[_ngcontent-%COMP%] .action-button-event-content[_ngcontent-%COMP%] r-icon[_ngcontent-%COMP%]{margin-left:.5rem}body.ltr [_nghost-%COMP%] -shadowcsshost .content .action-button-event-content r-icon{margin-left:.5rem}body.rtl [_nghost-%COMP%] .content[_ngcontent-%COMP%] .action-button-event-content[_ngcontent-%COMP%] r-icon[_ngcontent-%COMP%]{margin-right:.5rem}body.rtl [_nghost-%COMP%] -shadowcsshost .content .action-button-event-content r-icon{margin-right:.5rem}[_nghost-%COMP%] r-action-button a.mat-mdc-button{padding:0;line-height:normal}"],changeDetection:0})}}return t})();function It(t,m){if(t&1&&(r(0,"span"),c(1),l(2,"dayOfWeek"),a()),t&2){let e=h(2);i(),C(" ",d(2,1,e.currentScheduleDay.date),",\xA0 ")}}function Tt(t,m){if(t&1&&(r(0,"r-button",15)(1,"div",16)(2,"div",17),c(3),l(4,"scheduleDayTitle"),a(),r(5,"div",18),p(6,It,3,3,"span",14),c(7),l(8,"date"),a()()()),t&2){let e=h();i(3),_(d(4,3,e.currentScheduleDay.date)),i(3),s("ngIf",e.isScheduleSpecialDay),i(),C(" ",K(8,5,e.currentScheduleDay.date,"dd/MM")," ")}}function kt(t,m){if(t&1){let e=T();r(0,"div",26)(1,"r-button",30),w("click",function(o){D(e);let u=h().$implicit,v=h(2);return I(v.openEventMenu(o,u))}),a()()}t&2&&(i(),s("icon","dots")("inline",!0))}function Et(t,m){if(t&1&&(r(0,"div",31)(1,"div",32),f(2,"r-icon",33),a(),r(3,"div",34),c(4),a()()),t&2){let e=h().$implicit;i(4),_(e.place)}}function Ft(t,m){if(t&1&&(r(0,"div",21)(1,"div",22)(2,"div",23)(3,"div",24),c(4),a(),r(5,"div",25),c(6),a()(),p(7,kt,2,2,"div",26)(8,Et,5,1,"div",27),a(),f(9,"div",28),r(10,"div",29),c(11),l(12,"date"),l(13,"date"),a()()),t&2){let e=m.$implicit;pe("top",e.top,"rem")("height",e.height,"rem")("width",e.width,"%")("margin-left",e.marginLeft,"%")("margin-right",e.marginRight,"%"),i(4),_(e.title),i(2),_(e.moreInfo),i(),Me((e.menuButtons==null?null:e.menuButtons.length)>0?7:-1),i(),s("ngIf",e.place),i(3),J("",K(12,16,e.startTime,"HH:mm"),"-",K(13,19,e.endTime,"HH:mm"),"")}}function Bt(t,m){if(t&1&&(r(0,"div",19),p(1,Ft,14,22,"div",20),a()),t&2){let e=h();i(),s("ngForOf",e.currentScheduleDay.events)}}function Rt(t,m){t&1&&f(0,"blocked-content")}var nt=(()=>{class t{static{this.DAY_MS=24*60*60*1e3}
1get currentScheduleDay(){return this._currentScheduleDay}set currentScheduleDay(e){this._currentScheduleDay=e,this.initScheduleDay(this.currentScheduleDay)}get isScheduleToday(){return this.currentScheduleDay.date.setHours(0,0,0,0)==new Date().setHours(0,0,0,0)}get isScheduleTomorrow(){return new Date(new Date().getTime()+t.DAY_MS).setHours(0,0,0,0)==this.currentScheduleDay.date.setHours(0,0,0,0)}get isScheduleYesterday(){return new Date(new Date().getTime()-t.DAY_MS).setHours(0,0,0,0)==this.currentScheduleDay.date.setHours(0,0,0,0)}get isScheduleSpecialDay(){return this.isScheduleToday||this.isScheduleTomorrow||this.isScheduleYesterday}constructor(e,n,o,u){this.formService=e,this.cdr=n,this.languageService=o,this.menuService=u,this.schedule=[]}ngOnInit(){this.schedule.push({date:new Date(new Date().setHours(0,0,0,0)),events:[]});let e=new Date;e.setHours(0,0,0,0),this.fetchScheduleData(e,e),this.currentScheduleDay=this.schedule.find(n=>n.date.getTime()==new Date(new Date().setHours(0,0,0,0)).getTime())}fetchScheduleData(e,n){this.formService.post("ScheduleData",{fromDate:this.generateDateString(e),toDate:this.generateDateString(n)},o=>{if(o.blocked){this.isBlocked=!0,this.cdr.markForCheck();return}for(let u of o.events){u.date=new Date(u.date);let v=this.addDayToSchedule(u.date);v.events.findIndex(S=>S.id==u.data.id)==-1&&v.events.push(u.data)}this.initScheduleDay(this.currentScheduleDay),this.cdr.markForCheck()})}initScheduleDay(e){let n=new Date(0,0,0,8);e.events.forEach(v=>{v.startTime=new Date(new Date(v.startTime).setFullYear(1899,11,31)),v.endTime=new Date(new Date(v.endTime).setFullYear(1899,11,31)),v.top=(v.startTime.getTime()-n.getTime())/(1e3*3600)*5,v.height=(v.endTime.getTime()-v.startTime.getTime())/(1e3*3600)*5});let o=e.events.sort((v,S)=>v.startTime.getTime()-S.startTime.getTime()),u=[];o.forEach(v=>{let S=v.startTime.getTime(),k=v.endTime.getTime(),V=u.reduce((A,q)=>A.concat(q),[]).find(A=>{if(A==v)return!1;let q=A.startTime.getTime(),de=A.endTime.getTime();return q<=S&&de>S||q<k&&de>=k||q==S&&de==k});V&&V!=v?u.find(A=>A.indexOf(V)>-1).push(v):u.push([v])});for(let v=0;v<u.length;v++)this.generateSubBlocks(u[v])}addDayToSchedule(e){let n=this.schedule.find(o=>o.date.getTime()==e.getTime());return n||(n={date:e,events:[]},this.schedule.push(n)),this.schedule=this.schedule.sort((o,u)=>o.date.getTime()-u.date.getTime()),n}generateSubBlocks(e){let n=[],o=[],u=(S,k)=>{let G=k.sort((A,q)=>q.endTime.getTime()-A.endTime.getTime())[0],V=S.find(A=>o.indexOf(A)==-1&&A.startTime.getTime()-G.endTime.getTime()>=0);V&&(k.push(V),o.push(V),u(S,k))};for(let S=0;S<e.length;S++){let k=e[S];if(o.indexOf(k)>-1)continue;o.push(k);let G=[k];u(e,G),n.push(G)}let v=100/n.length;e.forEach(S=>S.width=v);for(let S=0;S<n.length;S++){let k=S/n.length*100,G=this.languageService.isRtl?"marginLeft":"marginRight";n[S].forEach(V=>V[G]=k)}}generateDateString(e){let n=o=>o<10?"0"+o:o.toString();return`${n(e.getFullYear())}-${n(e.getMonth()+1)}-${n(e.getDate())}T00:00:00`}schedulePrev(){let e=this.schedule.indexOf(this.currentScheduleDay),n=this.schedule[e],o=new Date(n.date.getTime()-t.DAY_MS);this.currentScheduleDay=this.addDayToSchedule(o),o.setHours(0,0,0,0),this.fetchScheduleData(o,o),this.cdr.markForCheck()}scheduleNext(){let e=this.schedule.indexOf(this.currentScheduleDay),n=this.schedule[e],o=new Date(n.date.getTime()+t.DAY_MS);if(o.getTimezoneOffset()!=n.date.getTimezoneOffset()){let u=o.getTimezoneOffset()-n.date.getTimezoneOffset()*60*1e3;o=new Date(o.getTime()+u)}this.currentScheduleDay=this.addDayToSchedule(o),o.setHours(0,0,0,0),this.fetchScheduleData(o,o),this.cdr.markForCheck()}openEventMenu(e,n){this.menuService.open(this.formService.injector,e.sender.buttonEl,n.menuButtons,n,o=>{},o=>{})}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(P),g(ze),g(je))}}static{this.\u0275cmp=x({type:t,selectors:[["schedule"]],hostAttrs:[1,"home-box"],standalone:!1,decls:73,vars:7,consts:[[1,"header","background-darker"],[1,"arrow-wrapper","arrow-back"],[3,"click","shrink"],[1,"text-light"],["icon","chevron-start"],["routerLink","schedule","tabindex","-1",4,"ngIf"],[1,"arrow-wrapper","arrow-next"],["icon","chevron-end"],[1,"content"],[1,"times"],[1,"hour"],[1,"half","text-light"],[1,"events"],["class","events-inner",4,"ngIf"],[4,"ngIf"],["routerLink","schedule","tabindex","-1"],[1,"day-title"],[1,"title","text-primary"],[1,"date","text-light"],[1,"events-inner"],["class","event","tabindex","0",3,"top","height","width","marginLeft","marginRight",4,"ngFor","ngForOf"],["tabindex","0",1,"event"],[1,"event-content"],[1,"title-description-title"],[1,"title"],[1,"description","text-light"],[1,"menu-wrapper"],["class","place text-light",4,"ngIf"],[1,"event-time-indicator","background-primary-light"],[1,"event-time","background-primary-dark"],[3,"click","icon","inline"],[1,"place","text-light"],[1,"icon-wrapper"],["icon","map-marker"],[1,"place-text"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"div",1)(2,"r-button",2),w("click",function(){return o.schedulePrev()}),r(3,"div",3),f(4,"r-icon",4),a()()(),p(5,Tt,9,8,"r-button",5),r(6,"div",6)(7,"r-button",2),w("click",function(){return o.scheduleNext()}),r(8,"div",3),f(9,"r-icon",7),a()()()(),r(10,"div",8)(11,"div",9)(12,"div",10),c(13,"08:00"),a(),r(14,"div",11),c(15,"30"),a(),r(16,"div",10),c(17,"09:00"),a(),r(18,"div",11),c(19,"30"),a(),r(20,"div",10),c(21,"10:00"),a(),r(22,"div",11),c(23,"30"),a(),r(24,"div",10),c(25,"11:00"),a(),r(26,"div",11),c(27,"30"),a(),r(28,"div",10),c(29,"12:00"),a(),r(30,"div",11),c(31,"30"),a(),r(32,"div",10),c(33,"13:00"),a(),r(34,"div",11),c(35,"30"),a(),r(36,"div",10),c(37,"14:00"),a(),r(38,"div",11),c(39,"30"),a(),r(40,"div",10),c(41,"15:00"),a(),r(42,"div",11),c(43,"30"),a(),r(44,"div",10),c(45,"16:00"),a(),r(46,"div",11),c(47,"30"),a(),r(48,"div",10),c(49,"17:00"),a(),r(50,"div",11),c(51,"30"),a(),r(52,"div",10),c(53,"18:00"),a(),r(54,"div",11),c(55,"30"),a(),r(56,"div",10),c(57,"19:00"),a(),r(58,"div",11),c(59,"30"),a(),r(60,"div",10),c(61,"20:00"),a(),r(62,"div",11),c(63,"30"),a(),r(64,"div",10),c(65,"21:00"),a(),r(66,"div",11),c(67,"30"),a(),r(68,"div",10),c(69,"22:00"),a()(),r(70,"div",12),p(71,Bt,2,1,"div",13),a()(),p(72,Rt,1,0,"blocked-content",14)),n&2&&(i(2),s("shrink",!0),i(3),s("ngIf",o.currentScheduleDay),i(2),s("shrink",!0),i(63),pe("height",70.5,"rem"),i(),s("ngIf",o.currentScheduleDay),i(),s("ngIf",o.isBlocked))},dependencies:()=>[z,W,O,b,H,U,re,X,zt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;overflow:hidden}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .day-title[_ngcontent-%COMP%]{text-align:center;line-height:1.6rem}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .day-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:1.2rem;line-height:1.4rem}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .arrow-wrapper[_ngcontent-%COMP%]{padding:0 .3rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:1rem 1.5rem;overflow-y:scroll}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .times[_ngcontent-%COMP%]{width:4rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .times[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{line-height:2.5rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%]{flex-grow:1}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%]{height:100%;position:relative}body.ltr [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%]{margin-left:1.5rem}body.ltr [_nghost-%COMP%] -shadowcsshost .content .events .events-inner{margin-left:1.5rem}body.rtl [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%]{margin-right:1.5rem}body.rtl [_nghost-%COMP%] -shadowcsshost .content .events .events-inner{margin-right:1.5rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]{position:absolute;overflow:hidden}body.ltr [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]{right:0}body.ltr [_nghost-%COMP%] -shadowcsshost .content .events .events-inner .event{right:0}body.rtl [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]{left:0}body.rtl [_nghost-%COMP%] -shadowcsshost .content .events .events-inner .event{left:0}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]:focus{overflow:visible;outline:none;width:100%!important;margin-left:0!important;margin-right:0!important}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]:hover .event-time-indicator[_ngcontent-%COMP%], [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]:hover .menu-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]:focus .event-time-indicator[_ngcontent-%COMP%], [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]:focus .menu-wrapper[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]:focus{z-index:25}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]:hover{z-index:20}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-content[_ngcontent-%COMP%]{min-height:100%;position:absolute;top:0;left:0;right:0;display:flex;flex-direction:column;justify-content:space-between;padding:.3rem .7rem;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-content[_ngcontent-%COMP%] .title-description-title[_ngcontent-%COMP%], [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-content[_ngcontent-%COMP%] .place[_ngcontent-%COMP%]{z-index:10}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-content[_ngcontent-%COMP%] .place[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-content[_ngcontent-%COMP%] .place[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{width:1.2rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-time-indicator[_ngcontent-%COMP%]{position:absolute;top:0;height:calc(100% - 1px);height:100%;border-bottom:1px dashed black;opacity:.5;z-index:5;display:none}body.ltr [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-time-indicator[_ngcontent-%COMP%]{left:5px}body.ltr [_nghost-%COMP%] -shadowcsshost .content .events .events-inner .event .event-time-indicator{left:5px}body.rtl [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-time-indicator[_ngcontent-%COMP%]{right:5px}body.rtl [_nghost-%COMP%] -shadowcsshost .content .events .events-inner .event .event-time-indicator{right:5px}body.ltr [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-time-indicator[_ngcontent-%COMP%]{right:0}body.ltr [_nghost-%COMP%] -shadowcsshost .content .events .events-inner .event .event-time-indicator{right:0}body.rtl [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-time-indicator[_ngcontent-%COMP%]{left:0}body.rtl [_nghost-%COMP%] -shadowcsshost .content .events .events-inner .event .event-time-indicator{left:0}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-time[_ng
1content-%COMP%]{position:absolute;top:-1.6rem;height:1.6rem;line-height:1.6rem;padding:0 .5rem;color:#fff}body.ltr [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-time[_ngcontent-%COMP%]{right:0}body.ltr [_nghost-%COMP%] -shadowcsshost .content .events .events-inner .event .event-time{right:0}body.rtl [_nghost-%COMP%] .content[_ngcontent-%COMP%] .events[_ngcontent-%COMP%] .events-inner[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-time[_ngcontent-%COMP%]{left:0}body.rtl [_nghost-%COMP%] -shadowcsshost .content .events .events-inner .event .event-time{left:0}.menu-wrapper[_ngcontent-%COMP%]{position:absolute;top:8px;inset-inline-end:4px;width:32px;height:32px;z-index:30;display:none}[_nghost-%COMP%] .header .arrow-wrapper r-button .button.shrink{font-size:1.5rem;padding:.2rem .5rem}"],changeDetection:0})}}return t})(),zt=(()=>{class t{get currentFormService(){return this.injector.get(M)}constructor(e,n){this.dayOfWeek=e,this.injector=n}transform(e){if(e.setHours(0,0,0,0)==new Date().setHours(0,0,0,0))return this.currentFormService.translate("General.Periods.Today");let o=24*60*60*1e3;return new Date(new Date().getTime()+o).setHours(0,0,0,0)==e.setHours(0,0,0,0)?this.currentFormService.translate("General.Periods.Tomorrow"):new Date(new Date().getTime()-o).setHours(0,0,0,0)==e.setHours(0,0,0,0)?this.currentFormService.translate("General.Periods.Yesterday"):this.dayOfWeek.transform(e)}static{this.\u0275fac=function(n){return new(n||t)(g(X,16),g(he,16))}}static{this.\u0275pipe=ue({name:"scheduleDayTitle",type:t,pure:!0,standalone:!1})}}return t})();function jt(t,m){t&1&&f(0,"r-loading")}function At(t,m){if(t&1&&(r(0,"span",8),c(1),a()),t&2){let e=h(2);i(),_(e.average)}}function Lt(t,m){t&1&&(r(0,"span",9),c(1),l(2,"tr"),a()),t&2&&(i(),_(d(2,1,"General.NoData")))}function Ht(t,m){if(t&1&&(B(0),p(1,At,2,1,"span",6)(2,Lt,3,3,"span",7),R()),t&2){let e=h();i(),s("ngIf",e.average),i(),s("ngIf",!e.average)}}function Ut(t,m){t&1&&f(0,"blocked-content")}var it=(()=>{class t{constructor(e,n){this.formService=e,this.cdr=n}ngOnInit(){this.fetchAverageData()}fetchAverageData(){this.isLoading=!0,this.formService.post("AverageData",null,e=>{this.isLoading=!1,e.blocked?this.isBlocked=!0:this.average=e.average,this.cdr.markForCheck()})}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["average"]],hostAttrs:[1,"home-box"],standalone:!1,decls:10,vars:6,consts:[[1,"header","background-darker"],["routerLink","grades","tabindex","-1"],[1,"text","text-primary"],[1,"caption"],[1,"content"],[4,"ngIf"],["class","text-accent",4,"ngIf"],["class","no-value text-light",4,"ngIf"],[1,"text-accent"],[1,"no-value","text-light"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"r-button",1)(2,"div",2)(3,"span",3),c(4),l(5,"tr"),a()()()(),r(6,"div",4),p(7,jt,1,0,"r-loading",5)(8,Ht,3,2,"ng-container",5),a(),p(9,Ut,1,0,"blocked-content",5)),n&2&&(i(4),C(" ",d(5,4,"*.AverageOfDegree")," "),i(3),s("ngIf",o.isLoading),i(),s("ngIf",!o.isBlocked),i(),s("ngIf",o.isBlocked))},dependencies:[z,O,b,E,U,y],styles:[".content[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;position:relative}.content[_ngcontent-%COMP%] .no-value[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:500}"],changeDetection:0})}}return t})();function $t(t,m){t&1&&f(0,"r-loading")}function Yt(t,m){if(t&1&&(r(0,"donut-chart",8)(1,"center-content")(2,"div",9),c(3),a()()()),t&2){let e=h(2);s("data",e.maazanData)("donutWidth",10)("holeSize",30),i(3),_(e.maazanStatus)}}function Wt(t,m){t&1&&(r(0,"span",10),c(1),l(2,"tr"),a()),t&2&&(i(),_(d(2,1,"General.NoData")))}function Gt(t,m){if(t&1&&(B(0),p(1,Yt,4,4,"donut-chart",6)(2,Wt,3,3,"span",7),R()),t&2){let e=h();i(),s("ngIf",e.maazanData),i(),s("ngIf",!e.maazanData)}}function qt(t,m){t&1&&f(0,"blocked-content")}var ot=(()=>{class t{constructor(e,n){this.formService=e,this.cdr=n}ngOnInit(){this.fetchMaazanStatusData()}fetchMaazanStatusData(){this.isLoading=!0,this.formService.post("MaazanStatus",null,e=>{this.isLoading=!1,e.blocked?this.isBlocked=!0:(this.maazanStatus=Math.round(e.maazanStatus*100)+"%",this.maazanData=[{value:e.maazanStatus,color:"#75c387"},{value:1-e.maazanStatus,color:"#d4edda"}]),this.cdr.markForCheck()})}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["maazan"]],hostAttrs:[1,"home-box"],standalone:!1,decls:10,vars:6,consts:[[1,"header","background-darker"],["routerLink","maazan","tabindex","-1"],[1,"text","text-primary"],[1,"caption"],[1,"content"],[4,"ngIf"],["valueField","value","colorField","color",3,"data","donutWidth","holeSize",4,"ngIf"],["class","no-value text-light",4,"ngIf"],["valueField","value","colorField","color",3,"data","donutWidth","holeSize"],[1,"text-success","maazan-center-content"],[1,"no-value","text-light"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"r-button",1)(2,"div",2)(3,"span",3),c(4),l(5,"tr"),a()()()(),r(6,"div",4),p(7,$t,1,0,"r-loading",5)(8,Gt,3,2,"ng-container",5),a(),p(9,qt,1,0,"blocked-content",5)),n&2&&(i(4),C(" ",d(5,4,"*.MaazanStatus")," "),i(3),s("ngIf",o.isLoading),i(),s("ngIf",!o.isBlocked),i(),s("ngIf",o.isBlocked))},dependencies:[z,O,b,E,Le,He,U,y],styles:[".maazan-center-content[_ngcontent-%COMP%]{font-size:1.3rem;margin-top:-3px}"],changeDetection:0})}}return t})();function Jt(t,m){t&1&&f(0,"r-loading")}function Kt(t,m){if(t&1&&(B(0),r(1,"div",6),c(2),l(3,"number"),a(),r(4,"div",3),c(5),l(6,"tr"),a(),R()),t&2){let e=h();i(2),_(d(3,2,e.debt)),i(3),_(d(6,4,"Forms.Modules.StudentAccount.BalanceDue"))}}function Qt(t,m){t&1&&f(0,"blocked-content")}var rt=(()=>{class t{constructor(e,n){this.formService=e,this.cdr=n}ngOnInit(){this.fetchAccountData()}fetchAccountData(){this.isLoading=!0,this.formService.post("AccountData",null,e=>{this.isLoading=!1,e.blocked?this.isBlocked=!0:this.debt=e.debt,this.cdr.markForCheck()})}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["account"]],hostAttrs:[1,"home-box"],standalone:!1,decls:10,vars:10,consts:[[1,"header","background-darker"],["routerLink","account","tabindex","-1"],[1,"text","text-primary"],[1,"caption"],[1,"content"],[4,"ngIf"],[1,"amount"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"r-button",1)(2,"div",2)(3,"span",3),c(4),l(5,"tr"),a()()()(),r(6,"div",4),p(7,Jt,1,0,"r-loading",5)(8,Kt,7,6,"ng-container",5),a(),p(9,Qt,1,0,"blocked-content",5)),n&2&&(i(4),C(" ",d(5,8,"*.AccountStatus")," "),i(2),ie("text-error",o.debt>0)("text-success",o.debt==0),i(),s("ngIf",o.isLoading),i(),s("ngIf",!o.isBlocked),i(),s("ngIf",o.isBlocked))},dependencies:[z,O,b,E,U,Q,y],styles:[".content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;position:relative}
1.content[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700}.content[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]{font-size:1rem}"],changeDetection:0})}}return t})();function en(t,m){t&1&&f(0,"r-loading")}var at=(()=>{class t{constructor(e,n){this.formService=e,this.cdr=n}ngOnInit(){this.fetchForumHandle()}fetchForumHandle(){this.formService.post("ForumHandle",null,e=>{this.sum=e.sum,this.cdr.markForCheck()})}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["forum-handle"]],hostAttrs:[1,"home-box"],standalone:!1,decls:14,vars:10,consts:[[1,"header","background-darker"],["routerLink","forumhandle","tabindex","-1"],[1,"text","text-primary"],[1,"caption"],[1,"content"],[4,"ngIf"],[1,"sum","text-accent"],[1,"text"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"r-button",1)(2,"div",2)(3,"span",3),c(4),l(5,"tr"),a()()()(),r(6,"div",4),p(7,en,1,0,"r-loading",5),r(8,"div",6),c(9),l(10,"number"),a(),r(11,"div",7),c(12),l(13,"tr"),a()()),n&2&&(i(4),C(" ",d(5,4,"*.forumHandle")," "),i(3),s("ngIf",o.sum==null),i(2),_(d(10,6,o.sum)),i(3),C(" ",d(13,8,"*.PendingRequestsForHandle")," "))},dependencies:[z,O,b,E,Q,y],styles:[".home-box[_nghost-%COMP%]{margin-top:1rem;flex:initial!important}.content[_ngcontent-%COMP%]{text-align:center;padding:1rem 0;justify-content:center;margin:0 -.5rem}.content[_ngcontent-%COMP%] .sum[_ngcontent-%COMP%]{font-size:2rem}.content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:1.2rem}.content[_ngcontent-%COMP%] .sum[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin:0 .5rem;align-self:center}"],changeDetection:0})}}return t})();function nn(t,m){if(t&1&&(B(0),c(1),l(2,"tr"),R()),t&2){let e=h();i(),J(" ",d(2,2,"*.Notifications.RemoteExam.StartsIn")," ",e.timeToExam," ")}}function on(t,m){t&1&&(B(0),c(1),l(2,"tr"),R()),t&2&&(i(),C(" ",d(2,1,"*.Notifications.RemoteExam.Active")," "))}function rn(t,m){if(t&1){let e=T();r(0,"r-button",11),w("click",function(){D(e);let o=h();return I(o.joinMeeting())}),r(1,"span"),c(2),l(3,"tr"),a()()}t&2&&(s("shrink",!0),i(2),C("\xA0",d(3,2,"*.Notifications.RemoteExam.Connect"),""))}function an(t,m){if(t&1){let e=T();r(0,"r-button",12),w("click",function(){D(e);let o=h();return I(o.download())}),r(1,"span"),c(2),l(3,"tr"),a()()}t&2&&(s("shrink",!0),i(2),C("\xA0",d(3,2,"*.Notifications.RemoteExam.DownloadFile"),""))}function cn(t,m){if(t&1){let e=T();r(0,"r-button",13),w("click",function(){D(e),h();let o=Oe(15);return I(o.open())}),r(1,"span"),c(2),l(3,"tr"),a()()}t&2&&(s("shrink",!0),i(2),C("\xA0",d(3,2,"*.Notifications.RemoteExam.UploadFile"),""))}function sn(t,m){t&1&&f(0,"remote-exam-upload")}var ne=(()=>{class t{get gapInMS(){if(this.serverTime.serverTime)return this.dueTime.getTime()-this.serverTime.serverTime.getTime()}get hasBeenStarted(){return this.gapInMS<=0}get timeToExam(){let e=Math.round(this.gapInMS/1e3),n=e%60,o=Math.floor(e/60)%60;return`${(Math.floor(e/60/60)%60).toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}get meetingUrl(){return this.notification.moreData.mettingUrl}get showUploadButton(){return this.notification.moreData.uploadTarget}constructor(e,n,o){this.formService=e,this.serverTime=n,this.cdr=o}ngOnInit(){this.dueTime=new Date,this.dueTime.setFullYear(1900,0,1),this.dueTime.setHours(this.notification.moreData.startTime.split(":")[0],this.notification.moreData.startTime.split(":")[1],0,0),setInterval(()=>{this.cdr.markForCheck()},1e3)}joinMeeting(){window.open(this.meetingUrl,"_blank")}download(){this.formService.post("RemoteExamFile",this.notification.moreData,e=>{let n=e.file;this.formService.http.downloadAsync("Service/Download",n,this.formService).subscribe()})}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(Ne),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["remote-exam-notification"]],inputs:{notification:"notification"},standalone:!1,decls:18,vars:12,consts:[["uploadModal",""],[1,"title","font-thick"],["icon","video-camera"],[1,"text-light"],[4,"ngIf"],[1,"actions","text-base"],["icon","plug",3,"shrink","click",4,"ngIf"],["icon","download",3,"shrink","click",4,"ngIf"],["icon","upload",3,"shrink","click",4,"ngIf"],[3,"title"],["r-modal-body",""],["icon","plug",3,"click","
1shrink"],["icon","download",3,"click","shrink"],["icon","upload",3,"click","shrink"]],template:function(n,o){n&1&&(r(0,"div",1),f(1,"r-icon",2),c(2),l(3,"tr"),a(),r(4,"div",3),c(5),p(6,nn,3,4,"ng-container",4)(7,on,3,3,"ng-container",4),a(),r(8,"div",5),p(9,rn,4,4,"r-button",6),c(10," \xA0 "),p(11,an,4,4,"r-button",7),c(12," \xA0 "),p(13,cn,4,4,"r-button",8),a(),r(14,"r-modal",9,0),l(16,"tr"),p(17,sn,1,0,"ng-template",10),a()),n&2&&(i(2),C(" ",d(3,8,"*.Notifications.RemoteExam.Title"),` 2`),i(3),C(" ",o.notification.details," | "),i(),s("ngIf",!o.hasBeenStarted),i(),s("ngIf",o.hasBeenStarted),i(2),s("ngIf",o.meetingUrl),i(2),s("ngIf",o.hasBeenStarted),i(2),s("ngIf",o.showUploadButton&&o.hasBeenStarted),i(),Pe("title",d(16,10,"*.Notifications.RemoteExam.UploadFile")))},styles:[".title[_ngcontent-%COMP%]{font-size:1.2rem}.actions[_ngcontent-%COMP%]{margin-top:.75rem}[_nghost-%COMP%] .actions .button{border:1px solid gray}"],changeDetection:0})}}return t})();function mn(t,m){if(t&1&&f(0,"remote-exam-notification",6),t&2){let e=h().$implicit;s("notification",e)}}function ln(t,m){if(t&1&&(B(0),r(1,"r-action-button",7),c(2),a(),r(3,"div",8),c(4),a(),R()),t&2){let e=h().$implicit;i(),s("actionButton",e.actionButton)("inline",!0),i(),C(" ",e.title," "),i(2),_(e.details)}}function dn(t,m){if(t&1){let e=T();r(0,"div",2)(1,"r-message",3),w("shownChange",function(){D(e);let o=h(2);return I(o.messageShownChange())}),p(2,mn,1,1,"remote-exam-notification",4)(3,ln,5,4,"ng-container",5),a()()}if(t&2){let e=m.$implicit;i(),Y(e.style),s("ngSwitch",e.title)("type","prominent"),i(),s("ngSwitchCase","RemoteExam")}}function pn(t,m){if(t&1&&(B(0),p(1,dn,4,5,"div",1),R()),t&2){let e=h();i(),s("ngForOf",e.notifications)}}var st=(()=>{class t{constructor(e,n){this.formService=e,this.cdr=n}ngOnInit(){this.formService.post("Notifications",null,e=>{this.notifications=e.notifications,this.cdr.markForCheck()})}messageShownChange(){this.cdr.markForCheck()}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["notifications"]],standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],["class","notification-wrapper",4,"ngFor","ngForOf"],[1,"notification-wrapper"],[3,"shownChange","ngSwitch","type"],[3,"notification",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"notification"],[3,"actionButton","inline"],[1,"text-light"]],template:function(n,o){n&1&&p(0,pn,2,1,"ng-container",0),n&2&&s("ngIf",o.notifications)},dependencies:[W,O,Ie,Te,ke,qe,ee,ne],styles:["[_nghost-%COMP%] .r-text{margin:0}[_nghost-%COMP%] .r-text r-button .mat-mdc-button{text-align:inherit}[_nghost-%COMP%] .r-text r-button .text{white-space:normal}.notification-wrapper[_ngcontent-%COMP%]{margin-bottom:.3rem}"],changeDetection:0})}}return t})();function hn(t,m){t&1&&f(0,"r-loading")}function fn(t,m){if(t&1){let e=T();r(0,"r-action-button",12),w("action",function(o){D(e);let u=h().$implicit,v=h();return I(v.onaction(o,u))}),r(1,"div",13)(2,"div",14),c(3),a(),f(4,"r-icon",15),a()()}if(t&2){let e=h().$implicit;s("actionButton",e.actionButton)("shrink",!0),i(3),C("",e.title," ")}}function _n(t,m){if(t&1&&(r(0,"div",14),c(1),a()),t&2){let e=h().$implicit;i(),_(e.title)}}function vn(t,m){if(t&1&&(r(0,"div",5)(1,"div",6),f(2,"div",7),a(),r(3,"div",8),p(4,fn,5,3,"r-action-button",9)(5,_n,2,1,"div",10),r(6,"div",11),c(7),a()()()),t&2){let e=m.$implicit;i(4),s("ngIf",e.actionButton),i(),s("ngIf",!e.actionButton),i(2),_(e.description)}}var mt=(()=>{class t{get data(){return this._data}set data(e){e!=null&&(this._data=e,this.fetchEventsData())}constructor(e,n){this.formService=e,this.cdr=n}ngOnInit(){this.fetchEventsData()}fetchEventsData(){this.data.forEach(e=>{switch(e.date=new Date(e.date),e.__distanceFromToday=this.calculateDistanceFromToday(e.date),e.options&&e.options.color&&e.options.color?e.options.color.toLowerCase():""){case"bydate":e.__distanceFromToday<=3?(e.__color="error",e.__cssClass="text-error"):e.__distanceFromToday<=7?(e.__color="warning",e.__cssClass="text-warning"):(e.__color="success",e.__cssClass="text-success");break;case"primary":e.__color="primary",e.__cssClass="text-primary";break}}),this.events=this.data.sort((e,n)=>e.date.getTime()-n.date.getTime()),this.cdr.markForCheck()}calculateDistanceFromToday(e){let n=new Date,o=e.getTime()-n.getTime();return Math.ceil(o/(1e3*3600*24))}
2onaction(e,n){n.type=="MOODLE"&&this.formService.moodleLogin({course:e.routeData.moodle_krs_id,path:e.routeData.moodle_server_path})}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["special-events"]],hostAttrs:[1,"home-box"],inputs:{data:"data"},standalone:!1,decls:7,vars:5,consts:[[1,"header","background-error","border"],[1,"text","text-primary","panel-error"],[1,"content","block-border"],[4,"ngIf"],["class","event border-default-color ",4,"ngFor","ngForOf"],[1,"event","border-default-color"],[1,"event-date","background-darker"],[1,"event-date-rotate"],[1,"event-details"],[3,"actionButton","shrink","action",4,"ngIf"],["class","event-title ellipsis",4,"ngIf"],[1,"event-description","text-light"],[3,"action","actionButton","shrink"],[1,"action-button-event-content"],[1,"event-title","ellipsis"],["icon","link"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"div",1),c(2),l(3,"tr"),a()(),r(4,"div",2),p(5,hn,1,0,"r-loading",3)(6,vn,8,3,"div",4),a()),n&2&&(i(2),_(d(3,3,"*.SpecialEvents")),i(3),s("ngIf",!o.events),i(),s("ngForOf",o.events))},dependencies:[W,O,ee,H,E,y],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{position:relative;height:100%;overflow-y:scroll}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]{border-bottom-width:1px;border-bottom-style:solid;display:flex;justify-content:space-between}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-date[_ngcontent-%COMP%]{min-width:1.6rem;max-width:1.6rem;position:relative}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-date[_ngcontent-%COMP%] .event-date-rotate[_ngcontent-%COMP%]{position:absolute;top:2.2rem;left:-2.2rem;width:6rem;height:1.6rem;transform:rotate(90deg);text-align:center;line-height:1.6rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-days-distance[_ngcontent-%COMP%]{min-width:4rem;max-width:4rem;text-align:center;display:flex;flex-direction:column;justify-content:center}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-days-distance[_ngcontent-%COMP%] .days-count[_ngcontent-%COMP%]{font-size:1.8rem;line-height:1.8rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-details[_ngcontent-%COMP%]{padding:.3rem .5rem;flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-details[_ngcontent-%COMP%] .event-title[_ngcontent-%COMP%], [_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-details[_ngcontent-%COMP%] .event-description[_ngcontent-%COMP%], [_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-details[_ngcontent-%COMP%] .event-progressbar[_ngcontent-%COMP%]{height:1.4rem;line-height:1.4rem}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%] .event-details[_ngcontent-%COMP%] .event-progressbar[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .action-button-event-content[_ngcontent-%COMP%]{display:flex}body.ltr [_nghost-%COMP%] .content[_ngcontent-%COMP%] .action-button-event-content[_ngcontent-%COMP%] r-icon[_ngcontent-%COMP%]{margin-left:.5rem}body.ltr [_nghost-%COMP%] -shadowcsshost .content .action-button-event-content r-icon{margin-left:.5rem}body.rtl [_nghost-%COMP%] .content[_ngcontent-%COMP%] .action-button-event-content[_ngcontent-%COMP%] r-icon[_ngcontent-%COMP%]{margin-right:.5rem}body.rtl [_nghost-%COMP%] -shadowcsshost .content .action-button-event-content r-icon{margin-right:.5rem}.block-border[_ngcontent-%COMP%]{border:3px outset;max-height:10rem}.border[_ngcontent-%COMP%]{border:3px solid #856404}[_nghost-%COMP%] r-action-button a.mat-mdc-button{padding:0;line-height:normal}"],changeDetection:0})}}return t})();function Pn(t,m){if(t&1&&f(0,"iframe",6),t&2){let e=h(2);s("src",e.letterPath,_e)}}function On(t,m){if(t&1){let e=T();r(0,"div",2),p(1,Pn,1,1,"iframe",3),a(),r(2,"div",4)(3,"r-button",5),w("click",function(){D(e);let o=h();return I(o.showModal=!1)}),c(4),l(5,"tr"),a()()}if(t&2){let e=h();i(),s("ngIf",e.letterPath),i(2),Y("primary"),s("type","submit"),i(),_(d(5,5,"*.Close"))}}var lt=(()=>{class t{constructor(e,n,o,u){this.cdr=e,this.sanitizer=n,this.formService=o,this.letterService=u,this.showModal=!1,this.letterPath=null,this.afterLetterGenerating=(v,S,k)=>{S?(this.showModal=!0,this.letterPath=this.sanitizer.bypassSecurityTrustResourceUrl(k.fileLocation),this.cdr.markForCheck()):this.formService.error(v)}}ngOnInit(){this.formService.post("GetSignDocLetter",null,e=>{if(e.letterExists){let n=e.signDocLetter;this.letterService.connectSign(n,this.afterLetterGenerating,"*.Sent",!0,this.formService.form,"Components.Letters.PrintingSignDoc")}})}static{this.\u0275fac=function(n){return new(n||t)(g(P),g(Ee),g(M),g(me))}}static{this.\u0275cmp=x({type:t,selectors:[["sign-doc"]],standalone:!1,decls:2,vars:1,consts:[[2,"scrollbar-arrow-color","aquamarine",3,"shownChange","shown"],["r-modal-body",""],[1,"iframe-wrapper"],["class","iframe","frameborder","0","scrolling","yes",3,"src",4,"ngIf"],[1,"submit-wrapper"],[1,"btn","btn-primary",3,"click","type"],["frameborder","0","scrolling","yes",1,"iframe",3,"src"]],template:function(n,o){n&1&&(r(0,"r-modal",0),we("shownChange",function(v){return Se(o.showModal,v)||(o.showModal=v),v}),p(1,On,6,7,"ng-template",1),a()),n&2&&ye("shown",o.showModal)},dependencies:[O,se,ce,b,y],styles:[".iframe-wrapper[_ngcontent-%COMP%]{overflow-y:scroll}@media (min-width: 1024px) and (max-width: 1439px){.iframe[_ngcontent-%COMP%]{height:calc(100vh - 20rem);width:750px}}@media (min-width: 1440px) and (max-width: 1919px){.iframe[_ngcontent-%COMP%]{height:calc(100vh - 20rem);width:750px}}@media (min-width: 1920px){.iframe[_ngcontent-%COMP%]{height:calc(100vh - 20rem);width:750px}}@media (min-width: 600px) and (max-width: 1023px){.iframe[_ngcontent-%COMP%]{height:calc(100vh - 14rem)}}@media (max-width: 599px){.iframe[_ngcontent-%COMP%]{height:calc(100vh - 14rem)}}.submit-wrapper[_ngcontent-%COMP%]{margin-top:.5rem}"],changeDetection:0})}}return t})();function Sn(t,m){t&1&&f(0,"r-loading")}var dt=(()=>{class t{constructor(e,n){this.formService=e,this.cdr=n}ngOnInit(){this.fetchForumHandle()}fetchForumHandle(){this.isLoading=!0,this.formService.post("SyllabusData",null,e=>{this.isLoading=!1,this.sum=e.syllabus,this.cdr.markForCheck()})}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["syllabus"]],hostAttrs:[1,"home-box"],standalone:!1,decls:14,vars:10,consts:[[1,"header","background-darker"],["routerLink","courses","tabindex","-1"],[1,"text","text-primary"],[1,"caption"],[1,"content"],[4,"ngIf"],[1,"sum","text-accent"],[1,"text"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"r-button",1)(2,"div",2)(3,"span",3),c(4),l(5,"tr"),a()()()(),r(6,"div",4),p(7,Sn,1,0,"r-loading",5),r(8,"div",6),c(9),l(10,"number"),a(),r(11,"div",7),c(12),l(13,"tr"),a()()),n&2&&(i(4),C(" ",d(5,4,"*.Syllabus")," "),i(3),s("ngIf",o.isLoading),i(2),_(d(10,6,o.sum)),i(3),C(" ",d(13,8,"*.PendingRequestsSyllabus")," "))},dependencies:[z,O,b,E,Q,y],styles:[".home-box[_nghost-%COMP%]{margin-top:1rem;flex:initial!important}.content[_ngcontent-%COMP%]{text-align:center;padding:1rem 0;margin:0 -.5rem}
2.content[_ngcontent-%COMP%] .sum[_ngcontent-%COMP%]{font-size:2rem}.content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:1.2rem}.content[_ngcontent-%COMP%] .sum[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin:0 .5rem;align-self:center}"],changeDetection:0})}}return t})();function bn(t,m){if(t&1&&f(0,"block-message",10),t&2){let e=h(2);s("blockingDetails",e.data.blockingDetails)("blockingSpecialMsg",e.data.blockingSpecialMsg)}}function Dn(t,m){if(t&1&&(r(0,"div"),f(1,"special-events",6),a()),t&2){let e=h(2);i(),s("data",e.specialEvents)}}function In(t,m){t&1&&(r(0,"div",11),f(1,"average")(2,"maazan")(3,"account"),a())}function Tn(t,m){t&1&&(r(0,"div",12),f(1,"forum-handle")(2,"syllabus"),a())}function kn(t,m){if(t&1&&(r(0,"div",1),p(1,bn,1,2,"block-message",2)(2,Dn,2,1,"div",3),f(3,"notifications"),r(4,"div",4)(5,"div",5),f(6,"events",6)(7,"messages"),a(),r(8,"div",7),f(9,"schedule"),p(10,In,4,0,"div",8)(11,Tn,3,0,"div",9),a()()()),t&2){let e=h();i(),s("ngIf",e.data.blocked),i(),s("ngIf",e.specialEvents.length>0),i(4),s("data",e.events),i(4),s("ngIf",e.isStudent),i(),s("ngIf",e.isStaff)}}var pt=(()=>{class t extends Ae{get isStudent(){return this.portalService.portalName=="Student"}get isStaff(){return this.portalService.portalName=="Staff"}constructor(e,n,o,u){super(e),this.formService=e,this.portalService=n,this.letterService=o,this.cdr=u,this.afterInitData=()=>{this.events=this.data.events.filter(v=>v.specialEvents==!1),this.specialEvents=this.data.events.filter(v=>v.specialEvents==!0),this.isInitialized=!0,this.cdr.markForCheck()}}static{this.\u0275fac=function(n){return new(n||t)(g(M),g(Re),g(me),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["ng-component"]],standalone:!1,features:[be([M]),Ce],decls:2,vars:1,consts:[["class","home",4,"ngIf"],[1,"home"],[3,"blockingDetails","blockingSpecialMsg",4,"ngIf"],[4,"ngIf"],[1,"content"],[1,"messages-events-wrapper"],[3,"data"],[1,"schedule-average-account-wrapper"],["class","average-maazan-account-wrapper",4,"ngIf"],["class","pm-info-wrapper",4,"ngIf"],[3,"blockingDetails","blockingSpecialMsg"],[1,"average-maazan-account-wrapper"],[1,"pm-info-wrapper"]],template:function(n,o){n&1&&(p(0,kn,12,5,"div",0),f(1,"sign-doc")),n&2&&s("ngIf",o.isInitialized)},dependencies:[O,Qe,Xe,tt,nt,it,ot,rt,at,st,mt,lt,dt],styles:["@media (min-width: 1024px) and (max-width: 1439px){[_nghost-%COMP%]{overflow:hidden;margin-top:-36px}}@media (min-width: 1440px) and (max-width: 1919px){[_nghost-%COMP%]{overflow:hidden;margin-top:-36px}}@media (min-width: 1920px){[_nghost-%COMP%]{overflow:hidden;margin-top:-36px}}[_nghost-%COMP%] r-upload-button .button{border:1px solid gray}.upload-button-wrapper[_ngcontent-%COMP%]{min-width:150px;max-width:150px}.note[_ngcontent-%COMP%]{font-size:.9rem;padding:.5rem .3rem}.home[_ngcontent-%COMP%]{display:flex;flex-direction:column}
2@media (min-width: 1024px) and (max-width: 1439px){.home[_ngcontent-%COMP%]{overflow:hidden;padding:3px}}@media (min-width: 1440px) and (max-width: 1919px){.home[_ngcontent-%COMP%]{overflow:hidden;padding:3px}}@media (min-width: 1920px){.home[_ngcontent-%COMP%]{overflow:hidden;padding:3px}}.content[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:space-between;margin:0 -.5rem -.5rem;padding:.5rem;overflow:hidden}@media (min-width: 600px) and (max-width: 1023px){.content[_ngcontent-%COMP%]{flex-wrap:wrap}}@media (max-width: 599px){.content[_ngcontent-%COMP%]{flex-wrap:wrap}}.messages-events-wrapper[_ngcontent-%COMP%], .schedule-average-account-wrapper[_ngcontent-%COMP%]{width:calc(50% - .5rem);display:flex;flex-direction:column}@media (min-width: 600px) and (max-width: 1023px){.messages-events-wrapper[_ngcontent-%COMP%], .schedule-average-account-wrapper[_ngcontent-%COMP%]{width:100%}}@media (max-width: 599px){.messages-events-wrapper[_ngcontent-%COMP%], .schedule-average-account-wrapper[_ngcontent-%COMP%]{width:100%}}.messages-events-wrapper[_ngcontent-%COMP%] .home-box[_ngcontent-%COMP%], .schedule-average-account-wrapper[_ngcontent-%COMP%] .home-box[_ngcontent-%COMP%]{flex:1;overflow:hidden}@media (min-width: 600px) and (max-width: 1023px){.schedule-average-account-wrapper[_ngcontent-%COMP%]{margin-top:1rem}}@media (max-width: 599px){.schedule-average-account-wrapper[_ngcontent-%COMP%]{margin-top:1rem}}[_nghost-%COMP%] .home-box{position:relative;background-color:#fff;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f}@media (min-width: 600px) and (max-width: 1023px){[_nghost-%COMP%] .home-box{height:30rem}[_nghost-%COMP%] .home-box .forum-handle{height:auto;margin-bottom:1rem}}@media (max-width: 599px){[_nghost-%COMP%] .home-box{height:30rem}[_nghost-%COMP%] .home-box .forum-handle{height:auto;margin-bottom:1rem}}[_nghost-%COMP%] .home-box .header{min-height:3rem;max-height:3rem;align-items:center;display:flex;justify-content:center}[_nghost-%COMP%] .home-box .header .text{font-weight:400;display:flex;font-size:1.4rem}[_nghost-%COMP%] .home-box .header .text .icon{font-size:.9rem;padding-top:.1rem}body.ltr [_nghost-%COMP%] .home-box .header .text .icon{padding-left:.5rem}body.ltr [_nghost-%COMP%] -shadowcsshost .home-box .header .text .icon{padding-left:.5rem}body.rtl [_nghost-%COMP%] .home-box .header .text .icon{padding-right:.5rem}body.rtl [_nghost-%COMP%] -shadowcsshost .home-box .header .text .icon{padding-right:.5rem}.average-maazan-account-wrapper[_ngcontent-%COMP%]{min-height:10rem;margin:1rem -.5rem 0;display:flex;justify-content:space-between}@media (min-width: 600px) and (max-width: 1023px){.average-maazan-account-wrapper[_ngcontent-%COMP%]{margin-bottom:1rem}}@media (max-width: 599px){.average-maazan-account-wrapper[_ngcontent-%COMP%]{margin-bottom:1rem}}[_nghost-%COMP%] .average-maazan-account-wrapper average, [_nghost-%COMP%] .average-maazan-account-wrapper account, [_nghost-%COMP%] .average-maazan-account-wrapper maazan{flex:1;min-width:calc(33.33% - 1rem);display:flex;flex-direction:column;margin:0 .5rem}@media (min-width: 600px) and (max-width: 1023px){[_nghost-%COMP%] .average-maazan-account-wrapper average, [_nghost-%COMP%] .average-maazan-account-wrapper account, [_nghost-%COMP%] .average-maazan-account-wrapper maazan{height:10rem}}@media (max-width: 599px){[_nghost-%COMP%] .average-maazan-account-wrapper average, [_nghost-%COMP%] .average-maazan-account-wrapper account, [_nghost-%COMP%] .average-maazan-account-wrapper maazan{height:10rem}}[_nghost-%COMP%] .average-maazan-account-wrapper .content{flex:1;position:relative;align-items:center;display:flex;justify-content:center}.pm-info-wrapper[_ngcontent-%COMP%]{min-height:10rem;margin:1rem -.5rem 0;display:flex;justify-content:space-between}@media (min-width: 600px) and (max-width: 1023px){.pm-info-wrapper[_ngcontent-%COMP%]{margin-bottom:1rem}}@media (max-width: 599px){.pm-info-wrapper[_ngcontent-%COMP%]{margin-bottom:1rem}}[_nghost-%COMP%] .pm-info-wrapper forum-handle, [_nghost-%COMP%] .pm-info-wrapper syllabus{flex:1;min-width:calc(50% - 1rem);flex-direction:column;margin:0 .5rem}@media (min-width: 600px) and (max-width: 1023px){[_nghost-%COMP%] .pm-info-wrapper forum-handle, [_nghost-%COMP%] .pm-info-wrapper syllabus{height:10rem}}@media (max-width: 599px){[_nghost-%COMP%] .pm-info-wrapper forum-handle, [_nghost-%COMP%] .pm-info-wrapper syllabus{height:10rem}}[_nghost-%COMP%] .pm-info-wrapper .content{flex:1;position:relative}[_nghost-%COMP%] .no-data-text{height:100%;font-size:1.2rem;align-items:center;display:flex;justify-content:center}[_nghost-%COMP%] .home-box .button-wrapper r-button{display:inline-block;height:100%}[_nghost-%COMP%] .home-box .button-wrapper r-button .button.shrink{height:100%;width:2rem;padding:8px}"]})}}return t})();function En(t,m){if(t&1){let e=T();r(0,"r-upload-button",12),w("change",function(o){D(e);let u=h(2);return I(u.select(o))}),f(1,"r-icon",13),c(2),l(3,"tr"),a()}t&2&&(s("multiple",!1),i(2),C("\xA0 ",d(3,2,"*.Notifications.RemoteExam.SelectFile")," "))}function Fn(t,m){if(t&1){let e=T();r(0,"div",5)(1,"div",6),p(2,En,4,4,"r-upload-button",7),r(3,"span",8),c(4),a()(),r(5,"div",9)(6,"r-button",10),w("click",function(){D(e);let o=h();return I(o.upload())}),c(7),l(8,"tr"),a(),c(9," \xA0 "),r(10,"r-button",11),w("click",function(){D(e);let o=h();return I(o.cancel())}),c(11),l(12,"tr"),a()()()}if(t&2){let e=h();i(2),s("ngIf",!e.file),i(2),_(e.file==null?null:e.file.name),i(2),Y("accent"),s("disabled",!e.file)("type","prominent"),i(),_(d(8,10,"*.Notifications.RemoteExam.Upload")),i(3),s("disabled",!e.file)("type","prominent"),i(),_(d(12,12,"*.Notifications.RemoteExam.Cancel"))}}function Bn(t,m){t&1&&(r(0,"div",14),c(1),l(2,"tr"),r(3,"span",15),c(4," .jpg, .png, .pdf "),a()()),t&2&&(i(),C(" ",d(2,1,"*.Notifications.RemoteExam.AllowedExtensions"),": "))}function Rn(t,m){if(t&1&&(r(0,"div",16),c(1),a()),t&2){let e=h();i(),_(e.error)}}function zn(t,m){t&1&&(r(0,"div",17),c(1),l(2,"tr"),a()),t&2&&(i(),_(d(2,1,"*.Notifications.RemoteExam.UploadSuccessfully")))}function Nn(t,m){if(t&1&&(r(0,"div",18),c(1),l(2,"tr"),a()),t&2){let e=h();i(),J(" ",d(2,2,"*.Notifications.RemoteExam.Uploading"),"... ",e.percentage,`% 3`)}}var gt=(()=>{class t{constructor(e,n,o){this.host=e,this.formService=n,this.cdr=o}select(e){let n=e[0];if(!Ge.IsValidFileType(n.name,this.formService.data.uploadOptions.allowedExtensions)){this.error="\u05E1\u05D5\u05D2 \u05E7\u05D5\u05D1\u05E5 \u05D0\u05E1\u05D5\u05E8";return}this.error=void 0,this.file=e[0]}upload(){this.formService.post("RemoteExamUploadOptions",this.host.notification.moreData,e=>{this.formService.http.uploadToUrlAsync("Home/Upload",[this.file],e.uploadOptions).subscribe(n=>{n.isCompleted?n.hasError?this.error="\u05D0\u05D9\u05E8\u05E2\u05D4 \u05E9\u05D2\u05D9\u05D0\u05D4 \u05D1\u05DE\u05D4\u05DC\u05DA \u05D4\u05E2\u05DC\u05D0\u05EA \u05D4\u05E7\u05D5\u05D1\u05E5":this.success=!0:this.perecentage=n.percentage,this.cdr.markForCheck()})})}cancel(){this.file=void 0,this.success=!1,this.perecentage=void 0,this.cdr.markForCheck()}onSuccess(){this.success=!0,this.cdr.markForCheck(),setTimeout(()=>{close()},2e3)}static{this.\u0275fac=function(n){return new(n||t)(g(ne),g(M),g(P))}}static{this.\u0275cmp=x({type:t,selectors:[["remote-exam-upload"]],standalone:!1,decls:5,vars:5,consts:[["style","display: flex; justify-content: space-between; align-items: center; width: 500px;",4,"ngIf"],["class","note text-light",4,"ngIf"],["class","error text-error",4,"ngIf"],["class","success text-success",4,"ngIf"],["class","text-light",4,"ngIf"],[2,"display","flex","justify-content","space-between","align-items","center","width","500px"],[1,"file-selection"],[3,"multiple","change",4,"ngIf"],[1,"file-name","text-light"],[1,"upload-button-wrapper","text-end"],["disabled","",3,"click","disabled","type"],[3,"click","disabled","type"],[3,"change","multiple"],["icon","file-o"],[1,"n
3ote","text-light"],["dir","ltr"],[1,"error","text-error"],[1,"success","text-success"],[1,"text-light"]],template:function(n,o){n&1&&p(0,Fn,13,14,"div",0)(1,Bn,5,3,"div",1)(2,Rn,2,1,"div",2)(3,zn,3,3,"div",3)(4,Nn,3,4,"div",4),n&2&&(s("ngIf",!o.success),i(),s("ngIf",!o.success),i(),s("ngIf",o.error),i(),s("ngIf",o.success),i(),s("ngIf",!o.success&&o.perecentage>0))},dependencies:[O,b,H,Fe,Je,y],encapsulation:2,changeDetection:0})}}return t})();var jn=[{path:"",component:pt}],Ai=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ve({type:t})}static{this.\u0275inj=ge({providers:[X],imports:[Be.forChild(jn),Ke,Ye]})}}return t})();De(ne,function(){return[O,se,ce,b,H,gt]},function(){return[y]});export{Ai as HomeModule};
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.