import R from 'ramda' import React from 'react' import { anyNull, val } from './traverse-common-functions' import { Node } from './mecanismViews/common' import { makeJsx, evaluateNode, rewriteNode, evaluateArray, evaluateArrayWithFilter, evaluateObject, parseObject, collectNodeMissing } from './evaluation' import { findRuleByName, disambiguateRuleReference, findRuleByDottedName } from './rules' import 'react-virtualized/styles.css' import { Table, Column } from 'react-virtualized' import taux_versement_transport from 'Règles/rémunération-travail/cotisations/ok/liste-taux.json' import Somme from './mecanismViews/Somme' import uniroot from './uniroot' import {clearDict} from 'Engine/traverse' let constantNode = constant => ({ nodeValue: constant, jsx: nodeValue => {nodeValue} }) let decompose = (recurse, k, v) => { let subProps = R.dissoc('composantes')(v), explanation = v.composantes.map(c => ({ ...recurse( R.objOf(k, { ...subProps, ...R.dissoc('attributs')(c) }) ), composante: c.nom ? { nom: c.nom } : c.attributs })) let jsx = (nodeValue, explanation) => ( {explanation.map((c, i) => [
  • {makeJsx(c)}
  • , i < explanation.length - 1 && (