var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.LI=void 0;var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _styledComponents=require("../../styled-components");var _Circle=require("../../primitives/Icon/Icons/Circle");var _primitives=require("../../primitives");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["children","IconProps","containerProps","ol","index"];function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){(0,_defineProperty2.default)(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}var LI=(0,_react.memo)(function(_ref){var children=_ref.children,IconProps=_ref.IconProps,containerProps=_ref.containerProps,_ref$ol=_ref.ol,ol=_ref$ol===void 0?false:_ref$ol,index=_ref.index,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return ol?(0,_jsxRuntime.jsx)(_styledComponents.StyledLI,_objectSpread(_objectSpread({maxWidth:"100%"},props),{},{children:(0,_jsxRuntime.jsxs)(_primitives.HStack,_objectSpread(_objectSpread({alignItems:"flex-start",w:"$full"},containerProps),{},{children:[(0,_jsxRuntime.jsx)(_Circle.CircleIcon,_objectSpread({flexShrink:0,w:8,h:8,mr:10,mt:16,sx:{color:'$backgroundLight400',_dark:{color:'$backgroundDark600'}}},IconProps)),(0,_jsxRuntime.jsx)(_primitives.Text,{paddingVertical:6,fontWeight:"$bold",children:`Step `}),(0,_jsxRuntime.jsx)(_primitives.Text,{paddingVertical:6,fontWeight:"$bold",px:1,children:index-1}),(0,_jsxRuntime.jsx)(_primitives.Text,{paddingVertical:6,fontWeight:"$bold",children:":"}),(0,_jsxRuntime.jsx)(_primitives.Text,{paddingVertical:6,sx:{_web:{display:'inline',wordBreak:'break-word',width:`calc(100% - 30px)`,whiteSpace:'normal'},color:'$textDark700',_dark:{color:'$textDark300'}},pl:18,children:children})]}))})):(0,_jsxRuntime.jsx)(_styledComponents.StyledLI,_objectSpread(_objectSpread({maxWidth:"100%"},props),{},{children:(0,_jsxRuntime.jsxs)(_primitives.HStack,_objectSpread(_objectSpread({alignItems:"flex-start",w:"$full"},containerProps),{},{children:[(0,_jsxRuntime.jsx)(_Circle.CircleIcon,_objectSpread({flexShrink:0,w:8,h:8,mr:10,mt:16,sx:{color:'$backgroundLight400',_dark:{color:'$backgroundDark600'}}},IconProps)),(0,_jsxRuntime.jsx)(_primitives.Text,{paddingVertical:6,sx:{_web:{wordBreak:'break-word',width:`calc(100% - 30px)`,whiteSpace:'normal',display:'inline'},color:'$textDark700',_dark:{color:'$textDark300'}},children:children})]}))}));});exports.LI=LI;
//# sourceMappingURL=index.js.map