import{r as registerInstance,h}from"./index-08b73e9e.js";import{d as dist}from"./index-dee6801e.js";import"./_commonjsHelpers-9943807e.js";var styleCss=".sc-smoothly-display-h{display:block}[hidden].sc-smoothly-display-h{display:none}";var SmoothlyDisplay=function(){function s(s){registerInstance(this,s)}s.prototype.render=function(){var s;var t=this.type;switch(t){default:s=dist.format(this.value,t);break;case"email":s=h("a",{href:"mailto:"+this.value},dist.format(this.value,t));break;case"phone":s=h("a",{href:"tel:"+this.value},dist.format(this.value,t,this.country));break;case"postal-code":s=dist.format(this.value,t,this.country);break;case"price":s=dist.format(this.value,t,this.currency);break}return s};return s}();SmoothlyDisplay.style=styleCss;export{SmoothlyDisplay as smoothly_display};