import { Name } from "@siteimprove/alfa-aria" ; import { Device } from "@siteimprove/alfa-device" ; import { Element , Text } from "@siteimprove/alfa-dom" ; import { Predicate } from "@siteimprove/alfa-predicate" ; import { hasAccessibleName } from "./has-accessible-name" ; export function hasNonEmptyAccessibleName < T extends Element | Text > ( device ) { return hasAccessibleName ( device , Name . hasValue ( ( value ) => value . trim ( ) . length > 0 ) ) ; }