import{s as r}from"./chunk-HLHVLECB.js";import{s as a,t as p}from"./chunk-PT2SMVM6.js";p();var o=class{static produceVatCodeField(v,n){return{id:"vatCode",searchable:!0,lazyLoad:!0,component:r,feature:n,apiRequest:e=>v.get(a.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,console.log("MODEL",t.vat,e),e?.vatCode)}}};export{o as a};
