{"version":3,"file":"landCoveringLevelHeight-aafd1e18.js","sources":["../../../app/frontend/assets/landCoveringLevelHeight.js"],"sourcesContent":["import _ from \"lodash\";\n\nexport function slabToSlabLevels(levelDataFields) {\n return levelDataFields.filter((dataField) => {\n const rawHeight = _.get(dataField, \"fieldContent.height\");\n const height = rawHeight && _.isNumber(rawHeight) ? rawHeight : null;\n\n return height;\n });\n}\n\nexport function totalSlabToSlabHeight(levelDataFields) {\n return (\n _.sumBy(slabToSlabLevels(levelDataFields), function (dataField) {\n const rawHeight = dataField.fieldContent.height;\n const height = rawHeight && _.isNumber(rawHeight) ? rawHeight : 0;\n return height;\n }) || 0\n );\n}\n"],"names":["slabToSlabLevels","levelDataFields","dataField","rawHeight","_","totalSlabToSlabHeight"],"mappings":"yCAEO,SAASA,EAAiBC,EAAiB,CAChD,OAAOA,EAAgB,OAAQC,GAAc,CAC3C,MAAMC,EAAYC,EAAE,IAAIF,EAAW,qBAAqB,EAGxD,OAFeC,GAAaC,EAAE,SAASD,CAAS,EAAIA,EAAY,IAGpE,CAAG,CACH,CAEO,SAASE,EAAsBJ,EAAiB,CACrD,OACEG,EAAE,MAAMJ,EAAiBC,CAAe,EAAG,SAAUC,EAAW,CAC9D,MAAMC,EAAYD,EAAU,aAAa,OAEzC,OADeC,GAAaC,EAAE,SAASD,CAAS,EAAIA,EAAY,CAEjE,CAAA,GAAK,CAEV"}