import{g as a}from"./schemas-Cam1kIsU.js";import{V as n,Z as p}from"./index-9PRMimni.js";const{t:e}=n(),{yesOrNoOptions:m}=a();function l(r={}){return{columns:[{title:e("equipmentLibrary.equipmentMainLibrary.tableNum"),key:"num",width:80,render:(i,t)=>t+1},{title:e("equipmentLibrary.equipmentMainLibrary.equipmentCode"),key:"productCode",width:150},{title:e("equipmentLibrary.equipmentMainLibrary.equipmentName"),key:"productName",width:150},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.partNumber"),key:"partNumber",width:130},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.maker"),key:"maker",width:120},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.modelSpareParts"),key:"partModel",width:150},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.itemDescription"),key:"itemDescription",width:150},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.itemSpecification"),key:"itemSpecification",width:150},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.UOM"),key:"uomName",width:90},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.drawingPlateNumber"),key:"plateDrawingNumber",width:180,render:i=>i.drawing?p("a",{href:"javascript:",onClick:()=>{r?.handlePreviewImage(i.drawingUrl)}},i.plateDrawingNumber):i.plateDrawingNumber},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.critical"),key:"critical",width:100,render:i=>m.find(t=>t.value===i.critical)?.label},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.workingQty"),key:"workingQuantity",width:120},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.rob"),key:"ROB",width:100},{title:e("equipmentLibrary.equipmentMainLibrary.spareParts.classEssentialQty"),key:"classEssentialQuantity",width:150}]}}export{l as c};
