(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{Iab2:function(t,e,o){var n,i;void 0===(i="function"==typeof(n=function(){"use strict";function e(t,e,o){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){a(n.response,e,o)},n.onerror=function(){console.error("could not download file")},n.send()}function o(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(o)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(t,r,a){var c=i.URL||i.webkitURL,s=document.createElement("a");s.download=r=r||t.name||"download",s.rel="noopener","string"==typeof t?(s.href=t,s.origin===location.origin?n(s):o(s.href)?e(t,r,a):n(s,s.target="_blank")):(s.href=c.createObjectURL(t),setTimeout(function(){c.revokeObjectURL(s.href)},4e4),setTimeout(function(){n(s)},0))}:"msSaveOrOpenBlob"in navigator?function(t,i,r){if(i=i||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,r),i);else if(o(t))e(t,i,r);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){n(a)})}}:function(t,o,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,o,n);var c="application/octet-stream"===t.type,s=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||c&&s||r)&&"undefined"!=typeof FileReader){var p=new FileReader;p.onloadend=function(){var t=p.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},p.readAsDataURL(t)}else{var d=i.URL||i.webkitURL,b=d.createObjectURL(t);a?a.location=b:location.href=b,a=null,setTimeout(function(){d.revokeObjectURL(b)},4e4)}});i.saveAs=a.saveAs=a,t.exports=a})?n.apply(e,[]):n)||(t.exports=i)},OUGR:function(t,e,o){"use strict";o.d(e,"a",function(){return r});var n=o("8Y7J"),i=o("IheW");let r=(()=>{class t{constructor(t,e){this.http=t,this.BaseURL="",this.BaseURL="http://localhost:4200/"===e?"https://localhost:44301/api/ClarinsReport/":e+"api/ClarinsReport/"}rptWeeklyConsultantSales(t,e,o,n,i){return this.http.get(this.BaseURL+"rptWeeklyConsultantSales?Store="+t+"&Year="+e+"&Area="+o+"&Empno="+n+"&ReportType="+i,{responseType:"blob"})}rptWeeklyCounterSales(t,e,o,n,i,r,a,c){return this.http.get(this.BaseURL+"rptWeeklyCounterSales?Store="+t+"&Year="+e+"&Area="+o+"&STOGRPCODE="+n+"&Region="+i+"&Town="+r+"&IPAD="+a+"&Additional="+c,{responseType:"blob"})}rptWeeklyBeautyCoachSales(t,e,o,n){return this.http.get(this.BaseURL+"rptWeeklyAngelSales?Year="+t+"&Area="+e+"&Empno="+o+"&MonthNum="+n,{responseType:"blob"})}rptNIWeeklyTargets(t,e,o,n){return this.http.get(this.BaseURL+"rptNIWeeklyTargets?Store="+t+"&Year="+e+"&Area="+o+"&IPAD="+n,{responseType:"blob"})}rptGBWeeklyTargets(t,e,o,n,i,r,a){return this.http.get(this.BaseURL+"rptGBWeeklyTargets?Store="+t+"&Year="+e+"&Area="+o+"&STOGRPCODE="+n+"&Region="+i+"&MonthNum="+r+"&IPAD="+a,{responseType:"blob"})}rptClarinsMissingSales(t,e,o,n,i,r,a){return this.http.get(this.BaseURL+"rptClarinsMissingSales?ReportType="+t+"&Year="+e+"&MonthNum="+o+"&STOGRPCODE="+n+"&Area="+i+"&Store="+r+"®ION="+a,{responseType:"blob"})}rptClarinsFlashReportByWeek(t,e,o,n,i,r,a){return this.http.get(this.BaseURL+"rptClarinsFlashReportByWeek?Store="+t+"&Year="+e+"&Area="+o+"&STOGRPCODE="+n+"&Region="+i+"&Town="+r+"&Additional="+a,{responseType:"blob"})}rptClarinsFlashReportByGroup(t,e){return this.http.get(this.BaseURL+"rptClarinsFlashReportByGroup?Year="+t+"&STOGRPCODE="+e,{responseType:"blob"})}rptClarinsDuplicateRecords(t,e){return this.http.get(this.BaseURL+"rptClarinsDuplicateRecords?Year="+t+"&MonthNum="+e,{responseType:"blob"})}}return t.\u0275fac=function(e){return new(e||t)(n.Zb(i.b),n.Zb("BASE_URL"))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},dufq:function(t,e,o){"use strict";o.d(e,"e",function(){return n}),o.d(e,"b",function(){return i}),o.d(e,"c",function(){return r}),o.d(e,"f",function(){return a}),o.d(e,"a",function(){return c}),o.d(e,"d",function(){return s});var n=function(t){return t.WeeklyConsultantSales="WeeklyConsultantSales",t.GBWeeklyTargets="GBWeeklyTargets",t.NIWeeklyTargets="NIWeeklyTargets",t.BeautyBARAccountWeeklySales="BeautyBARAccountWeeklySales",t.SkinSpaAccountSales="SkinSpaAccountSales",t.OccupancyWeeklyCheck="OccupancyWeeklyCheck",t.TherapistWeeklySales="TherapistWeeklySales",t.GoldSalonRetailSales="GoldSalonRetailSales",t.CFGAccountWeeklySales="CFGAccountWeeklySales",t}({}),i=function(t){return t.WeeklyConsultantSales="WeeklyConsultantSales",t.WeeklyAngelSales="WeeklyAngelSales",t.TherapistWeeklySales="TherapistWeeklySales",t.MobileTherapistWeeklySales="MobileTherapistWeeklySales",t.CFGAmbassadorWeeklySales="CFGAmbassadorWeeklySales",t}({}),r=function(t){return t[t.REGION_BB=1]="REGION_BB",t[t.REGION_GS=2]="REGION_GS",t}({}),a=function(t){return t[t.TOWN_CLARINS=1]="TOWN_CLARINS",t[t.TOWN_CFG=2]="TOWN_CFG",t}({}),c=function(t){return t[t.AREA_CLARINS=1]="AREA_CLARINS",t[t.AREA_ANGLE=2]="AREA_ANGLE",t[t.REA_BB=3]="REA_BB",t[t.AREA_GS=4]="AREA_GS",t[t.AREA_TWS=5]="AREA_TWS",t[t.AREA_MTWS=6]="AREA_MTWS",t[t.AREA_NI=7]="AREA_NI",t[t.AREA_CFG=8]="AREA_CFG",t}({}),s=function(t){return t[t.STOGRPCODE_CLARINS=1]="STOGRPCODE_CLARINS",t[t.STOGRPCODE_BB=2]="STOGRPCODE_BB",t[t.STOGRPCODE_GBT=3]="STOGRPCODE_GBT",t[t.STOGRPCODE_GS=4]="STOGRPCODE_GS",t[t.STOGRPCODE_OCC=5]="STOGRPCODE_OCC",t[t.STOGRPCODE_SSPA=6]="STOGRPCODE_SSPA",t[t.STOGRPCODE_CFG=7]="STOGRPCODE_CFG",t}({})},gLGn:function(t,e,o){"use strict";o.r(e),o.d(e,"OccupancyReportsModule",function(){return B});var n=o("iInd"),i=o("8Y7J"),r=o("Iab2"),a=o("IheW"),c=o("s7LF"),s=o("EApP"),l=o("qvAe"),p=o("u47x"),d=o("SVse");function b(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",23),i.Sb(1,"td",24),i.Nb(2,"input",25),i.Rb(),i.Sb(3,"td",26),i.Sb(4,"button",27),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",28),i.Rb(),i.Rb(),i.Sb(6,"td",26),i.Sb(7,"button",29),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",30),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let h=(()=>{class t{constructor(t,e,o,n,r,c){this.fb=t,this.router=e,this.toastr=o,this.staticReportsService=n,this.interactivityChecker=r,this.platformId=c,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"OccupancyStaticReports","GroupStrategyReports_FY").subscribe(t=>{t.type===a.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===a.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("Occupancy","GroupStrategyFiscal").subscribe(t=>{if(this.FileName=t,console.log(t),this.FileName.length>0){const t=this.FiscalYearReportsForm.controls.FYStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.FYStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.FiscalYearReportsForm.controls.FYStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("Occupancy","GroupStrategyFiscal",e).subscribe(e=>{null==e&&(this.FYStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","Occupancy"))},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("Occupancy","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"):r.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(c.c),i.Mb(n.e),i.Mb(s.b),i.Mb(l.a),i.Mb(p.d),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-fiscal-year"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:24,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","FYStaticRports"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","FYStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(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.Nb(11,"input",11),i.Rb(),i.Sb(12,"div",12),i.Sb(13,"button",13),i.Nb(14,"i",14),i.Sb(15,"input",15,16),i.cc("change",function(){i.zc(t);const o=i.wc(16);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.Sb(17,"div",17),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"table",21),i.Sb(22,"tbody"),i.Ic(23,b,9,1,"tr",22),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(12),i.mc("disabled",""===e.FYStaticRports.get("FILENAME").value||null===e.FYStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.FYStaticReportsList.controls))},directives:[c.t,c.m,c.g,c.h,c.a,c.l,c.e,c.b,d.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 u(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",23),i.Sb(1,"td",24),i.Nb(2,"input",25),i.Rb(),i.Sb(3,"td",26),i.Sb(4,"button",27),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",28),i.Rb(),i.Rb(),i.Sb(6,"td",26),i.Sb(7,"button",29),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",30),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let g=(()=>{class t{constructor(t,e,o,n,r,c){this.fb=t,this.staticReportsService=e,this.interactivityChecker=o,this.router=n,this.toastr=r,this.platformId=c,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"OccupancyStaticReports","GroupStrategyReports_CY").subscribe(t=>{t.type===a.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===a.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("Occupancy","GroupStrategyClarins").subscribe(t=>{if(this.FileName=t,console.log(t),this.FileName.length>0){const t=this.ClarinsYearReportsForm.controls.CYStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.CYStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.ClarinsYearReportsForm.controls.CYStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("Occupancy","GroupStrategyClarins",e).subscribe(e=>{null==e&&(this.CYStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","Occupancy"))},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("Occupancy","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"):r.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(c.c),i.Mb(l.a),i.Mb(p.d),i.Mb(n.e),i.Mb(s.b),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:24,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","CYStaticRports"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","CYStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(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.Nb(11,"input",11),i.Rb(),i.Sb(12,"div",12),i.Sb(13,"button",13),i.Nb(14,"i",14),i.Sb(15,"input",15,16),i.cc("change",function(){i.zc(t);const o=i.wc(16);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.Sb(17,"div",17),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"table",21),i.Sb(22,"tbody"),i.Ic(23,u,9,1,"tr",22),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(12),i.mc("disabled",""===e.CYStaticRports.get("FILENAME").value||null===e.CYStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.CYStaticReportsList.controls))},directives:[c.t,c.m,c.g,c.h,c.a,c.l,c.e,c.b,d.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})();const f=function(){return["OccupancyWeeklyCheck"]},m=function(){return["Occupancy-MonthlyReports"]},R=function(){return["Occupancy-ClarinsYear"]},S=function(){return["Occupancy-FiscalYear"]},y=function(){return["Occupancy-HistoricReports"]};let O=(()=>{class t{constructor(t){this.renderer=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.E))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-occupancyreports"]],decls:33,vars:10,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","220px"],["data-toggle","dropdown",1,"dropdown-toggle"],[1,"caret"],[1,"dropdown-menu","fontsize","position"],[3,"routerLink"],[1,"dropdown","custom-dropdown",2,"width","230px","text-align","center"],[1,"dropdown","custom-dropdown",2,"width","250px","text-align","right"],[1,"dropdown-menu","fontsize","position_Business"],[1,"dropdown","custom-dropdown",2,"width","200px","text-align","right"],[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,"Occupancy Weekly Check"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(13,"li",10),i.Sb(14,"a",9),i.Kc(15,"Monthly/Periodic Reports"),i.Rb(),i.Rb(),i.Sb(16,"li",11),i.Sb(17,"a",6),i.Kc(18,"Group Business Reports"),i.Nb(19,"span",7),i.Rb(),i.Sb(20,"ul",12),i.Sb(21,"li"),i.Sb(22,"a",9),i.Kc(23,"Clarins Year"),i.Rb(),i.Rb(),i.Sb(24,"li"),i.Sb(25,"a",9),i.Kc(26,"Fiscal Year"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(27,"li",13),i.Sb(28,"a",9),i.Kc(29,"Historic Reports"),i.Rb(),i.Rb(),i.Rb(),i.Sb(30,"div",14),i.Sb(31,"div",15),i.Nb(32,"router-outlet"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&t&&(i.yb(11),i.mc("routerLink",i.pc(5,f)),i.yb(3),i.mc("routerLink",i.pc(6,m)),i.yb(8),i.mc("routerLink",i.pc(7,R)),i.yb(3),i.mc("routerLink",i.pc(8,S)),i.yb(3),i.mc("routerLink",i.pc(9,y)))},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}.custom-dropdown[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:none;font-family:Century Gothic}.custom-dropdown[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:bisque;text-decoration:none}.custom-dropdown[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{left:-1px;top:41px}.dropdown-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-of-type:before{position:absolute;display:block;margin-top:-8px;margin-left:40px;width:0;height:0;border-right:8px solid transparent;border-bottom:8px solid #fff;border-left:8px solid transparent;content:""}.dropdown-menu[_ngcontent-%COMP%]{border:1px solid #cc0b0a;padding:3px}.fontsize[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:18px!important;font-weight:700!important;line-height:32px;font-family:Century Gothic}.position[_ngcontent-%COMP%]{width:280px}.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:250px}']}),t})();function C(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",23),i.Sb(1,"td",24),i.Nb(2,"input",25),i.Rb(),i.Sb(3,"td",26),i.Sb(4,"button",27),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",28),i.Rb(),i.Rb(),i.Sb(6,"td",26),i.Sb(7,"button",29),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",30),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let x=(()=>{class t{constructor(t,e,o,n,r,c,s){this.fb=t,this.router=e,this.http=o,this.toastr=n,this.interactivityChecker=r,this.staticReportsService=c,this.platformId=s,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"OccupancyStaticReports","MonthlyReports").subscribe(t=>{t.type===a.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===a.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles(),this.MStaticRports.reset()})},this.UploadFile1=t=>{if(0===t.length)return;let e=t[0];const o=new FormData;o.append("file",e,e.name),this.http.post("https://localhost:44301/api/UploadDownload/Upload",o,{reportProgress:!0,observe:"events"}).subscribe(t=>{t.type===a.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===a.d.Response&&(this.message="Upload success.",this.onUploadFinished.emit(t.body)),this.GetAllFiles()})},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("Occupancy","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("Occupancy","MonthlyPeriodic",e).subscribe(e=>{null==e&&(this.MStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","Occupancy"),this.MStaticReportsList.push(this.StaticReports()))},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("Occupancy","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"):r.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(c.c),i.Mb(n.e),i.Mb(a.b),i.Mb(s.b),i.Mb(p.d),i.Mb(l.a),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-monthlyreports"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:24,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","MStaticRports"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","MStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(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.Nb(11,"input",11),i.Rb(),i.Sb(12,"div",12),i.Sb(13,"button",13),i.Nb(14,"i",14),i.Sb(15,"input",15,16),i.cc("change",function(){i.zc(t);const o=i.wc(16);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.Sb(17,"div",17),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"table",21),i.Sb(22,"tbody"),i.Ic(23,C,9,1,"tr",22),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(12),i.mc("disabled",""===e.MStaticRports.get("FILENAME").value||null===e.MStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.MStaticReportsList.controls))},directives:[c.t,c.m,c.g,c.h,c.a,c.l,c.e,c.b,d.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:100px}.btn-height[_ngcontent-%COMP%], .my-btn-height[_ngcontent-%COMP%]{font-size:12px;padding:0;color:#fff}.my-btn-height[_ngcontent-%COMP%]{height:28px;width:30px;margin-top:0}.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 M(t,e){if(1&t){const t=i.Tb();i.Sb(0,"tr",23),i.Sb(1,"td",24),i.Nb(2,"input",25),i.Rb(),i.Sb(3,"td",26),i.Sb(4,"button",27),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",28),i.Rb(),i.Rb(),i.Sb(6,"td",26),i.Sb(7,"button",29),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",30),i.Rb(),i.Rb(),i.Rb()}2&t&&i.mc("formGroupName",e.index)}let v=(()=>{class t{constructor(t,e,o,n,r,c){this.fb=t,this.router=e,this.toastr=o,this.interactivityChecker=n,this.staticReportsService=r,this.platformId=c,this.onUploadFinished=new i.n,this.UploadFile=(t,e)=>{0!==t.length&&this.staticReportsService.UploadFile(t,e,"OccupancyStaticReports","HistoricReports").subscribe(t=>{t.type===a.d.UploadProgress?this.progress=Math.round(100*t.loaded/t.total):t.type===a.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("Occupancy","Historic").subscribe(t=>{if(this.FileName=t,console.log(t),this.FileName.length>0){const t=this.HistoricReportsForm.controls.HStaticReportsList;for(let e=0;e<this.FileName.length;e++)t.at(+e).get("DOWNLOADFILE").setValue(this.FileName[e].FileNameWithOutExtension),t.at(+e).get("FILENAME").setValue(this.FileName[e].FileName),e>=13&&e<this.FileName.length-1&&this.HStaticReportsList.push(this.StaticReports())}})}Delete(t,e){const o=this.HistoricReportsForm.controls.HStaticReportsList;for(let n=0;n<o.length;n++)if(t==n){e&&this.staticReportsService.Delete("Occupancy","Historic",e).subscribe(e=>{null==e&&(this.HStaticReportsList.removeAt(t),this.toastr.warning("Deleted Successfully","Occupancy"))},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("Occupancy","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"):r.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(c.c),i.Mb(n.e),i.Mb(s.b),i.Mb(p.d),i.Mb(l.a),i.Mb(i.B))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-historicreports"]],hostBindings:function(t,e){1&t&&i.cc("keyup",function(t){return e.keyevent(t)},!1,i.yc)},outputs:{onUploadFinished:"onUploadFinished"},decls:24,vars:3,consts:[[1,"container-fluid"],["autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-md-11"],[1,"shadow-sm","card","no-padding"],[1,"card-body","no-padding"],[1,"row",2,"padding-bottom","0px"],[1,"col-md-12"],["formGroupName","HStaticRports"],[1,"row","no-padding","mb-2"],[1,"col-sm-8",2,"padding-right","5px"],["type","text","formControlName","FILENAME","id","FILENAME","placeholder","New File Name",1,"form-control","form-control-sm","bg-white"],[1,"col-sm-4","no-padding","text-right"],[1,"upload-button","btn","blue-gradient","btn-block","btn-rounded","px-1","mr-1",3,"disabled"],[1,"fa","fa-upload"],["type","file",3,"change"],["file",""],[1,"shadow-sm","card"],[1,"card-body"],[1,"tableFixHead"],[1,"table-responsive-sm","fix-table"],["formArrayName","HStaticReportsList",1,"table","table-sm","table-borderless"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],[1,"no-padding;"],["type","text","formControlName","DOWNLOADFILE",1,"form-control","form-control-sm","no-border",2,"padding-left","15px"],[1,"no-padding;",2,"width","30px"],["type","button",1,"my-btn-height","btn","blue-gradient","btn-block","btn-rounded","px-1",3,"click"],["aria-hidden","true","title","Download",1,"fa","fa-download"],["type","button",1,"my-btn-height","btn","peach-gradient","btn-block","btn-rounded","px-1",3,"click"],["title","Delete",1,"fa","fa-trash"]],template:function(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.Nb(11,"input",11),i.Rb(),i.Sb(12,"div",12),i.Sb(13,"button",13),i.Nb(14,"i",14),i.Sb(15,"input",15,16),i.cc("change",function(){i.zc(t);const o=i.wc(16);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.Sb(17,"div",17),i.Sb(18,"div",18),i.Sb(19,"div",19),i.Sb(20,"div",20),i.Sb(21,"table",21),i.Sb(22,"tbody"),i.Ic(23,M,9,1,"tr",22),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(12),i.mc("disabled",""===e.HStaticRports.get("FILENAME").value||null===e.HStaticRports.get("FILENAME").value),i.yb(10),i.mc("ngForOf",e.HStaticReportsList.controls))},directives:[c.t,c.m,c.g,c.h,c.a,c.l,c.e,c.b,d.m],styles:['.row[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:1px 0}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:1px;padding:1px}button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px}.font-label[_ngcontent-%COMP%]{font-size:12px}.btn-height[_ngcontent-%COMP%]{height:30px;width:90px}.my-btn-height[_ngcontent-%COMP%]{font-size:12px;height:28px;width:30px;margin-top:0;padding:0;color:#fff}.upload-button[_ngcontent-%COMP%]{height:30px;overflow:hidden;position:relative;width:120px;color:#fff;padding-top:3px}.upload-button[_ngcontent-%COMP%]:after{content:" Add New File";color:#fff;font-size:14px;text-align:center}.upload-button[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{font-size:14px;left:0;opacity:0;position:absolute;top:0;padding-top:0}table[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:12px;font-weight:700;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;text-transform:uppercase}input[_ngcontent-%COMP%]::-moz-placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}input[_ngcontent-%COMP%]::placeholder{color:#c0bdbd;font-weight:300;text-transform:capitalize}.error[_ngcontent-%COMP%]{margin-top:1px;background:#ff0;padding:.5em;display:inline-block;font-size:.9em;margin-bottom:1px}.fix-table[_ngcontent-%COMP%]{height:375px;overflow-y:auto;width:100%}.tableFixHead[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}.table-responsive-cus[_ngcontent-%COMP%]{min-height:160px;overflow-x:auto;height:100px}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1px!important;height:32px!important;font-weight:400;vertical-align:middle}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:22px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0!important}.no-padding[_ngcontent-%COMP%]{padding:0}.no-border[_ngcontent-%COMP%]{border:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}.z-depth-1a[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(55,161,255,.26),0 4px 12px 0 rgba(121,155,254,.25)}.btn[_ngcontent-%COMP%]:hover, .z-depth-1-half[_ngcontent-%COMP%]{box-shadow:0 5px 11px 0 rgba(85,182,255,.28),0 4px 15px 0 rgba(36,133,255,.15)}']}),t})();var w=o("Cfvw"),F=o("dufq"),_=o("+CKi"),P=o("T435"),A=o("JqCM"),k=o("bH2/"),E=o("dbUT");function N(t,e){if(1&t&&(i.Sb(0,"option",36),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",36),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function G(t,e){1&t&&i.Nb(0,"a",37),2&t&&i.mc("innerHTML",e.$implicit.Name,i.Ac)}function I(t,e){1&t&&i.Nb(0,"div",37),2&t&&i.mc("innerHTML",e.$implicit,i.Ac)}function D(t,e){if(1&t&&(i.Sb(0,"option",36),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}function T(t,e){if(1&t&&(i.Sb(0,"option",36),i.Kc(1),i.Rb()),2&t){const t=e.$implicit;i.mc("value",t.Value),i.yb(1),i.Mc(" ",t.Name," ")}}const W=[{path:"",data:{title:"Occupancy Report"},children:[{path:"",redirectTo:"OccupancyReports",pathMatch:"full"},{path:"",component:O,data:{title:"Occupancy Reports"},children:[{path:"OccupancyWeeklyCheck",component:(()=>{class t{constructor(t,e,o,n,i,r){this.fb=t,this.router=e,this.activatedRoute=o,this.sharedService=n,this.occupancyReportService=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.CreateOccupancyWeeklyCheckForm()}CreateOccupancyWeeklyCheckForm(){this.OccupancyWeeklyCheckForm=this.fb.group({OccupancyWeeklyCheck:this.fb.group({YEAR:[""],AREA:[""],ACC:[""],STOGRPCODE:[""],REGION:[""]})})}get OccupancyWeeklyCheck(){return this.OccupancyWeeklyCheckForm.get("OccupancyWeeklyCheck")}ngOnInit(){this.YEARS=Object(w.a)([this.activatedRoute.snapshot.data.Years]),this.AllAccount=this.sharedService.GetStore(F.e.OccupancyWeeklyCheck),this.GetArea(),this.GetSTOGRPCODE(),this.GetRegion(),this.InitialValue()}InitialValue(){this.OccupancyWeeklyCheck.get("REGION").setValue("All"),this.OccupancyWeeklyCheck.get("AREA").setValue("All"),this.OccupancyWeeklyCheck.get("STOGRPCODE").setValue("All"),this.OccupancyWeeklyCheck.get("YEAR").setValue((new Date).getFullYear())}ResetForm(){this.OccupancyWeeklyCheckForm.reset(),this.InitialValue()}GetRegion(){this.sharedService.GetRegion(F.c.REGION_BB).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.REGION.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load REGIONS."))}GetArea(){this.sharedService.GetArea(F.a.AREA_CLARINS).subscribe(t=>{this.sharedService.datastore.data=t,this.sharedService.AREA.next(Object.assign({},this.sharedService.datastore).data),this.sharedService.datastore.data.unshift({Value:"All",Name:"All"})},t=>console.log("Could not load AREAS."))}GetSTOGRPCODE(){this.sharedService.GetSTOGRPCODE(F.d.STOGRPCODE_OCC).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(){}rptOccupancyWeeklyCheck(t,e,o,n,i){let r;this.occupancyReportService.rptOccupancyWeeklyCheck(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")})}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(c.c),i.Mb(n.e),i.Mb(n.a),i.Mb(_.a),i.Mb(P.b),i.Mb(A.c))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-occupancy-weekly-check"]],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","OccupancyWeeklyCheck"],["id","grad1"],[1,"col-md-12","full-report","report-round",2,"height","350px"],[1,"text-center",2,"margin-top","25px"],[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","Area",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","AREA",1,"form-control","form-control-sm"],["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","placeholder","searchKeyword","minQueryLength","itemTemplate","notFoundTemplate","debounceTime","selected","inputChanged","inputCleared"],["ngAutoCompleteStatic",""],["itemTemplateStatic",""],["notFoundTemplate",""],["for","Store Group",1,"col-sm-4","col-form-label","text-right","no-padding","mt-1"],["formControlName","STOGRPCODE",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","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.5)","size","small","color","#cc2222","type","ball-spin-clockwise-fade",3,"fullScreen"],[2,"color","#cc2222","font-size","22px"],[3,"value"],[3,"innerHTML"]],template:function(t,e){if(1&t&&(i.Sb(0,"div",0),i.Sb(1,"form",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"div",8),i.Sb(9,"div",3),i.Sb(10,"h4",9),i.Kc(11,"Report Parameters"),i.Rb(),i.Sb(12,"h4",10),i.Kc(13,"Enter values for the Parameters"),i.Rb(),i.Rb(),i.Sb(14,"div",11),i.Sb(15,"div",12),i.Sb(16,"label",13),i.Kc(17,"Year:"),i.Rb(),i.Sb(18,"div",14),i.Sb(19,"select",15),i.Ic(20,N,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,L,2,2,"option",16),i.fc(29,"async"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(30,"div",17),i.Sb(31,"div",12),i.Sb(32,"label",20),i.Kc(33,"Store:"),i.Rb(),i.Sb(34,"div",21),i.Sb(35,"ng-autocomplete",22,23),i.cc("selected",function(t){return e.selectEvent(t)})("inputChanged",function(t){return e.onChangeSearch(t)})("inputCleared",function(){return e.searchCleared()}),i.fc(37,"async"),i.Rb(),i.Ic(38,G,1,1,"ng-template",null,24,i.Jc),i.Ic(40,I,1,1,"ng-template",null,25,i.Jc),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,D,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",28),i.Sb(52,"label",29),i.Kc(53,"Region:"),i.Rb(),i.Sb(54,"div",14),i.Sb(55,"select",30),i.Ic(56,T,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",31),i.Sb(60,"button",32),i.cc("click",function(){return e.rptOccupancyWeeklyCheck(e.OccupancyWeeklyCheck.get("ACC").value,e.OccupancyWeeklyCheck.get("YEAR").value,"All"===e.OccupancyWeeklyCheck.get("AREA").value?0:e.OccupancyWeeklyCheck.get("AREA").value,e.OccupancyWeeklyCheck.get("STOGRPCODE").value,"All"===e.OccupancyWeeklyCheck.get("REGION").value?0:e.OccupancyWeeklyCheck.get("REGION").value)}),i.Kc(61," Submit"),i.Rb(),i.Sb(62,"button",33),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",34),i.Sb(65,"p",35),i.Kc(66," Loading... "),i.Rb(),i.Rb(),i.Rb()),2&t){const t=i.wc(39),o=i.wc(41);i.yb(1),i.mc("formGroup",e.OccupancyWeeklyCheckForm),i.yb(19),i.mc("ngForOf",i.gc(21,13,e.YEARS)),i.yb(8),i.mc("ngForOf",i.gc(29,15,e.AREAS)),i.yb(7),i.mc("data",i.gc(37,17,e.AllAccount))("placeholder",e.placeholder)("searchKeyword",e.keyword)("minQueryLength",2)("itemTemplate",t)("notFoundTemplate",o)("debounceTime",10),i.yb(13),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:[c.t,c.m,c.g,c.h,c.q,c.l,c.e,d.m,k.a,E.b,E.c,A.a,c.o,c.s],pipes:[d.b],styles:["button[_ngcontent-%COMP%]{height:28px;width:75px;padding-top:5px;padding-left:5px;padding-right:5px;margin-right:0;margin-left:2px}label[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%] .ng-autocomplete{line-height:0!important;white-space:nowrap}[_nghost-%COMP%] .autocomplete-container{box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);position:relative;overflow:visible;height:30px;border-radius:4px;padding-right:0;margin-right:0}[_nghost-%COMP%] .autocomplete-container .input-container input{font-size:12px;font-weight:500!important;box-sizing:border-box;border:none;box-shadow:none;outline:none;background-color:#fff;color:rgba(0,0,0,.87);width:100%;line-height:4px;height:30px;padding:0 5px 0 12px}[_nghost-%COMP%] .autocomplete-container .input-container .x{position:absolute;right:2px;margin:auto;cursor:pointer;top:50%;transform:translateY(-50%)}[_nghost-%COMP%] .autocomplete-container .suggestions-container{display:grid;padding-right:1px;border:1px solid #b0c4de}[_nghost-%COMP%] .autocomplete-container .suggestions-container li:hover a{background-color:rgba(255,0,0,.6);color:#fff!important}[_nghost-%COMP%] .autocomplete-container .suggestions-container ul{padding:0;margin:0;max-height:300px;overflow-y:auto}[_nghost-%COMP%] .autocomplete-container .suggestions-container ul li a{padding:11px 5px 10px 12px;display:block;text-decoration:none;cursor:pointer;color:rgba(0,0,0,.87);font-size:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-weight:700!important}.full-report[_ngcontent-%COMP%]{border:1px solid #e6e9ed}.report-round[_ngcontent-%COMP%]{border-radius:10px}.report-head-bg[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;background:#e6e9ed}.report-foot-bg[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:#e6e9ed;height:40px}.selectwidthauto[_ngcontent-%COMP%]{width:auto!important}#grad1[_ngcontent-%COMP%]{height:405px;background:linear-gradient(180deg,#fff,#f5f5f5)}.no-padding[_ngcontent-%COMP%]{padding:0}.right-padding[_ngcontent-%COMP%]{padding-right:10px;font-weight:400}"]}),t})(),resolve:{Years:o("liBt").a},data:{title:"Occupancy: Occupancy Weekly Check"}},{path:"Occupancy-MonthlyReports",component:x,data:{title:"Occupancy: Monthly/Periodic Reports"}},{path:"Occupancy-ClarinsYear",component:g,data:{title:"Occupancy: Group Business Reports (Clarins Year)"}},{path:"Occupancy-FiscalYear",component:h,data:{title:"Occupancy: Group Business Reports (Fiscal Year)"}},{path:"Occupancy-HistoricReports",component:v,data:{title:"Occupancy: Historic Reports"}}]}]}];let Y=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[n.h.forChild(W)],n.h]}),t})();var U=o("H8qh");let B=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[],imports:[[Y,U.a,A.b]]}),t})()},qvAe:function(t,e,o){"use strict";o.d(e,"a",function(){return c});var n=o("IheW"),i=o("lJxs"),r=o("8Y7J");const a={headers:new n.e({"Content-Type":"application/json",Authorization:"jwt-token"})};let c=(()=>{class t{constructor(t,e){this.http=t,this.BaseURL="",this.BaseURL="http://localhost:4200/"===e?"https://localhost:44301/api/UploadDownload/":e+"api/UploadDownload/"}StaticReportDetails(t,e){return this.http.get(this.BaseURL+"GetAllFileDetails?mejortype="+t+"&subtype="+e)}Delete(t,e,o){return this.http.delete(this.BaseURL+"DeleteFile?mejor="+t+"&subtype="+e+"&fileName="+o,a).pipe(Object(i.a)(t=>t))}UploadFile(t,e,o,i){let r=t[0];const a=new FormData;a.append("file",r,r.name);const c=new n.f("POST",this.BaseURL+"Upload?NewName="+e+"&mejorType="+o+"&subType="+i,a,{reportProgress:!0,responseType:"blob"});return this.http.request(c)}DownloadFile(t,e,o){return this.http.get(this.BaseURL+"Download?mejortype="+t+"&subtype="+e+"&fileName="+o,{responseType:"blob"}).pipe(Object(i.a)(t=>t))}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(n.b),r.Zb("BASE_URL"))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()}}]);