// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("exports ./componentsUtils ./observers ./loadable ./Validation ./icon ./input-message".split(" "),function(c,b,g,d,h,k,l){function e(){"undefined"!==typeof customElements&&["calcite-radio-button-group","calcite-icon","calcite-input-message"].forEach(a=>{switch(a){case "calcite-radio-button-group":customElements.get(a)||customElements.define(a,f);break;case "calcite-icon":customElements.get(a)||k.defineCustomElement();break;case "calcite-input-message":customElements.get(a)||l.defineCustomElement()}})} const f=b.proxyCustomElement(class extends b.H{constructor(){super();this.__registerHost();this.__attachShadow();this.calciteRadioButtonGroupChange=b.createEvent(this,"calciteRadioButtonGroupChange",6);this.mutationObserver=g.createObserver("mutation",()=>this.passPropsToRadioButtons());this.passPropsToRadioButtons=()=>{this.radioButtons=Array.from(this.el.querySelectorAll("calcite-radio-button"));this.selectedItem=Array.from(this.radioButtons).find(a=>a.checked)||null;0{a.disabled=this.disabled||a.disabled;a.hidden=this.el.hidden;a.name=this.name;a.required=this.required;a.scale=this.scale})};this.disabled=!1;this.layout="horizontal";this.name=void 0;this.required=!1;this.selectedItem=null;this.scale="m";this.status="idle";this.validationIcon=this.validationMessage=void 0;this.radioButtons=[]}handleHiddenChange(){this.passPropsToRadioButtons()}onDisabledChange(){this.passPropsToRadioButtons()}onLayoutChange(){this.passPropsToRadioButtons()}onScaleChange(){this.passPropsToRadioButtons()}connectedCallback(){this.passPropsToRadioButtons(); this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}componentWillLoad(){d.setUpLoadableComponent(this)}componentDidLoad(){d.setComponentLoaded(this)}disconnectedCallback(){this.mutationObserver?.disconnect()}getFocusableRadioButton(){return this.radioButtons.find(a=>!a.disabled)??null}async setFocus(){await d.componentFocusable(this);if(this.selectedItem&&!this.selectedItem.disabled)return this.selectedItem.setFocus();if(0