{"version":3,"sources":["context.js","AppContext.js","App.js","serviceWorker.js","index.js"],"names":["AuthContext","createContext","isLoggedIn","user","token","login","logout","AppContext","initialState","headerTitle","field2","reducer","state","action","type","walletBalance","payload","AppProvider","_ref","children","dispatch","useReducer","React","createElement","Provider","value","useAppContext","useContext","App","loggedIn","setLoggedIn","useState","setUser","Login","lazy","LinkVerification","DefaultLayout","Fragment","localStorage","setItem","Object","keys","forEach","key","userId","getItem","clear","Suspense","fallback","BrowserRouter","Switch","Route","exact","path","name","render","props","SnackbarProvider","Boolean","window","location","hostname","match","ReactDOM","StrictMode","document","getElementById","navigator","serviceWorker","ready","then","registration","unregister","catch","error","console","message"],"mappings":"kGAAA,6CACO,MAAMA,EAAcC,wBAAc,CACrCC,YAAY,EACZC,KAAK,GACLC,MAAO,KACPC,MAAOA,OACPC,OAAQA,U,gCCNZ,wFAEA,MAAMC,EAAaN,0BAEbO,EAAe,CACnBC,YAAa,YACbC,OAAQ,IAGV,SAASC,EAAQC,EAAOC,GACtB,OAAQA,EAAOC,MACb,IAAK,iBACH,MAAO,IAAKF,EAAOG,cAAeF,EAAOG,SAE3C,QACE,OAAOJ,GAIN,SAASK,EAAWC,GAAgB,IAAf,SAAEC,GAAUD,EACtC,MAAON,EAAOQ,GAAYC,qBAAWV,EAASH,GAE9C,OACEc,IAAAC,cAAChB,EAAWiB,SAAQ,CAACC,MAAO,CAAEb,QAAOQ,aAClCD,GAKA,SAASO,IACd,OAAOC,qBAAWpB,K,gNC8BLqB,MAtDf,WACE,MAAOC,EAAUC,GAAeC,oBAAS,IAElC5B,EAAM6B,GAAWD,mBAAS,IAsB3BE,EAAQX,IAAMY,KAAK,IAAM,6EACzBC,EAAmBb,IAAMY,KAAK,IAAM,4EACpCE,EAAgBd,IAAMY,KAAK,IAAM,6EAGvC,OAFuBZ,IAAMY,KAAK,IAAM,gCAGtCZ,IAAAC,cAACD,IAAMe,SAAQ,KACbf,IAAAC,cAACvB,IAAYwB,SAAQ,CAACC,MAAO,CAAEvB,WAAY2B,EAAU1B,KAAMA,EAAME,MAzBtDF,KACb2B,GAAY,GACZE,EAAQ7B,GACRmC,aAAaC,QAAQ,cAAc,GAC/BpC,IACSqC,OAAOC,KAAKtC,GAClBuC,SAAQ,SAAUC,GACrBL,aAAaC,QAAQI,EAAKxC,EAAKwC,QAkB8CrC,OAdpEA,KACb,IAAIsC,EAAQN,aAAaO,QAAQ,UACjCf,GAAY,GAAQE,EAAQ,IAAKM,aAAaQ,QAC9CR,aAAaC,QAAQ,UAAWK,MAY5BtB,IAAAC,cAACD,IAAMyB,SAAQ,CAACC,SATA1B,IAAAC,cAAA,WAAK,eAUnBD,IAAAC,cAAC0B,IAAa,KACZ3B,IAAAC,cAAC2B,IAAM,KACL5B,IAAAC,cAAC4B,IAAK,CAACC,OAAK,EAACC,KAAK,SAASC,KAAK,aAAaC,OAAQC,GAASlC,IAAAC,cAACU,EAAUuB,KACzElC,IAAAC,cAAC4B,IAAK,CAACC,OAAK,EAACC,KAAK,oBAAoBC,KAAK,oBAAoBC,OAAQC,GAASlC,IAAAC,cAACY,EAAqBqB,KAEtGlC,IAAAC,cAACN,IAAW,KACZK,IAAAC,cAACkC,IAAgB,KACfnC,IAAAC,cAAC4B,IAAK,CAACE,KAAK,IAAIC,KAAK,YAAYC,OAAQC,GAASlC,IAAAC,cAACa,EAAkBoB,aCnCjEE,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MACvB,2DCZNC,IAASR,OACPjC,IAAAC,cAACD,IAAM0C,WAAU,KACf1C,IAAAC,cAACK,EAAG,OAENqC,SAASC,eAAe,SDyHpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MACrBC,KAAKC,IACJA,EAAaC,eAEdC,MAAMC,IACLC,QAAQD,MAAMA,EAAME,a","file":"static/js/main.ee4629a7.chunk.js","sourcesContent":["import { createContext } from 'react';\r\nexport const AuthContext = createContext({\r\n isLoggedIn: false,\r\n user:{},\r\n token: null,\r\n login: () => {},\r\n logout: () => {},\r\n // showMessageBoxSuccess: () => {},\r\n // showMessageBoxFail: () => {},\r\n});\r\n\r\n","import React, { createContext, useContext, useReducer } from 'react';\r\n\r\nconst AppContext = createContext();\r\n\r\nconst initialState = {\r\n headerTitle: 'Dashboard',\r\n field2: '',\r\n};\r\n\r\nfunction reducer(state, action) {\r\n switch (action.type) {\r\n case 'WALLET_BALANCE':\r\n return { ...state, walletBalance: action.payload };\r\n \r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport function AppProvider({ children }) {\r\n const [state, dispatch] = useReducer(reducer, initialState);\r\n\r\n return (\r\n