Liferay.Loader.define("layout-reports-web@1.0.56/js/utils/normalizeFailingElements",["module","exports","require"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function normalizeFailingElements(t,a){return t.map((t=>function normalizeFailingElement(t,a){switch(a){case e.aspectRatio:return{sections:[{label:Liferay.Language.get("source-file"),value:t.url},{label:Liferay.Language.get("displayed-aspect-ratio"),value:t.displayedAspectRatio},{label:Liferay.Language.get("actual-aspect-ratio"),value:t.actualAspectRatio}]};case e.canonicalUrl:return{htmlContent:t.content};case e.contrastRatio:return{content:t.node.explanation,title:t.node.nodeLabel};case e.crawlableLink:case e.imgAlt:case e.inputAlt:return{snippet:t.node.snippet,title:t.node.nodeLabel};case e.fontSize:return{sections:[{label:Liferay.Language.get("font-size"),value:t.fontSize}],snippet:t.selector.snippet};case e.hrefLang:return{snippet:t.source.snippet,title:t.source.nodeLabel};case e.linkText:return{sections:[{label:Liferay.Language.get("link-text"),value:t.text},{label:Liferay.Language.get("link-destination-url"),value:t.href}]};case e.metaDescription:case e.pageIndexing:return{htmlContent:t.content};case e.tapTarget:return{sections:[{label:Liferay.Language.get("size"),value:t.size},{label:Liferay.Language.get("overlapping-target"),value:t.overlappingTarget.nodeLabel}],snippet:t.tapTarget.snippet,title:t.tapTarget.nodeLabel};case e.titleElement:return{htmlContent:t.content};default:return{}}}(t,a)))};const e={aspectRatio:"incorrect-image-aspect-ratios",canonicalUrl:"invalid-canonical-url",contrastRatio:"low-contrast-ratio",crawlableLink:"not-all-links-are-crawlable",fontSize:"illegible-font-sizes",hrefLang:"invalid-hreflang",imgAlt:"missing-img-alt-attributes",inputAlt:"missing-input-alt-attributes",linkText:"link-texts",metaDescription:"missing-meta-description",pageIndexing:"page-blocked-from-indexing",tapTarget:"small-tap-targets",titleElement:"missing-title-element"}}}));
//# sourceMappingURL=normalizeFailingElements.js.map