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
/
fe432618
/
..
/
.
/
panel618
/
..
/
..
/
school_portal_admin
/
59-es5.e1a0b79b2a7bbdfd938f.js
/
/
function _createForOfIteratorHelper(t,e){var c="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!c){if(Array.isArray(t)||(c=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){c&&(t=c);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,d=!1;return{s:function(){c=c.call(t)},n:function(){var t=c.next();return a=t.done,t},e:function(t){d=!0,i=t},f:function(){try{a||null==c.return||c.return()}finally{if(d)throw i}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var c={}.toString.call(t).slice(8,-1);return"Object"===c&&t.constructor&&(c=t.constructor.name),"Map"===c||"Set"===c?Array.from(t):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var c=0,n=Array(e);c<e;c++)n[c]=t[c];return n}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var c=0;c<e.length;c++){var n=e[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_toPropertyKey(n.key),n)}}function _createClass(t,e,c){return e&&_defineProperties(t.prototype,e),c&&_defineProperties(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:e+""}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var c=t[Symbol.toPrimitive];if(void 0!==c){var n=c.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(window.webpackJsonp=window.webpackJsonp||[]).push([[59],{"/rh5":function(t,e,c){"use strict";c.d(e,"a",(function(){return i}));var n=c("/Tr7"),o=c("jIYg");function i(t,e){var c;Object(o.a)(1,arguments);var i=t||{},a=Object(n.a)(i.start),d=Object(n.a)(i.end),r=d.getTime();if(!(a.getTime()<=r))throw new RangeError("Invalid interval");var l=[],s=a;s.setHours(0,0,0,0);var u=Number(null!==(c=null==e?void 0:e.step)&&void 0!==c?c:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=r;)l.push(Object(n.a)(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return l}},"4jLh":function(t,e,c){"use strict";c.d(e,"a",(function(){return i}));var n=c("/Tr7"),o=c("jIYg");function i(t){Object(o.a)(1,arguments);var e=t||{},c=Object(n.a)(e.start),i=Object(n.a)(e.end),a=i.getTime(),d=[];if(!(c.getTime()<=a))throw new RangeError("Invalid interval");var r=c;for(r.setHours(0,0,0,0),r.setDate(1);r.getTime()<=a;)d.push(Object(n.a)(r)),r.setMonth(r.getMonth()+1);return d}},"73gp":function(t,e,c){"use strict";var n,o=c("tk/3"),i=c("2Vo4"),a=c("lJxs"),d=c("rnHP"),r=c("fXoL"),l=((n=function(){return _createClass((function t(e){_classCallCheck(this,t),this.adapter=e}),[{key:"adapt",value:function(t){var e=this,c=[];return t.data.forEach((function(t){c.push(e.adapter.adapt(t))})),{keyword:t.keyword,message:t.message,sections:c,pageSize:t.count,page:t.page}}}])}()).\u0275fac=function(t){return new(t||n)(r.hc(d.a))},n.\u0275prov=r.Tb({token:n,factory:n.\u0275fac,providedIn:"root"}),n),s=c("qc5V");c.d(e,"a",(function(){return m}));var u,m=((u=function(){return _createClass((function t(e,c){_classCallCheck(this,t),this.adapter=e,this.apiService=c,this.recordAddedSubject=new i.a([{}]),this.recordUpdatedSubject=new i.a([{}])}),[{key:"create",value:function(t){var e=this;return this.apiService.post("section/create",t).pipe(Object(a.a)((function(t){return e.adapter.adapt(t)})))}},{key:"update",value:function(t){var e=this;return this.apiService.post("section/update",t).pipe(Object(a.a)((function(t){return e.adapter.adapt(t)})))}},{key:"status",value:function(t,e){return this.apiService.post(2!=e?"section/status":"section/delete",t)}},{key:"getList",value:function(t){var e=this,c=new o.e;for(var n in t)c=c.set(n,t[n]);return this.apiService.get("section",c).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()}}])}()).\u0275fac=function(t){return new(t||u)(r.hc(l),r.hc(s.a))},u.\u0275prov=r.Tb({token:u,factory:u.\u0275fac,providedIn:"root"}),u)},"9ig3":function(t,e,c){"use strict";c.d(e,"a",(function(){return i}));var n=c("/Tr7"),o=c("jIYg");function i(t){Object(o.a)(1,arguments);var e=Object(n.a)(t);return e.setDate(1),e.setHours(0,0,0,0),e}},Attm:function(t,e,c){"use strict";var n=_createClass((function t(){_classCallCheck(this,t),this.classId="",this.className="",this.status=""})),o=c("fXoL");c.d(e,"a",(function(){return a}));var i,a=((i=function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:"adapt",value:function(t){return this.obj=new n,this.obj.classId=t.class_id,this.obj.className=t.class_name,this.obj.status=t.status,this.obj}}])}()).\u0275fac=function(t){return new(t||i)},i.\u0275prov=o.Tb({token:i,factory:i.\u0275fac,providedIn:"root"}),i)},Lzaa:function(t,e,c){"use strict";c.d(e,"a",(function(){return n}));var n=_createClass((function t(){_classCallCheck(this,t),this.categoryId="",this.categoryName="",this.branchId="",this.status=""}))},btqD:function(t,e,c){"use strict";c.d(e,"a",(function(){return n}));var n=_createClass((function t(){_classCallCheck(this,t),this.positionId="",this.positionName="",this.categoryName="",this.categoryId="",this.status=""}))},g3s5:function(t,e,c){"use strict";c.d(e,"a",(function(){return i}));var n=c("btqD"),o=c("fXoL"),i=function(){var t=function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:"adapt",value:function(t){var e,c,o,i;return this.obj=new n.a,this.obj.positionId=null!=(e=t.employee_position_id)?e:null===(c=t)||void 0===c?void 0:c.position_id,this.obj.positionName=null!=(o=t.position_name)?o:null===(i=t)||void 0===i?void 0:i.name,this.obj.categoryName=t.category_name,this.obj.categoryId=t.employee_category_id,this.obj.status=t.status,this.obj}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},"i+b4":function(t,e,c){"use strict";c.r(e);var n,o=c("tyNb"),i=c("ofXK"),a=c("3Pt+"),d=c("bTqV"),r=c("Wp6s"),l=c("bSwM"),s=c("FKr1"),u=c("iadO"),m=c("NFeN"),p=c("qFsG"),f=c("MutI"),h=c("bv9b"),b=c("QibW"),v=c("xHqg"),g=c("YUcS"),y=c("STbY"),x=c("CzEO"),C=c("lDzL"),w=c("7pIB"),k=c("M9IT"),_=c("Dh3D"),F=c("+0xr"),O=c("tk/3"),P=c("qc5V"),I=c("fXoL"),D=((n=function(){return _createClass((function t(e){_classCallCheck(this,t),this.apiService=e,this.userId=0}),[{key:"employeeDailyAttan",value:function(t,e){var c=new O.e;for(var n in t)c=c.set(n,t[n]);return this.apiService.deviceget("all"==e?"report/employee/get/report-all":"report/employee/get/daily-attendance",c)}},{key:"employeeIndividualAttan",value:function(t){var e=new O.e;for(var c in t)e=e.set(c,t[c]);return this.apiService.deviceget("report/employee/get/individual-attendance",e)}},{key:"employeeMonthlyAttan",value:function(t){var e=new O.e;for(var c in t)e=e.set(c,t[c]);return this.apiService.deviceget("report/employee/get/total-report",t)}},{key:"loadEmployee",value:function(t){return this.apiService.get("employee/load/allEmpBydepartment/".concat(t))}}])}()).\u0275fac=function(t){return new(t||n)(I.hc(P.a))},n.\u0275prov=I.Tb({token:n,factory:n.\u0275fac,providedIn:"root"}),n),G=c("Gg3P"),S=c("Olgc"),M=c("LvDl"),N=c("34SS"),A=c("live"),T=c("Gh3/"),L=c("xe9D"),E=c("9ig3"),V=c("jKzE"),R=c("Se/U"),j=c("4jLh"),q=c("/rh5"),B=c("TGtP"),Y=c("dJ6x"),X=c("h+A8"),z=c("PSD3"),$=c.n(z),W=c("VxG0"),U=c("XiUz"),H=c("f0Cb"),J=c("kmnG"),K=c("d3UM");function Z(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please select any one gender "),I.cc())}function Q(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the date "),I.cc())}function tt(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",48),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getStatus(n.viewValue)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.value),I.Gb(1),I.ed(" ",n.viewValue," ")}}function et(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please select one status "),I.cc())}function ct(t,e){if(1&t){var c=I.ec();I.dc(0,"button",49),I.lc("click",(function(t){return I.Sc(c),I.pc(2).dailySearch()})),I.cd(1,"Search"),I.cc()}}function nt(t,e){if(1&t){var c=I.ec();I.dc(0,"button",50),I.lc("click",(function(t){return I.Sc(c),I.pc(2).download()})),I.dc(1,"i",51),I.cd(2," cloud_download "),I.cc(),I.cc()}}function ot(t,e){if(1&t&&(I.dc(0,"td",52),I.cd(1),I.dc(2,"span",36),I.cd(3),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(1),I.ed("",c.statusView," "),I.Gb(2),I.dd(null==c.count?null:c.count.count)}}function it(t,e){if(1&t&&(I.dc(0,"div",53),I.dc(1,"table",33),I.dc(2,"tr"),I.dc(3,"td",54),I.dc(4,"div",55),I.dc(5,"label"),I.dc(6,"strong"),I.cd(7,"Present"),I.cc(),I.cc(),I.dc(8,"p"),I.cd(9),I.cc(),I.cc(),I.cc(),I.dc(10,"td",54),I.dc(11,"div",56),I.dc(12,"label"),I.dc(13,"strong"),I.cd(14,"OnDuty"),I.cc(),I.cc(),I.dc(15,"p"),I.cd(16),I.cc(),I.cc(),I.cc(),I.dc(17,"td",54),I.dc(18,"div",57),I.dc(19,"label"),I.dc(20,"strong"),I.cd(21,"Absent "),I.cc(),I.cc(),I.dc(22,"p"),I.cd(23),I.cc(),I.cc(),I.cc(),I.dc(24,"td",54),I.dc(25,"div",58),I.dc(26,"label"),I.dc(27,"strong"),I.cd(28,"Leave "),I.cc(),I.cc(),I.dc(29,"p"),I.cd(30),I.cc(),I.cc(),I.cc(),I.dc(31,"td",54),I.dc(32,"div",59),I.dc(33,"label"),I.dc(34,"strong"),I.cd(35,"Late Coming"),I.cc(),I.cc(),I.dc(36,"p"),I.cd(37),I.cc(),I.cc(),I.cc(),I.dc(38,"td",54),I.dc(39,"div",60),I.dc(40,"label"),I.dc(41,"strong"),I.cd(42,"Permission"),I.cc(),I.cc(),I.dc(43,"p"),I.cd(44),I.cc(),I.cc(),I.cc(),I.dc(45,"td",61),I.dc(46,"div",62),I.dc(47,"label"),I.dc(48,"strong"),I.cd(49,"Left Early with Permission "),I.cc(),I.cc(),I.dc(50,"p"),I.cd(51),I.cc(),I.cc(),I.cc(),I.dc(52,"td",61),I.dc(53,"div",63),I.dc(54,"label"),I.dc(55,"strong"),I.cd(56,"Left Early without Permission"),I.cc(),I.cc(),I.dc(57,"p"),I.cd(58),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(59,"table",33),I.dc(60,"tr"),I.dc(61,"td",64),I.dc(62,"div",65),I.dc(63,"label"),I.dc(64,"strong"),I.cd(65,"Late Coming Left Early with Permission "),I.cc(),I.cc(),I.dc(66,"p"),I.cd(67),I.cc(),I.cc(),I.cc(),I.dc(68,"td",66),I.dc(69,"div",67),I.dc(70,"label"),I.dc(71,"strong"),I.cd(72,"Late Coming Left Early without Permission"),I.cc(),I.cc(),I.dc(73,"p"),I.cd(74),I.cc(),I.cc(),I.cc(),I.Yb(75,"td",68),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(9),I.dd(null!=c.count&&c.count.presentCount?null==c.count?null:c.count.presentCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.onDutyCount?null==c.count?null:c.count.onDutyCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.absentCount?null==c.count?null:c.count.absentCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.leaveCount?null==c.count?null:c.count.leaveCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.lateComingCount?null==c.count?null:c.count.lateComingCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.permissionCount?null==c.count?null:c.count.permissionCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.leWithPermissionCount?null==c.count?null:c.count.leWithPermissionCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.leWithoutPermissionCount?null==c.count?null:c.count.leWithoutPermissionCount:0),I.Gb(9),I.dd(null!=c.count&&c.count.lateComingAndLeWithPermissionCount?null==c.count?null:c.count.lateComingAndLeWithPermissionCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.lateComingAndLeWithOutPermissionCount?null==c.count?null:c.count.lateComingAndLeWithOutPermissionCount:0)}}function at(t,e){1&t&&(I.dc(0,"th",69),I.cd(1,"Status"),I.cc())}function dt(t,e){1&t&&(I.dc(0,"label",82),I.cd(1,"Present"),I.cc())}function rt(t,e){1&t&&(I.dc(0,"label",83),I.cd(1,"Permission"),I.cc())}function lt(t,e){1&t&&(I.dc(0,"label",84),I.cd(1,"Absent"),I.cc())}function st(t,e){1&t&&(I.dc(0,"label",85),I.cd(1,"Leave"),I.cc())}function ut(t,e){1&t&&(I.dc(0,"label",86),I.cd(1,"Late Coming"),I.cc())}function mt(t,e){1&t&&(I.dc(0,"label",87),I.cd(1,"onDuty"),I.cc())}function pt(t,e){1&t&&(I.dc(0,"label",88),I.cd(1,"Left Early with Permission"),I.cc())}function ft(t,e){1&t&&(I.dc(0,"label",89),I.cd(1,"Left Early without Permission"),I.cc())}function ht(t,e){1&t&&(I.dc(0,"label",90),I.cd(1," Late Coming Left Early with Permission"),I.cc())}function bt(t,e){1&t&&(I.dc(0,"label",91),I.cd(1,"Late Coming Left Early without Permission"),I.cc())}function vt(t,e){if(1&t&&(I.dc(0,"td",46),I.ad(1,dt,2,0,"label",72),I.ad(2,rt,2,0,"label",73),I.ad(3,lt,2,0,"label",74),I.ad(4,st,2,0,"label",75),I.ad(5,ut,2,0,"label",76),I.ad(6,mt,2,0,"label",77),I.ad(7,pt,2,0,"label",78),I.ad(8,ft,2,0,"label",79),I.ad(9,ht,2,0,"label",80),I.ad(10,bt,2,0,"label",81),I.cc()),2&t){var c=I.pc().$implicit;I.Gb(1),I.yc("ngIf","present"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","absent"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","leave"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","on_duty"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","left_early_with_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","left_early_without_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming_and_left_early_with_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming_and_left_early_without_permission"==(null==c?null:c.attendanceType))}}function gt(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",46),I.cd(2),I.cc(),I.dc(3,"td",70),I.cd(4),I.cc(),I.dc(5,"td",70),I.cd(6),I.cc(),I.dc(7,"td",70),I.cd(8),I.cc(),I.dc(9,"td",46),I.cd(10),I.cc(),I.dc(11,"td",46),I.cd(12),I.cc(),I.dc(13,"td",46),I.cd(14),I.cc(),I.ad(15,vt,11,10,"td",71),I.cc()),2&t){var c=e.$implicit,n=I.pc(2);I.Gb(2),I.ed(" ",null==c?null:c.employeeCode," "),I.Gb(2),I.ed("",null==c?null:c.employeeName," "),I.Gb(2),I.ed("",null==c?null:c.departmentName," "),I.Gb(2),I.ed("",null==c?null:c.positionName," "),I.Gb(2),I.dd("00:00:00"==(null==c?null:c.checkIn)?"-":n.getFormatedTime(null==c?null:c.checkIn)),I.Gb(2),I.dd("00:00:00"==(null==c?null:c.checkOut)?"-":n.getFormatedTime(null==c?null:c.checkOut)),I.Gb(2),I.ed("",null!=c&&c.thisDay?null==c?null:c.thisDay:"-"," "),I.Gb(1),I.yc("ngIf","all"==n.attendanceForm.controls.reportType.value)}}function yt(t,e){1&t&&(I.dc(0,"tbody"),I.dc(1,"tr"),I.dc(2,"td",92),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.cc())}var xt=function(){return["employee_report"]},Ct=function(){return["employee_report_search"]},wt=function(){return["employee_report_download"]};function kt(t,e){if(1&t){var c=I.ec();I.dc(0,"div",17),I.dc(1,"div",18),I.dc(2,"div",19),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Date"),I.cc(),I.dc(6,"span",20),I.cd(7,"*"),I.cc(),I.cc(),I.cc(),I.dc(8,"div",21),I.dc(9,"mat-form-field",22),I.dc(10,"input",23),I.lc("focus",(function(t){return I.Sc(c),I.Oc(13).open()}))("click",(function(t){return I.Sc(c),I.Oc(13).open()})),I.cc(),I.Yb(11,"mat-datepicker-toggle",24),I.Yb(12,"mat-datepicker",null,25),I.ad(14,Q,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(15,"div",19),I.dc(16,"label"),I.dc(17,"strong"),I.cd(18,"Status"),I.cc(),I.dc(19,"span",20),I.cd(20,"*"),I.cc(),I.cc(),I.cc(),I.dc(21,"div",26),I.dc(22,"mat-form-field",22),I.Yb(23,"mat-label"),I.dc(24,"mat-select",27),I.ad(25,tt,2,2,"mat-option",28),I.cc(),I.ad(26,et,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(27,"div",29),I.ad(28,ct,2,0,"button",30),I.ad(29,nt,3,0,"button",31),I.cc(),I.cc(),I.Yb(30,"div",32),I.dc(31,"div",33),I.dc(32,"table",34),I.dc(33,"tr"),I.dc(34,"td",35),I.cd(35,"Date "),I.dc(36,"span",36),I.cd(37),I.qc(38,"displayDate"),I.cc(),I.cc(),I.ad(39,ot,4,2,"td",37),I.cc(),I.cc(),I.ad(40,it,76,10,"div",38),I.dc(41,"table",39),I.dc(42,"thead"),I.dc(43,"tr"),I.dc(44,"th",40),I.cd(45,"Employee Code "),I.cc(),I.dc(46,"th",41),I.cd(47,"Employee Name\t"),I.cc(),I.dc(48,"th",42),I.cd(49,"\tDepartment "),I.cc(),I.dc(50,"th",42),I.cd(51,"Position "),I.cc(),I.dc(52,"th",43),I.cd(53,"Check "),I.cc(),I.dc(54,"th",44),I.cd(55,"Days "),I.cc(),I.ad(56,at,2,0,"th",45),I.cc(),I.dc(57,"tr"),I.dc(58,"th",46),I.cd(59," IN "),I.cc(),I.dc(60,"th",46),I.cd(61," OUT "),I.cc(),I.cc(),I.cc(),I.dc(62,"tbody"),I.ad(63,gt,16,8,"tr",47),I.cc(),I.ad(64,yt,4,0,"tbody",13),I.cc(),I.cc(),I.cc()}if(2&t){var n=I.Oc(13),o=I.pc();I.Gb(10),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(3),I.yc("ngIf",null==o.control?null:null==o.control.dailyDate?null:null==o.control.dailyDate.errors?null:o.control.dailyDate.errors.required),I.Gb(11),I.yc("ngForOf",o.empstatuses),I.Gb(1),I.yc("ngIf",null==o.control?null:null==o.control.reportType?null:null==o.control.reportType.errors?null:o.control.reportType.errors.required),I.Gb(2),I.yc("ngIf",o.permission.hasPermission(I.Ec(15,xt),I.Ec(16,Ct))),I.Gb(1),I.yc("ngIf",o.permission.hasPermission(I.Ec(17,xt),I.Ec(18,wt))),I.Gb(8),I.dd(I.rc(38,13,o.dailydate)),I.Gb(2),I.yc("ngIf","all"!=(null==o.control?null:null==o.control.reportType?null:o.control.reportType.value)),I.Gb(1),I.yc("ngIf","all"==(null==o.control?null:null==o.control.reportType?null:o.control.reportType.value)),I.Gb(16),I.yc("ngIf","all"==(null==o.control?null:null==o.control.reportType?null:o.control.reportType.value)),I.Gb(7),I.yc("ngForOf",o.dailys),I.Gb(1),I.yc("ngIf",0==(null==o.dailys?null:o.dailys.length))}}function _t(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",48),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).monthname(n.viewValue)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.value),I.Gb(1),I.ed(" ",n.viewValue," ")}}function Ft(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the month "),I.cc())}function Ot(t,e){if(1&t&&(I.dc(0,"mat-option",106),I.cd(1),I.cc()),2&t){var c=e.$implicit;I.yc("value",c.year),I.Gb(1),I.ed(" ",c.year," ")}}function Pt(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the year "),I.cc())}function It(t,e){if(1&t&&(I.dc(0,"th",114),I.cd(1),I.qc(2,"uppercase"),I.cc()),2&t){var c=e.$implicit;I.Gb(1),I.dd(I.rc(2,1,c.day))}}function Dt(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"th",40),I.cd(2,"Emp Code "),I.cc(),I.dc(3,"th",41),I.cd(4,"Employee Name"),I.cc(),I.dc(5,"th",42),I.cd(6,"\tDepartment "),I.cc(),I.dc(7,"th",42),I.cd(8,"Position "),I.cc(),I.ad(9,It,3,3,"th",111),I.dc(10,"th",112),I.cd(11,"Total Days "),I.cc(),I.dc(12,"th",113),I.cd(13,"Total "),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(9),I.yc("ngForOf",c.attendence)}}function Gt(t,e){if(1&t&&(I.dc(0,"th",46),I.cd(1),I.qc(2,"date"),I.cc()),2&t){var c=e.$implicit;I.Gb(1),I.dd(I.sc(2,1,c.date,"dd"))}}function St(t,e){if(1&t&&(I.dc(0,"tr"),I.ad(1,Gt,3,4,"th",115),I.dc(2,"th",46),I.cd(3,"Present"),I.cc(),I.dc(4,"th",46),I.cd(5," Absent"),I.cc(),I.dc(6,"th",46),I.cd(7,"Leave"),I.cc(),I.dc(8,"th",46),I.cd(9,"OnDuty"),I.cc(),I.dc(10,"th",46),I.cd(11,"LC"),I.cc(),I.dc(12,"th",46),I.cd(13,"PM"),I.cc(),I.dc(14,"th",46),I.cd(15,"LE-WP"),I.cc(),I.dc(16,"th",46),I.cd(17,"LE-WOP"),I.cc(),I.dc(18,"th",46),I.cd(19,"LE-LC-WP"),I.cc(),I.dc(20,"th",46),I.cd(21,"LE-LC-WOP"),I.cc(),I.dc(22,"th",46),I.cd(23,"WO"),I.cc(),I.dc(24,"th",46),I.cd(25,"H"),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(1),I.yc("ngForOf",c.attendence)}}function Mt(t,e){if(1&t&&(I.dc(0,"td",46),I.cd(1),I.qc(2,"date"),I.cc()),2&t){var c=e.$implicit,n=I.pc().$implicit,o=I.pc(3);I.Gb(1),I.dd(o.getDailyRecord(n.employeeId,I.sc(2,1,c.date,"yyyy-MM-dd")))}}function Nt(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",46),I.cd(2),I.cc(),I.dc(3,"td"),I.cd(4),I.cc(),I.dc(5,"td"),I.cd(6),I.cc(),I.dc(7,"td"),I.cd(8),I.cc(),I.ad(9,Mt,3,4,"td",115),I.dc(10,"td",46),I.cd(11),I.cc(),I.dc(12,"td",46),I.cd(13),I.cc(),I.dc(14,"td",46),I.cd(15),I.cc(),I.dc(16,"td",46),I.cd(17),I.cc(),I.dc(18,"td",46),I.cd(19),I.cc(),I.dc(20,"td",46),I.cd(21),I.cc(),I.dc(22,"td",46),I.cd(23),I.cc(),I.dc(24,"td",46),I.cd(25),I.cc(),I.dc(26,"td",46),I.cd(27),I.cc(),I.dc(28,"td",46),I.cd(29),I.cc(),I.dc(30,"td",46),I.cd(31),I.cc(),I.dc(32,"td",46),I.cd(33),I.cc(),I.cc()),2&t){var c=e.$implicit,n=I.pc(3);I.Gb(2),I.ed(" ",c.employeeCode," "),I.Gb(2),I.dd(c.employeeName),I.Gb(2),I.dd(c.departmentName),I.Gb(2),I.dd(c.positionName),I.Gb(1),I.yc("ngForOf",n.monthlyList[0].attendence),I.Gb(2),I.dd(c.presentCount),I.Gb(2),I.dd(c.absentCount),I.Gb(2),I.dd(c.leaveCount),I.Gb(2),I.dd(c.onDutyCount),I.Gb(2),I.dd(c.lateComingCount),I.Gb(2),I.dd(c.permissionCount?c.permissionCount:0),I.Gb(2),I.dd(c.leWithPermissionCount),I.Gb(2),I.dd(c.leWithoutPermissionCount),I.Gb(2),I.dd(c.lateComingAndleWithPermissionCount),I.Gb(2),I.dd(c.lateComingAndleWithOutPermissionCount),I.Gb(2),I.dd(n.weekOff),I.Gb(2),I.dd(c.holidayCount)}}function At(t,e){1&t&&(I.dc(0,"div"),I.dc(1,"h4"),I.dc(2,"strong"),I.cd(3,"Notes:"),I.cc(),I.cc(),I.dc(4,"ul",116),I.dc(5,"li"),I.dc(6,"strong"),I.cd(7,"P"),I.cc(),I.cd(8," - Present "),I.cc(),I.dc(9,"li"),I.dc(10,"strong"),I.cd(11,"A"),I.cc(),I.cd(12," - Absent "),I.cc(),I.dc(13,"li"),I.dc(14,"strong"),I.cd(15,"L"),I.cc(),I.cd(16," - Leave "),I.cc(),I.dc(17,"li"),I.dc(18,"strong"),I.cd(19,"OD"),I.cc(),I.cd(20," - OnDuty "),I.cc(),I.dc(21,"li"),I.dc(22,"strong"),I.cd(23,"LC"),I.cc(),I.cd(24," - Late Coming "),I.cc(),I.dc(25,"li"),I.dc(26,"strong"),I.cd(27,"PM"),I.cc(),I.cd(28," - Permission "),I.cc(),I.dc(29,"li"),I.dc(30,"strong"),I.cd(31,"LE-WP"),I.cc(),I.cd(32," - Left Early with Permission "),I.cc(),I.dc(33,"li"),I.dc(34,"strong"),I.cd(35,"LE-WOP"),I.cc(),I.cd(36," - Left Early without Permission "),I.cc(),I.dc(37,"li"),I.dc(38,"strong"),I.cd(39,"LE-LC-WP"),I.cc(),I.cd(40," - Left Early Late Coming with Permission "),I.cc(),I.dc(41,"li"),I.dc(42,"strong"),I.cd(43,"LE-LC-WOP"),I.cc(),I.cd(44," - Left Early Late Coming without Permission "),I.cc(),I.dc(45,"li"),I.dc(46,"strong"),I.cd(47,"WO"),I.cc(),I.cd(48," - Week Off "),I.cc(),I.dc(49,"li"),I.dc(50,"strong"),I.cd(51,"H"),I.cc(),I.cd(52," - Holiday "),I.cc(),I.cc(),I.cc())}function Tt(t,e){if(1&t&&(I.dc(0,"div",107),I.dc(1,"table",108),I.dc(2,"tr"),I.dc(3,"td",52),I.cd(4),I.dc(5,"span",109),I.cd(6),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(7,"div",110),I.dc(8,"table",39),I.dc(9,"thead"),I.ad(10,Dt,14,1,"tr",47),I.ad(11,St,26,1,"tr",47),I.cc(),I.dc(12,"tbody"),I.ad(13,Nt,34,17,"tr",47),I.cc(),I.cc(),I.cc(),I.ad(14,At,53,0,"div",13),I.cc()),2&t){var c=I.pc(2);I.Gb(4),I.ed("",c.currentmonthname," "),I.Gb(2),I.dd(null==c.control?null:null==c.control.year?null:c.control.year.value),I.Gb(4),I.yc("ngForOf",c.monthlyList),I.Gb(1),I.yc("ngForOf",c.monthlyList),I.Gb(2),I.yc("ngForOf",c.monthlys),I.Gb(1),I.yc("ngIf",1==c.hide)}}function Lt(t,e){if(1&t){var c=I.ec();I.dc(0,"div",93),I.dc(1,"div",94),I.dc(2,"div",95),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Month"),I.cc(),I.dc(6,"span",20),I.cd(7,"*"),I.cc(),I.cc(),I.cc(),I.dc(8,"div",96),I.dc(9,"mat-form-field",22),I.Yb(10,"mat-label"),I.dc(11,"mat-select",97),I.ad(12,_t,2,2,"mat-option",28),I.cc(),I.ad(13,Ft,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(14,"div",98),I.dc(15,"label"),I.dc(16,"strong"),I.cd(17,"Year"),I.cc(),I.dc(18,"span",20),I.cd(19,"*"),I.cc(),I.cc(),I.cc(),I.dc(20,"div",99),I.dc(21,"mat-form-field",22),I.Yb(22,"mat-label"),I.dc(23,"mat-select",100),I.ad(24,Ot,2,2,"mat-option",101),I.cc(),I.ad(25,Pt,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(26,"div",102),I.dc(27,"button",103),I.lc("click",(function(t){return I.Sc(c),I.pc().monthlySearch()})),I.cd(28,"Search"),I.cc(),I.dc(29,"button",50),I.lc("click",(function(t){return I.Sc(c),I.pc().download()})),I.dc(30,"i",51),I.cd(31," cloud_download "),I.cc(),I.cc(),I.cc(),I.cc(),I.Yb(32,"div",104),I.ad(33,Tt,15,6,"div",105),I.cc()}if(2&t){var n=I.pc();I.Gb(12),I.yc("ngForOf",n.months),I.Gb(1),I.yc("ngIf",null==n.control?null:null==n.control.month?null:null==n.control.month.errors?null:n.control.month.errors.required),I.Gb(11),I.yc("ngForOf",n.years),I.Gb(1),I.yc("ngIf",(null==n.control?null:null==n.control.year?null:null==n.control.year.errors?null:n.control.year.errors.required)&&(null==n.control?null:null==n.control.year?null:null==n.control.year.errors?null:n.control.year.errors.touched)),I.Gb(8),I.yc("ngIf",1==n.hide)}}function Et(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",48),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getDeptName(n.name),o.getEmployees(n.departmentId)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.departmentId),I.Gb(1),I.ed(" ",n.name," ")}}function Vt(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the department name "),I.cc())}function Rt(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",48),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getEmployeeName(n)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.employee_id),I.Gb(1),I.ed(" ",n.employee_name," ")}}function jt(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the employee name "),I.cc())}function qt(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the from date "),I.cc())}function Bt(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the to date "),I.cc())}function Yt(t,e){1&t&&(I.dc(0,"label",151),I.cd(1,"Present"),I.cc())}function Xt(t,e){1&t&&(I.dc(0,"label",83),I.cd(1,"Permission"),I.cc())}function zt(t,e){1&t&&(I.dc(0,"label",84),I.cd(1,"Absent"),I.cc())}function $t(t,e){1&t&&(I.dc(0,"label",88),I.cd(1,"Left Early with Permission"),I.cc())}function Wt(t,e){1&t&&(I.dc(0,"label",89),I.cd(1,"Left Early without Permission"),I.cc())}function Ut(t,e){1&t&&(I.dc(0,"label",87),I.cd(1,"onDuty"),I.cc())}function Ht(t,e){1&t&&(I.dc(0,"label",86),I.cd(1,"Late Coming"),I.cc())}function Jt(t,e){1&t&&(I.dc(0,"label",85),I.cd(1,"Leave"),I.cc())}function Kt(t,e){1&t&&(I.dc(0,"label",90),I.cd(1," Late Coming Left Early with Permission"),I.cc())}function Zt(t,e){1&t&&(I.dc(0,"label",91),I.cd(1,"Late Coming Left Early without Permission"),I.cc())}function Qt(t,e){1&t&&(I.dc(0,"label",152),I.cd(1,"Week Off"),I.cc())}function te(t,e){1&t&&(I.dc(0,"label",153),I.cd(1,"Holiday"),I.cc())}function ee(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",70),I.cd(2),I.cc(),I.dc(3,"td",46),I.cd(4),I.cc(),I.dc(5,"td",46),I.cd(6),I.cc(),I.dc(7,"td",46),I.cd(8),I.cc(),I.dc(9,"td",46),I.ad(10,Yt,2,0,"label",147),I.ad(11,Xt,2,0,"label",73),I.ad(12,zt,2,0,"label",74),I.ad(13,$t,2,0,"label",78),I.ad(14,Wt,2,0,"label",148),I.ad(15,Ut,2,0,"label",77),I.ad(16,Ht,2,0,"label",76),I.ad(17,Jt,2,0,"label",75),I.ad(18,Kt,2,0,"label",80),I.ad(19,Zt,2,0,"label",81),I.ad(20,Qt,2,0,"label",149),I.ad(21,te,2,0,"label",150),I.cc(),I.cc()),2&t){var c=e.$implicit,n=I.pc(2);I.Gb(2),I.ed(" ",null==c?null:c.thisDate," "),I.Gb(2),I.dd("00:00:00"==(null==c?null:c.checkIn)?"-":n.getFormatedTime(null==c?null:c.checkIn)),I.Gb(2),I.dd("00:00:00"==(null==c?null:c.checkOut)?"-":n.getFormatedTime(null==c?null:c.checkOut)),I.Gb(2),I.ed("",null!=c&&c.thisDay?null==c?null:c.thisDay:"-"," "),I.Gb(2),I.yc("ngIf","present"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","absent"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","left_early_with_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","left_early_without_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","on_duty"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","leave"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming_and_left_early_with_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming_and_left_early_without_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","WeekOff"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","holiday"==(null==c?null:c.attendanceType))}}function ce(t,e){1&t&&(I.dc(0,"tbody"),I.dc(1,"tr"),I.dc(2,"td",92),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.cc())}function ne(t,e){if(1&t){var c=I.ec();I.dc(0,"div",117),I.dc(1,"div",118),I.dc(2,"div",119),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Department"),I.cc(),I.dc(6,"span",20),I.cd(7,"*"),I.cc(),I.cc(),I.cc(),I.dc(8,"div",120),I.dc(9,"mat-form-field",22),I.Yb(10,"mat-label"),I.dc(11,"mat-select",121),I.ad(12,Et,2,2,"mat-option",28),I.cc(),I.ad(13,Vt,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(14,"div",122),I.dc(15,"label"),I.dc(16,"strong"),I.cd(17,"Employee Name"),I.cc(),I.dc(18,"span",20),I.cd(19,"*"),I.cc(),I.cc(),I.cc(),I.dc(20,"div",123),I.dc(21,"mat-form-field",22),I.Yb(22,"mat-label"),I.dc(23,"mat-select",124),I.ad(24,Rt,2,2,"mat-option",28),I.cc(),I.ad(25,jt,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(26,"div",125),I.dc(27,"label"),I.dc(28,"strong"),I.cd(29,"From Date"),I.cc(),I.dc(30,"span",20),I.cd(31,"*"),I.cc(),I.cc(),I.cc(),I.dc(32,"div",126),I.dc(33,"mat-form-field",22),I.dc(34,"input",127),I.lc("focus",(function(t){return I.Sc(c),I.Oc(37).open()}))("click",(function(t){return I.Sc(c),I.Oc(37).open()})),I.cc(),I.Yb(35,"mat-datepicker-toggle",24),I.Yb(36,"mat-datepicker",null,128),I.ad(38,qt,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(39,"div",129),I.dc(40,"label"),I.dc(41,"strong"),I.cd(42,"To Date"),I.cc(),I.dc(43,"span",20),I.cd(44,"*"),I.cc(),I.cc(),I.cc(),I.dc(45,"div",130),I.dc(46,"mat-form-field",22),I.dc(47,"input",131),I.lc("focus",(function(t){return I.Sc(c),I.Oc(50).open()}))("click",(function(t){return I.Sc(c),I.Oc(50).open()})),I.cc(),I.Yb(48,"mat-datepicker-toggle",24),I.Yb(49,"mat-datepicker",null,132),I.ad(51,Bt,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(52,"div",133),I.dc(53,"button",103),I.lc("click",(function(t){return I.Sc(c),I.pc().individualSearch()})),I.cd(54,"Search"),I.cc(),I.dc(55,"button",50),I.lc("click",(function(t){return I.Sc(c),I.pc().download()})),I.dc(56,"i",51),I.cd(57," cloud_download "),I.cc(),I.cc(),I.cc(),I.cc(),I.Yb(58,"div",104),I.dc(59,"table",134),I.dc(60,"tr"),I.dc(61,"td",52),I.cd(62,"Date "),I.dc(63,"span",109),I.cd(64),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(65,"table",134),I.dc(66,"tr"),I.dc(67,"td",135),I.cd(68,"Employee Name "),I.cc(),I.dc(69,"td",136),I.cd(70),I.cc(),I.dc(71,"td",137),I.cd(72,"Department "),I.cc(),I.dc(73,"td",61),I.cd(74),I.cc(),I.dc(75,"td",137),I.cd(76,"Position Name"),I.cc(),I.dc(77,"td",61),I.cd(78),I.cc(),I.cc(),I.cc(),I.dc(79,"div",138),I.dc(80,"table",33),I.dc(81,"tr"),I.dc(82,"td",54),I.dc(83,"div",55),I.dc(84,"label"),I.dc(85,"strong"),I.cd(86,"Present"),I.cc(),I.cc(),I.dc(87,"p"),I.cd(88),I.cc(),I.cc(),I.cc(),I.dc(89,"td",54),I.dc(90,"div",56),I.dc(91,"label"),I.dc(92,"strong"),I.cd(93,"OnDuty"),I.cc(),I.cc(),I.dc(94,"p"),I.cd(95),I.cc(),I.cc(),I.cc(),I.dc(96,"td",54),I.dc(97,"div",57),I.dc(98,"label"),I.dc(99,"strong"),I.cd(100,"Absent "),I.cc(),I.cc(),I.dc(101,"p"),I.cd(102),I.cc(),I.cc(),I.cc(),I.dc(103,"td",54),I.dc(104,"div",58),I.dc(105,"label"),I.dc(106,"strong"),I.cd(107,"Leave "),I.cc(),I.cc(),I.dc(108,"p"),I.cd(109),I.cc(),I.cc(),I.cc(),I.dc(110,"td",54),I.dc(111,"div",59),I.dc(112,"label"),I.dc(113,"strong"),I.cd(114,"Late Coming"),I.cc(),I.cc(),I.dc(115,"p"),I.cd(116),I.cc(),I.cc(),I.cc(),I.dc(117,"td",54),I.dc(118,"div",60),I.dc(119,"label"),I.dc(120,"strong"),I.cd(121,"Permission"),I.cc(),I.cc(),I.dc(122,"p"),I.cd(123),I.cc(),I.cc(),I.cc(),I.dc(124,"td",61),I.dc(125,"div",139),I.dc(126,"label"),I.dc(127,"strong"),I.cd(128,"Left Early with Permission "),I.cc(),I.cc(),I.dc(129,"p"),I.cd(130),I.cc(),I.cc(),I.cc(),I.dc(131,"td",61),I.dc(132,"div",63),I.dc(133,"label"),I.dc(134,"strong"),I.cd(135,"Left Early without Permission"),I.cc(),I.cc(),I.dc(136,"p"),I.cd(137),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(138,"table"),I.dc(139,"tr"),I.dc(140,"td",64),I.dc(141,"div",65),I.dc(142,"label"),I.dc(143,"strong"),I.cd(144,"Late Coming Left Early with Permission "),I.cc(),I.cc(),I.dc(145,"p"),I.cd(146),I.cc(),I.cc(),I.cc(),I.dc(147,"td",66),I.dc(148,"div",140),I.dc(149,"label"),I.dc(150,"strong"),I.cd(151,"Late Coming Left Early without Permission"),I.cc(),I.cc(),I.dc(152,"p"),I.cd(153),I.cc(),I.cc(),I.cc(),I.dc(154,"td",66),I.dc(155,"div",141),I.dc(156,"label"),I.dc(157,"strong"),I.cd(158,"Week Off"),I.cc(),I.cc(),I.dc(159,"p"),I.cd(160),I.cc(),I.cc(),I.cc(),I.dc(161,"td",66),I.dc(162,"div",142),I.dc(163,"label"),I.dc(164,"strong"),I.cd(165,"Holiday"),I.cc(),I.cc(),I.dc(166,"p"),I.cd(167),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(168,"table",143),I.dc(169,"thead"),I.dc(170,"tr"),I.dc(171,"th",144),I.cd(172,"Date\t"),I.cc(),I.dc(173,"th",144),I.cd(174,"Check IN\t"),I.cc(),I.dc(175,"th",144),I.cd(176,"\tCheck OUT "),I.cc(),I.dc(177,"th",145),I.cd(178,"Days "),I.cc(),I.dc(179,"th",146),I.cd(180,"Status "),I.cc(),I.cc(),I.cc(),I.dc(181,"tbody"),I.ad(182,ee,22,16,"tr",47),I.cc(),I.ad(183,ce,4,0,"tbody",13),I.cc(),I.cc()}if(2&t){var n=I.Oc(37),o=I.Oc(50),i=I.pc();I.Gb(12),I.yc("ngForOf",i.departments),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.department?null:null==i.control.department.errors?null:i.control.department.errors.required),I.Gb(11),I.yc("ngForOf",i.loadEmployees),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.empname?null:null==i.control.empname.errors?null:i.control.empname.errors.required),I.Gb(9),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(3),I.yc("ngIf",null==i.control?null:null==i.control.fromDate?null:null==i.control.fromDate.errors?null:i.control.fromDate.errors.required),I.Gb(9),I.yc("matDatepicker",o),I.Gb(1),I.yc("for",o),I.Gb(3),I.yc("ngIf",null==i.control?null:null==i.control.toDate?null:null==i.control.toDate.errors?null:i.control.toDate.errors.required),I.Gb(13),I.gd("",i.fromDate," ",i.fromDate?"-":""," ",i.toDate,""),I.Gb(6),I.dd(null==i.count?null:i.count.employeeName),I.Gb(4),I.ed("",null==i.count?null:i.count.departmentName," "),I.Gb(4),I.ed("",null==i.count?null:i.count.positionName," "),I.Gb(10),I.dd(null!=i.count&&i.count.presentCount?null==i.count?null:i.count.presentCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.onDutyCount?null==i.count?null:i.count.onDutyCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.absentCount?null==i.count?null:i.count.absentCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.leaveCount?null==i.count?null:i.count.leaveCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.lateComingCount?null==i.count?null:i.count.lateComingCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.permissionCount?null==i.count?null:i.count.permissionCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.leWithPermissionCount?null==i.count?null:i.count.leWithPermissionCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.leWithoutPermissionCount?null==i.count?null:i.count.leWithoutPermissionCount:0),I.Gb(9),I.dd(null!=i.count&&i.count.lateComingAndLeWithPermissionCount?null==i.count?null:i.count.lateComingAndLeWithPermissionCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.lateComingAndLeWithOutPermissionCount?null==i.count?null:i.count.lateComingAndLeWithOutPermissionCount:0),I.Gb(7),I.dd(i.weekOff?i.weekOff:0),I.Gb(7),I.dd(i.holidayCount?i.holidayCount:0),I.Gb(15),I.yc("ngForOf",i.individuals),I.Gb(1),I.yc("ngIf",0==(null==i.individuals?null:i.individuals.length))}}var oe,ie,ae=[{empname:"Ram",department:"Transport",normal:"140",real:"138",timelate:"1",minlate:"60",timeleave:"1",minleave:"60",normalbreak:"60",realbreak:"60",normalatt:"20",realatt:"20",absent:"0"},{empname:"Malini",department:"Teaching",normal:"140",real:"138",timelate:"1",minlate:"60",timeleave:"1",minleave:"60",normalbreak:"60",realbreak:"60",normalatt:"20",realatt:"20",absent:"0"},{empname:"Bala",department:"Driver",normal:"140",real:"138",timelate:"1",minlate:"60",timeleave:"1",minleave:"60",normalbreak:"60",realbreak:"60",normalatt:"20",realatt:"20",absent:"0"}],de=[{date:"01-03-2020",normalindividual:"7",realindividual:"7",latemin:"60",leaveearly:"60",normalbreakindividual:"60",realbreakindividual:"60",attendance:"Present"},{date:"02-03-2020",normalindividual:"7",realindividual:"0",latemin:"0",leaveearly:"0",normalbreakindividual:"60",realbreakindividual:"0",attendance:"Absent"}],re=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],le=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],se=_createClass((function t(){_classCallCheck(this,t),this.monthIndex=1,this.monthName="",this.year=0,this.attendence=[]})),ue=_createClass((function t(){_classCallCheck(this,t)})),me=((ie=function(){return _createClass((function t(e,c,n,o,i,a,d,r,l,s){_classCallCheck(this,t),this.modelServie=e,this.loader=c,this.toaster=n,this.router=o,this.apiService=i,this.severdatePipe=a,this.employeeService=d,this.departmentservice=r,this.permission=l,this.timePipe=s,this.console=console,this.selectedValue="",this.dailys=[],this.monthlys=[],this.individuals=[],this.dateemployees=[{value:"02-06-2020",viewValue:"02-06-2020"},{value:"03-06-2020",viewValue:"03-06-2020"}],this.attanceDates=[],this.empstatuses=[{value:"all",viewValue:"All "},{value:"present",viewValue:"Present "},{value:"absent",viewValue:"Absent "},{value:"on_duty",viewValue:"Onduty "},{value:"leave",viewValue:"Leave "},{value:"late_coming",viewValue:"Late Coming "},{value:"permission",viewValue:"Permission "},{value:"left_early_with_permission",viewValue:"Left Early with Permission "},{value:"left_early_without_permission",viewValue:"Left Early without Permission "},{value:"late_coming_and_left_early_with_permission",viewValue:"Late Coming and Left early with permission "},{value:"late_coming_and_left_early_without_permission",viewValue:"Late Coming and Left early without permission "}],this.sortdetails=[{value:"Late",viewValue:"Late"},{value:"Leave Early",viewValue:"Leave Early"},{value:"Absent",viewValue:"Absent"}],this.batches=[{value:"I",viewValue:"I"},{value:"II",viewValue:"II"}],this.classes=[{value:"06",viewValue:"06"},{value:"07",viewValue:"07"}],this.sections=[{value:"A",viewValue:"A"},{value:"B",viewValue:"B"}],this.months=[{value:"01",viewValue:"January"},{value:"02",viewValue:"February"},{value:"03",viewValue:"March"},{value:"04",viewValue:"April"},{value:"05",viewValue:"May"},{value:"06",viewValue:"June"},{value:"07",viewValue:"July"},{value:"08",viewValue:"August"},{value:"09",viewValue:"September"},{value:"10",viewValue:"October"},{value:"11",viewValue:"November"},{value:"12",viewValue:"December"}],this.empnames=[{value:"Ram",viewValue:"Ram"},{value:"Karthick",viewValue:"Karthick"}],this.displayedColumns=["empname","department","normal","real","timelate","minlate","timeleave","minleave","normalbreak","realbreak","normalatt","realatt","absent"],this.dataSource=ae,this.displayedColumns1=["date","normalindividual","realindividual","latemin","leaveearly","normalbreakindividual","realbreakindividual","attendance"],this.dataSourceindividual=de,this.empName=[],this.monthlyList=[],this.timeTableArray=[],this.status=[],this.employeeData=[],this.loadEmployees=[],this.hide=0,this.paginationDTO=new X.a,this.years=Object(L.e)()}),[{key:"ngOnInit",value:function(){this.attendanceForm=new a.j({Type:new a.g("Daily",[a.B.required])}),this.typebasedValidate(this.attendanceForm.value.Type),this.getDepartment()}},{key:"control",get:function(){return this.attendanceForm.controls}},{key:"typebasedValidate",value:function(t){var e=this;"Monthly"==t?(this.attendanceForm.removeControl("month"),this.attendanceForm.removeControl("year"),this.attendanceForm.addControl("month",new a.g("",[a.B.required])),this.attendanceForm.addControl("year",new a.g("",[a.B.required])),this.attendanceForm.removeControl("dailyDate"),this.attendanceForm.removeControl("reportType"),this.attendanceForm.removeControl("empname"),this.attendanceForm.removeControl("department"),this.attendanceForm.removeControl("fromDate"),this.attendanceForm.removeControl("toDate"),this.empName=[],this.deptName="",this.dailys=[],this.individuals=[],this.count="",this.currentmonthname="",this.statusView="",this.fromDate="",this.toDate="",this.dailydate="",this.hide="",this.weekOff="",this.holidayCount=""):"Daily"==t?(this.attendanceForm.removeControl("dailyDate"),this.attendanceForm.removeControl("reportType"),this.attendanceForm.removeControl("month"),this.attendanceForm.removeControl("year"),this.attendanceForm.removeControl("empname"),this.attendanceForm.removeControl("department"),this.attendanceForm.removeControl("fromDate"),this.attendanceForm.removeControl("toDate"),this.attendanceForm.addControl("dailyDate",new a.g("",[a.B.required])),this.attendanceForm.addControl("reportType",new a.g("",[a.B.required])),this.attendanceForm.get("reportType").valueChanges.subscribe((function(t){"all"!=t&&(e.dailys=[],e.count="")})),this.empName=[],this.deptName="",this.monthlys=[],this.individuals=[],this.monthlyList=[],this.fromDate="",this.toDate="",this.hide="",this.weekOff="",this.holidayCount=""):"Individual"==t&&(this.attendanceForm.removeControl("empname"),this.attendanceForm.removeControl("department"),this.attendanceForm.removeControl("fromDate"),this.attendanceForm.removeControl("toDate"),this.attendanceForm.removeControl("month"),this.attendanceForm.removeControl("year"),this.attendanceForm.removeControl("dailyDate"),this.attendanceForm.removeControl("reportType"),this.attendanceForm.addControl("empname",new a.g("",[a.B.required])),this.attendanceForm.addControl("department",new a.g("",[a.B.required])),this.attendanceForm.addControl("fromDate",new a.g("",[a.B.required])),this.attendanceForm.addControl("toDate",new a.g("",[a.B.required])),this.attendanceForm.get("empname").markAsUntouched(),this.attendanceForm.get("department").markAsUntouched(),this.attendanceForm.get("fromDate").markAsUntouched(),this.attendanceForm.get("toDate").markAsUntouched(),this.dailys=[],this.count="",this.currentmonthname="",this.statusView="",this.monthlyList=[],this.dailydate="",this.hide="",this.weekOff="",this.holidayCount="")}},{key:"getStatus",value:function(t){this.statusView=t}},{key:"monthname",value:function(t){this.currentmonthname=t}},{key:"getheader",value:function(t,e){var c,n=t-1;this.startDate=Object(E.a)(new Date(e,n)),this.endDate=null!=(c=this.endDate)?c:this.startDate,this.endDate=Object(V.a)(new Date(e,n)),this.monthlyList=this.prepareMonthBasedAY()}},{key:"prepareMonthBasedAY",value:function(){var t=this,e=[],c=[];return Object(R.a)(this.startDate)&&Object(R.a)(this.endDate)&&(e=Object(j.a)({start:this.startDate,end:this.endDate})),e?(e.forEach((function(e){c.push(t.processDialyEvents(e))})),c):c}},{key:"processDialyEvents",value:function(t){var e=new se;return e.year=t.getFullYear(),e.monthIndex=t.getMonth(),e.monthName=this.getMonthName(t),e.attendence=this.groupEvents(t),e}},{key:"isFirstMonth",value:function(t){var e=new Date(this.startDate);return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},{key:"isLastMonth",value:function(t){var e=new Date(this.endDate);return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},{key:"groupEvents",value:function(t){var e=this,c=this.getMonthName(t)+"_"+t.getFullYear().toString(),n=[],o=this.isFirstMonth(t)?new Date(this.startDate):Object(E.a)(t),i=this.isLastMonth(t)?new Date(this.endDate):Object(V.a)(t);return Object(q.a)({start:o,end:i}).forEach((function(t){var o=e.prepareEvents(c,new Date(t));n.push(o)})),n}},{key:"prepareEvents",value:function(t,e){var c=new ue;return c.date=e,c.dateDisplay=e,c.day=this.getDayName(e),c}},{key:"getDayName",value:function(t){var e;return null!=(e=re[t.getDay()])?e:""}},{key:"getMonthName",value:function(t){var e;return null!=(e=le[t.getMonth()])?e:""}},{key:"getDepartment",value:function(){var t=this;this.departmentservice.getList({}).subscribe((function(e){t.departments=e.departments,t.departments=t.departments.filter((function(t){return"1"==t.status}))}))}},{key:"getEmployees",value:function(t){var e=this;this.modelServie.loadEmployee(t).subscribe((function(t){e.loadEmployees=t.data,e.loadEmployees=e.loadEmployees.filter((function(t){return"1"==t.status}))}))}},{key:"getEmployeeName",value:function(t){this.empName=t}},{key:"getDeptName",value:function(t){this.deptName=t}},{key:"getEmployeeData",value:function(t){return Object(M.find)(this.monthlys,{employeeId:t})}},{key:"getOverallStatus",value:function(t,e){var c=this.getEmployeeData(t);return Object(M.get)(c,e)}},{key:"getDailyRecord",value:function(t,e){var c,n,o,i,a,d,r=this.getEmployeeData(t),l=Object(M.get)(r,"attendanceData"),s=Object(M.find)(l,{thisDate:e}),u=Object(M.get)(r,"weekOffDatas"),m=Object(M.find)(u,{thisDate:e}),p=Object(M.get)(r,"holidayDatas"),f=Object(M.find)(p,{thisDate:e}),h=(null===(c=s)||void 0===c?void 0:c.attendanceType)?null===(n=s)||void 0===n?void 0:n.attendanceType:(null===(o=f)||void 0===o?void 0:o.attendanceType)?null===(i=f)||void 0===i?void 0:i.attendanceType:(null===(a=m)||void 0===a?void 0:a.attendanceType)?null===(d=m)||void 0===d?void 0:d.attendanceType:"";return"absent"==h?h="A":"present"==h?h="P":"leave"==h?h="L":"on_duty"==h?h="OD":"late_coming"==h?h="P":"permission"==h?h="P":"left_early_with_permission"==h?h="P":"left_early_without_permission"==h?h="P":"late_coming_and_left_early_with_permission"==h?h="P":"late_coming_and_left_early_without_permission"==h?h="P":"holiday"==h?h="H":"WeekOff"==h&&(h="WO"),h}},{key:"dailySearch",value:function(){var t,e,c,n,o=this;if(this.findInvalidControls(),this.attendanceForm.valid){var i=Object(N.b)(),a=this.attendanceForm.value,d=this.severdatePipe.transform(null===(t=a)||void 0===t?void 0:t.dailyDate),r=Object(M.get)(i,"customer_id"),l=Object(M.get)(i,"branch_id"),s={customerId:String(r),schoolId:String(l),date:String(d),reportType:String((null===(e=a)||void 0===e?void 0:e.reportType)?null===(c=a)||void 0===c?void 0:c.reportType:"all")};this.loader.open(),this.modelServie.employeeDailyAttan(s,null===(n=a)||void 0===n?void 0:n.reportType).subscribe((function(t){o.data=t,t.data.length>0?(o.loader.close(),o.dailys=t.data,o.count=t,o.dailydate=d,o.toaster.present("Employee attendance report view successfully","")):(o.loader.close(),o.dailys=[],o.count="",o.dailydate="",o.toaster.present("No data found...",""))}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"monthlySearch",value:function(){var t,e,c=this;if(this.findInvalidControls(),this.attendanceForm.valid){var n=Object(N.b)(),o=this.attendanceForm.value,i=Object(M.get)(n,"customer_id"),a=Object(M.get)(n,"branch_id");this.monthlyobj={customerId:String(i),schoolId:String(a),month:String(null===(t=o)||void 0===t?void 0:t.month),year:String(null===(e=o)||void 0===e?void 0:e.year)},this.loader.open(),this.modelServie.employeeMonthlyAttan(this.monthlyobj).subscribe((function(t){var e,n;if(c.data=t,"True"==c.data.status){c.monthlys=t.data,c.count=t,c.hide=1;var i=[];console.log(t.data[0].weekOffDatas),t.data[0].weekOffDatas.forEach((function(t){i.push(t)})),t.data[0].holidayDatas.forEach((function(t){i=i.filter((function(e){return e.thisDate!=t.thisDate}))})),c.weekOff=i.length,c.getheader(null===(e=o)||void 0===e?void 0:e.month,null===(n=o)||void 0===n?void 0:n.year),c.loader.close()}else c.loader.close(),c.monthlys=[],c.count=""}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"individualSearch",value:function(){var t,e,c,n=this;if(this.findInvalidControls(),this.attendanceForm.valid){var o=Object(N.b)(),i=this.attendanceForm.value,a=this.severdatePipe.transform(null===(t=i)||void 0===t?void 0:t.fromDate),d=this.severdatePipe.transform(null===(e=i)||void 0===e?void 0:e.toDate),r=Object(M.get)(o,"customer_id"),l=Object(M.get)(o,"branch_id");this.individualobj={customerId:String(r),schoolId:String(l),employeeId:String(null===(c=i)||void 0===c?void 0:c.empname),fromDate:String(a),toDate:String(d)};var s=[],u=[];this.loader.open(),this.modelServie.employeeIndividualAttan(this.individualobj).subscribe((function(t){if(n.data=t,n.individuals=[],t.data.length>0){var e,c=_createForOfIteratorHelper(t.holidayDatas);try{for(c.s();!(e=c.n()).done;){var o=e.value;n.individuals.push(o),s.push(o),n.holidayCount=s.length}}catch(h){c.e(h)}finally{c.f()}var i,r=_createForOfIteratorHelper(t.weekOffDatas);try{for(r.s();!(i=r.n()).done;){var l=i.value;u.push(l)}}catch(h){r.e(h)}finally{r.f()}var m,p=_createForOfIteratorHelper(t.data);try{for(p.s();!(m=p.n()).done;){var f=m.value;n.individuals.push(f)}}catch(h){p.e(h)}finally{p.f()}s.forEach((function(t){u=u.filter((function(e){return e.thisDate!=t.thisDate}))})),u.forEach((function(t){n.individuals.push(t)})),n.weekOff=u.length,n.individuals.sort((function(t,e){return new Date(t.thisDate).getTime()-new Date(e.thisDate).getTime()})),console.log(n.individuals,"this.individuals"),n.count=t,n.fromDate=a,n.toDate=d,n.loader.close(),n.toaster.present("Employee attendance report view successfully","")}else n.loader.close(),n.individuals=[],n.count="",n.weekOff="",n.holidayCount="",n.toaster.present("No data found...","")}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"download",value:function(){var t,e,c,n,o,i,a,d;if(this.attendanceForm.valid){var r,l,s=new O.e,u=Object(N.b)(),m=this.severdatePipe.transform(null===(t=r=this.attendanceForm.value)||void 0===t?void 0:t.dailyDate),p=Object(M.get)(u,"customer_id"),f=Object(M.get)(u,"branch_id"),h={customerId:String(p),schoolId:String(f),date:String(m),reportType:String(null===(e=r)||void 0===e?void 0:e.reportType)};if("Monthly"==(null===(c=r=this.attendanceForm.value)||void 0===c?void 0:c.Type))for(var b in l="empMonthly",this.monthlyobj)s=s.set(b,this.monthlyobj[b]);else if("Individual"==(null===(n=r)||void 0===n?void 0:n.Type))for(var v in l="empIndividual",this.individualobj)s=s.set(v,this.individualobj[v]);else if("all"!=(null===(o=r)||void 0===o?void 0:o.reportType))for(var g in l="empDaily",h)s=s.set(g,h[g]);else if("all"==(null===(i=r)||void 0===i?void 0:i.reportType))for(var y in l="empAll",h)s=s.set(y,h[y]);var x=(null===(a=r)||void 0===a?void 0:a.reportType)?null===(d=r)||void 0===d?void 0:d.reportType:"report";this.apiService.FilterDownloadFile(l,s).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:break;case O.d.Response:var e=new Blob([t.body],{type:t.body.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),document.body.appendChild(c),c.download="Employee attendence "+x,c.href=URL.createObjectURL(e),c.target="_blank",c.click(),document.body.removeChild(c)}}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"findInvalidControls",value:function(){var t=[],e=this.attendanceForm.controls;for(var c in e)e[c].invalid&&t.push(c);return console.log(t,"invalid"),t}},{key:"getFormatedTime",value:function(t){return t?this.timePipe.transform(t):"-"}}])}()).\u0275fac=function(t){return new(t||ie)(I.Xb(D),I.Xb(G.a),I.Xb(S.a),I.Xb(o.g),I.Xb(P.a),I.Xb(T.d),I.Xb(B.a),I.Xb(Y.a),I.Xb(W.a),I.Xb(T.c))},ie.\u0275cmp=I.Rb({type:ie,selectors:[["app-attendance"]],viewQuery:function(t,e){var c;1&t&&I.md(d.a,!0),2&t&&I.Nc(c=I.mc())&&(e.submitButton=c.first)},features:[I.Fb([{provide:s.c,useClass:A.b},{provide:s.f,useValue:A.a},T.d,T.c])],decls:25,vars:5,consts:[[1,"create_btn"],[1,""],[1,"p-0"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","100"],[1,"card-title-text"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0","mb-4"],["aria-label","Select an option","name","report","formControlName","Type",1,"ml-15"],["value","Daily",1,"mr-40",3,"click"],["value","Monthly",1,"mr-40",3,"click"],["value","Individual",3,"click"],[4,"ngIf"],["class","daily-block ",4,"ngIf"],["class","monthly-block mt-24",4,"ngIf"],["class","individual-block mt-24",4,"ngIf"],[1,"daily-block"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","7",1,"pt-12"],[1,"red_color"],["fxFlex","100","fxFlex.gt-xs","20",1,"mr-32"],["appearance","fill"],["matInput","","formControlName","dailyDate",3,"matDatepicker","focus","click"],["matSuffix","",3,"for"],["pickerdate",""],["fxFlex","100","fxFlex.gt-xs","20",1,"mr-12","pt-12"],["formControlName","reportType"],[3,"value","click",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-xs","27",1,"mt-8","ml-12"],["mat-raised-button","","type","button","color","primary","class","btn-primary-bg",3,"click",4,"ngIf"],["mat-button","","color","primary","type","button",3,"click",4,"ngIf"],[1,"border-top"],[2,"margin-top","12px"],[2,"margin-bottom","5px"],[2,"font-weight","bold","margin-top","5px","width","13%"],[2,"margin-left","20px","font-weight","normal !important"],["style","font-weight: bold;margin-top: 5px;\n ",4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"employee-table"],["rowspan","2",2,"width","7%","text-align","center"],["rowspan","2",2,"width","23%","text-align","left"],["rowspan","2",2,"width","15%","text-align","left"],["colspan","2",2,"width","10%","text-align","center"],["rowspan","2",2,"width","15%","text-align","center"],["style","width:10%;text-align:center;","rowspan","2",4,"ngIf"],[2,"text-align","center"],[4,"ngFor","ngForOf"],[3,"value","click"],["mat-raised-button","","type","button","color","primary",1,"btn-primary-bg",3,"click"],["mat-button","","color","primary","type","button",3,"click"],[1,"material-icons","f30"],[2,"font-weight","bold","margin-top","5px"],[1,"mt-8"],[2,"width","10%"],[2,"border-left","3px solid green","padding-left","8px"],[2,"border-left","3px solid #0BF263","padding-left","8px"],[2,"border-left","3px solid red","padding-left","8px"],[2,"border-left","3px solid orange","padding-left","8px"],[2,"border-left","3px solid blue","padding-left","8px"],[2,"border-left","3px solid #B67D27","padding-left","8px"],[2,"width","15%"],[2,"border-left","3px solid #08A8EA","padding-left","8px"],[2,"border-left","3px solid #F20BF2","padding-left","8px"],[2,"width","21.5%"],[2,"border-left","3px solid #F68321","padding-left","8px"],[2,"width","25%"],[2,"border-left","3px solid #C36363","padding-left","8px"],[2,"width","50%"],["rowspan","2",2,"width","10%","text-align","center"],[2,"text-align","left"],["style","text-align:center;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:green !important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#B67D27!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#f44336!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:orange!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:blue!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background: #0bf263!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#2196F3!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#f20bf2!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#F68321!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#C36363!important;color:#fff !important;",4,"ngIf"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","green !important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#B67D27!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#f44336!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","orange!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","blue!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#0bf263!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#2196F3!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#f20bf2!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#F68321!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#C36363!important","color","#fff !important"],["colspan","7",2,"text-align","center"],[1,"monthly-block","mt-24"],["fxLayout","row wrap",1,"mt-4"],["fxFlex","100","fxFlex.gt-xs","5",1,""],["fxFlex","100","fxFlex.gt-xs","18",1,"mr-12"],["formControlName","month"],["fxFlex","100","fxFlex.gt-xs","5",1,"ml-24"],["fxFlex","100","fxFlex.gt-xs","18",1,"mr-24"],["formControlName","year"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-xs","20",1,"ml-12"],["mat-raised-button","","color","primary","type","button",1,"btn-primary-bg",3,"click"],[2,"border-top","1px solid #ccc"],["class","daily-block-table",4,"ngIf"],[3,"value"],[1,"daily-block-table"],[2,"margin-bottom","5px","margin-top","8px"],[2,"margin-left","20px"],[2,"overflow-x","scroll"],["style","width:5%; text-align:center;","colspan","1",4,"ngFor","ngForOf"],["colspan","4",2,"width","5%","text-align","center"],["colspan","8",2,"width","5%","text-align","center"],["colspan","1",2,"width","5%","text-align","center"],["style","text-align:center;",4,"ngFor","ngForOf"],[1,"fullform","pl-16"],[1,"individual-block","mt-24"],["fxLayout","row wrap",1,"mt-8"],["fxFlex","100","fxFlex.gt-xs","7",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","15",1,"mt-16"],["formControlName","department"],["fxFlex","100","fxFlex.gt-xs","10",1,"mt-16","ml-12"],["fxFlex","100","fxFlex.gt-xs","15",1,"mr-8","mt-16"],["formControlName","empname"],["fxFlex","100","fxFlex.gt-xs","7",1,"mt-16","ml-8"],["fxFlex","100","fxFlex.gt-xs","12",1,"mr-4","mt-4"],["matInput","","formControlName","fromDate",3,"matDatepicker","focus","click"],["picker2",""],["fxFlex","100","fxFlex.gt-xs","5",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","12",1,"mt-4"],["matInput","","formControlName","toDate",3,"matDatepicker","focus","click"],["picker3",""],["fxFlex","100","fxFlex.gt-xs","12",1,"mt-12","ml-4"],[2,"margin-bottom","12px","margin-top","8px"],[2,"font-weight","bold","width","12%"],[2,"width","23%"],[2,"font-weight","bold","width","9%"],[2,"margin-top","14px","margin-bottom","12px"],[2,"border-left","3px solid #0975A3","padding-left","8px"],[2,"border-left","3px solid #C36363",";padding-left","8px"],[2,"border-left","3px solid #019FA2",";padding-left","8px"],[2,"border-left","3px solid #56D5C8",";padding-left","8px"],[1,"employee-table",2,"width","50%","margin-top","12px"],[2,"width","7%","text-align","center"],[2,"width","15%","text-align","center"],[2,"width","8%","text-align","center"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:green!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background: #f20bf2!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#019FA2!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#56D5C8!important;color:#fff !important;",4,"ngIf"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","green!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#019FA2!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#56D5C8!important","color","#fff !important"]],template:function(t,e){1&t&&(I.Yb(0,"div",0),I.dc(1,"div",1),I.dc(2,"mat-card",2),I.dc(3,"mat-card-title",1),I.dc(4,"div",3),I.dc(5,"div",4),I.dc(6,"div",5),I.cd(7,"Employee Attendance"),I.cc(),I.cc(),I.cc(),I.Yb(8,"mat-divider"),I.cc(),I.dc(9,"mat-card-content"),I.dc(10,"form",6),I.dc(11,"div",7),I.dc(12,"div",4),I.dc(13,"div",8),I.dc(14,"mat-radio-group",9),I.dc(15,"mat-radio-button",10),I.lc("click",(function(t){return e.typebasedValidate("Daily")})),I.cd(16,"Daily "),I.cc(),I.dc(17,"mat-radio-button",11),I.lc("click",(function(t){return e.typebasedValidate("Monthly")})),I.cd(18,"Monthly"),I.cc(),I.dc(19,"mat-radio-button",12),I.lc("click",(function(t){return e.typebasedValidate("Individual")})),I.cd(20,"Individual"),I.cc(),I.ad(21,Z,2,0,"mat-error",13),I.cc(),I.cc(),I.cc(),I.cc(),I.ad(22,kt,65,19,"div",14),I.ad(23,Lt,34,5,"div",15),I.ad(24,ne,184,30,"div",16),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(10),I.yc("formGroup",e.attendanceForm),I.Gb(11),I.yc("ngIf",(null==e.attendanceForm.controls.Type.errors?null:e.attendanceForm.controls.Type.errors.required)&&e.attendanceForm.controls.Type.touched),I.Gb(1),I.yc("ngIf","Daily"===e.attendanceForm.controls.Type.value),I.Gb(1),I.yc("ngIf","Monthly"===e.attendanceForm.controls.Type.value),I.Gb(1),I.yc("ngIf","Individual"===e.attendanceForm.controls.Type.value))},directives:[r.a,r.f,U.c,U.a,H.a,r.c,a.D,a.u,a.k,b.b,a.t,a.i,b.a,i.o,J.a,J.b,p.b,a.c,u.b,u.d,J.f,u.a,J.e,K.a,i.n,s.p,d.a],pipes:[T.a,i.z,i.e],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.batch-name[_ngcontent-%COMP%]{font-size:24px;margin-left:-11px}.employee-table[_ngcontent-%COMP%]{border:1px solid #ccc}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 8px!important}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid hsla(0,0%,80%,.4588235294117647)!important;border-width:1px 1px 0!important;white-space:nowrap}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;font-weight:900!important;padding:0 8px!important}table[_ngcontent-%COMP%]{border-spacing:0}/[_ngcontent-%COMP%] /[_ngcontent-%COMP%] .sort[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:flex!important}.f30[_ngcontent-%COMP%]{font-size:30px}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.employee-table[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:10px!important}.mt-20[_ngcontent-%COMP%]{margin-top:20px}.daily-block.Individual[_ngcontent-%COMP%], .daily-block.Monthly[_ngcontent-%COMP%]{display:none}span.material-icons.sort-icon[_ngcontent-%COMP%]{position:relative;top:6px}mat-card-title[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:90%!important}.card-title-text[_ngcontent-%COMP%]{padding:5px 26px!important}@font-face{font-family:Roboto,sans-serif!important;src:url(https://fonts.googleapis.com/css2?display=swap&family=Roboto%3Aital%2Cwght%400%2C100%3B0%2C400%3B0%2C500%3B1%2C400)}"]}),ie),pe=((oe=function(){return _createClass((function t(e){_classCallCheck(this,t),this.apiService=e}),[{key:"StudentDailyAttan",value:function(t,e){var c=new O.e;for(var n in t)c=c.set(n,t[n]);return this.apiService.deviceget("all"==e?"report/student/get/report-all":"report/student/get/daily-attendance",c)}},{key:"StudentIndividualAttan",value:function(t){var e=new O.e;for(var c in t)e=e.set(c,t[c]);return this.apiService.deviceget("report/student/get/individual-attendance",e)}},{key:"StudentMonthlyAttan",value:function(t){var e=new O.e;for(var c in t)e=e.set(c,t[c]);return this.apiService.deviceget("report/student/get/total-report",e)}},{key:"StudentAllAttan",value:function(t){var e=new O.e;for(var c in t)e=e.set(c,t[c]);return this.apiService.deviceget("report/student/get/all-attendance-type",e)}},{key:"currentAcademic",value:function(){return this.apiService.get("loadCurrentAcademic")}}])}()).\u0275fac=function(t){return new(t||oe)(I.hc(P.a))},oe.\u0275prov=I.Tb({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe),fe=c("Qi2G"),he=c("k9Bo"),be=c("73gp"),ve=c("t/Tn");function ge(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please select any one "),I.cc())}function ye(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the date "),I.cc())}function xe(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",56),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getClassName(n.className)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.classId),I.Gb(1),I.ed(" ",n.className," ")}}function Ce(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the class name "),I.cc())}function we(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",56),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getsection(n.sectionName)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.sectionId),I.Gb(1),I.ed(" ",n.sectionName," ")}}function ke(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the section name "),I.cc())}function _e(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",56),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getStatus(n.viewValue)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.value),I.Gb(1),I.ed(" ",n.viewValue," ")}}function Fe(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please select one status "),I.cc())}function Oe(t,e){if(1&t){var c=I.ec();I.dc(0,"button",57),I.lc("click",(function(t){return I.Sc(c),I.pc(2).dailySearch()})),I.cd(1,"Search"),I.cc()}}function Pe(t,e){if(1&t){var c=I.ec();I.dc(0,"button",58),I.lc("click",(function(t){return I.Sc(c),I.pc(2).download()})),I.dc(1,"i",59),I.cd(2," cloud_download "),I.cc(),I.cc()}}function Ie(t,e){if(1&t&&(I.dc(0,"td",60),I.cd(1),I.cc()),2&t){var c=I.pc(2);I.Gb(1),I.dd(c.statusView)}}function De(t,e){if(1&t&&(I.dc(0,"td",61),I.cd(1),I.cc()),2&t){var c=I.pc(2);I.Gb(1),I.dd(null==c.count?null:c.count.count)}}function Ge(t,e){if(1&t&&(I.dc(0,"div",62),I.dc(1,"table",38),I.dc(2,"tr"),I.dc(3,"td",63),I.dc(4,"div",64),I.dc(5,"label"),I.dc(6,"strong"),I.cd(7,"Present"),I.cc(),I.cc(),I.dc(8,"p"),I.cd(9),I.cc(),I.cc(),I.cc(),I.dc(10,"td",63),I.dc(11,"div",65),I.dc(12,"label"),I.dc(13,"strong"),I.cd(14,"OnDuty"),I.cc(),I.cc(),I.dc(15,"p"),I.cd(16),I.cc(),I.cc(),I.cc(),I.dc(17,"td",63),I.dc(18,"div",66),I.dc(19,"label"),I.dc(20,"strong"),I.cd(21,"Absent "),I.cc(),I.cc(),I.dc(22,"p"),I.cd(23),I.cc(),I.cc(),I.cc(),I.dc(24,"td",63),I.dc(25,"div",67),I.dc(26,"label"),I.dc(27,"strong"),I.cd(28,"Leave "),I.cc(),I.cc(),I.dc(29,"p"),I.cd(30),I.cc(),I.cc(),I.cc(),I.dc(31,"td",63),I.dc(32,"div",68),I.dc(33,"label"),I.dc(34,"strong"),I.cd(35,"Late Coming"),I.cc(),I.cc(),I.dc(36,"p"),I.cd(37),I.cc(),I.cc(),I.cc(),I.dc(38,"td",63),I.dc(39,"div",69),I.dc(40,"label"),I.dc(41,"strong"),I.cd(42,"Permission"),I.cc(),I.cc(),I.dc(43,"p"),I.cd(44),I.cc(),I.cc(),I.cc(),I.dc(45,"td",70),I.dc(46,"div",71),I.dc(47,"label"),I.dc(48,"strong"),I.cd(49,"Left Early with Permission "),I.cc(),I.cc(),I.dc(50,"p"),I.cd(51),I.cc(),I.cc(),I.cc(),I.dc(52,"td",70),I.dc(53,"div",72),I.dc(54,"label"),I.dc(55,"strong"),I.cd(56,"Left Early without Permission"),I.cc(),I.cc(),I.dc(57,"p"),I.cd(58),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(59,"table",38),I.dc(60,"tr"),I.dc(61,"td",73),I.dc(62,"div",74),I.dc(63,"label"),I.dc(64,"strong"),I.cd(65,"Late Coming Left Early with Permission "),I.cc(),I.cc(),I.dc(66,"p"),I.cd(67),I.cc(),I.cc(),I.cc(),I.dc(68,"td",75),I.dc(69,"div",76),I.dc(70,"label"),I.dc(71,"strong"),I.cd(72,"Late Coming Left Early without Permission"),I.cc(),I.cc(),I.dc(73,"p"),I.cd(74),I.cc(),I.cc(),I.cc(),I.Yb(75,"td",77),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(9),I.dd(null!=c.count&&c.count.presentCount?null==c.count?null:c.count.presentCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.onDutyCount?null==c.count?null:c.count.onDutyCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.absentCount?null==c.count?null:c.count.absentCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.leaveCount?null==c.count?null:c.count.leaveCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.lateComingCount?null==c.count?null:c.count.lateComingCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.permissionCount?null==c.count?null:c.count.permissionCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.leWithPermissionCount?null==c.count?null:c.count.leWithPermissionCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.leWithoutPermissionCount?null==c.count?null:c.count.leWithoutPermissionCount:0),I.Gb(9),I.dd(null!=c.count&&c.count.lateComingAndLeWithPermissionCount?null==c.count?null:c.count.lateComingAndLeWithPermissionCount:0),I.Gb(7),I.dd(null!=c.count&&c.count.lateComingAndLeWithOutPermissionCount?null==c.count?null:c.count.lateComingAndLeWithOutPermissionCount:0)}}function Se(t,e){1&t&&(I.dc(0,"th",78),I.cd(1,"Status"),I.cc())}function Me(t,e){1&t&&(I.dc(0,"label",91),I.cd(1,"Present"),I.cc())}function Ne(t,e){1&t&&(I.dc(0,"label",92),I.cd(1,"Absent"),I.cc())}function Ae(t,e){1&t&&(I.dc(0,"label",93),I.cd(1,"Leave"),I.cc())}function Te(t,e){1&t&&(I.dc(0,"label",94),I.cd(1,"Late Coming"),I.cc())}function Le(t,e){1&t&&(I.dc(0,"label",95),I.cd(1,"onDuty"),I.cc())}function Ee(t,e){1&t&&(I.dc(0,"label",96),I.cd(1,"Left Early with Permission"),I.cc())}function Ve(t,e){1&t&&(I.dc(0,"label",97),I.cd(1,"Left Early without Permission"),I.cc())}function Re(t,e){1&t&&(I.dc(0,"label",98),I.cd(1," Late Coming Left Early with Permission"),I.cc())}function je(t,e){1&t&&(I.dc(0,"label",99),I.cd(1,"Late Coming Left Early without Permission"),I.cc())}function qe(t,e){1&t&&(I.dc(0,"label",100),I.cd(1,"Permission"),I.cc())}function Be(t,e){if(1&t&&(I.dc(0,"td",54),I.ad(1,Me,2,0,"label",81),I.ad(2,Ne,2,0,"label",82),I.ad(3,Ae,2,0,"label",83),I.ad(4,Te,2,0,"label",84),I.ad(5,Le,2,0,"label",85),I.ad(6,Ee,2,0,"label",86),I.ad(7,Ve,2,0,"label",87),I.ad(8,Re,2,0,"label",88),I.ad(9,je,2,0,"label",89),I.ad(10,qe,2,0,"label",90),I.cc()),2&t){var c=I.pc().$implicit;I.Gb(1),I.yc("ngIf","present"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","absent"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","leave"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","on_duty"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","left_early_with_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","left_early_without_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming_and_left_early_with_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming_and_left_early_without_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","permission"==(null==c?null:c.attendanceType))}}function Ye(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",79),I.cd(2),I.cc(),I.dc(3,"td",79),I.cd(4),I.cc(),I.dc(5,"td"),I.cd(6),I.cc(),I.dc(7,"td",54),I.cd(8),I.cc(),I.dc(9,"td",54),I.cd(10),I.cc(),I.dc(11,"td",54),I.cd(12),I.cc(),I.ad(13,Be,11,10,"td",80),I.cc()),2&t){var c=e.$implicit,n=I.pc(2);I.Gb(2),I.ed(" ",null==c?null:c.rollNo," "),I.Gb(2),I.ed(" ",null==c?null:c.admissionNo," "),I.Gb(2),I.ed("",null==c?null:c.studentName," "),I.Gb(2),I.dd("00:00:00"==(null==c?null:c.checkIn)?"-":n.getFormatedTime(null==c?null:c.checkIn)),I.Gb(2),I.dd("00:00:00"==(null==c?null:c.checkOut)?"-":n.getFormatedTime(null==c?null:c.checkOut)),I.Gb(2),I.ed("",null!=c&&c.thisDay?null==c?null:c.thisDay:"-"," "),I.Gb(1),I.yc("ngIf","all"==(null==n.control?null:null==n.control.reportType?null:n.control.reportType.value))}}function Xe(t,e){1&t&&(I.dc(0,"tbody"),I.dc(1,"tr"),I.dc(2,"td",101),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.cc())}var ze=function(){return["student_report"]},$e=function(){return["student_report_search"]},We=function(){return["student_report_download"]};function Ue(t,e){if(1&t){var c=I.ec();I.dc(0,"div",17),I.dc(1,"div",18),I.dc(2,"div",19),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Date"),I.cc(),I.dc(6,"span",20),I.cd(7,"*"),I.cc(),I.cc(),I.cc(),I.dc(8,"div",21),I.dc(9,"mat-form-field",22),I.dc(10,"input",23),I.lc("focus",(function(t){return I.Sc(c),I.Oc(13).open()}))("click",(function(t){return I.Sc(c),I.Oc(13).open()})),I.cc(),I.Yb(11,"mat-datepicker-toggle",24),I.Yb(12,"mat-datepicker",null,25),I.ad(14,ye,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(15,"div",19),I.dc(16,"label"),I.dc(17,"strong"),I.cd(18,"Class"),I.cc(),I.dc(19,"span",20),I.cd(20,"*"),I.cc(),I.cc(),I.cc(),I.dc(21,"div",26),I.dc(22,"mat-form-field",22),I.Yb(23,"mat-label"),I.dc(24,"mat-select",27),I.ad(25,xe,2,2,"mat-option",28),I.cc(),I.ad(26,Ce,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(27,"div",29),I.dc(28,"label"),I.dc(29,"strong"),I.cd(30,"Section"),I.cc(),I.dc(31,"span",20),I.cd(32,"*"),I.cc(),I.cc(),I.cc(),I.dc(33,"div",26),I.dc(34,"mat-form-field",22),I.Yb(35,"mat-label"),I.dc(36,"mat-select",30),I.ad(37,we,2,2,"mat-option",28),I.cc(),I.ad(38,ke,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(39,"div",31),I.dc(40,"label"),I.dc(41,"strong"),I.cd(42,"Status"),I.cc(),I.dc(43,"span",20),I.cd(44,"*"),I.cc(),I.cc(),I.cc(),I.dc(45,"div",32),I.dc(46,"mat-form-field",22),I.Yb(47,"mat-label"),I.dc(48,"mat-select",33),I.ad(49,_e,2,2,"mat-option",28),I.cc(),I.ad(50,Fe,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(51,"div",34),I.ad(52,Oe,2,0,"button",35),I.ad(53,Pe,3,0,"button",36),I.cc(),I.cc(),I.Yb(54,"div",37),I.dc(55,"div",38),I.dc(56,"table",39),I.dc(57,"tr"),I.dc(58,"td",40),I.cd(59,"Date "),I.cc(),I.dc(60,"td",41),I.cd(61),I.qc(62,"displayDate"),I.cc(),I.dc(63,"td",42),I.cd(64,"Class "),I.cc(),I.dc(65,"td",43),I.cd(66),I.cc(),I.dc(67,"td",44),I.cd(68,"Section"),I.cc(),I.dc(69,"td"),I.cd(70),I.cc(),I.ad(71,Ie,2,1,"td",45),I.ad(72,De,2,1,"td",46),I.cc(),I.cc(),I.ad(73,Ge,76,10,"div",47),I.dc(74,"table",48),I.dc(75,"thead"),I.dc(76,"tr"),I.dc(77,"th",49),I.cd(78,"Roll No "),I.cc(),I.dc(79,"th",49),I.cd(80,"Admn No "),I.cc(),I.dc(81,"th",50),I.cd(82,"Name of the Student "),I.cc(),I.dc(83,"th",51),I.cd(84,"Check "),I.cc(),I.dc(85,"th",52),I.cd(86,"Days "),I.cc(),I.ad(87,Se,2,0,"th",53),I.cc(),I.dc(88,"tr"),I.dc(89,"th",54),I.cd(90," IN "),I.cc(),I.dc(91,"th",54),I.cd(92," OUT "),I.cc(),I.cc(),I.cc(),I.dc(93,"tbody"),I.ad(94,Ye,14,7,"tr",55),I.cc(),I.ad(95,Xe,4,0,"tbody",13),I.cc(),I.cc(),I.cc()}if(2&t){var n=I.Oc(13),o=I.pc();I.Gb(10),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(3),I.yc("ngIf",null==o.control?null:null==o.control.dailyDate?null:null==o.control.dailyDate.errors?null:o.control.dailyDate.errors.required),I.Gb(11),I.yc("ngForOf",o.classes),I.Gb(1),I.yc("ngIf",null==o.control?null:null==o.control.dailyclass?null:null==o.control.dailyclass.errors?null:o.control.dailyclass.errors.required),I.Gb(11),I.yc("ngForOf",o.sections),I.Gb(1),I.yc("ngIf",null==o.control?null:null==o.control.dailysection?null:null==o.control.dailysection.errors?null:o.control.dailysection.errors.required),I.Gb(11),I.yc("ngForOf",o.empstatuses),I.Gb(1),I.yc("ngIf",null==o.control?null:null==o.control.reportType?null:null==o.control.reportType.errors?null:o.control.reportType.errors.required),I.Gb(2),I.yc("ngIf",o.permission.hasPermission(I.Ec(22,ze),I.Ec(23,$e))),I.Gb(1),I.yc("ngIf",o.permission.hasPermission(I.Ec(24,ze),I.Ec(25,We))),I.Gb(8),I.dd(I.rc(62,20,o.dailydate)),I.Gb(5),I.ed("",o.className," "),I.Gb(4),I.dd(o.sectionName),I.Gb(1),I.yc("ngIf","all"!=(null==o.control?null:null==o.control.reportType?null:o.control.reportType.value)),I.Gb(1),I.yc("ngIf","all"!=(null==o.control?null:null==o.control.reportType?null:o.control.reportType.value)),I.Gb(1),I.yc("ngIf","all"==(null==o.control?null:null==o.control.reportType?null:o.control.reportType.value)),I.Gb(14),I.yc("ngIf","all"==(null==o.control?null:null==o.control.reportType?null:o.control.reportType.value)),I.Gb(7),I.yc("ngForOf",o.dailys),I.Gb(1),I.yc("ngIf",0==(null==o.dailys?null:o.dailys.length))}}function He(t,e){if(1&t&&(I.dc(0,"mat-option",117),I.cd(1),I.cc()),2&t){var c=e.$implicit;I.yc("value",c.value),I.Gb(1),I.ed(" ",c.viewValue," ")}}function Je(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the month "),I.cc())}function Ke(t,e){if(1&t&&(I.dc(0,"mat-option",117),I.cd(1),I.cc()),2&t){var c=e.$implicit;I.yc("value",c.year),I.Gb(1),I.ed(" ",c.year," ")}}function Ze(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the year "),I.cc())}function Qe(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",56),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getClassName(n.className)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.classId),I.Gb(1),I.ed(" ",n.className," ")}}function tc(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the class name "),I.cc())}function ec(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",56),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getsection(n.sectionName)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.sectionId),I.Gb(1),I.ed(" ",n.sectionName," ")}}function cc(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the section name "),I.cc())}function nc(t,e){if(1&t&&(I.dc(0,"td",126),I.cd(1,"Class "),I.dc(2,"span",121),I.cd(3),I.cc(),I.cc()),2&t){var c=I.pc(3);I.Gb(3),I.dd(c.className)}}function oc(t,e){if(1&t&&(I.dc(0,"td",127),I.cd(1,"Section "),I.dc(2,"span",121),I.cd(3),I.cc(),I.cc()),2&t){var c=I.pc(3);I.Gb(3),I.dd(c.sectionName)}}function ic(t,e){if(1&t&&(I.dc(0,"th",132),I.cd(1),I.qc(2,"uppercase"),I.cc()),2&t){var c=e.$implicit;I.Gb(1),I.dd(I.rc(2,1,c.day))}}function ac(t,e){if(1&t&&(I.dc(0,"th",54),I.cd(1),I.qc(2,"date"),I.cc()),2&t){var c=e.$implicit;I.Gb(1),I.dd(I.sc(2,1,c.date,"dd"))}}function dc(t,e){if(1&t&&(I.dc(0,"tr"),I.ad(1,ac,3,4,"th",133),I.dc(2,"th",54),I.cd(3,"Present"),I.cc(),I.dc(4,"th",54),I.cd(5," Absent"),I.cc(),I.dc(6,"th",54),I.cd(7,"Leave"),I.cc(),I.dc(8,"th",54),I.cd(9,"OnDuty"),I.cc(),I.dc(10,"th",54),I.cd(11,"LC"),I.cc(),I.dc(12,"th",54),I.cd(13,"PM"),I.cc(),I.dc(14,"th",54),I.cd(15,"LE-WP"),I.cc(),I.dc(16,"th",54),I.cd(17,"LE-WOP"),I.cc(),I.dc(18,"th",54),I.cd(19,"LE-LC-WP"),I.cc(),I.dc(20,"th",54),I.cd(21,"LE-LC-WOP"),I.cc(),I.dc(22,"th",54),I.cd(23,"WO"),I.cc(),I.dc(24,"th",54),I.cd(25,"H"),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(1),I.yc("ngForOf",c.attendence)}}function rc(t,e){if(1&t&&(I.dc(0,"td",54),I.cd(1),I.qc(2,"date"),I.cc()),2&t){var c=e.$implicit,n=I.pc().$implicit,o=I.pc(4);I.Gb(1),I.dd(o.getDailyRecord(n.studentId,I.sc(2,1,c.date,"yyyy-MM-dd")))}}function lc(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",54),I.cd(2),I.cc(),I.dc(3,"td"),I.cd(4),I.cc(),I.ad(5,rc,3,4,"td",133),I.dc(6,"td",54),I.cd(7),I.cc(),I.dc(8,"td",54),I.cd(9),I.cc(),I.dc(10,"td",54),I.cd(11),I.cc(),I.dc(12,"td",54),I.cd(13),I.cc(),I.dc(14,"td",54),I.cd(15),I.cc(),I.dc(16,"td",54),I.cd(17),I.cc(),I.dc(18,"td",54),I.cd(19),I.cc(),I.dc(20,"td",54),I.cd(21),I.cc(),I.dc(22,"td",54),I.cd(23),I.cc(),I.dc(24,"td",54),I.cd(25),I.cc(),I.dc(26,"td",54),I.cd(27),I.cc(),I.dc(28,"td",54),I.cd(29),I.cc(),I.cc()),2&t){var c=e.$implicit,n=I.pc(4);I.Gb(2),I.ed(" ",c.rollNo," "),I.Gb(2),I.ed("",c.studentName," "),I.Gb(1),I.yc("ngForOf",n.monthlyList[0].attendence),I.Gb(2),I.dd(c.presentCount),I.Gb(2),I.dd(c.absentCount),I.Gb(2),I.dd(c.leaveCount),I.Gb(2),I.dd(c.onDutyCount),I.Gb(2),I.dd(c.lateComingCount),I.Gb(2),I.dd(c.permissionCount?c.permissionCount:0),I.Gb(2),I.dd(c.leWithPermissionCount),I.Gb(2),I.dd(c.leWithoutPermissionCount),I.Gb(2),I.dd(c.lateComingAndleWithPermissionCount),I.Gb(2),I.dd(c.lateComingAndleWithOutPermissionCount),I.Gb(2),I.dd(n.weekOff),I.Gb(2),I.dd(c.holidayCount)}}function sc(t,e){if(1&t&&(I.dc(0,"table",48),I.dc(1,"thead"),I.dc(2,"tr"),I.dc(3,"th",128),I.cd(4,"Roll No "),I.cc(),I.dc(5,"th",50),I.cd(6,"Name of the Student\t"),I.cc(),I.ad(7,ic,3,3,"th",129),I.dc(8,"th",130),I.cd(9,"Total Days "),I.cc(),I.dc(10,"th",131),I.cd(11,"Total "),I.cc(),I.cc(),I.ad(12,dc,26,1,"tr",55),I.cc(),I.dc(13,"tbody"),I.ad(14,lc,30,15,"tr",55),I.cc(),I.cc()),2&t){var c=e.$implicit,n=I.pc(3);I.Gb(7),I.yc("ngForOf",c.attendence),I.Gb(5),I.yc("ngForOf",n.monthlyList),I.Gb(2),I.yc("ngForOf",n.monthlys)}}function uc(t,e){1&t&&(I.dc(0,"div"),I.dc(1,"h4"),I.dc(2,"strong"),I.cd(3,"Notes:"),I.cc(),I.cc(),I.dc(4,"ul",134),I.dc(5,"li"),I.dc(6,"strong"),I.cd(7,"P"),I.cc(),I.cd(8," - Present "),I.cc(),I.dc(9,"li"),I.dc(10,"strong"),I.cd(11,"A"),I.cc(),I.cd(12," - Absent "),I.cc(),I.dc(13,"li"),I.dc(14,"strong"),I.cd(15,"L"),I.cc(),I.cd(16," - Leave "),I.cc(),I.dc(17,"li"),I.dc(18,"strong"),I.cd(19,"OD"),I.cc(),I.cd(20," - OnDuty "),I.cc(),I.dc(21,"li"),I.dc(22,"strong"),I.cd(23,"LC"),I.cc(),I.cd(24," - Late Coming "),I.cc(),I.dc(25,"li"),I.dc(26,"strong"),I.cd(27,"PM"),I.cc(),I.cd(28," - Permission "),I.cc(),I.dc(29,"li"),I.dc(30,"strong"),I.cd(31,"LE-WP"),I.cc(),I.cd(32," - Left Early with Permission "),I.cc(),I.dc(33,"li"),I.dc(34,"strong"),I.cd(35,"LE-WOP"),I.cc(),I.cd(36," - Left Early without Permission "),I.cc(),I.dc(37,"li"),I.dc(38,"strong"),I.cd(39,"LE-LC-WP"),I.cc(),I.cd(40," - Left Early Late Coming with Permission "),I.cc(),I.dc(41,"li"),I.dc(42,"strong"),I.cd(43,"LE-LC-WOP"),I.cc(),I.cd(44," - Left Early Late Coming without Permission "),I.cc(),I.dc(45,"li"),I.dc(46,"strong"),I.cd(47,"WO"),I.cc(),I.cd(48," - Week Off "),I.cc(),I.dc(49,"li"),I.dc(50,"strong"),I.cd(51,"H"),I.cc(),I.cd(52," - Holiday "),I.cc(),I.cc(),I.cc())}function mc(t,e){if(1&t&&(I.dc(0,"div",118),I.dc(1,"table",119),I.dc(2,"tr"),I.dc(3,"td",120),I.cd(4),I.dc(5,"span",121),I.cd(6),I.cc(),I.cc(),I.ad(7,nc,4,1,"td",122),I.ad(8,oc,4,1,"td",123),I.cc(),I.cc(),I.dc(9,"div",124),I.ad(10,sc,15,3,"table",125),I.cc(),I.ad(11,uc,53,0,"div",13),I.cc()),2&t){var c=I.pc(2);I.Gb(4),I.dd(c.currentmonthname),I.Gb(2),I.dd(null==c.control?null:null==c.control.year?null:c.control.year.value),I.Gb(1),I.yc("ngIf","All"!=c.selectedValue),I.Gb(1),I.yc("ngIf","All"!=c.selectedValue),I.Gb(2),I.yc("ngForOf",c.monthlyList),I.Gb(1),I.yc("ngIf",1==c.hide)}}function pc(t,e){if(1&t){var c=I.ec();I.dc(0,"div",102),I.dc(1,"div",103),I.dc(2,"div",104),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Month"),I.cc(),I.dc(6,"span",20),I.cd(7,"*"),I.cc(),I.cc(),I.cc(),I.dc(8,"div",105),I.dc(9,"mat-form-field",22),I.Yb(10,"mat-label"),I.dc(11,"mat-select",106),I.ad(12,He,2,2,"mat-option",107),I.cc(),I.ad(13,Je,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(14,"div",108),I.dc(15,"label"),I.dc(16,"strong"),I.cd(17,"Year"),I.cc(),I.dc(18,"span",20),I.cd(19,"*"),I.cc(),I.cc(),I.cc(),I.dc(20,"div",109),I.dc(21,"mat-form-field",22),I.Yb(22,"mat-label"),I.dc(23,"mat-select",110),I.ad(24,Ke,2,2,"mat-option",107),I.cc(),I.ad(25,Ze,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(26,"div",104),I.dc(27,"label"),I.dc(28,"strong"),I.cd(29,"Class"),I.cc(),I.dc(30,"span",20),I.cd(31,"*"),I.cc(),I.cc(),I.cc(),I.dc(32,"div",111),I.dc(33,"mat-form-field",22),I.Yb(34,"mat-label"),I.dc(35,"mat-select",112),I.ad(36,Qe,2,2,"mat-option",28),I.cc(),I.ad(37,tc,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(38,"div",104),I.dc(39,"label"),I.dc(40,"strong"),I.cd(41,"Section"),I.cc(),I.dc(42,"span",20),I.cd(43,"*"),I.cc(),I.cc(),I.cc(),I.dc(44,"div",111),I.dc(45,"mat-form-field",22),I.Yb(46,"mat-label"),I.dc(47,"mat-select",113),I.ad(48,ec,2,2,"mat-option",28),I.cc(),I.ad(49,cc,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(50,"div",114),I.dc(51,"button",57),I.lc("click",(function(t){return I.Sc(c),I.pc().monthlySearch()})),I.cd(52,"Search"),I.cc(),I.dc(53,"button",58),I.lc("click",(function(t){return I.Sc(c),I.pc().download()})),I.dc(54,"i",59),I.cd(55," cloud_download "),I.cc(),I.cc(),I.cc(),I.cc(),I.Yb(56,"div",115),I.ad(57,mc,12,6,"div",116),I.cc()}if(2&t){var n=I.pc();I.Gb(12),I.yc("ngForOf",n.months),I.Gb(1),I.yc("ngIf",null==n.control?null:null==n.control.month?null:null==n.control.month.errors?null:n.control.month.errors.required),I.Gb(11),I.yc("ngForOf",n.years),I.Gb(1),I.yc("ngIf",null==n.control?null:null==n.control.year?null:null==n.control.year.errors?null:n.control.year.errors.required),I.Gb(11),I.yc("ngForOf",n.classes),I.Gb(1),I.yc("ngIf",null==n.control?null:null==n.control.class?null:null==n.control.class.errors?null:n.control.class.errors.required),I.Gb(11),I.yc("ngForOf",n.sections),I.Gb(1),I.yc("ngIf",null==n.control?null:null==n.control.section?null:null==n.control.section.errors?null:n.control.section.errors.required),I.Gb(8),I.yc("ngIf",1==n.hide)}}function fc(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",56),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getClass(n.batchId)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.batchId),I.Gb(1),I.ed(" ",n.batchName," ")}}function hc(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Select Batch "),I.cc())}function bc(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",56),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getClassName(n.className),o.getStudent()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.classId),I.Gb(1),I.ed(" ",n.className," ")}}function vc(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Select Class "),I.cc())}function gc(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",56),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getStudent()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.sectionId),I.Gb(1),I.ed(" ",n.sectionName," ")}}function yc(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Select Section "),I.cc())}function xc(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",168),I.lc("Click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getStudentName(n)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.studentId),I.Gb(1),I.ed(" ",n.studentName," ")}}function Cc(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Select Student Name "),I.cc())}function wc(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Select From date "),I.cc())}function kc(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Select To date "),I.cc())}function _c(t,e){1&t&&(I.dc(0,"label",173),I.cd(1,"Present"),I.cc())}function Fc(t,e){1&t&&(I.dc(0,"label",92),I.cd(1,"Absent"),I.cc())}function Oc(t,e){1&t&&(I.dc(0,"label",96),I.cd(1,"Left Early with Permission"),I.cc())}function Pc(t,e){1&t&&(I.dc(0,"label",97),I.cd(1,"Left Early without Permission"),I.cc())}function Ic(t,e){1&t&&(I.dc(0,"label",95),I.cd(1,"onDuty"),I.cc())}function Dc(t,e){1&t&&(I.dc(0,"label",94),I.cd(1,"Late Coming"),I.cc())}function Gc(t,e){1&t&&(I.dc(0,"label",93),I.cd(1,"Leave"),I.cc())}function Sc(t,e){1&t&&(I.dc(0,"label",98),I.cd(1," Late Coming Left Early with Permission"),I.cc())}function Mc(t,e){1&t&&(I.dc(0,"label",99),I.cd(1,"Late Coming Left Early without Permission"),I.cc())}function Nc(t,e){1&t&&(I.dc(0,"label",100),I.cd(1,"Permission"),I.cc())}function Ac(t,e){1&t&&(I.dc(0,"label",174),I.cd(1,"Week Off"),I.cc())}function Tc(t,e){1&t&&(I.dc(0,"label",175),I.cd(1,"Holiday"),I.cc())}function Lc(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",54),I.cd(2),I.cc(),I.dc(3,"td",54),I.cd(4),I.cc(),I.dc(5,"td",54),I.cd(6),I.cc(),I.dc(7,"td",54),I.cd(8),I.cc(),I.dc(9,"td",54),I.ad(10,_c,2,0,"label",169),I.ad(11,Fc,2,0,"label",82),I.ad(12,Oc,2,0,"label",86),I.ad(13,Pc,2,0,"label",170),I.ad(14,Ic,2,0,"label",85),I.ad(15,Dc,2,0,"label",84),I.ad(16,Gc,2,0,"label",83),I.ad(17,Sc,2,0,"label",88),I.ad(18,Mc,2,0,"label",89),I.ad(19,Nc,2,0,"label",90),I.ad(20,Ac,2,0,"label",171),I.ad(21,Tc,2,0,"label",172),I.cc(),I.cc()),2&t){var c=e.$implicit,n=I.pc(2);I.Gb(2),I.ed(" ",null==c?null:c.thisDate," "),I.Gb(2),I.dd("00:00:00"==(null==c?null:c.checkIn)?"-":n.getFormatedTime(null==c?null:c.checkIn)),I.Gb(2),I.dd("00:00:00"==(null==c?null:c.checkOut)?"-":n.getFormatedTime(null==c?null:c.checkOut)),I.Gb(2),I.ed("",null!=c&&c.thisDay?null==c?null:c.thisDay:"-"," "),I.Gb(2),I.yc("ngIf","present"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","absent"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","left_early_with_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","left_early_without_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","on_duty"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","leave"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming_and_left_early_with_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","late_coming_and_left_early_without_permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","permission"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","WeekOff"==(null==c?null:c.attendanceType)),I.Gb(1),I.yc("ngIf","holiday"==(null==c?null:c.attendanceType))}}function Ec(t,e){1&t&&(I.dc(0,"tbody"),I.dc(1,"tr"),I.dc(2,"td",101),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.cc())}function Vc(t,e){if(1&t){var c=I.ec();I.dc(0,"div",135),I.dc(1,"div",136),I.dc(2,"div",137),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Batch"),I.cc(),I.dc(6,"span",20),I.cd(7,"*"),I.cc(),I.cc(),I.cc(),I.dc(8,"div",138),I.dc(9,"mat-form-field",22),I.Yb(10,"mat-label"),I.dc(11,"mat-select",139),I.ad(12,fc,2,2,"mat-option",28),I.cc(),I.ad(13,hc,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(14,"div",137),I.dc(15,"label"),I.dc(16,"strong"),I.cd(17,"Class"),I.cc(),I.dc(18,"span",20),I.cd(19,"*"),I.cc(),I.cc(),I.cc(),I.dc(20,"div",138),I.dc(21,"mat-form-field",22),I.Yb(22,"mat-label"),I.dc(23,"mat-select",140),I.ad(24,bc,2,2,"mat-option",28),I.cc(),I.ad(25,vc,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(26,"div",137),I.dc(27,"label"),I.dc(28,"strong"),I.cd(29,"Section"),I.cc(),I.dc(30,"span",20),I.cd(31,"*"),I.cc(),I.cc(),I.cc(),I.dc(32,"div",138),I.dc(33,"mat-form-field",22),I.Yb(34,"mat-label"),I.dc(35,"mat-select",141),I.ad(36,gc,2,2,"mat-option",28),I.cc(),I.ad(37,yc,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(38,"div",142),I.dc(39,"label"),I.dc(40,"strong"),I.cd(41,"Student Name"),I.cc(),I.dc(42,"span",20),I.cd(43,"*"),I.cc(),I.cc(),I.cc(),I.dc(44,"div",143),I.dc(45,"mat-form-field",22),I.Yb(46,"mat-label"),I.dc(47,"mat-select",144),I.ad(48,xc,2,2,"mat-option",145),I.cc(),I.ad(49,Cc,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(50,"div",146),I.dc(51,"label"),I.dc(52,"strong"),I.cd(53,"From Date"),I.cc(),I.dc(54,"span",20),I.cd(55,"*"),I.cc(),I.cc(),I.cc(),I.dc(56,"div",147),I.dc(57,"mat-form-field",22),I.dc(58,"input",148),I.lc("focus",(function(t){return I.Sc(c),I.Oc(61).open()}))("click",(function(t){return I.Sc(c),I.Oc(61).open()})),I.cc(),I.Yb(59,"mat-datepicker-toggle",24),I.Yb(60,"mat-datepicker",null,149),I.ad(62,wc,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(63,"div",150),I.dc(64,"label"),I.dc(65,"strong"),I.cd(66,"To Date"),I.cc(),I.dc(67,"span",20),I.cd(68,"*"),I.cc(),I.cc(),I.cc(),I.dc(69,"div",147),I.dc(70,"mat-form-field",22),I.dc(71,"input",151),I.lc("focus",(function(t){return I.Sc(c),I.Oc(74).open()}))("click",(function(t){return I.Sc(c),I.Oc(74).open()})),I.cc(),I.Yb(72,"mat-datepicker-toggle",24),I.Yb(73,"mat-datepicker",null,152),I.ad(75,kc,2,0,"mat-error",13),I.cc(),I.cc(),I.dc(76,"div",153),I.dc(77,"button",57),I.lc("click",(function(t){return I.Sc(c),I.pc().individualSearch()})),I.cd(78,"Search"),I.cc(),I.dc(79,"button",58),I.lc("click",(function(t){return I.Sc(c),I.pc().download()})),I.dc(80,"i",59),I.cd(81," cloud_download "),I.cc(),I.cc(),I.cc(),I.cc(),I.Yb(82,"div",115),I.dc(83,"table",154),I.dc(84,"tr"),I.dc(85,"td",127),I.cd(86,"Date "),I.dc(87,"span",121),I.cd(88),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(89,"table",154),I.dc(90,"tr"),I.dc(91,"td",155),I.cd(92,"Student Name "),I.cc(),I.dc(93,"td",156),I.cd(94),I.cc(),I.dc(95,"td",157),I.cd(96,"Class "),I.cc(),I.dc(97,"td",70),I.cd(98),I.cc(),I.dc(99,"td",158),I.cd(100,"Section"),I.cc(),I.dc(101,"td"),I.cd(102),I.cc(),I.cc(),I.cc(),I.dc(103,"div",159),I.dc(104,"table",38),I.dc(105,"tr"),I.dc(106,"td",63),I.dc(107,"div",64),I.dc(108,"label"),I.dc(109,"strong"),I.cd(110,"Present"),I.cc(),I.cc(),I.dc(111,"p"),I.cd(112),I.cc(),I.cc(),I.cc(),I.dc(113,"td",63),I.dc(114,"div",65),I.dc(115,"label"),I.dc(116,"strong"),I.cd(117,"OnDuty"),I.cc(),I.cc(),I.dc(118,"p"),I.cd(119),I.cc(),I.cc(),I.cc(),I.dc(120,"td",63),I.dc(121,"div",66),I.dc(122,"label"),I.dc(123,"strong"),I.cd(124,"Absent "),I.cc(),I.cc(),I.dc(125,"p"),I.cd(126),I.cc(),I.cc(),I.cc(),I.dc(127,"td",63),I.dc(128,"div",67),I.dc(129,"label"),I.dc(130,"strong"),I.cd(131,"Leave "),I.cc(),I.cc(),I.dc(132,"p"),I.cd(133),I.cc(),I.cc(),I.cc(),I.dc(134,"td",63),I.dc(135,"div",68),I.dc(136,"label"),I.dc(137,"strong"),I.cd(138,"Late Coming"),I.cc(),I.cc(),I.dc(139,"p"),I.cd(140),I.cc(),I.cc(),I.cc(),I.dc(141,"td",63),I.dc(142,"div",69),I.dc(143,"label"),I.dc(144,"strong"),I.cd(145,"Permission"),I.cc(),I.cc(),I.dc(146,"p"),I.cd(147),I.cc(),I.cc(),I.cc(),I.dc(148,"td",70),I.dc(149,"div",160),I.dc(150,"label"),I.dc(151,"strong"),I.cd(152,"Left Early with Permission "),I.cc(),I.cc(),I.dc(153,"p"),I.cd(154),I.cc(),I.cc(),I.cc(),I.dc(155,"td",70),I.dc(156,"div",72),I.dc(157,"label"),I.dc(158,"strong"),I.cd(159,"Left Early without Permission"),I.cc(),I.cc(),I.dc(160,"p"),I.cd(161),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(162,"table"),I.dc(163,"tr"),I.dc(164,"td",73),I.dc(165,"div",74),I.dc(166,"label"),I.dc(167,"strong"),I.cd(168,"Late Coming Left Early with Permission "),I.cc(),I.cc(),I.dc(169,"p"),I.cd(170),I.cc(),I.cc(),I.cc(),I.dc(171,"td",75),I.dc(172,"div",161),I.dc(173,"label"),I.dc(174,"strong"),I.cd(175,"Late Coming Left Early without Permission"),I.cc(),I.cc(),I.dc(176,"p"),I.cd(177),I.cc(),I.cc(),I.cc(),I.dc(178,"td",75),I.dc(179,"div",162),I.dc(180,"label"),I.dc(181,"strong"),I.cd(182,"Week Off"),I.cc(),I.cc(),I.dc(183,"p"),I.cd(184),I.cc(),I.cc(),I.cc(),I.dc(185,"td",75),I.dc(186,"div",163),I.dc(187,"label"),I.dc(188,"strong"),I.cd(189,"Holiday"),I.cc(),I.cc(),I.dc(190,"p"),I.cd(191),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(192,"table",164),I.dc(193,"thead"),I.dc(194,"tr"),I.dc(195,"th",165),I.cd(196,"Date\t"),I.cc(),I.dc(197,"th",165),I.cd(198,"Check IN\t"),I.cc(),I.dc(199,"th",165),I.cd(200,"\tCheck OUT "),I.cc(),I.dc(201,"th",166),I.cd(202,"Days "),I.cc(),I.dc(203,"th",167),I.cd(204,"Status "),I.cc(),I.cc(),I.cc(),I.dc(205,"tbody"),I.ad(206,Lc,22,16,"tr",55),I.cc(),I.ad(207,Ec,4,0,"tbody",13),I.cc(),I.cc()}if(2&t){var n=I.Oc(61),o=I.Oc(74),i=I.pc();I.Gb(12),I.yc("ngForOf",i.batches),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.batch?null:null==i.control.batch.errors?null:i.control.batch.errors.required),I.Gb(11),I.yc("ngForOf",i.classes),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.indivualclass?null:null==i.control.indivualclass.errors?null:i.control.indivualclass.errors.required),I.Gb(11),I.yc("ngForOf",i.sections),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.indivualsection?null:null==i.control.indivualsection.errors?null:i.control.indivualsection.errors.required),I.Gb(11),I.yc("ngForOf",i.students),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.studename?null:null==i.control.studename.errors?null:i.control.studename.errors.required),I.Gb(9),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(3),I.yc("ngIf",null==i.control?null:null==i.control.fromDate?null:null==i.control.fromDate.errors?null:i.control.fromDate.errors.required),I.Gb(9),I.yc("matDatepicker",o),I.Gb(1),I.yc("for",o),I.Gb(3),I.yc("ngIf",null==i.control?null:null==i.control.toDate?null:null==i.control.toDate.errors?null:i.control.toDate.errors.required),I.Gb(13),I.gd("",i.fromDate," ",i.fromDate?"-":""," ",i.toDate,""),I.Gb(6),I.dd(null==i.count?null:i.count.studentName),I.Gb(4),I.ed("",null==i.count?null:i.count.className," "),I.Gb(4),I.dd(null==i.count?null:i.count.sectionName),I.Gb(10),I.dd(null!=i.count&&i.count.presentCount?null==i.count?null:i.count.presentCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.onDutyCount?null==i.count?null:i.count.onDutyCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.absentCount?null==i.count?null:i.count.absentCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.leaveCount?null==i.count?null:i.count.leaveCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.lateComingCount?null==i.count?null:i.count.lateComingCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.permissionCount?null==i.count?null:i.count.permissionCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.leWithPermissionCount?null==i.count?null:i.count.leWithPermissionCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.leWithoutPermissionCount?null==i.count?null:i.count.leWithoutPermissionCount:0),I.Gb(9),I.dd(null!=i.count&&i.count.lateComingAndLeWithPermissionCount?null==i.count?null:i.count.lateComingAndLeWithPermissionCount:0),I.Gb(7),I.dd(null!=i.count&&i.count.lateComingAndLeWithOutPermissionCount?null==i.count?null:i.count.lateComingAndLeWithOutPermissionCount:0),I.Gb(7),I.dd(i.weekOff?i.weekOff:0),I.Gb(7),I.dd(i.holidayCount?i.holidayCount:0),I.Gb(15),I.yc("ngForOf",i.individuals),I.Gb(1),I.yc("ngIf",0==(null==i.individuals?null:i.individuals.length))}}var Rc,jc=[{empname:"Ram",department:"Transport",normal:"140",real:"138",timelate:"1",minlate:"60",timeleave:"1",minleave:"60",normalbreak:"60",realbreak:"60",normalatt:"20",realatt:"20",absent:"0"},{empname:"Malini",department:"Teaching",normal:"140",real:"138",timelate:"1",minlate:"60",timeleave:"1",minleave:"60",normalbreak:"60",realbreak:"60",normalatt:"20",realatt:"20",absent:"0"},{empname:"Bala",department:"Driver",normal:"140",real:"138",timelate:"1",minlate:"60",timeleave:"1",minleave:"60",normalbreak:"60",realbreak:"60",normalatt:"20",realatt:"20",absent:"0"}],qc=[{date:"01-03-2020",normalindividual:"7",realindividual:"7",latemin:"60",leaveearly:"60",normalbreakindividual:"60",realbreakindividual:"60",attendance:"Present"},{date:"02-03-2020",normalindividual:"7",realindividual:"0",latemin:"0",leaveearly:"0",normalbreakindividual:"60",realbreakindividual:"0",attendance:"Absent"}],Bc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Yc=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],Xc=_createClass((function t(){_classCallCheck(this,t),this.monthIndex=1,this.monthName="",this.year=0,this.attendence=[]})),zc=_createClass((function t(){_classCallCheck(this,t)})),$c=((Rc=function(){return _createClass((function t(e,c,n,o,i,a,d,r,l,s,u,m){_classCallCheck(this,t),this.modelServie=e,this.loader=c,this.toaster=n,this.router=o,this.batchService=i,this.severdatePipe=a,this.StudentService=d,this.sectionService=r,this.apiService=l,this.classService=s,this.permission=u,this.timePipe=m,this.console=console,this.selectedValue="",this.dateemployees=[{value:"02-06-2020",viewValue:"02-06-2020"},{value:"03-06-2020",viewValue:"03-06-2020"}],this.empstatuses=[{value:"all",viewValue:"All "},{value:"present",viewValue:"Present "},{value:"absent",viewValue:"Absent "},{value:"on_duty",viewValue:"Onduty "},{value:"leave",viewValue:"Leave "},{value:"late_coming",viewValue:"Late Coming "},{value:"permission",viewValue:"Permission "},{value:"left_early_with_permission",viewValue:"Left Early with Permission "},{value:"left_early_without_permission",viewValue:"Left Early without Permission "},{value:"late_coming_and_left_early_with_permission",viewValue:"Late Coming and Left early with permission "},{value:"late_coming_and_left_early_without_permission",viewValue:"Late Coming and Left early without permission "}],this.sortdetails=[{value:"Late",viewValue:"Late"},{value:"Leave Early",viewValue:"Leave Early"},{value:"Absent",viewValue:"Absent"}],this.months=[{value:"01",viewValue:"January"},{value:"02",viewValue:"February"},{value:"03",viewValue:"March"},{value:"04",viewValue:"April"},{value:"05",viewValue:"May"},{value:"06",viewValue:"June"},{value:"07",viewValue:"July"},{value:"08",viewValue:"August"},{value:"09",viewValue:"September"},{value:"10",viewValue:"October"},{value:"11",viewValue:"November"},{value:"12",viewValue:"December"}],this.studenames=[{value:"Ram",viewValue:"Ram"},{value:"Karthick",viewValue:"Karthick"}],this.departments=[{value:"Teaching",viewValue:"Teaching"},{value:"Transport",viewValue:"Transport"}],this.displayedColumns=["empname","department","normal","real","timelate","minlate","timeleave","minleave","normalbreak","realbreak","normalatt","realatt","absent"],this.dataSource=jc,this.displayedColumns1=["date","normalindividual","realindividual","latemin","leaveearly","normalbreakindividual","realbreakindividual","attendance"],this.dataSourceindividual=qc,this.studentName=[],this.monthlyList=[],this.timeTableArray=[],this.status=[],this.employeeData=[],this.dailys=[],this.monthlys=[],this.individuals=[],this.hide=0,this.years=Object(L.e)()}),[{key:"ngOnInit",value:function(){this.attendanceForm=new a.j({Type:new a.g("Daily",[a.B.required])}),this.typebasedValidate(this.attendanceForm.value.Type),this.getAcademic(),this.getSection(),this.getStudent(),this.getClasses()}},{key:"control",get:function(){return this.attendanceForm.controls}},{key:"typebasedValidate",value:function(t){var e=this;"Monthly"==t?(this.attendanceForm.addControl("month",new a.g("",[a.B.required])),this.attendanceForm.addControl("year",new a.g("",[a.B.required])),this.attendanceForm.addControl("class",new a.g("",[a.B.required])),this.attendanceForm.addControl("section",new a.g("",[a.B.required])),this.attendanceForm.removeControl("dailyDate"),this.attendanceForm.removeControl("reportType"),this.attendanceForm.removeControl("dailysection"),this.attendanceForm.removeControl("dailyclass"),this.attendanceForm.removeControl("studename"),this.attendanceForm.removeControl("indivualclass"),this.attendanceForm.removeControl("indivualsection"),this.attendanceForm.removeControl("batch"),this.attendanceForm.removeControl("fromDate"),this.attendanceForm.removeControl("toDate"),this.dailys=[],this.count="",this.className="",this.sectionName="",this.individuals=[],this.currentmonthname="",this.statusView="",this.fromDate="",this.toDate="",this.dailydate="",this.weekOff="",this.holidayCount="",this.hide=""):"Daily"==t?(this.attendanceForm.removeControl("month"),this.attendanceForm.removeControl("year"),this.attendanceForm.removeControl("class"),this.attendanceForm.removeControl("section"),this.attendanceForm.removeControl("studename"),this.attendanceForm.removeControl("indivualclass"),this.attendanceForm.removeControl("indivualsection"),this.attendanceForm.removeControl("batch"),this.attendanceForm.removeControl("fromDate"),this.attendanceForm.removeControl("toDate"),this.attendanceForm.addControl("dailyDate",new a.g("",[a.B.required])),this.attendanceForm.addControl("reportType",new a.g("",[a.B.required])),this.attendanceForm.addControl("dailyclass",new a.g("",[a.B.required])),this.attendanceForm.addControl("dailysection",new a.g("",[a.B.required])),this.attendanceForm.get("reportType").valueChanges.subscribe((function(t){"all"!=t&&(e.dailys=[],e.count="")})),this.monthlys=[],this.individuals=[],this.count="",this.className="",this.sectionName="",this.monthlyList=[],this.currentmonthname="",this.fromDate="",this.toDate="",this.weekOff="",this.holidayCount="",this.hide=""):"Individual"==t&&(this.attendanceForm.removeControl("class"),this.attendanceForm.removeControl("section"),this.attendanceForm.removeControl("month"),this.attendanceForm.removeControl("year"),this.attendanceForm.removeControl("dailyDate"),this.attendanceForm.removeControl("reportType"),this.attendanceForm.removeControl("dailysection"),this.attendanceForm.removeControl("dailyclass"),this.attendanceForm.addControl("studename",new a.g("",[a.B.required])),this.attendanceForm.addControl("indivualclass",new a.g("",[a.B.required])),this.attendanceForm.addControl("indivualsection",new a.g("",[a.B.required])),this.attendanceForm.addControl("batch",new a.g("",[a.B.required])),this.attendanceForm.addControl("fromDate",new a.g("",[a.B.required])),this.attendanceForm.addControl("toDate",new a.g("",[a.B.required])),this.className="",this.sectionName="",this.dailys=[],this.count="",this.monthlys=[],this.currentmonthname="",this.statusView="",this.monthlyList=[],this.dailydate="",this.weekOff="",this.holidayCount="",this.hide="")}},{key:"getStatus",value:function(t){this.statusView=t}},{key:"getAcademic",value:function(){var t=this;this.modelServie.currentAcademic().subscribe((function(e){"success"==e.keyword&&(t.academicId=e.data[0].academic_year_id,t.getBatch(t.academicId))}))}},{key:"getBatch",value:function(t){var e=this;this.batchService.getListByAcademic(t).subscribe((function(t){"success"==t.keyword&&(e.batches=t.batches)}))}},{key:"monthname",value:function(t){this.currentmonthname=t}},{key:"getheader",value:function(t,e){var c,n=t-1;this.startDate=Object(E.a)(new Date(e,n)),this.endDate=null!=(c=this.endDate)?c:this.startDate,this.endDate=Object(V.a)(new Date(e,n)),this.monthlyList=this.prepareMonthBasedAY()}},{key:"prepareMonthBasedAY",value:function(){var t=this,e=[],c=[];return Object(R.a)(this.startDate)&&Object(R.a)(this.endDate)&&(e=Object(j.a)({start:this.startDate,end:this.endDate})),e?(e.forEach((function(e){c.push(t.processDialyEvents(e))})),c):c}},{key:"processDialyEvents",value:function(t){var e=new Xc;return e.year=t.getFullYear(),e.monthIndex=t.getMonth(),e.monthName=this.getMonthName(t),e.attendence=this.groupEvents(t),e}},{key:"isFirstMonth",value:function(t){var e=new Date(this.startDate);return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},{key:"isLastMonth",value:function(t){var e=new Date(this.endDate);return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},{key:"groupEvents",value:function(t){var e=this,c=this.getMonthName(t)+"_"+t.getFullYear().toString(),n=[],o=this.isFirstMonth(t)?new Date(this.startDate):Object(E.a)(t),i=this.isLastMonth(t)?new Date(this.endDate):Object(V.a)(t);return Object(q.a)({start:o,end:i}).forEach((function(t){var o=e.prepareEvents(c,new Date(t));n.push(o)})),n}},{key:"prepareEvents",value:function(t,e){var c=new zc;return c.date=e,c.dateDisplay=e,c.day=this.getDayName(e),c}},{key:"getDayName",value:function(t){var e;return null!=(e=Bc[t.getDay()])?e:""}},{key:"getMonthName",value:function(t){var e;return null!=(e=Yc[t.getMonth()])?e:""}},{key:"getClasses",value:function(){var t=this;this.classService.getListForClass({sortByType:"ASC",sortByKey:"class_id"}).subscribe((function(e){"success"==e.keyword&&(t.classes=e.classes,t.classes=t.classes.filter((function(t){return"1"==t.status})))}))}},{key:"getClass",value:function(t){var e=this;this.classService.getClassByBatch(t).subscribe((function(t){"success"==t.keyword&&(e.classes=t.classes)}))}},{key:"getSection",value:function(){var t=this;this.sectionService.getList({sortByType:"ASC",sortByKey:"section_id"}).subscribe((function(e){"success"==e.keyword&&(t.sections=e.sections.filter((function(t){return"1"==t.status})))}))}},{key:"getStudent",value:function(){var t=this,e=this.attendanceForm.value;""!=e.indivualclass&&""!=e.indivualsection&&""!=this.academicId&&""!=e.batch&&this.StudentService.getStudentName(this.academicId,e.batch,e.indivualclass,e.indivualsection).subscribe((function(e){t.students=e.studentRegistrations}))}},{key:"getStudentName",value:function(t){this.studentName=t}},{key:"getClassName",value:function(t){this.className=t}},{key:"getsection",value:function(t){this.sectionName=t}},{key:"getStudentData",value:function(t){return Object(M.find)(this.monthlys,{studentId:t})}},{key:"getOverallStatus",value:function(t,e){var c=this.getStudentData(t);return Object(M.get)(c,e)}},{key:"getDailyRecord",value:function(t,e){var c,n,o,i,a,d,r=this.getStudentData(t),l=Object(M.get)(r,"attendanceData"),s=Object(M.find)(l,{thisDate:e}),u=Object(M.get)(r,"weekOffDatas"),m=Object(M.find)(u,{thisDate:e}),p=Object(M.get)(r,"holidayDatas"),f=Object(M.find)(p,{thisDate:e}),h=(null===(c=s)||void 0===c?void 0:c.attendanceType)?null===(n=s)||void 0===n?void 0:n.attendanceType:(null===(o=f)||void 0===o?void 0:o.attendanceType)?null===(i=f)||void 0===i?void 0:i.attendanceType:(null===(a=m)||void 0===a?void 0:a.attendanceType)?null===(d=m)||void 0===d?void 0:d.attendanceType:"";return"absent"==h?h="A":"present"==h?h="P":"leave"==h?h="L":"on_duty"==h?h="OD":"late_coming"==h?h="P":"permission"==h?h="P ":"left_early_with_permission"==h?h="P ":"left_early_without_permission"==h?h="P ":"late_coming_and_left_early_with_permission"==h?h="P ":"late_coming_and_left_early_without_permission"==h?h=" P":"holiday"==h?h="H":"WeekOff"==h&&(h="WO"),h}},{key:"dailySearch",value:function(){var t,e,c,n,o,i=this;if(this.attendanceForm.valid){var a=Object(N.b)(),d=this.attendanceForm.value,r=this.severdatePipe.transform(null===(t=d)||void 0===t?void 0:t.dailyDate),l=Object(M.get)(a,"customer_id"),s=Object(M.get)(a,"branch_id");this.dailyobj={customerId:String(l),schoolId:String(s),date:String(r),classId:String(null===(e=d)||void 0===e?void 0:e.dailyclass),sectionId:String(null===(c=d)||void 0===c?void 0:c.dailysection),reportType:String(null===(n=d)||void 0===n?void 0:n.reportType)},this.loader.open(),this.modelServie.StudentDailyAttan(this.dailyobj,null===(o=d)||void 0===o?void 0:o.reportType).subscribe((function(t){i.data=t,t.data.length>0?(i.loader.close(),i.dailys=t.data,i.count=t,i.dailydate=r,i.toaster.present("Student attendance report view successfully","")):(i.loader.close(),i.dailys=[],i.count=" ",i.dailydate="",i.toaster.present("No data found...",""))}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"monthlySearch",value:function(){var t,e,c,n,o=this;if(this.attendanceForm.valid){var i=Object(N.b)(),a=this.attendanceForm.value,d=Object(M.get)(i,"customer_id"),r=Object(M.get)(i,"branch_id");this.monthlyobj={customerId:String(d),schoolId:String(r),classId:String(null===(t=a)||void 0===t?void 0:t.class),sectionId:String(null===(e=a)||void 0===e?void 0:e.section),month:String(null===(c=a)||void 0===c?void 0:c.month),year:String(null===(n=a)||void 0===n?void 0:n.year)};var l=[];this.loader.open(),this.modelServie.StudentMonthlyAttan(this.monthlyobj).subscribe((function(t){var e,c;o.data=t,"True"==o.data.status?(o.monthlys=t.data,o.count=t,o.hide=1,console.log(t.data[0].weekOffDatas),t.data[0].weekOffDatas.forEach((function(t){l.push(t)})),t.data[0].holidayDatas.forEach((function(t){l=l.filter((function(e){return e.thisDate!=t.thisDate}))})),o.weekOff=l.length,o.getheader(null===(e=a)||void 0===e?void 0:e.month,null===(c=a)||void 0===c?void 0:c.year),o.loader.close()):(o.loader.close(),o.monthlys=[],o.count="",o.weekOff="")}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"individualSearch",value:function(){var t,e,c,n=this;if(this.attendanceForm.valid){var o=Object(N.b)(),i=this.attendanceForm.value,a=this.severdatePipe.transform(null===(t=i)||void 0===t?void 0:t.fromDate),d=this.severdatePipe.transform(null===(e=i)||void 0===e?void 0:e.toDate),r=Object(M.get)(o,"customer_id"),l=Object(M.get)(o,"branch_id");this.individualobj={customerId:String(r),schoolId:String(l),studentId:String(null===(c=i)||void 0===c?void 0:c.studename),fromDate:String(a),toDate:String(d)};var s=[],u=[];this.loader.open(),this.modelServie.StudentIndividualAttan(this.individualobj).subscribe((function(t){if(n.data=t,n.individuals=[],t.data.length>0){var e,c=_createForOfIteratorHelper(t.holidayDatas);try{for(c.s();!(e=c.n()).done;){var o=e.value;n.individuals.push(o),s.push(o),n.holidayCount=s.length}}catch(h){c.e(h)}finally{c.f()}var i,r=_createForOfIteratorHelper(t.weekOffDatas);try{for(r.s();!(i=r.n()).done;){var l=i.value;u.push(l)}}catch(h){r.e(h)}finally{r.f()}var m,p=_createForOfIteratorHelper(t.data);try{for(p.s();!(m=p.n()).done;){var f=m.value;n.individuals.push(f)}}catch(h){p.e(h)}finally{p.f()}s.forEach((function(t){u=u.filter((function(e){return e.thisDate!=t.thisDate}))})),u.forEach((function(t){n.individuals.push(t)})),n.weekOff=u.length,n.individuals.sort((function(t,e){return new Date(t.thisDate).getTime()-new Date(e.thisDate).getTime()})),n.count=t,n.fromDate=a,n.toDate=d,n.loader.close(),n.toaster.present("Student attendance report view successfully","")}else n.loader.close(),n.individuals=[],n.count="",n.weekOff="",n.holidayCount="",n.toaster.present("No data found...","")}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"download",value:function(){var t,e,c,n,o,i;if(this.attendanceForm.valid){var a,d=new O.e,r=this.attendanceForm.value;if("Monthly"==(null===(t=r)||void 0===t?void 0:t.Type))for(var l in a="stuMonthly",this.monthlyobj)d=d.set(l,this.monthlyobj[l]);else if("Individual"==(null===(e=r)||void 0===e?void 0:e.Type))for(var s in a="stuIndividual",this.individualobj)d=d.set(s,this.individualobj[s]);else if("all"!=(null===(c=r)||void 0===c?void 0:c.reportType))for(var u in a="stuDaily",this.dailyobj)d=d.set(u,this.dailyobj[u]);else if("all"==(null===(n=r)||void 0===n?void 0:n.reportType))for(var m in a="stuAll",this.dailyobj)d=d.set(m,this.dailyobj[m]);var p=(null===(o=r)||void 0===o?void 0:o.reportType)?null===(i=r)||void 0===i?void 0:i.reportType:"report";this.apiService.FilterDownloadFile(a,d).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:break;case O.d.Response:var e=new Blob([t.body],{type:t.body.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),document.body.appendChild(c),c.download="Student attendence "+p,c.href=URL.createObjectURL(e),c.target="_blank",c.click(),document.body.removeChild(c)}}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"getFormatedTime",value:function(t){return t?this.timePipe.transform(t):"-"}}])}()).\u0275fac=function(t){return new(t||Rc)(I.Xb(pe),I.Xb(G.a),I.Xb(S.a),I.Xb(o.g),I.Xb(ve.a),I.Xb(T.d),I.Xb(fe.a),I.Xb(be.a),I.Xb(P.a),I.Xb(he.a),I.Xb(W.a),I.Xb(T.c))},Rc.\u0275cmp=I.Rb({type:Rc,selectors:[["app-attendance"]],features:[I.Fb([{provide:s.c,useClass:A.b},{provide:s.f,useValue:A.a},T.d,T.c])],decls:25,vars:5,consts:[[1,"create_btn"],[1,""],[1,"p-0"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","100"],[1,"card-title-text"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0","mb-4"],["aria-label","Select an option","name","report","formControlName","Type",1,"ml-15"],["value","Daily",1,"mr-40",3,"click"],["value","Monthly",1,"mr-40",3,"click"],["value","Individual",3,"click"],[4,"ngIf"],["class","daily-block",4,"ngIf"],["class","monthly-block mt-24",4,"ngIf"],["class","individual-block mt-24",4,"ngIf"],[1,"daily-block"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","5",1,"pt-12"],[1,"red_color"],["fxFlex","100","fxFlex.gt-xs","12",1,"mr-32"],["appearance","fill"],["matInput","","formControlName","dailyDate",3,"matDatepicker","focus","click"],["matSuffix","",3,"for"],["pickerdate",""],["fxFlex","100","fxFlex.gt-xs","12",1,"mr-32","pt-12"],["formControlName","dailyclass"],[3,"value","click",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-xs","7",1,"pt-12"],["formControlName","dailysection"],["fxFlex","100","fxFlex.gt-xs","6",1,"pt-12"],["fxFlex","100","fxFlex.gt-xs","17",1,"mr-12","pt-12"],["formControlName","reportType"],["fxFlex","100","fxFlex.gt-xs","12",1,"mt-8","ml-12"],["mat-raised-button","","color","primary","class","btn-primary-bg","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","type","button",3,"click",4,"ngIf"],[1,"border-top"],[2,"margin-top","12px"],[2,"margin-bottom","5px"],[2,"font-weight","bold","width","4%"],[2,"width","9%"],[2,"font-weight","bold","width","5%"],[2,"width","7%"],[2,"font-weight","bold","width","6%"],["style","font-weight: bold;width:25%;text-align: right;",4,"ngIf"],["style","width:3%;text-align: right;",4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"employee-table"],["rowspan","2",2,"width","10%","text-align","left"],["rowspan","2",2,"width","23%","text-align","left"],["colspan","2",2,"width","10%","text-align","center"],["rowspan","2",2,"width","10%","text-align","center"],["style","width:23%;text-align:center;","rowspan","2",4,"ngIf"],[2,"text-align","center"],[4,"ngFor","ngForOf"],[3,"value","click"],["mat-raised-button","","color","primary","type","button",1,"btn-primary-bg",3,"click"],["mat-button","","color","primary","type","button",3,"click"],[1,"material-icons","f30"],[2,"font-weight","bold","width","25%","text-align","right"],[2,"width","3%","text-align","right"],[1,"mt-8"],[2,"width","10%"],[2,"border-left","3px solid green","padding-left","8px"],[2,"border-left","3px solid #0BF263","padding-left","8px"],[2,"border-left","3px solid red","padding-left","8px"],[2,"border-left","3px solid orange","padding-left","8px"],[2,"border-left","3px solid blue","padding-left","8px"],[2,"border-left","3px solid #B67D27","padding-left","8px"],[2,"width","15%"],[2,"border-left","3px solid #08A8EA","padding-left","8px"],[2,"border-left","3px solid #F20BF2","padding-left","8px"],[2,"width","21.5%"],[2,"border-left","3px solid #F68321","padding-left","8px"],[2,"width","25%"],[2,"border-left","3px solid #C36363","padding-left","8px"],[2,"width","50%"],["rowspan","2",2,"width","23%","text-align","center"],[2,"text-align","left"],["style","text-align:center;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:green !important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#f44336!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:orange!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:blue!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background: #0bf263!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#2196F3!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#f20bf2!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#F68321!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#C36363!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#B67D27!important;color:#fff !important;",4,"ngIf"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","green !important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#f44336!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","orange!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","blue!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#0bf263!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#2196F3!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#f20bf2!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#F68321!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#C36363!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#B67D27!important","color","#fff !important"],["colspan","7",2,"text-align","center"],[1,"monthly-block","mt-24"],["fxLayout","row wrap",1,"mt-4"],["fxFlex","100","fxFlex.gt-xs","5",1,""],["fxFlex","100","fxFlex.gt-xs","10",1,"mr-12"],["formControlName","month"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-xs","5",1,"ml-24"],["fxFlex","100","fxFlex.gt-xs","10",1,"mr-24"],["formControlName","year"],["fxFlex","100","fxFlex.gt-xs","12",1,"mr-16"],["formControlName","class"],["formControlName","section"],["fxFlex","100","fxFlex.gt-xs","20",1,"ml-12"],[2,"border-top","1px solid #ccc"],["class","daily-block-table",4,"ngIf"],[3,"value"],[1,"daily-block-table"],[2,"margin-bottom","5px","margin-top","8px"],[2,"font-weight","bold","margin-top","5px","width","14%"],[2,"margin-left","20px"],["style","font-weight: bold;margin-top: 5px;width: 16%;\n ",4,"ngIf"],["style","font-weight: bold;margin-top: 5px;\n ",4,"ngIf"],[2,"overflow-x","scroll"],["class","employee-table",4,"ngFor","ngForOf"],[2,"font-weight","bold","margin-top","5px","width","16%"],[2,"font-weight","bold","margin-top","5px"],["rowspan","2",2,"width","2%","text-align","center"],["style","width:5%; text-align:center;","colspan","1",4,"ngFor","ngForOf"],["colspan","4",2,"width","5%","text-align","center"],["colspan","8",2,"width","5%","text-align","center"],["colspan","1",2,"width","5%","text-align","center"],["style","text-align:center;",4,"ngFor","ngForOf"],[1,"fullform","pl-16"],[1,"individual-block","mt-24"],["fxLayout","row wrap",1,"mt-8"],["fxFlex","100","fxFlex.gt-xs","4",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","8",1,"mt-16","mr-8"],["formControlName","batch"],["formControlName","indivualclass"],["formControlName","indivualsection"],["fxFlex","100","fxFlex.gt-xs","9",1,"mt-16","ml-4"],["fxFlex","100","fxFlex.gt-xs","10",1,"mr-4","mt-16"],["formControlName","studename"],[3,"value","Click",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-xs","6",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","9",1,"mt-4"],["matInput","","formControlName","fromDate",3,"matDatepicker","focus","click"],["picker2",""],["fxFlex","100","fxFlex.gt-xs","5",1,"mt-16"],["matInput","","formControlName","toDate",3,"matDatepicker","focus","click"],["picker3",""],["fxFlex","100","fxFlex.gt-xs","12",1,"mt-12"],[2,"margin-bottom","12px","margin-top","8px"],[2,"font-weight","bold","width","12%"],[2,"width","23%"],[2,"font-weight","bold","width","9%"],[2,"font-weight","bold","width","7%"],[2,"margin-top","14px","margin-bottom","12px"],[2,"border-left","3px solid #0975A3","padding-left","8px"],[2,"border-left","3px solid #C36363",";padding-left","8px"],[2,"border-left","3px solid #019FA2",";padding-left","8px"],[2,"border-left","3px solid #56D5C8",";padding-left","8px"],[1,"employee-table",2,"width","50%","margin-top","12px"],[2,"width","7%","text-align","center"],[2,"width","15%","text-align","center"],[2,"width","8%","text-align","center"],[3,"value","Click"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:green!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background: #f20bf2!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#019FA2!important;color:#fff !important;",4,"ngIf"],["style","padding: 2px 4px 1px 4px !important; border-radius: 0px !important; font-size: 11px !important; background:#56D5C8!important;color:#fff !important;",4,"ngIf"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","green!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#019FA2!important","color","#fff !important"],[2,"padding","2px 4px 1px 4px !important","border-radius","0px !important","font-size","11px !important","background","#56D5C8!important","color","#fff !important"]],template:function(t,e){1&t&&(I.Yb(0,"div",0),I.dc(1,"div",1),I.dc(2,"mat-card",2),I.dc(3,"mat-card-title",1),I.dc(4,"div",3),I.dc(5,"div",4),I.dc(6,"div",5),I.cd(7,"Student Attendance"),I.cc(),I.cc(),I.cc(),I.Yb(8,"mat-divider"),I.cc(),I.dc(9,"mat-card-content"),I.dc(10,"form",6),I.dc(11,"div",7),I.dc(12,"div",4),I.dc(13,"div",8),I.dc(14,"mat-radio-group",9),I.dc(15,"mat-radio-button",10),I.lc("click",(function(t){return e.typebasedValidate("Daily")})),I.cd(16,"Daily "),I.cc(),I.dc(17,"mat-radio-button",11),I.lc("click",(function(t){return e.typebasedValidate("Monthly")})),I.cd(18,"Monthly"),I.cc(),I.dc(19,"mat-radio-button",12),I.lc("click",(function(t){return e.typebasedValidate("Individual")})),I.cd(20,"Individual"),I.cc(),I.ad(21,ge,2,0,"mat-error",13),I.cc(),I.cc(),I.cc(),I.cc(),I.ad(22,Ue,96,26,"div",14),I.ad(23,pc,58,9,"div",15),I.ad(24,Vc,208,34,"div",16),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(10),I.yc("formGroup",e.attendanceForm),I.Gb(11),I.yc("ngIf",(null==e.attendanceForm.controls.Type.errors?null:e.attendanceForm.controls.Type.errors.required)&&e.attendanceForm.controls.Type.touched),I.Gb(1),I.yc("ngIf","Daily"===e.attendanceForm.controls.Type.value),I.Gb(1),I.yc("ngIf","Monthly"===e.attendanceForm.controls.Type.value),I.Gb(1),I.yc("ngIf","Individual"===e.attendanceForm.controls.Type.value))},directives:[r.a,r.f,U.c,U.a,H.a,r.c,a.D,a.u,a.k,b.b,a.t,a.i,b.a,i.o,J.a,J.b,p.b,a.c,u.b,u.d,J.f,u.a,J.e,K.a,i.n,s.p,d.a],pipes:[T.a,i.z,i.e],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.batch-name[_ngcontent-%COMP%]{font-size:24px;margin-left:-11px}.employee-table[_ngcontent-%COMP%]{border:1px solid #ccc}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 8px!important}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid hsla(0,0%,80%,.4588235294117647)!important;border-width:1px 1px 0!important;white-space:nowrap}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;font-weight:900!important;padding:0 8px!important}table[_ngcontent-%COMP%]{border-spacing:0}/[_ngcontent-%COMP%] /[_ngcontent-%COMP%] .sort[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:flex!important}.f30[_ngcontent-%COMP%]{font-size:30px}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.employee-table[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:10px!important}.mt-20[_ngcontent-%COMP%]{margin-top:20px}.daily-block.Individual[_ngcontent-%COMP%], .daily-block.Monthly[_ngcontent-%COMP%]{display:none}span.material-icons.sort-icon[_ngcontent-%COMP%]{position:relative;top:6px}mat-card-title[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:90%!important}.card-title-text[_ngcontent-%COMP%]{padding:5px 26px!important}@font-face{font-family:Roboto,sans-serif!important;src:url(https://fonts.googleapis.com/css2?display=swap&family=Roboto%3Aital%2Cwght%400%2C100%3B0%2C400%3B0%2C500%3B1%2C400)}"]}),Rc),Wc=c("Ruum"),Uc=c("kvGf"),Hc=c("0IaG");function Jc(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",18),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc().getClassesByBatch(n.batchId)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.batchId),I.Gb(1),I.ed(" ",n.batchName," ")}}function Kc(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please select the batch "),I.cc())}function Zc(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",18),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc().setClassName(n.className)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.classId),I.Gb(1),I.ed(" ",n.className," ")}}function Qc(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please select the class "),I.cc())}function tn(t,e){if(1&t&&(I.dc(0,"mat-radio-button",23),I.dc(1,"span"),I.cd(2),I.cc(),I.cc()),2&t){var c=e.$implicit,n=I.pc(2);I.Nb("checked-section",n.ischecked(c.sectionId)),I.yc("value",c.sectionId),I.Gb(2),I.fd("",n.className,"",c.sectionName,"")}}function en(t,e){if(1&t&&(I.dc(0,"div",5),I.dc(1,"div",19),I.dc(2,"label"),I.dc(3,"strong"),I.cd(4,"Select Section"),I.cc(),I.dc(5,"span",7),I.cd(6,"*"),I.cc(),I.cc(),I.cc(),I.dc(7,"div",20),I.dc(8,"mat-radio-group",21),I.ad(9,tn,3,5,"mat-radio-button",22),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc();I.Gb(9),I.yc("ngForOf",c.sections)}}function cn(t,e){1&t&&(I.dc(0,"p",24),I.cd(1,"Notes : Should select any one of the section"),I.cc())}var nn,on=((nn=function(){return _createClass((function t(e,c,n,o,i,a,d,r,l){_classCallCheck(this,t),this.dialog=e,this.router=c,this.modelService=n,this.commomService=o,this.classService=i,this.batchService=a,this.toaster=d,this.loader=r,this.sectionService=l,this.section=[],this.currentAcademicYearId="",this.className="",localStorage.removeItem("forViewExamMark")}),[{key:"ngOnInit",value:function(){this.form(),this.getCurrentAcademicYear(),this.getSections()}},{key:"form",value:function(){this.basicForm=new a.j({academicYearId:new a.g(""),batch:new a.g("",a.B.required),class:new a.g("",a.B.required),section:new a.g("",a.B.required)})}},{key:"control",get:function(){return this.basicForm.controls}},{key:"getCurrentAcademicYear",value:function(){var t=this;this.commomService.getCurrentAcademicYear().subscribe((function(e){var c,n;"success"==e.keyword?(t.currentAcademicYearId=null===(c=e.data[0])||void 0===c?void 0:c.academic_year_id,t.academicYear=null===(n=e.data[0])||void 0===n?void 0:n.academic_year,t.basicForm.get("academicYearId").patchValue(t.currentAcademicYearId),t.batchService.getListByAcademic(t.currentAcademicYearId).subscribe((function(e){"success"==e.keyword?(t.batches=e.batches,console.log(t.batches,"batches")):t.toaster.present(e.message,"")}))):t.toaster.present(e.message,"")}))}},{key:"getClassesByBatch",value:function(t){var e=this;this.classService.getClassByBatch(t).subscribe((function(t){"success"==t.keyword?e.classes=t.classes:e.toaster.present(t.message,"")}))}},{key:"setClassName",value:function(t){this.className=t}},{key:"getSections",value:function(){var t=this;this.sectionService.getList({sortByType:"ASC",sortByKey:"section_id"}).subscribe((function(e){"success"==e.keyword?t.sections=e.sections.filter((function(t){return"1"==t.status})):t.toaster.present(e.message,"")}))}},{key:"ischecked",value:function(t){if(this.basicForm.value.section==t)return!0}},{key:"submit",value:function(){this.basicForm.valid?(this.loader.open(),localStorage.setItem("forViewExamMark",JSON.stringify(this.basicForm.value)),this.router.navigate(["/school/reports/report-card/list"]),this.loader.close()):this.loader.close()}}])}()).\u0275fac=function(t){return new(t||nn)(I.Xb(Hc.b),I.Xb(o.g),I.Xb(Uc.a),I.Xb(Wc.a),I.Xb(he.a),I.Xb(ve.a),I.Xb(S.a),I.Xb(G.a),I.Xb(be.a))},nn.\u0275cmp=I.Rb({type:nn,selectors:[["app-manual"]],decls:37,vars:8,consts:[[1,"p-0"],[1,""],[1,"card-title-text"],[1,"mb-0","pb-4"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-12","grade-checkbox"],["fxFlex","100","fxFlex.gt-xs","12",1,"mt-4"],[1,"red_color"],["fxFlex","100","fxFlex.gt-xs","30",1,"flex-row","mt-4"],[1,"full-width"],["formControlName","batch"],[3,"value","click",4,"ngFor","ngForOf"],[4,"ngIf"],["fxFlex","100","fxFlex.gt-xs","10"],["formControlName","class"],["fxLayout","row wrap","class","mt-12 grade-checkbox",4,"ngIf"],["class","mt-12 mb-12 ","style","font-size:13px;",4,"ngIf"],["mat-raised-button","","color","primary",1,"btn-primary-bg","ml-0","mt-12","mb-12",3,"disabled","click"],[3,"value","click"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0"],["fxFlex","100","fxFlex.gt-xs","100",1,"flex-row","mt-16","mb-12","custom_radio"],["aria-label","Select an option","formControlName","section","name","report",1,"ml-15"],["disableRipple","true","style","background: #cccccc5e; border: 1px solid #9F9C9C;color: #222;margin-right: 24px;margin-bottom: 8px;","mat-mini-fab","",3,"checked-section","value",4,"ngFor","ngForOf"],["disableRipple","true","mat-mini-fab","",2,"background","#cccccc5e","border","1px solid #9F9C9C","color","#222","margin-right","24px","margin-bottom","8px",3,"value"],[1,"mt-12","mb-12",2,"font-size","13px"]],template:function(t,e){1&t&&(I.dc(0,"mat-card",0),I.dc(1,"mat-card-title",1),I.dc(2,"div",2),I.cd(3,"Search Section"),I.cc(),I.Yb(4,"mat-divider"),I.cc(),I.dc(5,"mat-card-content",3),I.dc(6,"form",4),I.dc(7,"div",5),I.dc(8,"div",6),I.dc(9,"label"),I.dc(10,"strong"),I.cd(11,"Batch"),I.cc(),I.dc(12,"span",7),I.cd(13,"*"),I.cc(),I.cc(),I.cc(),I.dc(14,"div",8),I.dc(15,"mat-form-field",9),I.Yb(16,"mat-label"),I.dc(17,"mat-select",10),I.ad(18,Jc,2,2,"mat-option",11),I.cc(),I.ad(19,Kc,2,0,"mat-error",12),I.cc(),I.cc(),I.Yb(20,"div",13),I.dc(21,"div",6),I.dc(22,"label"),I.dc(23,"strong"),I.cd(24,"Class"),I.cc(),I.dc(25,"span",7),I.cd(26,"*"),I.cc(),I.cc(),I.cc(),I.dc(27,"div",8),I.dc(28,"mat-form-field",9),I.Yb(29,"mat-label"),I.dc(30,"mat-select",14),I.ad(31,Zc,2,2,"mat-option",11),I.cc(),I.ad(32,Qc,2,0,"mat-error",12),I.cc(),I.cc(),I.cc(),I.ad(33,en,10,1,"div",15),I.ad(34,cn,2,0,"p",16),I.dc(35,"button",17),I.lc("click",(function(t){return e.submit()})),I.cd(36,"Submit"),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(6),I.yc("formGroup",e.basicForm),I.Gb(12),I.yc("ngForOf",e.batches),I.Gb(1),I.yc("ngIf",null==e.control.batch.errors?null:e.control.batch.errors.required),I.Gb(12),I.yc("ngForOf",e.classes),I.Gb(1),I.yc("ngIf",null==e.control.class.errors?null:e.control.class.errors.required),I.Gb(1),I.yc("ngIf",""!=(null==e.control?null:e.control.class.value)),I.Gb(1),I.yc("ngIf",""!=(null==e.control?null:e.control.class.value)),I.Gb(1),I.yc("disabled",e.basicForm.invalid))},directives:[r.a,r.f,H.a,r.c,a.D,a.u,a.k,U.c,U.a,J.b,J.e,K.a,a.t,a.i,i.n,i.o,d.a,s.p,J.a,b.b,b.a],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card[_ngcontent-%COMP%]{width:40%;margin:6% auto;box-shadow:0 -1px 1px -1px rgba(0,0,0,.2),0 2px 3px 1px rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.f18[_ngcontent-%COMP%]{font-size:18px}.mat-green[_ngcontent-%COMP%]{padding:4px!important;font-size:13px!important;background:rgba(0,128,0,.6588235294117647)!important;color:#fff}.checked-section[_ngcontent-%COMP%]{background:#019fa2!important;color:#fff!important;box-shadow:0 2px 1px 0 #222!important}.unchecked-section[_ngcontent-%COMP%]{background:hsla(0,0%,80%,.3686274509803922)!important;border:1px solid #9f9c9c!important;color:#222!important}mat-radio-button[_ngcontent-%COMP%]{background:hsla(0,0%,80%,.3686274509803922);border-radius:50%;border:1px solid #9f9c9c;color:#222;margin-right:24px;margin-bottom:8px;width:40px;cursor:pointer;height:40px;box-shadow:0 2px 1px 0 #222!important}mat-radio-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;top:9px;right:14px}.ml-0[_ngcontent-%COMP%]{margin-left:0!important}"]}),nn);function an(t,e){if(1&t&&(I.dc(0,"h3",23),I.dc(1,"strong"),I.cd(2),I.cc(),I.cc()),2&t){var c=I.pc().$implicit;I.Gb(2),I.dd(null==c?null:c.assesment_name)}}function dn(t,e){1&t&&(I.dc(0,"h3",24),I.Yb(1,"strong"),I.cc())}function rn(t,e){if(1&t){var c=I.ec();I.dc(0,"button",25),I.lc("click",(function(t){I.Sc(c);var e=I.pc().$implicit;return I.pc().viewReportCard(null==e?null:e.exam_plan_term_id,null==e?null:e.term_assesment_id)})),I.cd(1,"View"),I.cc()}}var ln=function(){return["report_card"]},sn=function(){return["report_card_view"]};function un(t,e){if(1&t&&(I.dc(0,"div",12),I.dc(1,"mat-card",13),I.dc(2,"div",14),I.dc(3,"div",15),I.Yb(4,"img",16),I.cc(),I.dc(5,"div",17),I.dc(6,"h3",18),I.dc(7,"strong"),I.cd(8),I.cc(),I.cc(),I.ad(9,an,3,1,"h3",19),I.dc(10,"p",20),I.cd(11),I.cc(),I.ad(12,dn,2,0,"h3",21),I.ad(13,rn,2,0,"button",22),I.cc(),I.cc(),I.cc(),I.cc()),2&t){var c=e.$implicit,n=I.pc();I.Gb(4),I.zc("src",null!=c&&c.photo?null==c?null:c.photo:"assets/images/Exam.jpg",I.Vc),I.Gb(4),I.ed("",null==c?null:c.term_name," "),I.Gb(1),I.yc("ngIf",""!=(null==c?null:c.assesment_name)),I.Gb(2),I.ed("(",null==c?null:c.mark,")"),I.Gb(1),I.yc("ngIf",""==(null==c?null:c.assesment_name)),I.Gb(1),I.yc("ngIf",n.permission.hasPermission(I.Ec(6,ln),I.Ec(7,sn)))}}var mn,pn=((mn=function(){return _createClass((function t(e,c,n,o,i){var a,d,r,l;_classCallCheck(this,t),this.modelService=e,this.toaster=c,this.loader=n,this.router=o,this.permission=i,this.forViewExamMark=JSON.parse(localStorage.getItem("forViewExamMark")),this.academicYearId=null===(a=this.forViewExamMark)||void 0===a?void 0:a.academicYearId,this.classId=null===(d=this.forViewExamMark)||void 0===d?void 0:d.class,this.batchId=null===(r=this.forViewExamMark)||void 0===r?void 0:r.batch,this.sectionId=null===(l=this.forViewExamMark)||void 0===l?void 0:l.section}),[{key:"ngOnInit",value:function(){this.getReportCardList()}},{key:"getReportCardList",value:function(){var t=this;this.loader.open(),this.modelService.getReportCardList(this.academicYearId,this.batchId,this.classId,this.sectionId).subscribe((function(e){"success"==e.keyword?(t.reportCardList=e.data,console.log(t.reportCardList,"this.reportCardList"),t.loader.close(),t.toaster.present(e.message,"")):(t.loader.close(),t.toaster.present(e.message,""))}))}},{key:"viewReportCard",value:function(t,e){t=""==t?0:t,e=""==e?0:e,console.log(t,e,"123456789"),this.router.navigate(["/school/reports/report-card/view/".concat(t,"/").concat(e)])}}])}()).\u0275fac=function(t){return new(t||mn)(I.Xb(Uc.a),I.Xb(S.a),I.Xb(G.a),I.Xb(o.g),I.Xb(W.a))},mn.\u0275cmp=I.Rb({type:mn,selectors:[["app-list"]],decls:34,vars:6,consts:[["fxLayout","row wrap",1,"pagewrap"],["fxFlex","100","fxFlex.gt-xs","50",1,"pb-8"],[1,"example-button-row","mt-10"],[1,"pl-8","primary-txt-color",3,"routerLink"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","100",1,""],["fxFlex","100","fxFlex.gt-xs","30",1,"mr-4"],[1,"ml-8"],["fxFlex","100","fxFlex.gt-xs","20",1,"mr-4"],["fxFlex","100","fxFlex.gt-xs","20"],["fxLayout","row wrap",2,"background","#F2FBFB"],["fxFlex","100","fxFlex.gt-xs","25","class","pb-8",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-xs","25",1,"pb-8"],[1,"p-8"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","30"],[1,"text-center",2,"width","100% !important","height","88px",3,"src"],["fxFlex","100","fxFlex.gt-xs","70"],[1,"ml-8","mt-0"],["class","ml-8 mt-0 mb-2",4,"ngIf"],[1,"ml-8","mt-0","mb-0","text-muted"],["class","ml-8 mt-0 mb-2","style","padding: 8px;",4,"ngIf"],["mat-raised-button","","class","btn-primary-bg",3,"click",4,"ngIf"],[1,"ml-8","mt-0","mb-2"],[1,"ml-8","mt-0","mb-2",2,"padding","8px"],["mat-raised-button","",1,"btn-primary-bg",3,"click"]],template:function(t,e){1&t&&(I.dc(0,"div",0),I.dc(1,"div",1),I.dc(2,"div",2),I.dc(3,"a",3),I.cd(4,"Discard"),I.cc(),I.cc(),I.cc(),I.dc(5,"div",1),I.dc(6,"div",4),I.dc(7,"div",5),I.dc(8,"div",6),I.dc(9,"label"),I.dc(10,"strong"),I.cd(11,"Academic Year"),I.cc(),I.cc(),I.dc(12,"label",7),I.cd(13),I.cc(),I.cc(),I.dc(14,"div",6),I.dc(15,"label"),I.dc(16,"strong"),I.cd(17,"Batch"),I.cc(),I.cc(),I.dc(18,"label",7),I.cd(19),I.cc(),I.cc(),I.dc(20,"div",8),I.dc(21,"label"),I.dc(22,"strong"),I.cd(23,"Class"),I.cc(),I.cc(),I.dc(24,"label",7),I.cd(25),I.cc(),I.cc(),I.dc(26,"div",9),I.dc(27,"label"),I.dc(28,"strong"),I.cd(29,"Section"),I.cc(),I.cc(),I.dc(30,"label",7),I.cd(31),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(32,"div",10),I.ad(33,un,14,8,"div",11),I.cc()),2&t&&(I.Gb(3),I.yc("routerLink","/school/reports/report-card/search-section"),I.Gb(10),I.dd(null==e.reportCardList?null:e.reportCardList.academic_year_name),I.Gb(6),I.dd(null==e.reportCardList?null:e.reportCardList.batch_name),I.Gb(6),I.dd(null==e.reportCardList?null:e.reportCardList.class),I.Gb(6),I.dd(null==e.reportCardList?null:e.reportCardList.section),I.Gb(2),I.yc("ngForOf",null==e.reportCardList?null:e.reportCardList.nodes))},directives:[U.c,U.a,o.j,i.n,r.a,i.o,d.a],styles:["mat-card[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px;margin-top:32px!important}h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:800}mat-card[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{line-height:18px!important;padding:2px 7px!important;min-width:54px!important;float:right}.mb-2[_ngcontent-%COMP%]{margin-bottom:2px!important}"]}),mn);function fn(t,e){1&t&&(I.dc(0,"span",25),I.cd(1," - "),I.cc())}function hn(t,e){if(1&t){var c=I.ec();I.dc(0,"button",21),I.lc("click",(function(t){return I.Sc(c),I.pc().saveStatus(1)})),I.dc(1,"mat-icon",26),I.cd(2,"thumb_up"),I.cc(),I.dc(3,"span"),I.cd(4,"Publish"),I.cc(),I.cc()}}function bn(t,e){if(1&t){var c=I.ec();I.dc(0,"button",21),I.lc("click",(function(t){return I.Sc(c),I.pc().saveStatus(0)})),I.dc(1,"mat-icon",27),I.cd(2,"thumb_down"),I.cc(),I.dc(3,"span"),I.cd(4,"Unpublish"),I.cc(),I.cc()}}function vn(t,e){1&t&&(I.dc(0,"label",33),I.cd(1,"Published"),I.cc())}function gn(t,e){1&t&&(I.dc(0,"label",34),I.cd(1,"Unpublished"),I.cc())}function yn(t,e){if(1&t){var c=I.ec();I.dc(0,"tr",28),I.dc(1,"td",29),I.cd(2),I.cc(),I.dc(3,"td",29),I.cd(4),I.cc(),I.dc(5,"td",29),I.cd(6),I.cc(),I.dc(7,"td",29),I.cd(8),I.cc(),I.dc(9,"td",29),I.ad(10,vn,2,0,"label",30),I.ad(11,gn,2,0,"label",31),I.cc(),I.dc(12,"td",29),I.dc(13,"button",32),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc().preview(null==n?null:n.student_id)})),I.cd(14,"Preview"),I.cc(),I.cc(),I.cc()}if(2&t){var n=e.$implicit;I.Gb(2),I.dd(null==n?null:n.roll_number),I.Gb(2),I.dd(null==n?null:n.admission_no),I.Gb(2),I.dd(null==n?null:n.student_name),I.Gb(2),I.dd(null==n?null:n.email),I.Gb(2),I.yc("ngIf","1"==(null==n?null:n.status)),I.Gb(1),I.yc("ngIf","0"==(null==n?null:n.status))}}var xn,Cn=((xn=function(){return _createClass((function t(e,c,n,o,i,a,d){var r,l,s,u;_classCallCheck(this,t),this.modelService=e,this.toaster=c,this.loader=n,this.router=o,this.activateRoute=i,this.apiserv=a,this.permission=d,this.forViewExamMark=JSON.parse(localStorage.getItem("forViewExamMark")),this.academicYearId=null===(r=this.forViewExamMark)||void 0===r?void 0:r.academicYearId,this.classId=null===(l=this.forViewExamMark)||void 0===l?void 0:l.class,this.batchId=null===(s=this.forViewExamMark)||void 0===s?void 0:s.batch,this.sectionId=null===(u=this.forViewExamMark)||void 0===u?void 0:u.section,this.termId=this.activateRoute.snapshot.params.termId,this.termAssessmentId=this.activateRoute.snapshot.params.termAssessmentId}),[{key:"ngOnInit",value:function(){this.getReportCardView()}},{key:"getReportCardView",value:function(){var t=this;this.modelService.getReportCardView(this.academicYearId,this.batchId,this.classId,this.sectionId,this.termId,this.termAssessmentId).subscribe((function(e){var c,n;"success"==e.keyword&&(t.reportCardView=e.data,t.status=null===(n=null===(c=t.reportCardView)||void 0===c?void 0:c.student_list[0])||void 0===n?void 0:n.status,console.log(t.reportCardView,"this.reportCardView"))}))}},{key:"preview",value:function(t){this.router.navigate(["/school/reports/report-card/preview/".concat(t,"/").concat(this.termId,"/").concat(this.termAssessmentId)])}},{key:"download",value:function(t){var e=this;this.loader.open(),this.apiserv.downloadFile("reportCard/studentViewPdf/".concat(this.academicYearId,"/").concat(this.batchId,"/").concat(this.classId,"/").concat(this.sectionId,"/").concat(t,"/").concat(this.termId,"/").concat(this.termAssessmentId),{fileName:"MarkEntry"}).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:e.loader.close();break;case O.d.Response:var c=new Blob([t.body],{type:t.body.type}),n=document.createElement("a");n.setAttribute("style","display:none;"),document.body.appendChild(n),n.download="Student Report Card",n.href=URL.createObjectURL(c),n.target="_blank",n.click(),document.body.removeChild(n),e.loader.close()}}))}},{key:"saveStatus",value:function(t){var e=this,c=1==t?"publish":"unpublish";$.a.fire({title:"Confirm?",text:"Are you sure? You want to "+c+" it !",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes, "+c+" it!"}).then((function(c){if(c.value){var n=new FormData,o=0!=e.termAssessmentId?0:e.termId;n.append("academic_year_id",e.academicYearId),n.append("batch_id",e.batchId),n.append("class_id",e.classId),n.append("section_id",e.sectionId),n.append("term_id",o),n.append("term_assesment_id",e.termAssessmentId),n.append("status",JSON.stringify(t)),e.loader.open(),e.modelService.updateStatus(n).subscribe((function(t){"success"==t.keyword?(e.getReportCardView(),e.loader.close(),e.toaster.present(t.message,"")):(e.loader.close(),e.toaster.present(t.message,""))}))}}))}},{key:"mailToParents",value:function(){var t=this;1==this.status?$.a.fire({title:"Confirm?",text:"Are you sure? You want to send it !",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes, send it!"}).then((function(e){e.value&&(t.loader.open(),t.apiserv.get("reportCard/mailToParent/".concat(t.academicYearId,"/").concat(t.batchId,"/").concat(t.classId,"/").concat(t.sectionId,"/").concat(t.termId,"/").concat(t.termAssessmentId)).subscribe((function(e){t.loader.close(),t.toaster.present(e.message,"")})))})):$.a.fire({icon:"error",title:"Mail to Parents",text:"Change the status to publish!"})}}])}()).\u0275fac=function(t){return new(t||xn)(I.Xb(Uc.a),I.Xb(S.a),I.Xb(G.a),I.Xb(o.g),I.Xb(o.a),I.Xb(P.a),I.Xb(W.a))},xn.\u0275cmp=I.Rb({type:xn,selectors:[["app-view"]],decls:68,vars:12,consts:[["fxLayout","row wrap",1,"pagewrap"],["fxFlex","100","fxFlex.gt-xs","50",1,"pb-8"],[1,"example-button-row","mt-10"],[1,"pl-8","primary-txt-color",3,"routerLink"],["fxFlex","100","fxFlex.gt-xs","50",1,"pb-8","pr-24","text-right"],[1,"ml-16"],[1,"ml-40"],[1,"py-0","m-0"],[1,"card-title-text"],[1,"mt-8"],["class","ml-12",4,"ngIf"],[1,"ml-12",2,"font-size","17px","color","#4dbdf3"],[1,"mat-table","report_card_list_view","mt-8"],[1,"mat-header-row"],[1,"mat-header-cell",2,"width","6%"],[1,"mat-header-cell",2,"width","7%"],[1,"mat-header-cell",2,"width","16%"],[1,"mat-header-cell",2,"width","12%"],[1,"mat-header-cell"],[1,"action",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],[2,"color","#f19421"],["mat-menu-item","",3,"click",4,"ngIf"],["class","mat-row",4,"ngFor","ngForOf"],[1,"ml-12"],[2,"color","green"],[2,"color","red"],[1,"mat-row"],[1,"mat-cell"],["class","mat-chip mat-primary mat-standard-chip mat-chip-selected ",4,"ngIf"],["class","mat-chip mat-danger mat-standard-chip mat-chip-selected ",4,"ngIf"],["mat-raised-button","","color","primary",1,"btn-white-bg",3,"click"],[1,"mat-chip","mat-primary","mat-standard-chip","mat-chip-selected"],[1,"mat-chip","mat-danger","mat-standard-chip","mat-chip-selected"]],template:function(t,e){if(1&t&&(I.dc(0,"div",0),I.dc(1,"div",1),I.dc(2,"div",2),I.dc(3,"a",3),I.cd(4,"Discard"),I.cc(),I.cc(),I.cc(),I.dc(5,"div",4),I.dc(6,"label"),I.dc(7,"strong"),I.cd(8,"Academic Year"),I.cc(),I.cc(),I.dc(9,"label",5),I.cd(10),I.cc(),I.dc(11,"label",6),I.dc(12,"strong"),I.cd(13,"Batch"),I.cc(),I.cc(),I.dc(14,"label",5),I.cd(15),I.cc(),I.dc(16,"label",6),I.dc(17,"strong"),I.cd(18,"Class"),I.cc(),I.cc(),I.dc(19,"label",5),I.cd(20),I.cc(),I.dc(21,"label",6),I.dc(22,"strong"),I.cd(23,"Section"),I.cc(),I.cc(),I.dc(24,"label",5),I.cd(25),I.cc(),I.cc(),I.cc(),I.dc(26,"mat-card",7),I.dc(27,"mat-card-title"),I.dc(28,"div",8),I.cd(29," Report Card "),I.cc(),I.Yb(30,"mat-divider"),I.cc(),I.dc(31,"mat-card-content"),I.dc(32,"h3",9),I.dc(33,"strong"),I.cd(34),I.ad(35,fn,2,0,"span",10),I.dc(36,"span",11),I.cd(37),I.cc(),I.cc(),I.cc(),I.dc(38,"table",12),I.dc(39,"thead"),I.dc(40,"tr",13),I.dc(41,"th",14),I.cd(42,"Roll No"),I.cc(),I.dc(43,"th",15),I.cd(44,"Admn.No"),I.cc(),I.dc(45,"th",16),I.cd(46,"Student Name"),I.cc(),I.dc(47,"th",17),I.cd(48,"Parent's Email"),I.cc(),I.dc(49,"th",18),I.cd(50,"Publish status"),I.cc(),I.dc(51,"th",18),I.cd(52,"Action "),I.dc(53,"mat-icon",19),I.cd(54,"more_vert"),I.cc(),I.dc(55,"mat-menu",null,20),I.dc(57,"button",21),I.lc("click",(function(t){return e.mailToParents()})),I.dc(58,"mat-icon",22),I.cd(59,"mail"),I.cc(),I.dc(60,"span"),I.cd(61,"Mail to Parents"),I.cc(),I.cc(),I.ad(62,hn,5,0,"button",23),I.ad(63,bn,5,0,"button",23),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(64,"tbody"),I.ad(65,yn,15,6,"tr",24),I.cc(),I.cc(),I.cc(),I.Yb(66,"mat-divider"),I.Yb(67,"mat-card-footer"),I.cc()),2&t){var c=I.Oc(56);I.Gb(3),I.yc("routerLink","/school/reports/report-card/list"),I.Gb(7),I.dd(null==e.reportCardView?null:e.reportCardView.academic_year_name),I.Gb(5),I.dd(null==e.reportCardView?null:e.reportCardView.batch_name),I.Gb(5),I.ed(" ",null==e.reportCardView?null:e.reportCardView.class,""),I.Gb(5),I.ed(" ",null==e.reportCardView?null:e.reportCardView.section,""),I.Gb(9),I.dd(null==e.reportCardView?null:e.reportCardView.term_name),I.Gb(1),I.yc("ngIf",null==e.reportCardView?null:e.reportCardView.assesment_name),I.Gb(2),I.dd(null==e.reportCardView?null:e.reportCardView.assesment_name),I.Gb(16),I.yc("matMenuTriggerFor",c),I.Gb(9),I.yc("ngIf",0==e.status),I.Gb(1),I.yc("ngIf",1==e.status),I.Gb(2),I.yc("ngForOf",null==e.reportCardView?null:e.reportCardView.student_list)}},directives:[U.c,U.a,o.j,r.a,r.f,H.a,r.c,i.o,m.a,y.d,y.e,y.b,i.n,r.d,d.a],styles:["mat-divider[_ngcontent-%COMP%]{margin-left:0!important}mat-card-footer[_ngcontent-%COMP%]{padding:15px 0!important}h4[_ngcontent-%COMP%]{font-size:14px}h3[_ngcontent-%COMP%]{font-size:15px}.card-title-text[_ngcontent-%COMP%]{padding:5px 0!important}th[_ngcontent-%COMP%]{background:hsla(0,0%,50.2%,.30196078431372547);color:#000!important;font-weight:600!important;border:1px solid rgba(164,153,153,.4588235294117647)!important}td[_ngcontent-%COMP%]{border:1px solid hsla(0,0%,80%,.4588235294117647)!important}table.mat-table[_ngcontent-%COMP%]{border-spacing:0}td[_ngcontent-%COMP%]:first-child, td[_ngcontent-%COMP%]:nth-child(2), td[_ngcontent-%COMP%]:nth-child(3), td[_ngcontent-%COMP%]:nth-child(4), th[_ngcontent-%COMP%]:first-child, th[_ngcontent-%COMP%]:nth-child(2), th[_ngcontent-%COMP%]:nth-child(3), th[_ngcontent-%COMP%]:nth-child(4){text-align:left!important;padding-left:12px}td[_ngcontent-%COMP%]:nth-child(5), td[_ngcontent-%COMP%]:nth-child(6){text-align:center!important;background-color:#f5f5f5!important}th[_ngcontent-%COMP%]:nth-child(5), th[_ngcontent-%COMP%]:nth-child(6){text-align:center!important;width:10%}.mat-header-cell[_ngcontent-%COMP%]{padding-top:4px!important}th[_ngcontent-%COMP%]:nth-child(6){padding-top:10px!important}td[_ngcontent-%COMP%]:nth-child(5){padding-top:5px}td[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{line-height:18px!important;padding:0 7px!important}"]}),xn),wn=c("jtrZ"),kn=c("SvPF"),_n=c("5RHE"),Fn=c.n(_n),On=c("wOnQ"),Pn=c.n(On),In=c("cclQ"),Dn=c("xJfa"),Gn=c("AytR"),Sn=c("DKVz"),Mn=["myDivElement"];function Nn(t,e){if(1&t&&(I.dc(0,"td",76),I.dc(1,"h3",77),I.cd(2,"Academic Performance"),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Hb("rowspan",null==c.reportCardView?null:c.reportCardView.mark.length)}}function An(t,e){if(1&t&&(I.dc(0,"tr"),I.ad(1,Nn,3,1,"td",67),I.dc(2,"td",68),I.cd(3),I.cc(),I.dc(4,"td",69),I.cd(5),I.cc(),I.dc(6,"td",70),I.dc(7,"div",71),I.dc(8,"div",72),I.Yb(9,"div",73),I.cc(),I.dc(10,"span",74),I.dc(11,"strong"),I.cd(12),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(13,"td",75),I.dc(14,"strong"),I.cd(15),I.cc(),I.cc(),I.cc()),2&t){var c=e.$implicit,n=e.first,o=I.pc();I.Gb(1),I.yc("ngIf",n),I.Gb(2),I.dd(null==c?null:c.subject_name),I.Gb(2),I.dd(null==c?null:c.mark),I.Gb(4),I.Zc("width",o.getprogress(null==c?null:c.mark))("background-color",o.getColorForGrade(null==c?null:c.grade)),I.Gb(1),I.Zc("color",o.getColorForGrade(null==c?null:c.grade)),I.Gb(2),I.ed("",o.precentage(null==c?null:c.mark),"%"),I.Gb(3),I.dd(null==c?null:c.grade)}}function Tn(t,e){if(1&t&&(I.dc(0,"li"),I.Yb(1,"div"),I.dc(2,"strong",78),I.cd(3),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Zc("color",null==c?null:c.color),I.Gb(1),I.Zc("background-color",null==c?null:c.color),I.Gb(2),I.gd("",null==c?null:c.remark," (",null==c?null:c.minvalue,"% - ",null==c?null:c.maxvalue,"%)")}}function Ln(t,e){if(1&t&&(I.dc(0,"div",79),I.dc(1,"h4"),I.dc(2,"strong"),I.cd(3),I.cc(),I.cc(),I.cc()),2&t){var c=e.$implicit,n=I.pc();I.Zc("height",n.getForGrade(null==c?null:c.range))("background-color",null==c?null:c.color),I.Gb(1),I.Zc("color",null==c?null:c.color),I.Gb(2),I.dd(n.splitmarks(null==c?null:c.remark))}}function En(t,e){1&t&&I.Yb(0,"div")}function Vn(t,e){if(1&t&&(I.dc(0,"span"),I.cd(1),I.cc()),2&t){var c=I.pc().$implicit;I.Gb(1),I.dd(null==c?null:c.subject_name)}}function Rn(t,e){if(1&t&&(I.dc(0,"li"),I.ad(1,En,1,0,"div",80),I.ad(2,Vn,2,1,"span",80),I.cc()),2&t){var c=e.$implicit;I.Gb(1),I.yc("ngIf","AB"!=(null==c?null:c.mark)),I.Gb(1),I.yc("ngIf","AB"!=(null==c?null:c.mark))}}var jn,qn=((jn=function(){return _createClass((function t(e,c,n,o,i,a,d,r){var l,s,u,m;_classCallCheck(this,t),this.themeService=e,this.modelService=c,this.toaster=n,this.loader=o,this.router=i,this.activateRoute=a,this.configServ=d,this.permission=r,this.gradePrecentecage=[],this.chatPrecentage=[],this.subname=[],this.baseURL="",this.isLoading=!0,this.setPathURL(),this.forViewExamMark=JSON.parse(localStorage.getItem("forViewExamMark")),this.academicYearId=null===(l=this.forViewExamMark)||void 0===l?void 0:l.academicYearId,this.classId=null===(s=this.forViewExamMark)||void 0===s?void 0:s.class,this.batchId=null===(u=this.forViewExamMark)||void 0===u?void 0:u.batch,this.sectionId=null===(m=this.forViewExamMark)||void 0===m?void 0:m.section,this.termId=this.activateRoute.snapshot.params.termId,this.termAssessmentId=this.activateRoute.snapshot.params.termAssessmentId,this.studentId=this.activateRoute.snapshot.params.studentId,this.customerId=this.configServ.appSetting.customerId,this.schoolId=this.configServ.appSetting.branchId}),[{key:"makePdf",value:function(){var t=document.getElementById("reportKL");Pn()(t,{logging:!0,useCORS:!0}).then((function(t){var e=208*t.height/t.width,c=t.toDataURL("image/png"),n=new Fn.a("p","mm","a4");n.addImage(c,"PNG",0,0,208,e),n.save("Student Report Card.pdf"),console.log(t)}))}},{key:"setPathURL",value:function(){var t=Gn.a.apiURL,e=window.location.pathname.split("/"),c=this.returnEndPoint(e),n=window.location.hostname.split("."),o=n.length>=3?n.includes("www")?n[1]:n[0]:"",i=t.replace("{tenant}",o).replace("{endPoint}",c);this.baseURL=i}},{key:"returnEndPoint",value:function(t){return Array.isArray(t)?t.includes("parent")?"PP":t.includes("teacher")?"TP":"SP":"SP"}},{key:"ngOnInit",value:function(){this.getReportCardViewList()}},{key:"getStudAtten",value:function(){var t,e,c=this,n=new O.e;n=(n=(n=(n=(n=n.append("customerId",this.customerId)).append("schoolId",this.schoolId)).append("studentId",this.studentId)).append("fromDate",null===(t=this.reportCardView)||void 0===t?void 0:t.start_date)).append("toDate",null===(e=this.reportCardView)||void 0===e?void 0:e.end_date),console.log(n,"params"),this.modelService.getStudAtten(n).subscribe((function(t){c.attenDetails=t,console.log(c.attenDetails,"studen details")}))}},{key:"splitmarks",value:function(t){return t.substring(0,4)}},{key:"precentage",value:function(t){return"AB"==t&&(t=0),parseInt(t)}},{key:"getReportCardViewList",value:function(){var t=this;this.loader.open(),this.isLoading=!0,this.modelService.getReportCardViewList(this.academicYearId,this.batchId,this.classId,this.sectionId,this.studentId,this.termId,this.termAssessmentId).subscribe((function(e){var c;"success"==e.keyword?(t.reportCardView=e.data,t.spanCount=t.reportCardView.mark.length,t.getStudAtten(),e.data.mark.forEach((function(e){t.chatPrecentage.push(parseInt(e.mark)),t.subname.push(e.subject_name.substring(0,3))})),t.gradePrecentecage=null===(c=e.data)||void 0===c?void 0:c.grade_percentage.reverse(),t.themeService.onThemeChange.subscribe((function(e){t.initDailyTrafficChartBar(e)})),t.initDailyTrafficChartBar(t.themeService.activatedTheme),t.performanceChart(),console.log(t.reportCardView,"this.reportCardView"),t.loader.close(),t.isLoading=!1,t.toaster.present(e.message,"")):(t.loader.close(),t.isLoading=!1,t.toaster.present(e.message,""))}))}},{key:"getColorForGrade",value:function(t){var e,c;return null===(c=null===(e=this.reportCardView)||void 0===e?void 0:e.grade_percentage.find((function(e){return e.grade==t})))||void 0===c?void 0:c.color}},{key:"getForGrade",value:function(t){return t+"%"}},{key:"getprogress",value:function(t){return t+"%"}},{key:"back",value:function(){this.router.navigate(["/school/reports/report-card/view/".concat(this.termId,"/").concat(this.termAssessmentId)])}},{key:"initDailyTrafficChartBar",value:function(t){this.dailyTrafficChartBar={legend:{show:!1},grid:{left:"8px",right:"8px",bottom:"0",top:"0",borderRadius:"0",containLabel:!0},tooltip:{show:!1,backgroundColor:"rgba(0, 0, 0, .8)"},xAxis:[{type:"category",data:this.subname,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},axisLabel:{color:"#734f96"}}],yAxis:[{type:"value",axisLabel:{show:!1,formatter:"${value}"},min:0,max:100,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1,interval:"auto"}}],series:[{name:"Online",data:this.chatPrecentage,label:{show:!0,color:"black",position:"inside"},type:"bar",barWidth:"23",barColor:"white",color:"white",smooth:!0,itemStyle:{barBorderRadius:0}}]}}},{key:"performanceChart",value:function(){var t=In.b("chartdiv",Dn.d),e=[],c=[{color:"#FFAC17"},{color:"#2D77B6"},{color:"#00C5BC"},{color:"#AC2733"},{color:"#3FB65F"},{color:"#B67D27"},{color:"#5C4E8E"},{color:"#E40BAB"},{color:"#F68321"},{color:"#C36363"}];this.reportCardView.mark.forEach((function(t,n){"AB"!=t.mark&&e.push({subject:t.subject_name,mark:t.mark,color:c[n].color})})),console.log(e),t.data=e,t.logo.height=-15e3;var n=t.series.push(new Dn.e);n.alignLabels=!1,n.labels.template.text="{value}%",n.slices.template.tooltipText="{category}: {value}%",n.dataFields.value="mark",n.dataFields.category="subject",n.slices.template.propertyFields.fill="color",n.ticks.template.disabled=!0,n.labels.template.radius=In.d(-40),n.labels.template.fill=In.a("white")}}])}()).\u0275fac=function(t){return new(t||jn)(I.Xb(kn.a),I.Xb(Uc.a),I.Xb(S.a),I.Xb(G.a),I.Xb(o.g),I.Xb(o.a),I.Xb(wn.a),I.Xb(W.a))},jn.\u0275cmp=I.Rb({type:jn,selectors:[["app-view"]],viewQuery:function(t,e){var c;1&t&&I.md(Mn,!0,I.l),2&t&&I.Nc(c=I.mc())&&(e.myDivElement=c.first)},decls:155,vars:37,consts:[["fxLayout","row wrap",1,"pagewrap"],["fxFlex","100","fxFlex.gt-xs","50",1,"pb-8"],[1,"example-button-row","mt-10"],["mat-raised-button","","color","primary",1,"btn-primary-bg",3,"click"],[1,"pl-8","primary-txt-color",3,"click"],["id","reportKL",1,"report-card"],["myDivElement",""],[1,"pt-8","pb-4","text-center"],[2,"height","30px","width","30px",3,"src"],[2,"position","relative","top","-8px","left","8px","font-size","20px","font-weight","700"],[2,"margin-top","10px","margin-bottom","0px","font-size","14px"],[1,"row","wrap","report-detail"],["fxFlex","100","fxFlex.gt-xs","20"],["fxFlex","100","fxFlex.gt-xs","60",1,"text-center"],[1,"exam-name"],["fxFlex","100","fxFlex.gt-xs","20",1,"text-right"],[1,"row","wrap","student-detail","mt-16"],["fxFlex","100","fxFlex.gt-xs","80",1,"pt-12"],["fxFlex","100","fxFlex.gt-xs","20",1,"text-center"],["alt","",3,"src"],[1,"markdetails"],[1,"student-mark-details"],["colspan","2",2,"width","20%"],[2,"width","50%"],[2,"width","20%"],[2,"width","10%"],[4,"ngFor","ngForOf"],[1,"performance"],[3,"color",4,"ngFor","ngForOf"],[1,"row","wrap","chart-details","p-4"],["fxFlex","100","fxFlex.gt-xs","33",1,"text-center","p-12"],[1,"relative-performance"],["class","border-top",3,"height","background-color",4,"ngFor","ngForOf"],["echarts","",2,"position","relative","bottom","285px","height","305px",3,"options","autoResize"],[1,"uppercase"],[1,"performance-comparison"],["id","chartdiv",2,"width","75%","height","185px","margin","auto"],[1,"legend"],[1,"attendance-health"],[1,"row","wrap"],["fxFlex","100","fxFlex.gt-xs","25"],[2,"background","#F6F5FB","height","80px","align-items","flex-end","display","flex","border-top-left-radius","12px","border-right","1px solid #80808042"],[2,"color","#ff808b","margin-left","10px"],[2,"background","#FF808B","height","220px","align-items","center","display","flex","border-bottom-left-radius","12px"],[1,"uppercase","ml-15"],[2,"background","#F6F5FB","height","150px","align-items","flex-end","display","flex","border-right","1px solid #80808042"],[2,"color","#289fa5","margin-left","10px"],[2,"background","#289FA5","height","150px","align-items","center","display","flex"],[1,"uppercase","ml-4"],[2,"background","#F6F5FB","height","180px","align-items","flex-end","display","flex","border-right","1px solid #80808042"],[2,"color","#ffd02a","margin-left","10px"],[2,"background","#FFD02A","height","120px","align-items","center","display","flex"],[2,"background","#F6F5FB","height","120px","align-items","flex-end","display","flex","border-top-right-radius","12px","border-right","1px solid #80808042"],[2,"color","#5e82f4","margin-left","10px"],[2,"background","#5E82F4","height","180px","align-items","center","display","flex","border-bottom-right-radius","12px"],[1,"uppercase",2,"margin-left","-15px","position","relative","left","9px"],[1,"grade-details"],["fxFlex","100","fxFlex.gt-xs","38",1,"text-center"],[1,"overallgrade","text-center"],[1,"grade"],["fxFlex","100","fxFlex.gt-xs","55",1,"text-center","remark"],[1,"uppercase","title"],[1,"uppercase","content"],["fxLayout","row wrap",1,"signature","pb-24",2,"border-top","1px solid grey"],["fxFlex","100","fxFlex.gt-xs","33",1,"pr-4","text-center"],[1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","33",1,"text-center"],["class","academic-performance","style","background: #734F96; color: white;",4,"ngIf"],[1,"subject",2,"width","20%"],[1,"text-center","mark"],[1,"text-center","percentage"],[2,"display","flex"],[1,"mt-8","progress-bar"],[2,"height","4px"],[1,"ml-4"],[1,"text-center","grade-column"],[1,"academic-performance",2,"background","#734F96","color","white"],[1,"vertical-text"],[1,"ml-8"],[1,"border-top"],[4,"ngIf"]],template:function(t,e){1&t&&(I.dc(0,"div",0),I.dc(1,"div",1),I.dc(2,"div",2),I.dc(3,"button",3),I.lc("click",(function(t){return e.makePdf()})),I.cd(4,"Download"),I.cc(),I.dc(5,"a",4),I.lc("click",(function(t){return e.back()})),I.cd(6,"Discard"),I.cc(),I.cc(),I.cc(),I.Yb(7,"div",1),I.cc(),I.dc(8,"div",5,6),I.dc(10,"div",7),I.Yb(11,"img",8),I.dc(12,"span",9),I.cd(13),I.cc(),I.dc(14,"h4",10),I.cd(15),I.cc(),I.cc(),I.Yb(16,"hr"),I.dc(17,"div",11),I.dc(18,"div",12),I.dc(19,"h4"),I.dc(20,"strong"),I.cd(21,"Report Card"),I.cc(),I.cc(),I.cc(),I.dc(22,"div",13),I.dc(23,"h4",14),I.dc(24,"strong"),I.cd(25),I.cc(),I.cc(),I.cc(),I.dc(26,"div",15),I.dc(27,"h4"),I.dc(28,"strong"),I.cd(29),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(30,"div",16),I.dc(31,"div",17),I.dc(32,"h4"),I.dc(33,"strong"),I.cd(34),I.cc(),I.cc(),I.dc(35,"h5"),I.dc(36,"strong"),I.cd(37),I.cc(),I.cc(),I.cc(),I.dc(38,"div",18),I.Yb(39,"img",19),I.cc(),I.cc(),I.dc(40,"div",20),I.dc(41,"div",21),I.dc(42,"table"),I.dc(43,"thead"),I.dc(44,"tr"),I.dc(45,"th",22),I.cd(46,"Subject"),I.cc(),I.dc(47,"th",23),I.cd(48),I.dc(49,"span"),I.cd(50),I.cc(),I.cc(),I.dc(51,"th",24),I.cd(52,"Percentage"),I.dc(53,"span"),I.cd(54,"(%)"),I.cc(),I.cc(),I.dc(55,"th",25),I.cd(56,"Grade"),I.cc(),I.cc(),I.cc(),I.dc(57,"tbody"),I.ad(58,An,16,11,"tr",26),I.cc(),I.cc(),I.cc(),I.dc(59,"ul",27),I.ad(60,Tn,4,7,"li",28),I.cc(),I.cc(),I.dc(61,"div",29),I.dc(62,"div",30),I.dc(63,"div",31),I.ad(64,Ln,4,7,"div",32),I.Yb(65,"div",33),I.cc(),I.dc(66,"h3",34),I.dc(67,"strong"),I.cd(68,"Relative Performance "),I.Yb(69,"br"),I.cd(70,"in 3D"),I.cc(),I.cc(),I.cc(),I.dc(71,"div",30),I.dc(72,"div",35),I.Yb(73,"div",36),I.dc(74,"ul",37),I.ad(75,Rn,3,2,"li",26),I.cc(),I.cc(),I.dc(76,"h3",34),I.dc(77,"strong"),I.cd(78," Performance "),I.Yb(79,"br"),I.cd(80,"Comparison"),I.cc(),I.cc(),I.cc(),I.dc(81,"div",30),I.dc(82,"div",38),I.dc(83,"div",39),I.dc(84,"div",40),I.dc(85,"div",41),I.dc(86,"h3",42),I.dc(87,"strong"),I.cd(88),I.qc(89,"number"),I.cc(),I.cc(),I.cc(),I.dc(90,"div",43),I.dc(91,"h4",44),I.cd(92,"Attendance"),I.cc(),I.cc(),I.cc(),I.dc(93,"div",40),I.dc(94,"div",45),I.dc(95,"h3",46),I.dc(96,"strong"),I.cd(97),I.qc(98,"number"),I.cc(),I.cc(),I.cc(),I.dc(99,"div",47),I.dc(100,"h4",48),I.cd(101,"Height"),I.cc(),I.cc(),I.cc(),I.dc(102,"div",40),I.dc(103,"div",49),I.dc(104,"h3",50),I.dc(105,"strong"),I.cd(106),I.qc(107,"number"),I.cc(),I.cc(),I.cc(),I.dc(108,"div",51),I.dc(109,"h4",48),I.cd(110,"Weight"),I.cc(),I.cc(),I.cc(),I.dc(111,"div",40),I.dc(112,"div",52),I.dc(113,"h3",53),I.dc(114,"strong"),I.cd(115),I.qc(116,"number"),I.cc(),I.cc(),I.cc(),I.dc(117,"div",54),I.dc(118,"h4",55),I.cd(119,"BMI Level"),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(120,"h3",34),I.dc(121,"strong"),I.cd(122," Attendance & Health "),I.Yb(123,"br"),I.cd(124,"Status"),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(125,"div",56),I.dc(126,"div",57),I.dc(127,"div",58),I.dc(128,"h4",34),I.dc(129,"strong"),I.cd(130,"Overall Grade"),I.cc(),I.cc(),I.Yb(131,"hr"),I.dc(132,"label",59),I.cd(133),I.cc(),I.cc(),I.cc(),I.dc(134,"div",60),I.dc(135,"h4",61),I.dc(136,"strong"),I.cd(137,"Remarks"),I.cc(),I.cc(),I.Yb(138,"hr"),I.dc(139,"h4",62),I.dc(140,"strong"),I.cd(141),I.cc(),I.cc(),I.cc(),I.cc(),I.dc(142,"div",63),I.dc(143,"div",64),I.Yb(144,"hr"),I.dc(145,"h3",65),I.cd(146,"Signature of Parent"),I.cc(),I.cc(),I.dc(147,"div",64),I.Yb(148,"hr"),I.dc(149,"h3",65),I.cd(150,"Signature of Class Teacher"),I.cc(),I.cc(),I.dc(151,"div",66),I.Yb(152,"hr"),I.dc(153,"h3",65),I.cd(154,"Signature of Principal"),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(11),I.zc("src",e.baseURL+"branch/downloadBranchPhoto/"+e.schoolId,I.Vc),I.Gb(2),I.dd(null==e.reportCardView?null:e.reportCardView.school_name),I.Gb(2),I.ed(" ",null==e.reportCardView?null:e.reportCardView.schl_address," "),I.Gb(10),I.dd(null==e.reportCardView?null:e.reportCardView.term_name),I.Gb(4),I.ed("Year ",null==e.reportCardView?null:e.reportCardView.academic_year_name,""),I.Gb(5),I.dd(null==e.reportCardView?null:e.reportCardView.student_name),I.Gb(3),I.hd("",null==e.reportCardView?null:e.reportCardView.class," ",null==e.reportCardView?null:e.reportCardView.section," | ",null==e.reportCardView?null:e.reportCardView.admission_no," | ",null==e.reportCardView?null:e.reportCardView.roll_number,""),I.Gb(2),I.zc("src",e.baseURL+"student/downloadStudPhoto/"+e.studentId,I.Vc),I.Gb(9),I.ed(" ",""==(null==e.reportCardView?null:e.reportCardView.assesment_name)?null==e.reportCardView?null:e.reportCardView.term_name:null==e.reportCardView?null:e.reportCardView.assesment_name,""),I.Gb(2),I.ed("(",null==e.reportCardView?null:e.reportCardView.total_mark,")"),I.Gb(8),I.yc("ngForOf",null==e.reportCardView?null:e.reportCardView.mark),I.Gb(2),I.yc("ngForOf",null==e.reportCardView?null:e.reportCardView.grade_percentage),I.Gb(4),I.yc("ngForOf",e.gradePrecentecage),I.Gb(1),I.yc("options",e.dailyTrafficChartBar)("autoResize",!0),I.Gb(10),I.yc("ngForOf",null==e.reportCardView?null:e.reportCardView.mark),I.Gb(13),I.ed("",I.sc(89,25,null==e.attenDetails?null:e.attenDetails.presentPercentage,"1.0-0"),"%"),I.Gb(9),I.ed("",I.sc(98,28,null==e.reportCardView?null:e.reportCardView.height,"1.0-0")," cm"),I.Gb(9),I.ed("",I.sc(107,31,null==e.reportCardView?null:e.reportCardView.weight,"1.0-0")," kg"),I.Gb(9),I.dd(I.sc(116,34,null==e.reportCardView?null:e.reportCardView.bmi,"1.0-0")),I.Gb(18),I.dd(null==e.reportCardView?null:e.reportCardView.grade),I.Gb(8),I.dd(null==e.reportCardView?null:e.reportCardView.remark))},directives:[U.c,U.a,d.a,i.n,Sn.b,i.o],pipes:[i.f],styles:['.report-detail[_ngcontent-%COMP%] .exam-name[_ngcontent-%COMP%]{text-transform:uppercase}.report-detail[_ngcontent-%COMP%]{padding:0 25px}.student-detail[_ngcontent-%COMP%]{background:#734f96;color:#fff;border-radius:20px;padding:0 25px;height:58px}.student-detail[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70px;height:70px;border-radius:50%;margin-top:-7px}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.grade-details[_ngcontent-%COMP%]{padding:12px 15%}.overallgrade[_ngcontent-%COMP%]{background:#734f96;color:#fff;padding:15px 10px;border-radius:10px}.f16[_ngcontent-%COMP%]{font-size:16px}.grade[_ngcontent-%COMP%]{font-size:20px;font-weight:800;background:#5e82f4;border-radius:7px;padding:5px 8px}.pt-10[_ngcontent-%COMP%]{padding-top:10px!important}.remark[_ngcontent-%COMP%]{padding-left:50px;padding-top:15px}.remark[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#734f96}.remark[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:1px solid #734f96}.remark[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{color:#ff808b}td[_ngcontent-%COMP%]:first-child{text-align:left}.table-heading[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-transform:uppercase;padding:8px;font-size:10px}.table-heading[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.table-heading[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background:#c9cfdf}.markdetails[_ngcontent-%COMP%]{margin-top:24px}.table-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:10px;border-bottom:2px solid #c9cfdf;color:#000;font-weight:700;font-size:11px}.table-details[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:10px}ul.performance[_ngcontent-%COMP%]{display:inline-flex;list-style:none;width:100%}ul.performance[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:12px;font-size:11px;display:flex}ul.performance[_ngcontent-%COMP%] li.good[_ngcontent-%COMP%]{color:#734f96}ul.performance[_ngcontent-%COMP%] li.average[_ngcontent-%COMP%]{color:#5e82f4}ul.performance[_ngcontent-%COMP%] li.poor[_ngcontent-%COMP%]{color:#ff808b}ul.performance[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:15px;height:15px}ul.performance[_ngcontent-%COMP%] li.average[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:25px;height:25px;background:#5e82f4}ul.performance[_ngcontent-%COMP%] li.poor[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:25px;height:25px;background:#ff808b}.chart-details[_ngcontent-%COMP%]{background:#c9cfdf}.performance-comparison[_ngcontent-%COMP%]{height:300px;background:#f6f5fb;border-radius:12px}.attendance-health[_ngcontent-%COMP%], .relative-performance[_ngcontent-%COMP%]{height:300px}.chart-details[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#734f96;font-size:13px;margin-top:15px}.signature[_ngcontent-%COMP%]{padding:60px 40px 10px}.signature[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#734f96;font-weight:700}.signature[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:1px solid #734f96;width:70%}.table-details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex}.table-details[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;bottom:2px;left:6px;font-size:12px}mat-progress-bar[_ngcontent-%COMP%]{border:4px solid #e3e2eb;border-radius:20px;height:6px}.attendance-health[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#fff;transform:rotate(-90deg)}.ml-15[_ngcontent-%COMP%]{margin-left:-15px}.relative-performance[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{transform:rotate(-90deg);position:relative;top:22px;left:54%}.demo-chart[_ngcontent-%COMP%]{height:300px}.report-card[_ngcontent-%COMP%]{width:794px;padding:5px;margin:auto}.text-left[_ngcontent-%COMP%]{text-align:left}.student-mark-details[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.student-mark-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:16px;border-bottom:2px solid hsla(0,0%,50.2%,.3607843137254902)}.student-mark-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:4px;border:1px solid #fff}.student-mark-details[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]:before{line-height:1em;content:"_";color:#fff;display:block}.student-mark-details[_ngcontent-%COMP%] div.vertical[_ngcontent-%COMP%]{height:210px;width:5px;writing-mode:tb-rl;transform:rotate(180deg);position:relative;bottom:30px;left:1px;filter:flipv fliph}.student-mark-details[_ngcontent-%COMP%] td.vertical[_ngcontent-%COMP%]{padding-bottom:10px;vertical-align:bottom;background:#8a2be2;color:#fff;font-weight:700}.text-center[_ngcontent-%COMP%]{text-align:center}.student-mark-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:first-child td[_ngcontent-%COMP%]:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px;border:unset}.student-mark-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:first-child td[_ngcontent-%COMP%]:last-child{border-top-right-radius:12px}.student-mark-details[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:12px}.student-mark-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-transform:uppercase;padding:8px;font-size:10px}.student-mark-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.student-mark-details[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background:#c9cfdf}.student-mark-details[_ngcontent-%COMP%] .progress-bar[_ngcontent-%COMP%]{width:100%;height:5px;background:hsla(0,0%,50.2%,.3607843137254902);border:1px solid hsla(0,0%,50.2%,.3607843137254902);border-radius:20px}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:unset!important}.percentage[_ngcontent-%COMP%], .subject[_ngcontent-%COMP%]{background:#fff}.subject[_ngcontent-%COMP%]{padding-left:8px!important}.mark[_ngcontent-%COMP%]{border-left:10px solid #b1b9cf!important;border-right:10px solid #c9cfdf!important}.grade-column[_ngcontent-%COMP%], .mark[_ngcontent-%COMP%]{background:#f6f5fb}.vertical-text[_ngcontent-%COMP%]{display:block;width:2px;transform:rotate(-90deg);white-space:nowrap;position:relative;top:80px;left:-1px}.student-mark-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:unset!important}.academic-performance[_ngcontent-%COMP%]{border-top-left-radius:12px;border-bottom-left-radius:12px}.legend[_ngcontent-%COMP%]{list-style:none;margin-top:0;margin-bottom:0;position:relative;bottom:20px}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:12px;display:flex}.legend[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:7px;height:7px;border:1px solid grey}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;bottom:3px;left:7px}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]{border:1px solid #ffac17;background:#ffac17}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2) div[_ngcontent-%COMP%]{border:1px solid #2d77b6;background:#2d77b6}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3) div[_ngcontent-%COMP%]{border:1px solid #00c5bc;background:#00c5bc}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4) div[_ngcontent-%COMP%]{border:1px solid #ac2733;background:#ac2733}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5) div[_ngcontent-%COMP%]{border:1px solid #3fb65f;background:#3fb65f}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6) div[_ngcontent-%COMP%]{border:1px solid #5c4e8e;background:#5c4e8e}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7) div[_ngcontent-%COMP%]{border:1px solid #e40bab;background:#e40bab}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8) div[_ngcontent-%COMP%]{border:1px solid #f68321;background:#f68321}']}),jn),Bn=c("82o+"),Yn=c("wr8E");function Xn(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getDailyAtten()})),I.cd(1,"Search"),I.cc()}}function zn(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).downloadDailyAtten()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function $n(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",41),I.cd(2),I.cc(),I.dc(3,"td"),I.cd(4),I.cc(),I.dc(5,"td",42),I.cd(6),I.cc(),I.dc(7,"td",42),I.cd(8),I.cc(),I.dc(9,"td",42),I.cd(10),I.cc(),I.dc(11,"td",42),I.cd(12),I.cc(),I.dc(13,"td",42),I.cd(14),I.cc(),I.dc(15,"td",41),I.cd(16),I.qc(17,"displayTime"),I.qc(18,"date"),I.cc(),I.dc(19,"td",41),I.cd(20),I.qc(21,"displayTime"),I.qc(22,"date"),I.cc(),I.dc(23,"td",41),I.cd(24),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.ed(" ",null==c?null:c.employeeCode," "),I.Gb(2),I.ed("",null==c?null:c.employeeName," "),I.Gb(2),I.ed("",null==c?null:c.employeeDepartmentName," "),I.Gb(2),I.dd(null==c?null:c.employeePositionName),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(17,10,I.sc(18,12,null==c?null:c.fromTime,"hh:mm:ss"))),I.Gb(4),I.dd(I.rc(21,15,I.sc(22,17,null==c?null:c.toTime,"hh:mm:ss"))),I.Gb(4),I.dd(null==c?null:c.timeDifference)}}function Wn(t,e){if(1&t&&(I.dc(0,"div",31),I.dc(1,"label"),I.dc(2,"strong"),I.cd(3,"Date :"),I.cc(),I.dc(4,"span",32),I.cd(5),I.cc(),I.cc(),I.dc(6,"table",33),I.dc(7,"thead"),I.dc(8,"tr"),I.dc(9,"th",34),I.cd(10,"Emp Code"),I.cc(),I.dc(11,"th",35),I.cd(12,"Emp Name "),I.cc(),I.dc(13,"th",35),I.cd(14,"Department "),I.cc(),I.dc(15,"th",35),I.cd(16,"Position "),I.cc(),I.dc(17,"th",35),I.cd(18,"Location "),I.cc(),I.dc(19,"th",35),I.cd(20,"Layout Category "),I.cc(),I.dc(21,"th",36),I.cd(22,"Place "),I.cc(),I.dc(23,"th",37),I.cd(24,"Time "),I.cc(),I.dc(25,"th",38),I.cd(26,"Total Time"),I.cc(),I.cc(),I.dc(27,"tr"),I.dc(28,"th",39),I.cd(29," From "),I.cc(),I.dc(30,"th",39),I.cd(31," To "),I.cc(),I.cc(),I.cc(),I.dc(32,"tbody"),I.ad(33,$n,25,20,"tr",40),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.dd(c.getFormatedDate(c.control.date.value)),I.Gb(28),I.yc("ngForOf",c.dailyAtten)}}function Un(t,e){1&t&&(I.bc(0),I.dc(1,"p",43),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var Hn=function(){return["no_movement"]},Jn=function(){return["nomove_daily_emp_search"]},Kn=function(){return["nomove_daily_emp_download"]};function Zn(t,e){if(1&t){var c=I.ec();I.dc(0,"div",14),I.dc(1,"div",15),I.dc(2,"div",16),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Date"),I.cc(),I.cc(),I.cc(),I.dc(6,"div",17),I.dc(7,"mat-form-field",18),I.dc(8,"input",19),I.lc("focus",(function(t){return I.Sc(c),I.Oc(11).open()}))("click",(function(t){return I.Sc(c),I.Oc(11).open()})),I.cc(),I.Yb(9,"mat-datepicker-toggle",20),I.Yb(10,"mat-datepicker",null,21),I.cc(),I.cc(),I.dc(12,"div",22),I.ad(13,Xn,2,0,"button",23),I.ad(14,zn,3,0,"button",24),I.cc(),I.cc(),I.Yb(15,"div",25),I.ad(16,Wn,34,2,"div",26),I.ad(17,Un,4,0,"ng-container",27),I.cc()}if(2&t){var n=I.Oc(11),o=I.pc();I.Gb(8),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(4),I.yc("ngIf",o.permission.hasPermission(I.Ec(6,Hn),I.Ec(7,Jn))),I.Gb(1),I.yc("ngIf",o.permission.hasPermission(I.Ec(8,Hn),I.Ec(9,Kn))),I.Gb(2),I.yc("ngIf",0!=(null==o.dailyAtten?null:o.dailyAtten.length)),I.Gb(1),I.yc("ngIf",0===(null==o.dailyAtten?null:o.dailyAtten.length))}}function Qn(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",62),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getEmployees()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.departmentId),I.Gb(1),I.ed(" ",n.name," ")}}function to(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",62),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getEmployees()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.positionId),I.Gb(1),I.ed(" ",n.positionName," ")}}function eo(t,e){if(1&t&&(I.dc(0,"mat-option",63),I.cd(1),I.cc()),2&t){var c=e.$implicit;I.yc("value",c.employeeId),I.Gb(1),I.ed(" ",c.employeeName," ")}}function co(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getIndividulAtten()})),I.cd(1,"Search"),I.cc()}}function no(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).downloadIndAtten()})),I.dc(1,"i",64),I.cd(2," cloud_download "),I.cc(),I.cc()}}function oo(t,e){if(1&t&&(I.dc(0,"ul"),I.dc(1,"li"),I.dc(2,"span"),I.dc(3,"strong"),I.cd(4,"Emp Name "),I.cc(),I.cc(),I.dc(5,"span",32),I.cd(6),I.cc(),I.cc(),I.dc(7,"li"),I.dc(8,"span"),I.dc(9,"strong"),I.cd(10,"Department "),I.cc(),I.cc(),I.dc(11,"span",32),I.cd(12),I.cc(),I.cc(),I.dc(13,"li"),I.dc(14,"span"),I.dc(15,"strong"),I.cd(16,"Position "),I.cc(),I.cc(),I.dc(17,"span",32),I.cd(18),I.cc(),I.cc(),I.dc(19,"li"),I.dc(20,"span"),I.dc(21,"strong"),I.cd(22,"Date "),I.cc(),I.cc(),I.dc(23,"span",32),I.cd(24),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(6),I.dd(null==c.indiviAtten[0]?null:c.indiviAtten[0].employeeName),I.Gb(6),I.ed("",null==c.indiviAtten[0]?null:c.indiviAtten[0].employeeDepartmentName," "),I.Gb(6),I.dd(null==c.indiviAtten[0]?null:c.indiviAtten[0].employeePositionName),I.Gb(6),I.fd("",c.getFormatedDate(c.control.fromDate.value)," to ",c.getFormatedDate(c.control.toDate.value),"")}}function io(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",41),I.cd(2),I.cc(),I.dc(3,"td",42),I.cd(4),I.cc(),I.dc(5,"td",42),I.cd(6),I.cc(),I.dc(7,"td",42),I.cd(8),I.cc(),I.dc(9,"td",41),I.cd(10),I.qc(11,"displayTime"),I.qc(12,"date"),I.cc(),I.dc(13,"td",41),I.cd(14),I.qc(15,"displayTime"),I.qc(16,"date"),I.cc(),I.dc(17,"td",41),I.cd(18),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.dd(null==c?null:c.thisDate),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(11,7,I.sc(12,9,null==c?null:c.fromTime,"hh:mm:ss"))),I.Gb(4),I.ed("",I.rc(15,12,I.sc(16,14,null==c?null:c.toTime,"hh:mm:ss"))," "),I.Gb(4),I.ed("",null==c?null:c.timeDifference," ")}}function ao(t,e){if(1&t&&(I.dc(0,"table",33),I.dc(1,"thead"),I.dc(2,"tr"),I.dc(3,"th",38),I.cd(4,"Date "),I.cc(),I.dc(5,"th",36),I.cd(6,"Location"),I.cc(),I.dc(7,"th",36),I.cd(8,"Layout Category "),I.cc(),I.dc(9,"th",36),I.cd(10,"Place "),I.cc(),I.dc(11,"th",37),I.cd(12,"Time "),I.cc(),I.dc(13,"th",65),I.cd(14,"Total Time"),I.cc(),I.cc(),I.dc(15,"tr"),I.dc(16,"th",39),I.cd(17," From "),I.cc(),I.dc(18,"th",39),I.cd(19," To "),I.cc(),I.cc(),I.cc(),I.dc(20,"tbody"),I.ad(21,io,19,17,"tr",40),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(21),I.yc("ngForOf",c.indiviAtten)}}function ro(t,e){1&t&&(I.bc(0),I.dc(1,"p",43),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var lo=function(){return["nomove_ind_emp_search"]},so=function(){return["nomove_ind_emp_download"]};function uo(t,e){if(1&t){var c=I.ec();I.dc(0,"div",44),I.dc(1,"div",45),I.dc(2,"div",46),I.dc(3,"mat-form-field",18),I.dc(4,"mat-label"),I.cd(5,"Department"),I.cc(),I.dc(6,"mat-select",47),I.ad(7,Qn,2,2,"mat-option",48),I.cc(),I.cc(),I.cc(),I.dc(8,"div",46),I.dc(9,"mat-form-field",18),I.dc(10,"mat-label"),I.cd(11,"Job Position"),I.cc(),I.dc(12,"mat-select",49),I.ad(13,to,2,2,"mat-option",48),I.cc(),I.cc(),I.cc(),I.dc(14,"div",50),I.dc(15,"mat-form-field",18),I.dc(16,"mat-label"),I.cd(17,"Employee Name"),I.cc(),I.dc(18,"mat-select",51),I.ad(19,eo,2,2,"mat-option",52),I.cc(),I.cc(),I.cc(),I.dc(20,"div",53),I.dc(21,"mat-form-field",18),I.dc(22,"mat-label"),I.cd(23,"From Date"),I.cc(),I.dc(24,"input",54),I.lc("dateChange",(function(t){return I.Sc(c),I.pc().dateChange()}))("focus",(function(t){return I.Sc(c),I.Oc(27).open()}))("click",(function(t){return I.Sc(c),I.Oc(27).open()})),I.cc(),I.Yb(25,"mat-datepicker-toggle",20),I.Yb(26,"mat-datepicker",null,55),I.cc(),I.cc(),I.dc(28,"div",56),I.dc(29,"mat-form-field",18),I.dc(30,"mat-label"),I.cd(31,"To Date"),I.cc(),I.dc(32,"input",57),I.lc("focus",(function(t){return I.Sc(c),I.Oc(35).open()}))("click",(function(t){return I.Sc(c),I.Oc(35).open()})),I.cc(),I.Yb(33,"mat-datepicker-toggle",20),I.Yb(34,"mat-datepicker",null,58),I.cc(),I.cc(),I.dc(36,"div",59),I.ad(37,co,2,0,"button",23),I.ad(38,no,3,0,"button",24),I.cc(),I.cc(),I.Yb(39,"div",60),I.ad(40,oo,25,5,"ul",27),I.ad(41,ao,22,1,"table",61),I.ad(42,ro,4,0,"ng-container",27),I.cc()}if(2&t){var n=I.Oc(27),o=I.Oc(35),i=I.pc();I.Gb(7),I.yc("ngForOf",i.depts),I.Gb(6),I.yc("ngForOf",i.positions),I.Gb(6),I.yc("ngForOf",i.employees),I.Gb(5),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(7),I.yc("min",null==i.control.fromDate?null:i.control.fromDate.value)("matDatepicker",o),I.Gb(1),I.yc("for",o),I.Gb(4),I.yc("ngIf",i.permission.hasPermission(I.Ec(13,Hn),I.Ec(14,lo))),I.Gb(1),I.yc("ngIf",i.permission.hasPermission(I.Ec(15,Hn),I.Ec(16,so))),I.Gb(2),I.yc("ngIf",0!=(null==i.indiviAtten?null:i.indiviAtten.length)),I.Gb(1),I.yc("ngIf",0!=(null==i.indiviAtten?null:i.indiviAtten.length)),I.Gb(1),I.yc("ngIf",0===(null==i.indiviAtten?null:i.indiviAtten.length))}}var mo,po=((mo=function(){return _createClass((function t(e,c,n,o,i,a,d,r,l,s,u){_classCallCheck(this,t),this.modelService=e,this.deptService=c,this.positionService=n,this.employeeService=o,this.configServ=i,this.severdatePipe=a,this.loader=d,this.permission=r,this.toaster=l,this.apiService=s,this.timePipe=u,this.customerId="",this.schoolId="",this.dailyAtten=[],this.dailyAttenDatas=[],this.empPagination={filterDepartment:"",filterPosition:""},this.indiviAtten=[],this.configServ.init(),this.customerId=this.configServ.customerId,this.schoolId=this.configServ.branchId}),[{key:"ngOnInit",value:function(){this.getDepts(),this.getPositions(),this.form()}},{key:"form",value:function(){this.basicForm=new a.j({type:new a.g(""),date:new a.g(""),depart:new a.g(""),position:new a.g(""),empId:new a.g(""),fromDate:new a.g(""),toDate:new a.g("")})}},{key:"control",get:function(){return this.basicForm.controls}},{key:"reset",value:function(){this.basicForm.patchValue({date:"",depart:"",position:"",empId:"",fromDate:"",toDate:""})}},{key:"dateChange",value:function(){this.basicForm.patchValue({toDate:""})}},{key:"getFormatedDate",value:function(t){return this.severdatePipe.transform(t)}},{key:"typeChange",value:function(){this.reset(),this.dailyAtten=[],this.dailyAttenDatas=[],this.indiviAtten=[]}},{key:"getDepts",value:function(){var t=this;this.deptService.getList(void 0).subscribe((function(e){"success"==e.keyword&&(t.depts=e.departments.filter((function(t){return"1"==t.status})),console.log(t.depts,"this.depts"))}))}},{key:"getPositions",value:function(){var t=this;this.positionService.getList(void 0).subscribe((function(e){"success"==e.keyword&&(t.positions=e.positions.filter((function(t){return"1"==t.status})))}))}},{key:"checkRequired",value:function(){$.a.fire({title:"Check Required",text:"Fill Mandatory Fields",icon:"warning"})}},{key:"getDailyAtten",value:function(){var t,e=this;this.dailyAtten=[],this.dailyAttenDatas=[];var c=this.severdatePipe.transform(null===(t=this.basicForm.value)||void 0===t?void 0:t.date);if(""!=c){var n={customerId:this.customerId,schoolId:this.schoolId,thisDate:c};this.loader.open(),this.modelService.getDailyAtten(n).subscribe((function(t){t.datas.length>0?(e.dailyAtten=t.datas,e.loader.close(),e.toaster.present("Report viewed successfully","")):(e.loader.close(),e.dailyAtten=[],e.toaster.present("No data found...",""))}))}else this.checkRequired()}},{key:"downloadDailyAtten",value:function(){var t,e=this,c=this.severdatePipe.transform(null===(t=this.basicForm.value)||void 0===t?void 0:t.date);if(""!=c){var n={date:c},o=new O.e;for(var i in n)o=o.set(i,n[i]);this.loader.open(),this.apiService.FilterDownloadFile("empDailyNoMovement",o).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:e.loader.close();break;case O.d.Response:var c=new Blob([t.body],{type:t.body.type}),n=document.createElement("a");n.setAttribute("style","display:none;"),document.body.appendChild(n),n.download="Employee Daily Nomovement Report",n.href=URL.createObjectURL(c),n.target="_blank",n.click(),document.body.removeChild(n),e.loader.close()}}))}else this.checkRequired()}},{key:"getEmployees",value:function(){var t,e,c,n,o=this,i=this.basicForm.value;""!=(null===(t=i)||void 0===t?void 0:t.depart)&&""!=(null===(e=i)||void 0===e?void 0:e.position)&&(this.empPagination.filterDepartment=JSON.stringify([null===(c=i)||void 0===c?void 0:c.depart]),this.empPagination.filterPosition=JSON.stringify([null===(n=i)||void 0===n?void 0:n.position]),this.employeeService.getList(this.empPagination).subscribe((function(t){"success"==t.keyword&&(o.employees=t.employees,console.log(o.employees,"this.employees"))})))}},{key:"getIndividulAtten",value:function(){var t,e,c,n,o,i,a=this,d=this.basicForm.value,r=this.severdatePipe.transform(null===(t=d)||void 0===t?void 0:t.fromDate),l=this.severdatePipe.transform(null===(e=d)||void 0===e?void 0:e.toDate);if(""!=(null===(c=d)||void 0===c?void 0:c.depart)&&""!=(null===(n=d)||void 0===n?void 0:n.position)&&""!=(null===(o=d)||void 0===o?void 0:o.empId)&&""!=r&&""!=l){this.indiviAtten=[];var s={customerId:this.customerId,schoolId:this.schoolId,employeeId:null===(i=d)||void 0===i?void 0:i.empId,fromDate:r,toDate:l};this.loader.open(),this.modelService.getIndividualAtten(s).subscribe((function(t){var e,c;(null===(e=t)||void 0===e?void 0:e.datas.length)>0?(a.indiviAtten=null===(c=t)||void 0===c?void 0:c.datas,a.loader.close(),a.toaster.present("Report viewed successfully","")):(a.loader.close(),a.indiviAtten=[],a.toaster.present("No data found...",""))}))}else this.checkRequired()}},{key:"downloadIndAtten",value:function(){var t,e,c,n,o,i,a=this,d=this.basicForm.value,r=this.severdatePipe.transform(null===(t=d)||void 0===t?void 0:t.fromDate),l=this.severdatePipe.transform(null===(e=d)||void 0===e?void 0:e.toDate);if(""!=(null===(c=d)||void 0===c?void 0:c.depart)&&""!=(null===(n=d)||void 0===n?void 0:n.position)&&""!=(null===(o=d)||void 0===o?void 0:o.empId)&&""!=r&&""!=l){var s={employeeId:null===(i=d)||void 0===i?void 0:i.empId,fromDate:r,toDate:l},u=new O.e;for(var m in s)u=u.set(m,s[m]);this.loader.open(),this.apiService.FilterDownloadFile("empIndividualNoMovement",u).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:a.loader.close();break;case O.d.Response:var e=new Blob([t.body],{type:t.body.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),document.body.appendChild(c),c.download="Employee Individual Nomovement report",c.href=URL.createObjectURL(e),c.target="_blank",c.click(),document.body.removeChild(c),a.loader.close()}}))}else this.checkRequired()}},{key:"getFormatedTime",value:function(t){return t?this.timePipe.transform(t):"-"}}])}()).\u0275fac=function(t){return new(t||mo)(I.Xb(Bn.a),I.Xb(Y.a),I.Xb(Yn.a),I.Xb(B.a),I.Xb(wn.a),I.Xb(T.d),I.Xb(G.a),I.Xb(W.a),I.Xb(S.a),I.Xb(P.a),I.Xb(T.c))},mo.\u0275cmp=I.Rb({type:mo,selectors:[["app-list"]],features:[I.Fb([{provide:s.c,useClass:A.b},{provide:s.f,useValue:A.a},T.d,T.c])],decls:21,vars:3,consts:[[1,"create_btn"],[1,""],[1,"p-0"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","100"],[1,"card-title-text"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0","mb-4"],["aria-label","Select an option","name","report","formControlName","type",1,"ml-15",3,"change"],["value","Daily",1,"mr-40"],["value","Individual"],["class","daily-block",4,"ngIf"],["class","individual-block mt-12",4,"ngIf"],[1,"daily-block"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","5",1,"pt-12"],["fxFlex","100","fxFlex.gt-xs","15",1,""],["appearance","fill"],["matInput","","formControlName","date",3,"matDatepicker","focus","click"],["matSuffix","",3,"for"],["picker",""],["fxFlex","100","fxFlex.gt-xs","20",1,"mt-8","ml-12"],["mat-raised-button","","color","primary","class","btn-primary-bg",3,"click",4,"ngIf"],["mat-button","","color","primary",3,"click",4,"ngIf"],[1,"border-top"],["class","mt-12",4,"ngIf"],[4,"ngIf"],["mat-raised-button","","color","primary",1,"btn-primary-bg",3,"click"],["mat-button","","color","primary",3,"click"],[1,"material-icons"],[1,"mt-12"],[1,"ml-16"],[1,"employee-table","mt-12"],["rowspan","2",2,"width","4%","text-align","left"],["rowspan","2",2,"width","15%","text-align","left"],["rowspan","2",2,"width","23%","text-align","left"],["colspan","2",2,"width","5%","text-align","center"],["rowspan","2",2,"width","10%","text-align","center"],[2,"width","10%","text-align","center"],[4,"ngFor","ngForOf"],[2,"text-align","center"],[2,"text-align","left"],[1,"text-center"],[1,"individual-block","mt-12"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","13",1,"mt-12","mr-16"],["formControlName","depart"],[3,"value","click",4,"ngFor","ngForOf"],["formControlName","position"],["fxFlex","100","fxFlex.gt-xs","16",1,"mt-12","mr-16"],["formControlName","empId"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-xs","13",1,"mr-16"],["matInput","","formControlName","fromDate",3,"matDatepicker","dateChange","focus","click"],["picker2",""],["fxFlex","100","fxFlex.gt-xs","13",1,""],["matInput","","formControlName","toDate",3,"min","matDatepicker","focus","click"],["picker3",""],["fxFlex","100","fxFlex.gt-xs","12",1,"mt-12","ml-4"],[2,"border-top","1px solid #ccc"],["class","employee-table mt-12",4,"ngIf"],[3,"value","click"],[3,"value"],[1,"material-icons","f30"],["rowspan","2",2,"width","23%","text-align","center"]],template:function(t,e){1&t&&(I.Yb(0,"div",0),I.dc(1,"div",1),I.dc(2,"mat-card",2),I.dc(3,"mat-card-title",1),I.dc(4,"div",3),I.dc(5,"div",4),I.dc(6,"div",5),I.cd(7,"No Movement - Employee"),I.cc(),I.cc(),I.cc(),I.Yb(8,"mat-divider"),I.cc(),I.dc(9,"mat-card-content"),I.dc(10,"form",6),I.dc(11,"div",7),I.dc(12,"div",4),I.dc(13,"div",8),I.dc(14,"mat-radio-group",9),I.lc("change",(function(t){return e.typeChange()})),I.dc(15,"mat-radio-button",10),I.cd(16,"Daily"),I.cc(),I.dc(17,"mat-radio-button",11),I.cd(18,"Individual"),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.ad(19,Zn,18,10,"div",12),I.ad(20,uo,43,17,"div",13),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(10),I.yc("formGroup",e.basicForm),I.Gb(9),I.yc("ngIf","Daily"==(null==e.control.type?null:e.control.type.value)),I.Gb(1),I.yc("ngIf","Individual"==e.control.type.value))},directives:[r.a,r.f,U.c,U.a,H.a,r.c,a.D,a.u,a.k,b.b,a.t,a.i,b.a,i.o,J.b,p.b,a.c,u.b,u.d,J.f,u.a,d.a,i.n,J.e,K.a,s.p],pipes:[T.c,i.e],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.batch-name[_ngcontent-%COMP%]{font-size:24px;margin-left:-11px}.employee-table[_ngcontent-%COMP%]{border:1px solid #ccc}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 8px!important}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid hsla(0,0%,80%,.4588235294117647)!important;border-width:1px 1px 0!important;white-space:nowrap}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;font-weight:900!important;padding:0 8px!important}table[_ngcontent-%COMP%]{border-spacing:0}/[_ngcontent-%COMP%] /[_ngcontent-%COMP%] .sort[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:flex!important}.f30[_ngcontent-%COMP%]{font-size:30px}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.employee-table[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:10px!important}.mt-20[_ngcontent-%COMP%]{margin-top:20px}.daily-block.Individual[_ngcontent-%COMP%], .daily-block.Monthly[_ngcontent-%COMP%]{display:none}span.material-icons.sort-icon[_ngcontent-%COMP%]{position:relative;top:6px}mat-card-title[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:90%!important}.card-title-text[_ngcontent-%COMP%]{padding:5px 26px!important}ul[_ngcontent-%COMP%]{display:-webkit-box;list-style:none;padding-inline-start:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:30px}@font-face{font-family:Roboto,sans-serif!important;src:url(https://fonts.googleapis.com/css2?display=swap&family=Roboto%3Aital%2Cwght%400%2C100%3B0%2C400%3B0%2C500%3B1%2C400)}"]}),mo);function fo(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please select any one "),I.cc())}function ho(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the date "),I.cc())}function bo(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).dailySearch()})),I.cd(1,"Search"),I.cc()}}function vo(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).download()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function go(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",40),I.cd(2),I.cc(),I.dc(3,"td"),I.cd(4),I.cc(),I.dc(5,"td",41),I.cd(6),I.cc(),I.dc(7,"td",41),I.cd(8),I.cc(),I.dc(9,"td",41),I.cd(10),I.cc(),I.dc(11,"td",41),I.cd(12),I.cc(),I.dc(13,"td",40),I.cd(14),I.qc(15,"displayTime"),I.qc(16,"date"),I.cc(),I.dc(17,"td",40),I.cd(18),I.qc(19,"displayTime"),I.qc(20,"date"),I.cc(),I.dc(21,"td",40),I.cd(22),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.ed(" ",null==c?null:c.rollNo," "),I.Gb(2),I.dd(null==c?null:c.studentName),I.Gb(2),I.gd("",null==c?null:c.className," ",null!=c&&c.className?"-":""," ",null==c?null:c.sectionName,""),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(15,11,I.sc(16,13,null==c?null:c.fromTime,"hh:mm:ss"))),I.Gb(4),I.dd(I.rc(19,16,I.sc(20,18,null==c?null:c.toTime,"hh:mm:ss"))),I.Gb(4),I.dd(null==c?null:c.timeDifference)}}function yo(t,e){if(1&t&&(I.dc(0,"div",31),I.dc(1,"label"),I.dc(2,"strong"),I.cd(3,"Date :"),I.cc(),I.dc(4,"span",32),I.cd(5),I.qc(6,"date"),I.cc(),I.cc(),I.dc(7,"table",33),I.dc(8,"thead"),I.dc(9,"tr"),I.dc(10,"th",34),I.cd(11,"Roll No "),I.cc(),I.dc(12,"th",35),I.cd(13,"Student Name\t"),I.cc(),I.dc(14,"th",35),I.cd(15,"Class\t"),I.cc(),I.dc(16,"th",35),I.cd(17,"Location\t"),I.cc(),I.dc(18,"th",35),I.cd(19,"Layout Category\t"),I.cc(),I.dc(20,"th",35),I.cd(21,"Place\t"),I.cc(),I.dc(22,"th",36),I.cd(23,"Time "),I.cc(),I.dc(24,"th",37),I.cd(25,"Total Time"),I.cc(),I.cc(),I.dc(26,"tr"),I.dc(27,"th",38),I.cd(28," From "),I.cc(),I.dc(29,"th",38),I.cd(30," To "),I.cc(),I.cc(),I.cc(),I.dc(31,"tbody"),I.ad(32,go,23,21,"tr",39),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.dd(I.sc(6,2,null==c.control?null:null==c.control.dailyDate?null:c.control.dailyDate.value,"yyyy-MM-dd")),I.Gb(27),I.yc("ngForOf",c.dailys)}}function xo(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var Co=function(){return["no_movement"]},wo=function(){return["nomove_daily_stu_search"]},ko=function(){return["nomove_daily_stu_download"]};function _o(t,e){if(1&t){var c=I.ec();I.dc(0,"div",15),I.dc(1,"div",16),I.dc(2,"div",17),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Date"),I.cc(),I.cc(),I.cc(),I.dc(6,"div",18),I.dc(7,"mat-form-field",19),I.dc(8,"input",20),I.lc("focus",(function(t){return I.Sc(c),I.Oc(11).open()}))("click",(function(t){return I.Sc(c),I.Oc(11).open()})),I.cc(),I.Yb(9,"mat-datepicker-toggle",21),I.Yb(10,"mat-datepicker",null,22),I.ad(12,ho,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(13,"div",23),I.ad(14,bo,2,0,"button",24),I.ad(15,vo,3,0,"button",25),I.cc(),I.cc(),I.Yb(16,"div",26),I.ad(17,yo,33,5,"div",27),I.ad(18,xo,4,0,"ng-container",12),I.cc()}if(2&t){var n=I.Oc(11),o=I.pc();I.Gb(8),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(3),I.yc("ngIf",null==o.control?null:null==o.control.dailyDate?null:null==o.control.dailyDate.errors?null:o.control.dailyDate.errors.required),I.Gb(2),I.yc("ngIf",o.permission.hasPermission(I.Ec(7,Co),I.Ec(8,wo))),I.Gb(1),I.yc("ngIf",o.permission.hasPermission(I.Ec(9,Co),I.Ec(10,ko))),I.Gb(2),I.yc("ngIf",0!=(null==o.dailys?null:o.dailys.length)),I.Gb(1),I.yc("ngIf",0===(null==o.dailys?null:o.dailys.length))}}function Fo(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getClass(n.batchId),o.getbatchName(n.batchName)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.batchId),I.Gb(1),I.ed(" ",n.batchName," ")}}function Oo(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the batch name "),I.cc())}function Po(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getStudentClass(n.className),o.getStudent()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.classId),I.Gb(1),I.ed(" ",n.className," ")}}function Io(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the class name "),I.cc())}function Do(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getSections(n.sectionName),o.getStudent()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.sectionId),I.Gb(1),I.ed(" ",n.sectionName," ")}}function Go(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide section name "),I.cc())}function So(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getStudentNames(n.studentName)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.studentId),I.Gb(1),I.ed(" ",n.studentName," ")}}function Mo(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the student name "),I.cc())}function No(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the from date "),I.cc())}function Ao(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the to date "),I.cc())}function To(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).individualSearch()})),I.cd(1,"Search"),I.cc()}}function Lo(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).download()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function Eo(t,e){if(1&t&&(I.dc(0,"table",64),I.dc(1,"tr"),I.dc(2,"td",65),I.cd(3,"Batch "),I.cc(),I.dc(4,"td",66),I.cd(5),I.cc(),I.dc(6,"td",65),I.cd(7,"Class "),I.cc(),I.dc(8,"td",67),I.cd(9),I.cc(),I.dc(10,"td",68),I.cd(11,"Section"),I.cc(),I.dc(12,"td",67),I.cd(13),I.cc(),I.dc(14,"td",65),I.cd(15," Name "),I.cc(),I.dc(16,"td",69),I.cd(17),I.cc(),I.Yb(18,"td",70),I.Yb(19,"td",69),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.dd(c.batchName),I.Gb(4),I.dd(c.className),I.Gb(4),I.dd(c.sectionName),I.Gb(4),I.dd(c.studentName)}}function Vo(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",40),I.cd(2),I.cc(),I.dc(3,"td",41),I.cd(4),I.cc(),I.dc(5,"td",41),I.cd(6),I.cc(),I.dc(7,"td",41),I.cd(8),I.cc(),I.dc(9,"td",40),I.cd(10),I.qc(11,"displayTime"),I.qc(12,"date"),I.cc(),I.dc(13,"td",40),I.cd(14),I.qc(15,"displayTime"),I.qc(16,"date"),I.cc(),I.dc(17,"td",40),I.cd(18),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.dd(null==c?null:c.thisDate),I.Gb(2),I.ed("",null==c?null:c.layoutType," "),I.Gb(2),I.ed("",null==c?null:c.layoutCategoryName," "),I.Gb(2),I.ed("",null==c?null:c.layoutPositionName," "),I.Gb(2),I.ed("",I.rc(11,7,I.sc(12,9,null==c?null:c.fromTime,"hh:mm:ss"))," "),I.Gb(4),I.ed("",I.rc(15,12,I.sc(16,14,null==c?null:c.toTime,"hh:mm:ss"))," "),I.Gb(4),I.ed("",null==c?null:c.timeDifference," ")}}function Ro(t,e){if(1&t&&(I.dc(0,"table",33),I.dc(1,"thead"),I.dc(2,"tr"),I.dc(3,"th",71),I.cd(4,"Date\t"),I.cc(),I.dc(5,"th",35),I.cd(6,"Location\t"),I.cc(),I.dc(7,"th",35),I.cd(8,"Layout Category\t"),I.cc(),I.dc(9,"th",35),I.cd(10,"Place"),I.cc(),I.dc(11,"th",36),I.cd(12,"Time "),I.cc(),I.dc(13,"th",37),I.cd(14,"Total Time"),I.cc(),I.cc(),I.dc(15,"tr"),I.dc(16,"th",38),I.cd(17," From "),I.cc(),I.dc(18,"th",38),I.cd(19," To "),I.cc(),I.cc(),I.cc(),I.dc(20,"tbody"),I.ad(21,Vo,19,17,"tr",39),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(21),I.yc("ngForOf",c.individuals)}}function jo(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var qo=function(){return["nomove_ind_stu_search"]},Bo=function(){return["nomove_ind_stu_download"]};function Yo(t,e){if(1&t){var c=I.ec();I.dc(0,"div",43),I.dc(1,"div",44),I.dc(2,"div",45),I.dc(3,"mat-form-field",19),I.dc(4,"mat-label"),I.cd(5,"Batch"),I.cc(),I.dc(6,"mat-select",46),I.ad(7,Fo,2,2,"mat-option",47),I.cc(),I.ad(8,Oo,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(9,"div",45),I.dc(10,"mat-form-field",19),I.dc(11,"mat-label"),I.cd(12,"Class"),I.cc(),I.dc(13,"mat-select",48),I.ad(14,Po,2,2,"mat-option",47),I.cc(),I.ad(15,Io,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(16,"div",49),I.dc(17,"mat-form-field",19),I.dc(18,"mat-label"),I.cd(19,"Section"),I.cc(),I.dc(20,"mat-select",50),I.ad(21,Do,2,2,"mat-option",47),I.cc(),I.ad(22,Go,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(23,"div",51),I.dc(24,"mat-form-field",19),I.dc(25,"mat-label"),I.cd(26,"Student Name"),I.cc(),I.dc(27,"mat-select",52),I.ad(28,So,2,2,"mat-option",47),I.cc(),I.ad(29,Mo,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(30,"div",53),I.dc(31,"mat-form-field",19),I.dc(32,"input",54),I.lc("focus",(function(t){return I.Sc(c),I.Oc(35).open()}))("click",(function(t){return I.Sc(c),I.Oc(35).open()})),I.cc(),I.Yb(33,"mat-datepicker-toggle",21),I.Yb(34,"mat-datepicker",null,55),I.ad(36,No,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(37,"div",56),I.dc(38,"mat-form-field",19),I.dc(39,"input",57),I.lc("focus",(function(t){return I.Sc(c),I.Oc(42).open()}))("click",(function(t){return I.Sc(c),I.Oc(42).open()})),I.cc(),I.Yb(40,"mat-datepicker-toggle",21),I.Yb(41,"mat-datepicker",null,58),I.ad(43,Ao,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(44,"div",59),I.ad(45,To,2,0,"button",24),I.ad(46,Lo,3,0,"button",25),I.cc(),I.cc(),I.Yb(47,"div",60),I.ad(48,Eo,20,4,"table",61),I.ad(49,Ro,22,1,"table",62),I.ad(50,jo,4,0,"ng-container",12),I.cc()}if(2&t){var n=I.Oc(35),o=I.Oc(42),i=I.pc();I.Gb(7),I.yc("ngForOf",i.batches),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.batch?null:null==i.control.batch.errors?null:i.control.batch.errors.required),I.Gb(6),I.yc("ngForOf",i.classes),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.indivualclass?null:null==i.control.indivualclass.errors?null:i.control.indivualclass.errors.required),I.Gb(6),I.yc("ngForOf",i.sections),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.indivualsection?null:null==i.control.indivualsection.errors?null:i.control.indivualsection.errors.required),I.Gb(6),I.yc("ngForOf",i.students),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.studename?null:null==i.control.studename.errors?null:i.control.studename.errors.required),I.Gb(3),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(3),I.yc("ngIf",null==i.control?null:null==i.control.fromDate?null:null==i.control.fromDate.errors?null:i.control.fromDate.errors.required),I.Gb(3),I.yc("matDatepicker",o),I.Gb(1),I.yc("for",o),I.Gb(3),I.yc("ngIf",null==i.control?null:null==i.control.toDate?null:null==i.control.toDate.errors?null:i.control.toDate.errors.required),I.Gb(2),I.yc("ngIf",i.permission.hasPermission(I.Ec(19,Co),I.Ec(20,qo))),I.Gb(1),I.yc("ngIf",i.permission.hasPermission(I.Ec(21,Co),I.Ec(22,Bo))),I.Gb(2),I.yc("ngIf",0!=(null==i.individuals?null:i.individuals.length)),I.Gb(1),I.yc("ngIf",0!=(null==i.individuals?null:i.individuals.length)),I.Gb(1),I.yc("ngIf",0===(null==i.individuals?null:i.individuals.length))}}var Xo,zo,$o=((zo=function(){return _createClass((function t(e,c,n,o,i,a,d,r,l,s,u){_classCallCheck(this,t),this.modelServie=e,this.loader=c,this.toaster=n,this.router=o,this.batchService=i,this.severdatePipe=a,this.StudentService=d,this.sectionService=r,this.apiService=l,this.classService=s,this.permission=u,this.console=console,this.dailys=[],this.individuals=[]}),[{key:"ngOnInit",value:function(){this.nomoveForm=new a.j({Type:new a.g("",[a.B.required])}),this.typebasedValidate(this.nomoveForm.value.Type),this.getAcademic(),this.getSection(),this.getStudent()}},{key:"control",get:function(){return this.nomoveForm.controls}},{key:"typebasedValidate",value:function(t){"Daily"==t?(this.nomoveForm.removeControl("studename"),this.nomoveForm.removeControl("indivualclass"),this.nomoveForm.removeControl("indivualsection"),this.nomoveForm.removeControl("batch"),this.nomoveForm.removeControl("fromDate"),this.nomoveForm.removeControl("toDate"),this.nomoveForm.removeControl("dailyDate"),this.nomoveForm.addControl("dailyDate",new a.g("",[a.B.required])),this.dailys=[],this.count="",this.individuals=[],this.count="",this.batchName="",this.studentName="",this.sectionName="",this.className=""):"Individual"==t&&(this.nomoveForm.removeControl("studename"),this.nomoveForm.removeControl("indivualclass"),this.nomoveForm.removeControl("indivualsection"),this.nomoveForm.removeControl("batch"),this.nomoveForm.removeControl("fromDate"),this.nomoveForm.removeControl("toDate"),this.nomoveForm.removeControl("dailyDate"),this.nomoveForm.addControl("studename",new a.g("",[a.B.required])),this.nomoveForm.addControl("indivualclass",new a.g("",[a.B.required])),this.nomoveForm.addControl("indivualsection",new a.g("",[a.B.required])),this.nomoveForm.addControl("batch",new a.g("",[a.B.required])),this.nomoveForm.addControl("fromDate",new a.g("",[a.B.required])),this.nomoveForm.addControl("toDate",new a.g("",[a.B.required])),this.dailys=[],this.count="",this.dailydate="")}},{key:"getAcademic",value:function(){var t=this;this.modelServie.currentAcademic().subscribe((function(e){"success"==e.keyword&&(t.academicId=e.data[0].academic_year_id,t.getBatch(t.academicId))}))}},{key:"getBatch",value:function(t){var e=this;this.batchService.getListByAcademic(t).subscribe((function(t){"success"==t.keyword&&(e.batches=t.batches)}))}},{key:"getClass",value:function(t){var e=this;this.classService.getClassByBatch(t).subscribe((function(t){"success"==t.keyword&&(e.classes=t.classes)}))}},{key:"getSection",value:function(){var t=this;this.sectionService.getList({sortByType:"ASC",sortByKey:"section_id"}).subscribe((function(e){"success"==e.keyword&&(t.sections=e.sections.filter((function(t){return"1"==t.status})))}))}},{key:"getStudent",value:function(){var t=this,e=this.nomoveForm.value;""!=e.indivualclass&&""!=e.indivualsection&&""!=this.academicId&&""!=e.batch&&this.StudentService.getStudentName(this.academicId,e.batch,e.indivualclass,e.indivualsection).subscribe((function(e){t.students=e.studentRegistrations}))}},{key:"getbatchName",value:function(t){this.batchName=t}},{key:"getStudentNames",value:function(t){this.studentName=t}},{key:"getSections",value:function(t){this.sectionName=t}},{key:"getStudentClass",value:function(t){this.className=t}},{key:"dailySearch",value:function(){var t,e=this;if(this.nomoveForm.valid){var c=Object(N.b)(),n=this.severdatePipe.transform(null===(t=this.nomoveForm.value)||void 0===t?void 0:t.dailyDate),o=Object(M.get)(c,"customer_id"),i=Object(M.get)(c,"branch_id");this.dailyobj={customerId:String(o),schoolId:String(i),thisDate:String(n)},this.loader.open(),this.modelServie.studentdailyNomovemnt(this.dailyobj).subscribe((function(t){e.data=t,t.datas.length>0?(e.loader.close(),e.dailys=t.datas,e.count=t,e.toaster.present("Report viewed successfully","")):(e.loader.close(),e.dailydate="",e.toaster.present("No data found...",""))}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"individualSearch",value:function(){var t,e,c,n=this;if(this.nomoveForm.valid){var o=Object(N.b)(),i=this.nomoveForm.value,a=this.severdatePipe.transform(null===(t=i)||void 0===t?void 0:t.fromDate),d=this.severdatePipe.transform(null===(e=i)||void 0===e?void 0:e.toDate),r=Object(M.get)(o,"customer_id"),l=Object(M.get)(o,"branch_id");this.individualobj={customerId:String(r),schoolId:String(l),studentId:String(null===(c=i)||void 0===c?void 0:c.studename),fromDate:String(a),toDate:String(d)},this.loader.open(),this.modelServie.studentIndividualNomovemnt(this.individualobj).subscribe((function(t){n.data=t,t.datas.length>0?(n.individuals=t.datas,n.loader.close(),n.toaster.present("Report viewed successfully","")):(n.loader.close(),n.individuals=[],n.count="",n.toaster.present("No data found...",""))}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"download",value:function(){var t,e,c,n=this;if(this.nomoveForm.valid){var o,i=new O.e;if("Daily"==(null===(t=a=this.nomoveForm.value)||void 0===t?void 0:t.Type)){var a,d=Object(N.b)(),r=this.severdatePipe.transform(null===(e=a=this.nomoveForm.value)||void 0===e?void 0:e.dailyDate),l=Object(M.get)(d,"customer_id"),s=Object(M.get)(d,"branch_id");for(var u in this.obj={customerId:String(l),schoolId:String(s),date:String(r)},o="stuDailyNoMovement",this.obj)i=i.set(u,this.obj[u])}else if("Individual"==(null===(c=a)||void 0===c?void 0:c.Type))for(var m in o="stuIndividualNoMovement",this.individualobj)i=i.set(m,this.individualobj[m]);this.loader.open(),this.apiService.FilterDownloadFile(o,i).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:n.loader.close();break;case O.d.Response:var e=new Blob([t.body],{type:t.body.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),document.body.appendChild(c),c.download="Daily"==n.nomoveForm.value.Type?"Student Daily Nomovement Report":"Student Individual Nomovement Report",c.href=URL.createObjectURL(e),c.target="_blank",c.click(),document.body.removeChild(c),n.loader.close()}}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}}])}()).\u0275fac=function(t){return new(t||zo)(I.Xb(Bn.a),I.Xb(G.a),I.Xb(S.a),I.Xb(o.g),I.Xb(ve.a),I.Xb(T.d),I.Xb(fe.a),I.Xb(be.a),I.Xb(P.a),I.Xb(he.a),I.Xb(W.a))},zo.\u0275cmp=I.Rb({type:zo,selectors:[["app-create"]],features:[I.Fb([{provide:s.c,useClass:A.b},{provide:s.f,useValue:A.a},T.d])],decls:22,vars:4,consts:[[1,"create_btn"],[1,""],[1,"p-0"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","100"],[1,"card-title-text"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0","mb-4"],["aria-label","Select an option","name","report","formControlName","Type",1,"ml-15"],["value","Daily",1,"mr-40",3,"click"],["value","Individual",3,"click"],[4,"ngIf"],["class","daily-block ",4,"ngIf"],["class","individual-block mt-12",4,"ngIf"],[1,"daily-block"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","5",1,"pt-12"],["fxFlex","100","fxFlex.gt-xs","15",1,""],["appearance","fill"],["matInput","","formControlName","dailyDate",3,"matDatepicker","focus","click"],["matSuffix","",3,"for"],["pickerdate",""],["fxFlex","100","fxFlex.gt-xs","20",1,"mt-8","ml-12"],["mat-raised-button","","color","primary","class","btn-primary-bg","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","type","button",3,"click",4,"ngIf"],[1,"border-top"],["class","mt-12",4,"ngIf"],["mat-raised-button","","color","primary","type","button",1,"btn-primary-bg",3,"click"],["mat-button","","color","primary","type","button",3,"click"],[1,"material-icons","f30"],[1,"mt-12"],[1,"ml-16"],[1,"employee-table","mt-12"],["rowspan","2",2,"width","4%","text-align","left"],["rowspan","2",2,"width","23%","text-align","left"],["colspan","2",2,"width","5%","text-align","center"],["rowspan","2",2,"width","23%","text-align","center"],[2,"width","10%","text-align","center"],[4,"ngFor","ngForOf"],[2,"text-align","center"],[2,"text-align","left"],[1,"text-center"],[1,"individual-block","mt-12"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","13",1,"mt-12","mr-16"],["formControlName","batch"],[3,"value","click",4,"ngFor","ngForOf"],["formControlName","indivualclass"],["fxFlex","100","fxFlex.gt-xs","10",1,"mt-12","mr-16"],["formControlName","indivualsection"],["fxFlex","100","fxFlex.gt-xs","16",1,"mt-12","mr-16"],["formControlName","studename"],["fxFlex","100","fxFlex.gt-xs","13",1,"mr-16"],["matInput","","formControlName","fromDate",3,"matDatepicker","focus","click"],["picker2",""],["fxFlex","100","fxFlex.gt-xs","13",1,""],["matInput","","formControlName","toDate",3,"matDatepicker","focus","click"],["picker3",""],["fxFlex","100","fxFlex.gt-xs","12",1,"ml-4"],[2,"border-top","1px solid #ccc"],["style","margin-bottom:12px;margin-top:10px;width:80%;",4,"ngIf"],["class","employee-table mt-12",4,"ngIf"],[3,"value","click"],[2,"margin-bottom","12px","margin-top","10px","width","80%"],[2,"font-weight","bold","width","5%"],[2,"width","13%"],[2,"width","5%"],[2,"font-weight","bold","width","6%"],[2,"width","20%"],[2,"font-weight","bold","width","9%"],["rowspan","2",2,"width","13%","text-align","center"]],template:function(t,e){1&t&&(I.Yb(0,"div",0),I.dc(1,"div",1),I.dc(2,"mat-card",2),I.dc(3,"mat-card-title",1),I.dc(4,"div",3),I.dc(5,"div",4),I.dc(6,"div",5),I.cd(7,"No Movement - Student"),I.cc(),I.cc(),I.cc(),I.Yb(8,"mat-divider"),I.cc(),I.dc(9,"mat-card-content"),I.dc(10,"form",6),I.dc(11,"div",7),I.dc(12,"div",4),I.dc(13,"div",8),I.dc(14,"mat-radio-group",9),I.dc(15,"mat-radio-button",10),I.lc("click",(function(t){return e.typebasedValidate("Daily")})),I.cd(16,"Daily "),I.cc(),I.dc(17,"mat-radio-button",11),I.lc("click",(function(t){return e.typebasedValidate("Individual")})),I.cd(18,"Individual"),I.cc(),I.ad(19,fo,2,0,"mat-error",12),I.cc(),I.cc(),I.cc(),I.cc(),I.ad(20,_o,19,11,"div",13),I.ad(21,Yo,51,23,"div",14),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(10),I.yc("formGroup",e.nomoveForm),I.Gb(9),I.yc("ngIf",(null==e.nomoveForm.controls.Type.errors?null:e.nomoveForm.controls.Type.errors.required)&&e.nomoveForm.controls.Type.touched),I.Gb(1),I.yc("ngIf","Daily"===e.nomoveForm.controls.Type.value),I.Gb(1),I.yc("ngIf","Individual"===e.nomoveForm.controls.Type.value))},directives:[r.a,r.f,U.c,U.a,H.a,r.c,a.D,a.u,a.k,b.b,a.t,a.i,b.a,i.o,J.a,J.b,p.b,a.c,u.b,u.d,J.f,u.a,d.a,i.n,J.e,K.a,s.p],pipes:[i.e,T.c],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.batch-name[_ngcontent-%COMP%]{font-size:24px;margin-left:-11px}.employee-table[_ngcontent-%COMP%]{border:1px solid #ccc}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 8px!important}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid hsla(0,0%,80%,.4588235294117647)!important;border-width:1px 1px 0!important;white-space:nowrap}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;font-weight:900!important;padding:0 8px!important}table[_ngcontent-%COMP%]{border-spacing:0}/[_ngcontent-%COMP%] /[_ngcontent-%COMP%] .sort[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:flex!important}.f30[_ngcontent-%COMP%]{font-size:30px}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.employee-table[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:10px!important}.mt-20[_ngcontent-%COMP%]{margin-top:20px}.daily-block.Individual[_ngcontent-%COMP%], .daily-block.Monthly[_ngcontent-%COMP%]{display:none}span.material-icons.sort-icon[_ngcontent-%COMP%]{position:relative;top:6px}mat-card-title[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:90%!important}.card-title-text[_ngcontent-%COMP%]{padding:5px 26px!important}@font-face{font-family:Roboto,sans-serif!important;src:url(https://fonts.googleapis.com/css2?display=swap&family=Roboto%3Aital%2Cwght%400%2C100%3B0%2C400%3B0%2C500%3B1%2C400)}"]}),zo),Wo=((Xo=function(){return _createClass((function t(e){_classCallCheck(this,t),this.apiService=e,this.userId=0}),[{key:"getDailyAtten",value:function(t){return this.apiService.deviceget("report/employee/get/daily/restricted",t)}},{key:"getIndividualAtten",value:function(t){return this.apiService.deviceget("report/employee/get/individual/restricted",t)}},{key:"getVisitorDailyReport",value:function(t){return this.apiService.deviceget("visitor/get/daily/restricted",t)}},{key:"getVisitorIndReport",value:function(t){return this.apiService.deviceget("visitor/get/individual/restricted",t)}},{key:"studentdailyNotallow",value:function(t){var e=new O.e;for(var c in t)e=e.set(c,t[c]);return this.apiService.deviceget("report/student/get/daily/restricted",e)}},{key:"studentIndividualNotallow",value:function(t){var e=new O.e;for(var c in t)e=e.set(c,t[c]);return this.apiService.deviceget("report/student/get/individual/restricted",e)}},{key:"currentAcademic",value:function(){return this.apiService.get("loadCurrentAcademic")}}])}()).\u0275fac=function(t){return new(t||Xo)(I.hc(P.a))},Xo.\u0275prov=I.Tb({token:Xo,factory:Xo.\u0275fac,providedIn:"root"}),Xo);function Uo(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getDailyAtten()})),I.cd(1,"Search"),I.cc()}}function Ho(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).downloadDailyAtten()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function Jo(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",40),I.cd(2),I.cc(),I.dc(3,"td"),I.cd(4),I.cc(),I.dc(5,"td",41),I.cd(6),I.cc(),I.dc(7,"td",41),I.cd(8),I.cc(),I.dc(9,"td",41),I.cd(10),I.cc(),I.dc(11,"td",41),I.cd(12),I.cc(),I.dc(13,"td",41),I.cd(14),I.cc(),I.dc(15,"td",40),I.cd(16),I.qc(17,"displayTime"),I.qc(18,"date"),I.cc(),I.dc(19,"td",40),I.cd(20),I.qc(21,"displayTime"),I.qc(22,"date"),I.cc(),I.dc(23,"td",40),I.cd(24),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.ed(" ",null==c?null:c.employeeCode," "),I.Gb(2),I.ed("",null==c?null:c.employeeName," "),I.Gb(2),I.ed("",null==c?null:c.employeeDepartmentName," "),I.Gb(2),I.dd(null==c?null:c.employeePositionName),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(17,10,I.sc(18,12,null==c?null:c.fromTime,"hh:mm:ss"))),I.Gb(4),I.dd(I.rc(21,15,I.sc(22,17,null==c?null:c.toTime,"hh:mm:ss"))),I.Gb(4),I.dd(null==c?null:c.timeDifference)}}function Ko(t,e){if(1&t&&(I.dc(0,"div",31),I.dc(1,"label"),I.dc(2,"strong"),I.cd(3,"Date :"),I.cc(),I.dc(4,"span",32),I.cd(5),I.cc(),I.cc(),I.dc(6,"table",33),I.dc(7,"thead"),I.dc(8,"tr"),I.dc(9,"th",34),I.cd(10,"Emp Code"),I.cc(),I.dc(11,"th",35),I.cd(12,"Emp Name "),I.cc(),I.dc(13,"th",35),I.cd(14,"Department "),I.cc(),I.dc(15,"th",35),I.cd(16,"Position "),I.cc(),I.dc(17,"th",35),I.cd(18,"Location"),I.cc(),I.dc(19,"th",35),I.cd(20,"Layout Category "),I.cc(),I.dc(21,"th",35),I.cd(22,"Place "),I.cc(),I.dc(23,"th",36),I.cd(24,"Time "),I.cc(),I.dc(25,"th",37),I.cd(26,"Total Time"),I.cc(),I.cc(),I.dc(27,"tr"),I.dc(28,"th",38),I.cd(29," From "),I.cc(),I.dc(30,"th",38),I.cd(31," To "),I.cc(),I.cc(),I.cc(),I.dc(32,"tbody"),I.ad(33,Jo,25,20,"tr",39),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.dd(c.getFormatedDate(c.control.date.value)),I.Gb(28),I.yc("ngForOf",c.dailyAtten)}}function Zo(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var Qo=function(){return["not_allowed"]},ti=function(){return["notallow_daily_emp_search"]},ei=function(){return["notallow_daily_emp_download"]};function ci(t,e){if(1&t){var c=I.ec();I.dc(0,"div",14),I.dc(1,"div",15),I.dc(2,"div",16),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Date"),I.cc(),I.cc(),I.cc(),I.dc(6,"div",17),I.dc(7,"mat-form-field",18),I.dc(8,"input",19),I.lc("focus",(function(t){return I.Sc(c),I.Oc(11).open()}))("click",(function(t){return I.Sc(c),I.Oc(11).open()})),I.cc(),I.Yb(9,"mat-datepicker-toggle",20),I.Yb(10,"mat-datepicker",null,21),I.cc(),I.cc(),I.dc(12,"div",22),I.ad(13,Uo,2,0,"button",23),I.ad(14,Ho,3,0,"button",24),I.cc(),I.cc(),I.Yb(15,"div",25),I.ad(16,Ko,34,2,"div",26),I.ad(17,Zo,4,0,"ng-container",27),I.cc()}if(2&t){var n=I.Oc(11),o=I.pc();I.Gb(8),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(4),I.yc("ngIf",o.permission.hasPermission(I.Ec(6,Qo),I.Ec(7,ti))),I.Gb(1),I.yc("ngIf",o.permission.hasPermission(I.Ec(8,Qo),I.Ec(9,ei))),I.Gb(2),I.yc("ngIf",0!=(null==o.dailyAtten?null:o.dailyAtten.length)),I.Gb(1),I.yc("ngIf",0===(null==o.dailyAtten?null:o.dailyAtten.length))}}function ni(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",61),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getEmployees()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.departmentId),I.Gb(1),I.ed(" ",n.name," ")}}function oi(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",61),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getEmployees()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.positionId),I.Gb(1),I.ed(" ",n.positionName," ")}}function ii(t,e){if(1&t&&(I.dc(0,"mat-option",62),I.cd(1),I.cc()),2&t){var c=e.$implicit;I.yc("value",c.employeeId),I.Gb(1),I.ed(" ",c.employeeName," ")}}function ai(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getIndividulAtten()})),I.cd(1,"Search"),I.cc()}}function di(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).downloadIndAtten()})),I.dc(1,"i",63),I.cd(2," cloud_download "),I.cc(),I.cc()}}function ri(t,e){if(1&t&&(I.dc(0,"ul"),I.dc(1,"li"),I.dc(2,"span"),I.dc(3,"strong"),I.cd(4,"Emp Name "),I.cc(),I.cc(),I.dc(5,"span",32),I.cd(6),I.cc(),I.cc(),I.dc(7,"li"),I.dc(8,"span"),I.dc(9,"strong"),I.cd(10,"Department "),I.cc(),I.cc(),I.dc(11,"span",32),I.cd(12),I.cc(),I.cc(),I.dc(13,"li"),I.dc(14,"span"),I.dc(15,"strong"),I.cd(16,"Position "),I.cc(),I.cc(),I.dc(17,"span",32),I.cd(18),I.cc(),I.cc(),I.dc(19,"li"),I.dc(20,"span"),I.dc(21,"strong"),I.cd(22,"Date "),I.cc(),I.cc(),I.dc(23,"span",32),I.cd(24),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(6),I.dd(null==c.indiviAtten[0]?null:c.indiviAtten[0].employeeName),I.Gb(6),I.ed("",null==c.indiviAtten[0]?null:c.indiviAtten[0].employeeDepartmentName," "),I.Gb(6),I.dd(null==c.indiviAtten[0]?null:c.indiviAtten[0].employeePositionName),I.Gb(6),I.fd("",c.getFormatedDate(c.control.fromDate.value)," to ",c.getFormatedDate(c.control.toDate.value),"")}}function li(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",40),I.cd(2),I.cc(),I.dc(3,"td",41),I.cd(4),I.cc(),I.dc(5,"td",41),I.cd(6),I.cc(),I.dc(7,"td",41),I.cd(8),I.cc(),I.dc(9,"td",40),I.cd(10),I.qc(11,"displayTime"),I.qc(12,"date"),I.cc(),I.dc(13,"td",40),I.cd(14),I.qc(15,"displayTime"),I.qc(16,"date"),I.cc(),I.dc(17,"td",40),I.cd(18),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.dd(null==c?null:c.thisDate),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(11,7,I.sc(12,9,null==c?null:c.fromTime,"hh:mm:ss"))),I.Gb(4),I.ed("",I.rc(15,12,I.sc(16,14,null==c?null:c.toTime,"hh:mm:ss"))," "),I.Gb(4),I.ed("",null==c?null:c.timeDifference," ")}}function si(t,e){if(1&t&&(I.dc(0,"table",33),I.dc(1,"thead"),I.dc(2,"tr"),I.dc(3,"th",64),I.cd(4,"Date "),I.cc(),I.dc(5,"th",35),I.cd(6,"Location "),I.cc(),I.dc(7,"th",35),I.cd(8,"Layout Category "),I.cc(),I.dc(9,"th",35),I.cd(10,"Place"),I.cc(),I.dc(11,"th",36),I.cd(12,"Time "),I.cc(),I.dc(13,"th",37),I.cd(14,"Total Time"),I.cc(),I.cc(),I.dc(15,"tr"),I.dc(16,"th",38),I.cd(17," From "),I.cc(),I.dc(18,"th",38),I.cd(19," To "),I.cc(),I.cc(),I.cc(),I.dc(20,"tbody"),I.ad(21,li,19,17,"tr",39),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(21),I.yc("ngForOf",c.indiviAtten)}}function ui(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var mi=function(){return["notallow_ind_emp_search"]},pi=function(){return["notallow_ind_emp_download"]};function fi(t,e){if(1&t){var c=I.ec();I.dc(0,"div",43),I.dc(1,"div",44),I.dc(2,"div",45),I.dc(3,"mat-form-field",18),I.dc(4,"mat-label"),I.cd(5,"Department"),I.cc(),I.dc(6,"mat-select",46),I.ad(7,ni,2,2,"mat-option",47),I.cc(),I.cc(),I.cc(),I.dc(8,"div",45),I.dc(9,"mat-form-field",18),I.dc(10,"mat-label"),I.cd(11,"Job Position"),I.cc(),I.dc(12,"mat-select",48),I.ad(13,oi,2,2,"mat-option",47),I.cc(),I.cc(),I.cc(),I.dc(14,"div",49),I.dc(15,"mat-form-field",18),I.dc(16,"mat-label"),I.cd(17,"Employee Name"),I.cc(),I.dc(18,"mat-select",50),I.ad(19,ii,2,2,"mat-option",51),I.cc(),I.cc(),I.cc(),I.dc(20,"div",52),I.dc(21,"mat-form-field",18),I.dc(22,"mat-label"),I.cd(23,"From Date"),I.cc(),I.dc(24,"input",53),I.lc("dateChange",(function(t){return I.Sc(c),I.pc().dateChange()}))("focus",(function(t){return I.Sc(c),I.Oc(27).open()}))("click",(function(t){return I.Sc(c),I.Oc(27).open()})),I.cc(),I.Yb(25,"mat-datepicker-toggle",20),I.Yb(26,"mat-datepicker",null,54),I.cc(),I.cc(),I.dc(28,"div",55),I.dc(29,"mat-form-field",18),I.dc(30,"mat-label"),I.cd(31,"To Date"),I.cc(),I.dc(32,"input",56),I.lc("focus",(function(t){return I.Sc(c),I.Oc(35).open()}))("click",(function(t){return I.Sc(c),I.Oc(35).open()})),I.cc(),I.Yb(33,"mat-datepicker-toggle",20),I.Yb(34,"mat-datepicker",null,57),I.cc(),I.cc(),I.dc(36,"div",58),I.ad(37,ai,2,0,"button",23),I.ad(38,di,3,0,"button",24),I.cc(),I.cc(),I.Yb(39,"div",59),I.ad(40,ri,25,5,"ul",27),I.ad(41,si,22,1,"table",60),I.ad(42,ui,4,0,"ng-container",27),I.cc()}if(2&t){var n=I.Oc(27),o=I.Oc(35),i=I.pc();I.Gb(7),I.yc("ngForOf",i.depts),I.Gb(6),I.yc("ngForOf",i.positions),I.Gb(6),I.yc("ngForOf",i.employees),I.Gb(5),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(7),I.yc("min",null==i.control.fromDate?null:i.control.fromDate.value)("matDatepicker",o),I.Gb(1),I.yc("for",o),I.Gb(4),I.yc("ngIf",i.permission.hasPermission(I.Ec(13,Qo),I.Ec(14,mi))),I.Gb(1),I.yc("ngIf",i.permission.hasPermission(I.Ec(15,Qo),I.Ec(16,pi))),I.Gb(2),I.yc("ngIf",0!=(null==i.indiviAtten?null:i.indiviAtten.length)),I.Gb(1),I.yc("ngIf",0!=(null==i.indiviAtten?null:i.indiviAtten.length)),I.Gb(1),I.yc("ngIf",0===(null==i.indiviAtten?null:i.indiviAtten.length))}}var hi,bi=((hi=function(){return _createClass((function t(e,c,n,o,i,a,d,r,l,s){_classCallCheck(this,t),this.modelService=e,this.deptService=c,this.positionService=n,this.employeeService=o,this.configServ=i,this.severdatePipe=a,this.loader=d,this.permission=r,this.toaster=l,this.apiService=s,this.customerId="",this.schoolId="",this.dailyAtten=[],this.dailyAttenDatas=[],this.empPagination={filterDepartment:"",filterPosition:""},this.indiviAtten=[],this.configServ.init(),this.customerId=this.configServ.customerId,this.schoolId=this.configServ.branchId}),[{key:"ngOnInit",value:function(){this.getDepts(),this.getPositions(),this.form()}},{key:"form",value:function(){this.basicForm=new a.j({type:new a.g(""),date:new a.g(""),depart:new a.g(""),position:new a.g(""),empId:new a.g(""),fromDate:new a.g(""),toDate:new a.g("")})}},{key:"control",get:function(){return this.basicForm.controls}},{key:"reset",value:function(){this.basicForm.patchValue({date:"",depart:"",position:"",empId:"",fromDate:"",toDate:""})}},{key:"dateChange",value:function(){this.basicForm.patchValue({toDate:""})}},{key:"getFormatedDate",value:function(t){return this.severdatePipe.transform(t)}},{key:"typeChange",value:function(){this.reset(),this.dailyAtten=[],this.dailyAttenDatas=[],this.indiviAtten=[]}},{key:"getDepts",value:function(){var t=this;this.deptService.getList(void 0).subscribe((function(e){"success"==e.keyword&&(t.depts=e.departments.filter((function(t){return"1"==t.status})),console.log(t.depts,"this.depts"))}))}},{key:"getPositions",value:function(){var t=this;this.positionService.getList(void 0).subscribe((function(e){"success"==e.keyword&&(t.positions=e.positions.filter((function(t){return"1"==t.status})))}))}},{key:"checkRequired",value:function(){$.a.fire({title:"Check Required",text:"Fill Mandatory Fields",icon:"warning"})}},{key:"getDailyAtten",value:function(){var t,e=this;this.dailyAtten=[],this.dailyAttenDatas=[];var c=this.severdatePipe.transform(null===(t=this.basicForm.value)||void 0===t?void 0:t.date);if(""!=c){var n={customerId:this.customerId,schoolId:this.schoolId,thisDate:c};this.loader.open(),this.modelService.getDailyAtten(n).subscribe((function(t){t.datas.length>0?(e.dailyAtten=t.datas,e.loader.close(),e.toaster.present("Report viewed successfully","")):(e.loader.close(),e.dailyAtten=[],e.toaster.present("No data found...",""))}))}else this.checkRequired()}},{key:"downloadDailyAtten",value:function(){var t,e=this,c=this.severdatePipe.transform(null===(t=this.basicForm.value)||void 0===t?void 0:t.date);if(""!=c){var n={date:c},o=new O.e;for(var i in n)o=o.set(i,n[i]);this.loader.open(),this.apiService.FilterDownloadFile("empDailyRestricted",o).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:e.loader.close();break;case O.d.Response:var c=new Blob([t.body],{type:t.body.type}),n=document.createElement("a");n.setAttribute("style","display:none;"),document.body.appendChild(n),n.download="Employee Daily Not-Allowed Report",n.href=URL.createObjectURL(c),n.target="_blank",n.click(),document.body.removeChild(n),e.loader.close()}}))}else this.checkRequired()}},{key:"getEmployees",value:function(){var t,e,c,n,o=this,i=this.basicForm.value;""!=(null===(t=i)||void 0===t?void 0:t.depart)&&""!=(null===(e=i)||void 0===e?void 0:e.position)&&(this.empPagination.filterDepartment=JSON.stringify([null===(c=i)||void 0===c?void 0:c.depart]),this.empPagination.filterPosition=JSON.stringify([null===(n=i)||void 0===n?void 0:n.position]),this.employeeService.getList(this.empPagination).subscribe((function(t){"success"==t.keyword&&(o.employees=t.employees,console.log(o.employees,"this.employees"))})))}},{key:"getIndividulAtten",value:function(){var t,e,c,n,o,i,a=this,d=this.basicForm.value,r=this.severdatePipe.transform(null===(t=d)||void 0===t?void 0:t.fromDate),l=this.severdatePipe.transform(null===(e=d)||void 0===e?void 0:e.toDate);if(""!=(null===(c=d)||void 0===c?void 0:c.depart)&&""!=(null===(n=d)||void 0===n?void 0:n.position)&&""!=(null===(o=d)||void 0===o?void 0:o.empId)&&""!=r&&""!=l){this.indiviAtten=[];var s={customerId:this.customerId,schoolId:this.schoolId,employeeId:null===(i=d)||void 0===i?void 0:i.empId,fromDate:r,toDate:l};this.loader.open(),this.modelService.getIndividualAtten(s).subscribe((function(t){var e,c;(null===(e=t)||void 0===e?void 0:e.datas.length)>0?(a.indiviAtten=null===(c=t)||void 0===c?void 0:c.datas,a.loader.close(),a.toaster.present("Report viewed successfully","")):(a.loader.close(),a.indiviAtten=[],a.toaster.present("No data found...",""))}))}else this.checkRequired()}},{key:"downloadIndAtten",value:function(){var t,e,c,n,o,i,a=this,d=this.basicForm.value,r=this.severdatePipe.transform(null===(t=d)||void 0===t?void 0:t.fromDate),l=this.severdatePipe.transform(null===(e=d)||void 0===e?void 0:e.toDate);if(""!=(null===(c=d)||void 0===c?void 0:c.depart)&&""!=(null===(n=d)||void 0===n?void 0:n.position)&&""!=(null===(o=d)||void 0===o?void 0:o.empId)&&""!=r&&""!=l){var s={employeeId:null===(i=d)||void 0===i?void 0:i.empId,fromDate:r,toDate:l},u=new O.e;for(var m in s)u=u.set(m,s[m]);this.loader.open(),this.apiService.FilterDownloadFile("empIndividualRestricted",u).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:a.loader.close();break;case O.d.Response:var e=new Blob([t.body],{type:t.body.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),document.body.appendChild(c),c.download="Employee Individual Not-Allowed Report",c.href=URL.createObjectURL(e),c.target="_blank",c.click(),document.body.removeChild(c),a.loader.close()}}))}else this.checkRequired()}}])}()).\u0275fac=function(t){return new(t||hi)(I.Xb(Wo),I.Xb(Y.a),I.Xb(Yn.a),I.Xb(B.a),I.Xb(wn.a),I.Xb(T.d),I.Xb(G.a),I.Xb(W.a),I.Xb(S.a),I.Xb(P.a))},hi.\u0275cmp=I.Rb({type:hi,selectors:[["app-create"]],features:[I.Fb([{provide:s.c,useClass:A.b},{provide:s.f,useValue:A.a},T.d])],decls:21,vars:3,consts:[[1,"create_btn"],[1,""],[1,"p-0"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","100"],[1,"card-title-text"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0","mb-4"],["aria-label","Select an option","name","report","formControlName","type",1,"ml-15",3,"change"],["value","Daily",1,"mr-40"],["value","Individual"],["class","daily-block",4,"ngIf"],["class","individual-block mt-12",4,"ngIf"],[1,"daily-block"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","5",1,"pt-12"],["fxFlex","100","fxFlex.gt-xs","15",1,""],["appearance","fill"],["matInput","","formControlName","date",3,"matDatepicker","focus","click"],["matSuffix","",3,"for"],["picker",""],["fxFlex","100","fxFlex.gt-xs","20",1,"mt-8","ml-12"],["mat-raised-button","","color","primary","class","btn-primary-bg",3,"click",4,"ngIf"],["mat-button","","color","primary",3,"click",4,"ngIf"],[1,"border-top"],["class","mt-12",4,"ngIf"],[4,"ngIf"],["mat-raised-button","","color","primary",1,"btn-primary-bg",3,"click"],["mat-button","","color","primary",3,"click"],[1,"material-icons"],[1,"mt-12"],[1,"ml-16"],[1,"employee-table","mt-12"],["rowspan","2",2,"width","4%","text-align","left"],["rowspan","2",2,"width","23%","text-align","left"],["colspan","2",2,"width","5%","text-align","center"],["rowspan","2",2,"width","23%","text-align","center"],[2,"width","10%","text-align","center"],[4,"ngFor","ngForOf"],[2,"text-align","center"],[2,"text-align","left"],[1,"text-center"],[1,"individual-block","mt-12"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","13",1,"mt-12","mr-16"],["formControlName","depart"],[3,"value","click",4,"ngFor","ngForOf"],["formControlName","position"],["fxFlex","100","fxFlex.gt-xs","16",1,"mt-12","mr-16"],["formControlName","empId"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-xs","13",1,"mr-16"],["matInput","","formControlName","fromDate",3,"matDatepicker","dateChange","focus","click"],["picker2",""],["fxFlex","100","fxFlex.gt-xs","13",1,""],["matInput","","formControlName","toDate",3,"min","matDatepicker","focus","click"],["picker3",""],["fxFlex","100","fxFlex.gt-xs","12",1,"mt-12","ml-4"],[2,"border-top","1px solid #ccc"],["class","employee-table mt-12",4,"ngIf"],[3,"value","click"],[3,"value"],[1,"material-icons","f30"],["rowspan","2",2,"width","10%","text-align","center"]],template:function(t,e){1&t&&(I.Yb(0,"div",0),I.dc(1,"div",1),I.dc(2,"mat-card",2),I.dc(3,"mat-card-title",1),I.dc(4,"div",3),I.dc(5,"div",4),I.dc(6,"div",5),I.cd(7,"Restricted Area - Employee"),I.cc(),I.cc(),I.cc(),I.Yb(8,"mat-divider"),I.cc(),I.dc(9,"mat-card-content"),I.dc(10,"form",6),I.dc(11,"div",7),I.dc(12,"div",4),I.dc(13,"div",8),I.dc(14,"mat-radio-group",9),I.lc("change",(function(t){return e.typeChange()})),I.dc(15,"mat-radio-button",10),I.cd(16,"Daily"),I.cc(),I.dc(17,"mat-radio-button",11),I.cd(18,"Individual"),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.ad(19,ci,18,10,"div",12),I.ad(20,fi,43,17,"div",13),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(10),I.yc("formGroup",e.basicForm),I.Gb(9),I.yc("ngIf","Daily"==(null==e.control.type?null:e.control.type.value)),I.Gb(1),I.yc("ngIf","Individual"==e.control.type.value))},directives:[r.a,r.f,U.c,U.a,H.a,r.c,a.D,a.u,a.k,b.b,a.t,a.i,b.a,i.o,J.b,p.b,a.c,u.b,u.d,J.f,u.a,d.a,i.n,J.e,K.a,s.p],pipes:[T.c,i.e],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.batch-name[_ngcontent-%COMP%]{font-size:24px;margin-left:-11px}.employee-table[_ngcontent-%COMP%]{border:1px solid #ccc}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 8px!important}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid hsla(0,0%,80%,.4588235294117647)!important;border-width:1px 1px 0!important;white-space:nowrap}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;font-weight:900!important;padding:0 8px!important}table[_ngcontent-%COMP%]{border-spacing:0}/[_ngcontent-%COMP%] /[_ngcontent-%COMP%] .sort[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:flex!important}.f30[_ngcontent-%COMP%]{font-size:30px}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.employee-table[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:10px!important}.mt-20[_ngcontent-%COMP%]{margin-top:20px}.daily-block.Individual[_ngcontent-%COMP%], .daily-block.Monthly[_ngcontent-%COMP%]{display:none}span.material-icons.sort-icon[_ngcontent-%COMP%]{position:relative;top:6px}mat-card-title[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:90%!important}.card-title-text[_ngcontent-%COMP%]{padding:5px 26px!important}ul[_ngcontent-%COMP%]{display:-webkit-box;list-style:none;padding-inline-start:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:30px}@font-face{font-family:Roboto,sans-serif!important;src:url(https://fonts.googleapis.com/css2?display=swap&family=Roboto%3Aital%2Cwght%400%2C100%3B0%2C400%3B0%2C500%3B1%2C400)}"]}),hi);function vi(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please select any one "),I.cc())}function gi(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the date "),I.cc())}function yi(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).dailySearch()})),I.cd(1,"Search"),I.cc()}}function xi(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).download()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function Ci(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",40),I.cd(2),I.cc(),I.dc(3,"td"),I.cd(4),I.cc(),I.dc(5,"td",41),I.cd(6),I.cc(),I.dc(7,"td",41),I.cd(8),I.cc(),I.dc(9,"td",41),I.cd(10),I.cc(),I.dc(11,"td",41),I.cd(12),I.cc(),I.dc(13,"td",40),I.cd(14),I.qc(15,"displayTime"),I.qc(16,"date"),I.cc(),I.dc(17,"td",40),I.cd(18),I.qc(19,"displayTime"),I.qc(20,"date"),I.cc(),I.dc(21,"td",40),I.cd(22),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.ed(" ",null==c?null:c.rollNo," "),I.Gb(2),I.dd(null==c?null:c.studentName),I.Gb(2),I.gd("",null==c?null:c.className," ",null!=c&&c.className?"-":""," ",null==c?null:c.sectionName,""),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(15,11,I.sc(16,13,null==c?null:c.fromTime,"hh:mm:ss"))),I.Gb(4),I.dd(I.rc(19,16,I.sc(20,18,null==c?null:c.toTime,"hh:mm:ss"))),I.Gb(4),I.dd(null==c?null:c.timeDifference)}}function wi(t,e){if(1&t&&(I.dc(0,"div",31),I.dc(1,"label"),I.dc(2,"strong"),I.cd(3,"Date :"),I.cc(),I.dc(4,"span",32),I.cd(5),I.qc(6,"date"),I.cc(),I.cc(),I.dc(7,"table",33),I.dc(8,"thead"),I.dc(9,"tr"),I.dc(10,"th",34),I.cd(11,"Roll No "),I.cc(),I.dc(12,"th",35),I.cd(13,"Student Name\t"),I.cc(),I.dc(14,"th",35),I.cd(15,"Class\t"),I.cc(),I.dc(16,"th",35),I.cd(17,"Location\t"),I.cc(),I.dc(18,"th",35),I.cd(19,"Layout Category\t"),I.cc(),I.dc(20,"th",35),I.cd(21,"Place\t"),I.cc(),I.dc(22,"th",36),I.cd(23,"Time "),I.cc(),I.dc(24,"th",37),I.cd(25,"Total Time"),I.cc(),I.cc(),I.dc(26,"tr"),I.dc(27,"th",38),I.cd(28," From "),I.cc(),I.dc(29,"th",38),I.cd(30," To "),I.cc(),I.cc(),I.cc(),I.dc(31,"tbody"),I.ad(32,Ci,23,21,"tr",39),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.dd(I.sc(6,2,null==c.control?null:null==c.control.dailyDate?null:c.control.dailyDate.value,"yyyy-MM-dd")),I.Gb(27),I.yc("ngForOf",c.dailys)}}function ki(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var _i=function(){return["not_allowed"]},Fi=function(){return["notallow_daily_stu_search"]},Oi=function(){return["notallow_daily_stu_download"]};function Pi(t,e){if(1&t){var c=I.ec();I.dc(0,"div",15),I.dc(1,"div",16),I.dc(2,"div",17),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Date"),I.cc(),I.cc(),I.cc(),I.dc(6,"div",18),I.dc(7,"mat-form-field",19),I.dc(8,"input",20),I.lc("focus",(function(t){return I.Sc(c),I.Oc(11).open()}))("click",(function(t){return I.Sc(c),I.Oc(11).open()})),I.cc(),I.Yb(9,"mat-datepicker-toggle",21),I.Yb(10,"mat-datepicker",null,22),I.ad(12,gi,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(13,"div",23),I.ad(14,yi,2,0,"button",24),I.ad(15,xi,3,0,"button",25),I.cc(),I.cc(),I.Yb(16,"div",26),I.ad(17,wi,33,5,"div",27),I.ad(18,ki,4,0,"ng-container",12),I.cc()}if(2&t){var n=I.Oc(11),o=I.pc();I.Gb(8),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(3),I.yc("ngIf",null==o.control?null:null==o.control.dailyDate?null:null==o.control.dailyDate.errors?null:o.control.dailyDate.errors.required),I.Gb(2),I.yc("ngIf",o.permission.hasPermission(I.Ec(7,_i),I.Ec(8,Fi))),I.Gb(1),I.yc("ngIf",o.permission.hasPermission(I.Ec(9,_i),I.Ec(10,Oi))),I.Gb(2),I.yc("ngIf",0!=(null==o.dailys?null:o.dailys.length)),I.Gb(1),I.yc("ngIf",0===(null==o.dailys?null:o.dailys.length))}}function Ii(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getClass(n.batchId),o.getbatchName(n.batchName)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.batchId),I.Gb(1),I.ed(" ",n.batchName," ")}}function Di(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the batch name "),I.cc())}function Gi(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getStudentClass(n.className),o.getStudent()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.classId),I.Gb(1),I.ed(" ",n.className," ")}}function Si(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the class name "),I.cc())}function Mi(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getSections(n.sectionName),o.getStudent()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.sectionId),I.Gb(1),I.ed(" ",n.sectionName," ")}}function Ni(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide section name "),I.cc())}function Ai(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getStudentNames(n.studentName)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.studentId),I.Gb(1),I.ed(" ",n.studentName," ")}}function Ti(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the student name "),I.cc())}function Li(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the from date "),I.cc())}function Ei(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the to date "),I.cc())}function Vi(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).individualSearch()})),I.cd(1,"Search"),I.cc()}}function Ri(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).download()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function ji(t,e){if(1&t&&(I.dc(0,"table",64),I.dc(1,"tr"),I.dc(2,"td",65),I.cd(3,"Batch "),I.cc(),I.dc(4,"td",66),I.cd(5),I.cc(),I.dc(6,"td",65),I.cd(7,"Class "),I.cc(),I.dc(8,"td",67),I.cd(9),I.cc(),I.dc(10,"td",68),I.cd(11,"Section"),I.cc(),I.dc(12,"td",67),I.cd(13),I.cc(),I.dc(14,"td",65),I.cd(15," Name "),I.cc(),I.dc(16,"td",69),I.cd(17),I.cc(),I.Yb(18,"td",70),I.Yb(19,"td",69),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.dd(c.batchName),I.Gb(4),I.dd(c.className),I.Gb(4),I.dd(c.sectionName),I.Gb(4),I.dd(c.studentName)}}function qi(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",40),I.cd(2),I.cc(),I.dc(3,"td",41),I.cd(4),I.cc(),I.dc(5,"td",41),I.cd(6),I.cc(),I.dc(7,"td",41),I.cd(8),I.cc(),I.dc(9,"td",40),I.cd(10),I.qc(11,"displayTime"),I.qc(12,"date"),I.cc(),I.dc(13,"td",40),I.cd(14),I.qc(15,"displayTime"),I.qc(16,"date"),I.cc(),I.dc(17,"td",40),I.cd(18),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.dd(null==c?null:c.thisDate),I.Gb(2),I.ed("",null==c?null:c.layoutType," "),I.Gb(2),I.ed("",null==c?null:c.layoutCategoryName," "),I.Gb(2),I.ed("",null==c?null:c.layoutPositionName," "),I.Gb(2),I.ed("",I.rc(11,7,I.sc(12,9,null==c?null:c.fromTime,"hh:mm:ss"))," "),I.Gb(4),I.ed("",I.rc(15,12,I.sc(16,14,null==c?null:c.toTime,"hh:mm:ss"))," "),I.Gb(4),I.ed("",null==c?null:c.timeDifference," ")}}function Bi(t,e){if(1&t&&(I.dc(0,"table",33),I.dc(1,"thead"),I.dc(2,"tr"),I.dc(3,"th",71),I.cd(4,"Date\t"),I.cc(),I.dc(5,"th",35),I.cd(6,"Location\t"),I.cc(),I.dc(7,"th",35),I.cd(8,"Layout Category\t"),I.cc(),I.dc(9,"th",35),I.cd(10,"Place\t"),I.cc(),I.dc(11,"th",36),I.cd(12,"Time "),I.cc(),I.dc(13,"th",37),I.cd(14,"Total Time"),I.cc(),I.cc(),I.dc(15,"tr"),I.dc(16,"th",38),I.cd(17," From "),I.cc(),I.dc(18,"th",38),I.cd(19," To "),I.cc(),I.cc(),I.cc(),I.dc(20,"tbody"),I.ad(21,qi,19,17,"tr",39),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(21),I.yc("ngForOf",c.individuals)}}function Yi(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var Xi=function(){return["notallow_ind_stu_search"]},zi=function(){return["notallow_ind_stu_download"]};function $i(t,e){if(1&t){var c=I.ec();I.dc(0,"div",43),I.dc(1,"div",44),I.dc(2,"div",45),I.dc(3,"mat-form-field",19),I.dc(4,"mat-label"),I.cd(5,"Batch"),I.cc(),I.dc(6,"mat-select",46),I.ad(7,Ii,2,2,"mat-option",47),I.cc(),I.ad(8,Di,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(9,"div",45),I.dc(10,"mat-form-field",19),I.dc(11,"mat-label"),I.cd(12,"Class"),I.cc(),I.dc(13,"mat-select",48),I.ad(14,Gi,2,2,"mat-option",47),I.cc(),I.ad(15,Si,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(16,"div",49),I.dc(17,"mat-form-field",19),I.dc(18,"mat-label"),I.cd(19,"Section"),I.cc(),I.dc(20,"mat-select",50),I.ad(21,Mi,2,2,"mat-option",47),I.cc(),I.ad(22,Ni,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(23,"div",51),I.dc(24,"mat-form-field",19),I.dc(25,"mat-label"),I.cd(26,"Student Name"),I.cc(),I.dc(27,"mat-select",52),I.ad(28,Ai,2,2,"mat-option",47),I.cc(),I.ad(29,Ti,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(30,"div",53),I.dc(31,"mat-form-field",19),I.dc(32,"input",54),I.lc("focus",(function(t){return I.Sc(c),I.Oc(35).open()}))("click",(function(t){return I.Sc(c),I.Oc(35).open()})),I.cc(),I.Yb(33,"mat-datepicker-toggle",21),I.Yb(34,"mat-datepicker",null,55),I.ad(36,Li,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(37,"div",56),I.dc(38,"mat-form-field",19),I.dc(39,"input",57),I.lc("focus",(function(t){return I.Sc(c),I.Oc(42).open()}))("click",(function(t){return I.Sc(c),I.Oc(42).open()})),I.cc(),I.Yb(40,"mat-datepicker-toggle",21),I.Yb(41,"mat-datepicker",null,58),I.ad(43,Ei,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(44,"div",59),I.ad(45,Vi,2,0,"button",24),I.ad(46,Ri,3,0,"button",25),I.cc(),I.cc(),I.Yb(47,"div",60),I.ad(48,ji,20,4,"table",61),I.ad(49,Bi,22,1,"table",62),I.ad(50,Yi,4,0,"ng-container",12),I.cc()}if(2&t){var n=I.Oc(35),o=I.Oc(42),i=I.pc();I.Gb(7),I.yc("ngForOf",i.batches),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.batch?null:null==i.control.batch.errors?null:i.control.batch.errors.required),I.Gb(6),I.yc("ngForOf",i.classes),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.indivualclass?null:null==i.control.indivualclass.errors?null:i.control.indivualclass.errors.required),I.Gb(6),I.yc("ngForOf",i.sections),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.indivualsection?null:null==i.control.indivualsection.errors?null:i.control.indivualsection.errors.required),I.Gb(6),I.yc("ngForOf",i.students),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.studename?null:null==i.control.studename.errors?null:i.control.studename.errors.required),I.Gb(3),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(3),I.yc("ngIf",null==i.control?null:null==i.control.fromDate?null:null==i.control.fromDate.errors?null:i.control.fromDate.errors.required),I.Gb(3),I.yc("matDatepicker",o),I.Gb(1),I.yc("for",o),I.Gb(3),I.yc("ngIf",null==i.control?null:null==i.control.toDate?null:null==i.control.toDate.errors?null:i.control.toDate.errors.required),I.Gb(2),I.yc("ngIf",i.permission.hasPermission(I.Ec(19,_i),I.Ec(20,Xi))),I.Gb(1),I.yc("ngIf",i.permission.hasPermission(I.Ec(21,_i),I.Ec(22,zi))),I.Gb(2),I.yc("ngIf",0!=(null==i.individuals?null:i.individuals.length)),I.Gb(1),I.yc("ngIf",0!=(null==i.individuals?null:i.individuals.length)),I.Gb(1),I.yc("ngIf",0===(null==i.individuals?null:i.individuals.length))}}var Wi,Ui=((Wi=function(){return _createClass((function t(e,c,n,o,i,a,d,r,l,s,u){_classCallCheck(this,t),this.modelServie=e,this.loader=c,this.toaster=n,this.router=o,this.batchService=i,this.severdatePipe=a,this.StudentService=d,this.sectionService=r,this.apiService=l,this.classService=s,this.permission=u,this.console=console,this.dailys=[],this.individuals=[]}),[{key:"ngOnInit",value:function(){this.nomoveForm=new a.j({Type:new a.g("",[a.B.required])}),this.typebasedValidate(this.nomoveForm.value.Type),this.getAcademic(),this.getSection(),this.getStudent()}},{key:"control",get:function(){return this.nomoveForm.controls}},{key:"typebasedValidate",value:function(t){"Daily"==t?(this.nomoveForm.removeControl("studename"),this.nomoveForm.removeControl("indivualclass"),this.nomoveForm.removeControl("indivualsection"),this.nomoveForm.removeControl("batch"),this.nomoveForm.removeControl("fromDate"),this.nomoveForm.removeControl("toDate"),this.nomoveForm.removeControl("dailyDate"),this.nomoveForm.addControl("dailyDate",new a.g("",[a.B.required])),this.dailys=[],this.count="",this.individuals=[],this.count="",this.batchName="",this.studentName="",this.sectionName="",this.className=""):"Individual"==t&&(this.nomoveForm.removeControl("studename"),this.nomoveForm.removeControl("indivualclass"),this.nomoveForm.removeControl("indivualsection"),this.nomoveForm.removeControl("batch"),this.nomoveForm.removeControl("fromDate"),this.nomoveForm.removeControl("toDate"),this.nomoveForm.removeControl("dailyDate"),this.nomoveForm.addControl("studename",new a.g("",[a.B.required])),this.nomoveForm.addControl("indivualclass",new a.g("",[a.B.required])),this.nomoveForm.addControl("indivualsection",new a.g("",[a.B.required])),this.nomoveForm.addControl("batch",new a.g("",[a.B.required])),this.nomoveForm.addControl("fromDate",new a.g("",[a.B.required])),this.nomoveForm.addControl("toDate",new a.g("",[a.B.required])),this.dailys=[],this.count="",this.dailydate="")}},{key:"getAcademic",value:function(){var t=this;this.modelServie.currentAcademic().subscribe((function(e){"success"==e.keyword&&(t.academicId=e.data[0].academic_year_id,t.getBatch(t.academicId))}))}},{key:"getBatch",value:function(t){var e=this;this.batchService.getListByAcademic(t).subscribe((function(t){"success"==t.keyword&&(e.batches=t.batches)}))}},{key:"getClass",value:function(t){var e=this;this.classService.getClassByBatch(t).subscribe((function(t){"success"==t.keyword&&(e.classes=t.classes)}))}},{key:"getSection",value:function(){var t=this;this.sectionService.getList({sortByType:"ASC",sortByKey:"section_id"}).subscribe((function(e){"success"==e.keyword&&(t.sections=e.sections.filter((function(t){return"1"==t.status})))}))}},{key:"getStudent",value:function(){var t=this,e=this.nomoveForm.value;""!=e.indivualclass&&""!=e.indivualsection&&""!=this.academicId&&""!=e.batch&&this.StudentService.getStudentName(this.academicId,e.batch,e.indivualclass,e.indivualsection).subscribe((function(e){t.students=e.studentRegistrations}))}},{key:"getbatchName",value:function(t){this.batchName=t}},{key:"getStudentNames",value:function(t){this.studentName=t}},{key:"getSections",value:function(t){this.sectionName=t}},{key:"getStudentClass",value:function(t){this.className=t}},{key:"dailySearch",value:function(){var t,e=this;if(this.nomoveForm.valid){var c=Object(N.b)(),n=this.severdatePipe.transform(null===(t=this.nomoveForm.value)||void 0===t?void 0:t.dailyDate),o=Object(M.get)(c,"customer_id"),i=Object(M.get)(c,"branch_id");this.dailyobj={customerId:String(o),schoolId:String(i),thisDate:String(n)},this.loader.open(),this.modelServie.studentdailyNotallow(this.dailyobj).subscribe((function(t){e.data=t,t.datas.length>0?(e.loader.close(),e.dailys=t.datas,e.count=t,e.toaster.present("Report viewed successfully","")):(e.loader.close(),e.dailydate="",e.toaster.present("No data found...",""))}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"individualSearch",value:function(){var t,e,c,n=this;if(this.nomoveForm.valid){var o=Object(N.b)(),i=this.nomoveForm.value,a=this.severdatePipe.transform(null===(t=i)||void 0===t?void 0:t.fromDate),d=this.severdatePipe.transform(null===(e=i)||void 0===e?void 0:e.toDate),r=Object(M.get)(o,"customer_id"),l=Object(M.get)(o,"branch_id");this.individualobj={customerId:String(r),schoolId:String(l),studentId:String(null===(c=i)||void 0===c?void 0:c.studename),fromDate:String(a),toDate:String(d)},this.loader.open(),this.modelServie.studentIndividualNotallow(this.individualobj).subscribe((function(t){n.data=t,t.datas.length>0?(n.individuals=t.datas,n.loader.close(),n.toaster.present("Report viewed successfully","")):(n.loader.close(),n.individuals=[],n.count="",n.toaster.present("No data found...",""))}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"download",value:function(){var t,e,c,n=this;if(this.nomoveForm.valid){var o,i=new O.e;if("Daily"==(null===(t=a=this.nomoveForm.value)||void 0===t?void 0:t.Type)){var a,d=Object(N.b)(),r=this.severdatePipe.transform(null===(e=a=this.nomoveForm.value)||void 0===e?void 0:e.dailyDate),l=Object(M.get)(d,"customer_id"),s=Object(M.get)(d,"branch_id");for(var u in this.obj={customerId:String(l),schoolId:String(s),date:String(r)},o="stuDailyRestricted",this.obj)i=i.set(u,this.obj[u])}else if("Individual"==(null===(c=a)||void 0===c?void 0:c.Type))for(var m in o="stuIndividualRestricted",this.individualobj)i=i.set(m,this.individualobj[m]);this.loader.open(),this.apiService.FilterDownloadFile(o,i).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:n.loader.close();break;case O.d.Response:var e=new Blob([t.body],{type:t.body.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),document.body.appendChild(c),c.download="Daily"==n.nomoveForm.value.Type?"Student Daily Not-Allowed Report":"Student Individual Not-Allowed Report",c.href=URL.createObjectURL(e),c.target="_blank",c.click(),document.body.removeChild(c),n.loader.close()}}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}}])}()).\u0275fac=function(t){return new(t||Wi)(I.Xb(Wo),I.Xb(G.a),I.Xb(S.a),I.Xb(o.g),I.Xb(ve.a),I.Xb(T.d),I.Xb(fe.a),I.Xb(be.a),I.Xb(P.a),I.Xb(he.a),I.Xb(W.a))},Wi.\u0275cmp=I.Rb({type:Wi,selectors:[["app-create"]],features:[I.Fb([{provide:s.c,useClass:A.b},{provide:s.f,useValue:A.a},T.d])],decls:22,vars:4,consts:[[1,"create_btn"],[1,""],[1,"p-0"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","100"],[1,"card-title-text"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0","mb-4"],["aria-label","Select an option","name","report","formControlName","Type",1,"ml-15"],["value","Daily",1,"mr-40",3,"click"],["value","Individual",3,"click"],[4,"ngIf"],["class","daily-block ",4,"ngIf"],["class","individual-block mt-12",4,"ngIf"],[1,"daily-block"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","5",1,"pt-12"],["fxFlex","100","fxFlex.gt-xs","15",1,""],["appearance","fill"],["matInput","","formControlName","dailyDate",3,"matDatepicker","focus","click"],["matSuffix","",3,"for"],["pickerdate",""],["fxFlex","100","fxFlex.gt-xs","20",1,"mt-8","ml-12"],["mat-raised-button","","color","primary","class","btn-primary-bg","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","type","button",3,"click",4,"ngIf"],[1,"border-top"],["class","mt-12",4,"ngIf"],["mat-raised-button","","color","primary","type","button",1,"btn-primary-bg",3,"click"],["mat-button","","color","primary","type","button",3,"click"],[1,"material-icons","f30"],[1,"mt-12"],[1,"ml-16"],[1,"employee-table","mt-12"],["rowspan","2",2,"width","4%","text-align","left"],["rowspan","2",2,"width","23%","text-align","left"],["colspan","2",2,"width","5%","text-align","center"],["rowspan","2",2,"width","23%","text-align","center"],[2,"width","10%","text-align","center"],[4,"ngFor","ngForOf"],[2,"text-align","center"],[2,"text-align","left"],[1,"text-center"],[1,"individual-block","mt-12"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","13",1,"mt-12","mr-16"],["formControlName","batch"],[3,"value","click",4,"ngFor","ngForOf"],["formControlName","indivualclass"],["fxFlex","100","fxFlex.gt-xs","10",1,"mt-12","mr-16"],["formControlName","indivualsection"],["fxFlex","100","fxFlex.gt-xs","16",1,"mt-12","mr-16"],["formControlName","studename"],["fxFlex","100","fxFlex.gt-xs","13",1,"mr-16"],["matInput","","formControlName","fromDate",3,"matDatepicker","focus","click"],["picker2",""],["fxFlex","100","fxFlex.gt-xs","13",1,""],["matInput","","formControlName","toDate",3,"matDatepicker","focus","click"],["picker3",""],["fxFlex","100","fxFlex.gt-xs","12",1,"ml-4"],[2,"border-top","1px solid #ccc"],["style","margin-bottom:12px;margin-top:10px;width:80%;",4,"ngIf"],["class","employee-table mt-12",4,"ngIf"],[3,"value","click"],[2,"margin-bottom","12px","margin-top","10px","width","80%"],[2,"font-weight","bold","width","5%"],[2,"width","13%"],[2,"width","5%"],[2,"font-weight","bold","width","6%"],[2,"width","20%"],[2,"font-weight","bold","width","9%"],["rowspan","2",2,"width","13%","text-align","center"]],template:function(t,e){1&t&&(I.Yb(0,"div",0),I.dc(1,"div",1),I.dc(2,"mat-card",2),I.dc(3,"mat-card-title",1),I.dc(4,"div",3),I.dc(5,"div",4),I.dc(6,"div",5),I.cd(7,"Restricted Area - Student"),I.cc(),I.cc(),I.cc(),I.Yb(8,"mat-divider"),I.cc(),I.dc(9,"mat-card-content"),I.dc(10,"form",6),I.dc(11,"div",7),I.dc(12,"div",4),I.dc(13,"div",8),I.dc(14,"mat-radio-group",9),I.dc(15,"mat-radio-button",10),I.lc("click",(function(t){return e.typebasedValidate("Daily")})),I.cd(16,"Daily "),I.cc(),I.dc(17,"mat-radio-button",11),I.lc("click",(function(t){return e.typebasedValidate("Individual")})),I.cd(18,"Individual"),I.cc(),I.ad(19,vi,2,0,"mat-error",12),I.cc(),I.cc(),I.cc(),I.cc(),I.ad(20,Pi,19,11,"div",13),I.ad(21,$i,51,23,"div",14),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(10),I.yc("formGroup",e.nomoveForm),I.Gb(9),I.yc("ngIf",(null==e.nomoveForm.controls.Type.errors?null:e.nomoveForm.controls.Type.errors.required)&&e.nomoveForm.controls.Type.touched),I.Gb(1),I.yc("ngIf","Daily"===e.nomoveForm.controls.Type.value),I.Gb(1),I.yc("ngIf","Individual"===e.nomoveForm.controls.Type.value))},directives:[r.a,r.f,U.c,U.a,H.a,r.c,a.D,a.u,a.k,b.b,a.t,a.i,b.a,i.o,J.a,J.b,p.b,a.c,u.b,u.d,J.f,u.a,d.a,i.n,J.e,K.a,s.p],pipes:[i.e,T.c],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.batch-name[_ngcontent-%COMP%]{font-size:24px;margin-left:-11px}.employee-table[_ngcontent-%COMP%]{border:1px solid #ccc}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 8px!important}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid hsla(0,0%,80%,.4588235294117647)!important;border-width:1px 1px 0!important;white-space:nowrap}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;font-weight:900!important;padding:0 8px!important}table[_ngcontent-%COMP%]{border-spacing:0}/[_ngcontent-%COMP%] /[_ngcontent-%COMP%] .sort[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:flex!important}.f30[_ngcontent-%COMP%]{font-size:30px}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.employee-table[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:10px!important}.mt-20[_ngcontent-%COMP%]{margin-top:20px}.daily-block.Individual[_ngcontent-%COMP%], .daily-block.Monthly[_ngcontent-%COMP%]{display:none}span.material-icons.sort-icon[_ngcontent-%COMP%]{position:relative;top:6px}mat-card-title[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:90%!important}.card-title-text[_ngcontent-%COMP%]{padding:5px 26px!important}@font-face{font-family:Roboto,sans-serif!important;src:url(https://fonts.googleapis.com/css2?display=swap&family=Roboto%3Aital%2Cwght%400%2C100%3B0%2C400%3B0%2C500%3B1%2C400)}"]}),Wi),Hi=c("oH3p");function Ji(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please select any one "),I.cc())}function Ki(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the date "),I.cc())}function Zi(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).dailySearch()})),I.cd(1,"Search"),I.cc()}}function Qi(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).download()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function ta(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",40),I.cd(2),I.cc(),I.dc(3,"td"),I.cd(4),I.cc(),I.dc(5,"td",40),I.cd(6),I.cc(),I.dc(7,"td",41),I.cd(8),I.cc(),I.dc(9,"td",41),I.cd(10),I.cc(),I.dc(11,"td",41),I.cd(12),I.cc(),I.dc(13,"td",40),I.cd(14),I.qc(15,"displayTime"),I.qc(16,"date"),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.ed(" ",null==c?null:c.rollNo," "),I.Gb(2),I.ed("",null==c?null:c.studentName," "),I.Gb(2),I.gd("",null==c?null:c.className," ",null!=c&&c.className?"-":""," ",null==c?null:c.sectionName,""),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(15,9,I.sc(16,11,null==c?null:c.this_time,"HH:mm:ss")))}}function ea(t,e){if(1&t&&(I.dc(0,"div",31),I.dc(1,"label"),I.dc(2,"strong"),I.cd(3,"Date :"),I.cc(),I.dc(4,"span",32),I.cd(5),I.qc(6,"date"),I.cc(),I.cc(),I.dc(7,"div",16),I.dc(8,"div",33),I.dc(9,"table",34),I.dc(10,"thead"),I.dc(11,"tr"),I.dc(12,"th",35),I.cd(13,"Roll No "),I.cc(),I.dc(14,"th",36),I.cd(15,"Student Name "),I.cc(),I.dc(16,"th",37),I.cd(17,"Class "),I.cc(),I.dc(18,"th",36),I.cd(19,"Location "),I.cc(),I.dc(20,"th",36),I.cd(21,"Layout Category "),I.cc(),I.dc(22,"th",36),I.cd(23,"Place"),I.cc(),I.dc(24,"th",38),I.cd(25,"Time "),I.cc(),I.cc(),I.cc(),I.dc(26,"tbody"),I.ad(27,ta,17,14,"tr",39),I.cc(),I.cc(),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.dd(I.sc(6,2,null==c.control?null:null==c.control.dailyDate?null:c.control.dailyDate.value,"yyyy-MM-dd")),I.Gb(22),I.yc("ngForOf",c.dailys)}}function ca(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var na=function(){return["sos"]},oa=function(){return["sos_daily_stu_search"]},ia=function(){return["sos_daily_stu_download"]};function aa(t,e){if(1&t){var c=I.ec();I.dc(0,"div",15),I.dc(1,"div",16),I.dc(2,"div",17),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Date"),I.cc(),I.cc(),I.cc(),I.dc(6,"div",18),I.dc(7,"mat-form-field",19),I.dc(8,"input",20),I.lc("focus",(function(t){return I.Sc(c),I.Oc(11).open()}))("click",(function(t){return I.Sc(c),I.Oc(11).open()})),I.cc(),I.Yb(9,"mat-datepicker-toggle",21),I.Yb(10,"mat-datepicker",null,22),I.ad(12,Ki,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(13,"div",23),I.ad(14,Zi,2,0,"button",24),I.ad(15,Qi,3,0,"button",25),I.cc(),I.cc(),I.Yb(16,"div",26),I.ad(17,ea,28,5,"div",27),I.ad(18,ca,4,0,"ng-container",12),I.cc()}if(2&t){var n=I.Oc(11),o=I.pc();I.Gb(8),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(3),I.yc("ngIf",null==o.control?null:null==o.control.dailyDate?null:null==o.control.dailyDate.errors?null:o.control.dailyDate.errors.required),I.Gb(2),I.yc("ngIf",o.permission.hasPermission(I.Ec(7,na),I.Ec(8,oa))),I.Gb(1),I.yc("ngIf",o.permission.hasPermission(I.Ec(9,na),I.Ec(10,ia))),I.Gb(2),I.yc("ngIf",0!=(null==o.dailys?null:o.dailys.length)),I.Gb(1),I.yc("ngIf",0===(null==o.dailys?null:o.dailys.length))}}function da(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getClass(n.batchId),o.getbatchName(n.batchName)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.batchId),I.Gb(1),I.ed(" ",n.batchName," ")}}function ra(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the batch name "),I.cc())}function la(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getStudentClass(n.className),o.getStudent()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.classId),I.Gb(1),I.ed(" ",n.className," ")}}function sa(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the class name "),I.cc())}function ua(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit,o=I.pc(2);return o.getSections(n.sectionName),o.getStudent()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.sectionId),I.Gb(1),I.ed(" ",n.sectionName," ")}}function ma(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide section name "),I.cc())}function pa(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",63),I.lc("click",(function(t){I.Sc(c);var n=e.$implicit;return I.pc(2).getStudentNames(n.studentName)})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.studentId),I.Gb(1),I.ed(" ",n.studentName," ")}}function fa(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the student name "),I.cc())}function ha(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the from date "),I.cc())}function ba(t,e){1&t&&(I.dc(0,"mat-error"),I.cd(1," Please provide the to date "),I.cc())}function va(t,e){if(1&t){var c=I.ec();I.dc(0,"button",64),I.lc("click",(function(t){return I.Sc(c),I.pc(2).individualSearch()})),I.cd(1,"Search"),I.cc()}}function ga(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).download()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function ya(t,e){if(1&t&&(I.dc(0,"ul"),I.dc(1,"li"),I.dc(2,"span"),I.dc(3,"strong"),I.cd(4,"Batch"),I.cc(),I.cd(5),I.cc(),I.cc(),I.dc(6,"li"),I.dc(7,"span"),I.dc(8,"strong"),I.cd(9,"Class"),I.cc(),I.cd(10),I.cc(),I.cc(),I.dc(11,"li"),I.dc(12,"span"),I.dc(13,"strong"),I.cd(14,"Section"),I.cc(),I.cd(15),I.cc(),I.cc(),I.dc(16,"li"),I.dc(17,"strong"),I.cd(18,"Name"),I.cc(),I.cd(19),I.cc(),I.dc(20,"li"),I.dc(21,"strong"),I.cd(22,"Date"),I.cc(),I.cd(23),I.qc(24,"date"),I.qc(25,"date"),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.ed("\xa0\xa0\xa0",c.batchName,""),I.Gb(5),I.ed("\xa0\xa0\xa0",c.className,""),I.Gb(5),I.ed("\xa0\xa0\xa0",c.sectionName,""),I.Gb(4),I.ed("\xa0\xa0\xa0",c.studentName," "),I.Gb(4),I.fd("\xa0\xa0\xa0",I.sc(24,6,null==c.control?null:null==c.control.fromDate?null:c.control.fromDate.value,"yyyy-MM-dd")," to ",I.sc(25,9,null==c.control?null:null==c.control.toDate?null:c.control.toDate.value,"yyyy-MM-dd")," ")}}function xa(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",40),I.cd(2),I.cc(),I.dc(3,"td",41),I.cd(4),I.cc(),I.dc(5,"td",41),I.cd(6),I.cc(),I.dc(7,"td",41),I.cd(8),I.cc(),I.dc(9,"td",40),I.cd(10),I.qc(11,"displayTime"),I.qc(12,"date"),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.dd(null==c?null:c.thisDate),I.Gb(2),I.ed("",null==c?null:c.layoutType," "),I.Gb(2),I.ed("",null==c?null:c.layoutCategoryName," "),I.Gb(2),I.ed("",null==c?null:c.layoutPositionName," "),I.Gb(2),I.dd(I.rc(11,5,I.sc(12,7,null==c?null:c.this_time,"HH:mm:ss")))}}function Ca(t,e){if(1&t&&(I.dc(0,"div",16),I.dc(1,"div",65),I.dc(2,"table",66),I.dc(3,"thead"),I.dc(4,"tr"),I.dc(5,"th",67),I.cd(6,"Date "),I.cc(),I.dc(7,"th",36),I.cd(8,"Location "),I.cc(),I.dc(9,"th",36),I.cd(10,"Layout Category "),I.cc(),I.dc(11,"th",36),I.cd(12,"Place "),I.cc(),I.dc(13,"th",38),I.cd(14,"Time "),I.cc(),I.cc(),I.cc(),I.dc(15,"tbody"),I.ad(16,xa,13,10,"tr",39),I.cc(),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(16),I.yc("ngForOf",c.individuals)}}function wa(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var ka=function(){return["sos_ind_stu_search"]},_a=function(){return["sos_ind_stu_download"]};function Fa(t,e){if(1&t){var c=I.ec();I.dc(0,"div",43),I.dc(1,"div",44),I.dc(2,"div",45),I.dc(3,"mat-form-field",19),I.dc(4,"mat-label"),I.cd(5,"Batch"),I.cc(),I.dc(6,"mat-select",46),I.ad(7,da,2,2,"mat-option",47),I.cc(),I.ad(8,ra,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(9,"div",45),I.dc(10,"mat-form-field",19),I.dc(11,"mat-label"),I.cd(12,"Class"),I.cc(),I.dc(13,"mat-select",48),I.ad(14,la,2,2,"mat-option",47),I.cc(),I.ad(15,sa,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(16,"div",49),I.dc(17,"mat-form-field",19),I.dc(18,"mat-label"),I.cd(19,"Section"),I.cc(),I.dc(20,"mat-select",50),I.ad(21,ua,2,2,"mat-option",47),I.cc(),I.ad(22,ma,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(23,"div",51),I.dc(24,"mat-form-field",19),I.dc(25,"mat-label"),I.cd(26,"Student Name"),I.cc(),I.dc(27,"mat-select",52),I.ad(28,pa,2,2,"mat-option",47),I.cc(),I.ad(29,fa,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(30,"div",53),I.dc(31,"mat-form-field",19),I.dc(32,"input",54),I.lc("focus",(function(t){return I.Sc(c),I.Oc(35).open()}))("click",(function(t){return I.Sc(c),I.Oc(35).open()})),I.cc(),I.Yb(33,"mat-datepicker-toggle",21),I.Yb(34,"mat-datepicker",null,55),I.ad(36,ha,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(37,"div",56),I.dc(38,"mat-form-field",19),I.dc(39,"input",57),I.lc("focus",(function(t){return I.Sc(c),I.Oc(42).open()}))("click",(function(t){return I.Sc(c),I.Oc(42).open()})),I.cc(),I.Yb(40,"mat-datepicker-toggle",21),I.Yb(41,"mat-datepicker",null,58),I.ad(43,ba,2,0,"mat-error",12),I.cc(),I.cc(),I.dc(44,"div",59),I.ad(45,va,2,0,"button",60),I.ad(46,ga,3,0,"button",25),I.cc(),I.cc(),I.Yb(47,"div",61),I.ad(48,ya,26,12,"ul",12),I.ad(49,Ca,17,1,"div",62),I.ad(50,wa,4,0,"ng-container",12),I.cc()}if(2&t){var n=I.Oc(35),o=I.Oc(42),i=I.pc();I.Gb(7),I.yc("ngForOf",i.batches),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.batch?null:null==i.control.batch.errors?null:i.control.batch.errors.required),I.Gb(6),I.yc("ngForOf",i.classes),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.indivualclass?null:null==i.control.indivualclass.errors?null:i.control.indivualclass.errors.required),I.Gb(6),I.yc("ngForOf",i.sections),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.indivualsection?null:null==i.control.indivualsection.errors?null:i.control.indivualsection.errors.required),I.Gb(6),I.yc("ngForOf",i.students),I.Gb(1),I.yc("ngIf",null==i.control?null:null==i.control.studename?null:null==i.control.studename.errors?null:i.control.studename.errors.required),I.Gb(3),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(3),I.yc("ngIf",null==i.control?null:null==i.control.fromDate?null:null==i.control.fromDate.errors?null:i.control.fromDate.errors.required),I.Gb(3),I.yc("matDatepicker",o),I.Gb(1),I.yc("for",o),I.Gb(3),I.yc("ngIf",null==i.control?null:null==i.control.toDate?null:null==i.control.toDate.errors?null:i.control.toDate.errors.required),I.Gb(2),I.yc("ngIf",i.permission.hasPermission(I.Ec(19,na),I.Ec(20,ka))),I.Gb(1),I.yc("ngIf",i.permission.hasPermission(I.Ec(21,na),I.Ec(22,_a))),I.Gb(2),I.yc("ngIf",0!=(null==i.individuals?null:i.individuals.length)),I.Gb(1),I.yc("ngIf",0!=(null==i.individuals?null:i.individuals.length)),I.Gb(1),I.yc("ngIf",0===(null==i.individuals?null:i.individuals.length))}}var Oa,Pa=((Oa=function(){return _createClass((function t(e,c,n,o,i,a,d,r,l,s,u){_classCallCheck(this,t),this.modelServie=e,this.loader=c,this.toaster=n,this.router=o,this.batchService=i,this.severdatePipe=a,this.StudentService=d,this.sectionService=r,this.apiService=l,this.classService=s,this.permission=u,this.console=console,this.dailys=[],this.individuals=[]}),[{key:"ngOnInit",value:function(){this.nomoveForm=new a.j({Type:new a.g("",[a.B.required])}),this.typebasedValidate(this.nomoveForm.value.Type),this.getAcademic(),this.getSection(),this.getStudent()}},{key:"control",get:function(){return this.nomoveForm.controls}},{key:"typebasedValidate",value:function(t){"Daily"==t?(this.nomoveForm.removeControl("studename"),this.nomoveForm.removeControl("indivualclass"),this.nomoveForm.removeControl("indivualsection"),this.nomoveForm.removeControl("batch"),this.nomoveForm.removeControl("fromDate"),this.nomoveForm.removeControl("toDate"),this.nomoveForm.removeControl("dailyDate"),this.nomoveForm.addControl("dailyDate",new a.g("",[a.B.required])),this.dailys=[],this.count="",this.individuals=[],this.count="",this.batchName="",this.studentName="",this.sectionName="",this.className=""):"Individual"==t&&(this.nomoveForm.removeControl("studename"),this.nomoveForm.removeControl("indivualclass"),this.nomoveForm.removeControl("indivualsection"),this.nomoveForm.removeControl("batch"),this.nomoveForm.removeControl("fromDate"),this.nomoveForm.removeControl("toDate"),this.nomoveForm.removeControl("dailyDate"),this.nomoveForm.addControl("studename",new a.g("",[a.B.required])),this.nomoveForm.addControl("indivualclass",new a.g("",[a.B.required])),this.nomoveForm.addControl("indivualsection",new a.g("",[a.B.required])),this.nomoveForm.addControl("batch",new a.g("",[a.B.required])),this.nomoveForm.addControl("fromDate",new a.g("",[a.B.required])),this.nomoveForm.addControl("toDate",new a.g("",[a.B.required])),this.dailys=[],this.count="",this.dailydate="")}},{key:"getAcademic",value:function(){var t=this;this.modelServie.currentAcademic().subscribe((function(e){"success"==e.keyword&&(t.academicId=e.data[0].academic_year_id,t.getBatch(t.academicId))}))}},{key:"getBatch",value:function(t){var e=this;this.batchService.getListByAcademic(t).subscribe((function(t){"success"==t.keyword&&(e.batches=t.batches)}))}},{key:"getClass",value:function(t){var e=this;this.classService.getClassByBatch(t).subscribe((function(t){"success"==t.keyword&&(e.classes=t.classes)}))}},{key:"getSection",value:function(){var t=this;this.sectionService.getList({sortByType:"ASC",sortByKey:"section_id"}).subscribe((function(e){"success"==e.keyword&&(t.sections=e.sections.filter((function(t){return"1"==t.status})))}))}},{key:"getStudent",value:function(){var t=this,e=this.nomoveForm.value;""!=e.indivualclass&&""!=e.indivualsection&&""!=this.academicId&&""!=e.batch&&this.StudentService.getStudentName(this.academicId,e.batch,e.indivualclass,e.indivualsection).subscribe((function(e){t.students=e.studentRegistrations}))}},{key:"getbatchName",value:function(t){this.batchName=t}},{key:"getStudentNames",value:function(t){this.studentName=t,console.log(t,"1233")}},{key:"getSections",value:function(t){this.sectionName=t}},{key:"getStudentClass",value:function(t){this.className=t}},{key:"dailySearch",value:function(){var t,e=this;if(this.nomoveForm.valid){var c=Object(N.b)(),n=this.severdatePipe.transform(null===(t=this.nomoveForm.value)||void 0===t?void 0:t.dailyDate),o=Object(M.get)(c,"customer_id"),i=Object(M.get)(c,"branch_id");this.dailyobj={customerId:String(o),schoolId:String(i),thisDate:String(n)},this.loader.open(),this.modelServie.studentdailySos(this.dailyobj).subscribe((function(t){e.data=t,t.datas.length>0?(e.loader.close(),e.dailys=t.datas,e.count=t,e.toaster.present("Report viewed successfully","")):(e.loader.close(),e.dailydate="",e.toaster.present("No data found...",""))}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"individualSearch",value:function(){var t,e,c,n=this;if(this.nomoveForm.valid){var o=Object(N.b)(),i=this.nomoveForm.value,a=this.severdatePipe.transform(null===(t=i)||void 0===t?void 0:t.fromDate),d=this.severdatePipe.transform(null===(e=i)||void 0===e?void 0:e.toDate),r=Object(M.get)(o,"customer_id"),l=Object(M.get)(o,"branch_id");this.individualobj={customerId:String(r),schoolId:String(l),studentId:String(null===(c=i)||void 0===c?void 0:c.studename),fromDate:String(a),toDate:String(d)},this.loader.open(),this.modelServie.studentIndividualSos(this.individualobj).subscribe((function(t){n.data=t,t.datas.length>0?(n.individuals=t.datas,n.loader.close(),n.toaster.present("Report viewed successfully","")):(n.loader.close(),n.individuals=[],n.count="",n.toaster.present("No data found...",""))}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}},{key:"download",value:function(){var t,e,c,n=this;if(this.nomoveForm.valid){var o,i=new O.e;if("Daily"==(null===(t=a=this.nomoveForm.value)||void 0===t?void 0:t.Type)){var a,d=Object(N.b)(),r=this.severdatePipe.transform(null===(e=a=this.nomoveForm.value)||void 0===e?void 0:e.dailyDate),l=Object(M.get)(d,"customer_id"),s=Object(M.get)(d,"branch_id");for(var u in this.obj={customerId:String(l),schoolId:String(s),date:String(r)},o="stuDailySos",this.obj)i=i.set(u,this.obj[u])}else if("Individual"==(null===(c=a)||void 0===c?void 0:c.Type))for(var m in o="stuIndividualSos",this.individualobj)i=i.set(m,this.individualobj[m]);this.loader.open(),this.apiService.FilterDownloadFile(o,i).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:n.loader.close();break;case O.d.Response:var e=new Blob([t.body],{type:t.body.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),document.body.appendChild(c),c.download="Daily"==n.nomoveForm.value.Type?"Student Daily Sos Report":"Student Individual Sos Report",c.href=URL.createObjectURL(e),c.target="_blank",c.click(),document.body.removeChild(c),n.loader.close()}}))}else $.a.fire({title:"Check Required",text:"Fill Mandatory Fields ",icon:"warning"})}}])}()).\u0275fac=function(t){return new(t||Oa)(I.Xb(Hi.a),I.Xb(G.a),I.Xb(S.a),I.Xb(o.g),I.Xb(ve.a),I.Xb(T.d),I.Xb(fe.a),I.Xb(be.a),I.Xb(P.a),I.Xb(he.a),I.Xb(W.a))},Oa.\u0275cmp=I.Rb({type:Oa,selectors:[["app-create"]],features:[I.Fb([{provide:s.c,useClass:A.b},{provide:s.f,useValue:A.a},T.d])],decls:22,vars:4,consts:[[1,"create_btn"],[1,""],[1,"p-0"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","100"],[1,"card-title-text"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0","mb-4"],["aria-label","Select an option","name","report","formControlName","Type",1,"ml-15"],["value","Daily",1,"mr-40",3,"click"],["value","Individual",3,"click"],[4,"ngIf"],["class","daily-block ",4,"ngIf"],["class","individual-block mt-12",4,"ngIf"],[1,"daily-block"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","5",1,"pt-12"],["fxFlex","100","fxFlex.gt-xs","15",1,""],["appearance","fill"],["matInput","","formControlName","dailyDate",3,"matDatepicker","focus","click"],["matSuffix","",3,"for"],["pickerdate",""],["fxFlex","100","fxFlex.gt-xs","20",1,"mt-8","ml-12"],["mat-raised-button","","color","primary","class","btn-primary-bg","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","type","button",3,"click",4,"ngIf"],[1,"border-top"],["class","mt-12",4,"ngIf"],["mat-raised-button","","color","primary","type","button",1,"btn-primary-bg",3,"click"],["mat-button","","color","primary","type","button",3,"click"],[1,"material-icons","f30"],[1,"mt-12"],[1,"ml-16"],["fxFlex","100","fxFlex.gt-xs","75"],[1,"student-table"],[2,"width","4%","text-align","left"],[2,"width","23%","text-align","left"],[2,"width","8%","text-align","center"],[2,"width","10%","text-align","center"],[4,"ngFor","ngForOf"],[2,"text-align","center"],[2,"text-align","left"],[1,"text-center"],[1,"individual-block","mt-12"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","13",1,"mt-12","mr-16"],["formControlName","batch"],[3,"value","click",4,"ngFor","ngForOf"],["formControlName","indivualclass"],["fxFlex","100","fxFlex.gt-xs","10",1,"mt-12","mr-16"],["formControlName","indivualsection"],["fxFlex","100","fxFlex.gt-xs","16",1,"mt-12","mr-16"],["formControlName","studename"],["fxFlex","100","fxFlex.gt-xs","13",1,"mr-16"],["matInput","","formControlName","fromDate",3,"matDatepicker","focus","click"],["picker2",""],["fxFlex","100","fxFlex.gt-xs","13",1,""],["matInput","","formControlName","toDate",3,"matDatepicker","focus","click"],["picker3",""],["fxFlex","100","fxFlex.gt-xs","12",1,"ml-4"],["mat-raised-","","color","primary","class","btn-primary-bg","type","button",3,"click",4,"ngIf"],[2,"border-top","1px solid #ccc"],["fxLayout","row wrap","class","mt-12",4,"ngIf"],[3,"value","click"],["mat-raised-","","color","primary","type","button",1,"btn-primary-bg",3,"click"],["fxFlex","100","fxFlex.gt-xs","50"],[1,"student-table","mt-12"],[2,"width","13%","text-align","center"]],template:function(t,e){1&t&&(I.Yb(0,"div",0),I.dc(1,"div",1),I.dc(2,"mat-card",2),I.dc(3,"mat-card-title",1),I.dc(4,"div",3),I.dc(5,"div",4),I.dc(6,"div",5),I.cd(7,"SOS - Student"),I.cc(),I.cc(),I.cc(),I.Yb(8,"mat-divider"),I.cc(),I.dc(9,"mat-card-content"),I.dc(10,"form",6),I.dc(11,"div",7),I.dc(12,"div",4),I.dc(13,"div",8),I.dc(14,"mat-radio-group",9),I.dc(15,"mat-radio-button",10),I.lc("click",(function(t){return e.typebasedValidate("Daily")})),I.cd(16,"Daily "),I.cc(),I.dc(17,"mat-radio-button",11),I.lc("click",(function(t){return e.typebasedValidate("Individual")})),I.cd(18,"Individual"),I.cc(),I.ad(19,Ji,2,0,"mat-error",12),I.cc(),I.cc(),I.cc(),I.cc(),I.ad(20,aa,19,11,"div",13),I.ad(21,Fa,51,23,"div",14),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(10),I.yc("formGroup",e.nomoveForm),I.Gb(9),I.yc("ngIf",(null==e.nomoveForm.controls.Type.errors?null:e.nomoveForm.controls.Type.errors.required)&&e.nomoveForm.controls.Type.touched),I.Gb(1),I.yc("ngIf","Daily"===e.nomoveForm.controls.Type.value),I.Gb(1),I.yc("ngIf","Individual"===e.nomoveForm.controls.Type.value))},directives:[r.a,r.f,U.c,U.a,H.a,r.c,a.D,a.u,a.k,b.b,a.t,a.i,b.a,i.o,J.a,J.b,p.b,a.c,u.b,u.d,J.f,u.a,d.a,i.n,J.e,K.a,s.p],pipes:[i.e,T.c],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.batch-name[_ngcontent-%COMP%]{font-size:24px;margin-left:-11px}.student-table[_ngcontent-%COMP%]{border:1px solid #ccc}.student-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .student-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid hsla(0,0%,80%,.4588235294117647)!important;border-width:1px 1px 0!important;padding:5px 8px!important;white-space:nowrap}.student-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;font-weight:900!important}table[_ngcontent-%COMP%]{border-spacing:0}/[_ngcontent-%COMP%] /[_ngcontent-%COMP%] .sort[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:flex!important}.f30[_ngcontent-%COMP%]{font-size:30px}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.student-table[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:10px!important}.mt-20[_ngcontent-%COMP%]{margin-top:20px}.daily-block.Individual[_ngcontent-%COMP%], .daily-block.Monthly[_ngcontent-%COMP%]{display:none}span.material-icons.sort-icon[_ngcontent-%COMP%]{position:relative;top:6px}mat-card-title[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:90%!important}.card-title-text[_ngcontent-%COMP%]{padding:5px 26px!important}ul[_ngcontent-%COMP%]{display:-webkit-box;list-style:none;padding-inline-start:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:30px}@font-face{font-family:Roboto,sans-serif!important;src:url(https://fonts.googleapis.com/css2?display=swap&family=Roboto%3Aital%2Cwght%400%2C100%3B0%2C400%3B0%2C500%3B1%2C400)}"]}),Oa),Ia=c("UTcx");function Da(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getDailyAtten()})),I.cd(1,"Search"),I.cc()}}function Ga(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).downloadDailyAtten()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function Sa(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",40),I.cd(2),I.cc(),I.dc(3,"td",40),I.cd(4),I.cc(),I.dc(5,"td",40),I.cd(6),I.cc(),I.dc(7,"td",40),I.cd(8),I.cc(),I.dc(9,"td",40),I.cd(10),I.cc(),I.dc(11,"td",41),I.cd(12),I.qc(13,"displayTime"),I.qc(14,"date"),I.cc(),I.dc(15,"td",41),I.cd(16),I.qc(17,"displayTime"),I.qc(18,"date"),I.cc(),I.dc(19,"td",41),I.cd(20),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.dd(null==c?null:c.visitorName),I.Gb(2),I.dd(null==c?null:c.visitorMobile),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(13,8,I.sc(14,10,null==c?null:c.fromTime,"hh:mm:ss"))),I.Gb(4),I.dd(I.rc(17,13,I.sc(18,15,null==c?null:c.toTime,"hh:mm:ss"))),I.Gb(4),I.dd(null==c?null:c.timeDifference)}}function Ma(t,e){if(1&t&&(I.dc(0,"div",31),I.dc(1,"label"),I.dc(2,"strong"),I.cd(3,"Date :"),I.cc(),I.dc(4,"span",32),I.cd(5),I.cc(),I.cc(),I.dc(6,"table",33),I.dc(7,"thead"),I.dc(8,"tr"),I.dc(9,"th",34),I.cd(10,"Visitor Name "),I.cc(),I.dc(11,"th",35),I.cd(12,"Mobile No "),I.cc(),I.dc(13,"th",34),I.cd(14,"Location "),I.cc(),I.dc(15,"th",34),I.cd(16,"Layout Category "),I.cc(),I.dc(17,"th",34),I.cd(18,"Place "),I.cc(),I.dc(19,"th",36),I.cd(20,"Time "),I.cc(),I.dc(21,"th",37),I.cd(22,"Total Time"),I.cc(),I.cc(),I.dc(23,"tr"),I.dc(24,"th",38),I.cd(25," From "),I.cc(),I.dc(26,"th",38),I.cd(27," To "),I.cc(),I.cc(),I.cc(),I.dc(28,"tbody"),I.ad(29,Sa,21,18,"tr",39),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.dd(c.getFormatedDate(c.control.date.value)),I.Gb(24),I.yc("ngForOf",c.dailyAtten)}}function Na(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var Aa=function(){return["not_allowed"]},Ta=function(){return["notallow_daily_visitor_search"]},La=function(){return["notallow_daily_visitor_download"]};function Ea(t,e){if(1&t){var c=I.ec();I.dc(0,"div",14),I.dc(1,"div",15),I.dc(2,"div",16),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Date"),I.cc(),I.cc(),I.cc(),I.dc(6,"div",17),I.dc(7,"mat-form-field",18),I.dc(8,"input",19),I.lc("focus",(function(t){return I.Sc(c),I.Oc(11).open()}))("click",(function(t){return I.Sc(c),I.Oc(11).open()})),I.cc(),I.Yb(9,"mat-datepicker-toggle",20),I.Yb(10,"mat-datepicker",null,21),I.cc(),I.cc(),I.dc(12,"div",22),I.ad(13,Da,2,0,"button",23),I.ad(14,Ga,3,0,"button",24),I.cc(),I.cc(),I.Yb(15,"div",25),I.ad(16,Ma,30,2,"div",26),I.ad(17,Na,4,0,"ng-container",27),I.cc()}if(2&t){var n=I.Oc(11),o=I.pc();I.Gb(8),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(4),I.yc("ngIf",o.permission.hasPermission(I.Ec(6,Aa),I.Ec(7,Ta))),I.Gb(1),I.yc("ngIf",o.permission.hasPermission(I.Ec(8,Aa),I.Ec(9,La))),I.Gb(2),I.yc("ngIf",0!=(null==o.dailyAtten?null:o.dailyAtten.length)),I.Gb(1),I.yc("ngIf",0===(null==o.dailyAtten?null:o.dailyAtten.length))}}function Va(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getIndividulAtten()})),I.cd(1,"Search"),I.cc()}}function Ra(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).downloadIndAtten()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function ja(t,e){if(1&t&&(I.dc(0,"ul"),I.dc(1,"li"),I.dc(2,"span"),I.dc(3,"strong"),I.cd(4,"Mobile Number "),I.cc(),I.cc(),I.dc(5,"span",32),I.cd(6),I.cc(),I.cc(),I.dc(7,"li"),I.dc(8,"span"),I.dc(9,"strong"),I.cd(10,"Visitor Name "),I.cc(),I.cc(),I.dc(11,"span",32),I.cd(12),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(6),I.dd(null==c.control.mobileNo?null:c.control.mobileNo.value),I.Gb(6),I.ed("",c.visitorName," ")}}function qa(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",41),I.cd(2),I.cc(),I.dc(3,"td",40),I.cd(4),I.cc(),I.dc(5,"td",40),I.cd(6),I.cc(),I.dc(7,"td",40),I.cd(8),I.cc(),I.dc(9,"td",41),I.cd(10),I.qc(11,"displayTime"),I.qc(12,"date"),I.cc(),I.dc(13,"td",41),I.cd(14),I.qc(15,"displayTime"),I.qc(16,"date"),I.cc(),I.dc(17,"td",41),I.cd(18),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.dd(null==c?null:c.thisDate),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(11,7,I.sc(12,9,null==c?null:c.fromTime,"hh:mm:ss"))),I.Gb(4),I.dd(I.rc(15,12,I.sc(16,14,null==c?null:c.toTime,"hh:mm:ss"))),I.Gb(4),I.dd(null==c?null:c.timeDifference)}}function Ba(t,e){if(1&t&&(I.dc(0,"table",33),I.dc(1,"thead"),I.dc(2,"tr"),I.dc(3,"th",56),I.cd(4,"Date "),I.cc(),I.dc(5,"th",57),I.cd(6,"Location "),I.cc(),I.dc(7,"th",57),I.cd(8,"Layout Category "),I.cc(),I.dc(9,"th",57),I.cd(10,"Place"),I.cc(),I.dc(11,"th",58),I.cd(12,"Time "),I.cc(),I.dc(13,"th",37),I.cd(14,"Total Time"),I.cc(),I.cc(),I.dc(15,"tr"),I.dc(16,"th",38),I.cd(17," From "),I.cc(),I.dc(18,"th",38),I.cd(19," To "),I.cc(),I.cc(),I.cc(),I.dc(20,"tbody"),I.ad(21,qa,19,17,"tr",39),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(21),I.yc("ngForOf",c.indiviAtten)}}function Ya(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var Xa=function(){return["notallow_ind_visitor_search"]},za=function(){return["notallow_ind_visitor_download"]};function $a(t,e){if(1&t){var c=I.ec();I.dc(0,"div",43),I.dc(1,"div",44),I.dc(2,"div",45),I.dc(3,"mat-form-field",18),I.dc(4,"mat-label"),I.cd(5,"Mobile Number"),I.cc(),I.Yb(6,"input",46),I.cc(),I.cc(),I.dc(7,"div",47),I.dc(8,"mat-form-field",18),I.dc(9,"mat-label"),I.cd(10,"From Date"),I.cc(),I.dc(11,"input",48),I.lc("dateChange",(function(t){return I.Sc(c),I.pc().dateChange()}))("focus",(function(t){return I.Sc(c),I.Oc(14).open()}))("click",(function(t){return I.Sc(c),I.Oc(14).open()})),I.cc(),I.Yb(12,"mat-datepicker-toggle",20),I.Yb(13,"mat-datepicker",null,49),I.cc(),I.cc(),I.dc(15,"div",50),I.dc(16,"mat-form-field",18),I.dc(17,"mat-label"),I.cd(18,"To Date"),I.cc(),I.dc(19,"input",51),I.lc("focus",(function(t){return I.Sc(c),I.Oc(22).open()}))("click",(function(t){return I.Sc(c),I.Oc(22).open()})),I.cc(),I.Yb(20,"mat-datepicker-toggle",20),I.Yb(21,"mat-datepicker",null,52),I.cc(),I.cc(),I.dc(23,"div",53),I.ad(24,Va,2,0,"button",23),I.ad(25,Ra,3,0,"button",24),I.cc(),I.cc(),I.Yb(26,"div",54),I.ad(27,ja,13,2,"ul",27),I.ad(28,Ba,22,1,"table",55),I.ad(29,Ya,4,0,"ng-container",27),I.cc()}if(2&t){var n=I.Oc(14),o=I.Oc(22),i=I.pc();I.Gb(11),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(7),I.yc("min",null==i.control.fromDate?null:i.control.fromDate.value)("matDatepicker",o),I.Gb(1),I.yc("for",o),I.Gb(4),I.yc("ngIf",i.permission.hasPermission(I.Ec(10,Aa),I.Ec(11,Xa))),I.Gb(1),I.yc("ngIf",i.permission.hasPermission(I.Ec(12,Aa),I.Ec(13,za))),I.Gb(2),I.yc("ngIf",0!=(null==i.indiviAtten?null:i.indiviAtten.length)),I.Gb(1),I.yc("ngIf",0!=(null==i.indiviAtten?null:i.indiviAtten.length)),I.Gb(1),I.yc("ngIf",0===(null==i.indiviAtten?null:i.indiviAtten.length))}}var Wa,Ua=((Wa=function(){return _createClass((function t(e,c,n,o,i,a,d,r){_classCallCheck(this,t),this.modelService=e,this.visiterServ=c,this.configServ=n,this.severdatePipe=o,this.loader=i,this.permission=a,this.apiService=d,this.toaster=r,this.customerId="",this.schoolId="",this.empPagination={filterDepartment:"",filterPosition:""},this.configServ.init(),this.customerId=this.configServ.customerId,this.schoolId=this.configServ.branchId}),[{key:"ngOnInit",value:function(){this.getVisiters(),this.form()}},{key:"form",value:function(){this.basicForm=new a.j({type:new a.g(""),date:new a.g(""),mobileNo:new a.g(""),fromDate:new a.g(""),toDate:new a.g("")})}},{key:"control",get:function(){return this.basicForm.controls}},{key:"getVisiters",value:function(){var t=this;this.visiterServ.getList(void 0).subscribe((function(e){"success"==e.keyword&&(t.visitors=e.visitors,console.log(t.visitors,"visiters"))}))}},{key:"reset",value:function(){this.basicForm.patchValue({date:"",mobileNo:"",fromDate:"",toDate:""}),this.visitorName=""}},{key:"dateChange",value:function(){this.basicForm.patchValue({toDate:""})}},{key:"getFormatedDate",value:function(t){return this.severdatePipe.transform(t)}},{key:"typeChange",value:function(){this.reset(),this.dailyAtten=[],this.indiviAtten=[]}},{key:"checkRequired",value:function(){$.a.fire({title:"Check Required",text:"Fill Mandatory Fields",icon:"warning"})}},{key:"getDailyAtten",value:function(){var t,e=this;this.dailyAtten=[];var c=this.severdatePipe.transform(null===(t=this.basicForm.value)||void 0===t?void 0:t.date);if(""!=c){var n={customerId:this.customerId,schoolId:this.schoolId,thisDate:c};this.loader.open(),this.modelService.getVisitorDailyReport(n).subscribe((function(t){var c,n;(null===(c=t)||void 0===c?void 0:c.datas.length)>0?(e.dailyAtten=null===(n=t)||void 0===n?void 0:n.datas,e.loader.close(),e.toaster.present("Report viewed successfully","")):(e.loader.close(),e.dailyAtten=[],e.toaster.present("No data found...",""))}))}else this.checkRequired()}},{key:"downloadDailyAtten",value:function(){var t,e=this,c=this.severdatePipe.transform(null===(t=this.basicForm.value)||void 0===t?void 0:t.date);if(""!=c){var n={date:c},o=new O.e;for(var i in n)o=o.set(i,n[i]);this.loader.open(),this.apiService.FilterDownloadFile("visDailyRestricted",o).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:e.loader.close();break;case O.d.Response:var c=new Blob([t.body],{type:t.body.type}),n=document.createElement("a");n.setAttribute("style","display:none;"),document.body.appendChild(n),n.download="Visitor Daily Not-Allowed Report",n.href=URL.createObjectURL(c),n.target="_blank",n.click(),document.body.removeChild(n),e.loader.close()}}))}else this.checkRequired()}},{key:"getIndividulAtten",value:function(){var t,e,c,n,o,i,a=this,d=this.basicForm.value,r=this.getFormatedDate(null===(t=d)||void 0===t?void 0:t.fromDate),l=this.getFormatedDate(null===(e=d)||void 0===e?void 0:e.toDate);if(""!=(null===(c=d)||void 0===c?void 0:c.mobileNo)&&""!=r&&""!=l){this.indiviAtten=[];var s={customerId:this.customerId,schoolId:this.schoolId,visitorMobile:null===(n=d)||void 0===n?void 0:n.mobileNo,fromDate:r,toDate:l},u=this.visitors.find((function(t){var e,c;return(null===(e=t)||void 0===e?void 0:e.mobileNo)==(null===(c=d)||void 0===c?void 0:c.mobileNo)}));console.log(null===(o=u)||void 0===o?void 0:o.mobileNo,"Mobile No"),(null===(i=d)||void 0===i?void 0:i.mobileNo)?(this.loader.open(),this.modelService.getVisitorIndReport(s).subscribe((function(t){var e,c,n;(null===(e=t)||void 0===e?void 0:e.datas.length)>0?(a.indiviAtten=null===(c=t)||void 0===c?void 0:c.datas,a.visitorName=null===(n=t)||void 0===n?void 0:n.visitorName,a.loader.close(),a.toaster.present("Report viewed successfully","")):(a.loader.close(),a.indiviAtten=[],a.visitorName="",a.toaster.present("No data found...",""))}))):$.a.fire({title:"Visitor Tracking",text:"Please provide the valid visitor number",icon:"error"})}else this.checkRequired()}},{key:"downloadIndAtten",value:function(){var t,e,c,n,o=this,i=this.basicForm.value,a=this.severdatePipe.transform(null===(t=i)||void 0===t?void 0:t.fromDate),d=this.severdatePipe.transform(null===(e=i)||void 0===e?void 0:e.toDate);if(""!=(null===(c=i)||void 0===c?void 0:c.mobileNo)&&""!=a&&""!=d){var r={visitorMobile:null===(n=i)||void 0===n?void 0:n.mobileNo,fromDate:a,toDate:d},l=new O.e;for(var s in r)l=l.set(s,r[s]);this.loader.open(),this.apiService.FilterDownloadFile("visIndividualRestricted",l).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:o.loader.close();break;case O.d.Response:var e=new Blob([t.body],{type:t.body.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),document.body.appendChild(c),c.download="Visitor Individual Not-Allowed Report",c.href=URL.createObjectURL(e),c.target="_blank",c.click(),document.body.removeChild(c),o.loader.close()}}))}else this.checkRequired()}}])}()).\u0275fac=function(t){return new(t||Wa)(I.Xb(Wo),I.Xb(Ia.a),I.Xb(wn.a),I.Xb(T.d),I.Xb(G.a),I.Xb(W.a),I.Xb(P.a),I.Xb(S.a))},Wa.\u0275cmp=I.Rb({type:Wa,selectors:[["app-create"]],features:[I.Fb([{provide:s.c,useClass:A.b},{provide:s.f,useValue:A.a},T.d])],decls:21,vars:3,consts:[[1,"create_btn"],[1,""],[1,"p-0"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","100"],[1,"card-title-text"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0","mb-4"],["aria-label","Select an option","name","report","formControlName","type",1,"ml-15",3,"change"],["value","Daily",1,"mr-40"],["value","Individual"],["class","daily-block",4,"ngIf"],["class","individual-block mt-12",4,"ngIf"],[1,"daily-block"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","5",1,"pt-12"],["fxFlex","100","fxFlex.gt-xs","15",1,""],["appearance","fill"],["matInput","","formControlName","date",3,"matDatepicker","focus","click"],["matSuffix","",3,"for"],["picker",""],["fxFlex","100","fxFlex.gt-xs","20",1,"mt-8","ml-12"],["mat-raised-button","","color","primary","class","btn-primary-bg",3,"click",4,"ngIf"],["mat-button","","color","primary",3,"click",4,"ngIf"],[1,"border-top"],["class","mt-12",4,"ngIf"],[4,"ngIf"],["mat-raised-button","","color","primary",1,"btn-primary-bg",3,"click"],["mat-button","","color","primary",3,"click"],[1,"material-icons","f30"],[1,"mt-12"],[1,"ml-16"],[1,"employee-table","mt-12"],["rowspan","2",2,"width","17%","text-align","left"],["rowspan","2",2,"width","8%","text-align","left"],["colspan","2",2,"width","20%","text-align","center"],["rowspan","2",2,"width","23%","text-align","center"],[2,"width","10%","text-align","center"],[4,"ngFor","ngForOf"],[2,"text-align","left"],[2,"text-align","center"],[1,"text-center"],[1,"individual-block","mt-12"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","16",1,"mt-12","mr-16"],["matInput","","formControlName","mobileNo","placeholder",""],["fxFlex","100","fxFlex.gt-xs","13",1,"mr-16"],["matInput","","formControlName","fromDate",3,"matDatepicker","dateChange","focus","click"],["picker2",""],["fxFlex","100","fxFlex.gt-xs","13",1,""],["matInput","","formControlName","toDate",3,"min","matDatepicker","focus","click"],["picker3",""],["fxFlex","100","fxFlex.gt-xs","12",1,"mt-12","ml-4"],[2,"border-top","1px solid #ccc"],["class","employee-table mt-12",4,"ngIf"],["rowspan","2",2,"width","10%","text-align","center"],["rowspan","2",2,"width","23%","text-align","left"],["colspan","2",2,"width","5%","text-align","center"]],template:function(t,e){1&t&&(I.Yb(0,"div",0),I.dc(1,"div",1),I.dc(2,"mat-card",2),I.dc(3,"mat-card-title",1),I.dc(4,"div",3),I.dc(5,"div",4),I.dc(6,"div",5),I.cd(7,"Restricted Area - Visitor"),I.cc(),I.cc(),I.cc(),I.Yb(8,"mat-divider"),I.cc(),I.dc(9,"mat-card-content"),I.dc(10,"form",6),I.dc(11,"div",7),I.dc(12,"div",4),I.dc(13,"div",8),I.dc(14,"mat-radio-group",9),I.lc("change",(function(t){return e.typeChange()})),I.dc(15,"mat-radio-button",10),I.cd(16,"Daily"),I.cc(),I.dc(17,"mat-radio-button",11),I.cd(18,"Individual"),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.ad(19,Ea,18,10,"div",12),I.ad(20,$a,30,14,"div",13),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(10),I.yc("formGroup",e.basicForm),I.Gb(9),I.yc("ngIf","Daily"==(null==e.control.type?null:e.control.type.value)),I.Gb(1),I.yc("ngIf","Individual"==e.control.type.value))},directives:[r.a,r.f,U.c,U.a,H.a,r.c,a.D,a.u,a.k,b.b,a.t,a.i,b.a,i.o,J.b,p.b,a.c,u.b,u.d,J.f,u.a,d.a,i.n,J.e],pipes:[T.c,i.e],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.batch-name[_ngcontent-%COMP%]{font-size:24px;margin-left:-11px}.employee-table[_ngcontent-%COMP%]{border:1px solid #ccc}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 8px!important}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid hsla(0,0%,80%,.4588235294117647)!important;border-width:1px 1px 0!important;white-space:nowrap}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;font-weight:900!important;padding:0 8px!important}table[_ngcontent-%COMP%]{border-spacing:0}/[_ngcontent-%COMP%] /[_ngcontent-%COMP%] .sort[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:flex!important}.f30[_ngcontent-%COMP%]{font-size:30px}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.employee-table[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:10px!important}.mt-20[_ngcontent-%COMP%]{margin-top:20px}.daily-block.Individual[_ngcontent-%COMP%], .daily-block.Monthly[_ngcontent-%COMP%]{display:none}span.material-icons.sort-icon[_ngcontent-%COMP%]{position:relative;top:6px}mat-card-title[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:90%!important}.card-title-text[_ngcontent-%COMP%]{padding:5px 26px!important}ul[_ngcontent-%COMP%]{display:-webkit-box;list-style:none;padding-inline-start:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:30px}@font-face{font-family:Roboto,sans-serif!important;src:url(https://fonts.googleapis.com/css2?display=swap&family=Roboto%3Aital%2Cwght%400%2C100%3B0%2C400%3B0%2C500%3B1%2C400)}"]}),Wa);function Ha(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getDailyAtten()})),I.cd(1,"Search"),I.cc()}}function Ja(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).downloadDailyAtten()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function Ka(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",38),I.cd(2),I.cc(),I.dc(3,"td"),I.cd(4),I.cc(),I.dc(5,"td",39),I.cd(6),I.cc(),I.dc(7,"td",39),I.cd(8),I.cc(),I.dc(9,"td",39),I.cd(10),I.cc(),I.dc(11,"td",39),I.cd(12),I.cc(),I.dc(13,"td",39),I.cd(14),I.cc(),I.dc(15,"td",38),I.cd(16),I.qc(17,"displayTime"),I.qc(18,"date"),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.ed(" ",null==c?null:c.employeeCode," "),I.Gb(2),I.ed("",null==c?null:c.employeeName," "),I.Gb(2),I.ed("",null==c?null:c.employeeDepartmentName," "),I.Gb(2),I.dd(null==c?null:c.employeePositionName),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(17,8,I.sc(18,10,null==c?null:c.this_time,"h:mm:ss")))}}function Za(t,e){if(1&t&&(I.dc(0,"div",31),I.dc(1,"label"),I.dc(2,"strong"),I.cd(3,"Date :"),I.cc(),I.dc(4,"span",32),I.cd(5),I.cc(),I.cc(),I.dc(6,"table",33),I.dc(7,"thead"),I.dc(8,"tr"),I.dc(9,"th",34),I.cd(10,"Emp Code"),I.cc(),I.dc(11,"th",35),I.cd(12,"Emp Name "),I.cc(),I.dc(13,"th",35),I.cd(14,"Department "),I.cc(),I.dc(15,"th",35),I.cd(16,"Position "),I.cc(),I.dc(17,"th",35),I.cd(18,"Location"),I.cc(),I.dc(19,"th",35),I.cd(20,"Layout Category "),I.cc(),I.dc(21,"th",35),I.cd(22,"Place"),I.cc(),I.dc(23,"th",36),I.cd(24,"Time "),I.cc(),I.cc(),I.cc(),I.dc(25,"tbody"),I.ad(26,Ka,19,13,"tr",37),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.dd(c.getFormatedDate(c.control.date.value)),I.Gb(21),I.yc("ngForOf",c.dailyAtten)}}function Qa(t,e){1&t&&(I.bc(0),I.dc(1,"p",40),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var td=function(){return["sos"]},ed=function(){return["sos_daily_emp_search"]},cd=function(){return["sos_daily_emp_download"]};function nd(t,e){if(1&t){var c=I.ec();I.dc(0,"div",14),I.dc(1,"div",15),I.dc(2,"div",16),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Date"),I.cc(),I.cc(),I.cc(),I.dc(6,"div",17),I.dc(7,"mat-form-field",18),I.dc(8,"input",19),I.lc("focus",(function(t){return I.Sc(c),I.Oc(11).open()}))("click",(function(t){return I.Sc(c),I.Oc(11).open()})),I.cc(),I.Yb(9,"mat-datepicker-toggle",20),I.Yb(10,"mat-datepicker",null,21),I.cc(),I.cc(),I.dc(12,"div",22),I.ad(13,Ha,2,0,"button",23),I.ad(14,Ja,3,0,"button",24),I.cc(),I.cc(),I.Yb(15,"div",25),I.ad(16,Za,27,2,"div",26),I.ad(17,Qa,4,0,"ng-container",27),I.cc()}if(2&t){var n=I.Oc(11),o=I.pc();I.Gb(8),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(4),I.yc("ngIf",o.permission.hasPermission(I.Ec(6,td),I.Ec(7,ed))),I.Gb(1),I.yc("ngIf",o.permission.hasPermission(I.Ec(8,td),I.Ec(9,cd))),I.Gb(2),I.yc("ngIf",0!=(null==o.dailyAtten?null:o.dailyAtten.length)),I.Gb(1),I.yc("ngIf",0===(null==o.dailyAtten?null:o.dailyAtten.length))}}function od(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",59),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getEmployees()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.departmentId),I.Gb(1),I.ed(" ",n.name," ")}}function id(t,e){if(1&t){var c=I.ec();I.dc(0,"mat-option",59),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getEmployees()})),I.cd(1),I.cc()}if(2&t){var n=e.$implicit;I.yc("value",n.positionId),I.Gb(1),I.ed(" ",n.positionName," ")}}function ad(t,e){if(1&t&&(I.dc(0,"mat-option",60),I.cd(1),I.cc()),2&t){var c=e.$implicit;I.yc("value",c.employeeId),I.Gb(1),I.ed(" ",c.employeeName," ")}}function dd(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getIndividulAtten()})),I.cd(1,"Search"),I.cc()}}function rd(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).downloadIndAtten()})),I.dc(1,"i",61),I.cd(2," cloud_download "),I.cc(),I.cc()}}function ld(t,e){if(1&t&&(I.dc(0,"ul"),I.dc(1,"li"),I.dc(2,"span"),I.dc(3,"strong"),I.cd(4,"Emp Name "),I.cc(),I.cc(),I.dc(5,"span",32),I.cd(6),I.cc(),I.cc(),I.dc(7,"li"),I.dc(8,"span"),I.dc(9,"strong"),I.cd(10,"Department "),I.cc(),I.cc(),I.dc(11,"span",32),I.cd(12),I.cc(),I.cc(),I.dc(13,"li"),I.dc(14,"span"),I.dc(15,"strong"),I.cd(16,"Position "),I.cc(),I.cc(),I.dc(17,"span",32),I.cd(18),I.cc(),I.cc(),I.dc(19,"li"),I.dc(20,"span"),I.dc(21,"strong"),I.cd(22,"Date "),I.cc(),I.cc(),I.dc(23,"span",32),I.cd(24),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(6),I.dd(null==c.indiviAtten[0]?null:c.indiviAtten[0].employeeName),I.Gb(6),I.ed("",null==c.indiviAtten[0]?null:c.indiviAtten[0].employeeDepartmentName," "),I.Gb(6),I.dd(null==c.indiviAtten[0]?null:c.indiviAtten[0].employeePositionName),I.Gb(6),I.fd("",c.getFormatedDate(c.control.fromDate.value)," to ",c.getFormatedDate(c.control.toDate.value),"")}}function sd(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",38),I.cd(2),I.cc(),I.dc(3,"td",39),I.cd(4),I.cc(),I.dc(5,"td",39),I.cd(6),I.cc(),I.dc(7,"td",39),I.cd(8),I.cc(),I.dc(9,"td",38),I.cd(10),I.qc(11,"displayTime"),I.qc(12,"date"),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.dd(null==c?null:c.thisDate),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(11,5,I.sc(12,7,null==c?null:c.this_time,"h:mm:ss")))}}function ud(t,e){if(1&t&&(I.dc(0,"table",33),I.dc(1,"thead"),I.dc(2,"tr"),I.dc(3,"th",62),I.cd(4,"Date "),I.cc(),I.dc(5,"th",35),I.cd(6,"Location"),I.cc(),I.dc(7,"th",35),I.cd(8,"Layout Category "),I.cc(),I.dc(9,"th",35),I.cd(10,"Place"),I.cc(),I.dc(11,"th",36),I.cd(12,"Time "),I.cc(),I.cc(),I.cc(),I.dc(13,"tbody"),I.ad(14,sd,13,10,"tr",37),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(14),I.yc("ngForOf",c.indiviAtten)}}function md(t,e){1&t&&(I.bc(0),I.dc(1,"p",40),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var pd=function(){return["sos_ind_emp_search"]};function fd(t,e){if(1&t){var c=I.ec();I.dc(0,"div",41),I.dc(1,"div",42),I.dc(2,"div",43),I.dc(3,"mat-form-field",18),I.dc(4,"mat-label"),I.cd(5,"Department"),I.cc(),I.dc(6,"mat-select",44),I.ad(7,od,2,2,"mat-option",45),I.cc(),I.cc(),I.cc(),I.dc(8,"div",43),I.dc(9,"mat-form-field",18),I.dc(10,"mat-label"),I.cd(11,"Job Position"),I.cc(),I.dc(12,"mat-select",46),I.ad(13,id,2,2,"mat-option",45),I.cc(),I.cc(),I.cc(),I.dc(14,"div",47),I.dc(15,"mat-form-field",18),I.dc(16,"mat-label"),I.cd(17,"Employee Name"),I.cc(),I.dc(18,"mat-select",48),I.ad(19,ad,2,2,"mat-option",49),I.cc(),I.cc(),I.cc(),I.dc(20,"div",50),I.dc(21,"mat-form-field",18),I.dc(22,"mat-label"),I.cd(23,"From Date"),I.cc(),I.dc(24,"input",51),I.lc("dateChange",(function(t){return I.Sc(c),I.pc().dateChange()}))("focus",(function(t){return I.Sc(c),I.Oc(27).open()}))("click",(function(t){return I.Sc(c),I.Oc(27).open()})),I.cc(),I.Yb(25,"mat-datepicker-toggle",20),I.Yb(26,"mat-datepicker",null,52),I.cc(),I.cc(),I.dc(28,"div",53),I.dc(29,"mat-form-field",18),I.dc(30,"mat-label"),I.cd(31,"To Date"),I.cc(),I.dc(32,"input",54),I.lc("focus",(function(t){return I.Sc(c),I.Oc(35).open()}))("click",(function(t){return I.Sc(c),I.Oc(35).open()})),I.cc(),I.Yb(33,"mat-datepicker-toggle",20),I.Yb(34,"mat-datepicker",null,55),I.cc(),I.cc(),I.dc(36,"div",56),I.ad(37,dd,2,0,"button",23),I.ad(38,rd,3,0,"button",24),I.cc(),I.cc(),I.Yb(39,"div",57),I.ad(40,ld,25,5,"ul",27),I.ad(41,ud,15,1,"table",58),I.ad(42,md,4,0,"ng-container",27),I.cc()}if(2&t){var n=I.Oc(27),o=I.Oc(35),i=I.pc();I.Gb(7),I.yc("ngForOf",i.depts),I.Gb(6),I.yc("ngForOf",i.positions),I.Gb(6),I.yc("ngForOf",i.employees),I.Gb(5),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(7),I.yc("min",null==i.control.fromDate?null:i.control.fromDate.value)("matDatepicker",o),I.Gb(1),I.yc("for",o),I.Gb(4),I.yc("ngIf",i.permission.hasPermission(I.Ec(13,td),I.Ec(14,pd))),I.Gb(1),I.yc("ngIf",i.permission.hasPermission(I.Ec(15,td),I.Ec(16,pd))),I.Gb(2),I.yc("ngIf",0!=(null==i.indiviAtten?null:i.indiviAtten.length)),I.Gb(1),I.yc("ngIf",0!=(null==i.indiviAtten?null:i.indiviAtten.length)),I.Gb(1),I.yc("ngIf",0===(null==i.indiviAtten?null:i.indiviAtten.length))}}var hd,bd=((hd=function(){return _createClass((function t(e,c,n,o,i,a,d,r,l,s){_classCallCheck(this,t),this.modelService=e,this.deptService=c,this.positionService=n,this.employeeService=o,this.configServ=i,this.severdatePipe=a,this.loader=d,this.permission=r,this.toaster=l,this.apiService=s,this.customerId="",this.schoolId="",this.dailyAtten=[],this.dailyAttenDatas=[],this.empPagination={filterDepartment:"",filterPosition:""},this.indiviAtten=[],this.configServ.init(),this.customerId=this.configServ.customerId,this.schoolId=this.configServ.branchId}),[{key:"ngOnInit",value:function(){this.getDepts(),this.getPositions(),this.form()}},{key:"form",value:function(){this.basicForm=new a.j({type:new a.g(""),date:new a.g(""),depart:new a.g(""),position:new a.g(""),empId:new a.g(""),fromDate:new a.g(""),toDate:new a.g("")})}},{key:"control",get:function(){return this.basicForm.controls}},{key:"reset",value:function(){this.basicForm.patchValue({date:"",depart:"",position:"",empId:"",fromDate:"",toDate:""})}},{key:"dateChange",value:function(){this.basicForm.patchValue({toDate:""})}},{key:"getFormatedDate",value:function(t){return this.severdatePipe.transform(t)}},{key:"typeChange",value:function(){this.reset(),this.dailyAtten=[],this.dailyAttenDatas=[],this.indiviAtten=[]}},{key:"getDepts",value:function(){var t=this;this.deptService.getList(void 0).subscribe((function(e){"success"==e.keyword&&(t.depts=e.departments.filter((function(t){return"1"==t.status})),console.log(t.depts,"this.depts"))}))}},{key:"getPositions",value:function(){var t=this;this.positionService.getList(void 0).subscribe((function(e){"success"==e.keyword&&(t.positions=e.positions.filter((function(t){return"1"==t.status})))}))}},{key:"checkRequired",value:function(){$.a.fire({title:"Check Required",text:"Fill Mandatory Fields",icon:"warning"})}},{key:"getDailyAtten",value:function(){var t,e=this;this.dailyAtten=[],this.dailyAttenDatas=[];var c=this.severdatePipe.transform(null===(t=this.basicForm.value)||void 0===t?void 0:t.date);if(""!=c){var n={customerId:this.customerId,schoolId:this.schoolId,thisDate:c};this.loader.open(),this.modelService.getDailyAtten(n).subscribe((function(t){t.datas.length>0?(e.dailyAtten=t.datas,e.loader.close(),e.toaster.present("Report viewed successfully","")):(e.loader.close(),e.dailyAtten=[],e.toaster.present("No data found...",""))}))}else this.checkRequired()}},{key:"downloadDailyAtten",value:function(){var t,e=this,c=this.severdatePipe.transform(null===(t=this.basicForm.value)||void 0===t?void 0:t.date);if(""!=c){var n={date:c},o=new O.e;for(var i in n)o=o.set(i,n[i]);this.loader.open(),this.apiService.FilterDownloadFile("empDailySos",o).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:e.loader.close();break;case O.d.Response:var c=new Blob([t.body],{type:t.body.type}),n=document.createElement("a");n.setAttribute("style","display:none;"),document.body.appendChild(n),n.download="Employee Daily Sos Report",n.href=URL.createObjectURL(c),n.target="_blank",n.click(),document.body.removeChild(n),e.loader.close()}}))}else this.checkRequired()}},{key:"getEmployees",value:function(){var t,e,c,n,o=this,i=this.basicForm.value;""!=(null===(t=i)||void 0===t?void 0:t.depart)&&""!=(null===(e=i)||void 0===e?void 0:e.position)&&(this.empPagination.filterDepartment=JSON.stringify([null===(c=i)||void 0===c?void 0:c.depart]),this.empPagination.filterPosition=JSON.stringify([null===(n=i)||void 0===n?void 0:n.position]),this.employeeService.getList(this.empPagination).subscribe((function(t){"success"==t.keyword&&(o.employees=t.employees,console.log(o.employees,"this.employees"))})))}},{key:"getIndividulAtten",value:function(){var t,e,c,n,o,i,a=this,d=this.basicForm.value,r=this.severdatePipe.transform(null===(t=d)||void 0===t?void 0:t.fromDate),l=this.severdatePipe.transform(null===(e=d)||void 0===e?void 0:e.toDate);if(""!=(null===(c=d)||void 0===c?void 0:c.depart)&&""!=(null===(n=d)||void 0===n?void 0:n.position)&&""!=(null===(o=d)||void 0===o?void 0:o.empId)&&""!=r&&""!=l){this.indiviAtten=[];var s={customerId:this.customerId,schoolId:this.schoolId,employeeId:null===(i=d)||void 0===i?void 0:i.empId,fromDate:r,toDate:l};this.loader.open(),this.modelService.getIndividualAtten(s).subscribe((function(t){var e,c;(null===(e=t)||void 0===e?void 0:e.datas.length)>0?(a.indiviAtten=null===(c=t)||void 0===c?void 0:c.datas,a.loader.close(),a.toaster.present("Report viewed successfully","")):(a.loader.close(),a.indiviAtten=[],a.toaster.present("No data found...",""))}))}else this.checkRequired()}},{key:"downloadIndAtten",value:function(){var t,e,c,n,o,i,a=this,d=this.basicForm.value,r=this.severdatePipe.transform(null===(t=d)||void 0===t?void 0:t.fromDate),l=this.severdatePipe.transform(null===(e=d)||void 0===e?void 0:e.toDate);if(""!=(null===(c=d)||void 0===c?void 0:c.depart)&&""!=(null===(n=d)||void 0===n?void 0:n.position)&&""!=(null===(o=d)||void 0===o?void 0:o.empId)&&""!=r&&""!=l){var s={employeeId:null===(i=d)||void 0===i?void 0:i.empId,fromDate:r,toDate:l},u=new O.e;for(var m in s)u=u.set(m,s[m]);this.loader.open(),this.apiService.FilterDownloadFile("empIndividualSos",u).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:a.loader.close();break;case O.d.Response:var e=new Blob([t.body],{type:t.body.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),document.body.appendChild(c),c.download="Employee Individual Sos Report",c.href=URL.createObjectURL(e),c.target="_blank",c.click(),document.body.removeChild(c),a.loader.close()}}))}else this.checkRequired()}}])}()).\u0275fac=function(t){return new(t||hd)(I.Xb(Hi.a),I.Xb(Y.a),I.Xb(Yn.a),I.Xb(B.a),I.Xb(wn.a),I.Xb(T.d),I.Xb(G.a),I.Xb(W.a),I.Xb(S.a),I.Xb(P.a))},hd.\u0275cmp=I.Rb({type:hd,selectors:[["app-create"]],features:[I.Fb([{provide:s.c,useClass:A.b},{provide:s.f,useValue:A.a},T.d])],decls:21,vars:3,consts:[[1,"create_btn"],[1,""],[1,"p-0"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","100"],[1,"card-title-text"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0","mb-4"],["aria-label","Select an option","name","report","formControlName","type",1,"ml-15",3,"change"],["value","Daily",1,"mr-40"],["value","Individual"],["class","daily-block",4,"ngIf"],["class","individual-block mt-12",4,"ngIf"],[1,"daily-block"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","5",1,"pt-12"],["fxFlex","100","fxFlex.gt-xs","15",1,""],["appearance","fill"],["matInput","","formControlName","date",3,"matDatepicker","focus","click"],["matSuffix","",3,"for"],["picker",""],["fxFlex","100","fxFlex.gt-xs","20",1,"mt-8","ml-12"],["mat-raised-button","","color","primary","class","btn-primary-bg",3,"click",4,"ngIf"],["mat-button","","color","primary",3,"click",4,"ngIf"],[1,"border-top"],["class","mt-12",4,"ngIf"],[4,"ngIf"],["mat-raised-button","","color","primary",1,"btn-primary-bg",3,"click"],["mat-button","","color","primary",3,"click"],[1,"material-icons"],[1,"mt-12"],[1,"ml-16"],[1,"employee-table","mt-12"],[2,"width","4%","text-align","left"],[2,"width","23%","text-align","left"],[2,"width","5%","text-align","center"],[4,"ngFor","ngForOf"],[2,"text-align","center"],[2,"text-align","left"],[1,"text-center"],[1,"individual-block","mt-12"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","13",1,"mt-12","mr-16"],["formControlName","depart"],[3,"value","click",4,"ngFor","ngForOf"],["formControlName","position"],["fxFlex","100","fxFlex.gt-xs","16",1,"mt-12","mr-16"],["formControlName","empId"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-xs","13",1,"mr-16"],["matInput","","formControlName","fromDate",3,"matDatepicker","dateChange","focus","click"],["picker2",""],["fxFlex","100","fxFlex.gt-xs","13",1,""],["matInput","","formControlName","toDate",3,"min","matDatepicker","focus","click"],["picker3",""],["fxFlex","100","fxFlex.gt-xs","12",1,"mt-12","ml-4"],[2,"border-top","1px solid #ccc"],["class","employee-table mt-12",4,"ngIf"],[3,"value","click"],[3,"value"],[1,"material-icons","f30"],[2,"width","10%","text-align","center"]],template:function(t,e){1&t&&(I.Yb(0,"div",0),I.dc(1,"div",1),I.dc(2,"mat-card",2),I.dc(3,"mat-card-title",1),I.dc(4,"div",3),I.dc(5,"div",4),I.dc(6,"div",5),I.cd(7,"SOS - Employee"),I.cc(),I.cc(),I.cc(),I.Yb(8,"mat-divider"),I.cc(),I.dc(9,"mat-card-content"),I.dc(10,"form",6),I.dc(11,"div",7),I.dc(12,"div",4),I.dc(13,"div",8),I.dc(14,"mat-radio-group",9),I.lc("change",(function(t){return e.typeChange()})),I.dc(15,"mat-radio-button",10),I.cd(16,"Daily"),I.cc(),I.dc(17,"mat-radio-button",11),I.cd(18,"Individual"),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.ad(19,nd,18,10,"div",12),I.ad(20,fd,43,17,"div",13),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(10),I.yc("formGroup",e.basicForm),I.Gb(9),I.yc("ngIf","Daily"==(null==e.control.type?null:e.control.type.value)),I.Gb(1),I.yc("ngIf","Individual"==e.control.type.value))},directives:[r.a,r.f,U.c,U.a,H.a,r.c,a.D,a.u,a.k,b.b,a.t,a.i,b.a,i.o,J.b,p.b,a.c,u.b,u.d,J.f,u.a,d.a,i.n,J.e,K.a,s.p],pipes:[T.c,i.e],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.batch-name[_ngcontent-%COMP%]{font-size:24px;margin-left:-11px}.employee-table[_ngcontent-%COMP%]{border:1px solid #ccc}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid hsla(0,0%,80%,.4588235294117647)!important;border-width:1px 1px 0!important;padding:5px 8px!important;white-space:nowrap}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;font-weight:900!important}table[_ngcontent-%COMP%]{border-spacing:0}/[_ngcontent-%COMP%] /[_ngcontent-%COMP%] .sort[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:flex!important}.f30[_ngcontent-%COMP%]{font-size:30px}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.employee-table[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:10px!important}.mt-20[_ngcontent-%COMP%]{margin-top:20px}.daily-block.Individual[_ngcontent-%COMP%], .daily-block.Monthly[_ngcontent-%COMP%]{display:none}span.material-icons.sort-icon[_ngcontent-%COMP%]{position:relative;top:6px}mat-card-title[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:90%!important}.card-title-text[_ngcontent-%COMP%]{padding:5px 26px!important}ul[_ngcontent-%COMP%]{display:-webkit-box;list-style:none;padding-inline-start:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:30px}@font-face{font-family:Roboto,sans-serif!important;src:url(https://fonts.googleapis.com/css2?display=swap&family=Roboto%3Aital%2Cwght%400%2C100%3B0%2C400%3B0%2C500%3B1%2C400)}"]}),hd);function vd(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getDailyAtten()})),I.cd(1,"Search"),I.cc()}}function gd(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).downloadDailyAtten()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function yd(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",40),I.cd(2),I.cc(),I.dc(3,"td",40),I.cd(4),I.cc(),I.dc(5,"td",40),I.cd(6),I.cc(),I.dc(7,"td",40),I.cd(8),I.cc(),I.dc(9,"td",40),I.cd(10),I.cc(),I.dc(11,"td",41),I.cd(12),I.qc(13,"displayTime"),I.qc(14,"date"),I.cc(),I.dc(15,"td",41),I.cd(16),I.qc(17,"displayTime"),I.qc(18,"date"),I.cc(),I.dc(19,"td",41),I.cd(20),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.dd(null==c?null:c.visitorName),I.Gb(2),I.dd(null==c?null:c.visitorMobile),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(13,8,I.sc(14,10,null==c?null:c.fromTime,"hh:mm:ss"))),I.Gb(4),I.dd(I.rc(17,13,I.sc(18,15,null==c?null:c.toTime,"hh:mm:ss"))),I.Gb(4),I.dd(null==c?null:c.timeDifference)}}function xd(t,e){if(1&t&&(I.dc(0,"div",31),I.dc(1,"label"),I.dc(2,"strong"),I.cd(3,"Date :"),I.cc(),I.dc(4,"span",32),I.cd(5),I.cc(),I.cc(),I.dc(6,"table",33),I.dc(7,"thead"),I.dc(8,"tr"),I.dc(9,"th",34),I.cd(10,"Visitor Name "),I.cc(),I.dc(11,"th",35),I.cd(12,"Mobile No "),I.cc(),I.dc(13,"th",34),I.cd(14,"Location"),I.cc(),I.dc(15,"th",34),I.cd(16,"Layout Category "),I.cc(),I.dc(17,"th",34),I.cd(18,"Place "),I.cc(),I.dc(19,"th",36),I.cd(20,"Time "),I.cc(),I.dc(21,"th",37),I.cd(22,"Total Time"),I.cc(),I.cc(),I.dc(23,"tr"),I.dc(24,"th",38),I.cd(25," From "),I.cc(),I.dc(26,"th",38),I.cd(27," To "),I.cc(),I.cc(),I.cc(),I.dc(28,"tbody"),I.ad(29,yd,21,18,"tr",39),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(5),I.dd(c.getFormatedDate(c.control.date.value)),I.Gb(24),I.yc("ngForOf",c.dailyAtten)}}function Cd(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var wd=function(){return["no_movement"]},kd=function(){return["nomove_daily_visitor_search"]},_d=function(){return["nomove_daily_visitor_download"]};function Fd(t,e){if(1&t){var c=I.ec();I.dc(0,"div",14),I.dc(1,"div",15),I.dc(2,"div",16),I.dc(3,"label"),I.dc(4,"strong"),I.cd(5,"Date"),I.cc(),I.cc(),I.cc(),I.dc(6,"div",17),I.dc(7,"mat-form-field",18),I.dc(8,"input",19),I.lc("focus",(function(t){return I.Sc(c),I.Oc(11).open()}))("click",(function(t){return I.Sc(c),I.Oc(11).open()})),I.cc(),I.Yb(9,"mat-datepicker-toggle",20),I.Yb(10,"mat-datepicker",null,21),I.cc(),I.cc(),I.dc(12,"div",22),I.ad(13,vd,2,0,"button",23),I.ad(14,gd,3,0,"button",24),I.cc(),I.cc(),I.Yb(15,"div",25),I.ad(16,xd,30,2,"div",26),I.ad(17,Cd,4,0,"ng-container",27),I.cc()}if(2&t){var n=I.Oc(11),o=I.pc();I.Gb(8),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(4),I.yc("ngIf",o.permission.hasPermission(I.Ec(6,wd),I.Ec(7,kd))),I.Gb(1),I.yc("ngIf",o.permission.hasPermission(I.Ec(8,wd),I.Ec(9,_d))),I.Gb(2),I.yc("ngIf",0!=(null==o.dailyAtten?null:o.dailyAtten.length)),I.Gb(1),I.yc("ngIf",0===(null==o.dailyAtten?null:o.dailyAtten.length))}}function Od(t,e){if(1&t){var c=I.ec();I.dc(0,"button",28),I.lc("click",(function(t){return I.Sc(c),I.pc(2).getIndividulAtten()})),I.cd(1,"Search"),I.cc()}}function Pd(t,e){if(1&t){var c=I.ec();I.dc(0,"button",29),I.lc("click",(function(t){return I.Sc(c),I.pc(2).downloadIndAtten()})),I.dc(1,"i",30),I.cd(2," cloud_download "),I.cc(),I.cc()}}function Id(t,e){if(1&t&&(I.dc(0,"ul"),I.dc(1,"li"),I.dc(2,"span"),I.dc(3,"strong"),I.cd(4,"Mobile Number "),I.cc(),I.cc(),I.dc(5,"span",32),I.cd(6),I.cc(),I.cc(),I.dc(7,"li"),I.dc(8,"span"),I.dc(9,"strong"),I.cd(10,"Visitor Name "),I.cc(),I.cc(),I.dc(11,"span",32),I.cd(12),I.cc(),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(6),I.dd(null==c.control.mobileNo?null:c.control.mobileNo.value),I.Gb(6),I.ed("",c.visitorName," ")}}function Dd(t,e){if(1&t&&(I.dc(0,"tr"),I.dc(1,"td",41),I.cd(2),I.cc(),I.dc(3,"td",40),I.cd(4),I.cc(),I.dc(5,"td",40),I.cd(6),I.cc(),I.dc(7,"td",40),I.cd(8),I.cc(),I.dc(9,"td",41),I.cd(10),I.qc(11,"displayTime"),I.qc(12,"date"),I.cc(),I.dc(13,"td",41),I.cd(14),I.qc(15,"displayTime"),I.qc(16,"date"),I.cc(),I.dc(17,"td",41),I.cd(18),I.cc(),I.cc()),2&t){var c=e.$implicit;I.Gb(2),I.dd(null==c?null:c.thisDate),I.Gb(2),I.dd(null==c?null:c.layoutType),I.Gb(2),I.dd(null==c?null:c.layoutCategoryName),I.Gb(2),I.dd(null==c?null:c.layoutPositionName),I.Gb(2),I.dd(I.rc(11,7,I.sc(12,9,null==c?null:c.fromTime,"hh:mm:ss"))),I.Gb(4),I.dd(I.rc(15,12,I.sc(16,14,null==c?null:c.toTime,"hh:mm:ss"))),I.Gb(4),I.dd(null==c?null:c.timeDifference)}}function Gd(t,e){if(1&t&&(I.dc(0,"table",33),I.dc(1,"thead"),I.dc(2,"tr"),I.dc(3,"th",56),I.cd(4,"Date "),I.cc(),I.dc(5,"th",57),I.cd(6,"Location "),I.cc(),I.dc(7,"th",57),I.cd(8,"Layout Category "),I.cc(),I.dc(9,"th",57),I.cd(10,"Place"),I.cc(),I.dc(11,"th",58),I.cd(12,"Time "),I.cc(),I.dc(13,"th",37),I.cd(14,"Total Time"),I.cc(),I.cc(),I.dc(15,"tr"),I.dc(16,"th",38),I.cd(17," From "),I.cc(),I.dc(18,"th",38),I.cd(19," To "),I.cc(),I.cc(),I.cc(),I.dc(20,"tbody"),I.ad(21,Dd,19,17,"tr",39),I.cc(),I.cc()),2&t){var c=I.pc(2);I.Gb(21),I.yc("ngForOf",c.indiviAtten)}}function Sd(t,e){1&t&&(I.bc(0),I.dc(1,"p",42),I.dc(2,"b"),I.cd(3,"No Data Found..."),I.cc(),I.cc(),I.ac())}var Md=function(){return["nomove_ind_visitor_search"]},Nd=function(){return["nomove_ind_visitor_download"]};function Ad(t,e){if(1&t){var c=I.ec();I.dc(0,"div",43),I.dc(1,"div",44),I.dc(2,"div",45),I.dc(3,"mat-form-field",18),I.dc(4,"mat-label"),I.cd(5,"Mobile Number"),I.cc(),I.Yb(6,"input",46),I.cc(),I.cc(),I.dc(7,"div",47),I.dc(8,"mat-form-field",18),I.dc(9,"mat-label"),I.cd(10,"From Date"),I.cc(),I.dc(11,"input",48),I.lc("dateChange",(function(t){return I.Sc(c),I.pc().dateChange()}))("focus",(function(t){return I.Sc(c),I.Oc(14).open()}))("click",(function(t){return I.Sc(c),I.Oc(14).open()})),I.cc(),I.Yb(12,"mat-datepicker-toggle",20),I.Yb(13,"mat-datepicker",null,49),I.cc(),I.cc(),I.dc(15,"div",50),I.dc(16,"mat-form-field",18),I.dc(17,"mat-label"),I.cd(18,"To Date"),I.cc(),I.dc(19,"input",51),I.lc("focus",(function(t){return I.Sc(c),I.Oc(22).open()}))("click",(function(t){return I.Sc(c),I.Oc(22).open()})),I.cc(),I.Yb(20,"mat-datepicker-toggle",20),I.Yb(21,"mat-datepicker",null,52),I.cc(),I.cc(),I.dc(23,"div",53),I.ad(24,Od,2,0,"button",23),I.ad(25,Pd,3,0,"button",24),I.cc(),I.cc(),I.Yb(26,"div",54),I.ad(27,Id,13,2,"ul",27),I.ad(28,Gd,22,1,"table",55),I.ad(29,Sd,4,0,"ng-container",27),I.cc()}if(2&t){var n=I.Oc(14),o=I.Oc(22),i=I.pc();I.Gb(11),I.yc("matDatepicker",n),I.Gb(1),I.yc("for",n),I.Gb(7),I.yc("min",null==i.control.fromDate?null:i.control.fromDate.value)("matDatepicker",o),I.Gb(1),I.yc("for",o),I.Gb(4),I.yc("ngIf",i.permission.hasPermission(I.Ec(10,wd),I.Ec(11,Md))),I.Gb(1),I.yc("ngIf",i.permission.hasPermission(I.Ec(12,wd),I.Ec(13,Nd))),I.Gb(2),I.yc("ngIf",0!=(null==i.indiviAtten?null:i.indiviAtten.length)),I.Gb(1),I.yc("ngIf",0!=(null==i.indiviAtten?null:i.indiviAtten.length)),I.Gb(1),I.yc("ngIf",0===(null==i.indiviAtten?null:i.indiviAtten.length))}}var Td,Ld=[{path:"",children:[{path:"employee-attendance",component:me,data:{title:"Employee Attendance",breadcrumb:"Attendance / Employee"}},{path:"student-attendance",component:$c,data:{title:"Student Attendance",breadcrumb:"Student Attendance"}},{path:"report-card/search-section",component:on,data:{title:"Search Section",breadcrumb:"Report Card / Search"}},{path:"report-card/list",component:pn,data:{title:"List of Report Card",breadcrumb:"Report Card / List"}},{path:"report-card/view/:termId/:termAssessmentId",component:Cn,data:{title:"View Report Card",breadcrumb:"Report Card / View"}},{path:"report-card/preview/:studentId/:termId/:termAssessmentId",component:qn,data:{title:"Preview Report Card",breadcrumb:"Report Card / Preview"}},{path:"studentNoMove",component:$o,data:{title:"Nomovement Report",breadcrumb:"Student No Movement Report"}},{path:"employeeNoMove",component:po,data:{title:"Nomovement Report",breadcrumb:"Employee No Movement Report"}},{path:"visitorNoMove",component:(Td=function(){return _createClass((function t(e,c,n,o,i,a,d,r){_classCallCheck(this,t),this.modelService=e,this.visiterServ=c,this.configServ=n,this.severdatePipe=o,this.loader=i,this.permission=a,this.toaster=d,this.apiService=r,this.customerId="",this.schoolId="",this.empPagination={filterDepartment:"",filterPosition:""},this.configServ.init(),this.customerId=this.configServ.customerId,this.schoolId=this.configServ.branchId}),[{key:"ngOnInit",value:function(){this.getVisiters(),this.form()}},{key:"form",value:function(){this.basicForm=new a.j({type:new a.g(""),date:new a.g(""),mobileNo:new a.g(""),fromDate:new a.g(""),toDate:new a.g("")})}},{key:"control",get:function(){return this.basicForm.controls}},{key:"getVisiters",value:function(){var t=this;this.visiterServ.getList(void 0).subscribe((function(e){"success"==e.keyword&&(t.visitors=e.visitors,console.log(t.visitors,"visiters"))}))}},{key:"reset",value:function(){this.basicForm.patchValue({date:"",mobileNo:"",fromDate:"",toDate:""}),this.visitorName=""}},{key:"dateChange",value:function(){this.basicForm.patchValue({toDate:""})}},{key:"getFormatedDate",value:function(t){return this.severdatePipe.transform(t)}},{key:"typeChange",value:function(){this.reset(),this.dailyAtten=[],this.indiviAtten=[]}},{key:"checkRequired",value:function(){$.a.fire({title:"Check Required",text:"Fill Mandatory Fields",icon:"warning"})}},{key:"getDailyAtten",value:function(){var t,e=this;this.dailyAtten=[];var c=this.severdatePipe.transform(null===(t=this.basicForm.value)||void 0===t?void 0:t.date);if(""!=c){var n={customerId:this.customerId,schoolId:this.schoolId,thisDate:c};this.loader.open(),this.modelService.getVisitorDailyReport(n).subscribe((function(t){t.datas.length>0?(e.dailyAtten=t.datas,e.loader.close(),e.toaster.present("Report viewed successfully","")):(e.loader.close(),e.dailyAtten=[],e.toaster.present("No data found...",""))}))}else this.checkRequired()}},{key:"downloadDailyAtten",value:function(){var t,e=this,c=this.severdatePipe.transform(null===(t=this.basicForm.value)||void 0===t?void 0:t.date);if(""!=c){var n={date:c},o=new O.e;for(var i in n)o=o.set(i,n[i]);this.loader.open(),this.apiService.FilterDownloadFile("visDailyNoMovement",o).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:e.loader.close();break;case O.d.Response:var c=new Blob([t.body],{type:t.body.type}),n=document.createElement("a");n.setAttribute("style","display:none;"),document.body.appendChild(n),n.download="Visitor Daily Nomovement Report",n.href=URL.createObjectURL(c),n.target="_blank",n.click(),document.body.removeChild(n),e.loader.close()}}))}else this.checkRequired()}},{key:"getIndividulAtten",value:function(){var t,e,c,n,o,i,a=this,d=this.basicForm.value,r=this.getFormatedDate(null===(t=d)||void 0===t?void 0:t.fromDate),l=this.getFormatedDate(null===(e=d)||void 0===e?void 0:e.toDate);if(""!=(null===(c=d)||void 0===c?void 0:c.mobileNo)&&""!=r&&""!=l){this.indiviAtten=[];var s={customerId:this.customerId,schoolId:this.schoolId,visitorMobile:null===(n=d)||void 0===n?void 0:n.mobileNo,fromDate:r,toDate:l},u=this.visitors.find((function(t){var e,c;return(null===(e=t)||void 0===e?void 0:e.mobileNo)==(null===(c=d)||void 0===c?void 0:c.mobileNo)}));console.log(null===(o=u)||void 0===o?void 0:o.mobileNo,"Mobile No"),(null===(i=d)||void 0===i?void 0:i.mobileNo)?(this.loader.open(),this.modelService.getVisitorIndReport(s).subscribe((function(t){var e,c,n;(null===(e=t)||void 0===e?void 0:e.datas.length)>0?(a.indiviAtten=null===(c=t)||void 0===c?void 0:c.datas,a.visitorName=null===(n=t)||void 0===n?void 0:n.visitorName,a.loader.close(),a.toaster.present("Report viewed successfully","")):(a.loader.close(),a.indiviAtten=[],a.visitorName="",a.toaster.present("No data found...",""))}))):$.a.fire({title:"Visitor Tracking",text:"Please provide the valid visitor number",icon:"error"})}else this.checkRequired()}},{key:"downloadIndAtten",value:function(){var t,e,c,n,o=this,i=this.basicForm.value,a=this.severdatePipe.transform(null===(t=i)||void 0===t?void 0:t.fromDate),d=this.severdatePipe.transform(null===(e=i)||void 0===e?void 0:e.toDate);if(""!=(null===(c=i)||void 0===c?void 0:c.mobileNo)&&""!=a&&""!=d){var r={visitorMobile:null===(n=i)||void 0===n?void 0:n.mobileNo,fromDate:a,toDate:d},l=new O.e;for(var s in r)l=l.set(s,r[s]);this.loader.open(),this.apiService.FilterDownloadFile("visIndividualNoMovement",l).subscribe((function(t){switch(t.type){case O.d.DownloadProgress:o.loader.close();break;case O.d.Response:var e=new Blob([t.body],{type:t.body.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),document.body.appendChild(c),c.download="Visitor Individual Nomovement Report",c.href=URL.createObjectURL(e),c.target="_blank",c.click(),document.body.removeChild(c),o.loader.close()}}))}else this.checkRequired()}}])}(),Td.\u0275fac=function(t){return new(t||Td)(I.Xb(Bn.a),I.Xb(Ia.a),I.Xb(wn.a),I.Xb(T.d),I.Xb(G.a),I.Xb(W.a),I.Xb(S.a),I.Xb(P.a))},Td.\u0275cmp=I.Rb({type:Td,selectors:[["app-create"]],features:[I.Fb([{provide:s.c,useClass:A.b},{provide:s.f,useValue:A.a},T.d])],decls:21,vars:3,consts:[[1,"create_btn"],[1,""],[1,"p-0"],["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-xs","100"],[1,"card-title-text"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","100",1,"mt-0","mb-4"],["aria-label","Select an option","name","report","formControlName","type",1,"ml-15",3,"change"],["value","Daily",1,"mr-40"],["value","Individual"],["class","daily-block",4,"ngIf"],["class","individual-block mt-12",4,"ngIf"],[1,"daily-block"],["fxLayout","row wrap",1,"mt-12"],["fxFlex","100","fxFlex.gt-xs","5",1,"pt-12"],["fxFlex","100","fxFlex.gt-xs","15",1,""],["appearance","fill"],["matInput","","formControlName","date",3,"matDatepicker","focus","click"],["matSuffix","",3,"for"],["picker",""],["fxFlex","100","fxFlex.gt-xs","20",1,"mt-8","ml-12"],["mat-raised-button","","color","primary","class","btn-primary-bg",3,"click",4,"ngIf"],["mat-button","","color","primary",3,"click",4,"ngIf"],[1,"border-top"],["class","mt-12",4,"ngIf"],[4,"ngIf"],["mat-raised-button","","color","primary",1,"btn-primary-bg",3,"click"],["mat-button","","color","primary",3,"click"],[1,"material-icons","f30"],[1,"mt-12"],[1,"ml-16"],[1,"employee-table","mt-12"],["rowspan","2",2,"width","17%","text-align","left"],["rowspan","2",2,"width","8%","text-align","left"],["colspan","2",2,"width","20%","text-align","center"],["rowspan","2",2,"width","23%","text-align","center"],[2,"width","10%","text-align","center"],[4,"ngFor","ngForOf"],[2,"text-align","left"],[2,"text-align","center"],[1,"text-center"],[1,"individual-block","mt-12"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","16",1,"mt-12","mr-16"],["matInput","","formControlName","mobileNo","placeholder",""],["fxFlex","100","fxFlex.gt-xs","13",1,"mr-16"],["matInput","","formControlName","fromDate",3,"matDatepicker","dateChange","focus","click"],["picker2",""],["fxFlex","100","fxFlex.gt-xs","13",1,""],["matInput","","formControlName","toDate",3,"min","matDatepicker","focus","click"],["picker3",""],["fxFlex","100","fxFlex.gt-xs","12",1,"mt-12","ml-4"],[2,"border-top","1px solid #ccc"],["class","employee-table mt-12",4,"ngIf"],["rowspan","2",2,"width","10%","text-align","center"],["rowspan","2",2,"width","23%","text-align","left"],["colspan","2",2,"width","5%","text-align","center"]],template:function(t,e){1&t&&(I.Yb(0,"div",0),I.dc(1,"div",1),I.dc(2,"mat-card",2),I.dc(3,"mat-card-title",1),I.dc(4,"div",3),I.dc(5,"div",4),I.dc(6,"div",5),I.cd(7,"No Movement - Visitor"),I.cc(),I.cc(),I.cc(),I.Yb(8,"mat-divider"),I.cc(),I.dc(9,"mat-card-content"),I.dc(10,"form",6),I.dc(11,"div",7),I.dc(12,"div",4),I.dc(13,"div",8),I.dc(14,"mat-radio-group",9),I.lc("change",(function(t){return e.typeChange()})),I.dc(15,"mat-radio-button",10),I.cd(16,"Daily"),I.cc(),I.dc(17,"mat-radio-button",11),I.cd(18,"Individual"),I.cc(),I.cc(),I.cc(),I.cc(),I.cc(),I.ad(19,Fd,18,10,"div",12),I.ad(20,Ad,30,14,"div",13),I.cc(),I.cc(),I.cc(),I.cc()),2&t&&(I.Gb(10),I.yc("formGroup",e.basicForm),I.Gb(9),I.yc("ngIf","Daily"==(null==e.control.type?null:e.control.type.value)),I.Gb(1),I.yc("ngIf","Individual"==e.control.type.value))},directives:[r.a,r.f,U.c,U.a,H.a,r.c,a.D,a.u,a.k,b.b,a.t,a.i,b.a,i.o,J.b,p.b,a.c,u.b,u.d,J.f,u.a,d.a,i.n,J.e],pipes:[T.c,i.e],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.batch-name[_ngcontent-%COMP%]{font-size:24px;margin-left:-11px}.employee-table[_ngcontent-%COMP%]{border:1px solid #ccc}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 8px!important}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid hsla(0,0%,80%,.4588235294117647)!important;border-width:1px 1px 0!important;white-space:nowrap}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;font-weight:900!important;padding:0 8px!important}table[_ngcontent-%COMP%]{border-spacing:0}/[_ngcontent-%COMP%] /[_ngcontent-%COMP%] .sort[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:flex!important}.f30[_ngcontent-%COMP%]{font-size:30px}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.employee-table[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:10px!important}.mt-20[_ngcontent-%COMP%]{margin-top:20px}.daily-block.Individual[_ngcontent-%COMP%], .daily-block.Monthly[_ngcontent-%COMP%]{display:none}span.material-icons.sort-icon[_ngcontent-%COMP%]{position:relative;top:6px}mat-card-title[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:90%!important}.card-title-text[_ngcontent-%COMP%]{padding:5px 26px!important}ul[_ngcontent-%COMP%]{display:-webkit-box;list-style:none;padding-inline-start:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:30px}@font-face{font-family:Roboto,sans-serif!important;src:url(https://fonts.googleapis.com/css2?display=swap&family=Roboto%3Aital%2Cwght%400%2C100%3B0%2C400%3B0%2C500%3B1%2C400)}"]}),Td),data:{title:"Nomovement Report",breadcrumb:"Visitor No Movement Report"}},{path:"not-allowed/student",component:Ui,data:{title:"Restricted Area Student",breadcrumb:"Restricted Area / Student"}},{path:"not-allowed/employee",component:bi,data:{title:"Restricted Area Employee",breadcrumb:"Restricted Area / Employee"}},{path:"not-allowed/visitor",component:Ua,data:{title:"Restricted Area Visitor",breadcrumb:"Restricted Area / Visitor"}},{path:"sos/student",component:Pa,data:{title:"SOS Student",breadcrumb:"SOS / Student"}},{path:"sos/employee",component:bd,data:{title:"SOS Employee",breadcrumb:"SOS / Employee"}}]}],Ed=c("aYsj"),Vd=c("wZkO");c.d(e,"AppReportsModule",(function(){return jd}));var Rd,jd=((Rd=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=I.Vb({type:Rd}),Rd.\u0275inj=I.Ub({factory:function(t){return new(t||Rd)},imports:[[i.c,a.m,a.z,p.c,f.c,r.e,u.c,s.n,h.b,b.c,l.b,y.c,d.b,m.b,v.a,g.a,x.b,K.b,C.a,k.b,_.c,Sn.a,F.p,Vd.d,w.a,Ed.a,o.k.forChild(Ld)]]}),Rd)},jKzE:function(t,e,c){"use strict";c.d(e,"a",(function(){return i}));var n=c("/Tr7"),o=c("jIYg");function i(t){Object(o.a)(1,arguments);var e=Object(n.a)(t),c=e.getMonth();return e.setFullYear(e.getFullYear(),c+1,0),e.setHours(23,59,59,999),e}},k9Bo:function(t,e,c){"use strict";var n,o=c("tk/3"),i=c("2Vo4"),a=c("lJxs"),d=c("Attm"),r=c("fXoL"),l=((n=function(){return _createClass((function t(e){_classCallCheck(this,t),this.adapter=e}),[{key:"adapt",value:function(t){var e=this,c=[];return t.data.forEach((function(t){c.push(e.adapter.adapt(t))})),{keyword:t.keyword,message:t.message,classes:c,pageSize:t.count,page:t.page}}}])}()).\u0275fac=function(t){return new(t||n)(r.hc(d.a))},n.\u0275prov=r.Tb({token:n,factory:n.\u0275fac,providedIn:"root"}),n),s=c("qc5V");c.d(e,"a",(function(){return m}));var u,m=((u=function(){return _createClass((function t(e,c){_classCallCheck(this,t),this.adapter=e,this.apiService=c,this.recordAddedSubject=new i.a([{}]),this.recordUpdatedSubject=new i.a([{}]),this.userId=0}),[{key:"create",value:function(t){var e=this;return this.apiService.post("class/create",t).pipe(Object(a.a)((function(t){return e.adapter.adapt(t)})))}},{key:"update",value:function(t){var e=this;return this.apiService.post("class/update",t).pipe(Object(a.a)((function(t){return e.adapter.adapt(t)})))}},{key:"status",value:function(t,e){return this.apiService.post(2!=e?"class/status":"class/delete",t)}},{key:"getListForClass",value:function(t){var e=this,c=new o.e;for(var n in t)c=c.set(n,t[n]);return this.apiService.get("class",c).pipe(Object(a.a)((function(t){return e.adapter.adapt(t)})))}},{key:"getList",value:function(){var t=this,e=new o.e;return this.apiService.get("class",e).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()}},{key:"getClassByBatch",value:function(t){var e=this;return this.apiService.get("loadClassByBatch/".concat(t)).pipe(Object(a.a)((function(t){return e.adapter.adapt(t)})))}},{key:"getClasses",value:function(t){var e=this;return this.apiService.get("getAttendClass/".concat(t)).pipe(Object(a.a)((function(t){return e.adapter.adapt(t)})))}}])}()).\u0275fac=function(t){return new(t||u)(r.hc(l),r.hc(s.a))},u.\u0275prov=r.Tb({token:u,factory:u.\u0275fac,providedIn:"root"}),u)},rnHP:function(t,e,c){"use strict";var n=_createClass((function t(){_classCallCheck(this,t),this.sectionId="",this.sectionName="",this.status=""})),o=c("fXoL");c.d(e,"a",(function(){return a}));var i,a=((i=function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:"adapt",value:function(t){return this.obj=new n,this.obj.sectionId=t.section_id,this.obj.sectionName=t.section_name,this.obj.status=t.status,this.obj}}])}()).\u0275fac=function(t){return new(t||i)},i.\u0275prov=o.Tb({token:i,factory:i.\u0275fac,providedIn:"root"}),i)},wr8E:function(t,e,c){"use strict";var n,o,i,a=c("tk/3"),d=c("2Vo4"),r=c("lJxs"),l=c("g3s5"),s=c("fXoL"),u=((n=function(){return _createClass((function t(e){_classCallCheck(this,t),this.adapter=e}),[{key:"adapt",value:function(t){var e=this,c=[];return t.data.forEach((function(t){c.push(e.adapter.adapt(t))})),{keyword:t.keyword,message:t.message,positions:c,pageSize:t.count,page:t.page}}}])}()).\u0275fac=function(t){return new(t||n)(s.hc(l.a))},n.\u0275prov=s.Tb({token:n,factory:n.\u0275fac,providedIn:"root"}),n),m=c("qc5V"),p=c("Lzaa"),f=((i=function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:"adapt",value:function(t){return this.obj=new p.a,this.obj.categoryId=t.employee_category_id,this.obj.categoryName=t.name,this.obj.branchId=t.branch_id,this.obj.status=t.status,this.obj}}])}()).\u0275fac=function(t){return new(t||i)},i.\u0275prov=s.Tb({token:i,factory:i.\u0275fac,providedIn:"root"}),i),h=((o=function(){return _createClass((function t(e){_classCallCheck(this,t),this.adapter=e}),[{key:"adapt",value:function(t){var e=this,c=[];return t.data.forEach((function(t){c.push(e.adapter.adapt(t))})),{keyword:t.keyword,message:t.message,categories:c,pageSize:t.total_size,page:t.page}}}])}()).\u0275fac=function(t){return new(t||o)(s.hc(f))},o.\u0275prov=s.Tb({token:o,factory:o.\u0275fac,providedIn:"root"}),o);c.d(e,"a",(function(){return v}));var b,v=((b=function(){return _createClass((function t(e,c,n){_classCallCheck(this,t),this.adapter=e,this.catAdapter=c,this.apiService=n,this.recordAddedSubject=new d.a([{}]),this.recordUpdatedSubject=new d.a([{}]),this.userId=0}),[{key:"create",value:function(t){var e=this,c=new FormData;return c.append("position_name",t.positionName),c.append("employee_category_id",t.categoryId),this.apiService.post("position/create",c).pipe(Object(r.a)((function(t){return e.adapter.adapt(t)})))}},{key:"update",value:function(t){var e=this,c=new FormData;return c.append("position_name",t.positionName),c.append("employee_category_id",t.categoryId),c.append("employee_position_id",t.positionId),this.apiService.post("position/update",c).pipe(Object(r.a)((function(t){return e.adapter.adapt(t)})))}},{key:"status",value:function(t,e){return this.apiService.post(2!=e?"position/status":"position/delete",t)}},{key:"getList",value:function(t){var e=this,c=new a.e;for(var n in t)c=c.set(n,t[n]);return this.apiService.get("position",c).pipe(Object(r.a)((function(t){return e.adapter.adapt(t)})))}},{key:"getCategory",value:function(){var t=this,e=new a.e;return this.apiService.get("category ",e).pipe(Object(r.a)((function(e){return t.catAdapter.adapt(e)})))}},{key:"getRecordAddedSub",value:function(){return this.recordAddedSubject.asObservable()}},{key:"getRecordUpdatedSub",value:function(){return this.recordUpdatedSubject.asObservable()}},{key:"getpostion",value:function(t){var e=this;return this.apiService.get("employee/loadPosition/".concat(t)).pipe(Object(r.a)((function(t){return e.adapter.adapt(t)})))}}])}()).\u0275fac=function(t){return new(t||b)(s.hc(u),s.hc(h),s.hc(m.a))},b.\u0275prov=s.Tb({token:b,factory:b.\u0275fac,providedIn:"root"}),b)}}]);
/var/www/krbed.in/fe432618/.././panel618/../../school_portal_admin/59-es5.e1a0b79b2a7bbdfd938f.js