{"version":3,"sources":["webpack:///../node_modules/phosphor-react/dist/icons/Info.esm.js","webpack:///./Scripts/Components/ProductPriceHistory/ProductPriceHistory.js","webpack:///./Scripts/Components/ProductPriceHistory/ProductPriceHistoryPopup.js","webpack:///./Scripts/Components/ProductPriceHistory/ProductPriceHistoryLink.js"],"names":["pathsByWeight","Map","set","color","createElement","Fragment","opacity","x","width","height","fill","cx","cy","r","stroke","strokeLinecap","strokeLinejoin","strokeWidth","points","d","weight","Info","props","ref","Object","assign","renderPath","displayName","ProductPriceHistory","title","price","description","closeButton","className","ProductPriceHistoryPopup","onClosePopup","dispatch","useDispatch","closePopup","useCallback","removeOverlay","useEffect","addOverlay","onClick","ProductPriceHistoryLink","useState","showPopup","setShowPopup"],"mappings":"8LAKIA,EAA6B,IAAIC,IACrCD,EAAcE,IAAI,QAAQ,SAAUC,GAClC,OAAO,IAAMC,cAAc,IAAMC,SAAU,KAAM,IAAMD,cAAc,IAAK,CACxEE,QAAS,OACR,IAAMF,cAAc,OAAQ,CAC7BG,EAAG,UACHC,MAAO,MACPC,OAAQ,MACRC,KAAM,UACH,IAAMN,cAAc,SAAU,CACjCO,GAAI,YACJC,GAAI,MACJC,EAAG,KACHH,KAAM,OACNI,OAAQX,EACRY,cAAe,QACfC,eAAgB,QAChBC,YAAa,OACX,IAAMb,cAAc,WAAY,CAClCc,OAAQ,kDACRR,KAAM,OACNI,OAAQX,EACRY,cAAe,QACfC,eAAgB,QAChBC,YAAa,OACX,IAAMb,cAAc,SAAU,CAChCO,GAAI,MACJC,GAAI,KACJC,EAAG,WAGPb,EAAcE,IAAI,WAAW,SAAUC,GACrC,OAAO,IAAMC,cAAc,IAAMC,SAAU,KAAM,IAAMD,cAAc,IAAK,CACxEE,QAAS,OACR,IAAMF,cAAc,OAAQ,CAC7BG,EAAG,UACHC,MAAO,MACPC,OAAQ,MACRC,KAAM,UACH,IAAMN,cAAc,SAAU,CACjCO,GAAI,YACJC,GAAI,MACJC,EAAG,KACHP,QAAS,QAC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,MAAOC,EAAgC,EAAhCA,YAAaI,EAAmB,EAAnBA,aACvDC,EAAWC,cAGXC,EAAaC,uBAAY,WAG7B,OAFAH,EAASI,YAHK,0BAIdL,KACO,IACN,IAMH,OAJAM,qBAAU,WACRL,EAASM,YATK,wBASeJ,MAC5B,IAGD,yBAAKL,UAAU,+BACb,kBAAC,EAAD,CAEIJ,QACAC,QACAC,cACAC,YAAa,kBAAC,IAAD,CAAWW,QAASL,EAAYL,UAAU,2CCblDW,UAbiB,SAACtB,GAAU,MACPuB,oBAAS,GADF,WAClCC,EADkC,KACvBC,EADuB,KAGzC,OACE,yBAAKd,UAAU,8BACb,0BAAMU,QAAS,kBAAMI,GAAa,IAAOd,UAAU,6CACjD,kBAAC,EAAD,CAAUA,UAAU,sCAErBa,GAAa,kBAAC,EAAD,OAA8BxB,EAA9B,CAAqCa,aAAc,kBAAMY,GAAa","file":"37.40ded4160f3bc3503c88.js","sourcesContent":["import React, { forwardRef } from 'react';\nimport { renderPathForWeight } from '../lib/index.esm.js';\nimport IconBase from '../lib/IconBase.esm.js';\n\n/* GENERATED FILE */\nvar pathsByWeight = /*#__PURE__*/new Map();\npathsByWeight.set(\"bold\", function (color) {\n  return React.createElement(React.Fragment, null, React.createElement(\"g\", {\n    opacity: \"0.1\"\n  }, React.createElement(\"rect\", {\n    x: \"0.00146\",\n    width: \"256\",\n    height: \"256\",\n    fill: \"none\"\n  })), React.createElement(\"circle\", {\n    cx: \"128.00146\",\n    cy: \"128\",\n    r: \"96\",\n    fill: \"none\",\n    stroke: color,\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: \"24\"\n  }), React.createElement(\"polyline\", {\n    points: \"120.001 124 128.001 124 128.001 176 136.001 176\",\n    fill: \"none\",\n    stroke: color,\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: \"24\"\n  }), React.createElement(\"circle\", {\n    cx: \"126\",\n    cy: \"84\",\n    r: \"16\"\n  }));\n});\npathsByWeight.set(\"duotone\", function (color) {\n  return React.createElement(React.Fragment, null, React.createElement(\"g\", {\n    opacity: \"0.1\"\n  }, React.createElement(\"rect\", {\n    x: \"0.00244\",\n    width: \"256\",\n    height: \"256\",\n    fill: \"none\"\n  })), React.createElement(\"circle\", {\n    cx: \"128.00244\",\n    cy: \"128\",\n    r: \"96\",\n    opacity: \"0.2\"\n  }), React.createElement(\"circle\", {\n    cx: \"128.00244\",\n    cy: \"128\",\n    r: \"96\",\n    fill: \"none\",\n    stroke: color,\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: \"16\"\n  }), React.createElement(\"polyline\", {\n    points: \"120.002 120 128.002 120 128.002 176 136.002 176\",\n    fill: \"none\",\n    stroke: color,\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: \"16\"\n  }), React.createElement(\"circle\", {\n    cx: \"126.00244\",\n    cy: \"84\",\n    r: \"12\"\n  }));\n});\npathsByWeight.set(\"fill\", function () {\n  return React.createElement(React.Fragment, null, React.createElement(\"g\", {\n    opacity: \"0.1\"\n  }, React.createElement(\"rect\", {\n    x: \"0.00195\",\n    width: \"256\",\n    height: \"256\",\n    fill: \"none\"\n  })), React.createElement(\"path\", {\n    d: \"M128.00146,23.99963a104,104,0,1,0,104,104A104.11791,104.11791,0,0,0,128.00146,23.99963ZM126.002,72a12,12,0,1,1-12,12A12,12,0,0,1,126.002,72Zm9.99951,111.99963h-8a8.0004,8.0004,0,0,1-8-8v-48a8,8,0,1,1,0-16h8a8.00039,8.00039,0,0,1,8,8v48a8,8,0,0,1,0,16Z\"\n  }));\n});\npathsByWeight.set(\"light\", function (color) {\n  return React.createElement(React.Fragment, null, React.createElement(\"g\", {\n    opacity: \"0.1\"\n  }, React.createElement(\"rect\", {\n    x: \"0.00098\",\n    width: \"256\",\n    height: \"256\",\n    fill: \"none\"\n  })), React.createElement(\"circle\", {\n    cx: \"128.00098\",\n    cy: \"128\",\n    r: \"96\",\n    fill: \"none\",\n    stroke: color,\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: \"12\"\n  }), React.createElement(\"polyline\", {\n    points: \"120 120 128.001 120 128 176 136 176\",\n    fill: \"none\",\n    stroke: color,\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: \"12\"\n  }), React.createElement(\"circle\", {\n    cx: \"126\",\n    cy: \"84\",\n    r: \"10\"\n  }));\n});\npathsByWeight.set(\"thin\", function (color) {\n  return React.createElement(React.Fragment, null, React.createElement(\"g\", {\n    opacity: \"0.1\"\n  }, React.createElement(\"rect\", {\n    x: \"0.00049\",\n    width: \"256\",\n    height: \"256\",\n    fill: \"none\"\n  })), React.createElement(\"circle\", {\n    cx: \"128.00049\",\n    cy: \"128\",\n    r: \"96\",\n    fill: \"none\",\n    stroke: color,\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: \"8\"\n  }), React.createElement(\"polyline\", {\n    points: \"120 120 128 120 128 176 136 176\",\n    fill: \"none\",\n    stroke: color,\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: \"8\"\n  }), React.createElement(\"circle\", {\n    cx: \"126.00049\",\n    cy: \"84\",\n    r: \"8\"\n  }));\n});\npathsByWeight.set(\"regular\", function (color) {\n  return React.createElement(React.Fragment, null, React.createElement(\"g\", {\n    opacity: \"0.1\"\n  }), React.createElement(\"circle\", {\n    cx: \"128\",\n    cy: \"128\",\n    r: \"96\",\n    fill: \"none\",\n    stroke: color,\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: \"16\"\n  }), React.createElement(\"polyline\", {\n    points: \"120 120 128 120 128 176 136 176\",\n    fill: \"none\",\n    stroke: color,\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: \"16\"\n  }), React.createElement(\"circle\", {\n    cx: \"126\",\n    cy: \"84\",\n    r: \"12\"\n  }));\n});\n\nvar renderPath = function renderPath(weight, color) {\n  return renderPathForWeight(weight, color, pathsByWeight);\n};\n\nvar Info = /*#__PURE__*/forwardRef(function (props, ref) {\n  return React.createElement(IconBase, Object.assign({\n    ref: ref\n  }, props, {\n    renderPath: renderPath\n  }));\n});\nInfo.displayName = \"Info\";\n\nexport default Info;\n//# sourceMappingURL=Info.esm.js.map\n","import React from 'react';\r\n\r\nconst ProductPriceHistory = ({ title, price, description, closeButton }) => {\r\n  return (\r\n    <div className=\"product-price-history\">\r\n      <div className=\"product-price-history__header\">\r\n        <div className=\"product-price-history__title\">{title}</div>\r\n        {closeButton}\r\n      </div>\r\n      <div className=\"product-price-history__content\">\r\n        <div className=\"product-price-history__price\">{price}</div>\r\n        <div className=\"product-price-history__description\">{description}</div>\r\n      </div>\r\n    </div>\r\n  );\r\n};\r\n\r\nexport default ProductPriceHistory;","import React, {  useEffect, useCallback } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { X as CloseIcon } from 'phosphor-react';\r\nimport {\r\n  addOverlay,\r\n  removeOverlay,\r\n} from '../../Actions/Overlay.action';\r\nimport ProductPriceHistory from './ProductPriceHistory';\r\n\r\nconst ProductPriceHistoryPopup = ({ title, price, description, onClosePopup }) => {\r\n  const dispatch = useDispatch();\r\n  const popupId = 'product-price-history';\r\n\r\n  const closePopup = useCallback(() => {\r\n    dispatch(removeOverlay(popupId));\r\n    onClosePopup();\r\n    return true;\r\n  }, []);\r\n\r\n  useEffect(() => {\r\n    dispatch(addOverlay(popupId, closePopup));\r\n  }, []);\r\n\r\n  return (\r\n    <div className=\"product-price-history-popup\">\r\n      <ProductPriceHistory\r\n        {...{\r\n          title,\r\n          price,\r\n          description,\r\n          closeButton: <CloseIcon onClick={closePopup} className=\"product-price-history-popup__close\" />\r\n        }}\r\n      />\r\n    </div>\r\n  );\r\n};\r\n\r\nexport default ProductPriceHistoryPopup;","import React, { useState } from 'react';\r\nimport { Info as InfoIcon } from 'phosphor-react';\r\nimport ProductPriceHistoryPopup from './ProductPriceHistoryPopup';\r\n\r\nconst ProductPriceHistoryLink = (props) => {\r\n  const [showPopup, setShowPopup] = useState(false);\r\n\r\n  return (\r\n    <div className=\"product-price-history-link\">\r\n      <span onClick={() => setShowPopup(true)} className=\"product-price-history-link__label-wrapper\">\r\n        <InfoIcon className=\"product-price-history-link__icon\" />\r\n      </span>\r\n      {showPopup && <ProductPriceHistoryPopup {...props} onClosePopup={() => setShowPopup(false)} />}\r\n    </div>\r\n  );\r\n};\r\n\r\nexport default ProductPriceHistoryLink;"],"sourceRoot":""}