import{a as p}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 s,gb as r,lb as n}from"./chunk-CKLXM6EG.js";import"./chunk-TSRGIXR5.js";var d=class o{constructor(a){this.translate=a}showHeaders=!0;itemss;floorsHeaders=["id","name","percentage","vendor_type.value","created_at","updated_at","active"];fields=[{type:"input",title:"Barcode",controlName:"barcode"},{type:"input",title:"Product Name",controlName:"brand_name"},{type:"media",title:"Image",controlName:"brand_image"},{type:"input",title:"Category (Arabic)",controlName:"category_name"},{type:"input",title:"Supplier",controlName:"supplier"}];titlesOfMenu=[{label:"show",action:"show",routerLink:"/finance/prepayment/show_pre_payment"},{label:"edit",action:"edit",routerLink:"/finance/prepayment/edit_pre_payment"},{label:"delete",action:"delete",permission:"delete deposit-rule"}];tableHighlightedFields={status:{fieldToCheck:"is_active",stylesByValue:{false:{color:"red",backgroundColor:"#DA303014",fontWeight:"bold",padding:"10px",borderRadius:"5px",whiteSpace:"nowrap"},true:{color:"#1D8702",backgroundColor:"#1D870214",fontWeight:"bold",padding:"10px",borderRadius:"5px",whiteSpace:"nowrap"},__other__:{color:"grey",backgroundColor:"#1f028709",fontWeight:"bold",padding:"10px",borderRadius:"5px",whiteSpace:"nowrap"}},defaultStyle:{}}};Field;ngOnInit(){this.Field=[{type:"dateWithOptions",title:"date_range",controlName:"date",fromControlName:"from",toControlName:"to",showQuickButtons:!0,class:"col-6",parentClass:"col-8"},{type:"select",title:"status",class:"col-4",options:[{name:this.translate.instant("yes"),id:1},{name:this.translate.instant("no"),id:0}],controlName:"active"}]}static \u0275fac=function(t){return new(t||o)(r(l))};static \u0275cmp=n({type:o,selectors:[["app-down-payments-list"]],decls:1,vars:15,consts:[["url","procurement/deposite-rule","translationPrefixx","prepayment","titleOfPage","prepayment","deleteRowUrl","procurement/deposite-rule/delete","deleteRowUrls","procurement/deposite-rule/delete","classesForTable","designOne","title","add-product","icon","fa-solid fa-plus",3,"Menu","showIconORTITLE","filterKeyData","filterSearchField","ShowModal","menuList","headers","showMenubar","showIconBtn2","ShowButton2","showFilter","showTitle","showTitleInTable","showBreadcrumb","bulkmode"]],template:function(t,e){t&1&&s(0,"app-page-body",0),t&2&&i("Menu",e.titlesOfMenu)("showIconORTITLE",!0)("filterKeyData",e.floorsHeaders)("filterSearchField",e.Field)("ShowModal",!1)("menuList",e.itemss)("headers",e.floorsHeaders)("showMenubar",!0)("showIconBtn2",!0)("ShowButton2",!1)("showFilter",!0)("showTitle",!1)("showTitleInTable",!0)("showBreadcrumb",!0)("bulkmode",!0)},dependencies:[p],styles:["[_nghost-%COMP%]     .custom-checkbox-group .form-check{flex-direction:column;gap:.5rem!important}"]})};export{d as DownPaymentsList};
