uawdijnntqw1x1x1
IP : 216.73.216.55
Hostname : srv913213
Kernel : Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
krbed.in
/
..
/
..
/
www
/
..
/
www
/
html
/
..
/
school_portal_admin
/
60-es2015.10a22fc83e49b36be147.js
/
/
(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{"73gp":function(t,e,c){"use strict";var i=c("tk/3"),n=c("2Vo4"),o=c("lJxs"),d=c("rnHP"),a=c("fXoL");let s=(()=>{class t{constructor(t){this.adapter=t}adapt(t){let e=[];return t.data.forEach(t=>{e.push(this.adapter.adapt(t))}),{keyword:t.keyword,message:t.message,sections:e,pageSize:t.count,page:t.page}}}return t.\u0275fac=function(e){return new(e||t)(a.hc(d.a))},t.\u0275prov=a.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var l=c("qc5V");c.d(e,"a",(function(){return r}));let r=(()=>{class t{constructor(t,e){this.adapter=t,this.apiService=e,this.recordAddedSubject=new n.a([{}]),this.recordUpdatedSubject=new n.a([{}])}create(t){return this.apiService.post("section/create",t).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}update(t){return this.apiService.post("section/update",t).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}status(t,e){return this.apiService.post(2!=e?"section/status":"section/delete",t)}getList(t){let e=new i.e;for(let c in t)e=e.set(c,t[c]);return this.apiService.get("section",e).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}getRecordAddedSub(){return this.recordAddedSubject.asObservable()}getRecordUpdatedSub(){return this.recordUpdatedSubject.asObservable()}}return t.\u0275fac=function(e){return new(e||t)(a.hc(s),a.hc(l.a))},t.\u0275prov=a.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},Attm:function(t,e,c){"use strict";class i{constructor(){this.classId="",this.className="",this.status=""}}var n=c("fXoL");c.d(e,"a",(function(){return o}));let o=(()=>{class t{adapt(t){return this.obj=new i,this.obj.classId=t.class_id,this.obj.className=t.class_name,this.obj.status=t.status,this.obj}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},Lzaa:function(t,e,c){"use strict";c.d(e,"a",(function(){return i}));class i{constructor(){this.categoryId="",this.categoryName="",this.branchId="",this.status=""}}},btqD:function(t,e,c){"use strict";c.d(e,"a",(function(){return i}));class i{constructor(){this.positionId="",this.positionName="",this.categoryName="",this.categoryId="",this.status=""}}},cZdB:function(t,e,c){"use strict";c.d(e,"b",(function(){return o})),c.d(e,"a",(function(){return n}));var i=c("fXoL");let n=(()=>{class t{transform(e,c){return c&&e?t.filter(e,c):e}static filter(t,e){const c=e.toLowerCase();return t.filter((function(t){return function t(e,i){for(let n in e)if(null!==e[n]&&null!=e[n]){if("object"==typeof e[n]&&t(e[n],i))return!0;if(e[n].toString().toLowerCase().includes(c))return!0}return!1}(t,e)}))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Wb({name:"filter",type:t,pure:!1}),t.\u0275prov=i.Tb({token:t,factory:t.\u0275fac}),t})(),o=(()=>{class t{}return t.\u0275mod=i.Vb({type:t}),t.\u0275inj=i.Ub({factory:function(e){return new(e||t)}}),t})()},elPL:function(t,e,c){"use strict";c.d(e,"a",(function(){return g})),c.d(e,"b",(function(){return h})),c.d(e,"c",(function(){return p})),c.d(e,"d",(function(){return l})),c.d(e,"e",(function(){return r})),c.d(e,"f",(function(){return m}));var i=c("fXoL"),n=c("R0Ic"),o=c("ofXK");const d=["*"],a=[[["mgl-timeline-entry-side"]],[["mgl-timeline-entry-dot"]],[["mgl-timeline-entry-header"]],[["mgl-timeline-entry-content"]]],s=["mgl-timeline-entry-side","mgl-timeline-entry-dot","mgl-timeline-entry-header","mgl-timeline-entry-content"];let l=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Rb({type:t,selectors:[["mgl-timeline-entry-header"]],ngContentSelectors:d,decls:1,vars:0,template:function(t,e){1&t&&(i.xc(),i.wc(0))},styles:["mgl-timeline-entry-header{position:relative;display:block;overflow:hidden;padding:15px;text-align:center}"],encapsulation:2}),t})(),r=(()=>{let t=class{constructor(t,e,c,n,o){this.animationBuilder=t,this.elementRef=e,this.renderer=c,this.changeDetectorRef=n,this.document=o,this._expanded=!1,this._alternate=!1,this._mobile=!1,this._size=50,this.animationDone=new i.o,this.expandAnimationTiming="200ms ease",this.collapseAnimationTiming="100ms ease",this.clazz="primary"}set size(t){this._size=t,this.setStyle()}get size(){return this._size}set alternate(t){this._alternate=t,this.setStyle()}get alternate(){return this._alternate}set mobile(t){this._mobile=t,this.setStyle()}get mobile(){return this._mobile}set expanded(t){const e=this._expanded!==t;this._expanded=t,e?this.animate():this.setStyle()}get expanded(){return this._expanded}ngAfterViewInit(){this.initialStyle=this.document.defaultView.getComputedStyle(this.elementRef.nativeElement),this.setStyle(),this.changeDetectorRef.detectChanges()}getCollapsedStyle(){return{top:"50%",left:this.alternate||this.mobile?"-5px":"calc(100% + 5px)",width:this.size+"px",height:this.size+"px",opacity:1,transform:"translateY(-50%) translateX(-50%)",boxShadow:this.initialStyle&&this.initialStyle.boxShadow,borderRadius:"100px"}}getTransitionStyle(){return Object.assign(Object.assign({},this.getCollapsedStyle()),{left:"50%",opacity:.5,boxShadow:"none"})}getExpandedStyle(){return Object.assign(Object.assign({},this.getTransitionStyle()),{left:"0",transform:"translateX(0) translateY(-50%)",width:"100%",height:"100%",opacity:1,borderRadius:0})}animate(){this.destroyAnimation(),this.expanded?(this.animation=this.animationBuilder.build([Object(n.m)(this.getCollapsedStyle()),Object(n.e)(this.expandAnimationTiming,Object(n.m)(this.getTransitionStyle())),Object(n.e)(this.expandAnimationTiming,Object(n.m)(this.getExpandedStyle()))]).create(this.elementRef.nativeElement),this.animation.onDone(()=>this.animationDone.emit({toState:"expanded"})),this.animation.play()):(this.animation=this.animationBuilder.build([Object(n.m)(this.getExpandedStyle()),Object(n.e)(this.collapseAnimationTiming,Object(n.m)(this.getTransitionStyle())),Object(n.e)(this.collapseAnimationTiming,Object(n.m)(this.getCollapsedStyle()))]).create(this.elementRef.nativeElement),this.animation.onDone(()=>this.animationDone.emit({toState:"collapsed"})),this.animation.play())}setStyle(){this.destroyAnimation();const t=this.expanded?this.getExpandedStyle():this.getCollapsedStyle();Object.keys(t).forEach(e=>{this.renderer.setStyle(this.elementRef.nativeElement,e,t[e])})}destroyAnimation(){this.animation&&(this.animation.destroy(),delete this.animation)}};return t.\u0275fac=function(e){return new(e||t)(i.Xb(n.b),i.Xb(i.l),i.Xb(i.G),i.Xb(i.h),i.Xb(o.d))},t.\u0275cmp=i.Rb({type:t,selectors:[["mgl-timeline-entry-dot"]],hostVars:2,hostBindings:function(t,e){2&t&&i.Jb(e.clazz)},inputs:{expandAnimationTiming:"expandAnimationTiming",collapseAnimationTiming:"collapseAnimationTiming",clazz:["class","clazz"],size:"size"},ngContentSelectors:d,decls:1,vars:0,template:function(t,e){1&t&&(i.xc(),i.wc(0))},styles:["mgl-timeline-entry-dot{display:block;position:absolute}"],encapsulation:2}),t})(),u=(()=>{let t=class{constructor(t,e,c){this.elementRef=t,this.animationBuilder=e,this.renderer=c,this.expandAnimationTiming="200ms ease",this.collapseAnimationTiming="100ms ease",this.animationDone=new i.o,this._expanded=!1}set expanded(t){this.contentHeight=this.elementRef.nativeElement.scrollHeight;const e=this._expanded!==t;this._expanded=t,e&&this.animate()}get expanded(){return this._expanded}ngAfterViewInit(){this.contentHeight=this.elementRef.nativeElement.scrollHeight,this.setStyle()}getCollapsedStyle(){return{height:"0px"}}getExpandedStyle(){return{height:this.contentHeight+"px"}}animate(){if(this.expanded){const t=this.animationBuilder.build([Object(n.m)(this.getCollapsedStyle()),Object(n.e)(this.expandAnimationTiming,Object(n.m)(this.getExpandedStyle()))]).create(this.elementRef.nativeElement);t.onDone(()=>this.animationDone.emit({toState:"expanded"})),t.play()}else{const t=this.animationBuilder.build([Object(n.m)(this.getExpandedStyle()),Object(n.e)(this.collapseAnimationTiming,Object(n.m)(this.getCollapsedStyle()))]).create(this.elementRef.nativeElement);t.onDone(()=>this.animationDone.emit({toState:"collapsed"})),t.play()}}setStyle(){const t=this.expanded?this.getExpandedStyle():this.getCollapsedStyle();Object.keys(t).forEach(e=>{this.renderer.setStyle(this.elementRef.nativeElement,e,t[e])})}};return t.\u0275fac=function(e){return new(e||t)(i.Xb(i.l),i.Xb(n.b),i.Xb(i.G))},t.\u0275cmp=i.Rb({type:t,selectors:[["mgl-timeline-entry-content"]],inputs:{expandAnimationTiming:"expandAnimationTiming",collapseAnimationTiming:"collapseAnimationTiming"},ngContentSelectors:d,decls:2,vars:0,template:function(t,e){1&t&&(i.xc(),i.dc(0,"div"),i.wc(1),i.cc())},styles:["mgl-timeline-entry-content{position:relative;display:block;overflow:hidden}mgl-timeline-entry-content>div{padding:10px}"],encapsulation:2}),t})(),m=(()=>{let t=class{constructor(t){this.elementRef=t}set alternate(t){this.elementRef.nativeElement.classList.toggle("alternate",t)}set mobile(t){this.elementRef.nativeElement.classList.toggle("mobile",t)}};return t.\u0275fac=function(e){return new(e||t)(i.Xb(i.l))},t.\u0275cmp=i.Rb({type:t,selectors:[["mgl-timeline-entry-side"]],ngContentSelectors:d,decls:1,vars:0,template:function(t,e){1&t&&(i.xc(),i.wc(0))},styles:["mgl-timeline-entry-side{position:absolute;top:0;left:100%;width:100%;text-align:center}mgl-timeline-entry-side.alternate{left:-100%}mgl-timeline-entry-side.mobile{display:none}"],encapsulation:2}),t})(),p=(()=>{let t=class{constructor(t){this.elementRef=t,this.subscriptions=[],this.focusOnOpen=!1,this._mobile=!1,this.changed=new i.o,this.animationDone=new i.o}set expanded(t){this.dot&&t?this.dot.expanded=t:this.content.expanded=t,this.changed.emit(t)}get expanded(){return this.dot?this.dot.expanded&&this.content.expanded:this.content.expanded}set mobile(t){this.elementRef.nativeElement.classList.toggle("mobile",t),this.dot&&(this.dot.mobile=t),this.side&&(this.side.mobile=t)}ngAfterViewInit(){this.dot&&this.subscriptions.push(this.dot.animationDone.subscribe(t=>{"expanded"===t.toState?this.content.expanded=!0:this.animationDone.emit(t)})),this.content&&this.subscriptions.push(this.content.animationDone.subscribe(t=>{this.dot&&"collapsed"===t.toState?this.dot.expanded=!1:(this.focusOnOpen&&this.elementRef.nativeElement.scrollIntoView({behavior:"smooth"}),this.animationDone.emit(t))}))}set alternate(t){this.elementRef.nativeElement.classList.toggle("alternate",t),this.dot&&(this.dot.alternate=t),this.side&&(this.side.alternate=t)}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}collapse(){this.expanded=!1}expand(){this.expanded=!0}toggle(t){const e=this.containsInPath(t,"mgl-timeline-entry-header"),c=this.containsInPath(t,"mgl-timeline-entry-dot");(e||c)&&(this.expanded=!this.expanded)}containsInPath(t,e){let c=t.target;for(;c;){if(c.localName===e)return!0;c=c.parentElement}return!1}};return t.\u0275fac=function(e){return new(e||t)(i.Xb(i.l))},t.\u0275cmp=i.Rb({type:t,selectors:[["mgl-timeline-entry"]],contentQueries:function(t,e,c){var n;1&t&&(i.Pb(c,u,!0),i.Pb(c,l,!0),i.Pb(c,r,!0),i.Pb(c,m,!0)),2&t&&(i.Nc(n=i.mc())&&(e.content=n.first),i.Nc(n=i.mc())&&(e.header=n.first),i.Nc(n=i.mc())&&(e.dot=n.first),i.Nc(n=i.mc())&&(e.side=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&i.Nb("expanded",e.expanded)},outputs:{changed:"expand",animationDone:"animationDone"},ngContentSelectors:s,decls:6,vars:0,consts:[[1,"mgl-timeline-entry-card"],[1,"mgl-timeline-entry-card-header",3,"click"]],template:function(t,e){1&t&&(i.xc(a),i.wc(0),i.dc(1,"div",0),i.dc(2,"div",1),i.lc("click",(function(t){return e.toggle(t)})),i.wc(3,1),i.wc(4,2),i.cc(),i.wc(5,3),i.cc())},styles:["mgl-timeline-entry{display:block;position:relative;margin-bottom:50px;width:calc(50% - 5px)}mgl-timeline-entry.alternate{margin-left:calc(50% + 5px)}mgl-timeline-entry.mobile{width:calc(100% - 30px);margin-left:30px}mgl-timeline-entry .mgl-timeline-entry-card{background-color:#f0f0f0}mgl-timeline-entry .mgl-timeline-entry-card .mgl-timeline-entry-card-header{position:relative;background-color:#e6e6e6}"],encapsulation:2}),t})(),h=(()=>{let t=class{constructor(t,e){this.elementRef=t,this.changeDetectorRef=e,this.toggle=!0,this.mobileWidthThreshold=640,this.alternate=!0,this.side="left",this._focusOnOpen=!1,this.subscriptions=[]}set mobile(t){this.content&&this.content.forEach(e=>e.mobile=t),this.elementRef.nativeElement.classList.toggle("mobile",t)}get mobile(){return this.elementRef.nativeElement.classList.contains("mobile")}set focusOnOpen(t){this.content&&this.content.forEach(e=>e.focusOnOpen=t),this._focusOnOpen=t}get focusOnOpen(){return this._focusOnOpen}ngOnChanges(t){this.updateContent()}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}ngAfterViewInit(){this.mobile=this.elementRef.nativeElement.clientWidth<this.mobileWidthThreshold,setTimeout(()=>this.updateContent()),this.content.changes.subscribe(t=>{this.updateContent()})}updateContent(){this.ngOnDestroy(),this.content&&this.content.forEach((t,e)=>{this.toggle&&this.subscriptions.push(t.changed.subscribe(e=>{!0===e&&this.content.filter(e=>e!==t).forEach(t=>t.collapse())})),t.alternate=this.alternate?e%2!=0:"right"===this.side,t.mobile=this.mobile,t.focusOnOpen=this.focusOnOpen})}onResize(t){this.mobile=this.elementRef.nativeElement.clientWidth<this.mobileWidthThreshold}};return t.\u0275fac=function(e){return new(e||t)(i.Xb(i.l),i.Xb(i.h))},t.\u0275cmp=i.Rb({type:t,selectors:[["mgl-timeline"]],contentQueries:function(t,e,c){var n;1&t&&i.Pb(c,p,!1),2&t&&i.Nc(n=i.mc())&&(e.content=n)},hostBindings:function(t,e){1&t&&i.lc("resize",(function(t){return e.onResize(t)}),!1,i.Rc)},inputs:{toggle:"toggle",mobileWidthThreshold:"mobileWidthThreshold",alternate:"alternate",side:"side",focusOnOpen:"focusOnOpen"},features:[i.Eb()],ngContentSelectors:d,decls:2,vars:0,consts:[[1,"mgl-timeline-line"]],template:function(t,e){1&t&&(i.xc(),i.Yb(0,"div",0),i.wc(1))},styles:["mgl-timeline{position:relative;display:block;padding:50px 0}mgl-timeline .mgl-timeline-line{position:absolute;top:0;height:100%;background-color:#a0a0a0;left:50%;width:10px;-webkit-transform:translateX(-50%);transform:translateX(-50%)}mgl-timeline.mobile .mgl-timeline-line{left:20px;-webkit-transform:none;transform:none}"],encapsulation:2}),t})(),g=(()=>{let t=class{};return t.\u0275mod=i.Vb({type:t}),t.\u0275inj=i.Ub({factory:function(e){return new(e||t)}}),t})()},g3s5:function(t,e,c){"use strict";c.d(e,"a",(function(){return o}));var i=c("btqD"),n=c("fXoL");let o=(()=>{class t{adapt(t){var e,c,n,o;return this.obj=new i.a,this.obj.positionId=null!=(e=t.employee_position_id)?e:null===(c=t)||void 0===c?void 0:c.position_id,this.obj.positionName=null!=(n=t.position_name)?n:null===(o=t)||void 0===o?void 0:o.name,this.obj.categoryName=t.category_name,this.obj.categoryId=t.employee_category_id,this.obj.status=t.status,this.obj}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},k9Bo:function(t,e,c){"use strict";var i=c("tk/3"),n=c("2Vo4"),o=c("lJxs"),d=c("Attm"),a=c("fXoL");let s=(()=>{class t{constructor(t){this.adapter=t}adapt(t){let e=[];return t.data.forEach(t=>{e.push(this.adapter.adapt(t))}),{keyword:t.keyword,message:t.message,classes:e,pageSize:t.count,page:t.page}}}return t.\u0275fac=function(e){return new(e||t)(a.hc(d.a))},t.\u0275prov=a.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var l=c("qc5V");c.d(e,"a",(function(){return r}));let r=(()=>{class t{constructor(t,e){this.adapter=t,this.apiService=e,this.recordAddedSubject=new n.a([{}]),this.recordUpdatedSubject=new n.a([{}]),this.userId=0}create(t){return this.apiService.post("class/create",t).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}update(t){return this.apiService.post("class/update",t).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}status(t,e){return this.apiService.post(2!=e?"class/status":"class/delete",t)}getListForClass(t){let e=new i.e;for(let c in t)e=e.set(c,t[c]);return this.apiService.get("class",e).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}getList(){let t=new i.e;return this.apiService.get("class",t).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}getRecordAddedSub(){return this.recordAddedSubject.asObservable()}getRecordUpdatedSub(){return this.recordUpdatedSubject.asObservable()}getClassByBatch(t){return this.apiService.get(`loadClassByBatch/${t}`).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}getClasses(t){return this.apiService.get(`getAttendClass/${t}`).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}}return t.\u0275fac=function(e){return new(e||t)(a.hc(s),a.hc(l.a))},t.\u0275prov=a.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},qfYe:function(t,e,c){"use strict";c.r(e);var i=c("tyNb"),n=c("ofXK"),o=c("3Pt+"),d=c("bTqV"),a=c("Wp6s"),s=c("bSwM"),l=c("FKr1"),r=c("iadO"),u=c("NFeN"),m=c("qFsG"),p=c("MutI"),h=c("bv9b"),g=c("QibW"),b=c("xHqg"),f=c("YUcS"),y=c("CzEO"),v=c("lDzL"),S=c("7pIB"),x=c("M9IT"),w=c("Dh3D"),I=c("d3UM"),k=c("STbY"),C=c("wZkO"),N=c("7EHt"),G=c("+0xr"),O=c("R0Ic"),D=c("k9Bo"),T=c("t/Tn"),_=c("dJ6x"),P=c("wr8E"),M=c("73gp"),L=c("Ruum"),F=c("he5C"),E=c("TGtP"),A=c("+3EH"),j=c("jtrZ"),V=c("qc5V"),X=c("PSD3"),R=c.n(X),z=c("UTcx"),B=c("fXoL"),Y=c("f0Cb"),q=c("XiUz"),J=c("kmnG"),H=c("/1cH"),U=c("cZdB"),W=c("Gh3/");function Z(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(c){B.Sc(t);const i=e.$implicit,n=B.pc(3);return n.getClassesByBatch(i.batchId),n.getStudents()})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.yc("value",t.batchId),B.Gb(1),B.ed(" ",t.batchName," ")}}function K(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){return B.Sc(t),B.pc(3).getStudents()})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.yc("value",t.classId),B.Gb(1),B.ed(" ",t.className," ")}}function Q(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){return B.Sc(t),B.pc(3).getStudents()})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.yc("value",t.sectionId),B.Gb(1),B.ed(" ",t.sectionName," ")}}function tt(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(c){B.Sc(t);const i=e.$implicit;return B.pc(3).setStudentId(null==i?null:i.studentId)})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.zc("value",t.studentName),B.Gb(1),B.ed(" ",null==t?null:t.studentName," ")}}const et=function(){return{standalone:!0}};function ct(t,e){if(1&t){const t=B.ec();B.dc(0,"div"),B.dc(1,"div",8),B.dc(2,"div",9),B.dc(3,"label"),B.dc(4,"strong"),B.cd(5,"Batch"),B.cc(),B.dc(6,"span",10),B.cd(7,"*"),B.cc(),B.cc(),B.cc(),B.dc(8,"div",19),B.dc(9,"div",27),B.dc(10,"mat-form-field",28),B.Yb(11,"mat-label"),B.dc(12,"mat-select",29),B.ad(13,Z,2,2,"mat-option",30),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(14,"div",31),B.dc(15,"div",9),B.dc(16,"label"),B.dc(17,"strong"),B.cd(18,"Class"),B.cc(),B.dc(19,"span",10),B.cd(20,"*"),B.cc(),B.cc(),B.cc(),B.dc(21,"div",19),B.dc(22,"div",27),B.dc(23,"mat-form-field",28),B.Yb(24,"mat-label"),B.dc(25,"mat-select",32),B.ad(26,K,2,2,"mat-option",30),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(27,"div",31),B.dc(28,"div",9),B.dc(29,"label"),B.dc(30,"strong"),B.cd(31,"Section"),B.cc(),B.dc(32,"span",10),B.cd(33,"*"),B.cc(),B.cc(),B.cc(),B.dc(34,"div",19),B.dc(35,"div",27),B.dc(36,"mat-form-field",28),B.Yb(37,"mat-label"),B.dc(38,"mat-select",33),B.ad(39,Q,2,2,"mat-option",30),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(40,"div",31),B.dc(41,"div",9),B.dc(42,"label"),B.dc(43,"strong"),B.cd(44," Student Name"),B.cc(),B.dc(45,"span",10),B.cd(46,"*"),B.cc(),B.cc(),B.cc(),B.dc(47,"div",19),B.dc(48,"mat-form-field",34),B.dc(49,"input",35),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc(2).searchText=e}))("keyup",(function(e){return B.Sc(t),B.pc(2).clearStudentId()})),B.cc(),B.dc(50,"mat-autocomplete",null,36),B.ad(52,tt,2,2,"mat-option",30),B.qc(53,"filter"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.Oc(51),e=B.pc(2);B.Gb(13),B.yc("ngForOf",e.batches),B.Gb(13),B.yc("ngForOf",e.classes),B.Gb(13),B.yc("ngForOf",e.sections),B.Gb(10),B.yc("ngModel",e.searchText)("ngModelOptions",B.Ec(10,et))("matAutocomplete",t),B.Gb(3),B.yc("ngForOf",B.sc(53,7,e.students,e.searchText))}}function it(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){return B.Sc(t),B.pc(3).getEmployees()})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.yc("value",t.departmentId),B.Gb(1),B.ed(" ",t.name," ")}}function nt(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){return B.Sc(t),B.pc(3).getEmployees()})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.yc("value",t.positionId),B.Gb(1),B.ed(" ",t.positionName," ")}}function ot(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(c){B.Sc(t);const i=e.$implicit;return B.pc(3).setEmployeeId(null==i?null:i.employeeId)})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.zc("value",t.employeeName),B.Gb(1),B.ed(" ",null==t?null:t.employeeName," ")}}function dt(t,e){if(1&t){const t=B.ec();B.dc(0,"div"),B.dc(1,"div",8),B.dc(2,"div",9),B.dc(3,"label"),B.dc(4,"strong"),B.cd(5,"Department"),B.cc(),B.dc(6,"span",10),B.cd(7,"*"),B.cc(),B.cc(),B.cc(),B.dc(8,"div",19),B.dc(9,"div",27),B.dc(10,"mat-form-field",28),B.Yb(11,"mat-label"),B.dc(12,"mat-select",38),B.ad(13,it,2,2,"mat-option",30),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(14,"div",31),B.dc(15,"div",9),B.dc(16,"label"),B.dc(17,"strong"),B.cd(18,"Position"),B.cc(),B.dc(19,"span",10),B.cd(20,"*"),B.cc(),B.cc(),B.cc(),B.dc(21,"div",19),B.dc(22,"div",27),B.dc(23,"mat-form-field",28),B.Yb(24,"mat-label"),B.dc(25,"mat-select",39),B.ad(26,nt,2,2,"mat-option",30),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(27,"div",31),B.dc(28,"div",9),B.dc(29,"label"),B.dc(30,"strong"),B.cd(31," Employee Name"),B.cc(),B.dc(32,"span",10),B.cd(33,"*"),B.cc(),B.cc(),B.cc(),B.dc(34,"div",19),B.dc(35,"mat-form-field",34),B.dc(36,"input",35),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc(2).searchEmp=e}))("keyup",(function(e){return B.Sc(t),B.pc(2).clearEmployeeId()})),B.cc(),B.dc(37,"mat-autocomplete",null,36),B.ad(39,ot,2,2,"mat-option",30),B.qc(40,"filter"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.Oc(38),e=B.pc(2);B.Gb(13),B.yc("ngForOf",e.depts),B.Gb(13),B.yc("ngForOf",e.positions),B.Gb(10),B.yc("ngModel",e.searchEmp)("ngModelOptions",B.Ec(9,et))("matAutocomplete",t),B.Gb(3),B.yc("ngForOf",B.sc(40,6,e.employees,e.searchEmp))}}function at(t,e){if(1&t){const t=B.ec();B.dc(0,"div"),B.dc(1,"div",8),B.dc(2,"div",9),B.dc(3,"label"),B.dc(4,"strong"),B.cd(5,"Mobile No"),B.cc(),B.dc(6,"span",10),B.cd(7,"*"),B.cc(),B.cc(),B.cc(),B.dc(8,"div",19),B.dc(9,"mat-form-field",40),B.dc(10,"input",41),B.lc("keyup",(function(e){return B.Sc(t),B.pc(2).clearDeviceData()})),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()}}function st(t,e){if(1&t){const t=B.ec();B.dc(0,"div"),B.dc(1,"div",8),B.dc(2,"div",9),B.dc(3,"label"),B.dc(4,"strong"),B.cd(5,"Category"),B.cc(),B.dc(6,"span",10),B.cd(7,"*"),B.cc(),B.cc(),B.cc(),B.dc(8,"div",11),B.dc(9,"mat-radio-group",23),B.dc(10,"mat-radio-button",24),B.lc("click",(function(e){return B.Sc(t),B.pc().catChange()})),B.cd(11,"Student "),B.cc(),B.dc(12,"mat-radio-button",25),B.lc("click",(function(e){return B.Sc(t),B.pc().catChange()})),B.cd(13,"Employee "),B.cc(),B.dc(14,"mat-radio-button",26),B.lc("click",(function(e){return B.Sc(t),B.pc().catChange()})),B.cd(15,"Visitor "),B.cc(),B.cc(),B.cc(),B.cc(),B.ad(16,ct,54,11,"div",15),B.ad(17,dt,41,10,"div",15),B.ad(18,at,11,0,"div",15),B.cc()}if(2&t){const t=B.pc();B.Gb(16),B.yc("ngIf","1"==t.control.cat.value),B.Gb(1),B.yc("ngIf",2==t.control.cat.value),B.Gb(1),B.yc("ngIf",3==t.control.cat.value)}}function lt(t,e){if(1&t&&(B.dc(0,"div",49),B.dc(1,"h4"),B.dc(2,"strong"),B.cd(3),B.cc(),B.cc(),B.dc(4,"h5"),B.cd(5," Class : "),B.dc(6,"strong"),B.cd(7),B.cc(),B.cc(),B.dc(8,"h5"),B.cd(9," Roll No : "),B.dc(10,"strong"),B.cd(11),B.cc(),B.cc(),B.dc(12,"h5",50),B.cd(13," Gender : "),B.dc(14,"strong"),B.cd(15),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc().$implicit;B.Gb(3),B.dd(null==t?null:t.studentName),B.Gb(4),B.fd(" ",null==t?null:t.className," - ",null==t?null:t.sectionName,""),B.Gb(4),B.ed(" ",null==t?null:t.rollNo,""),B.Gb(4),B.ed(" ",null==t?null:t.gender,"")}}function rt(t,e){if(1&t&&(B.dc(0,"div",49),B.dc(1,"h4"),B.dc(2,"strong"),B.cd(3),B.cc(),B.cc(),B.dc(4,"h5"),B.dc(5,"strong"),B.cd(6),B.cc(),B.cc(),B.dc(7,"h5"),B.dc(8,"strong"),B.cd(9),B.cc(),B.cc(),B.dc(10,"h5"),B.cd(11," EmpId : "),B.dc(12,"strong"),B.cd(13),B.cc(),B.cc(),B.dc(14,"h5",50),B.cd(15," Gender : "),B.dc(16,"strong"),B.cd(17),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc().$implicit;B.Gb(3),B.dd(null==t?null:t.employeeName),B.Gb(3),B.dd(null==t?null:t.departmentName),B.Gb(3),B.dd(null==t?null:t.positionName),B.Gb(4),B.dd(null==t?null:t.employeeCode),B.Gb(4),B.ed(" ",null==t?null:t.gender,"")}}function ut(t,e){if(1&t&&(B.dc(0,"div",51),B.dc(1,"h4"),B.dc(2,"strong"),B.cd(3),B.cc(),B.cc(),B.dc(4,"h5"),B.dc(5,"strong"),B.cd(6),B.cc(),B.cc(),B.dc(7,"h5",50),B.cd(8," Gender : "),B.dc(9,"strong"),B.cd(10),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc().$implicit;B.Gb(3),B.ed("",null==t?null:t.visitorId," "),B.Gb(3),B.dd(null==t?null:t.visitorName),B.Gb(4),B.ed(" ",null==t?null:t.gender,"")}}function mt(t,e){if(1&t&&(B.dc(0,"div"),B.dc(1,"mat-card",42),B.dc(2,"div",31),B.ad(3,lt,16,5,"div",43),B.ad(4,rt,18,5,"div",43),B.ad(5,ut,11,3,"div",44),B.dc(6,"div",45),B.dc(7,"h5",3),B.cd(8,"Mac"),B.cc(),B.dc(9,"h4"),B.dc(10,"strong"),B.cd(11),B.cc(),B.cc(),B.cc(),B.dc(12,"div",46),B.dc(13,"h5",3),B.cd(14),B.cc(),B.dc(15,"h5",3),B.cd(16),B.cc(),B.dc(17,"h4"),B.dc(18,"strong"),B.cd(19),B.cc(),B.cc(),B.cc(),B.dc(20,"div",47),B.dc(21,"h5",3),B.cd(22,"Visited Date"),B.cc(),B.dc(23,"h4"),B.dc(24,"strong"),B.cd(25),B.qc(26,"displayDate"),B.cc(),B.cc(),B.cc(),B.dc(27,"div",48),B.dc(28,"h5",3),B.cd(29,"Visited Time"),B.cc(),B.dc(30,"h4"),B.dc(31,"strong"),B.cd(32),B.qc(33,"displayTime"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()),2&t){const t=e.$implicit;B.Gb(1),B.Nb("student","Student"==(null==t?null:t.personType))("employee","Employee"==(null==t?null:t.personType))("visitor","Visitor"==(null==t?null:t.personType)),B.Gb(2),B.yc("ngIf","Student"==(null==t?null:t.personType)),B.Gb(1),B.yc("ngIf","Employee"==(null==t?null:t.personType)),B.Gb(1),B.yc("ngIf","Visitor"==(null==t?null:t.personType)),B.Gb(6),B.dd(null==t?null:t.mac),B.Gb(3),B.dd(null==t?null:t.layoutType),B.Gb(2),B.dd(null==t?null:t.categoryName),B.Gb(3),B.dd(null==t?null:t.layoutPositionName),B.Gb(6),B.ed(" ",B.rc(26,15,null==t?null:t.visitedDate)," "),B.Gb(7),B.ed(" ",B.rc(33,17,null==t?null:t.visitedTime)," ")}}function pt(t,e){if(1&t&&(B.dc(0,"div",49),B.dc(1,"h4"),B.dc(2,"strong"),B.cd(3),B.cc(),B.cc(),B.dc(4,"h5"),B.cd(5," Class : "),B.dc(6,"strong"),B.cd(7),B.cc(),B.cc(),B.dc(8,"h5"),B.cd(9," Roll No : "),B.dc(10,"strong"),B.cd(11),B.cc(),B.cc(),B.dc(12,"h5",50),B.cd(13," Gender : "),B.dc(14,"strong"),B.cd(15),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc().$implicit;B.Gb(3),B.dd(null==t?null:t.studentName),B.Gb(4),B.fd(" ",null==t?null:t.className," - ",null==t?null:t.sectionName,""),B.Gb(4),B.ed(" ",null==t?null:t.rollNo,""),B.Gb(4),B.ed(" ",null==t?null:t.gender,"")}}function ht(t,e){if(1&t&&(B.dc(0,"div",49),B.dc(1,"h4"),B.dc(2,"strong"),B.cd(3),B.cc(),B.cc(),B.dc(4,"h5"),B.dc(5,"strong"),B.cd(6),B.cc(),B.cc(),B.dc(7,"h5"),B.dc(8,"strong"),B.cd(9),B.cc(),B.cc(),B.dc(10,"h5"),B.cd(11," EmpId : "),B.dc(12,"strong"),B.cd(13),B.cc(),B.cc(),B.dc(14,"h5",50),B.cd(15," Gender : "),B.dc(16,"strong"),B.cd(17),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc().$implicit;B.Gb(3),B.dd(null==t?null:t.employeeName),B.Gb(3),B.dd(null==t?null:t.departmentName),B.Gb(3),B.dd(null==t?null:t.positionName),B.Gb(4),B.dd(null==t?null:t.employeeCode),B.Gb(4),B.ed(" ",null==t?null:t.gender,"")}}function gt(t,e){if(1&t&&(B.dc(0,"div",51),B.dc(1,"h4"),B.dc(2,"strong"),B.cd(3),B.cc(),B.cc(),B.dc(4,"h5"),B.dc(5,"strong"),B.cd(6),B.cc(),B.cc(),B.dc(7,"h5",50),B.cd(8," Gender : "),B.dc(9,"strong"),B.cd(10),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc().$implicit;B.Gb(3),B.ed("",null==t?null:t.visitorId," "),B.Gb(3),B.dd(null==t?null:t.visitorName),B.Gb(4),B.ed(" ",null==t?null:t.gender,"")}}function bt(t,e){if(1&t&&(B.dc(0,"div"),B.dc(1,"mat-card",42),B.dc(2,"div",31),B.ad(3,pt,16,5,"div",43),B.ad(4,ht,18,5,"div",43),B.ad(5,gt,11,3,"div",44),B.dc(6,"div",45),B.dc(7,"h5",3),B.cd(8,"Mac"),B.cc(),B.dc(9,"h4"),B.dc(10,"strong"),B.cd(11),B.cc(),B.cc(),B.cc(),B.dc(12,"div",46),B.dc(13,"h5",3),B.cd(14),B.cc(),B.dc(15,"h5",3),B.cd(16),B.cc(),B.dc(17,"h4"),B.dc(18,"strong"),B.cd(19),B.cc(),B.cc(),B.cc(),B.dc(20,"div",47),B.dc(21,"h5",3),B.cd(22,"Visited Date"),B.cc(),B.dc(23,"h4"),B.dc(24,"strong"),B.cd(25),B.qc(26,"displayDate"),B.cc(),B.cc(),B.cc(),B.dc(27,"div",48),B.dc(28,"h5",3),B.cd(29,"Visited Time"),B.cc(),B.dc(30,"h4"),B.dc(31,"strong"),B.cd(32),B.qc(33,"displayTime"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()),2&t){const t=e.$implicit;B.Gb(1),B.Nb("student","Student"==(null==t?null:t.personType))("employee","Employee"==(null==t?null:t.personType))("visitor","Visitor"==(null==t?null:t.personType)),B.Gb(2),B.yc("ngIf","Student"==(null==t?null:t.personType)),B.Gb(1),B.yc("ngIf","Employee"==(null==t?null:t.personType)),B.Gb(1),B.yc("ngIf","Visitor"==(null==t?null:t.personType)),B.Gb(6),B.dd(null==t?null:t.mac),B.Gb(3),B.dd(null==t?null:t.layoutType),B.Gb(2),B.dd(null==t?null:t.categoryName),B.Gb(3),B.dd(null==t?null:t.layoutPositionName),B.Gb(6),B.ed(" ",B.rc(26,15,null==t?null:t.dataDate)," "),B.Gb(7),B.ed(" ",B.rc(33,17,null==t?null:t.dataTime)," ")}}function ft(t,e){if(1&t){const t=B.ec();B.dc(0,"button",52),B.lc("click",(function(e){return B.Sc(t),B.pc().getIndividual()})),B.cd(1," Submit "),B.cc()}if(2&t){const t=B.pc();B.yc("disabled",t.isDisabled)}}function yt(t,e){1&t&&(B.dc(0,"mat-card-content"),B.dc(1,"div",53),B.dc(2,"h6"),B.cd(3,"No tracking data found"),B.cc(),B.cc(),B.cc())}function vt(t,e){1&t&&(B.dc(0,"mat-icon",65),B.cd(1,"close"),B.cc())}function St(t,e){1&t&&(B.dc(0,"mat-icon",66),B.cd(1,"check"),B.cc())}function xt(t,e){if(1&t&&(B.dc(0,"mat-card",59),B.dc(1,"div",31),B.dc(2,"div",60),B.dc(3,"a"),B.ad(4,vt,2,0,"mat-icon",61),B.ad(5,St,2,0,"mat-icon",62),B.cc(),B.cc(),B.dc(6,"div",45),B.dc(7,"h5",3),B.cd(8,"Mac "),B.cc(),B.dc(9,"h4"),B.dc(10,"strong"),B.cd(11),B.cc(),B.cc(),B.cc(),B.dc(12,"div",63),B.dc(13,"h5",3),B.cd(14),B.cc(),B.dc(15,"h5",3),B.cd(16),B.cc(),B.dc(17,"h4"),B.dc(18,"strong"),B.cd(19),B.cc(),B.cc(),B.cc(),B.dc(20,"div",45),B.dc(21,"h5",3),B.cd(22,"Visited Date"),B.cc(),B.dc(23,"h4"),B.dc(24,"strong"),B.cd(25),B.qc(26,"displayDate"),B.cc(),B.cc(),B.cc(),B.dc(27,"div",64),B.dc(28,"h5",3),B.cd(29,"Visited Time"),B.cc(),B.dc(30,"h4"),B.dc(31,"strong"),B.cd(32),B.qc(33,"displayTime"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()),2&t){const t=e.$implicit;B.Gb(4),B.yc("ngIf",0==(null==t?null:t.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==t?null:t.isAllowed)),B.Gb(6),B.dd(null==t?null:t.mac),B.Gb(3),B.dd(null==t?null:t.layoutType),B.Gb(2),B.dd(null==t?null:t.categoryName),B.Gb(3),B.dd(null==t?null:t.layoutPositionName),B.Gb(6),B.ed(" ",B.rc(26,8,null==t?null:t.visitedDate)," "),B.Gb(7),B.ed(" ",B.rc(33,10,null==t?null:t.visitedTime)," ")}}function wt(t,e){if(1&t&&(B.dc(0,"mat-card-content",3),B.dc(1,"div",31),B.dc(2,"div",54),B.dc(3,"h4",55),B.dc(4,"strong"),B.cd(5),B.cc(),B.dc(6,"span",56),B.cd(7,"Roll No : "),B.dc(8,"strong"),B.cd(9),B.cc(),B.cc(),B.dc(10,"span",57),B.cd(11," Gender : "),B.dc(12,"strong"),B.cd(13),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.ad(14,xt,34,12,"mat-card",58),B.cc()),2&t){const t=B.pc();B.Gb(5),B.gd("",null==t.payLoad[0]?null:t.payLoad[0].studentName,", ",null==t.payLoad[0]?null:t.payLoad[0].className," - ",null==t.payLoad[0]?null:t.payLoad[0].sectionName,""),B.Gb(4),B.ed(" ",null==t.payLoad[0]?null:t.payLoad[0].rollNo,""),B.Gb(4),B.ed(" ",null==t.payLoad[0]?null:t.payLoad[0].gender,""),B.Gb(1),B.yc("ngForOf",t.payLoad)}}function It(t,e){1&t&&(B.dc(0,"mat-icon",65),B.cd(1,"close"),B.cc())}function kt(t,e){1&t&&(B.dc(0,"mat-icon",66),B.cd(1,"check"),B.cc())}function Ct(t,e){if(1&t&&(B.dc(0,"mat-card",72),B.dc(1,"div",31),B.dc(2,"div",60),B.dc(3,"a"),B.ad(4,It,2,0,"mat-icon",61),B.ad(5,kt,2,0,"mat-icon",62),B.cc(),B.cc(),B.dc(6,"div",45),B.dc(7,"h5",3),B.cd(8,"Mac "),B.cc(),B.dc(9,"h4"),B.dc(10,"strong"),B.cd(11),B.cc(),B.cc(),B.cc(),B.dc(12,"div",63),B.dc(13,"h5",3),B.cd(14),B.cc(),B.dc(15,"h5",3),B.cd(16),B.cc(),B.dc(17,"h4"),B.dc(18,"strong"),B.cd(19),B.cc(),B.cc(),B.cc(),B.dc(20,"div",45),B.dc(21,"h5",3),B.cd(22,"Visited Date"),B.cc(),B.dc(23,"h4"),B.dc(24,"strong"),B.cd(25),B.qc(26,"displayDate"),B.cc(),B.cc(),B.cc(),B.dc(27,"div",64),B.dc(28,"h5",3),B.cd(29,"Visited Time"),B.cc(),B.dc(30,"h4"),B.dc(31,"strong"),B.cd(32),B.qc(33,"displayTime"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()),2&t){const t=e.$implicit;B.Gb(4),B.yc("ngIf",0==(null==t?null:t.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==t?null:t.isAllowed)),B.Gb(6),B.dd(null==t?null:t.mac),B.Gb(3),B.dd(null==t?null:t.layoutType),B.Gb(2),B.dd(null==t?null:t.categoryName),B.Gb(3),B.dd(null==t?null:t.layoutPositionName),B.Gb(6),B.ed(" ",B.rc(26,8,null==t?null:t.visitedDate)," "),B.Gb(7),B.ed(" ",B.rc(33,10,null==t?null:t.visitedTime)," ")}}function Nt(t,e){if(1&t&&(B.dc(0,"mat-card-content"),B.dc(1,"div",31),B.dc(2,"div",67),B.dc(3,"h4"),B.dc(4,"strong"),B.cd(5),B.cc(),B.cc(),B.dc(6,"h5",68),B.cd(7," Gender : "),B.dc(8,"strong"),B.cd(9),B.cc(),B.cc(),B.cc(),B.dc(10,"div",67),B.dc(11,"h5"),B.cd(12,"Department\xa0\xa0"),B.dc(13,"strong"),B.cd(14),B.cc(),B.cc(),B.dc(15,"h5",69),B.cd(16,"Position\xa0\xa0"),B.dc(17,"strong",70),B.cd(18),B.cc(),B.cc(),B.cc(),B.cc(),B.ad(19,Ct,34,12,"mat-card",71),B.cc()),2&t){const t=B.pc();B.Gb(5),B.fd("",null==t.payLoad[0]?null:t.payLoad[0].employeeName," , ",null==t.payLoad[0]?null:t.payLoad[0].employeeCode,""),B.Gb(4),B.ed(" ",null==t.payLoad[0]?null:t.payLoad[0].gender,""),B.Gb(5),B.ed(":\xa0\xa0\xa0",null==t.payLoad[0]?null:t.payLoad[0].departmentName,""),B.Gb(4),B.ed(":\xa0\xa0\xa0",null==t.payLoad[0]?null:t.payLoad[0].positionName,""),B.Gb(1),B.yc("ngForOf",t.payLoad)}}function Gt(t,e){1&t&&(B.dc(0,"mat-icon",65),B.cd(1,"close"),B.cc())}function Ot(t,e){1&t&&(B.dc(0,"mat-icon",66),B.cd(1,"check"),B.cc())}function Dt(t,e){if(1&t&&(B.dc(0,"mat-card",74),B.dc(1,"div",31),B.dc(2,"div",60),B.dc(3,"a"),B.ad(4,Gt,2,0,"mat-icon",61),B.ad(5,Ot,2,0,"mat-icon",62),B.cc(),B.cc(),B.dc(6,"div",75),B.dc(7,"h4"),B.dc(8,"strong"),B.cd(9),B.cc(),B.cc(),B.dc(10,"h5"),B.dc(11,"strong"),B.cd(12),B.cc(),B.cc(),B.dc(13,"h5",76),B.cd(14," Gender : "),B.dc(15,"strong"),B.cd(16),B.cc(),B.cc(),B.cc(),B.dc(17,"div",45),B.dc(18,"h5",3),B.cd(19,"Mac "),B.cc(),B.dc(20,"h4"),B.dc(21,"strong"),B.cd(22),B.cc(),B.cc(),B.cc(),B.dc(23,"div",77),B.dc(24,"h5",3),B.cd(25),B.cc(),B.dc(26,"h5",3),B.cd(27),B.cc(),B.dc(28,"h4"),B.dc(29,"strong"),B.cd(30),B.cc(),B.cc(),B.cc(),B.dc(31,"div",47),B.dc(32,"h5",3),B.cd(33,"Visited Date"),B.cc(),B.dc(34,"h4"),B.dc(35,"strong"),B.cd(36),B.qc(37,"displayDate"),B.cc(),B.cc(),B.cc(),B.dc(38,"div",48),B.dc(39,"h5",3),B.cd(40,"Visited Time"),B.cc(),B.dc(41,"h4"),B.dc(42,"strong"),B.cd(43),B.qc(44,"displayTime"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()),2&t){const t=e.$implicit;B.Gb(4),B.yc("ngIf",0==(null==t?null:t.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==t?null:t.isAllowed)),B.Gb(4),B.ed("",null==t?null:t.visitorId," "),B.Gb(3),B.dd(null==t?null:t.visitorName),B.Gb(4),B.ed(" ",null==t?null:t.gender,""),B.Gb(6),B.dd(null==t?null:t.mac),B.Gb(3),B.dd(null==t?null:t.layoutType),B.Gb(2),B.dd(null==t?null:t.categoryName),B.Gb(3),B.dd(null==t?null:t.layoutPositionName),B.Gb(6),B.ed(" ",B.rc(37,11,null==t?null:t.visitedDate)," "),B.Gb(7),B.ed(" ",B.rc(44,13,null==t?null:t.visitedTime)," ")}}function Tt(t,e){if(1&t&&(B.dc(0,"mat-card-content"),B.ad(1,Dt,45,15,"mat-card",73),B.cc()),2&t){const t=B.pc();B.Gb(1),B.yc("ngForOf",t.payLoad)}}let _t=(()=>{class t{constructor(t,e,c,i,n,o,d,a,s,l,r,u,m){this.commonService=t,this.classService=e,this.batchService=c,this.departmentService=i,this.sectionService=n,this.positionService=o,this.studentService=d,this.employeeService=a,this._mqttService=s,this.config=l,this.router=r,this.apiServ=u,this.visiterServ=m,this.topicname="",this.isConnected=!1,this.payLoad=[],this.formData={},this.console=console,this.searchText="",this.searchEmp="",this.StuPagination={filterAcademic:"",filterBatch:"",filterClass:"",filterSection:""},this.empPgination={filterDepartment:"",filterPosition:""},this.studentAllowed=!1,this.studentPayLoad=[],this.employeePayLoad=[{mac:"C991E358F3D1",locationId:"1",locationName:"Near Gate 1",gender:"female",status:"1",batteryLevel:"100",personType:"Employee",isAllowed:!0,employeeId:"1",employeeCode:"EMP021",employeeName:"Nivedha Doss",departmentId:"5",departmentName:"Department of Mathematics",positionId:"6",positionName:"Maths Teacher"},{mac:"C991E358F3D1",locationId:"1",locationName:"Near Gate 1",gender:"female",status:"1",batteryLevel:"100",personType:"Employee",isAllowed:!0,employeeId:"1",employeeCode:"EMP021",employeeName:"Nivedha Doss",departmentId:"5",departmentName:"Department of Mathematics",positionId:"6",positionName:"Maths Teacher"},{mac:"C991E358F3D1",locationId:"1",locationName:"Near Gate 1",gender:"female",status:"1",batteryLevel:"100",personType:"Employee",isAllowed:!0,employeeId:"1",employeeCode:"EMP021",employeeName:"Nivedha Doss",departmentId:"5",departmentName:"Department of Mathematics",positionId:"6",positionName:"Maths Teacher"},{mac:"C991E358F3D1",locationId:"1",locationName:"Near Gate 1",gender:"female",status:"1",batteryLevel:"100",personType:"Employee",isAllowed:!0,employeeId:"1",employeeCode:"EMP021",employeeName:"Nivedha Doss",departmentId:"5",departmentName:"Department of Mathematics",positionId:"6",positionName:"Maths Teacher"},{mac:"C991E358F3D1",locationId:"1",locationName:"Near Gate 1",gender:"female",status:"1",batteryLevel:"100",personType:"Employee",isAllowed:!0,employeeId:"1",employeeCode:"EMP021",employeeName:"Nivedha Doss",departmentId:"5",departmentName:"Department of Mathematics",positionId:"6",positionName:"Maths Teacher"}],this.visitorPayLoad=[{mac:"DBA219C239D0",locationId:"POT1",locationName:"POTN1",gender:"female",status:"1",personType:"Visitor",visitorId:"7867079714"}],this.isDisabled=!1,this.config.init(),this.customerId=this.config.customerId,this.schoolId=this.config.branchId}ngOnInit(){this.form(),this.getCurrentAcademicYear(),this.getDepts(),this.getPositions(),this.getVisiters()}form(){this.basicForm=new o.j({cat:new o.g(""),type:new o.g(""),batch:new o.g(""),class:new o.g(""),section:new o.g(""),studentId:new o.g(""),depart:new o.g(""),position:new o.g(""),employeeId:new o.g(""),mobileNo:new o.g("")})}get control(){return this.basicForm.controls}getCurrentAcademicYear(){this.commonService.getCurrentAcademicYear().subscribe(t=>{var e;"success"==t.keyword&&(this.currentAcademicYearId=null===(e=t.data[0])||void 0===e?void 0:e.academic_year_id,this.batchService.getListByAcademic(this.currentAcademicYearId).subscribe(t=>{"success"==t.keyword&&(this.batches=t.batches,this.getSections(),console.log(this.batches,"batches"))}))})}getClassesByBatch(t){this.clearDeviceData(),this.classService.getClassByBatch(t).subscribe(t=>{"success"==t.keyword&&(this.classes=t.classes,this.getStudents())})}getSections(){this.sectionService.getList({sortByKey:"section_name",sortByType:"ASC"}).subscribe(t=>{"success"==t.keyword&&(this.sections=t.sections.filter(t=>"1"==t.status),this.getStudents())})}getStudents(){var t,e,c,i,n,o;this.clearDeviceData();var d=this.basicForm.value;console.log(this.basicForm.value,"2345678"),""!=(null===(t=d)||void 0===t?void 0:t.batch)&&""!=(null===(e=d)||void 0===e?void 0:e.class)&&""!=(null===(c=d)||void 0===c?void 0:c.section)&&(this.StuPagination.filterAcademic=JSON.stringify([this.currentAcademicYearId]),this.StuPagination.filterBatch=JSON.stringify([null===(i=d)||void 0===i?void 0:i.batch]),this.StuPagination.filterClass=JSON.stringify([null===(n=d)||void 0===n?void 0:n.class]),this.StuPagination.filterSection=JSON.stringify([null===(o=d)||void 0===o?void 0:o.section]),this.studentService.getList(this.StuPagination).subscribe(t=>{"success"==t.keyword&&(this.students=t.studentRegistrations)}))}setStudentId(t){this.clearDeviceData(),this.basicForm.patchValue({studentId:t})}clearStudentId(){this.clearDeviceData(),this.basicForm.patchValue({studentId:""})}getDepts(){this.departmentService.getList(void 0).subscribe(t=>{"success"==t.keyword&&(this.depts=t.departments.filter(t=>"1"==t.status))})}getPositions(){this.positionService.getList(void 0).subscribe(t=>{"success"==t.keyword&&(this.positions=t.positions.filter(t=>"1"==t.status))})}getEmployees(){var t,e,c,i;this.clearDeviceData();var n=this.basicForm.value;""!=(null===(t=n)||void 0===t?void 0:t.depart)&&""!=(null===(e=n)||void 0===e?void 0:e.position)&&(this.empPgination.filterDepartment=JSON.stringify([null===(c=n)||void 0===c?void 0:c.depart]),this.empPgination.filterPosition=JSON.stringify([null===(i=n)||void 0===i?void 0:i.position]),this.employeeService.getList(this.empPgination).subscribe(t=>{"success"==t.keyword&&(this.employees=t.employees,console.log(this.employees,"this.employees"))}))}setEmployeeId(t){this.clearDeviceData(),this.basicForm.patchValue({employeeId:t})}clearEmployeeId(){this.clearDeviceData(),this.basicForm.patchValue({employeeId:""})}getVisiters(){this.visiterServ.getList(void 0).subscribe(t=>{"success"==t.keyword&&(this.visitors=t.visitors.filter(t=>"1"==t.status),console.log(this.visitors,"visiters"))})}catChange(){this.clearDeviceData(),this.basicForm.patchValue({batch:"",class:"",section:"",studentId:"",depart:"",position:"",employeeId:"",mobileNo:""}),this.searchText="",this.searchEmp="",this.employees=[],this.students=[]}typeChange(){this.catChange(),this.basicForm.patchValue({cat:""})}onTabClick(t){this.clearDeviceData(),this.basicForm.reset(),console.log(this.basicForm.value,"345678"),setTimeout(()=>{0==t||(1==t?(this.topicname=`${this.customerId}-${this.schoolId}-restricted`,this.subscribeNewTopic()):2==t&&(this.topicname=`${this.customerId}-${this.schoolId}-nomovement`,this.subscribeForNOmove()))},1e3)}getIndividual(){var t,e,c,i,n,o,d,a;if("2"==this.control.type.value){var s=this.basicForm.value;if("1"==s.cat&&""!=(null===(t=s)||void 0===t?void 0:t.studentId))this.topicname=`${this.customerId}-${this.schoolId}-std-${null===(e=s)||void 0===e?void 0:e.studentId}`,console.log(this.topicname,"students"),this.subscribeNewTopic();else if("2"==s.cat&&""!=(null===(c=s)||void 0===c?void 0:c.employeeId))this.topicname=`${this.customerId}-${this.schoolId}-emp-${null===(i=s)||void 0===i?void 0:i.employeeId}`,console.log(this.topicname,"employee"),this.subscribeNewTopic();else if("3"==s.cat&&""!=(null===(n=s)||void 0===n?void 0:n.mobileNo)){var l=this.visitors.find(t=>{var e,c;return(null===(e=t)||void 0===e?void 0:e.mobileNo)==(null===(c=s)||void 0===c?void 0:c.mobileNo)});console.log(null===(o=l)||void 0===o?void 0:o.mobileNo,"visitors345678"),(null===(d=l)||void 0===d?void 0:d.mobileNo)?(this.topicname=`${this.customerId}-${this.schoolId}-vst-${null===(a=s)||void 0===a?void 0:a.mobileNo}`,console.log(this.topicname,"visitors"),this.subscribeNewTopic()):R.a.fire({title:"Visitor Tracking",text:"Please provide the valid visitor number",icon:"error"})}else R.a.fire({title:"Check Required",text:"Fill Mandatory Fields",icon:"warning"});console.log(s,"form")}else this.router.navigate(["/school/tracking/preview"])}ngOnDestroy(){this.clearDeviceData()}subscribeNewTopic(){this.isDisabled=!0,console.log("inside subscribe new topic"),this.subscription=this._mqttService.observe(this.topicname).subscribe(t=>{this.msg=JSON.parse(t.payload.toString()),this.payLoad.unshift(this.msg)}),console.log("subscribed to topic: "+this.topicname)}subscribeForNOmove(){this.isDisabled=!0,console.log("inside subscribe new topic"),this.subscription=this._mqttService.observe(this.topicname).subscribe(t=>{this.msg=JSON.parse(t.payload.toString()),this.payLoad.unshift(this.msg[0])}),console.log("subscribed to topic: "+this.topicname)}clearDeviceData(){var t,e;this.payLoad=[],0!=(null===(t=this.payLoad)||void 0===t?void 0:t.length)||(this.isDisabled=!1),null===(e=this.subscription)||void 0===e||e.unsubscribe()}deleteDP(){this.apiServ.deleteDP().subscribe(t=>{console.log(t,"12345678976543212345678")})}}return t.\u0275fac=function(e){return new(e||t)(B.Xb(L.a),B.Xb(D.a),B.Xb(T.a),B.Xb(_.a),B.Xb(M.a),B.Xb(P.a),B.Xb(F.a),B.Xb(E.a),B.Xb(A.b),B.Xb(j.a),B.Xb(i.g),B.Xb(V.a),B.Xb(z.a))},t.\u0275cmp=B.Rb({type:t,selectors:[["app-tracking"]],decls:37,vars:9,consts:[[1,"create_btn"],[1,"form_bg"],[1,"p-0"],[1,""],[1,"card-title-text"],[3,"selectedTabChange"],["label","Common"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-24"],["fxFlex","100","fxFlex.gt-xs","10",1,""],[1,"red_color"],["fxFlex","100","fxFlex.gt-xs","40",1,"mt-0","mb-8"],["aria-label","Select an option","formControlName","type","name","type",1,"ml-15",3,"change"],["name","language","value","1",1,"mr-40"],["name","language","value","2",1,"mr-40"],[4,"ngIf"],["label","Not Allowed Area"],[4,"ngFor","ngForOf"],["label","No Movement"],["fxFlex","100","fxFlex.gt-xs","40",1,""],["mat-raised-button","","color","primary","class","btn-primary-bg ml-0",3,"disabled","click",4,"ngIf"],[1,"p-0","main-card"],["class","",4,"ngIf"],["aria-label","Select an option","formControlName","cat","name","category",1,"ml-15"],["name","language","value","1",1,"mr-40",3,"click"],["name","language","value","2",1,"mr-40",3,"click"],["name","language","value","3",1,"mr-40",3,"click"],[1,"pb-1"],["appearance","fill"],["formControlName","batch"],[3,"value","click",4,"ngFor","ngForOf"],["fxLayout","row wrap",1,""],["formControlName","class"],["formControlName","section"],[1,"example-full-width"],["type","text","aria-label","Number","matInput","",3,"ngModel","ngModelOptions","matAutocomplete","ngModelChange","keyup"],["auto","matAutocomplete"],[3,"value","click"],["formControlName","depart"],["formControlName","position"],["appearance","fill",1,"full-width"],["matInput","","formControlName","mobileNo","name","mobileno","placeholder","","value","",3,"keyup"],[1,"text-center","w65"],["fxFlex","100","fxFlex.gt-xs","30","class","border-right-white",4,"ngIf"],["fxFlex","100","fxFlex.gt-xs","30","class","border-right-white pt-24",4,"ngIf"],["fxFlex","100","fxFlex.gt-xs","20",1,"border-right-white","pt-24"],["fxFlex","100","fxFlex.gt-xs","20",1,"border-right-white","pt-16"],["fxFlex","100","fxFlex.gt-xs","15",1,"border-right-white","pt-24"],["fxFlex","100","fxFlex.gt-xs","15",1,"pt-24"],["fxFlex","100","fxFlex.gt-xs","30",1,"border-right-white"],[1,"mb-0","capitalize"],["fxFlex","100","fxFlex.gt-xs","30",1,"border-right-white","pt-24"],["mat-raised-button","","color","primary",1,"btn-primary-bg","ml-0",3,"disabled","click"],[1,"text-center"],["fxFlex","100","fxFlex.gt-xs","60",1,"border-right-white","pt-28"],[1,"ml-8"],[1,"ml-36"],[1,"ml-36","capitalize"],["class","text-center w65 student",4,"ngFor","ngForOf"],[1,"text-center","w65","student"],["fxFlex","100","fxFlex.gt-xs","10",1,"border-right-white","pt-28"],["class","close-icon",4,"ngIf"],["class","check-icon",4,"ngIf"],["fxFlex","100","fxFlex.gt-xs","30",1,"border-right-white","pt-16"],["fxFlex","100","fxFlex.gt-xs","20",1,"pt-24"],[1,"close-icon"],[1,"check-icon"],["fxFlex","100","fxFlex.gt-xs","30"],[1,"mb-0","mt-8","capitalize"],[1,"mt-8"],[2,"margin-left","20px"],["class","text-center w65 mt-16 employee",4,"ngFor","ngForOf"],[1,"text-center","w65","mt-16","employee"],["class","text-center w65 mt-16 visitor",4,"ngFor","ngForOf"],[1,"text-center","w65","mt-16","visitor"],["fxFlex","100","fxFlex.gt-xs","18",1,"border-right-white","pt-24"],[1,"mb-0"],["fxFlex","100","fxFlex.gt-xs","22",1,"border-right-white","pt-16"]],template:function(t,e){1&t&&(B.Yb(0,"div",0),B.dc(1,"div",1),B.dc(2,"mat-card",2),B.dc(3,"mat-card-title",3),B.dc(4,"div",4),B.cd(5,"Tracking"),B.cc(),B.Yb(6,"mat-divider"),B.cc(),B.dc(7,"mat-card-content",3),B.dc(8,"mat-tab-group",5),B.lc("selectedTabChange",(function(t){return e.onTabClick(t.index)})),B.dc(9,"mat-tab",6),B.dc(10,"form",7),B.dc(11,"div",8),B.dc(12,"div",9),B.dc(13,"label"),B.dc(14,"strong"),B.cd(15,"Type"),B.cc(),B.dc(16,"span",10),B.cd(17,"*"),B.cc(),B.cc(),B.cc(),B.dc(18,"div",11),B.dc(19,"mat-radio-group",12),B.lc("change",(function(t){return e.typeChange()})),B.dc(20,"mat-radio-button",13),B.cd(21,"General"),B.cc(),B.dc(22,"mat-radio-button",14),B.cd(23,"Individual"),B.cc(),B.cc(),B.cc(),B.cc(),B.ad(24,st,19,3,"div",15),B.cc(),B.cc(),B.dc(25,"mat-tab",16),B.ad(26,mt,34,19,"div",17),B.cc(),B.dc(27,"mat-tab",18),B.ad(28,bt,34,19,"div",17),B.cc(),B.cc(),B.dc(29,"div",8),B.dc(30,"div",19),B.ad(31,ft,2,1,"button",20),B.cc(),B.cc(),B.cc(),B.ad(32,yt,4,0,"mat-card-content",15),B.cc(),B.cc(),B.dc(33,"mat-card",21),B.ad(34,wt,15,6,"mat-card-content",22),B.ad(35,Nt,20,6,"mat-card-content",15),B.ad(36,Tt,2,1,"mat-card-content",15),B.cc()),2&t&&(B.Gb(10),B.yc("formGroup",e.basicForm),B.Gb(14),B.yc("ngIf","2"==e.control.type.value),B.Gb(2),B.yc("ngForOf",e.payLoad),B.Gb(2),B.yc("ngForOf",e.payLoad),B.Gb(3),B.yc("ngIf",1==e.control.type.value||2==e.control.type.value),B.Gb(1),B.yc("ngIf",0==(null==e.payLoad?null:e.payLoad.length)),B.Gb(2),B.yc("ngIf",1==e.control.cat.value&&0!=(null==e.payLoad?null:e.payLoad.length)),B.Gb(1),B.yc("ngIf",2==e.control.cat.value&&0!=(null==e.payLoad?null:e.payLoad.length)),B.Gb(1),B.yc("ngIf",3==e.control.cat.value&&0!=(null==e.payLoad?null:e.payLoad.length)))},directives:[a.a,a.f,Y.a,a.c,C.b,C.a,o.D,o.u,o.k,q.c,q.a,g.b,o.t,o.i,g.a,n.o,n.n,J.b,J.e,I.a,m.b,o.c,H.c,o.w,H.a,l.p,d.a,u.a],pipes:[U.a,W.a,W.c],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.f24[_ngcontent-%COMP%]{font-size:24px}.disabled-pointer[_ngcontent-%COMP%]{pointer-events:none}.student[_ngcontent-%COMP%]{background:#077b8a}.employee[_ngcontent-%COMP%], .student[_ngcontent-%COMP%]{padding:7px;color:#fff}.employee[_ngcontent-%COMP%]{background:#5c3c92}.visitor[_ngcontent-%COMP%]{background:#d72631}.no-movement[_ngcontent-%COMP%], .visitor[_ngcontent-%COMP%]{padding:7px;color:#fff}.no-movement[_ngcontent-%COMP%]{background:#6b7b8c}.border-right[_ngcontent-%COMP%]{border-right:1px solid grey}.border-right-white[_ngcontent-%COMP%]{border-right:1px solid hsla(0,0%,100%,.38)!important}.w65[_ngcontent-%COMP%]{width:60%}.text-muted[_ngcontent-%COMP%]{color:grey!important}.close-icon[_ngcontent-%COMP%]{color:#d32f3e}.check-icon[_ngcontent-%COMP%], .close-icon[_ngcontent-%COMP%]{background:#fff;border-radius:50%;padding:2px;font-size:17px;line-height:24px}.check-icon[_ngcontent-%COMP%]{color:#1c9c05}.capitalize[_ngcontent-%COMP%]{text-transform:capitalize}.ml-0[_ngcontent-%COMP%]{margin-left:0!important}"],data:{animation:[Object(O.o)("detailExpand",[Object(O.l)("collapsed",Object(O.m)({height:"0px",minHeight:"0",visibility:"hidden"})),Object(O.l)("expanded",Object(O.m)({height:"*",visibility:"visible"})),Object(O.n)("expanded <=> collapsed",Object(O.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t})();var Pt=c("0IaG");let Mt=(()=>{class t{constructor(t){this.dialog=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(B.Xb(Pt.b))},t.\u0275cmp=B.Rb({type:t,selectors:[["app-general"]],decls:1,vars:0,consts:[[1,"create_btn"]],template:function(t,e){1&t&&B.Yb(0,"div",0)},styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.f24[_ngcontent-%COMP%]{font-size:24px;margin-left:-10px}.disabled-pointer[_ngcontent-%COMP%]{pointer-events:none}"]}),t})();var Lt=c("Gg3P"),Ft=c("Olgc"),Et=c("VxG0"),At=c("sqj7");function jt(t,e){1&t&&(B.dc(0,"mat-icon",15),B.cd(1,"close"),B.cc())}function Vt(t,e){1&t&&(B.dc(0,"mat-icon",16),B.cd(1,"check"),B.cc())}function $t(t,e){if(1&t&&(B.dc(0,"div",17),B.dc(1,"h4"),B.dc(2,"strong"),B.cd(3),B.cc(),B.cc(),B.dc(4,"h5"),B.cd(5," Class : "),B.dc(6,"strong"),B.cd(7),B.cc(),B.cc(),B.dc(8,"h5"),B.cd(9," Roll No : "),B.dc(10,"strong"),B.cd(11),B.cc(),B.cc(),B.dc(12,"h5",18),B.cd(13," Gender : "),B.dc(14,"strong"),B.cd(15),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc().$implicit;B.Gb(3),B.dd(null==t?null:t.studentName),B.Gb(4),B.fd(" ",null==t?null:t.className," - ",null==t?null:t.sectionName,""),B.Gb(4),B.ed(" ",null==t?null:t.rollNo,""),B.Gb(4),B.ed(" ",null==t?null:t.gender,"")}}function Xt(t,e){if(1&t&&(B.dc(0,"div",17),B.dc(1,"h4"),B.dc(2,"strong"),B.cd(3),B.cc(),B.cc(),B.dc(4,"h5"),B.dc(5,"strong"),B.cd(6),B.cc(),B.cc(),B.dc(7,"h5"),B.dc(8,"strong"),B.cd(9),B.cc(),B.cc(),B.dc(10,"h5"),B.cd(11," EmpId : "),B.dc(12,"strong"),B.cd(13),B.cc(),B.cc(),B.dc(14,"h5",18),B.cd(15," Gender : "),B.dc(16,"strong"),B.cd(17),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc().$implicit;B.Gb(3),B.dd(null==t?null:t.employeeName),B.Gb(3),B.dd(null==t?null:t.departmentName),B.Gb(3),B.dd(null==t?null:t.positionName),B.Gb(4),B.dd(null==t?null:t.employeeCode),B.Gb(4),B.ed(" ",null==t?null:t.gender,"")}}function Rt(t,e){if(1&t&&(B.dc(0,"div",19),B.dc(1,"h4"),B.dc(2,"strong"),B.cd(3),B.cc(),B.cc(),B.dc(4,"h5"),B.dc(5,"strong"),B.cd(6),B.cc(),B.cc(),B.dc(7,"h5",18),B.cd(8," Gender : "),B.dc(9,"strong"),B.cd(10),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc().$implicit;B.Gb(3),B.ed("",null==t?null:t.visitorId," "),B.Gb(3),B.dd(null==t?null:t.visitorName),B.Gb(4),B.ed(" ",null==t?null:t.gender,"")}}function zt(t,e){if(1&t&&(B.dc(0,"mat-card",5),B.dc(1,"div",6),B.dc(2,"div",7),B.dc(3,"a"),B.ad(4,jt,2,0,"mat-icon",8),B.ad(5,Vt,2,0,"mat-icon",9),B.cc(),B.cc(),B.ad(6,$t,16,5,"div",10),B.ad(7,Xt,18,5,"div",10),B.ad(8,Rt,11,3,"div",11),B.dc(9,"div",12),B.dc(10,"h5",1),B.cd(11,"Mac"),B.cc(),B.dc(12,"h4"),B.dc(13,"strong"),B.cd(14),B.cc(),B.cc(),B.cc(),B.dc(15,"div",13),B.dc(16,"h5",1),B.cd(17),B.cc(),B.dc(18,"h5",1),B.cd(19),B.cc(),B.dc(20,"h4"),B.dc(21,"strong"),B.cd(22),B.cc(),B.cc(),B.cc(),B.dc(23,"div",12),B.dc(24,"h5",1),B.cd(25,"Visited Date"),B.cc(),B.dc(26,"h4"),B.dc(27,"strong"),B.cd(28),B.cc(),B.cc(),B.cc(),B.dc(29,"div",14),B.dc(30,"h5",1),B.cd(31,"Visited Time"),B.cc(),B.dc(32,"h4"),B.dc(33,"strong"),B.cd(34),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()),2&t){const t=e.$implicit;B.Nb("student","Student"==(null==t?null:t.personType))("employee","Employee"==(null==t?null:t.personType))("visitor","Visitor"==(null==t?null:t.personType)),B.Gb(2),B.Nb("pt-36","Employee"==(null==t?null:t.personType))("pt-28","Student"==(null==t?null:t.personType)||"Visitor"==(null==t?null:t.personType)),B.Gb(2),B.yc("ngIf",0==(null==t?null:t.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==t?null:t.isAllowed)),B.Gb(1),B.yc("ngIf","Student"==(null==t?null:t.personType)),B.Gb(1),B.yc("ngIf","Employee"==(null==t?null:t.personType)),B.Gb(1),B.yc("ngIf","Visitor"==(null==t?null:t.personType)),B.Gb(6),B.dd(null==t?null:t.mac),B.Gb(3),B.dd(null==t?null:t.layoutType),B.Gb(2),B.dd(null==t?null:t.categoryName),B.Gb(3),B.dd(null==t?null:t.layoutPositionName),B.Gb(6),B.ed(" ",null==t?null:t.visitedDate," "),B.Gb(6),B.ed(" ",null==t?null:t.visitedTime," ")}}function Bt(t,e){1&t&&(B.dc(0,"mat-card-content"),B.dc(1,"div",20),B.dc(2,"h6"),B.cd(3,"No tracking data found"),B.cc(),B.cc(),B.cc())}let Yt=(()=>{class t{constructor(t,e,c,i,n){this.data=t,this.dialogRef=e,this.dialog=c,this._mqttService=i,this.config=n,this.isConnected=!1,this.payLoad=[],this.config.init(),this.customerId=this.config.customerId,this.schoolId=this.config.branchId}ngOnInit(){this.subscribeNewTopic()}ngOnDestroy(){var t;this.payLoad=[],null===(t=this.subscription)||void 0===t||t.unsubscribe()}subscribeNewTopic(){console.log("inside subscribe new topic"),this.subscription=this._mqttService.observe(this.data.topic_name).subscribe(t=>{this.msg=JSON.parse(t.payload.toString()),this.payLoad.unshift(this.msg)}),console.log("subscribed to topic: "+this.data.topic_name)}}return t.\u0275fac=function(e){return new(e||t)(B.Xb(Pt.a),B.Xb(Pt.f),B.Xb(Pt.b),B.Xb(A.b),B.Xb(j.a))},t.\u0275cmp=B.Rb({type:t,selectors:[["app-modal"]],decls:8,vars:4,consts:[[1,"p-0","main-card"],[1,""],[1,"card-title-text"],["class","text-center w65 mt-16",3,"student","employee","visitor",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"text-center","w65","mt-16"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","10",1,"border-right-white"],["class","close-icon",4,"ngIf"],["class","check-icon",4,"ngIf"],["fxFlex","100","fxFlex.gt-xs","25","class","border-right-white",4,"ngIf"],["fxFlex","100","fxFlex.gt-xs","25","class","border-right-white pt-24",4,"ngIf"],["fxFlex","100","fxFlex.gt-xs","15",1,"border-right-white","pt-24"],["fxFlex","100","fxFlex.gt-xs","20",1,"border-right-white","pt-16"],["fxFlex","100","fxFlex.gt-xs","15",1,"pt-24"],[1,"close-icon"],[1,"check-icon"],["fxFlex","100","fxFlex.gt-xs","25",1,"border-right-white"],[1,"mb-0","capitalize"],["fxFlex","100","fxFlex.gt-xs","25",1,"border-right-white","pt-24"],[1,"text-center"]],template:function(t,e){1&t&&(B.dc(0,"mat-card",0),B.dc(1,"mat-card-title",1),B.dc(2,"div",2),B.cd(3),B.cc(),B.Yb(4,"mat-divider"),B.cc(),B.dc(5,"mat-card-content",1),B.ad(6,zt,35,21,"mat-card",3),B.cc(),B.ad(7,Bt,4,0,"mat-card-content",4),B.cc()),2&t&&(B.Gb(3),B.fd("",e.data.layout_category_name," - ",e.data.position_name,""),B.Gb(3),B.yc("ngForOf",e.payLoad),B.Gb(1),B.yc("ngIf",0==(null==e.payLoad?null:e.payLoad.length)))},directives:[a.a,a.f,Y.a,a.c,n.n,n.o,q.c,q.a,u.a],styles:[".border[_ngcontent-%COMP%]{border-right:1px solid grey}.text-muted[_ngcontent-%COMP%]{color:grey!important}.close-icon[_ngcontent-%COMP%]{color:#d32f3e}.check-icon[_ngcontent-%COMP%], .close-icon[_ngcontent-%COMP%]{background:#fff;border-radius:50%;padding:2px;font-size:17px;line-height:24px}.check-icon[_ngcontent-%COMP%]{color:#1c9c05}.student[_ngcontent-%COMP%]{background:#077b8a}.employee[_ngcontent-%COMP%], .student[_ngcontent-%COMP%]{padding:7px;color:#fff}.employee[_ngcontent-%COMP%]{background:#5c3c92}.visitor[_ngcontent-%COMP%]{background:#d72631}.no-movement[_ngcontent-%COMP%], .visitor[_ngcontent-%COMP%]{padding:7px;color:#fff}.no-movement[_ngcontent-%COMP%]{background:#6b7b8c}.border-right-white[_ngcontent-%COMP%]{border-right:1px solid hsla(0,0%,100%,.38)!important}.main-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{height:500px;overflow-y:scroll}.capitalize[_ngcontent-%COMP%]{text-transform:capitalize}"]}),t})(),qt=(()=>{class t{constructor(t,e,c,i,n,o,d){this.dialog=t,this.layoutEditorServ=e,this.loader=c,this.toaster=i,this.router=n,this.permission=o,this.ngZone=d,this.topicName=""}ngOnInit(){this.getLayoutDevice(),this.startPreview();var t=this;setTimeout((function(){t.lazyLoadAssignedSpotMark()}),3e3),this.clickSpot()}ngAfterViewInit(){}goTo(){this.router.navigate(["school/tracking"])}startPreview(){var t=void 0;this.layoutEditorServ.getLayoutContent().subscribe(e=>{e.data.layout_content&&(t=JSON.parse(e.data.layout_content)),$("#tgss-layout").imageMapPro(t)})}getLayoutDevice(){window.localStorage.setItem("lytdv",JSON.stringify([])),this.layoutEditorServ.getLayoutDeviceList().subscribe(t=>{0!=t.data.length&&(window.localStorage.setItem("lytdv",JSON.stringify(t.data)),this.lazyLoadAssignedSpotMark())})}lazyLoadAssignedSpotMark(){var t=window.localStorage.getItem("lytdv");(t=t?JSON.parse(t):[]).forEach(t=>{var e=`[id="${t.spot_id}"]`,c=$(document).find(`${e}`);c&&c.addClass("assignedSpot");var i=$(document).find(`${e} .imp-spot-fontawesome-icon`);i&&i.addClass("greenMark")})}loadLayoutDevice(t,e){this.loader.open(),this.layoutEditorServ.getLayoutDevice(t).subscribe(t=>{"success"==t.keyword?t.data.topic_name&&(this.loader.close(),console.log(t.data,"2345678"),this.dialog.open(Yt,{width:"75%",panelClass:"select-section",data:t.data}).afterClosed().subscribe(t=>{console.log(`Dialog result: ${t}`)})):(this.toaster.present("No topic found."),this.loader.close())})}isDoubleClicked(t){return!!t.data("isclicked")||(t.data("isclicked",!0),setTimeout((function(){t.removeData("isclicked")}),1e3),!1)}clickSpot(){var t=this;$(document).on("click",".assignedSpot",(function(e){if(!t.isDoubleClicked($(this))){console.log("CLICKED");var c=$(this).attr("id"),i=$(this).attr("data-shape-title");c&&t.ngZone.run(()=>{t.loadLayoutDevice(c,i)})}}))}}return t.\u0275fac=function(e){return new(e||t)(B.Xb(Pt.b),B.Xb(At.a),B.Xb(Lt.a),B.Xb(Ft.a),B.Xb(i.g),B.Xb(Et.a),B.Xb(B.A))},t.\u0275cmp=B.Rb({type:t,selectors:[["track-layout-editor"]],decls:6,vars:0,consts:[["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","50",1,"pr-1"],[1,"example-button-row","mt-10"],["mat-flat-button","",1,"btn-primary-bg",3,"click"],["id","tgss-layout"]],template:function(t,e){1&t&&(B.dc(0,"div",0),B.dc(1,"div",1),B.dc(2,"div",2),B.dc(3,"button",3),B.lc("click",(function(t){return e.goTo()})),B.cd(4,"Back"),B.cc(),B.cc(),B.cc(),B.cc(),B.Yb(5,"div",4))},styles:[".error-text[_ngcontent-%COMP%]{margin-top:2px;font-size:12px;color:#f44336}#wcp-editor[_ngcontent-%COMP%]{height:600px}.example-button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.mat-dialog-container[_ngcontent-%COMP%]{will-change:transform,opacity}"]}),t})();var Jt=c("live");function Ht(t,e){1&t&&(B.dc(0,"mat-icon",18),B.cd(1,"close"),B.cc())}function Ut(t,e){1&t&&(B.dc(0,"mat-icon",19),B.cd(1,"check"),B.cc())}function Wt(t,e){if(1&t&&(B.dc(0,"tr",13),B.dc(1,"td",14),B.cd(2),B.cc(),B.dc(3,"td",15),B.cd(4),B.cc(),B.dc(5,"td",15),B.cd(6),B.cc(),B.dc(7,"td",14),B.cd(8),B.cc(),B.dc(9,"td",14),B.cd(10),B.cc(),B.dc(11,"td",14),B.cd(12),B.cc(),B.dc(13,"td",14),B.cd(14),B.qc(15,"displayTime"),B.cc(),B.dc(16,"td",15),B.dc(17,"a"),B.ad(18,Ht,2,0,"mat-icon",16),B.ad(19,Ut,2,0,"mat-icon",17),B.cc(),B.cc(),B.cc()),2&t){const t=e.$implicit;B.Gb(2),B.dd(null==t?null:t.studentName),B.Gb(2),B.dd(null==t?null:t.className),B.Gb(2),B.dd(null==t?null:t.sectionName),B.Gb(2),B.dd(null==t?null:t.rollNo),B.Gb(2),B.dd(null==t?null:t.gender),B.Gb(2),B.dd(null==t?null:t.mac),B.Gb(2),B.dd(B.rc(15,9,null==t?null:t.visitedTime)),B.Gb(4),B.yc("ngIf",0==(null==t?null:t.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==t?null:t.isAllowed))}}function Zt(t,e){1&t&&(B.dc(0,"div",20),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function Kt(t,e){1&t&&(B.dc(0,"mat-icon",18),B.cd(1,"close"),B.cc())}function Qt(t,e){1&t&&(B.dc(0,"mat-icon",19),B.cd(1,"check"),B.cc())}function te(t,e){if(1&t&&(B.dc(0,"tr",13),B.dc(1,"td",14),B.cd(2),B.cc(),B.dc(3,"td",14),B.cd(4),B.cc(),B.dc(5,"td",14),B.cd(6),B.cc(),B.dc(7,"td",14),B.cd(8),B.cc(),B.dc(9,"td",14),B.cd(10),B.cc(),B.dc(11,"td",14),B.cd(12),B.cc(),B.dc(13,"td",14),B.cd(14),B.qc(15,"displayTime"),B.cc(),B.dc(16,"td",15),B.dc(17,"a"),B.ad(18,Kt,2,0,"mat-icon",16),B.ad(19,Qt,2,0,"mat-icon",17),B.cc(),B.cc(),B.cc()),2&t){const t=e.$implicit;B.Gb(2),B.dd(null==t?null:t.employeeName),B.Gb(2),B.dd(null==t?null:t.departmentName),B.Gb(2),B.dd(null==t?null:t.positionName),B.Gb(2),B.dd(null==t?null:t.employeeCode),B.Gb(2),B.dd(null==t?null:t.gender),B.Gb(2),B.dd(null==t?null:t.mac),B.Gb(2),B.dd(B.rc(15,9,null==t?null:t.visitedTime)),B.Gb(4),B.yc("ngIf",0==(null==t?null:t.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==t?null:t.isAllowed))}}function ee(t,e){1&t&&(B.dc(0,"div",20),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function ce(t,e){1&t&&(B.dc(0,"mat-icon",18),B.cd(1,"close"),B.cc())}function ie(t,e){1&t&&(B.dc(0,"mat-icon",19),B.cd(1,"check"),B.cc())}function ne(t,e){if(1&t&&(B.dc(0,"tr",13),B.dc(1,"td",14),B.cd(2),B.cc(),B.dc(3,"td",14),B.cd(4),B.cc(),B.dc(5,"td",14),B.cd(6),B.cc(),B.dc(7,"td",14),B.cd(8),B.qc(9,"displayTime"),B.cc(),B.dc(10,"td",15),B.dc(11,"a"),B.ad(12,ce,2,0,"mat-icon",16),B.ad(13,ie,2,0,"mat-icon",17),B.cc(),B.cc(),B.cc()),2&t){const t=e.$implicit;B.Gb(2),B.dd(null==t?null:t.visitorId),B.Gb(2),B.dd(null==t?null:t.gender),B.Gb(2),B.dd(null==t?null:t.mac),B.Gb(2),B.dd(B.rc(9,6,null==t?null:t.visitedTime)),B.Gb(4),B.yc("ngIf",0==(null==t?null:t.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==t?null:t.isAllowed))}}function oe(t,e){1&t&&(B.dc(0,"div",20),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function de(t,e){if(1&t&&(B.dc(0,"mat-card-content",1),B.dc(1,"mat-tab-group"),B.dc(2,"mat-tab",6),B.dc(3,"table",7),B.dc(4,"thead"),B.dc(5,"tr",8),B.dc(6,"th",9),B.cd(7,"Name"),B.cc(),B.dc(8,"th",10),B.cd(9,"Class"),B.cc(),B.dc(10,"th",10),B.cd(11,"Section"),B.cc(),B.dc(12,"th",9),B.cd(13,"Roll No"),B.cc(),B.dc(14,"th",9),B.cd(15,"Gender"),B.cc(),B.dc(16,"th",9),B.cd(17,"Mac"),B.cc(),B.dc(18,"th",9),B.cd(19,"Visited Time"),B.cc(),B.dc(20,"th",10),B.cd(21,"Access Permission"),B.cc(),B.cc(),B.cc(),B.dc(22,"tbody"),B.ad(23,Wt,20,11,"tr",11),B.cc(),B.cc(),B.ad(24,Zt,3,0,"div",12),B.cc(),B.dc(25,"mat-tab",6),B.dc(26,"table",7),B.dc(27,"thead"),B.dc(28,"tr",8),B.dc(29,"th",9),B.cd(30,"Name"),B.cc(),B.dc(31,"th",9),B.cd(32,"Department"),B.cc(),B.dc(33,"th",9),B.cd(34,"Position"),B.cc(),B.dc(35,"th",9),B.cd(36,"EMP Id"),B.cc(),B.dc(37,"th",9),B.cd(38,"Gender"),B.cc(),B.dc(39,"th",9),B.cd(40,"Mac"),B.cc(),B.dc(41,"th",9),B.cd(42,"Visited Time"),B.cc(),B.dc(43,"th",10),B.cd(44,"Access Permission"),B.cc(),B.cc(),B.cc(),B.dc(45,"tbody"),B.ad(46,te,20,11,"tr",11),B.cc(),B.cc(),B.ad(47,ee,3,0,"div",12),B.cc(),B.dc(48,"mat-tab",6),B.dc(49,"table",7),B.dc(50,"thead"),B.dc(51,"tr",8),B.dc(52,"th",9),B.cd(53,"Mobile No"),B.cc(),B.dc(54,"th",9),B.cd(55,"Gender"),B.cc(),B.dc(56,"th",9),B.cd(57,"Mac"),B.cc(),B.dc(58,"th",9),B.cd(59,"Visited Time"),B.cc(),B.dc(60,"th",10),B.cd(61,"Access Permission"),B.cc(),B.cc(),B.cc(),B.dc(62,"tbody"),B.ad(63,ne,14,8,"tr",11),B.cc(),B.cc(),B.ad(64,oe,3,0,"div",12),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc();B.Gb(2),B.Ac("label","Students (",null==t.filterStudent?null:t.filterStudent.length,")"),B.Gb(21),B.yc("ngForOf",t.filterStudent),B.Gb(1),B.yc("ngIf",0==(null==t.filterStudent?null:t.filterStudent.length)),B.Gb(1),B.Ac("label","Employees (",null==t.filterEmployee?null:t.filterEmployee.length,")"),B.Gb(21),B.yc("ngForOf",t.filterEmployee),B.Gb(1),B.yc("ngIf",0==(null==t.filterEmployee?null:t.filterEmployee.length)),B.Gb(1),B.Ac("label","Visitors (",null==t.filterVisitor?null:t.filterVisitor.length,")"),B.Gb(15),B.yc("ngForOf",t.filterVisitor),B.Gb(1),B.yc("ngIf",0==(null==t.filterVisitor?null:t.filterVisitor.length))}}function ae(t,e){1&t&&(B.dc(0,"mat-card-content"),B.dc(1,"div",20),B.dc(2,"h6"),B.cd(3,"No tracking data found"),B.cc(),B.cc(),B.cc())}let se=(()=>{class t{constructor(t,e,c,i,n,o){this.data=t,this.dialogRef=e,this.dialog=c,this._mqttService=i,this.config=n,this.severdatePipe=o,this.isConnected=!1,this.payLoad=[],this.empPayload=[],this.stuPayload=[],this.visitPayload=[],this.filterEmployee=[],this.filterStudent=[],this.filterVisitor=[],this.config.init(),this.customerId=this.config.customerId,this.schoolId=this.config.branchId,this.date=new Date}ngOnInit(){this.subscribeNewTopic()}getFormatDate(t){return this.severdatePipe.transform(t)}ngOnDestroy(){var t;this.payLoad=[],this.empPayload=[],this.stuPayload=[],this.visitPayload=[],this.filterEmployee=[],this.filterStudent=[],this.filterVisitor=[],null===(t=this.subscription)||void 0===t||t.unsubscribe()}subscribeNewTopic(){console.log("inside subscribe new topic"),this.subscription=this._mqttService.observe(this.data.topic_name).subscribe(t=>{this.msg=JSON.parse(t.payload.toString()),this.payLoad.unshift(this.msg),this.empPayload=this.payLoad.filter(t=>"Employee"==t.personType),this.stuPayload=this.payLoad.filter(t=>"Student"==t.personType),this.visitPayload=this.payLoad.filter(t=>"Visitor"==t.personType),this.FilterEmployeelist(),this.FilterStudentlist(),this.FilterVisitorlist()}),console.log("subscribed to topic: "+this.data.topic_name)}FilterEmployeelist(){this.filterEmployee=this.empPayload.reduce((function(t,e){return 0==t.filter(t=>t.employeeId===e.employeeId).length&&t.push(e),t}),[])}FilterStudentlist(){this.filterStudent=this.stuPayload.reduce((function(t,e){return 0==t.filter(t=>t.studentId===e.studentId).length&&t.push(e),t}),[])}FilterVisitorlist(){this.filterVisitor=this.visitPayload.reduce((function(t,e){return 0==t.filter(t=>t.visitorId===e.visitorId).length&&t.push(e),t}),[])}}return t.\u0275fac=function(e){return new(e||t)(B.Xb(Pt.a),B.Xb(Pt.f),B.Xb(Pt.b),B.Xb(A.b),B.Xb(j.a),B.Xb(W.d))},t.\u0275cmp=B.Rb({type:t,selectors:[["app-live-tracking"]],features:[B.Fb([{provide:l.c,useClass:Jt.b},{provide:l.f,useValue:Jt.a},W.d])],decls:10,vars:8,consts:[[1,"p-0","main-card"],[1,""],[1,"card-title-text"],[1,"ml-24"],["class","",4,"ngIf"],[4,"ngIf"],[3,"label"],["border","1",1,"mat-table","mt-12"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-header-cell","text-center"],["class","mat-row",4,"ngFor","ngForOf"],["class","text-center",4,"ngIf"],[1,"mat-row"],[1,"mat-cell"],[1,"mat-cell","text-center"],["class","close-icon",4,"ngIf"],["class","check-icon",4,"ngIf"],[1,"close-icon"],[1,"check-icon"],[1,"text-center"]],template:function(t,e){1&t&&(B.dc(0,"mat-card",0),B.dc(1,"mat-card-title",1),B.dc(2,"div",2),B.cd(3),B.dc(4,"span",3),B.cd(5),B.qc(6,"displayDate"),B.cc(),B.cc(),B.Yb(7,"mat-divider"),B.cc(),B.ad(8,de,65,9,"mat-card-content",4),B.ad(9,ae,4,0,"mat-card-content",5),B.cc()),2&t&&(B.Gb(3),B.gd("",e.data.layout_type_name," - ",e.data.layout_category_name," - ",e.data.position_name,""),B.Gb(2),B.ed("Date : ",B.rc(6,6,e.getFormatDate(e.date)),""),B.Gb(3),B.yc("ngIf",0!=(null==e.payLoad?null:e.payLoad.length)),B.Gb(1),B.yc("ngIf",0==(null==e.payLoad?null:e.payLoad.length)))},directives:[a.a,a.f,Y.a,n.o,a.c,C.b,C.a,n.n,u.a],pipes:[W.a,W.c],styles:[".close-icon[_ngcontent-%COMP%]{background:#d94d5a}.check-icon[_ngcontent-%COMP%], .close-icon[_ngcontent-%COMP%]{color:#fff;border-radius:50%;padding:2px;font-size:13px;line-height:16px;height:15px;width:15px;text-align:center}.check-icon[_ngcontent-%COMP%]{background:#1c9c05}table[_ngcontent-%COMP%]{border-collapse:separate;border-color:hsla(0,0%,50.2%,.3803921568627451);border-spacing:0}th[_ngcontent-%COMP%]{background:hsla(0,0%,50.2%,.21176470588235294);color:#fff;font-size:12px!important;padding-top:4px!important}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:2px 10px}td[_ngcontent-%COMP%]{font-size:10px!important}.text-center[_ngcontent-%COMP%]{text-align:center!important}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:17px!important}tr.mat-header-row[_ngcontent-%COMP%]{height:25px!important}"]}),t})();function le(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(c){B.Sc(t);const i=e.$implicit,n=B.pc(2);return n.getClassesByBatch(i.batchId),n.getStudents()})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.yc("value",t.batchId),B.Gb(1),B.ed(" ",t.batchName," ")}}function re(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){return B.Sc(t),B.pc(2).getStudents()})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.yc("value",t.classId),B.Gb(1),B.ed(" ",t.className," ")}}function ue(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){return B.Sc(t),B.pc(2).getStudents()})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.yc("value",t.sectionId),B.Gb(1),B.ed(" ",t.sectionName," ")}}function me(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(c){B.Sc(t);const i=e.$implicit;return B.pc(2).setStudentId(null==i?null:i.studentId,i)})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.zc("value",t.studentName),B.Gb(1),B.ed(" ",null==t?null:t.studentName," ")}}const pe=function(){return{standalone:!0}};function he(t,e){if(1&t){const t=B.ec();B.dc(0,"div"),B.dc(1,"div",7),B.dc(2,"div",8),B.dc(3,"label"),B.dc(4,"strong"),B.cd(5,"Batch"),B.cc(),B.dc(6,"span",9),B.cd(7,"*"),B.cc(),B.cc(),B.cc(),B.dc(8,"div",10),B.dc(9,"div",11),B.dc(10,"mat-form-field",12),B.Yb(11,"mat-label"),B.dc(12,"mat-select",13),B.ad(13,le,2,2,"mat-option",14),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(14,"div",15),B.dc(15,"div",8),B.dc(16,"label"),B.dc(17,"strong"),B.cd(18,"Class"),B.cc(),B.dc(19,"span",9),B.cd(20,"*"),B.cc(),B.cc(),B.cc(),B.dc(21,"div",10),B.dc(22,"div",11),B.dc(23,"mat-form-field",12),B.Yb(24,"mat-label"),B.dc(25,"mat-select",16),B.ad(26,re,2,2,"mat-option",14),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(27,"div",15),B.dc(28,"div",8),B.dc(29,"label"),B.dc(30,"strong"),B.cd(31,"Section"),B.cc(),B.dc(32,"span",9),B.cd(33,"*"),B.cc(),B.cc(),B.cc(),B.dc(34,"div",10),B.dc(35,"div",11),B.dc(36,"mat-form-field",12),B.Yb(37,"mat-label"),B.dc(38,"mat-select",17),B.ad(39,ue,2,2,"mat-option",14),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(40,"div",15),B.dc(41,"div",8),B.dc(42,"label"),B.dc(43,"strong"),B.cd(44," Student Name"),B.cc(),B.dc(45,"span",9),B.cd(46,"*"),B.cc(),B.cc(),B.cc(),B.dc(47,"div",10),B.dc(48,"mat-form-field",18),B.dc(49,"input",19),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc().searchText=e}))("keyup",(function(e){return B.Sc(t),B.pc().clearStudentId()})),B.cc(),B.dc(50,"mat-autocomplete",null,20),B.ad(52,me,2,2,"mat-option",14),B.qc(53,"filter"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.Oc(51),e=B.pc();B.Gb(13),B.yc("ngForOf",e.batches),B.Gb(13),B.yc("ngForOf",e.classes),B.Gb(13),B.yc("ngForOf",e.sections),B.Gb(10),B.yc("ngModel",e.searchText)("ngModelOptions",B.Ec(10,pe))("matAutocomplete",t),B.Gb(3),B.yc("ngForOf",B.sc(53,7,e.students,e.searchText))}}function ge(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){return B.Sc(t),B.pc(2).getEmployees()})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.yc("value",t.departmentId),B.Gb(1),B.ed(" ",t.name," ")}}function be(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){return B.Sc(t),B.pc(2).getEmployees()})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.yc("value",t.positionId),B.Gb(1),B.ed(" ",t.positionName," ")}}function fe(t,e){if(1&t){const t=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(c){B.Sc(t);const i=e.$implicit;return B.pc(2).setEmployeeId(null==i?null:i.employeeId,i)})),B.cd(1),B.cc()}if(2&t){const t=e.$implicit;B.zc("value",t.employeeName),B.Gb(1),B.ed(" ",null==t?null:t.employeeName," ")}}function ye(t,e){if(1&t){const t=B.ec();B.dc(0,"div"),B.dc(1,"div",7),B.dc(2,"div",22),B.dc(3,"label"),B.dc(4,"strong"),B.cd(5,"Department"),B.cc(),B.dc(6,"span",9),B.cd(7,"*"),B.cc(),B.cc(),B.cc(),B.dc(8,"div",23),B.dc(9,"div",11),B.dc(10,"mat-form-field",12),B.Yb(11,"mat-label"),B.dc(12,"mat-select",24),B.ad(13,ge,2,2,"mat-option",14),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(14,"div",15),B.dc(15,"div",22),B.dc(16,"label"),B.dc(17,"strong"),B.cd(18,"Position"),B.cc(),B.dc(19,"span",9),B.cd(20,"*"),B.cc(),B.cc(),B.cc(),B.dc(21,"div",23),B.dc(22,"div",11),B.dc(23,"mat-form-field",12),B.Yb(24,"mat-label"),B.dc(25,"mat-select",25),B.ad(26,be,2,2,"mat-option",14),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(27,"div",15),B.dc(28,"div",22),B.dc(29,"label"),B.dc(30,"strong"),B.cd(31," Employee Name"),B.cc(),B.dc(32,"span",9),B.cd(33,"*"),B.cc(),B.cc(),B.cc(),B.dc(34,"div",23),B.dc(35,"mat-form-field",18),B.dc(36,"input",19),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc().searchEmp=e}))("keyup",(function(e){return B.Sc(t),B.pc().clearEmployeeId()})),B.cc(),B.dc(37,"mat-autocomplete",null,20),B.ad(39,fe,2,2,"mat-option",14),B.qc(40,"filter"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.Oc(38),e=B.pc();B.Gb(13),B.yc("ngForOf",e.depts),B.Gb(13),B.yc("ngForOf",e.positions),B.Gb(10),B.yc("ngModel",e.searchEmp)("ngModelOptions",B.Ec(9,pe))("matAutocomplete",t),B.Gb(3),B.yc("ngForOf",B.sc(40,6,e.employees,e.searchEmp))}}function ve(t,e){1&t&&(B.dc(0,"div"),B.dc(1,"div",7),B.dc(2,"div",8),B.dc(3,"label"),B.dc(4,"strong"),B.cd(5,"Mobile No"),B.cc(),B.dc(6,"span",9),B.cd(7,"*"),B.cc(),B.cc(),B.cc(),B.dc(8,"div",10),B.dc(9,"mat-form-field",26),B.Yb(10,"input",27),B.cc(),B.cc(),B.cc(),B.cc())}function Se(t,e){if(1&t){const t=B.ec();B.dc(0,"button",28),B.lc("click",(function(e){return B.Sc(t),B.pc().submitStudent()})),B.cd(1,"Submit"),B.cc()}if(2&t){const t=B.pc();B.yc("disabled",""==t.control.studentId.value)}}function xe(t,e){if(1&t){const t=B.ec();B.dc(0,"button",28),B.lc("click",(function(e){return B.Sc(t),B.pc().submitEmployee()})),B.cd(1,"Submit"),B.cc()}if(2&t){const t=B.pc();B.yc("disabled",""==t.control.employeeId.value)}}let we=(()=>{class t{constructor(t,e,c,i,n,o,d,a,s,l,r,u){this.data=t,this.dialogRef=e,this.commonService=c,this.classService=i,this.batchService=n,this.departmentService=o,this.sectionService=d,this.positionService=a,this.studentService=s,this.employeeService=l,this.router=r,this.visiterServ=u,this.searchText="",this.searchEmp="",this.StuPagination={filterAcademic:"",filterBatch:"",filterClass:"",filterSection:""},this.empPgination={filterDepartment:"",filterPosition:""},this.studentAllowed=!1,this.category="",this.category=t}ngOnInit(){this.form(),this.getCurrentAcademicYear(),this.getDepts(),this.getPositions(),this.getVisiters()}form(){this.basicForm=new o.j({batch:new o.g(""),class:new o.g(""),section:new o.g(""),studentId:new o.g(""),depart:new o.g(""),position:new o.g(""),employeeId:new o.g(""),mobileNo:new o.g("")})}get control(){return this.basicForm.controls}getCurrentAcademicYear(){this.commonService.getCurrentAcademicYear().subscribe(t=>{var e;"success"==t.keyword&&(this.currentAcademicYearId=null===(e=t.data[0])||void 0===e?void 0:e.academic_year_id,this.batchService.getListByAcademic(this.currentAcademicYearId).subscribe(t=>{"success"==t.keyword&&(this.batches=t.batches,this.getSections(),console.log(this.batches,"batches"))}))})}getClassesByBatch(t){this.classService.getClassByBatch(t).subscribe(t=>{"success"==t.keyword&&(this.classes=t.classes,this.getStudents())})}getSections(){this.sectionService.getList({sortByKey:"section_name",sortByType:"ASC"}).subscribe(t=>{"success"==t.keyword&&(this.sections=t.sections.filter(t=>"1"==t.status),this.getStudents())})}getStudents(){var t,e,c,i,n,o,d=this.basicForm.value;console.log(this.basicForm.value,"2345678"),""!=(null===(t=d)||void 0===t?void 0:t.batch)&&""!=(null===(e=d)||void 0===e?void 0:e.class)&&""!=(null===(c=d)||void 0===c?void 0:c.section)&&(this.StuPagination.filterAcademic=JSON.stringify([this.currentAcademicYearId]),this.StuPagination.filterBatch=JSON.stringify([null===(i=d)||void 0===i?void 0:i.batch]),this.StuPagination.filterClass=JSON.stringify([null===(n=d)||void 0===n?void 0:n.class]),this.StuPagination.filterSection=JSON.stringify([null===(o=d)||void 0===o?void 0:o.section]),this.studentService.getList(this.StuPagination).subscribe(t=>{"success"==t.keyword&&(this.students=t.studentRegistrations)}))}setStudentId(t,e){this.selectedStu=e,this.basicForm.patchValue({studentId:t})}clearStudentId(){this.basicForm.patchValue({studentId:""})}getDepts(){this.departmentService.getList(void 0).subscribe(t=>{"success"==t.keyword&&(this.depts=t.departments.filter(t=>"1"==t.status))})}getPositions(){this.positionService.getList(void 0).subscribe(t=>{"success"==t.keyword&&(this.positions=t.positions.filter(t=>"1"==t.status))})}getEmployees(){var t,e,c,i,n=this.basicForm.value;""!=(null===(t=n)||void 0===t?void 0:t.depart)&&""!=(null===(e=n)||void 0===e?void 0:e.position)&&(this.empPgination.filterDepartment=JSON.stringify([null===(c=n)||void 0===c?void 0:c.depart]),this.empPgination.filterPosition=JSON.stringify([null===(i=n)||void 0===i?void 0:i.position]),this.employeeService.getList(this.empPgination).subscribe(t=>{"success"==t.keyword&&(this.employees=t.employees,console.log(this.employees,"this.employees"))}))}setEmployeeId(t,e){this.selectedEmp=e,this.basicForm.patchValue({employeeId:t})}clearEmployeeId(){this.basicForm.patchValue({employeeId:""})}getVisiters(){this.visiterServ.getList(void 0).subscribe(t=>{"success"==t.keyword&&(this.visitors=t.visitors.filter(t=>"1"==t.status),console.log(this.visitors,"visiters"))})}submitStudent(){this.dialogRef.close(this.selectedStu)}submitEmployee(){this.dialogRef.close(this.selectedEmp)}}return t.\u0275fac=function(e){return new(e||t)(B.Xb(Pt.a),B.Xb(Pt.f),B.Xb(L.a),B.Xb(D.a),B.Xb(T.a),B.Xb(_.a),B.Xb(M.a),B.Xb(P.a),B.Xb(F.a),B.Xb(E.a),B.Xb(i.g),B.Xb(z.a))},t.\u0275cmp=B.Rb({type:t,selectors:[["app-modal"]],decls:14,vars:6,consts:[[1,"p-0","main-card"],[1,""],[1,"card-title-text"],[3,"formGroup"],[4,"ngIf"],["mat-raised-button","","color","primary","class","mt-12 ml-0 btn-primary-bg",3,"disabled","click",4,"ngIf"],[1,"pl-8","primary-txt-color",3,"click"],["fxLayout","row wrap",1,"mt-24"],["fxFlex","100","fxFlex.gt-xs","20",1,""],[1,"red_color"],["fxFlex","100","fxFlex.gt-xs","80",1,""],[1,"pb-1"],["appearance","fill"],["formControlName","batch"],[3,"value","click",4,"ngFor","ngForOf"],["fxLayout","row wrap",1,""],["formControlName","class"],["formControlName","section"],[1,"example-full-width"],["type","text","aria-label","Number","matInput","",3,"ngModel","ngModelOptions","matAutocomplete","ngModelChange","keyup"],["auto","matAutocomplete"],[3,"value","click"],["fxFlex","100","fxFlex.gt-xs","25",1,""],["fxFlex","100","fxFlex.gt-xs","75",1,""],["formControlName","depart"],["formControlName","position"],["appearance","fill",1,"full-width"],["matInput","","name","mobileno","placeholder","","value",""],["mat-raised-button","","color","primary",1,"mt-12","ml-0","btn-primary-bg",3,"disabled","click"]],template:function(t,e){1&t&&(B.dc(0,"mat-card",0),B.dc(1,"mat-card-title",1),B.dc(2,"div",2),B.cd(3,"Live Tracking Filter"),B.cc(),B.Yb(4,"mat-divider"),B.cc(),B.dc(5,"mat-card-content",1),B.dc(6,"form",3),B.ad(7,he,54,11,"div",4),B.ad(8,ye,41,10,"div",4),B.ad(9,ve,11,0,"div",4),B.ad(10,Se,2,1,"button",5),B.ad(11,xe,2,1,"button",5),B.dc(12,"a",6),B.lc("click",(function(t){return e.dialogRef.close()})),B.cd(13,"Discard"),B.cc(),B.cc(),B.cc(),B.cc()),2&t&&(B.Gb(6),B.yc("formGroup",e.basicForm),B.Gb(1),B.yc("ngIf","Student"===e.category),B.Gb(1),B.yc("ngIf","Employee"===e.category),B.Gb(1),B.yc("ngIf","Visitor"===e.category),B.Gb(1),B.yc("ngIf","Student"==e.category),B.Gb(1),B.yc("ngIf","Employee"==e.category))},directives:[a.a,a.f,Y.a,a.c,o.D,o.u,o.k,n.o,q.c,q.a,J.b,J.e,I.a,o.t,o.i,n.n,m.b,o.c,H.c,o.w,H.a,l.p,d.a],pipes:[U.a],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.ml-0[_ngcontent-%COMP%]{margin-left:0!important}"],data:{animation:[Object(O.o)("detailExpand",[Object(O.l)("collapsed",Object(O.m)({height:"0px",minHeight:"0",visibility:"hidden"})),Object(O.l)("expanded",Object(O.m)({height:"*",visibility:"visible"})),Object(O.n)("expanded <=> collapsed",Object(O.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t})();var Ie=c("lJxs"),ke=c("V2So"),Ce=c("v5iQ");let Ne=(()=>{class t{constructor(t,e,c){this.apiService=t,this.empAdapter=e,this.stuAdapter=c}getEmployeeByEmpCode(t){return this.apiService.get(`employee/loadById/${t}`).pipe(Object(Ie.a)(t=>this.empAdapter.adapt(t)))}getStudentByRollNo(t){return this.apiService.get(`student/getByRollno/${t}`).pipe(Object(Ie.a)(t=>this.stuAdapter.adapt(t)))}getStudentTimeLineData(t){return this.apiService.deviceget("track/get/student-record-by-date",t)}getEmployeeTimeLineData(t){return this.apiService.deviceget("track/get/employee-record-by-date",t)}trackVisitor(t){return this.apiService.deviceget("visitor/get/visitor-detail",t)}getTodayTimeline(t){return this.apiService.getTodayTimeline(t)}subscribeHub(t){return this.apiService.subscribeHub(t)}unsubscribeHub(t){return this.apiService.unsubscribeHub(t)}getStudentMac(t){return this.apiService.get(`getCurrentStuMac/${t}`)}getEmployeeMac(t){return this.apiService.get(`getCurrentEmpMac/${t}`)}}return t.\u0275fac=function(e){return new(e||t)(B.hc(V.a),B.hc(ke.a),B.hc(Ce.a))},t.\u0275prov=B.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Ge=c("AytR"),Oe=c("jhN1"),De=c("elPL");function Te(t,e){if(1&t){const t=B.ec();B.dc(0,"div",26),B.dc(1,"div",9),B.dc(2,"label"),B.dc(3,"strong"),B.cd(4,"Roll No"),B.cc(),B.dc(5,"span",10),B.cd(6,"*"),B.cc(),B.cc(),B.cc(),B.dc(7,"div",27),B.dc(8,"mat-form-field",28),B.dc(9,"input",29),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc().rollNo=e})),B.cc(),B.cc(),B.dc(10,"div",30),B.dc(11,"a",31),B.lc("click",(function(e){return B.Sc(t),B.pc().openDialog("Student")})),B.dc(12,"u"),B.cd(13,"Advanced Search"),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(14,"div",27),B.dc(15,"button",32),B.lc("click",(function(e){B.Sc(t);const c=B.pc();return c.getStudentByRollNo(c.rollNo,"Student")})),B.cd(16,"Search"),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.pc();B.Gb(9),B.yc("ngModel",t.rollNo),B.Gb(6),B.yc("disabled",""==t.rollNo)}}function _e(t,e){if(1&t){const t=B.ec();B.dc(0,"div",26),B.dc(1,"div",9),B.dc(2,"label"),B.dc(3,"strong"),B.cd(4,"Employee Code"),B.cc(),B.dc(5,"span",10),B.cd(6,"*"),B.cc(),B.cc(),B.cc(),B.dc(7,"div",27),B.dc(8,"mat-form-field",28),B.dc(9,"input",33),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc().empCode=e})),B.cc(),B.cc(),B.dc(10,"div",30),B.dc(11,"a",31),B.lc("click",(function(e){return B.Sc(t),B.pc().openDialog("Employee")})),B.dc(12,"u"),B.cd(13,"Advanced Search"),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(14,"div",27),B.dc(15,"button",32),B.lc("click",(function(e){B.Sc(t);const c=B.pc();return c.getEmployeeByEmpCode(c.empCode,"Employee")})),B.cd(16,"Search"),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.pc();B.Gb(9),B.yc("ngModel",t.empCode),B.Gb(6),B.yc("disabled",""==t.empCode)}}function Pe(t,e){if(1&t){const t=B.ec();B.dc(0,"div",26),B.dc(1,"div",9),B.dc(2,"label"),B.dc(3,"strong"),B.cd(4,"Mobile No"),B.cc(),B.dc(5,"span",10),B.cd(6,"*"),B.cc(),B.cc(),B.cc(),B.dc(7,"div",27),B.dc(8,"mat-form-field",28),B.dc(9,"input",34),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc().mobileNo=e})),B.cc(),B.cc(),B.cc(),B.dc(10,"div",27),B.dc(11,"button",35),B.lc("click",(function(e){return B.Sc(t),B.pc().track("Visitor")})),B.cd(12,"Search"),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.pc();B.Gb(9),B.yc("ngModel",t.mobileNo)}}function Me(t,e){if(1&t&&(B.dc(0,"table",39),B.dc(1,"tr"),B.dc(2,"td"),B.dc(3,"h4",40),B.dc(4,"span"),B.Yb(5,"i",41),B.cc(),B.dc(6,"span",42),B.dc(7,"strong"),B.cd(8,"Location"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(9,"tr"),B.dc(10,"td"),B.dc(11,"h4",43),B.cd(12),B.cc(),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc(2);var c=null;B.Gb(12),B.gd(" ",null==(c=t.getPayload())?null:c.layout_type_name," - ",null==(c=t.getPayload())?null:c.layout_category_name," - ",null==(c=t.getPayload())?null:c.position_name," ")}}function Le(t,e){1&t&&(B.dc(0,"div",44),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function Fe(t,e){if(1&t&&(B.dc(0,"div"),B.dc(1,"h4",36),B.dc(2,"strong"),B.cd(3,"Student Name"),B.cc(),B.cd(4),B.dc(5,"span",37),B.dc(6,"strong"),B.cd(7,"Batch"),B.cc(),B.cd(8),B.cc(),B.dc(9,"span",37),B.dc(10,"strong"),B.cd(11,"Class"),B.cc(),B.cd(12),B.cc(),B.cc(),B.dc(13,"h4",36),B.dc(14,"strong"),B.cd(15,"Today Date :"),B.cc(),B.cd(16),B.qc(17,"displayDate"),B.cc(),B.ad(18,Me,13,3,"table",38),B.ad(19,Le,3,0,"div",23),B.cc()),2&t){const t=B.pc();B.Gb(4),B.ed(" : ",null==t.students?null:t.students.studentName,""),B.Gb(4),B.ed(" : ",null==t.students?null:t.students.batchName,""),B.Gb(4),B.fd(" : ",null==t.students?null:t.students.className," - ",null==t.students?null:t.students.sectionName,""),B.Gb(4),B.ed(" ",B.rc(17,7,t.getFormatDate(t.currentDate))," "),B.Gb(2),B.yc("ngIf",0!=(null==t.payLoad?null:t.payLoad.length)&&0==t.tabIndex),B.Gb(1),B.yc("ngIf",0==t.showFrame)}}function Ee(t,e){if(1&t&&(B.dc(0,"table",39),B.dc(1,"tr"),B.dc(2,"td"),B.dc(3,"h4",40),B.dc(4,"span"),B.Yb(5,"i",41),B.cc(),B.dc(6,"span",42),B.dc(7,"strong"),B.cd(8,"Location"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(9,"tr"),B.dc(10,"td"),B.dc(11,"h4",43),B.cd(12),B.cc(),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc(2);var c=null;B.Gb(12),B.gd(" ",null==(c=t.getPayload())?null:c.layout_type_name," - ",null==(c=t.getPayload())?null:c.layout_category_name," - ",null==(c=t.getPayload())?null:c.position_name," ")}}function Ae(t,e){1&t&&(B.dc(0,"div",44),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function je(t,e){if(1&t&&(B.dc(0,"div"),B.dc(1,"h4",36),B.dc(2,"strong"),B.cd(3,"Employee Name"),B.cc(),B.cd(4),B.dc(5,"span",37),B.dc(6,"strong"),B.cd(7,"Department"),B.cc(),B.cd(8),B.cc(),B.dc(9,"span",37),B.dc(10,"strong"),B.cd(11,"Position"),B.cc(),B.cd(12),B.cc(),B.cc(),B.dc(13,"h4",36),B.dc(14,"strong"),B.cd(15,"Today Date :"),B.cc(),B.cd(16),B.qc(17,"displayDate"),B.cc(),B.ad(18,Ee,13,3,"table",38),B.ad(19,Ae,3,0,"div",23),B.cc()),2&t){const t=B.pc();B.Gb(4),B.ed(" : ",null==t.employees?null:t.employees.employeeName,""),B.Gb(4),B.ed(" : ",null==t.employees?null:t.employees.departmentName,""),B.Gb(4),B.ed(" : ",null==t.employees?null:t.employees.positionName,""),B.Gb(4),B.ed(" ",B.rc(17,6,t.getFormatDate(t.currentDate))," "),B.Gb(2),B.yc("ngIf",0!=(null==t.payLoad?null:t.payLoad.length)&&0==t.tabIndex),B.Gb(1),B.yc("ngIf",0==t.showFrame)}}function Ve(t,e){if(1&t&&(B.dc(0,"table",39),B.dc(1,"tr"),B.dc(2,"td"),B.dc(3,"h4",40),B.dc(4,"span"),B.Yb(5,"i",41),B.cc(),B.dc(6,"span",42),B.dc(7,"strong"),B.cd(8,"Location"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(9,"tr"),B.dc(10,"td"),B.dc(11,"h4",43),B.cd(12),B.cc(),B.cc(),B.cc(),B.cc()),2&t){const t=B.pc(2);var c=null;B.Gb(12),B.gd(" ",null==(c=t.getPayload())?null:c.layout_type_name," - ",null==(c=t.getPayload())?null:c.layout_category_name," - ",null==(c=t.getPayload())?null:c.position_name," ")}}function $e(t,e){1&t&&(B.dc(0,"div",44),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function Xe(t,e){if(1&t&&(B.dc(0,"div"),B.dc(1,"h4",36),B.dc(2,"strong"),B.cd(3,"Today Date :"),B.cc(),B.cd(4),B.qc(5,"displayDate"),B.cc(),B.ad(6,Ve,13,3,"table",38),B.ad(7,$e,3,0,"div",23),B.cc()),2&t){const t=B.pc();B.Gb(4),B.ed(" ",B.rc(5,3,t.getFormatDate(t.currentDate))," "),B.Gb(2),B.yc("ngIf",0!=(null==t.payLoad?null:t.payLoad.length)&&0==t.tabIndex),B.Gb(1),B.yc("ngIf",0==t.showFrame)}}function Re(t,e){if(1&t&&B.Yb(0,"iframe",45),2&t){const t=B.pc();B.yc("src",t.urlSafe,B.Uc)}}function ze(t,e){if(1&t){const t=B.ec();B.dc(0,"div",26),B.dc(1,"div",9),B.dc(2,"label"),B.dc(3,"strong"),B.cd(4,"Roll No"),B.cc(),B.dc(5,"span",10),B.cd(6,"*"),B.cc(),B.cc(),B.cc(),B.dc(7,"div",27),B.dc(8,"mat-form-field",28),B.dc(9,"input",46),B.lc("keyup",(function(e){return B.Sc(t),B.pc().clearStudent()}))("ngModelChange",(function(e){return B.Sc(t),B.pc().rollNo=e})),B.cc(),B.cc(),B.dc(10,"div",30),B.dc(11,"a",31),B.lc("click",(function(e){return B.Sc(t),B.pc().openDialog("Student")})),B.dc(12,"u"),B.cd(13,"Advanced Search"),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(14,"div",27),B.dc(15,"button",32),B.lc("click",(function(e){B.Sc(t);const c=B.pc();return c.getStudentByRollNo(c.rollNo,"Student")})),B.cd(16,"Search"),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.pc();B.Gb(9),B.yc("ngModel",t.rollNo),B.Gb(6),B.yc("disabled",""==t.rollNo)}}function Be(t,e){if(1&t){const t=B.ec();B.dc(0,"div",26),B.dc(1,"div",9),B.dc(2,"label"),B.dc(3,"strong"),B.cd(4,"Employee Code"),B.cc(),B.dc(5,"span",10),B.cd(6,"*"),B.cc(),B.cc(),B.cc(),B.dc(7,"div",27),B.dc(8,"mat-form-field",28),B.dc(9,"input",47),B.lc("keyup",(function(e){return B.Sc(t),B.pc().clearEmployee()}))("ngModelChange",(function(e){return B.Sc(t),B.pc().empCode=e})),B.cc(),B.cc(),B.dc(10,"div",30),B.dc(11,"a",31),B.lc("click",(function(e){return B.Sc(t),B.pc().openDialog("Employee")})),B.dc(12,"u"),B.cd(13,"Advanced Search"),B.cc(),B.cc(),B.cc(),B.cc(),B.dc(14,"div",27),B.dc(15,"button",32),B.lc("click",(function(e){B.Sc(t);const c=B.pc();return c.getEmployeeByEmpCode(c.empCode,"Employee")})),B.cd(16,"Search"),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.pc();B.Gb(9),B.yc("ngModel",t.empCode),B.Gb(6),B.yc("disabled",""==t.empCode)}}function Ye(t,e){if(1&t){const t=B.ec();B.dc(0,"div",26),B.dc(1,"div",9),B.dc(2,"label"),B.dc(3,"strong"),B.cd(4,"Mobile No"),B.cc(),B.dc(5,"span",10),B.cd(6,"*"),B.cc(),B.cc(),B.cc(),B.dc(7,"div",27),B.dc(8,"mat-form-field",28),B.dc(9,"input",34),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc().mobileNo=e})),B.cc(),B.cc(),B.cc(),B.dc(10,"div",27),B.dc(11,"button",35),B.lc("click",(function(e){return B.Sc(t),B.pc().getTimeLineTracking("Visitor")})),B.cd(12,"Search"),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.pc();B.Gb(9),B.yc("ngModel",t.mobileNo)}}function qe(t,e){if(1&t){const t=B.ec();B.dc(0,"div"),B.dc(1,"h4",36),B.dc(2,"strong"),B.cd(3,"Student Name"),B.cc(),B.cd(4),B.dc(5,"span",37),B.dc(6,"strong"),B.cd(7,"Batch"),B.cc(),B.cd(8),B.cc(),B.dc(9,"span",37),B.dc(10,"strong"),B.cd(11,"Class"),B.cc(),B.cd(12),B.cc(),B.cc(),B.dc(13,"div",48),B.dc(14,"h4",49),B.dc(15,"strong"),B.cd(16,"Date :"),B.cc(),B.cc(),B.dc(17,"mat-form-field",50),B.Yb(18,"mat-label"),B.dc(19,"input",51),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc().choosedDate=e})),B.cc(),B.Yb(20,"mat-datepicker-toggle",52),B.Yb(21,"mat-datepicker",null,53),B.cc(),B.dc(23,"div"),B.dc(24,"button",54),B.lc("click",(function(e){return B.Sc(t),B.pc().getTimeLineTracking("Student")})),B.cd(25,"Track"),B.cc(),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.Oc(22),e=B.pc();B.Gb(4),B.ed(" : ",null==e.students?null:e.students.studentName,""),B.Gb(4),B.ed(" : ",null==e.students?null:e.students.batchName,""),B.Gb(4),B.fd(" : ",null==e.students?null:e.students.className," - ",null==e.students?null:e.students.sectionName,""),B.Gb(7),B.yc("matDatepicker",t)("ngModel",e.choosedDate),B.Gb(1),B.yc("for",t)}}function Je(t,e){if(1&t){const t=B.ec();B.dc(0,"div"),B.dc(1,"h4",36),B.dc(2,"strong"),B.cd(3,"Employee Name"),B.cc(),B.cd(4),B.dc(5,"span",37),B.dc(6,"strong"),B.cd(7,"Department"),B.cc(),B.cd(8),B.cc(),B.dc(9,"span",37),B.dc(10,"strong"),B.cd(11,"Position"),B.cc(),B.cd(12),B.cc(),B.cc(),B.dc(13,"div",48),B.dc(14,"h4",49),B.dc(15,"strong"),B.cd(16,"Date :"),B.cc(),B.cc(),B.dc(17,"mat-form-field",50),B.Yb(18,"mat-label"),B.dc(19,"input",51),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc().choosedDate=e})),B.cc(),B.Yb(20,"mat-datepicker-toggle",52),B.Yb(21,"mat-datepicker",null,53),B.cc(),B.dc(23,"div"),B.dc(24,"button",54),B.lc("click",(function(e){return B.Sc(t),B.pc().getTimeLineTracking("Employee")})),B.cd(25,"Track"),B.cc(),B.cc(),B.cc(),B.cc()}if(2&t){const t=B.Oc(22),e=B.pc();B.Gb(4),B.ed(" : ",null==e.employees?null:e.employees.employeeName,""),B.Gb(4),B.ed(" : ",null==e.employees?null:e.employees.departmentName,""),B.Gb(4),B.ed(" : ",null==e.employees?null:e.employees.positionName,""),B.Gb(7),B.yc("matDatepicker",t)("ngModel",e.choosedDate),B.Gb(1),B.yc("for",t)}}function He(t,e){if(1&t){const t=B.ec();B.dc(0,"div"),B.dc(1,"h4",49),B.dc(2,"strong"),B.cd(3,"Date :"),B.cc(),B.cc(),B.dc(4,"mat-form-field",50),B.Yb(5,"mat-label"),B.dc(6,"input",51),B.lc("ngModelChange",(function(e){return B.Sc(t),B.pc().choosedDate=e})),B.cc(),B.Yb(7,"mat-datepicker-toggle",52),B.Yb(8,"mat-datepicker",null,53),B.cc(),B.dc(10,"button",54),B.lc("click",(function(e){return B.Sc(t),B.pc().getTimeLineTracking("Visitor")})),B.cd(11,"Track"),B.cc(),B.cc()}if(2&t){const t=B.Oc(9),e=B.pc();B.Gb(6),B.yc("matDatepicker",t)("ngModel",e.choosedDate),B.Gb(1),B.yc("for",t)}}function Ue(t,e){if(1&t&&(B.dc(0,"mgl-timeline-entry"),B.dc(1,"mgl-timeline-entry-header",4),B.dc(2,"div",57),B.dc(3,"h1",58),B.cd(4),B.dc(5,"span",59),B.cd(6),B.qc(7,"displayTime"),B.qc(8,"displayTime"),B.qc(9,"displayTime"),B.qc(10,"displayTime"),B.cc(),B.cc(),B.dc(11,"h1",58),B.dc(12,"span",60),B.cd(13),B.qc(14,"displayTime"),B.qc(15,"displayTime"),B.cc(),B.cc(),B.cc(),B.cc(),B.Yb(16,"mgl-timeline-entry-dot"),B.dc(17,"mgl-timeline-entry-side",61),B.dc(18,"span",62),B.cd(19," directions_walk "),B.cc(),B.cc(),B.cc()),2&t){const t=e.$implicit,i=B.pc(2);var c=null;B.Gb(4),B.ed(" ",null!=t&&t.locationName?null==t?null:t.locationName:null==(c=i.getLocationName(null==t?null:t.topic))?null:c.position_name,""),B.Gb(2),B.fd("",null!=t&&t.InTime?B.rc(7,4,null==t?null:t.InTime):B.rc(8,6,null==t?null:t.inTime)," - ",null!=t&&t.OutTime?B.rc(9,8,null==t?null:t.OutTime):B.rc(10,10,null==t?null:t.outTime),""),B.Gb(7),B.dd(null!=t&&t.timeDifference?B.rc(14,12,null==t?null:t.timeDifference):B.rc(15,14,"00:00:00"))}}function We(t,e){if(1&t&&(B.dc(0,"mgl-timeline",55),B.ad(1,Ue,20,16,"mgl-timeline-entry",56),B.cc()),2&t){const t=B.pc();B.Gb(1),B.yc("ngForOf",t.timelineDatas)}}function Ze(t,e){1&t&&(B.dc(0,"div",44),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}const Ke=[{path:"",children:[{path:"tracking-old",component:_t,data:{title:"Tracking",breadcrumb:"Tracking"}},{path:"general",component:Mt,data:{title:"General Tracking",breadcrumb:"General Tracking"}},{path:"preview",component:qt,data:{title:"Infrastrucutre Layout",breadcrumb:"Infrastructure Layout"}},{path:"",component:(()=>{class t{constructor(t,e,c,i,n,o,d,a,s,l,r,u,m){this.dialog=t,this.modelService=e,this.visiterServ=c,this.severdatePipe=i,this.toaster=n,this.layoutEditorServ=o,this.loader=d,this.router=a,this.permission=s,this.ngZone=l,this._mqttService=r,this.config=u,this.sanitizer=m,this.topicName="",this.isConnected=!1,this.payLoad=[],this.students=[],this.employees=[],this.rollNo="",this.empCode="",this.mobileNo="",this.choosedDate="",this.timelineDatas=[],this.tabIndex=0,this.category="",this.timeLine="",this.isDisabled=!1,this.showFrame=!1,this.getLocationTracking(),this.currentDate=new Date,this.config.init(),this.customerId=this.config.customerId,this.schoolId=this.config.branchId}getFormatDate(t){return this.severdatePipe.transform(t)}catChange(){this.students=[],this.employees=[],this.timelineDatas=[],this.rollNo="",this.empCode="",this.mobileNo="",this.choosedDate=this.getFormatDate(this.currentDate),this.showFrame=!1,this.clearSessionData()}clearSessionData(){var t,e;this.payLoad=[],0!=(null===(t=this.payLoad)||void 0===t?void 0:t.length)||(this.isDisabled=!1),null===(e=this.subscription)||void 0===e||e.unsubscribe(),this.removeCircleProcess()}openDialog(t){this.dialog.open(we,{width:"40%",data:t,disableClose:!0}).afterClosed().subscribe(e=>{var c,i;e&&(this.clearSessionData(),"Student"==t?(this.students=e,0!=(null===(c=this.students)||void 0===c?void 0:c.length)&&(1==this.tabIndex?this.getTimeLineTracking(t):this.track(t)),console.log(e,"result")):"Employee"==t&&(this.employees=e,0!=(null===(i=this.employees)||void 0===i?void 0:i.length)&&(1==this.tabIndex?this.getTimeLineTracking(t):this.track(t))))})}openDialog1(){this.dialog.open(se,{width:"100%"}).afterClosed().subscribe(t=>{console.log("The dialog was closed")})}ngOnInit(){this.getVisiters()}ngOnDestroy(){var t;this.payLoad=[],null===(t=this.subscription)||void 0===t||t.unsubscribe()}tabChange(t){console.log(t,"index"),this.catChange(),this.category="",this.timeLine="",this.tabIndex=t,0==t?this.getLocationTracking():1==t?this.choosedDate=this.getFormatDate(this.currentDate):2==t&&this.getLocationTracking()}getStudentByRollNo(t,e){console.log(t,"rollNo"),this.clearSessionData(),this.modelService.getStudentByRollNo(t).subscribe(t=>{var c,i;"success"==t.keyword?(this.students=""==t.studentRegistrations[0].studentId?[]:t.studentRegistrations[0],0!=(null===(c=this.students)||void 0===c?void 0:c.length)?1==this.tabIndex?this.getTimeLineTracking(e):this.track(e):0==(null===(i=this.students)||void 0===i?void 0:i.length)&&(this.timelineDatas=[],this.toaster.present("No student found, Use advance filter to track student"))):(this.students=[],this.timelineDatas=[],this.toaster.present("No student found, Use advance filter to track student")),console.log(this.students,"this.students")})}getEmployeeByEmpCode(t,e){this.clearSessionData(),this.modelService.getEmployeeByEmpCode(t).subscribe(t=>{var c,i,n,o;"success"==t.keyword?(this.employees=""==(null===(c=t.employees[0])||void 0===c?void 0:c.employeeId)?[]:null===(i=t)||void 0===i?void 0:i.employees[0],0!=(null===(n=this.employees)||void 0===n?void 0:n.length)?1==this.tabIndex?this.getTimeLineTracking(e):this.track(e):0==(null===(o=this.employees)||void 0===o?void 0:o.length)&&(this.timelineDatas=[],this.toaster.present("No employee found, Use advance filter to track employee"))):(this.employees=[],this.timelineDatas=[],this.toaster.present("No employee found, Use advance filter to track employee")),console.log(this.employees,"this.employees")})}getVisiters(){this.visiterServ.getList(void 0).subscribe(t=>{"success"==t.keyword&&(this.visitors=t.visitors.filter(t=>"1"==t.status),console.log(this.visitors,"visiters"))})}track(t){var e,c,i,n,o;if(this.clearSessionData(),"Student"==t&&0!=(null===(e=this.students)||void 0===e?void 0:e.length))this.modelService.getStudentMac(this.students.studentId).subscribe(t=>{var e,c;"success"==(null===(e=t)||void 0===e?void 0:e.keyword)?(this.topicName=`${null===(c=t.data)||void 0===c?void 0:c.mac_address}`,console.log(this.topicName,"students"),this.getLiveTrackingData(this.topicName)):this.toaster.present("Student have no mac address")});else if("Employee"==t&&0!=(null===(c=this.employees)||void 0===c?void 0:c.length))this.modelService.getEmployeeMac(this.employees.employeeId).subscribe(t=>{var e,c;"success"==(null===(e=t)||void 0===e?void 0:e.keyword)?(this.topicName=`${null===(c=this.employees)||void 0===c?void 0:c.macAddress}`,console.log(this.topicName,"employee"),this.getLiveTrackingData(this.topicName)):this.toaster.present("Employee have no mac address")});else if("Visitor"==t&&""!=this.mobileNo){var d=this.visitors.find(t=>{var e;return(null===(e=t)||void 0===e?void 0:e.mobileNo)==this.mobileNo});console.log(null===(i=d)||void 0===i?void 0:i.macAddress,"visitors_macAddress"),(null===(n=d)||void 0===n?void 0:n.mobileNo)?(this.topicName=`${null===(o=d)||void 0===o?void 0:o.macAddress}`,console.log(this.topicName,"visitors"),this.getLiveTrackingData(this.topicName)):R.a.fire({title:"Visitor Tracking",text:"Please provide the valid visitor number",icon:"error"})}else this.checkRequired()}checkRequired(){R.a.fire({title:"Check Required",text:"Fill Mandatory Fields",icon:"warning"})}getLiveTrackingData(t){let e=window.location.hostname,c=e.split("."),i=c.length>=3?c.includes("www")?c[1]:c[0]:"";i="school1",console.log("school1",e,"tenant"),this.url=`${Ge.a.liveTrackingUrl}?tid=school1&branch=${this.schoolId}&endPoint=PP&mac=${t}`,this.showFrame=!0,this.urlSafe=this.sanitizer.bypassSecurityTrustResourceUrl(this.url),console.log(this.urlSafe,"this.urlSafe")}getLocationTracking(){this.getLayoutDevice(),this.startPreview();var t=this;setTimeout((function(){t.lazyLoadAssignedSpotMark()}),3e3),this.clickSpot()}startPreview(){var t=void 0;this.layoutEditorServ.getLayoutContent().subscribe(e=>{e.data.layout_content&&(t=JSON.parse(e.data.layout_content)),$("#tgss-layout").imageMapPro(t)})}getLayoutDevice(){window.localStorage.setItem("lytdv",JSON.stringify([])),this.layoutEditorServ.getLayoutDeviceList().subscribe(t=>{0!=t.data.length&&(window.localStorage.setItem("lytdv",JSON.stringify(t.data)),this.layoutDevData=t.data,this.lazyLoadAssignedSpotMark())})}lazyLoadAssignedSpotMark(){var t=window.localStorage.getItem("lytdv");(t=t?JSON.parse(t):[]).forEach(t=>{var e=`[id="${t.spot_id}"]`,c=$(document).find(`${e}`);c&&c.addClass("assignedSpot");var i=$(document).find(`${e} .imp-spot-fontawesome-icon`);i&&i.addClass("greenMark")})}loadLayoutDevice(t,e){2==this.tabIndex&&(this.loader.open(),this.layoutEditorServ.getLayoutDevice(t).subscribe(t=>{if("success"==t.keyword){if(t.data.topic_name){this.loader.close(),console.log(t.data,"2345678");const e=this.dialog.open(se,{width:"100%",panelClass:"select-section",data:t.data});this.subscribeHub(t.data),e.afterClosed().subscribe(e=>{console.log(`Dialog result: ${e}`),this.unsubscribeHub(t.data)})}}else this.toaster.present("No topic found."),this.loader.close()}))}subscribeHub(t){var e;let c=new FormData;c.append("topic",null===(e=t)||void 0===e?void 0:e.topic_name),this.modelService.subscribeHub(c).subscribe(t=>{})}unsubscribeHub(t){var e;let c=new FormData;c.append("topic",null===(e=t)||void 0===e?void 0:e.topic_name),this.modelService.unsubscribeHub(c).subscribe(t=>{})}isDoubleClicked(t){return!!t.data("isclicked")||(t.data("isclicked",!0),setTimeout((function(){t.removeData("isclicked")}),1e3),!1)}clickSpot(){var t=this;$(document).on("click",".assignedSpot",(function(e){if(!t.isDoubleClicked($(this))){console.log("CLICKED");var c=$(this).attr("id"),i=$(this).attr("data-shape-title");c&&t.ngZone.run(()=>{t.loadLayoutDevice(c,i)})}}))}removeCircleProcess(){var t,e,c=null===(e=null===(t=this.layoutDevData)||void 0===t?void 0:t.find(t=>{var e;return t.topic_name==(null===(e=this.msg)||void 0===e?void 0:e.topic)}))||void 0===e?void 0:e.spot_id;$(document).find("#"+c).removeClass("circle-ripple")}removeRemainCircleProcess(){this.layoutDevData.filter(t=>{var e;return t.topic_name!=(null===(e=this.msg)||void 0===e?void 0:e.topic)}),this.layoutDevData.forEach(t=>{var e;$(document).find("#"+(null===(e=t)||void 0===e?void 0:e.spot_id)).removeClass("circle-ripple")})}applyCircleProcess(){var t,e=(null===(t=this.layoutDevData)||void 0===t?void 0:t.find(t=>{var e;return t.topic_name==(null===(e=this.msg)||void 0===e?void 0:e.topic)})).spot_id;this.removeRemainCircleProcess(),$(document).find("#"+e).addClass("circle-ripple")}subscribeNewTopic(){console.log("inside subscribe new topic"),this.isDisabled=!0,this.subscription=this._mqttService.observe(this.topicName).subscribe(t=>{this.msg=JSON.parse(t.payload.toString()),this.payLoad.unshift(this.msg),this.applyCircleProcess()}),console.log("subscribed to topic: "+this.topicName)}clearStudent(){this.students=[],this.timelineDatas=[]}clearEmployee(){this.employees=[],this.timelineDatas=[]}getTimeLineTracking(t){var e,c,i,n=this.getFormatDate(this.choosedDate);if("Student"==t)this.modelService.getStudentMac(this.students.studentId).subscribe(t=>{var e,c;if("success"==(null===(e=t)||void 0===e?void 0:e.keyword)){let e={customerId:String(this.customerId),schoolId:String(this.schoolId),studentId:this.students.studentId,thisDate:String(n),mac:null===(c=t.data)||void 0===c?void 0:c.mac_address};this.loader.open(),this.modelService.getStudentTimeLineData(e).subscribe(t=>{this.timelineDatas=t,this.loader.close(),console.log(this.timelineDatas,"data")})}else this.toaster.present("Student have no mac address")});else if("Employee"==t)this.modelService.getEmployeeMac(this.employees.employeeId).subscribe(t=>{var e,c;if("success"==(null===(e=t)||void 0===e?void 0:e.keyword)){let e={customerId:String(this.customerId),schoolId:String(this.schoolId),employeeId:this.employees.employeeId,thisDate:String(n),mac:null===(c=t.data)||void 0===c?void 0:c.mac_address};this.loader.open(),this.modelService.getEmployeeTimeLineData(e).subscribe(t=>{this.timelineDatas=t,this.loader.close(),console.log(this.timelineDatas,"data")})}else this.toaster.present("Employee have no mac address")});else if("Visitor"==t&&""!=this.mobileNo){var o=this.visitors.find(t=>{var e;return(null===(e=t)||void 0===e?void 0:e.mobileNo)==this.mobileNo});if(console.log(null===(e=o)||void 0===e?void 0:e.mobileNo,"visitors345678"),null===(c=o)||void 0===c?void 0:c.mobileNo){let t={customerId:String(this.customerId),schoolId:String(this.schoolId),visitorMobile:this.mobileNo,fromDate:String(n),toDate:String(n),mac:null===(i=o)||void 0===i?void 0:i.macAddress};this.modelService.trackVisitor(t).subscribe(t=>{console.log(t.allowedAreas,"allowedAreas"),this.timelineDatas=t.allowedAreas,this.timelineDatas=this.timelineDatas.concat(t.nonAllowedAreas),console.log(this.timelineDatas,"data"),this.loader.close()})}else R.a.fire({title:"Visitor Tracking",text:"Please provide the valid visitor number",icon:"error"})}else this.checkRequired()}getPayload(){return this.layoutDevData.find(t=>{var e;return t.topic_name==(null===(e=this.msg)||void 0===e?void 0:e.topic)})}getLocationName(t){return this.layoutDevData.find(e=>e.topic_name==t)}}return t.\u0275fac=function(e){return new(e||t)(B.Xb(Pt.b),B.Xb(Ne),B.Xb(z.a),B.Xb(W.d),B.Xb(Ft.a),B.Xb(At.a),B.Xb(Lt.a),B.Xb(i.g),B.Xb(Et.a),B.Xb(B.A),B.Xb(A.b),B.Xb(j.a),B.Xb(Oe.b))},t.\u0275cmp=B.Rb({type:t,selectors:[["app-tracking"]],features:[B.Fb([{provide:l.c,useClass:Jt.b},{provide:l.f,useValue:Jt.a},W.d])],decls:60,vars:17,consts:[["rel","stylesheet","href","https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"],[1,"create_btn"],[1,"form_bg"],[1,"p-0"],[1,""],[1,"card-title-text"],[3,"selectedTabChange"],["label","Live Tracking"],["fxLayout","row wrap",1,"mt-24"],["fxFlex","100","fxFlex.gt-xs","10",1,""],[1,"red_color"],["fxFlex","100","fxFlex.gt-xs","60",1,"mt-0","mb-8"],["aria-label","Select an option","name","category",1,"ml-15",3,"ngModel","ngModelChange","change"],["name","category","value","Student",1,"mr-40"],["name","category","value","Employee",1,"mr-40"],["name","category","value","Visitor",1,"mr-40"],["fxLayout","row wrap","class","mt-12",4,"ngIf"],[4,"ngIf"],["width","100%","height","800","frameborder","0","style","border:0","allowfullscreen","",3,"src",4,"ngIf"],["label","Time Line Tracking"],["aria-label","Select an option","name","category",1,"ml-15",3,"ngModel","change","ngModelChange"],[1,"white-bg","tracking-timeline-block"],["class","mt-12",4,"ngIf"],["class","text-center",4,"ngIf"],["label","Location Tracking"],["id","tgss-layout"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","27",1,""],["appearance","fill",1,"full-width"],["matInput","","name","rollno","placeholder","","value","",1,"",3,"ngModel","ngModelChange"],[1,"text-right","adv-search"],[1,"primary-txt-color",3,"click"],["mat-raised-button","","color","primary",1,"btn-primary-bg",3,"disabled","click"],["matInput","","name","empcode","placeholder","","value","",1,"",3,"ngModel","ngModelChange"],["matInput","","name","mobileno","placeholder","","value","",1,"",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",1,"btn-primary-bg",3,"click"],[1,"mt-16"],[1,"ml-40"],["class","location mt-16",4,"ngIf"],[1,"location","mt-16"],[1,"mt-5"],[1,"fa","fa-map-marker"],[1,"ml-8"],[1,"mt-5","mb-0"],[1,"text-center"],["width","100%","height","800","frameborder","0","allowfullscreen","",2,"border","0",3,"src"],["matInput","","name","rollno","placeholder","","value","",1,"",3,"ngModel","keyup","ngModelChange"],["matInput","","name","empcode","placeholder","","value","",1,"",3,"ngModel","keyup","ngModelChange"],[2,"display","flex"],[1,"pt-16","pr-24"],["appearance","fill",1,"mt-4"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["picker",""],["mat-raised-button","","color","primary",1,"mt-12","btn-primary-bg",3,"click"],[1,"mt-12"],[4,"ngFor","ngForOf"],[1,"header-block"],[1,"mb-0","mt-4"],[1,"float-right","text-muted","pt-2"],[1,"text-muted",2,"margin-left","85%"],[1,"alternate"],[1,"material-icons","font-white","lg-brown"]],template:function(t,e){1&t&&(B.Yb(0,"link",0),B.Yb(1,"div",1),B.dc(2,"div",2),B.dc(3,"mat-card",3),B.dc(4,"mat-card-title",4),B.dc(5,"div",5),B.cd(6,"Tracking"),B.cc(),B.Yb(7,"mat-divider"),B.cc(),B.dc(8,"mat-card-content",4),B.dc(9,"mat-tab-group",6),B.lc("selectedTabChange",(function(t){return e.tabChange(t.index)})),B.dc(10,"mat-tab",7),B.dc(11,"div",8),B.dc(12,"div",9),B.dc(13,"label"),B.dc(14,"strong"),B.cd(15,"Category"),B.cc(),B.dc(16,"span",10),B.cd(17,"*"),B.cc(),B.cc(),B.cc(),B.dc(18,"div",11),B.dc(19,"mat-radio-group",12),B.lc("ngModelChange",(function(t){return e.category=t}))("change",(function(t){return e.catChange()})),B.dc(20,"mat-radio-button",13),B.cd(21,"Student"),B.cc(),B.dc(22,"mat-radio-button",14),B.cd(23,"Employee"),B.cc(),B.dc(24,"mat-radio-button",15),B.cd(25,"Visitor"),B.cc(),B.cc(),B.cc(),B.cc(),B.ad(26,Te,17,2,"div",16),B.ad(27,_e,17,2,"div",16),B.ad(28,Pe,13,1,"div",16),B.ad(29,Fe,20,9,"div",17),B.ad(30,je,20,8,"div",17),B.ad(31,Xe,8,5,"div",17),B.ad(32,Re,1,1,"iframe",18),B.cc(),B.dc(33,"mat-tab",19),B.dc(34,"div",8),B.dc(35,"div",9),B.dc(36,"label"),B.dc(37,"strong"),B.cd(38,"Category"),B.cc(),B.dc(39,"span",10),B.cd(40,"*"),B.cc(),B.cc(),B.cc(),B.dc(41,"div",11),B.dc(42,"mat-radio-group",20),B.lc("change",(function(t){return e.catChange()}))("ngModelChange",(function(t){return e.timeLine=t})),B.dc(43,"mat-radio-button",13),B.cd(44,"Student"),B.cc(),B.dc(45,"mat-radio-button",14),B.cd(46,"Employee"),B.cc(),B.dc(47,"mat-radio-button",15),B.cd(48,"Visitor"),B.cc(),B.cc(),B.cc(),B.cc(),B.ad(49,ze,17,2,"div",16),B.ad(50,Be,17,2,"div",16),B.ad(51,Ye,13,1,"div",16),B.ad(52,qe,26,7,"div",17),B.ad(53,Je,26,6,"div",17),B.ad(54,He,12,3,"div",17),B.dc(55,"div",21),B.ad(56,We,2,1,"mgl-timeline",22),B.ad(57,Ze,3,0,"div",23),B.cc(),B.cc(),B.dc(58,"mat-tab",24),B.Yb(59,"div",25),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()),2&t&&(B.Gb(19),B.yc("ngModel",e.category),B.Gb(7),B.yc("ngIf","Student"===e.category),B.Gb(1),B.yc("ngIf","Employee"===e.category),B.Gb(1),B.yc("ngIf","Visitor"===e.category),B.Gb(1),B.yc("ngIf",0!=(null==e.students?null:e.students.length)),B.Gb(1),B.yc("ngIf",0!=(null==e.employees?null:e.employees.length)),B.Gb(1),B.yc("ngIf",""!=e.mobileNo),B.Gb(1),B.yc("ngIf",e.showFrame),B.Gb(10),B.yc("ngModel",e.timeLine),B.Gb(7),B.yc("ngIf","Student"===e.timeLine),B.Gb(1),B.yc("ngIf","Employee"===e.timeLine),B.Gb(1),B.yc("ngIf","Visitor"===e.timeLine),B.Gb(1),B.yc("ngIf",0!=(null==e.students?null:e.students.length)),B.Gb(1),B.yc("ngIf",0!=(null==e.employees?null:e.employees.length)),B.Gb(1),B.yc("ngIf",""!=e.mobileNo),B.Gb(2),B.yc("ngIf",e.timelineDatas&&0!=(null==e.timelineDatas?null:e.timelineDatas.length)),B.Gb(1),B.yc("ngIf",0==(null==e.timelineDatas?null:e.timelineDatas.length)||null==e.timelineDatas))},directives:[a.a,a.f,Y.a,a.c,C.b,C.a,q.c,q.a,g.b,o.t,o.w,g.a,n.o,J.b,m.b,o.c,d.a,J.e,r.b,r.d,J.f,r.a,De.b,n.n,De.c,De.d,De.e,De.f],pipes:[W.a,W.c],styles:[".font-white[_ngcontent-%COMP%]{color:#fff}.lg-brown[_ngcontent-%COMP%]{background:rgba(165,42,42,.71)}.active[_ngcontent-%COMP%]{background:hsla(0,0%,50.2%,.12941176470588237)}mgl-timeline[_ngcontent-%COMP%]{width:70%}mgl-timeline-entry-header[_ngcontent-%COMP%]{padding:7px!important;margin-left:10px;text-align:left!important}mgl-timeline-entry-dot[_ngcontent-%COMP%]{width:13px!important;height:13px!important;background-color:#8bb3cd;left:-5px!important;pointer-events:none}mgl-timeline-entry-side[_ngcontent-%COMP%]{left:-69%!important}mgl-timeline[_ngcontent-%COMP%] .mgl-timeline-line[_ngcontent-%COMP%]{border:1px solid #6170c2!important;background-color:snow!important;width:0!important}mgl-timeline-entry[_ngcontent-%COMP%]{margin-left:calc(25% + 5px)!important}mgl-timeline-entry-side[_ngcontent-%COMP%] span.material-icons.font-white[_ngcontent-%COMP%]{border-radius:50%;font-size:17px;padding:8px;margin-top:2px}mgl-timeline-entry-header[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:15px}mgl-timeline-entry[_ngcontent-%COMP%]{width:calc(50% - 120px)!important}mgl-timeline-entry-dot.primary[_ngcontent-%COMP%]{top:42%!important}.pt-2[_ngcontent-%COMP%]{padding-top:2px}.alternate[_ngcontent-%COMP%] mgl-timeline-entry-dot[_ngcontent-%COMP%]{top:50%;width:50px;left:-5px!important;height:50px;opacity:1;transform:translateY(-50%) translateX(-50%);box-shadow:none;border-radius:100px}.header-block[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:relative;bottom:3px}.header-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.header-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;font-weight:400}.close-icon[_ngcontent-%COMP%]{background:#d94d5a}.check-icon[_ngcontent-%COMP%], .close-icon[_ngcontent-%COMP%]{color:#fff;border-radius:50%;padding:2px;font-size:11px;line-height:14px;height:12px;width:12px;text-align:center}.check-icon[_ngcontent-%COMP%]{background:#1c9c05}table[_ngcontent-%COMP%]{border-collapse:separate;border-color:hsla(0,0%,50.2%,.3803921568627451);border-spacing:0}th[_ngcontent-%COMP%]{background:hsla(0,0%,50.2%,.21176470588235294);color:#fff;font-size:12px!important;padding-top:4px!important}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:2px 10px}td[_ngcontent-%COMP%]{font-size:10px!important}.text-center[_ngcontent-%COMP%]{text-align:center!important}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:17px!important}tr.mat-header-row[_ngcontent-%COMP%]{height:25px!important}.adv-search[_ngcontent-%COMP%]{position:relative;bottom:16px}.location[_ngcontent-%COMP%]{background:hsla(0,0%,50.2%,.1607843137254902);padding:4px;width:unset!important;min-width:30%}"]}),t})(),data:{title:"Tracking",breadcrumb:"Tracking"}}]}];var Qe=c("Qu3c"),tc=c("aYsj");c.d(e,"ApptrackingModule",(function(){return ec}));let ec=(()=>{class t{}return t.\u0275mod=B.Vb({type:t}),t.\u0275inj=B.Ub({factory:function(e){return new(e||t)},imports:[[n.c,o.m,o.z,m.c,p.c,a.e,Qe.b,r.c,l.n,h.b,g.c,s.b,k.c,N.b,d.b,u.b,C.d,I.b,b.a,f.a,y.b,x.b,H.b,w.c,G.p,v.a,S.a,U.b,De.a,tc.a,i.k.forChild(Ke)]]}),t})()},rnHP:function(t,e,c){"use strict";class i{constructor(){this.sectionId="",this.sectionName="",this.status=""}}var n=c("fXoL");c.d(e,"a",(function(){return o}));let o=(()=>{class t{adapt(t){return this.obj=new i,this.obj.sectionId=t.section_id,this.obj.sectionName=t.section_name,this.obj.status=t.status,this.obj}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},wr8E:function(t,e,c){"use strict";var i=c("tk/3"),n=c("2Vo4"),o=c("lJxs"),d=c("g3s5"),a=c("fXoL");let s=(()=>{class t{constructor(t){this.adapter=t}adapt(t){let e=[];return t.data.forEach(t=>{e.push(this.adapter.adapt(t))}),{keyword:t.keyword,message:t.message,positions:e,pageSize:t.count,page:t.page}}}return t.\u0275fac=function(e){return new(e||t)(a.hc(d.a))},t.\u0275prov=a.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var l=c("qc5V"),r=c("Lzaa");let u=(()=>{class t{adapt(t){return this.obj=new r.a,this.obj.categoryId=t.employee_category_id,this.obj.categoryName=t.name,this.obj.branchId=t.branch_id,this.obj.status=t.status,this.obj}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t){this.adapter=t}adapt(t){let e=[];return t.data.forEach(t=>{e.push(this.adapter.adapt(t))}),{keyword:t.keyword,message:t.message,categories:e,pageSize:t.total_size,page:t.page}}}return t.\u0275fac=function(e){return new(e||t)(a.hc(u))},t.\u0275prov=a.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();c.d(e,"a",(function(){return p}));let p=(()=>{class t{constructor(t,e,c){this.adapter=t,this.catAdapter=e,this.apiService=c,this.recordAddedSubject=new n.a([{}]),this.recordUpdatedSubject=new n.a([{}]),this.userId=0}create(t){let e=new FormData;return e.append("position_name",t.positionName),e.append("employee_category_id",t.categoryId),this.apiService.post("position/create",e).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}update(t){let e=new FormData;return e.append("position_name",t.positionName),e.append("employee_category_id",t.categoryId),e.append("employee_position_id",t.positionId),this.apiService.post("position/update",e).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}status(t,e){return this.apiService.post(2!=e?"position/status":"position/delete",t)}getList(t){let e=new i.e;for(let c in t)e=e.set(c,t[c]);return this.apiService.get("position",e).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}getCategory(){let t=new i.e;return this.apiService.get("category ",t).pipe(Object(o.a)(t=>this.catAdapter.adapt(t)))}getRecordAddedSub(){return this.recordAddedSubject.asObservable()}getRecordUpdatedSub(){return this.recordUpdatedSubject.asObservable()}getpostion(t){return this.apiService.get(`employee/loadPosition/${t}`).pipe(Object(o.a)(t=>this.adapter.adapt(t)))}}return t.\u0275fac=function(e){return new(e||t)(a.hc(s),a.hc(m),a.hc(l.a))},t.\u0275prov=a.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()}}]);
/var/www/krbed.in/../../www/../www/html/../school_portal_admin/60-es2015.10a22fc83e49b36be147.js