"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _Skeleton = _interopRequireDefault(require("../../Skeleton"));
var _constants = require("../constants");
var _SidebarSkeletonSt = require("./SidebarSkeleton.st.css.js");
var _SidebarNextContext = require("../SidebarNextContext");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/SidebarNext/components/SidebarSkeleton.jsx",
  _this = void 0;
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); }
/** SidebarSkeletonItem */
var SidebarSkeletonItem = function SidebarSkeletonItem(_ref) {
  var _ref$isLong = _ref.isLong,
    isLong = _ref$isLong === void 0 ? false : _ref$isLong;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _SidebarSkeletonSt.st)(_SidebarSkeletonSt.classes.skeletonItem, {
      "long": isLong
    }),
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 10,
      columnNumber: 10
    }
  });
};

/** SidebarSkeleton */
var SidebarSkeleton = function SidebarSkeleton() {
  var _useContext = (0, _react.useContext)(_SidebarNextContext.SidebarNextContext),
    skin = _useContext.skin;
  return /*#__PURE__*/_react["default"].createElement("div", {
    "data-hook": _constants.dataHooks.skeleton,
    className: _SidebarSkeletonSt.classes.container,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 18,
      columnNumber: 5
    }
  }, skin === _constants.sidebarSkins.light ? /*#__PURE__*/_react["default"].createElement("div", {
    className: _SidebarSkeletonSt.classes.lightSkeleton,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 20,
      columnNumber: 9
    }
  }, /*#__PURE__*/_react["default"].createElement(_Skeleton["default"], {
    spacing: "small",
    content: [{
      type: 'line',
      size: 'medium'
    }, {
      type: 'line',
      size: 'large'
    }],
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 21,
      columnNumber: 11
    }
  }), /*#__PURE__*/_react["default"].createElement(_Skeleton["default"], {
    spacing: "small",
    content: [{
      type: 'line',
      size: 'large'
    }, {
      type: 'line',
      size: 'medium'
    }, {
      type: 'line',
      size: 'large'
    }, {
      type: 'line',
      size: 'medium'
    }],
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 28,
      columnNumber: 11
    }
  })) : /*#__PURE__*/_react["default"].createElement("div", {
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 39,
      columnNumber: 9
    }
  }, /*#__PURE__*/_react["default"].createElement(SidebarSkeletonItem, {
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 40,
      columnNumber: 11
    }
  }), /*#__PURE__*/_react["default"].createElement(SidebarSkeletonItem, {
    isLong: true,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 41,
      columnNumber: 11
    }
  }), /*#__PURE__*/_react["default"].createElement(SidebarSkeletonItem, {
    isLong: true,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 42,
      columnNumber: 11
    }
  }), /*#__PURE__*/_react["default"].createElement("div", {
    className: _SidebarSkeletonSt.classes.separator,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 43,
      columnNumber: 11
    }
  }), /*#__PURE__*/_react["default"].createElement(SidebarSkeletonItem, {
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 44,
      columnNumber: 11
    }
  }), /*#__PURE__*/_react["default"].createElement(SidebarSkeletonItem, {
    isLong: true,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 45,
      columnNumber: 11
    }
  }), /*#__PURE__*/_react["default"].createElement(SidebarSkeletonItem, {
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 46,
      columnNumber: 11
    }
  })));
};
SidebarSkeleton.displayName = 'SidebarSkeleton';
var _default = exports["default"] = SidebarSkeleton;