{"version":3,"sources":["../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","components/routes/GuestRoute.js"],"names":["_objectWithoutProperties","source","excluded","key","i","target","Object","getOwnPropertySymbols","sourceSymbolKeys","length","indexOf","prototype","propertyIsEnumerable","call","connect","state","iAuthentificated","login","isAuthenticated","roles","user","Layout","layout","Component","component","left","right","hideFooter","rest","render","props"],"mappings":"iHAAA,8CACe,SAASA,EAAyBC,EAAQC,GACvD,GAAc,MAAVD,EAAgB,MAAO,GAC3B,IACIE,EAAKC,EADLC,EAAS,YAA6BJ,EAAQC,GAGlD,GAAII,OAAOC,sBAAuB,CAChC,IAAIC,EAAmBF,OAAOC,sBAAsBN,GAEpD,IAAKG,EAAI,EAAGA,EAAII,EAAiBC,OAAQL,IACvCD,EAAMK,EAAiBJ,GACnBF,EAASQ,QAAQP,IAAQ,GACxBG,OAAOK,UAAUC,qBAAqBC,KAAKZ,EAAQE,KACxDE,EAAOF,GAAOF,EAAOE,IAIzB,OAAOE,I,kLCYMS,uBAPf,SAAyBC,GACrB,MAAO,CACHC,iBAAkBD,EAAME,MAAMC,gBAC9BC,MAAOJ,EAAME,MAAMG,KAAKD,SAIjBL,EAvBI,SAAC,GAAwG,EAAtGE,iBAAsG,EAApFG,MAAqF,IAAtEE,EAAqE,EAA7EC,OAA2BC,EAAkD,EAA7DC,UAAsBC,EAAuC,EAAvCA,KAAMC,EAAiC,EAAjCA,MAAOC,EAA0B,EAA1BA,WAAeC,EAAW,iBACxH,OACI,cAAC,IAAD,2BACQA,GADR,IAEIC,OAAQ,SAAAC,GAAK,OACT,cAACT,EAAD,CAAQI,KAAMA,EAAMC,MAAOA,EAAOC,WAAYA,EAA9C,SACI,cAACJ,EAAD,eAAeO","file":"static/js/96.37ec3513.chunk.js","sourcesContent":["import objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { Route, Redirect } from \"react-router\";\r\nimport { connect } from \"react-redux\";\r\nimport * as UserRoles from '../../constants/specialty';\r\n\r\nconst GuestRoute = ({ iAuthentificated, roles, layout: Layout, component: Component, left, right, hideFooter, ...rest }) => {\r\n return (\r\n \r\n \r\n \r\n \r\n }\r\n />\r\n )\r\n};\r\nGuestRoute.propTypes = {\r\n component: PropTypes.any.isRequired,\r\n iAuthentificated: PropTypes.bool.isRequired\r\n};\r\nfunction mapStateToProps(state) {\r\n return {\r\n iAuthentificated: state.login.isAuthenticated,\r\n roles: state.login.user.roles\r\n };\r\n}\r\n\r\nexport default connect(mapStateToProps)(GuestRoute);\r\n"],"sourceRoot":""}