import{a as c}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 s,Ib as n,gb as r,lb as i}from"./chunk-CKLXM6EG.js";import"./chunk-TSRGIXR5.js";var d=class o{constructor(a){this.translate=a}showHeaders=!0;titleOfDynamicButton="add_product";itemss;filterField;floorsHeaders=["id","id_auto","product_name","barcode","category.name","brand_name","created_at","updated_at","status"];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:"/settings/products/show_product",permission:"view products"},{label:"edit",action:"edit",routerLink:"/settings/products/edit_product",permission:"update products"},{label:"delete",action:"delete",paramName:"",permission:"delete products"}];ngOnInit(){this.filterField=[{type:"dateWithOptions",title:"date_range",controlName:"date",fromControlName:"from",toControlName:"to",showQuickButtons:!0,class:"col-6",parentClass:"col-4"},{type:"select",title:"category_id",controlName:"category_id",class:"col-2",optionsUrl:"procurement/public/category/show-categories",options:[],nestedName:"category"},{type:"select",title:"sub_category_id",controlName:"sub_category_id",class:"col-3",optionsUrl:"procurement/public/category/show-categories?child=true",options:[],nestedName:"category"},{type:"select",title:"brand_id",controlName:"brand_id",class:"col-3",optionsUrl:"procurement/public/brands/list",options:[]},{type:"select",title:"status",class:"col-3",options:[{name:this.translate.instant("yes"),id:"active"},{name:this.translate.instant("no"),id:"inactive"}],controlName:"status"}]}static \u0275fac=function(e){return new(e||o)(r(l))};static \u0275cmp=i({type:o,selectors:[["app-product-basic-data"]],decls:1,vars:14,consts:[["titleOfButton2","add-product","routeOfButton2","add_product","url","procurement/product/product_brand","translationPrefixx","products","titleOfPage","products","deleteRowUrl","procurement/product/delete","classesForTable","designOne","iconOfBtn2","fa-solid fa-plus",3,"Menu","showIconORTITLE","filterKeyData","filterSearchField","ShowModal","menuList","headers","showMenubar","showIconBtn2","ShowButton2","showFilter","showTitle","showBreadcrumb","titleOfDynamicButton"]],template:function(e,t){e&1&&n(0,"app-page-body",0),e&2&&s("Menu",t.titlesOfMenu)("showIconORTITLE",!0)("filterKeyData",t.floorsHeaders)("filterSearchField",t.filterField)("ShowModal",!1)("menuList",t.itemss)("headers",t.floorsHeaders)("showMenubar",!0)("showIconBtn2",!0)("ShowButton2",!1)("showFilter",!0)("showTitle",!1)("showBreadcrumb",!0)("titleOfDynamicButton",t.titleOfDynamicButton)},dependencies:[c],encapsulation:2})};export{d as ProductBasicData};
