{"version":3,"file":"get-combobox-label-id.cjs","names":[],"sources":["../../../../src/components/Combobox/get-combobox-label-id/get-combobox-label-id.ts"],"sourcesContent":["import type { __InputWrapperProps } from '../../Input';\n\ninterface GetComboboxLabelIdInput {\n  id: string;\n  label: React.ReactNode;\n  labelProps?: __InputWrapperProps['labelProps'];\n  inputWrapperOrder?: __InputWrapperProps['inputWrapperOrder'];\n}\n\nexport function getComboboxLabelId({\n  id,\n  label,\n  labelProps,\n  inputWrapperOrder,\n}: GetComboboxLabelIdInput) {\n  if (!label) {\n    return undefined;\n  }\n\n  if (inputWrapperOrder && !inputWrapperOrder.includes('label')) {\n    return undefined;\n  }\n\n  return labelProps?.id || `${id}-label`;\n}\n"],"mappings":";;AASA,SAAgB,mBAAmB,EACjC,IACA,OACA,YACA,qBAC0B;CAC1B,IAAI,CAAC,OACH;CAGF,IAAI,qBAAqB,CAAC,kBAAkB,SAAS,OAAO,GAC1D;CAGF,OAAO,YAAY,MAAM,GAAG,GAAG;AACjC"}