• File: 14-es5.9d8b1429aa34b5eaeb78.js
  • Full Path: /home/icicle/public_html/test/wwwroot/assets/img/14-es5.9d8b1429aa34b5eaeb78.js
  • Date Modified: 10/01/2021 10:59 AM
  • File size: 142.94 KB
  • MIME-type: text/plain
  • Charset: utf-8
!function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function n(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{"2F+d":function(t,o,i){"use strict";i.r(o),i.d(o,"ClarinsreportsModule",function(){return Et});var r,a=i("iInd"),l=i("pLZG"),c=i("8Y7J"),s=i("cUpR"),d=function(){return["WeeklyBeautyCoachSales"]},b=function(){return["GBWeeklyTargets"]},p=function(){return["NIWeeklyTargets"]},u=function(){return["Weeklyconsultantsales"]},g=function(){return["WeeklyCounterSales"]},h=function(){return["ClarinsMissingSales"]},f=function(){return["ClarinsDuplicateRecords"]},m=function(){return["ClarinsFlashReportByWeek"]},S=function(){return["ClarinsFlashReportBYGroup"]},R=function(){return["Clarins-MonthlyReports"]},v=function(){return["Clarins-ClarinsYear"]},C=function(){return["Clarins-FiscalYear"]},y=function(){return["Clarins-HistoricReports"]},x=function(){return["Clarins-GeneratorReports"]},O=((r=function(){function t(n,o,i){e(this,t),this.router=n,this.activatedRoute=o,this.titleService=i}return n(t,[{key:"ngOnInit",value:function(){var e=this;this.router.events.pipe(Object(l.a)(function(e){return e instanceof a.b})).subscribe(function(){e.getChild(e.activatedRoute).data.subscribe(function(t){e.titleService.setTitle(t.title)})})}},{key:"getChild",value:function(e){return e.firstChild?this.getChild(e.firstChild):e}}]),t}()).\u0275fac=function(e){return new(e||r)(c.Mb(a.e),c.Mb(a.a),c.Mb(s.c))},r.\u0275cmp=c.Gb({type:r,selectors:[["app-clarinsreports"]],decls:60,vars:28,consts:[[1,"row"],[1,"col-md-12","col-sm-12","col-xs-12"],[1,"shadow-sm","card","no-padding","h-100"],[1,"card-body","no-padding"],[1,"mega-ul"],[1,"dropdown","custom-dropdown",2,"width","175px"],["data-toggle","dropdown",1,"dropdown-toggle"],[1,"caret"],[1,"dropdown-menu","fontsize","position"],[3,"routerLink"],[1,"dropdown","custom-dropdown",2,"width","210px","text-align","center"],[1,"dropdown-menu","fontsize","position_Business"],[1,"dropdown","custom-dropdown",2,"width","165px"],[1,"dropdown","custom-dropdown",2,"width","155px"],[1,"d-flex","justify-content-center"],[1,"col-md-6"]],template:function(e,t){1&e&&(c.Sb(0,"div",0),c.Sb(1,"div",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"ul",4),c.Sb(5,"li",5),c.Sb(6,"a",6),c.Kc(7,"Live Report"),c.Nb(8,"span",7),c.Rb(),c.Sb(9,"ul",8),c.Sb(10,"li"),c.Sb(11,"a",9),c.Kc(12,"Weekly Beauty Coach Sales"),c.Rb(),c.Rb(),c.Sb(13,"li"),c.Sb(14,"a",9),c.Kc(15,"GB Weekly Targets"),c.Rb(),c.Rb(),c.Sb(16,"li"),c.Sb(17,"a",9),c.Kc(18,"NI Weekly Targets"),c.Rb(),c.Rb(),c.Sb(19,"li"),c.Sb(20,"a",9),c.Kc(21,"Weekly Consultant Sales"),c.Rb(),c.Rb(),c.Sb(22,"li"),c.Sb(23,"a",9),c.Kc(24,"Weekly Counter Sales"),c.Rb(),c.Rb(),c.Sb(25,"li"),c.Sb(26,"a",9),c.Kc(27,"Clarins Missing Figures"),c.Rb(),c.Rb(),c.Sb(28,"li"),c.Sb(29,"a",9),c.Kc(30,"Clarins Duplicate Records"),c.Rb(),c.Rb(),c.Sb(31,"li"),c.Sb(32,"a",9),c.Kc(33,"Clarins Flash Report By Week"),c.Rb(),c.Rb(),c.Sb(34,"li"),c.Sb(35,"a",9),c.Kc(36,"Clarins Flash Report By Group"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(37,"li",10),c.Sb(38,"a",9),c.Kc(39,"Monthly/Periodic Reports"),c.Rb(),c.Rb(),c.Sb(40,"li",10),c.Sb(41,"a",6),c.Kc(42,"Group Business Reports"),c.Nb(43,"span",7),c.Rb(),c.Sb(44,"ul",11),c.Sb(45,"li"),c.Sb(46,"a",9),c.Kc(47,"Clarins Year"),c.Rb(),c.Rb(),c.Sb(48,"li"),c.Sb(49,"a",9),c.Kc(50,"Fiscal Year"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(51,"li",12),c.Sb(52,"a",9),c.Kc(53,"Historic Reports"),c.Rb(),c.Rb(),c.Sb(54,"li",13),c.Sb(55,"a",9),c.Kc(56,"Generator Reports"),c.Rb(),c.Rb(),c.Rb(),c.Sb(57,"div",14),c.Sb(58,"div",15),c.Nb(59,"router-outlet"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()),2&e&&(c.yb(11),c.mc("routerLink",c.pc(14,d)),c.yb(3),c.mc("routerLink",c.pc(15,b)),c.yb(3),c.mc("routerLink",c.pc(16,p)),c.yb(3),c.mc("routerLink",c.pc(17,u)),c.yb(3),c.mc("routerLink",c.pc(18,g)),c.yb(3),c.mc("routerLink",c.pc(19,h)),c.yb(3),c.mc("routerLink",c.pc(20,f)),c.yb(3),c.mc("routerLink",c.pc(21,m)),c.yb(3),c.mc("routerLink",c.pc(22,S)),c.yb(3),c.mc("routerLink",c.pc(23,R)),c.yb(8),c.mc("routerLink",c.pc(24,v)),c.yb(3),c.mc("routerLink",c.pc(25,C)),c.yb(3),c.mc("routerLink",c.pc(26,y)),c.yb(3),c.mc("routerLink",c.pc(27,x)))},directives:[a.g,a.i],styles:['.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:525px;max-height:525px;padding-left:5px;padding-right:5px;padding-bottom:4px}.mega-ul[_ngcontent-%COMP%]{background:#bc1135;padding:1px;font-weight:600;font-family:Century Gothic}.row[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px;margin-top:4px}.h-100[_ngcontent-%COMP%]{border:1px dotted #c22}.custom-dropdown[_ngcontent-%COMP%]{display:inline-block;padding:10px;margin-right:10px;border-radius:10px;font-size:15px}.custom-dropdown[_ngcontent-%COMP%]   .dropdown-toggle[_ngcontent-%COMP%]{cursor:pointer;color:#fff}.dropdown-menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#cc0b0b;font-size:18px;font-weight:600;text-decoration:none;font-family:Century Gothic;padding:5px 10px}.dropdown-menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{background-color:#cc0b0b;color:#fff;display:block}.custom-dropdown[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;text-decoration:none;font-family:Century Gothic}.custom-dropdown[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:bisque;text-decoration:none}.custom-dropdown[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]{left:-1px;top:41px}.dropdown-menu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-of-type:before{position:absolute;display:block;margin-top:-8px;margin-left:40px;width:0;height:0;border-right:8px solid transparent;border-bottom:8px solid #fff;border-left:8px solid transparent;content:""}.dropdown-menu[_ngcontent-%COMP%]{border:1px solid #cc0b0a;padding:3px}.fontsize[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:18px!important;font-weight:700!important;line-height:32px;font-family:Century Gothic}.position[_ngcontent-%COMP%]{width:300px}.position[_ngcontent-%COMP%], .position_Business[_ngcontent-%COMP%]{position:absolute;transform:translate3d(0,31px,0)!important;top:0;left:0;will-change:transform;margin-top:12px}.position_Business[_ngcontent-%COMP%]{width:200px}']}),r),M=i("mrSG"),k=i("LRne"),A=i("Cfvw"),P=i("dufq"),w=i("6+wN"),N=i("s7LF"),E=i("+CKi"),F=i("OUGR"),_=i("SVse"),G=i("frZy"),T=i("JqCM"),I=i("dbUT");function L(e,t){if(1&e&&(c.Sb(0,"option",29),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function W(e,t){if(1&e&&(c.Sb(0,"option",29),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Y(e,t){if(1&e&&(c.Sb(0,"option",29),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function D(e,t){if(1&e&&(c.Sb(0,"option",29),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}var V,B=((V=function(){function t(n,o,i,r,a,l,c,s){e(this,t),this.fb=n,this.router=o,this.activatedRoute=i,this.sharedService=r,this.clarinsreportservice=a,this.datePipe=l,this.pdfService=c,this.spinner=s,this.YEARS=this.sharedService.YEAR.asObservable(),this.MONTHS=this.sharedService.MONTH.asObservable(),this.STOGRPCODES=this.sharedService.STOGRPCODE.asObservable(),this.placeholder="Enter Search String",this.keyword="Name",this.REPORTTYPES=Object(k.a)([{Value:"All",Name:"All"},{Value:"STORES",Name:"STORES"},{Value:"WEBS",Name:"WEBS"}]),this.CreateClarinsMissingSalesForm()}return n(t,[{key:"CreateClarinsMissingSalesForm",value:function(){this.ClarinsMissingSalesForm=this.fb.group({ClarinsMissingSales:this.fb.group({REPORTTYPES:[""],ACC:[""],YEAR:[""],MONTH:[""],STOGRPCODE:[""],REGION:[""],AREA:[""]})})}},{key:"ngOnInit",value:function(){this.ReportTypes=this.REPORTTYPES,this.YEARS=Object(A.a)([this.activatedRoute.snapshot.data.Years]),this.GetMonth(),this.GetSTOGRPCODE(),this.InitialValue()}},{key:"InitialValue",value:function(){this.ClarinsMissingSales.get("REPORTTYPES").setValue("All"),this.ClarinsMissingSales.get("YEAR").setValue((new Date).getFullYear()),this.ClarinsMissingSales.get("MONTH").setValue("All"),this.ClarinsMissingSales.get("STOGRPCODE").setValue("All")}},{key:"resetForm",value:function(){this.ClarinsMissingSalesForm.reset(),this.InitialValue()}},{key:"GetMonth",value:function(){var e=this;this.sharedService.GetMonth().subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.MONTH.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load MONTHS.")})}},{key:"GetSTOGRPCODE",value:function(){var e=this;this.sharedService.GetSTOGRPCODE(P.d.STOGRPCODE_CLARINS).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.STOGRPCODE.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load STOGRPCODES.")})}},{key:"rptClarinsMissingSales",value:function(e,t,n,o){var i,r=this;this.spinner.show(),this.clarinsreportservice.rptClarinsMissingSales(e,t,n,o,0,0,0).subscribe(function(e){i=new Blob([e],{type:"application/pdf"})},function(e){console.log(e)},function(){var e=URL.createObjectURL(i);window.open(e,"_blank"),r.spinner.hide()})}},{key:"GeneratePDF",value:function(e,t,n,o){return Object(M.a)(this,void 0,void 0,regeneratorRuntime.mark(function i(){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.pdfService.loadPdfMaker();case 2:this.pdfService.pdfMake.createPdf(this.DocumentDefinition(e,t,n,o)).open();case 3:case"end":return i.stop()}},i,this)}))}},{key:"DocumentDefinition",value:function(e,t,n,o){var i=this;this.pdfService.GetClarinsMissingFigures(e,t,n,o).subscribe(function(e){i.externalDataRetrievedFromServer=e},function(e){return console.log("Could not load Clarins Missing Figures data.")}),this.pdfService.pdfMake.tableLayouts={exampleLayout:{hLineWidth:function(e,t){return 0},vLineWidth:function(e,t){return 0},paddingLeft:function(e){return 0===e?10:2},paddingRight:function(e,t){return e===t.table.widths.length-1?0:2},alignment:function(e){return 0===e?"right":"left"}}};var r,a,l=this.datePipe.transform(new Date,"dd-MMM-yyyy");return{pageMargins:[40,113,40,40],header:function(){return[{fontSize:8,columns:[{},{image:w.a.clarinslogoforreport,height:25,width:220,alignment:"right",margin:[0,20,20,5]}]},{fontSize:8,columns:[{text:"Clarins Missing Figures: "+e,bold:!0,alignment:"left",fontSize:10,margin:[40,0,0,5]},{text:"Generated on: "+l,bold:!0,alignment:"right",fontSize:10,margin:[0,0,40,5]}]},{canvas:[{type:"line",x1:40,y1:10,x2:555,y2:10,lineWidth:.01,color:"#cc2222"}]},{margin:[40,1,40,1],table:{body:[[{fillColor:"lightgreen",color:"#FFFFFF",fontSize:11,bold:!0,columns:[{width:35,text:"\nAREA",margin:[4,0,0,0]},{width:33,text:"\nACC"},{width:48,text:"Sales\nExpected"},{width:139,text:"\nStore Name"},{width:109,text:"\nTown"},{width:75,text:"\nTelephone"},{width:46,text:"\nWeek"}],columnGap:5}]]},layout:"noBorders"},{canvas:[{type:"line",x1:40,y1:0,x2:555,y2:0,lineWidth:.01,color:"#cc2222"}]}]},footer:function(e,t){return{text:e.toString()+" / "+t,alignment:"right",margin:[0,10,40,0]}},content:[(r=this.externalDataRetrievedFromServer,a=["AREA","ACC","SALESEXPECTED","STORE","TOWN","TELEPHONE","WEEK"],{fontSize:8,table:{widths:[26,35,45,144,110,75,45],headerRows:1,body:function(e,t){var n=[];return e.forEach(function(e){var o=[];t.forEach(function(t){var n,i,r,a;o.push("WEEK"===t?(i=""+((n=new Date(e[t])).getMonth()+1),r=""+(n.getDate()+1),a=n.getFullYear(),i.length<2&&(i="0"+i),r.length<2&&(r="0"+r),[r,i,a].join("/")):e[t])}),n.push(o)}),n}(r,a)},layout:"exampleLayout"})]}}},{key:"ClarinsMissingSales",get:function(){return this.ClarinsMissingSalesForm.get("ClarinsMissingSales")}}]),t}()).\u0275fac=function(e){return new(e||V)(c.Mb(N.c),c.Mb(a.e),c.Mb(a.a),c.Mb(E.a),c.Mb(F.a),c.Mb(_.f),c.Mb(G.a),c.Mb(T.c))},V.\u0275cmp=c.Gb({type:V,selectors:[["app-clarins-missing-sales"]],decls:56,vars:14,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-12"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],["formGroupName","ClarinsMissingSales"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","300px"],[1,"text-center",2,"margin-top","15px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","40px"],[1,"row","no-padding","mb-1"],["for","ReportType",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-5"],["formControlName","REPORTTYPES",1,"form-control","form-control-sm"],[3,"value",4,"ngFor","ngForOf"],[1,"col-sm-12"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","YEAR",1,"form-control","form-control-sm"],["for","MONTH",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","MONTH",1,"form-control","form-control-sm"],["for","STOGRPCODE",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","STOGRPCODE",1,"form-control","form-control-sm"],[1,"text-center","mt-2","mb-1"],["mdbBtn","","type","submit","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["mdbBtn","","type","button","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["bdColor","rgba(255,255,255,0.5)","size","small","color","#cc2222","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","#cc2222","font-size","22px"],[3,"value"]],template:function(e,t){1&e&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",3),c.Sb(15,"div",11),c.Sb(16,"div",12),c.Sb(17,"label",13),c.Kc(18,"Report Type:"),c.Rb(),c.Sb(19,"div",14),c.Sb(20,"select",15),c.Ic(21,L,2,2,"option",16),c.fc(22,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(23,"div",17),c.Sb(24,"div",12),c.Sb(25,"label",18),c.Kc(26,"YEAR:"),c.Rb(),c.Sb(27,"div",14),c.Sb(28,"select",19),c.Ic(29,W,2,2,"option",16),c.fc(30,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(31,"div",17),c.Sb(32,"div",12),c.Sb(33,"label",20),c.Kc(34,"MONTH:"),c.Rb(),c.Sb(35,"div",14),c.Sb(36,"select",21),c.Ic(37,Y,2,2,"option",16),c.fc(38,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(39,"div",17),c.Sb(40,"div",12),c.Sb(41,"label",22),c.Kc(42,"STOGRPCODE:"),c.Rb(),c.Sb(43,"div",14),c.Sb(44,"select",23),c.Ic(45,D,2,2,"option",16),c.fc(46,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(47,"div",3),c.Sb(48,"div",24),c.Sb(49,"button",25),c.cc("click",function(){return t.rptClarinsMissingSales(t.ClarinsMissingSales.get("REPORTTYPES").value,t.ClarinsMissingSales.get("YEAR").value,"All"===t.ClarinsMissingSales.get("MONTH").value?0:t.ClarinsMissingSales.get("MONTH").value,t.ClarinsMissingSales.get("STOGRPCODE").value)}),c.Kc(50," Submit"),c.Rb(),c.Sb(51,"button",26),c.cc("click",function(){return t.resetForm()}),c.Kc(52," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(53,"ngx-spinner",27),c.Sb(54,"p",28),c.Kc(55," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&e&&(c.yb(1),c.mc("formGroup",t.ClarinsMissingSalesForm),c.yb(20),c.mc("ngForOf",c.gc(22,6,t.ReportTypes)),c.yb(8),c.mc("ngForOf",c.gc(30,8,t.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(38,10,t.MONTHS)),c.yb(8),c.mc("ngForOf",c.gc(46,12,t.STOGRPCODES)),c.yb(8),c.mc("fullScreen",!1))},directives:[N.t,N.m,N.g,N.h,N.q,N.l,N.e,_.m,I.b,I.c,T.a,N.o,N.s],pipes:[_.b],styles:[".full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;border-bottom-color:rgba(202,245,159,.8)}.report-round[_ngcontent-%COMP%]{border-radius:10px}label[_ngcontent-%COMP%]{text-transform:uppercase}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}.keep-middle[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:-5px}.txt-width-300[_ngcontent-%COMP%]{width:300px!important;height:30px!important;margin-bottom:4px;font-family:Courier New;font-size:small}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}.font-label[_ngcontent-%COMP%]{font-size:12px}#grad1[_ngcontent-%COMP%]{height:355px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}"]}),V);function K(e,t){if(1&e&&(c.Sb(0,"option",26),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function z(e,t){if(1&e&&(c.Sb(0,"option",26),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}var H,U=((H=function(){function t(n,o,i,r,a,l){e(this,t),this.fb=n,this.router=o,this.activatedRoute=i,this.clarinsreportservice=r,this.sharedService=a,this.spinner=l,this.YEARS=this.sharedService.YEAR.asObservable(),this.MONTHS=this.sharedService.MONTH.asObservable(),this.CreateClarinsDuplicateRecordsForm()}return n(t,[{key:"CreateClarinsDuplicateRecordsForm",value:function(){this.ClarinsDuplicateRecordsForm=this.fb.group({ClarinsDuplicateRecords:this.fb.group({YEAR:[""],MONTH:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(A.a)([this.activatedRoute.snapshot.data.Years]),this.GetMonth(),this.InitialValue()}},{key:"InitialValue",value:function(){this.ClarinsDuplicateRecords.get("YEAR").setValue((new Date).getFullYear()),this.ClarinsDuplicateRecords.get("MONTH").setValue("All")}},{key:"GetMonth",value:function(){var e=this;this.sharedService.GetMonth().subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.MONTH.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load MONTHS.")})}},{key:"resetForm",value:function(){this.ClarinsDuplicateRecords.reset(),this.InitialValue()}},{key:"rptClarinsDuplicateRecords",value:function(e,t){var n,o=this;this.spinner.show(),this.clarinsreportservice.rptClarinsDuplicateRecords(e,t).subscribe(function(e){n=new Blob([e],{type:"application/pdf"})},function(e){console.log(e)},function(){var e=URL.createObjectURL(n);window.open(e,"_blank"),o.spinner.hide()})}},{key:"ClarinsDuplicateRecords",get:function(){return this.ClarinsDuplicateRecordsForm.get("ClarinsDuplicateRecords")}}]),t}()).\u0275fac=function(e){return new(e||H)(c.Mb(N.c),c.Mb(a.e),c.Mb(a.a),c.Mb(F.a),c.Mb(E.a),c.Mb(T.c))},H.\u0275cmp=c.Gb({type:H,selectors:[["app-clarins-duplicate-records"]],decls:40,vars:8,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-12"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],["formGroupName","ClarinsDuplicateRecords"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","300px"],[1,"text-center",2,"margin-top","35px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","35px"],[1,"row","no-padding","mb-2"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-5"],["formControlName","YEAR",1,"form-control","form-control-sm"],[3,"value",4,"ngFor","ngForOf"],[1,"col-sm-12"],[1,"row","no-padding","mb-1"],["for","MONTH",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","MONTH",1,"form-control","form-control-sm"],[1,"text-center","mt-2","mb-1"],["mdbBtn","","type","submit","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["mdbBtn","","type","button","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["bdColor","rgba(255,255,255,0.5)","size","small","color","#cc2222","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","#cc2222","font-size","22px"],[3,"value"]],template:function(e,t){1&e&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",3),c.Sb(15,"div",11),c.Sb(16,"div",12),c.Sb(17,"label",13),c.Kc(18,"YEAR:"),c.Rb(),c.Sb(19,"div",14),c.Sb(20,"select",15),c.Ic(21,K,2,2,"option",16),c.fc(22,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(23,"div",17),c.Sb(24,"div",18),c.Sb(25,"label",19),c.Kc(26,"MONTH:"),c.Rb(),c.Sb(27,"div",14),c.Sb(28,"select",20),c.Ic(29,z,2,2,"option",16),c.fc(30,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(31,"div",3),c.Sb(32,"div",21),c.Sb(33,"button",22),c.cc("click",function(){return t.rptClarinsDuplicateRecords(t.ClarinsDuplicateRecords.get("YEAR").value,"All"===t.ClarinsDuplicateRecords.get("MONTH").value?0:t.ClarinsDuplicateRecords.get("MONTH").value)}),c.Kc(34," Submit"),c.Rb(),c.Sb(35,"button",23),c.cc("click",function(){return t.resetForm()}),c.Kc(36," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(37,"ngx-spinner",24),c.Sb(38,"p",25),c.Kc(39," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&e&&(c.yb(1),c.mc("formGroup",t.ClarinsDuplicateRecordsForm),c.yb(20),c.mc("ngForOf",c.gc(22,4,t.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(30,6,t.MONTHS)),c.yb(8),c.mc("fullScreen",!1))},directives:[N.t,N.m,N.g,N.h,N.q,N.l,N.e,_.m,I.b,I.c,T.a,N.o,N.s],pipes:[_.b],styles:[".full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;border-bottom-color:rgba(202,245,159,.8)}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}.keep-middle[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:-5px}.txt-width-300[_ngcontent-%COMP%]{width:300px!important;height:30px!important;margin-bottom:4px;font-family:Courier New;font-size:small}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}.font-label[_ngcontent-%COMP%]{font-size:12px}#grad1[_ngcontent-%COMP%]{height:355px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}"]}),H),j=i("bH2/");function $(e,t){1&e&&c.Nb(0,"a",43),2&e&&c.mc("innerHTML",t.$implicit.Name,c.Ac)}function J(e,t){1&e&&c.Nb(0,"div",43),2&e&&c.mc("innerHTML",t.$implicit,c.Ac)}function q(e,t){if(1&e&&(c.Sb(0,"option",44),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Q(e,t){if(1&e&&(c.Sb(0,"option",44),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Z(e,t){if(1&e&&(c.Sb(0,"option",44),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function X(e,t){if(1&e&&(c.Sb(0,"option",44),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function ee(e,t){1&e&&c.Nb(0,"a",43),2&e&&c.mc("innerHTML",t.$implicit.Name,c.Ac)}function te(e,t){1&e&&c.Nb(0,"div",43),2&e&&c.mc("innerHTML",t.$implicit,c.Ac)}function ne(e,t){if(1&e&&(c.Sb(0,"option",44),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}var oe,ie=((oe=function(){function t(n,o,i,r,a,l){e(this,t),this.fb=n,this.router=o,this.activatedRoute=i,this.clarinsreportservice=r,this.sharedService=a,this.spinner=l,this.placeholder="Enter Search String",this.keyword="Name",this.YEARS=this.sharedService.YEAR.asObservable(),this.AREAS=this.sharedService.AREA.asObservable(),this.STOGRPCODES=this.sharedService.STOGRPCODE.asObservable(),this.REGIONS=this.sharedService.REGION.asObservable(),this.TOWNS=this.sharedService.TOWN.asObservable(),this.Categories=this.sharedService.Category.asObservable(),this.CreateClarinsFlashReportByWeekForm()}return n(t,[{key:"CreateClarinsFlashReportByWeekForm",value:function(){this.ClarinsFlashReportByWeekForm=this.fb.group({ClarinsFlashReportByWeek:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""],TOWN:[""],CATEGORY:[""]})})}},{key:"ngOnInit",value:function(){this.AllAccount=this.sharedService.GetStore(P.e.WeeklyConsultantSales),this.GetYear(),this.GetArea(),this.GetSTOGRPCODE(),this.GetRegion(),this.GetTown(),this.GetCategories(),this.InitialValue(),this.routerEvents()}},{key:"InitialValue",value:function(){this.ClarinsFlashReportByWeek.get("REGION").setValue("All"),this.ClarinsFlashReportByWeek.get("AREA").setValue("All"),this.ClarinsFlashReportByWeek.get("CATEGORY").setValue("All"),this.ClarinsFlashReportByWeek.get("STOGRPCODE").setValue("All"),this.ClarinsFlashReportByWeek.get("YEAR").setValue((new Date).getFullYear())}},{key:"ResetForm",value:function(){this.ClarinsFlashReportByWeekForm.reset(),this.AllAccount=this.sharedService.GetStore(P.e.WeeklyConsultantSales),this.GetTown(),this.InitialValue(),this.getVal()}},{key:"getVal",value:function(){return{Value:"0",Name:"All"}}},{key:"GetYear",value:function(){var e=this;Object(A.a)([this.activatedRoute.snapshot.data.Years]).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.YEAR.next(Object.assign({},e.sharedService.datastore).data)},function(e){return console.log("Could not load YEARS.")})}},{key:"GetRegion",value:function(){var e=this;this.sharedService.GetRegion(P.c.REGION_BB).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.REGION.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load REGIONS.")})}},{key:"GetTown",value:function(){var e=this;this.sharedService.GetTown(P.f.TOWN_CLARINS).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.TOWN.next(Object.assign({},e.sharedService.datastore).data)},function(e){return console.log("Could not load TOWNS.")})}},{key:"GetArea",value:function(){var e=this;this.sharedService.GetArea(P.a.AREA_CLARINS).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.AREA.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load AREAS.")})}},{key:"GetCategories",value:function(){var e=this;this.sharedService.GetCategories().subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.Category.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load Caterories.")})}},{key:"GetSTOGRPCODE",value:function(){var e=this;this.sharedService.GetSTOGRPCODE(P.d.STOGRPCODE_CLARINS).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.STOGRPCODE.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load STOGRPCODE.")})}},{key:"selectEvent",value:function(e){}},{key:"onChangeSearch",value:function(e){}},{key:"searchCleared",value:function(){}},{key:"selectEventT",value:function(e){}},{key:"onChangeSearchT",value:function(e){}},{key:"searchClearedT",value:function(){}},{key:"routerEvents",value:function(){var e=this;this.router.events.subscribe(function(t){switch(!0){case t instanceof a.d:e.isLoader=!0;break;case t instanceof a.b:e.isLoader=!1}})}},{key:"rptClarinsFlashReportByWeek",value:function(e,t,n,o,i,r,a){var l,c=this;this.spinner.show(),this.clarinsreportservice.rptClarinsFlashReportByWeek(null==e.Value||""===e.Value?0:e.Value,t,n,o,i,null==r.Value||""===r.Value?"All":r.Value,a).subscribe(function(e){l=new Blob([e],{type:"application/pdf"})},function(e){console.log(e)},function(){var e=URL.createObjectURL(l);window.open(e,"_blank"),c.spinner.hide()})}},{key:"ClarinsFlashReportByWeek",get:function(){return this.ClarinsFlashReportByWeekForm.get("ClarinsFlashReportByWeek")}}]),t}()).\u0275fac=function(e){return new(e||oe)(c.Mb(N.c),c.Mb(a.e),c.Mb(a.a),c.Mb(F.a),c.Mb(E.a),c.Mb(T.c))},oe.\u0275cmp=c.Gb({type:oe,selectors:[["app-clarins-flash-report-by-week"]],decls:87,vars:35,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-12"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],["formGroupName","ClarinsFlashReportByWeek"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","375px"],[1,"text-center",2,"margin-top","15px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","20px"],[1,"row","no-padding","mb-2"],["for","store",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-8",2,"padding-left","10px"],["formControlName","ACC","id","ACC","name","ACC","notFoundText","Not found",3,"data","initialValue","searchKeyword","placeholder","minQueryLength","itemTemplate","notFoundTemplate","debounceTime","selected","inputChanged","inputCleared"],["ngAutoCompleteStatic",""],["itemTemplateStatic",""],["notFoundTemplate",""],[1,"col-sm-12"],[1,"row","no-padding","mb-1"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-4",2,"padding-left","10px"],["formControlName","YEAR",1,"form-control","form-control-sm"],[3,"value",4,"ngFor","ngForOf"],["for","Area",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","AREA",1,"form-control","form-control-sm"],["for","Store Group",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","STOGRPCODE",1,"form-control","form-control-sm"],["for","Region",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","REGION",1,"form-control","form-control-sm"],["for","Town",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-6",2,"padding-left","10px"],["formControlName","TOWN","id","TOWN","name","TOWN","notFoundText","Not found",3,"data","initialValue","searchKeyword","placeholder","minQueryLength","itemTemplate","notFoundTemplate","debounceTime","selected","inputChanged","inputCleared"],["itemTemplateStatic2",""],["notFoundTemplate2",""],["for","Category",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","CATEGORY",1,"form-control","form-control-sm"],[1,"text-center","mt-2"],["mdbBtn","","type","submit","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["mdbBtn","","type","button","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["bdColor","rgba(255,255,255,0.5)","size","small","color","#cc2222","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","#cc2222","font-size","22px"],[3,"innerHTML"],[3,"value"]],template:function(e,t){if(1&e&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",11),c.Sb(15,"div",12),c.Sb(16,"label",13),c.Kc(17,"Store Name:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"ng-autocomplete",15,16),c.cc("selected",function(e){return t.selectEvent(e)})("inputChanged",function(e){return t.onChangeSearch(e)})("inputCleared",function(){return t.searchCleared()}),c.fc(21,"async"),c.Rb(),c.Ic(22,$,1,1,"ng-template",null,17,c.Jc),c.Ic(24,J,1,1,"ng-template",null,18,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(26,"div",19),c.Sb(27,"div",20),c.Sb(28,"label",21),c.Kc(29,"Year:"),c.Rb(),c.Sb(30,"div",22),c.Sb(31,"select",23),c.Ic(32,q,2,2,"option",24),c.fc(33,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(34,"div",19),c.Sb(35,"div",20),c.Sb(36,"label",25),c.Kc(37,"Area:"),c.Rb(),c.Sb(38,"div",22),c.Sb(39,"select",26),c.Ic(40,Q,2,2,"option",24),c.fc(41,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(42,"div",19),c.Sb(43,"div",20),c.Sb(44,"label",27),c.Kc(45,"Store Group Code:"),c.Rb(),c.Sb(46,"div",22),c.Sb(47,"select",28),c.Ic(48,Z,2,2,"option",24),c.fc(49,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(50,"div",19),c.Sb(51,"div",20),c.Sb(52,"label",29),c.Kc(53,"Region:"),c.Rb(),c.Sb(54,"div",22),c.Sb(55,"select",30),c.Ic(56,X,2,2,"option",24),c.fc(57,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(58,"div",19),c.Sb(59,"div",20),c.Sb(60,"label",31),c.Kc(61,"Town:"),c.Rb(),c.Sb(62,"div",32),c.Sb(63,"ng-autocomplete",33,16),c.cc("selected",function(e){return t.selectEventT(e)})("inputChanged",function(e){return t.onChangeSearchT(e)})("inputCleared",function(){return t.searchClearedT()}),c.fc(65,"async"),c.Rb(),c.Ic(66,ee,1,1,"ng-template",null,34,c.Jc),c.Ic(68,te,1,1,"ng-template",null,35,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(70,"div",19),c.Sb(71,"div",20),c.Sb(72,"label",36),c.Kc(73,"Category:"),c.Rb(),c.Sb(74,"div",32),c.Sb(75,"select",37),c.Ic(76,ne,2,2,"option",24),c.fc(77,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(78,"div",3),c.Sb(79,"div",38),c.Sb(80,"button",39),c.cc("click",function(){return t.rptClarinsFlashReportByWeek(t.ClarinsFlashReportByWeek.get("ACC").value,t.ClarinsFlashReportByWeek.get("YEAR").value,"All"===t.ClarinsFlashReportByWeek.get("AREA").value?0:t.ClarinsFlashReportByWeek.get("AREA").value,t.ClarinsFlashReportByWeek.get("STOGRPCODE").value,"All"===t.ClarinsFlashReportByWeek.get("REGION").value?0:t.ClarinsFlashReportByWeek.get("REGION").value,t.ClarinsFlashReportByWeek.get("TOWN").value,t.ClarinsFlashReportByWeek.get("CATEGORY").value)}),c.Kc(81," Submit"),c.Rb(),c.Sb(82,"button",40),c.cc("click",function(){return t.ResetForm()}),c.Kc(83," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(84,"ngx-spinner",41),c.Sb(85,"p",42),c.Kc(86," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&e){var n=c.wc(23),o=c.wc(25),i=c.wc(67),r=c.wc(69);c.yb(1),c.mc("formGroup",t.ClarinsFlashReportByWeekForm),c.yb(18),c.mc("data",c.gc(21,21,t.AllAccount))("searchKeyword",t.keyword)("placeholder",t.placeholder)("minQueryLength",2)("itemTemplate",n)("notFoundTemplate",o)("debounceTime",10),c.yb(13),c.mc("ngForOf",c.gc(33,23,t.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(41,25,t.AREAS)),c.yb(8),c.mc("ngForOf",c.gc(49,27,t.STOGRPCODES)),c.yb(8),c.mc("ngForOf",c.gc(57,29,t.REGIONS)),c.yb(7),c.mc("data",c.gc(65,31,t.TOWNS))("searchKeyword",t.keyword)("placeholder",t.placeholder)("minQueryLength",2)("itemTemplate",i)("notFoundTemplate",r)("debounceTime",10),c.yb(13),c.mc("ngForOf",c.gc(77,33,t.Categories)),c.yb(8),c.mc("fullScreen",!1)}},directives:[N.t,N.m,N.g,N.h,j.a,N.l,N.e,N.q,_.m,I.b,I.c,T.a,N.o,N.s],pipes:[_.b],styles:["button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}label[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%]     .ng-autocomplete{line-height:0!important;white-space:nowrap}[_nghost-%COMP%]     .autocomplete-container{box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);position:relative;overflow:visible;height:30px;border-radius:4px;padding-right:0;margin-right:0}[_nghost-%COMP%]     .autocomplete-container .input-container input{font-size:12px;font-weight:500!important;box-sizing:border-box;border:none;box-shadow:none;outline:none;background-color:#fff;color:rgba(0,0,0,.87);width:100%;line-height:4px;height:30px;padding:0 5px 0 12px}[_nghost-%COMP%]     .autocomplete-container .input-container .x{position:absolute;right:2px;margin:auto;cursor:pointer;top:50%;transform:translateY(-50%)}[_nghost-%COMP%]     .autocomplete-container .suggestions-container{display:grid;padding-right:1px;border:1px solid #b0c4de}[_nghost-%COMP%]     .autocomplete-container .suggestions-container li:hover a{background-color:rgba(255,0,0,.6);color:#fff!important}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul{padding:0;margin:0;max-height:300px;overflow-y:auto}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul li a{padding:11px 5px 10px 12px;display:block;text-decoration:none;cursor:pointer;color:rgba(0,0,0,.87);font-size:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-weight:700!important}.full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;padding-left:2px}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}.keep-middle[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:-5px}.txt-width-300[_ngcontent-%COMP%]{width:300px!important;height:30px!important;margin-bottom:4px;font-family:Courier New;font-size:small}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}.font-label[_ngcontent-%COMP%]{font-size:12px}#grad1[_ngcontent-%COMP%]{height:425px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}"]}),oe);function re(e,t){if(1&e&&(c.Sb(0,"option",26),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function ae(e,t){if(1&e&&(c.Sb(0,"option",26),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}var le,ce=((le=function(){function t(n,o,i,r,a,l){e(this,t),this.fb=n,this.router=o,this.activatedRoute=i,this.clarinsreportservice=r,this.sharedService=a,this.spinner=l,this.YEARS=this.sharedService.YEAR.asObservable(),this.STOGRPCODES=this.sharedService.STOGRPCODE.asObservable(),this.CreateClarinsFlashReportBYGroupForm()}return n(t,[{key:"CreateClarinsFlashReportBYGroupForm",value:function(){this.ClarinsFlashReportBYGroupForm=this.fb.group({ClarinsFlashReportBYGroup:this.fb.group({YEAR:[""],STOGRPCODE:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(A.a)([this.activatedRoute.snapshot.data.Years]),this.GetSTOGRPCODE(),this.InitialValue()}},{key:"InitialValue",value:function(){this.ClarinsFlashReportBYGroup.get("YEAR").setValue((new Date).getFullYear()),this.ClarinsFlashReportBYGroup.get("STOGRPCODE").setValue("All")}},{key:"resetForm",value:function(){this.ClarinsFlashReportBYGroup.reset(),this.InitialValue()}},{key:"GetSTOGRPCODE",value:function(){var e=this;this.sharedService.GetSTOGRPCODE(P.d.STOGRPCODE_CLARINS).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.STOGRPCODE.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load STOGRPCODE.")})}},{key:"rptClarinsFlashReportByWeek",value:function(e,t){var n,o=this;this.spinner.show(),this.clarinsreportservice.rptClarinsFlashReportByGroup(e,t).subscribe(function(e){n=new Blob([e],{type:"application/pdf"})},function(e){console.log(e)},function(){var e=URL.createObjectURL(n);window.open(e,"_blank"),o.spinner.hide()})}},{key:"ClarinsFlashReportBYGroup",get:function(){return this.ClarinsFlashReportBYGroupForm.get("ClarinsFlashReportBYGroup")}}]),t}()).\u0275fac=function(e){return new(e||le)(c.Mb(N.c),c.Mb(a.e),c.Mb(a.a),c.Mb(F.a),c.Mb(E.a),c.Mb(T.c))},le.\u0275cmp=c.Gb({type:le,selectors:[["app-clarins-flash-report-bygroup"]],decls:40,vars:8,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-12"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],["formGroupName","ClarinsFlashReportBYGroup"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","300px"],[1,"text-center",2,"margin-top","35px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","35px"],[1,"row","no-padding","mb-1"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-5"],["formControlName","YEAR",1,"form-control","form-control-sm"],[3,"value",4,"ngFor","ngForOf"],[1,"col-sm-12"],[1,"row","no-padding","mb-2","mt-2"],["for","STOGRPCODE",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","STOGRPCODE",1,"form-control","form-control-sm"],[1,"text-center","mt-2","mb-1"],["mdbBtn","","type","submit","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["mdbBtn","","type","button","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["bdColor","rgba(255,255,255,0.5)","size","small","color","#cc2222","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","#cc2222","font-size","22px"],[3,"value"]],template:function(e,t){1&e&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",3),c.Sb(15,"div",11),c.Sb(16,"div",12),c.Sb(17,"label",13),c.Kc(18,"YEAR:"),c.Rb(),c.Sb(19,"div",14),c.Sb(20,"select",15),c.Ic(21,re,2,2,"option",16),c.fc(22,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(23,"div",17),c.Sb(24,"div",18),c.Sb(25,"label",19),c.Kc(26,"STOGRPCODE:"),c.Rb(),c.Sb(27,"div",14),c.Sb(28,"select",20),c.Ic(29,ae,2,2,"option",16),c.fc(30,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(31,"div",3),c.Sb(32,"div",21),c.Sb(33,"button",22),c.cc("click",function(){return t.rptClarinsFlashReportByWeek(t.ClarinsFlashReportBYGroup.get("YEAR").value,t.ClarinsFlashReportBYGroup.get("STOGRPCODE").value)}),c.Kc(34," Submit"),c.Rb(),c.Sb(35,"button",23),c.cc("click",function(){return t.resetForm()}),c.Kc(36," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(37,"ngx-spinner",24),c.Sb(38,"p",25),c.Kc(39," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&e&&(c.yb(1),c.mc("formGroup",t.ClarinsFlashReportBYGroupForm),c.yb(20),c.mc("ngForOf",c.gc(22,4,t.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(30,6,t.STOGRPCODES)),c.yb(8),c.mc("fullScreen",!1))},directives:[N.t,N.m,N.g,N.h,N.q,N.l,N.e,_.m,I.b,I.c,T.a,N.o,N.s],pipes:[_.b],styles:[".full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;border-bottom-color:rgba(202,245,159,.8)}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}.keep-middle[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:-5px}.txt-width-300[_ngcontent-%COMP%]{width:300px!important;height:30px!important;margin-bottom:4px;font-family:Courier New;font-size:small}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}.font-label[_ngcontent-%COMP%]{font-size:12px}#grad1[_ngcontent-%COMP%]{height:355px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}"]}),le);function se(e,t){if(1&e&&(c.Sb(0,"option",39),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function de(e,t){if(1&e&&(c.Sb(0,"select",38),c.Ic(1,se,2,2,"option",25),c.fc(2,"async"),c.Rb()),2&e){var n=c.ec();c.yb(1),c.mc("ngForOf",c.gc(2,1,n.ReportTypes))}}function be(e,t){1&e&&c.Nb(0,"a",40),2&e&&c.mc("innerHTML",t.$implicit.Name,c.Ac)}function pe(e,t){1&e&&c.Nb(0,"div",40),2&e&&c.mc("innerHTML",t.$implicit,c.Ac)}function ue(e,t){if(1&e&&(c.Sb(0,"option",39),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function ge(e,t){if(1&e&&(c.Sb(0,"option",39),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function he(e,t){1&e&&c.Nb(0,"a",40),2&e&&c.mc("innerHTML",t.$implicit.Name,c.Ac)}function fe(e,t){1&e&&c.Nb(0,"div",40),2&e&&c.mc("innerHTML",t.$implicit,c.Ac)}var me,Se=((me=function(){function t(n,o,i,r,a,l){e(this,t),this.fb=n,this.router=o,this.activatedRoute=i,this.sharedService=r,this.clarinsreportservice=a,this.spinner=l,this.placeholder="Enter Search String",this.keyword="Name",this.YEARS=this.sharedService.YEAR.asObservable(),this.AREAS=this.sharedService.AREA.asObservable(),this.BaseURL="",this.ReportType=Object(k.a)([{Value:"All",Name:"All"},{Value:"MOBILE",Name:"MOBILE"},{Value:"NONMOBILE",Name:"NONMOBILE"}]),this.CreateWeeklyConsultantSalesForm()}return n(t,[{key:"CreateWeeklyConsultantSalesForm",value:function(){this.WeeklyConsultantSalesForm=this.fb.group({WeeklyConsultantSales:this.fb.group({ReportType:[""],ACC:[""],YEAR:[""],AREA:[""],EMPNO:[""]})})}},{key:"ngOnInit",value:function(){this.ReportTypes=this.ReportType,this.YEARS=Object(A.a)([this.activatedRoute.snapshot.data.Years]),this.AllAccount=this.sharedService.GetStore(P.e.WeeklyConsultantSales),this.AllEmpno=this.sharedService.GetEmpno(P.b.WeeklyConsultantSales),this.GetArea(),this.InitialValue()}},{key:"InitialValue",value:function(){this.WeeklyConsultantSales.get("ReportType").setValue("All"),this.WeeklyConsultantSales.get("YEAR").setValue((new Date).getFullYear()),this.WeeklyConsultantSales.get("AREA").setValue("All")}},{key:"resetForm",value:function(){this.WeeklyConsultantSalesForm.reset(),this.InitialValue()}},{key:"GetArea",value:function(){var e=this;this.sharedService.GetArea(P.a.AREA_CLARINS).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.AREA.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load AREAS.")})}},{key:"selectEvent",value:function(e){}},{key:"onChangeSearch",value:function(e){}},{key:"searchCleared",value:function(){}},{key:"selectEvent1",value:function(e){}},{key:"onChangeSearch1",value:function(e){}},{key:"searchCleared1",value:function(){}},{key:"rptWeeklyConsultantSales",value:function(e,t,n,o,i){var r,a=this;this.spinner.show(),this.clarinsreportservice.rptWeeklyConsultantSales(void 0===e.Value?0:e.Value,t,n,void 0===o.Value?0:o.Value,i).subscribe(function(e){r=new Blob([e],{type:"application/pdf"})},function(e){console.log(e)},function(){var e=URL.createObjectURL(r);window.open(e,"_blank"),a.spinner.hide()})}},{key:"getVal",value:function(){return{Value:"0",Name:"All"}}},{key:"WeeklyConsultantSales",get:function(){return this.WeeklyConsultantSalesForm.get("WeeklyConsultantSales")}}]),t}()).\u0275fac=function(e){return new(e||me)(c.Mb(N.c),c.Mb(a.e),c.Mb(a.a),c.Mb(E.a),c.Mb(F.a),c.Mb(T.c))},me.\u0275cmp=c.Gb({type:me,selectors:[["weekly-consultant-sales"]],decls:71,vars:29,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-12"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],["formGroupName","WeeklyConsultantSales"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","350px"],[1,"text-center",2,"margin-top","15px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","25px"],[1,"row","no-padding","mb-2"],["for","ReportType",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-5",2,"padding-left","10px"],["formControlName","ReportType","class","form-control form-control-sm",4,"ngIf"],[1,"col-sm-12"],["for","ACC",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-8",2,"padding-left","10px"],["formControlName","ACC","id","ACC","name","ACC","notFoundText","Not found",3,"data","initialValue","searchKeyword","placeholder","minQueryLength","itemTemplate","notFoundTemplate","debounceTime","selected","inputChanged","inputCleared"],["ngAutoCompleteStatic",""],["itemTemplateStatic",""],["notFoundTemplate",""],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","YEAR",1,"form-control","form-control-sm"],[3,"value",4,"ngFor","ngForOf"],["for","Area",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","AREA",1,"form-control","form-control-sm"],["for","Empno",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","EMPNO","id","EMPNO","name","EMPNO","notFoundText","Not found",3,"data","initialValue","searchKeyword","placeholder","minQueryLength","itemTemplate","notFoundTemplate","debounceTime","selected","inputChanged","inputCleared"],["ngAutoCompleteStatic2",""],["itemTemplateStatic2",""],["notFoundTemplate2",""],[1,"text-center","mt-2","mb-1"],["mdbBtn","","type","submit","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["mdbBtn","","type","button","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["bdColor","rgba(255,255,255,0.5)","size","small","color","#cc2222","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","#cc2222","font-size","22px"],["formControlName","ReportType",1,"form-control","form-control-sm"],[3,"value"],[3,"innerHTML"]],template:function(e,t){if(1&e&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",3),c.Sb(15,"div",11),c.Sb(16,"div",12),c.Sb(17,"label",13),c.Kc(18,"REPORT TYPE:"),c.Rb(),c.Sb(19,"div",14),c.Ic(20,de,3,3,"select",15),c.fc(21,"async"),c.Rb(),c.Rb(),c.Rb(),c.Sb(22,"div",16),c.Sb(23,"div",12),c.Sb(24,"label",17),c.Kc(25,"STORE NAME:"),c.Rb(),c.Sb(26,"div",18),c.Sb(27,"ng-autocomplete",19,20),c.cc("selected",function(e){return t.selectEvent(e)})("inputChanged",function(e){return t.onChangeSearch(e)})("inputCleared",function(){return t.searchCleared()}),c.fc(29,"async"),c.Rb(),c.Ic(30,be,1,1,"ng-template",null,21,c.Jc),c.Ic(32,pe,1,1,"ng-template",null,22,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(34,"div",16),c.Sb(35,"div",12),c.Sb(36,"label",23),c.Kc(37,"YEAR:"),c.Rb(),c.Sb(38,"div",14),c.Sb(39,"select",24),c.Ic(40,ue,2,2,"option",25),c.fc(41,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(42,"div",16),c.Sb(43,"div",12),c.Sb(44,"label",26),c.Kc(45,"AREA:"),c.Rb(),c.Sb(46,"div",14),c.Sb(47,"select",27),c.Ic(48,ge,2,2,"option",25),c.fc(49,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(50,"div",16),c.Sb(51,"div",12),c.Sb(52,"label",28),c.Kc(53,"EMPLOYEE:"),c.Rb(),c.Sb(54,"div",18),c.Sb(55,"ng-autocomplete",29,30),c.cc("selected",function(e){return t.selectEvent1(e)})("inputChanged",function(e){return t.onChangeSearch1(e)})("inputCleared",function(){return t.searchCleared1()}),c.fc(57,"async"),c.Rb(),c.Ic(58,he,1,1,"ng-template",null,31,c.Jc),c.Ic(60,fe,1,1,"ng-template",null,32,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(62,"div",3),c.Sb(63,"div",33),c.Sb(64,"button",34),c.cc("click",function(){return t.rptWeeklyConsultantSales(t.WeeklyConsultantSales.get("ACC").value,t.WeeklyConsultantSales.get("YEAR").value,"All"===t.WeeklyConsultantSales.get("AREA").value?0:t.WeeklyConsultantSales.get("AREA").value,t.WeeklyConsultantSales.get("EMPNO").value,t.WeeklyConsultantSales.get("ReportType").value)}),c.Kc(65," Submit"),c.Rb(),c.Sb(66,"button",35),c.cc("click",function(){return t.resetForm()}),c.Kc(67," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(68,"ngx-spinner",36),c.Sb(69,"p",37),c.Kc(70," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&e){var n=c.wc(31),o=c.wc(33),i=c.wc(59),r=c.wc(61);c.yb(1),c.mc("formGroup",t.WeeklyConsultantSalesForm),c.yb(19),c.mc("ngIf",c.gc(21,19,t.ReportTypes).length),c.yb(7),c.mc("data",c.gc(29,21,t.AllAccount))("searchKeyword",t.keyword)("placeholder",t.placeholder)("minQueryLength",2)("itemTemplate",n)("notFoundTemplate",o)("debounceTime",10),c.yb(13),c.mc("ngForOf",c.gc(41,23,t.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(49,25,t.AREAS)),c.yb(7),c.mc("data",c.gc(57,27,t.AllEmpno))("searchKeyword",t.keyword)("placeholder",t.placeholder)("minQueryLength",2)("itemTemplate",i)("notFoundTemplate",r)("debounceTime",10),c.yb(13),c.mc("fullScreen",!1)}},directives:[N.t,N.m,N.g,N.h,_.n,j.a,N.l,N.e,N.q,_.m,I.b,I.c,T.a,N.o,N.s],pipes:[_.b],styles:["button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}label[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%]     .ng-autocomplete{line-height:0!important;white-space:nowrap}[_nghost-%COMP%]     .autocomplete-container{box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);position:relative;overflow:visible;height:30px;border-radius:4px;padding-right:0;margin-right:0}[_nghost-%COMP%]     .autocomplete-container .input-container input{font-size:12px;font-weight:500!important;box-sizing:border-box;border:none;box-shadow:none;outline:none;background-color:#fff;color:rgba(0,0,0,.87);width:100%;line-height:4px;height:30px;padding:0 5px 0 12px}[_nghost-%COMP%]     .autocomplete-container .input-container .x{position:absolute;right:2px;margin:auto;cursor:pointer;top:50%;transform:translateY(-50%)}[_nghost-%COMP%]     .autocomplete-container .suggestions-container{display:grid;padding-right:1px;border:1px solid #b0c4de}[_nghost-%COMP%]     .autocomplete-container .suggestions-container li:hover a{background-color:rgba(255,0,0,.6);color:#fff!important}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul{padding:0;margin:0;max-height:300px;overflow-y:auto}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul li a{padding:11px 5px 10px 12px;display:block;text-decoration:none;cursor:pointer;color:rgba(0,0,0,.87);font-size:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-weight:700!important}.full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}.keep-middle[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:-5px}.txt-width-300[_ngcontent-%COMP%]{width:300px!important;height:30px!important;margin-bottom:4px;font-family:Courier New;font-size:small}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}.font-label[_ngcontent-%COMP%]{font-size:12px}#grad1[_ngcontent-%COMP%]{height:400px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}"]}),me);function Re(e,t){1&e&&c.Nb(0,"a",42),2&e&&c.mc("innerHTML",t.$implicit.Name,c.Ac)}function ve(e,t){1&e&&c.Nb(0,"div",42),2&e&&c.mc("innerHTML",t.$implicit,c.Ac)}function Ce(e,t){if(1&e&&(c.Sb(0,"option",43),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function ye(e,t){if(1&e&&(c.Sb(0,"option",43),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function xe(e,t){if(1&e&&(c.Sb(0,"option",43),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Oe(e,t){if(1&e&&(c.Sb(0,"option",43),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Me(e,t){if(1&e&&(c.Sb(0,"option",43),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function ke(e,t){if(1&e&&(c.Sb(0,"option",43),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Ae(e,t){if(1&e&&(c.Sb(0,"option",43),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}var Pe,we=((Pe=function(){function t(n,o,i,r,a,l){e(this,t),this.fb=n,this.router=o,this.activatedRoute=i,this.sharedService=r,this.clarinsreportservice=a,this.spinner=l,this.placeholder="Enter Search String",this.keyword="Name",this.YEARS=this.sharedService.YEAR.asObservable(),this.AREAS=this.sharedService.AREA.asObservable(),this.STOGRPCODES=this.sharedService.STOGRPCODE.asObservable(),this.REGIONS=this.sharedService.REGION.asObservable(),this.TOWNS=this.sharedService.TOWN.asObservable(),this.Categories=this.sharedService.Category.asObservable(),this.IPAD=Object(k.a)([{Value:"All",Name:"All"},{Value:"YES",Name:"YES"},{Value:"NO",Name:"NO"}]),this.CreateWeeklyCounterSalesForm()}return n(t,[{key:"CreateWeeklyCounterSalesForm",value:function(){this.WeeklyCounterSalesForm=this.fb.group({WeeklyCounterSales:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""],TOWN:[""],IPAD:[""],CATEGORY:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(A.a)([this.activatedRoute.snapshot.data.Years]),this.IPADS=this.IPAD,this.AllAccount=this.sharedService.GetStore(P.e.WeeklyConsultantSales),this.GetArea(),this.GetCategories(),this.GetSTOGRPCODE(),this.GetRegion(),this.GetTown(),this.InitialValue()}},{key:"InitialValue",value:function(){this.WeeklyCounterSales.get("IPAD").setValue("All"),this.WeeklyCounterSales.get("REGION").setValue("All"),this.WeeklyCounterSales.get("AREA").setValue("All"),this.WeeklyCounterSales.get("TOWN").setValue("All"),this.WeeklyCounterSales.get("CATEGORY").setValue("All"),this.WeeklyCounterSales.get("STOGRPCODE").setValue("All"),this.WeeklyCounterSales.get("YEAR").setValue((new Date).getFullYear())}},{key:"ResetForm",value:function(){this.WeeklyCounterSalesForm.reset(),this.InitialValue()}},{key:"GetRegion",value:function(){var e=this;this.sharedService.GetRegion(P.c.REGION_BB).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.REGION.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load REGIONS.")})}},{key:"GetTown",value:function(){var e=this;this.sharedService.GetTown(P.f.TOWN_CLARINS).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.TOWN.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load TOWNS.")})}},{key:"GetArea",value:function(){var e=this;this.sharedService.GetArea(P.a.AREA_CLARINS).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.AREA.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load AREAS.")})}},{key:"GetCategories",value:function(){var e=this;this.sharedService.GetCategories().subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.Category.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load STOGRPCODE.")})}},{key:"GetSTOGRPCODE",value:function(){var e=this;this.sharedService.GetSTOGRPCODE(P.d.STOGRPCODE_CLARINS).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.STOGRPCODE.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load STOGRPCODE.")})}},{key:"selectEvent",value:function(e){}},{key:"onChangeSearch",value:function(e){}},{key:"searchCleared",value:function(){}},{key:"rptWeeklyCounterSales",value:function(e,t,n,o,i,r,a,l){var c,s=this;this.spinner.show(),this.clarinsreportservice.rptWeeklyCounterSales(void 0===e.Value?0:e.Value,t,n,o,i,r,a,l).subscribe(function(e){c=new Blob([e],{type:"application/pdf"})},function(e){console.log(e)},function(){var e=URL.createObjectURL(c);window.open(e,"_blank"),s.spinner.hide()})}},{key:"WeeklyCounterSales",get:function(){return this.WeeklyCounterSalesForm.get("WeeklyCounterSales")}}]),t}()).\u0275fac=function(e){return new(e||Pe)(c.Mb(N.c),c.Mb(a.e),c.Mb(a.a),c.Mb(E.a),c.Mb(F.a),c.Mb(T.c))},Pe.\u0275cmp=c.Gb({type:Pe,selectors:[["app-weekly-counter-sales"]],decls:91,vars:32,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-12"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],["formGroupName","WeeklyCounterSales"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","390px"],[1,"text-center",2,"margin-top","15px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","20px"],[1,"row","no-padding","mb-2"],["for","store",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],[1,"col-sm-8",2,"padding-left","10px"],["formControlName","ACC","id","ACC","name","ACC","notFoundText","Not found",3,"data","initialValue","searchKeyword","placeholder","minQueryLength","itemTemplate","notFoundTemplate","debounceTime","selected","inputChanged","inputCleared"],["ngAutoCompleteStatic",""],["itemTemplateStatic",""],["notFoundTemplate",""],[1,"col-sm-12"],[1,"row","no-padding","mb-1"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],[1,"col-sm-5",2,"padding-left","10px"],["formControlName","YEAR",1,"form-control","form-control-sm"],[3,"value",4,"ngFor","ngForOf"],["for","Area",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","AREA",1,"form-control","form-control-sm"],["for","Store Group",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","STOGRPCODE",1,"form-control","form-control-sm"],["for","Region",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","REGION",1,"form-control","form-control-sm"],["for","Town",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","TOWN",1,"form-control","form-control-sm"],["for","IPAD",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","IPAD",1,"form-control","form-control-sm"],["for","Category",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","CATEGORY",1,"form-control","form-control-sm"],[1,"text-center","mt-2"],["mdbBtn","","type","submit","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["mdbBtn","","type","button","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["bdColor","rgba(255,255,255,0.5)","size","small","color","#cc2222","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","#cc2222","font-size","22px"],[3,"innerHTML"],[3,"value"]],template:function(e,t){if(1&e&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",11),c.Sb(15,"div",12),c.Sb(16,"label",13),c.Kc(17,"Store:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"ng-autocomplete",15,16),c.cc("selected",function(e){return t.selectEvent(e)})("inputChanged",function(e){return t.onChangeSearch(e)})("inputCleared",function(){return t.searchCleared()}),c.fc(21,"async"),c.Rb(),c.Ic(22,Re,1,1,"ng-template",null,17,c.Jc),c.Ic(24,ve,1,1,"ng-template",null,18,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(26,"div",19),c.Sb(27,"div",20),c.Sb(28,"label",21),c.Kc(29,"YEAR:"),c.Rb(),c.Sb(30,"div",22),c.Sb(31,"select",23),c.Ic(32,Ce,2,2,"option",24),c.fc(33,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(34,"div",19),c.Sb(35,"div",20),c.Sb(36,"label",25),c.Kc(37,"Area:"),c.Rb(),c.Sb(38,"div",22),c.Sb(39,"select",26),c.Ic(40,ye,2,2,"option",24),c.fc(41,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(42,"div",19),c.Sb(43,"div",20),c.Sb(44,"label",27),c.Kc(45,"Store Group Code:"),c.Rb(),c.Sb(46,"div",22),c.Sb(47,"select",28),c.Ic(48,xe,2,2,"option",24),c.fc(49,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(50,"div",19),c.Sb(51,"div",20),c.Sb(52,"label",29),c.Kc(53,"Region:"),c.Rb(),c.Sb(54,"div",22),c.Sb(55,"select",30),c.Ic(56,Oe,2,2,"option",24),c.fc(57,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(58,"div",19),c.Sb(59,"div",20),c.Sb(60,"label",31),c.Kc(61,"Town:"),c.Rb(),c.Sb(62,"div",22),c.Sb(63,"select",32),c.Ic(64,Me,2,2,"option",24),c.fc(65,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(66,"div",19),c.Sb(67,"div",20),c.Sb(68,"label",33),c.Kc(69,"IPAD:"),c.Rb(),c.Sb(70,"div",22),c.Sb(71,"select",34),c.Ic(72,ke,2,2,"option",24),c.fc(73,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(74,"div",19),c.Sb(75,"div",20),c.Sb(76,"label",35),c.Kc(77,"Category:"),c.Rb(),c.Sb(78,"div",22),c.Sb(79,"select",36),c.Ic(80,Ae,2,2,"option",24),c.fc(81,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(82,"div",3),c.Sb(83,"div",37),c.Sb(84,"button",38),c.cc("click",function(){return t.rptWeeklyCounterSales(t.WeeklyCounterSales.get("ACC").value,t.WeeklyCounterSales.get("YEAR").value,"All"===t.WeeklyCounterSales.get("AREA").value?0:t.WeeklyCounterSales.get("AREA").value,t.WeeklyCounterSales.get("STOGRPCODE").value,"All"===t.WeeklyCounterSales.get("REGION").value?0:t.WeeklyCounterSales.get("REGION").value,t.WeeklyCounterSales.get("TOWN").value,t.WeeklyCounterSales.get("IPAD").value,t.WeeklyCounterSales.get("CATEGORY").value)}),c.Kc(85," Submit"),c.Rb(),c.Sb(86,"button",39),c.cc("click",function(){return t.ResetForm()}),c.Kc(87," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(88,"ngx-spinner",40),c.Sb(89,"p",41),c.Kc(90," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&e){var n=c.wc(23),o=c.wc(25);c.yb(1),c.mc("formGroup",t.WeeklyCounterSalesForm),c.yb(18),c.mc("data",c.gc(21,16,t.AllAccount))("searchKeyword",t.keyword)("placeholder",t.placeholder)("minQueryLength",2)("itemTemplate",n)("notFoundTemplate",o)("debounceTime",10),c.yb(13),c.mc("ngForOf",c.gc(33,18,t.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(41,20,t.AREAS)),c.yb(8),c.mc("ngForOf",c.gc(49,22,t.STOGRPCODES)),c.yb(8),c.mc("ngForOf",c.gc(57,24,t.REGIONS)),c.yb(8),c.mc("ngForOf",c.gc(65,26,t.TOWNS)),c.yb(8),c.mc("ngForOf",c.gc(73,28,t.IPADS)),c.yb(8),c.mc("ngForOf",c.gc(81,30,t.Categories)),c.yb(8),c.mc("fullScreen",!1)}},directives:[N.t,N.m,N.g,N.h,j.a,N.l,N.e,N.q,_.m,I.b,I.c,T.a,N.o,N.s],pipes:[_.b],styles:["button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}[_nghost-%COMP%]     .ng-autocomplete{line-height:0!important;white-space:nowrap}[_nghost-%COMP%]     .autocomplete-container{box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);position:relative;overflow:visible;height:30px;border-radius:4px;padding-right:0;margin-right:0}[_nghost-%COMP%]     .autocomplete-container .input-container input{font-size:12px;font-weight:500!important;box-sizing:border-box;border:none;box-shadow:none;outline:none;background-color:#fff;color:rgba(0,0,0,.87);width:100%;line-height:4px;height:30px;padding:0 5px 0 12px}[_nghost-%COMP%]     .autocomplete-container .input-container .x{position:absolute;right:2px;margin:auto;cursor:pointer;top:50%;transform:translateY(-50%)}[_nghost-%COMP%]     .autocomplete-container .suggestions-container{display:grid;padding-right:1px;border:1px solid #b0c4de}[_nghost-%COMP%]     .autocomplete-container .suggestions-container li:hover a{background-color:rgba(255,0,0,.6);color:#fff!important}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul{padding:0;margin:0;max-height:300px;overflow-y:auto}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul li a{padding:11px 5px 10px 12px;display:block;text-decoration:none;cursor:pointer;color:rgba(0,0,0,.87);font-size:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-weight:700!important}.full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;border-bottom-color:#28a745}.report-round[_ngcontent-%COMP%]{border-radius:5px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}label[_ngcontent-%COMP%]{text-transform:uppercase;font-size:12px}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}#grad1[_ngcontent-%COMP%]{height:440px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}"]}),Pe),Ne=i("Kj3r"),Ee=i("/uUt"),Fe=i("vkgz"),_e=i("eIep");function Ge(e,t){if(1&e&&(c.Sb(0,"option",32),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Te(e,t){if(1&e&&(c.Sb(0,"option",32),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Ie(e,t){1&e&&c.Nb(0,"a",33),2&e&&c.mc("innerHTML",t.$implicit.Name,c.Ac)}function Le(e,t){1&e&&c.Nb(0,"div",33),2&e&&c.mc("innerHTML",t.$implicit,c.Ac)}function We(e,t){if(1&e&&(c.Sb(0,"option",32),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}var Ye,De=((Ye=function(){function t(n,o,i,r,a,l){e(this,t),this.fb=n,this.router=o,this.activatedRoute=i,this.sharedService=r,this.clarinsreportservice=a,this.spinner=l,this.placeholder="Enter Search String",this.keyword="Name",this.YEARS=this.sharedService.YEAR.asObservable(),this.AREAS=this.sharedService.AREA.asObservable(),this.MONTHS=this.sharedService.MONTH.asObservable(),this.loading=!1,this.CreateWeeklyBeautyCoachSalesForm()}return n(t,[{key:"CreateWeeklyBeautyCoachSalesForm",value:function(){this.WeeklyBeautyCoachSalesForm=this.fb.group({WeeklyBeautyCoachSales:this.fb.group({YEAR:[""],AREA:[""],EMPNO:[""],MONTH:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(A.a)([this.activatedRoute.snapshot.data.Years]),this.AllEmpno=this.sharedService.GetEmpno(P.b.WeeklyAngelSales),this.GetMonth(),this.GetArea(),this.InitialValue()}},{key:"Search",value:function(){var e=this;this.results=this.WeeklyBeautyCoachSales.get("EMPNO").valueChanges.pipe(Object(Ne.a)(400),Object(Ee.a)(),Object(Fe.a)(function(t){return e.loading=!0}),Object(_e.a)(function(t){return e.sharedService.search(t)}),Object(Fe.a)(function(t){return e.loading=!1}))}},{key:"InitialValue",value:function(){this.WeeklyBeautyCoachSales.get("YEAR").setValue((new Date).getFullYear()),this.WeeklyBeautyCoachSales.get("MONTH").setValue("All"),this.WeeklyBeautyCoachSales.get("AREA").setValue("All")}},{key:"resetForm",value:function(){this.WeeklyBeautyCoachSalesForm.reset(),this.InitialValue()}},{key:"GetMonth",value:function(){var e=this;this.sharedService.GetMonth().subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.MONTH.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load MONTHS.")})}},{key:"GetArea",value:function(){var e=this;this.sharedService.GetArea(P.a.AREA_ANGLE).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.AREA.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load AREAS.")})}},{key:"selectEvent",value:function(e){}},{key:"onChangeSearch",value:function(e){}},{key:"searchCleared",value:function(){}},{key:"rptWeeklyBeautyCoachSales",value:function(e,t,n,o){var i,r=this;this.spinner.show(),this.clarinsreportservice.rptWeeklyBeautyCoachSales(e,t,void 0===n.Value?0:n.Value,o).subscribe(function(e){i=new Blob([e],{type:"application/pdf"})},function(e){console.log(e)},function(){var e=URL.createObjectURL(i);window.open(e,"_blank"),r.spinner.hide()})}},{key:"WeeklyBeautyCoachSales",get:function(){return this.WeeklyBeautyCoachSalesForm.get("WeeklyBeautyCoachSales")}}]),t}()).\u0275fac=function(e){return new(e||Ye)(c.Mb(N.c),c.Mb(a.e),c.Mb(a.a),c.Mb(E.a),c.Mb(F.a),c.Mb(T.c))},Ye.\u0275cmp=c.Gb({type:Ye,selectors:[["weekly-beauty-coach-sales"]],decls:60,vars:20,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-12"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],["formGroupName","WeeklyBeautyCoachSales"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","320px"],[1,"text-center",2,"margin-top","15px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","40px"],[1,"row","no-padding","mb-2"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-5"],["formControlName","YEAR",1,"form-control","form-control-sm"],[3,"value",4,"ngFor","ngForOf"],[1,"col-sm-12"],["for","Store Group",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","AREA",1,"form-control","form-control-sm"],["for","Region",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-8"],["formControlName","EMPNO","id","EMPNO","name","EMPNO","notFoundText","Not found",3,"data","initialValue","searchKeyword","placeholder","minQueryLength","itemTemplate","notFoundTemplate","debounceTime","selected","inputChanged","inputCleared"],["ngAutoCompleteStatic",""],["itemTemplateStatic",""],["notFoundTemplate",""],["formControlName","MONTH",1,"form-control","form-control-sm"],[1,"text-center","mt-2","mb-1"],["mdbBtn","","type","submit","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["mdbBtn","","type","button","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["bdColor","rgba(255,255,255,0.5)","size","small","color","#cc2222","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","#cc2222","font-size","22px"],[3,"value"],[3,"innerHTML"]],template:function(e,t){if(1&e&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",3),c.Sb(15,"div",11),c.Sb(16,"div",12),c.Sb(17,"label",13),c.Kc(18,"Year:"),c.Rb(),c.Sb(19,"div",14),c.Sb(20,"select",15),c.Ic(21,Ge,2,2,"option",16),c.fc(22,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(23,"div",17),c.Sb(24,"div",12),c.Sb(25,"label",18),c.Kc(26,"Area:"),c.Rb(),c.Sb(27,"div",14),c.Sb(28,"select",19),c.Ic(29,Te,2,2,"option",16),c.fc(30,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(31,"div",17),c.Sb(32,"div",12),c.Sb(33,"label",20),c.Kc(34,"Empno:"),c.Rb(),c.Sb(35,"div",21),c.Sb(36,"ng-autocomplete",22,23),c.cc("selected",function(e){return t.selectEvent(e)})("inputChanged",function(e){return t.onChangeSearch(e)})("inputCleared",function(){return t.searchCleared()}),c.fc(38,"async"),c.Rb(),c.Ic(39,Ie,1,1,"ng-template",null,24,c.Jc),c.Ic(41,Le,1,1,"ng-template",null,25,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(43,"div",17),c.Sb(44,"div",12),c.Sb(45,"label",20),c.Kc(46,"Month:"),c.Rb(),c.Sb(47,"div",14),c.Sb(48,"select",26),c.Ic(49,We,2,2,"option",16),c.fc(50,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(51,"div",3),c.Sb(52,"div",27),c.Sb(53,"button",28),c.cc("click",function(){return t.rptWeeklyBeautyCoachSales(t.WeeklyBeautyCoachSales.get("YEAR").value,"All"===t.WeeklyBeautyCoachSales.get("AREA").value?0:t.WeeklyBeautyCoachSales.get("AREA").value,t.WeeklyBeautyCoachSales.get("EMPNO").value,"All"===t.WeeklyBeautyCoachSales.get("MONTH").value?0:t.WeeklyBeautyCoachSales.get("MONTH").value)}),c.Kc(54," Submit"),c.Rb(),c.Sb(55,"button",29),c.cc("click",function(){return t.resetForm()}),c.Kc(56," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(57,"ngx-spinner",30),c.Sb(58,"p",31),c.Kc(59," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&e){var n=c.wc(40),o=c.wc(42);c.yb(1),c.mc("formGroup",t.WeeklyBeautyCoachSalesForm),c.yb(20),c.mc("ngForOf",c.gc(22,12,t.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(30,14,t.AREAS)),c.yb(7),c.mc("data",c.gc(38,16,t.AllEmpno))("searchKeyword",t.keyword)("placeholder",t.placeholder)("minQueryLength",2)("itemTemplate",n)("notFoundTemplate",o)("debounceTime",10),c.yb(13),c.mc("ngForOf",c.gc(50,18,t.MONTHS)),c.yb(8),c.mc("fullScreen",!1)}},directives:[N.t,N.m,N.g,N.h,N.q,N.l,N.e,_.m,j.a,I.b,I.c,T.a,N.o,N.s],pipes:[_.b],styles:["button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}label[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%]     .ng-autocomplete{line-height:0!important;white-space:nowrap}[_nghost-%COMP%]     .autocomplete-container{box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);position:relative;overflow:visible;height:30px;border-radius:4px;padding-right:0;margin-right:0}[_nghost-%COMP%]     .autocomplete-container .input-container input{font-size:12px;font-weight:500!important;box-sizing:border-box;border:none;box-shadow:none;outline:none;background-color:#fff;color:rgba(0,0,0,.87);width:100%;line-height:4px;height:30px;padding:0 5px 0 12px}[_nghost-%COMP%]     .autocomplete-container .input-container .x{position:absolute;right:2px;margin:auto;cursor:pointer;top:50%;transform:translateY(-50%)}[_nghost-%COMP%]     .autocomplete-container .suggestions-container{display:grid;padding-right:1px;border:1px solid #b0c4de}[_nghost-%COMP%]     .autocomplete-container .suggestions-container li:hover a{background-color:rgba(255,0,0,.6);color:#fff!important}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul{padding:0;margin:0;max-height:300px;overflow-y:auto}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul li a{padding:11px 5px 10px 12px;display:block;text-decoration:none;cursor:pointer;color:rgba(0,0,0,.87);font-size:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-weight:700!important}.full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;border-bottom-color:#caf59f}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}.txt-width-300[_ngcontent-%COMP%]{width:300px!important;height:30px!important;margin-bottom:4px;font-family:Courier New;font-size:small}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}.font-label[_ngcontent-%COMP%]{font-size:12px}#grad1[_ngcontent-%COMP%]{height:370px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}"]}),Ye),Ve=["auto"];function Be(e,t){1&e&&c.Nb(0,"a",34),2&e&&c.mc("innerHTML",t.$implicit.Name,c.Ac)}function Ke(e,t){1&e&&c.Nb(0,"div",34),2&e&&c.mc("innerHTML",t.$implicit,c.Ac)}function ze(e,t){if(1&e&&(c.Sb(0,"option",35),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function He(e,t){if(1&e&&(c.Sb(0,"option",35),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Ue(e,t){if(1&e&&(c.Sb(0,"option",35),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}var je,$e=((je=function(){function t(n,o,i,r,a,l){e(this,t),this.fb=n,this.router=o,this.activatedRoute=i,this.sharedService=r,this.clarinsreportservice=a,this.spinner=l,this.placeholder="Enter search string",this.keyword="Name",this.YEARS=this.sharedService.YEAR.asObservable(),this.AREAS=this.sharedService.AREA.asObservable(),this.IPAD=Object(k.a)([{Value:"All",Name:"All"},{Value:"YES",Name:"YES"},{Value:"NO",Name:"NO"}]),this.CreateNIWeeklyTargetsForm()}return n(t,[{key:"CreateNIWeeklyTargetsForm",value:function(){this.NIWeeklyTargetsForm=this.fb.group({NIWeeklyTargets:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],IPAD:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(A.a)([this.activatedRoute.snapshot.data.Years]),this.AllAccount=this.sharedService.GetStore(P.e.NIWeeklyTargets),this.IPADS=this.IPAD,this.GetArea(),this.InitialValue()}},{key:"InitialValue",value:function(){this.NIWeeklyTargets.get("YEAR").setValue((new Date).getFullYear()),this.NIWeeklyTargets.get("IPAD").setValue("All"),this.NIWeeklyTargets.get("AREA").setValue("All")}},{key:"ResetForm",value:function(){this.NIWeeklyTargetsForm.reset(),this.InitialValue()}},{key:"GetStore",value:function(){var e=this;this.sharedService.GetStore(P.e.NIWeeklyTargets).subscribe(function(t){e.AllAccount=t})}},{key:"GetArea",value:function(){var e=this;this.sharedService.GetArea(P.a.AREA_NI).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.AREA.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load AREAS.")})}},{key:"selectEvent",value:function(e){}},{key:"onChangeSearch",value:function(e){}},{key:"searchCleared",value:function(){this.InitialValue()}},{key:"openPanel",value:function(e){e.stopPropagation(),this.auto.open()}},{key:"closePanel",value:function(e){e.stopPropagation(),this.auto.close()}},{key:"focus",value:function(e){e.stopPropagation(),this.auto.focus()}},{key:"rptNIWeeklyTargets",value:function(e,t,n,o){var i,r=this;this.spinner.show(),this.clarinsreportservice.rptNIWeeklyTargets(void 0===e.Value?0:e.Value,t,n,o).subscribe(function(e){i=new Blob([e],{type:"application/pdf"})},function(e){console.log(e)},function(){var e=URL.createObjectURL(i);window.open(e,"_blank"),r.spinner.hide()})}},{key:"NIWeeklyTargets",get:function(){return this.NIWeeklyTargetsForm.get("NIWeeklyTargets")}}]),t}()).\u0275fac=function(e){return new(e||je)(c.Mb(N.c),c.Mb(a.e),c.Mb(a.a),c.Mb(E.a),c.Mb(F.a),c.Mb(T.c))},je.\u0275cmp=c.Gb({type:je,selectors:[["NIWeekly-Targets"]],viewQuery:function(e,t){var n;1&e&&c.Pc(Ve,!0),2&e&&c.vc(n=c.dc())&&(t.auto=n.first)},decls:59,vars:19,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-12"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],["formGroupName","NIWeeklyTargets"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","345px"],[1,"text-center",2,"margin-top","45px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","30px"],[1,"row","no-padding","mb-1"],["for","store",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-2"],[1,"col-sm-8","mb-2",2,"padding-left","10px"],["formControlName","ACC","notFoundText","Not found",3,"data","initialValue","searchKeyword","placeholder","minQueryLength","itemTemplate","notFoundTemplate","selected","inputChanged","inputCleared"],["ngAutoCompleteStatic",""],["itemTemplateStatic",""],["notFoundTemplate",""],[1,"col-sm-12"],[1,"row","no-padding","mb-2"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-5",2,"padding-left","10px"],["formControlName","YEAR",1,"form-control","form-control-sm"],[3,"value",4,"ngFor","ngForOf"],["for","Area",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","AREA",1,"form-control","form-control-sm"],["for","IPAD",1,"col-sm-4","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","IPAD",1,"form-control","form-control-sm"],[1,"text-center","mt-2"],["mdbBtn","","type","submit","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["mdbBtn","","type","button","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["bdColor","rgba(255,255,255,0.5)","size","small","color","#cc2222","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","#cc2222","font-size","22px"],[3,"innerHTML"],[3,"value"]],template:function(e,t){if(1&e&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",11),c.Sb(15,"div",12),c.Sb(16,"label",13),c.Kc(17,"STORE NAME:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"ng-autocomplete",15,16),c.cc("selected",function(e){return t.selectEvent(e)})("inputChanged",function(e){return t.onChangeSearch(e)})("inputCleared",function(){return t.searchCleared()}),c.fc(21,"async"),c.Rb(),c.Ic(22,Be,1,1,"ng-template",null,17,c.Jc),c.Ic(24,Ke,1,1,"ng-template",null,18,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(26,"div",19),c.Sb(27,"div",20),c.Sb(28,"label",21),c.Kc(29,"YEAR:"),c.Rb(),c.Sb(30,"div",22),c.Sb(31,"select",23),c.Ic(32,ze,2,2,"option",24),c.fc(33,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(34,"div",19),c.Sb(35,"div",20),c.Sb(36,"label",25),c.Kc(37,"AREA:"),c.Rb(),c.Sb(38,"div",22),c.Sb(39,"select",26),c.Ic(40,He,2,2,"option",24),c.fc(41,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(42,"div",19),c.Sb(43,"div",20),c.Sb(44,"label",27),c.Kc(45,"IPAD:"),c.Rb(),c.Sb(46,"div",22),c.Sb(47,"select",28),c.Ic(48,Ue,2,2,"option",24),c.fc(49,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(50,"div",3),c.Sb(51,"div",29),c.Sb(52,"button",30),c.cc("click",function(){return t.rptNIWeeklyTargets(t.NIWeeklyTargets.get("ACC").value,t.NIWeeklyTargets.get("YEAR").value,"All"===t.NIWeeklyTargets.get("AREA").value?0:t.NIWeeklyTargets.get("AREA").value,t.NIWeeklyTargets.get("IPAD").value)}),c.Kc(53," Submit"),c.Rb(),c.Sb(54,"button",31),c.cc("click",function(){return t.ResetForm()}),c.Kc(55," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(56,"ngx-spinner",32),c.Sb(57,"p",33),c.Kc(58," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&e){var n=c.wc(23),o=c.wc(25);c.yb(1),c.mc("formGroup",t.NIWeeklyTargetsForm),c.yb(18),c.mc("data",c.gc(21,11,t.AllAccount))("searchKeyword",t.keyword)("placeholder",t.placeholder)("minQueryLength",2)("itemTemplate",n)("notFoundTemplate",o),c.yb(13),c.mc("ngForOf",c.gc(33,13,t.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(41,15,t.AREAS)),c.yb(8),c.mc("ngForOf",c.gc(49,17,t.IPADS)),c.yb(8),c.mc("fullScreen",!1)}},directives:[N.t,N.m,N.g,N.h,j.a,N.l,N.e,N.q,_.m,I.b,I.c,T.a,N.o,N.s],pipes:[_.b],styles:["button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}label[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%]     .ng-autocomplete{line-height:0!important;white-space:nowrap}[_nghost-%COMP%]     .autocomplete-container{box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);position:relative;overflow:visible;height:30px;border-radius:4px;padding-right:0;margin-right:0}[_nghost-%COMP%]     .autocomplete-container .input-container input{font-size:12px;font-weight:500!important;box-sizing:border-box;border:none;box-shadow:none;outline:none;background-color:#fff;color:rgba(0,0,0,.87);width:100%;line-height:4px;height:30px;padding:0 5px 0 12px}[_nghost-%COMP%]     .autocomplete-container .input-container .x{position:absolute;right:2px;margin:auto;cursor:pointer;top:50%;transform:translateY(-50%)}[_nghost-%COMP%]     .autocomplete-container .suggestions-container{display:grid;padding-right:1px;border:1px solid #b0c4de}[_nghost-%COMP%]     .autocomplete-container .suggestions-container li:hover a{background-color:rgba(255,0,0,.6);color:#fff!important}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul{padding:0;margin:0;max-height:300px;overflow-y:auto}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul li a{padding:11px 5px 10px 12px;display:block;text-decoration:none;cursor:pointer;color:rgba(0,0,0,.87);font-size:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-weight:700!important}.full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;border-bottom-color:#caf59f}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}.keep-middle[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:-5px}.txt-width-300[_ngcontent-%COMP%]{width:300px!important;height:30px!important;margin-bottom:4px;font-family:Courier New;font-size:small}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}.font-label[_ngcontent-%COMP%]{font-size:12px}#grad1[_ngcontent-%COMP%]{height:400px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}"]}),je);function Je(e,t){1&e&&c.Nb(0,"a",39),2&e&&c.mc("innerHTML",t.$implicit.Name,c.Ac)}function qe(e,t){1&e&&c.Nb(0,"div",39),2&e&&c.mc("innerHTML",t.$implicit,c.Ac)}function Qe(e,t){if(1&e&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Ze(e,t){if(1&e&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function Xe(e,t){if(1&e&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function et(e,t){if(1&e&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function tt(e,t){if(1&e&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}function nt(e,t){if(1&e&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&e){var n=t.$implicit;c.mc("value",n.Value),c.yb(1),c.Mc(" ",n.Name," ")}}var ot,it=((ot=function(){function t(n,o,i,r,a,l){e(this,t),this.fb=n,this.router=o,this.activatedRoute=i,this.sharedService=r,this.clarinsreportservice=a,this.spinner=l,this.placeholder="Enter Search String",this.keyword="Name",this.MONTHS=this.sharedService.MONTH.asObservable(),this.YEARS=this.sharedService.YEAR.asObservable(),this.AREAS=this.sharedService.AREA.asObservable(),this.STOGRPCODES=this.sharedService.STOGRPCODE.asObservable(),this.REGIONS=this.sharedService.REGION.asObservable(),this.TOWNS=this.sharedService.TOWN.asObservable(),this.IPAD=Object(k.a)([{Value:"All",Name:"All"},{Value:"YES",Name:"YES"},{Value:"NO",Name:"NO"}]),this.CreateGBWeeklyTargetsForm()}return n(t,[{key:"CreateGBWeeklyTargetsForm",value:function(){this.GBWeeklyTargetsForm=this.fb.group({GBWeeklyTargets:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""],MONTH:[""],IPAD:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(A.a)([this.activatedRoute.snapshot.data.Years]),this.IPADS=this.IPAD,this.AllAccount=this.sharedService.GetStore(P.e.GBWeeklyTargets),this.GetArea(),this.GetSTOGRPCODE(),this.GetRegion(),this.GetMonth(),this.InitialValue()}},{key:"InitialValue",value:function(){this.GBWeeklyTargets.get("YEAR").setValue((new Date).getFullYear()),this.GBWeeklyTargets.get("IPAD").setValue("All"),this.GBWeeklyTargets.get("REGION").setValue("All"),this.GBWeeklyTargets.get("AREA").setValue("All"),this.GBWeeklyTargets.get("MONTH").setValue("All"),this.GBWeeklyTargets.get("STOGRPCODE").setValue("All")}},{key:"ResetForm",value:function(){this.GBWeeklyTargetsForm.reset(),this.InitialValue()}},{key:"GetRegion",value:function(){var e=this;this.sharedService.GetRegion(P.c.REGION_BB).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.REGION.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load REGIONS.")})}},{key:"GetMonth",value:function(){var e=this;this.sharedService.GetMonth().subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.MONTH.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load MONTHS.")})}},{key:"GetArea",value:function(){var e=this;this.sharedService.GetAreaGB("ANGELMGR").subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.AREA.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load AREAS.")})}},{key:"GetSTOGRPCODE",value:function(){var e=this;this.sharedService.GetSTOGRPCODE(P.d.STOGRPCODE_GBT).subscribe(function(t){e.sharedService.datastore.data=t,e.sharedService.STOGRPCODE.next(Object.assign({},e.sharedService.datastore).data),e.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(e){return console.log("Could not load STOGRPCODE.")})}},{key:"selectEvent",value:function(e){}},{key:"onChangeSearch",value:function(e){}},{key:"searchCleared",value:function(){}},{key:"rptGBWeeklyTargets",value:function(e,t,n,o,i,r,a){var l,c=this;this.spinner.show(),this.clarinsreportservice.rptGBWeeklyTargets(void 0===e.Value?0:e.Value,t,n,o,i,r,a).subscribe(function(e){l=new Blob([e],{type:"application/pdf"})},function(e){console.log(e)},function(){var e=URL.createObjectURL(l);window.open(e,"_blank"),c.spinner.hide()})}},{key:"GBWeeklyTargets",get:function(){return this.GBWeeklyTargetsForm.get("GBWeeklyTargets")}}]),t}()).\u0275fac=function(e){return new(e||ot)(c.Mb(N.c),c.Mb(a.e),c.Mb(a.a),c.Mb(E.a),c.Mb(F.a),c.Mb(T.c))},ot.\u0275cmp=c.Gb({type:ot,selectors:[["GBweekly-targets"]],decls:83,vars:29,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-12"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],["formGroupName","GBWeeklyTargets"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","375px"],[1,"text-center",2,"margin-top","15px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","20px"],[1,"row","no-padding","mb-2"],["for","store",1,"col-sm-3","col-form-label","text-right","no-padding","font-label","mt-1"],[1,"col-sm-9"],["formControlName","ACC","id","ACC","name","ACC","notFoundText","Not found",3,"data","initialValue","searchKeyword","placeholder","minQueryLength","itemTemplate","notFoundTemplate","debounceTime","selected","inputChanged","inputCleared"],["ngAutoCompleteStatic",""],["itemTemplateStatic",""],["notFoundTemplate",""],[1,"col-sm-12"],[1,"row","no-padding","mb-1"],["for","Year",1,"col-sm-3","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","YEAR",1,"form-control","form-control-sm",2,"width","150px"],[3,"value",4,"ngFor","ngForOf"],["for","Area",1,"col-sm-3","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","AREA",1,"form-control","form-control-sm",2,"width","150px"],["for","Store Group",1,"col-sm-3","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","STOGRPCODE",1,"form-control","form-control-sm",2,"width","150px"],["for","Region",1,"col-sm-3","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","REGION",1,"form-control","form-control-sm",2,"width","150px"],["for","MONTH",1,"col-sm-3","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","MONTH",1,"form-control","form-control-sm",2,"width","150px"],["for","IPAD",1,"col-sm-3","col-form-label","text-right","no-padding","font-label","mt-1"],["formControlName","IPAD",1,"form-control","form-control-sm",2,"width","150px"],[1,"text-center","mt-2"],["mdbBtn","","type","submit","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["mdbBtn","","type","button","gradient","blue","rounded","true","mdbWavesEffect","",3,"click"],["bdColor","rgba(255,255,255,0.5)","size","small","color","#cc2222","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","#cc2222","font-size","22px"],[3,"innerHTML"],[3,"value"]],template:function(e,t){if(1&e&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",11),c.Sb(15,"div",12),c.Sb(16,"label",13),c.Kc(17,"STORE:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"ng-autocomplete",15,16),c.cc("selected",function(e){return t.selectEvent(e)})("inputChanged",function(e){return t.onChangeSearch(e)})("inputCleared",function(){return t.searchCleared()}),c.fc(21,"async"),c.Rb(),c.Ic(22,Je,1,1,"ng-template",null,17,c.Jc),c.Ic(24,qe,1,1,"ng-template",null,18,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(26,"div",19),c.Sb(27,"div",20),c.Sb(28,"label",21),c.Kc(29,"YEAR:"),c.Rb(),c.Sb(30,"div",14),c.Sb(31,"select",22),c.Ic(32,Qe,2,2,"option",23),c.fc(33,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(34,"div",19),c.Sb(35,"div",20),c.Sb(36,"label",24),c.Kc(37,"AREA:"),c.Rb(),c.Sb(38,"div",14),c.Sb(39,"select",25),c.Ic(40,Ze,2,2,"option",23),c.fc(41,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(42,"div",19),c.Sb(43,"div",20),c.Sb(44,"label",26),c.Kc(45,"STORE GROUP:"),c.Rb(),c.Sb(46,"div",14),c.Sb(47,"select",27),c.Ic(48,Xe,2,2,"option",23),c.fc(49,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(50,"div",19),c.Sb(51,"div",20),c.Sb(52,"label",28),c.Kc(53,"REGION:"),c.Rb(),c.Sb(54,"div",14),c.Sb(55,"select",29),c.Ic(56,et,2,2,"option",23),c.fc(57,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(58,"div",19),c.Sb(59,"div",20),c.Sb(60,"label",30),c.Kc(61,"MONTH:"),c.Rb(),c.Sb(62,"div",14),c.Sb(63,"select",31),c.Ic(64,tt,2,2,"option",23),c.fc(65,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(66,"div",19),c.Sb(67,"div",20),c.Sb(68,"label",32),c.Kc(69,"IPAD:"),c.Rb(),c.Sb(70,"div",14),c.Sb(71,"select",33),c.Ic(72,nt,2,2,"option",23),c.fc(73,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(74,"div",3),c.Sb(75,"div",34),c.Sb(76,"button",35),c.cc("click",function(){return t.rptGBWeeklyTargets(t.GBWeeklyTargets.get("ACC").value,t.GBWeeklyTargets.get("YEAR").value,"All"===t.GBWeeklyTargets.get("AREA").value?0:t.GBWeeklyTargets.get("AREA").value,t.GBWeeklyTargets.get("STOGRPCODE").value,"All"===t.GBWeeklyTargets.get("REGION").value?0:t.GBWeeklyTargets.get("REGION").value,"All"===t.GBWeeklyTargets.get("MONTH").value?0:t.GBWeeklyTargets.get("MONTH").value,t.GBWeeklyTargets.get("IPAD").value)}),c.Kc(77," Submit"),c.Rb(),c.Sb(78,"button",36),c.cc("click",function(){return t.ResetForm()}),c.Kc(79," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(80,"ngx-spinner",37),c.Sb(81,"p",38),c.Kc(82," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&e){var n=c.wc(23),o=c.wc(25);c.yb(1),c.mc("formGroup",t.GBWeeklyTargetsForm),c.yb(18),c.mc("data",c.gc(21,15,t.AllAccount))("searchKeyword",t.keyword)("placeholder",t.placeholder)("minQueryLength",2)("itemTemplate",n)("notFoundTemplate",o)("debounceTime",10),c.yb(13),c.mc("ngForOf",c.gc(33,17,t.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(41,19,t.AREAS)),c.yb(8),c.mc("ngForOf",c.gc(49,21,t.STOGRPCODES)),c.yb(8),c.mc("ngForOf",c.gc(57,23,t.REGIONS)),c.yb(8),c.mc("ngForOf",c.gc(65,25,t.MONTHS)),c.yb(8),c.mc("ngForOf",c.gc(73,27,t.IPADS)),c.yb(8),c.mc("fullScreen",!1)}},directives:[N.t,N.m,N.g,N.h,j.a,N.l,N.e,N.q,_.m,I.b,I.c,T.a,N.o,N.s],pipes:[_.b],styles:["button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}label[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%]     .ng-autocomplete{line-height:0!important;white-space:nowrap}[_nghost-%COMP%]     .autocomplete-container{box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);position:relative;overflow:visible;height:30px;border-radius:4px;padding-right:0;margin-right:0}[_nghost-%COMP%]     .autocomplete-container .input-container input{font-size:12px;font-weight:500!important;box-sizing:border-box;border:none;box-shadow:none;outline:none;background-color:#fff;color:rgba(0,0,0,.87);width:100%;line-height:4px;height:30px;padding:0 5px 0 12px}[_nghost-%COMP%]     .autocomplete-container .input-container .x{position:absolute;right:2px;margin:auto;cursor:pointer;top:50%;transform:translateY(-50%)}[_nghost-%COMP%]     .autocomplete-container .suggestions-container{display:grid;padding-right:1px;border:1px solid #b0c4de}[_nghost-%COMP%]     .autocomplete-container .suggestions-container li:hover a{background-color:rgba(255,0,0,.6);color:#fff!important}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul{padding:0;margin:0;max-height:300px;overflow-y:auto}[_nghost-%COMP%]     .autocomplete-container .suggestions-container ul li a{padding:11px 5px 10px 12px;display:block;text-decoration:none;cursor:pointer;color:rgba(0,0,0,.87);font-size:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-weight:700!important}.full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;border-bottom-color:rgba(202,245,159,.8)}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}.keep-middle[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:-5px}.txt-width-300[_ngcontent-%COMP%]{width:300px!important;height:30px!important;margin-bottom:4px;font-family:Courier New;font-size:small}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}.font-label[_ngcontent-%COMP%]{font-size:12px}#grad1[_ngcontent-%COMP%]{height:425px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}"]}),ot),rt=i("Iab2"),at=i("IheW"),lt=i("EApP"),ct=i("u47x"),st=i("qvAe");function dt(e,t){if(1&e){var n=c.Tb();c.Sb(0,"tr",23),c.Sb(1,"td",24),c.Nb(2,"input",25),c.Rb(),c.Sb(3,"td",26),c.Sb(4,"button",27),c.cc("click",function(){c.zc(n);var e=t.index,o=c.ec();return o.Download(e,o.MStaticReportsList.controls[e].get("FILENAME").value)}),c.Nb(5,"i",28),c.Rb(),c.Rb(),c.Sb(6,"td",26),c.Sb(7,"button",29),c.cc("click",function(){c.zc(n);var e=t.index,o=c.ec();return o.Delete(e,o.MStaticReportsList.controls[e].get("FILENAME").value)}),c.Nb(8,"i",30),c.Rb(),c.Rb(),c.Rb()}2&e&&c.mc("formGroupName",t.index)}var bt,pt=((bt=function(){function t(n,o,i,r,a,l){var s=this;e(this,t),this.fb=n,this.router=o,this.toastr=i,this.interactivityChecker=r,this.staticReportsService=a,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(e,t){0!==e.length&&s.staticReportsService.UploadFile(e,t,"ClarinsStaticReports","MonthlyReports").subscribe(function(e){e.type===at.d.UploadProgress?s.progress=Math.round(100*e.loaded/e.total):e.type===at.d.Response&&(s.message="Upload success.",s.onUploadFinished.emit(e.body)),s.GetAllFiles(),s.MStaticRports.reset()})},this.CreateMonthlyReportsForm()}return n(t,[{key:"CreateMonthlyReportsForm",value:function(){for(var e=[],t=0;t<14;t++)e.push(this.StaticReports());this.MonthlyReportsForm=this.fb.group({MStaticRports:this.fb.group({FILENAME:[""]}),MStaticReportsList:this.fb.array(e)})}},{key:"StaticReports",value:function(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}},{key:"ngOnInit",value:function(){this.GetAllFiles()}},{key:"GetAllFiles",value:function(){var e=this;this.staticReportsService.StaticReportDetails("Clarins","MonthlyPeriodic").subscribe(function(t){if(e.FileName=t,e.FileName.length>0)for(var n=e.MonthlyReportsForm.controls.MStaticReportsList,o=0;o<e.FileName.length;o++)n.at(+o).get("DOWNLOADFILE").setValue(e.FileName[o].FileNameWithOutExtension),n.at(+o).get("FILENAME").setValue(e.FileName[o].FileName),o>=13&&o<e.FileName.length-1&&e.MStaticReportsList.push(e.StaticReports())})}},{key:"Delete",value:function(e,t){for(var n=this,o=this.MonthlyReportsForm.controls.MStaticReportsList,i=0;i<o.length;i++)if(e==i){t&&this.staticReportsService.Delete("Clarins","MonthlyPeriodic",t).subscribe(function(t){null==t&&(n.MStaticReportsList.removeAt(e),n.toastr.warning("Deleted Successfully","Clarins"))},function(e){console.log(e)});break}}},{key:"Download",value:function(e,t){for(var n=this.MonthlyReportsForm.controls.MStaticReportsList,o=0;o<n.length;o++)if(e==o){t&&this.staticReportsService.DownloadFile("Clarins","MonthlyPeriodic",t).subscribe(function(e){var n=new Blob([e],{type:"application/pdf"}),o=window.URL.createObjectURL(n);"application/pdf"===e.type?window.open(o,"_blank"):rt.saveAs(n,t)});break}}},{key:"keyevent",value:function(e){e.preventDefault();var t=Array.prototype.slice.call(document.querySelectorAll("input")),n=[];if(Array.isArray(n)&&!n.length)for(var o=0;o<t.length;o++)this.interactivityChecker.isFocusable(t[o])&&n.push(t[o]);if(13===e.keyCode||40===e.keyCode){var i=n[n.indexOf(document.activeElement)+1];i&&(i.focus(),i.select())}else if(38===e.keyCode){var r=n[n.indexOf(document.activeElement)-1];r&&(r.focus(),r.select())}}},{key:"MStaticRports",get:function(){return this.MonthlyReportsForm.get("MStaticRports")}},{key:"MStaticReportsList",get:function(){return this.MonthlyReportsForm.get("MStaticReportsList")}}]),t}()).\u0275fac=function(e){return new(e||bt)(c.Mb(N.c),c.Mb(a.e),c.Mb(lt.b),c.Mb(ct.d),c.Mb(st.a),c.Mb(c.B))},bt.\u0275cmp=c.Gb({type:bt,selectors:[["app-monthly-reports"]],hostBindings:function(e,t){1&e&&c.cc("keyup",function(e){return t.keyevent(e)},!1,c.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:24,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","MStaticRports"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","MStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(e,t){if(1&e){var n=c.Tb();c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",9),c.Sb(10,"div",10),c.Nb(11,"input",11),c.Rb(),c.Sb(12,"div",12),c.Sb(13,"button",13),c.Nb(14,"i",14),c.Sb(15,"input",15,16),c.cc("change",function(){c.zc(n);var e=c.wc(16);return t.UploadFile(e.files,t.MStaticRports.get("FILENAME").value)}),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(17,"div",17),c.Sb(18,"div",18),c.Sb(19,"div",19),c.Sb(20,"div",20),c.Sb(21,"table",21),c.Sb(22,"tbody"),c.Ic(23,dt,9,1,"tr",22),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}2&e&&(c.yb(1),c.mc("formGroup",t.MonthlyReportsForm),c.yb(12),c.mc("disabled",""===t.MStaticRports.get("FILENAME").value||null===t.MStaticRports.get("FILENAME").value),c.yb(10),c.mc("ngForOf",t.MStaticReportsList.controls))},directives:[N.t,N.m,N.g,N.h,N.a,N.l,N.e,N.b,_.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}.table-borderless[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]   .table-borderless[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:0}tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0;border-color:#fff}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),bt);function ut(e,t){if(1&e){var n=c.Tb();c.Sb(0,"tr",23),c.Sb(1,"td",24),c.Nb(2,"input",25),c.Rb(),c.Sb(3,"td",26),c.Sb(4,"button",27),c.cc("click",function(){c.zc(n);var e=t.index,o=c.ec();return o.Download(e,o.HStaticReportsList.controls[e].get("FILENAME").value)}),c.Nb(5,"i",28),c.Rb(),c.Rb(),c.Sb(6,"td",26),c.Sb(7,"button",29),c.cc("click",function(){c.zc(n);var e=t.index,o=c.ec();return o.Delete(e,o.HStaticReportsList.controls[e].get("FILENAME").value)}),c.Nb(8,"i",30),c.Rb(),c.Rb(),c.Rb()}2&e&&c.mc("formGroupName",t.index)}var gt,ht=((gt=function(){function t(n,o,i,r,a,l){var s=this;e(this,t),this.fb=n,this.staticReportsService=o,this.interactivityChecker=i,this.router=r,this.toastr=a,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(e,t){0!==e.length&&s.staticReportsService.UploadFile(e,t,"ClarinsStaticReports","HistoricReports").subscribe(function(e){e.type===at.d.UploadProgress?s.progress=Math.round(100*e.loaded/e.total):e.type===at.d.Response&&(s.message="Upload success.",s.onUploadFinished.emit(e.body)),s.GetAllFiles(),s.HStaticRports.reset()})},this.CreateHistoricReportsForm()}return n(t,[{key:"CreateHistoricReportsForm",value:function(){for(var e=[],t=0;t<14;t++)e.push(this.StaticReports());this.HistoricReportsForm=this.fb.group({HStaticRports:this.fb.group({FILENAME:[""]}),HStaticReportsList:this.fb.array(e)})}},{key:"StaticReports",value:function(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}},{key:"ngOnInit",value:function(){this.GetAllFiles()}},{key:"GetAllFiles",value:function(){var e=this;this.staticReportsService.StaticReportDetails("Clarins","Historic").subscribe(function(t){if(e.FileName=t,e.FileName.length>0)for(var n=e.HistoricReportsForm.controls.HStaticReportsList,o=0;o<e.FileName.length;o++)n.at(+o).get("DOWNLOADFILE").setValue(e.FileName[o].FileNameWithOutExtension),n.at(+o).get("FILENAME").setValue(e.FileName[o].FileName),o>=13&&o<e.FileName.length-1&&e.HStaticReportsList.push(e.StaticReports())})}},{key:"Delete",value:function(e,t){for(var n=this,o=this.HistoricReportsForm.controls.HStaticReportsList,i=0;i<o.length;i++)if(e==i){t&&this.staticReportsService.Delete("Clarins","Historic",t).subscribe(function(t){null==t&&(n.HStaticReportsList.removeAt(e),n.toastr.warning("Deleted Successfully","Clarins"))},function(e){console.log(e)});break}}},{key:"Download",value:function(e,t){for(var n=this.HistoricReportsForm.controls.HStaticReportsList,o=0;o<n.length;o++)if(e==o){t&&this.staticReportsService.DownloadFile("Clarins","Historic",t).subscribe(function(e){var n=new Blob([e],{type:"application/pdf"}),o=window.URL.createObjectURL(n);"application/pdf"===e.type?window.open(o,"_blank"):rt.saveAs(n,t)});break}}},{key:"keyevent",value:function(e){e.preventDefault();var t=Array.prototype.slice.call(document.querySelectorAll("input")),n=[];if(Array.isArray(n)&&!n.length)for(var o=0;o<t.length;o++)this.interactivityChecker.isFocusable(t[o])&&n.push(t[o]);if(13===e.keyCode||40===e.keyCode){var i=n[n.indexOf(document.activeElement)+1];i&&(i.focus(),i.select())}else if(38===e.keyCode){var r=n[n.indexOf(document.activeElement)-1];r&&(r.focus(),r.select())}}},{key:"HStaticRports",get:function(){return this.HistoricReportsForm.get("HStaticRports")}},{key:"HStaticReportsList",get:function(){return this.HistoricReportsForm.get("HStaticReportsList")}}]),t}()).\u0275fac=function(e){return new(e||gt)(c.Mb(N.c),c.Mb(st.a),c.Mb(ct.d),c.Mb(a.e),c.Mb(lt.b),c.Mb(c.B))},gt.\u0275cmp=c.Gb({type:gt,selectors:[["app-historic-reports"]],hostBindings:function(e,t){1&e&&c.cc("keyup",function(e){return t.keyevent(e)},!1,c.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:24,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","HStaticRports"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","HStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(e,t){if(1&e){var n=c.Tb();c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",9),c.Sb(10,"div",10),c.Nb(11,"input",11),c.Rb(),c.Sb(12,"div",12),c.Sb(13,"button",13),c.Nb(14,"i",14),c.Sb(15,"input",15,16),c.cc("change",function(){c.zc(n);var e=c.wc(16);return t.UploadFile(e.files,t.HStaticRports.get("FILENAME").value)}),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(17,"div",17),c.Sb(18,"div",18),c.Sb(19,"div",19),c.Sb(20,"div",20),c.Sb(21,"table",21),c.Sb(22,"tbody"),c.Ic(23,ut,9,1,"tr",22),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}2&e&&(c.yb(1),c.mc("formGroup",t.HistoricReportsForm),c.yb(12),c.mc("disabled",""===t.HStaticRports.get("FILENAME").value||null===t.HStaticRports.get("FILENAME").value),c.yb(10),c.mc("ngForOf",t.HStaticReportsList.controls))},directives:[N.t,N.m,N.g,N.h,N.a,N.l,N.e,N.b,_.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}.table-borderless[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]   .table-borderless[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:0}tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0;border-color:#fff}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),gt);function ft(e,t){if(1&e){var n=c.Tb();c.Sb(0,"tr",23),c.Sb(1,"td",24),c.Nb(2,"input",25),c.Rb(),c.Sb(3,"td",26),c.Sb(4,"button",27),c.cc("click",function(){c.zc(n);var e=t.index,o=c.ec();return o.Download(e,o.GStaticReportsList.controls[e].get("FILENAME").value)}),c.Nb(5,"i",28),c.Rb(),c.Rb(),c.Sb(6,"td",26),c.Sb(7,"button",29),c.cc("click",function(){c.zc(n);var e=t.index,o=c.ec();return o.Delete(e,o.GStaticReportsList.controls[e].get("FILENAME").value)}),c.Nb(8,"i",30),c.Rb(),c.Rb(),c.Rb()}2&e&&c.mc("formGroupName",t.index)}var mt,St=((mt=function(){function t(n,o,i,r,a,l){var s=this;e(this,t),this.fb=n,this.router=o,this.toastr=i,this.interactivityChecker=r,this.staticReportsService=a,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(e,t){0!==e.length&&s.staticReportsService.UploadFile(e,t,"ClarinsStaticReports","GeneratorReports").subscribe(function(e){e.type===at.d.UploadProgress?s.progress=Math.round(100*e.loaded/e.total):e.type===at.d.Response&&(s.message="Upload success.",s.onUploadFinished.emit(e.body)),s.GetAllFiles(),s.GStaticRports.reset()})},this.CreateGeneratorReportsForm()}return n(t,[{key:"CreateGeneratorReportsForm",value:function(){for(var e=[],t=0;t<14;t++)e.push(this.StaticReports());this.GeneratorReportsForm=this.fb.group({GStaticRports:this.fb.group({FILENAME:[""]}),GStaticReportsList:this.fb.array(e)})}},{key:"StaticReports",value:function(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}},{key:"ngOnInit",value:function(){this.GetAllFiles()}},{key:"GetAllFiles",value:function(){var e=this;this.staticReportsService.StaticReportDetails("Clarins","Generator").subscribe(function(t){if(e.FileName=t,e.FileName.length>0)for(var n=e.GeneratorReportsForm.controls.GStaticReportsList,o=0;o<e.FileName.length;o++)n.at(+o).get("DOWNLOADFILE").setValue(e.FileName[o].FileNameWithOutExtension),n.at(+o).get("FILENAME").setValue(e.FileName[o].FileName),o>=13&&o<e.FileName.length-1&&e.GStaticReportsList.push(e.StaticReports())})}},{key:"Delete",value:function(e,t){for(var n=this,o=this.GeneratorReportsForm.controls.GStaticReportsList,i=0;i<o.length;i++)if(e==i){t&&this.staticReportsService.Delete("Clarins","Generator",t).subscribe(function(t){null==t&&(n.GStaticReportsList.removeAt(e),n.toastr.warning("Deleted Successfully","Clarins"))},function(e){console.log(e)});break}}},{key:"Download",value:function(e,t){for(var n=this.GeneratorReportsForm.controls.GStaticReportsList,o=0;o<n.length;o++)if(e==o){t&&this.staticReportsService.DownloadFile("Clarins","Generator",t).subscribe(function(e){var n=new Blob([e],{type:"application/pdf"}),o=window.URL.createObjectURL(n);"application/pdf"===e.type?window.open(o,"_blank"):rt.saveAs(n,t)});break}}},{key:"keyevent",value:function(e){e.preventDefault();var t=Array.prototype.slice.call(document.querySelectorAll("input")),n=[];if(Array.isArray(n)&&!n.length)for(var o=0;o<t.length;o++)this.interactivityChecker.isFocusable(t[o])&&n.push(t[o]);if(13===e.keyCode||40===e.keyCode){var i=n[n.indexOf(document.activeElement)+1];i&&(i.focus(),i.select())}else if(38===e.keyCode){var r=n[n.indexOf(document.activeElement)-1];r&&(r.focus(),r.select())}}},{key:"GStaticRports",get:function(){return this.GeneratorReportsForm.get("GStaticRports")}},{key:"GStaticReportsList",get:function(){return this.GeneratorReportsForm.get("GStaticReportsList")}}]),t}()).\u0275fac=function(e){return new(e||mt)(c.Mb(N.c),c.Mb(a.e),c.Mb(lt.b),c.Mb(ct.d),c.Mb(st.a),c.Mb(c.B))},mt.\u0275cmp=c.Gb({type:mt,selectors:[["app-generator-reports"]],hostBindings:function(e,t){1&e&&c.cc("keyup",function(e){return t.keyevent(e)},!1,c.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:24,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","GStaticRports"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","GStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(e,t){if(1&e){var n=c.Tb();c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",9),c.Sb(10,"div",10),c.Nb(11,"input",11),c.Rb(),c.Sb(12,"div",12),c.Sb(13,"button",13),c.Nb(14,"i",14),c.Sb(15,"input",15,16),c.cc("change",function(){c.zc(n);var e=c.wc(16);return t.UploadFile(e.files,t.GStaticRports.get("FILENAME").value)}),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(17,"div",17),c.Sb(18,"div",18),c.Sb(19,"div",19),c.Sb(20,"div",20),c.Sb(21,"table",21),c.Sb(22,"tbody"),c.Ic(23,ft,9,1,"tr",22),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}2&e&&(c.yb(1),c.mc("formGroup",t.GeneratorReportsForm),c.yb(12),c.mc("disabled",""===t.GStaticRports.get("FILENAME").value||null===t.GStaticRports.get("FILENAME").value),c.yb(10),c.mc("ngForOf",t.GStaticReportsList.controls))},directives:[N.t,N.m,N.g,N.h,N.a,N.l,N.e,N.b,_.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}.table-borderless[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]   .table-borderless[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:0}tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0;border-color:#fff}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),mt);function Rt(e,t){if(1&e){var n=c.Tb();c.Sb(0,"tr",23),c.Sb(1,"td",24),c.Nb(2,"input",25),c.Rb(),c.Sb(3,"td",26),c.Sb(4,"button",27),c.cc("click",function(){c.zc(n);var e=t.index,o=c.ec();return o.Download(e,o.CYStaticReportsList.controls[e].get("FILENAME").value)}),c.Nb(5,"i",28),c.Rb(),c.Rb(),c.Sb(6,"td",26),c.Sb(7,"button",29),c.cc("click",function(){c.zc(n);var e=t.index,o=c.ec();return o.Delete(e,o.CYStaticReportsList.controls[e].get("FILENAME").value)}),c.Nb(8,"i",30),c.Rb(),c.Rb(),c.Rb()}2&e&&c.mc("formGroupName",t.index)}var vt,Ct=((vt=function(){function t(n,o,i,r,a,l){var s=this;e(this,t),this.fb=n,this.router=o,this.toastr=i,this.interactivityChecker=r,this.staticReportsService=a,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(e,t){0!==e.length&&s.staticReportsService.UploadFile(e,t,"ClarinsStaticReports","GroupStrategyReports_CY").subscribe(function(e){e.type===at.d.UploadProgress?s.progress=Math.round(100*e.loaded/e.total):e.type===at.d.Response&&(s.message="Upload success.",s.onUploadFinished.emit(e.body)),s.GetAllFiles(),s.CYStaticRports.reset()})},this.CreateClarinsYearReportsForm()}return n(t,[{key:"CreateClarinsYearReportsForm",value:function(){for(var e=[],t=0;t<14;t++)e.push(this.StaticReports());this.ClarinsYearReportsForm=this.fb.group({CYStaticRports:this.fb.group({FILENAME:[""]}),CYStaticReportsList:this.fb.array(e)})}},{key:"StaticReports",value:function(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}},{key:"ngOnInit",value:function(){this.GetAllFiles()}},{key:"GetAllFiles",value:function(){var e=this;this.staticReportsService.StaticReportDetails("Clarins","GroupStrategyClarins").subscribe(function(t){if(e.FileName=t,e.FileName.length>0)for(var n=e.ClarinsYearReportsForm.controls.CYStaticReportsList,o=0;o<e.FileName.length;o++)n.at(+o).get("DOWNLOADFILE").setValue(e.FileName[o].FileNameWithOutExtension),n.at(+o).get("FILENAME").setValue(e.FileName[o].FileName),o>=13&&o<e.FileName.length-1&&e.CYStaticReportsList.push(e.StaticReports())})}},{key:"Delete",value:function(e,t){for(var n=this,o=this.ClarinsYearReportsForm.controls.CYStaticReportsList,i=0;i<o.length;i++)if(e==i){t&&this.staticReportsService.Delete("Clarins","GroupStrategyClarins",t).subscribe(function(t){null==t&&(n.CYStaticReportsList.removeAt(e),n.toastr.warning("Deleted Successfully","Clarins"))},function(e){console.log(e)});break}}},{key:"Download",value:function(e,t){for(var n=this.ClarinsYearReportsForm.controls.CYStaticReportsList,o=0;o<n.length;o++)if(e==o){t&&this.staticReportsService.DownloadFile("Clarins","GroupStrategyClarins",t).subscribe(function(e){var n=new Blob([e],{type:"application/pdf"}),o=window.URL.createObjectURL(n);"application/pdf"===e.type?window.open(o,"_blank"):rt.saveAs(n,t)});break}}},{key:"keyevent",value:function(e){e.preventDefault();var t=Array.prototype.slice.call(document.querySelectorAll("input")),n=[];if(Array.isArray(n)&&!n.length)for(var o=0;o<t.length;o++)this.interactivityChecker.isFocusable(t[o])&&n.push(t[o]);if(13===e.keyCode||40===e.keyCode){var i=n[n.indexOf(document.activeElement)+1];i&&(i.focus(),i.select())}else if(38===e.keyCode){var r=n[n.indexOf(document.activeElement)-1];r&&(r.focus(),r.select())}}},{key:"CYStaticRports",get:function(){return this.ClarinsYearReportsForm.get("CYStaticRports")}},{key:"CYStaticReportsList",get:function(){return this.ClarinsYearReportsForm.get("CYStaticReportsList")}}]),t}()).\u0275fac=function(e){return new(e||vt)(c.Mb(N.c),c.Mb(a.e),c.Mb(lt.b),c.Mb(ct.d),c.Mb(st.a),c.Mb(c.B))},vt.\u0275cmp=c.Gb({type:vt,selectors:[["app-clarins-year"]],hostBindings:function(e,t){1&e&&c.cc("keyup",function(e){return t.keyevent(e)},!1,c.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:24,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","CYStaticRports"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","CYStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(e,t){if(1&e){var n=c.Tb();c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",9),c.Sb(10,"div",10),c.Nb(11,"input",11),c.Rb(),c.Sb(12,"div",12),c.Sb(13,"button",13),c.Nb(14,"i",14),c.Sb(15,"input",15,16),c.cc("change",function(){c.zc(n);var e=c.wc(16);return t.UploadFile(e.files,t.CYStaticRports.get("FILENAME").value)}),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(17,"div",17),c.Sb(18,"div",18),c.Sb(19,"div",19),c.Sb(20,"div",20),c.Sb(21,"table",21),c.Sb(22,"tbody"),c.Ic(23,Rt,9,1,"tr",22),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}2&e&&(c.yb(1),c.mc("formGroup",t.ClarinsYearReportsForm),c.yb(12),c.mc("disabled",""===t.CYStaticRports.get("FILENAME").value||null===t.CYStaticRports.get("FILENAME").value),c.yb(10),c.mc("ngForOf",t.CYStaticReportsList.controls))},directives:[N.t,N.m,N.g,N.h,N.a,N.l,N.e,N.b,_.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}.table-borderless[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]   .table-borderless[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:0}tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0;border-color:#fff}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),vt);function yt(e,t){if(1&e){var n=c.Tb();c.Sb(0,"tr",23),c.Sb(1,"td",24),c.Nb(2,"input",25),c.Rb(),c.Sb(3,"td",26),c.Sb(4,"button",27),c.cc("click",function(){c.zc(n);var e=t.index,o=c.ec();return o.Download(e,o.FYStaticReportsList.controls[e].get("FILENAME").value)}),c.Nb(5,"i",28),c.Rb(),c.Rb(),c.Sb(6,"td",26),c.Sb(7,"button",29),c.cc("click",function(){c.zc(n);var e=t.index,o=c.ec();return o.Delete(e,o.FYStaticReportsList.controls[e].get("FILENAME").value)}),c.Nb(8,"i",30),c.Rb(),c.Rb(),c.Rb()}2&e&&c.mc("formGroupName",t.index)}var xt,Ot,Mt,kt=((xt=function(){function t(n,o,i,r,a,l){var s=this;e(this,t),this.fb=n,this.router=o,this.toastr=i,this.staticReportsService=r,this.interactivityChecker=a,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(e,t){0!==e.length&&s.staticReportsService.UploadFile(e,t,"ClarinsStaticReports","GroupStrategyReports_FY").subscribe(function(e){e.type===at.d.UploadProgress?s.progress=Math.round(100*e.loaded/e.total):e.type===at.d.Response&&(s.message="Upload success.",s.onUploadFinished.emit(e.body)),s.GetAllFiles(),s.FYStaticRports.reset()})},this.CreateFiscalYearReportsForm()}return n(t,[{key:"CreateFiscalYearReportsForm",value:function(){for(var e=[],t=0;t<14;t++)e.push(this.StaticReports());this.FiscalYearReportsForm=this.fb.group({FYStaticRports:this.fb.group({FILENAME:[""]}),FYStaticReportsList:this.fb.array(e)})}},{key:"StaticReports",value:function(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}},{key:"ngOnInit",value:function(){this.GetAllFiles()}},{key:"GetAllFiles",value:function(){var e=this;this.staticReportsService.StaticReportDetails("Clarins","GroupStrategyFiscal").subscribe(function(t){if(e.FileName=t,e.FileName.length>0)for(var n=e.FiscalYearReportsForm.controls.FYStaticReportsList,o=0;o<e.FileName.length;o++)n.at(+o).get("DOWNLOADFILE").setValue(e.FileName[o].FileNameWithOutExtension),n.at(+o).get("FILENAME").setValue(e.FileName[o].FileName),o>=13&&o<e.FileName.length-1&&e.FYStaticReportsList.push(e.StaticReports())})}},{key:"Delete",value:function(e,t){for(var n=this,o=this.FiscalYearReportsForm.controls.FYStaticReportsList,i=0;i<o.length;i++)if(e==i){t&&this.staticReportsService.Delete("Clarins","GroupStrategyFiscal",t).subscribe(function(t){null==t&&(n.FYStaticReportsList.removeAt(e),n.toastr.warning("Deleted Successfully","Clarins"))},function(e){console.log(e)});break}}},{key:"Download",value:function(e,t){for(var n=this.FiscalYearReportsForm.controls.FYStaticReportsList,o=0;o<n.length;o++)if(e==o){t&&this.staticReportsService.DownloadFile("Clarins","GroupStrategyFiscal",t).subscribe(function(e){var n=new Blob([e],{type:"application/pdf"}),o=window.URL.createObjectURL(n);"application/pdf"===e.type?window.open(o,"_blank"):rt.saveAs(n,t)});break}}},{key:"keyevent",value:function(e){e.preventDefault();var t=Array.prototype.slice.call(document.querySelectorAll("input")),n=[];if(Array.isArray(n)&&!n.length)for(var o=0;o<t.length;o++)this.interactivityChecker.isFocusable(t[o])&&n.push(t[o]);if(13===e.keyCode||40===e.keyCode){var i=n[n.indexOf(document.activeElement)+1];i&&(i.focus(),i.select())}else if(38===e.keyCode){var r=n[n.indexOf(document.activeElement)-1];r&&(r.focus(),r.select())}}},{key:"FYStaticRports",get:function(){return this.FiscalYearReportsForm.get("FYStaticRports")}},{key:"FYStaticReportsList",get:function(){return this.FiscalYearReportsForm.get("FYStaticReportsList")}}]),t}()).\u0275fac=function(e){return new(e||xt)(c.Mb(N.c),c.Mb(a.e),c.Mb(lt.b),c.Mb(st.a),c.Mb(ct.d),c.Mb(c.B))},xt.\u0275cmp=c.Gb({type:xt,selectors:[["app-fiscal-year"]],hostBindings:function(e,t){1&e&&c.cc("keyup",function(e){return t.keyevent(e)},!1,c.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:24,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","FYStaticRports"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","FYStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(e,t){if(1&e){var n=c.Tb();c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",9),c.Sb(10,"div",10),c.Nb(11,"input",11),c.Rb(),c.Sb(12,"div",12),c.Sb(13,"button",13),c.Nb(14,"i",14),c.Sb(15,"input",15,16),c.cc("change",function(){c.zc(n);var e=c.wc(16);return t.UploadFile(e.files,t.FYStaticRports.get("FILENAME").value)}),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(17,"div",17),c.Sb(18,"div",18),c.Sb(19,"div",19),c.Sb(20,"div",20),c.Sb(21,"table",21),c.Sb(22,"tbody"),c.Ic(23,yt,9,1,"tr",22),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}2&e&&(c.yb(1),c.mc("formGroup",t.FiscalYearReportsForm),c.yb(12),c.mc("disabled",""===t.FYStaticRports.get("FILENAME").value||null===t.FYStaticRports.get("FILENAME").value),c.yb(10),c.mc("ngForOf",t.FYStaticReportsList.controls))},directives:[N.t,N.m,N.g,N.h,N.a,N.l,N.e,N.b,_.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}.table-borderless[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]   .table-borderless[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:0}tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0;border-color:#fff}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),xt),At=i("liBt"),Pt=[{path:"",data:{title:"Clarins Report"},children:[{path:"",redirectTo:"ClarinsReports",pathMatch:"full"},{path:"",component:O,data:{title:"Clarins Reports"},children:[{path:"WeeklyBeautyCoachSales",component:De,resolve:{Years:At.a},data:{title:"Clarins Reports: Weekly Beauty Coach Sales"}},{path:"GBWeeklyTargets",component:it,resolve:{Years:At.a},data:{title:"Clarins Reports: GB Weekly Targets"}},{path:"NIWeeklyTargets",component:$e,resolve:{Years:At.a},data:{title:"Clarins Reports: NI Weekly Targets"}},{path:"Weeklyconsultantsales",component:Se,resolve:{Years:At.a},data:{title:"Clarins Reports: Weekly Consultant Sales"}},{path:"WeeklyCounterSales",component:we,resolve:{Years:At.a},data:{title:"Clarins Reports: Weekly Counter Sales"}},{path:"ClarinsMissingSales",component:B,resolve:{Years:At.a},data:{title:"Clarins Reports: Clarins Missing Sales"}},{path:"ClarinsDuplicateRecords",component:U,resolve:{Years:At.a},data:{title:"Clarins Reports: Clarins Duplicate Records"}},{path:"ClarinsFlashReportByWeek",component:ie,resolve:{Years:At.a},data:{title:"Clarins Reports: Clarins Flash Report By Week"}},{path:"ClarinsFlashReportBYGroup",component:ce,resolve:{Years:At.a},data:{title:"Clarins Reports: Clarins Flash Report BY Group"}},{path:"Clarins-MonthlyReports",component:pt,data:{title:"Clarins: Monthly/Periodic Reports"}},{path:"Clarins-ClarinsYear",component:Ct,data:{title:"Clarins: Group Business Reports (Clarins Year)"}},{path:"Clarins-FiscalYear",component:kt,data:{title:"Clarins: Group Business Reports (Fiscal Year)"}},{path:"Clarins-HistoricReports",component:ht,data:{title:"Clarins: Historic Reports"}},{path:"Clarins-GeneratorReports",component:St,data:{title:"Clarins: Generator Reports"}}]}]}],wt=((Ot=function t(){e(this,t)}).\u0275mod=c.Kb({type:Ot}),Ot.\u0275inj=c.Jb({factory:function(e){return new(e||Ot)},imports:[[a.h.forChild(Pt)],a.h]}),Ot),Nt=i("H8qh"),Et=((Mt=function t(){e(this,t)}).\u0275mod=c.Kb({type:Mt}),Mt.\u0275inj=c.Jb({factory:function(e){return new(e||Mt)},imports:[[wt,Nt.a,T.b]]}),Mt)}}])}();