{"version":3,"file":"getCustomisationForCols.mjs","sources":[""],"sourcesContent":["import type { TGetCustomisationForCols } from \"../config/types\";\r\n\r\n/**\r\n * Кастомизация элементов формы\r\n */\r\nexport const getCustomisationForCols = ({\r\n  cols = [],\r\n  setCustomComponent,\r\n  setInputProps,\r\n  isFormElementVisible,\r\n}: TGetCustomisationForCols): void => {\r\n  if (cols) {\r\n    cols.forEach((col) => {\r\n      const field = col.field;\r\n      const { input } = field || {};\r\n\r\n      if (input && typeof setInputProps === \"function\") {\r\n        setInputProps(input);\r\n      }\r\n\r\n      if (typeof isFormElementVisible === \"function\") {\r\n        col.isVisible = isFormElementVisible(col);\r\n      }\r\n    });\r\n  }\r\n};\r\n"],"names":["getCustomisationForCols","cols","setCustomComponent","setInputProps","isFormElementVisible","forEach","col","field","input","isVisible"],"mappings":";;;AAKO,MAAMA,wBAA0B,EACrCC,UAAO,GACPC,sCACAC,4BACAC,8CAEA,GAAIH,KACFA,KAAKI,QAASC,MACZ,MAAMC,MAAQD,IAAIC,MAClB,MAAMC,MAAEA,OAAUD,OAAS,CAAA,EAE3B,GAAIC,cAAgBL,gBAAkB,WACpCA,cAAcK,OAGhB,UAAWJ,uBAAyB,WAClCE,IAAIG,UAAYL,qBAAqBE"}