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-es5.10a22fc83e49b36be147.js
/
/
function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var c=0;c<t.length;c++){var n=t[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,c){return t&&_defineProperties(e.prototype,t),c&&_defineProperties(e,c),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var c=e[Symbol.toPrimitive];if(void 0!==c){var n=c.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{"73gp":function(e,t,c){"use strict";var n,i=c("tk/3"),o=c("2Vo4"),a=c("lJxs"),d=c("rnHP"),l=c("fXoL"),s=((n=function(){return _createClass((function e(t){_classCallCheck(this,e),this.adapter=t}),[{key:"adapt",value:function(e){var t=this,c=[];return e.data.forEach((function(e){c.push(t.adapter.adapt(e))})),{keyword:e.keyword,message:e.message,sections:c,pageSize:e.count,page:e.page}}}])}()).\u0275fac=function(e){return new(e||n)(l.hc(d.a))},n.\u0275prov=l.Tb({token:n,factory:n.\u0275fac,providedIn:"root"}),n),r=c("qc5V");c.d(t,"a",(function(){return m}));var u,m=((u=function(){return _createClass((function e(t,c){_classCallCheck(this,e),this.adapter=t,this.apiService=c,this.recordAddedSubject=new o.a([{}]),this.recordUpdatedSubject=new o.a([{}])}),[{key:"create",value:function(e){var t=this;return this.apiService.post("section/create",e).pipe(Object(a.a)((function(e){return t.adapter.adapt(e)})))}},{key:"update",value:function(e){var t=this;return this.apiService.post("section/update",e).pipe(Object(a.a)((function(e){return t.adapter.adapt(e)})))}},{key:"status",value:function(e,t){return this.apiService.post(2!=t?"section/status":"section/delete",e)}},{key:"getList",value:function(e){var t=this,c=new i.e;for(var n in e)c=c.set(n,e[n]);return this.apiService.get("section",c).pipe(Object(a.a)((function(e){return t.adapter.adapt(e)})))}},{key:"getRecordAddedSub",value:function(){return this.recordAddedSubject.asObservable()}},{key:"getRecordUpdatedSub",value:function(){return this.recordUpdatedSubject.asObservable()}}])}()).\u0275fac=function(e){return new(e||u)(l.hc(s),l.hc(r.a))},u.\u0275prov=l.Tb({token:u,factory:u.\u0275fac,providedIn:"root"}),u)},Attm:function(e,t,c){"use strict";var n=_createClass((function e(){_classCallCheck(this,e),this.classId="",this.className="",this.status=""})),i=c("fXoL");c.d(t,"a",(function(){return a}));var o,a=((o=function(){return _createClass((function e(){_classCallCheck(this,e)}),[{key:"adapt",value:function(e){return this.obj=new n,this.obj.classId=e.class_id,this.obj.className=e.class_name,this.obj.status=e.status,this.obj}}])}()).\u0275fac=function(e){return new(e||o)},o.\u0275prov=i.Tb({token:o,factory:o.\u0275fac,providedIn:"root"}),o)},Lzaa:function(e,t,c){"use strict";c.d(t,"a",(function(){return n}));var n=_createClass((function e(){_classCallCheck(this,e),this.categoryId="",this.categoryName="",this.branchId="",this.status=""}))},btqD:function(e,t,c){"use strict";c.d(t,"a",(function(){return n}));var n=_createClass((function e(){_classCallCheck(this,e),this.positionId="",this.positionName="",this.categoryName="",this.categoryId="",this.status=""}))},cZdB:function(e,t,c){"use strict";c.d(t,"b",(function(){return o})),c.d(t,"a",(function(){return i}));var n=c("fXoL"),i=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t,c){return c&&t?e.filter(t,c):t}}],[{key:"filter",value:function(e,t){var c=t.toLowerCase();return e.filter((function(e){return function e(t,n){for(var i in t)if(null!==t[i]&&null!=t[i]){if("object"==typeof t[i]&&e(t[i],n))return!0;if(t[i].toString().toLowerCase().includes(c))return!0}return!1}(e,t)}))}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=n.Wb({name:"filter",type:e,pure:!1}),e.\u0275prov=n.Tb({token:e,factory:e.\u0275fac}),e}(),o=function(){var e=_createClass((function e(){_classCallCheck(this,e)}));return e.\u0275mod=n.Vb({type:e}),e.\u0275inj=n.Ub({factory:function(t){return new(t||e)}}),e}()},elPL:function(e,t,c){"use strict";c.d(t,"a",(function(){return f})),c.d(t,"b",(function(){return h})),c.d(t,"c",(function(){return p})),c.d(t,"d",(function(){return s})),c.d(t,"e",(function(){return r})),c.d(t,"f",(function(){return m}));var n=c("fXoL"),i=c("R0Ic"),o=c("ofXK"),a=["*"],d=[[["mgl-timeline-entry-side"]],[["mgl-timeline-entry-dot"]],[["mgl-timeline-entry-header"]],[["mgl-timeline-entry-content"]]],l=["mgl-timeline-entry-side","mgl-timeline-entry-dot","mgl-timeline-entry-header","mgl-timeline-entry-content"],s=function(){var e=_createClass((function e(){_classCallCheck(this,e)}));return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Rb({type:e,selectors:[["mgl-timeline-entry-header"]],ngContentSelectors:a,decls:1,vars:0,template:function(e,t){1&e&&(n.xc(),n.wc(0))},styles:["mgl-timeline-entry-header{position:relative;display:block;overflow:hidden;padding:15px;text-align:center}"],encapsulation:2}),e}(),r=function(){var e=function(){return _createClass((function e(t,c,i,o,a){_classCallCheck(this,e),this.animationBuilder=t,this.elementRef=c,this.renderer=i,this.changeDetectorRef=o,this.document=a,this._expanded=!1,this._alternate=!1,this._mobile=!1,this._size=50,this.animationDone=new n.o,this.expandAnimationTiming="200ms ease",this.collapseAnimationTiming="100ms ease",this.clazz="primary"}),[{key:"size",get:function(){return this._size},set:function(e){this._size=e,this.setStyle()}},{key:"alternate",get:function(){return this._alternate},set:function(e){this._alternate=e,this.setStyle()}},{key:"mobile",get:function(){return this._mobile},set:function(e){this._mobile=e,this.setStyle()}},{key:"expanded",get:function(){return this._expanded},set:function(e){var t=this._expanded!==e;this._expanded=e,t?this.animate():this.setStyle()}},{key:"ngAfterViewInit",value:function(){this.initialStyle=this.document.defaultView.getComputedStyle(this.elementRef.nativeElement),this.setStyle(),this.changeDetectorRef.detectChanges()}},{key:"getCollapsedStyle",value:function(){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"}}},{key:"getTransitionStyle",value:function(){return Object.assign(Object.assign({},this.getCollapsedStyle()),{left:"50%",opacity:.5,boxShadow:"none"})}},{key:"getExpandedStyle",value:function(){return Object.assign(Object.assign({},this.getTransitionStyle()),{left:"0",transform:"translateX(0) translateY(-50%)",width:"100%",height:"100%",opacity:1,borderRadius:0})}},{key:"animate",value:function(){var e=this;this.destroyAnimation(),this.expanded?(this.animation=this.animationBuilder.build([Object(i.m)(this.getCollapsedStyle()),Object(i.e)(this.expandAnimationTiming,Object(i.m)(this.getTransitionStyle())),Object(i.e)(this.expandAnimationTiming,Object(i.m)(this.getExpandedStyle()))]).create(this.elementRef.nativeElement),this.animation.onDone((function(){return e.animationDone.emit({toState:"expanded"})})),this.animation.play()):(this.animation=this.animationBuilder.build([Object(i.m)(this.getExpandedStyle()),Object(i.e)(this.collapseAnimationTiming,Object(i.m)(this.getTransitionStyle())),Object(i.e)(this.collapseAnimationTiming,Object(i.m)(this.getCollapsedStyle()))]).create(this.elementRef.nativeElement),this.animation.onDone((function(){return e.animationDone.emit({toState:"collapsed"})})),this.animation.play())}},{key:"setStyle",value:function(){var e=this;this.destroyAnimation();var t=this.expanded?this.getExpandedStyle():this.getCollapsedStyle();Object.keys(t).forEach((function(c){e.renderer.setStyle(e.elementRef.nativeElement,c,t[c])}))}},{key:"destroyAnimation",value:function(){this.animation&&(this.animation.destroy(),delete this.animation)}}])}();return e.\u0275fac=function(t){return new(t||e)(n.Xb(i.b),n.Xb(n.l),n.Xb(n.G),n.Xb(n.h),n.Xb(o.d))},e.\u0275cmp=n.Rb({type:e,selectors:[["mgl-timeline-entry-dot"]],hostVars:2,hostBindings:function(e,t){2&e&&n.Jb(t.clazz)},inputs:{expandAnimationTiming:"expandAnimationTiming",collapseAnimationTiming:"collapseAnimationTiming",clazz:["class","clazz"],size:"size"},ngContentSelectors:a,decls:1,vars:0,template:function(e,t){1&e&&(n.xc(),n.wc(0))},styles:["mgl-timeline-entry-dot{display:block;position:absolute}"],encapsulation:2}),e}(),u=function(){var e=function(){return _createClass((function e(t,c,i){_classCallCheck(this,e),this.elementRef=t,this.animationBuilder=c,this.renderer=i,this.expandAnimationTiming="200ms ease",this.collapseAnimationTiming="100ms ease",this.animationDone=new n.o,this._expanded=!1}),[{key:"expanded",get:function(){return this._expanded},set:function(e){this.contentHeight=this.elementRef.nativeElement.scrollHeight;var t=this._expanded!==e;this._expanded=e,t&&this.animate()}},{key:"ngAfterViewInit",value:function(){this.contentHeight=this.elementRef.nativeElement.scrollHeight,this.setStyle()}},{key:"getCollapsedStyle",value:function(){return{height:"0px"}}},{key:"getExpandedStyle",value:function(){return{height:this.contentHeight+"px"}}},{key:"animate",value:function(){var e=this;if(this.expanded){var t=this.animationBuilder.build([Object(i.m)(this.getCollapsedStyle()),Object(i.e)(this.expandAnimationTiming,Object(i.m)(this.getExpandedStyle()))]).create(this.elementRef.nativeElement);t.onDone((function(){return e.animationDone.emit({toState:"expanded"})})),t.play()}else{var c=this.animationBuilder.build([Object(i.m)(this.getExpandedStyle()),Object(i.e)(this.collapseAnimationTiming,Object(i.m)(this.getCollapsedStyle()))]).create(this.elementRef.nativeElement);c.onDone((function(){return e.animationDone.emit({toState:"collapsed"})})),c.play()}}},{key:"setStyle",value:function(){var e=this,t=this.expanded?this.getExpandedStyle():this.getCollapsedStyle();Object.keys(t).forEach((function(c){e.renderer.setStyle(e.elementRef.nativeElement,c,t[c])}))}}])}();return e.\u0275fac=function(t){return new(t||e)(n.Xb(n.l),n.Xb(i.b),n.Xb(n.G))},e.\u0275cmp=n.Rb({type:e,selectors:[["mgl-timeline-entry-content"]],inputs:{expandAnimationTiming:"expandAnimationTiming",collapseAnimationTiming:"collapseAnimationTiming"},ngContentSelectors:a,decls:2,vars:0,template:function(e,t){1&e&&(n.xc(),n.dc(0,"div"),n.wc(1),n.cc())},styles:["mgl-timeline-entry-content{position:relative;display:block;overflow:hidden}mgl-timeline-entry-content>div{padding:10px}"],encapsulation:2}),e}(),m=function(){var e=function(){return _createClass((function e(t){_classCallCheck(this,e),this.elementRef=t}),[{key:"alternate",set:function(e){this.elementRef.nativeElement.classList.toggle("alternate",e)}},{key:"mobile",set:function(e){this.elementRef.nativeElement.classList.toggle("mobile",e)}}])}();return e.\u0275fac=function(t){return new(t||e)(n.Xb(n.l))},e.\u0275cmp=n.Rb({type:e,selectors:[["mgl-timeline-entry-side"]],ngContentSelectors:a,decls:1,vars:0,template:function(e,t){1&e&&(n.xc(),n.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}),e}(),p=function(){var e=function(){return _createClass((function e(t){_classCallCheck(this,e),this.elementRef=t,this.subscriptions=[],this.focusOnOpen=!1,this._mobile=!1,this.changed=new n.o,this.animationDone=new n.o}),[{key:"expanded",get:function(){return this.dot?this.dot.expanded&&this.content.expanded:this.content.expanded},set:function(e){this.dot&&e?this.dot.expanded=e:this.content.expanded=e,this.changed.emit(e)}},{key:"mobile",set:function(e){this.elementRef.nativeElement.classList.toggle("mobile",e),this.dot&&(this.dot.mobile=e),this.side&&(this.side.mobile=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this.dot&&this.subscriptions.push(this.dot.animationDone.subscribe((function(t){"expanded"===t.toState?e.content.expanded=!0:e.animationDone.emit(t)}))),this.content&&this.subscriptions.push(this.content.animationDone.subscribe((function(t){e.dot&&"collapsed"===t.toState?e.dot.expanded=!1:(e.focusOnOpen&&e.elementRef.nativeElement.scrollIntoView({behavior:"smooth"}),e.animationDone.emit(t))})))}},{key:"alternate",set:function(e){this.elementRef.nativeElement.classList.toggle("alternate",e),this.dot&&(this.dot.alternate=e),this.side&&(this.side.alternate=e)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}},{key:"collapse",value:function(){this.expanded=!1}},{key:"expand",value:function(){this.expanded=!0}},{key:"toggle",value:function(e){var t=this.containsInPath(e,"mgl-timeline-entry-header"),c=this.containsInPath(e,"mgl-timeline-entry-dot");(t||c)&&(this.expanded=!this.expanded)}},{key:"containsInPath",value:function(e,t){for(var c=e.target;c;){if(c.localName===t)return!0;c=c.parentElement}return!1}}])}();return e.\u0275fac=function(t){return new(t||e)(n.Xb(n.l))},e.\u0275cmp=n.Rb({type:e,selectors:[["mgl-timeline-entry"]],contentQueries:function(e,t,c){var i;1&e&&(n.Pb(c,u,!0),n.Pb(c,s,!0),n.Pb(c,r,!0),n.Pb(c,m,!0)),2&e&&(n.Nc(i=n.mc())&&(t.content=i.first),n.Nc(i=n.mc())&&(t.header=i.first),n.Nc(i=n.mc())&&(t.dot=i.first),n.Nc(i=n.mc())&&(t.side=i.first))},hostVars:2,hostBindings:function(e,t){2&e&&n.Nb("expanded",t.expanded)},outputs:{changed:"expand",animationDone:"animationDone"},ngContentSelectors:l,decls:6,vars:0,consts:[[1,"mgl-timeline-entry-card"],[1,"mgl-timeline-entry-card-header",3,"click"]],template:function(e,t){1&e&&(n.xc(d),n.wc(0),n.dc(1,"div",0),n.dc(2,"div",1),n.lc("click",(function(e){return t.toggle(e)})),n.wc(3,1),n.wc(4,2),n.cc(),n.wc(5,3),n.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}),e}(),h=function(){var e=function(){return _createClass((function e(t,c){_classCallCheck(this,e),this.elementRef=t,this.changeDetectorRef=c,this.toggle=!0,this.mobileWidthThreshold=640,this.alternate=!0,this.side="left",this._focusOnOpen=!1,this.subscriptions=[]}),[{key:"mobile",get:function(){return this.elementRef.nativeElement.classList.contains("mobile")},set:function(e){this.content&&this.content.forEach((function(t){return t.mobile=e})),this.elementRef.nativeElement.classList.toggle("mobile",e)}},{key:"focusOnOpen",get:function(){return this._focusOnOpen},set:function(e){this.content&&this.content.forEach((function(t){return t.focusOnOpen=e})),this._focusOnOpen=e}},{key:"ngOnChanges",value:function(e){this.updateContent()}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}},{key:"ngAfterViewInit",value:function(){var e=this;this.mobile=this.elementRef.nativeElement.clientWidth<this.mobileWidthThreshold,setTimeout((function(){return e.updateContent()})),this.content.changes.subscribe((function(t){e.updateContent()}))}},{key:"updateContent",value:function(){var e=this;this.ngOnDestroy(),this.content&&this.content.forEach((function(t,c){e.toggle&&e.subscriptions.push(t.changed.subscribe((function(c){!0===c&&e.content.filter((function(e){return e!==t})).forEach((function(e){return e.collapse()}))}))),t.alternate=e.alternate?c%2!=0:"right"===e.side,t.mobile=e.mobile,t.focusOnOpen=e.focusOnOpen}))}},{key:"onResize",value:function(e){this.mobile=this.elementRef.nativeElement.clientWidth<this.mobileWidthThreshold}}])}();return e.\u0275fac=function(t){return new(t||e)(n.Xb(n.l),n.Xb(n.h))},e.\u0275cmp=n.Rb({type:e,selectors:[["mgl-timeline"]],contentQueries:function(e,t,c){var i;1&e&&n.Pb(c,p,!1),2&e&&n.Nc(i=n.mc())&&(t.content=i)},hostBindings:function(e,t){1&e&&n.lc("resize",(function(e){return t.onResize(e)}),!1,n.Rc)},inputs:{toggle:"toggle",mobileWidthThreshold:"mobileWidthThreshold",alternate:"alternate",side:"side",focusOnOpen:"focusOnOpen"},features:[n.Eb()],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mgl-timeline-line"]],template:function(e,t){1&e&&(n.xc(),n.Yb(0,"div",0),n.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}),e}(),f=function(){var e=_createClass((function e(){_classCallCheck(this,e)}));return e.\u0275mod=n.Vb({type:e}),e.\u0275inj=n.Ub({factory:function(t){return new(t||e)}}),e}()},g3s5:function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));var n=c("btqD"),i=c("fXoL"),o=function(){var e=function(){return _createClass((function e(){_classCallCheck(this,e)}),[{key:"adapt",value:function(e){var t,c,i,o;return this.obj=new n.a,this.obj.positionId=null!=(t=e.employee_position_id)?t:null===(c=e)||void 0===c?void 0:c.position_id,this.obj.positionName=null!=(i=e.position_name)?i:null===(o=e)||void 0===o?void 0:o.name,this.obj.categoryName=e.category_name,this.obj.categoryId=e.employee_category_id,this.obj.status=e.status,this.obj}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Tb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},k9Bo:function(e,t,c){"use strict";var n,i=c("tk/3"),o=c("2Vo4"),a=c("lJxs"),d=c("Attm"),l=c("fXoL"),s=((n=function(){return _createClass((function e(t){_classCallCheck(this,e),this.adapter=t}),[{key:"adapt",value:function(e){var t=this,c=[];return e.data.forEach((function(e){c.push(t.adapter.adapt(e))})),{keyword:e.keyword,message:e.message,classes:c,pageSize:e.count,page:e.page}}}])}()).\u0275fac=function(e){return new(e||n)(l.hc(d.a))},n.\u0275prov=l.Tb({token:n,factory:n.\u0275fac,providedIn:"root"}),n),r=c("qc5V");c.d(t,"a",(function(){return m}));var u,m=((u=function(){return _createClass((function e(t,c){_classCallCheck(this,e),this.adapter=t,this.apiService=c,this.recordAddedSubject=new o.a([{}]),this.recordUpdatedSubject=new o.a([{}]),this.userId=0}),[{key:"create",value:function(e){var t=this;return this.apiService.post("class/create",e).pipe(Object(a.a)((function(e){return t.adapter.adapt(e)})))}},{key:"update",value:function(e){var t=this;return this.apiService.post("class/update",e).pipe(Object(a.a)((function(e){return t.adapter.adapt(e)})))}},{key:"status",value:function(e,t){return this.apiService.post(2!=t?"class/status":"class/delete",e)}},{key:"getListForClass",value:function(e){var t=this,c=new i.e;for(var n in e)c=c.set(n,e[n]);return this.apiService.get("class",c).pipe(Object(a.a)((function(e){return t.adapter.adapt(e)})))}},{key:"getList",value:function(){var e=this,t=new i.e;return this.apiService.get("class",t).pipe(Object(a.a)((function(t){return e.adapter.adapt(t)})))}},{key:"getRecordAddedSub",value:function(){return this.recordAddedSubject.asObservable()}},{key:"getRecordUpdatedSub",value:function(){return this.recordUpdatedSubject.asObservable()}},{key:"getClassByBatch",value:function(e){var t=this;return this.apiService.get("loadClassByBatch/".concat(e)).pipe(Object(a.a)((function(e){return t.adapter.adapt(e)})))}},{key:"getClasses",value:function(e){var t=this;return this.apiService.get("getAttendClass/".concat(e)).pipe(Object(a.a)((function(e){return t.adapter.adapt(e)})))}}])}()).\u0275fac=function(e){return new(e||u)(l.hc(s),l.hc(r.a))},u.\u0275prov=l.Tb({token:u,factory:u.\u0275fac,providedIn:"root"}),u)},qfYe:function(e,t,c){"use strict";c.r(t);var n=c("tyNb"),i=c("ofXK"),o=c("3Pt+"),a=c("bTqV"),d=c("Wp6s"),l=c("bSwM"),s=c("FKr1"),r=c("iadO"),u=c("NFeN"),m=c("qFsG"),p=c("MutI"),h=c("bv9b"),f=c("QibW"),g=c("xHqg"),v=c("YUcS"),b=c("CzEO"),y=c("lDzL"),k=c("7pIB"),S=c("M9IT"),x=c("Dh3D"),C=c("d3UM"),w=c("STbY"),I=c("wZkO"),_=c("7EHt"),N=c("+0xr"),G=c("R0Ic"),O=c("k9Bo"),D=c("t/Tn"),P=c("dJ6x"),T=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 K(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){B.Sc(c);var n=t.$implicit,i=B.pc(3);return i.getClassesByBatch(n.batchId),i.getStudents()})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.yc("value",n.batchId),B.Gb(1),B.ed(" ",n.batchName," ")}}function Z(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){return B.Sc(c),B.pc(3).getStudents()})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.yc("value",n.classId),B.Gb(1),B.ed(" ",n.className," ")}}function Q(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){return B.Sc(c),B.pc(3).getStudents()})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.yc("value",n.sectionId),B.Gb(1),B.ed(" ",n.sectionName," ")}}function ee(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){B.Sc(c);var n=t.$implicit;return B.pc(3).setStudentId(null==n?null:n.studentId)})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.zc("value",n.studentName),B.Gb(1),B.ed(" ",null==n?null:n.studentName," ")}}var te=function(){return{standalone:!0}};function ce(e,t){if(1&e){var c=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,K,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,Z,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(c),B.pc(2).searchText=e}))("keyup",(function(e){return B.Sc(c),B.pc(2).clearStudentId()})),B.cc(),B.dc(50,"mat-autocomplete",null,36),B.ad(52,ee,2,2,"mat-option",30),B.qc(53,"filter"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.Oc(51),i=B.pc(2);B.Gb(13),B.yc("ngForOf",i.batches),B.Gb(13),B.yc("ngForOf",i.classes),B.Gb(13),B.yc("ngForOf",i.sections),B.Gb(10),B.yc("ngModel",i.searchText)("ngModelOptions",B.Ec(10,te))("matAutocomplete",n),B.Gb(3),B.yc("ngForOf",B.sc(53,7,i.students,i.searchText))}}function ne(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){return B.Sc(c),B.pc(3).getEmployees()})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.yc("value",n.departmentId),B.Gb(1),B.ed(" ",n.name," ")}}function ie(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){return B.Sc(c),B.pc(3).getEmployees()})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.yc("value",n.positionId),B.Gb(1),B.ed(" ",n.positionName," ")}}function oe(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",37),B.lc("click",(function(e){B.Sc(c);var n=t.$implicit;return B.pc(3).setEmployeeId(null==n?null:n.employeeId)})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.zc("value",n.employeeName),B.Gb(1),B.ed(" ",null==n?null:n.employeeName," ")}}function ae(e,t){if(1&e){var c=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,ne,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,ie,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(c),B.pc(2).searchEmp=e}))("keyup",(function(e){return B.Sc(c),B.pc(2).clearEmployeeId()})),B.cc(),B.dc(37,"mat-autocomplete",null,36),B.ad(39,oe,2,2,"mat-option",30),B.qc(40,"filter"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.Oc(38),i=B.pc(2);B.Gb(13),B.yc("ngForOf",i.depts),B.Gb(13),B.yc("ngForOf",i.positions),B.Gb(10),B.yc("ngModel",i.searchEmp)("ngModelOptions",B.Ec(9,te))("matAutocomplete",n),B.Gb(3),B.yc("ngForOf",B.sc(40,6,i.employees,i.searchEmp))}}function de(e,t){if(1&e){var c=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(c),B.pc(2).clearDeviceData()})),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()}}function le(e,t){if(1&e){var c=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(c),B.pc().catChange()})),B.cd(11,"Student "),B.cc(),B.dc(12,"mat-radio-button",25),B.lc("click",(function(e){return B.Sc(c),B.pc().catChange()})),B.cd(13,"Employee "),B.cc(),B.dc(14,"mat-radio-button",26),B.lc("click",(function(e){return B.Sc(c),B.pc().catChange()})),B.cd(15,"Visitor "),B.cc(),B.cc(),B.cc(),B.cc(),B.ad(16,ce,54,11,"div",15),B.ad(17,ae,41,10,"div",15),B.ad(18,de,11,0,"div",15),B.cc()}if(2&e){var n=B.pc();B.Gb(16),B.yc("ngIf","1"==n.control.cat.value),B.Gb(1),B.yc("ngIf",2==n.control.cat.value),B.Gb(1),B.yc("ngIf",3==n.control.cat.value)}}function se(e,t){if(1&e&&(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&e){var c=B.pc().$implicit;B.Gb(3),B.dd(null==c?null:c.studentName),B.Gb(4),B.fd(" ",null==c?null:c.className," - ",null==c?null:c.sectionName,""),B.Gb(4),B.ed(" ",null==c?null:c.rollNo,""),B.Gb(4),B.ed(" ",null==c?null:c.gender,"")}}function re(e,t){if(1&e&&(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&e){var c=B.pc().$implicit;B.Gb(3),B.dd(null==c?null:c.employeeName),B.Gb(3),B.dd(null==c?null:c.departmentName),B.Gb(3),B.dd(null==c?null:c.positionName),B.Gb(4),B.dd(null==c?null:c.employeeCode),B.Gb(4),B.ed(" ",null==c?null:c.gender,"")}}function ue(e,t){if(1&e&&(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&e){var c=B.pc().$implicit;B.Gb(3),B.ed("",null==c?null:c.visitorId," "),B.Gb(3),B.dd(null==c?null:c.visitorName),B.Gb(4),B.ed(" ",null==c?null:c.gender,"")}}function me(e,t){if(1&e&&(B.dc(0,"div"),B.dc(1,"mat-card",42),B.dc(2,"div",31),B.ad(3,se,16,5,"div",43),B.ad(4,re,18,5,"div",43),B.ad(5,ue,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&e){var c=t.$implicit;B.Gb(1),B.Nb("student","Student"==(null==c?null:c.personType))("employee","Employee"==(null==c?null:c.personType))("visitor","Visitor"==(null==c?null:c.personType)),B.Gb(2),B.yc("ngIf","Student"==(null==c?null:c.personType)),B.Gb(1),B.yc("ngIf","Employee"==(null==c?null:c.personType)),B.Gb(1),B.yc("ngIf","Visitor"==(null==c?null:c.personType)),B.Gb(6),B.dd(null==c?null:c.mac),B.Gb(3),B.dd(null==c?null:c.layoutType),B.Gb(2),B.dd(null==c?null:c.categoryName),B.Gb(3),B.dd(null==c?null:c.layoutPositionName),B.Gb(6),B.ed(" ",B.rc(26,15,null==c?null:c.visitedDate)," "),B.Gb(7),B.ed(" ",B.rc(33,17,null==c?null:c.visitedTime)," ")}}function pe(e,t){if(1&e&&(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&e){var c=B.pc().$implicit;B.Gb(3),B.dd(null==c?null:c.studentName),B.Gb(4),B.fd(" ",null==c?null:c.className," - ",null==c?null:c.sectionName,""),B.Gb(4),B.ed(" ",null==c?null:c.rollNo,""),B.Gb(4),B.ed(" ",null==c?null:c.gender,"")}}function he(e,t){if(1&e&&(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&e){var c=B.pc().$implicit;B.Gb(3),B.dd(null==c?null:c.employeeName),B.Gb(3),B.dd(null==c?null:c.departmentName),B.Gb(3),B.dd(null==c?null:c.positionName),B.Gb(4),B.dd(null==c?null:c.employeeCode),B.Gb(4),B.ed(" ",null==c?null:c.gender,"")}}function fe(e,t){if(1&e&&(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&e){var c=B.pc().$implicit;B.Gb(3),B.ed("",null==c?null:c.visitorId," "),B.Gb(3),B.dd(null==c?null:c.visitorName),B.Gb(4),B.ed(" ",null==c?null:c.gender,"")}}function ge(e,t){if(1&e&&(B.dc(0,"div"),B.dc(1,"mat-card",42),B.dc(2,"div",31),B.ad(3,pe,16,5,"div",43),B.ad(4,he,18,5,"div",43),B.ad(5,fe,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&e){var c=t.$implicit;B.Gb(1),B.Nb("student","Student"==(null==c?null:c.personType))("employee","Employee"==(null==c?null:c.personType))("visitor","Visitor"==(null==c?null:c.personType)),B.Gb(2),B.yc("ngIf","Student"==(null==c?null:c.personType)),B.Gb(1),B.yc("ngIf","Employee"==(null==c?null:c.personType)),B.Gb(1),B.yc("ngIf","Visitor"==(null==c?null:c.personType)),B.Gb(6),B.dd(null==c?null:c.mac),B.Gb(3),B.dd(null==c?null:c.layoutType),B.Gb(2),B.dd(null==c?null:c.categoryName),B.Gb(3),B.dd(null==c?null:c.layoutPositionName),B.Gb(6),B.ed(" ",B.rc(26,15,null==c?null:c.dataDate)," "),B.Gb(7),B.ed(" ",B.rc(33,17,null==c?null:c.dataTime)," ")}}function ve(e,t){if(1&e){var c=B.ec();B.dc(0,"button",52),B.lc("click",(function(e){return B.Sc(c),B.pc().getIndividual()})),B.cd(1," Submit "),B.cc()}if(2&e){var n=B.pc();B.yc("disabled",n.isDisabled)}}function be(e,t){1&e&&(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 ye(e,t){1&e&&(B.dc(0,"mat-icon",65),B.cd(1,"close"),B.cc())}function ke(e,t){1&e&&(B.dc(0,"mat-icon",66),B.cd(1,"check"),B.cc())}function Se(e,t){if(1&e&&(B.dc(0,"mat-card",59),B.dc(1,"div",31),B.dc(2,"div",60),B.dc(3,"a"),B.ad(4,ye,2,0,"mat-icon",61),B.ad(5,ke,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&e){var c=t.$implicit;B.Gb(4),B.yc("ngIf",0==(null==c?null:c.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==c?null:c.isAllowed)),B.Gb(6),B.dd(null==c?null:c.mac),B.Gb(3),B.dd(null==c?null:c.layoutType),B.Gb(2),B.dd(null==c?null:c.categoryName),B.Gb(3),B.dd(null==c?null:c.layoutPositionName),B.Gb(6),B.ed(" ",B.rc(26,8,null==c?null:c.visitedDate)," "),B.Gb(7),B.ed(" ",B.rc(33,10,null==c?null:c.visitedTime)," ")}}function xe(e,t){if(1&e&&(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,Se,34,12,"mat-card",58),B.cc()),2&e){var c=B.pc();B.Gb(5),B.gd("",null==c.payLoad[0]?null:c.payLoad[0].studentName,", ",null==c.payLoad[0]?null:c.payLoad[0].className," - ",null==c.payLoad[0]?null:c.payLoad[0].sectionName,""),B.Gb(4),B.ed(" ",null==c.payLoad[0]?null:c.payLoad[0].rollNo,""),B.Gb(4),B.ed(" ",null==c.payLoad[0]?null:c.payLoad[0].gender,""),B.Gb(1),B.yc("ngForOf",c.payLoad)}}function Ce(e,t){1&e&&(B.dc(0,"mat-icon",65),B.cd(1,"close"),B.cc())}function we(e,t){1&e&&(B.dc(0,"mat-icon",66),B.cd(1,"check"),B.cc())}function Ie(e,t){if(1&e&&(B.dc(0,"mat-card",72),B.dc(1,"div",31),B.dc(2,"div",60),B.dc(3,"a"),B.ad(4,Ce,2,0,"mat-icon",61),B.ad(5,we,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&e){var c=t.$implicit;B.Gb(4),B.yc("ngIf",0==(null==c?null:c.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==c?null:c.isAllowed)),B.Gb(6),B.dd(null==c?null:c.mac),B.Gb(3),B.dd(null==c?null:c.layoutType),B.Gb(2),B.dd(null==c?null:c.categoryName),B.Gb(3),B.dd(null==c?null:c.layoutPositionName),B.Gb(6),B.ed(" ",B.rc(26,8,null==c?null:c.visitedDate)," "),B.Gb(7),B.ed(" ",B.rc(33,10,null==c?null:c.visitedTime)," ")}}function _e(e,t){if(1&e&&(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,Ie,34,12,"mat-card",71),B.cc()),2&e){var c=B.pc();B.Gb(5),B.fd("",null==c.payLoad[0]?null:c.payLoad[0].employeeName," , ",null==c.payLoad[0]?null:c.payLoad[0].employeeCode,""),B.Gb(4),B.ed(" ",null==c.payLoad[0]?null:c.payLoad[0].gender,""),B.Gb(5),B.ed(":\xa0\xa0\xa0",null==c.payLoad[0]?null:c.payLoad[0].departmentName,""),B.Gb(4),B.ed(":\xa0\xa0\xa0",null==c.payLoad[0]?null:c.payLoad[0].positionName,""),B.Gb(1),B.yc("ngForOf",c.payLoad)}}function Ne(e,t){1&e&&(B.dc(0,"mat-icon",65),B.cd(1,"close"),B.cc())}function Ge(e,t){1&e&&(B.dc(0,"mat-icon",66),B.cd(1,"check"),B.cc())}function Oe(e,t){if(1&e&&(B.dc(0,"mat-card",74),B.dc(1,"div",31),B.dc(2,"div",60),B.dc(3,"a"),B.ad(4,Ne,2,0,"mat-icon",61),B.ad(5,Ge,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&e){var c=t.$implicit;B.Gb(4),B.yc("ngIf",0==(null==c?null:c.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==c?null:c.isAllowed)),B.Gb(4),B.ed("",null==c?null:c.visitorId," "),B.Gb(3),B.dd(null==c?null:c.visitorName),B.Gb(4),B.ed(" ",null==c?null:c.gender,""),B.Gb(6),B.dd(null==c?null:c.mac),B.Gb(3),B.dd(null==c?null:c.layoutType),B.Gb(2),B.dd(null==c?null:c.categoryName),B.Gb(3),B.dd(null==c?null:c.layoutPositionName),B.Gb(6),B.ed(" ",B.rc(37,11,null==c?null:c.visitedDate)," "),B.Gb(7),B.ed(" ",B.rc(44,13,null==c?null:c.visitedTime)," ")}}function De(e,t){if(1&e&&(B.dc(0,"mat-card-content"),B.ad(1,Oe,45,15,"mat-card",73),B.cc()),2&e){var c=B.pc();B.Gb(1),B.yc("ngForOf",c.payLoad)}}var Pe,Te,Me=((Pe=function(){return _createClass((function e(t,c,n,i,o,a,d,l,s,r,u,m,p){_classCallCheck(this,e),this.commonService=t,this.classService=c,this.batchService=n,this.departmentService=i,this.sectionService=o,this.positionService=a,this.studentService=d,this.employeeService=l,this._mqttService=s,this.config=r,this.router=u,this.apiServ=m,this.visiterServ=p,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}),[{key:"ngOnInit",value:function(){this.form(),this.getCurrentAcademicYear(),this.getDepts(),this.getPositions(),this.getVisiters()}},{key:"form",value:function(){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("")})}},{key:"control",get:function(){return this.basicForm.controls}},{key:"getCurrentAcademicYear",value:function(){var e=this;this.commonService.getCurrentAcademicYear().subscribe((function(t){var c;"success"==t.keyword&&(e.currentAcademicYearId=null===(c=t.data[0])||void 0===c?void 0:c.academic_year_id,e.batchService.getListByAcademic(e.currentAcademicYearId).subscribe((function(t){"success"==t.keyword&&(e.batches=t.batches,e.getSections(),console.log(e.batches,"batches"))})))}))}},{key:"getClassesByBatch",value:function(e){var t=this;this.clearDeviceData(),this.classService.getClassByBatch(e).subscribe((function(e){"success"==e.keyword&&(t.classes=e.classes,t.getStudents())}))}},{key:"getSections",value:function(){var e=this;this.sectionService.getList({sortByKey:"section_name",sortByType:"ASC"}).subscribe((function(t){"success"==t.keyword&&(e.sections=t.sections.filter((function(e){return"1"==e.status})),e.getStudents())}))}},{key:"getStudents",value:function(){var e,t,c,n,i,o,a=this;this.clearDeviceData();var d=this.basicForm.value;console.log(this.basicForm.value,"2345678"),""!=(null===(e=d)||void 0===e?void 0:e.batch)&&""!=(null===(t=d)||void 0===t?void 0:t.class)&&""!=(null===(c=d)||void 0===c?void 0:c.section)&&(this.StuPagination.filterAcademic=JSON.stringify([this.currentAcademicYearId]),this.StuPagination.filterBatch=JSON.stringify([null===(n=d)||void 0===n?void 0:n.batch]),this.StuPagination.filterClass=JSON.stringify([null===(i=d)||void 0===i?void 0:i.class]),this.StuPagination.filterSection=JSON.stringify([null===(o=d)||void 0===o?void 0:o.section]),this.studentService.getList(this.StuPagination).subscribe((function(e){"success"==e.keyword&&(a.students=e.studentRegistrations)})))}},{key:"setStudentId",value:function(e){this.clearDeviceData(),this.basicForm.patchValue({studentId:e})}},{key:"clearStudentId",value:function(){this.clearDeviceData(),this.basicForm.patchValue({studentId:""})}},{key:"getDepts",value:function(){var e=this;this.departmentService.getList(void 0).subscribe((function(t){"success"==t.keyword&&(e.depts=t.departments.filter((function(e){return"1"==e.status})))}))}},{key:"getPositions",value:function(){var e=this;this.positionService.getList(void 0).subscribe((function(t){"success"==t.keyword&&(e.positions=t.positions.filter((function(e){return"1"==e.status})))}))}},{key:"getEmployees",value:function(){var e,t,c,n,i=this;this.clearDeviceData();var o=this.basicForm.value;""!=(null===(e=o)||void 0===e?void 0:e.depart)&&""!=(null===(t=o)||void 0===t?void 0:t.position)&&(this.empPgination.filterDepartment=JSON.stringify([null===(c=o)||void 0===c?void 0:c.depart]),this.empPgination.filterPosition=JSON.stringify([null===(n=o)||void 0===n?void 0:n.position]),this.employeeService.getList(this.empPgination).subscribe((function(e){"success"==e.keyword&&(i.employees=e.employees,console.log(i.employees,"this.employees"))})))}},{key:"setEmployeeId",value:function(e){this.clearDeviceData(),this.basicForm.patchValue({employeeId:e})}},{key:"clearEmployeeId",value:function(){this.clearDeviceData(),this.basicForm.patchValue({employeeId:""})}},{key:"getVisiters",value:function(){var e=this;this.visiterServ.getList(void 0).subscribe((function(t){"success"==t.keyword&&(e.visitors=t.visitors.filter((function(e){return"1"==e.status})),console.log(e.visitors,"visiters"))}))}},{key:"catChange",value:function(){this.clearDeviceData(),this.basicForm.patchValue({batch:"",class:"",section:"",studentId:"",depart:"",position:"",employeeId:"",mobileNo:""}),this.searchText="",this.searchEmp="",this.employees=[],this.students=[]}},{key:"typeChange",value:function(){this.catChange(),this.basicForm.patchValue({cat:""})}},{key:"onTabClick",value:function(e){var t=this;this.clearDeviceData(),this.basicForm.reset(),console.log(this.basicForm.value,"345678"),setTimeout((function(){0==e||(1==e?(t.topicname="".concat(t.customerId,"-").concat(t.schoolId,"-restricted"),t.subscribeNewTopic()):2==e&&(t.topicname="".concat(t.customerId,"-").concat(t.schoolId,"-nomovement"),t.subscribeForNOmove()))}),1e3)}},{key:"getIndividual",value:function(){var e,t,c,n,i,o,a,d;if("2"==this.control.type.value){var l=this.basicForm.value;if("1"==l.cat&&""!=(null===(e=l)||void 0===e?void 0:e.studentId))this.topicname="".concat(this.customerId,"-").concat(this.schoolId,"-std-").concat(null===(t=l)||void 0===t?void 0:t.studentId),console.log(this.topicname,"students"),this.subscribeNewTopic();else if("2"==l.cat&&""!=(null===(c=l)||void 0===c?void 0:c.employeeId))this.topicname="".concat(this.customerId,"-").concat(this.schoolId,"-emp-").concat(null===(n=l)||void 0===n?void 0:n.employeeId),console.log(this.topicname,"employee"),this.subscribeNewTopic();else if("3"==l.cat&&""!=(null===(i=l)||void 0===i?void 0:i.mobileNo)){var s=this.visitors.find((function(e){var t,c;return(null===(t=e)||void 0===t?void 0:t.mobileNo)==(null===(c=l)||void 0===c?void 0:c.mobileNo)}));console.log(null===(o=s)||void 0===o?void 0:o.mobileNo,"visitors345678"),(null===(a=s)||void 0===a?void 0:a.mobileNo)?(this.topicname="".concat(this.customerId,"-").concat(this.schoolId,"-vst-").concat(null===(d=l)||void 0===d?void 0:d.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(l,"form")}else this.router.navigate(["/school/tracking/preview"])}},{key:"ngOnDestroy",value:function(){this.clearDeviceData()}},{key:"subscribeNewTopic",value:function(){var e=this;this.isDisabled=!0,console.log("inside subscribe new topic"),this.subscription=this._mqttService.observe(this.topicname).subscribe((function(t){e.msg=JSON.parse(t.payload.toString()),e.payLoad.unshift(e.msg)})),console.log("subscribed to topic: "+this.topicname)}},{key:"subscribeForNOmove",value:function(){var e=this;this.isDisabled=!0,console.log("inside subscribe new topic"),this.subscription=this._mqttService.observe(this.topicname).subscribe((function(t){e.msg=JSON.parse(t.payload.toString()),e.payLoad.unshift(e.msg[0])})),console.log("subscribed to topic: "+this.topicname)}},{key:"clearDeviceData",value:function(){var e,t;this.payLoad=[],0!=(null===(e=this.payLoad)||void 0===e?void 0:e.length)||(this.isDisabled=!1),null===(t=this.subscription)||void 0===t||t.unsubscribe()}},{key:"deleteDP",value:function(){this.apiServ.deleteDP().subscribe((function(e){console.log(e,"12345678976543212345678")}))}}])}()).\u0275fac=function(e){return new(e||Pe)(B.Xb(L.a),B.Xb(O.a),B.Xb(D.a),B.Xb(P.a),B.Xb(M.a),B.Xb(T.a),B.Xb(F.a),B.Xb(E.a),B.Xb(A.b),B.Xb(j.a),B.Xb(n.g),B.Xb(V.a),B.Xb(z.a))},Pe.\u0275cmp=B.Rb({type:Pe,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(e,t){1&e&&(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(e){return t.onTabClick(e.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(e){return t.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,le,19,3,"div",15),B.cc(),B.cc(),B.dc(25,"mat-tab",16),B.ad(26,me,34,19,"div",17),B.cc(),B.dc(27,"mat-tab",18),B.ad(28,ge,34,19,"div",17),B.cc(),B.cc(),B.dc(29,"div",8),B.dc(30,"div",19),B.ad(31,ve,2,1,"button",20),B.cc(),B.cc(),B.cc(),B.ad(32,be,4,0,"mat-card-content",15),B.cc(),B.cc(),B.dc(33,"mat-card",21),B.ad(34,xe,15,6,"mat-card-content",22),B.ad(35,_e,20,6,"mat-card-content",15),B.ad(36,De,2,1,"mat-card-content",15),B.cc()),2&e&&(B.Gb(10),B.yc("formGroup",t.basicForm),B.Gb(14),B.yc("ngIf","2"==t.control.type.value),B.Gb(2),B.yc("ngForOf",t.payLoad),B.Gb(2),B.yc("ngForOf",t.payLoad),B.Gb(3),B.yc("ngIf",1==t.control.type.value||2==t.control.type.value),B.Gb(1),B.yc("ngIf",0==(null==t.payLoad?null:t.payLoad.length)),B.Gb(2),B.yc("ngIf",1==t.control.cat.value&&0!=(null==t.payLoad?null:t.payLoad.length)),B.Gb(1),B.yc("ngIf",2==t.control.cat.value&&0!=(null==t.payLoad?null:t.payLoad.length)),B.Gb(1),B.yc("ngIf",3==t.control.cat.value&&0!=(null==t.payLoad?null:t.payLoad.length)))},directives:[d.a,d.f,Y.a,d.c,I.b,I.a,o.D,o.u,o.k,q.c,q.a,f.b,o.t,o.i,f.a,i.o,i.n,J.b,J.e,C.a,m.b,o.c,H.c,o.w,H.a,s.p,a.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(G.o)("detailExpand",[Object(G.l)("collapsed",Object(G.m)({height:"0px",minHeight:"0",visibility:"hidden"})),Object(G.l)("expanded",Object(G.m)({height:"*",visibility:"visible"})),Object(G.n)("expanded <=> collapsed",Object(G.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),Pe),Le=c("0IaG"),Fe=((Te=function(){return _createClass((function e(t){_classCallCheck(this,e),this.dialog=t}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||Te)(B.Xb(Le.b))},Te.\u0275cmp=B.Rb({type:Te,selectors:[["app-general"]],decls:1,vars:0,consts:[[1,"create_btn"]],template:function(e,t){1&e&&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}"]}),Te),Ee=c("Gg3P"),Ae=c("Olgc"),je=c("VxG0"),Ve=c("sqj7");function Xe(e,t){1&e&&(B.dc(0,"mat-icon",15),B.cd(1,"close"),B.cc())}function Re(e,t){1&e&&(B.dc(0,"mat-icon",16),B.cd(1,"check"),B.cc())}function ze(e,t){if(1&e&&(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&e){var c=B.pc().$implicit;B.Gb(3),B.dd(null==c?null:c.studentName),B.Gb(4),B.fd(" ",null==c?null:c.className," - ",null==c?null:c.sectionName,""),B.Gb(4),B.ed(" ",null==c?null:c.rollNo,""),B.Gb(4),B.ed(" ",null==c?null:c.gender,"")}}function Be(e,t){if(1&e&&(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&e){var c=B.pc().$implicit;B.Gb(3),B.dd(null==c?null:c.employeeName),B.Gb(3),B.dd(null==c?null:c.departmentName),B.Gb(3),B.dd(null==c?null:c.positionName),B.Gb(4),B.dd(null==c?null:c.employeeCode),B.Gb(4),B.ed(" ",null==c?null:c.gender,"")}}function Ye(e,t){if(1&e&&(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&e){var c=B.pc().$implicit;B.Gb(3),B.ed("",null==c?null:c.visitorId," "),B.Gb(3),B.dd(null==c?null:c.visitorName),B.Gb(4),B.ed(" ",null==c?null:c.gender,"")}}function $e(e,t){if(1&e&&(B.dc(0,"mat-card",5),B.dc(1,"div",6),B.dc(2,"div",7),B.dc(3,"a"),B.ad(4,Xe,2,0,"mat-icon",8),B.ad(5,Re,2,0,"mat-icon",9),B.cc(),B.cc(),B.ad(6,ze,16,5,"div",10),B.ad(7,Be,18,5,"div",10),B.ad(8,Ye,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&e){var c=t.$implicit;B.Nb("student","Student"==(null==c?null:c.personType))("employee","Employee"==(null==c?null:c.personType))("visitor","Visitor"==(null==c?null:c.personType)),B.Gb(2),B.Nb("pt-36","Employee"==(null==c?null:c.personType))("pt-28","Student"==(null==c?null:c.personType)||"Visitor"==(null==c?null:c.personType)),B.Gb(2),B.yc("ngIf",0==(null==c?null:c.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==c?null:c.isAllowed)),B.Gb(1),B.yc("ngIf","Student"==(null==c?null:c.personType)),B.Gb(1),B.yc("ngIf","Employee"==(null==c?null:c.personType)),B.Gb(1),B.yc("ngIf","Visitor"==(null==c?null:c.personType)),B.Gb(6),B.dd(null==c?null:c.mac),B.Gb(3),B.dd(null==c?null:c.layoutType),B.Gb(2),B.dd(null==c?null:c.categoryName),B.Gb(3),B.dd(null==c?null:c.layoutPositionName),B.Gb(6),B.ed(" ",null==c?null:c.visitedDate," "),B.Gb(6),B.ed(" ",null==c?null:c.visitedTime," ")}}function qe(e,t){1&e&&(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())}var Je,He,Ue=((He=function(){return _createClass((function e(t,c,n,i,o){_classCallCheck(this,e),this.data=t,this.dialogRef=c,this.dialog=n,this._mqttService=i,this.config=o,this.isConnected=!1,this.payLoad=[],this.config.init(),this.customerId=this.config.customerId,this.schoolId=this.config.branchId}),[{key:"ngOnInit",value:function(){this.subscribeNewTopic()}},{key:"ngOnDestroy",value:function(){var e;this.payLoad=[],null===(e=this.subscription)||void 0===e||e.unsubscribe()}},{key:"subscribeNewTopic",value:function(){var e=this;console.log("inside subscribe new topic"),this.subscription=this._mqttService.observe(this.data.topic_name).subscribe((function(t){e.msg=JSON.parse(t.payload.toString()),e.payLoad.unshift(e.msg)})),console.log("subscribed to topic: "+this.data.topic_name)}}])}()).\u0275fac=function(e){return new(e||He)(B.Xb(Le.a),B.Xb(Le.f),B.Xb(Le.b),B.Xb(A.b),B.Xb(j.a))},He.\u0275cmp=B.Rb({type:He,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(e,t){1&e&&(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,$e,35,21,"mat-card",3),B.cc(),B.ad(7,qe,4,0,"mat-card-content",4),B.cc()),2&e&&(B.Gb(3),B.fd("",t.data.layout_category_name," - ",t.data.position_name,""),B.Gb(3),B.yc("ngForOf",t.payLoad),B.Gb(1),B.yc("ngIf",0==(null==t.payLoad?null:t.payLoad.length)))},directives:[d.a,d.f,Y.a,d.c,i.n,i.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}"]}),He),We=((Je=function(){return _createClass((function e(t,c,n,i,o,a,d){_classCallCheck(this,e),this.dialog=t,this.layoutEditorServ=c,this.loader=n,this.toaster=i,this.router=o,this.permission=a,this.ngZone=d,this.topicName=""}),[{key:"ngOnInit",value:function(){this.getLayoutDevice(),this.startPreview();var e=this;setTimeout((function(){e.lazyLoadAssignedSpotMark()}),3e3),this.clickSpot()}},{key:"ngAfterViewInit",value:function(){}},{key:"goTo",value:function(){this.router.navigate(["school/tracking"])}},{key:"startPreview",value:function(){var e=void 0;this.layoutEditorServ.getLayoutContent().subscribe((function(t){t.data.layout_content&&(e=JSON.parse(t.data.layout_content)),$("#tgss-layout").imageMapPro(e)}))}},{key:"getLayoutDevice",value:function(){var e=this;window.localStorage.setItem("lytdv",JSON.stringify([])),this.layoutEditorServ.getLayoutDeviceList().subscribe((function(t){0!=t.data.length&&(window.localStorage.setItem("lytdv",JSON.stringify(t.data)),e.lazyLoadAssignedSpotMark())}))}},{key:"lazyLoadAssignedSpotMark",value:function(){var e=window.localStorage.getItem("lytdv");(e=e?JSON.parse(e):[]).forEach((function(e){var t='[id="'.concat(e.spot_id,'"]'),c=$(document).find("".concat(t));c&&c.addClass("assignedSpot");var n=$(document).find("".concat(t," .imp-spot-fontawesome-icon"));n&&n.addClass("greenMark")}))}},{key:"loadLayoutDevice",value:function(e,t){var c=this;this.loader.open(),this.layoutEditorServ.getLayoutDevice(e).subscribe((function(e){"success"==e.keyword?e.data.topic_name&&(c.loader.close(),console.log(e.data,"2345678"),c.dialog.open(Ue,{width:"75%",panelClass:"select-section",data:e.data}).afterClosed().subscribe((function(e){console.log("Dialog result: ".concat(e))}))):(c.toaster.present("No topic found."),c.loader.close())}))}},{key:"isDoubleClicked",value:function(e){return!!e.data("isclicked")||(e.data("isclicked",!0),setTimeout((function(){e.removeData("isclicked")}),1e3),!1)}},{key:"clickSpot",value:function(){var e=this;$(document).on("click",".assignedSpot",(function(t){if(!e.isDoubleClicked($(this))){console.log("CLICKED");var c=$(this).attr("id"),n=$(this).attr("data-shape-title");c&&e.ngZone.run((function(){e.loadLayoutDevice(c,n)}))}}))}}])}()).\u0275fac=function(e){return new(e||Je)(B.Xb(Le.b),B.Xb(Ve.a),B.Xb(Ee.a),B.Xb(Ae.a),B.Xb(n.g),B.Xb(je.a),B.Xb(B.A))},Je.\u0275cmp=B.Rb({type:Je,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(e,t){1&e&&(B.dc(0,"div",0),B.dc(1,"div",1),B.dc(2,"div",2),B.dc(3,"button",3),B.lc("click",(function(e){return t.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}"]}),Je),Ke=c("live");function Ze(e,t){1&e&&(B.dc(0,"mat-icon",18),B.cd(1,"close"),B.cc())}function Qe(e,t){1&e&&(B.dc(0,"mat-icon",19),B.cd(1,"check"),B.cc())}function et(e,t){if(1&e&&(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,Ze,2,0,"mat-icon",16),B.ad(19,Qe,2,0,"mat-icon",17),B.cc(),B.cc(),B.cc()),2&e){var c=t.$implicit;B.Gb(2),B.dd(null==c?null:c.studentName),B.Gb(2),B.dd(null==c?null:c.className),B.Gb(2),B.dd(null==c?null:c.sectionName),B.Gb(2),B.dd(null==c?null:c.rollNo),B.Gb(2),B.dd(null==c?null:c.gender),B.Gb(2),B.dd(null==c?null:c.mac),B.Gb(2),B.dd(B.rc(15,9,null==c?null:c.visitedTime)),B.Gb(4),B.yc("ngIf",0==(null==c?null:c.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==c?null:c.isAllowed))}}function tt(e,t){1&e&&(B.dc(0,"div",20),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function ct(e,t){1&e&&(B.dc(0,"mat-icon",18),B.cd(1,"close"),B.cc())}function nt(e,t){1&e&&(B.dc(0,"mat-icon",19),B.cd(1,"check"),B.cc())}function it(e,t){if(1&e&&(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,ct,2,0,"mat-icon",16),B.ad(19,nt,2,0,"mat-icon",17),B.cc(),B.cc(),B.cc()),2&e){var c=t.$implicit;B.Gb(2),B.dd(null==c?null:c.employeeName),B.Gb(2),B.dd(null==c?null:c.departmentName),B.Gb(2),B.dd(null==c?null:c.positionName),B.Gb(2),B.dd(null==c?null:c.employeeCode),B.Gb(2),B.dd(null==c?null:c.gender),B.Gb(2),B.dd(null==c?null:c.mac),B.Gb(2),B.dd(B.rc(15,9,null==c?null:c.visitedTime)),B.Gb(4),B.yc("ngIf",0==(null==c?null:c.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==c?null:c.isAllowed))}}function ot(e,t){1&e&&(B.dc(0,"div",20),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function at(e,t){1&e&&(B.dc(0,"mat-icon",18),B.cd(1,"close"),B.cc())}function dt(e,t){1&e&&(B.dc(0,"mat-icon",19),B.cd(1,"check"),B.cc())}function lt(e,t){if(1&e&&(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,at,2,0,"mat-icon",16),B.ad(13,dt,2,0,"mat-icon",17),B.cc(),B.cc(),B.cc()),2&e){var c=t.$implicit;B.Gb(2),B.dd(null==c?null:c.visitorId),B.Gb(2),B.dd(null==c?null:c.gender),B.Gb(2),B.dd(null==c?null:c.mac),B.Gb(2),B.dd(B.rc(9,6,null==c?null:c.visitedTime)),B.Gb(4),B.yc("ngIf",0==(null==c?null:c.isAllowed)),B.Gb(1),B.yc("ngIf",1==(null==c?null:c.isAllowed))}}function st(e,t){1&e&&(B.dc(0,"div",20),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function rt(e,t){if(1&e&&(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,et,20,11,"tr",11),B.cc(),B.cc(),B.ad(24,tt,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,it,20,11,"tr",11),B.cc(),B.cc(),B.ad(47,ot,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,lt,14,8,"tr",11),B.cc(),B.cc(),B.ad(64,st,3,0,"div",12),B.cc(),B.cc(),B.cc()),2&e){var c=B.pc();B.Gb(2),B.Ac("label","Students (",null==c.filterStudent?null:c.filterStudent.length,")"),B.Gb(21),B.yc("ngForOf",c.filterStudent),B.Gb(1),B.yc("ngIf",0==(null==c.filterStudent?null:c.filterStudent.length)),B.Gb(1),B.Ac("label","Employees (",null==c.filterEmployee?null:c.filterEmployee.length,")"),B.Gb(21),B.yc("ngForOf",c.filterEmployee),B.Gb(1),B.yc("ngIf",0==(null==c.filterEmployee?null:c.filterEmployee.length)),B.Gb(1),B.Ac("label","Visitors (",null==c.filterVisitor?null:c.filterVisitor.length,")"),B.Gb(15),B.yc("ngForOf",c.filterVisitor),B.Gb(1),B.yc("ngIf",0==(null==c.filterVisitor?null:c.filterVisitor.length))}}function ut(e,t){1&e&&(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())}var mt,pt=((mt=function(){return _createClass((function e(t,c,n,i,o,a){_classCallCheck(this,e),this.data=t,this.dialogRef=c,this.dialog=n,this._mqttService=i,this.config=o,this.severdatePipe=a,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}),[{key:"ngOnInit",value:function(){this.subscribeNewTopic()}},{key:"getFormatDate",value:function(e){return this.severdatePipe.transform(e)}},{key:"ngOnDestroy",value:function(){var e;this.payLoad=[],this.empPayload=[],this.stuPayload=[],this.visitPayload=[],this.filterEmployee=[],this.filterStudent=[],this.filterVisitor=[],null===(e=this.subscription)||void 0===e||e.unsubscribe()}},{key:"subscribeNewTopic",value:function(){var e=this;console.log("inside subscribe new topic"),this.subscription=this._mqttService.observe(this.data.topic_name).subscribe((function(t){e.msg=JSON.parse(t.payload.toString()),e.payLoad.unshift(e.msg),e.empPayload=e.payLoad.filter((function(e){return"Employee"==e.personType})),e.stuPayload=e.payLoad.filter((function(e){return"Student"==e.personType})),e.visitPayload=e.payLoad.filter((function(e){return"Visitor"==e.personType})),e.FilterEmployeelist(),e.FilterStudentlist(),e.FilterVisitorlist()})),console.log("subscribed to topic: "+this.data.topic_name)}},{key:"FilterEmployeelist",value:function(){this.filterEmployee=this.empPayload.reduce((function(e,t){return 0==e.filter((function(e){return e.employeeId===t.employeeId})).length&&e.push(t),e}),[])}},{key:"FilterStudentlist",value:function(){this.filterStudent=this.stuPayload.reduce((function(e,t){return 0==e.filter((function(e){return e.studentId===t.studentId})).length&&e.push(t),e}),[])}},{key:"FilterVisitorlist",value:function(){this.filterVisitor=this.visitPayload.reduce((function(e,t){return 0==e.filter((function(e){return e.visitorId===t.visitorId})).length&&e.push(t),e}),[])}}])}()).\u0275fac=function(e){return new(e||mt)(B.Xb(Le.a),B.Xb(Le.f),B.Xb(Le.b),B.Xb(A.b),B.Xb(j.a),B.Xb(W.d))},mt.\u0275cmp=B.Rb({type:mt,selectors:[["app-live-tracking"]],features:[B.Fb([{provide:s.c,useClass:Ke.b},{provide:s.f,useValue:Ke.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(e,t){1&e&&(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,rt,65,9,"mat-card-content",4),B.ad(9,ut,4,0,"mat-card-content",5),B.cc()),2&e&&(B.Gb(3),B.gd("",t.data.layout_type_name," - ",t.data.layout_category_name," - ",t.data.position_name,""),B.Gb(2),B.ed("Date : ",B.rc(6,6,t.getFormatDate(t.date)),""),B.Gb(3),B.yc("ngIf",0!=(null==t.payLoad?null:t.payLoad.length)),B.Gb(1),B.yc("ngIf",0==(null==t.payLoad?null:t.payLoad.length)))},directives:[d.a,d.f,Y.a,i.o,d.c,I.b,I.a,i.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}"]}),mt);function ht(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){B.Sc(c);var n=t.$implicit,i=B.pc(2);return i.getClassesByBatch(n.batchId),i.getStudents()})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.yc("value",n.batchId),B.Gb(1),B.ed(" ",n.batchName," ")}}function ft(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){return B.Sc(c),B.pc(2).getStudents()})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.yc("value",n.classId),B.Gb(1),B.ed(" ",n.className," ")}}function gt(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){return B.Sc(c),B.pc(2).getStudents()})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.yc("value",n.sectionId),B.Gb(1),B.ed(" ",n.sectionName," ")}}function vt(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){B.Sc(c);var n=t.$implicit;return B.pc(2).setStudentId(null==n?null:n.studentId,n)})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.zc("value",n.studentName),B.Gb(1),B.ed(" ",null==n?null:n.studentName," ")}}var bt=function(){return{standalone:!0}};function yt(e,t){if(1&e){var c=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,ht,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,ft,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,gt,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(c),B.pc().searchText=e}))("keyup",(function(e){return B.Sc(c),B.pc().clearStudentId()})),B.cc(),B.dc(50,"mat-autocomplete",null,20),B.ad(52,vt,2,2,"mat-option",14),B.qc(53,"filter"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.Oc(51),i=B.pc();B.Gb(13),B.yc("ngForOf",i.batches),B.Gb(13),B.yc("ngForOf",i.classes),B.Gb(13),B.yc("ngForOf",i.sections),B.Gb(10),B.yc("ngModel",i.searchText)("ngModelOptions",B.Ec(10,bt))("matAutocomplete",n),B.Gb(3),B.yc("ngForOf",B.sc(53,7,i.students,i.searchText))}}function kt(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){return B.Sc(c),B.pc(2).getEmployees()})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.yc("value",n.departmentId),B.Gb(1),B.ed(" ",n.name," ")}}function St(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){return B.Sc(c),B.pc(2).getEmployees()})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.yc("value",n.positionId),B.Gb(1),B.ed(" ",n.positionName," ")}}function xt(e,t){if(1&e){var c=B.ec();B.dc(0,"mat-option",21),B.lc("click",(function(e){B.Sc(c);var n=t.$implicit;return B.pc(2).setEmployeeId(null==n?null:n.employeeId,n)})),B.cd(1),B.cc()}if(2&e){var n=t.$implicit;B.zc("value",n.employeeName),B.Gb(1),B.ed(" ",null==n?null:n.employeeName," ")}}function Ct(e,t){if(1&e){var c=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,kt,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,St,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(c),B.pc().searchEmp=e}))("keyup",(function(e){return B.Sc(c),B.pc().clearEmployeeId()})),B.cc(),B.dc(37,"mat-autocomplete",null,20),B.ad(39,xt,2,2,"mat-option",14),B.qc(40,"filter"),B.cc(),B.cc(),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.Oc(38),i=B.pc();B.Gb(13),B.yc("ngForOf",i.depts),B.Gb(13),B.yc("ngForOf",i.positions),B.Gb(10),B.yc("ngModel",i.searchEmp)("ngModelOptions",B.Ec(9,bt))("matAutocomplete",n),B.Gb(3),B.yc("ngForOf",B.sc(40,6,i.employees,i.searchEmp))}}function wt(e,t){1&e&&(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 It(e,t){if(1&e){var c=B.ec();B.dc(0,"button",28),B.lc("click",(function(e){return B.Sc(c),B.pc().submitStudent()})),B.cd(1,"Submit"),B.cc()}if(2&e){var n=B.pc();B.yc("disabled",""==n.control.studentId.value)}}function _t(e,t){if(1&e){var c=B.ec();B.dc(0,"button",28),B.lc("click",(function(e){return B.Sc(c),B.pc().submitEmployee()})),B.cd(1,"Submit"),B.cc()}if(2&e){var n=B.pc();B.yc("disabled",""==n.control.employeeId.value)}}var Nt,Gt,Ot=((Nt=function(){return _createClass((function e(t,c,n,i,o,a,d,l,s,r,u,m){_classCallCheck(this,e),this.data=t,this.dialogRef=c,this.commonService=n,this.classService=i,this.batchService=o,this.departmentService=a,this.sectionService=d,this.positionService=l,this.studentService=s,this.employeeService=r,this.router=u,this.visiterServ=m,this.searchText="",this.searchEmp="",this.StuPagination={filterAcademic:"",filterBatch:"",filterClass:"",filterSection:""},this.empPgination={filterDepartment:"",filterPosition:""},this.studentAllowed=!1,this.category="",this.category=t}),[{key:"ngOnInit",value:function(){this.form(),this.getCurrentAcademicYear(),this.getDepts(),this.getPositions(),this.getVisiters()}},{key:"form",value:function(){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("")})}},{key:"control",get:function(){return this.basicForm.controls}},{key:"getCurrentAcademicYear",value:function(){var e=this;this.commonService.getCurrentAcademicYear().subscribe((function(t){var c;"success"==t.keyword&&(e.currentAcademicYearId=null===(c=t.data[0])||void 0===c?void 0:c.academic_year_id,e.batchService.getListByAcademic(e.currentAcademicYearId).subscribe((function(t){"success"==t.keyword&&(e.batches=t.batches,e.getSections(),console.log(e.batches,"batches"))})))}))}},{key:"getClassesByBatch",value:function(e){var t=this;this.classService.getClassByBatch(e).subscribe((function(e){"success"==e.keyword&&(t.classes=e.classes,t.getStudents())}))}},{key:"getSections",value:function(){var e=this;this.sectionService.getList({sortByKey:"section_name",sortByType:"ASC"}).subscribe((function(t){"success"==t.keyword&&(e.sections=t.sections.filter((function(e){return"1"==e.status})),e.getStudents())}))}},{key:"getStudents",value:function(){var e,t,c,n,i,o,a=this,d=this.basicForm.value;console.log(this.basicForm.value,"2345678"),""!=(null===(e=d)||void 0===e?void 0:e.batch)&&""!=(null===(t=d)||void 0===t?void 0:t.class)&&""!=(null===(c=d)||void 0===c?void 0:c.section)&&(this.StuPagination.filterAcademic=JSON.stringify([this.currentAcademicYearId]),this.StuPagination.filterBatch=JSON.stringify([null===(n=d)||void 0===n?void 0:n.batch]),this.StuPagination.filterClass=JSON.stringify([null===(i=d)||void 0===i?void 0:i.class]),this.StuPagination.filterSection=JSON.stringify([null===(o=d)||void 0===o?void 0:o.section]),this.studentService.getList(this.StuPagination).subscribe((function(e){"success"==e.keyword&&(a.students=e.studentRegistrations)})))}},{key:"setStudentId",value:function(e,t){this.selectedStu=t,this.basicForm.patchValue({studentId:e})}},{key:"clearStudentId",value:function(){this.basicForm.patchValue({studentId:""})}},{key:"getDepts",value:function(){var e=this;this.departmentService.getList(void 0).subscribe((function(t){"success"==t.keyword&&(e.depts=t.departments.filter((function(e){return"1"==e.status})))}))}},{key:"getPositions",value:function(){var e=this;this.positionService.getList(void 0).subscribe((function(t){"success"==t.keyword&&(e.positions=t.positions.filter((function(e){return"1"==e.status})))}))}},{key:"getEmployees",value:function(){var e,t,c,n,i=this,o=this.basicForm.value;""!=(null===(e=o)||void 0===e?void 0:e.depart)&&""!=(null===(t=o)||void 0===t?void 0:t.position)&&(this.empPgination.filterDepartment=JSON.stringify([null===(c=o)||void 0===c?void 0:c.depart]),this.empPgination.filterPosition=JSON.stringify([null===(n=o)||void 0===n?void 0:n.position]),this.employeeService.getList(this.empPgination).subscribe((function(e){"success"==e.keyword&&(i.employees=e.employees,console.log(i.employees,"this.employees"))})))}},{key:"setEmployeeId",value:function(e,t){this.selectedEmp=t,this.basicForm.patchValue({employeeId:e})}},{key:"clearEmployeeId",value:function(){this.basicForm.patchValue({employeeId:""})}},{key:"getVisiters",value:function(){var e=this;this.visiterServ.getList(void 0).subscribe((function(t){"success"==t.keyword&&(e.visitors=t.visitors.filter((function(e){return"1"==e.status})),console.log(e.visitors,"visiters"))}))}},{key:"submitStudent",value:function(){this.dialogRef.close(this.selectedStu)}},{key:"submitEmployee",value:function(){this.dialogRef.close(this.selectedEmp)}}])}()).\u0275fac=function(e){return new(e||Nt)(B.Xb(Le.a),B.Xb(Le.f),B.Xb(L.a),B.Xb(O.a),B.Xb(D.a),B.Xb(P.a),B.Xb(M.a),B.Xb(T.a),B.Xb(F.a),B.Xb(E.a),B.Xb(n.g),B.Xb(z.a))},Nt.\u0275cmp=B.Rb({type:Nt,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(e,t){1&e&&(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,yt,54,11,"div",4),B.ad(8,Ct,41,10,"div",4),B.ad(9,wt,11,0,"div",4),B.ad(10,It,2,1,"button",5),B.ad(11,_t,2,1,"button",5),B.dc(12,"a",6),B.lc("click",(function(e){return t.dialogRef.close()})),B.cd(13,"Discard"),B.cc(),B.cc(),B.cc(),B.cc()),2&e&&(B.Gb(6),B.yc("formGroup",t.basicForm),B.Gb(1),B.yc("ngIf","Student"===t.category),B.Gb(1),B.yc("ngIf","Employee"===t.category),B.Gb(1),B.yc("ngIf","Visitor"===t.category),B.Gb(1),B.yc("ngIf","Student"==t.category),B.Gb(1),B.yc("ngIf","Employee"==t.category))},directives:[d.a,d.f,Y.a,d.c,o.D,o.u,o.k,i.o,q.c,q.a,J.b,J.e,C.a,o.t,o.i,i.n,m.b,o.c,H.c,o.w,H.a,s.p,a.a],pipes:[U.a],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.ml-0[_ngcontent-%COMP%]{margin-left:0!important}"],data:{animation:[Object(G.o)("detailExpand",[Object(G.l)("collapsed",Object(G.m)({height:"0px",minHeight:"0",visibility:"hidden"})),Object(G.l)("expanded",Object(G.m)({height:"*",visibility:"visible"})),Object(G.n)("expanded <=> collapsed",Object(G.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),Nt),Dt=c("lJxs"),Pt=c("V2So"),Tt=c("v5iQ"),Mt=((Gt=function(){return _createClass((function e(t,c,n){_classCallCheck(this,e),this.apiService=t,this.empAdapter=c,this.stuAdapter=n}),[{key:"getEmployeeByEmpCode",value:function(e){var t=this;return this.apiService.get("employee/loadById/".concat(e)).pipe(Object(Dt.a)((function(e){return t.empAdapter.adapt(e)})))}},{key:"getStudentByRollNo",value:function(e){var t=this;return this.apiService.get("student/getByRollno/".concat(e)).pipe(Object(Dt.a)((function(e){return t.stuAdapter.adapt(e)})))}},{key:"getStudentTimeLineData",value:function(e){return this.apiService.deviceget("track/get/student-record-by-date",e)}},{key:"getEmployeeTimeLineData",value:function(e){return this.apiService.deviceget("track/get/employee-record-by-date",e)}},{key:"trackVisitor",value:function(e){return this.apiService.deviceget("visitor/get/visitor-detail",e)}},{key:"getTodayTimeline",value:function(e){return this.apiService.getTodayTimeline(e)}},{key:"subscribeHub",value:function(e){return this.apiService.subscribeHub(e)}},{key:"unsubscribeHub",value:function(e){return this.apiService.unsubscribeHub(e)}},{key:"getStudentMac",value:function(e){return this.apiService.get("getCurrentStuMac/".concat(e))}},{key:"getEmployeeMac",value:function(e){return this.apiService.get("getCurrentEmpMac/".concat(e))}}])}()).\u0275fac=function(e){return new(e||Gt)(B.hc(V.a),B.hc(Pt.a),B.hc(Tt.a))},Gt.\u0275prov=B.Tb({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt),Lt=c("AytR"),Ft=c("jhN1"),Et=c("elPL");function At(e,t){if(1&e){var c=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(c),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(c),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(c);var t=B.pc();return t.getStudentByRollNo(t.rollNo,"Student")})),B.cd(16,"Search"),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.pc();B.Gb(9),B.yc("ngModel",n.rollNo),B.Gb(6),B.yc("disabled",""==n.rollNo)}}function jt(e,t){if(1&e){var c=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(c),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(c),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(c);var t=B.pc();return t.getEmployeeByEmpCode(t.empCode,"Employee")})),B.cd(16,"Search"),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.pc();B.Gb(9),B.yc("ngModel",n.empCode),B.Gb(6),B.yc("disabled",""==n.empCode)}}function Vt(e,t){if(1&e){var c=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(c),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(c),B.pc().track("Visitor")})),B.cd(12,"Search"),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.pc();B.Gb(9),B.yc("ngModel",n.mobileNo)}}function Xt(e,t){if(1&e&&(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&e){var c=B.pc(2),n=null;B.Gb(12),B.gd(" ",null==(n=c.getPayload())?null:n.layout_type_name," - ",null==(n=c.getPayload())?null:n.layout_category_name," - ",null==(n=c.getPayload())?null:n.position_name," ")}}function Rt(e,t){1&e&&(B.dc(0,"div",44),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function zt(e,t){if(1&e&&(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,Xt,13,3,"table",38),B.ad(19,Rt,3,0,"div",23),B.cc()),2&e){var c=B.pc();B.Gb(4),B.ed(" : ",null==c.students?null:c.students.studentName,""),B.Gb(4),B.ed(" : ",null==c.students?null:c.students.batchName,""),B.Gb(4),B.fd(" : ",null==c.students?null:c.students.className," - ",null==c.students?null:c.students.sectionName,""),B.Gb(4),B.ed(" ",B.rc(17,7,c.getFormatDate(c.currentDate))," "),B.Gb(2),B.yc("ngIf",0!=(null==c.payLoad?null:c.payLoad.length)&&0==c.tabIndex),B.Gb(1),B.yc("ngIf",0==c.showFrame)}}function Bt(e,t){if(1&e&&(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&e){var c=B.pc(2),n=null;B.Gb(12),B.gd(" ",null==(n=c.getPayload())?null:n.layout_type_name," - ",null==(n=c.getPayload())?null:n.layout_category_name," - ",null==(n=c.getPayload())?null:n.position_name," ")}}function Yt(e,t){1&e&&(B.dc(0,"div",44),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function $t(e,t){if(1&e&&(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,Bt,13,3,"table",38),B.ad(19,Yt,3,0,"div",23),B.cc()),2&e){var c=B.pc();B.Gb(4),B.ed(" : ",null==c.employees?null:c.employees.employeeName,""),B.Gb(4),B.ed(" : ",null==c.employees?null:c.employees.departmentName,""),B.Gb(4),B.ed(" : ",null==c.employees?null:c.employees.positionName,""),B.Gb(4),B.ed(" ",B.rc(17,6,c.getFormatDate(c.currentDate))," "),B.Gb(2),B.yc("ngIf",0!=(null==c.payLoad?null:c.payLoad.length)&&0==c.tabIndex),B.Gb(1),B.yc("ngIf",0==c.showFrame)}}function qt(e,t){if(1&e&&(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&e){var c=B.pc(2),n=null;B.Gb(12),B.gd(" ",null==(n=c.getPayload())?null:n.layout_type_name," - ",null==(n=c.getPayload())?null:n.layout_category_name," - ",null==(n=c.getPayload())?null:n.position_name," ")}}function Jt(e,t){1&e&&(B.dc(0,"div",44),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}function Ht(e,t){if(1&e&&(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,qt,13,3,"table",38),B.ad(7,Jt,3,0,"div",23),B.cc()),2&e){var c=B.pc();B.Gb(4),B.ed(" ",B.rc(5,3,c.getFormatDate(c.currentDate))," "),B.Gb(2),B.yc("ngIf",0!=(null==c.payLoad?null:c.payLoad.length)&&0==c.tabIndex),B.Gb(1),B.yc("ngIf",0==c.showFrame)}}function Ut(e,t){if(1&e&&B.Yb(0,"iframe",45),2&e){var c=B.pc();B.yc("src",c.urlSafe,B.Uc)}}function Wt(e,t){if(1&e){var c=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(c),B.pc().clearStudent()}))("ngModelChange",(function(e){return B.Sc(c),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(c),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(c);var t=B.pc();return t.getStudentByRollNo(t.rollNo,"Student")})),B.cd(16,"Search"),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.pc();B.Gb(9),B.yc("ngModel",n.rollNo),B.Gb(6),B.yc("disabled",""==n.rollNo)}}function Kt(e,t){if(1&e){var c=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(c),B.pc().clearEmployee()}))("ngModelChange",(function(e){return B.Sc(c),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(c),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(c);var t=B.pc();return t.getEmployeeByEmpCode(t.empCode,"Employee")})),B.cd(16,"Search"),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.pc();B.Gb(9),B.yc("ngModel",n.empCode),B.Gb(6),B.yc("disabled",""==n.empCode)}}function Zt(e,t){if(1&e){var c=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(c),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(c),B.pc().getTimeLineTracking("Visitor")})),B.cd(12,"Search"),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.pc();B.Gb(9),B.yc("ngModel",n.mobileNo)}}function Qt(e,t){if(1&e){var c=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(c),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(c),B.pc().getTimeLineTracking("Student")})),B.cd(25,"Track"),B.cc(),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.Oc(22),i=B.pc();B.Gb(4),B.ed(" : ",null==i.students?null:i.students.studentName,""),B.Gb(4),B.ed(" : ",null==i.students?null:i.students.batchName,""),B.Gb(4),B.fd(" : ",null==i.students?null:i.students.className," - ",null==i.students?null:i.students.sectionName,""),B.Gb(7),B.yc("matDatepicker",n)("ngModel",i.choosedDate),B.Gb(1),B.yc("for",n)}}function ec(e,t){if(1&e){var c=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(c),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(c),B.pc().getTimeLineTracking("Employee")})),B.cd(25,"Track"),B.cc(),B.cc(),B.cc(),B.cc()}if(2&e){var n=B.Oc(22),i=B.pc();B.Gb(4),B.ed(" : ",null==i.employees?null:i.employees.employeeName,""),B.Gb(4),B.ed(" : ",null==i.employees?null:i.employees.departmentName,""),B.Gb(4),B.ed(" : ",null==i.employees?null:i.employees.positionName,""),B.Gb(7),B.yc("matDatepicker",n)("ngModel",i.choosedDate),B.Gb(1),B.yc("for",n)}}function tc(e,t){if(1&e){var c=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(c),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(c),B.pc().getTimeLineTracking("Visitor")})),B.cd(11,"Track"),B.cc(),B.cc()}if(2&e){var n=B.Oc(9),i=B.pc();B.Gb(6),B.yc("matDatepicker",n)("ngModel",i.choosedDate),B.Gb(1),B.yc("for",n)}}function cc(e,t){if(1&e&&(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&e){var c=t.$implicit,n=B.pc(2),i=null;B.Gb(4),B.ed(" ",null!=c&&c.locationName?null==c?null:c.locationName:null==(i=n.getLocationName(null==c?null:c.topic))?null:i.position_name,""),B.Gb(2),B.fd("",null!=c&&c.InTime?B.rc(7,4,null==c?null:c.InTime):B.rc(8,6,null==c?null:c.inTime)," - ",null!=c&&c.OutTime?B.rc(9,8,null==c?null:c.OutTime):B.rc(10,10,null==c?null:c.outTime),""),B.Gb(7),B.dd(null!=c&&c.timeDifference?B.rc(14,12,null==c?null:c.timeDifference):B.rc(15,14,"00:00:00"))}}function nc(e,t){if(1&e&&(B.dc(0,"mgl-timeline",55),B.ad(1,cc,20,16,"mgl-timeline-entry",56),B.cc()),2&e){var c=B.pc();B.Gb(1),B.yc("ngForOf",c.timelineDatas)}}function ic(e,t){1&e&&(B.dc(0,"div",44),B.dc(1,"h6"),B.cd(2,"No tracking data found"),B.cc(),B.cc())}var oc,ac=[{path:"",children:[{path:"tracking-old",component:Me,data:{title:"Tracking",breadcrumb:"Tracking"}},{path:"general",component:Fe,data:{title:"General Tracking",breadcrumb:"General Tracking"}},{path:"preview",component:We,data:{title:"Infrastrucutre Layout",breadcrumb:"Infrastructure Layout"}},{path:"",component:(oc=function(){return _createClass((function e(t,c,n,i,o,a,d,l,s,r,u,m,p){_classCallCheck(this,e),this.dialog=t,this.modelService=c,this.visiterServ=n,this.severdatePipe=i,this.toaster=o,this.layoutEditorServ=a,this.loader=d,this.router=l,this.permission=s,this.ngZone=r,this._mqttService=u,this.config=m,this.sanitizer=p,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}),[{key:"getFormatDate",value:function(e){return this.severdatePipe.transform(e)}},{key:"catChange",value:function(){this.students=[],this.employees=[],this.timelineDatas=[],this.rollNo="",this.empCode="",this.mobileNo="",this.choosedDate=this.getFormatDate(this.currentDate),this.showFrame=!1,this.clearSessionData()}},{key:"clearSessionData",value:function(){var e,t;this.payLoad=[],0!=(null===(e=this.payLoad)||void 0===e?void 0:e.length)||(this.isDisabled=!1),null===(t=this.subscription)||void 0===t||t.unsubscribe(),this.removeCircleProcess()}},{key:"openDialog",value:function(e){var t=this;this.dialog.open(Ot,{width:"40%",data:e,disableClose:!0}).afterClosed().subscribe((function(c){var n,i;c&&(t.clearSessionData(),"Student"==e?(t.students=c,0!=(null===(n=t.students)||void 0===n?void 0:n.length)&&(1==t.tabIndex?t.getTimeLineTracking(e):t.track(e)),console.log(c,"result")):"Employee"==e&&(t.employees=c,0!=(null===(i=t.employees)||void 0===i?void 0:i.length)&&(1==t.tabIndex?t.getTimeLineTracking(e):t.track(e))))}))}},{key:"openDialog1",value:function(){this.dialog.open(pt,{width:"100%"}).afterClosed().subscribe((function(e){console.log("The dialog was closed")}))}},{key:"ngOnInit",value:function(){this.getVisiters()}},{key:"ngOnDestroy",value:function(){var e;this.payLoad=[],null===(e=this.subscription)||void 0===e||e.unsubscribe()}},{key:"tabChange",value:function(e){console.log(e,"index"),this.catChange(),this.category="",this.timeLine="",this.tabIndex=e,0==e?this.getLocationTracking():1==e?this.choosedDate=this.getFormatDate(this.currentDate):2==e&&this.getLocationTracking()}},{key:"getStudentByRollNo",value:function(e,t){var c=this;console.log(e,"rollNo"),this.clearSessionData(),this.modelService.getStudentByRollNo(e).subscribe((function(e){var n,i;"success"==e.keyword?(c.students=""==e.studentRegistrations[0].studentId?[]:e.studentRegistrations[0],0!=(null===(n=c.students)||void 0===n?void 0:n.length)?1==c.tabIndex?c.getTimeLineTracking(t):c.track(t):0==(null===(i=c.students)||void 0===i?void 0:i.length)&&(c.timelineDatas=[],c.toaster.present("No student found, Use advance filter to track student"))):(c.students=[],c.timelineDatas=[],c.toaster.present("No student found, Use advance filter to track student")),console.log(c.students,"this.students")}))}},{key:"getEmployeeByEmpCode",value:function(e,t){var c=this;this.clearSessionData(),this.modelService.getEmployeeByEmpCode(e).subscribe((function(e){var n,i,o,a;"success"==e.keyword?(c.employees=""==(null===(n=e.employees[0])||void 0===n?void 0:n.employeeId)?[]:null===(i=e)||void 0===i?void 0:i.employees[0],0!=(null===(o=c.employees)||void 0===o?void 0:o.length)?1==c.tabIndex?c.getTimeLineTracking(t):c.track(t):0==(null===(a=c.employees)||void 0===a?void 0:a.length)&&(c.timelineDatas=[],c.toaster.present("No employee found, Use advance filter to track employee"))):(c.employees=[],c.timelineDatas=[],c.toaster.present("No employee found, Use advance filter to track employee")),console.log(c.employees,"this.employees")}))}},{key:"getVisiters",value:function(){var e=this;this.visiterServ.getList(void 0).subscribe((function(t){"success"==t.keyword&&(e.visitors=t.visitors.filter((function(e){return"1"==e.status})),console.log(e.visitors,"visiters"))}))}},{key:"track",value:function(e){var t,c,n,i,o,a=this;if(this.clearSessionData(),"Student"==e&&0!=(null===(t=this.students)||void 0===t?void 0:t.length))this.modelService.getStudentMac(this.students.studentId).subscribe((function(e){var t,c;"success"==(null===(t=e)||void 0===t?void 0:t.keyword)?(a.topicName="".concat(null===(c=e.data)||void 0===c?void 0:c.mac_address),console.log(a.topicName,"students"),a.getLiveTrackingData(a.topicName)):a.toaster.present("Student have no mac address")}));else if("Employee"==e&&0!=(null===(c=this.employees)||void 0===c?void 0:c.length))this.modelService.getEmployeeMac(this.employees.employeeId).subscribe((function(e){var t,c;"success"==(null===(t=e)||void 0===t?void 0:t.keyword)?(a.topicName="".concat(null===(c=a.employees)||void 0===c?void 0:c.macAddress),console.log(a.topicName,"employee"),a.getLiveTrackingData(a.topicName)):a.toaster.present("Employee have no mac address")}));else if("Visitor"==e&&""!=this.mobileNo){var d=this.visitors.find((function(e){var t;return(null===(t=e)||void 0===t?void 0:t.mobileNo)==a.mobileNo}));console.log(null===(n=d)||void 0===n?void 0:n.macAddress,"visitors_macAddress"),(null===(i=d)||void 0===i?void 0:i.mobileNo)?(this.topicName="".concat(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()}},{key:"checkRequired",value:function(){R.a.fire({title:"Check Required",text:"Fill Mandatory Fields",icon:"warning"})}},{key:"getLiveTrackingData",value:function(e){var t=window.location.hostname,c=t.split(".");c.length>=3&&(c.includes("www")?c[1]:c[0]),console.log("school1",t,"tenant"),this.url="".concat(Lt.a.liveTrackingUrl,"?tid=school1&branch=").concat(this.schoolId,"&endPoint=PP&mac=").concat(e),this.showFrame=!0,this.urlSafe=this.sanitizer.bypassSecurityTrustResourceUrl(this.url),console.log(this.urlSafe,"this.urlSafe")}},{key:"getLocationTracking",value:function(){this.getLayoutDevice(),this.startPreview();var e=this;setTimeout((function(){e.lazyLoadAssignedSpotMark()}),3e3),this.clickSpot()}},{key:"startPreview",value:function(){var e=void 0;this.layoutEditorServ.getLayoutContent().subscribe((function(t){t.data.layout_content&&(e=JSON.parse(t.data.layout_content)),$("#tgss-layout").imageMapPro(e)}))}},{key:"getLayoutDevice",value:function(){var e=this;window.localStorage.setItem("lytdv",JSON.stringify([])),this.layoutEditorServ.getLayoutDeviceList().subscribe((function(t){0!=t.data.length&&(window.localStorage.setItem("lytdv",JSON.stringify(t.data)),e.layoutDevData=t.data,e.lazyLoadAssignedSpotMark())}))}},{key:"lazyLoadAssignedSpotMark",value:function(){var e=window.localStorage.getItem("lytdv");(e=e?JSON.parse(e):[]).forEach((function(e){var t='[id="'.concat(e.spot_id,'"]'),c=$(document).find("".concat(t));c&&c.addClass("assignedSpot");var n=$(document).find("".concat(t," .imp-spot-fontawesome-icon"));n&&n.addClass("greenMark")}))}},{key:"loadLayoutDevice",value:function(e,t){var c=this;2==this.tabIndex&&(this.loader.open(),this.layoutEditorServ.getLayoutDevice(e).subscribe((function(e){if("success"==e.keyword){if(e.data.topic_name){c.loader.close(),console.log(e.data,"2345678");var t=c.dialog.open(pt,{width:"100%",panelClass:"select-section",data:e.data});c.subscribeHub(e.data),t.afterClosed().subscribe((function(t){console.log("Dialog result: ".concat(t)),c.unsubscribeHub(e.data)}))}}else c.toaster.present("No topic found."),c.loader.close()})))}},{key:"subscribeHub",value:function(e){var t,c=new FormData;c.append("topic",null===(t=e)||void 0===t?void 0:t.topic_name),this.modelService.subscribeHub(c).subscribe((function(e){}))}},{key:"unsubscribeHub",value:function(e){var t,c=new FormData;c.append("topic",null===(t=e)||void 0===t?void 0:t.topic_name),this.modelService.unsubscribeHub(c).subscribe((function(e){}))}},{key:"isDoubleClicked",value:function(e){return!!e.data("isclicked")||(e.data("isclicked",!0),setTimeout((function(){e.removeData("isclicked")}),1e3),!1)}},{key:"clickSpot",value:function(){var e=this;$(document).on("click",".assignedSpot",(function(t){if(!e.isDoubleClicked($(this))){console.log("CLICKED");var c=$(this).attr("id"),n=$(this).attr("data-shape-title");c&&e.ngZone.run((function(){e.loadLayoutDevice(c,n)}))}}))}},{key:"removeCircleProcess",value:function(){var e,t,c=this,n=null===(t=null===(e=this.layoutDevData)||void 0===e?void 0:e.find((function(e){var t;return e.topic_name==(null===(t=c.msg)||void 0===t?void 0:t.topic)})))||void 0===t?void 0:t.spot_id;$(document).find("#"+n).removeClass("circle-ripple")}},{key:"removeRemainCircleProcess",value:function(){var e=this;this.layoutDevData.filter((function(t){var c;return t.topic_name!=(null===(c=e.msg)||void 0===c?void 0:c.topic)})),this.layoutDevData.forEach((function(e){var t;$(document).find("#"+(null===(t=e)||void 0===t?void 0:t.spot_id)).removeClass("circle-ripple")}))}},{key:"applyCircleProcess",value:function(){var e,t=this,c=(null===(e=this.layoutDevData)||void 0===e?void 0:e.find((function(e){var c;return e.topic_name==(null===(c=t.msg)||void 0===c?void 0:c.topic)}))).spot_id;this.removeRemainCircleProcess(),$(document).find("#"+c).addClass("circle-ripple")}},{key:"subscribeNewTopic",value:function(){var e=this;console.log("inside subscribe new topic"),this.isDisabled=!0,this.subscription=this._mqttService.observe(this.topicName).subscribe((function(t){e.msg=JSON.parse(t.payload.toString()),e.payLoad.unshift(e.msg),e.applyCircleProcess()})),console.log("subscribed to topic: "+this.topicName)}},{key:"clearStudent",value:function(){this.students=[],this.timelineDatas=[]}},{key:"clearEmployee",value:function(){this.employees=[],this.timelineDatas=[]}},{key:"getTimeLineTracking",value:function(e){var t,c,n,i=this,o=this.getFormatDate(this.choosedDate);if("Student"==e)this.modelService.getStudentMac(this.students.studentId).subscribe((function(e){var t,c;if("success"==(null===(t=e)||void 0===t?void 0:t.keyword)){var n={customerId:String(i.customerId),schoolId:String(i.schoolId),studentId:i.students.studentId,thisDate:String(o),mac:null===(c=e.data)||void 0===c?void 0:c.mac_address};i.loader.open(),i.modelService.getStudentTimeLineData(n).subscribe((function(e){i.timelineDatas=e,i.loader.close(),console.log(i.timelineDatas,"data")}))}else i.toaster.present("Student have no mac address")}));else if("Employee"==e)this.modelService.getEmployeeMac(this.employees.employeeId).subscribe((function(e){var t,c;if("success"==(null===(t=e)||void 0===t?void 0:t.keyword)){var n={customerId:String(i.customerId),schoolId:String(i.schoolId),employeeId:i.employees.employeeId,thisDate:String(o),mac:null===(c=e.data)||void 0===c?void 0:c.mac_address};i.loader.open(),i.modelService.getEmployeeTimeLineData(n).subscribe((function(e){i.timelineDatas=e,i.loader.close(),console.log(i.timelineDatas,"data")}))}else i.toaster.present("Employee have no mac address")}));else if("Visitor"==e&&""!=this.mobileNo){var a=this.visitors.find((function(e){var t;return(null===(t=e)||void 0===t?void 0:t.mobileNo)==i.mobileNo}));if(console.log(null===(t=a)||void 0===t?void 0:t.mobileNo,"visitors345678"),null===(c=a)||void 0===c?void 0:c.mobileNo){var d={customerId:String(this.customerId),schoolId:String(this.schoolId),visitorMobile:this.mobileNo,fromDate:String(o),toDate:String(o),mac:null===(n=a)||void 0===n?void 0:n.macAddress};this.modelService.trackVisitor(d).subscribe((function(e){console.log(e.allowedAreas,"allowedAreas"),i.timelineDatas=e.allowedAreas,i.timelineDatas=i.timelineDatas.concat(e.nonAllowedAreas),console.log(i.timelineDatas,"data"),i.loader.close()}))}else R.a.fire({title:"Visitor Tracking",text:"Please provide the valid visitor number",icon:"error"})}else this.checkRequired()}},{key:"getPayload",value:function(){var e=this;return this.layoutDevData.find((function(t){var c;return t.topic_name==(null===(c=e.msg)||void 0===c?void 0:c.topic)}))}},{key:"getLocationName",value:function(e){return this.layoutDevData.find((function(t){return t.topic_name==e}))}}])}(),oc.\u0275fac=function(e){return new(e||oc)(B.Xb(Le.b),B.Xb(Mt),B.Xb(z.a),B.Xb(W.d),B.Xb(Ae.a),B.Xb(Ve.a),B.Xb(Ee.a),B.Xb(n.g),B.Xb(je.a),B.Xb(B.A),B.Xb(A.b),B.Xb(j.a),B.Xb(Ft.b))},oc.\u0275cmp=B.Rb({type:oc,selectors:[["app-tracking"]],features:[B.Fb([{provide:s.c,useClass:Ke.b},{provide:s.f,useValue:Ke.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(e,t){1&e&&(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(e){return t.tabChange(e.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(e){return t.category=e}))("change",(function(e){return t.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,At,17,2,"div",16),B.ad(27,jt,17,2,"div",16),B.ad(28,Vt,13,1,"div",16),B.ad(29,zt,20,9,"div",17),B.ad(30,$t,20,8,"div",17),B.ad(31,Ht,8,5,"div",17),B.ad(32,Ut,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(e){return t.catChange()}))("ngModelChange",(function(e){return t.timeLine=e})),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,Wt,17,2,"div",16),B.ad(50,Kt,17,2,"div",16),B.ad(51,Zt,13,1,"div",16),B.ad(52,Qt,26,7,"div",17),B.ad(53,ec,26,6,"div",17),B.ad(54,tc,12,3,"div",17),B.dc(55,"div",21),B.ad(56,nc,2,1,"mgl-timeline",22),B.ad(57,ic,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&e&&(B.Gb(19),B.yc("ngModel",t.category),B.Gb(7),B.yc("ngIf","Student"===t.category),B.Gb(1),B.yc("ngIf","Employee"===t.category),B.Gb(1),B.yc("ngIf","Visitor"===t.category),B.Gb(1),B.yc("ngIf",0!=(null==t.students?null:t.students.length)),B.Gb(1),B.yc("ngIf",0!=(null==t.employees?null:t.employees.length)),B.Gb(1),B.yc("ngIf",""!=t.mobileNo),B.Gb(1),B.yc("ngIf",t.showFrame),B.Gb(10),B.yc("ngModel",t.timeLine),B.Gb(7),B.yc("ngIf","Student"===t.timeLine),B.Gb(1),B.yc("ngIf","Employee"===t.timeLine),B.Gb(1),B.yc("ngIf","Visitor"===t.timeLine),B.Gb(1),B.yc("ngIf",0!=(null==t.students?null:t.students.length)),B.Gb(1),B.yc("ngIf",0!=(null==t.employees?null:t.employees.length)),B.Gb(1),B.yc("ngIf",""!=t.mobileNo),B.Gb(2),B.yc("ngIf",t.timelineDatas&&0!=(null==t.timelineDatas?null:t.timelineDatas.length)),B.Gb(1),B.yc("ngIf",0==(null==t.timelineDatas?null:t.timelineDatas.length)||null==t.timelineDatas))},directives:[d.a,d.f,Y.a,d.c,I.b,I.a,q.c,q.a,f.b,o.t,o.w,f.a,i.o,J.b,m.b,o.c,a.a,J.e,r.b,r.d,J.f,r.a,Et.b,i.n,Et.c,Et.d,Et.e,Et.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%}"]}),oc),data:{title:"Tracking",breadcrumb:"Tracking"}}]}],dc=c("Qu3c"),lc=c("aYsj");c.d(t,"ApptrackingModule",(function(){return rc}));var sc,rc=((sc=_createClass((function e(){_classCallCheck(this,e)}))).\u0275mod=B.Vb({type:sc}),sc.\u0275inj=B.Ub({factory:function(e){return new(e||sc)},imports:[[i.c,o.m,o.z,m.c,p.c,d.e,dc.b,r.c,s.n,h.b,f.c,l.b,w.c,_.b,a.b,u.b,I.d,C.b,g.a,v.a,b.b,S.b,H.b,x.c,N.p,y.a,k.a,U.b,Et.a,lc.a,n.k.forChild(ac)]]}),sc)},rnHP:function(e,t,c){"use strict";var n=_createClass((function e(){_classCallCheck(this,e),this.sectionId="",this.sectionName="",this.status=""})),i=c("fXoL");c.d(t,"a",(function(){return a}));var o,a=((o=function(){return _createClass((function e(){_classCallCheck(this,e)}),[{key:"adapt",value:function(e){return this.obj=new n,this.obj.sectionId=e.section_id,this.obj.sectionName=e.section_name,this.obj.status=e.status,this.obj}}])}()).\u0275fac=function(e){return new(e||o)},o.\u0275prov=i.Tb({token:o,factory:o.\u0275fac,providedIn:"root"}),o)},wr8E:function(e,t,c){"use strict";var n,i,o,a=c("tk/3"),d=c("2Vo4"),l=c("lJxs"),s=c("g3s5"),r=c("fXoL"),u=((n=function(){return _createClass((function e(t){_classCallCheck(this,e),this.adapter=t}),[{key:"adapt",value:function(e){var t=this,c=[];return e.data.forEach((function(e){c.push(t.adapter.adapt(e))})),{keyword:e.keyword,message:e.message,positions:c,pageSize:e.count,page:e.page}}}])}()).\u0275fac=function(e){return new(e||n)(r.hc(s.a))},n.\u0275prov=r.Tb({token:n,factory:n.\u0275fac,providedIn:"root"}),n),m=c("qc5V"),p=c("Lzaa"),h=((o=function(){return _createClass((function e(){_classCallCheck(this,e)}),[{key:"adapt",value:function(e){return this.obj=new p.a,this.obj.categoryId=e.employee_category_id,this.obj.categoryName=e.name,this.obj.branchId=e.branch_id,this.obj.status=e.status,this.obj}}])}()).\u0275fac=function(e){return new(e||o)},o.\u0275prov=r.Tb({token:o,factory:o.\u0275fac,providedIn:"root"}),o),f=((i=function(){return _createClass((function e(t){_classCallCheck(this,e),this.adapter=t}),[{key:"adapt",value:function(e){var t=this,c=[];return e.data.forEach((function(e){c.push(t.adapter.adapt(e))})),{keyword:e.keyword,message:e.message,categories:c,pageSize:e.total_size,page:e.page}}}])}()).\u0275fac=function(e){return new(e||i)(r.hc(h))},i.\u0275prov=r.Tb({token:i,factory:i.\u0275fac,providedIn:"root"}),i);c.d(t,"a",(function(){return v}));var g,v=((g=function(){return _createClass((function e(t,c,n){_classCallCheck(this,e),this.adapter=t,this.catAdapter=c,this.apiService=n,this.recordAddedSubject=new d.a([{}]),this.recordUpdatedSubject=new d.a([{}]),this.userId=0}),[{key:"create",value:function(e){var t=this,c=new FormData;return c.append("position_name",e.positionName),c.append("employee_category_id",e.categoryId),this.apiService.post("position/create",c).pipe(Object(l.a)((function(e){return t.adapter.adapt(e)})))}},{key:"update",value:function(e){var t=this,c=new FormData;return c.append("position_name",e.positionName),c.append("employee_category_id",e.categoryId),c.append("employee_position_id",e.positionId),this.apiService.post("position/update",c).pipe(Object(l.a)((function(e){return t.adapter.adapt(e)})))}},{key:"status",value:function(e,t){return this.apiService.post(2!=t?"position/status":"position/delete",e)}},{key:"getList",value:function(e){var t=this,c=new a.e;for(var n in e)c=c.set(n,e[n]);return this.apiService.get("position",c).pipe(Object(l.a)((function(e){return t.adapter.adapt(e)})))}},{key:"getCategory",value:function(){var e=this,t=new a.e;return this.apiService.get("category ",t).pipe(Object(l.a)((function(t){return e.catAdapter.adapt(t)})))}},{key:"getRecordAddedSub",value:function(){return this.recordAddedSubject.asObservable()}},{key:"getRecordUpdatedSub",value:function(){return this.recordUpdatedSubject.asObservable()}},{key:"getpostion",value:function(e){var t=this;return this.apiService.get("employee/loadPosition/".concat(e)).pipe(Object(l.a)((function(e){return t.adapter.adapt(e)})))}}])}()).\u0275fac=function(e){return new(e||g)(r.hc(u),r.hc(f),r.hc(m.a))},g.\u0275prov=r.Tb({token:g,factory:g.\u0275fac,providedIn:"root"}),g)}}]);
/var/www/krbed.in/../../www/../www/html/../school_portal_admin/60-es5.10a22fc83e49b36be147.js