PageSourceSearch

https://www.principalfoundation.org/profiles/contrib/houston/modul…t-aria-described-by-element-ids.hzNVmDc1.js

js principalfoundation.org collected 2026-09-29 08:54:56 UTC 835 bytes, 19 lines download raw bytes

1import { t as e } from "./v4.DIjJgmR0.js";
2//#region packages/web-components/src/utils/get-aria-described-by-element-ids.ts
3var t = (t) => {
4	let { ariaDescribedby: n, ariaDescribedbyIds: r } = t, i = "";
5	return r && (n ? n.split(/\s+/) : r.split(/\s+/)).forEach((n) => {
6		let r = document.getElementById(n);
7		if (r) {
8			let a = `${n}-${e()}`, o = r.textContent, s = document.createElement("span");
9			s.id = a, s.hidden = !0, s.textContent = o, t.shadowRoot.appendChild(s), i += `${a} `;
10		}
11	}), i.trim();
12}, n = (e) => {
13	let n = t(e);
14	return e.target === "_blank" ? n.concat(" hyperlink-sr-label") : e.disabledContext && e.ariaDescribedbyIds ? n.concat(" disabled-context") : e.disabledContext ? "disabled-context" : n;
15};
16//#endregion
17export { n as t };
18
19//# sourceMappingURL=get-aria-described-by-element-ids.hzNVmDc1.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.