import{a as i}from"./chunk-MIJLCF6S.js";import{a as c,b as t}from"./chunk-33DRKEJ4.js";import{k as o}from"./chunk-ZT24ABBQ.js";import{a as n}from"./chunk-JWAFQ6PQ.js";var f="REFERENCE",p="SALE",a={reference:f,sale:p};var S="sufficientStock",l="limitedStock",d="noStock",k="preorder",m="expired",r={sufficientStock:S,limitedStock:l,noStock:d,preorder:k,expired:m};function R(e){switch(e){case c.acquisition:return"acquisition";case c.installment:return"loyalty-in-rate";case c.standard:return"standard";case c.subscription:return"loyalty-fara-rate"}}function v(){return window.innerWidth<576?"mobile":"desktop"}function C(e){return i(e,n.EUR)?.value??0}function b(e){switch(e){case r.expired:return t.outOfStock;case r.limitedStock:return t.inStock;case r.noStock:return t.outOfStock;case r.preorder:return t.outOfStock;case r.sufficientStock:return t.inStock;case o.EndOfLife:return t.outOfStock;case o.InStock:return t.inStock;case o.OutOfStock:return t.outOfStock;case o.Preorder:return t.outOfStock;default:return t.inStock}}function w(e,u=a.sale){return e?.find(s=>s.priceType===u)?.moneyEurWithVat?.value??0}export{a,R as b,v as c,C as d,b as e,w as f};