{"version":3,"file":"js/2643-5f9b9a1806e516f07a9a.chunk.js","mappings":"uIAIMA,EAAuBC,EAAAA,MAAW,kBAAM,iEAAgC,IAuC9E,UAlCwB,SAAHC,GAA0B,IAApBC,EAAYD,EAAZC,aAEzBC,GAA4BC,EAAAA,EAAAA,WAAS,GAAMC,GAAAC,EAAAA,EAAAA,GAAAH,EAAA,GAApCI,EAAMF,EAAA,GAAEG,EAASH,EAAA,GAUxB,OAPAI,EAAAA,EAAAA,YAAU,WACRF,EACIG,SAASC,KAAKC,UAAUC,IAAI,gBAC5BH,SAASC,KAAKC,UAAUE,OAAO,eACrC,GAAG,CAACP,IAIFP,EAAAA,cAAA,OAAKe,UAAS,oBAAAC,OAAsBd,GAAgB,KAElDF,EAAAA,cAAA,OAAKe,UAAU,2BAA2BE,QAAS,kBAAMT,GAAU,EAAK,GACtER,EAAAA,cAACkB,EAAAA,OAAM,CAACC,KAAK,YAAYC,KAAM,KAC/BpB,EAAAA,cAAA,OAAKe,UAAU,kCACXM,KAAKC,EAAE,mCAIXf,GACAP,EAAAA,cAACuB,EAAAA,SAAQ,CAACC,SAAU,IAClBxB,EAAAA,cAACD,EAAoB,CACnBQ,OAAQA,EACRkB,YAAa,kBAAMjB,GAAU,EAAM,KAM/C,C","sources":["webpack:///./app/javascript/components/SharedComponents/SpaceCalculator/index.jsx"],"sourcesContent":["import React, { useEffect, useState, Suspense } from 'react';\n\nimport { SvgIco } from \"../Icons\";\n\nconst SpaceCalculatorModal = React.lazy(() => import('./SpaceCalculatorModal'));\n\nimport './index.sass';\n\n\nconst SpaceCalculator = ({ wrapperClass }) => {\n\n const [isOpen, setIsOpen] = useState(false);\n\n\n useEffect(() => {\n isOpen\n ? document.body.classList.add('modal-active')\n : document.body.classList.remove('modal-active');\n }, [isOpen]);\n\n\n return (\n
\n\n
setIsOpen(true)}>\n \n
\n { I18n.t('space_calculator.toggle_label') }\n
\n
\n\n { isOpen &&\n \n setIsOpen(false)}\n />\n \n }\n
\n )\n};\n\nexport default SpaceCalculator;\n"],"names":["SpaceCalculatorModal","React","_ref","wrapperClass","_useState","useState","_useState2","_slicedToArray","isOpen","setIsOpen","useEffect","document","body","classList","add","remove","className","concat","onClick","SvgIco","name","size","I18n","t","Suspense","fallback","handleClose"],"sourceRoot":""}