"use strict";(self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[]).push([[8249],{8249:function(t,s,i){i.r(s),i.d(s,{sc_format_bytes:function(){return a}});var e=i(6892);const a=class{constructor(t){(0,e.r)(this,t),this.locale=void 0,this.value=0,this.unit="byte",this.display="short"}render(){if(isNaN(this.value))return"";const t="bit"===this.unit?["","kilo","mega","giga","tera"]:["","kilo","mega","giga","tera","peta"],s=Math.max(0,Math.min(Math.floor(Math.log10(this.value)/3),t.length-1)),i=t[s]+this.unit,e=parseFloat((this.value/Math.pow(1e3,s)).toPrecision(3));return new Intl.NumberFormat(this.locale,{style:"unit",unit:i,unitDisplay:this.display}).format(e)}};a.style=":host{display:inline-block}"}}]);