import{r as c,ab as o,j as r,T as l,c as i}from"./main-TIUJvpaR.js";const x=c.memo(({value:s,currency:a})=>{const e=o({style:"currency",currency:a,currencyDisplay:"narrowSymbol"});return isNaN(s)&&(s=0),r.jsx(c.Fragment,{children:e.format(s)})});function d({price:s,variant:a="slash",className:e,priceClassName:m,periodClassName:t}){if(!s)return null;const n=r.jsx(l,{message:s.interval});return r.jsxs("div",{className:i("flex items-center gap-6",e),children:[r.jsx("div",{className:m,children:r.jsx(x,{value:s.amount/(s.interval_count??1),currency:s.currency})}),a==="slash"?r.jsxs("div",{className:t,children:[" / ",n]}):r.jsxs("div",{className:t,children:[r.jsx(l,{message:"per"})," ",r.jsx("br",{})," ",n]})]})}export{d as F,x as a};
