{"version":3,"sources":["pages/partner-ip-auto-login/PartnerIPAutoLogin.js","components/core/StyledButton.js","components/SimpleDialog/SimpleDialog.js","components/IPLoginErrorDialog/IPLoginErrorDialog.js"],"names":["PartnerIPAutoLogin","makeStyles","theme","createStyles","props","history","useHistory","useMatomo","trackEvent","pushInstruction","userDispatch","useUserDispatch","useState","isLoading","setIsLoading","setIPLoginError","useEffect","getPlatformInfo","then","res","loginIPUser","dispatch","catch","err","console","log","Grid","container","spacing","item","xs","IPLoginErrorDialog","isPartnerPage","defaultProps","propsTypes","useStyles","root","typography","h6","marginRight","h40","height","padding","h28","defaultRoot","borderRadius","tagRoot","paddingLeft","paddingRight","textRoot","active","color","backgroundColor","palette","primary","main","dark","outlineActive","border","borderColor","textActive","inactive","common","grey","StyledButton","classes","variant","className","rest","variantClass","activeClass","heightClass","classNames","disabled","dialogPaper","width","dialogTitle","h4","fontWeight","dialogDescription","smallCaption","dialogButton","caption","Transition","React","forwardRef","ref","Slide","direction","SimpleDialog","open","setOpen","title","content","leftButtonText","rightButtonText","leftButtonOnClick","rightButtonOnClick","handleDialogClose","Dialog","paper","TransitionComponent","keepMounted","onClose","aria-labelledby","aria-describedby","DialogTitle","id","DialogContent","DialogContentText","DialogActions","onClick","IPLoginError","useUserState","platform","invalidIP","IPGroups","notFound","errorMsg","getErrorMsg","errorContent","ip","isEmpty","first","getErrorContent","openDialog","setOpenDialog","real_domain","window","location","href"],"mappings":"uRAYMA,GAFYC,aAAW,SAAAC,GAAK,OAAIC,YAAa,OAExB,SAAAC,GACzB,IAAMC,EAAUC,cADkB,EAEMC,cAAhCC,EAF0B,EAE1BA,WAAYC,EAFc,EAEdA,gBACdC,EAAeC,cAHa,EAIAC,oBAAS,GAJT,mBAI3BC,EAJ2B,KAIhBC,EAJgB,OAKMF,oBAAS,GALf,mBAKbG,GALa,WA0BlC,OAnBAC,qBAAU,WACRF,GAAa,GACbG,cACGC,MAAK,SAAAC,GACJC,YAAY,CACVC,SAAUX,EACVI,eACA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C,GAAiD,IAA/CL,EAA8C,EAA9CA,UAAWC,EAAmC,EAAnCA,SAAUvD,EAAyB,EAAzBA,SAAUwD,EAAe,EAAfA,SAClDI,EAAKC,kBAAQN,GAAY,GAAKO,gBAAMP,GAC1C,OAAID,EACI,yBAAN,OAAiBM,EAAjB,yIACS5D,EACF,GACEwD,EACH,OAAN,OAAcI,QADT,EAUYG,CAAgB,CACnCT,YACAC,WACAvD,WACAwD,aAhCoE,EAkClCzG,oBAAS,GAlCyB,mBAkC/DiH,EAlC+D,KAkCnDC,EAlCmD,KAoCtE9G,qBAAU,WAEN8G,IADER,KAKH,CAACA,IAEJ,IAAMvB,EAAkB/D,GAAiB,qBACnCiE,EAAqBjE,GAvBF,WACnBkF,EAASa,cACXC,OAAOC,SAASC,KAAhB,kBAAkChB,EAASa,eAsB/C,OACE,kBAAC,EAAD,CACErC,KAAMmC,EACNlC,QAASmC,EACTlC,MAAO0B,EACPzB,QAAS2B,EACTzB,gBAAiBA,EACjBE,mBAAoBA,MAK1BlE,EAAmBE,aAAe,GAElCF,EAAmBG,WAAa,GAEjBH","file":"static/js/30.fbcef1f2.chunk.js","sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { makeStyles, createStyles } from \"@material-ui/core/styles\";\nimport { useHistory } from \"react-router-dom\";\nimport { Grid } from \"@material-ui/core\";\nimport IPLoginErrorDialog from \"../../components/IPLoginErrorDialog/IPLoginErrorDialog\";\nimport { useMatomo } from \"@datapunt/matomo-tracker-react\";\nimport { useUserDispatch, loginIPUser } from \"../../context/UserContext\";\nimport { getPlatformInfo } from \"../../clientAPI\";\n\nconst useStyles = makeStyles(theme => createStyles({}));\n\nconst PartnerIPAutoLogin = props => {\n const history = useHistory();\n const { trackEvent, pushInstruction } = useMatomo();\n const userDispatch = useUserDispatch();\n const [isLoading, setIsLoading] = useState(true);\n const [IPLoginError, setIPLoginError] = useState(false);\n\n useEffect(() => {\n setIsLoading(true);\n getPlatformInfo()\n .then(res => {\n loginIPUser({\n dispatch: userDispatch,\n setIsLoading,\n trackEvent,\n pushInstruction,\n setIPLoginError,\n history,\n });\n })\n .catch(err => {\n console.log(err);\n setIsLoading(false);\n });\n }, []);\n\n return (\n