import { computed as n } from "../../../../services/theme/utils.js";
import { sizeToPixel as f } from "../../../../global_styling/functions/size.js";
function i(r, e) {
  return m(r) || b(r, e) || y(r, e) || s();
}
function s() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function y(r, e) {
  if (!!r) {
    if (typeof r == "string")
      return d(r, e);
    var t = Object.prototype.toString.call(r).slice(8, -1);
    if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set")
      return Array.from(r);
    if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
      return d(r, e);
  }
}
function d(r, e) {
  (e == null || e > r.length) && (e = r.length);
  for (var t = 0, o = new Array(e); t < e; t++)
    o[t] = r[t];
  return o;
}
function b(r, e) {
  var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
  if (t != null) {
    var o = [], a = !0, c = !1, l, u;
    try {
      for (t = t.call(r); !(a = (l = t.next()).done) && (o.push(l.value), !(e && o.length === e)); a = !0)
        ;
    } catch (h) {
      c = !0, u = h;
    } finally {
      try {
        !a && t.return != null && t.return();
      } finally {
        if (c)
          throw u;
      }
    }
    return o;
  }
}
function m(r) {
  if (Array.isArray(r))
    return r;
}
var v = {
  color: n(function(r) {
    var e = i(r, 1), t = e[0];
    return t;
  }, ["colors.lightShade"]),
  width: {
    thin: "1px",
    thick: "2px"
  },
  radius: {
    medium: n(f(0.375)),
    small: n(f(0.25))
  },
  thin: n(function(r) {
    var e = i(r, 2), t = e[0], o = e[1];
    return "".concat(t.thin, " solid ").concat(o);
  }, ["border.width", "border.color"]),
  thick: n(function(r) {
    var e = i(r, 2), t = e[0], o = e[1];
    return "".concat(t.thick, " solid ").concat(o);
  }, ["border.width", "border.color"]),
  editable: n(function(r) {
    var e = i(r, 2), t = e[0], o = e[1];
    return "".concat(t.thick, " dotted ").concat(o);
  }, ["border.width", "border.color"])
};
export {
  v as border
};
//# sourceMappingURL=_borders.js.map
