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AiB,4BACjBR,aAAc,aACdC,aAAc,YACdC,eAAgB,aAChBC,cAAe,SACfC,mBAAoB,gBACpBC,gBAAiB,yBACjBR,YAAa,OACbS,WAAY,SACZC,YAAa,GACbb,QAAS,KACTe,UAAU,EACVtC,GAAI,GACJuC,QAAQ,EACRC,aAAa,EACbC,SAAS,GAwBX,S","sources":["assets/images/svg/x.svg","containers/Alert.jsx","components/Alert.jsx","components/shared/StandardButton.jsx"],"sourcesContent":["var _g;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nfunction SvgX(_ref, svgRef) {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 25,\n height: 25,\n viewBox: \"0 0 25 25\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", null, /*#__PURE__*/React.createElement(\"path\", {\n strokeWidth: 0.5,\n d: \"M13.556 12.75l4.027 4.028c.223.222.223.583 0 .805-.222.223-.583.223-.805 0l-4.028-4.027-4.028 4.027c-.222.223-.583.223-.805 0-.223-.222-.223-.583 0-.805l4.027-4.028-4.027-4.028c-.223-.222-.223-.583 0-.805.222-.223.583-.223.805 0l4.028 4.027 4.028-4.027c.222-.223.583-.223.805 0 .223.222.223.583 0 .805l-4.027 4.028z\",\n transform: \"translate(.25 .25)\"\n }))));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgX);\nexport default __webpack_public_path__ + \"static/media/x.6ce3b918d9a90f5fdcb12213fdcf3753.svg\";\nexport { ForwardRef as ReactComponent };","import { connect } from 'react-redux';\n\nimport AlertActions from 'reducers/alert';\n\nconst mapStateToProps = ({ alert }) => ({\n ...alert,\n});\n\nconst mapDispatchToProps = {\n ...AlertActions,\n};\n\nexport default connect(mapStateToProps, mapDispatchToProps);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport ReactModal from 'react-modal';\nimport container from 'containers/Alert';\nimport StandardButton from 'components/shared/StandardButton';\nimport { ReactComponent as XIcon } from 'assets/images/svg/x.svg';\n\nexport const Alert = ({\n isVisible, title, description, closeAlert,\n}) => (\n \n
\n \n
\n
\n {title}\n \n {description}\n \n
\n
\n \n
\n
\n
\n \n);\n\nAlert.propTypes = {\n closeAlert: PropTypes.func.isRequired,\n isVisible: PropTypes.bool.isRequired,\n title: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n};\n\nexport default container(Alert);\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst StandardButton = ({\n text,\n type,\n onClick,\n bgColorStyle,\n roundedStyle,\n textColorStyle,\n textSizeStyle,\n letterSpacingStyle,\n fontFamilyStyle,\n heightStyle,\n widthStyle,\n otherStyles,\n hoverStateStyle,\n disabled,\n id,\n hidden,\n isSecondary,\n outline,\n}) => {\n const baseStyles = 'focus:outline-none disabled:cursor-default leading-6';\n const disabledStyle = isSecondary ? 'border disabled:border-light-grey-blue-two disabled:text-light-grey-blue-two disabled:bg-white disabled:opacity-50' : 'disabled:bg-light-grey-blue-two disabled:opacity-50';\n const borderStyle = isSecondary ? 'border border-light-grey-blue-five' : '';\n const bgColorClass = isSecondary ? 'bg-white' : bgColorStyle;\n const textColorClass = isSecondary ? 'text-dark' : textColorStyle;\n const hoverStateClass = isSecondary ? 'hover:bg-secondary-hover' : hoverStateStyle;\n let classNames = `${hidden ? 'hidden' : ''} ${baseStyles} ${process.env.REACT_APP_NAME === 'golfDigest' ? '' : roundedStyle} ${disabledStyle} ${borderStyle} ${heightStyle} ${widthStyle} ${bgColorClass} ${textColorClass} ${textSizeStyle} ${letterSpacingStyle} ${fontFamilyStyle} ${otherStyles} ${disabled ? '' : hoverStateClass}`;\n\n if (outline) classNames = 'font-primary font-semibold w-full h-12 text-4 leading-5 tracking-0.16 text-dark border border-dark rounded-2 flex justify-center items-center focus:outline-none disabled:border-light-grey-blue-two disabled:text-light-grey-blue-two';\n\n return (\n \n {text}\n \n );\n};\n\nStandardButton.defaultProps = {\n text: 'OK',\n type: 'button',\n hoverStateStyle: 'md:hover:bg-thirtySeventh',\n bgColorStyle: 'bg-primary',\n roundedStyle: 'rounded-3',\n textColorStyle: 'text-white',\n textSizeStyle: 'text-4',\n letterSpacingStyle: '-tracking-0.2',\n fontFamilyStyle: 'font-primary font-bold',\n heightStyle: 'h-14',\n widthStyle: 'w-full',\n otherStyles: '',\n onClick: null,\n disabled: false,\n id: '',\n hidden: false,\n isSecondary: false,\n outline: false,\n};\n\nStandardButton.propTypes = {\n text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n type: PropTypes.oneOf(['submit', 'button', 'reset']),\n onClick: PropTypes.func,\n hoverStateStyle: PropTypes.string,\n bgColorStyle: PropTypes.string,\n roundedStyle: PropTypes.string,\n textColorStyle: PropTypes.string,\n textSizeStyle: PropTypes.string,\n letterSpacingStyle: PropTypes.string,\n fontFamilyStyle: PropTypes.string,\n heightStyle: PropTypes.string,\n widthStyle: PropTypes.string,\n otherStyles: PropTypes.string,\n disabled: PropTypes.bool,\n id: PropTypes.string,\n hidden: PropTypes.bool,\n isSecondary: PropTypes.bool,\n outline: PropTypes.bool,\n};\n\nexport default StandardButton;\n"],"names":["_g","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","SvgX","_ref","svgRef","title","titleId","props","xmlns","width","height","viewBox","ref","id","strokeWidth","d","transform","ForwardRef","mapDispatchToProps","AlertActions","connect","alert","Alert","isVisible","description","closeAlert","_jsx","ReactModal","isOpen","ariaHideApp","className","overlayClassName","onRequestClose","children","_jsxs","XIcon","onClick","StandardButton","text","heightStyle","container","type","bgColorStyle","roundedStyle","textColorStyle","textSizeStyle","letterSpacingStyle","fontFamilyStyle","widthStyle","otherStyles","hoverStateStyle","disabled","hidden","isSecondary","outline","classNames","defaultProps"],"sourceRoot":""}