const n=e=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR",minimumFractionDigits:0}).format(e),o=e=>e?new Date(e).toLocaleString("id-ID"):"-",r=e=>e.toLocaleString("id-ID"),c=e=>({percentage:"Percentage Discount",fixed:"Fixed Discount",bonus_gold_fixed:"Bonus Gold (Fixed)",bonus_gold_percentage:"Bonus Gold (Percentage)"})[e]||e,s=(e,t)=>{switch(e){case"percentage":case"bonus_gold_percentage":return`${t}%`;case"fixed":return n(t);case"bonus_gold_fixed":return`${r(t)} Gold`;default:return String(t)}};export{r as a,o as b,s as c,n as f,c as g};
