{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport React from \"react\";\nimport cn from 'classnames';\nimport CustomLink from 'components/customLink/CustomLink';\nimport Button from 'components/gui/Button';\nimport HTMLReactParser from 'html-react-parser';\nimport AnchorLink from 'react-anchor-link-smooth-scroll';\n\nvar ArrowLargeDownSVG = function ArrowLargeDownSVG(props) {\n  return /*#__PURE__*/_jsx(\"svg\", _objectSpread(_objectSpread({}, props), {}, {\n    children: /*#__PURE__*/_jsx(\"path\", {\n      d: \"M1 1l30 31L61 1\",\n      stroke: \"#000\"\n    })\n  }));\n};\n\nArrowLargeDownSVG.defaultProps = {\n  width: \"62\",\n  height: \"33\",\n  viewBox: \"0 0 62 33\",\n  fill: \"none\",\n  xmlns: \"http://www.w3.org/2000/svg\"\n};\n\nvar ArrowMediumDownSVG = function ArrowMediumDownSVG(props) {\n  return /*#__PURE__*/_jsx(\"svg\", _objectSpread(_objectSpread({}, props), {}, {\n    children: /*#__PURE__*/_jsx(\"path\", {\n      d: \"M1 1l10 10L21 1\",\n      stroke: \"#000\"\n    })\n  }));\n};\n\nArrowMediumDownSVG.defaultProps = {\n  width: \"22\",\n  height: \"12\",\n  viewBox: \"0 0 22 12\",\n  fill: \"none\",\n  xmlns: \"http://www.w3.org/2000/svg\"\n};\n\nvar ArrowRightSVG = function ArrowRightSVG(props) {\n  return /*#__PURE__*/_jsx(\"svg\", _objectSpread(_objectSpread({}, props), {}, {\n    children: /*#__PURE__*/_jsx(\"path\", {\n      d: \"M7.517.275h-2.48l1.984 2.624 1.6 2H.157v2.16H8.59L7.021 9.027l-1.984 2.64h2.48l4.304-5.696L7.517.275z\",\n      fill: \"#000\"\n    })\n  }));\n};\n\nArrowRightSVG.defaultProps = {\n  width: \"12\",\n  height: \"12\",\n  viewBox: \"0 0 12 12\",\n  fill: \"none\",\n  xmlns: \"http://www.w3.org/2000/svg\"\n};\n\nvar ArrowSmallDownSVG = function ArrowSmallDownSVG(props) {\n  return /*#__PURE__*/_jsx(\"svg\", _objectSpread(_objectSpread({}, props), {}, {\n    children: /*#__PURE__*/_jsx(\"path\", {\n      d: \"M1 1l5 5 5-5\",\n      stroke: \"#000\",\n      strokeWidth: \"2\"\n    })\n  }));\n};\n\nArrowSmallDownSVG.defaultProps = {\n  width: \"12\",\n  height: \"8\",\n  viewBox: \"0 0 12 8\",\n  fill: \"none\",\n  xmlns: \"http://www.w3.org/2000/svg\"\n};\nimport styles from './Arrow.module.scss';\nexport var Arrow = function Arrow(_ref) {\n  var className = _ref.className,\n      style = _ref.style,\n      size = _ref.size,\n      color = _ref.color,\n      direction = _ref.direction;\n  var Comp = ArrowLargeDownSVG;\n\n  switch (size) {\n    case 'medium':\n      Comp = ArrowMediumDownSVG;\n      break;\n\n    case 'small':\n      Comp = ArrowSmallDownSVG;\n      break;\n  }\n\n  var transform = '';\n\n  switch (direction) {\n    case 'right':\n      transform = 'rotate(-90deg)';\n      break;\n\n    case 'up':\n      transform = 'rotate(180deg)';\n      break;\n\n    case 'left':\n      transform = 'rotate(90deg)';\n      break;\n  }\n\n  return /*#__PURE__*/_jsx(Comp, {\n    className: cn(color && styles['stroke-' + color], className),\n    style: _objectSpread(_objectSpread({}, style), {}, {\n      transform: transform\n    })\n  });\n};\nexport var ArrowWithLine = function ArrowWithLine(_ref2) {\n  var className = _ref2.className,\n      style = _ref2.style,\n      color = _ref2.color,\n      direction = _ref2.direction;\n  var Comp = ArrowRightSVG;\n  var transform = '';\n\n  switch (direction) {\n    case 'down':\n      transform = 'rotate(90deg)';\n      break;\n\n    case 'up':\n      transform = 'rotate(-90deg)';\n      break;\n\n    case 'left':\n      transform = 'rotate(180deg)';\n      break;\n  }\n\n  return /*#__PURE__*/_jsx(Comp, {\n    className: cn(color && styles['fill-' + color], className),\n    style: _objectSpread(_objectSpread({}, style), {}, {\n      transform: transform\n    })\n  });\n};\nexport var ArrowDownButton = function ArrowDownButton(_ref3) {\n  var href = _ref3.href,\n      onClick = _ref3.onClick,\n      className = _ref3.className,\n      htmlText = _ref3.htmlText,\n      text = _ref3.text,\n      color = _ref3.color;\n  return /*#__PURE__*/_jsxs(\"div\", {\n    className: cn(styles.arrowDownButtonCont, className),\n    children: [href && /*#__PURE__*/_jsxs(CustomLink, {\n      className: cn(styles.arrowDownButton, color && styles['arrowDownButton-' + color]),\n      href: href,\n      children: [text && /*#__PURE__*/_jsx(\"span\", {\n        children: text\n      }), htmlText && /*#__PURE__*/_jsx(\"span\", {\n        children: HTMLReactParser(htmlText)\n      }), /*#__PURE__*/_jsx(Arrow, {\n        direction: \"down\",\n        size: \"medium\",\n        color: color\n      })]\n    }), onClick && /*#__PURE__*/_jsxs(Button, {\n      className: cn(styles.arrowDownButton, color && styles['arrowDownButton-' + color]),\n      onClick: onClick,\n      children: [text && /*#__PURE__*/_jsx(\"span\", {\n        children: text\n      }), htmlText && /*#__PURE__*/_jsx(\"span\", {\n        children: HTMLReactParser(htmlText)\n      }), /*#__PURE__*/_jsx(Arrow, {\n        direction: \"down\",\n        size: \"medium\",\n        color: color\n      })]\n    })]\n  });\n};","map":null,"metadata":{},"sourceType":"module"}