{"version":3,"file":"getRowsFromItems.mjs","sources":[""],"sourcesContent":["import type { IBlockTableItem, TBlockTableItemType, IBlockTableRow } from \"../config/types\";\r\n\r\n/**\r\n * Возвращает ряды из элементов таблицы\r\n * @returns\r\n */\r\nexport const getRowsFromItems = (type: TBlockTableItemType = \"tbody\", items: IBlockTableItem[] = []): IBlockTableRow[] => {\r\n  return items.find((item) => item.type === type)?.rows ?? [];\r\n};\r\n"],"names":["getRowsFromItems","type","items","find","item","rows"],"mappings":";;;;AAMO,MAAMA,iBAAmB,CAACC,KAA4B,QAASC,MAA2B,KACxFA,MAAMC,KAAMC,MAASA,KAAKH,OAASA,OAAOI,MAAQ"}