import{n as e}from"./rolldown-runtime-BG2f4sTM.js";function t({intl:e,amount:t,currencyCode:n,minorUnitExponent:i}){return t==null?null:e.formatNumber(t,r(n,i))}function n({intl:e,amount:t,currencyCode:n,minorUnitExponent:i}){if(t==null)return null;let a=n,o=e.formatNumberToParts(t,r(n,i,`symbol`));if(o.some(({type:e,value:t})=>e===`currency`&&t===n)){let s=e.formatNumberToParts(t,r(n,i));s.some(({type:e,value:t})=>e===`currency`&&t!==n)?o=s:a=null}return{currencyCodeLabel:a,formatted:o.map(({value:e})=>e).join(``),parts:o}}function r(e,t,n=`narrowSymbol`){return{style:`currency`,currency:e,currencyDisplay:n,trailingZeroDisplay:`stripIfInteger`,minimumFractionDigits:t??void 0,maximumFractionDigits:t??void 0}}var i=e((()=>{}));export{n,i as r,t};
//# sourceMappingURL=plan-pricing-CDdVyvV-.js.map