1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3732],{3732:(H,T,d)=>{d.r(T),d.d(T,{TimesheetalertPageModule:()=>N});var A=d(6895),u=d(4719),x=d(443),s=d(603),g=d(5861),p=d(537),h=d(6227),Z=d(7221),y=d(5035),e=d(6353),b=d(4219),v=d(6226),U=d(529),f=d(3056);function q(o,r){if(1&o){const n=e.EpF();e.TgZ(0,"ion-button",8),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.updatetimesheetdetails())}),e._uU(1,"Save"),e.qZA()}if(2&o){const n=e.oxw();e.Q6J("disabled","Yes"==n.emailalertflag&&""==n.alertstarttime||"Yes"==n.emailalertflag&&""==n.alertendtime||"Yes"==n.emailalertflag&&""==n.alertdueday||"Yes"==n.emailalertflag&&""==n.emailalertflag||"Yes"==n.emailalertflag&&""==n.textbox)}}function w(o,r){if(1&o){const n=e.EpF();e.TgZ(0,"ion-button",8),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.updatetimesheetdetails())}),e._uU(1,"Save"),e.qZA()}if(2&o){const n=e.oxw();e.Q6J("disabled","Yes"==n.emailalertflag&&""==n.alertstarttime||"Yes"==n.emailalertflag&&""==n.alertendtime||"Yes"==n.emailalertflag&&""==n.emailalertflag||"Yes"==n.emailalertflag&&""==n.textbox)}}function M(o,r){if(1&o){const n=e.EpF();e.TgZ(0,"ion-button",8),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.updateattendancedetails())}),e._uU(1,"Save"),e.qZA()}if(2&o){const n=e.oxw();e.Q6J("disabled","Yes"==n.emailalertflagAttendance&&""==n.alertstarttimeAttendance||"Yes"==n.emailalertflagAttendance&&""==n.alertendtimeAttendance||"Yes"==n.emailalertflagAttendance&&"0"==n.selectedItems.length||"Yes"==n.emailalertflagAttendance&&""==n.emailalertflagAttendance||"Yes"==n.emailalertflagAttendance&&""==n.textboxAttendance)}}function C(o,r){if(1&o){const n=e.EpF();e.TgZ(0,"ion-item",53)(1,"ion-label",54),e._uU(2,"Timesheet end day "),e.qZA(),e.TgZ(3,"ion-select",55),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.scroll())})("ngModelChange",function(i){e.CHM(n);const a=e.oxw(2);return e.KtG(a.alertdueday=i)}),e.TgZ(4,"ion-select-option",14),e._uU(5,"Sunday"),e.qZA(),e.TgZ(6,"ion-select-option",15),e._uU(7,"Monday"),e.qZA(),e.TgZ(8,"ion-select-option",16),e._uU(9,"Tuesday"),e.qZA(),e.TgZ(10,"ion-select-option",17),e._uU(11,"Wednesday"),e.qZA(),e.TgZ(12,"ion-select-option",18),e._uU(13,"Thursday"),e.qZA(),e.TgZ(14,"ion-select-option",19),e._uU(15,"Friday"),e.qZA(),e.TgZ(16,"ion-select-option",20),e._uU(17,"Saturday"),e.qZA()()()}if(2&o){const n=e.oxw(2);e.xp6(3),e.Q6J("ngModel",n.alertdueday)}}function k(o,r){if(1&o){const n=e.EpF();e.TgZ(0,"ion-button",56),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.updatetimesheetdetails())}),e._uU(1,"Save"),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("disabled","Yes"==n.emailalertflag&&""==n.alertstarttime||"Yes"==n.emailalertflag&&""==n.alertendtime||"Yes"==n.emailalertflag&&""==n.alertdueday||"Yes"==n.emailalertflag&&""==n.emailalertflag||"Yes"==n.emailalertflag&&""==n.textbox)}}function J(o,r){if(1&o){const n=e.EpF();e.TgZ(0,"ion-button",56),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.updatetimesheetdetails())}),e._uU(1,"Save"),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("disabled","Yes"==n.emailalertflag&&""==n.alertstarttime||"Yes"==n.emailalertflag&&""==n.alertendtime||"Yes"==n.emailalertflag&&""==n.emailalertflag||"Yes"==n.emailalertflag&&""==n.textbox)}}function S(o,r){if(1&o){const n=e.EpF();e.TgZ(0,"ion-content")(1,"ion-grid")(2,"ion-card-content",9),e._UZ(3,"br"),e.TgZ(4,"p"),e._UZ(5,"ion-icon",10),e._uU(6),e.qZA(),e.TgZ(7,"ion-item",11)(8,"ion-label",12),e._uU(9,"Alert start time "),e.qZA(),e.TgZ(10,"ion-select",13),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.scroll())})("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.alertstarttime=i)}),e.TgZ(11,"ion-select-option",14),e._uU(12,"00:00"),e.qZA(),e.TgZ(13,"ion-select-option",15),e._uU(14,"01:00"),e.qZA(),e.TgZ(15,"ion-select-option",16),e._uU(16,"02:00"),e.qZA(),e.TgZ(17,"ion-select-option",17),e._uU(18,"03:00"),e.qZA(),e.TgZ(19,"ion-select-option",18),e._uU(20,"04:00"),e.qZA(),e.TgZ(21,"ion-select-option",19),e._uU(22,"05:00"),e.qZA(),e.TgZ(23,"ion-select-option",20),e._uU(24,"06:00"),e.qZA(),e.TgZ(25,"ion-select-option",21),e._uU(26,"07:00"),e.qZA(),e.TgZ(27,"ion-select-option",22),e._uU(28,"08:00"),e.qZA(),e.TgZ(29,"ion-select-option",23),e._uU(30,"09:00"),e.qZA(),e.TgZ(31,"ion-select-option",24),e._uU(32,"10:00"),e.qZA(),e.TgZ(33,"ion-select-option",25),e._uU(34,"11:00"),e.qZA(),e.TgZ(35,"i
1on-select-option",26),e._uU(36,"12:00"),e.qZA(),e.TgZ(37,"ion-select-option",27),e._uU(38,"13:00"),e.qZA(),e.TgZ(39,"ion-select-option",28),e._uU(40,"14:00"),e.qZA(),e.TgZ(41,"ion-select-option",29),e._uU(42,"15:00"),e.qZA(),e.TgZ(43,"ion-select-option",30),e._uU(44,"16:00"),e.qZA(),e.TgZ(45,"ion-select-option",31),e._uU(46,"17:00"),e.qZA(),e.TgZ(47,"ion-select-option",32),e._uU(48,"18:00"),e.qZA(),e.TgZ(49,"ion-select-option",33),e._uU(50,"19:00"),e.qZA(),e.TgZ(51,"ion-select-option",34),e._uU(52,"20:00"),e.qZA(),e.TgZ(53,"ion-select-option",35),e._uU(54,"21:00"),e.qZA(),e.TgZ(55,"ion-select-option",36),e._uU(56,"22:00"),e.qZA(),e.TgZ(57,"ion-select-option",37),e._uU(58,"23:00"),e.qZA()()(),e.TgZ(59,"ion-item",11)(60,"ion-label",12),e._uU(61,"Alert end time "),e.qZA(),e.TgZ(62,"ion-select",13),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.scroll())})("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.alertendtime=i)}),e.TgZ(63,"ion-select-option",14),e._uU(64,"00:00"),e.qZA(),e.TgZ(65,"ion-select-option",15),e._uU(66,"01:00"),e.qZA(),e.TgZ(67,"ion-select-option",16),e._uU(68,"02:00"),e.qZA(),e.TgZ(69,"ion-select-option",17),e._uU(70,"03:00"),e.qZA(),e.TgZ(71,"ion-select-option",18),e._uU(72,"04:00"),e.qZA(),e.TgZ(73,"ion-select-option",19),e._uU(74,"05:00"),e.qZA(),e.TgZ(75,"ion-select-option",20),e._uU(76,"06:00"),e.qZA(),e.TgZ(77,"ion-select-option",21),e._uU(78,"07:00"),e.qZA(),e.TgZ(79,"ion-select-option",22),e._uU(80,"08:00"),e.qZA(),e.TgZ(81,"ion-select-option",23),e._uU(82,"09:00"),e.qZA(),e.TgZ(83,"ion-select-option",24),e._uU(84,"10:00"),e.qZA(),e.TgZ(85,"ion-select-option",25),e._uU(86,"11:00"),e.qZA(),e.TgZ(87,"ion-select-option",26),e._uU(88,"12:00"),e.qZA(),e.TgZ(89,"ion-select-option",27),e._uU(90,"13:00"),e.qZA(),e.TgZ(91,"ion-select-option",28),e._uU(92,"14:00"),e.qZA(),e.TgZ(93,"ion-select-option",29),e._uU(94,"15:00"),e.qZA(),e.TgZ(95,"ion-select-option",30),e._uU(96,"16:00"),e.qZA(),e.TgZ(97,"ion-select-option",31),e._uU(98,"17:00"),e.qZA(),e.TgZ(99,"ion-select-option",32),e._uU(100,"18:00"),e.qZA(),e.TgZ(101,"ion-select-option",33),e._uU(102,"19:00"),e.qZA(),e.TgZ(103,"ion-select-option",34),e._uU(104,"20:00"),e.qZA(),e.TgZ(105,"ion-select-option",35),e._uU(106,"21:00"),e.qZA(),e.TgZ(107,"ion-select-option",36),e._uU(108,"22:00"),e.qZA(),e.TgZ(109,"ion-select-option",37),e._uU(110,"23:00"),e.qZA()()(),e.YNc(111,C,18,1,"ion-item",38),e.TgZ(112,"ion-label",39),e._uU(113,"Send email alert "),e.qZA(),e.TgZ(114,"ion-radio-group",40),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.emailalertflag=i)}),e.TgZ(115,"ion-row")(116,"ion-col",41)(117,"ion-item",42)(118,"ion-label",43),e._uU(119,"Yes"),e.qZA(),e._UZ(120,"ion-radio",44),e.qZA()(),e.TgZ(121,"ion-col",41)(122,"ion-item",42)(123,"ion-label",43),e._uU(124,"No"),e.qZA(),e._UZ(125,"ion-radio",45),e.qZA()()()(),e.TgZ(126,"ion-label",46),e._uU(127,"Alert email template"),e.qZA(),e.TgZ(128,"ion-item",47)(129,"ion-textarea",48),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.textbox=i)})("keypress",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.preventblankcharacter(i,a.textbox))}),e.qZA()(),e._UZ(130,"br"),e.TgZ(131,"ion-row",49)(132,"div",50),e.YNc(133,k,2,1,"ion-button",51),e.YNc(134,J,2,1,"ion-button",51),e.qZA()(),e._UZ(135,"button",52),e.qZA()()()}if(2&o){const n=e.oxw();e.xp6(6),e.hij(" ",n.modehelptext," "),e.xp6(4),e.Q6J("ngModel",n.alertstarttime),e.xp6(52),e.Q6J("ngModel",n.alertendtime),e.xp6(49),e.Q6J("ngIf","WTS"==n.mode),e.xp6(3),e.Q6J("ngModel",n.emailalertflag),e.xp6(6),e.Q6J("checked","Yes"==n.emailalertflag),e.xp6(5),e.Q6J("checked","No"==n.emailalertflag),e.xp6(4),e.Q6J("ngModel",n.textbox),e.xp6(4),e.Q6J("ngIf",!n.validity&&"BMTS"!=n.mode),e.xp6(1),e.Q6J("ngIf",!n.validity&&"BMTS"==n.mode)}}function Y(o,r){if(1&o){const n=e.EpF();e.TgZ(0,"ion-button",56),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.updateattendancedetails())}),e._uU(1,"Save"),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("disabled","Yes"==n.emailalertflagAttendance&&""==n.alertstarttimeAttendance||"Yes"==n.emailalertflagAttendance&&""==n.alertendtimeAttendance||"Yes"==n.emailalertflagAttendance&&"0"==n.selectedItems.length||"Yes"==n.emailalertflagAttendance&&""==n.emailalertflagAttendance||"Yes"==n.emailalertflagAttendance&&""==n.textboxAttend
1ance)}}function P(o,r){if(1&o){const n=e.EpF();e.TgZ(0,"ion-content")(1,"ion-grid")(2,"ion-card-content",9),e._UZ(3,"br"),e.TgZ(4,"p"),e._UZ(5,"ion-icon",10),e._uU(6),e.qZA(),e.TgZ(7,"ion-item",11)(8,"ion-label",12),e._uU(9,"Alert start time "),e.qZA(),e.TgZ(10,"ion-select",13),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.scroll())})("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.alertstarttimeAttendance=i)}),e.TgZ(11,"ion-select-option",14),e._uU(12,"00:00"),e.qZA(),e.TgZ(13,"ion-select-option",15),e._uU(14,"01:00"),e.qZA(),e.TgZ(15,"ion-select-option",16),e._uU(16,"02:00"),e.qZA(),e.TgZ(17,"ion-select-option",17),e._uU(18,"03:00"),e.qZA(),e.TgZ(19,"ion-select-option",18),e._uU(20,"04:00"),e.qZA(),e.TgZ(21,"ion-select-option",19),e._uU(22,"05:00"),e.qZA(),e.TgZ(23,"ion-select-option",20),e._uU(24,"06:00"),e.qZA(),e.TgZ(25,"ion-select-option",21),e._uU(26,"07:00"),e.qZA(),e.TgZ(27,"ion-select-option",22),e._uU(28,"08:00"),e.qZA(),e.TgZ(29,"ion-select-option",23),e._uU(30,"09:00"),e.qZA(),e.TgZ(31,"ion-select-option",24),e._uU(32,"10:00"),e.qZA(),e.TgZ(33,"ion-select-option",25),e._uU(34,"11:00"),e.qZA(),e.TgZ(35,"ion-select-option",26),e._uU(36,"12:00"),e.qZA(),e.TgZ(37,"ion-select-option",27),e._uU(38,"13:00"),e.qZA(),e.TgZ(39,"ion-select-option",28),e._uU(40,"14:00"),e.qZA(),e.TgZ(41,"ion-select-option",29),e._uU(42,"15:00"),e.qZA(),e.TgZ(43,"ion-select-option",30),e._uU(44,"16:00"),e.qZA(),e.TgZ(45,"ion-select-option",31),e._uU(46,"17:00"),e.qZA(),e.TgZ(47,"ion-select-option",32),e._uU(48,"18:00"),e.qZA(),e.TgZ(49,"ion-select-option",33),e._uU(50,"19:00"),e.qZA(),e.TgZ(51,"ion-select-option",34),e._uU(52,"20:00"),e.qZA(),e.TgZ(53,"ion-select-option",35),e._uU(54,"21:00"),e.qZA(),e.TgZ(55,"ion-select-option",36),e._uU(56,"22:00"),e.qZA(),e.TgZ(57,"ion-select-option",37),e._uU(58,"23:00"),e.qZA()()(),e.TgZ(59,"ion-item",11)(60,"ion-label",12),e._uU(61,"Alert end time "),e.qZA(),e.TgZ(62,"ion-select",13),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.scroll())})("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.alertendtimeAttendance=i)}),e.TgZ(63,"ion-select-option",14),e._uU(64,"00:00"),e.qZA(),e.TgZ(65,"ion-select-option",15),e._uU(66,"01:00"),e.qZA(),e.TgZ(67,"ion-select-option",16),e._uU(68,"02:00"),e.qZA(),e.TgZ(69,"ion-select-option",17),e._uU(70,"03:00"),e.qZA(),e.TgZ(71,"ion-select-option",18),e._uU(72,"04:00"),e.qZA(),e.TgZ(73,"ion-select-option",19),e._uU(74,"05:00"),e.qZA(),e.TgZ(75,"ion-select-option",20),e._uU(76,"06:00"),e.qZA(),e.TgZ(77,"ion-select-option",21),e._uU(78,"07:00"),e.qZA(),e.TgZ(79,"ion-select-option",22),e._uU(80,"08:00"),e.qZA(),e.TgZ(81,"ion-select-option",23),e._uU(82,"09:00"),e.qZA(),e.TgZ(83,"ion-select-option",24),e._uU(84,"10:00"),e.qZA(),e.TgZ(85,"ion-select-option",25),e._uU(86,"11:00"),e.qZA(),e.TgZ(87,"ion-select-option",26),e._uU(88,"12:00"),e.qZA(),e.TgZ(89,"ion-select-option",27),e._uU(90,"13:00"),e.qZA(),e.TgZ(91,"ion-select-option",28),e._uU(92,"14:00"),e.qZA(),e.TgZ(93,"ion-select-option",29),e._uU(94,"15:00"),e.qZA(),e.TgZ(95,"ion-select-option",30),e._uU(96,"16:00"),e.qZA(),e.TgZ(97,"ion-select-option",31),e._uU(98,"17:00"),e.qZA(),e.TgZ(99,"ion-select-option",32),e._uU(100,"18:00"),e.qZA(),e.TgZ(101,"ion-select-option",33),e._uU(102,"19:00"),e.qZA(),e.TgZ(103,"ion-select-option",34),e._uU(104,"20:00"),e.qZA(),e.TgZ(105,"ion-select-option",35),e._uU(106,"21:00"),e.qZA(),e.TgZ(107,"ion-select-option",36),e._uU(108,"22:00"),e.qZA(),e.TgZ(109,"ion-select-option",37),e._uU(110,"23:00"),e.qZA()()(),e.TgZ(111,"ion-item",57)(112,"ion-label"),e._uU(113,"Timesheet alert days"),e.qZA()(),e.TgZ(114,"ng-multiselect-dropdown",58),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.selectedItems=i)}),e.qZA(),e.TgZ(115,"ion-grid",59)(116,"ion-row")(117,"ion-col",60)(118,"ion-label",61),e._uU(119,"Send email alert "),e.qZA(),e.TgZ(120,"ion-radio-group",40),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.emailalertflagAttendance=i)}),e.TgZ(121,"ion-row")(122,"ion-col",41)(123,"ion-item",42)(124,"ion-label",43),e._uU(125,"Yes"),e.qZA(),e._UZ(126,"ion-radio",62),e.qZA()(),e.TgZ(127,"ion-col",41)(128,"ion-item",42)(129,"ion-label",43),e._uU(130,"No"),e.qZA(),e._UZ(131,"ion-radio",45),e.qZA()()()()(),e.TgZ(132,"ion-col",63)(133,"ion-label",64),e._uU(134,"Time entry check for "),e.qZA(),e.TgZ(135,"i
1on-radio-group",40),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.predayalertvalue=i)}),e.TgZ(136,"ion-row")(137,"ion-col",41)(138,"ion-item",42)(139,"ion-label",43),e._uU(140,"Previous day"),e.qZA(),e._UZ(141,"ion-radio",65),e.qZA()(),e.TgZ(142,"ion-col",41)(143,"ion-item",42)(144,"ion-label",43),e._uU(145,"Current day"),e.qZA(),e._UZ(146,"ion-radio",66),e.qZA()()()()()()(),e.TgZ(147,"ion-label",46),e._uU(148,"Alert email template"),e.qZA(),e.TgZ(149,"ion-item",47)(150,"ion-textarea",48),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.textboxAttendance=i)})("keypress",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.preventblankcharacter(i,a.textboxAttendance))}),e.qZA()(),e._UZ(151,"br"),e.TgZ(152,"ion-row",49)(153,"div",50),e.YNc(154,Y,2,1,"ion-button",51),e.qZA()(),e._UZ(155,"button",52),e.qZA()()()}if(2&o){const n=e.oxw();e.xp6(6),e.hij(" ",n.dailyhelptext," "),e.xp6(4),e.Q6J("ngModel",n.alertstarttimeAttendance),e.xp6(52),e.Q6J("ngModel",n.alertendtimeAttendance),e.xp6(52),e.Q6J("placeholder","Select days")("data",n.dropdownList)("ngModel",n.selectedItems)("settings",n.dropdownSettings),e.xp6(6),e.Q6J("ngModel",n.emailalertflagAttendance),e.xp6(6),e.Q6J("checked","Yes"==n.emailalertflagAttendance),e.xp6(5),e.Q6J("checked","No"==n.emailalertflagAttendance),e.xp6(4),e.Q6J("ngModel",n.predayalertvalue),e.xp6(6),e.Q6J("checked","0"==n.predayalertvalue),e.xp6(5),e.Q6J("checked","1"==n.predayalertvalue),e.xp6(4),e.Q6J("ngModel",n.textboxAttendance),e.xp6(4),e.Q6J("ngIf",!n.validity&&"A"==n.defaultview)}}const I=[{path:"",component:(()=>{const r=class{onResize(t){this.innerWidth=window.innerWidth}constructor(t,i,a,l,_,c,m,D,Q){this.constant=t,this.platform=i,this.globals=a,this.alertctrl=l,this.loadctrl=_,this.http=c,this.toastctrl=m,this.navctrl=D,this.globalservice=Q,this.companyDueDay=[],this.dropdownSettings={},this.dropdownList=[],this.mode="",this.selectedItems=[]}ngOnInit(){this.defaultview="T",this.dropdownSettings={enableCheckAll:!0,singleSelection:!1,idField:"day",textField:"dayname",selectAllText:"Select All",unSelectAllText:"Select All",itemsShowLimit:3}}ionViewDidEnter(){window.getSelection&&window.getSelection().removeAllRanges(),this.defaultview="T",this.build=localStorage.getItem("build"),this.version_no=localStorage.getItem("versionnumber"),this.devicename=localStorage.getItem("devicename"),this.upgradeplan=localStorage.getItem("upgrade_plan"),this.devicetype=localStorage.getItem("device"),this.companyname=localStorage.getItem("companyName"),this.selectedItems=[],this.days=[{day:"0",dayname:"Sunday"},{day:"1",dayname:"Monday"},{day:"2",dayname:"Tuesday"},{day:"3",dayname:"Wednesday"},{day:"4",dayname:"Thursday"},{day:"5",dayname:"Friday"},{day:"6",dayname:"Saturday"}],this.alertendtime="",this.alertstarttime="",this.emailalertflag="",this.textbox="",this.companyDueDay=[],this.alertdueday="",this.alertendtimeAttendance="",this.alertstarttimeAttendance="",this.emailalertflagAttendance="",this.textboxAttendance="",this.selectedItems=[],this.getdetails(),this.platform.ready().then(()=>{this.platform.backButton.subscribeWithPriority(0,()=>{this.navctrl.back()})}),this.predayalertvalue="1"}getdetails(){var t=this;return(0,g.Z)(function*(){const i=yield t.loadctrl.create({message:"Loading.."});yield i.present();let a={username:localStorage.getItem("username"),password:localStorage.getItem("password"),userid:localStorage.getItem("userid"),cmpny_id:localStorage.getItem("companyId"),device_type:t.devicename,device_buildnumber:t.build,device_version:t.version_no};t.http.post(t.globals.url+"getTimesheetAlertDetailsVersionTwo",a,{headers:t.globals.headers()}).pipe((0,p.x)(()=>{var l;if(t.dropdownList=t.days,i.dismiss(),"success"==t.status){if(t.status="",t.alertstarttime=t.timesheetAlertDetails.Company_alert_start_time,t.alertendtime=t.timesheetAlertDetails.Company_alert_end_time,t.alertdueday=t.timesheetAlertDetails.Company_due_day,t.emailalertflag=t.timesheetAlertDetails.Company_alert_email_flag,t.textbox=t.timesheetAlertDetails.Company_email_template,t.mode=t.timesheetAlertDetails.Mode,"BMTS"==t.mode&&(t.alertdueday=""),t.alertstarttimeAttendance=t.timesheetAlertDetails.company_daily_alert_start_time,t.alertendtimeAttendance=t.timesheetAlertDetails.company_daily_alert_end_time,t.emailalertflagAttendance=t.timesheetAlertDetails.company_daily_alert_email_flag,t.textboxAttend
1ance=t.timesheetAlertDetails.company_daily_alert_email_template,t.predayalertvalue=t.timesheetAlertDetails.company_daily_alert_flag,""!=t.timesheetAlertDetails.company_daily_alert_due_day){var _=[];_.push((l=t.timesheetAlertDetails.company_daily_alert_due_day).split(","));for(var c=[],m=0;m<_.length;m++)l.match("0")&&c.push({day:"0",dayname:"Sunday"}),l.match("1")&&c.push({day:"1",dayname:"Monday"}),l.match("2")&&c.push({day:"2",dayname:"Tuesday"}),l.match("3")&&c.push({day:"3",dayname:"Wednesday"}),l.match("4")&&c.push({day:"4",dayname:"Thursday"}),l.match("5")&&c.push({day:"5",dayname:"Friday"}),l.match("6")&&c.push({day:"6",dayname:"Saturday"}),t.selectedItems=c}}else"failure"==t.status&&(t.status="",t.authentication?t.authenticationAlert():t.validity?t.checkCompanyStatusValidity():t.showalert())}),(0,h.V)(2e4),(0,Z.K)(l=>{throw t.dropdownList=t.days,t.erroralert(t.constant.invalidResponse),"error in source. Details: "+l})).subscribe(l=>{t.status=l.status,t.modehelptext=l.ModeHelpText,t.dailyhelptext=l.dailyAlertHelpText,t.message=l.message,"success"==t.status?t.timesheetAlertDetails=l.TimesheetAlertDetails:"failure"==t.status&&(t.alerttext=l.message,t.validity=l.user_status,t.authentication=l.authentication_status,t.upgradestatus=l.upgrade_status)})})()}checkCompanyStatusValidity(){"C"==this.upgradeplan?"Free"==this.upgradestatus?this.freeuseralert():"Real"==this.upgradestatus&&this.realuseralert():"B"==this.upgradeplan&&this.authenticationAlert()}freeuseralert(){var t=this;return(0,g.Z)(function*(){yield(yield t.alertctrl.create({header:"Alert",message:t.alerttext,backdropDismiss:!1,buttons:[{text:"Pay now",handler:()=>{t.navctrl.navigateForward("/tabs/upgrade")}}]})).present()})()}realuseralert(){var t=this;return(0,g.Z)(function*(){yield(yield t.alertctrl.create({header:"Alert",message:t.alerttext,backdropDismiss:!1,buttons:[{text:"Update card",handler:()=>{t.navctrl.navigateForward("/payment")}}]})).present()})()}authenticationAlert(){var t=this;return(0,g.Z)(function*(){yield(yield t.alertctrl.create({header:"Alert",message:t.alerttext,backdropDismiss:!1,buttons:[{text:"ok",handler:()=>{t.globalservice.signOut()}}]})).present()})()}updatetimesheetdetails(){var t=this;return(0,g.Z)(function*(){if(Number(t.alertstarttime)>Number(t.alertendtime))t.alerttext=t.constant.timesheetalertMsg,t.showalert();else{const l=yield t.loadctrl.create({message:"Loading.."});yield l.present();let _={Company_alert_start_time:t.alertstarttime,Company_alert_end_time:t.alertendtime,Company_due_day:t.alertdueday,Company_alert_email_flag:t.emailalertflag,Company_email_template:t.textbox,userid:localStorage.getItem("userid"),cmpny_id:localStorage.getItem("companyId"),device_type:t.devicename,device_buildnumber:t.build,device_version:t.version_no};t.http.post(t.globals.url+"updateTimesheetAlertDetails",_,{headers:t.globals.headers()}).pipe((0,p.x)(()=>{l.dismiss(),"success"==t.status?(t.status="",t.toasttext=t.message,t.showtoast(),t.getdetails()):"failure"==t.status&&(t.status="",t.alerttext=t.message,t.showalert())}),(0,h.V)(2e4),(0,Z.K)(c=>{throw t.erroralert(t.constant.invalidResponse),"error in source. Details: "+c})).subscribe(c=>{t.status=c.status,t.message=c.message})}})()}updateattendancedetails(){var t=this;return(0,g.Z)(function*(){if(Number(t.alertstarttimeAttendance)>Number(t.alertendtimeAttendance))t.alerttext=t.constant.timesheetalertMsg,t.showalert();else{const l=yield t.loadctrl.create({message:"Loading.."});yield l.present();var a,i=[];t.selectedItems.forEach(c=>{i.push(c.day)}),a=i.join();let _={company_daily_alert_start_time:t.alertstarttimeAttendance,company_daily_alert_end_time:t.alertendtimeAttendance,company_daily_alert_due_day:a,company_daily_alert_email_flag:t.emailalertflagAttendance,company_daily_alert_email_template:t.textboxAttendance,userid:localStorage.getItem("userid"),cmpny_id:localStorage.getItem("companyId"),device_type:t.devicename,device_buildnumber:t.build,device_version:t.version_no,company_daily_alert_flag:t.predayalertvalue};t.http.post(t.globals.url+"updateDailyAlertDetailsVersionOne",_,{headers:t.globals.headers()}).pipe((0,p.x)(()=>{l.dismiss(),"success"==t.status?(t.status="",t.toasttext=t.message,t.showtoast(),t.getdetails()):"failure"==t.status&&(t.status="",t.alerttext=t.message,t.showalert())}),(0,h.V)(2e4),(0,Z.K)(c=>
1{throw t.erroralert(t.constant.invalidResponse),"error in source. Details: "+c})).subscribe(c=>{t.status=c.status,t.message=c.message})}})()}showalert(){var t=this;return(0,g.Z)(function*(){yield(yield t.alertctrl.create({header:"Alert",message:t.alerttext,buttons:[{text:"ok",role:"cancel"}]})).present()})()}showtoast(){var t=this;return(0,g.Z)(function*(){yield(yield t.toastctrl.create({message:t.toasttext,duration:1500})).present()})()}duedays(t,i){if(i.target.checked)-1===this.companyDueDay.indexOf(t)?this.companyDueDay.push(t):console.log("This item already exists");else{var a=this.companyDueDay.indexOf(t);this.companyDueDay.splice(a,1)}}erroralert(t){var i=this;return(0,g.Z)(function*(){yield(yield i.alertctrl.create({header:"Alert",message:t,backdropDismiss:!1,buttons:[{text:"Ok",handler:()=>{i.navctrl.navigateBack("tabs/dashboardchart")}}]})).present()})()}scroll(){const t=document.getElementsByClassName("action-sheet-button ion-activatable");setTimeout(()=>{let i=0;const a=t.length;if(0!=a)for(;i<a;i++)"action-sheet-selected"==t[i].className.split(" ")[2]&&t[i].scrollIntoView({block:"center",behavior:"smooth"})},500)}attendanceSetting(){this.defaultview="A"}timesheetSetting(){this.defaultview="T",this.ionViewDidEnter()}info(){var t=this;return(0,g.Z)(function*(){yield(yield t.alertctrl.create({header:"Info",message:t.infomessage})).present()})()}preventblankcharacter(t,i){return null!=i&&null!=i&&""!=i||32!==(t.which?t.which:t.keyCode)||(t.preventDefault(),!1)}};let o=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(b.s),e.Y36(s.t4),e.Y36(v.x),e.Y36(s.Br),e.Y36(s.HT),e.Y36(U.eN),e.Y36(s.yF),e.Y36(s.SH),e.Y36(y.a))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-timesheetalert"]],hostBindings:function(i,a){1&i&&e.NdJ("resize",function(_){return a.onResize(_)},!1,e.Jf7)},decls:17,vars:7,consts:[["mode","ios","color","tertiary",2,"--min-height","55px"],["slot","start"],["color","light"],["class","lowercase navbarbtn mobsave","fill","clear","slot","end",3,"disabled","click",4,"ngIf"],["mode","md",3,"ngModel","ngModelChange"],["mode","md","value","T",1,"lowercase",3,"click"],["mode","md","value","A",1,"lowercase",3,"click"],[4,"ngIf"],["fill","clear","slot","end",1,"lowercase","navbarbtn","mobsave",3,"disabled","click"],[1,"filtercontent","margin10px",2,"padding","0px 25px 25px 25px"],["color","primary","name","information-circle-outline",2,"margin-bottom","-6px","font-size","25px"],["lines","none",1,"itemcolor","margintop10px","loginfont"],["position","stacked","color","dark",1,"inputlabel","stackedLabel","font14","bold"],["id","id1","mode","md","placeholder","Select",1,"input","loginfont","labelcolor","selectbackground",3,"ngModel","click","ngModelChange"],["value","0"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["value","8"],["value","9"],["value","10"],["value","11"],["value","12"],["value","13"],["value","14"],["value","15"],["value","16"],["value","17"],["value","18"],["value","19"],["value","20"],["value","21"],["value","22"],["value","23"],["class","itemcolor loginfont margintop10px","lines","none",4,"ngIf"],[1,"font14","margintop10px","display-block","bold"],[3,"ngModel","ngModelChange"],[1,"ion-no-padding",2,"flex","0 0 calc(calc(2 / var(--ion-grid-columns, 12)) * 10%)"],["lines","none",1,"itemcolor"],[1,"reporticonpad"],["mode","md","slot","start","value","Yes",2,"margin","10px",3,"checked"],["mode","md","slot","start","value","No",2,"margin","10px",3,"checked"],[1,"font14","bold"],["lines","none",1,"itemcolor","textareasize","margintop10px"],["spellcheck","false",2,"border","2px solid var(--ion-color-primary)","padding","5px","height","120px",3,"ngModel","ngModelChange","keypress"],[1,"white","labsave",2,"padding-bottom","20px"],[1,"aligncenter"],["class"," lowercase btn",3,"disabled","click",4,"ngIf"],[1,"button_hidden",2,"margin","0","padding","0","border","0","height","0"],["lines","none",1,"itemcolor","loginfont","margintop10px"],["position","stacked","color","dark",1,"inputlabel","font14","stackedLabel","bold"],["id","id1","mode","md","interface","action-sheet","placeholder","Select timesheet end day",1,"input","labelcolor","loginfont","selectbackground",3,"ngModel","click","ngModelChange"],[1,"lowercase","btn",3,"disabled","click"],["lines","none",1,"itemcolor","font14","bold"],[1,"custom-select",3,"placeholder","data","ngModel","settings","ngModelChange"],[1,"ion-no-padding"],["sizeMd","3","sizeSm","12","sizeXs","12",1,"ion-no-padding"],[1,"font14","bold","margintop10px","display-block"],["mode","md","slot","start","value","Yes",1,"radiobtalignment",3,"checked"],["sizeMd","9","sizeSm","12","sizeXs","12",1,"ion-no-padding"],[1,"font14","bold","margintop10px","margintop0px","display-block"],["mode","md","slot","start","value","0",1,"radiobtalignment",3,"checked"],["mode","md","slot","start","value","1",2,"margin","10px",3,"checked"]],template:function(i,a){1&i&&(e.TgZ(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-buttons",1),e._UZ(3,"ion-menu-button",2),e.qZA(),e.TgZ(4,"ion-title"),e._uU(5,"Timesheet Alert Settings"),e.qZA(),e.YNc(6,q,2,1,"ion-button",3),e.YNc(7,w,2,1,"ion-button",3),e.YNc(8,M,2,1,"ion-button",3),e.qZA(),e.TgZ(9,"ion-segment",4),e.NdJ("ngModelChange",function(_){return a.defaultview=_}),e.TgZ(10,"ion-segment-button",5),e.NdJ("click",function(){return a.ionViewDidEnter()}),e.TgZ(11,"b"),e._uU(12),e.qZA()(),e.TgZ(13,"ion-segment-button",6),e.NdJ("click",function(){return a.ionViewDidEnter()}),e._uU(14," Daily Alert"),e.qZA()()(),e.YNc(15,S,136,10,"ion-content",7),e.YNc(16,P,156,15,"ion-content",7)),2&i&&(e.xp6(6),e.Q6J("ngIf",!a.validity&&"BMTS"!=a.mode&&"T"==a.defaultview
1),e.xp6(1),e.Q6J("ngIf",!a.validity&&"BMTS"==a.mode&&"T"==a.defaultview),e.xp6(1),e.Q6J("ngIf",!a.validity&&"A"==a.defaultview),e.xp6(1),e.Q6J("ngModel",a.defaultview),e.xp6(3),e.Oqu("WTS"==a.mode?"Weekly Alert":"Semi-monthly Alert"),e.xp6(3),e.Q6J("ngIf","T"==a.defaultview),e.xp6(1),e.Q6J("ngIf","A"==a.defaultview))},dependencies:[A.O5,f.OP,u.JJ,u.On,s.YG,s.Sm,s.FN,s.wI,s.W2,s.jY,s.Gu,s.gu,s.Ie,s.Q$,s.fG,s.B7,s.se,s.Nd,s.cJ,s.GO,s.t9,s.n0,s.g2,s.wd,s.sr,s.U5,s.QI,s.j9],styles:[".checkboxmargin[_ngcontent-%COMP%]{margin:0 5px 0 0!important}.itemheight[_ngcontent-%COMP%]{height:35px!important}.textareasize[_ngcontent-%COMP%]{max-width:690px!important;height:128px!important}.title-ios[_ngcontent-%COMP%]{padding-left:43px!important}.radiobtalignment[_ngcontent-%COMP%]{margin:10px!important}@media (max-width: 400px){.lowercase[_ngcontent-%COMP%]{text-transform:capitalize;font-size:small!important}}@media screen and (max-width: 767px){.margintop0px[_ngcontent-%COMP%]{margin-top:0!important}}"]}),o})()}];let N=(()=>{const r=class{};let o=r;return r.\u0275fac=function(i){return new(i||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[A.ez,f.ZQ.forRoot(),u.u5,s.Pc,x.Bz.forChild(I)]}),o})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.