katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/c2d5bdfab992a26a26b2524e379...

1 line
1.4 KiB
JSON

{"ast":null,"code":"/**\n * Checks if a given element has a CSS class.\n * \n * @param element the element\n * @param className the CSS class name\n */\nexport default function hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);\n return (\" \" + (element.className.baseVal || element.className) + \" \").indexOf(\" \" + className + \" \") !== -1;\n}","map":{"version":3,"names":["hasClass","element","className","classList","contains","baseVal","indexOf"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/dom-helpers/esm/hasClass.js"],"sourcesContent":["/**\n * Checks if a given element has a CSS class.\n * \n * @param element the element\n * @param className the CSS class name\n */\nexport default function hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);\n return (\" \" + (element.className.baseVal || element.className) + \" \").indexOf(\" \" + className + \" \") !== -1;\n}"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,QAAT,CAAkBC,OAAlB,EAA2BC,SAA3B,EAAsC;EACnD,IAAID,OAAO,CAACE,SAAZ,EAAuB,OAAO,CAAC,CAACD,SAAF,IAAeD,OAAO,CAACE,SAAR,CAAkBC,QAAlB,CAA2BF,SAA3B,CAAtB;EACvB,OAAO,CAAC,OAAOD,OAAO,CAACC,SAAR,CAAkBG,OAAlB,IAA6BJ,OAAO,CAACC,SAA5C,IAAyD,GAA1D,EAA+DI,OAA/D,CAAuE,MAAMJ,SAAN,GAAkB,GAAzF,MAAkG,CAAC,CAA1G;AACD"},"metadata":{},"sourceType":"module"}