import{o as n}from"./p-8538de1a.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const t=t=>{const r=t;let l;const o=()=>{if(l===undefined){const t=r.label!==undefined||e(r);const o=r.hasAttribute("aria-label")||r.hasAttribute("aria-labelledby")&&r.shadowRoot===null;const s=n(r);l=r.legacy===true||!t&&!o&&s!==null}return l};return{hasLegacyControl:o}};const e=n=>{const t=n.shadowRoot;if(t===null){return false}if(r.includes(n.tagName)&&n.querySelector('[slot="label"]')!==null){return true}if(l.includes(n.tagName)&&n.textContent!==""){return true}return false};const r=["ION-RANGE"];const l=["ION-TOGGLE","ION-CHECKBOX","ION-RADIO"];export{t as c};
//# sourceMappingURL=p-afa7ec7a.js.map