import{b as r}from"./chunk-HAAHFJJA.js";import{b as n}from"./chunk-NQENCJMJ.js";import{d as e}from"./chunk-4A7CVCJ4.js";import{i as a,m as i,n as l,q as s}from"./chunk-QECZUVWI.js";import"./chunk-S5EYVFES.js";var h=".picker-column-option-button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) .picker-column-option-button{cursor:default}",b=".picker-column-option-button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) .picker-column-option-button{cursor:default}:host(.option-active){color:var(--ion-color-base)}",k=(()=>{let o=class{constructor(t){a(this,t),this.pickerColumn=null,this.ariaLabel=null,this.disabled=!1,this.color="primary"}onAriaLabelChange(t){this.ariaLabel=t}componentWillLoad(){let t=e(this.el,["aria-label"]);this.ariaLabel=t["aria-label"]||null}connectedCallback(){this.pickerColumn=this.el.closest("ion-picker-column")}disconnectedCallback(){this.pickerColumn=null}componentDidLoad(){let{pickerColumn:t}=this;t!==null&&t.scrollActiveItemIntoView()}onClick(){let{pickerColumn:t}=this;t!==null&&t.setValue(this.value)}render(){let{color:t,disabled:c,ariaLabel:p}=this,d=n(this);return i(l,{key:"c45a1c14a351bf57d7113671164852349be5aa8a",class:r(t,{[d]:!0,"option-disabled":c})},i("div",{key:"824930b658c6e3fb493ac4c6c2451d38c6bc4829",class:"picker-column-option-button",role:"button","aria-label":p,onClick:()=>this.onClick()},i("slot",{key:"019df4dcf46e629bdbebcd46ed3ab29669feab27"})))}get el(){return s(this)}static get watchers(){return{"aria-label":["onAriaLabelChange"]}}};return o.style={ios:h,md:b},o})();export{k as ion_picker_column_option};
