/*
 * Copyright (c) 2018, 2026, Oracle and/or its affiliates.
 * Licensed under The Universal Permissive License (UPL), Version 1.0
 * as shown at https://oss.oracle.com/licenses/upl/
 */
const CLASS="class";const LITERAL="Literal";module.exports=function(tsxComp,attr,value){var props,prop;if(props=tsxComp.properties){let propVal,a,i;for(i=0;i<props.length;i++){prop=props[i];if(prop.name===attr){if(attr===CLASS){if(arguments.length===2){return true}let j;if((propVal=prop.node.value)&&propVal.type===LITERAL){a=propVal.value.split(" ");for(j=0;j<a.length;j++){if(a[j]===value){return true}}break}}else{if((propVal=prop.node.value)&&propVal.type===LITERAL){if(arguments.length===2){return true}if(propVal.value===value){return true}}}}}}return false};