import{a as u}from"./chunk-ABXDWOZI.js";import"./chunk-4NGHU5PZ.js";import"./chunk-NWOU67BD.js";import"./chunk-TBSUMTHM.js";import"./chunk-CKJJI5MU.js";import"./chunk-TAT3HGQ4.js";import"./chunk-4SWKWV3M.js";import"./chunk-DY645AKB.js";import"./chunk-5I5ZFUTL.js";import"./chunk-QN66BDDM.js";import"./chunk-JBNKEIUX.js";import"./chunk-5SW267PH.js";import"./chunk-PU7DBJLZ.js";import"./chunk-3DDBG3AR.js";import"./chunk-5MLUVH77.js";import"./chunk-SMMBZMNL.js";import"./chunk-S5GA3KRV.js";import"./chunk-EFONMPAR.js";import"./chunk-YQXLYYOT.js";import"./chunk-6RITFGP2.js";import"./chunk-HGXDKXJP.js";import"./chunk-WQUXAKOL.js";import"./chunk-LYNKRDJC.js";import"./chunk-SKY4LXUD.js";import"./chunk-BZT47AWD.js";import"./chunk-5WQBRAHK.js";import"./chunk-4FTRQKHH.js";import"./chunk-BYXBJQAS.js";import"./chunk-TTWRMELT.js";import"./chunk-EMJ4QQUL.js";import"./chunk-QPCAJSKO.js";import"./chunk-QV67LFVX.js";import"./chunk-4O3FVBGX.js";import"./chunk-TGWIHQDX.js";import"./chunk-Q5KZV54I.js";import"./chunk-YHVRQUSB.js";import"./chunk-N7PBPSN6.js";import"./chunk-3Z7PXZF3.js";import"./chunk-43BLBOSI.js";import"./chunk-IWSLIKCG.js";import"./chunk-2DXJE6G7.js";import"./chunk-7RP244JU.js";import"./chunk-LHGSJXTX.js";import"./chunk-ZKNPBXGB.js";import{b as l}from"./chunk-S3ADKFO2.js";import"./chunk-I5MYHHJE.js";import{Fb as i,Ib as n,gb as a,lb as o}from"./chunk-CKLXM6EG.js";import"./chunk-TSRGIXR5.js";var d=class r{constructor(s){this.translate=s;this.buildHighlightStyles(),this.translate.onLangChange.subscribe(()=>{this.buildHighlightStyles()})}draftStyle={borderRadius:"8px",border:" 1px solid #BF9300",background:"rgba(191, 147, 0, 0.04)",display:"flex",padding:"4px 8px",color:"#BF9300",textAlign:"center",justifyContent:"center"};submittedStyle={borderRadius:"8px",border:" 1px solid #1D8702",background:"rgba(191, 147, 0, 0.04)",display:"flex",padding:"4px 8px",gap:"10px",color:"#1D8702",justifyContent:"center"};rejectedStyle={borderRadius:"8px",border:" 1px solid #da3030",background:"rgba(218, 48, 48, 0.04)",display:"flex",padding:"4px 8px",gap:"10px",color:"#da3030",justifyContent:"center"};otherStyle={color:"grey",backgroundColor:"#f0f0f0ff",fontWeight:"bold",padding:"10px",borderRadius:"5px",whiteSpace:"nowrap"};buildHighlightStyles(){let s=this.translate.instant("status.draft"),t=this.translate.instant("status.submit"),e=this.translate.instant("status.accept_po"),p=this.translate.instant("status.rejected");this.tableHighlightedFields={"status.value":{fieldToCheck:"status.value",stylesByValue:{[s]:this.draftStyle,[t]:this.submittedStyle,[e]:this.submittedStyle,[p]:this.rejectedStyle,__other__:this.submittedStyle},defaultStyle:this.otherStyle}}}tableHighlightedFields={};floorsHeaders=["id","dsp.dsp_number","return_dsp_number","created_at","updated_at","status.value"];Field;ngOnInit(){this.Field=[{type:"dateWithOptions",title:"date_range",controlName:"date",fromControlName:"from",toControlName:"to",showQuickButtons:!0,class:"col-6",parentClass:"col-6"},{type:"select",title:"status",class:"col-4",options:[{name:this.translate.instant("submitted"),id:"submitted"},{name:this.translate.instant("approved-RR"),id:"approved"},{name:this.translate.instant("rejected"),id:"rejected"}],controlName:"status"}]}titlesOfMenu=[{label:"show",action:"show",routerLink:"/Return_Request/show-return-request"}];static \u0275fac=function(t){return new(t||r)(a(l))};static \u0275cmp=o({type:r,selectors:[["app-return-request-list"]],decls:1,vars:18,consts:[["routeOfButton2","/finance/payment-type","titleOfButton2","add-payment-type","url","procurement/return-dsp","translationPrefixx","return_requests","titleOfPage","return_requests","deleteRowUrl","procurement/payment-type/delete","deleteRowUrls","procurement/payment-type/delete","classesForTable","designOne","iconOfBtn2","fa-solid fa-plus","translationPrefix","return_requests",3,"ShowButton2","ShowButton","Menu","showIconORTITLE","filterKeyData","ShowModal","headers","showMenubar","ShowButton3","showFilter","showBreadcrumb","filterSearchField","showEyeIcon","removeBulkDelete","tableHighlightedFields","useCustomStatusStyling"]],template:function(t,e){t&1&&n(0,"app-page-body",0),t&2&&i("ShowButton2",!1)("ShowButton",!1)("Menu",e.titlesOfMenu)("showIconORTITLE",!0)("filterKeyData",e.floorsHeaders)("ShowModal",!1)("headers",e.floorsHeaders)("showMenubar",!0)("ShowButton3",!1)("showFilter",!0)("ShowButton",!1)("showBreadcrumb",!0)("filterKeyData",e.floorsHeaders)("filterSearchField",e.Field)("showEyeIcon",!0)("removeBulkDelete",!0)("tableHighlightedFields",e.tableHighlightedFields)("useCustomStatusStyling",!1)},dependencies:[u],encapsulation:2})};export{d as ReturnRequestList};
