"use strict";Liferay.Loader.define("@liferay!analytics-settings-web$testing-library/dom@8.20.0/dist/queries/alt-text",["module","exports","require","../query-helpers","../helpers","./all-utils"],(function(e,t,l){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.queryByAltText=t.queryAllByAltText=t.getByAltText=t.getAllByAltText=t.findByAltText=t.findAllByAltText=void 0;var i=l("../query-helpers"),r=l("../helpers"),y=l("./all-utils");const e=/^(img|input|area|.+-.+)$/i,queryAllByAltText=(t,l,y={})=>((0,r.checkContainerType)(t),(0,i.queryAllByAttribute)("alt",t,l,y).filter((t=>e.test(t.tagName)))),getMultipleError=(e,t)=>"Found multiple elements with the alt text: "+t,getMissingError=(e,t)=>"Unable to find an element with the alt text: "+t,n=(0,i.wrapAllByQueryWithSuggestion)(queryAllByAltText,queryAllByAltText.name,"queryAll");t.queryAllByAltText=n;const[u,a,s,A,d]=(0,y.buildQueries)(queryAllByAltText,getMultipleError,getMissingError);t.findByAltText=d,t.findAllByAltText=A,t.getByAltText=s,t.getAllByAltText=a,t.queryByAltText=u}}));
//# sourceMappingURL=alt-text.js.map