{"size": 1572, "ext": "js", "max_stars_repo_path": "src/core/linkInterpolation.js", "max_stars_repo_name": "ipapoutsidis/kute.js", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/core/linkInterpolation.js", "max_issues_repo_name": "ipapoutsidis/kute.js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/core/linkInterpolation.js", "max_forks_repo_name": "ipapoutsidis/kute.js", "max_forks_repo_forks_event_min_datetime": "2021-12-07T14:02:33.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-07T14:02:33.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 43.6666666667, "max_line_length": 123, "alphanum_fraction": 0.572519084}
import KUTE from '../objects/kute.js';
import linkProperty from '../objects/linkProperty.js';
import supportedProperties from '../objects/supportedProperties.js';

export default function linkInterpolation() { // DON'T change
  Object.keys(linkProperty).forEach((component) => {
    const componentLink = linkProperty[component];
    const componentProps = supportedProperties[component];

    Object.keys(componentLink).forEach((fnObj) => {
      if (typeof (componentLink[fnObj]) === 'function' // ATTR, colors, scroll, boxModel, borderRadius
          && Object.keys(this.valuesEnd).some((i) => (componentProps && componentProps.includes(i))
          || (i === 'attr' && Object.keys(this.valuesEnd[i]).some((j) => componentProps && componentProps.includes(j))))) {
        if (!KUTE[fnObj]) KUTE[fnObj] = componentLink[fnObj];
      } else {
        Object.keys(this.valuesEnd).forEach((prop) => {
          const propObject = this.valuesEnd[prop];
          if (propObject instanceof Object) {
            Object.keys(propObject).forEach((i) => {
              if (typeof (componentLink[i]) === 'function') { // transformCSS3
                if (!KUTE[i]) KUTE[i] = componentLink[i];
              } else {
                Object.keys(componentLink[fnObj]).forEach((j) => {
                  if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
                    if (!KUTE[j]) KUTE[j] = componentLink[i][j];
                  }
                });
              }
            });
          }
        });
      }
    });
  });
}
