import{na as o}from"./chunk-GJDGQISV.js";var r=class a{quantity={minimumFraction:0,maximumFraction:0};amount={minimumFraction:0,maximumFraction:0};constructor(){let n=localStorage.getItem("quantityFraction"),t=localStorage.getItem("amountFraction");if(n){let i=JSON.parse(n);this.setQuantityFraction(i.Minimum,i.Maximum)}if(t){let i=JSON.parse(t);this.setAmountFraction(i.Minimum,i.Maximum)}}setQuantityFraction(n,t){this.quantity.minimumFraction=n,this.quantity.maximumFraction=t,this.saveFractionToStorage("quantity",n,t)}setAmountFraction(n,t){this.amount.minimumFraction=n,this.amount.maximumFraction=t,this.saveFractionToStorage("amount",n,t)}saveFractionToStorage(n,t,i){try{let m={Minimum:t,Maximum:i};localStorage.setItem(n==="quantity"?"quantityFraction":"amountFraction",JSON.stringify(m))}catch(m){}}static \u0275fac=function(t){return new(t||a)};static \u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})};export{r as a};
