{"version":3,"sources":["../../src/utilities/getSelectMode.ts"],"sourcesContent":["import type { SelectMode, SelectType } from '../types/index.js'\n\nexport const getSelectMode = (select: SelectType): SelectMode => {\n for (const key in select) {\n const selectValue = select[key]\n if (selectValue === false) {\n return 'exclude'\n }\n\n if (typeof selectValue === 'object') {\n return getSelectMode(selectValue)\n }\n }\n\n return 'include'\n}\n"],"names":["getSelectMode","select","key","selectValue"],"mappings":"AAEA,OAAO,MAAMA,gBAAgB,CAACC;IAC5B,IAAK,MAAMC,OAAOD,OAAQ;QACxB,MAAME,cAAcF,MAAM,CAACC,IAAI;QAC/B,IAAIC,gBAAgB,OAAO;YACzB,OAAO;QACT;QAEA,IAAI,OAAOA,gBAAgB,UAAU;YACnC,OAAOH,cAAcG;QACvB;IACF;IAEA,OAAO;AACT,EAAC"}