{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\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 { forwardRef } from 'react';\n\nvar PlusSVG = function PlusSVG(props) {\n  return /*#__PURE__*/_jsx(\"svg\", _objectSpread(_objectSpread({}, props), {}, {\n    children: /*#__PURE__*/_jsx(\"path\", {\n      d: \"M9.54 4.397H6.18V.973H4.1v3.424H.74v1.92H4.1v3.44h2.08v-3.44h3.36v-1.92z\",\n      fill: \"#EEE9E2\"\n    })\n  }));\n};\n\nPlusSVG.defaultProps = {\n  width: \"10\",\n  height: \"10\",\n  viewBox: \"0 0 10 10\",\n  fill: \"none\",\n  xmlns: \"http://www.w3.org/2000/svg\"\n};\n\nvar ShareSVG = function ShareSVG(props) {\n  return /*#__PURE__*/_jsx(\"svg\", _objectSpread(_objectSpread({}, props), {}, {\n    children: /*#__PURE__*/_jsx(\"path\", {\n      d: \"M9.917 3.746v3.283h5.504c1.01 0 1.829.82 1.829 1.828v11.01c0 1.01-.818 1.828-1.829 1.828H2.58A1.83 1.83 0 0 1 .75 19.867V8.857c0-1.01.818-1.828 1.829-1.828h5.504V3.743L7.048 4.778a.91.91 0 0 1-1.29-.006.917.917 0 0 1-.006-1.29L8.356.877a.902.902 0 0 1 .64-.265l.006.003c.233 0 .465.088.639.262l2.604 2.605a.91.91 0 0 1-.006 1.29.917.917 0 0 1-1.29.006L9.917 3.746zM8.083 8.862h-5.5v11h12.834v-11h-5.5v3.668a.916.916 0 1 1-1.833 0V8.862zM5.333 7.03v1.833h7.334V7.03H5.333zm2.75 0h1.834v1.833H8.083V7.03z\",\n      fill: \"#000\"\n    })\n  }));\n};\n\nShareSVG.defaultProps = {\n  width: \"18\",\n  height: \"22\",\n  viewBox: \"0 0 18 22\",\n  fill: \"none\",\n  xmlns: \"http://www.w3.org/2000/svg\"\n};\nimport { Arrow, ArrowWithLine } from './Arrow';\nimport styles from './BoxButton.module.scss';\nimport Button from './Button';\n\nvar BoxButton = function BoxButton(props, ref) {\n  var grey = props.grey,\n      white = props.white,\n      className = props.className,\n      label = props.label,\n      fullWidth = props.fullWidth,\n      icon = props.icon,\n      children = props.children,\n      rest = _objectWithoutProperties(props, [\"grey\", \"white\", \"className\", \"label\", \"fullWidth\", \"icon\", \"children\"]);\n\n  return /*#__PURE__*/_jsx(\"div\", {\n    className: cn(className, styles.boxButtonContainer),\n    children: /*#__PURE__*/_jsxs(Button, _objectSpread(_objectSpread({\n      ref: ref,\n      className: cn(styles.boxButton, fullWidth && styles.fullWidth, grey && styles.grey, white && styles.white, white && (icon == 'share' ? styles['fill-white'] : styles['stroke-white']))\n    }, rest), {}, {\n      children: [/*#__PURE__*/_jsx(\"span\", {\n        className: 'bold',\n        children: label\n      }), icon == 'share' ? /*#__PURE__*/_jsx(ShareSVG, {}) : icon == 'plus' ? /*#__PURE__*/_jsx(PlusSVG, {}) : icon == 'down' ? /*#__PURE__*/_jsx(Arrow, {\n        size: \"small\",\n        direction: \"down\"\n      }) : icon == 'right' ? /*#__PURE__*/_jsx(Arrow, {\n        size: \"small\",\n        direction: \"right\"\n      }) : null, children]\n    }))\n  });\n};\n\nexport default /*#__PURE__*/forwardRef(BoxButton);","map":null,"metadata":{},"sourceType":"module"}