'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var treeUtil = require('../utils/treeUtil.cjs');

var useMissingValues = (options, fieldNames, rawValues) => {
  return vue.computed(() => {
    const missingValues = [];
    const existsValues = [];
    rawValues.value.forEach((valueCell) => {
      const pathOptions = treeUtil.toPathOptions(valueCell, options.value, fieldNames.value);
      if (pathOptions.every((opt) => opt.option))
        existsValues.push(valueCell);
      else
        missingValues.push(valueCell);
    });
    return [existsValues, missingValues];
  });
};

exports.default = useMissingValues;
//# sourceMappingURL=useMissingValues.cjs.map
