{"version":3,"file":"select-menu-validators.cjs","names":[],"sources":["../../../components/select_menu/select_menu_validators.js"],"sourcesContent":["const hasValidOptionValue = option => {\n  return typeof option.value === 'string' || typeof option.value === 'number';\n};\n\nconst hasValidOptionLabel = option => {\n  if (!option.label) {\n    return false;\n  }\n\n  return typeof option.label === 'string';\n};\n\nexport const optionsValidator = options => {\n  if (!options) {\n    return true;\n  }\n\n  return options.every(option => {\n    if (!hasValidOptionValue(option)) {\n      return false;\n    }\n\n    if (!hasValidOptionLabel(option)) {\n      return false;\n    }\n\n    return true;\n  });\n};\n"],"mappings":"mEAAA,IAAM,EAAsB,GACnB,OAAO,EAAO,OAAU,UAAY,OAAO,EAAO,OAAU,SAG/D,EAAsB,GACrB,EAAO,MAIL,OAAO,EAAO,OAAU,SAHtB,GAME,EAAmB,GACzB,EAIE,EAAQ,MAAM,GAKnB,EAJI,CAAC,EAAoB,EAAO,EAI5B,CAAC,EAAoB,EAAO,EAKhC,CAbO"}