{"version":3,"file":"Accessibility.B064fsTm.mjs","names":[],"sources":["https:/framerusercontent.com/modules/qqpnPyowuUFHQ90dgms6/rdvRzjiI8eLej2D54PsW/Accessibility.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function AutoLabelSelects(Component){return props=>{useEffect(()=>{const applyLabels=()=>{const selects=document.querySelectorAll(\"select\");selects.forEach((select,index)=>{if(select.getAttribute(\"aria-label\")||select.getAttribute(\"aria-labelledby\")||select.getAttribute(\"title\")){return;}const selectedText=select.selectedOptions?.[0]?.textContent?.trim();const nameText=select.getAttribute(\"name\")?.replace(/[-_]/g,\" \").trim();const label=selectedText&&!selectedText.toLowerCase().includes(\"all\")?`Filter by ${selectedText}`:nameText?`Filter by ${nameText}`:props.fallbackLabel||`Filter ${index+1}`;select.setAttribute(\"aria-label\",label);});};applyLabels();const observer=new MutationObserver(applyLabels);observer.observe(document.body,{childList:true,subtree:true});return()=>observer.disconnect();},[props.fallbackLabel]);return /*#__PURE__*/_jsx(Component,{...props});};}addPropertyControls(AutoLabelSelects,{fallbackLabel:{type:ControlType.String,title:\"Fallback Label\",defaultValue:\"Filter results\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"AutoLabelSelects\":{\"type\":\"reactHoc\",\"name\":\"AutoLabelSelects\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Accessibility.map"],"mappings":"0KAA4H,SAAgB,EAAiB,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,IAAM,MAAgB,CAAe,SAAS,iBAAiB,SAAS,CAAS,SAAS,EAAO,IAAQ,CAAC,GAAG,EAAO,aAAa,aAAa,EAAE,EAAO,aAAa,kBAAkB,EAAE,EAAO,aAAa,QAAQ,CAAE,OAAQ,IAAM,EAAa,EAAO,kBAAkB,IAAI,aAAa,MAAM,CAAO,EAAS,EAAO,aAAa,OAAO,EAAE,QAAQ,QAAQ,IAAI,CAAC,MAAM,CAAO,EAAM,GAAc,CAAC,EAAa,aAAa,CAAC,SAAS,MAAM,CAAC,aAAa,IAAe,EAAS,aAAa,IAAW,EAAM,eAAe,UAAU,EAAM,IAAI,EAAO,aAAa,aAAa,EAAM,EAAG,EAAG,GAAa,CAAC,IAAM,EAAS,IAAI,iBAAiB,EAAY,CAA+D,OAA9D,EAAS,QAAQ,SAAS,KAAK,CAAC,UAAU,GAAK,QAAQ,GAAK,CAAC,KAAW,EAAS,YAAY,EAAG,CAAC,EAAM,cAAc,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,mBAAl8B,IAA6B,IAAoD,CAAq3B,EAAoB,EAAiB,CAAC,cAAc,CAAC,KAAK,EAAY,OAAO,MAAM,iBAAiB,aAAa,iBAAiB,CAAC,CAAC"}