"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = useRange;
var _vue = require("vue");
function useRange(range) {
  return (0, _vue.computed)(() => {
    if (range.value === true || !range.value) {
      return [!!range.value, false, false, 0, undefined];
    }
    const {
      editable,
      draggableTrack,
      minCount,
      maxCount
    } = range.value;
    return [true, editable, !editable && draggableTrack, minCount || 0, maxCount];
  });
}