1"use strict";(self.webpackChunkaccessibility_checker_pro=self.webpackChunkaccessibility_checker_pro||[]).push([[681],{469(e,t,a){a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var r,l=a(428),n=(null===(r=window.edac_frontend_fixes)||void 0===r?void 0:r.add_label_to_unlabelled_form_fields)||{enabled:!1},i=function(e){var t={attribute:"",text:""};return["aria-label","placeholder","title","name"].forEach(function(a){var r;if(!t.text.length||!t.attribute.length){var l=null===(r=e.getAttribute(a))||void 0===r?void 0:r.trim();l&&l.length&&(t.attribute=a,t.text=l)}}),""!==t.text&&(t.text=t.text.replace(/_/g," "),t.text=t.text.replace(/([a-z])([A-Z])/g,"$1 $2"),t.text=t.text.charAt(0).toUpperCase()+t.text.slice(1),t.text=(0,l.__)(t.text,"accessibility-checker-pro")),t},c=function(e,t){var a=document.createElement("label");a.classList.add("edac-generated-label"),a.setAttribute("data-edac-generated-label-from",t.attribute),a.innerText=t.text,e.parentNode.insertBefore(a,e),a.appendChild(e)};const __WEBPACK_DEFAULT_EXPORT__=function(){n.enabled&&document.querySelectorAll('input:not([type="submit"]), select, textarea').forEach(function(e){if(null!==e.offsetParent){if(e.id)if(document.querySelector('label[for="'.concat(e.id,'"]')))return;for(var t=e.parentElement,a=0;a<3;){if("label"===t.tagName.toLowerCase())return;t=t.parentElement,a++}var r=e.getAttribute("aria-labelledby");if(r){var l=document.getElementById(r);if(l&&""!==l.innerText.trim())return}var n=i(e);""!==n.attribute&&""!==n.text&&c(e,n)}})}}}]); 2//# sourceMappingURL=add-label-to-unllabeled-form-fields.303d6a41521e6bf4950a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.