Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
Publish-20260710231155-20260715025645
/
wwwroot
:
15-es2015.82f07e516ab093a7d243.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{wQML:function(t,e,o){"use strict";o.r(e),o.d(e,"GoldSalonReportsModule",function(){return lt});var n=o("iInd"),i=o("8Y7J");const r=function(){return["GoldSalonRetailSales"]},a=function(){return["GoldSalonTargets"]},s=function(){return["GoldSalonMissingFigures"]},c=function(){return["GoldSalon-MonthlyReports"]},l=function(){return["GoldSalon-ClarinsYear"]},d=function(){return["GoldSalon-FiscalYear"]},p=function(){return["GoldSalon-HistoricReports"]},b=function(){return["GoldSalon-GeneratorReports"]};let g=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Gb({type:t,selectors:[["app-gold-salon-reports"]],decls:42,vars:16,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","position_Business"],[1,"dropdown","custom-dropdown",2,"width","165px"],[1,"dropdown","custom-dropdown",2,"width","155px"],[1,"d-flex","justify-content-center"],[1,"col-md-6"]],template:function(t,e){1&t&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"ul",4),i.Sb(5,"li",5),i.Sb(6,"a",6),i.Kc(7,"Live Report"),i.Nb(8,"span",7),i.Rb(),i.Sb(9,"ul",8),i.Sb(10,"li"),i.Sb(11,"a",9),i.Kc(12,"Monthly Retail Sales Snapshot"),i.Rb(),i.Rb(),i.Sb(13,"li"),i.Sb(14,"a",9),i.Kc(15,"Independent Division Account Targets"),i.Rb(),i.Rb(),i.Sb(16,"li"),i.Sb(17,"a",9),i.Kc(18,"Gold Salon Missing Figures"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(19,"li",10),i.Sb(20,"a",9),i.Kc(21,"Monthly/Periodic Reports"),i.Rb(),i.Rb(),i.Sb(22,"li",10),i.Sb(23,"a",6),i.Kc(24,"Group Business Reports"),i.Nb(25,"span",7),i.Rb(),i.Sb(26,"ul",11),i.Sb(27,"li"),i.Sb(28,"a",9),i.Kc(29,"Clarins Year"),i.Rb(),i.Rb(),i.Sb(30,"li"),i.Sb(31,"a",9),i.Kc(32,"Fiscal Year"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(33,"li",12),i.Sb(34,"a",9),i.Kc(35,"Historic Reports"),i.Rb(),i.Rb(),i.Sb(36,"li",13),i.Sb(37,"a",9),i.Kc(38,"Generator Reports"),i.Rb(),i.Rb(),i.Rb(),i.Sb(39,"div",14),i.Sb(40,"div",15),i.Nb(41,"router-outlet"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&t&&(i.yb(11),i.mc("routerLink",i.pc(8,r)),i.yb(3),i.mc("routerLink",i.pc(9,a)),i.yb(3),i.mc("routerLink",i.pc(10,s)),i.yb(3),i.mc("routerLink",i.pc(11,c)),i.yb(8),i.mc("routerLink",i.pc(12,l)),i.yb(3),i.mc("routerLink",i.pc(13,d)),i.yb(3),i.mc("routerLink",i.pc(14,p)),i.yb(3),i.mc("routerLink",i.pc(15,b)))},directives:[n.g,n.i],styles:['.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:525px;max-height:525px;padding-left:5px;padding-right:5px;padding-bottom:4px}.mega-ul[_ngcontent-%COMP%]{background:#bc1135;padding:1px;font-weight:600;font-family:Century Gothic}.row[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px;margin-top:4px}.h-100[_ngcontent-%COMP%]{border:1px dotted #c22}.custom-dropdown[_ngcontent-%COMP%]{display:inline-block;padding:10px;margin-right:10px;border-radius:10px;font-size:15px}.custom-dropdown[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{cursor:pointer;color:#fff}.dropdown-menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#cc0b0b;font-size:18px;font-weight:600;text-decoration:none;font-family:Century Gothic;padding:5px 10px}.dropdown-menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{background-color:#cc0b0b;color:#fff;display:block;font-size:16px;font-weight:500;font-family:Century Gothic}.custom-dropdown[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:none;font-family:Century Gothic}.custom-dropdown[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:bisque;text-decoration:none}.custom-dropdown[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{left:-1px;top:41px}.dropdown-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-of-type:before{position:absolute;display:block;margin-top:-8px;margin-left:40px;width:0;height:0;border-right:8px solid transparent;border-bottom:8px solid #fff;border-left:8px solid transparent;content:""}.dropdown-menu[_ngcontent-%COMP%]{border:1px solid #cc0b0a;padding:3px}.fontsize[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:16px!important;font-weight:700!important;line-height:32px;font-family:Century Gothic}.position[_ngcontent-%COMP%]{width:330px}.position[_ngcontent-%COMP%], .position_Business[_ngcontent-%COMP%]{position:absolute;transform:translate3d(0,31px,0)!important;top:0;left:0;will-change:transform;margin-top:12px}.position_Business[_ngcontent-%COMP%]{width:200px}']}),t})();var h=o("Cfvw"),u=o("dufq"),f=o("s7LF"),m=o("T435"),S=o("+CKi"),R=o("JqCM"),x=o("SVse"),M=o("bH2/"),v=o("dbUT");function O(t,e){if(1&t&&(i.Sb(0,"option",35),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function C(t,e){1&t&&i.Nb(0,"a",36),2&t&&i.mc("innerHTML",e.$implicit.Name,i.Ac)}function y(t,e){1&t&&i.Nb(0,"div",36),2&t&&i.mc("innerHTML",e.$implicit,i.Ac)}function F(t,e){if(1&t&&(i.Sb(0,"option",35),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function P(t,e){if(1&t&&(i.Sb(0,"option",35),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function w(t,e){if(1&t&&(i.Sb(0,"option",35),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}let G=(()=>{class t{constructor(t,e,o,n,i,r){this.fb=t,this.router=e,this.activatedRoute=o,this.goldsalonReportService=n,this.sharedService=i,this.spinner=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.CreateGSRetailSalesForm()}CreateGSRetailSalesForm(){this.GSRetailSalesForm=this.fb.group({GSRetailSales:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""]})})}get GSRetailSales(){return this.GSRetailSalesForm.get("GSRetailSales")}ngOnInit(){this.YEARS=Object(h.a)([this.activatedRoute.snapshot.data.Years]),this.AllAccount=this.sharedService.GetStore(u.e.GoldSalonRetailSales),this.GetArea(),this.GetSTOGRPCODE(),this.GetRegion(),this.InitialValue()}InitialValue(){this.GSRetailSales.get("REGION").setValue("All"),this.GSRetailSales.get("AREA").setValue("All"),this.GSRetailSales.get("STOGRPCODE").setValue("All"),this.GSRetailSales.get("YEAR").setValue((new Date).getFullYear())}ResetForm(){this.GSRetailSalesForm.reset(),this.InitialValue()}GetRegion(){this.sharedService.GetRegion(u.c.REGION_BB).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.REGION.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load REGIONS."))}GetArea(){this.sharedService.GetArea(u.a.AREA_GS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.AREA.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load AREAS."))}GetSTOGRPCODE(){this.sharedService.GetSTOGRPCODE(u.d.STOGRPCODE_CLARINS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.STOGRPCODE.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load STOGRPCODE."))}selectEvent(t){}onChangeSearch(t){}searchCleared(){}rptGoldSalonRetailSales(t,e,o,n,i){let r;this.spinner.show(),this.goldsalonReportService.rptGoldSalonRetailSales(void 0===t.Value?0:t.Value,e,o,n,i).subscribe(t=>{r=new Blob([t],{type:"application/pdf"})},t=>{console.log(t)},()=>{let t=URL.createObjectURL(r);window.open(t,"_blank"),this.spinner.hide()})}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(f.c),i.Mb(n.e),i.Mb(n.a),i.Mb(m.a),i.Mb(S.a),i.Mb(R.c))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-gsretail-sales"]],decls:67,vars:23,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","GSRetailSales"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","345px"],[1,"text-center",2,"margin-top","15px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","30px"],[1,"row","no-padding","mb-1"],["for","Year",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],[1,"col-sm-5"],["formControlName","YEAR",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",""],["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"],[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.8)","size","small","color","black","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","black"],[3,"value"],[3,"innerHTML"]],template:function(t,e){if(1&t&&(i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",3),i.Sb(10,"h4",9),i.Kc(11,"Report Parameters"),i.Rb(),i.Sb(12,"h4",10),i.Kc(13,"Enter values for the Parameters"),i.Rb(),i.Rb(),i.Sb(14,"div",11),i.Sb(15,"div",12),i.Sb(16,"label",13),i.Kc(17,"Year:"),i.Rb(),i.Sb(18,"div",14),i.Sb(19,"select",15),i.Ic(20,O,2,2,"option",16),i.fc(21,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(22,"div",17),i.Sb(23,"div",12),i.Sb(24,"label",18),i.Kc(25,"Store:"),i.Rb(),i.Sb(26,"div",19),i.Sb(27,"ng-autocomplete",20,21),i.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),i.fc(29,"async"),i.Rb(),i.Ic(30,C,1,1,"ng-template",null,22,i.Jc),i.Ic(32,y,1,1,"ng-template",null,23,i.Jc),i.Rb(),i.Rb(),i.Rb(),i.Sb(34,"div",17),i.Sb(35,"div",12),i.Sb(36,"label",24),i.Kc(37,"AREA:"),i.Rb(),i.Sb(38,"div",14),i.Sb(39,"select",25),i.Ic(40,F,2,2,"option",16),i.fc(41,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(42,"div",17),i.Sb(43,"div",12),i.Sb(44,"label",26),i.Kc(45,"Store Group:"),i.Rb(),i.Sb(46,"div",14),i.Sb(47,"select",27),i.Ic(48,P,2,2,"option",16),i.fc(49,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(50,"div",17),i.Sb(51,"div",12),i.Sb(52,"label",28),i.Kc(53,"Region:"),i.Rb(),i.Sb(54,"div",14),i.Sb(55,"select",29),i.Ic(56,w,2,2,"option",16),i.fc(57,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(58,"div",3),i.Sb(59,"div",30),i.Sb(60,"button",31),i.cc("click",function(){return e.rptGoldSalonRetailSales(e.GSRetailSales.get("ACC").value,e.GSRetailSales.get("YEAR").value,"All"===e.GSRetailSales.get("AREA").value?0:e.GSRetailSales.get("AREA").value,e.GSRetailSales.get("STOGRPCODE").value,"All"===e.GSRetailSales.get("REGION").value?0:e.GSRetailSales.get("REGION").value)}),i.Kc(61," Submit"),i.Rb(),i.Sb(62,"button",32),i.cc("click",function(){return e.ResetForm()}),i.Kc(63," Reset"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(64,"ngx-spinner",33),i.Sb(65,"p",34),i.Kc(66," Loading... "),i.Rb(),i.Rb(),i.Rb()),2&t){const t=i.wc(31),o=i.wc(33);i.yb(1),i.mc("formGroup",e.GSRetailSalesForm),i.yb(19),i.mc("ngForOf",i.gc(21,13,e.YEARS)),i.yb(7),i.mc("data",i.gc(29,15,e.AllAccount))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",t)("notFoundTemplate",o)("debounceTime",10),i.yb(13),i.mc("ngForOf",i.gc(41,17,e.AREAS)),i.yb(8),i.mc("ngForOf",i.gc(49,19,e.STOGRPCODES)),i.yb(8),i.mc("ngForOf",i.gc(57,21,e.REGIONS)),i.yb(8),i.mc("fullScreen",!1)}},directives:[f.t,f.m,f.g,f.h,f.q,f.l,f.e,x.m,M.a,v.b,v.c,R.a,f.o,f.s],pipes:[x.b],styles:["button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}[_nghost-%COMP%] .ng-autocomplete{line-height:0!important;white-space:nowrap}[_nghost-%COMP%] .autocomplete-container{box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);position:relative;overflow:visible;height:30px;border-radius:4px;padding-right:0;margin-right:0}[_nghost-%COMP%] .autocomplete-container .input-container input{font-size:12px;font-weight:500!important;box-sizing:border-box;border:none;box-shadow:none;outline:none;background-color:#fff;color:rgba(0,0,0,.87);width:100%;line-height:4px;height:30px;padding:0 5px 0 12px}[_nghost-%COMP%] .autocomplete-container .input-container .x{position:absolute;right:2px;margin:auto;cursor:pointer;top:50%;transform:translateY(-50%)}[_nghost-%COMP%] .autocomplete-container .suggestions-container{display:grid;padding-right:1px;border:1px solid #b0c4de}[_nghost-%COMP%] .autocomplete-container .suggestions-container li:hover a{background-color:rgba(255,0,0,.6);color:#fff!important}[_nghost-%COMP%] .autocomplete-container .suggestions-container ul{padding:0;margin:0;max-height:300px;overflow-y:auto}[_nghost-%COMP%] .autocomplete-container .suggestions-container ul li a{padding:11px 5px 10px 12px;display:block;text-decoration:none;cursor:pointer;color:rgba(0,0,0,.87);font-size:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-weight:700!important}.full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;border-bottom-color:#caf59f}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}label[_ngcontent-%COMP%]{text-transform:uppercase;font-size:12px}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}#grad1[_ngcontent-%COMP%]{height:400px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}"]}),t})();function _(t,e){if(1&t&&(i.Sb(0,"option",35),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function A(t,e){1&t&&i.Nb(0,"a",36),2&t&&i.mc("innerHTML",e.$implicit.Name,i.Ac)}function N(t,e){1&t&&i.Nb(0,"div",36),2&t&&i.mc("innerHTML",e.$implicit,i.Ac)}function E(t,e){if(1&t&&(i.Sb(0,"option",35),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function L(t,e){if(1&t&&(i.Sb(0,"option",35),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function k(t,e){if(1&t&&(i.Sb(0,"option",35),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}let I=(()=>{class t{constructor(t,e,o,n,i,r){this.fb=t,this.router=e,this.activatedRoute=o,this.goldsalonReportService=n,this.sharedService=i,this.spinner=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.CreateGSTargetsForm()}CreateGSTargetsForm(){this.GSTargetsForm=this.fb.group({GSTargets:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""]})})}get GSTargets(){return this.GSTargetsForm.get("GSTargets")}ngOnInit(){this.YEARS=Object(h.a)([this.activatedRoute.snapshot.data.Years]),this.AllAccount=this.sharedService.GetStore(u.e.GoldSalonRetailSales),this.GetArea(),this.GetSTOGRPCODE(),this.GetRegion(),this.InitialValue()}InitialValue(){this.GSTargets.get("REGION").setValue("All"),this.GSTargets.get("AREA").setValue("All"),this.GSTargets.get("STOGRPCODE").setValue("All"),this.GSTargets.get("YEAR").setValue((new Date).getFullYear())}ResetForm(){this.GSTargetsForm.reset(),this.InitialValue()}GetRegion(){this.sharedService.GetRegion(u.c.REGION_BB).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.REGION.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load REGIONS."))}GetArea(){this.sharedService.GetArea(u.a.AREA_GS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.AREA.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load AREAS."))}GetSTOGRPCODE(){this.sharedService.GetSTOGRPCODE(u.d.STOGRPCODE_CLARINS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.STOGRPCODE.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load STOGRPCODE."))}selectEvent(t){}onChangeSearch(t){}searchCleared(){}rptGoldSalonTargets(t,e,o,n,i){let r;this.spinner.show(),this.goldsalonReportService.rptGoldSalonTargets(void 0===t.Value?0:t.Value,e,o,n,i).subscribe(t=>{r=new Blob([t],{type:"application/pdf"})},t=>{console.log(t)},()=>{let t=URL.createObjectURL(r);window.open(t,"_blank"),this.spinner.hide()})}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(f.c),i.Mb(n.e),i.Mb(n.a),i.Mb(m.a),i.Mb(S.a),i.Mb(R.c))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-gstargets"]],decls:67,vars:23,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","GSTargets"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","325px"],[1,"text-center",2,"margin-top","15px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","30px"],[1,"row","no-padding","mb-2"],["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"],[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",""],["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"],[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.8)","size","small","color","black","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","black"],[3,"value"],[3,"innerHTML"]],template:function(t,e){if(1&t&&(i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",3),i.Sb(10,"h4",9),i.Kc(11,"Report Parameters"),i.Rb(),i.Sb(12,"h4",10),i.Kc(13,"Enter values for the Parameters"),i.Rb(),i.Rb(),i.Sb(14,"div",11),i.Sb(15,"div",12),i.Sb(16,"label",13),i.Kc(17,"Year:"),i.Rb(),i.Sb(18,"div",14),i.Sb(19,"select",15),i.Ic(20,_,2,2,"option",16),i.fc(21,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(22,"div",17),i.Sb(23,"div",12),i.Sb(24,"label",18),i.Kc(25,"Store:"),i.Rb(),i.Sb(26,"div",19),i.Sb(27,"ng-autocomplete",20,21),i.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),i.fc(29,"async"),i.Rb(),i.Ic(30,A,1,1,"ng-template",null,22,i.Jc),i.Ic(32,N,1,1,"ng-template",null,23,i.Jc),i.Rb(),i.Rb(),i.Rb(),i.Sb(34,"div",17),i.Sb(35,"div",12),i.Sb(36,"label",24),i.Kc(37,"Area:"),i.Rb(),i.Sb(38,"div",14),i.Sb(39,"select",25),i.Ic(40,E,2,2,"option",16),i.fc(41,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(42,"div",17),i.Sb(43,"div",12),i.Sb(44,"label",26),i.Kc(45,"Store Group:"),i.Rb(),i.Sb(46,"div",14),i.Sb(47,"select",27),i.Ic(48,L,2,2,"option",16),i.fc(49,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(50,"div",17),i.Sb(51,"div",12),i.Sb(52,"label",28),i.Kc(53,"Region:"),i.Rb(),i.Sb(54,"div",14),i.Sb(55,"select",29),i.Ic(56,k,2,2,"option",16),i.fc(57,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(58,"div",3),i.Sb(59,"div",30),i.Sb(60,"button",31),i.cc("click",function(){return e.rptGoldSalonTargets(e.GSTargets.get("ACC").value,e.GSTargets.get("YEAR").value,"All"===e.GSTargets.get("AREA").value?0:e.GSTargets.get("AREA").value,e.GSTargets.get("STOGRPCODE").value,"All"===e.GSTargets.get("REGION").value?0:e.GSTargets.get("REGION").value)}),i.Kc(61," Submit"),i.Rb(),i.Sb(62,"button",32),i.cc("click",function(){return e.ResetForm()}),i.Kc(63," Reset"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(64,"ngx-spinner",33),i.Sb(65,"p",34),i.Kc(66," Loading... "),i.Rb(),i.Rb(),i.Rb()),2&t){const t=i.wc(31),o=i.wc(33);i.yb(1),i.mc("formGroup",e.GSTargetsForm),i.yb(19),i.mc("ngForOf",i.gc(21,13,e.YEARS)),i.yb(7),i.mc("data",i.gc(29,15,e.AllAccount))("searchKeyword",e.keyword)("placeholder",e.placeholder)("minQueryLength",2)("itemTemplate",t)("notFoundTemplate",o)("debounceTime",10),i.yb(13),i.mc("ngForOf",i.gc(41,17,e.AREAS)),i.yb(8),i.mc("ngForOf",i.gc(49,19,e.STOGRPCODES)),i.yb(8),i.mc("ngForOf",i.gc(57,21,e.REGIONS)),i.yb(8),i.mc("fullScreen",!1)}},directives:[f.t,f.m,f.g,f.h,f.q,f.l,f.e,x.m,M.a,v.b,v.c,R.a,f.o,f.s],pipes:[x.b],styles:["button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}[_nghost-%COMP%] .ng-autocomplete{line-height:0!important;white-space:nowrap}[_nghost-%COMP%] .autocomplete-container{box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);position:relative;overflow:visible;height:30px;border-radius:4px;padding-right:0;margin-right:0}[_nghost-%COMP%] .autocomplete-container .input-container input{font-size:12px;font-weight:500!important;box-sizing:border-box;border:none;box-shadow:none;outline:none;background-color:#fff;color:rgba(0,0,0,.87);width:100%;line-height:4px;height:30px;padding:0 5px 0 12px}[_nghost-%COMP%] .autocomplete-container .input-container .x{position:absolute;right:2px;margin:auto;cursor:pointer;top:50%;transform:translateY(-50%)}[_nghost-%COMP%] .autocomplete-container .suggestions-container{display:grid;padding-right:1px;border:1px solid #b0c4de}[_nghost-%COMP%] .autocomplete-container .suggestions-container li:hover a{background-color:rgba(255,0,0,.6);color:#fff!important}[_nghost-%COMP%] .autocomplete-container .suggestions-container ul{padding:0;margin:0;max-height:300px;overflow-y:auto}[_nghost-%COMP%] .autocomplete-container .suggestions-container ul li a{padding:11px 5px 10px 12px;display:block;text-decoration:none;cursor:pointer;color:rgba(0,0,0,.87);font-size:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-weight:700!important}.full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;border-bottom-color:#caf59f}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}label[_ngcontent-%COMP%]{text-transform:uppercase;font-size:12px}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}#grad1[_ngcontent-%COMP%]{height:380px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}"]}),t})();var D=o("mrSG"),T=o("6+wN"),Y=o("frZy");function z(t,e){if(1&t&&(i.Sb(0,"option",28),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function U(t,e){if(1&t&&(i.Sb(0,"option",28),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function H(t,e){if(1&t&&(i.Sb(0,"option",28),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}let V=(()=>{class t{constructor(t,e,o,n,i,r,a,s){this.fb=t,this.router=e,this.activatedRoute=o,this.sharedService=n,this.goldsalonReportService=i,this.pdfService=r,this.datePipe=a,this.spinner=s,this.externalDataRetrievedFromServer=[],this.YEARS=this.sharedService.YEAR.asObservable(),this.AREAS=this.sharedService.AREA.asObservable(),this.MONTHS=this.sharedService.MONTH.asObservable(),this.CreateGSMissingFiguresForm()}CreateGSMissingFiguresForm(){this.GSMissingFiguresForm=this.fb.group({GSMissingFigures:this.fb.group({YEAR:[""],REGION:[""],AREA:[""],MONTH:[""]})})}get GSMissingFigures(){return this.GSMissingFiguresForm.get("GSMissingFigures")}ngOnInit(){this.YEARS=Object(h.a)([this.activatedRoute.snapshot.data.Years]),this.GetArea(),this.GetMonth(),this.InitialValue()}InitialValue(){this.GSMissingFigures.get("MONTH").setValue("All"),this.GSMissingFigures.get("AREA").setValue("All"),this.GSMissingFigures.get("YEAR").setValue((new Date).getFullYear())}ResetForm(){this.GSMissingFiguresForm.reset(),this.InitialValue()}GetArea(){this.sharedService.GetArea(u.a.AREA_GS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.AREA.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load AREAS."))}GetMonth(){this.sharedService.GetMonth().subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.MONTH.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load MONTHS."))}rptGoldSalonMissingFigures(t,e,o){let n;this.spinner.show(),this.goldsalonReportService.rptGoldSalonMissingFigures(t,0,e,o).subscribe(t=>{n=new Blob([t],{type:"application/pdf"})},t=>{console.log(t)},()=>{let t=URL.createObjectURL(n);window.open(t,"_blank"),this.spinner.hide()})}GeneratePDF(t,e,o){return Object(D.a)(this,void 0,void 0,function*(){yield this.pdfService.loadPdfMaker(),this.pdfService.pdfMake.createPdf(this.DocumentDefinition(t,e,o)).open()})}DocumentDefinition(t,e,o){this.pdfService.GetGoldSalonMissingFigures(t,e,o).subscribe(t=>{this.externalDataRetrievedFromServer=t,console.log(this.externalDataRetrievedFromServer)},t=>console.log("Could not load Clarins Missing Figures data."));var n,i,r=this.datePipe.transform(new Date,"dd-MMM-yyyy");return{pageMargins:[50,130,50,40],header:function(){return[{fontSize:8,columns:[{image:T.a.GoldSalonNewLogo,height:30,width:100,alignment:"left",margin:[40,20,0,20]},{}]},{fontSize:8,columns:[{text:"Gold Salon Missing Figures:",bold:!0,alignment:"left",fontSize:10,margin:[50,0,0,5]},{text:"Generated on: "+r,bold:!0,alignment:"right",fontSize:10,margin:[0,0,50,5]}]},{canvas:[{type:"line",x1:50,y1:10,x2:545,y2:10,lineWidth:.01,color:"#cc2222"}]},{margin:[50,1,50,1],table:{body:[[{fillColor:"lightgreen",color:"#FFFFFF",fontSize:11,bold:!0,columns:[{width:50,text:"AREA",margin:[5,5,0,5]},{width:60,text:"ACC",margin:[0,5,0,5]},{width:155,text:"STORE NAME",margin:[0,5,0,5]},{width:110,text:"TOWN",margin:[0,5,0,5]},{width:100,text:"TELEPHONE",margin:[0,5,0,5]}],columnGap:5}]]},layout:"noBorders"},{canvas:[{type:"line",x1:50,y1:0,x2:545,y2:0,lineWidth:.01,color:"#cc2222"}]}]},footer:function(t,e){return{text:t.toString()+" / "+e,alignment:"right",margin:[0,10,40,0]}},content:[(n=this.externalDataRetrievedFromServer,i=["AREA","ACC","STORENAME","TOWN","TELEPHONE"],{fontSize:9,height:50,table:{widths:[50,60,155,110,100],headerRows:1,body:function(t,e){var o=[];return t.forEach(t=>{var n=[];e.forEach(e=>{n.push(t[e].toString())}),o.push(n)}),o}(n,i)},layout:"noBorders"})]}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(f.c),i.Mb(n.e),i.Mb(n.a),i.Mb(S.a),i.Mb(m.a),i.Mb(Y.a),i.Mb(x.f),i.Mb(R.c))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-gsmissing-figures"]],decls:47,vars:11,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","GSMissingFigures"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","300px"],[1,"text-center",2,"margin-top","15px"],[1,"text-center"],[1,"col-sm-12",2,"margin-top","40px"],[1,"row","no-padding","mb-2"],["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"],[1,"col-sm-12"],["for","Area",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","AREA",1,"form-control","form-control-sm"],[1,"row","no-padding","mb-1"],["for","Region",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","MONTH",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.8)","size","small","color","black","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","black"],[3,"value"]],template:function(t,e){1&t&&(i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",3),i.Sb(10,"h4",9),i.Kc(11,"Report Parameters"),i.Rb(),i.Sb(12,"h4",10),i.Kc(13,"Enter values for the Parameters"),i.Rb(),i.Rb(),i.Sb(14,"div",11),i.Sb(15,"div",12),i.Sb(16,"label",13),i.Kc(17,"YEAR:"),i.Rb(),i.Sb(18,"div",14),i.Sb(19,"select",15),i.Ic(20,z,2,2,"option",16),i.fc(21,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(22,"div",17),i.Sb(23,"div",12),i.Sb(24,"label",18),i.Kc(25,"AREA:"),i.Rb(),i.Sb(26,"div",14),i.Sb(27,"select",19),i.Ic(28,U,2,2,"option",16),i.fc(29,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(30,"div",17),i.Sb(31,"div",20),i.Sb(32,"label",21),i.Kc(33,"Month:"),i.Rb(),i.Sb(34,"div",14),i.Sb(35,"select",22),i.Ic(36,H,2,2,"option",16),i.fc(37,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(38,"div",3),i.Sb(39,"div",23),i.Sb(40,"button",24),i.cc("click",function(){return e.rptGoldSalonMissingFigures(e.GSMissingFigures.get("YEAR").value,"All"===e.GSMissingFigures.get("AREA").value?0:e.GSMissingFigures.get("AREA").value,"All"===e.GSMissingFigures.get("MONTH").value?0:e.GSMissingFigures.get("MONTH").value)}),i.Kc(41," Submit"),i.Rb(),i.Sb(42,"button",25),i.cc("click",function(){return e.ResetForm()}),i.Kc(43," Reset"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(44,"ngx-spinner",26),i.Sb(45,"p",27),i.Kc(46," Loading... "),i.Rb(),i.Rb(),i.Rb()),2&t&&(i.yb(1),i.mc("formGroup",e.GSMissingFiguresForm),i.yb(19),i.mc("ngForOf",i.gc(21,5,e.YEARS)),i.yb(8),i.mc("ngForOf",i.gc(29,7,e.AREAS)),i.yb(8),i.mc("ngForOf",i.gc(37,9,e.MONTHS)),i.yb(8),i.mc("fullScreen",!1))},directives:[f.t,f.m,f.g,f.h,f.q,f.l,f.e,x.m,v.b,v.c,R.a,f.o,f.s],pipes:[x.b],styles:[".full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed;border-bottom-color:#caf59f}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}label[_ngcontent-%COMP%]{text-transform:uppercase;font-size:12px}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}#grad1[_ngcontent-%COMP%]{height:355px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}"]}),t})();var K=o("Iab2"),B=o("IheW"),W=o("EApP"),j=o("u47x"),$=o("qvAe");function q(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",24),i.Sb(1,"td",25),i.Nb(2,"input",26),i.Rb(),i.Sb(3,"td",27),i.Sb(4,"button",28),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Download(o,n.MStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(5,"i",29),i.Rb(),i.Rb(),i.Sb(6,"td",27),i.Sb(7,"button",30),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Delete(o,n.MStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(8,"i",31),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let J=(()=>{class t{constructor(t,e,o,n,r,a){this.fb=t,this.router=e,this.toastr=o,this.interactivityChecker=n,this.staticReportsService=r,this.platformId=a,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"GoldSalonStaticReports","MonthlyReports").subscribe(t=>{t.type===B.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===B.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.MStaticRports.reset()})},this.CreateMonthlyReportsForm()}CreateMonthlyReportsForm(){const t=[];for(let e=0;e<14;e++)t.push(this.StaticReports());this.MonthlyReportsForm=this.fb.group({MStaticRports:this.fb.group({FILENAME:[""]}),MStaticReportsList:this.fb.array(t)})}StaticReports(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}get MStaticRports(){return this.MonthlyReportsForm.get("MStaticRports")}get MStaticReportsList(){return this.MonthlyReportsForm.get("MStaticReportsList")}ngOnInit(){this.GetAllFiles()}GetAllFiles(){this.staticReportsService.StaticReportDetails("GoldSalon","MonthlyPeriodic").subscribe(t=>{if(this.FileName=t,this.FileName.length>0){const t=this.MonthlyReportsForm.controls.MStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.MStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.MonthlyReportsForm.controls.MStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("GoldSalon","MonthlyPeriodic",e).subscribe(e=>{null==e&&(this.MStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","GoldSalon"))},t=>{console.log(t)});break}}Download(t,e){const o=this.MonthlyReportsForm.controls.MStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("GoldSalon","MonthlyPeriodic",e).subscribe(t=>{let o=new Blob([t],{type:"application/pdf"});const n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):K.saveAs(o,e)});break}}keyevent(t){t.preventDefault();const e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(let n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){const t=o[o.indexOf(document.activeElement)+1];t&&(t.focus(),t.select())}else if(38===t.keyCode){const t=o[o.indexOf(document.activeElement)-1];t&&(t.focus(),t.select())}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(f.c),i.Mb(n.e),i.Mb(W.b),i.Mb(j.d),i.Mb($.a),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-monthly-reports"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:25,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","MStaticRports"],[1,"col-sm-12"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","MStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"div",11),i.Nb(12,"input",12),i.Rb(),i.Sb(13,"div",13),i.Sb(14,"button",14),i.Nb(15,"i",15),i.Sb(16,"input",16,17),i.cc("change",function(){i.zc(t);const o=i.wc(17);return e.UploadFile(o.files,e.MStaticRports.get("FILENAME").value)}),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"div",21),i.Sb(22,"table",22),i.Sb(23,"tbody"),i.Ic(24,q,9,1,"tr",23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}2&t&&(i.yb(1),i.mc("formGroup",e.MonthlyReportsForm),i.yb(13),i.mc("disabled",""===e.MStaticRports.get("FILENAME").value||null===e.MStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.MStaticReportsList.controls))},directives:[f.t,f.m,f.g,f.h,f.a,f.l,f.e,f.b,x.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}.table-borderless[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%] .table-borderless[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:0}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0;border-color:#fff}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),t})();function Q(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",24),i.Sb(1,"td",25),i.Nb(2,"input",26),i.Rb(),i.Sb(3,"td",27),i.Sb(4,"button",28),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Download(o,n.HStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(5,"i",29),i.Rb(),i.Rb(),i.Sb(6,"td",27),i.Sb(7,"button",30),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Delete(o,n.HStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(8,"i",31),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let Z=(()=>{class t{constructor(t,e,o,n,r,a){this.fb=t,this.interactivityChecker=e,this.staticReportsService=o,this.router=n,this.toastr=r,this.platformId=a,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"GoldSalonStaticReports","HistoricReports").subscribe(t=>{t.type===B.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===B.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.HStaticRports.reset()})},this.CreateHistoricReportsForm()}CreateHistoricReportsForm(){const t=[];for(let e=0;e<14;e++)t.push(this.StaticReports());this.HistoricReportsForm=this.fb.group({HStaticRports:this.fb.group({FILENAME:[""]}),HStaticReportsList:this.fb.array(t)})}StaticReports(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}get HStaticRports(){return this.HistoricReportsForm.get("HStaticRports")}get HStaticReportsList(){return this.HistoricReportsForm.get("HStaticReportsList")}ngOnInit(){this.GetAllFiles()}GetAllFiles(){this.staticReportsService.StaticReportDetails("GoldSalon","Historic").subscribe(t=>{if(this.FileName=t,this.FileName.length>0){const t=this.HistoricReportsForm.controls.HStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.HStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.HistoricReportsForm.controls.HStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("GoldSalon","Historic",e).subscribe(e=>{null==e&&(this.HStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","GoldSalon"))},t=>{console.log(t)});break}}Download(t,e){const o=this.HistoricReportsForm.controls.HStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("GoldSalon","Historic",e).subscribe(t=>{let o=new Blob([t],{type:"application/pdf"});const n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):K.saveAs(o,e)});break}}keyevent(t){t.preventDefault();const e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(let n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){const t=o[o.indexOf(document.activeElement)+1];t&&(t.focus(),t.select())}else if(38===t.keyCode){const t=o[o.indexOf(document.activeElement)-1];t&&(t.focus(),t.select())}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(f.c),i.Mb(j.d),i.Mb($.a),i.Mb(n.e),i.Mb(W.b),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-historic-reports"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:25,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","HStaticRports"],[1,"col-sm-12"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","HStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"div",11),i.Nb(12,"input",12),i.Rb(),i.Sb(13,"div",13),i.Sb(14,"button",14),i.Nb(15,"i",15),i.Sb(16,"input",16,17),i.cc("change",function(){i.zc(t);const o=i.wc(17);return e.UploadFile(o.files,e.HStaticRports.get("FILENAME").value)}),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"div",21),i.Sb(22,"table",22),i.Sb(23,"tbody"),i.Ic(24,Q,9,1,"tr",23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}2&t&&(i.yb(1),i.mc("formGroup",e.HistoricReportsForm),i.yb(13),i.mc("disabled",""===e.HStaticRports.get("FILENAME").value||null===e.HStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.HStaticReportsList.controls))},directives:[f.t,f.m,f.g,f.h,f.a,f.l,f.e,f.b,x.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}.table-borderless[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%] .table-borderless[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:0}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0;border-color:#fff}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),t})();function X(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",24),i.Sb(1,"td",25),i.Nb(2,"input",26),i.Rb(),i.Sb(3,"td",27),i.Sb(4,"button",28),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Download(o,n.GStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(5,"i",29),i.Rb(),i.Rb(),i.Sb(6,"td",27),i.Sb(7,"button",30),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Delete(o,n.GStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(8,"i",31),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let tt=(()=>{class t{constructor(t,e,o,n,r,a){this.fb=t,this.router=e,this.toastr=o,this.staticReportsService=n,this.interactivityChecker=r,this.platformId=a,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"GoldSalonStaticReports","GeneratorReports").subscribe(t=>{t.type===B.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===B.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.GStaticRports.reset()})},this.CreateGeneratorReportsForm()}CreateGeneratorReportsForm(){const t=[];for(let e=0;e<14;e++)t.push(this.StaticReports());this.GeneratorReportsForm=this.fb.group({GStaticRports:this.fb.group({FILENAME:[""]}),GStaticReportsList:this.fb.array(t)})}StaticReports(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}get GStaticRports(){return this.GeneratorReportsForm.get("GStaticRports")}get GStaticReportsList(){return this.GeneratorReportsForm.get("GStaticReportsList")}ngOnInit(){this.GetAllFiles()}GetAllFiles(){this.staticReportsService.StaticReportDetails("GoldSalon","Generator").subscribe(t=>{if(this.FileName=t,this.FileName.length>0){const t=this.GeneratorReportsForm.controls.GStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.GStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.GeneratorReportsForm.controls.GStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("GoldSalon","Generator",e).subscribe(e=>{null==e&&(this.GStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","GoldSalon"))},t=>{console.log(t)});break}}Download(t,e){const o=this.GeneratorReportsForm.controls.GStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("GoldSalon","Generator",e).subscribe(t=>{let o=new Blob([t],{type:"application/pdf"});const n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):K.saveAs(o,e)});break}}keyevent(t){t.preventDefault();const e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(let n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){const t=o[o.indexOf(document.activeElement)+1];t&&(t.focus(),t.select())}else if(38===t.keyCode){const t=o[o.indexOf(document.activeElement)-1];t&&(t.focus(),t.select())}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(f.c),i.Mb(n.e),i.Mb(W.b),i.Mb($.a),i.Mb(j.d),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-generator-reports"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:25,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","GStaticRports"],[1,"col-sm-12"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","GStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"div",11),i.Nb(12,"input",12),i.Rb(),i.Sb(13,"div",13),i.Sb(14,"button",14),i.Nb(15,"i",15),i.Sb(16,"input",16,17),i.cc("change",function(){i.zc(t);const o=i.wc(17);return e.UploadFile(o.files,e.GStaticRports.get("FILENAME").value)}),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"div",21),i.Sb(22,"table",22),i.Sb(23,"tbody"),i.Ic(24,X,9,1,"tr",23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}2&t&&(i.yb(1),i.mc("formGroup",e.GeneratorReportsForm),i.yb(13),i.mc("disabled",""===e.GStaticRports.get("FILENAME").value||null===e.GStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.GStaticReportsList.controls))},directives:[f.t,f.m,f.g,f.h,f.a,f.l,f.e,f.b,x.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}.table-borderless[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%] .table-borderless[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:0}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0;border-color:#fff}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),t})();function et(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",24),i.Sb(1,"td",25),i.Nb(2,"input",26),i.Rb(),i.Sb(3,"td",27),i.Sb(4,"button",28),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Download(o,n.CYStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(5,"i",29),i.Rb(),i.Rb(),i.Sb(6,"td",27),i.Sb(7,"button",30),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Delete(o,n.CYStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(8,"i",31),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let ot=(()=>{class t{constructor(t,e,o,n,r,a){this.fb=t,this.router=e,this.toastr=o,this.interactivityChecker=n,this.staticReportsService=r,this.platformId=a,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"GoldSalonStaticReports","GroupStrategyReports_CY").subscribe(t=>{t.type===B.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===B.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.CYStaticRports.reset()})},this.CreateClarinsYearReportsForm()}CreateClarinsYearReportsForm(){const t=[];for(let e=0;e<14;e++)t.push(this.StaticReports());this.ClarinsYearReportsForm=this.fb.group({CYStaticRports:this.fb.group({FILENAME:[""]}),CYStaticReportsList:this.fb.array(t)})}StaticReports(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}get CYStaticRports(){return this.ClarinsYearReportsForm.get("CYStaticRports")}get CYStaticReportsList(){return this.ClarinsYearReportsForm.get("CYStaticReportsList")}ngOnInit(){this.GetAllFiles()}GetAllFiles(){this.staticReportsService.StaticReportDetails("GoldSalon","GroupStrategyClarins").subscribe(t=>{if(this.FileName=t,this.FileName.length>0){const t=this.ClarinsYearReportsForm.controls.CYStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.CYStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.ClarinsYearReportsForm.controls.CYStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("GoldSalon","GroupStrategyClarins",e).subscribe(e=>{null==e&&(this.CYStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","GoldSalon"))},t=>{console.log(t)});break}}Download(t,e){const o=this.ClarinsYearReportsForm.controls.CYStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("GoldSalon","GroupStrategyClarins",e).subscribe(t=>{let o=new Blob([t],{type:"application/pdf"});const n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):K.saveAs(o,e)});break}}keyevent(t){t.preventDefault();const e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(let n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){const t=o[o.indexOf(document.activeElement)+1];t&&(t.focus(),t.select())}else if(38===t.keyCode){const t=o[o.indexOf(document.activeElement)-1];t&&(t.focus(),t.select())}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(f.c),i.Mb(n.e),i.Mb(W.b),i.Mb(j.d),i.Mb($.a),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-clarins-year"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:25,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","CYStaticRports"],[1,"col-sm-12"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","CYStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"div",11),i.Nb(12,"input",12),i.Rb(),i.Sb(13,"div",13),i.Sb(14,"button",14),i.Nb(15,"i",15),i.Sb(16,"input",16,17),i.cc("change",function(){i.zc(t);const o=i.wc(17);return e.UploadFile(o.files,e.CYStaticRports.get("FILENAME").value)}),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"div",21),i.Sb(22,"table",22),i.Sb(23,"tbody"),i.Ic(24,et,9,1,"tr",23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}2&t&&(i.yb(1),i.mc("formGroup",e.ClarinsYearReportsForm),i.yb(13),i.mc("disabled",""===e.CYStaticRports.get("FILENAME").value||null===e.CYStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.CYStaticReportsList.controls))},directives:[f.t,f.m,f.g,f.h,f.a,f.l,f.e,f.b,x.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}.table-borderless[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%] .table-borderless[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:0}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0;border-color:#fff}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),t})();function nt(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",24),i.Sb(1,"td",25),i.Nb(2,"input",26),i.Rb(),i.Sb(3,"td",27),i.Sb(4,"button",28),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Download(o,n.FYStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(5,"i",29),i.Rb(),i.Rb(),i.Sb(6,"td",27),i.Sb(7,"button",30),i.cc("click",function(){i.zc(t);const o=e.index,n=i.ec();return n.Delete(o,n.FYStaticReportsList.controls[o].get("FILENAME").value)}),i.Nb(8,"i",31),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let it=(()=>{class t{constructor(t,e,o,n,r,a){this.fb=t,this.router=e,this.toastr=o,this.interactivityChecker=n,this.staticReportsService=r,this.platformId=a,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"GoldSalonStaticReports","GroupStrategyReports_FY").subscribe(t=>{t.type===B.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===B.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.FYStaticRports.reset()})},this.CreateFiscalYearReportsForm()}CreateFiscalYearReportsForm(){const t=[];for(let e=0;e<14;e++)t.push(this.StaticReports());this.FiscalYearReportsForm=this.fb.group({FYStaticRports:this.fb.group({FILENAME:[""]}),FYStaticReportsList:this.fb.array(t)})}StaticReports(){return this.fb.group({DOWNLOADFILE:[""],FILENAME:[""]})}get FYStaticRports(){return this.FiscalYearReportsForm.get("FYStaticRports")}get FYStaticReportsList(){return this.FiscalYearReportsForm.get("FYStaticReportsList")}ngOnInit(){this.GetAllFiles()}GetAllFiles(){this.staticReportsService.StaticReportDetails("GoldSalon","GroupStrategyFiscal").subscribe(t=>{if(this.FileName=t,this.FileName.length>0){const t=this.FiscalYearReportsForm.controls.FYStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.FYStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.FiscalYearReportsForm.controls.FYStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("GoldSalon","GroupStrategyFiscal",e).subscribe(e=>{null==e&&(this.FYStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","GoldSalon"))},t=>{console.log(t)});break}}Download(t,e){const o=this.FiscalYearReportsForm.controls.FYStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.DownloadFile("GoldSalon","GroupStrategyFiscal",e).subscribe(t=>{let o=new Blob([t],{type:"application/pdf"});const n=window.URL.createObjectURL(o);"application/pdf"===t.type?window.open(n,"_blank"):K.saveAs(o,e)});break}}keyevent(t){t.preventDefault();const e=Array.prototype.slice.call(document.querySelectorAll("input")),o=[];if(Array.isArray(o)&&!o.length)for(let n=0;n<e.length;n++)this.interactivityChecker.isFocusable(e[n])&&o.push(e[n]);if(13===t.keyCode||40===t.keyCode){const t=o[o.indexOf(document.activeElement)+1];t&&(t.focus(),t.select())}else if(38===t.keyCode){const t=o[o.indexOf(document.activeElement)-1];t&&(t.focus(),t.select())}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(f.c),i.Mb(n.e),i.Mb(W.b),i.Mb(j.d),i.Mb($.a),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-fiscal-year"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:25,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","FYStaticRports"],[1,"col-sm-12"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","FYStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"div",11),i.Nb(12,"input",12),i.Rb(),i.Sb(13,"div",13),i.Sb(14,"button",14),i.Nb(15,"i",15),i.Sb(16,"input",16,17),i.cc("change",function(){i.zc(t);const o=i.wc(17);return e.UploadFile(o.files,e.FYStaticRports.get("FILENAME").value)}),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"div",21),i.Sb(22,"table",22),i.Sb(23,"tbody"),i.Ic(24,nt,9,1,"tr",23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}2&t&&(i.yb(1),i.mc("formGroup",e.FiscalYearReportsForm),i.yb(13),i.mc("disabled",""===e.FYStaticRports.get("FILENAME").value||null===e.FYStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.FYStaticReportsList.controls))},directives:[f.t,f.m,f.g,f.h,f.a,f.l,f.e,f.b,x.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}.table-borderless[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%] .table-borderless[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:0}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0;border-color:#fff}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),t})();var rt=o("liBt");const at=[{path:"",data:{title:"Gold SalonReport"},children:[{path:"",redirectTo:"GoldSalonReports",pathMatch:"full"},{path:"",component:g,data:{title:"Gold Salon Reports"},children:[{path:"GoldSalonRetailSales",component:G,resolve:{Years:rt.a},data:{title:"Independent Division: Monthly Retail Sales Snapshot"}},{path:"GoldSalonTargets",component:I,resolve:{Years:rt.a},data:{title:"Independent Division: Account Targets"}},{path:"GoldSalonMissingFigures",component:V,resolve:{Years:rt.a},data:{title:"Independent Division: Missing Figures"}},{path:"GoldSalon-MonthlyReports",component:J,data:{title:"Independent Division: Monthly/Periodic Reports"}},{path:"GoldSalon-ClarinsYear",component:ot,data:{title:"Independent Division: Group Business Reports (Clarins Year)"}},{path:"GoldSalon-FiscalYear",component:it,data:{title:"Independent Division: Group Business Reports (Fiscal Year)"}},{path:"GoldSalon-HistoricReports",component:Z,data:{title:"Independent Division: Historic Reports"}},{path:"GoldSalon-GeneratorReports",component:tt,data:{title:"Independent Division: Generator Reports"}}]}]}];let st=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[n.h.forChild(at)],n.h]}),t})();var ct=o("H8qh");let lt=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[st,ct.a,R.b]]}),t})()}}]);