import{r as t,c as e,h as r}from"./p-BIwHMk6j.js";const o=class{constructor(r){t(this,r),this.change=e(this,"change"),this.getOptionValue=t=>t.value||void 0,this.handleChangeOptions=(t,e=t=>t)=>r=>{r.stopPropagation(),this.change.emit(Object.assign(Object.assign({},this.value),{options:Object.assign(Object.assign({},this.value.options),{[t]:e(r.detail)||void 0})}))}}render(){return[this.renderStyle(),this.renderNumeric()]}renderStyle(){const t=[{value:"long",text:"Long"},{value:"narrow",text:"Narrow"},{value:"short",text:"Short"}],e=t.find((t=>{var e;return t.value&&t.value===(null===(e=this.value.options)||void 0===e?void 0:e.style)}));return r("limel-select",{label:"Style",helperText:"The style of the formatted relative time",options:t,value:e,onChange:this.handleChangeOptions("style",this.getOptionValue)})}renderNumeric(){const t=[{value:"always",text:"Always",secondaryText:'E.g. "in 1 day"'},{value:"auto",text:"Auto",secondaryText:'E.g. "tomorrow"'}],e=t.find((t=>{var e;return t.value&&t.value===(null===(e=this.value.options)||void 0===e?void 0:e.numeric)}));return r("limel-select",{label:"Numeric",helperText:"Whether to use numeric values in the output",options:t,value:e,onChange:this.handleChangeOptions("numeric",this.getOptionValue)})}};export{o as limebb_info_tile_relative_date_format}