1 |
- {"version":3,"file":"isDisabled-BG5MoQVt.mjs","sources":["../../src/util/isDisabled.ts"],"sourcesContent":["import { getAttribute, hasClass } from \"@thednp/shorty\";\n\n/**\n * Check if interactive element is disabled.\n * @param target either a `<button>` or an `<a>`\n * @returns whether the target is disabled\n */\nconst isDisabled = (target: Element) => {\n return hasClass(target, \"disabled\") ||\n getAttribute(target, \"disabled\") === \"true\";\n};\n\nexport default isDisabled;\n"],"names":["isDisabled","target","hasClass","getAttribute"],"mappings":";AAGM,MAAAA,IAAa,CAACC,MACXC,EAASD,GAAQ,UAAU,KAChCE,EAAaF,GAAQ,UAAU,MAAM;"}
|