Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wwwroot
:
15-es5.82f07e516ab093a7d243.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([[15],{wQML:function(e,n,i){"use strict";i.r(n),i.d(n,"GoldSalonReportsModule",function(){return Mt});var r,a=i("iInd"),c=i("8Y7J"),l=function(){return["GoldSalonRetailSales"]},s=function(){return["GoldSalonTargets"]},d=function(){return["GoldSalonMissingFigures"]},p=function(){return["GoldSalon-MonthlyReports"]},b=function(){return["GoldSalon-ClarinsYear"]},g=function(){return["GoldSalon-FiscalYear"]},u=function(){return["GoldSalon-HistoricReports"]},f=function(){return["GoldSalon-GeneratorReports"]},h=((r=function(){function e(){t(this,e)}return o(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(t){return new(t||r)},r.\u0275cmp=c.Gb({type:r,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&&(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,"Monthly Retail Sales Snapshot"),c.Rb(),c.Rb(),c.Sb(13,"li"),c.Sb(14,"a",9),c.Kc(15,"Independent Division Account Targets"),c.Rb(),c.Rb(),c.Sb(16,"li"),c.Sb(17,"a",9),c.Kc(18,"Gold Salon Missing Figures"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(19,"li",10),c.Sb(20,"a",9),c.Kc(21,"Monthly/Periodic Reports"),c.Rb(),c.Rb(),c.Sb(22,"li",10),c.Sb(23,"a",6),c.Kc(24,"Group Business Reports"),c.Nb(25,"span",7),c.Rb(),c.Sb(26,"ul",11),c.Sb(27,"li"),c.Sb(28,"a",9),c.Kc(29,"Clarins Year"),c.Rb(),c.Rb(),c.Sb(30,"li"),c.Sb(31,"a",9),c.Kc(32,"Fiscal Year"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(33,"li",12),c.Sb(34,"a",9),c.Kc(35,"Historic Reports"),c.Rb(),c.Rb(),c.Sb(36,"li",13),c.Sb(37,"a",9),c.Kc(38,"Generator Reports"),c.Rb(),c.Rb(),c.Rb(),c.Sb(39,"div",14),c.Sb(40,"div",15),c.Nb(41,"router-outlet"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.yb(11),c.mc("routerLink",c.pc(8,l)),c.yb(3),c.mc("routerLink",c.pc(9,s)),c.yb(3),c.mc("routerLink",c.pc(10,d)),c.yb(3),c.mc("routerLink",c.pc(11,p)),c.yb(8),c.mc("routerLink",c.pc(12,b)),c.yb(3),c.mc("routerLink",c.pc(13,g)),c.yb(3),c.mc("routerLink",c.pc(14,u)),c.yb(3),c.mc("routerLink",c.pc(15,f)))},directives:[a.g,a.i],styles:['.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:525px;max-height:525px;padding-left:5px;padding-right:5px;padding-bottom:4px}.mega-ul[_ngcontent-%COMP%]{background:#bc1135;padding:1px;font-weight:600;font-family:Century Gothic}.row[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px;margin-top:4px}.h-100[_ngcontent-%COMP%]{border:1px dotted #c22}.custom-dropdown[_ngcontent-%COMP%]{display:inline-block;padding:10px;margin-right:10px;border-radius:10px;font-size:15px}.custom-dropdown[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{cursor:pointer;color:#fff}.dropdown-menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#cc0b0b;font-size:18px;font-weight:600;text-decoration:none;font-family:Century Gothic;padding:5px 10px}.dropdown-menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{background-color:#cc0b0b;color:#fff;display:block;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}']}),r),m=i("Cfvw"),S=i("dufq"),R=i("s7LF"),v=i("T435"),x=i("+CKi"),M=i("JqCM"),O=i("SVse"),y=i("bH2/"),C=i("dbUT");function F(t,e){if(1&t&&(c.Sb(0,"option",35),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){1&t&&c.Nb(0,"a",36),2&t&&c.mc("innerHTML",e.$implicit.Name,c.Ac)}function P(t,e){1&t&&c.Nb(0,"div",36),2&t&&c.mc("innerHTML",e.$implicit,c.Ac)}function G(t,e){if(1&t&&(c.Sb(0,"option",35),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",35),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function A(t,e){if(1&t&&(c.Sb(0,"option",35),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}var N,E=((N=function(){function e(o,n,i,r,a,c){t(this,e),this.fb=o,this.router=n,this.activatedRoute=i,this.goldsalonReportService=r,this.sharedService=a,this.spinner=c,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()}return o(e,[{key:"CreateGSRetailSalesForm",value:function(){this.GSRetailSalesForm=this.fb.group({GSRetailSales:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(m.a)([this.activatedRoute.snapshot.data.Years]),this.AllAccount=this.sharedService.GetStore(S.e.GoldSalonRetailSales),this.GetArea(),this.GetSTOGRPCODE(),this.GetRegion(),this.InitialValue()}},{key:"InitialValue",value:function(){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())}},{key:"ResetForm",value:function(){this.GSRetailSalesForm.reset(),this.InitialValue()}},{key:"GetRegion",value:function(){var t=this;this.sharedService.GetRegion(S.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(S.a.AREA_GS).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:"GetSTOGRPCODE",value:function(){var t=this;this.sharedService.GetSTOGRPCODE(S.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:"rptGoldSalonRetailSales",value:function(t,e,o,n,i){var r,a=this;this.spinner.show(),this.goldsalonReportService.rptGoldSalonRetailSales(void 0===t.Value?0:t.Value,e,o,n,i).subscribe(function(t){r=new Blob([t],{type:"application/pdf"})},function(t){console.log(t)},function(){var t=URL.createObjectURL(r);window.open(t,"_blank"),a.spinner.hide()})}},{key:"GSRetailSales",get:function(){return this.GSRetailSalesForm.get("GSRetailSales")}}]),e}()).\u0275fac=function(t){return new(t||N)(c.Mb(R.c),c.Mb(a.e),c.Mb(a.a),c.Mb(v.a),c.Mb(x.a),c.Mb(M.c))},N.\u0275cmp=c.Gb({type:N,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&&(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,"Year:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"select",15),c.Ic(20,F,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,w,1,1,"ng-template",null,22,c.Jc),c.Ic(32,P,1,1,"ng-template",null,23,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(34,"div",17),c.Sb(35,"div",12),c.Sb(36,"label",24),c.Kc(37,"AREA:"),c.Rb(),c.Sb(38,"div",14),c.Sb(39,"select",25),c.Ic(40,G,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",12),c.Sb(44,"label",26),c.Kc(45,"Store Group:"),c.Rb(),c.Sb(46,"div",14),c.Sb(47,"select",27),c.Ic(48,_,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",12),c.Sb(52,"label",28),c.Kc(53,"Region:"),c.Rb(),c.Sb(54,"div",14),c.Sb(55,"select",29),c.Ic(56,A,2,2,"option",16),c.fc(57,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(58,"div",3),c.Sb(59,"div",30),c.Sb(60,"button",31),c.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)}),c.Kc(61," Submit"),c.Rb(),c.Sb(62,"button",32),c.cc("click",function(){return e.ResetForm()}),c.Kc(63," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(64,"ngx-spinner",33),c.Sb(65,"p",34),c.Kc(66," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&t){var o=c.wc(31),n=c.wc(33);c.yb(1),c.mc("formGroup",e.GSRetailSalesForm),c.yb(19),c.mc("ngForOf",c.gc(21,13,e.YEARS)),c.yb(7),c.mc("data",c.gc(29,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(41,17,e.AREAS)),c.yb(8),c.mc("ngForOf",c.gc(49,19,e.STOGRPCODES)),c.yb(8),c.mc("ngForOf",c.gc(57,21,e.REGIONS)),c.yb(8),c.mc("fullScreen",!1)}},directives:[R.t,R.m,R.g,R.h,R.q,R.l,R.e,O.m,y.a,C.b,C.c,M.a,R.o,R.s],pipes:[O.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}"]}),N);function k(t,e){if(1&t&&(c.Sb(0,"option",35),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function L(t,e){1&t&&c.Nb(0,"a",36),2&t&&c.mc("innerHTML",e.$implicit.Name,c.Ac)}function I(t,e){1&t&&c.Nb(0,"div",36),2&t&&c.mc("innerHTML",e.$implicit,c.Ac)}function D(t,e){if(1&t&&(c.Sb(0,"option",35),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",35),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}function Y(t,e){if(1&t&&(c.Sb(0,"option",35),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}var z,U=((z=function(){function e(o,n,i,r,a,c){t(this,e),this.fb=o,this.router=n,this.activatedRoute=i,this.goldsalonReportService=r,this.sharedService=a,this.spinner=c,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()}return o(e,[{key:"CreateGSTargetsForm",value:function(){this.GSTargetsForm=this.fb.group({GSTargets:this.fb.group({ACC:[""],YEAR:[""],AREA:[""],STOGRPCODE:[""],REGION:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(m.a)([this.activatedRoute.snapshot.data.Years]),this.AllAccount=this.sharedService.GetStore(S.e.GoldSalonRetailSales),this.GetArea(),this.GetSTOGRPCODE(),this.GetRegion(),this.InitialValue()}},{key:"InitialValue",value:function(){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())}},{key:"ResetForm",value:function(){this.GSTargetsForm.reset(),this.InitialValue()}},{key:"GetRegion",value:function(){var t=this;this.sharedService.GetRegion(S.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(S.a.AREA_GS).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:"GetSTOGRPCODE",value:function(){var t=this;this.sharedService.GetSTOGRPCODE(S.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:"rptGoldSalonTargets",value:function(t,e,o,n,i){var r,a=this;this.spinner.show(),this.goldsalonReportService.rptGoldSalonTargets(void 0===t.Value?0:t.Value,e,o,n,i).subscribe(function(t){r=new Blob([t],{type:"application/pdf"})},function(t){console.log(t)},function(){var t=URL.createObjectURL(r);window.open(t,"_blank"),a.spinner.hide()})}},{key:"GSTargets",get:function(){return this.GSTargetsForm.get("GSTargets")}}]),e}()).\u0275fac=function(t){return new(t||z)(c.Mb(R.c),c.Mb(a.e),c.Mb(a.a),c.Mb(v.a),c.Mb(x.a),c.Mb(M.c))},z.\u0275cmp=c.Gb({type:z,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&&(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,"Year:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"select",15),c.Ic(20,k,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,L,1,1,"ng-template",null,22,c.Jc),c.Ic(32,I,1,1,"ng-template",null,23,c.Jc),c.Rb(),c.Rb(),c.Rb(),c.Sb(34,"div",17),c.Sb(35,"div",12),c.Sb(36,"label",24),c.Kc(37,"Area:"),c.Rb(),c.Sb(38,"div",14),c.Sb(39,"select",25),c.Ic(40,D,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",12),c.Sb(44,"label",26),c.Kc(45,"Store Group:"),c.Rb(),c.Sb(46,"div",14),c.Sb(47,"select",27),c.Ic(48,T,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",12),c.Sb(52,"label",28),c.Kc(53,"Region:"),c.Rb(),c.Sb(54,"div",14),c.Sb(55,"select",29),c.Ic(56,Y,2,2,"option",16),c.fc(57,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(58,"div",3),c.Sb(59,"div",30),c.Sb(60,"button",31),c.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)}),c.Kc(61," Submit"),c.Rb(),c.Sb(62,"button",32),c.cc("click",function(){return e.ResetForm()}),c.Kc(63," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(64,"ngx-spinner",33),c.Sb(65,"p",34),c.Kc(66," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&t){var o=c.wc(31),n=c.wc(33);c.yb(1),c.mc("formGroup",e.GSTargetsForm),c.yb(19),c.mc("ngForOf",c.gc(21,13,e.YEARS)),c.yb(7),c.mc("data",c.gc(29,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(41,17,e.AREAS)),c.yb(8),c.mc("ngForOf",c.gc(49,19,e.STOGRPCODES)),c.yb(8),c.mc("ngForOf",c.gc(57,21,e.REGIONS)),c.yb(8),c.mc("fullScreen",!1)}},directives:[R.t,R.m,R.g,R.h,R.q,R.l,R.e,O.m,y.a,C.b,C.c,M.a,R.o,R.s],pipes:[O.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}"]}),z),H=i("mrSG"),V=i("6+wN"),K=i("frZy");function B(t,e){if(1&t&&(c.Sb(0,"option",28),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",28),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",28),c.Kc(1),c.Rb()),2&t){var o=e.$implicit;c.mc("value",o.Value),c.yb(1),c.Mc(" ",o.Name," ")}}var $,q=(($=function(){function e(o,n,i,r,a,c,l,s){t(this,e),this.fb=o,this.router=n,this.activatedRoute=i,this.sharedService=r,this.goldsalonReportService=a,this.pdfService=c,this.datePipe=l,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()}return o(e,[{key:"CreateGSMissingFiguresForm",value:function(){this.GSMissingFiguresForm=this.fb.group({GSMissingFigures:this.fb.group({YEAR:[""],REGION:[""],AREA:[""],MONTH:[""]})})}},{key:"ngOnInit",value:function(){this.YEARS=Object(m.a)([this.activatedRoute.snapshot.data.Years]),this.GetArea(),this.GetMonth(),this.InitialValue()}},{key:"InitialValue",value:function(){this.GSMissingFigures.get("MONTH").setValue("All"),this.GSMissingFigures.get("AREA").setValue("All"),this.GSMissingFigures.get("YEAR").setValue((new Date).getFullYear())}},{key:"ResetForm",value:function(){this.GSMissingFiguresForm.reset(),this.InitialValue()}},{key:"GetArea",value:function(){var t=this;this.sharedService.GetArea(S.a.AREA_GS).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:"GetMonth",value:function(){var t=this;this.sharedService.GetMonth().subscribe(function(e){t.sharedService.datastore.data=e,t.sharedService.MONTH.next(Object.assign({},t.sharedService.datastore).data),t.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},function(t){return console.log("Could not load MONTHS.")})}},{key:"rptGoldSalonMissingFigures",value:function(t,e,o){var n,i=this;this.spinner.show(),this.goldsalonReportService.rptGoldSalonMissingFigures(t,0,e,o).subscribe(function(t){n=new Blob([t],{type:"application/pdf"})},function(t){console.log(t)},function(){var t=URL.createObjectURL(n);window.open(t,"_blank"),i.spinner.hide()})}},{key:"GeneratePDF",value:function(t,e,o){return Object(H.a)(this,void 0,void 0,regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.pdfService.loadPdfMaker();case 2:this.pdfService.pdfMake.createPdf(this.DocumentDefinition(t,e,o)).open();case 3:case"end":return n.stop()}},n,this)}))}},{key:"DocumentDefinition",value:function(t,e,o){var n=this;this.pdfService.GetGoldSalonMissingFigures(t,e,o).subscribe(function(t){n.externalDataRetrievedFromServer=t,console.log(n.externalDataRetrievedFromServer)},function(t){return console.log("Could not load Clarins Missing Figures data.")});var i,r,a=this.datePipe.transform(new Date,"dd-MMM-yyyy");return{pageMargins:[50,130,50,40],header:function(){return[{fontSize:8,columns:[{image:V.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: "+a,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:[(i=this.externalDataRetrievedFromServer,r=["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(function(t){var n=[];e.forEach(function(e){n.push(t[e].toString())}),o.push(n)}),o}(i,r)},layout:"noBorders"})]}}},{key:"GSMissingFigures",get:function(){return this.GSMissingFiguresForm.get("GSMissingFigures")}}]),e}()).\u0275fac=function(t){return new(t||$)(c.Mb(R.c),c.Mb(a.e),c.Mb(a.a),c.Mb(x.a),c.Mb(v.a),c.Mb(K.a),c.Mb(O.f),c.Mb(M.c))},$.\u0275cmp=c.Gb({type:$,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&&(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,"YEAR:"),c.Rb(),c.Sb(18,"div",14),c.Sb(19,"select",15),c.Ic(20,B,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,"AREA:"),c.Rb(),c.Sb(26,"div",14),c.Sb(27,"select",19),c.Ic(28,W,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",20),c.Sb(32,"label",21),c.Kc(33,"Month:"),c.Rb(),c.Sb(34,"div",14),c.Sb(35,"select",22),c.Ic(36,j,2,2,"option",16),c.fc(37,"async"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(38,"div",3),c.Sb(39,"div",23),c.Sb(40,"button",24),c.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)}),c.Kc(41," Submit"),c.Rb(),c.Sb(42,"button",25),c.cc("click",function(){return e.ResetForm()}),c.Kc(43," Reset"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Sb(44,"ngx-spinner",26),c.Sb(45,"p",27),c.Kc(46," Loading... "),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.yb(1),c.mc("formGroup",e.GSMissingFiguresForm),c.yb(19),c.mc("ngForOf",c.gc(21,5,e.YEARS)),c.yb(8),c.mc("ngForOf",c.gc(29,7,e.AREAS)),c.yb(8),c.mc("ngForOf",c.gc(37,9,e.MONTHS)),c.yb(8),c.mc("fullScreen",!1))},directives:[R.t,R.m,R.g,R.h,R.q,R.l,R.e,O.m,C.b,C.c,M.a,R.o,R.s],pipes:[O.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}"]}),$),J=i("Iab2"),Q=i("IheW"),Z=i("EApP"),X=i("u47x"),tt=i("qvAe");function et(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 ot,nt=((ot=function(){function e(o,n,i,r,a,l){var s=this;t(this,e),this.fb=o,this.router=n,this.toastr=i,this.interactivityChecker=r,this.staticReportsService=a,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(t,e){0!==t.length&&s.staticReportsService.UploadFile(t,e,"GoldSalonStaticReports","MonthlyReports").subscribe(function(t){t.type===Q.d.UploadProgress?s.progress=Math.round(100*t.loaded/t.total):t.type===Q.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("GoldSalon","MonthlyPeriodic").subscribe(function(e){if(t.FileName=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("GoldSalon","MonthlyPeriodic",e).subscribe(function(e){null==e&&(o.MStaticReportsList.removeAt(t),o.toastr.warning("Deleted Successfully","GoldSalon"))},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("GoldSalon","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"):J.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 r=o[o.indexOf(document.activeElement)-1];r&&(r.focus(),r.select())}}},{key:"MStaticRports",get:function(){return this.MonthlyReportsForm.get("MStaticRports")}},{key:"MStaticReportsList",get:function(){return this.MonthlyReportsForm.get("MStaticReportsList")}}]),e}()).\u0275fac=function(t){return new(t||ot)(c.Mb(R.c),c.Mb(a.e),c.Mb(Z.b),c.Mb(X.d),c.Mb(tt.a),c.Mb(c.B))},ot.\u0275cmp=c.Gb({type:ot,selectors:[["app-monthly-reports"]],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,et,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:[R.t,R.m,R.g,R.h,R.a,R.l,R.e,R.b,O.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)}']}),ot);function it(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,at=((rt=function(){function e(o,n,i,r,a,l){var s=this;t(this,e),this.fb=o,this.interactivityChecker=n,this.staticReportsService=i,this.router=r,this.toastr=a,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(t,e){0!==t.length&&s.staticReportsService.UploadFile(t,e,"GoldSalonStaticReports","HistoricReports").subscribe(function(t){t.type===Q.d.UploadProgress?s.progress=Math.round(100*t.loaded/t.total):t.type===Q.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("GoldSalon","Historic").subscribe(function(e){if(t.FileName=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("GoldSalon","Historic",e).subscribe(function(e){null==e&&(o.HStaticReportsList.removeAt(t),o.toastr.warning("Deleted Successfully","GoldSalon"))},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("GoldSalon","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"):J.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 r=o[o.indexOf(document.activeElement)-1];r&&(r.focus(),r.select())}}},{key:"HStaticRports",get:function(){return this.HistoricReportsForm.get("HStaticRports")}},{key:"HStaticReportsList",get:function(){return this.HistoricReportsForm.get("HStaticReportsList")}}]),e}()).\u0275fac=function(t){return new(t||rt)(c.Mb(R.c),c.Mb(X.d),c.Mb(tt.a),c.Mb(a.e),c.Mb(Z.b),c.Mb(c.B))},rt.\u0275cmp=c.Gb({type:rt,selectors:[["app-historic-reports"]],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,it,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:[R.t,R.m,R.g,R.h,R.a,R.l,R.e,R.b,O.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)}']}),rt);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.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 lt,st=((lt=function(){function e(o,n,i,r,a,l){var s=this;t(this,e),this.fb=o,this.router=n,this.toastr=i,this.staticReportsService=r,this.interactivityChecker=a,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(t,e){0!==t.length&&s.staticReportsService.UploadFile(t,e,"GoldSalonStaticReports","GeneratorReports").subscribe(function(t){t.type===Q.d.UploadProgress?s.progress=Math.round(100*t.loaded/t.total):t.type===Q.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("GoldSalon","Generator").subscribe(function(e){if(t.FileName=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("GoldSalon","Generator",e).subscribe(function(e){null==e&&(o.GStaticReportsList.removeAt(t),o.toastr.warning("Deleted Successfully","GoldSalon"))},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("GoldSalon","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"):J.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 r=o[o.indexOf(document.activeElement)-1];r&&(r.focus(),r.select())}}},{key:"GStaticRports",get:function(){return this.GeneratorReportsForm.get("GStaticRports")}},{key:"GStaticReportsList",get:function(){return this.GeneratorReportsForm.get("GStaticReportsList")}}]),e}()).\u0275fac=function(t){return new(t||lt)(c.Mb(R.c),c.Mb(a.e),c.Mb(Z.b),c.Mb(tt.a),c.Mb(X.d),c.Mb(c.B))},lt.\u0275cmp=c.Gb({type:lt,selectors:[["app-generator-reports"]],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,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.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:[R.t,R.m,R.g,R.h,R.a,R.l,R.e,R.b,O.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)}']}),lt);function dt(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 pt,bt=((pt=function(){function e(o,n,i,r,a,l){var s=this;t(this,e),this.fb=o,this.router=n,this.toastr=i,this.interactivityChecker=r,this.staticReportsService=a,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(t,e){0!==t.length&&s.staticReportsService.UploadFile(t,e,"GoldSalonStaticReports","GroupStrategyReports_CY").subscribe(function(t){t.type===Q.d.UploadProgress?s.progress=Math.round(100*t.loaded/t.total):t.type===Q.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("GoldSalon","GroupStrategyClarins").subscribe(function(e){if(t.FileName=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("GoldSalon","GroupStrategyClarins",e).subscribe(function(e){null==e&&(o.CYStaticReportsList.removeAt(t),o.toastr.warning("Deleted Successfully","GoldSalon"))},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("GoldSalon","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"):J.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 r=o[o.indexOf(document.activeElement)-1];r&&(r.focus(),r.select())}}},{key:"CYStaticRports",get:function(){return this.ClarinsYearReportsForm.get("CYStaticRports")}},{key:"CYStaticReportsList",get:function(){return this.ClarinsYearReportsForm.get("CYStaticReportsList")}}]),e}()).\u0275fac=function(t){return new(t||pt)(c.Mb(R.c),c.Mb(a.e),c.Mb(Z.b),c.Mb(X.d),c.Mb(tt.a),c.Mb(c.B))},pt.\u0275cmp=c.Gb({type:pt,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,dt,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:[R.t,R.m,R.g,R.h,R.a,R.l,R.e,R.b,O.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)}']}),pt);function gt(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 ut,ft,ht,mt=((ut=function(){function e(o,n,i,r,a,l){var s=this;t(this,e),this.fb=o,this.router=n,this.toastr=i,this.interactivityChecker=r,this.staticReportsService=a,this.platformId=l,this.onUploadFinished=new c.n,this.UploadFile=function(t,e){0!==t.length&&s.staticReportsService.UploadFile(t,e,"GoldSalonStaticReports","GroupStrategyReports_FY").subscribe(function(t){t.type===Q.d.UploadProgress?s.progress=Math.round(100*t.loaded/t.total):t.type===Q.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("GoldSalon","GroupStrategyFiscal").subscribe(function(e){if(t.FileName=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("GoldSalon","GroupStrategyFiscal",e).subscribe(function(e){null==e&&(o.FYStaticReportsList.removeAt(t),o.toastr.warning("Deleted Successfully","GoldSalon"))},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("GoldSalon","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"):J.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 r=o[o.indexOf(document.activeElement)-1];r&&(r.focus(),r.select())}}},{key:"FYStaticRports",get:function(){return this.FiscalYearReportsForm.get("FYStaticRports")}},{key:"FYStaticReportsList",get:function(){return this.FiscalYearReportsForm.get("FYStaticReportsList")}}]),e}()).\u0275fac=function(t){return new(t||ut)(c.Mb(R.c),c.Mb(a.e),c.Mb(Z.b),c.Mb(X.d),c.Mb(tt.a),c.Mb(c.B))},ut.\u0275cmp=c.Gb({type:ut,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,gt,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:[R.t,R.m,R.g,R.h,R.a,R.l,R.e,R.b,O.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)}']}),ut),St=i("liBt"),Rt=[{path:"",data:{title:"Gold SalonReport"},children:[{path:"",redirectTo:"GoldSalonReports",pathMatch:"full"},{path:"",component:h,data:{title:"Gold Salon Reports"},children:[{path:"GoldSalonRetailSales",component:E,resolve:{Years:St.a},data:{title:"Independent Division: Monthly Retail Sales Snapshot"}},{path:"GoldSalonTargets",component:U,resolve:{Years:St.a},data:{title:"Independent Division: Account Targets"}},{path:"GoldSalonMissingFigures",component:q,resolve:{Years:St.a},data:{title:"Independent Division: Missing Figures"}},{path:"GoldSalon-MonthlyReports",component:nt,data:{title:"Independent Division: Monthly/Periodic Reports"}},{path:"GoldSalon-ClarinsYear",component:bt,data:{title:"Independent Division: Group Business Reports (Clarins Year)"}},{path:"GoldSalon-FiscalYear",component:mt,data:{title:"Independent Division: Group Business Reports (Fiscal Year)"}},{path:"GoldSalon-HistoricReports",component:at,data:{title:"Independent Division: Historic Reports"}},{path:"GoldSalon-GeneratorReports",component:st,data:{title:"Independent Division: Generator Reports"}}]}]}],vt=((ft=function e(){t(this,e)}).\u0275mod=c.Kb({type:ft}),ft.\u0275inj=c.Jb({factory:function(t){return new(t||ft)},imports:[[a.h.forChild(Rt)],a.h]}),ft),xt=i("H8qh"),Mt=((ht=function e(){t(this,e)}).\u0275mod=c.Kb({type:ht}),ht.\u0275inj=c.Jb({factory:function(t){return new(t||ht)},imports:[[vt,xt.a,M.b]]}),ht)}}])}();