/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
import{b as o}from"./HVT2WBVC.js";import{E as r,F as l,G as i,h as s,i as e}from"./FFF5HUPM.js";import"./EXBEKVP5.js";var h=s`:host{display:block}calcite-input-message{margin-bottom:var(--calcite-space-lg)}`,a=class extends i{constructor(){super(...arguments),this.#e=r(),this.disabled=!1,this.showErrorMessage=!1}static{this.properties={selectedValue:3,disabled:7,labels:0,showErrorMessage:5}}static{this.styles=h}#e;get _radioButtonData(){return[{label:this.labels.selectFeature,value:"select-feature"},{label:this.labels.drawGraphic,value:"draw-graphic"},{label:this.labels.searchLocation,value:"search-location"}]}async setFocus(){await this.#e?.value?.setFocus({focusVisible:!0})}_renderErrorMessage(){return this.showErrorMessage?e`<calcite-input-message icon=exclamation-mark-triangle status=invalid><span>${this.labels.errorMessage}</span></calcite-input-message>`:null}render(){let c=this.labels.title,u=this.labels.groupName;return e`<calcite-label>${c}</calcite-label><calcite-radio-button-group .name=${u} .disabled=${this.disabled} layout=vertical ${l(this.#e)}>${this._radioButtonData.map(({label:n,value:t})=>e`<calcite-radio-button .value=${t} .labelText=${n} .checked=${this.selectedValue===t}></calcite-radio-button>`)}</calcite-radio-button-group>${this._renderErrorMessage()}`}};o("instant-apps-buffer-input-radiogroup",a);export{a as InstantAppsBufferInputRadiogroup};
