Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wwwroot
:
8-es5.20305052e0fbeb325eae.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}(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 c=i.URL||i.webkitURL,l=document.createElement("a");l.download=a=a||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?n(l):o(l.href)?e(t,a,r):n(l,l.target="_blank")):(l.href=c.createObjectURL(t),setTimeout(function(){c.revokeObjectURL(l.href)},4e4),setTimeout(function(){n(l)},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 c="application/octet-stream"===t.type,l=/constructor/i.test(i.HTMLElement)||i.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||c&&l||a)&&"undefined"!=typeof FileReader){var p=new FileReader;p.onloadend=function(){var t=p.result;t=s?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(e,n,i){"use strict";i.d(n,"a",function(){return c});var a=i("8Y7J"),r=i("IheW"),c=function(){var e=function(){function e(o,n){t(this,e),this.http=o,this.BaseURL="",this.BaseURL="http://localhost:4200/"===n?"https://localhost:44301/api/ClarinsReport/":n+"api/ClarinsReport/"}return o(e,[{key:"rptWeeklyConsultantSales",value:function(t,e,o,n,i){return this.http.get(this.BaseURL+"rptWeeklyConsultantSales?Store="+t+"&Year="+e+"&Area="+o+"&Empno="+n+"&ReportType="+i,{responseType:"blob"})}},{key:"rptWeeklyCounterSales",value:function(t,e,o,n,i,a,r,c){return this.http.get(this.BaseURL+"rptWeeklyCounterSales?Store="+t+"&Year="+e+"&Area="+o+"&STOGRPCODE="+n+"&Region="+i+"&Town="+a+"&IPAD="+r+"&Additional="+c,{responseType:"blob"})}},{key:"rptWeeklyBeautyCoachSales",value:function(t,e,o,n){return this.http.get(this.BaseURL+"rptWeeklyAngelSales?Year="+t+"&Area="+e+"&Empno="+o+"&MonthNum="+n,{responseType:"blob"})}},{key:"rptNIWeeklyTargets",value:function(t,e,o,n){return this.http.get(this.BaseURL+"rptNIWeeklyTargets?Store="+t+"&Year="+e+"&Area="+o+"&IPAD="+n,{responseType:"blob"})}},{key:"rptGBWeeklyTargets",value:function(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"})}},{key:"rptClarinsMissingSales",value:function(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+"®ION="+r,{responseType:"blob"})}},{key:"rptClarinsFlashReportByWeek",value:function(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"})}},{key:"rptClarinsFlashReportByGroup",value:function(t,e){return this.http.get(this.BaseURL+"rptClarinsFlashReportByGroup?Year="+t+"&STOGRPCODE="+e,{responseType:"blob"})}},{key:"rptClarinsDuplicateRecords",value:function(t,e){return this.http.get(this.BaseURL+"rptClarinsDuplicateRecords?Year="+t+"&MonthNum="+e,{responseType:"blob"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Zb(r.b),a.Zb("BASE_URL"))},e.\u0275prov=a.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},"U1R+":function(e,n,i){"use strict";i.r(n),i.d(n,"SkipspareportsModule",function(){return Lt});var a,r=i("iInd"),c=i("8Y7J"),l=function(){return["SkinSpaAccountSales"]},s=function(){return["BeautyBARAccountWeeklySales"]},p=function(){return["MobileTherapistWeeklySales"]},d=function(){return["TherapistWeeklySales"]},b=function(){return["SkinSpa-MonthlyReports"]},u=function(){return["SkinSpa-ClarinsYear"]},g=function(){return["SkinSpa-FiscalYear"]},h=function(){return["SkinSpa-HistoricReports"]},f=function(){return["SkinSpa-GeneratorReports"]},m=((a=function(){function e(){t(this,e)}return o(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(t){return new(t||a)},a.\u0275cmp=c.Gb({type:a,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&&(c.Sb(0,"div",0),c.Sb(1,"div",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"ul",4),c.Sb(5,"li",5),c.Sb(6,"a",6),c.Kc(7,"Live Report"),c.Nb(8,"span",7),c.Rb(),c.Sb(9,"ul",8),c.Sb(10,"li"),c.Sb(11,"a",9),c.Kc(12,"Skin Spa Account Sales"),c.Rb(),c.Rb(),c.Sb(13,"li"),c.Sb(14,"a",9),c.Kc(15,"BeautyBAR Account Weekly Sales"),c.Rb(),c.Rb(),c.Sb(16,"li"),c.Sb(17,"a",9),c.Kc(18,"Mobile Therapist Weekly Sales"),c.Rb(),c.Rb(),c.Sb(19,"li"),c.Sb(20,"a",9),c.Kc(21,"Therapist Weekly Sales"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(22,"li",10),c.Sb(23,"a",9),c.Kc(24,"Monthly/Periodic Reports"),c.Rb(),c.Rb(),c.Sb(25,"li",10),c.Sb(26,"a",6),c.Kc(27,"Group Business Reports"),c.Nb(28,"span",7),c.Rb(),c.Sb(29,"ul",11),c.Sb(30,"li"),c.Sb(31,"a",9),c.Kc(32,"Clarins Year"),c.Rb(),c.Rb(),c.Sb(33,"li"),c.Sb(34,"a",9),c.Kc(35,"Fiscal Year"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(36,"li",12),c.Sb(37,"a",9),c.Kc(38,"Historic Reports"),c.Rb(),c.Rb(),c.Sb(39,"li",13),c.Sb(40,"a",9),c.Kc(41,"Generator Reports"),c.Rb(),c.Rb(),c.Rb(),c.Sb(42,"div",14),c.Sb(43,"div",15),c.Nb(44,"router-outlet"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.yb(11),c.mc("routerLink",c.pc(9,l)),c.yb(3),c.mc("routerLink",c.pc(10,s)),c.yb(3),c.mc("routerLink",c.pc(11,p)),c.yb(3),c.mc("routerLink",c.pc(12,d)),c.yb(3),c.mc("routerLink",c.pc(13,b)),c.yb(8),c.mc("routerLink",c.pc(14,u)),c.yb(3),c.mc("routerLink",c.pc(15,g)),c.yb(3),c.mc("routerLink",c.pc(16,h)),c.yb(3),c.mc("routerLink",c.pc(17,f)))},directives:[r.g,r.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}']}),a),S=i("LRne"),R=i("Cfvw"),v=i("dufq"),y=i("s7LF"),x=i("T435"),O=i("+CKi"),C=i("bH2/"),A=i("SVse"),M=i("dbUT"),k=i("JqCM");function w(t,e){1&t&&c.Nb(0,"a",39),2&t&&c.mc("innerHTML",e.$implicit.Name,c.Ac)}function P(t,e){1&t&&c.Nb(0,"div",39),2&t&&c.mc("innerHTML",e.$implicit,c.Ac)}function E(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function F(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function N(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function _(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function G(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function T(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}var L,I=((L=function(){function e(o,n,i,a,r){t(this,e),this.fb=o,this.router=n,this.activatedRoute=i,this.skinSpaReportService=a,this.sharedService=r,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(S.a)([{Value:"All",Name:"All"},{Value:"YES",Name:"YES"},{Value:"NO",Name:"NO"}]),this.CreateSkinSpaAccountSalesForm()}return o(e,[{key:"CreateSkinSpaAccountSalesForm",value:function(){this.SkinSpaAccountSalesForm=this.fb.group({SkinSpaAccountSales:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""],IPAD:[""],CATEGORY:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(R.a)([this.activatedRoute.snapshot.data.Years]),this.IPADS=this.IPAD,this.AllAccount=this.sharedService.GetStore(v.e.SkinSpaAccountSales),this.GetArea(),this.GetCategories(),this.GetSTOGRPCODE(),this.GetRegion(),this.InitialValue()}},{key:"InitialValue",value:function(){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())}},{key:"ResetForm",value:function(){this.SkinSpaAccountSalesForm.reset(),this.InitialValue()}},{key:"GetRegion",value:function(){var t=this;this.sharedService.GetRegion(v.c.REGION_BB).subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.REGION.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load REGIONS.")})}},{key:"GetArea",value:function(){var t=this;this.sharedService.GetArea(v.a.AREA_CLARINS).subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.AREA.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load AREAS.")})}},{key:"GetCategories",value:function(){var t=this;this.sharedService.GetCategories().subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.Category.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load Categories.")})}},{key:"GetSTOGRPCODE",value:function(){var t=this;this.sharedService.GetSTOGRPCODE(v.d.STOGRPCODE_CLARINS).subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.STOGRPCODE.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load STOGRPCODE.")})}},{key:"selectEvent",value:function(t){}},{key:"onChangeSearch",value:function(t){}},{key:"searchCleared",value:function(){}},{key:"rptSkinSpaAccountSales",value:function(t,e,o,n,i,a,r){var c;this.skinSpaReportService.rptSkinSpaAccountSales(void 0===t.Value?0:t.Value,e,o,n,i,a,"All",r).subscribe(function(t){c=new Blob([t],{type:"application/pdf"})},function(t){console.log(t)},function(){var t=URL.createObjectURL(c);window.open(t,"_blank")})}},{key:"SkinSpaAccountSales",get:function(){return this.SkinSpaAccountSalesForm.get("SkinSpaAccountSales")}}]),e}()).\u0275fac=function(t){return new(t||L)(c.Mb(y.c),c.Mb(r.e),c.Mb(r.a),c.Mb(x.c),c.Mb(O.a))},L.\u0275cmp=c.Gb({type:L,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&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",11),c.Sb(15,"div",12),c.Sb(16,"label",13),c.Kc(17,"Store:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"ng-autocomplete",15,16),c.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),c.fc(21,"async"),c.Rb(),c.Ic(22,w,1,1,"ng-template",null,17,c.Jc),c.Ic(24,P,1,1,"ng-template",null,18,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(26,"div",19),c.Sb(27,"div",12),c.Sb(28,"label",20),c.Kc(29,"Year:"),c.Rb(),c.Sb(30,"div",21),c.Sb(31,"select",22),c.Ic(32,E,2,2,"option",23),c.fc(33,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(34,"div",19),c.Sb(35,"div",12),c.Sb(36,"label",24),c.Kc(37,"Area:"),c.Rb(),c.Sb(38,"div",21),c.Sb(39,"select",25),c.Ic(40,F,2,2,"option",23),c.fc(41,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(42,"div",19),c.Sb(43,"div",12),c.Sb(44,"label",26),c.Kc(45,"Store Group:"),c.Rb(),c.Sb(46,"div",21),c.Sb(47,"select",27),c.Ic(48,N,2,2,"option",23),c.fc(49,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(50,"div",19),c.Sb(51,"div",12),c.Sb(52,"label",28),c.Kc(53,"Region:"),c.Rb(),c.Sb(54,"div",21),c.Sb(55,"select",29),c.Ic(56,_,2,2,"option",23),c.fc(57,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(58,"div",19),c.Sb(59,"div",12),c.Sb(60,"label",30),c.Kc(61,"IPAD:"),c.Rb(),c.Sb(62,"div",21),c.Sb(63,"select",31),c.Ic(64,G,2,2,"option",23),c.fc(65,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(66,"div",19),c.Sb(67,"div",12),c.Sb(68,"label",32),c.Kc(69,"Category:"),c.Rb(),c.Sb(70,"div",21),c.Sb(71,"select",33),c.Ic(72,T,2,2,"option",23),c.fc(73,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(74,"div",3),c.Sb(75,"div",34),c.Sb(76,"button",35),c.cc("click",function(){return 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)}),c.Kc(77," Submit"),c.Rb(),c.Sb(78,"button",36),c.cc("click",function(){return e.ResetForm()}),c.Kc(79," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(80,"ngx-spinner",37),c.Sb(81,"p",38),c.Kc(82," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&t){var o=c.wc(23),n=c.wc(25);c.yb(1),c.mc("formGroup",e.SkinSpaAccountSalesForm),c.yb(18),c.mc("data",c.gc(21,15,e.AllAccount))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",o)("notFoundTemplate",n)("debounceTime",10),c.yb(13),c.mc("ngForOf",c.gc(33,17,e.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(41,19,e.AREAS)),c.yb(8),c.mc("ngForOf",c.gc(49,21,e.STOGRPCODES)),c.yb(8),c.mc("ngForOf",c.gc(57,23,e.REGIONS)),c.yb(8),c.mc("ngForOf",c.gc(65,25,e.IPADS)),c.yb(8),c.mc("ngForOf",c.gc(73,27,e.Categories)),c.yb(8),c.mc("fullScreen",!1)}},directives:[y.t,y.m,y.g,y.h,C.a,y.l,y.e,y.q,A.m,M.b,M.c,k.a,y.o,y.s],pipes:[A.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}"]}),L);function B(t,e){1&t&&c.Nb(0,"a",39),2&t&&c.mc("innerHTML",e.$implicit.Name,c.Ac)}function Y(t,e){1&t&&c.Nb(0,"div",39),2&t&&c.mc("innerHTML",e.$implicit,c.Ac)}function D(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function W(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function U(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function V(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function z(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function K(t,e){if(1&t&&(c.Sb(0,"option",40),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}var H,j=((H=function(){function e(o,n,i,a,r){t(this,e),this.fb=o,this.router=n,this.activatedRoute=i,this.skinSpaReportService=a,this.sharedService=r,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(S.a)([{Value:"All",Name:"All"},{Value:"YES",Name:"YES"},{Value:"NO",Name:"NO"}]),this.CreateBeautyBARAccountweeklysalesForm()}return o(e,[{key:"CreateBeautyBARAccountweeklysalesForm",value:function(){this.BeautyBARAccountweeklysalesForm=this.fb.group({BeautyBARAccountweeklysales:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""],IPAD:[""],CATEGORY:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(R.a)([this.activatedRoute.snapshot.data.Years]),this.IPADS=this.IPAD,this.AllAccount=this.sharedService.GetStore(v.e.BeautyBARAccountWeeklySales),this.GetArea(),this.GetCategories(),this.GetSTOGRPCODE(),this.GetRegion(),this.InitialValue()}},{key:"InitialValue",value:function(){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())}},{key:"ResetForm",value:function(){this.BeautyBARAccountweeklysalesForm.reset(),this.InitialValue()}},{key:"GetRegion",value:function(){var t=this;this.sharedService.GetRegion(v.c.REGION_BB).subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.REGION.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load REGIONS.")})}},{key:"GetArea",value:function(){var t=this;this.sharedService.GetArea(v.a.AREA_CLARINS).subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.AREA.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load AREAS.")})}},{key:"GetCategories",value:function(){var t=this;this.sharedService.GetCategories().subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.Category.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load Categories.")})}},{key:"GetSTOGRPCODE",value:function(){var t=this;this.sharedService.GetSTOGRPCODE(v.d.STOGRPCODE_CLARINS).subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.STOGRPCODE.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load STOGRPCODE.")})}},{key:"selectEvent",value:function(t){}},{key:"onChangeSearch",value:function(t){}},{key:"searchCleared",value:function(){}},{key:"rptBeautyBARAccountWeeklySales",value:function(t,e,o,n,i,a,r){var c;this.skinSpaReportService.rptBeautyBARAccountWeeklySales(void 0===t.Value?0:t.Value,e,o,n,i,a,"All",r).subscribe(function(t){c=new Blob([t],{type:"application/pdf"})},function(t){console.log(t)},function(){var t=URL.createObjectURL(c);window.open(t,"_blank")})}},{key:"BeautyBARAccountweeklysales",get:function(){return this.BeautyBARAccountweeklysalesForm.get("BeautyBARAccountweeklysales")}}]),e}()).\u0275fac=function(t){return new(t||H)(c.Mb(y.c),c.Mb(r.e),c.Mb(r.a),c.Mb(x.c),c.Mb(O.a))},H.\u0275cmp=c.Gb({type:H,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&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",11),c.Sb(15,"div",12),c.Sb(16,"label",13),c.Kc(17,"Store:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"ng-autocomplete",15,16),c.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),c.fc(21,"async"),c.Rb(),c.Ic(22,B,1,1,"ng-template",null,17,c.Jc),c.Ic(24,Y,1,1,"ng-template",null,18,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(26,"div",19),c.Sb(27,"div",12),c.Sb(28,"label",20),c.Kc(29,"Year:"),c.Rb(),c.Sb(30,"div",21),c.Sb(31,"select",22),c.Ic(32,D,2,2,"option",23),c.fc(33,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(34,"div",19),c.Sb(35,"div",12),c.Sb(36,"label",24),c.Kc(37,"Area:"),c.Rb(),c.Sb(38,"div",21),c.Sb(39,"select",25),c.Ic(40,W,2,2,"option",23),c.fc(41,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(42,"div",19),c.Sb(43,"div",12),c.Sb(44,"label",26),c.Kc(45,"Store Group:"),c.Rb(),c.Sb(46,"div",21),c.Sb(47,"select",27),c.Ic(48,U,2,2,"option",23),c.fc(49,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(50,"div",19),c.Sb(51,"div",12),c.Sb(52,"label",28),c.Kc(53,"Region:"),c.Rb(),c.Sb(54,"div",21),c.Sb(55,"select",29),c.Ic(56,V,2,2,"option",23),c.fc(57,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(58,"div",19),c.Sb(59,"div",12),c.Sb(60,"label",30),c.Kc(61,"IPAD:"),c.Rb(),c.Sb(62,"div",21),c.Sb(63,"select",31),c.Ic(64,z,2,2,"option",23),c.fc(65,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(66,"div",19),c.Sb(67,"div",12),c.Sb(68,"label",32),c.Kc(69,"Category:"),c.Rb(),c.Sb(70,"div",21),c.Sb(71,"select",33),c.Ic(72,K,2,2,"option",23),c.fc(73,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(74,"div",3),c.Sb(75,"div",34),c.Sb(76,"button",35),c.cc("click",function(){return 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)}),c.Kc(77," Submit"),c.Rb(),c.Sb(78,"button",36),c.cc("click",function(){return e.ResetForm()}),c.Kc(79," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(80,"ngx-spinner",37),c.Sb(81,"p",38),c.Kc(82," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&t){var o=c.wc(23),n=c.wc(25);c.yb(1),c.mc("formGroup",e.BeautyBARAccountweeklysalesForm),c.yb(18),c.mc("data",c.gc(21,15,e.AllAccount))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",o)("notFoundTemplate",n)("debounceTime",10),c.yb(13),c.mc("ngForOf",c.gc(33,17,e.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(41,19,e.AREAS)),c.yb(8),c.mc("ngForOf",c.gc(49,21,e.STOGRPCODES)),c.yb(8),c.mc("ngForOf",c.gc(57,23,e.REGIONS)),c.yb(8),c.mc("ngForOf",c.gc(65,25,e.IPADS)),c.yb(8),c.mc("ngForOf",c.gc(73,27,e.Categories)),c.yb(8),c.mc("fullScreen",!1)}},directives:[y.t,y.m,y.g,y.h,C.a,y.l,y.e,y.q,A.m,M.b,M.c,k.a,y.o,y.s],pipes:[A.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}"]}),H);function $(t,e){if(1&t&&(c.Sb(0,"option",33),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function q(t,e){if(1&t&&(c.Sb(0,"option",33),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function J(t,e){if(1&t&&(c.Sb(0,"option",33),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function Q(t,e){1&t&&c.Nb(0,"a",34),2&t&&c.mc("innerHTML",e.$implicit.Name,c.Ac)}function Z(t,e){1&t&&c.Nb(0,"div",34),2&t&&c.mc("innerHTML",e.$implicit,c.Ac)}var X,tt=((X=function(){function e(o,n,i,a,r){t(this,e),this.fb=o,this.router=n,this.activatedRoute=i,this.skinSpaReportService=a,this.sharedService=r,this.placeholder="Enter Search String",this.keyword="Name",this.YEARS=this.sharedService.YEAR.asObservable(),this.REGIONS=this.sharedService.REGION.asObservable(),this.REPORTTYPE=Object(S.a)([{Value:"All",Name:"All"},{Value:"MOBILE",Name:"MOBILE"},{Value:"NONMOBILE",Name:"NONMOBILE"}]),this.CreateMobileTherapistWeeklySalesForm()}return o(e,[{key:"CreateMobileTherapistWeeklySalesForm",value:function(){this.MobileTherapistWeeklySalesForm=this.fb.group({MobileTherapistWeeklySales:this.fb.group({REPORTTYPE:[""],YEAR:[""],REGION:[""],EMPNO:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(R.a)([this.activatedRoute.snapshot.data.Years]),this.REPORTTYPES=this.REPORTTYPE,this.EMPLOYEES=this.sharedService.GetEmpno(v.b.MobileTherapistWeeklySales),this.GetRegion(),this.InitialValue()}},{key:"InitialValue",value:function(){this.MobileTherapistWeeklySales.get("REPORTTYPE").setValue("All"),this.MobileTherapistWeeklySales.get("REGION").setValue("All"),this.MobileTherapistWeeklySales.get("YEAR").setValue((new Date).getFullYear())}},{key:"ResetForm",value:function(){this.MobileTherapistWeeklySalesForm.reset(),this.InitialValue()}},{key:"GetRegion",value:function(){var t=this;this.sharedService.GetRegion(v.c.REGION_BB).subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.REGION.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load REGIONS.")})}},{key:"selectEvent",value:function(t){}},{key:"onChangeSearch",value:function(t){}},{key:"searchCleared",value:function(){}},{key:"rptMobileTherapistWeeklySales",value:function(t,e,o,n){var i;this.skinSpaReportService.rptMobileTherapistWeeklySales(t,e,o,void 0===n.Value?0:n.Value).subscribe(function(t){i=new Blob([t],{type:"application/pdf"})},function(t){console.log(t)},function(){var t=URL.createObjectURL(i);window.open(t,"_blank")})}},{key:"MobileTherapistWeeklySales",get:function(){return this.MobileTherapistWeeklySalesForm.get("MobileTherapistWeeklySales")}}]),e}()).\u0275fac=function(t){return new(t||X)(c.Mb(y.c),c.Mb(r.e),c.Mb(r.a),c.Mb(x.c),c.Mb(O.a))},X.\u0275cmp=c.Gb({type:X,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&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",11),c.Sb(15,"div",12),c.Sb(16,"label",13),c.Kc(17,"REPORT TYPE:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"select",15),c.Ic(20,$,2,2,"option",16),c.fc(21,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(22,"div",17),c.Sb(23,"div",12),c.Sb(24,"label",18),c.Kc(25,"Year:"),c.Rb(),c.Sb(26,"div",14),c.Sb(27,"select",19),c.Ic(28,q,2,2,"option",16),c.fc(29,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(30,"div",17),c.Sb(31,"div",12),c.Sb(32,"label",20),c.Kc(33,"REGION:"),c.Rb(),c.Sb(34,"div",14),c.Sb(35,"select",21),c.Ic(36,J,2,2,"option",16),c.fc(37,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(38,"div",17),c.Sb(39,"div",12),c.Sb(40,"label",22),c.Kc(41,"EMPNO:"),c.Rb(),c.Sb(42,"div",23),c.Sb(43,"ng-autocomplete",24,25),c.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),c.fc(45,"async"),c.Rb(),c.Ic(46,Q,1,1,"ng-template",null,26,c.Jc),c.Ic(48,Z,1,1,"ng-template",null,27,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(50,"div",3),c.Sb(51,"div",28),c.Sb(52,"button",29),c.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)}),c.Kc(53," Submit"),c.Rb(),c.Sb(54,"button",30),c.cc("click",function(){return e.ResetForm()}),c.Kc(55," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(56,"ngx-spinner",31),c.Sb(57,"p",32),c.Kc(58," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&t){var o=c.wc(47),n=c.wc(49);c.yb(1),c.mc("formGroup",e.MobileTherapistWeeklySalesForm),c.yb(19),c.mc("ngForOf",c.gc(21,12,e.REPORTTYPES)),c.yb(8),c.mc("ngForOf",c.gc(29,14,e.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(37,16,e.REGIONS)),c.yb(7),c.mc("data",c.gc(45,18,e.EMPLOYEES))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",o)("notFoundTemplate",n)("debounceTime",10),c.yb(13),c.mc("fullScreen",!1)}},directives:[y.t,y.m,y.g,y.h,y.q,y.l,y.e,A.m,C.a,M.b,M.c,k.a,y.o,y.s],pipes:[A.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}"]}),X);function et(t,e){if(1&t&&(c.Sb(0,"option",38),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function ot(t,e){1&t&&c.Nb(0,"a",39),2&t&&c.mc("innerHTML",e.$implicit.Name,c.Ac)}function nt(t,e){1&t&&c.Nb(0,"div",39),2&t&&c.mc("innerHTML",e.$implicit,c.Ac)}function it(t,e){if(1&t&&(c.Sb(0,"option",38),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function at(t,e){if(1&t&&(c.Sb(0,"option",38),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function rt(t,e){1&t&&c.Nb(0,"a",39),2&t&&c.mc("innerHTML",e.$implicit.Name,c.Ac)}function ct(t,e){1&t&&c.Nb(0,"div",39),2&t&&c.mc("innerHTML",e.$implicit,c.Ac)}var lt,st=((lt=function(){function e(o,n,i,a,r){t(this,e),this.fb=o,this.router=n,this.activatedRoute=i,this.skinSpaReportService=a,this.sharedService=r,this.placeholder="Enter Search String",this.keyword="Name",this.YEARS=this.sharedService.YEAR.asObservable(),this.AREAS=this.sharedService.AREA.asObservable(),this.REPORTTYPE=Object(S.a)([{Value:"All",Name:"All"},{Value:"MOBILE",Name:"MOBILE"},{Value:"NONMOBILE",Name:"NONMOBILE"}]),this.CreateTherapistweeklysalesForm()}return o(e,[{key:"CreateTherapistweeklysalesForm",value:function(){this.TherapistweeklysalesForm=this.fb.group({Therapistweeklysales:this.fb.group({REPORTTYPE:[""],ACC:[""],YEAR:[""],REGION:[""],AREA:[""],EMPNO:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(R.a)([this.activatedRoute.snapshot.data.Years]),this.REPORTTYPES=this.REPORTTYPE,this.AllAccount=this.sharedService.GetStore(v.e.SkinSpaAccountSales),this.EMPLOYEES=this.sharedService.GetEmpno(v.b.TherapistWeeklySales),this.GetArea(),this.InitialValue()}},{key:"InitialValue",value:function(){this.Therapistweeklysales.get("REPORTTYPE").setValue("All"),this.Therapistweeklysales.get("AREA").setValue("All"),this.Therapistweeklysales.get("YEAR").setValue((new Date).getFullYear())}},{key:"ResetForm",value:function(){this.TherapistweeklysalesForm.reset(),this.InitialValue()}},{key:"GetArea",value:function(){var t=this;this.sharedService.GetArea(v.a.AREA_CLARINS).subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.AREA.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load AREAS.")})}},{key:"selectEvent",value:function(t){}},{key:"onChangeSearch",value:function(t){}},{key:"searchCleared",value:function(){}},{key:"rptTherapistWeeklySales",value:function(t,e,o,n,i){var a;this.skinSpaReportService.rptTherapistWeeklySales(void 0===t.Value?0:t.Value,e,o,0,void 0===n.Value?0:n.Value,i).subscribe(function(t){a=new Blob([t],{type:"application/pdf"})},function(t){console.log(t)},function(){var t=URL.createObjectURL(a);window.open(t,"_blank")})}},{key:"Therapistweeklysales",get:function(){return this.TherapistweeklysalesForm.get("Therapistweeklysales")}}]),e}()).\u0275fac=function(t){return new(t||lt)(c.Mb(y.c),c.Mb(r.e),c.Mb(r.a),c.Mb(x.c),c.Mb(O.a))},lt.\u0275cmp=c.Gb({type:lt,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&&(c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",3),c.Sb(10,"h4",9),c.Kc(11,"Report Parameters"),c.Rb(),c.Sb(12,"h4",10),c.Kc(13,"Enter values for the Parameters"),c.Rb(),c.Rb(),c.Sb(14,"div",11),c.Sb(15,"div",12),c.Sb(16,"label",13),c.Kc(17,"REPORT TYPE:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"select",15),c.Ic(20,et,2,2,"option",16),c.fc(21,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(22,"div",17),c.Sb(23,"div",12),c.Sb(24,"label",18),c.Kc(25,"Store:"),c.Rb(),c.Sb(26,"div",19),c.Sb(27,"ng-autocomplete",20,21),c.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),c.fc(29,"async"),c.Rb(),c.Ic(30,ot,1,1,"ng-template",null,22,c.Jc),c.Ic(32,nt,1,1,"ng-template",null,23,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(34,"div",17),c.Sb(35,"div",24),c.Sb(36,"label",25),c.Kc(37,"Year:"),c.Rb(),c.Sb(38,"div",14),c.Sb(39,"select",26),c.Ic(40,it,2,2,"option",16),c.fc(41,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(42,"div",17),c.Sb(43,"div",24),c.Sb(44,"label",27),c.Kc(45,"Area:"),c.Rb(),c.Sb(46,"div",14),c.Sb(47,"select",28),c.Ic(48,at,2,2,"option",16),c.fc(49,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(50,"div",17),c.Sb(51,"div",24),c.Sb(52,"label",29),c.Kc(53,"EMPNO:"),c.Rb(),c.Sb(54,"div",19),c.Sb(55,"ng-autocomplete",30,21),c.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),c.fc(57,"async"),c.Rb(),c.Ic(58,rt,1,1,"ng-template",null,31,c.Jc),c.Ic(60,ct,1,1,"ng-template",null,32,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(62,"div",3),c.Sb(63,"div",33),c.Sb(64,"button",34),c.cc("click",function(){return 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)}),c.Kc(65," Submit"),c.Rb(),c.Sb(66,"button",35),c.cc("click",function(){return e.ResetForm()}),c.Kc(67," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(68,"ngx-spinner",36),c.Sb(69,"p",37),c.Kc(70," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&t){var o=c.wc(31),n=c.wc(33),i=c.wc(59),a=c.wc(61);c.yb(1),c.mc("formGroup",e.TherapistweeklysalesForm),c.yb(19),c.mc("ngForOf",c.gc(21,19,e.REPORTTYPES)),c.yb(7),c.mc("data",c.gc(29,21,e.AllAccount))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",o)("notFoundTemplate",n)("debounceTime",10),c.yb(13),c.mc("ngForOf",c.gc(41,23,e.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(49,25,e.AREAS)),c.yb(7),c.mc("data",c.gc(57,27,e.EMPLOYEES))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",i)("notFoundTemplate",a)("debounceTime",10),c.yb(13),c.mc("fullScreen",!1)}},directives:[y.t,y.m,y.g,y.h,y.q,y.l,y.e,A.m,C.a,M.b,M.c,k.a,y.o,y.s],pipes:[A.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}"]}),lt),pt=i("Iab2"),dt=i("IheW"),bt=i("EApP"),ut=i("qvAe"),gt=i("u47x");function ht(t,e){if(1&t){var o=c.Tb();c.Sb(0,"tr",24),c.Sb(1,"td",25),c.Nb(2,"input",26),c.Rb(),c.Sb(3,"td",27),c.Sb(4,"button",28),c.cc("click",function(){c.zc(o);var t=e.index,n=c.ec();return n.Download(t,n.MStaticReportsList.controls[t].get("FILENAME").value)}),c.Nb(5,"i",29),c.Rb(),c.Rb(),c.Sb(6,"td",27),c.Sb(7,"button",30),c.cc("click",function(){c.zc(o);var t=e.index,n=c.ec();return n.Delete(t,n.MStaticReportsList.controls[t].get("FILENAME").value)}),c.Nb(8,"i",31),c.Rb(),c.Rb(),c.Rb()}2&t&&c.mc("formGroupName",e.index)}var ft,mt=((ft=function(){function e(o,n,i,a,r,l){var s=this;t(this,e),this.fb=o,this.toastr=n,this.staticReportsService=i,this.interactivityChecker=a,this.router=r,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(t,e){0!==t.length&&s.staticReportsService.UploadFile(t,e,"SkinSpaStaticReports","MonthlyReports").subscribe(function(t){t.type===dt.d.UploadProgress?s.progress=Math.round(100*t.loaded/t.total):t.type===dt.d.Response&&(s.message="Upload success.",s.onUploadFinished.emit(t.body)),s.GetAllFiles(),s.MStaticRports.reset()})},this.CreateMonthlyReportsForm()}return o(e,[{key:"CreateMonthlyReportsForm",value:function(){for(var t=[],e=0;e<14;e++)t.push(this.StaticReports());this.MonthlyReportsForm=this.fb.group({MStaticRports:this.fb.group({FILENAME:[""]}),MStaticReportsList:this.fb.array(t)})}},{key:"StaticReports",value:function(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}},{key:"ngOnInit",value:function(){this.GetAllFiles()}},{key:"GetAllFiles",value:function(){var t=this;this.staticReportsService.StaticReportDetails("SkinSpa","MonthlyPeriodic").subscribe(function(e){if(t.FileName=e,console.log(e),t.FileName.length>0)for(var o=t.MonthlyReportsForm.controls.MStaticReportsList,n=0;n<t.FileName.length;n++)o.at(+n).get("DOWNLOADFILE").setValue(t.FileName[n].FileNameWithOutExtension),o.at(+n).get("FILENAME").setValue(t.FileName[n].FileName),n>=13&&n<t.FileName.length-1&&t.MStaticReportsList.push(t.StaticReports())})}},{key:"Delete",value:function(t,e){for(var o=this,n=this.MonthlyReportsForm.controls.MStaticReportsList,i=0;i<n.length;i++)if(t==i){e&&this.staticReportsService.Delete("SkinSpa","MonthlyPeriodic",e).subscribe(function(e){null==e&&(o.MStaticReportsList.removeAt(t),o.toastr.warning("Deleted Successfully","SkinSpa"))},function(t){console.log(t)});break}}},{key:"Download",value:function(t,e){for(var o=this.MonthlyReportsForm.controls.MStaticReportsList,n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("SkinSpa","MonthlyPeriodic",e).subscribe(function(t){var o=new Blob([t],{type:"application/pdf"}),n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):pt.saveAs(o,e)});break}}},{key:"keyevent",value:function(t){t.preventDefault();var e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(var n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){var i=o[o.indexOf(document.activeElement)+1];i&&(i.focus(),i.select())}else if(38===t.keyCode){var a=o[o.indexOf(document.activeElement)-1];a&&(a.focus(),a.select())}}},{key:"MStaticRports",get:function(){return this.MonthlyReportsForm.get("MStaticRports")}},{key:"MStaticReportsList",get:function(){return this.MonthlyReportsForm.get("MStaticReportsList")}}]),e}()).\u0275fac=function(t){return new(t||ft)(c.Mb(y.c),c.Mb(bt.b),c.Mb(ut.a),c.Mb(gt.d),c.Mb(r.e),c.Mb(c.B))},ft.\u0275cmp=c.Gb({type:ft,selectors:[["app-monthlyreports"]],hostBindings:function(t,e){1&t&&c.cc("keyup",function(t){return e.keyevent(t)},!1,c.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){var o=c.Tb();c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",9),c.Sb(10,"div",10),c.Sb(11,"div",11),c.Nb(12,"input",12),c.Rb(),c.Sb(13,"div",13),c.Sb(14,"button",14),c.Nb(15,"i",15),c.Sb(16,"input",16,17),c.cc("change",function(){c.zc(o);var t=c.wc(17);return e.UploadFile(t.files,e.MStaticRports.get("FILENAME").value)}),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(18,"div",18),c.Sb(19,"div",19),c.Sb(20,"div",20),c.Sb(21,"div",21),c.Sb(22,"table",22),c.Sb(23,"tbody"),c.Ic(24,ht,9,1,"tr",23),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}2&t&&(c.yb(1),c.mc("formGroup",e.MonthlyReportsForm),c.yb(13),c.mc("disabled",""===e.MStaticRports.get("FILENAME").value||null===e.MStaticRports.get("FILENAME").value),c.yb(10),c.mc("ngForOf",e.MStaticReportsList.controls))},directives:[y.t,y.m,y.g,y.h,y.a,y.l,y.e,y.b,A.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)}']}),ft);function St(t,e){if(1&t){var o=c.Tb();c.Sb(0,"tr",24),c.Sb(1,"td",25),c.Nb(2,"input",26),c.Rb(),c.Sb(3,"td",27),c.Sb(4,"button",28),c.cc("click",function(){c.zc(o);var t=e.index,n=c.ec();return n.Download(t,n.HStaticReportsList.controls[t].get("FILENAME").value)}),c.Nb(5,"i",29),c.Rb(),c.Rb(),c.Sb(6,"td",27),c.Sb(7,"button",30),c.cc("click",function(){c.zc(o);var t=e.index,n=c.ec();return n.Delete(t,n.HStaticReportsList.controls[t].get("FILENAME").value)}),c.Nb(8,"i",31),c.Rb(),c.Rb(),c.Rb()}2&t&&c.mc("formGroupName",e.index)}var Rt,vt=((Rt=function(){function e(o,n,i,a,r,l){var s=this;t(this,e),this.fb=o,this.staticReportsService=n,this.interactivityChecker=i,this.router=a,this.toastr=r,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(t,e){0!==t.length&&s.staticReportsService.UploadFile(t,e,"SkinSpaStaticReports","HistoricReports").subscribe(function(t){t.type===dt.d.UploadProgress?s.progress=Math.round(100*t.loaded/t.total):t.type===dt.d.Response&&(s.message="Upload success.",s.onUploadFinished.emit(t.body)),s.GetAllFiles(),s.HStaticRports.reset()})},this.CreateHistoricReportsForm()}return o(e,[{key:"CreateHistoricReportsForm",value:function(){for(var t=[],e=0;e<14;e++)t.push(this.StaticReports());this.HistoricReportsForm=this.fb.group({HStaticRports:this.fb.group({FILENAME:[""]}),HStaticReportsList:this.fb.array(t)})}},{key:"StaticReports",value:function(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}},{key:"ngOnInit",value:function(){this.GetAllFiles()}},{key:"GetAllFiles",value:function(){var t=this;this.staticReportsService.StaticReportDetails("SkinSpa","Historic").subscribe(function(e){if(t.FileName=e,console.log(e),t.FileName.length>0)for(var o=t.HistoricReportsForm.controls.HStaticReportsList,n=0;n<t.FileName.length;n++)o.at(+n).get("DOWNLOADFILE").setValue(t.FileName[n].FileNameWithOutExtension),o.at(+n).get("FILENAME").setValue(t.FileName[n].FileName),n>=13&&n<t.FileName.length-1&&t.HStaticReportsList.push(t.StaticReports())})}},{key:"Delete",value:function(t,e){for(var o=this,n=this.HistoricReportsForm.controls.HStaticReportsList,i=0;i<n.length;i++)if(t==i){e&&this.staticReportsService.Delete("SkinSpa","Historic",e).subscribe(function(e){null==e&&(o.HStaticReportsList.removeAt(t),o.toastr.warning("Deleted Successfully","SkinSpa"))},function(t){console.log(t)});break}}},{key:"Download",value:function(t,e){for(var o=this.HistoricReportsForm.controls.HStaticReportsList,n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("SkinSpa","Historic",e).subscribe(function(t){var o=new Blob([t],{type:"application/pdf"}),n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):pt.saveAs(o,e)});break}}},{key:"keyevent",value:function(t){t.preventDefault();var e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(var n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){var i=o[o.indexOf(document.activeElement)+1];i&&(i.focus(),i.select())}else if(38===t.keyCode){var a=o[o.indexOf(document.activeElement)-1];a&&(a.focus(),a.select())}}},{key:"HStaticRports",get:function(){return this.HistoricReportsForm.get("HStaticRports")}},{key:"HStaticReportsList",get:function(){return this.HistoricReportsForm.get("HStaticReportsList")}}]),e}()).\u0275fac=function(t){return new(t||Rt)(c.Mb(y.c),c.Mb(ut.a),c.Mb(gt.d),c.Mb(r.e),c.Mb(bt.b),c.Mb(c.B))},Rt.\u0275cmp=c.Gb({type:Rt,selectors:[["app-historicreports"]],hostBindings:function(t,e){1&t&&c.cc("keyup",function(t){return e.keyevent(t)},!1,c.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){var o=c.Tb();c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",9),c.Sb(10,"div",10),c.Sb(11,"div",11),c.Nb(12,"input",12),c.Rb(),c.Sb(13,"div",13),c.Sb(14,"button",14),c.Nb(15,"i",15),c.Sb(16,"input",16,17),c.cc("change",function(){c.zc(o);var t=c.wc(17);return e.UploadFile(t.files,e.HStaticRports.get("FILENAME").value)}),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(18,"div",18),c.Sb(19,"div",19),c.Sb(20,"div",20),c.Sb(21,"div",21),c.Sb(22,"table",22),c.Sb(23,"tbody"),c.Ic(24,St,9,1,"tr",23),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}2&t&&(c.yb(1),c.mc("formGroup",e.HistoricReportsForm),c.yb(13),c.mc("disabled",""===e.HStaticRports.get("FILENAME").value||null===e.HStaticRports.get("FILENAME").value),c.yb(10),c.mc("ngForOf",e.HStaticReportsList.controls))},directives:[y.t,y.m,y.g,y.h,y.a,y.l,y.e,y.b,A.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)}']}),Rt);function yt(t,e){if(1&t){var o=c.Tb();c.Sb(0,"tr",24),c.Sb(1,"td",25),c.Nb(2,"input",26),c.Rb(),c.Sb(3,"td",27),c.Sb(4,"button",28),c.cc("click",function(){c.zc(o);var t=e.index,n=c.ec();return n.Download(t,n.GStaticReportsList.controls[t].get("FILENAME").value)}),c.Nb(5,"i",29),c.Rb(),c.Rb(),c.Sb(6,"td",27),c.Sb(7,"button",30),c.cc("click",function(){c.zc(o);var t=e.index,n=c.ec();return n.Delete(t,n.GStaticReportsList.controls[t].get("FILENAME").value)}),c.Nb(8,"i",31),c.Rb(),c.Rb(),c.Rb()}2&t&&c.mc("formGroupName",e.index)}var xt,Ot=((xt=function(){function e(o,n,i,a,r,l){var s=this;t(this,e),this.fb=o,this.router=n,this.toastr=i,this.staticReportsService=a,this.interactivityChecker=r,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(t,e){0!==t.length&&s.staticReportsService.UploadFile(t,e,"SkinSpaStaticReports","GeneratorReports").subscribe(function(t){t.type===dt.d.UploadProgress?s.progress=Math.round(100*t.loaded/t.total):t.type===dt.d.Response&&(s.message="Upload success.",s.onUploadFinished.emit(t.body)),s.GetAllFiles(),s.GStaticRports.reset()})},this.CreateGeneratorReportsForm()}return o(e,[{key:"CreateGeneratorReportsForm",value:function(){for(var t=[],e=0;e<14;e++)t.push(this.StaticReports());this.GeneratorReportsForm=this.fb.group({GStaticRports:this.fb.group({FILENAME:[""]}),GStaticReportsList:this.fb.array(t)})}},{key:"StaticReports",value:function(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}},{key:"ngOnInit",value:function(){this.GetAllFiles()}},{key:"GetAllFiles",value:function(){var t=this;this.staticReportsService.StaticReportDetails("SkinSpa","Generator").subscribe(function(e){if(t.FileName=e,console.log(e),t.FileName.length>0)for(var o=t.GeneratorReportsForm.controls.GStaticReportsList,n=0;n<t.FileName.length;n++)o.at(+n).get("DOWNLOADFILE").setValue(t.FileName[n].FileNameWithOutExtension),o.at(+n).get("FILENAME").setValue(t.FileName[n].FileName),n>=13&&n<t.FileName.length-1&&t.GStaticReportsList.push(t.StaticReports())})}},{key:"Delete",value:function(t,e){for(var o=this,n=this.GeneratorReportsForm.controls.GStaticReportsList,i=0;i<n.length;i++)if(t==i){e&&this.staticReportsService.Delete("SkinSpa","Generator",e).subscribe(function(e){null==e&&(o.GStaticReportsList.removeAt(t),o.toastr.warning("Deleted Successfully","SkinSpa"))},function(t){console.log(t)});break}}},{key:"Download",value:function(t,e){for(var o=this.GeneratorReportsForm.controls.GStaticReportsList,n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("SkinSpa","Generator",e).subscribe(function(t){var o=new Blob([t],{type:"application/pdf"}),n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):pt.saveAs(o,e)});break}}},{key:"keyevent",value:function(t){t.preventDefault();var e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(var n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){var i=o[o.indexOf(document.activeElement)+1];i&&(i.focus(),i.select())}else if(38===t.keyCode){var a=o[o.indexOf(document.activeElement)-1];a&&(a.focus(),a.select())}}},{key:"GStaticRports",get:function(){return this.GeneratorReportsForm.get("GStaticRports")}},{key:"GStaticReportsList",get:function(){return this.GeneratorReportsForm.get("GStaticReportsList")}}]),e}()).\u0275fac=function(t){return new(t||xt)(c.Mb(y.c),c.Mb(r.e),c.Mb(bt.b),c.Mb(ut.a),c.Mb(gt.d),c.Mb(c.B))},xt.\u0275cmp=c.Gb({type:xt,selectors:[["app-generatorreports"]],hostBindings:function(t,e){1&t&&c.cc("keyup",function(t){return e.keyevent(t)},!1,c.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){var o=c.Tb();c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",9),c.Sb(10,"div",10),c.Sb(11,"div",11),c.Nb(12,"input",12),c.Rb(),c.Sb(13,"div",13),c.Sb(14,"button",14),c.Nb(15,"i",15),c.Sb(16,"input",16,17),c.cc("change",function(){c.zc(o);var t=c.wc(17);return e.UploadFile(t.files,e.GStaticRports.get("FILENAME").value)}),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(18,"div",18),c.Sb(19,"div",19),c.Sb(20,"div",20),c.Sb(21,"div",21),c.Sb(22,"table",22),c.Sb(23,"tbody"),c.Ic(24,yt,9,1,"tr",23),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}2&t&&(c.yb(1),c.mc("formGroup",e.GeneratorReportsForm),c.yb(13),c.mc("disabled",""===e.GStaticRports.get("FILENAME").value||null===e.GStaticRports.get("FILENAME").value),c.yb(10),c.mc("ngForOf",e.GStaticReportsList.controls))},directives:[y.t,y.m,y.g,y.h,y.a,y.l,y.e,y.b,A.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)}']}),xt);function Ct(t,e){if(1&t){var o=c.Tb();c.Sb(0,"tr",24),c.Sb(1,"td",25),c.Nb(2,"input",26),c.Rb(),c.Sb(3,"td",27),c.Sb(4,"button",28),c.cc("click",function(){c.zc(o);var t=e.index,n=c.ec();return n.Download(t,n.CYStaticReportsList.controls[t].get("FILENAME").value)}),c.Nb(5,"i",29),c.Rb(),c.Rb(),c.Sb(6,"td",27),c.Sb(7,"button",30),c.cc("click",function(){c.zc(o);var t=e.index,n=c.ec();return n.Delete(t,n.CYStaticReportsList.controls[t].get("FILENAME").value)}),c.Nb(8,"i",31),c.Rb(),c.Rb(),c.Rb()}2&t&&c.mc("formGroupName",e.index)}var At,Mt=((At=function(){function e(o,n,i,a,r,l){var s=this;t(this,e),this.fb=o,this.toastr=n,this.staticReportsService=i,this.interactivityChecker=a,this.router=r,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(t,e){0!==t.length&&s.staticReportsService.UploadFile(t,e,"SkinSpaStaticReports","GroupStrategyReports_CY").subscribe(function(t){t.type===dt.d.UploadProgress?s.progress=Math.round(100*t.loaded/t.total):t.type===dt.d.Response&&(s.message="Upload success.",s.onUploadFinished.emit(t.body)),s.GetAllFiles(),s.CYStaticRports.reset()})},this.CreateClarinsYearReportsForm()}return o(e,[{key:"CreateClarinsYearReportsForm",value:function(){for(var t=[],e=0;e<14;e++)t.push(this.StaticReports());this.ClarinsYearReportsForm=this.fb.group({CYStaticRports:this.fb.group({FILENAME:[""]}),CYStaticReportsList:this.fb.array(t)})}},{key:"StaticReports",value:function(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}},{key:"ngOnInit",value:function(){this.GetAllFiles()}},{key:"GetAllFiles",value:function(){var t=this;this.staticReportsService.StaticReportDetails("SkinSpa","GroupStrategyClarins").subscribe(function(e){if(t.FileName=e,console.log(e),t.FileName.length>0)for(var o=t.ClarinsYearReportsForm.controls.CYStaticReportsList,n=0;n<t.FileName.length;n++)o.at(+n).get("DOWNLOADFILE").setValue(t.FileName[n].FileNameWithOutExtension),o.at(+n).get("FILENAME").setValue(t.FileName[n].FileName),n>=13&&n<t.FileName.length-1&&t.CYStaticReportsList.push(t.StaticReports())})}},{key:"Delete",value:function(t,e){for(var o=this,n=this.ClarinsYearReportsForm.controls.CYStaticReportsList,i=0;i<n.length;i++)if(t==i){e&&this.staticReportsService.Delete("SkinSpa","GroupStrategyClarins",e).subscribe(function(e){null==e&&(o.CYStaticReportsList.removeAt(t),o.toastr.warning("Deleted Successfully","SkinSpa"))},function(t){console.log(t)});break}}},{key:"Download",value:function(t,e){for(var o=this.ClarinsYearReportsForm.controls.CYStaticReportsList,n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("SkinSpa","GroupStrategyClarins",e).subscribe(function(t){var o=new Blob([t],{type:"application/pdf"}),n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):pt.saveAs(o,e)});break}}},{key:"keyevent",value:function(t){t.preventDefault();var e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(var n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){var i=o[o.indexOf(document.activeElement)+1];i&&(i.focus(),i.select())}else if(38===t.keyCode){var a=o[o.indexOf(document.activeElement)-1];a&&(a.focus(),a.select())}}},{key:"CYStaticRports",get:function(){return this.ClarinsYearReportsForm.get("CYStaticRports")}},{key:"CYStaticReportsList",get:function(){return this.ClarinsYearReportsForm.get("CYStaticReportsList")}}]),e}()).\u0275fac=function(t){return new(t||At)(c.Mb(y.c),c.Mb(bt.b),c.Mb(ut.a),c.Mb(gt.d),c.Mb(r.e),c.Mb(c.B))},At.\u0275cmp=c.Gb({type:At,selectors:[["app-clarins-year"]],hostBindings:function(t,e){1&t&&c.cc("keyup",function(t){return e.keyevent(t)},!1,c.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){var o=c.Tb();c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",9),c.Sb(10,"div",10),c.Sb(11,"div",11),c.Nb(12,"input",12),c.Rb(),c.Sb(13,"div",13),c.Sb(14,"button",14),c.Nb(15,"i",15),c.Sb(16,"input",16,17),c.cc("change",function(){c.zc(o);var t=c.wc(17);return e.UploadFile(t.files,e.CYStaticRports.get("FILENAME").value)}),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(18,"div",18),c.Sb(19,"div",19),c.Sb(20,"div",20),c.Sb(21,"div",21),c.Sb(22,"table",22),c.Sb(23,"tbody"),c.Ic(24,Ct,9,1,"tr",23),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}2&t&&(c.yb(1),c.mc("formGroup",e.ClarinsYearReportsForm),c.yb(13),c.mc("disabled",""===e.CYStaticRports.get("FILENAME").value||null===e.CYStaticRports.get("FILENAME").value),c.yb(10),c.mc("ngForOf",e.CYStaticReportsList.controls))},directives:[y.t,y.m,y.g,y.h,y.a,y.l,y.e,y.b,A.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)}']}),At);function kt(t,e){if(1&t){var o=c.Tb();c.Sb(0,"tr",24),c.Sb(1,"td",25),c.Nb(2,"input",26),c.Rb(),c.Sb(3,"td",27),c.Sb(4,"button",28),c.cc("click",function(){c.zc(o);var t=e.index,n=c.ec();return n.Download(t,n.FYStaticReportsList.controls[t].get("FILENAME").value)}),c.Nb(5,"i",29),c.Rb(),c.Rb(),c.Sb(6,"td",27),c.Sb(7,"button",30),c.cc("click",function(){c.zc(o);var t=e.index,n=c.ec();return n.Delete(t,n.FYStaticReportsList.controls[t].get("FILENAME").value)}),c.Nb(8,"i",31),c.Rb(),c.Rb(),c.Rb()}2&t&&c.mc("formGroupName",e.index)}var wt,Pt,Et,Ft=((wt=function(){function e(o,n,i,a,r,l){var s=this;t(this,e),this.fb=o,this.router=n,this.toastr=i,this.staticReportsService=a,this.interactivityChecker=r,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(t,e){0!==t.length&&s.staticReportsService.UploadFile(t,e,"SkinSpaStaticReports","GroupStrategyReports_FY").subscribe(function(t){t.type===dt.d.UploadProgress?s.progress=Math.round(100*t.loaded/t.total):t.type===dt.d.Response&&(s.message="Upload success.",s.onUploadFinished.emit(t.body)),s.GetAllFiles(),s.FYStaticRports.reset()})},this.CreateFiscalYearReportsForm()}return o(e,[{key:"CreateFiscalYearReportsForm",value:function(){for(var t=[],e=0;e<14;e++)t.push(this.StaticReports());this.FiscalYearReportsForm=this.fb.group({FYStaticRports:this.fb.group({FILENAME:[""]}),FYStaticReportsList:this.fb.array(t)})}},{key:"StaticReports",value:function(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}},{key:"ngOnInit",value:function(){this.GetAllFiles()}},{key:"GetAllFiles",value:function(){var t=this;this.staticReportsService.StaticReportDetails("SkinSpa","GroupStrategyFiscal").subscribe(function(e){if(t.FileName=e,console.log(e),t.FileName.length>0)for(var o=t.FiscalYearReportsForm.controls.FYStaticReportsList,n=0;n<t.FileName.length;n++)o.at(+n).get("DOWNLOADFILE").setValue(t.FileName[n].FileNameWithOutExtension),o.at(+n).get("FILENAME").setValue(t.FileName[n].FileName),n>=13&&n<t.FileName.length-1&&t.FYStaticReportsList.push(t.StaticReports())})}},{key:"Delete",value:function(t,e){for(var o=this,n=this.FiscalYearReportsForm.controls.FYStaticReportsList,i=0;i<n.length;i++)if(t==i){e&&this.staticReportsService.Delete("SkinSpa","GroupStrategyFiscal",e).subscribe(function(e){null==e&&(o.FYStaticReportsList.removeAt(t),o.toastr.warning("Deleted Successfully","SkinSpa"))},function(t){console.log(t)});break}}},{key:"Download",value:function(t,e){for(var o=this.FiscalYearReportsForm.controls.FYStaticReportsList,n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("SkinSpa","GroupStrategyFiscal",e).subscribe(function(t){var o=new Blob([t],{type:"application/pdf"}),n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):pt.saveAs(o,e)});break}}},{key:"keyevent",value:function(t){t.preventDefault();var e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(var n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){var i=o[o.indexOf(document.activeElement)+1];i&&(i.focus(),i.select())}else if(38===t.keyCode){var a=o[o.indexOf(document.activeElement)-1];a&&(a.focus(),a.select())}}},{key:"FYStaticRports",get:function(){return this.FiscalYearReportsForm.get("FYStaticRports")}},{key:"FYStaticReportsList",get:function(){return this.FiscalYearReportsForm.get("FYStaticReportsList")}}]),e}()).\u0275fac=function(t){return new(t||wt)(c.Mb(y.c),c.Mb(r.e),c.Mb(bt.b),c.Mb(ut.a),c.Mb(gt.d),c.Mb(c.B))},wt.\u0275cmp=c.Gb({type:wt,selectors:[["app-fiscal-year"]],hostBindings:function(t,e){1&t&&c.cc("keyup",function(t){return e.keyevent(t)},!1,c.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){var o=c.Tb();c.Sb(0,"div",0),c.Sb(1,"form",1),c.Sb(2,"div",2),c.Sb(3,"div",3),c.Sb(4,"div",4),c.Sb(5,"div",5),c.Sb(6,"div",6),c.Sb(7,"div",7),c.Sb(8,"div",8),c.Sb(9,"div",9),c.Sb(10,"div",10),c.Sb(11,"div",11),c.Nb(12,"input",12),c.Rb(),c.Sb(13,"div",13),c.Sb(14,"button",14),c.Nb(15,"i",15),c.Sb(16,"input",16,17),c.cc("change",function(){c.zc(o);var t=c.wc(17);return e.UploadFile(t.files,e.FYStaticRports.get("FILENAME").value)}),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(18,"div",18),c.Sb(19,"div",19),c.Sb(20,"div",20),c.Sb(21,"div",21),c.Sb(22,"table",22),c.Sb(23,"tbody"),c.Ic(24,kt,9,1,"tr",23),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}2&t&&(c.yb(1),c.mc("formGroup",e.FiscalYearReportsForm),c.yb(13),c.mc("disabled",""===e.FYStaticRports.get("FILENAME").value||null===e.FYStaticRports.get("FILENAME").value),c.yb(10),c.mc("ngForOf",e.FYStaticReportsList.controls))},directives:[y.t,y.m,y.g,y.h,y.a,y.l,y.e,y.b,A.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)}']}),wt),Nt=i("liBt"),_t=[{path:"",data:{title:"Skin Spa Reports"},children:[{path:"",redirectTo:"Skinspareports",pathMatch:"full"},{path:"",component:m,data:{title:"Skin Spa Reports"},children:[{path:"BeautyBARAccountWeeklySales",component:j,resolve:{Years:Nt.a},data:{title:"Skin Spa: Beauty BAR Account Weekly Sales"}},{path:"MobileTherapistWeeklySales",component:tt,resolve:{Years:Nt.a},data:{title:"Skin Spa and BeautyBar: Mobile Therapist Weekly Sales"}},{path:"SkinSpaAccountSales",component:I,resolve:{Years:Nt.a},data:{title:"Skin Spa: Account Sales"}},{path:"TherapistWeeklySales",component:st,resolve:{Years:Nt.a},data:{title:"Skin Spa and BeautyBar: Therapist Weekly Sales"}},{path:"SkinSpa-MonthlyReports",component:mt,data:{title:"Skin Spa and BeautyBar: Monthly/Periodic Reports"}},{path:"SkinSpa-ClarinsYear",component:Mt,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:vt,data:{title:"Skin Spa and BeautyBar: Historic Reports"}},{path:"SkinSpa-GeneratorReports",component:Ot,data:{title:"Skin Spa and BeautyBar: Generator Reports"}}]}]}],Gt=((Pt=function e(){t(this,e)}).\u0275mod=c.Kb({type:Pt}),Pt.\u0275inj=c.Jb({factory:function(t){return new(t||Pt)},imports:[[r.h.forChild(_t)],r.h]}),Pt),Tt=i("H8qh"),Lt=((Et=function e(){t(this,e)}).\u0275mod=c.Kb({type:Et}),Et.\u0275inj=c.Jb({factory:function(t){return new(t||Et)},imports:[[Gt,Tt.a,k.b]]}),Et)},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 c}),o.d(e,"d",function(){return l});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}({}),c=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}({}),l=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(e,n,i){"use strict";i.d(n,"a",function(){return s});var a=i("IheW"),r=i("lJxs"),c=i("8Y7J"),l={headers:new a.e({"Content-Type":"application/json",Authorization:"jwt-token"})},s=function(){var e=function(){function e(o,n){t(this,e),this.http=o,this.BaseURL="",this.BaseURL="http://localhost:4200/"===n?"https://localhost:44301/api/UploadDownload/":n+"api/UploadDownload/"}return o(e,[{key:"StaticReportDetails",value:function(t,e){return this.http.get(this.BaseURL+"GetAllFileDetails?mejortype="+t+"&subtype="+e)}},{key:"Delete",value:function(t,e,o){return this.http.delete(this.BaseURL+"DeleteFile?mejor="+t+"&subtype="+e+"&fileName="+o,l).pipe(Object(r.a)(function(t){return t}))}},{key:"UploadFile",value:function(t,e,o,n){var i=t[0],r=new FormData;r.append("file",i,i.name);var c=new a.f("POST",this.BaseURL+"Upload?NewName="+e+"&mejorType="+o+"&subType="+n,r,{reportProgress:!0,responseType:"blob"});return this.http.request(c)}},{key:"DownloadFile",value:function(t,e,o){return this.http.get(this.BaseURL+"Download?mejortype="+t+"&subtype="+e+"&fileName="+o,{responseType:"blob"}).pipe(Object(r.a)(function(t){return t}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.Zb(a.b),c.Zb("BASE_URL"))},e.\u0275prov=c.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()}}])}();