iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://ecommerceDB.com/_nuxt/0gH3qB8c.js
import{aL as u,a5 as f}from"./llFuKhWI.js";import{_ as g,a as b}from"./CzSSHsEX.js";function h(e={}){var n,l;const m=e.locale??u.en_GB,r=e.value??((n=e.number)==null?void 0:n.value);let a=g({...((l=e.number)==null?void 0:l.options)??{},...e.options??{}});if(r==null)return e.placeholder??f.notAvailable;const o={minimumFractionDigits:a.minimumFractionDigits,maximumFractionDigits:a.maximumFractionDigits},s=b({minimumFractionDigits:1,maximumFractionDigits:1},o);a={signDisplay:"negative",...a,...s,style:"percent"};let t=new Intl.NumberFormat(m,a).format(r);if(typeof e.smallerThan=="number"){const i=typeof e.smallerThan=="number"?e.smallerThan:1,c=Number(t.replace("%",""));c-i&&(t=`<${new Intl.NumberFormat(m,a).format(i/100)}`)}return e.hideSymbol&&(t=t.replace("%","")),t}export{h as f};