(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{Iab2:function(t,e,o){var n,i;void 0===(i="function"==typeof(n=function(){"use strict";function e(t,e,o){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,o)},n.onerror=function(){console.error("could not download file")},n.send()}function o(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(o)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(t,a,r){var s=i.URL||i.webkitURL,c=document.createElement("a");c.download=a=a||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):o(c.href)?e(t,a,r):n(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,i,a){if(i=i||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,a),i);else if(o(t))e(t,i,a);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,o,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,o,n);var s="application/octet-stream"===t.type,c=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&c||a)&&"undefined"!=typeof FileReader){var p=new FileReader;p.onloadend=function(){var t=p.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},p.readAsDataURL(t)}else{var d=i.URL||i.webkitURL,b=d.createObjectURL(t);r?r.location=b:location.href=b,r=null,setTimeout(function(){d.revokeObjectURL(b)},4e4)}});i.saveAs=r.saveAs=r,t.exports=r})?n.apply(e,[]):n)||(t.exports=i)},OUGR:function(t,e,o){"use strict";o.d(e,"a",function(){return a});var n=o("8Y7J"),i=o("IheW");let a=(()=>{class t{constructor(t,e){this.http=t,this.BaseURL="",this.BaseURL="http://localhost:4200/"===e?"https://localhost:44301/api/ClarinsReport/":e+"api/ClarinsReport/"}rptWeeklyConsultantSales(t,e,o,n,i){return this.http.get(this.BaseURL+"rptWeeklyConsultantSales?Store="+t+"&Year="+e+"&Area="+o+"&Empno="+n+"&ReportType="+i,{responseType:"blob"})}rptWeeklyCounterSales(t,e,o,n,i,a,r,s){return this.http.get(this.BaseURL+"rptWeeklyCounterSales?Store="+t+"&Year="+e+"&Area="+o+"&STOGRPCODE="+n+"&Region="+i+"&Town="+a+"&IPAD="+r+"&Additional="+s,{responseType:"blob"})}rptWeeklyBeautyCoachSales(t,e,o,n){return this.http.get(this.BaseURL+"rptWeeklyAngelSales?Year="+t+"&Area="+e+"&Empno="+o+"&MonthNum="+n,{responseType:"blob"})}rptNIWeeklyTargets(t,e,o,n){return this.http.get(this.BaseURL+"rptNIWeeklyTargets?Store="+t+"&Year="+e+"&Area="+o+"&IPAD="+n,{responseType:"blob"})}rptGBWeeklyTargets(t,e,o,n,i,a,r){return this.http.get(this.BaseURL+"rptGBWeeklyTargets?Store="+t+"&Year="+e+"&Area="+o+"&STOGRPCODE="+n+"&Region="+i+"&MonthNum="+a+"&IPAD="+r,{responseType:"blob"})}rptClarinsMissingSales(t,e,o,n,i,a,r){return this.http.get(this.BaseURL+"rptClarinsMissingSales?ReportType="+t+"&Year="+e+"&MonthNum="+o+"&STOGRPCODE="+n+"&Area="+i+"&Store="+a+"&REGION="+r,{responseType:"blob"})}rptClarinsFlashReportByWeek(t,e,o,n,i,a,r){return this.http.get(this.BaseURL+"rptClarinsFlashReportByWeek?Store="+t+"&Year="+e+"&Area="+o+"&STOGRPCODE="+n+"&Region="+i+"&Town="+a+"&Additional="+r,{responseType:"blob"})}rptClarinsFlashReportByGroup(t,e){return this.http.get(this.BaseURL+"rptClarinsFlashReportByGroup?Year="+t+"&STOGRPCODE="+e,{responseType:"blob"})}rptClarinsDuplicateRecords(t,e){return this.http.get(this.BaseURL+"rptClarinsDuplicateRecords?Year="+t+"&MonthNum="+e,{responseType:"blob"})}}return t.\u0275fac=function(e){return new(e||t)(n.Zb(i.b),n.Zb("BASE_URL"))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"U1R+":function(t,e,o){"use strict";o.r(e),o.d(e,"SkipspareportsModule",function(){return xt});var n=o("iInd"),i=o("8Y7J");const a=function(){return["SkinSpaAccountSales"]},r=function(){return["BeautyBARAccountWeeklySales"]},s=function(){return["MobileTherapistWeeklySales"]},c=function(){return["TherapistWeeklySales"]},l=function(){return["SkinSpa-MonthlyReports"]},p=function(){return["SkinSpa-ClarinsYear"]},d=function(){return["SkinSpa-FiscalYear"]},b=function(){return["SkinSpa-HistoricReports"]},u=function(){return["SkinSpa-GeneratorReports"]};let h=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Gb({type:t,selectors:[["app-skinspareports"]],decls:45,vars:18,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(t,e){1&t&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"ul",4),i.Sb(5,"li",5),i.Sb(6,"a",6),i.Kc(7,"Live Report"),i.Nb(8,"span",7),i.Rb(),i.Sb(9,"ul",8),i.Sb(10,"li"),i.Sb(11,"a",9),i.Kc(12,"Skin Spa Account Sales"),i.Rb(),i.Rb(),i.Sb(13,"li"),i.Sb(14,"a",9),i.Kc(15,"BeautyBAR Account Weekly Sales"),i.Rb(),i.Rb(),i.Sb(16,"li"),i.Sb(17,"a",9),i.Kc(18,"Mobile Therapist Weekly Sales"),i.Rb(),i.Rb(),i.Sb(19,"li"),i.Sb(20,"a",9),i.Kc(21,"Therapist Weekly Sales"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(22,"li",10),i.Sb(23,"a",9),i.Kc(24,"Monthly/Periodic Reports"),i.Rb(),i.Rb(),i.Sb(25,"li",10),i.Sb(26,"a",6),i.Kc(27,"Group Business Reports"),i.Nb(28,"span",7),i.Rb(),i.Sb(29,"ul",11),i.Sb(30,"li"),i.Sb(31,"a",9),i.Kc(32,"Clarins Year"),i.Rb(),i.Rb(),i.Sb(33,"li"),i.Sb(34,"a",9),i.Kc(35,"Fiscal Year"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(36,"li",12),i.Sb(37,"a",9),i.Kc(38,"Historic Reports"),i.Rb(),i.Rb(),i.Sb(39,"li",13),i.Sb(40,"a",9),i.Kc(41,"Generator Reports"),i.Rb(),i.Rb(),i.Rb(),i.Sb(42,"div",14),i.Sb(43,"div",15),i.Nb(44,"router-outlet"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&t&&(i.yb(11),i.mc("routerLink",i.pc(9,a)),i.yb(3),i.mc("routerLink",i.pc(10,r)),i.yb(3),i.mc("routerLink",i.pc(11,s)),i.yb(3),i.mc("routerLink",i.pc(12,c)),i.yb(3),i.mc("routerLink",i.pc(13,l)),i.yb(8),i.mc("routerLink",i.pc(14,p)),i.yb(3),i.mc("routerLink",i.pc(15,d)),i.yb(3),i.mc("routerLink",i.pc(16,b)),i.yb(3),i.mc("routerLink",i.pc(17,u)))},directives:[n.g,n.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;font-size:16px;font-weight:500;font-family:Century Gothic}.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:330px}.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}']}),t})();var g=o("LRne"),m=o("Cfvw"),f=o("dufq"),S=o("s7LF"),R=o("T435"),y=o("+CKi"),v=o("bH2/"),x=o("SVse"),O=o("dbUT"),C=o("JqCM");function A(t,e){1&t&&i.Nb(0,"a",39),2&t&&i.mc("innerHTML",e.$implicit.Name,i.Ac)}function M(t,e){1&t&&i.Nb(0,"div",39),2&t&&i.mc("innerHTML",e.$implicit,i.Ac)}function w(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function P(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function E(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function k(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function F(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function N(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}let _=(()=>{class t{constructor(t,e,o,n,i){this.fb=t,this.router=e,this.activatedRoute=o,this.skinSpaReportService=n,this.sharedService=i,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.Categories=this.sharedService.Category.asObservable(),this.IPAD=Object(g.a)([{Value:"All",Name:"All"},{Value:"YES",Name:"YES"},{Value:"NO",Name:"NO"}]),this.CreateSkinSpaAccountSalesForm()}CreateSkinSpaAccountSalesForm(){this.SkinSpaAccountSalesForm=this.fb.group({SkinSpaAccountSales:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""],IPAD:[""],CATEGORY:[""]})})}get SkinSpaAccountSales(){return this.SkinSpaAccountSalesForm.get("SkinSpaAccountSales")}ngOnInit(){this.YEARS=Object(m.a)([this.activatedRoute.snapshot.data.Years]),this.IPADS=this.IPAD,this.AllAccount=this.sharedService.GetStore(f.e.SkinSpaAccountSales),this.GetArea(),this.GetCategories(),this.GetSTOGRPCODE(),this.GetRegion(),this.InitialValue()}InitialValue(){this.SkinSpaAccountSales.get("IPAD").setValue("All"),this.SkinSpaAccountSales.get("REGION").setValue("All"),this.SkinSpaAccountSales.get("AREA").setValue("All"),this.SkinSpaAccountSales.get("CATEGORY").setValue("All"),this.SkinSpaAccountSales.get("STOGRPCODE").setValue("All"),this.SkinSpaAccountSales.get("YEAR").setValue((new Date).getFullYear())}ResetForm(){this.SkinSpaAccountSalesForm.reset(),this.InitialValue()}GetRegion(){this.sharedService.GetRegion(f.c.REGION_BB).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.REGION.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load REGIONS."))}GetArea(){this.sharedService.GetArea(f.a.AREA_CLARINS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.AREA.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load AREAS."))}GetCategories(){this.sharedService.GetCategories().subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.Category.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load Categories."))}GetSTOGRPCODE(){this.sharedService.GetSTOGRPCODE(f.d.STOGRPCODE_CLARINS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.STOGRPCODE.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load STOGRPCODE."))}selectEvent(t){}onChangeSearch(t){}searchCleared(){}rptSkinSpaAccountSales(t,e,o,n,i,a,r){let s;this.skinSpaReportService.rptSkinSpaAccountSales(void 0===t.Value?0:t.Value,e,o,n,i,a,"All",r).subscribe(t=>{s=new Blob([t],{type:"application/pdf"})},t=>{console.log(t)},()=>{let t=URL.createObjectURL(s);window.open(t,"_blank")})}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(S.c),i.Mb(n.e),i.Mb(n.a),i.Mb(R.c),i.Mb(y.a))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-skinspaaccountsales"]],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","SkinSpaAccountSales"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","375px"],[1,"text-center",2,"margin-top","25px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","25px"],[1,"row","no-padding","mb-1"],["for","store",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],[1,"col-sm-8"],["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"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],[1,"col-sm-5"],["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","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(t,e){if(1&t&&(i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",3),i.Sb(10,"h4",9),i.Kc(11,"Report Parameters"),i.Rb(),i.Sb(12,"h4",10),i.Kc(13,"Enter values for the Parameters"),i.Rb(),i.Rb(),i.Sb(14,"div",11),i.Sb(15,"div",12),i.Sb(16,"label",13),i.Kc(17,"Store:"),i.Rb(),i.Sb(18,"div",14),i.Sb(19,"ng-autocomplete",15,16),i.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),i.fc(21,"async"),i.Rb(),i.Ic(22,A,1,1,"ng-template",null,17,i.Jc),i.Ic(24,M,1,1,"ng-template",null,18,i.Jc),i.Rb(),i.Rb(),i.Rb(),i.Sb(26,"div",19),i.Sb(27,"div",12),i.Sb(28,"label",20),i.Kc(29,"Year:"),i.Rb(),i.Sb(30,"div",21),i.Sb(31,"select",22),i.Ic(32,w,2,2,"option",23),i.fc(33,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(34,"div",19),i.Sb(35,"div",12),i.Sb(36,"label",24),i.Kc(37,"Area:"),i.Rb(),i.Sb(38,"div",21),i.Sb(39,"select",25),i.Ic(40,P,2,2,"option",23),i.fc(41,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(42,"div",19),i.Sb(43,"div",12),i.Sb(44,"label",26),i.Kc(45,"Store Group:"),i.Rb(),i.Sb(46,"div",21),i.Sb(47,"select",27),i.Ic(48,E,2,2,"option",23),i.fc(49,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(50,"div",19),i.Sb(51,"div",12),i.Sb(52,"label",28),i.Kc(53,"Region:"),i.Rb(),i.Sb(54,"div",21),i.Sb(55,"select",29),i.Ic(56,k,2,2,"option",23),i.fc(57,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(58,"div",19),i.Sb(59,"div",12),i.Sb(60,"label",30),i.Kc(61,"IPAD:"),i.Rb(),i.Sb(62,"div",21),i.Sb(63,"select",31),i.Ic(64,F,2,2,"option",23),i.fc(65,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(66,"div",19),i.Sb(67,"div",12),i.Sb(68,"label",32),i.Kc(69,"Category:"),i.Rb(),i.Sb(70,"div",21),i.Sb(71,"select",33),i.Ic(72,N,2,2,"option",23),i.fc(73,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(74,"div",3),i.Sb(75,"div",34),i.Sb(76,"button",35),i.cc("click",function(){return e.rptSkinSpaAccountSales(e.SkinSpaAccountSales.get("ACC").value,e.SkinSpaAccountSales.get("YEAR").value,"All"===e.SkinSpaAccountSales.get("AREA").value?0:e.SkinSpaAccountSales.get("AREA").value,e.SkinSpaAccountSales.get("STOGRPCODE").value,"All"===e.SkinSpaAccountSales.get("REGION").value?0:e.SkinSpaAccountSales.get("REGION").value,e.SkinSpaAccountSales.get("IPAD").value,e.SkinSpaAccountSales.get("CATEGORY").value)}),i.Kc(77," Submit"),i.Rb(),i.Sb(78,"button",36),i.cc("click",function(){return e.ResetForm()}),i.Kc(79," Reset"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(80,"ngx-spinner",37),i.Sb(81,"p",38),i.Kc(82," Loading... "),i.Rb(),i.Rb(),i.Rb()),2&t){const t=i.wc(23),o=i.wc(25);i.yb(1),i.mc("formGroup",e.SkinSpaAccountSalesForm),i.yb(18),i.mc("data",i.gc(21,15,e.AllAccount))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",t)("notFoundTemplate",o)("debounceTime",10),i.yb(13),i.mc("ngForOf",i.gc(33,17,e.YEARS)),i.yb(8),i.mc("ngForOf",i.gc(41,19,e.AREAS)),i.yb(8),i.mc("ngForOf",i.gc(49,21,e.STOGRPCODES)),i.yb(8),i.mc("ngForOf",i.gc(57,23,e.REGIONS)),i.yb(8),i.mc("ngForOf",i.gc(65,25,e.IPADS)),i.yb(8),i.mc("ngForOf",i.gc(73,27,e.Categories)),i.yb(8),i.mc("fullScreen",!1)}},directives:[S.t,S.m,S.g,S.h,v.a,S.l,S.e,S.q,x.m,O.b,O.c,C.a,S.o,S.s],pipes:[x.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}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}#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}"]}),t})();function G(t,e){1&t&&i.Nb(0,"a",39),2&t&&i.mc("innerHTML",e.$implicit.Name,i.Ac)}function T(t,e){1&t&&i.Nb(0,"div",39),2&t&&i.mc("innerHTML",e.$implicit,i.Ac)}function L(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function I(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function B(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function Y(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function D(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function W(t,e){if(1&t&&(i.Sb(0,"option",40),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}let U=(()=>{class t{constructor(t,e,o,n,i){this.fb=t,this.router=e,this.activatedRoute=o,this.skinSpaReportService=n,this.sharedService=i,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.Categories=this.sharedService.Category.asObservable(),this.IPAD=Object(g.a)([{Value:"All",Name:"All"},{Value:"YES",Name:"YES"},{Value:"NO",Name:"NO"}]),this.CreateBeautyBARAccountweeklysalesForm()}CreateBeautyBARAccountweeklysalesForm(){this.BeautyBARAccountweeklysalesForm=this.fb.group({BeautyBARAccountweeklysales:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""],IPAD:[""],CATEGORY:[""]})})}get BeautyBARAccountweeklysales(){return this.BeautyBARAccountweeklysalesForm.get("BeautyBARAccountweeklysales")}ngOnInit(){this.YEARS=Object(m.a)([this.activatedRoute.snapshot.data.Years]),this.IPADS=this.IPAD,this.AllAccount=this.sharedService.GetStore(f.e.BeautyBARAccountWeeklySales),this.GetArea(),this.GetCategories(),this.GetSTOGRPCODE(),this.GetRegion(),this.InitialValue()}InitialValue(){this.BeautyBARAccountweeklysales.get("IPAD").setValue("All"),this.BeautyBARAccountweeklysales.get("REGION").setValue("All"),this.BeautyBARAccountweeklysales.get("AREA").setValue("All"),this.BeautyBARAccountweeklysales.get("CATEGORY").setValue("All"),this.BeautyBARAccountweeklysales.get("STOGRPCODE").setValue("All"),this.BeautyBARAccountweeklysales.get("YEAR").setValue((new Date).getFullYear())}ResetForm(){this.BeautyBARAccountweeklysalesForm.reset(),this.InitialValue()}GetRegion(){this.sharedService.GetRegion(f.c.REGION_BB).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.REGION.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load REGIONS."))}GetArea(){this.sharedService.GetArea(f.a.AREA_CLARINS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.AREA.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load AREAS."))}GetCategories(){this.sharedService.GetCategories().subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.Category.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load Categories."))}GetSTOGRPCODE(){this.sharedService.GetSTOGRPCODE(f.d.STOGRPCODE_CLARINS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.STOGRPCODE.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load STOGRPCODE."))}selectEvent(t){}onChangeSearch(t){}searchCleared(){}rptBeautyBARAccountWeeklySales(t,e,o,n,i,a,r){let s;this.skinSpaReportService.rptBeautyBARAccountWeeklySales(void 0===t.Value?0:t.Value,e,o,n,i,a,"All",r).subscribe(t=>{s=new Blob([t],{type:"application/pdf"})},t=>{console.log(t)},()=>{let t=URL.createObjectURL(s);window.open(t,"_blank")})}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(S.c),i.Mb(n.e),i.Mb(n.a),i.Mb(R.c),i.Mb(y.a))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-beautybaraccountweeklysales"]],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","BeautyBARAccountweeklysales"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","375px"],[1,"text-center",2,"margin-top","25px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","25px"],[1,"row","no-padding","mb-1"],["for","store",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],[1,"col-sm-8"],["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"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],[1,"col-sm-5"],["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","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(t,e){if(1&t&&(i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",3),i.Sb(10,"h4",9),i.Kc(11,"Report Parameters"),i.Rb(),i.Sb(12,"h4",10),i.Kc(13,"Enter values for the Parameters"),i.Rb(),i.Rb(),i.Sb(14,"div",11),i.Sb(15,"div",12),i.Sb(16,"label",13),i.Kc(17,"Store:"),i.Rb(),i.Sb(18,"div",14),i.Sb(19,"ng-autocomplete",15,16),i.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),i.fc(21,"async"),i.Rb(),i.Ic(22,G,1,1,"ng-template",null,17,i.Jc),i.Ic(24,T,1,1,"ng-template",null,18,i.Jc),i.Rb(),i.Rb(),i.Rb(),i.Sb(26,"div",19),i.Sb(27,"div",12),i.Sb(28,"label",20),i.Kc(29,"Year:"),i.Rb(),i.Sb(30,"div",21),i.Sb(31,"select",22),i.Ic(32,L,2,2,"option",23),i.fc(33,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(34,"div",19),i.Sb(35,"div",12),i.Sb(36,"label",24),i.Kc(37,"Area:"),i.Rb(),i.Sb(38,"div",21),i.Sb(39,"select",25),i.Ic(40,I,2,2,"option",23),i.fc(41,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(42,"div",19),i.Sb(43,"div",12),i.Sb(44,"label",26),i.Kc(45,"Store Group:"),i.Rb(),i.Sb(46,"div",21),i.Sb(47,"select",27),i.Ic(48,B,2,2,"option",23),i.fc(49,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(50,"div",19),i.Sb(51,"div",12),i.Sb(52,"label",28),i.Kc(53,"Region:"),i.Rb(),i.Sb(54,"div",21),i.Sb(55,"select",29),i.Ic(56,Y,2,2,"option",23),i.fc(57,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(58,"div",19),i.Sb(59,"div",12),i.Sb(60,"label",30),i.Kc(61,"IPAD:"),i.Rb(),i.Sb(62,"div",21),i.Sb(63,"select",31),i.Ic(64,D,2,2,"option",23),i.fc(65,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(66,"div",19),i.Sb(67,"div",12),i.Sb(68,"label",32),i.Kc(69,"Category:"),i.Rb(),i.Sb(70,"div",21),i.Sb(71,"select",33),i.Ic(72,W,2,2,"option",23),i.fc(73,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(74,"div",3),i.Sb(75,"div",34),i.Sb(76,"button",35),i.cc("click",function(){return e.rptBeautyBARAccountWeeklySales(e.BeautyBARAccountweeklysales.get("ACC").value,e.BeautyBARAccountweeklysales.get("YEAR").value,"All"===e.BeautyBARAccountweeklysales.get("AREA").value?0:e.BeautyBARAccountweeklysales.get("AREA").value,e.BeautyBARAccountweeklysales.get("STOGRPCODE").value,"All"===e.BeautyBARAccountweeklysales.get("REGION").value?0:e.BeautyBARAccountweeklysales.get("REGION").value,e.BeautyBARAccountweeklysales.get("IPAD").value,e.BeautyBARAccountweeklysales.get("CATEGORY").value)}),i.Kc(77," Submit"),i.Rb(),i.Sb(78,"button",36),i.cc("click",function(){return e.ResetForm()}),i.Kc(79," Reset"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(80,"ngx-spinner",37),i.Sb(81,"p",38),i.Kc(82," Loading... "),i.Rb(),i.Rb(),i.Rb()),2&t){const t=i.wc(23),o=i.wc(25);i.yb(1),i.mc("formGroup",e.BeautyBARAccountweeklysalesForm),i.yb(18),i.mc("data",i.gc(21,15,e.AllAccount))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",t)("notFoundTemplate",o)("debounceTime",10),i.yb(13),i.mc("ngForOf",i.gc(33,17,e.YEARS)),i.yb(8),i.mc("ngForOf",i.gc(41,19,e.AREAS)),i.yb(8),i.mc("ngForOf",i.gc(49,21,e.STOGRPCODES)),i.yb(8),i.mc("ngForOf",i.gc(57,23,e.REGIONS)),i.yb(8),i.mc("ngForOf",i.gc(65,25,e.IPADS)),i.yb(8),i.mc("ngForOf",i.gc(73,27,e.Categories)),i.yb(8),i.mc("fullScreen",!1)}},directives:[S.t,S.m,S.g,S.h,v.a,S.l,S.e,S.q,x.m,O.b,O.c,C.a,S.o,S.s],pipes:[x.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}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}#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}"]}),t})();function V(t,e){if(1&t&&(i.Sb(0,"option",33),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function z(t,e){if(1&t&&(i.Sb(0,"option",33),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function K(t,e){if(1&t&&(i.Sb(0,"option",33),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function H(t,e){1&t&&i.Nb(0,"a",34),2&t&&i.mc("innerHTML",e.$implicit.Name,i.Ac)}function j(t,e){1&t&&i.Nb(0,"div",34),2&t&&i.mc("innerHTML",e.$implicit,i.Ac)}let $=(()=>{class t{constructor(t,e,o,n,i){this.fb=t,this.router=e,this.activatedRoute=o,this.skinSpaReportService=n,this.sharedService=i,this.placeholder="Enter Search String",this.keyword="Name",this.YEARS=this.sharedService.YEAR.asObservable(),this.REGIONS=this.sharedService.REGION.asObservable(),this.REPORTTYPE=Object(g.a)([{Value:"All",Name:"All"},{Value:"MOBILE",Name:"MOBILE"},{Value:"NONMOBILE",Name:"NONMOBILE"}]),this.CreateMobileTherapistWeeklySalesForm()}CreateMobileTherapistWeeklySalesForm(){this.MobileTherapistWeeklySalesForm=this.fb.group({MobileTherapistWeeklySales:this.fb.group({REPORTTYPE:[""],YEAR:[""],REGION:[""],EMPNO:[""]})})}get MobileTherapistWeeklySales(){return this.MobileTherapistWeeklySalesForm.get("MobileTherapistWeeklySales")}ngOnInit(){this.YEARS=Object(m.a)([this.activatedRoute.snapshot.data.Years]),this.REPORTTYPES=this.REPORTTYPE,this.EMPLOYEES=this.sharedService.GetEmpno(f.b.MobileTherapistWeeklySales),this.GetRegion(),this.InitialValue()}InitialValue(){this.MobileTherapistWeeklySales.get("REPORTTYPE").setValue("All"),this.MobileTherapistWeeklySales.get("REGION").setValue("All"),this.MobileTherapistWeeklySales.get("YEAR").setValue((new Date).getFullYear())}ResetForm(){this.MobileTherapistWeeklySalesForm.reset(),this.InitialValue()}GetRegion(){this.sharedService.GetRegion(f.c.REGION_BB).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.REGION.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load REGIONS."))}selectEvent(t){}onChangeSearch(t){}searchCleared(){}rptMobileTherapistWeeklySales(t,e,o,n){let i;this.skinSpaReportService.rptMobileTherapistWeeklySales(t,e,o,void 0===n.Value?0:n.Value).subscribe(t=>{i=new Blob([t],{type:"application/pdf"})},t=>{console.log(t)},()=>{let t=URL.createObjectURL(i);window.open(t,"_blank")})}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(S.c),i.Mb(n.e),i.Mb(n.a),i.Mb(R.c),i.Mb(y.a))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-mobiletherapistweeklysales"]],decls:59,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","MobileTherapistWeeklySales"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","305px"],[1,"text-center",2,"margin-top","25px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","25px"],[1,"row","no-padding","mb-1"],["for","REPORTTYPE",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],[1,"col-sm-5"],["formControlName","REPORTTYPE",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","mt-1"],["formControlName","YEAR",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","EMPNO",1,"col-sm-4","col-form-label","text-right","no-padding","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",""],[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,"value"],[3,"innerHTML"]],template:function(t,e){if(1&t&&(i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",3),i.Sb(10,"h4",9),i.Kc(11,"Report Parameters"),i.Rb(),i.Sb(12,"h4",10),i.Kc(13,"Enter values for the Parameters"),i.Rb(),i.Rb(),i.Sb(14,"div",11),i.Sb(15,"div",12),i.Sb(16,"label",13),i.Kc(17,"REPORT TYPE:"),i.Rb(),i.Sb(18,"div",14),i.Sb(19,"select",15),i.Ic(20,V,2,2,"option",16),i.fc(21,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(22,"div",17),i.Sb(23,"div",12),i.Sb(24,"label",18),i.Kc(25,"Year:"),i.Rb(),i.Sb(26,"div",14),i.Sb(27,"select",19),i.Ic(28,z,2,2,"option",16),i.fc(29,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(30,"div",17),i.Sb(31,"div",12),i.Sb(32,"label",20),i.Kc(33,"REGION:"),i.Rb(),i.Sb(34,"div",14),i.Sb(35,"select",21),i.Ic(36,K,2,2,"option",16),i.fc(37,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(38,"div",17),i.Sb(39,"div",12),i.Sb(40,"label",22),i.Kc(41,"EMPNO:"),i.Rb(),i.Sb(42,"div",23),i.Sb(43,"ng-autocomplete",24,25),i.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),i.fc(45,"async"),i.Rb(),i.Ic(46,H,1,1,"ng-template",null,26,i.Jc),i.Ic(48,j,1,1,"ng-template",null,27,i.Jc),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(50,"div",3),i.Sb(51,"div",28),i.Sb(52,"button",29),i.cc("click",function(){return e.rptMobileTherapistWeeklySales(e.MobileTherapistWeeklySales.get("REPORTTYPE").value,e.MobileTherapistWeeklySales.get("YEAR").value,"All"===e.MobileTherapistWeeklySales.get("REGION").value?0:e.MobileTherapistWeeklySales.get("REGION").value,e.MobileTherapistWeeklySales.get("EMPNO").value)}),i.Kc(53," Submit"),i.Rb(),i.Sb(54,"button",30),i.cc("click",function(){return e.ResetForm()}),i.Kc(55," Reset"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(56,"ngx-spinner",31),i.Sb(57,"p",32),i.Kc(58," Loading... "),i.Rb(),i.Rb(),i.Rb()),2&t){const t=i.wc(47),o=i.wc(49);i.yb(1),i.mc("formGroup",e.MobileTherapistWeeklySalesForm),i.yb(19),i.mc("ngForOf",i.gc(21,12,e.REPORTTYPES)),i.yb(8),i.mc("ngForOf",i.gc(29,14,e.YEARS)),i.yb(8),i.mc("ngForOf",i.gc(37,16,e.REGIONS)),i.yb(7),i.mc("data",i.gc(45,18,e.EMPLOYEES))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",t)("notFoundTemplate",o)("debounceTime",10),i.yb(13),i.mc("fullScreen",!1)}},directives:[S.t,S.m,S.g,S.h,S.q,S.l,S.e,x.m,v.a,O.b,O.c,C.a,S.o,S.s],pipes:[x.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}.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}label[_ngcontent-%COMP%]{text-transform:uppercase;font-size:12px}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}#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}"]}),t})();function q(t,e){if(1&t&&(i.Sb(0,"option",38),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function J(t,e){1&t&&i.Nb(0,"a",39),2&t&&i.mc("innerHTML",e.$implicit.Name,i.Ac)}function Q(t,e){1&t&&i.Nb(0,"div",39),2&t&&i.mc("innerHTML",e.$implicit,i.Ac)}function Z(t,e){if(1&t&&(i.Sb(0,"option",38),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function X(t,e){if(1&t&&(i.Sb(0,"option",38),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function tt(t,e){1&t&&i.Nb(0,"a",39),2&t&&i.mc("innerHTML",e.$implicit.Name,i.Ac)}function et(t,e){1&t&&i.Nb(0,"div",39),2&t&&i.mc("innerHTML",e.$implicit,i.Ac)}let ot=(()=>{class t{constructor(t,e,o,n,i){this.fb=t,this.router=e,this.activatedRoute=o,this.skinSpaReportService=n,this.sharedService=i,this.placeholder="Enter Search String",this.keyword="Name",this.YEARS=this.sharedService.YEAR.asObservable(),this.AREAS=this.sharedService.AREA.asObservable(),this.REPORTTYPE=Object(g.a)([{Value:"All",Name:"All"},{Value:"MOBILE",Name:"MOBILE"},{Value:"NONMOBILE",Name:"NONMOBILE"}]),this.CreateTherapistweeklysalesForm()}CreateTherapistweeklysalesForm(){this.TherapistweeklysalesForm=this.fb.group({Therapistweeklysales:this.fb.group({REPORTTYPE:[""],ACC:[""],YEAR:[""],REGION:[""],AREA:[""],EMPNO:[""]})})}get Therapistweeklysales(){return this.TherapistweeklysalesForm.get("Therapistweeklysales")}ngOnInit(){this.YEARS=Object(m.a)([this.activatedRoute.snapshot.data.Years]),this.REPORTTYPES=this.REPORTTYPE,this.AllAccount=this.sharedService.GetStore(f.e.SkinSpaAccountSales),this.EMPLOYEES=this.sharedService.GetEmpno(f.b.TherapistWeeklySales),this.GetArea(),this.InitialValue()}InitialValue(){this.Therapistweeklysales.get("REPORTTYPE").setValue("All"),this.Therapistweeklysales.get("AREA").setValue("All"),this.Therapistweeklysales.get("YEAR").setValue((new Date).getFullYear())}ResetForm(){this.TherapistweeklysalesForm.reset(),this.InitialValue()}GetArea(){this.sharedService.GetArea(f.a.AREA_CLARINS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.AREA.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load AREAS."))}selectEvent(t){}onChangeSearch(t){}searchCleared(){}rptTherapistWeeklySales(t,e,o,n,i){let a;this.skinSpaReportService.rptTherapistWeeklySales(void 0===t.Value?0:t.Value,e,o,0,void 0===n.Value?0:n.Value,i).subscribe(t=>{a=new Blob([t],{type:"application/pdf"})},t=>{console.log(t)},()=>{let t=URL.createObjectURL(a);window.open(t,"_blank")})}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(S.c),i.Mb(n.e),i.Mb(n.a),i.Mb(R.c),i.Mb(y.a))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-therapistweeklysales"]],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","Therapistweeklysales"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","325px"],[1,"text-center",2,"margin-top","25px"],[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","mt-1"],[1,"col-sm-5"],["formControlName","REPORTTYPE",1,"form-control","form-control-sm"],[3,"value",4,"ngFor","ngForOf"],[1,"col-sm-12"],["for","store",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],[1,"col-sm-8"],["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,"row","no-padding","mb-1"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","YEAR",1,"form-control","form-control-sm"],["for","Area",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","AREA",1,"form-control","form-control-sm"],["for","EMPNO",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","EMPNO","id","EMPNO","name","EMPNO","notFoundText","Not found",3,"data","initialValue","searchKeyword","placeholder","minQueryLength","itemTemplate","notFoundTemplate","debounceTime","selected","inputChanged","inputCleared"],["itemTemplateStatic2",""],["notFoundTemplate2",""],[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,"value"],[3,"innerHTML"]],template:function(t,e){if(1&t&&(i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",3),i.Sb(10,"h4",9),i.Kc(11,"Report Parameters"),i.Rb(),i.Sb(12,"h4",10),i.Kc(13,"Enter values for the Parameters"),i.Rb(),i.Rb(),i.Sb(14,"div",11),i.Sb(15,"div",12),i.Sb(16,"label",13),i.Kc(17,"REPORT TYPE:"),i.Rb(),i.Sb(18,"div",14),i.Sb(19,"select",15),i.Ic(20,q,2,2,"option",16),i.fc(21,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(22,"div",17),i.Sb(23,"div",12),i.Sb(24,"label",18),i.Kc(25,"Store:"),i.Rb(),i.Sb(26,"div",19),i.Sb(27,"ng-autocomplete",20,21),i.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),i.fc(29,"async"),i.Rb(),i.Ic(30,J,1,1,"ng-template",null,22,i.Jc),i.Ic(32,Q,1,1,"ng-template",null,23,i.Jc),i.Rb(),i.Rb(),i.Rb(),i.Sb(34,"div",17),i.Sb(35,"div",24),i.Sb(36,"label",25),i.Kc(37,"Year:"),i.Rb(),i.Sb(38,"div",14),i.Sb(39,"select",26),i.Ic(40,Z,2,2,"option",16),i.fc(41,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(42,"div",17),i.Sb(43,"div",24),i.Sb(44,"label",27),i.Kc(45,"Area:"),i.Rb(),i.Sb(46,"div",14),i.Sb(47,"select",28),i.Ic(48,X,2,2,"option",16),i.fc(49,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(50,"div",17),i.Sb(51,"div",24),i.Sb(52,"label",29),i.Kc(53,"EMPNO:"),i.Rb(),i.Sb(54,"div",19),i.Sb(55,"ng-autocomplete",30,21),i.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),i.fc(57,"async"),i.Rb(),i.Ic(58,tt,1,1,"ng-template",null,31,i.Jc),i.Ic(60,et,1,1,"ng-template",null,32,i.Jc),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(62,"div",3),i.Sb(63,"div",33),i.Sb(64,"button",34),i.cc("click",function(){return e.rptTherapistWeeklySales(e.Therapistweeklysales.get("ACC").value,e.Therapistweeklysales.get("YEAR").value,"All"===e.Therapistweeklysales.get("AREA").value?0:e.Therapistweeklysales.get("AREA").value,e.Therapistweeklysales.get("EMPNO").value,e.Therapistweeklysales.get("REPORTTYPE").value)}),i.Kc(65," Submit"),i.Rb(),i.Sb(66,"button",35),i.cc("click",function(){return e.ResetForm()}),i.Kc(67," Reset"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(68,"ngx-spinner",36),i.Sb(69,"p",37),i.Kc(70," Loading... "),i.Rb(),i.Rb(),i.Rb()),2&t){const t=i.wc(31),o=i.wc(33),n=i.wc(59),a=i.wc(61);i.yb(1),i.mc("formGroup",e.TherapistweeklysalesForm),i.yb(19),i.mc("ngForOf",i.gc(21,19,e.REPORTTYPES)),i.yb(7),i.mc("data",i.gc(29,21,e.AllAccount))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",t)("notFoundTemplate",o)("debounceTime",10),i.yb(13),i.mc("ngForOf",i.gc(41,23,e.YEARS)),i.yb(8),i.mc("ngForOf",i.gc(49,25,e.AREAS)),i.yb(7),i.mc("data",i.gc(57,27,e.EMPLOYEES))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",n)("notFoundTemplate",a)("debounceTime",10),i.yb(13),i.mc("fullScreen",!1)}},directives:[S.t,S.m,S.g,S.h,S.q,S.l,S.e,x.m,v.a,O.b,O.c,C.a,S.o,S.s],pipes:[x.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}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}#grad1[_ngcontent-%COMP%]{height:380px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}"]}),t})();var nt=o("Iab2"),it=o("IheW"),at=o("EApP"),rt=o("qvAe"),st=o("u47x");function ct(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",24),i.Sb(1,"td",25),i.Nb(2,"input",26),i.Rb(),i.Sb(3,"td",27),i.Sb(4,"button",28),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Download(o,n.MStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(5,"i",29),i.Rb(),i.Rb(),i.Sb(6,"td",27),i.Sb(7,"button",30),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Delete(o,n.MStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(8,"i",31),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let lt=(()=>{class t{constructor(t,e,o,n,a,r){this.fb=t,this.toastr=e,this.staticReportsService=o,this.interactivityChecker=n,this.router=a,this.platformId=r,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"SkinSpaStaticReports","MonthlyReports").subscribe(t=>{t.type===it.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===it.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.MStaticRports.reset()})},this.CreateMonthlyReportsForm()}CreateMonthlyReportsForm(){const t=[];for(let e=0;e<14;e++)t.push(this.StaticReports());this.MonthlyReportsForm=this.fb.group({MStaticRports:this.fb.group({FILENAME:[""]}),MStaticReportsList:this.fb.array(t)})}StaticReports(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}get MStaticRports(){return this.MonthlyReportsForm.get("MStaticRports")}get MStaticReportsList(){return this.MonthlyReportsForm.get("MStaticReportsList")}ngOnInit(){this.GetAllFiles()}GetAllFiles(){this.staticReportsService.StaticReportDetails("SkinSpa","MonthlyPeriodic").subscribe(t=>{if(this.FileName=t,console.log(t),this.FileName.length>0){const t=this.MonthlyReportsForm.controls.MStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.MStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.MonthlyReportsForm.controls.MStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("SkinSpa","MonthlyPeriodic",e).subscribe(e=>{null==e&&(this.MStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","SkinSpa"))},t=>{console.log(t)});break}}Download(t,e){const o=this.MonthlyReportsForm.controls.MStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("SkinSpa","MonthlyPeriodic",e).subscribe(t=>{let o=new Blob([t],{type:"application/pdf"});const n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):nt.saveAs(o,e)});break}}keyevent(t){t.preventDefault();const e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(let n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){const t=o[o.indexOf(document.activeElement)+1];t&&(t.focus(),t.select())}else if(38===t.keyCode){const t=o[o.indexOf(document.activeElement)-1];t&&(t.focus(),t.select())}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(S.c),i.Mb(at.b),i.Mb(rt.a),i.Mb(st.d),i.Mb(n.e),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-monthlyreports"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:25,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,"col-sm-12"],[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(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"div",11),i.Nb(12,"input",12),i.Rb(),i.Sb(13,"div",13),i.Sb(14,"button",14),i.Nb(15,"i",15),i.Sb(16,"input",16,17),i.cc("change",function(){i.zc(t);const o=i.wc(17);return e.UploadFile(o.files,e.MStaticRports.get("FILENAME").value)}),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"div",21),i.Sb(22,"table",22),i.Sb(23,"tbody"),i.Ic(24,ct,9,1,"tr",23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}2&t&&(i.yb(1),i.mc("formGroup",e.MonthlyReportsForm),i.yb(13),i.mc("disabled",""===e.MStaticRports.get("FILENAME").value||null===e.MStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.MStaticReportsList.controls))},directives:[S.t,S.m,S.g,S.h,S.a,S.l,S.e,S.b,x.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}.error[_ngcontent-%COMP%]{margin-top:1px;background:#ff0;padding:.5em;display:inline-block;font-size:.9em;margin-bottom:1px}.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}.table-responsive-cus[_ngcontent-%COMP%]{min-height:160px;overflow-x:auto;height:100px}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0}.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)}']}),t})();function pt(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",24),i.Sb(1,"td",25),i.Nb(2,"input",26),i.Rb(),i.Sb(3,"td",27),i.Sb(4,"button",28),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Download(o,n.HStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(5,"i",29),i.Rb(),i.Rb(),i.Sb(6,"td",27),i.Sb(7,"button",30),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Delete(o,n.HStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(8,"i",31),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let dt=(()=>{class t{constructor(t,e,o,n,a,r){this.fb=t,this.staticReportsService=e,this.interactivityChecker=o,this.router=n,this.toastr=a,this.platformId=r,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"SkinSpaStaticReports","HistoricReports").subscribe(t=>{t.type===it.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===it.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.HStaticRports.reset()})},this.CreateHistoricReportsForm()}CreateHistoricReportsForm(){const t=[];for(let e=0;e<14;e++)t.push(this.StaticReports());this.HistoricReportsForm=this.fb.group({HStaticRports:this.fb.group({FILENAME:[""]}),HStaticReportsList:this.fb.array(t)})}StaticReports(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}get HStaticRports(){return this.HistoricReportsForm.get("HStaticRports")}get HStaticReportsList(){return this.HistoricReportsForm.get("HStaticReportsList")}ngOnInit(){this.GetAllFiles()}GetAllFiles(){this.staticReportsService.StaticReportDetails("SkinSpa","Historic").subscribe(t=>{if(this.FileName=t,console.log(t),this.FileName.length>0){const t=this.HistoricReportsForm.controls.HStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.HStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.HistoricReportsForm.controls.HStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("SkinSpa","Historic",e).subscribe(e=>{null==e&&(this.HStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","SkinSpa"))},t=>{console.log(t)});break}}Download(t,e){const o=this.HistoricReportsForm.controls.HStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("SkinSpa","Historic",e).subscribe(t=>{let o=new Blob([t],{type:"application/pdf"});const n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):nt.saveAs(o,e)});break}}keyevent(t){t.preventDefault();const e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(let n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){const t=o[o.indexOf(document.activeElement)+1];t&&(t.focus(),t.select())}else if(38===t.keyCode){const t=o[o.indexOf(document.activeElement)-1];t&&(t.focus(),t.select())}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(S.c),i.Mb(rt.a),i.Mb(st.d),i.Mb(n.e),i.Mb(at.b),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-historicreports"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:25,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,"col-sm-12"],[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(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"div",11),i.Nb(12,"input",12),i.Rb(),i.Sb(13,"div",13),i.Sb(14,"button",14),i.Nb(15,"i",15),i.Sb(16,"input",16,17),i.cc("change",function(){i.zc(t);const o=i.wc(17);return e.UploadFile(o.files,e.HStaticRports.get("FILENAME").value)}),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"div",21),i.Sb(22,"table",22),i.Sb(23,"tbody"),i.Ic(24,pt,9,1,"tr",23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}2&t&&(i.yb(1),i.mc("formGroup",e.HistoricReportsForm),i.yb(13),i.mc("disabled",""===e.HStaticRports.get("FILENAME").value||null===e.HStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.HStaticReportsList.controls))},directives:[S.t,S.m,S.g,S.h,S.a,S.l,S.e,S.b,x.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}.table-responsive-cus[_ngcontent-%COMP%]{min-height:160px;overflow-x:auto;height:100px}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0}.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)}']}),t})();function bt(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",24),i.Sb(1,"td",25),i.Nb(2,"input",26),i.Rb(),i.Sb(3,"td",27),i.Sb(4,"button",28),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Download(o,n.GStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(5,"i",29),i.Rb(),i.Rb(),i.Sb(6,"td",27),i.Sb(7,"button",30),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Delete(o,n.GStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(8,"i",31),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let ut=(()=>{class t{constructor(t,e,o,n,a,r){this.fb=t,this.router=e,this.toastr=o,this.staticReportsService=n,this.interactivityChecker=a,this.platformId=r,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"SkinSpaStaticReports","GeneratorReports").subscribe(t=>{t.type===it.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===it.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.GStaticRports.reset()})},this.CreateGeneratorReportsForm()}CreateGeneratorReportsForm(){const t=[];for(let e=0;e<14;e++)t.push(this.StaticReports());this.GeneratorReportsForm=this.fb.group({GStaticRports:this.fb.group({FILENAME:[""]}),GStaticReportsList:this.fb.array(t)})}StaticReports(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}get GStaticRports(){return this.GeneratorReportsForm.get("GStaticRports")}get GStaticReportsList(){return this.GeneratorReportsForm.get("GStaticReportsList")}ngOnInit(){this.GetAllFiles()}GetAllFiles(){this.staticReportsService.StaticReportDetails("SkinSpa","Generator").subscribe(t=>{if(this.FileName=t,console.log(t),this.FileName.length>0){const t=this.GeneratorReportsForm.controls.GStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.GStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.GeneratorReportsForm.controls.GStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("SkinSpa","Generator",e).subscribe(e=>{null==e&&(this.GStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","SkinSpa"))},t=>{console.log(t)});break}}Download(t,e){const o=this.GeneratorReportsForm.controls.GStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("SkinSpa","Generator",e).subscribe(t=>{let o=new Blob([t],{type:"application/pdf"});const n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):nt.saveAs(o,e)});break}}keyevent(t){t.preventDefault();const e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(let n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){const t=o[o.indexOf(document.activeElement)+1];t&&(t.focus(),t.select())}else if(38===t.keyCode){const t=o[o.indexOf(document.activeElement)-1];t&&(t.focus(),t.select())}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(S.c),i.Mb(n.e),i.Mb(at.b),i.Mb(rt.a),i.Mb(st.d),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-generatorreports"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:25,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,"col-sm-12"],[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(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"div",11),i.Nb(12,"input",12),i.Rb(),i.Sb(13,"div",13),i.Sb(14,"button",14),i.Nb(15,"i",15),i.Sb(16,"input",16,17),i.cc("change",function(){i.zc(t);const o=i.wc(17);return e.UploadFile(o.files,e.GStaticRports.get("FILENAME").value)}),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"div",21),i.Sb(22,"table",22),i.Sb(23,"tbody"),i.Ic(24,bt,9,1,"tr",23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}2&t&&(i.yb(1),i.mc("formGroup",e.GeneratorReportsForm),i.yb(13),i.mc("disabled",""===e.GStaticRports.get("FILENAME").value||null===e.GStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.GStaticReportsList.controls))},directives:[S.t,S.m,S.g,S.h,S.a,S.l,S.e,S.b,x.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}.error[_ngcontent-%COMP%]{margin-top:1px;background:#ff0;padding:.5em;display:inline-block;font-size:.9em;margin-bottom:1px}.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}.table-responsive-cus[_ngcontent-%COMP%]{min-height:160px;overflow-x:auto;height:100px}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0}.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)}']}),t})();function ht(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",24),i.Sb(1,"td",25),i.Nb(2,"input",26),i.Rb(),i.Sb(3,"td",27),i.Sb(4,"button",28),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Download(o,n.CYStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(5,"i",29),i.Rb(),i.Rb(),i.Sb(6,"td",27),i.Sb(7,"button",30),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Delete(o,n.CYStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(8,"i",31),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let gt=(()=>{class t{constructor(t,e,o,n,a,r){this.fb=t,this.toastr=e,this.staticReportsService=o,this.interactivityChecker=n,this.router=a,this.platformId=r,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"SkinSpaStaticReports","GroupStrategyReports_CY").subscribe(t=>{t.type===it.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===it.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.CYStaticRports.reset()})},this.CreateClarinsYearReportsForm()}CreateClarinsYearReportsForm(){const t=[];for(let e=0;e<14;e++)t.push(this.StaticReports());this.ClarinsYearReportsForm=this.fb.group({CYStaticRports:this.fb.group({FILENAME:[""]}),CYStaticReportsList:this.fb.array(t)})}StaticReports(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}get CYStaticRports(){return this.ClarinsYearReportsForm.get("CYStaticRports")}get CYStaticReportsList(){return this.ClarinsYearReportsForm.get("CYStaticReportsList")}ngOnInit(){this.GetAllFiles()}GetAllFiles(){this.staticReportsService.StaticReportDetails("SkinSpa","GroupStrategyClarins").subscribe(t=>{if(this.FileName=t,console.log(t),this.FileName.length>0){const t=this.ClarinsYearReportsForm.controls.CYStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.CYStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.ClarinsYearReportsForm.controls.CYStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("SkinSpa","GroupStrategyClarins",e).subscribe(e=>{null==e&&(this.CYStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","SkinSpa"))},t=>{console.log(t)});break}}Download(t,e){const o=this.ClarinsYearReportsForm.controls.CYStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("SkinSpa","GroupStrategyClarins",e).subscribe(t=>{let o=new Blob([t],{type:"application/pdf"});const n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):nt.saveAs(o,e)});break}}keyevent(t){t.preventDefault();const e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(let n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){const t=o[o.indexOf(document.activeElement)+1];t&&(t.focus(),t.select())}else if(38===t.keyCode){const t=o[o.indexOf(document.activeElement)-1];t&&(t.focus(),t.select())}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(S.c),i.Mb(at.b),i.Mb(rt.a),i.Mb(st.d),i.Mb(n.e),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-clarins-year"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:25,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,"col-sm-12"],[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(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"div",11),i.Nb(12,"input",12),i.Rb(),i.Sb(13,"div",13),i.Sb(14,"button",14),i.Nb(15,"i",15),i.Sb(16,"input",16,17),i.cc("change",function(){i.zc(t);const o=i.wc(17);return e.UploadFile(o.files,e.CYStaticRports.get("FILENAME").value)}),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"div",21),i.Sb(22,"table",22),i.Sb(23,"tbody"),i.Ic(24,ht,9,1,"tr",23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}2&t&&(i.yb(1),i.mc("formGroup",e.ClarinsYearReportsForm),i.yb(13),i.mc("disabled",""===e.CYStaticRports.get("FILENAME").value||null===e.CYStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.CYStaticReportsList.controls))},directives:[S.t,S.m,S.g,S.h,S.a,S.l,S.e,S.b,x.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}.table-responsive-cus[_ngcontent-%COMP%]{min-height:160px;overflow-x:auto;height:100px}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0}.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)}']}),t})();function mt(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",24),i.Sb(1,"td",25),i.Nb(2,"input",26),i.Rb(),i.Sb(3,"td",27),i.Sb(4,"button",28),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Download(o,n.FYStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(5,"i",29),i.Rb(),i.Rb(),i.Sb(6,"td",27),i.Sb(7,"button",30),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Delete(o,n.FYStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(8,"i",31),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let ft=(()=>{class t{constructor(t,e,o,n,a,r){this.fb=t,this.router=e,this.toastr=o,this.staticReportsService=n,this.interactivityChecker=a,this.platformId=r,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"SkinSpaStaticReports","GroupStrategyReports_FY").subscribe(t=>{t.type===it.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===it.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.FYStaticRports.reset()})},this.CreateFiscalYearReportsForm()}CreateFiscalYearReportsForm(){const t=[];for(let e=0;e<14;e++)t.push(this.StaticReports());this.FiscalYearReportsForm=this.fb.group({FYStaticRports:this.fb.group({FILENAME:[""]}),FYStaticReportsList:this.fb.array(t)})}StaticReports(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}get FYStaticRports(){return this.FiscalYearReportsForm.get("FYStaticRports")}get FYStaticReportsList(){return this.FiscalYearReportsForm.get("FYStaticReportsList")}ngOnInit(){this.GetAllFiles()}GetAllFiles(){this.staticReportsService.StaticReportDetails("SkinSpa","GroupStrategyFiscal").subscribe(t=>{if(this.FileName=t,console.log(t),this.FileName.length>0){const t=this.FiscalYearReportsForm.controls.FYStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.FYStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.FiscalYearReportsForm.controls.FYStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("SkinSpa","GroupStrategyFiscal",e).subscribe(e=>{null==e&&(this.FYStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","SkinSpa"))},t=>{console.log(t)});break}}Download(t,e){const o=this.FiscalYearReportsForm.controls.FYStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("SkinSpa","GroupStrategyFiscal",e).subscribe(t=>{let o=new Blob([t],{type:"application/pdf"});const n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):nt.saveAs(o,e)});break}}keyevent(t){t.preventDefault();const e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(let n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){const t=o[o.indexOf(document.activeElement)+1];t&&(t.focus(),t.select())}else if(38===t.keyCode){const t=o[o.indexOf(document.activeElement)-1];t&&(t.focus(),t.select())}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(S.c),i.Mb(n.e),i.Mb(at.b),i.Mb(rt.a),i.Mb(st.d),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-fiscal-year"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:25,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,"col-sm-12"],[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(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"div",11),i.Nb(12,"input",12),i.Rb(),i.Sb(13,"div",13),i.Sb(14,"button",14),i.Nb(15,"i",15),i.Sb(16,"input",16,17),i.cc("change",function(){i.zc(t);const o=i.wc(17);return e.UploadFile(o.files,e.FYStaticRports.get("FILENAME").value)}),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"div",21),i.Sb(22,"table",22),i.Sb(23,"tbody"),i.Ic(24,mt,9,1,"tr",23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}2&t&&(i.yb(1),i.mc("formGroup",e.FiscalYearReportsForm),i.yb(13),i.mc("disabled",""===e.FYStaticRports.get("FILENAME").value||null===e.FYStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.FYStaticReportsList.controls))},directives:[S.t,S.m,S.g,S.h,S.a,S.l,S.e,S.b,x.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}.table-responsive-cus[_ngcontent-%COMP%]{min-height:160px;overflow-x:auto;height:100px}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0}.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)}']}),t})();var St=o("liBt");const Rt=[{path:"",data:{title:"Skin Spa Reports"},children:[{path:"",redirectTo:"Skinspareports",pathMatch:"full"},{path:"",component:h,data:{title:"Skin Spa Reports"},children:[{path:"BeautyBARAccountWeeklySales",component:U,resolve:{Years:St.a},data:{title:"Skin Spa: Beauty BAR Account Weekly Sales"}},{path:"MobileTherapistWeeklySales",component:$,resolve:{Years:St.a},data:{title:"Skin Spa and BeautyBar: Mobile Therapist Weekly Sales"}},{path:"SkinSpaAccountSales",component:_,resolve:{Years:St.a},data:{title:"Skin Spa: Account Sales"}},{path:"TherapistWeeklySales",component:ot,resolve:{Years:St.a},data:{title:"Skin Spa and BeautyBar: Therapist Weekly Sales"}},{path:"SkinSpa-MonthlyReports",component:lt,data:{title:"Skin Spa and BeautyBar: Monthly/Periodic Reports"}},{path:"SkinSpa-ClarinsYear",component:gt,data:{title:"Skin Spa and BeautyBar: Group Business Reports (Clarins Year)"}},{path:"SkinSpa-FiscalYear",component:ft,data:{title:"Skin Spa and BeautyBar: Group Business Reports(Fiscal Year)"}},{path:"SkinSpa-HistoricReports",component:dt,data:{title:"Skin Spa and BeautyBar: Historic Reports"}},{path:"SkinSpa-GeneratorReports",component:ut,data:{title:"Skin Spa and BeautyBar: Generator Reports"}}]}]}];let yt=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[n.h.forChild(Rt)],n.h]}),t})();var vt=o("H8qh");let xt=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[yt,vt.a,C.b]]}),t})()},dufq:function(t,e,o){"use strict";o.d(e,"e",function(){return n}),o.d(e,"b",function(){return i}),o.d(e,"c",function(){return a}),o.d(e,"f",function(){return r}),o.d(e,"a",function(){return s}),o.d(e,"d",function(){return c});var n=function(t){return t.WeeklyConsultantSales="WeeklyConsultantSales",t.GBWeeklyTargets="GBWeeklyTargets",t.NIWeeklyTargets="NIWeeklyTargets",t.BeautyBARAccountWeeklySales="BeautyBARAccountWeeklySales",t.SkinSpaAccountSales="SkinSpaAccountSales",t.OccupancyWeeklyCheck="OccupancyWeeklyCheck",t.TherapistWeeklySales="TherapistWeeklySales",t.GoldSalonRetailSales="GoldSalonRetailSales",t.CFGAccountWeeklySales="CFGAccountWeeklySales",t}({}),i=function(t){return t.WeeklyConsultantSales="WeeklyConsultantSales",t.WeeklyAngelSales="WeeklyAngelSales",t.TherapistWeeklySales="TherapistWeeklySales",t.MobileTherapistWeeklySales="MobileTherapistWeeklySales",t.CFGAmbassadorWeeklySales="CFGAmbassadorWeeklySales",t}({}),a=function(t){return t[t.REGION_BB=1]="REGION_BB",t[t.REGION_GS=2]="REGION_GS",t}({}),r=function(t){return t[t.TOWN_CLARINS=1]="TOWN_CLARINS",t[t.TOWN_CFG=2]="TOWN_CFG",t}({}),s=function(t){return t[t.AREA_CLARINS=1]="AREA_CLARINS",t[t.AREA_ANGLE=2]="AREA_ANGLE",t[t.REA_BB=3]="REA_BB",t[t.AREA_GS=4]="AREA_GS",t[t.AREA_TWS=5]="AREA_TWS",t[t.AREA_MTWS=6]="AREA_MTWS",t[t.AREA_NI=7]="AREA_NI",t[t.AREA_CFG=8]="AREA_CFG",t}({}),c=function(t){return t[t.STOGRPCODE_CLARINS=1]="STOGRPCODE_CLARINS",t[t.STOGRPCODE_BB=2]="STOGRPCODE_BB",t[t.STOGRPCODE_GBT=3]="STOGRPCODE_GBT",t[t.STOGRPCODE_GS=4]="STOGRPCODE_GS",t[t.STOGRPCODE_OCC=5]="STOGRPCODE_OCC",t[t.STOGRPCODE_SSPA=6]="STOGRPCODE_SSPA",t[t.STOGRPCODE_CFG=7]="STOGRPCODE_CFG",t}({})},qvAe:function(t,e,o){"use strict";o.d(e,"a",function(){return s});var n=o("IheW"),i=o("lJxs"),a=o("8Y7J");const r={headers:new n.e({"Content-Type":"application/json",Authorization:"jwt-token"})};let s=(()=>{class t{constructor(t,e){this.http=t,this.BaseURL="",this.BaseURL="http://localhost:4200/"===e?"https://localhost:44301/api/UploadDownload/":e+"api/UploadDownload/"}StaticReportDetails(t,e){return this.http.get(this.BaseURL+"GetAllFileDetails?mejortype="+t+"&subtype="+e)}Delete(t,e,o){return this.http.delete(this.BaseURL+"DeleteFile?mejor="+t+"&subtype="+e+"&fileName="+o,r).pipe(Object(i.a)(t=>t))}UploadFile(t,e,o,i){let a=t[0];const r=new FormData;r.append("file",a,a.name);const s=new n.f("POST",this.BaseURL+"Upload?NewName="+e+"&mejorType="+o+"&subType="+i,r,{reportProgress:!0,responseType:"blob"});return this.http.request(s)}DownloadFile(t,e,o){return this.http.get(this.BaseURL+"Download?mejortype="+t+"&subtype="+e+"&fileName="+o,{responseType:"blob"}).pipe(Object(i.a)(t=>t))}}return t.\u0275fac=function(e){return new(e||t)(a.Zb(n.b),a.Zb("BASE_URL"))},t.\u0275prov=a.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()}}]);