{"version":3,"sources":["services/customer.service.js","services/index.js","components/shared/LoadingComponent.js","constants/alert.constants.js","constants/user.constants.js","constants/global.constants.js","constants/customer.constants.js","constants/index.js","services/user.service.js","helpers/history.js","reducers/authentication.reducer.js","reducers/globals.reducer.js","reducers/customers.reducer.js","reducers/index.js","reducers/users.reducer.js","reducers/alert.reducer.js","helpers/store.js","helpers/auth-header.js","helpers/config.js","helpers/index.js","helpers/urlHelper.js","helpers/arrayHelper.js","actions/global.actions.js","actions/customer.actions.js","actions/index.js","actions/user.actions.js","services/global.service.js","services/serviceHelper.js","image/header-logo.png","actions/alert.actions.js","components/PrivateRoute.jsx","components/NavMenu.js","components/MainLayout.js","App.js","serviceWorker.js","index.js"],"names":["customerService","getCustomerByYaa","status","requestOptions","method","headers","authHeader","fetch","then","helper","handleResponse","getCustomerInfoByYaa","bookingCustomer","data","body","JSON","stringify","deleteBookingCustomer","id","_package","require","LoadingContent","props","className","version","LoadingComponent","error","onClick","retry","timedOut","pastDelay","alertConstants","SUCCESS","ERROR","CLEAR","userConstants","REGISTER_REQUEST","REGISTER_SUCCESS","REGISTER_FAILURE","LOGIN_REQUEST","LOGIN_SUCCESS","LOGIN_FAILURE","LOGOUT","GETALL_REQUEST","GETALL_SUCCESS","GETALL_FAILURE","DELETE_REQUEST","DELETE_SUCCESS","DELETE_FAILURE","GET_USER_YAA_BY_ID_REQUEST","GET_USER_YAA_BY_ID_SUCCESS","GET_USER_YAA_BY_ID_FAILURE","GET_USER_ACCEPT_REQUEST","GET_USER_ACCEPT_SUCCESS","GET_USER_ACCEPT_FAILURE","POST_USER_ACCEPT_REQUEST","POST_USER_ACCEPT_SUCCESS","POST_USER_ACCEPT_FAILURE","globalConstants","GET_BANK_REQUEST","GET_BANK_SUCCESS","GET_BANK_FAILURE","GET_SEARCH_CUSTOMER_REQUEST","GET_SEARCH_CUSTOMER_SUCCESS","GET_SEARCH_CUSTOMER_FAILURE","customerConstants","GET_CUSTOMER_BY_AUTH_AND_STATUS_REQUEST","GET_CUSTOMER_BY_AUTH_AND_STATUS_SUCCESS","GET_CUSTOMER_BY_AUTH_AND_STATUS_FAILURE","GET_CUSTOMER_INFO_BY_AUTH_REQUEST","GET_CUSTOMER_INFO_BY_AUTH_SUCCESS","GET_CUSTOMER_INFO_BY_AUTH_FAILURE","NEW_BOOK_CUSTOMER_REQUEST","NEW_BOOK_CUSTOMER_SUCCESS","NEW_BOOK_CUSTOMER_FAILURE","DELETE_BOOK_CUSTOMER_REQUEST","DELETE_BOOK_CUSTOMER_SUCCESS","DELETE_BOOK_CUSTOMER_FAILURE","store_name","userService","login","username","password","user","token","localStorage","setItem","loginToken","logout","register","validateToken","getYaaUserProfileById","sendMail","GetAcceptDisclamer","AcceptDisclamerLog","acceptType","i","length","key","indexOf","console","log","removeItem","response","text","parse","ok","window","location","reload","message","statusText","Promise","reject","history","createBrowserHistory","getItem","initialState","loggedIn","init","loading","items","inits","item","all","pending","success","rootReducer","combineReducers","authentication","state","action","type","loggingIn","users","map","deleting","filter","deleteError","alert","banks","search_customer","customers_book","concat","book","customer_info","user_yaa_profile","profile","licenseHistory","enhancers","createLogger","store","createStore","compose","applyMiddleware","thunkMiddleware","Authorization","apiUrl","compareAntTable","a","b","getObjectByKey","array","object_id","lookup","len","globalActions","getBankAll","dispatch","globalService","GetBankAll","setTimeout","failure","toString","alertActions","searchCustomer","IdNumber","SearchCustomer","customerActions","userActions","push","BaseURL","request","res","validate","isDisclamer","getIncentive","getIncentiveReportByProductMonthTrade","getOrganizationById","getIncentiveOrganization","getIncentiveOrganizationDetail","getIncentiveReportByProductMonthTradeOrganization","getIncentiveReportByProductMonthTradeOrganizationDetail","getSelectCommander","verifyCorporationCode","changePasswordUrl","module","exports","clear","PrivateRoute","Component","component","rest","Route","render","auth","Redirect","to","pathname","from","FontSize","styled","div","NavMenu","displayName","name","componentDidMount","setState","userType","userName","toggle","bind","isOpen","element","document","getElementById","classList","remove","add","this","color","expand","style","padding","src","LOGO","alt","navbar","exact","withRouter","MainLayout","children","connect","LoginPage","Loadable","loader","delay","Home","OrganizationPage","OrganizationDetailPage","OrganizationBalanceHistory","Register","RegisterStatusPage","ListCustomer","BalanceHistory","Profile","RegisterDocument","CustomerDetail","VerifyToken","RegisterDocumentCorporation","CorporationBookCustomerPage","App","listen","Router","Switch","path","React","Boolean","hostname","match","rootElement","navigator","serviceWorker","ready","registration","unregister"],"mappings":"0IAGaA,EAAkB,CAC9BC,iBAMD,WAA2C,IAAjBC,EAAgB,uDAAP,MAC5BC,EAAiB,CACtBC,OAAQ,MACRC,QAASC,eAGV,OAAOC,MAAM,iCAAD,OAAkCL,GAAUC,GAAgBK,KAAKC,IAAOC,iBAXpFC,qBAcD,WACC,IAAMR,EAAiB,CACtBC,OAAQ,MACRC,QAASC,eAGV,OAAOC,MAAM,oCAAqCJ,GAAgBK,KAAKC,IAAOC,iBAnB9EE,gBAsBD,SAAyBC,GACxB,IAAMV,EAAiB,CACtBC,OAAQ,OACRC,QAASC,cACTQ,KAAMC,KAAKC,UAAUH,IAGtB,OAAON,MAAM,4BAA6BJ,GAAgBK,KAAKC,IAAOC,iBA5BtEO,sBA+BD,SAA+BC,GAC9B,IAAMf,EAAiB,CACtBC,OAAQ,SACRC,QAASC,eAGV,OAAOC,MAAM,mCAAD,OAAoCW,GAAMf,GAAgBK,KAAKC,IAAOC,kBC5CnF,2G,gCCAA,oBAGMS,GAHN,MAGiBC,EAAQ,KAEnBC,EAAiB,SAAAC,GAAK,OAC3B,yBAAKJ,GAAG,mBACP,yBAAKK,UAAU,UACd,yBAAKA,UAAU,iBACd,0BAAMA,UAAU,mBAChB,wBAAIA,UAAU,cAAd,wBAEC,6BACCJ,EAASK,aA+BAC,IAxBf,SAA0BH,GACzB,OAAIA,EAAMI,MAGR,uCACQ,4BAAQC,QAASL,EAAMM,OAAvB,UAGCN,EAAMO,SAGf,sDACuB,4BAAQF,QAASL,EAAMM,OAAvB,WAGdN,EAAMQ,UAET,kBAACT,EAAD,S,4zCCrCF,IAAMU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AWiD,EACX7C,MAAI,IAGL,kBAAC,EAAD,CAAc4D,KAAI,UAAKpF,IAAL,iBAA6BoB,UAAWoD,EAAchD,MAAI,IAC5E,kBAAC,EAAD,CAAc4D,KAAI,UAAKpF,IAAL,YAAwBoB,UAAWsD,EAASlD,MAAI,IAClE,kBAAC,EAAD,CAAc4D,KAAI,UAAKpF,IAAL,oBAAgCoB,UAAWwD,EAAgBpD,MAAI,W,GA/CrE6D,IAAMlE,WA8DT0C,oBAPf,SAAyBhH,GAExB,MAAO,CACNS,MAFiBT,EAAVS,SAMMuG,CAAyBmB,IC1JpBM,QACW,cAA7BhK,OAAOC,SAASgK,UAEe,UAA7BjK,OAAOC,SAASgK,UAEhBjK,OAAOC,SAASgK,SAASC,MACvB,2DCJN,IAAMC,GAAc9C,SAASC,eAAe,QAE5CrB,iBACC,kBAAC,IAAD,CAAUrD,MAAOA,KAChB,kBAAC,GAAD,OAEDuH,ID6GK,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMzQ,MAAK,SAAA0Q,GACjCA,EAAaC,kB","file":"static/js/main.56e2cbf5.chunk.js","sourcesContent":["import { authHeader } from '../helpers'\r\nimport { helper } from './serviceHelper'\r\n\r\nexport const customerService = {\r\n\tgetCustomerByYaa,\r\n\tgetCustomerInfoByYaa,\r\n\tbookingCustomer,\r\n\tdeleteBookingCustomer,\r\n}\r\n\r\nfunction getCustomerByYaa(status = 'all') {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'GET',\r\n\t\theaders: authHeader(),\r\n\t}\r\n\r\n\treturn fetch(`api/customer/GetCustomerByYaa/${status}`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction getCustomerInfoByYaa() {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'GET',\r\n\t\theaders: authHeader(),\r\n\t}\r\n\r\n\treturn fetch(`api/customer/GetCustomerInfoByYaa`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction bookingCustomer(data) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: authHeader(),\r\n\t\tbody: JSON.stringify(data),\r\n\t}\r\n\r\n\treturn fetch(`api/customer/BookCustomer`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction deleteBookingCustomer(id) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'DELETE',\r\n\t\theaders: authHeader(),\r\n\t}\r\n\r\n\treturn fetch(`api/customer/DeleteBookCustomer/${id}`, requestOptions).then(helper.handleResponse)\r\n}\r\n","export * from './user.service'\r\nexport * from './global.service'\r\nexport * from './customer.service'\r\n","import React, { Component } from 'react'\r\nimport '../../css/Loading.css'\r\n\r\nconst _package = require('../../../package.json')\r\n\r\nconst LoadingContent = props => (\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\tYuanta Advisory Agent\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{_package.version}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n)\r\n\r\nfunction LoadingComponent(props) {\r\n\tif (props.error) {\r\n\t\t// When the loader has errored\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\tError! \r\n\t\t\t
\r\n\t\t)\r\n\t} else if (props.timedOut) {\r\n\t\t// When the loader has taken longer than the timeout\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\tTaking a long time... \r\n\t\t\t
\r\n\t\t)\r\n\t} else if (props.pastDelay) {\r\n\t\t// When the loader has taken longer than the delay\r\n\t\treturn \r\n\t} else {\r\n\t\t// When the loader has just started\r\n\t\treturn \r\n\t}\r\n}\r\n\r\nexport default LoadingComponent\r\n","export const alertConstants = {\r\n SUCCESS: 'ALERT_SUCCESS',\r\n ERROR: 'ALERT_ERROR',\r\n CLEAR: 'ALERT_CLEAR'\r\n};\r\n","export const userConstants = {\r\n\tREGISTER_REQUEST: 'USERS_REGISTER_REQUEST',\r\n\tREGISTER_SUCCESS: 'USERS_REGISTER_SUCCESS',\r\n\tREGISTER_FAILURE: 'USERS_REGISTER_FAILURE',\r\n\r\n\tLOGIN_REQUEST: 'USERS_LOGIN_REQUEST',\r\n\tLOGIN_SUCCESS: 'USERS_LOGIN_SUCCESS',\r\n\tLOGIN_FAILURE: 'USERS_LOGIN_FAILURE',\r\n\r\n\tLOGOUT: 'USERS_LOGOUT',\r\n\r\n\tGETALL_REQUEST: 'USERS_GETALL_REQUEST',\r\n\tGETALL_SUCCESS: 'USERS_GETALL_SUCCESS',\r\n\tGETALL_FAILURE: 'USERS_GETALL_FAILURE',\r\n\r\n\tDELETE_REQUEST: 'USERS_DELETE_REQUEST',\r\n\tDELETE_SUCCESS: 'USERS_DELETE_SUCCESS',\r\n\tDELETE_FAILURE: 'USERS_DELETE_FAILURE',\r\n\r\n\tGET_USER_YAA_BY_ID_REQUEST: 'GET_USER_YAA_BY_ID_REQUEST',\r\n\tGET_USER_YAA_BY_ID_SUCCESS: 'GET_USER_YAA_BY_ID_SUCCESS',\r\n GET_USER_YAA_BY_ID_FAILURE: 'GET_USER_YAA_BY_ID_FAILURE',\r\n\r\n GET_USER_ACCEPT_REQUEST: 'GET_USER_ACCEPT_REQUEST',\r\n GET_USER_ACCEPT_SUCCESS: 'GET_USER_ACCEPT_SUCCESS',\r\n GET_USER_ACCEPT_FAILURE: 'GET_USER_ACCEPT_FAILURE',\r\n\r\n POST_USER_ACCEPT_REQUEST: 'POST_USER_ACCEPT_REQUEST',\r\n POST_USER_ACCEPT_SUCCESS: 'POST_USER_ACCEPT_SUCCESS',\r\n POST_USER_ACCEPT_FAILURE: 'POST_USER_ACCEPT_FAILURE',\r\n}\r\n","export const globalConstants = {\r\n\tGET_BANK_REQUEST: 'GET_BANK_REQUEST',\r\n\tGET_BANK_SUCCESS: 'GET_BANK_SUCCESS',\r\n\tGET_BANK_FAILURE: 'GET_BANK_FAILURE',\r\n\r\n\tGET_SEARCH_CUSTOMER_REQUEST: 'GET_SEARCH_CUSTOMER_REQUEST',\r\n\tGET_SEARCH_CUSTOMER_SUCCESS: 'GET_SEARCH_CUSTOMER_SUCCESS',\r\n\tGET_SEARCH_CUSTOMER_FAILURE: 'GET_SEARCH_CUSTOMER_FAILURE',\r\n\r\n\tGET_USER_YAA_BY_ID_REQUEST: 'GET_USER_YAA_BY_ID_REQUEST',\r\n\tGET_USER_YAA_BY_ID_SUCCESS: 'GET_USER_YAA_BY_ID_SUCCESS',\r\n\tGET_USER_YAA_BY_ID_FAILURE: 'GET_USER_YAA_BY_ID_FAILURE',\r\n}\r\n","export const customerConstants = {\r\n\tGET_CUSTOMER_BY_AUTH_AND_STATUS_REQUEST: 'GET_CUSTOMER_BY_AUTH_AND_STATUS_REQUEST',\r\n\tGET_CUSTOMER_BY_AUTH_AND_STATUS_SUCCESS: 'GET_CUSTOMER_BY_AUTH_AND_STATUS_SUCCESS',\r\n\tGET_CUSTOMER_BY_AUTH_AND_STATUS_FAILURE: 'GET_CUSTOMER_BY_AUTH_AND_STATUS_FAILURE',\r\n\r\n\tGET_CUSTOMER_INFO_BY_AUTH_REQUEST: 'GET_CUSTOMER_INFO_BY_AUTH_REQUEST',\r\n\tGET_CUSTOMER_INFO_BY_AUTH_SUCCESS: 'GET_CUSTOMER_INFO_BY_AUTH_SUCCESS',\r\n\tGET_CUSTOMER_INFO_BY_AUTH_FAILURE: 'GET_CUSTOMER_INFO_BY_AUTH_FAILURE',\r\n\r\n\tNEW_BOOK_CUSTOMER_REQUEST: 'NEW_BOOK_CUSTOMER_REQUEST',\r\n\tNEW_BOOK_CUSTOMER_SUCCESS: 'NEW_BOOK_CUSTOMER_SUCCESS',\r\n\tNEW_BOOK_CUSTOMER_FAILURE: 'NEW_BOOK_CUSTOMER_FAILURE',\r\n\r\n\tDELETE_BOOK_CUSTOMER_REQUEST: 'DELETE_BOOK_CUSTOMER_REQUEST',\r\n\tDELETE_BOOK_CUSTOMER_SUCCESS: 'DELETE_BOOK_CUSTOMER_SUCCESS',\r\n\tDELETE_BOOK_CUSTOMER_FAILURE: 'DELETE_BOOK_CUSTOMER_FAILURE',\r\n}\r\n","export * from './alert.constants'\r\nexport * from './user.constants'\r\nexport * from './global.constants'\r\nexport * from './customer.constants'\r\n","import { authHeader } from '../helpers'\r\nimport { helper } from './serviceHelper'\r\nconst _package = require('../../package.json')\r\nconst store_name = `useryaa-${_package.version}`\r\n\r\nexport const userService = {\r\n\tlogin,\r\n\tloginToken,\r\n\tlogout,\r\n\tregister,\r\n\tvalidateToken,\r\n\tgetYaaUserProfileById,\r\n sendMail,\r\n GetAcceptDisclamer,\r\n AcceptDisclamerLog,\r\n}\r\n\r\nfunction login(username, password) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: { ...authHeader(), 'Content-Type': 'application/json' },\r\n\t\tbody: JSON.stringify({ username, password }),\r\n\t}\r\n\r\n\treturn fetch(`api/users/authenticate`, requestOptions)\r\n\t\t.then(handleResponse)\r\n\t\t.then(user => {\r\n\t\t\t// login successful if there's a jwt token in the response\r\n\r\n\t\t\tif (user.token) {\r\n\t\t\t\t// store user details and jwt token in local storage to keep user logged in between page refreshes\r\n\t\t\t\tlocalStorage.setItem(`${store_name}`, JSON.stringify(user))\r\n\t\t\t}\r\n\r\n\t\t\treturn user\r\n\t\t})\r\n}\r\n\r\nfunction GetAcceptDisclamer(id) {\r\n const requestOptions = {\r\n method: 'GET',\r\n headers: authHeader(),\r\n }\r\n return fetch(`api/users/GetAcceptDisclamer/${id}`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction AcceptDisclamerLog(id,acceptType) {\r\n const requestOptions = {\r\n method: 'POST',\r\n headers: { ...authHeader(), 'Content-Type': 'application/json' },\r\n body: JSON.stringify({ username: id, acceptType:acceptType }),\r\n }\r\n\r\n return fetch(`api/users/AcceptDisclamerLog`, requestOptions)\r\n .then(handleResponse)\r\n .then(user => {\r\n return user\r\n })\r\n}\r\n\r\nfunction loginToken(token) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: { ...authHeader(), 'Content-Type': 'application/json' },\r\n\t\tbody: JSON.stringify({ token: token }),\r\n\t}\r\n\r\n\treturn fetch(`api/users/authenticateToken`, requestOptions)\r\n\t\t.then(handleResponse)\r\n\t\t.then(user => {\r\n\t\t\t// login successful if there's a jwt token in the response\r\n\t\t\tif (user.token) {\r\n\t\t\t\t// store user details and jwt token in local storage to keep user logged in between page refreshes\r\n\t\t\t\tlocalStorage.setItem(`${store_name}`, JSON.stringify(user))\r\n\t\t\t}\r\n\r\n\t\t\treturn user\r\n\t\t})\r\n}\r\n\r\nfunction logout() {\r\n\tfor (let i = 0; i < localStorage.length; i++) {\r\n\t\tif (localStorage.key(i).indexOf(`useryaa`) > -1) {\r\n\t\t\tconsole.log('...remove store', localStorage.key(i))\r\n\t\t\tlocalStorage.removeItem(localStorage.key(i))\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction register(user) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: { 'Content-Type': 'application/json' },\r\n\t\tbody: JSON.stringify(user),\r\n\t}\r\n\r\n\treturn fetch(`api/users/register`, requestOptions).then(handleResponse)\r\n}\r\n\r\nfunction validateToken(token) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: { 'Content-Type': 'application/json' },\r\n\t\tbody: JSON.stringify({ token: token }),\r\n\t}\r\n\r\n\treturn fetch(`api/users/validate`, requestOptions).then(handleResponse)\r\n}\r\n\r\nfunction handleResponse(response) {\r\n\treturn response.text().then(text => {\r\n\t\tconst data = text && JSON.parse(text)\r\n\t\tif (!response.ok) {\r\n\t\t\tif (response.status === 401) {\r\n\t\t\t\t// auto logout if 401 response returned from api\r\n\t\t\t\tlogout()\r\n\t\t\t\twindow.location.reload(true)\r\n\t\t\t}\r\n\r\n\t\t\tconst error = (data && data.message) || response.statusText\r\n\t\t\treturn Promise.reject(error)\r\n\t\t}\r\n\r\n\t\treturn data\r\n\t})\r\n}\r\n\r\nfunction getYaaUserProfileById(id) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'GET',\r\n\t\theaders: authHeader(),\r\n\t}\r\n\r\n\treturn fetch(`api/services/GetYaaUserProfileById/${id}`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction sendMail(data) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: authHeader(),\r\n\t\tbody: JSON.stringify(data),\r\n\t}\r\n\r\n\treturn fetch(`api/users/SendMailAg`, requestOptions).then(helper.handleResponse)\r\n}\r\n","import { createBrowserHistory } from 'history';\r\n\r\nexport const history = createBrowserHistory();","import { userConstants } from '../constants'\r\nconst _package = require('../../package.json')\r\nconst store_name = `useryaa-${_package.version}`\r\n\r\nlet user = JSON.parse(localStorage.getItem(`${store_name}`))\r\nconst initialState = user ? { loggedIn: true, user } : {}\r\n\r\nexport function authentication(state = initialState, action) {\r\n\tswitch (action.type) {\r\n\t\tcase userConstants.LOGIN_REQUEST:\r\n\t\t\treturn {\r\n\t\t\t\tloggingIn: true,\r\n\t\t\t\tuser: action.user,\r\n\t\t\t}\r\n\t\tcase userConstants.LOGIN_SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\tloggedIn: true,\r\n\t\t\t\tuser: action.user,\r\n\t\t\t}\r\n\t\tcase userConstants.LOGIN_FAILURE:\r\n\t\t\treturn {}\r\n\t\tcase userConstants.LOGOUT:\r\n\t\t\treturn {}\r\n\t\tdefault:\r\n\t\t\treturn state\r\n\t}\r\n}\r\n","import { globalConstants } from '../constants'\r\n\r\nconst init = {\r\n\tloading: true,\r\n\titems: [],\r\n}\r\n\r\nexport function banks(state = init, action) {\r\n\tswitch (action.type) {\r\n\t\tcase globalConstants.GET_BANK_REQUEST:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloading: true,\r\n\t\t\t}\r\n\t\tcase globalConstants.GET_BANK_SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\titems: action.banks,\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\t\tcase globalConstants.GET_BANK_FAILURE:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\terror: action.error,\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\r\n\t\tdefault:\r\n\t\t\treturn state\r\n\t}\r\n}\r\n\r\nexport function search_customer(state = init, action) {\r\n\tswitch (action.type) {\r\n\t\tcase globalConstants.GET_SEARCH_CUSTOMER_REQUEST:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloading: true,\r\n\t\t\t}\r\n\t\tcase globalConstants.GET_SEARCH_CUSTOMER_SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\titems: action.search_customer,\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\t\tcase globalConstants.GET_SEARCH_CUSTOMER_FAILURE:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\terror: action.error,\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\r\n\t\tdefault:\r\n\t\t\treturn state\r\n\t}\r\n}\r\n\r\nexport function user_yaa_profile(state = { loading: true, item: { profile: {}, licenseHistory: [] } }, action) {\r\n\tswitch (action.type) {\r\n\t\tcase globalConstants.GET_USER_YAA_BY_ID_REQUEST:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloading: true,\r\n\t\t\t}\r\n\t\tcase globalConstants.GET_USER_YAA_BY_ID_SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloading: false,\r\n\t\t\t\titem: action.user_yaa_profile,\r\n\t\t\t}\r\n\t\tcase globalConstants.GET_USER_YAA_BY_ID_FAILURE:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloading: false,\r\n\t\t\t\terror: action.error,\r\n\t\t\t}\r\n\r\n\t\tdefault:\r\n\t\t\treturn state\r\n\t}\r\n}\r\n","import { customerConstants } from '../constants'\r\n\r\nconst inits = { loading: true, items: [] }\r\nconst init = { loading: true, item: { all: '0', pending: '0', success: '0', reject: '0' } }\r\n\r\nexport function customers_book(state = inits, action) {\r\n\tswitch (action.type) {\r\n\t\tcase customerConstants.GET_CUSTOMER_BY_AUTH_AND_STATUS_REQUEST:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloading: true,\r\n\t\t\t}\r\n\t\tcase customerConstants.GET_CUSTOMER_BY_AUTH_AND_STATUS_SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\titems: action.customers_book,\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\t\tcase customerConstants.GET_CUSTOMER_BY_AUTH_AND_STATUS_FAILURE:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\terror: action.error,\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\r\n\t\t// SAVE\r\n\t\tcase customerConstants.NEW_BOOK_CUSTOMER_REQUEST:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloading: true,\r\n\t\t\t}\r\n\t\tcase customerConstants.NEW_BOOK_CUSTOMER_SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\titems: state.items.concat(action.response),\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\t\tcase customerConstants.NEW_BOOK_CUSTOMER_FAILURE:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\terror: action.error,\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\r\n\t\t// DELETE\r\n\t\tcase customerConstants.DELETE_BOOK_CUSTOMER_REQUEST:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloading: true,\r\n\t\t\t}\r\n\t\tcase customerConstants.DELETE_BOOK_CUSTOMER_SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloading: false,\r\n\t\t\t\titems: state.items.filter(book => book.id !== action.id),\r\n\t\t\t}\r\n\t\tcase customerConstants.DELETE_BOOK_CUSTOMER_FAILURE:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\terror: action.error,\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\r\n\t\tdefault:\r\n\t\t\treturn state\r\n\t}\r\n}\r\n\r\nexport function customer_info(state = init, action) {\r\n\tswitch (action.type) {\r\n\t\tcase customerConstants.GET_CUSTOMER_INFO_BY_AUTH_REQUEST:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloading: true,\r\n\t\t\t}\r\n\t\tcase customerConstants.GET_CUSTOMER_INFO_BY_AUTH_SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\titem: action.customer_info,\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\t\tcase customerConstants.GET_CUSTOMER_INFO_BY_AUTH_FAILURE:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\terror: action.error,\r\n\t\t\t\tloading: false,\r\n\t\t\t}\r\n\r\n\t\tdefault:\r\n\t\t\treturn state\r\n\t}\r\n}\r\n","import { combineReducers } from 'redux'\r\n\r\nimport { authentication } from './authentication.reducer'\r\nimport { users } from './users.reducer'\r\nimport { alert } from './alert.reducer'\r\nimport { banks, search_customer, user_yaa_profile } from './globals.reducer'\r\nimport { customers_book, customer_info } from './customers.reducer'\r\n\r\nconst rootReducer = combineReducers({\r\n\tauthentication,\r\n\tusers,\r\n\talert,\r\n\tbanks,\r\n\tsearch_customer,\r\n\tcustomers_book,\r\n\tcustomer_info,\r\n\tuser_yaa_profile,\r\n})\r\n\r\nexport default rootReducer\r\n","import { userConstants } from '../constants'\r\n\r\nexport function users(state = {}, action) {\r\n\tswitch (action.type) {\r\n\t\tcase userConstants.GETALL_REQUEST:\r\n\t\t\treturn {\r\n\t\t\t\tloading: true,\r\n\t\t\t}\r\n\t\tcase userConstants.GETALL_SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\titems: action.users,\r\n\t\t\t}\r\n\t\tcase userConstants.GETALL_FAILURE:\r\n\t\t\treturn {\r\n\t\t\t\terror: action.error,\r\n\t\t\t}\r\n\t\tcase userConstants.DELETE_REQUEST:\r\n\t\t\t// add 'deleting:true' property to user being deleted\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\titems: state.items.map(user =>\r\n\t\t\t\t\tuser.id === action.id ? { ...user, deleting: true } : user\r\n\t\t\t\t),\r\n\t\t\t}\r\n\t\tcase userConstants.DELETE_SUCCESS:\r\n\t\t\t// remove deleted user from state\r\n\t\t\treturn {\r\n\t\t\t\titems: state.items.filter(user => user.id !== action.id),\r\n\t\t\t}\r\n\t\tcase userConstants.DELETE_FAILURE:\r\n\t\t\t// remove 'deleting:true' property and add 'deleteError:[error]' property to user\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\titems: state.items.map(user => {\r\n\t\t\t\t\tif (user.id === action.id) {\r\n\t\t\t\t\t\t// make copy of user without 'deleting:true' property\r\n\t\t\t\t\t\tconst { deleting, ...userCopy } = user\r\n\t\t\t\t\t\t// return copy of user with 'deleteError:[error]' property\r\n\t\t\t\t\t\treturn { ...userCopy, deleteError: action.error }\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn user\r\n\t\t\t\t}),\r\n\t\t\t}\r\n\t\tdefault:\r\n\t\t\treturn state\r\n\t}\r\n}\r\n","import { alertConstants } from '../constants'\r\n\r\nexport function alert(state = {}, action) {\r\n\tswitch (action.type) {\r\n\t\tcase alertConstants.SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\ttype: 'alert-success',\r\n\t\t\t\tmessage: action.message,\r\n\t\t\t}\r\n\t\tcase alertConstants.ERROR:\r\n\t\t\treturn {\r\n\t\t\t\ttype: 'alert-danger',\r\n\t\t\t\tmessage: action.message,\r\n\t\t\t}\r\n\t\tcase alertConstants.CLEAR:\r\n\t\t\treturn {}\r\n\t\tdefault:\r\n\t\t\treturn state\r\n\t}\r\n}\r\n","import { createStore, applyMiddleware, compose } from 'redux'\r\nimport thunkMiddleware from 'redux-thunk'\r\nimport { createLogger } from 'redux-logger'\r\nimport rootReducer from '../reducers'\r\n\r\nconst loggerMiddleware = createLogger()\r\n\r\n// In development, use the browser's Redux dev tools extension if installed\r\nconst enhancers = []\r\nconst isDevelopment = process.env.NODE_ENV === 'development'\r\nif (\r\n\tisDevelopment &&\r\n\ttypeof window !== 'undefined' &&\r\n\twindow.devToolsExtension\r\n) {\r\n\tenhancers.push(window.devToolsExtension())\r\n}\r\n\r\nexport const store = createStore(\r\n\trootReducer,\r\n\tcompose(\r\n\t\tapplyMiddleware(thunkMiddleware),\r\n\t\t...enhancers\r\n\t)\r\n)\r\n","const _package = require('../../package.json')\r\nconst store_name = `useryaa-${_package.version}`\r\n\r\nexport function authHeader() {\r\n\t// return authorization header with jwt token\r\n\tlet user = JSON.parse(localStorage.getItem(`${store_name}`))\r\n\r\n\tif (user && user.token) {\r\n\t\t// return { 'Authorization': 'Bearer ' + user.token };\r\n\t\treturn {\r\n\t\t\t'Content-Type': 'application/json',\r\n\t\t\tAuthorization: user.token,\r\n\t\t}\r\n\t} else {\r\n\t\treturn {\r\n\t\t\t'Content-Type': 'application/json',\r\n\t\t}\r\n\t}\r\n}\r\n","export const config = JSON.stringify({\r\n\tapiUrl: 'http://localhost:5000',\r\n})\r\n","export * from './history'\r\nexport * from './store'\r\nexport * from './auth-header'\r\nexport * from './config'\r\nexport * from './arrayHelper'\r\nexport * from './urlHelper'\r\n","export const BaseURL = ''\r\n//export const BaseURL = '/yaa'\r\n","export function compareAntTable(a, b) {\r\n\treturn a === b ? 0 : a < b ? -1 : 1\r\n}\r\n\r\nexport function getObjectById(array, object_id) {\r\n\tlet lookup = {}\r\n\tfor (let i = 0, len = array.length; i < len; i++) {\r\n\t\tlookup[array[i].id] = array[i]\r\n\t}\r\n\r\n\treturn lookup[object_id]\r\n}\r\n\r\nexport function getObjectByKey(array, object_id, key) {\r\n\tlet lookup = {}\r\n\tfor (let i = 0, len = array.length; i < len; i++) {\r\n\t\tlookup[array[i][key]] = array[i]\r\n\t}\r\n\r\n\treturn lookup[object_id]\r\n}\r\n\r\nexport function compareDateAntTable(a, b) {\r\n return a === b ? 0 : a < b ? -1 : 1\r\n}","import { globalConstants } from '../constants'\r\nimport { globalService } from '../services'\r\nimport { alertActions } from './alert.actions'\r\n\r\nexport const globalActions = {\r\n\tgetBankAll,\r\n\tsearchCustomer,\r\n\tgetYaaUserProfileById,\r\n}\r\n\r\nfunction getBankAll() {\r\n\treturn dispatch => {\r\n\t\tdispatch(request())\r\n\r\n\t\tglobalService.GetBankAll().then(\r\n\t\t\tbanks => {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tdispatch(success(banks))\r\n\t\t\t\t}, 500)\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request() {\r\n\t\treturn { type: globalConstants.GET_BANK_REQUEST }\r\n\t}\r\n\r\n\tfunction success(banks) {\r\n\t\treturn { type: globalConstants.GET_BANK_SUCCESS, banks }\r\n\t}\r\n\r\n\tfunction failure(error) {\r\n\t\treturn { type: globalConstants.GET_BANK_FAILURE, error }\r\n\t}\r\n}\r\n\r\nfunction searchCustomer(IdNumber) {\r\n\treturn dispatch => {\r\n\t\tdispatch(request())\r\n\r\n\t\tglobalService.SearchCustomer({ IdNumber: IdNumber }).then(\r\n\t\t\tsearch_customer => {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tdispatch(success(search_customer))\r\n\t\t\t\t}, 500)\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request() {\r\n\t\treturn { type: globalConstants.GET_SEARCH_CUSTOMER_REQUEST }\r\n\t}\r\n\r\n\tfunction success(search_customer) {\r\n\t\treturn { type: globalConstants.GET_SEARCH_CUSTOMER_SUCCESS, search_customer }\r\n\t}\r\n\r\n\tfunction failure(error) {\r\n\t\treturn { type: globalConstants.GET_SEARCH_CUSTOMER_FAILURE, error }\r\n\t}\r\n}\r\n\r\nfunction getYaaUserProfileById(id) {\r\n\treturn dispatch => {\r\n\t\tdispatch(request())\r\n\r\n\t\tglobalService.getYaaUserProfileById(id).then(\r\n\t\t\tuser_yaa_profile => {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tdispatch(success(user_yaa_profile))\r\n\t\t\t\t}, 500)\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request() {\r\n\t\treturn { type: globalConstants.GET_USER_YAA_BY_ID_REQUEST }\r\n\t}\r\n\tfunction success(user_yaa_profile) {\r\n\t\treturn { type: globalConstants.GET_USER_YAA_BY_ID_SUCCESS, user_yaa_profile }\r\n\t}\r\n\tfunction failure(error) {\r\n\t\treturn { type: globalConstants.GET_USER_YAA_BY_ID_FAILURE, error }\r\n\t}\r\n}\r\n","import { customerConstants } from '../constants'\r\nimport { customerService } from '../services'\r\nimport { alertActions } from './alert.actions'\r\n\r\nexport const customerActions = {\r\n\tgetCustomerByYaa,\r\n\tgetCustomerInfoByYaa,\r\n\tbookingCustomer,\r\n\tdeleteBookingCustomer,\r\n}\r\n\r\nfunction getCustomerByYaa(status) {\r\n\treturn dispatch => {\r\n\t\tdispatch(request())\r\n\r\n\t\tcustomerService.getCustomerByYaa(status).then(\r\n\t\t\tcustomers_book => {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tdispatch(success(customers_book))\r\n\t\t\t\t}, 500)\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request() {\r\n\t\treturn { type: customerConstants.GET_CUSTOMER_BY_AUTH_AND_STATUS_REQUEST }\r\n\t}\r\n\r\n\tfunction success(customers_book) {\r\n\t\treturn { type: customerConstants.GET_CUSTOMER_BY_AUTH_AND_STATUS_SUCCESS, customers_book }\r\n\t}\r\n\r\n\tfunction failure(error) {\r\n\t\treturn { type: customerConstants.GET_CUSTOMER_BY_AUTH_AND_STATUS_FAILURE, error }\r\n\t}\r\n}\r\n\r\nfunction getCustomerInfoByYaa() {\r\n\treturn dispatch => {\r\n\t\tdispatch(request())\r\n\r\n\t\tcustomerService.getCustomerInfoByYaa().then(\r\n\t\t\tcustomer_info => {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tdispatch(success(customer_info))\r\n\t\t\t\t}, 1000)\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request() {\r\n\t\treturn { type: customerConstants.GET_CUSTOMER_INFO_BY_AUTH_REQUEST }\r\n\t}\r\n\r\n\tfunction success(customer_info) {\r\n\t\treturn { type: customerConstants.GET_CUSTOMER_INFO_BY_AUTH_SUCCESS, customer_info }\r\n\t}\r\n\r\n\tfunction failure(error) {\r\n\t\treturn { type: customerConstants.GET_CUSTOMER_INFO_BY_AUTH_FAILURE, error }\r\n\t}\r\n}\r\n\r\nfunction bookingCustomer(data) {\r\n\treturn dispatch => {\r\n\t\tdispatch(request())\r\n\r\n\t\tcustomerService.bookingCustomer(data).then(\r\n\t\t\tresponse => {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tdispatch(success(response))\r\n\t\t\t\t}, 500)\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request() {\r\n\t\treturn { type: customerConstants.NEW_BOOK_CUSTOMER_REQUEST }\r\n\t}\r\n\r\n\tfunction success(response) {\r\n\t\treturn { type: customerConstants.NEW_BOOK_CUSTOMER_SUCCESS, response }\r\n\t}\r\n\r\n\tfunction failure(error) {\r\n\t\treturn { type: customerConstants.NEW_BOOK_CUSTOMER_FAILURE, error }\r\n\t}\r\n}\r\n\r\nfunction deleteBookingCustomer(id) {\r\n\treturn dispatch => {\r\n\t\tdispatch(request(id))\r\n\r\n\t\tcustomerService.deleteBookingCustomer(id).then(\r\n\t\t\tresponse => {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tdispatch(success(id))\r\n\t\t\t\t}, 500)\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request() {\r\n\t\treturn { type: customerConstants.DELETE_BOOK_CUSTOMER_REQUEST }\r\n\t}\r\n\r\n\tfunction success(id) {\r\n\t\treturn { type: customerConstants.DELETE_BOOK_CUSTOMER_SUCCESS, id }\r\n\t}\r\n\r\n\tfunction failure(error) {\r\n\t\treturn { type: customerConstants.DELETE_BOOK_CUSTOMER_FAILURE, error }\r\n\t}\r\n}\r\n","export * from './alert.actions'\r\nexport * from './user.actions'\r\nexport * from './global.actions'\r\nexport * from './customer.actions'\r\n","import { userConstants } from '../constants'\r\nimport { userService } from '../services'\r\nimport { alertActions } from './alert.actions'\r\nimport { history, signalrConfig, BaseURL } from '../helpers'\r\n\r\nexport const userActions = {\r\n\tlogin,\r\n\tloginToken,\r\n\tlogout,\r\n\tregister,\r\n\tvalidateToken,\r\n getYaaUserProfileById,\r\n GetAcceptDisclamer,\r\n AcceptDisclamerLog,\r\n}\r\n\r\nfunction login(username, password) {\r\n\treturn dispatch => {\r\n\t\tdispatch(request({ username }))\r\n\r\n\t\t// TODO connect api\r\n\t\tuserService.login(username, password).then(\r\n\t\t\tuser => {\r\n\t\t\t\tdispatch(success(user))\r\n\r\n\t\t\t\thistory.push(`${BaseURL}/`)\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request(user) {\r\n\t\treturn { type: userConstants.LOGIN_REQUEST, user }\r\n\t}\r\n\tfunction success(user) {\r\n\t\treturn { type: userConstants.LOGIN_SUCCESS, user }\r\n\t}\r\n\tfunction failure(error) {\r\n\t\treturn { type: userConstants.LOGIN_FAILURE, error }\r\n\t}\r\n}\r\n\r\nfunction loginToken(token) {\r\n\treturn dispatch => {\r\n\t\tdispatch(request({ token }))\r\n\t\t// TODO connect api\r\n\t\tuserService.loginToken(token).then(\r\n\t\t\tuser => {\r\n\t\t\t\tdispatch(success(user))\r\n\r\n\t\t\t\t// signalrConfig.startConnection()\r\n\r\n\t\t\t\thistory.push(`${BaseURL}/`)\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request(user) {\r\n\t\treturn { type: userConstants.LOGIN_REQUEST, user }\r\n\t}\r\n\tfunction success(user) {\r\n\t\treturn { type: userConstants.LOGIN_SUCCESS, user }\r\n\t}\r\n\tfunction failure(error) {\r\n\t\treturn { type: userConstants.LOGIN_FAILURE, error }\r\n\t}\r\n}\r\n\r\nfunction logout() {\r\n\t// signalrConfig.closeConnection()\r\n\tuserService.logout()\r\n\treturn { type: userConstants.LOGOUT }\r\n}\r\n\r\nfunction register(user) {\r\n\treturn dispatch => {\r\n\t\tdispatch(request(user))\r\n\r\n\t\tuserService.register(user).then(\r\n\t\t\tres => {\r\n\t\t\t\tdispatch(success())\r\n\t\t\t\thistory.push(`${BaseURL}/register-status/${res.token}`)\r\n\t\t\t\tdispatch(alertActions.success('Registration successful'))\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request(user) {\r\n\t\treturn { type: userConstants.REGISTER_REQUEST, user }\r\n\t}\r\n\tfunction success(user) {\r\n\t\treturn { type: userConstants.REGISTER_SUCCESS, user }\r\n\t}\r\n\tfunction failure(error) {\r\n\t\treturn { type: userConstants.REGISTER_FAILURE, error }\r\n\t}\r\n}\r\n\r\nfunction validateToken(token) {\r\n\treturn dispatch => {\r\n\t\tuserService.validateToken(token).then(\r\n\t\t\tres => {\r\n\t\t\t\tif (!res.validate) {\r\n\t\t\t\t\thistory.push(`${BaseURL}/login`)\r\n\t\t\t\t\tdispatch(alertActions.error('Validate Token Fail'))\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n}\r\n\r\nfunction getYaaUserProfileById(id) {\r\n\treturn dispatch => {\r\n\t\tdispatch(request())\r\n\r\n\t\tuserService.getYaaUserProfileById(id).then(\r\n\t\t\tuser_yaa_profile => {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tdispatch(success(user_yaa_profile))\r\n\t\t\t\t}, 500)\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tdispatch(failure(error.toString()))\r\n\t\t\t\tdispatch(alertActions.error(error.toString()))\r\n\t\t\t}\r\n\t\t)\r\n\t}\r\n\r\n\tfunction request() {\r\n\t\treturn { type: userConstants.GET_USER_YAA_BY_ID_REQUEST }\r\n\t}\r\n\tfunction success(user_yaa_profile) {\r\n\t\treturn { type: userConstants.GET_USER_YAA_BY_ID_SUCCESS, user_yaa_profile }\r\n\t}\r\n\tfunction failure(error) {\r\n\t\treturn { type: userConstants.GET_USER_YAA_BY_ID_FAILURE, error }\r\n\t}\r\n}\r\n\r\nfunction GetAcceptDisclamer(id) {\r\n return dispatch => {\r\n dispatch(request())\r\n\r\n userService.GetAcceptDisclamer(id).then(\r\n isDisclamer => {\r\n setTimeout(() => {\r\n dispatch(success(isDisclamer))\r\n }, 500)\r\n },\r\n error => {\r\n dispatch(failure(error.toString()))\r\n dispatch(alertActions.error(error.toString()))\r\n }\r\n )\r\n }\r\n\r\n function request() {\r\n return { type: userConstants.GET_USER_ACCEPT_REQUEST }\r\n }\r\n function success(isDisclamer) {\r\n return { type: userConstants.GET_USER_ACCEPT_SUCCESS, isDisclamer }\r\n }\r\n function failure(error) {\r\n return { type: userConstants.GET_USER_ACCEPT_FAILURE, error }\r\n }\r\n}\r\n\r\nfunction AcceptDisclamerLog(id,acceptType) {\r\n return dispatch => {\r\n dispatch(request())\r\n\r\n userService.AcceptDisclamerLog(id, acceptType).then(\r\n isDisclamer => {\r\n setTimeout(() => {\r\n dispatch(success(isDisclamer))\r\n }, 500)\r\n },\r\n error => {\r\n dispatch(failure(error.toString()))\r\n dispatch(alertActions.error(error.toString()))\r\n }\r\n )\r\n }\r\n\r\n function request() {\r\n return { type: userConstants.POST_USER_ACCEPT_REQUEST }\r\n }\r\n function success(isDisclamer) {\r\n return { type: userConstants.POST_USER_ACCEPT_SUCCESS, isDisclamer }\r\n }\r\n function failure(error) {\r\n return { type: userConstants.POST_USER_ACCEPT_FAILURE, error }\r\n }\r\n}\r\n\r\n","import { authHeader } from '../helpers'\r\nimport { helper } from './serviceHelper'\r\n\r\nexport const globalService = {\r\n\tGetBankAll,\r\n\tSearchCustomer,\r\n\tgetYaaUserProfileById,\r\n\tgetIncentive,\r\n\tgetIncentiveReportByProductMonthTrade,\r\n\r\n\tgetOrganizationById,\r\n\tgetIncentiveOrganization,\r\n\tgetIncentiveOrganizationDetail,\r\n\tgetIncentiveReportByProductMonthTradeOrganization,\r\n\tgetIncentiveReportByProductMonthTradeOrganizationDetail,\r\n\r\n\tgetSelectCommander,\r\n\r\n\tverifyCorporationCode,\r\n\tchangePasswordUrl\r\n}\r\n\r\nfunction GetBankAll() {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'GET',\r\n\t\theaders: authHeader(),\r\n\t}\r\n\r\n\t// return fetch(`webapi/service/GetBankAll`, requestOptions).then(helper.handleResponse)\r\n\treturn fetch(`api/services/GetBankAll`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction SearchCustomer(data) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: authHeader(),\r\n\t\tbody: JSON.stringify(data),\r\n\t}\r\n\r\n\treturn fetch(`api/services/SearchCustomer`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction getYaaUserProfileById(id) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'GET',\r\n\t\theaders: authHeader(),\r\n\t}\r\n\r\n\treturn fetch(`api/services/GetYaaUserProfileById/${id}`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction getIncentive() {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'GET',\r\n\t\theaders: authHeader(),\r\n\t}\r\n\r\n\treturn fetch(`api/users/GetIncentive`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction getIncentiveReportByProductMonthTrade(data) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: authHeader(),\r\n\t\tbody: JSON.stringify(data),\r\n\t}\r\n\r\n\treturn fetch(`api/services/GetIncentiveReportByProductMonthTrade`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction getOrganizationById(id) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'GET',\r\n\t\theaders: authHeader(),\r\n\t}\r\n\r\n\treturn fetch(`api/users/GetOrganizationById/${id}`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction getIncentiveOrganization(id) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'GET',\r\n\t\theaders: authHeader(),\r\n\t}\r\n\r\n\treturn fetch(`api/users/GetIncentiveOrganization/${id}`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\n//GetIncentiveOrganizationDetail\r\nfunction getIncentiveOrganizationDetail(id) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'GET',\r\n\t\theaders: authHeader(),\r\n\t}\r\n\r\n\treturn fetch(`api/users/GetIncentiveOrganizationDetail/${id}`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction getIncentiveReportByProductMonthTradeOrganization(data) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: authHeader(),\r\n\t\tbody: JSON.stringify(data),\r\n\t}\r\n\r\n\treturn fetch(`api/services/GetIncentiveReportByProductMonthTradeOrganization`, requestOptions).then(\r\n\t\thelper.handleResponse\r\n\t)\r\n}\r\n\r\n//GetIncentiveReportByProductMonthTradeOrganizationDetail\r\nfunction getIncentiveReportByProductMonthTradeOrganizationDetail(data) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: authHeader(),\r\n\t\tbody: JSON.stringify(data),\r\n\t}\r\n\r\n\treturn fetch(`api/services/GetIncentiveReportByProductMonthTradeOrganizationDetail`, requestOptions).then(\r\n\t\thelper.handleResponse\r\n\t)\r\n}\r\n\r\nfunction getSelectCommander(data) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'GET',\r\n\t\theaders: { ...authHeader(), 'Content-Type': 'application/json' },\r\n\t}\r\n\r\n\treturn fetch(`api/users/GetSelectCommander`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction verifyCorporationCode(data) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: authHeader(),\r\n\t\tbody: JSON.stringify(data),\r\n\t}\r\n\r\n\treturn fetch(`api/services/VerifyCorporationCode`, requestOptions).then(helper.handleResponse)\r\n}\r\n\r\nfunction changePasswordUrl(data) {\r\n\tconst requestOptions = {\r\n\t\tmethod: 'POST',\r\n\t\theaders: authHeader(),\r\n\t\tbody: JSON.stringify(data),\r\n\t}\r\n\r\n\treturn fetch(`api/services/ChangePasswordUrl`, requestOptions).then(helper.handleResponse)\r\n}\r\n","import { userService } from './user.service'\r\n\r\nexport const helper = {\r\n\thandleResponse,\r\n}\r\n\r\nfunction handleResponse(response) {\r\n\treturn response.text().then(text => {\r\n\t\tconst data = text && JSON.parse(text)\r\n\t\tif (!response.ok) {\r\n\t\t\tif (response.status === 401) {\r\n\t\t\t\t// auto logout if 401 response returned from api\r\n\t\t\t\t// userService.logout()\r\n\t\t\t\t// location.reload(true)\r\n\t\t\t\tuserService.logout()\r\n\t\t\t\twindow.location.reload(true)\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\tconst error = (data && data.message) || response.statusText\r\n\t\t\treturn Promise.reject(error)\r\n\t\t}\r\n\r\n\t\treturn data\r\n\t})\r\n}\r\n","module.exports = __webpack_public_path__ + \"static/media/header-logo.efdfdd00.png\";","import { alertConstants } from '../constants'\r\n\r\nexport const alertActions = {\r\n\tsuccess,\r\n\terror,\r\n\tclear,\r\n}\r\n\r\nfunction success(message) {\r\n\treturn { type: alertConstants.SUCCESS, message }\r\n}\r\n\r\nfunction error(message) {\r\n\treturn { type: alertConstants.ERROR, message }\r\n}\r\n\r\nfunction clear() {\r\n\treturn { type: alertConstants.CLEAR }\r\n}\r\n","import React from 'react'\r\nimport { Route, Redirect } from 'react-router-dom'\r\nimport { BaseURL } from '../helpers/index.js'\r\n\r\nconst _package = require('../../package.json')\r\nconst store_name = `useryaa-${_package.version}`\r\n\r\nexport const PrivateRoute = ({ component: Component, ...rest }) => (\r\n\t\r\n\t\t\tlocalStorage.getItem(`${store_name}`) ? (\r\n\t\t\t\t\r\n\t\t\t) : (\r\n\t\t\t\t\r\n\t\t\t)\r\n\t\t}\r\n\t/>\r\n)\r\n","import React, { Component } from 'react'\r\nimport { LinkContainer } from 'react-router-bootstrap'\r\nimport { Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavLink } from 'reactstrap'\r\nimport { withRouter } from 'react-router'\r\nimport styled from 'styled-components'\r\nimport LOGO from '../image/header-logo.png'\r\n// import LOGO from '../image/logo (2).png'\r\nimport '../style/navbar-custom.less'\r\nimport { BaseURL } from '../helpers'\r\nconst _package = require('../../package.json')\r\nconst store_name = `useryaa-${_package.version}`\r\n\r\nconst FontSize = styled.div`\r\n\tfont-size: 16px;\r\n`\r\nconst SystemName = styled.div`\r\n\tfont-size: 20px;\r\n\tcolor: #616161;\r\n`\r\nclass NavMenu extends Component {\r\n\tdisplayName = NavMenu.name\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props)\r\n\r\n\t\tthis.toggle = this.toggle.bind(this)\r\n\t\tthis.state = {\r\n\t\t\tisOpen: false,\r\n\t\t\tuserType: 'normal',\r\n\t\t\tuserName:''\r\n\t\t}\r\n\r\n\t\tvar element = document.getElementById('main-body')\r\n\t\telement.classList.remove('login-body')\r\n\t\telement.classList.add('content-body')\r\n\t}\r\n\r\n\tcomponentDidMount = () => {\r\n\t\tlet user = JSON.parse(localStorage.getItem(`${store_name}`))\r\n\r\n\t\tif (user) {\r\n\t\t\tthis.setState({ userType: user.userType, userName: user.username })\r\n\t\t}\r\n\t}\r\n\r\n\ttoggle() {\r\n\t\tthis.setState({\r\n\t\t\tisOpen: !this.state.isOpen,\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/* YAA System */}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"yuanta\"{' '}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t)\r\n\t}\r\n}\r\n\r\nexport default withRouter(NavMenu)\r\n","import React, { Component } from 'react'\r\nimport NavMenu from './NavMenu'\r\nimport { connect } from 'react-redux'\r\n\r\nclass MainLayout extends Component {\r\n\trender() {\r\n\t\tconst { loggedIn } = this.props\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{loggedIn && }\r\n\t\t\t\t\r\n\t\t\t\t{this.props.children}\r\n\t\t\t
\r\n\t\t)\r\n\t}\r\n}\r\n\r\nfunction mapStateToProps(state) {\r\n\tconst { loggedIn } = state.authentication\r\n\treturn {\r\n\t\tloggedIn,\r\n\t}\r\n}\r\n\r\nexport default connect(mapStateToProps)(MainLayout)\r\n","import React from 'react'\r\nimport { Router, Route, Redirect, Switch } from 'react-router-dom'\r\nimport { connect } from 'react-redux'\r\nimport { history, BaseURL } from './helpers'\r\nimport { alertActions } from './actions'\r\nimport { PrivateRoute } from './components/PrivateRoute'\r\n\r\nimport MainLayout from './components/MainLayout'\r\n// import LoginPage from './Pages/LoginPage'\r\n// import Home from './Pages/HomePage'\r\n// import OrganizationPage from './Pages/OrganizationPage'\r\n// import OrganizationDetailPage from './Pages/OrganizationDetailPage'\r\n// import OrganizationBalanceHistory from './Pages/OrganizationBalanceHistory'\r\n// import Register from './Pages/RegisterPage'\r\n// import RegisterStatusPage from './Pages/RegisterStatusPage'\r\n// import ListCustomer from './Pages/ListCustomer'\r\n// import BalanceHistory from './Pages/BalanceHistory'\r\n// import Profile from './Pages/Profile'\r\n// import RegisterDocument from './Pages/RegisterDocument'\r\n// import CustomerDetail from './Pages/CustomerDetail'\r\n// import VerifyToken from './Pages/VerifyToken'\r\n// import RegisterDocumentCorporation from './Pages/RegisterDocumentCorporation'\r\n// import CorporationBookCustomerPage from './Pages/CorporationBookCustomerPage'\r\n\r\nimport LoadingComponent from './components/shared/LoadingComponent'\r\nimport './style/css/global.css'\r\nimport Loadable from 'react-loadable'\r\n\r\nconst LoginPage = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"LoginPage\" */ './Pages/LoginPage'),\r\n\tdelay: 500,\r\n\tloading: LoadingComponent,\r\n})\r\nconst Home = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"HomePage\" */ './Pages/HomePage'),\r\n\tdelay: 500,\r\n\tloading: LoadingComponent,\r\n})\r\nconst OrganizationPage = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"OrganizationPage\" */ './Pages/OrganizationPage'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst OrganizationDetailPage = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"OrganizationDetailPage\" */ './Pages/OrganizationDetailPage'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst OrganizationBalanceHistory = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"OrganizationBalanceHistory\" */ './Pages/OrganizationBalanceHistory'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst Register = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"RegisterPage\" */ './Pages/RegisterPage'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst RegisterStatusPage = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"RegisterStatusPage\" */ './Pages/RegisterStatusPage'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst ListCustomer = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"ListCustomer\" */ './Pages/ListCustomer'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst BalanceHistory = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"BalanceHistory\" */ './Pages/BalanceHistory'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst Profile = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"Profile\" */ './Pages/Profile'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst RegisterDocument = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"RegisterDocument\" */ './Pages/RegisterDocument'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst CustomerDetail = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"CustomerDetail\" */ './Pages/CustomerDetail'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst VerifyToken = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"VerifyToken\" */ './Pages/VerifyToken'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst RegisterDocumentCorporation = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"RegisterDocumentCorporation\" */ './Pages/RegisterDocumentCorporation'),\r\n\tloading: LoadingComponent,\r\n\tdelay: 500,\r\n})\r\nconst CorporationBookCustomerPage = Loadable({\r\n\tloader: () => import(/* webpackChunkName: \"CorporationBookCustomerPage\" */ './Pages/CorporationBookCustomerPage'),\r\n\tdelay: 500,\r\n\tloading: LoadingComponent,\r\n})\r\n\r\nclass App extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props)\r\n\r\n\t\tconst { dispatch } = this.props\r\n\t\thistory.listen((location, action) => {\r\n\t\t\t// clear alert on location change\r\n\t\t\tdispatch(alertActions.clear())\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { alert } = this.props\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{alert.message &&
{alert.message}
}\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t)\r\n\t}\r\n}\r\n\r\nfunction mapStateToProps(state) {\r\n\tconst { alert } = state\r\n\treturn {\r\n\t\talert,\r\n\t}\r\n}\r\n\r\nexport default connect(mapStateToProps)(App)\r\n","// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read https://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get('content-type');\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf('javascript') === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import 'antd/dist/antd.css'\r\nimport 'bootstrap/dist/css/bootstrap.min.css'\r\nimport './index.css'\r\nimport './style/global.less'\r\nimport React from 'react'\r\nimport { render } from 'react-dom'\r\nimport { Provider } from 'react-redux'\r\nimport 'react-table/react-table.css'\r\n\r\nimport { store } from './helpers'\r\nimport App from './App'\r\n\r\nimport * as serviceWorker from './serviceWorker';\r\n\r\nconst rootElement = document.getElementById('root')\r\n\r\nrender(\r\n\t\r\n\t\t\r\n\t,\r\n\trootElement\r\n)\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: https://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n"],"sourceRoot":""}