{"version":3,"sources":["webpack:///./Avensia.Common/Features/Shared/Icon/Radio.tsx","webpack:///./Avensia.Common/Features/Shared/Fields/Toggle.tsx","webpack:///./Avensia.Common/Features/Shared/Icon/Checkbox.tsx","webpack:///./Avensia.Common/Features/Shared/Icon/glyphs/checkbox_unchecked.svg","webpack:///./Avensia.Common/Features/Shared/Icon/glyphs/checkbox_checked.svg","webpack:///./Avensia.Common/Features/Shared/Icon/glyphs/radio-button.svg","webpack:///./Avensia.Common/Features/Shared/Icon/glyphs/radio-button-checked.svg"],"names":["Unchecked","Checked","sharedCheckBoxStyle","width","height","StyledChecked","StyledUnchecked","CheckedCheckBox","color","theme","secondaryColor","props","onChange","e","checked","target","state","setState","UNSAFE_componentWillReceiveProps","nextProps","this","render","restProps","Object","assign","children","className","style","Input","ref","elementRef","type","Component","factory","cursor","display","alignItems","Radio","input","React","CheckboxUnchecked","createElement","defaultProps","module","exports","default","CheckboxChecked","RadioButton","RadioButtonChecked"],"mappings":"gLAIaA,EAAY,YAAQ,KACpBC,EAAU,YAAQ,K,2ECC/B,IAAMC,EAAsB,CAC1BC,MAAO,KAAmB,IAC1BC,OAAQ,KAAmB,KAGvBC,EAAgB,YAAO,IAASH,GAChCI,EAAkB,YAAO,IAAWJ,GAEpCK,EAAkB,YAAOF,EAAe,CAC5CG,MAAO,SAACC,GAAU,OAAAA,EAAMC,kBAW1B,cACE,WAAYC,GAAZ,MACE,YAAMA,IAAM,K,OAWd,EAAAC,SAAW,SAACC,GAIV,GAHI,EAAKF,MAAMC,UACb,EAAKD,MAAMC,SAASC,QAEY,IAAvB,EAAKF,MAAMG,QAAyB,CAC7C,IAAMA,EAAWD,EAAEE,OAA4BD,QAC3CA,IAAY,EAAKE,MAAMF,SACzB,EAAKG,SAAS,CAAEH,QAAO,MAjB3B,EAAKE,MAAQ,CACXF,aAAkC,IAAlBH,EAAMG,SAAkCH,EAAMG,S,EA4CpE,OAhDqB,iBAOnB,YAAAI,iCAAA,SAAiCC,GAC/B,IA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g';\r\nimport CheckedSvg from './glyphs/radio-button-checked.svg';\r\n\r\nexport const Unchecked = factory(UncheckedSvg);\r\nexport const Checked = factory(CheckedSvg);\r\n","import React from 'react';\r\nimport { styled, applyClassName } from '@glitz/react';\r\nimport { Unchecked, Checked } from '../Icon/Checkbox';\r\nimport { Unchecked as UncheckedRadio, Checked as CheckedRadio } from '../Icon/Radio';\r\nimport * as style from '../Style';\r\n\r\nconst sharedCheckBoxStyle = {\r\n width: style.pixelsToUnit(15),\r\n height: style.pixelsToUnit(15),\r\n};\r\n\r\nconst StyledChecked = styled(Checked, sharedCheckBoxStyle);\r\nconst StyledUnchecked = styled(Unchecked, sharedCheckBoxStyle);\r\n\r\nconst CheckedCheckBox = styled(StyledChecked, {\r\n color: (theme) => theme.secondaryColor,\r\n});\r\n\r\ntype PropType = React.InputHTMLAttributes & {\r\n elementRef?: (el: HTMLInputElement) => void;\r\n};\r\n\r\ntype StateType = {\r\n checked: boolean;\r\n};\r\n\r\nclass Toggle extends React.Component {\r\n constructor(props: PropType) {\r\n super(props);\r\n this.state = {\r\n checked: typeof props.checked === 'undefined' ? false : props.checked,\r\n };\r\n }\r\n UNSAFE_componentWillReceiveProps(nextProps: PropType) {\r\n const checked = typeof nextProps.checked === 'undefined' ? this.state.checked : nextProps.checked;\r\n if (this.props.checked !== checked) {\r\n this.setState({ checked });\r\n }\r\n }\r\n onChange = (e: React.ChangeEvent) => {\r\n if (this.props.onChange) {\r\n this.props.onChange(e);\r\n }\r\n if (typeof this.props.checked === 'undefined') {\r\n const checked = (e.target as HTMLInputElement).checked;\r\n if (checked !== this.state.checked) {\r\n this.setState({ checked });\r\n }\r\n }\r\n };\r\n render() {\r\n const restProps = Object.assign({}, this.props) as PropType;\r\n delete restProps.children;\r\n delete restProps.className;\r\n delete restProps.style;\r\n\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nfunction factory(type: 'radio' | 'checkbox') {\r\n return styled(\r\n applyClassName((props: PropType) => ),\r\n {\r\n cursor: 'pointer',\r\n display: 'inline-flex',\r\n alignItems: 'center',\r\n },\r\n );\r\n}\r\n\r\nexport const Radio = factory('radio');\r\nexport const Checkbox = factory('checkbox');\r\nconst Input = styled.input(style.visuallyHidden());\r\n","import factory from './icon';\r\nimport UncheckedSvg from './glyphs/checkbox_unchecked.svg';\r\nimport CheckedSvg from './glyphs/checkbox_checked.svg';\r\n\r\nexport const Unchecked = factory(UncheckedSvg);\r\nexport const Checked = factory(CheckedSvg);\r\n","var React = require('react');\n\nfunction CheckboxUnchecked (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"defs\",{\"key\":0},React.createElement(\"path\",{\"id\":\"path-1\",\"d\":\"M0 2h15v15H0z\"})),React.createElement(\"g\",{\"id\":\"Categorypage-Copy-2\",\"stroke\":\"none\",\"strokeWidth\":\"1\",\"fill\":\"none\",\"fillRule\":\"evenodd\",\"transform\":\"translate(-48 -1134)\",\"key\":1},React.createElement(\"g\",{\"id\":\"Group-9\",\"transform\":\"translate(46 304)\"},React.createElement(\"g\",{\"id\":\"Filtrera\",\"transform\":\"translate(1 714)\"},React.createElement(\"g\",{\"id\":\"Group-4-Copy\",\"transform\":\"translate(0 42)\"},React.createElement(\"g\",{\"id\":\"Group-3-Copy\",\"transform\":\"translate(1 72)\"},React.createElement(\"g\",{\"id\":\"Rectangle-2\"},[React.createElement(\"use\",{\"fill\":\"#FFF\",\"xlinkHref\":\"#path-1\",\"key\":0}),React.createElement(\"path\",{\"stroke\":\"#909090\",\"d\":\"M.5 2.5h14v14H.5z\",\"key\":1})]))))))]);\n}\n\nCheckboxUnchecked.defaultProps = {\"width\":\"15\",\"height\":\"15\",\"viewBox\":\"0 0 15 15\"};\n\nmodule.exports = CheckboxUnchecked;\n\nCheckboxUnchecked.default = CheckboxUnchecked;\n","var React = require('react');\n\nfunction CheckboxChecked (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"defs\",{\"key\":0},React.createElement(\"path\",{\"id\":\"path-1\",\"d\":\"M0 2h15v15H0z\"})),React.createElement(\"g\",{\"id\":\"Categorypage-Copy-2\",\"stroke\":\"none\",\"strokeWidth\":\"1\",\"fill\":\"none\",\"fillRule\":\"evenodd\",\"transform\":\"translate(-48 -1134)\",\"key\":1},React.createElement(\"g\",{\"id\":\"Group-9\",\"transform\":\"translate(46 304)\"},React.createElement(\"g\",{\"id\":\"Filtrera\",\"transform\":\"translate(1 714)\"},React.createElement(\"g\",{\"id\":\"Group-4-Copy\",\"transform\":\"translate(0 42)\"},React.createElement(\"g\",{\"id\":\"Group-3-Copy\",\"transform\":\"translate(1 72)\"},React.createElement(\"g\",{\"id\":\"Rectangle-2\"},[React.createElement(\"use\",{\"fill\":\"currentColor\",\"xlinkHref\":\"#path-1\",\"key\":0}),React.createElement(\"path\",{\"stroke\":\"currentColor\",\"d\":\"M.5 2.5h14v14H.5z\",\"key\":1})]))))))]);\n}\n\nCheckboxChecked.defaultProps = {\"width\":\"15\",\"height\":\"15\",\"viewBox\":\"0 0 15 15\"};\n\nmodule.exports = CheckboxChecked;\n\nCheckboxChecked.default = CheckboxChecked;\n","var React = require('react');\n\nfunction RadioButton (props) {\n return React.createElement(\"svg\",props,React.createElement(\"g\",{\"id\":\"Checkout-Desktop--January\",\"stroke\":\"none\",\"strokeWidth\":\"1\",\"fill\":\"none\",\"fillRule\":\"evenodd\",\"transform\":\"translate(-459 -2080)\"},React.createElement(\"g\",{\"id\":\"Group-13\",\"transform\":\"translate(430 2051)\",\"fill\":\"#FFF\",\"stroke\":\"#513265\"},React.createElement(\"g\",{\"id\":\"Group-5\",\"transform\":\"translate(30 28)\"},React.createElement(\"circle\",{\"id\":\"Oval\",\"cx\":\"14\",\"cy\":\"16\",\"r\":\"14\"})))));\n}\n\nRadioButton.defaultProps = {\"width\":\"30\",\"height\":\"30\",\"viewBox\":\"0 0 30 30\"};\n\nmodule.exports = RadioButton;\n\nRadioButton.default = RadioButton;\n","var React = require('react');\n\nfunction RadioButtonChecked (props) {\n return React.createElement(\"svg\",props,React.createElement(\"g\",{\"id\":\"Checkout-Desktop--January\",\"stroke\":\"none\",\"strokeWidth\":\"1\",\"fill\":\"none\",\"fillRule\":\"evenodd\",\"transform\":\"translate(-459 -2080)\"},React.createElement(\"g\",{\"id\":\"Group-13\",\"transform\":\"translate(430 2051)\"},React.createElement(\"g\",{\"id\":\"Group-5\",\"transform\":\"translate(30 28)\"},React.createElement(\"g\",{\"id\":\"Group-18\",\"transform\":\"translate(0 2)\"},[React.createElement(\"circle\",{\"id\":\"Oval\",\"stroke\":\"#513265\",\"fill\":\"#FFF\",\"cx\":\"14\",\"cy\":\"14\",\"r\":\"14\",\"key\":0}),React.createElement(\"circle\",{\"id\":\"Oval-Copy\",\"fill\":\"#513265\",\"cx\":\"14\",\"cy\":\"14\",\"r\":\"10\",\"key\":1})])))));\n}\n\nRadioButtonChecked.defaultProps = {\"width\":\"30\",\"height\":\"30\",\"viewBox\":\"0 0 30 30\"};\n\nmodule.exports = RadioButtonChecked;\n\nRadioButtonChecked.default = RadioButtonChecked;\n"],"sourceRoot":""}