import{u}from"./chunk-APYRIPVN.js";import{s as o,t as d}from"./chunk-A7Q254KY.js";d();var v=class{static produceVatCodeField(a,r){return{id:"vatCode",searchable:!0,lazyLoad:!0,component:u,feature:r,apiRequest:e=>a.get(o.general.vatCodeLookup(e)),valueMapper:e=>e.vatCode,labelMapper:e=>`${e.vatCode} - ${e.vat}%`,modelToOptionMapper:(e,t)=>({vatCode:t.vatCode,vat:t.vat}),modelValueSetter:(e,t)=>(t.vat=e?.vat??0,e?.vatCode)}}static produceVatInCodeField(a,r){return{id:"vatCodeTR",searchable:!0,lazyLoad:!0,component:u,feature:r,apiRequest:e=>a.get(o.general.vatCodeLookup(e)),valueMapper:e=>e.vatCode,labelMapper:e=>`${e.vatCode} - ${e.vat}%`,modelToOptionMapper:(e,t)=>({vatCode:t.vatCodeTR,vat:t.vatIn}),modelValueSetter:(e,t)=>(t.vatIn=e?.vat??0,e?.vatCode)}}};export{v as a};
