import{r as registerInstance,h,H as Host}from"./index-70672e81.js";import{M as MedFontSize}from"./font-size.enum-0a1d6dc5.js";var medFontZoomCss=":host{display:block}";var MedFontZoom=function(){function e(e){var t=this;registerInstance(this,e);this.value=MedFontSize.XS;this.min=1;this.max=5;this.step=1;this.fontSizeToValue=function(e){switch(e){case MedFontSize.XXXS:return 1;case MedFontSize.XXS:return 2;case MedFontSize.XS:return 3;case MedFontSize.SM:return 4;case MedFontSize.MD:return 5}};this.onRangeChange=function(e){if(t.emitter){switch(e){case 1:t.value=MedFontSize.XXXS;break;case 2:t.value=MedFontSize.XXS;break;case 3:t.value=MedFontSize.XS;break;case 4:t.value=MedFontSize.SM;break;case 5:t.value=MedFontSize.MD;break;default:t.value=MedFontSize.XS}t.emitter.emit(t.value)}}}e.prototype.render=function(){var e=this;return h(Host,{"from-stencil":true},h("ion-range",{onIonChange:function(t){return e.onRangeChange(t.detail.value)},min:this.min,max:this.max,step:this.step,value:this.fontSizeToValue(this.value)},h("ion-icon",{class:"med-icon",slot:"start",size:"small",name:"med-fontemenor"}),h("ion-icon",{class:"med-icon",slot:"end",name:"med-fontemaior"})))};return e}();MedFontZoom.style=medFontZoomCss;export{MedFontZoom as med_font_zoom};