{"version":3,"sources":["base_urls.js","scss/style.scss","views/pages/login/Verify.js","polyfill.js","App.js","serviceWorker.js","assets/icons/sygnet.js","assets/icons/index.js","assets/icons/logo.js","assets/icons/logo-negative.js","store.js","index.js","services/auth/auth.service.js","firebase.js"],"names":["selfApi","selfUrl","module","exports","Spinner","require","VerifyAuth","useState","isLoggedin","setIsLoggedIn","useEffect","className","style","backgroundColor","name","color","isUserLoggedIn","console","log","getToken","push","to","firebase","auth","isSignInWithEmailLink","window","location","href","email","localStorage","getItem","replace","signInWithEmailLink","then","result","removeItem","user","getIdToken","token","decoded","jwtDecode","setItem","exp","catch","error","verifyAuthentication","CustomEvent","event","params","bubbles","cancelable","detail","undefined","evt","document","createEvent","initCustomEvent","prototype","Event","loading","TheLayout","React","lazy","Login","Logout","Register","Page404","Page500","App","dispatch","useDispatch","localStoreLang","type","language","Suspense","fallback","exact","path","render","props","Boolean","hostname","match","icons","Object","assign","sygnet","logo","logoNegative","cilAlignCenter","cilAlignLeft","cilAlignRight","cilApplicationsSettings","cilArrowRight","cilArrowTop","cilAsterisk","cilBan","cilBasket","cilBell","cilBold","cilBookmark","cilCalculator","cilCalendar","cilCloudDownload","cilChartPie","cilCheck","cilChevronBottom","cilChevronLeft","cilChevronRight","cilChevronTop","cilCircle","cilCheckCircle","cilCode","cilCommentSquare","cilCreditCard","cilCursor","cilCursorMove","cilDrop","cilDollar","cilEnvelopeClosed","cilEnvelopeLetter","cilEnvelopeOpen","cilEuro","cilGlobeAlt","cilGrid","cilFile","cilFullscreen","cilFullscreenExit","cilGraph","cilHome","cilInbox","cilIndentDecrease","cilIndentIncrease","cilInputPower","cilItalic","cilJustifyCenter","cilJustifyLeft","cilLaptop","cilLayers","cilLightbulb","cilList","cilListNumbered","cilListRich","cilLocationPin","cilLockLocked","cilMagnifyingGlass","cilMap","cilMoon","cilNotes","cilOptions","cilPaperclip","cilPaperPlane","cilPencil","cilPeople","cilPhone","cilPrint","cilPuzzle","cilSave","cilScrubber","cilSettings","cilShare","cilShareAll","cilShareBoxed","cilShieldAlt","cilSpeech","cilSpeedometer","cilSpreadsheet","cilStar","cilSun","cilTags","cilTask","cilTrash","cilUnderline","cilUser","cilUserFemale","cilUserFollow","cilUserUnfollow","cilX","cilXCircle","cilWarning","cifUs","cifBr","cifIn","cifFr","cifEs","cifPl","cibSkype","cibFacebook","cibTwitter","cibLinkedin","cibFlickr","cibTumblr","cibXing","cibGithub","cibStackoverflow","cibYoutube","cibDribbble","cibInstagram","cibPinterest","cibVk","cibYahoo","cibBehance","cibReddit","cibVimeo","cibCcMastercard","cibCcVisa","cibStripe","cibPaypal","cibGooglePay","cibCcAmex","initialState","sidebarShow","store","createStore","state","rest","ReactDOM","getElementById","navigator","serviceWorker","ready","registration","unregister","getUserUid","user_id","initializeApp","apiKey","authDomain","projectId","storageBucket","messagingSenderId","appId","measurementId"],"mappings":"4KAAA,kCAGeA,IAHC,4BAKT,IAAMC,EAAU,oC,0DCJvBC,EAAOC,QAAU,CAAC,YAAc,UAAU,gBAAkB,UAAU,WAAa,UAAU,UAAY,UAAU,eAAiB,OAAO,WAAa,Y,wHCWpJC,EAAUC,EAAQ,KAgGPC,UA5EI,WAAO,IAAD,EACaC,oBAAS,GADtB,mBAChBC,EADgB,KACJC,EADI,KAGvBC,qBAAU,cAEP,CAACF,IAkDJ,OACE,yBAAKG,UAAU,qDAAqDC,MAAO,CAACC,gBAAgB,SAE1F,kBAACT,EAAD,CAASU,KAAK,eAAeC,MAAM,WAE/B,WACE,GAAIC,eAAoBR,EAGtB,OAFAS,QAAQC,IAAI,iBAAkBC,eAG1B,kBAAC,IAAD,CAAUC,MAAI,EAACC,GAAG,mBAzDL,WAG3B,GAAIC,IAASC,OAAOC,sBAAsBC,OAAOC,SAASC,MAAO,CAM/D,IAAIC,EAAQC,aAAaC,QAAQ,kBAC5BF,GAIHH,OAAOC,SAASK,QAAQ9B,IAAQ,YAIlCqB,IAASC,OAAOS,oBAAoBJ,EAAOH,OAAOC,SAASC,MACtDM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ACAC,uBACAC,uBACAC,qBACAC,aACAC,iBACAC,aACAC,aACAC,mBACAC,uBACAC,cACAC,aACAC,cACAC,uBACAC,uBACAC,mBACAC,eACAC,sBACAC,oBACAC,eACAC,eACAC,kBACAC,aACAC,qBACAC,iBACAC,oBACAC,mBACAC,wBACAC,YACAC,aACAC,cACAC,gBACAC,kBACAC,mBACAC,eACAC,eACAC,cACAC,cACAC,eACAC,aACAC,iBACAC,iBACAC,cACAC,iBACAC,mBACAC,kBACAC,eACAC,oBACAC,oBACAC,aACAC,YACAC,aACAC,aACAC,cACAC,kBACAC,aACAC,mBACAC,mBACAC,qBACAC,UACAC,gBACAC,iBACC,CACDC,UACAC,UACAC,UACAC,UACAC,UACAC,WACC,CACDC,aACAC,gBACAC,eACAC,gBACAC,cACAC,cACAC,YACAC,cACAC,qBACAC,eACAC,gBACAC,iBACAC,iBACAC,UACAC,aACAC,eACAC,cACAC,aACAC,oBACAC,cACAC,cACAC,cACAC,iBACAC,gB,8BGjQIC,GAAe,CACnBC,YAAa,aACb1I,SAAU,MAaG2I,GADDC,cATM,WAA8C,IAA7CC,EAA4C,uDAApCJ,GAAoC,yCAApB1I,EAAoB,EAApBA,KAAS+I,EAAW,yBAC/D,OAAQ/I,GACN,IAAK,MACH,OAAO,6BAAI8I,GAAUC,GACvB,QACE,OAAOD,MCCbzJ,IAAMsB,MAAQA,GAEdqI,IAAS1I,OACP,kBAAC,IAAD,CAAUsI,MAAOA,IACf,kBAAC,EAAD,OAEF9J,SAASmK,eAAe,SNsGpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAM3L,MAAK,SAAA4L,GACjCA,EAAaC,iB,gCO3HnB,iFAEM3M,EAAW,WACb,OAAOU,aAAaC,QAAQ,UAInBiM,EAAa,WACtB,IAAIzL,EAAQnB,IACZ,OAAa,MAATmB,EACO,OACKE,YAAUF,GACX0L,SAGNhN,EAAiB,WAC1B,IAAIsB,EAAQnB,IACZ,QAAkB,MAATmB,IAAkBA,IAKhBnB,O,gCCtBf,oBAeAG,IAAS2M,cAVqB,CAC1BC,OAAQ,0CACRC,WAAY,uCACZC,UAAW,uBACXC,cAAe,mCACfC,kBAAmB,eACnBC,MAAO,4CACPC,cAAe,iBAKJlN,MAAf,I","file":"static/js/main.d9a4c91f.chunk.js","sourcesContent":["const selfApi = \"http://159.69.86.178:5100\";\n\n//const selfApi = \"http://localhost:5000\";\nexport default selfApi;\n\nexport const selfUrl = \"http://self-test.multinations.eu\";\n// export const selfUrl = \"http://159.69.86.178:3100\";\n// export const selfUrl = \"http://localhost:3000\";\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"agrosYellow\":\"#29b7e3\",\"agrosYellowDark\":\"#29b7e3\",\"agrosGreen\":\"#093559\",\"eocOrange\":\"#ffc72c\",\"agrosBlackGrey\":\"#111\",\"agrosBlack\":\"#093559\"};","import React, {useEffect, useState} from 'react'\nimport {Redirect} from 'react-router-dom'\nimport '../../../firebase'\nimport \"firebase/auth\";\n// import firebase from \"firebase/auth\";\nimport firebase from \"../../../firebase\";\nimport jwtDecode from \"jwt-decode\";\nimport '../../../services/auth/auth.service'\nimport getToken, {isUserLoggedIn} from \"../../../services/auth/auth.service\";\nimport {selfUrl} from \"../../../base_urls\";\n// import firebase from \"firebase\";\n\nvar Spinner = require('react-spinkit');\n\n\nvar actionCodeSettings = {\n // URL you want to redirect back to. The domain (www.example.com) for this\n // URL must be in the authorized domains list in the Firebase Console.\n url: 'http://localhost:3000/#/login',\n // This must be true.\n handleCodeInApp: true,\n /* iOS: {\n bundleId: 'com.example.ios'\n },\n android: {\n packageName: 'com.example.android',\n installApp: true,\n minimumVersion: '12'\n },\n dynamicLinkDomain: 'localhost:3000'*/\n};\n\nconst VerifyAuth = () => {\n const [isLoggedin, setIsLoggedIn] = useState(false);\n\n useEffect(()=> {\n\n }, [isLoggedin])\n\n\n const verifyAuthentication = () => {\n // console.log(\"I am doing \")\n // Confirm the link is a sign-in with email link.\n if (firebase.auth().isSignInWithEmailLink(window.location.href)) {\n // Additional state parameters can also be passed via URL.\n // This can be used to continue the user's intended action before triggering\n // the sign-in operation.\n // Get the email if available. This should be available if the user completes\n // the flow on the same device where they started it.\n var email = localStorage.getItem('emailForSignIn');\n if (!email) {\n // console.log(\"No email found\");\n // User opened the link on a different device. To prevent session fixation\n // attacks, ask the user to provide the associated email again. For example:\n window.location.replace(selfUrl+\"/#/login\");\n // email = window.prompt('Please provide your email for confirmation');\n }\n // The client SDK will parse the code from the link for you.\n firebase.auth().signInWithEmailLink(email, window.location.href)\n .then((result) => {\n // console.log(\"Email \", email);\n // Clear email from storage.\n localStorage.removeItem('emailForSignIn');\n // You can access the new user via result.user\n // Additional user info profile not available via:\n // result.additionalUserInfo.profile == null\n // You can check if the user is new or existing:\n // result.additionalUserInfo.isNewUser\n console.log(\"User: \", result.user.getIdToken().then(token => {\n const decoded = jwtDecode(token);\n console.log(decoded);\n localStorage.setItem('token', token);\n localStorage.setItem('user_email', decoded.email);\n localStorage.setItem('expires', decoded.exp);\n setIsLoggedIn(true);\n window.location.replace(selfUrl+'/#/multinations');\n }));\n //