"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireWildcard(require("react"));
var _ReadOnlyStarsRatingBar = require("./components/ReadOnlyStarsRatingBar");
var _InteractiveStarsRatingBar = _interopRequireDefault(require("./components/InteractiveStarsRatingBar"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/StarsRatingBar/StarsRatingBar.tsx";
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var StarsRatingBar = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
  return props.readOnly ? /*#__PURE__*/_react.default.createElement(_ReadOnlyStarsRatingBar.ReadOnlyStarsRatingBar, (0, _extends2.default)({}, props, {
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 9,
      columnNumber: 7
    }
  })) : /*#__PURE__*/_react.default.createElement(_InteractiveStarsRatingBar.default, (0, _extends2.default)({
    ref: ref
  }, props, {
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 11,
      columnNumber: 7
    }
  }));
});
StarsRatingBar.displayName = 'StarsRatingBar';
var _default = exports.default = StarsRatingBar;
//# sourceMappingURL=StarsRatingBar.js.map