import{s as n}from"./chunk-RAGTUOY6.js";import{q as t,r as v}from"./chunk-DYEAP73Z.js";var i=function(e){return e.POS="POS",e.Wholesale="Wholesale",e.ReceivedBills="ReceivedBills",e.OrderBuyer="OrderBuyer",e}(i||{}),s=function(e){return e.Wholesale="I",e.ReceivedBills="P",e}(s||{}),u=function(e){return e.Wholesale="PrometIzd",e.POS="PrometPOS",e.ReceivedBills="PrometPre",e.SupplierBuyerOrders="NarocKup",e.Inventory="PrometInventura",e.ReceivingAdvancePayment="PrometDaniAvansi",e.IssuingAdvancePayment="PrometIzdaniAvansi",e.POSAndWholesale="POSAndWholesale",e.TradeRecords="TradeRecords",e.OrdersBuyer="OrdersBuyer",e.OrdersSupplier="OrdersSupplier",e.PriceChange="PriceChange",e}(u||{});v();var l=class{static produceVatCodeField(d,o){return{id:"vatCode",searchable:!0,lazyLoad:!0,component:n,feature:o,apiRequest:r=>d.get(t.general.vatCodeLookup(r)),valueMapper:r=>r.vatCode,labelMapper:r=>`${r.vatCode} - ${r.vat}%`,modelToOptionMapper:(r,a)=>({vatCode:a.vatCode,vat:a.vat}),modelValueSetter:(r,a)=>(a.vat=r?.vat??0,console.log("MODEL",a.vat,r),r?.vatCode)}}};export{i as a,s as b,u as c,l as d};
