{"version":3,"file":"isValueSelected.mjs","names":["isValueSelected","value","candidate","undefined","Array","isArray","indexOf"],"sources":["../../src/utilities/isValueSelected.js"],"sourcesContent":["// Determine if the toggle button value matches, or is contained in, the\n// candidate group value.\nexport default function isValueSelected(value, candidate) {\n    if (candidate === undefined || value === undefined) {\n      return false;\n    }\n  \n    if (Array.isArray(candidate)) {\n      return candidate.indexOf(value) >= 0;\n    }\n  \n    return value === candidate;\n  }"],"mappings":";AAEA,SAAwBA,gBAAgBC,OAAOC,WAAW;AACtD,KAAIA,cAAcC,KAAAA,KAAaF,UAAUE,KAAAA,EACvC,QAAO;AAGT,KAAIC,MAAMC,QAAQH,UAAU,CAC1B,QAAOA,UAAUI,QAAQL,MAAM,IAAI;AAGrC,QAAOA,UAAUC"}